ubuntu 遠端連線設定

安裝ssh
#sudo apt-get install openssh-server

啟動ssh
sudo  /etc/init.d/ssh  start

啟動/關閉 firewall
sudo ufw enable
sudo ufw disable

允許/不允許 port : 22
sudo ufw allow 22
or
sudo ufw allow 22/tcp
sudo ufw allow 22/udp

sudo ufw deny 22

ubuntu 14 xrdp (port  : 3389)

安裝
sudo apt-get install xrdp

啟動

sudo service xrdp start




ubuntu 12.10 xrdp (port : 3389)

1. install xrdp
sudo apt-get install xrdp

2. install fallback
sudo apt-get install gnome-session-fallback

3. logout and login again by gnome theme. You can choose theme before log in..

4. open terminal by ctrl alt t , then input
echo "gnome-session --session=gnome" > ~/.xsession

5. sudo gedit /etec/xrdp/startwm.sh
. /etc/X11/Xsession
to
. /home/<user name>/.xsession

6. sudo /etc/init.d/xrdp restart

安裝samba

主要能和windows share folder connection


sudo apt-get install samba
sudo service smbd start







Reference :

https://help.ubuntu.com/community/UFW
https://bugs.launchpad.net/ubuntu/+source/xrdp/+bug/1069272



留言

這個網誌中的熱門文章

Git 不是内部或外部命令

Google Blogger 程式碼底色改變