LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-23-2011, 12:42 PM   #1
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Rep: Reputation: 0
Smile startx or X !!! i wanna know the difference


when i use the command startx my slackware goes to kde but when use X deos not. what is X command or whow i can make my X open kde with it
 
Old 07-23-2011, 12:59 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,237

Rep: Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605
What do you mean by "use X"?

If you want to start the X server from runlevel 3, use startx. That's what it is for.

If you want to automatically start the X server when you boot, set the default runlevel to 4. Set your default session to KDE when you log in via kdm.
 
Old 07-23-2011, 01:08 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,188

Rep: Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540
Google : what is X command
The first hit http://www.computerhope.com/unix/ux.htm

Quote:
how i can make my X open kde with it
Write the scripts, that are used when X is started. Like startx, xinitrc ...

It all starts with startx, read it with command 'cat /usr/bin/startx'.

..
 
Old 07-23-2011, 01:31 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
On Slackware we have a script "xwmconfig" it shows a list of all installed WMs and one can select one. As far as I know this scripts edits the .xinitrc

Markus
 
Old 07-23-2011, 01:53 PM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
'X' is a link to the server. If you start X directly by calling it like that, you may get funny results. Probably better to use xinit, but the best way is to simply use startx plus the appropriate *.xinitrc file as mentioned.

Are you trying to start X running kde but *not* use the kdm display/login manager?
 
Old 07-23-2011, 02:33 PM   #6
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 0
thnQ guys for fast reply

why i can't open another kde session when i type stsrtx from another console it tells me the server is busy! and only ALT+F7 works but the others i can't open kde there like ALT+F8 ......

Quote:
the best way is to simply use startx plus the appropriate *.xinitrc file as mentioned.
i don't get it !! i always run startx without arguments ,, what u mean by *.xinitrc files
 
Old 07-23-2011, 02:39 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
why i can't open another kde session when i type stsrtx from another console it tells me the server is busy!
If you already have an X session running you can hit CTRL-ALT-F1 to get to a text console, login and type
Code:
startx -- :1
Kind regards
 
Old 07-23-2011, 03:35 PM   #8
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 0
ya it works ) thx
 
Old 07-23-2011, 08:10 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 14,709
Blog Entries: 24

Rep: Reputation: 4106Reputation: 4106Reputation: 4106Reputation: 4106Reputation: 4106Reputation: 4106Reputation: 4106Reputation: 4106Reputation: 4106Reputation: 4106Reputation: 4106
"X" is shorthand for xserver package, not a program; "/usr/bin/startx" is a program.
 
0 members found this post helpful.
Old 07-23-2011, 09:19 PM   #10
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,237

Rep: Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605Reputation: 1605
Quote:
Originally Posted by frankbell View Post
"X" is shorthand for xserver package, not a program; "/usr/bin/startx" is a program.
That would be wrong.

X certainly is a program. /usr/bin/X as a matter of fact.
 
Old 07-24-2011, 02:19 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
As I said /usr/bin/X is a link to one of several servers -usually xorg, but it might be the xvesa or other server.
 
  


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
[SOLVED] [startx problem] - startx goes to black/grey screen and comes back to command prompt! iNUKE Ubuntu 13 01-07-2011 01:32 PM
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 04:26 AM
(nvidia) First startx = blank screen, second startx = works ?!? BuckRogers01 Linux - Hardware 2 04-07-2006 05:26 PM
Hint: Wanna try Linux, so wanna rig your Windows system to dual-boot? sundialsvcs Linux - Newbie 2 08-16-2005 02:56 PM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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