Created
March 8, 2016 13:49
-
-
Save CorcovadoMing/18b2ddd730116845798f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
unset SESSION_MANAGER | |
unset DBUS_SESSION_BUS_ADDRESS | |
OS=`uname -s` | |
if [ $OS = 'Linux' ]; then | |
case "$WINDOWMANAGER" in | |
*gnome*) | |
if [ -e /etc/SuSE-release ]; then | |
PATH=$PATH:/opt/gnome/bin | |
export PATH | |
fi | |
;; | |
esac | |
fi | |
if [ -x /etc/X11/xinit/xinitrc ]; then | |
exec /etc/X11/xinit/xinitrc | |
fi | |
if [ -f /etc/X11/xinit/xinitrc ]; then | |
exec sh /etc/X11/xinit/xinitrc | |
fi | |
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources | |
xsetroot -solid grey | |
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & | |
twm & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment