LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Commands at startup (https://www.linuxquestions.org/questions/linux-newbie-8/commands-at-startup-350855/)

Maverick1182 08-07-2005 12:06 PM

Commands at startup
 
I want to run the following command on startup to get a nice transparent console on my background everytime i startup,

Eterm -O --buttonbar no --scrollbar no -x -f white -g 125x50+0+0 --font2


the forums say to edit the rc.local file in /etc but even though i logged in as root and vim and then editted to the following, i reboot, and it makes no difference.....

Is this related to me having to define which shell i'm using or something?


#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.



touch /var/lock/subsys/local
Eterm -O --buttonbar no --scrollbar no -x -f white -g 125x50+0+0 --font2


Any help?

trickykid 08-07-2005 12:40 PM

Do you actually start in X or issue the startx command? Using rc.local in either case won't do anything for you since this is eterm specific setup for a terminal. You'll need to add this eterm line from the launcher on whatever desktop you use or set it up to run from your .bashrc or .bash_login files for your particular user.

Maverick1182 08-07-2005 04:58 PM

KDE starts automatically, i dont type startx. So i just append the command in either file you suggested? Cool, i shall give it a try and let you know.

Maverick1182 08-07-2005 05:13 PM

K, i tried adding the Eterm line to the .bashrc file in my home directory and saved. Was gonna wait till i restarted but while i was opening a new konsole, it seemed to want to repeat loading Eterm over and over again! ..... had to close it all down and close the window from which i started konsole. I could see the transparent windows loading on top of one and another..... i wanted just the one lol.

Any ideas?

Tinkster 08-07-2005 05:14 PM

That's not really what you want. In KDE use the
~/.kde/Autostart feature ... create a shell-script that
does what you want and put it there.



Cheers,
Tink

Maverick1182 08-08-2005 05:55 PM

So i create a file called starteterm.sh with the command in it? nothing else like sh Eterm etc....? I'll try and figure it out and post back....


All times are GMT -5. The time now is 10:46 PM.