Skip to content

Instantly share code, notes, and snippets.

@lassekongo83
Last active October 9, 2019 08:54
Show Gist options
  • Save lassekongo83/c217ed74073522afaa612f322d1e870b to your computer and use it in GitHub Desktop.
Save lassekongo83/c217ed74073522afaa612f322d1e870b to your computer and use it in GitHub Desktop.
.xinitrc for launching GNOME without GDM in VirtualBox
#!/bin/sh
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?* ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh &
/usr/bin/VBoxClient-all &
export XDG_SESSION_TYPE=x11
exec gnome-session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment