mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: July 19 2005,14:55 |
|
The comments (lines starting with #) were in hopes of making it understandable-ish. It does the following just before dsl logs in, as long as the customized /opt/bootlocal.sh is properly inserted into the system via restore or myDSL: Mount the partition on which Ubuntu is installed, so now you'll have a /mnt/hda1 which contains all of your Ubuntu files. Remove the current /home, which is a symlink to /KNOPPIX/home. Create a /home/dsl directory so you'll have a mountpoint for Ubuntu home. Mount the Ubuntu user's home directory to /home/dsl. "mount --bind" is used because the partition is already mounted, and using a symlink instead of mounting would make things ugly and incovenient. The result is that your system will look the same, except your home will be the same directory as the one in Ubuntu. It will be mounted as /home/dsl, so only the contents of that directory will be different than the default DSL system. Keep in mind that a few things may need to be copied over from DSL, such as .filetool.lst, .xserverrc, etc. This is the main reason i do not specifically recommend sharing homes...there may be issues with same config files needing to be different in each system.
One important thing i forgot to mention is that you will need to have either the same user ID or group ID (or preferably both) in DSL and Ubuntu. The usermod command will accomplish this task. If not, you will have problems with file permissions. http://www.die.net/doc/linux/man/man8/usermod.8.html To make things easier, I've changed my main user in both Slackware and Suse to UID 1001 and GID 50 (the default uid and gid of user dsl), so i can read and write all i want between the 3 systems, and all three see me as the same user. The difference with what i'm doing is that I am not sharing homes...sharing only a user. The bootlocal.sh script I use only to make a persistent home from a subdirectory (is that even necessary anyore?), but I posted it because it *can* be used to share a home.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|