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
  •  


1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



HP/HPE ProLiant AMD Opteron X3216 APU 16 GB RAM MicroServer Gen 10 NO DRIVES picture

HP/HPE ProLiant AMD Opteron X3216 APU 16 GB RAM MicroServer Gen 10 NO DRIVES

$299.99



HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES

$199.99



HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ* picture

HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*

$94.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon

$846.19



Supermicro 5018A-FTN4 Rack Server - Black picture

Supermicro 5018A-FTN4 Rack Server - Black

$125.00



HP ProLiant Xeon E3-1220L V2 2.30 GHz 16 GB RAM MicroServer Gen8 NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 2.30 GHz 16 GB RAM MicroServer Gen8 NO DRIVES

$199.99



2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture

2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL

$299.00



Supermicro 505-2 Mini-1U Server 5018A-FTN4 16GB 2.4ghz Atom + Rack Ears picture

Supermicro 505-2 Mini-1U Server 5018A-FTN4 16GB 2.4ghz Atom + Rack Ears

$199.00