Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Sep 2014, 13:57
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How or where do I configure puppy to NOT start xwin at boot?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [20 Posts]   Goto page: Previous 1, 2
Author Message
Kal

Joined: 05 May 2005
Posts: 624
Location: California, High Desert

PostPosted: Mon 07 Mar 2011, 21:12    Post subject: Stop xwin  

To start without xwin, I just remark it out in /etc/profile at the bottom.

Code:
#want to go straight into X on bootup only...
 if [ ! -f /tmp/bootcnt.txt ];then
  touch /tmp/bootcnt.txt
  # aplay -N /usr/share/audio/bark.au
  dmesg > /tmp/bootkernel.log
  #exec xwin                                                            #Just add the # here
 fi
fi


Kal
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 2161
Location: The Blue Marble

PostPosted: Mon 07 Mar 2011, 21:38    Post subject:  

jamesbond wrote:
Edit /etc/rc.d/rc.local and add the following code. If it works, let me know - I'll explain why it works. If it doesn't work - well, I don't need to explain anything right? Laughing
Code:
touch /tmp/bootcnt.txt

If you see the code in Kal's posting above, before it runs xwin, it checks whether a file /tmp/bootcnt.txt exists. So the trick is just to create this /tmp/bootcnt.txt (touch /tmp/bootcnt.txt does exactly that) before /etc/profile is run - and rc.local is the right place, as it is run before /etc/profile.
And yes, this is what pfix=nox actually does. Pfix=nox doesn't work in full install because the code that interprets this only exists in initrd.gz, and full-install doesn't use initrd.gz. (In fact, all other puppy boot parameters will not work in full install).

cheers!

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
Kal

Joined: 05 May 2005
Posts: 624
Location: California, High Desert

PostPosted: Tue 08 Mar 2011, 00:39    Post subject:  

I only offered my way as an alternative because jamesbond was not sure it would work.

Quote:
If it works, let me know - I’ll explain why it works. If it doesn’t work - well, I don’t need to explain anything right?


I have finally tested jamesbond’s way, it does work and is more technical, but, in the end I believe they both work. I’ve just been using my simple way for years. Good work jamesbond.

Kal
Back to top
View user's profile Send private message 
ap72

Joined: 27 Feb 2011
Posts: 30

PostPosted: Tue 08 Mar 2011, 11:20    Post subject:  

editing rc.local with- touch /tmp/bootcnt.txt worked great,thankyou mr bond,james bond,who da man you da man! Very Happy
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Tue 08 Mar 2011, 12:03    Post subject:  

Thanks to put light on the bootcnt.txt file .
I must say , that I thought it would have something to do with ¨bootcritical¨ or something like that ( to be read from "pfix=rdsh" mode .... ) .
But must be somethig like "bootconsoleandterminal" . Cool

I still will have to look a lot into /etc/rc.d and for myself I would have placed `xwin` in the rc.sysinit file and not in a configuration file, that is read all the time when launching a[n] [u]rxvt .

On the one hand I had no cause to delete this always empty bootcnt file , but on the other hand I could have done it and would have been wondering about messages like ¨X already running on display 0¨ Very Happy
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [20 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0538s ][ Queries: 13 (0.0061s) ][ GZIP on ]