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
  •  


Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord picture

Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord

$43.95



JUNIPER EX4550-32F-AFO 32-PORT ETHERNET SWITCH 2x POWER SUPPLY - TESTED picture

JUNIPER EX4550-32F-AFO 32-PORT ETHERNET SWITCH 2x POWER SUPPLY - TESTED

$299.99



JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER picture

JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER

$210.00



Juniper Networks EX2200-C-12P-2G 12 Port Gigabit PoE 2 T/SFP 1G Network Switch picture

Juniper Networks EX2200-C-12P-2G 12 Port Gigabit PoE 2 T/SFP 1G Network Switch

$129.00



Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord picture

Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord

$54.99



EX2300-24P Juniper 24-port 10/100/1000BASE-T PoE+ 4 x 1/10GbE SFP/SFP+ UNCLAIMED picture

EX2300-24P Juniper 24-port 10/100/1000BASE-T PoE+ 4 x 1/10GbE SFP/SFP+ UNCLAIMED

$450.00



Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch picture

Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch

$41.43



Juniper EX3400-48P 48-Ports PoE+ 4x SFP+ and 2x QSFP+ Managed Switch Tested picture

Juniper EX3400-48P 48-Ports PoE+ 4x SFP+ and 2x QSFP+ Managed Switch Tested

$205.00



Juniper QFX5100-48T-AFI   48 100M/1G/10G Base-T 6 QSFP AFI picture

Juniper QFX5100-48T-AFI 48 100M/1G/10G Base-T 6 QSFP AFI

$485.00



Juniper Networks EX3300-24P 24-Port PoE+ 4x SFP+ Network Switch TESTED picture

Juniper Networks EX3300-24P 24-Port PoE+ 4x SFP+ Network Switch TESTED

$79.99