Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rock/vnc/zh cn

< Rock‎ | vnc
Revision as of 01:23, 28 March 2014 by Buyadong (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

设置VNC服务器

你可以通过设定VNC(Virtual Network Computing)服务器从网络上远程进入你的radxa rock桌面。 如果你还没有在你的rock板上安装VNC服务器,需要用下面的命令安装它(前提是你的板子能连接网络):

sudo apt-get install tightvncserver

第一次运行时设定密码:

root@radxa:~# vncserver                                                         
                                           
你需要设定一个进入桌面的密码:
                                                                            
Password:                                                         #(input your password here)              
Warning: password truncated to the length of 8.                                 
Verify:                                                                  #(repeat the password)       
Would you like to enter a view-only password (y/n)? n                           #(input n here)
xauth:  file /root/.Xauthority does not exist                                   
                                                                               
New 'X' desktop is radxa:1                                                      
                                                                               
Creating default startup script /root/.vnc/xstartup                             
Starting applications specified in /root/.vnc/xstartup                          
Log file is /root/.vnc/radxa:1.log
                    

现在编辑 ~/.vnc/xstartup 文件,并在 x-window-manager 后面添加一行,就像:

#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
startlubuntu &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession

现在重启VNC服务:

root@radxa:~# vncserver -kill :1
root@radxa:~# vncserver -geometry 1280x800 :1

现在Rock板子上运行的VNC服务器桌面分辨率是1280x800的。