[VPS] 在ubuntu 安裝 ebesucher restarter

已安裝:
.vncserver
.firefox

 

sudo ln -fs /root/firefox/firefox /usr/bin/

 

一、先安裝java
(因為運行ebesucher restarter需要java,即使你日後不用restarter,但要用到java,也可參考這幾句指令)
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java7-installer -y
(接下來要選2次yes)

java -version(檢查java是否安裝完成)

apt-get install unzip

 

 

nano /root/.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 &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
java -jar restarter.jar &
firefox

 

你可能感兴趣的:(ubuntu)