Greetings, Karibu.
You might give /etc/rc.local a try.
Things here apply after all other initialization is over, allegedly.
Hi, I have a quick Question:
Which is the correct location to put a shell script in order to get it started at boot?
I tried /etc/init.d but it didn't work.
The script I want to start is lxdeDefaultScreenlayout for my dual monitor system, which was generated with 'exit
arandr'.
Last edited by Karibu; 09-10-2012 at 07:35 PM.
Greetings, Karibu.
You might give /etc/rc.local a try.
Things here apply after all other initialization is over, allegedly.
Greetings, Karibu!
The boot process of Knoppix consists of several steps like finding the Knoppix directory, building up of the union file system, detection of hardware components, starting the desktop environment. At all times there are means to run a shell script in addition to the usual ones delivered with Knoppix.
If you want to start a service you would use the /etc/rc.local configuration file. If you need to run a script at the end of /etc/init.d/knoppix-autoconfig you can create a file knoppix.sh in the KNOPPIX directory. If you want to run a shell script after the setup of the desktop environment you can put that script in the directory /usr/local/bin and create a suitable .desktop file in the directory /home/knoppix/.config/autostart. Configuration files for the X server are usually put in a subdirectory of /etc/X11.
Greetings, Klaus2008.
I'm going to frame Post #3 over my workplace.
Thanks for that jewel.
Thank you Klaus for the Info... It is a bit to high for me...
runing in the Terminal 'arandr' gives me a script which configures my two-monitor system.
I want this have executed automatically with each start/restart..#!/bin/sh
xrandr --output VGA-0 --mode 1920x1080 --pos 0x0 --rotate normal
--output DVI-0 --mode 1920x1080 --pos 1920x0 --rotate normal
I put the file in the locations
- /home/knoppix/.config/autostart
- /etc/X11/Xsession.d
- /usr/local/bin
but none worked. What do I have to do?
I think that you should create a small file /home/knoppix/.config/autostart/lxdeDefaultScreenlayout.desktop with the following content:The owner of the .desktop file should be knoppix.Code:[Desktop Entry] Name=lxdeDefaultScreenlayout Type=Application Exec=sudo /usr/local/bin/lxdeDefaultScreenlayout Terminal=false
There is a thread 'How to autorun a X program' where you can find a link to the 'Desktop Entry Specification'.
Issue SOLVED...
It works as expected...
Thank you Klaus for your outstanding support![]()

128GB (4x32GB) SK hynix DDR4 PC4-2666V RDIMM ECC Server Ram HMA84GR7CJR4N-VK
$799.00
Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00
Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On
$450.00
867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001
$245.00
Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM
$1499.00
Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99
Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO
$308.00
Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W
$524.99
Microsoft Windows Server 2022 Standard 64Bit 16 Core-50 CALs DVD With Key&
$69.90
Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD
$99.99