Skip to content

Instantly share code, notes, and snippets.

@xluffy
Last active August 29, 2015 14:16
Show Gist options
  • Save xluffy/c5ec484f50b3daa21163 to your computer and use it in GitHub Desktop.
Save xluffy/c5ec484f50b3daa21163 to your computer and use it in GitHub Desktop.
1. OpenBox
sudo apt-get install xorg openbox
su - x
vncpasswd ->>>> gitcmnhub
#!/bin/bash
PATH="$PATH:/usr/bin/"
export USER="x"
DISPLAY="1"
DEPTH="16"
GEOMETRY="1024x768"
OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
. /lib/lsb/init-functions
case "$1" in
start)
log_action_begin_msg "Starting vncserver for user '${USER}' on localhost:${DISPLAY}"
su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"
;;
stop)
log_action_begin_msg "Stoping vncserver for user '${USER}' on localhost:${DISPLAY}"
su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"
;;
restart)
$0 stop
$0 start
;;
esac
exit 0
/home/x/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
export XKL_XMODMAP_DISABLE=1
/usr/bin/openbox-session &
chmod +x /home/x/.vnc/xstartup
lxde
apt-get install lxde-core
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
export XKL_XMODMAP_DISABLE=1
lxterminal & /usr/bin/lxsession -s LXDE &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment