Tiny Core Base > TCB Q&A Forum

official way to run commands at boot as regular user?

(1/4) > >>

GNUser:
I run TCL15 x86_64 on my home's wireless router. It is CLI-only, so it does not have a ~/.X.d directory.

Startup jobs in /opt/bootlocal.sh run as root. Is there an official/obvious way to run startup commands as regular user without ~/.X.d?

Stefann:
Not answering your question,
But interested…

“How on earth do you get tce (or any Linux) on a home router?”

Asking from the genuine interest to use a router as “cheap server” for home automation system.
(It now runs on a 500MHz i386 1 W cpu).

GNUser:
My home wireless router is a repurposed ThinkPad X200 laptop powered by TCL, hostapd.tcz, dnsmasq.tcz, and an Alfa AWUS036ACHM USB adapter. It also functions as a media server (minidlna.tcz) and web server (nginx.tcz), among other things.

Needless to say, this machine is one of my favorite toys :)

Stefann:
Ah,
Makes sense.
I was directly googling to find out how such could be done.
I have 2 old unused linksys routers somewhere collecting dust.
But so far I found “only very limited and dedicated Linux versions could be loaded”.
So.. indeed… makes sense… your not running it on a linksys.

Very understandable a fun toy!

Stefann:
Note, on your original question,
Can you not run all commands inside boorlocal.sh as

sudo -u userX

In other words….
Bootlocal.sh will still run as root
But all commands inside as userX

Navigation

[0] Message Index

[#] Next page

Go to full version