WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to boot a specific program on pxe boot  (Read 2231 times)

Offline LoRdMiCk

  • Newbie
  • *
  • Posts: 1
how to boot a specific program on pxe boot
« on: February 01, 2021, 03:57:55 PM »
hello I'm new in this playing around since 3 days now I try to run a specific app on pxe boot I tried several thing make a lot of research and I can't get it to work.. PXE work fine I can boot no problem I can install things.. but I want it to run itself went I boot.

Computer client has no hard drive and 2 to 4GB memory
I tried to boot on virtual machine and physical machine both is not working

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: how to boot a specific program on pxe boot
« Reply #1 on: February 02, 2021, 03:07:19 AM »
Starting an app usually goes to a file in ~/X.d, for graphical apps. http://tinycorelinux.net/faq.html#appstart

These files come from persistent home or backup. Persistent home does not apply for PXE booting (without hacks). Backup only applies if you have a tce dir over NFS. If you don't want a remote tce dir, you will have to remaster the initrd with your added file.
The only barriers that can stop you are the ones you create yourself.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: how to boot a specific program on pxe boot
« Reply #2 on: February 02, 2021, 01:17:08 PM »
Or, create another initrd with the files you want and add it to the INITRD list, basically the same as a mydata.tgz file. Here is an example for a syslog server:

Code: [Select]
DEFAULT pxe
LABEL pxe
KERNEL pxelinux.cfg/default-boot/vmlinuz64-11
INITRD pxelinux.cfg/default-boot/rootfs64-11-1.gz,pxelinux.cfg/default-boot/modules64-11.gz,pxelinux.cfg/default-boot/my-syslog-data.gz
APPEND host=syslog-vm printk.time=1 lang=en_US.UTF-8 cron syslog quiet noswap nozswap nodhcp tce=/ httplist=192.168.3.4:/syslog.lst udev.children-max=24