Results 1 to 3 of 3

Thread: Contents of /etc/skel not copied to /home/knoppix

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    3

    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

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    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

  3. #3
    Senior Member registered user
    Join Date
    Mar 2005
    Posts
    103
    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

  1. Can't get KDE 3.5.2 copied right from /etc/skel or something
    By tr in forum Customising & Remastering
    Replies: 1
    Last Post: 04-03-2006, 08:12 PM
  2. Contents of the Knoppix Disk
    By Dunkit in forum General Support
    Replies: 10
    Last Post: 06-27-2005, 04:22 AM
  3. remastering problem in /etc/skel with knoppix 3.9
    By GunSmoke in forum Customising & Remastering
    Replies: 4
    Last Post: 06-09-2005, 03:35 PM
  4. Custom files in /etc/skel/ do not appear in $HOME :(((
    By your_breakfast in forum Customising & Remastering
    Replies: 6
    Last Post: 12-15-2004, 10:37 PM
  5. Hard coded /home/knoppix into skel files
    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
  •  


(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray picture

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray

$169.99



RYZEN 7 9800X3D 8-Core, 16-Thread Desktop Processor picture

RYZEN 7 9800X3D 8-Core, 16-Thread Desktop Processor

$475.00



Lenovo ThinkCentre M920S Sff Intel Core i5 8600 8GB 256GB SSD Windows 11 Pro picture

Lenovo ThinkCentre M920S Sff Intel Core i5 8600 8GB 256GB SSD Windows 11 Pro

$94.99



Apple MacBook Air 13.6” M2 8GB 256GB SSD 2022 MLY33LL/A 8‑Core CPU 8‑Core GPU picture

Apple MacBook Air 13.6” M2 8GB 256GB SSD 2022 MLY33LL/A 8‑Core CPU 8‑Core GPU

$529.95



AMD Ryzen 7 9800X3D 8-Core AM5 CPU 4.7GHz 96MB L3 8MB L2 100MHz picture

AMD Ryzen 7 9800X3D 8-Core AM5 CPU 4.7GHz 96MB L3 8MB L2 100MHz

$389.99



APPLE MACBOOK PRO 2020 13

APPLE MACBOOK PRO 2020 13" SILVER 8-CORE M1 16GB 512GB FLASH - DISCOUNTED

$435.00



MacBook Air 13 2020 M1 8-Core CPU 7-Core GPU 8GB RAM 256GB Storage Gold picture

MacBook Air 13 2020 M1 8-Core CPU 7-Core GPU 8GB RAM 256GB Storage Gold

$399.00



Apple Macbook Pro 14

Apple Macbook Pro 14" M1 Pro 8-Core 16GB 512GB - Good

$614.99



8-core 10-core GPU baseboard 8654 to PCIE 5.0x16 GPU expansion baseboard picture

8-core 10-core GPU baseboard 8654 to PCIE 5.0x16 GPU expansion baseboard

$377.77



CHUWI 15.6'' Laptop Computer Intel Core 8GB RAM 512GB SSD WiFi Windows 11 picture

CHUWI 15.6'' Laptop Computer Intel Core 8GB RAM 512GB SSD WiFi Windows 11

$269.99