Results 1 to 5 of 5

Thread: Hard coded /home/knoppix into skel files

  1. #1

    Hard coded /home/knoppix into skel files

    Hi,

    When adding a new user on a Knoppix system (most probably because you have installed it onto your hard drive), the string '/home/knoppix' will be incorrectly hard-coded into your configuration files (stuff in your home directory) because it is hard coded into /etc/skel

    To do a simple find and replace, issue this command all on one line, while logged in as the new user. (Replace YOUR_USER_NAME with.. you guessed it

    for i in `grep -rlis \/home\/knoppix ~`; do perl -p -i -e
    "s/\/home\/knoppix/\/home\/YOUR_USER_NAME/g" "$i"; done

    Hope that helps,

    - Andrew
    <andrew at solutionsfirst.com.au>

  2. #2
    Senior Member registered user
    Join Date
    Jan 2003
    Location
    Podunk, Idaho, USA
    Posts
    470
    Thanks worked like a charm!

    rock

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353

    great tip

    Andrew,

    Thanks for the great tip.

  4. #4
    Junior Member
    Join Date
    Mar 2003
    Location
    Lelystad the Netherlands
    Posts
    7
    it didn't work for me... is this because i removed the user knoppix?

    thx

  5. #5
    Junior Member
    Join Date
    Mar 2003
    Location
    Lelystad the Netherlands
    Posts
    7
    Quote Originally Posted by raymond
    it didn't work for me... is this because i removed the user knoppix?

    thx
    soory my mistake....it works fine i used a wrong string....

    work fine...... thx!

Similar Threads

  1. 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
  2. Help with files that aren't in the home directory using...
    By WastedFX in forum General Support
    Replies: 7
    Last Post: 11-19-2004, 04:02 PM
  3. adding files to /ramdisk/home/knoppix
    By darthczyz in forum Customising & Remastering
    Replies: 1
    Last Post: 04-20-2004, 08:31 PM
  4. adding config files to /home/knoppix
    By matt_w_lambert in forum Customising & Remastering
    Replies: 5
    Last Post: 01-29-2004, 11:09 PM
  5. knoppix noob how can i save files to hard drive?
    By santaklaws in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 08-06-2003, 06:07 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
  •  


Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$9.99



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$12.00



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick

$19.95



Knoppix 9.1 Live Linux GNU Bootable USB Flash Drive USA picture

Knoppix 9.1 Live Linux GNU Bootable USB Flash Drive USA

$19.99



Linux Knoppix 4.0.2 Installation Disc picture

Linux Knoppix 4.0.2 Installation Disc

$39.99



Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$8.50



KNOPPIX 9.1 LINUX INSTALL & LIVE DVD picture

KNOPPIX 9.1 LINUX INSTALL & LIVE DVD

$9.99



Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA picture

Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA

$79.99



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick

$20.30