-
Junior Member
registered user
How to start automatically a script after that the knoppix user is logged on.
Hello to everyone,
I'm trying to make a customized version of KNOPPIX 6.2 that should run totally in RAM.
The customizations I need to do are very few :
1) automount in write mode the first two NTFS/FAT32 partitions of the first hard disk
2) mount the CD/ROM after the default user (knoppix) or (root ?) is logged on
3) start automatically a session of DOSEMU after that the knoppix user is logged on
This is what I did while I was in chroot :
apt-get install dosemu
cd /mnt
mkdir cdrom
mkdir hda1
mkdir hda2
mkdir sda1
mkdir sda2
cd /home/knoppix/.dosemu/drives/c
nano autoexec.bat
lredir e: linux\fs/mnt/cdrom c
lredir f: linux\fs/mnt/hda1
lredir g: linux\fs/mnt/hda2
lredir h: linux\fs/mnt/sda1
lredir i: linux\fs/mnt/sda2
nano /home/knoppix/.bash_profile
#!/bin/sh
clear
read -p "Insert your Windows installation disk and press a key to continue" disco
sudo mount -t auto /dev/cdrom /mnt/cdrom
dosemu
mv /etc/skel /etc/skel-old
mv /home/knoppix /etc/skel
chown root:root -R /etc/skel
cp -Rp /etc/skel /home/knoppix
chown knoppix:knoppix -R /home/knoppix
When Knoppix starts the script I put in /home/knoppix/.bash_profile is not executed. Why ?
The folder /home/knoppix is empty. Instead,I have everything on /etc/skel/,like the .dosemu folder and the .bash_profile script. I would like that it is placed on /home/knoppix and that it is executed when the knoppix starts. Thanks.
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

🔀 Juniper Networks EX2300-C-12P 12× Gigabit PoE+ • 2× 10G SFP+ Compact Switch ⚡
$109.99

Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P
$149.99

Juniper Networks EX2300-48P 48-Port PoE Gigabit Switch (Renewed)
$344.74

Juniper QFX5100-48S-3AFI 48-Port SFP+ 6 QSFP+ 2x SFP/RJ-45 Management
$249.97

Juniper MX204 +JUNOS and Dual Power Supply
$7299.99

Juniper EX2300-C 12 Port Compact Gigabit Switch EX2300-C-12p Discounted Cosmetic
$79.86

Juniper EX2300-C-12P 12 Port Gigabit PoE+ 2x10G SFP+ Managed Compact Switch
$179.99

Juniper QFX5120-48Y-AFO 48 x 1/10/25GB SFP28 + 8 x 40/100GB Switch w/Dual AC
$10499.99

Juniper EX3400-24P 24-Port PoE+ GbE + 4-Port 1/10Gb SFP Switch
$245.00

Juniper Networks Mist Wireless Access Points, Model AP45
$59.99