I want to run the command HTOP
, nethogs
, and a bunch of other commands each in its own terminal tab as Ubuntu starts. I always have to manually start a terminal and type the same commands over and over. To be clear I want to:
- Open One terminal with multiple tabs on startup
- In each of these terminal tabs run a different command automatically
$ vim ~/.config/autostart/Apps.desktop
#!bin/bash
gnome-terminal --tab Htop -e htop --tab Nethogs -e nethogs --maximize
is that the correct format ? !wine will open a wine command with others, atleast thats how it does now in the terminal. It does not seem to work. Well it will work if you run the program as the root in the terminal. But it will not run after the boot takes place.
sudo -u [username] screen -dmS [screenname] [command argument argument2] ...
to/etc/rc.local
. This will start a detached session attached to your user with namescreenname
and commandcommand argument argument2
on startup.