顯示具有 GNOME 標籤的文章。 顯示所有文章
顯示具有 GNOME 標籤的文章。 顯示所有文章

2016年8月18日 星期四

ubuntu 14.04 TLS install VNC server with gnome desketop (遠端桌面)

ubuntu 14.04 TLS   install  VNC server  with gnome desketop (遠端桌面)

1.安裝 gnome 相關套件

# sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal # apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal vnc4server 

2.啟動一次 再家目錄建立預設資料夾

user@ubuntu:~$ vncserver

You will require a password to access your desktops.

Password:
Verify:
xauth:  file /home/user/.Xauthority does not exist

New 'ubuntu:1 (user)' desktop is ubuntu:1

Creating default startup script /home/user/.vnc/xstartup
Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/user/.vnc/ubuntu:1.log


3.編輯 /home/user/.vnc/xstartup 檔套用以下設定

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &

4.再次啟動
user@ubuntu:~$ vncserver -kill :1
Killing Xvnc4 process ID 45058
user@ubuntu:~$ vncserver 

New 'ubuntu:1 (user)' desktop is ubuntu:1

Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/user/.vnc/ubuntu:1.log


5.在別台機器啟動 Remmina 遠端桌面客戶端




6.新增並輸入 IP:Port 帳號 密碼




7.連線成功!!



參考來源:http://askubuntu.com/questions/475023/how-to-make-vnc-server-work-with-ubuntu-desktop-without-xfce

參考:https://docs.microsoft.com/zh-tw/azure/virtual-machines/linux/classic/remote-desktop


https://www.digitalocean.com/community/tutorials/how-to-set-up-vnc-server-on-debian-8

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04


/etc/vnc.conf

vi /etc/alternatives/vncserver  -localhost



在localhost 監聽

vncserver  -localhost

ssh forward
ssh -L 5901:127.0.0.1:5901 -N -f -l user server_ip_address

移除ssh forward
If you are using Linux you can kill the process by:
ps aux | grep ssh
and then use
kill <id>
To kill the process.
If the kill command is not successfull you can try
kill -9 <id>

來源:https://superuser.com/questions/87014/how-do-i-remove-an-ssh-forwarded-port


移除 監聽

 vncserver -kill :2

2016年4月12日 星期二

ASUS zenbook Arch GNOME Multitouch gestures use touchegg

ASUS zenbook Arch  GNOME Multitouch gestures  use  touchegg


由於多指手勢被gnume 阻擋 [註1] /etc/X11/xorg.conf.d/50-synaptics.conf的設定也會失效, 再從touchegg 原始碼所理解是直接與底層驅動存取,此解法比起抽掉 GNOME 監聽touchpad 功能後重從編譯好很多  如:這裡的方法

1. Install  elantech-asustouchpad-dkms 4.0.2-1


2.Install xf86-input-synaptics and, from AUR, touchegg and touchegg-gce-git


    touchegg-gce-git為touchegg 的GUI設定工具。

3.Turn off touchpad: settings ->Mouse & Touchpad ->touchpad Off





4.新增 /etc/X11/xorg.conf.d/50-synaptics.conf


Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
        Option "TapButton1" "1"
        Option "TapButton2" "0"
        Option "TapButton3" "0"
        Option "ClickFinger2" "0"
        Option "ClickFinger3" "0"

# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-meta:ignore-configuration-errors.html
        MatchDevicePath "/dev/input/event*"


EndSection
可參考各型號 driver 設定雖然此葉面已經過有點時:
https://code.google.com/archive/p/touchegg/wikis/ConfigureDevices.wiki

參數設定: https://wiki.archlinux.org/index.php/Touchpad_Synaptics

5.要再進入桌面前啟動:

vi      /etc/profile.d/touchegg.sh


#!/bin/bash
touchegg  &  > /dev/null

6.reboot




Some of the content is thus to Multitouch gestures with the Dell XPS 13 on Arch Linux.
[註1]

xorg.conf.d/50-synaptics.conf does not seem to apply under GNOME and MATE

GNOME and MATE, by default, will overwrite various options for your touch-pad. This includes configurable features for which there is no graphical configuration within GNOME's system control panel. This may cause it to appear that /etc/X11/xorg.conf.d/50-synaptics.conf is not applied. Please refer to the GNOME section in this article to prevent this behavior.


可能有關係:


Console tools

  • Synclient (Recommended) — command line utility to configure and query Synaptics driver settings on a live system, the tool is developed by the synaptics driver maintainers and is provided with the synaptics driver
http://xorg.freedesktop.org/ || xf86-input-synaptics
  • xinput — small general-purpose CLI tool to configure devices
http://xorg.freedesktop.org/ || xorg-xinput

Graphical tools

  • GPointing Device Settings — provides graphical on the fly configuration for several pointing devices connected to the system, including your synaptics touch pad. This application replaces GSynaptics as the preferred tool for graphical touchpad configuration through the synaptics driver
https://wiki.gnome.org/Attic/GPointingDeviceSettings || gpointing-device-settings



參考:
Package Details: elantech-asustouchpad-dkms:https://aur.archlinux.org/packages/elantech-asustouchpad-dkms/
arch wiki Touchpad Synaptics:https://wiki.archlinux.org/index.php/Touchpad_Synaptics
arch wiki Touchegg:https://wiki.archlinux.org/index.php/Touchegg
Multitouch gestures with the Dell XPS 13 on Arch Linux:https://hroy.eu/tips/dell-xps-13-touchpad/

2016年4月11日 星期一

Ubuntu GNOME 14.04 touchpade setting miss

Ubuntu GNOME 14.04  touchpade  setting miss


安裝好Ubuntu GNOME 14.04後卻發現觸控版兩指以上操作都沒有辦法執行.
很像網路上ASUS  zenbook  安裝uubntu 14.04 kernel 3.19 以前都有可能這個問題,目前網路上已知就是UX303LN與UX303UB。
已經有人發布修正此問題在 Pilot6

sudo add-apt-repository ppa:hanipouspilot/focaltech-dkms
sudo apt-get update
sudo apt-get install focaltech-dkms


https://launchpad.net/~hanipouspilot/+archive/ubuntu/focaltech-dkms
http://ubuntuforums.org/showthread.php?t=2253069&page=10
http://askubuntu.com/questions/609228/asus-x750ja-and-ubuntu-gnome-14-04