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
  •  


Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS

$712.98



Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 128GB | H730P | 8x HDD Trays picture

Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 128GB | H730P | 8x HDD Trays

$1849.00



H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W picture

H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W

$2612.18



Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 512GB | H730P | 8x HDD Trays picture

Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 512GB | H730P | 8x HDD Trays

$2549.00



HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD picture

HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD

$196.95



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$274.00



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$284.00



HP ProLiant DL380 Gen9 16SFF 2x E5-2680v4 2.4GHz =28 Cores 64GB P840 4xRJ45 picture

HP ProLiant DL380 Gen9 16SFF 2x E5-2680v4 2.4GHz =28 Cores 64GB P840 4xRJ45

$353.00