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: mobileHome, take my home directory everywhere< Next Oldest | Next Newest >
mancas Offline





Group: Members
Posts: 1
Joined: Dec. 2005
Posted: Dec. 05 2005,21:14 QUOTE

Hi,

I've done a partition with the label mobileHome on my usbstick. There is a file .mobileHome with my username, user-id and an encryptet password. I also added a bootlocal.sh to DSL to add my user and mount the stick to ramdisk/home/dsl while booting -  with the cmdline option mobileHome. So I looged in with my name and environment and can take my personal home with email, bookmarks a. s. o. erverywhere.

example for .mobileHome

USER=mancas
USERID=32999
PASSWD=$%&FRT

example for bootlocal.sh

#!/bin/bash
# put other system startup command here

echo dsl > /tmp/USERNAME

if egrep -q "mobileHome" /proc/cmdline 2>/dev/null; then
mount -L mobileHome /ramdisk/home/dsl
USERNAME="`cat /ramdisk/home/dsl/.mobileHome | grep USERNAME | gawk -F= '{ print $2 }'`"
USERID="`cat /ramdisk/home/dsl/.mobileHome | grep USERID | gawk -F= '{ print $2 }'`"
PASSWD="`cat /ramdisk/home/dsl/.mobileHome | grep PASSWD | gawk -F= '{ print $2 }'`"

useradd -d /ramdisk/home/dsl -g staff -G dialout,fax,voice,cdrom,floppy,tape,sudo,audio,dip \
 -u $USERID -p $PASSWD -s /bin/bash $USERNAME
echo $USERNAME ALL=NOPASSWD: ALL >> /etc/sudoers
echo $USERNAME > /tmp/USERNAME
fi


Would'nt it be nice to add this generally to the dsl? Any comments are welcome.

mancas
Back to top
Profile PM 
SaidinUnleashed Offline





Group: Members
Posts: 1428
Joined: Mar. 2004
Posted: Dec. 05 2005,22:46 QUOTE

This is already in practice with DSL.

Use the home=sda1 to use it.

You can also use a persistant /opt with the opt=sda1 code.

-J.P.


--------------
They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, cause if you play it forwards, it installs Windows.

Unleash the power of the TILDE~~~
Back to top
Profile PM AOL MSN YIM 
1 replies since Dec. 05 2005,21:14 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: mobileHome

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