PXE client script autorun

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
akanuteh
Ronin
Ronin
Posts: 2
Joined: 01 Oct 2016, 16:42
Distribution: 3.1
Location: USA

PXE client script autorun

Post#1 by akanuteh » 01 Oct 2016, 16:52

I am working on a pxe solution but I want a script to run on the scripts as soon as they are booted. I have the files in /rootcopy and I can manually run them but I want them to run automatically.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: PXE client script autorun

Post#2 by Bogomips » 01 Oct 2016, 19:01

Welcome to Porteus.

Make the script to run scripts executable, then use boot parameter (cheatcode) cliexec=/Path/to/<script to run scripts>
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

akanuteh
Ronin
Ronin
Posts: 2
Joined: 01 Oct 2016, 16:42
Distribution: 3.1
Location: USA

Re: PXE client script autorun

Post#3 by akanuteh » 02 Oct 2016, 21:22

I tried this but the application will not run in the PXE client. I can manually run the script from /burnintest/start.sh but it does not from /mnt/sda1/boot/syslinux/porteus.cfg.

This is the line I added cliexec=/burnintest/start.sh

I want the script to run after the desktop environment is loaded.

Thanks

User avatar
brokenman
Site Admin
Site Admin
Posts: 5574
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: PXE client script autorun

Post#4 by brokenman » 02 Oct 2016, 22:09

Make sure:
1) The script exists on the client
2) The script is executable

Use guiexec= instead of cliexec=
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply