LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-17-2011, 02:03 PM   #1
cryptonoia
LQ Newbie
 
Registered: Dec 2010
Location: Virginia
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
Start graphical program from console mode


How might I start a graphical program - say Firefox - from console mode, ie, runlevel 3 on Slackware current? I understand I'd need to start the X server, but I want to know if it's possible to do that without loading XFCE or whatever, and if so how, and whether I'd have a mouse, &c. Thanks.
 
Old 08-17-2011, 02:15 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Yes, you don't need any window manager to run graphical program. But be aware, that you cannot easily control, for example, its window size, there be no window title with buttons to close or maximize, etc. X server is run through "xinit" command, so you can enter:
Code:
xinit /usr/bin/firefox
After closing Firefox, the X server automatically exit. Look "man xinit" for more.

The mouse and keyboard are not mandatory, perhaps you will need to adjust "AutoEnableDevices", "AllowMouseOpenFail", "AutoAddDevices" settings in xorg.conf.

Last edited by eSelix; 08-17-2011 at 02:23 PM.
 
1 members found this post helpful.
Old 08-17-2011, 09:30 PM   #3
cryptonoia
LQ Newbie
 
Registered: Dec 2010
Location: Virginia
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by eSelix View Post
Yes, you don't need any window manager to run graphical program. But be aware, that you cannot easily control, for example, its window size, there be no window title with buttons to close or maximize, etc. X server is run through "xinit" command, so you can enter:
Code:
xinit /usr/bin/firefox
After closing Firefox, the X server automatically exit. Look "man xinit" for more.

The mouse and keyboard are not mandatory, perhaps you will need to adjust "AutoEnableDevices", "AllowMouseOpenFail", "AutoAddDevices" settings in xorg.conf.
Excellent, worked like a charm. I noticed a few quirks, as you mentioned there would be - window size was not full screen, and I couldn't actually use menus because when I clicked on a menu and moved a mouse, the menu disappeared. I had to Ctrl-Q to exit, but, as you said, it took me right back to the console. I'll play around with this some more, thank you.
 
  


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
Automatically start graphical (SDL) program as root on non-graphical Debian the_merovingian Debian 1 03-03-2009 03:20 PM
From console mode to x graphical mode gubak Linux - Newbie 3 12-13-2005 04:18 PM
cannot start the graphical mode fakie_flip *BSD 11 09-21-2005 03:00 PM
start in text mode instead of graphical inc0gs Linux - Software 3 01-27-2005 03:23 PM
accessing text console in graphical mode? b123coder Linux - Software 1 11-17-2004 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:17 AM.

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