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
  •  


Cisco SG200-26 26-Port Gigabit Network Smart Switch picture

Cisco SG200-26 26-Port Gigabit Network Smart Switch

$76.49



Cisco Nexus 48-Port 10G SFP+ Switch N9K-9396PX w/ 9K-M12PQ 12-Port 40G QSFP picture

Cisco Nexus 48-Port 10G SFP+ Switch N9K-9396PX w/ 9K-M12PQ 12-Port 40G QSFP

$249.99



D-Link DGS-1210-52 52-Port Gigabit Managed Switch picture

D-Link DGS-1210-52 52-Port Gigabit Managed Switch

$71.99



Cisco 24-Port Managed Gigabit Switch WS-C3750G-24TS-S picture

Cisco 24-Port Managed Gigabit Switch WS-C3750G-24TS-S

$49.99



HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A picture

HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A

$30.95



New Linksys SE3005 5-port Gigabit Ethernet Switch picture

New Linksys SE3005 5-port Gigabit Ethernet Switch

$18.99



New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub picture

New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub

$11.49



Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch picture

Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch

$21.99



HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch picture

HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch

$34.99



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