LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-02-2005, 09:59 PM   #1
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
sharing /home between slack & gentoo ??


OK - so I read that it could be done some time ago - and my new HDD configuration
just seemed to fit the bill.

I'm sharing /home/<username's> between Slack and Gentoo.

But, its gonna be a nightmare to get everything working right. For example, since I'm
using kde (primarily right now), Slack installes kde in /opt/kde, but gentoo installs kde
in /usr/kde. So my ~/.xinitrc can only be modified for only one OS. So I made an alias
to start X in slack. Thats fine for me, but not for my wife. So I made slack boot to
runlevel 4 - thats all fine and dandy.

Then come font paths, kde settings, etc, etc, etc. Even if I try to localize (wallpapers,
fonts, icons, program paths, etc) as much as I can, I'm affraid that I'm gonna continually
run into small problems here and there - and thats not what I need right now. I need a
problem free (maintenance free) computer for the next 6-8 months at least.

So my question is, has anyone here SEAMLESSLY shared thier home directory between
2 different versions of linux? And if so, how much trouble was it to get working
seamlessly?? Or is it more trouble then its worth.

-tw

p.s. - I really don't want 2 different users and symlinks to achive my goal.

(drive configuration (simple version) )
sda - slackware
sdb - gentoo
sdc - home
sdd - home_backup
 
Old 05-02-2005, 11:24 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Re: sharing /home between slack & gentoo ??

Quote:
Originally posted by tw001_tw


So my question is, has anyone here SEAMLESSLY shared thier home directory between
2 different versions of linux? And if so, how much trouble was it to get working
seamlessly?? Or is it more trouble then its worth.

my /home is shared between 3 linux setups........slack 10, 10.1, and LFS..........
it was no trouble to get working because I use a different username in each distro........on a 75 gig drive, my /home partition is 25 gigs to make sure I never run out of space.........
 
Old 05-02-2005, 11:35 PM   #3
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551

Original Poster
Blog Entries: 4

Rep: Reputation: 31
freakyg said:
Quote:
...because I use a different username in each distro.
Thanks for the response, but thats not what I want to do. I'm looking into the feasability to
use the same user (and same /home<username> directory) for differnet distros. I want to make sure any work I do in 1 distro, I have in the other, for example:
/home/<username> /documents , or /home/<username>/mail.

I considered using 2 users, and placing symlinks on important directories (like mail, documents,
pcitures, work) and the more thinking/reading I do, this looks like what I might end up doing.

I also considered using 2 different users and using some type of rsync command at startup - since I would seldom obtain a LOT of new info, it shouldn't increase boot time too much. But then my info would be in 3 places (taking up excessive disk space), 2 /homes, and 1 on the backup drive.

Still searching and thinking. thanks though for the input.
-tw

Last edited by tw001_tw; 05-02-2005 at 11:39 PM.
 
Old 05-03-2005, 03:17 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Why not create a symlink in gentoo like :
ln -s /usr/kde /opt/

(same for font path, etc...)
I know it is not a easy solution, but it should work
 
Old 05-03-2005, 03:35 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Dueling Distro's

With 3 distro's changing the ~/.kde and Desktop directories, I wonder if that could cause problems for you. I think that having 3 user names with your work linked to the same directory would work out better. You would also need to be sure that the UID and GID matches, so that you can have full access to your work.
Some distributions use different UID and GID ranges. They may complain about files created while using a different distribution.
 
Old 05-03-2005, 04:45 AM   #6
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
I share my /home between slack & gentoo, it works flawlessly.

I don't see the problem with the .xinitrc - why does it matter where KDE is installed? "startkde" always worked for me. (On the rare occasions I wanted to use it)

But, if it really DOES make that much difference, then try an "out of the box" approach: Leave /home alone and tackle KDE itself. Gentoo is hugely customiseable, use it to your advantage.

Unmerge KDE, and then add a "prefix=/opt" to its compile options, then re-emerge it. That'll install KDE in the /opt directory, and everything will match between Slack & Gentoo.

In fact, you could mail Pat & ask him exactly what compile options he uses to create the KDE packages for Slackware, and emerge a completely identical KDE for Gentoo.
 
Old 05-03-2005, 06:25 AM   #7
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
You don't even have to email him. All the build scripts are available on the CDs and on the mirrors.
 
Old 05-03-2005, 08:24 AM   #8
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551

Original Poster
Blog Entries: 4

Rep: Reputation: 31
keefaz said:
Quote:
....symlink...I know it is not a easy solution, but it should work
yeah, that was one of my first thoughts, but like you said, its probably not
the easiest. either symlink my /home/<user>, or various apps.

schiwal
Quote:
You would also need to be sure that the UID and GID matches
Thanks for the warning.

oneandoneis2 said:
Quote:
I share my /home between slack & gentoo, it works flawlessly...................
Unmerge KDE, and ..... "prefix=/opt" ........., then re-emerge it .
humm... maybe you planned ahead more then I did . Thanks for the info, and its
something to keep in mind, but I think I'll keep that as a last resort. I'm not real keen
on recompiling kde... again..... for the 3rd time. I've had great luck with gentoo so far
(only been using it for 1-2 months... its a keeper!)


I'm thinking I'm going to use 2 different users with symlinks temporarily, while I work and
make sure X, kde, fonts, and all that are matching and/or work before I switch over completely
to 1 user for both. Thanks A LOT for the info, suggestions, and warnings though folks. Its appreciated.

-tw
 
Old 05-03-2005, 03:10 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In terms of KDE settings ... none of the setup-files under
~/.kde and ~/.kde2 contain references to KDEs location
on my Slack-boxes, I have reason to believe that they
wouldn't in Gentoo either ;}


Cheers,
Tink
 
Old 05-03-2005, 04:14 PM   #10
AxelFendersson
Member
 
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184

Rep: Reputation: 32
Personally, I'd be inclined not to try to share a /home between two distros. I'd have thought it better to create a documents partition, and either symlink to it, or, if you're only running a single-user system, mount it directly to /home/$LOGNAME/Documents or something.

Otherwise you're just asking for trouble, with different versions of the same software trying to use the same configuration files. Then again, I've never tried it, so you may find that you don't have any trouble after all. I'd be wary of it, though.

Last edited by AxelFendersson; 05-03-2005 at 04:16 PM.
 
Old 05-03-2005, 09:54 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Using the same /home parition for different distro's would not be a problem as long as each distro uses a different directory. Think of the /home partition as simply a storage device for a subdirectory that contains your files. That's exactly what it is. You could have your home directory located on a Network Access Storage server if you wanted. A thin client work's like this.

I think that a more interesting way of doing things would be to use the identical distro on different computers and share resources. For example, using the /home partition on your desktop as the $HOME for a user on the laptop. Suppose that you have an older laptop that lacks horsepower and drive space, but you can't bring yourself to part with it. You could have it running X-Windows, set $HOME to your home directory on your desktop, and even have many of the links running programs on the desktop but displaying on your laptop. You could be using ssh for this and be away from home. The emails you read will actually be downloading to your desktop, so you don't even need to synchronize the computer data as many people do.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
want to ssh/ftp to home machine (Slack) from office through home router fincher69 Linux - Networking 2 09-21-2005 10:55 PM
Slack & Gentoo dual boot aje Linux - General 4 06-15-2005 06:08 AM
sharing /home LancerNZ Linux - Networking 3 03-01-2005 12:39 PM
Gentoo Vs. Slack? and why no Gentoo forum? kersten78 Linux - Distributions 1 09-19-2004 11:25 AM
how to get primary logon network, Access control,File sharing & printer sharing info dileepkk Linux - Networking 2 07-06-2004 06:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration