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
 

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

reply to topic new topic new poll
Topic: root login and more< Next Oldest | Next Newest >
monica Offline





Group: Members
Posts: 5
Joined: Dec. 2006
Posted: Jan. 02 2007,02:22 QUOTE

Hello,
a few newbie questions.
Im working a DSL remaster and want to make the CD boot directly into fluxbox as root, actually getting rid of the dsl user for good.
also I want to mount all disks and USB pendrives automatically at boot or, in case of a USB pendrive, if they are connected.
anyone can give me a clue?

Ciao

Monica
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 02 2007,04:44 QUOTE

look at /.bash_profile
Instead of the su command in there, try replacing it with "startx".

As far as getting rid of user dsl, you will need to make some changes to various parts of the myDSL system if you ever want to install myDSL packages after removing that user.

I must strongly suggest you NOT do this, however. Linux systems are generally designed to work quite well as a regular user so root power is recommended only when necessary.

I couldn't say precisely what would be needed to automatically mount all devices unless i knew what devices you had.  You might try adding "mount -a"  (or something similar?) to /opt/bootlocal.sh


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





Group: Members
Posts: 5
Joined: Dec. 2006
Posted: Jan. 02 2007,06:41 QUOTE

Hi Mikshaw,

thanks for your reply (by the way, I'm posting from my first working beta DSL remaster, aint that cool?)
Im gonna try the ./bash_profile modification as you suggested.
About the issues you pointed out, maybe further details about my goals are due.
This is a school project, a very specialized live CD, totally self contained.
As a matter of fact I removed all Debian packaging tools and so on.
What I put there is what gonna stay there.
So subsequent install or mydsl conflicts are not a problem.
However, I have noticed, as you say, that references to the dsl user are scattered all over the system initial configuration.
Thats basically my main concern.
I tried the mount -a command, to no avail.
The idea is to have all the devices found in the linuxrc generated fstab file, mounted at boot.
Perhaps some script I can put in bootlocal.sh?

Ciao

Monica
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 02 2007,14:29 QUOTE

I've never used mount -a myself, but I had suspicions that it wouldn't work without specifying device types.

You could maybe do
mount -a -t ext2,ext3,reiserfs,msdos,vfat,ntfs
to account for the most commonly used file systems.  Again, though, I only suggest this because it's what is said in the manual and not something I've done myself.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
3 replies since Jan. 02 2007,02:22 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: root login and more

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