-
Contents of /etc/skel not copied to /home/knoppix
I have successfully remastered Knoppix before (e.g., the OpenVistA VivA FOIA Gold live CDs at http://sourceforge.net/projects/worldvista), but I have never before today tried to put stuff in /etc/skel so that it is copied to /home/knoppix on boot up. However, it looks as if the contents of /etc/skel are not getting copied to /home/knoppix.
Here is /etc/skel:
knoppix@ttyp2[knoppix]$ ls -l /etc/skel
lrwxrwxrwx 1 root root 17 Apr 2 07:25 /etc/skel -> /KNOPPIX/etc/skel
knoppix@ttyp2[knoppix]$ ls -l /etc/skel/
total 8
drwxr-xr-x 2 root root 2048 Apr 2 2005 Animation
drwxr-xr-x 3 root root 2048 Nov 10 18:47 Desktop
drwxr-xr-x 5 root root 2048 Apr 19 2004 GNUstep
drwxr-xr-x 2 root root 2048 Apr 19 2004 tmp
Notice that there is a directory Animation there, as well as a directory GNUstep. Notice that neither is present in /home/knoppix:
knoppix@ttyp2[knoppix]$ ls -l /home/knoppix
total 0
drwxr-xr-x 3 knoppix knoppix 160 Apr 2 12:26 Desktop
drwxr-xr-x 2 knoppix knoppix 40 Apr 19 2004 tmp
What am I doing wrong? Thanx muchly.
-- Bhaskar
-
Senior Member
registered user
From my HOWTO http://www.knoppix.net/forum/viewtopic.php?t=13867
I must now mention the file /etc/X11/Xsession.d/45xsession. This script controls how knoppix behaves & how knoppix creates the knoppix user's home directory. I am looking for the ninth occurence of rsync in the script and it is found at the line 128:
126: if [ -z "$DONTCHANGE" ]; then
127: # No persistent homedir, copy everything
128:
rsync -Ha --ignore-existing /etc/skel/{.kde*,Desktop} $HOME/ 2>/dev/null
129: [ "$USER" = "knoppix" ] && rsync -Ha --ignore-existing /usr/share/knoppix/profile/{.kde*,Desktop} $HOME/ 2>/dev/null
It is line 128 which populates the /home/knoppix folder. So In line 128, I delete from & including the { to the }. It is changed as follows.
126: if [ -z "$DONTCHANGE" ]; then
127: # No persistent homedir, copy everything
128:
rsync -Ha --ignore-existing /etc/skel/ $HOME/ 2>/dev/null
129: [ "$USER" = "knoppix" ] && rsync -Ha --ignore-existing /usr/share/knoppix/profile/{.kde*,Desktop} $HOME/ 2>/dev/null
Make the change and save the 45xsession file.
I hope this helps.
James
-
Senior Member
registered user
Bhaskar
If what James mentioned above does not work for you, try to change the permissions on those folders. Do chroot to the mastered folder, then do:
chmod a+rw /etc/skel/GNUstep for example.
I had a similler problem and solved it by this solution.
Similar Threads
-
By tr in forum Customising & Remastering
Replies: 1
Last Post: 04-03-2006, 08:12 PM
-
By Dunkit in forum General Support
Replies: 10
Last Post: 06-27-2005, 04:22 AM
-
By GunSmoke in forum Customising & Remastering
Replies: 4
Last Post: 06-09-2005, 03:35 PM
-
By your_breakfast in forum Customising & Remastering
Replies: 6
Last Post: 12-15-2004, 10:37 PM
-
By Andrew Foster in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 03-09-2003, 10:08 AM
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

MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00
$1619.30

BROADCOM 05-50077-01 PCI-E 4.0 x8 PCI-Express MegaRAID 9560-8i RAID Controller
$739.99

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD
$265.00

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003
$639.69

OWC Mercury Elite Pro Quad 4 Bay RAID Storage Enclosure USB 3.1 Gen 2 No Drives
$149.95

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller
$64.99

LSI 9260-8i 512MB SAS SATA 8-port PCI-E 6Gb RAID Controller Card US
$29.88

Inspur LSI YZCA-00424-101 12Gbps SAS 3.0 RAID Controller CARD HBA HDD
$14.99

9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US
$49.50

Sony Ruggedized Raid PSZ-RA Thunderbolt 2 Portable RAID Array (12TB)
$419.00