Results 1 to 2 of 2

Thread: runing sript when boot how to ??????????

Hybrid View

  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    5

    runing sript when boot how to ??????????

    hi
    i put all the user descktop files in /etc/skel but some files arent copy to the /home/knopix on the boot so i want to put a script to copy them from /KNOPPIX/home/knoppix to /home/knoppix or /ramdisk/home/knoppix
    where i shold put that script????
    thanks
    David

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    From my HOWTO http://www.knoppix.net/forum/viewtopic.php?t=13867
    I must now mention the file /etc/X11/Xsession.d/45xsession. This script controls how knoppix behaves & how knoppix creates the knoppix user's home directory. I am looking for the ninth occurence of rsync in the script and it is found at the line 128:
    126: if [ -z "$DONTCHANGE" ]; then
    127: # No persistent homedir, copy everything
    128: rsync -Ha --ignore-existing /etc/skel/{.kde*,Desktop} $HOME/ 2>/dev/null
    129: [ "$USER" = "knoppix" ] && rsync -Ha --ignore-existing /usr/share/knoppix/profile/{.kde*,Desktop} $HOME/ 2>/dev/null
    It is line 128 which populates the /home/knoppix folder. So In line 128, I delete from & including the { to the }. It is changed as follows.
    126: if [ -z "$DONTCHANGE" ]; then
    127: # No persistent homedir, copy everything
    128: rsync -Ha --ignore-existing /etc/skel/ $HOME/ 2>/dev/null
    129: [ "$USER" = "knoppix" ] && rsync -Ha --ignore-existing /usr/share/knoppix/profile/{.kde*,Desktop} $HOME/ 2>/dev/null
    Make the change and save the 45xsession file.

    I hope this helps.
    James

Similar Threads

  1. Problems runing Java j2sdk under Knoppix 3.3
    By nik03 in forum Hdd Install / Debian / Apt
    Replies: 9
    Last Post: 08-26-2004, 04:18 PM
  2. Runing Java on Knoppix
    By danieltaranta in forum General Support
    Replies: 2
    Last Post: 06-23-2003, 03:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Intel Core i7-3770K 3.5 GHz Processor picture

Intel Core i7-3770K 3.5 GHz Processor

$39.00



INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR picture

INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR

$23.00



INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH picture

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH

$179.99



(LOT OF 20) Intel Core i5-8400 CPU 2.80GHz Desktop Processor (SR3QT) picture

(LOT OF 20) Intel Core i5-8400 CPU 2.80GHz Desktop Processor (SR3QT)

$700.00



AMD Ryzen 5 5500 Processor ( read Description) picture

AMD Ryzen 5 5500 Processor ( read Description)

$59.00



Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor picture

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor

$114.99



Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151 picture

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151

$79.99



Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor picture

Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor

$67.99



INTEL CORE I9-10980XE PROCESSOR | 3.00GHZ | SRGSG picture

INTEL CORE I9-10980XE PROCESSOR | 3.00GHZ | SRGSG

$299.99



PS5 Over Heating Problem Solver 1.5 Grams Liquid metal thermal paste CPU, GPU picture

PS5 Over Heating Problem Solver 1.5 Grams Liquid metal thermal paste CPU, GPU

$15.99