-
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
-
Senior Member
registered user
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
-
By nik03 in forum Hdd Install / Debian / Apt
Replies: 9
Last Post: 08-26-2004, 04:18 PM
-
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
-
Forum Rules

Intel Core i7-3770K 3.5 GHz Processor
$39.00

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

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)
$700.00

AMD Ryzen 5 5500 Processor ( read Description)
$59.00

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
$79.99

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

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

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