Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: DSL now boot as root...< Next Oldest | Next Newest >
Divago Offline





Group: Members
Posts: 83
Joined: April 2007
Posted: April 14 2008,09:02 QUOTE

Hi all
i got a dsl system frugal installed; it was used to start as user "dsl" and then start x automatically

now, to make it light and fast booting, i tweaked the KNOPPIX image file adding to it some programs, libs, apps, and modification (so i don't need to backup all this thing and booting is very fast) (1)
but then whenever it start does'nt start with user dsl, but start in shell with user "root"
if i give
Code Sample
su - dsl
it change to user dsl, and start x.

this is a problem arised from some errors in "tweaking KNOPPIX image" or there is another reason?
if i correct this problem will be other serious related problems, or will be all solved?
and then, how can i solve this (and make dsl user auto start and start x automatically)?

ty for help
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: April 14 2008,13:49 QUOTE

When you tweaked the image, did you copy the files with cp or tar? Cp does not copy hidden files while tar does, I think there are some .bash_profile's and .bashrc's you might have missed, one is even in the root of the image.

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 14 2008,14:38 QUOTE

The file /KNOPPIX/.bash_profile (not /home/dsl/.bash_profile) switches you to user 'dsl' automatically at the end of the boot process.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Divago Offline





Group: Members
Posts: 83
Joined: April 2007
Posted: April 15 2008,07:57 QUOTE

Quote (mikshaw @ April 14 2008,10:38)
The file /KNOPPIX/.bash_profile (not /home/dsl/.bash_profile) switches you to user 'dsl' automatically at the end of the boot process.

Mmmmhhhh yeah
there is no /KNOPPIX/.bash_profile file so this is the problem
maybe i did something wrong while tweaking the KNOPPIX (maybe using cp in lieu of tar, as curaga said :) i need to check the script i used to extract it... )

well, ok, tyvm now i got something to start again :)

ps: of course i suppose i could just copy /KNOPPIX/.bash_profile from another dsl system, but the problem will be for other files like .bashrc and some other... right?
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: April 15 2008,09:47 QUOTE

You could just copy all hidden files from another install, for example boot DSL livecd and do a search:
Quote
find / -name ".*"


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
7 replies since April 14 2008,09:02 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: DSL now boot as root...

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code