mobileHomeForum: DSL Ideas and Suggestions Topic: mobileHome started by: mancas Posted by mancas on Dec. 05 2005,21:14
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 Posted by SaidinUnleashed on Dec. 05 2005,22:46
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. |