HOWTO: StartX automatically on Login – Ubuntu
For those wanting a lightweight system, Gnome applications like GDM are simply too big.
Here’s a quick and simply way to startup your graphical environment automatically from the command line login, be it Gnome or Openbox.
This howto comes with help from the Arch Wiki.
First open up a terminal (Applications>Accessories>Terminal) and type
sudo cp /etc/skel/.profile ~/
This copies a skeleton bash .profile to your home directory. Next, open it up with your preferred text editor or simply use
nano ~/.profile
Next, type the following at the bottom of the script, or if you can copy and paste, copy the following, and use Shift+Ctrl+Ins to paste it.
#Startx Automatically if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then . startx logout fi
If using nano, press Ctrl+X then Shift+Y to exit and save.
That’s it. When you reboot next, simply type in your user name and password, and X will start up automatically.
Filed under: Operating Systems, Ubuntu | 6 Comments
Tags: Arch, Gnome, Openbox, StartX, Ubuntu
- AMD64 Apt Apt-Cacher Apt-Cacher-NG Arch ArchBang Artic Silver 5 Backups Bang86 Broadband Celeron CentOS Cleaning Clonezilla Compiz Conky copy recursively CPU Crunchbang Debian DPKG Ebay find Firefox Flash Gnome GRUB GTk Hardware Heatsink HowTo Jesred Karmic Laptop Linux LUbuntu Maverick Network New Computer NTFS Nvidia Office 2007 Openbox Operating Systems Packages Packard Bell Pentium Pentium IV Perlico PIII postaweek2011 Posts Proxy RAID Repairs RSync Sensors Server Size Mismatch Snow Squid SSH Synaptic System64 Tecra terminal commands Themes Ubuntu Upgrade USB VNC W2K3 Windows Wine Xubuntu 9.10
Top Posts
Archives
-
Join 86 other subscribers
Meta
-
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported License.
just what I was looking for ๐
Good to hear!
thank you……………..
You’re welcome…… ๐
did not work on ubuntu 12.04 LTS.
there is a note in the file that mentions that the file is not read by bash, if ~/.bash_profile or ~/.bash_login exists
Thank you, but it didnt work on my Ubuntu 12.04 LTS either. Is there a modification required?