despite being fairly experienced with mx, i have been unable to figure out how to setup a single username account that will utilize a usb drive as home for multiple LTS mx versions (mx21, mx23) on multiple computers.
for example, when i logout out of the mx default startup user to lin, then i would like all data to be routed to&from a common /home/lin location on the usb.
ideally user lin could\would be given admin rights to run synaptic and other conveniences. of course, i may not not have identical applications on all computers, but i try to stick with xfce when available.
also interested in extending this method to antiX and ventoy if possible, but avoiding any special\different parameters needed to launch linux on each computer.
(yes, have searched this form and enjoyed many of the dolphin and staempunk videos)
common home account on single usb for multiple mx computers
- Eadwine Rose
- Administrator
- Posts: 14424
- Joined: Wed Jul 12, 2006 2:10 am
Re: common home account on single usb for multiple mx computers
Moved to help, as there is not a tip or trick shared.
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030
- Michael-IDA
- Posts: 359
- Joined: Sat Jan 12, 2019 8:00 pm
Re: common home account on single usb for multiple mx computers
This is highly not recommended with Xfce. The MX dev's repeatedly have said the Xfce config files differ based upon version. You could do this with TDE, but that causes other issues (things like sudo).
Why not just use a Live USB? It'd plug into any computer you want to use?utilize a usb drive
NIH Cancer Study: The group supplemented with both vitamins and fenbendazole exhibited significant (P = 0.009) inhibition of tumor growth.
The day Microsoft makes a product that doesn't suck...
... is the day they make a vacuum cleaner.
The day Microsoft makes a product that doesn't suck...
... is the day they make a vacuum cleaner.
Re: common home account on single usb for multiple mx computers
@Michael-IDA told you correctly. But also, because USB drives are not permanently attached. It's fine to keep your common personal files somewhere other than in /home/USER/. Finally, you also need a reliable backup plan for those personal files. All storage media WILL suffer damage and/or die, usually without warning. The alligator tears that you won't have to shed will be yours.
Re: common home account on single usb for multiple mx computers
thanks for the replies.
given this is unfeasible, i guess one somewhat of a consolation would be a handy mx tool to move a given user home elsewhere (another partition or usb).
but it seems a lot of mx users also would like such a feature for a long time, so not unique. i will try to submit that wish in another section.
there were 2 reasons i was hoping hoping for this, rather than live usb
a. to take advantage of speed when the computer is much higher spec'd...currently my range of machines is >10 years wide. i have commonly picked up old laptops, installed mx, used them for some short time, then given them away.
b. the home usb would be a single source of data w/out needing complex sync'ing, and thus easy to backup itself elsewhere.
given this is unfeasible, i guess one somewhat of a consolation would be a handy mx tool to move a given user home elsewhere (another partition or usb).
but it seems a lot of mx users also would like such a feature for a long time, so not unique. i will try to submit that wish in another section.
there were 2 reasons i was hoping hoping for this, rather than live usb
a. to take advantage of speed when the computer is much higher spec'd...currently my range of machines is >10 years wide. i have commonly picked up old laptops, installed mx, used them for some short time, then given them away.
b. the home usb would be a single source of data w/out needing complex sync'ing, and thus easy to backup itself elsewhere.
Re: common home account on single usb for multiple mx computers
One method that is very close to what it sounds like your after is to create a regular home when installing, and then symlink all of the home data folders you want some place else.
Exp: I have several machines where I have the standard install on nvme1 Then, I have a "Data" folder on nvme2, and link link as follows:
~/Documents symlink to /nvme2/Data/Documents
~/Pictures symlink to /nvme2/Data/Pictures
~/Videos symlink to /nvme2/Data/Videos
etc ..
On several client machines, I have this setup on their USB Stick, ( Which is what they boot from), and then all data is actually on the hard drive.
As well, I have several people that do this in reverse - Boot from hard drive and all data is on their usb stick. ( with a versioned backup that takes place to backup the stick - since they carry this back and forth between office(s) & home.)
Exp: I have several machines where I have the standard install on nvme1 Then, I have a "Data" folder on nvme2, and link link as follows:
~/Documents symlink to /nvme2/Data/Documents
~/Pictures symlink to /nvme2/Data/Pictures
~/Videos symlink to /nvme2/Data/Videos
etc ..
On several client machines, I have this setup on their USB Stick, ( Which is what they boot from), and then all data is actually on the hard drive.
As well, I have several people that do this in reverse - Boot from hard drive and all data is on their usb stick. ( with a versioned backup that takes place to backup the stick - since they carry this back and forth between office(s) & home.)
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!
- Michael-IDA
- Posts: 359
- Joined: Sat Jan 12, 2019 8:00 pm
Re: common home account on single usb for multiple mx computers
With just a bit of scripting you can have the best of both worlds that also allows easy backing up of user 'work' files.
On each machine:
- Create a "data" dir (/home/user/data)
- Change the defaults for Documents etc. to the data dir (/home/user/data/Documents)
- Add a script to symlink /home/user/data to the USB data dir
- Copy/Backup the USB data dir where ever you want
You could get fancier with autostart and what not, but I think that should do what you want?
Best,
Michael
NIH Cancer Study: The group supplemented with both vitamins and fenbendazole exhibited significant (P = 0.009) inhibition of tumor growth.
The day Microsoft makes a product that doesn't suck...
... is the day they make a vacuum cleaner.
The day Microsoft makes a product that doesn't suck...
... is the day they make a vacuum cleaner.
Re: common home account on single usb for multiple mx computers
yes, the 'reverse' process mentioned by chalesV seems to be very close.
currently, the variety of mx file managers generate a symlink to the user default folders on the hard drive, which is the opposite of what i need to setup. (e.g.,, i need a symlink pointing AWAY from
/user/home/lin/documents, not back TOWARDS it as target)
am guessing easily fixable ownership settings also have to be done....possibly as a single common user name with admin rights everywhere.
if i understand correctly, symlinks to the standard folders (documents, downloads, music, videos, ...) on a usb should not impact xfce or other admin\config settings on any given computer.
thus, i effectively can make a common data usb by setting up symlinks only once per each booted linux , and not needing any scripts.
i assume some mild error thrown if usb not found , or if mounting errors occur during use.
currently, the variety of mx file managers generate a symlink to the user default folders on the hard drive, which is the opposite of what i need to setup. (e.g.,, i need a symlink pointing AWAY from
/user/home/lin/documents, not back TOWARDS it as target)
am guessing easily fixable ownership settings also have to be done....possibly as a single common user name with admin rights everywhere.
if i understand correctly, symlinks to the standard folders (documents, downloads, music, videos, ...) on a usb should not impact xfce or other admin\config settings on any given computer.
thus, i effectively can make a common data usb by setting up symlinks only once per each booted linux , and not needing any scripts.
i assume some mild error thrown if usb not found , or if mounting errors occur during use.