-
when, where and how is the knoppix users set up
hi,
i need to add a symlink to the knoppix users home dir for a special application. so i've had a look at the boot process and found that the only script ran at startup is "knoppix-autoconfig". in this script i found a lot of stuff about persistent home dir but nothing of the inital setup of the home dir of the knoppix user if there is no persistent home. did i miss any thing? when i look at /home i found it empty.
when, where and how is the knoppix users set up ??
TIA
frantek
-
Senior Member
registered user
/home/knoppix is empty. /etc/X11/Xsession.d/45xsession copies files and directories into /home/knoppix from /etc/skel. I have completely rewritten the entire 45xsession script for my own purposes as the majority of it is for KDE which I do not use. You might add something like this:
Code:
cp -R /etc/skel/.rox_choices $HOME
cp -R /etc/skel/.xfce4/ $HOME
chown -R knoppix:knoppix $HOME
The key is using the $HOME variable and changing ownership.
-
Simpler solution is to find this part in '/etc/X11/Xsession.d/45xsession' script
Code:
# Copy profiles if not already present
rsync -Ha --ignore-existing /etc/skel/{file, dir, file3, ...}
and add your stuff.
Every user wiil use this settings (standard policy for '/etc/skel');
You can set stuff just for 'knoppix' user in the same script (just a few lines bellow the above example)
In that case you have to copy "your stuff" to '/usr/share/knoppix/profile'; and 'rsync' will do the rest.
-
Senior Member
registered user
Originally Posted by
adis
Simpler solution is to find this part in '/etc/X11/Xsession.d/45xsession' script
Code:
# Copy profiles if not already present
rsync -Ha --ignore-existing /etc/skel/{file, dir, file3, ...}
and add your stuff.
Every user wiil use this settings (standard policy for '/etc/skel');
You can set stuff just for 'knoppix' user in the same script (just a few lines bellow the above example)
In that case you have to copy "your stuff" to '/usr/share/knoppix/profile'; and 'rsync' will do the rest.
Nice first post. A much better way of doing things I see.
-
You may also be interested in symlinking /etc/skel to /home/knoppix
- Ambrose
-
"In that case you have to copy "your stuff" to '/usr/share/knoppix/profile'; and 'rsync' will do the rest."
So if I copy the contents of /etc/skel there, the Knoppix user will look like every other user I create?
-
Umm, posted too soon. I'm not really that concerned with the Knoppix user, except that in a hard drive install the user created gets his profile from the CD's Knoppix user instead of from /etc/skel. I'd kind of like to make that initial user like other non-privileged users.
Similar Threads
-
By knewbex in forum The Lounge
Replies: 31
Last Post: 09-10-2004, 03:26 AM
-
By soulsurfer in forum Customising & Remastering
Replies: 0
Last Post: 04-22-2004, 02:15 PM
-
By rec9140 in forum General Support
Replies: 0
Last Post: 09-19-2003, 07:21 PM
-
By photolnx in forum Customising & Remastering
Replies: 3
Last Post: 09-02-2003, 02:49 PM
-
By Tigren in forum General Support
Replies: 1
Last Post: 11-14-2002, 03:28 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED
$98.55
TP-Link 24-Port Gigabit Ethernet Unmanaged Switch Desktop/Rackmount TL-SG1024D
$69.99
Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED
$99.97
New In Box BNIB Cisco SG300-10 - 10-Port Ethernet Gigabit Managed Switch S23
$119.99
NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter
$14.99
Dell X1052P Series 52-Port Gigabit Rack Mountable Managed Network Switch
$30.00
NETGEAR 8-Port Gigabit Ethernet Unmanaged Switch (GS308) - Home Network Hub,...
$12.00
Cisco WS-C2960S-48TS-L 48 Port Gigabit Ethernet LAN Switch - Same Day Shipping
$29.99
Cisco SG300-52 52-Port Gigabit Managed Switch *Tested For Power & Factory Reset*
$69.99
Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch
$49.99