Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
02-01-2014, 02:23 AM
|
#1
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Rep:
|
start x server without window manager?
hello!
i see around for subj.
want to get to work boinc computions on my server, using ATI videocard gpu, but there is a problem - boinc not see the GPU unless X is started. on server i not neet GUI, as so, a naked X server without window manager be ok for me in that situation, i think, but i never do that problem previous - in past i start x server only when i need a GUI....
|
|
|
02-01-2014, 04:00 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,072
|
Hide /etc/X11/(xinit/)xinitrc which can possibly live in /usr/X11R6/lib64/X11/xinit/
The window manager is set there.
|
|
|
02-01-2014, 04:42 AM
|
#3
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Alternatively, start X with a self written WM that does nothing.
An example for a simple dummy WM, written in Ruby:
Code:
#!/usr/bin/ruby
sleep
This "WM" will after starting just put itself into sleep, using no CPU time, and sleep indefinitely.
To start X with that dummy WM, just run
Code:
xinit /path/to/dummy-WM-script
|
|
|
02-01-2014, 06:39 AM
|
#4
|
Member
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594
Rep:
|
What might work is start kdm in rc.local and change in kdmrc
Quote:
StaticServers=:0
# List of on-demand displays. See StaticServers for syntax.
# Default is ""
ReserveServers=:1,:2,:3
|
to
Quote:
#StaticServers=:0
# List of on-demand displays. See StaticServers for syntax.
# Default is ""
ReserveServers=:0,:1,:2,:3
|
so that if you want a gui you can just use startx.
|
|
|
02-01-2014, 07:40 AM
|
#5
|
Member
Registered: Nov 2013
Posts: 746
Rep:
|
try
/usr/bin/X
|
|
|
02-01-2014, 12:55 PM
|
#6
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
You can always use "startx application".
I believe that bypasses the default startup script used when there are no applications specified.
|
|
1 members found this post helpful.
|
02-01-2014, 01:52 PM
|
#7
|
Member
Registered: May 2010
Posts: 621
Rep:
|
If you go to runlevel 4 and kdm starts, you can simply log into "failsafe" session.
|
|
|
02-01-2014, 02:31 PM
|
#8
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by qweasd
If you go to runlevel 4 and kdm starts, you can simply log into "failsafe" session.
|
You don't even need to. If the whole goal is to start X you have reached that goal already when a display manager like KDM is running. Though in this case I would choose a more lightweight option, like XDM.
|
|
|
02-02-2014, 11:14 AM
|
#9
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
Alternatively, start X with a self written WM that does nothing.
An example for a simple dummy WM, written in Ruby:
Code:
#!/usr/bin/ruby
sleep
This "WM" will after starting just put itself into sleep, using no CPU time, and sleep indefinitely.
To start X with that dummy WM, just run
Code:
xinit /path/to/dummy-WM-script
|
sorry, that not works. i try, and it looks like to initialized videocard ( you know, that thing, when vcard switching to graphics mode) and then got out with error message - something like "use sleep --help" at the end. sadly, i cannot paste full error output, but i think, you can easy replicate that
|
|
|
02-02-2014, 11:16 AM
|
#10
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Original Poster
Rep:
|
Quote:
Originally Posted by genss
try
/usr/bin/X
|
try. on that, my coputer lock up. cannot switch to another terminals ( ctrl+alt+Fx), not also numlock reaction on keyboard...
|
|
|
02-02-2014, 11:17 AM
|
#11
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Original Poster
Rep:
|
Quote:
Originally Posted by qweasd
If you go to runlevel 4 and kdm starts, you can simply log into "failsafe" session.
|
i plan to do that on my small server. i do not need runlevel 4 on server, nor also any GUI. x server i need because boinc cannot see ATI GPU until X is running...
|
|
|
02-02-2014, 11:54 AM
|
#12
|
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Rep:
|
Quote:
Originally Posted by WiseDraco
sorry, that not works. i try, and it looks like to initialized videocard ( you know, that thing, when vcard switching to graphics mode) and then got out with error message - something like "use sleep --help" at the end. sadly, i cannot paste full error output, but i think, you can easy replicate that
|
Make sure you use the right shebang: sleep in this case is a ruby function/method, not sleep(1).
|
|
|
02-02-2014, 12:14 PM
|
#13
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Original Poster
Rep:
|
Quote:
Originally Posted by lems
Make sure you use the right shebang: sleep in this case is a ruby function/method, not sleep(1).
|
bash-4.2$ /usr/bin/ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
you test that solution, and it work for you?
|
|
|
02-02-2014, 12:22 PM
|
#14
|
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Rep:
|
Hi,
yes, the code TobiSGD posted worked for me.
Code:
cat << EOF > $HOME/dummy.rb
#! /usr/bin/env ruby
sleep
EOF
chmod +x $HOME/dummy.rb
xinit $HOME/dummy.rb
and then I get a black screen (make sure the script is executable).
lems
|
|
|
02-02-2014, 12:36 PM
|
#15
|
Member
Registered: Nov 2013
Posts: 746
Rep:
|
Quote:
Originally Posted by WiseDraco
try. on that, my computer lock up. cannot switch to another terminals ( ctrl+alt+Fx), not also numlock reaction on keyboard...
|
probably doesn't have permission to get input
my bad
bdw you can use "sleep 100d" to sleep for a 100 days, if you don't want to load ruby
|
|
|
All times are GMT -5. The time now is 12:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|