DSL now boot as root...Forum: Other Help Topics Topic: DSL now boot as root... started by: Divago Posted by Divago on April 14 2008,09:02
Hi alli 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
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 Posted by curaga on April 14 2008,13:49
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.
Posted by mikshaw on April 14 2008,14:38
The file /KNOPPIX/.bash_profile (not /home/dsl/.bash_profile) switches you to user 'dsl' automatically at the end of the boot process.
Posted by Divago on April 15 2008,07:57
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? Posted by curaga on April 15 2008,09:47
You could just copy all hidden files from another install, for example boot DSL livecd and do a search:
Posted by Divago on April 15 2008,10:05
i suppose i need to copy only the hidden file into KNOPPIX image (i mean under /KNOPPIX dir and subdir)? btw i tried to copy /KNOPPIX/.bash_profile from another already installed dsl, but said me "disk is read only"... mmmmhhhhhhh i fear i could need to re-extract KNOPPIX iso and copy and add whatever i need into it... Posted by mikshaw on April 15 2008,12:10
If you really don't want to remaster again, you could add the contents of that file to the end of /opt/bootlocal.sh (and make sure it gets backed up) and see if that works. I assume bootlocal is the last boot file to be run by root, but I'm not positive.
As far as I know, all other dot files should have been copied. When you do cp -r on a directory it copies everything in that directory. If you do cp .file directly, that file is copied. BUT if you try to copy the hidden file in a glob ("copy *", for instance), it doesn't get seen. Posted by Divago on April 15 2008,12:53
Nice i barba-tricked it and now it seems to work \o/ tyvm btw, i think i'll remaster the image (as soon as i got some time to do it >_< and this will means "never" ) because seems to me a more "clean" way to solve the problem anyway, thanks |