Xairro.com

Login
Schliessen

Willkommen im Xairroversum! Ein kostenloser Account bei uns bietet dir mehrere Vorteile. Welche das genau sind, kannst du in der Tour erfahren. Viel Spaß!

Login

Register

Painting the front door

You can easily adjust how Linux welcomes you. For the welcome message on virtual consoles ist the file /etc/issue responsible

In my system (Ubuntu Feisty (7.0)) it contains the following:

Ubuntu 7.04 \n \l

You can easily guess that \n is replaced by the hostname and \l by the number of the console.
Here is an overview over the functional characters:
\tCurrent time in the format HH:MM:SS
\dCurrent date in the format YYYY-MM-DD
\sName of the operating system
\mType of the processor
\rNumber of the kernel

The file /etc/motd (Message Of The Day) appears when a user logged in.

A picture for the door

The program Linux_Logo is able to create nice pictures e.g. for one of these files.
Under Ubuntu you can install Linux_Logo easily by typing sudo apt-get install linuxlogo into your bash. After that you can start Linux_Logo with the command linux_logo.
With some parameters you are able to affect the image. -a outputs everything in ASCII, -c paints a tux and -h outputs a complete overview over the possible parameters.
If you like the pictures you've created, you can create a new welcome file:

cp /etc/motd /etc/motd.copy
linux_logo -c > /etc/motd


translated by BlitzChecker

0 comments

Sorry but there are no comments for this entry. What about writing the first one?

Post comment

Zum Kommentieren musst du angemeldet sein.

About the author

Lukas

Lukas aka BlitzChecker programmiert seit 2003 in diversen Programmiersprachen. Spezialisiert hat er sich auf die Webprogrammierung und Linux Administration. Sein Fachwissen gibt er gerne in Artikeln auf Xairro weiter.

Weitere Informationen gibt es in seinem Userprofil auf Xairro und auf seiner privaten Homepage.

Tags

able adjust and appears apt-get can characters copy easily file files for format hostname install kernel linux logged logo message motd one operating over overview parameters picture pictures responsible some sudo system that ubuntu when with you you've your yyyy-mm-dd