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.
Share this:
Like this:
Filed under: Operating Systems, Ubuntu | 2 Comments
Tags: Arch, Gnome, Openbox, StartX, Ubuntu
Tags
AMD64 Apt Apt-Cacher Apt-Cacher-NG Arch ArchBang Celeron Cleaning Clonezilla Crunchbang Debian Gnome GRUB GTk Hardware Heatsink HowTo Karmic Laptop Linux LUbuntu Maverick New Computer NTFS Nvidia Openbox Operating Systems Pentium Pentium IV Perlico postaweek2011 Posts RAID Repairs RSync Server Squid SSH System64 Tecra Themes Ubuntu USB Windows Xubuntu 9.10-
Top Posts
- HOWTO: Repair a broken Ext4 Superblock in Ubuntu
- HOWTO: Fix an NTFS partition in Ubuntu
- HOWTO: Disable Suspend and Hibernate – Ubuntu
- HOWTO: StartX automatically on Login - Ubuntu
- HOWTO: Ubuntu UPnP Server to XBox 360 using uShare
- HOWTO: Mount Partitions in Terminal - FSTab
- HOWTO: Completely Remove ubuntu-desktop
- HOWTO: Apt-Cacher-NG on Ubuntu
- HOWTO: Switch Workspaces Using Your Mouse - Compiz
- HOWTO: Conky - IP monitor
Archives
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!