LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-06-2008, 08:42 AM   #1
Eredeath
Member
 
Registered: Jul 2008
Distribution: Arch
Posts: 41
Blog Entries: 3

Rep: Reputation: 16
General question on program running in console


So I was running X desktop (KDE) on my Slackware 12.1 machine and read something about opening up a new shell (idk if that’s the right term for it). I pressed atl+ctrl+F2 and it brought me to a new login screen (as you all know). Thinking “this is cool” I tried to return to my desktop by pressing alt+ctrl+F1 and found another shell with X running in it but could not do anything, could not return to my KDE desktop, exit out, nothing… I also notice when I’m in KDE running Konsole and type in a program like conky, for instance, that shell is no longer usable for anything, I can’t do anything with it. So my question is, is there a shortcut key (or something) that will bring me out of the program’s script so I can use the shell, or a way for me to “talk” to the program?

Thanks
 
Old 08-06-2008, 08:57 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

It's Alt-F7 to get back to the GUI.

The shell at F1 is the shell that X was started from. There's not really a lot you can do from there as X doesn't take input from std in. You could do Ctrl-Z to pause X, and use the shell, but there's not a lot of point.

Dave
 
Old 08-06-2008, 09:00 AM   #3
Eredeath
Member
 
Registered: Jul 2008
Distribution: Arch
Posts: 41
Blog Entries: 3

Original Poster
Rep: Reputation: 16
cool, thank you
 
Old 08-06-2008, 09:58 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
ctrl+alt+f1 though ctrl+alt+f6 will take you to virtual terminals, ctrl+alt+f7 will take you back to your graphical desktop.
 
Old 08-06-2008, 12:57 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Just to add to your confusion, the X-server can, in fact, have more than one terminal running a X display. So you can, in principle, have GNOME running on tty7, KDE on tty8, XFM on tty9, WM on tty10. With different users logged in to each one, if you wish. You would switch between them with Clt-Alt-[7-10].

In fact, KDM (the version 3 release) and KDE3 provides a "Switch User" option on the main menu which starts another X session on the "next" available tty. You can use it to have separate X-window sessions with different (or the same) users using different (or, again, the same) window managers. (I haven't yet looked at KDE 4.1 to see if the "Switch User" functionality has been restored because Fedora 9 makes it almost impossible to use the KDM instead of GDM, and I mostly use F9.)
 
Old 08-06-2008, 01:06 PM   #6
Eredeath
Member
 
Registered: Jul 2008
Distribution: Arch
Posts: 41
Blog Entries: 3

Original Poster
Rep: Reputation: 16
"Just to add to your confusion, the X-server can, in fact, have more than one terminal running a X display. So you can, in principle, have GNOME running on tty7, KDE on tty8, XFM on tty9, WM on tty10. With different users logged in to each one, if you wish. You would switch between them with Clt-Alt-[7-10]."

That is super cool how do i run GNOME or XFM on a diffrent server? The only thing i know is the "startx" command... is there another one that will start up XFM (which i think is native on Slackware)?

Last edited by Eredeath; 08-06-2008 at 01:07 PM.
 
Old 08-06-2008, 02:19 PM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Well, look at the arguments to startx and the X-server. Note that you don't run a different X-server, you just have the server "service" more than one "screen" on different tty's, running different window managers on each.

A search of various fora should give you a "how-to," but -- while I know it's possible -- I've just used the KDM tools and (once, just to see if it would work) the example in (IIRC) man X to see how an old X window session would work. (The last time I used "raw" X was on a DEC workstation is Switzerland in the early 1990's, and that was somewhat more sophisticated than the session started from the example code.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Question about running a program as a service darbien Programming 12 10-25-2006 08:19 PM
general question about the console obsidianblackha Linux - Newbie 4 03-18-2005 01:27 PM
scripting or programming question - running a program ewto Linux - Newbie 2 09-05-2003 12:46 PM


All times are GMT -5. The time now is 08:47 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration