LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-08-2004, 01:23 AM   #1
spaceflounder
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Smile linux command line from KDE


Hi, I'm a newbie linux user switched from windows xp about two weeks ago. Installed Mandrake 10.0, like it very much.

However, I'm getting tired of switching to the command line every time i want to run a program without the x windows server. Is there any way I can make a application from the KDE desktop that runs a program outside of x windows automatically, sort of the way windows would let you make a shortcut that shut down windows and ran an executable?

Thanks for helping a total n00b!
 
Old 10-08-2004, 01:34 AM   #2
Malice132
Member
 
Registered: Sep 2004
Location: U.S.
Distribution: Mandrake 10.1
Posts: 41

Rep: Reputation: 15
You can right click the desktop and select:
Create New/
File/
Link to Application

Then you just setup the "shortcut" like you normally would, putting in the command line, command line options and such. Is this what you're talking about?
 
Old 10-08-2004, 02:15 AM   #3
spaceflounder
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
It's close!

But I need a shortcut that kills the X Windows server, so I can run non-x windows programs a bit faster. I can do this from the command line prompt, but I can't figure out how to make a shortcut do this.

Thank you much, though.
 
Old 10-08-2004, 02:50 AM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
To kill X, just press: Ctl - Alt - Backspace

-- J.W.
 
Old 10-08-2004, 03:52 AM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
sometimes ctrl+alt+backspace will bring you back to a login manager. If you want to work without X you can also do "init 3" as root and that kills x and you can work from the console. When you need x again, you can run "init 5" (init 4 on Slack based distros).

Last edited by reddazz; 10-08-2004 at 10:18 AM.
 
Old 10-08-2004, 08:33 AM   #6
Malice132
Member
 
Registered: Sep 2004
Location: U.S.
Distribution: Mandrake 10.1
Posts: 41

Rep: Reputation: 15
Well, if you can use "init 3" and "init 5" to kill X and bring it back, respectively, then you should be able to make a linux script that runs "init 3" first, then your program, and when your program exits runs "init 5" to bring you back to X. I would just try doing some reading about Linux scripts, and when you're able to set one up, use what I said above to create a link to your script.
 
Old 10-08-2004, 09:31 AM   #7
spaceflounder
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
sounds like it's worth a try. Thanks!
 
Old 10-08-2004, 10:28 AM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
I may be missing something here, but if you just want to run a cli command there is no need to shut down the x server, just open konsole, xterm, eterm, or one of the many other terminal emulators that run from within X.
 
Old 10-08-2004, 01:22 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
That's true, but the OP indicated he/she wanted to terminate all non-essential tasks in order to free up resources. I agree with you though, I seldom shutdown X if I need the CLI, and instead just open an console session as you describe. -- J.W.
 
Old 10-08-2004, 01:32 PM   #10
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Like I said, I may be missing something

Just seems to be an obscure thing to want to do.
 
Old 10-09-2004, 09:19 PM   #11
spaceflounder
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
actually, I'm looking to run an emulator with SVGA that doesn't like x server. I can do it fine from a virtual terminal, it's just kind of a bear to manually switch out of the GUI all the time.
 
  


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
X Windows + KDE from Command Line RedHatCore Linux - Software 1 08-11-2005 10:07 PM
start kde-panel from command line ankur_linuxfan Linux - General 3 02-09-2005 03:12 PM
It won't boot all the way to KDE, goes to command line Lfsve82 Mandriva 15 02-07-2004 11:38 AM
when i start slackware i only have a command line, how do i get to kde Longinus Slackware 8 12-13-2003 11:23 AM
KDE Command Line trumpetgirl Linux - Software 10 05-28-2003 12:38 PM


All times are GMT -5. The time now is 07:35 AM.

Main Menu
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