[SOLVED] Start graphical program from console mode
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.