ubuntu
时间:2010-08-20 来源:75106500
sudo gedit /etc/apt/sources.list(源)
deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
sudo apt-get update(更新源)
sudo gedit /etc/apt/apt.conf (更新源)
Acquire::http::Proxy "http://d10d041:[email protected]:3128";
Acquire::http::Proxy "http://masstopd10d041:[email protected]:3128";
Acquire::http::Proxy "http://d10d041:[email protected]:3128";
sudo apt-get install vnc4server
vnc4server
sudo gedit /home/stu/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 1024x768+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &
vnc4server -kill :1
vnc4server
sudo gedit /home/stu/.vncrc
#配置X系统为xorg
$XFconfigPath = "/etc/X11/xorg.conf";
# 启动默认Xsession
$vncStartup = "/etc/X11/Xsession";
#分辨率
$geometry ="800x600";
vnc4server -kill :1
vnc4server
sudo gedit /etc/default/rcS
#
# /etc/default/rcS
#
# Default settings for the scripts in /etc/rcS.d/
#
# For information about these variables see the rcS(5) manual page.
#
# This file belongs to the "initscripts" package.
TMPTIME=0
SULOGIN=no
DELAYLOGIN=no
UTC=no
VERBOSE=no
FSCKFIX=no
相关阅读 更多 +