Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Motd con colore
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Fri Feb 20, 2004 8:35 pm    Post subject: Motd con colore Reply with quote

Ragazzi ho letto sul come avere i colori in shell ma funziona solo sulla shell (o nell'etc/issue) ma nel motd nn so come metterlo Suggerimenti?
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
Diggs
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 239
Location: LoSt In NeT SpAcE

PostPosted: Fri Feb 20, 2004 11:08 pm    Post subject: Reply with quote

Prova Qui e Qui.
Good Work!
:wink:
_________________
IRCNET NICK: diggs on IRCNET
http://leonardo.netsons.org/
Gioca a Tremulous! Player [!!!] Diggs [ITA]
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Fri Feb 20, 2004 11:28 pm    Post subject: Reply with quote

si ok quello l'ho provato anche io infatti in bash il programmillo funziona il problema rimane sul motd perchè si limita a stampare il testo non colorato ma in bianco e nero e io lo volevo colorato.. un metodo ci deve essere!

http://www.koma.altervista.org/browse/programmillo1.jpg -> il bashed (che viene anche nell'issue)
http://www.koma.altervista.org/browse/programmillo2.jpg -> il motd (che non funziona)
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
Diggs
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 239
Location: LoSt In NeT SpAcE

PostPosted: Fri Feb 20, 2004 11:41 pm    Post subject: Reply with quote

Leggi tutto il secondo topic, c'è scritto come fare, basta che hai linux-logo ed il gioco è fatto :wink:
_________________
IRCNET NICK: diggs on IRCNET
http://leonardo.netsons.org/
Gioca a Tremulous! Player [!!!] Diggs [ITA]
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Sat Feb 21, 2004 12:28 am    Post subject: Reply with quote

Code:
2.11 Messaggi di login

Se volete personalizzare i messaggi di login, controllate se il vostro /etc/rc.d/rc.local sovrascrive /etc/issue e /etc/motd (RedHat lo fa). Se li sovrascrive, dateci sotto con l'editor.

Se desiderate un messaggio di login colorato, potete adattare il rc.local inserendo linee simili a quelle riportate:

# immette un vero carattere di escape invece di ^[. Per fare questo:
# emacs: ^Q ESC   vi: ^V ESC   joe:  ` 0 2 7   jed: ` ESC
ESC="^["  # un vero carattere di escape
BLUE="$ESC[44;37m"
NORMAL="$ESC[40;37m"
CLEAR="$ESC[H$ESC[J"

> /etc/issue
echo "$CLEAR" >> /etc/issue
echo "$BLUE   Welcome to MyServer (192.168.1.1)   " >> /etc/issue
echo "$NORMAL " >> /etc/issue
echo "" >> /etc/issue



Ho trovato anche questo :)
ma non so a cxhe file adattarlo cioè :
Code:

 # locate rc.local       
/usr/share/doc/util-linux-2.12-r4/examples/rc.local.gz
quella roba dove dovrei metterla
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD


Last edited by koma on Sat Feb 21, 2004 12:34 am; edited 1 time in total
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Sat Feb 21, 2004 12:31 am    Post subject: Reply with quote

Code:
Another suggestion:
Codice:

emerge linux-logo
linux_logo -L 3 > /etc/issue (back up /etc/issue first)

You'll then have a gentoo logo in your /etc/issue. There are a few different logos in linux_logo...linux_logo -L 1 gives you a linux penguin with a white/grey background, -L 2 a penguin with a black background, etc.
Ti riferisci a questo vero? No non va funziona solo con l'issue
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum