LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   saving setterm (https://www.linuxquestions.org/questions/linux-newbie-8/saving-setterm-570821/)

kwikness 07-19-2007 08:17 PM

saving setterm
 
Hi, i'm trying to use setterm via typing it as a console command to change my console text color on my Slackware distro. It works and everything, but when I reboot, the changes aren't saved and the text returns to its normal color. Is there a config file I have to put it in? If so, where is this file?


I realize this must be an often asked question, but I couldn't find a straight answer.

wjevans_7d1@yahoo.co 07-19-2007 08:48 PM

You are using bash as your shell, ja?

For each user for which you want it to be automatically reset, log in as that user, and stay in the home directory.

If there exists a file called .profile, put the command there.

If there exists a file called .bash_profile, put the command there.

Hope this helps.

kwikness 07-20-2007 12:07 AM

Ok so I found the profile file and edited it with vim. My terminal text color now turns green when I log in.

I want to turn the text green as early as possible. For example.. How could I turn the text green while the system is booting, during this screen..

<img src = "http://kouellette16.home.comcast.net/linuxss.jpg">
http://kouellette16.home.comcast.net/linuxss.jpg

wjevans_7d1@yahoo.co 07-20-2007 06:41 AM

As far as I know, you'd have to modify and recompile the kernel to do that. I don't know much about that, and have never done it. If you really want to do this, start by looking at file init/main.c, in function start_kernel().

kwikness 07-20-2007 10:13 AM

can anyone give me a more detailed description of how to do this?

lugoteehalt 07-20-2007 10:16 AM

Sorry no. But suggest you have a live rescue thing to hand, like knoppix.

kwikness 07-20-2007 02:24 PM

Thread Closed


All times are GMT -5. The time now is 03:59 PM.