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

2011年10月13日 星期四

Set up FreeNX with LXDE on Arch Linux

1. install poptop server
pacman -S pptpd
2. edit the configuration file
vim /etc/pptpd.conf
--

option /etc/ppp/pptpd-options
localip 172.16.1.254
remoteip 172.16.1.1-253
localip is ip of pptp server
remoteip is the ip range which vpn client will get from

3. edit /etc/ppp/pptpd-options
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
ms-dns 168.95.1.1
ms-dns 168.95.192.1
require-mppe-128 enables encryption
ms-dns is dns server address

4. start pptp server
/etc/rc.d/pptpd start
5. add username and password to /etc/ppp/chap-secrets for ppp authentication
<username>     pptpd     <password>   *
6. make your iphone be a pptp client, General -> Network -> VPN -> Add a VPN -> PPTP
then fill all required fields and save

7. turn on VPN then you'll see the timer start timing

2009年3月20日 星期五

Install VNC Server on Xubuntu

vino isn't integrated into xfce, which is same vnc server that gnome uses for remote desktop feature

1. install vino

sudo apt-get install vino

2. open the config window, totally as same as gnome's

vino-preferences

3. Application -> Settings -> Setting Manager -> Autostarted Apps -> Add -> Command:

/usr/lib/vino/vino-server

4. run vino-server from ssh session

export DISPLAY=:0


/usr/lib/vino/vino-server &

2007年11月24日 星期六

Setup, Connect, Remove xrdp server on Linux

xrdp is an open source remote desktop protocol(rdp) server.

--To Install
1. download the source code from http://xrdp.sourceforge.net/
2. extract the tarball

tar -zxvf xrdp-0.4.0.tar.gz

3. switch to the folder then complie

make

4. as root, execute the installing script

sudo make install

5. remember to allow port 3389 in firewall
6. as root, run the service

sudo /usr/local/xrdp/xrdp_control.sh start

7. select Module "console" from menu then type the password you set for VNC while connecting to it

--To completely remove xrdp
remove directory /usr/local/xrdp
remove directory /etc/xrdp
remove file /var/run/xrdp.pid
remove file /var/run/sesman.pid
remove any startup links added to /etc/init.d or /etc/rcX.d

2007年7月5日 星期四

Set vncserver on CentOS

1. vi /etc/sysconfig/vncservers
uncomment # VNCSERVERS="2:myusername"
2. locally log in the user you want to connect via vnc then type vncpasswd
3. vi /home/$user/.vnc/xstartup
replace "twm &" with "exec gnome-session &"
4. allow the vnc tcp port of firewall, display 2 is equal to port 5902