apt-get update
apt-get install xorg lxde-core tightvncserver
tightvncserver :1
tightvncserver -kill :1
vi ~/.vnc/xstartup
lxterminal &
/usr/bin/lxsession -s LXDE &
:wq
tightvncserver :1
wget –no-check-certificate https://download-installer.cdn.mozilla.net/pub/firefox/releases/46.0.1/linux-x86_64/en-US/firefox-46.0.1.tar.bz2
apt-get install bzip2
tar -xjf firefox-46.0.1.tar.bz2
mv firefox/ /usr/local/lib/
ln -s /usr/local/lib/firefox/firefox /usr/bin/firefox
apt-get install flashplugin-nonfree
apt-get install ttf-wqy-microhei
#
tightvncserver -kill :1
tightvncserver :1
#修改vnc端口
vi /usr/bin/tightvncserver
change:
$vncPort = 5900 + $displayNumber;
to:
$vncPort = 5500 + $displayNumber;
change:
unless (bind(S, sockaddr_in(5900 + $n, &INADDR_ANY))) {
to:
unless (bind(S, sockaddr_in(5500 + $n, &INADDR_ANY))) {
:wq
/usr/bin/firefox -new-tab https://www.itkylin.com