Is it fun to display a welcome note with your name while booting up Puppy linux? If you think so, you can continue reading. Here I am telling how to set up your Puppy Linux to display "Welcome, {your name}" at boot up. Probably you can do this in other Linux based OS with slight or no modifications. But nowadays bulky operating system intentionally hide the boot up screen with a splash image.
First of all, navigate to /etc/rc.d
Then open 'rc.sysinit' . You should have root privileges in order to edit this file. Read carefully the 'Read me' file before going to do anything. If you are not going to take a risk, back up the file into any other externally accessible directory.
After you open the file in your favourite text editor, just go through the file, you will notice that, this script is automatically executed at every boot up. Go to the end of the file and append the following script.
##########CUSTOM SCRIPT##############
echo -n "
" >/dev/console
/bin/echo -e "\\033[10G\\033[1;34mWelcome, {Your name}\\033[0;39m" >/dev/console
echo -n "
" >/dev/console
sleep 2
###################################
Edit the script with your name instead of '{Your name}'. The script is nothing but an echo statement to the console. It is possible to change the display properties by changing the parameters along with the text. First test it in terminal and then write script is recommended. Now save the file and reboot.
Done.
If you avoid 'sleep 2' statement, you may not see the text at boot up. One best way is remove the line 'sleep 2' and set a login password for Puppy as I did. Then Puppy gives a cool welcome to you and then ask password.
First of all, navigate to /etc/rc.d
Then open 'rc.sysinit' . You should have root privileges in order to edit this file. Read carefully the 'Read me' file before going to do anything. If you are not going to take a risk, back up the file into any other externally accessible directory.
After you open the file in your favourite text editor, just go through the file, you will notice that, this script is automatically executed at every boot up. Go to the end of the file and append the following script.
##########CUSTOM SCRIPT##############
echo -n "
" >/dev/console
/bin/echo -e "\\033[10G\\033[1;34mWelcome, {Your name}\\033[0;39m" >/dev/console
echo -n "
" >/dev/console
sleep 2
###################################
Edit the script with your name instead of '{Your name}'. The script is nothing but an echo statement to the console. It is possible to change the display properties by changing the parameters along with the text. First test it in terminal and then write script is recommended. Now save the file and reboot.
Done.
If you avoid 'sleep 2' statement, you may not see the text at boot up. One best way is remove the line 'sleep 2' and set a login password for Puppy as I did. Then Puppy gives a cool welcome to you and then ask password.
No comments:
Post a Comment