LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-19-2014, 03:08 PM   #1
WildDrake!
Member
 
Registered: Dec 2003
Location: Current Location: Colorado
Distribution: Ubuntu 14.10, Mint 17.1 Cinnamon and Mate
Posts: 101

Rep: Reputation: 15
Smile Add a Desktop callable from the commandline


Ubuntu 13.04 Server

I want to be able to call/launch a light weight desktop, such as LXDE via the commandline when I need it, and then turn it off when I am finished using it. I don't want it to launch automatically on bootup.

I am going to try to set this up in a Linux Container (LXC).

Does anyone know how to do this?

Thanks for your thoughts and suggestions!
 
Old 01-19-2014, 09:01 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Install the software (X if it's not already installed plus the LXDE packages), then create an (dot)xinitrc file (if one is not already present, and it likely isn't) to call it from the command startx.

If you are not currently booting to a graphical interface, installing the desktop package should not change that; just make sure you don't install a DM (graphical Display Manager--that's the program that handles graphical the graphical login and session chooser) along with the desktop package.

The Arch wiki has a good article on .xinitrc files to get you started. A web search for "using xinitrc" will turn up much more.

The .xinitrc I'm using now consists of one line:

Code:
exec startfluxbox
Note that, in many distros, editing /etc/inittab to boot to runlevel 3 instead of 4 will give you a command line login (3 = command line, 4 = GUI), but in Debian and many of its derivatives, runlevels 2-5 are treated the same as regards the login by default.

Here's an article on runlevels in Ubuntu: http://www.pathbreak.com/blog/ubuntu...jobs-explained

Last edited by frankbell; 01-19-2014 at 09:11 PM.
 
Old 01-20-2014, 01:29 PM   #3
WildDrake!
Member
 
Registered: Dec 2003
Location: Current Location: Colorado
Distribution: Ubuntu 14.10, Mint 17.1 Cinnamon and Mate
Posts: 101

Original Poster
Rep: Reputation: 15
Thanks FrankBell!

I will start with searching the Arch wiki for .xinitrc files....as right now I have been getting a Gtk-Warning: cannot open display. Sounds like an .xinitrc file is what I need.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop add on kiyoshi7 Programming 5 06-28-2012 02:26 PM
[SOLVED] Need advice on installing GNOME desktop in a commandline install of Debian MostViktorious Debian 5 01-06-2012 06:13 AM
Add launchers to desktop in Java Desktop System omega71122 Solaris / OpenSolaris 6 01-31-2006 05:15 PM
Add a new Desktop Environment justintime32 Mandriva 5 02-26-2005 12:19 PM
C callable IP settings iftiuk Linux - Networking 3 04-30-2004 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration