Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Desktop / X-Windows > Running GUI applications without GNOME or KDE

Forgot Password?
 Linux Desktop / X-Windows   Anything X. Gnome, KDE, remote desktop's, XGames etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-20-2007   #1 (permalink)
Just Joined!
 
Join Date: Jun 2007
Posts: 8
Question Running GUI applications without GNOME or KDE

I woluld like to know if it is possible to run a GUI application that uses high resolution display without having to lounch the desktop system such GNOME or KDE.
Just have one graphic application running like for example "Mozzilla Firefox" and that being the only application on the screen.
It's that possible? And if it is, can you tell me how to do it?
Thanks a lot.
tiziano-m is offline  



Reply With Quote
Old 06-20-2007   #2 (permalink)
Linux Engineer
 
Javasnob's Avatar
 
Join Date: Jul 2005
Location: Wisconsin
Posts: 942
It's very possible. Just adjust your .xinitrc accordingly and make sure a display manager isn't running.
__________________
Flies of a particular kind, i.e. time-flies, are fond of an arrow.

Registered Linux User #408794
Javasnob is offline   Reply With Quote
Old 06-20-2007   #3 (permalink)
Linux Enthusiast
 
apoorv_khurasia's Avatar
 
Join Date: Feb 2005
Location: Laurasia
Posts: 624
Your .xinitrc by default contains a command to launch a display manager and the tty reserved for it. Make sure it does not contain a command such as
Code:
exec startkde
__________________
"There is no sixth rule"
--Rob Pike
Registered Linux User: 400426 home page
apoorv_khurasia is offline   Reply With Quote
Old 06-20-2007   #4 (permalink)
Linux Engineer
 
Javasnob's Avatar
 
Join Date: Jul 2005
Location: Wisconsin
Posts: 942
That's not necessarily true; most systems run the display manager as root (in fact, I'm fairly certain that most display managers won't let you run them as non-root) and as a system service. For example, running gdm for me on Arch would be something like running /etc/rc.d/gdm start, or adding gdm to my rc.conf file.

So what you need to do is disable the display manager (if you're using Arch, remove it from rc.conf), and edit $HOME/.xinitrc to exec firefox or whatever you want to do.
__________________
Flies of a particular kind, i.e. time-flies, are fond of an arrow.

Registered Linux User #408794
Javasnob is offline   Reply With Quote
Old 06-20-2007   #5 (permalink)
Just Joined!
 
Join Date: Jun 2007
Posts: 8
Hi guys, I'm running Debian I already disabled the desktop manager, so I'm in my bash shell (if I need the desktop I type 'startx').
Back to the pure shell if I type the name of a GUI executable from the pure bash I get an error message complaining about the display.
Now the question is: how or what other component do I need to invoke togheter with the GUI application that allows to use the high resolution display to run that single application?
Thanks
tiziano-m is offline   Reply With Quote
Old 06-20-2007   #6 (permalink)
Linux Enthusiast
 
apoorv_khurasia's Avatar
 
Join Date: Feb 2005
Location: Laurasia
Posts: 624
I would suggest to make a script with the following contents ..lets call this script klaunch (k being the initial of my family name )
Code:
#!/bin/bash
rm ~/.xinitrc
echo exec $1 > ~/.xinitrc
startx
Add this script in your path (or place it in /usr/bin)
Now to start firefox we would say
Code:
klaunch firefox
To launch kde say
Code:
klaunch startkde
In fact if you want uniformity you can declare cases and then use shortcuts!!!
__________________
"There is no sixth rule"
--Rob Pike
Registered Linux User: 400426 home page
apoorv_khurasia is offline   Reply With Quote
Old 06-21-2007   #7 (permalink)
Just Joined!
 
Join Date: Jun 2007
Posts: 8
Red face Semi Success!

Hi apoorv, thanks for your help, I tried your suggestion and it worked !!
It works with Firefox and others, but for some reason it doesn't work with rdesktop (the termnal services client to control a MS Windows machine)
I tried it with -g 1024x768 (geometry) option and also -f (full screen). [those options work fine if I start it from the Gnome desktop]
It just fails from the pure bash, and the error message gets lost when it comes back to text mode.
I guess rdesktop accesses X in a different way than other applications?
Any clues?
Thanks.
tiziano-m is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:56 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1