Bash scriipt calling Konsole in Sudo Mode
by TBotNik from LinuxQuestions.org on (#4X5BY)
All,
I'm running Kubuntu, so it is "Konsole", not "Terminal" on my box. I need a bash script that does the following:
Konsole sessions open at the start of any login on my computer.
It's such a pain to have to manually do this every time I login.
Ideally, for security, the command will be:
Code:bash /...path.../sudologin.sh mypasswhich will also allow it's call at anytime and be used by any linux user and also allow, with the right symlink or rc registry, it to be called without the path name. Non KDE users will use "terminal" not konsole.
All help appreciated!
Cheers!
TBNK


I'm running Kubuntu, so it is "Konsole", not "Terminal" on my box. I need a bash script that does the following:
- Kills any current Konsole sessions,
Guessing it is the cmd: myvar < ps -A | grep konsole && kill $myvar - Re-opens Konsole with 3 session tabs,
- Logs each tab session into sudo mode for root
Konsole sessions open at the start of any login on my computer.
It's such a pain to have to manually do this every time I login.
Ideally, for security, the command will be:
Code:bash /...path.../sudologin.sh mypasswhich will also allow it's call at anytime and be used by any linux user and also allow, with the right symlink or rc registry, it to be called without the path name. Non KDE users will use "terminal" not konsole.
All help appreciated!
Cheers!
TBNK