LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2004, 11:06 PM   #1
Davebomb
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Rep: Reputation: 0
Changing the way x11 works


I would like to configure my Linux system to open graphical programs from a command prompt. I would like to be able to type "kwrite textfile" from the console and get the editor on that screen, without seeing any taskbar, menu, clock, preferably even without a close or minimize button. I'm going for something like from the old DOS days when I could type "edit config.sys" and use a graphical editor, then go back to text commands immediately after exiting. I would like to be able to switch between virtual terminals running different graphical programs as different users. So pressing alt-F1, logging in, and typing "firefox" would show me a browser as a normal user; but I could press alt-F2, log in as root, then use Konquerer as root - and be able to switch back and forth between the two. I want to do away with the taskbars and graphical login screens in window managers and just use X to display individual graphical programs on separate virtual terminals. It strikes me that X must have worked this way before it became more sophisticated, but I haven't been using Linux for that long.

Is this sort of thing possible with Linux and X?

Would it require running multiple X servers at the same time?

Are there any window managers or Linux distros out there setup like this?

Are there any keywords describing this kind of setup that I could google to get more info on this?
 
Old 12-29-2004, 01:08 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, you can do 'GUIEditor textfile' but I think I see your overall plan. You might try ratpoison or you might try changing your runlevel to console (usually 3) and then starting X with
xinit /path/to/editor -geometry 1024x768 -display :1 -- /usr/X11R6/bin/X :1
xinit /path/to/browser -geometry 1024x768 -display :2 -- /usr/X11R6/bin/X :2
and so on. (Assuming they accept 'geometry' args and that your display is 1024x768.)

Seems kinda weird, but I guess it'd do.
 
Old 12-29-2004, 02:27 AM   #3
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
You can do it, but you'd have to run multiple xservers.
 
Old 12-29-2004, 07:50 AM   #4
Davebomb
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks to you both. Now I know where to start.
 
Old 12-29-2004, 09:32 AM   #5
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
>Is this sort of thing possible with Linux and X?
Definately, I've seen things like this done before.

>Would it require running multiple X servers at the same time?
Yep.

Sorry I can't point you to a guide or anything; I don't have any handy. I know it can be done though, I've seen things like this done seperately and you wish to combine them all.

Just about anything is possible in linux
 
Old 12-29-2004, 12:42 PM   #6
RichardK
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
?????

What the hell?

In other words you want a console with graphical support right?

Well thats very easy; just don't use a windowmanger or desktop, just use one xterm or whatever.

edit your .xinitrc or .xsession file;
comment all the other lines and add the line "exec /usr/X11R6/xterm". When X11 starts up, all you're going to see is one xterm, nothing else, no windows, no borders, no taskbar, just the xterm console.
 
Old 12-29-2004, 01:14 PM   #7
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Quote:
Originally posted by RichardK
What the hell?
What do you care if that's what he wants to do. One of the greatest advantages to desktop linux is configuring it to suit your needs...not a prepackaged environment of someone else's idea of your needs.
 
Old 12-29-2004, 01:16 PM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
But he wants to have multiple apps on multiple VTs and switch between them. That would give him (basically) one app at a time on top of the xterm on one display. Plus, he'd have to create some functions I think, because he wants the true console to just pop up a graphical app and then go away again. I don't think he wants to run X or an xterm as such, and especially not launch particular apps from an xterm in X. He just wants any GUI app to come and go from the command line.
 
Old 12-29-2004, 01:46 PM   #9
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
well it won't work without X, that's for sure. Of course there is always twin...but that's not quit the same. And yeah it sounds annoying to me as well, but I have so many UI quirks that I am wont to argue with what ppl want
 
Old 12-29-2004, 02:10 PM   #10
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yeah - he needs X for this but I think he wants to pretend it isn't there. And I think twin would be the opposite of what he wants. I understand the impulse I think - to just get away from windows - not just Windows - and all the menus and icons and widgets and doohickeys, but still have graphical apps when needed. Twin would give him windowing mess without giving him graphics.

Quote:
Originally posted by BigNate
I have so many UI quirks that I am wont to argue with what ppl want
Amen - my UI is held together with so many little scriptlets and chewing gum and baling wire to get things how I want them that if I lost my configs I don't think I could ever put it back together.
 
Old 12-29-2004, 08:49 PM   #11
Davebomb
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
digiot accurately describes what I'm looking for. I want to force myself to use text commands more often so I can get used to them. And the simplicity of one gui program at a time appeals to me. I only use about five gui programs regularly at this point, so I'll see if I can write a script for each that will allow me to do this with short commands. I see now that you can specify resolutions and tty numbers with options when launching X.

I was actually hoping this would be so simple it would be a "what the hell?" kind of thing. Like it might just be a matter of setting something to "=off" in a config file. But it seems that multiple simultaneous users and vt's makes it tricky. Oh well, a good reason to learn more about Linux. Thanks again.
 
Old 12-29-2004, 11:59 PM   #12
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
You can disable all GUI and use ALT-Fx and get a new shell
... and switch between them by hitting ALT-F1/2/3/4....... / to your hearts desire.
Edit the RC<n> file and don't even start the X :-))
 
Old 12-30-2004, 03:48 PM   #13
RichardK
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
Sorry for my impatience, I misread, you also want several virtual terminals correct?

Well thats not a problem either, BadWM might be what your looking for.

It has no decorations what-so-ever except for a 1 pixel window border, and it is controlled by the keyboard. It has no menus or taskbar, just one command for launching an xterm, (default: alt-enter). It also make use of virtual desktops, which you can switch to using the Alt-number keys.

Screenshot: http://badwm.sourceforge.net/screenshots/work.png
homepage: http://badwm.sourceforge.net/


Last edited by RichardK; 12-30-2004 at 03:53 PM.
 
  


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
After changing some x11 preferences, SuSE boots in terminal only RedShirt Linux - Hardware 6 10-17-2005 07:29 PM
Core 4 - X11-devel complains about X11-libs which are installed Ephracis Fedora 3 09-05-2005 09:32 AM
Changing the timing of the screensaver from the kernel console and X11??? Shagrath239 Slackware 8 02-22-2005 09:51 PM
Boot hangs at starting X11 session after changing mouse settings in xorg.conf drlouis Slackware 9 09-10-2004 12:02 AM
Roaming X11/Xfree86, X11 proxy zapp Linux - Software 1 09-12-2003 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 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