I'm really struggling to get something as simple as this to work. I've tried using rc.local, but for some reason the program doesn't seem to be starting, and I believe it would try to start before the desktop is up and running anyway.
I'm using the legacy 32-bit version of Raspberry Pi OS (Debian Bullseye) for a Pi 4.
I'd like a new terminal window to start up with the following command after the desktop has started at reboot time:
sudo /root/cpuminer-multi/cpuminer -parameters for the miner etc
It would be nice to have the terminal window visible, so that I can check on its status via VNC periodically.
Thanks
cpuminer
command - why are you even running the GUI/X-Windows? Have you considered running your RPi "headless", and just use SSH to log in? This is why your question is so bad - it's like you know absolutely nothing about anything. :-|sudo
a process, it runs, obviously, as a different user (root). Therefore it does not have access to YOUR desktop. This approach won't work.sudo
inrc.local
is pointless, it runs as root anyway). You want to use~/.config/lxsession/LXDE-pi/autostart
for this.