Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
post your /etc/issue
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
russianpirate
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1167
Location: Detroit, MI

PostPosted: Wed Jun 15, 2005 12:23 am    Post subject: Reply with quote

I already found variables in man agetty, but thanks anyway! :)
Whats the difference between /etc/skel/.bashrc and individual .bashrc except its for all users?
Back to top
View user's profile Send private message
stustill
Guru
Guru


Joined: 25 Feb 2003
Posts: 333
Location: Aberdeen, Scotland

PostPosted: Wed Jun 15, 2005 12:33 am    Post subject: Reply with quote

Well, when you create a new user with useradd -m, it creates a home directory for that user, and populates it with the contents of /etc/skel/. Its basically a place to put default settings into for new users of the system.

Stu
Back to top
View user's profile Send private message
Katphish
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 155

PostPosted: Sat Dec 31, 2005 10:23 am    Post subject: ASCII PowerPC for /etc/issue Reply with quote

Hi,

Sometimes I have a lot of spare time on my hands :roll: and this is something I did at one of those times:

Code:
     4$$$$$$                                             4$$$$$$      .v$$$$$$$
     $$$$$$$$                                            $$$$$$$$    4$$$$$$$$'
    4$$$"  $$$                                          4$$$"  $$$  4$$$
    $$$$   $$$                                          $$$$   $$$  $$$
   4$$$"   $$$  d$$$b   $$  $$$  $$ .v$$$v.   4$$ $$$$ 4$$$"   $$$ 4$$$
   $$$$ $$$$$".$$$$$$$  $$$ $$$ $$" $$$$$$v   $$$$$$$' $$$$ $$$$$" ---
  4$$$" $$$"  $$$  $$$  $$$p$$$p$$ $$$  $$$  4$$"     4$$$" $$$"   $$$
  $$$$        ---  ---  $$$$$$$$$  $$$ $$$$  $$$      $$$$         $$$
 4$$$"        $$$  $$P  $$$$^$$$'  $$$.     4$$"     4$$$"         $$$$$$$$
 $$$$         "Q$$$P"   $$P  W$'   `Q$$$$$  $$$      $$$$          `$$$$$$'

-------------------------------------------------------------------------------
                            Power Macintosh G3
-------------------------------------------------------------------------------

                    PowerPC 740/750 300 MHz Processor
                             1024 Kb L2 Cache
                               768 Mb RAM

This is \l on \n.\O (\s \m \r) \t


On that system I:

1) copied /etc/issue to /etc/issue.default
2) copied /etc/issue.logo to /etc/issue
3) cat'ted the above >> /etc/issue

Step two is optional but the effect is nice.

You will probably need to trim the first "This is" line from the new /etc/issue and add extra linefeeds at the top for a cleaner screen.

But wait, there is more. I also did the above in full old school mac color! :wink:

Code:

^[[0;37;40m
^[[0;32;40m     4$$$$$$                                             4$$$$$$      .v$$$$$$$
^[[0;32;40m     $$$$$$$$                                            $$$$$$$$    4$$$$$$$$'
^[[1;33;40m    4$$$"  $$$                                          4$$$"  $$$  4$$$
^[[1;31;40m    $$$$   $$$                                          $$$$   $$$  $$$
^[[1;31;40m   4$$$"   $$$  d$$$b   $$  $$$  $$ .v$$$v.   4$$ $$$$ 4$$$"   $$$ 4$$$
^[[0;31;40m   $$$$ $$$$$".$$$$$$$  $$$ $$$ $$" $$$$$$v   $$$$$$$' $$$$ $$$$$" ---
^[[0;31;40m  4$$$" $$$"  $$$  $$$  $$$p$$$p$$ $$$  $$$  4$$"     4$$$" $$$"   $$$
^[[0;35;40m  $$$$        ---  ---  $$$$$$$$$  $$$ $$$$  $$$      $$$$         $$$
^[[0;35;40m 4$$$"        $$$  $$P  $$$$^$$$'  $$$.     4$$"     4$$$"         $$$$$$$$
^[[0;34;40m $$$$         "Q$$$P"   $$P  W$'   `Q$$$$$  $$$      $$$$          `$$$$$$'
^[[0;37;40m

-------------------------------------------------------------------------------
                            Power Macintosh G3
-------------------------------------------------------------------------------

                    PowerPC 740/750 300 MHz Processor
                             1024 Kb L2 Cache
                               128 Mb RAM

This is \l on \n.\O (\s \m \r) \t


*cut n paste may not work on the color version. In that case, one would need to repair the "^["s manually.
Back to top
View user's profile Send private message
Katphish
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 155

PostPosted: Sat Dec 31, 2005 10:34 am    Post subject: ASCII IBM Thinkpad for /etc/issue Reply with quote

Hi,

Sometimes I have a lot of spare time on my hands :roll: and this is something I did at one of those times:

Code:
^[[0;37;40m
            ^[[0;31;40m#######  ^[[0;32;40m###########   ^[[0;36;40m######     ######
            ^[[0;31;40m#######  ^[[0;32;40m############  ^[[0;36;40m#######   #######
              ^[[0;31;40m###      ^[[0;32;40m###    ###    ^[[0;36;40m###### ######
              ^[[0;31;40m###      ^[[0;32;40m#########     ^[[0;36;40m#############
              ^[[0;31;40m###      ^[[0;32;40m#########     ^[[0;36;40m#############
              ^[[0;31;40m###      ^[[0;32;40m###    ###    ^[[0;36;40m### ##### ###
            ^[[0;31;40m#######  ^[[0;32;40m############  ^[[0;36;40m#####  ###  #####
            ^[[0;31;40m#######  ^[[0;32;40m###########   ^[[0;36;40m#####   #   #####^[[0;37;40m
                       ^[[7;37;40m     ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m           ^[[7;37;40m ^[[0;37;40m    ^[[7;37;40m   ^[[0;37;40m          ^[[7;37;40m ^[[0;37;40m
                         ^[[7;37;40m ^[[0;37;40m   ^[[7;37;40m ^[[0;37;40m    ^[[7;37;40m_^[[0;37;40m      ^[[7;37;40m ^[[0;37;40m    ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m         ^[[7;37;40m ^[[0;37;40m
                         ^[[7;37;40m ^[[0;37;40m   ^[[7;37;40m    ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m    ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m    ^[[0;37;40m ^[[7;37;40m    ^[[0;37;40m
                         ^[[7;37;40m ^[[0;37;40m   ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m   ^[[0;37;40m     ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m
                         ^[[7;37;40m ^[[0;37;40m   ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m  ^[[0;37;40m   ^[[7;37;40m ^[[0;37;40m    ^[[7;37;40m    ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m
                         ^[[7;37;40m ^[[0;37;40m   ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m    ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m
                         ^[[7;37;40m ^[[0;37;40m   ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m  ^[[7;37;40m ^[[0;37;40m ^[[7;37;40m ^[[0;37;40m    ^[[7;37;40m    ^[[0;37;40m ^[[7;37;40m    ^[[0;37;40m

This is \l at \n.\O (\s \m \r) \t


It may look like a bunch of garbage but it does come out alright :wink: .

*cut n paste may not work on the control characters. In that case, one would need to repair the "^["s manually. Also, there some long lines in there that may have the linefeeds broken. If it doesn't work, let me know and I will host the raw file off a web server.

On that system I:

1) copied /etc/issue to /etc/issue.default
2) copied /etc/issue.logo to /etc/issue
3) cat'ted the above >> /etc/issue

Step two is optional but the effect is nice.

You will probably need to trim the first "This is" line from the new /etc/issue and add extra linefeeds at the top for a cleaner screen.
Back to top
View user's profile Send private message
ph03n1x
l33t
l33t


Joined: 06 Feb 2003
Posts: 756

PostPosted: Sat Dec 31, 2005 1:14 pm    Post subject: Reply with quote

Dude you really have a lot of time...

what about a lenovo one :D
Back to top
View user's profile Send private message
syscrash
Guru
Guru


Joined: 14 Apr 2003
Posts: 541

PostPosted: Sat Dec 31, 2005 9:44 pm    Post subject: Reply with quote

/etc/motd:
Code:
           `-:::-`
       -odNMMMMMMMNNNNNNNNNNN:
     +mMMMmyo+oshNMMMMdhhhhhh
   :mMMMs.       `sMMMd`
  +MMMd.           hMMMo      Welcome to sigma.
 :MMMm`            oMMMy      No forkbombs (well,
 mMMM:             sMMMs      try it, you may
:MMMm              mMMM:      like it.)
oMMMy             +MMMh
oMMMd            /MMMm`
-MMMM/         `sMMMd`
 +MMMMy/.` `-/yMMMN+
  -hMMMMMMMMMMMMh/
    `/oyyhhys+:`

_________________
Play ET? Come by #gentoo.et on freenode!
http://syscrash.ca
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5213

PostPosted: Sat Dec 31, 2005 9:51 pm    Post subject: Reply with quote

[oops] gotta watch those typoes. :roll:
_________________
goodbye fgo. it was nice knowing you.


Last edited by bunder on Mon Mar 06, 2006 6:53 am; edited 1 time in total
Back to top
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 653
Location: Canada

PostPosted: Mon Jan 02, 2006 6:18 pm    Post subject: Reply with quote

Is /etc/issue.net supposed to be shown when connected by ssh to server ?
Back to top
View user's profile Send private message
Katphish
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 155

PostPosted: Wed Jan 04, 2006 8:53 am    Post subject: Reply with quote

geforce wrote:
Is /etc/issue.net supposed to be shown when connected by ssh to server ?


Not unless you set it up in /etc/ssh/sshd_config and restart the sshd server... specifically on the "Banner" line
Back to top
View user's profile Send private message
Katphish
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 155

PostPosted: Wed Jan 04, 2006 8:57 am    Post subject: Reply with quote

ph03n1x wrote:
Dude you really have a lot of time...

what about a lenovo one :D


hehe, gotta do something between emerges :wink:

I don't know about lenovo yet, I am still torn up about all that :roll:
Back to top
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 653
Location: Canada

PostPosted: Wed Jan 04, 2006 7:51 pm    Post subject: Reply with quote

Katphish wrote:

Not unless you set it up in /etc/ssh/sshd_config and restart the sshd server... specifically on the "Banner" line


I mean, after I logged in
Back to top
View user's profile Send private message
MACSRULETHEWORLD
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2004
Posts: 131

PostPosted: Wed Jan 04, 2006 10:23 pm    Post subject: Reply with quote

my /etc/motd

Code:

ACHTUNG! ALLES LOOKENSPEEPERS!

Das computermachine ist nicht fuer gefingerpoken und mittengrabben.
Ist easy schnappen der springenwerk, blowenfusen und poppencorken mit
spitzensparken. Ist nicht fuer gewerken bei das dumpkopfen.
Das rubbernecken sichtseeren keepen das cotten-pickenen
hans in das pockets muss; relaxen und watchen das blinken lights.
Back to top
View user's profile Send private message
Katphish
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 155

PostPosted: Fri Jan 06, 2006 10:15 pm    Post subject: Reply with quote

geforce wrote:
I mean, after I logged in


That would be the /etc/motd (Message Of The Day) file.
Back to top
View user's profile Send private message
Zepp
Veteran
Veteran


Joined: 15 Mar 2004
Posts: 1246
Location: Ontario, Canada

PostPosted: Sat Jan 07, 2006 1:04 am    Post subject: Re: ASCII IBM Thinkpad for /etc/issue Reply with quote

Katphish wrote:

It may look like a bunch of garbage but it does come out alright :wink: .

*cut n paste may not work on the control characters. In that case, one would need to repair the "^["s manually. Also, there some long lines in there that may have the linefeeds broken. If it doesn't work, let me know and I will host the raw file off a web server.

On that system I:

1) copied /etc/issue to /etc/issue.default
2) copied /etc/issue.logo to /etc/issue
3) cat'ted the above >> /etc/issue

Step two is optional but the effect is nice.

You will probably need to trim the first "This is" line from the new /etc/issue and add extra linefeeds at the top for a cleaner screen.


Never worked for me :/
_________________
Every iPhone is a gift from God.
Back to top
View user's profile Send private message
Katphish
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 155

PostPosted: Sat Jan 07, 2006 2:20 am    Post subject: Re: ASCII IBM Thinkpad for /etc/issue Reply with quote

Zepp wrote:
Never worked for me :/


What didn't work? Color?

The escape characters are transliterated and need to be restored.

Do this:

Code:
cat /etc/issue | sed "s@\^\[@\x1B@g" > /etc/issue.sed
mv /etc/issue.sed /etc/issue
Back to top
View user's profile Send private message
Zepp
Veteran
Veteran


Joined: 15 Mar 2004
Posts: 1246
Location: Ontario, Canada

PostPosted: Sat Jan 07, 2006 8:01 pm    Post subject: Re: ASCII IBM Thinkpad for /etc/issue Reply with quote

Katphish wrote:
Zepp wrote:
Never worked for me :/


What didn't work? Color?

The escape characters are transliterated and need to be restored.

Do this:

Code:
cat /etc/issue | sed "s@\^\[@\x1B@g" > /etc/issue.sed
mv /etc/issue.sed /etc/issue


Ah works now, nice job haha :D
_________________
Every iPhone is a gift from God.
Back to top
View user's profile Send private message
Katphish
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 155

PostPosted: Mon Jan 09, 2006 1:35 am    Post subject: Reply with quote

cool, glad you like it! :D
Back to top
View user's profile Send private message
floffe
Guru
Guru


Joined: 24 Nov 2003
Posts: 414
Location: Linköping, Sweden

PostPosted: Mon Feb 27, 2006 2:06 pm    Post subject: Reply with quote

lisa wrote:
Code:

dev root # cat /etc/issue

This is \n.\O (\s \m \r) \t



Don't need anything special. :)

++
Back to top
View user's profile Send private message
Katphish
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 155

PostPosted: Wed May 24, 2006 3:31 am    Post subject: Reply with quote

Code:
^[[0;34;40m       AAA       MMM     MMM  DDDDDDDb,      .66      444
^[[0;34;40m      AA AA      MMMMM MMMMM  DD     DD,    66'      4 44
^[[0;34;40m     AA   AA     MM  MMM  MM  DD     `DD   66       4  44
^[[0;34;40m    AAAAAAAAA    MM   M   MM  DD     ,DD   66<66>. 4444444
^[[0;34;40m   AA       AA   MM       MM  DD     DD'   66   66     44
^[[0;34;40m  AA         AA  MM       MM  DDDDDDDP'    `<666>'     44^[[0;37;40m

^[[0;32;40m                   `$$$$$$$$$$$$$$$$$$$$
^[[0;32;40m                    `V$$$$$$$$$$$$$$$$$$
^[[0;32;40m                      `$$$$$$$$$$$$$$$$$
^[[0;32;40m                                   $$$$$
^[[0;32;40m                     ,$            $$$$$
^[[0;32;40m                    ,$$            $$$$$
^[[0;32;40m                   ,$$$            $$$$$
^[[0;32;40m                  ,$$$$            $$$$$
^[[0;32;40m                  $$$$$            $$$$$
^[[0;32;40m                  $$$$$            $$$$$
^[[0;32;40m                  $$$$$$$$$$$$$$'  `$$$$
^[[0;32;40m                  $$$$$$$$$$$$$'     V$$
^[[0;32;40m                  $$$$$$$$$$$$'       `$^[[0;37;40m

This is \n.\O (\s \m \r) \t



This one will fit in an 80x25 console:

Code:
^[[0;35;40m                                           .
^[[0;35;40m     .vir.                                d$b
^[[0;35;40m  .d$$$$$$b.    .cd$$b.     .d$$b.   d$$$$$$$$$$$b  .d$$b.      .d$$b.
^[[0;35;40m  $$$$( )$$$b d$$$()$$$.   d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b.  .$$$$$$$b.
^[[0;35;40m  Q$$$$$$$$$$B$$$$$$$$P"  d$$$PQ$$$$b.   $$$$.   .$$$P' `$$$ .$$$P' `$$$
^[[0;35;40m    "$$$$$$$P Q$$$$$$$b  d$$$P   Q$$$$b  $$$$b   $$$$b..d$$$ $$$$b..d$$$
^[[0;35;40m   d$$$$$$P"   "$$$$$$$$ Q$$$     Q$$$$  $$$$$   `Q$$$$$$$P  `Q$$$$$$$P
^[[0;35;40m  $$$$$$$P       `"""""   ""        ""   Q$$$P     "Q$$$P"     "Q$$$P"
^[[0;35;40m  `Q$$P"                                  """ ^[[0;37;40m
^[[0;34;40m          AAA       MMM     MMM  DDDDDDDb,     ^[[0;32;40m `$$$$$$$$$$$$$$$$$$$$
^[[0;34;40m         AA AA      MMMMM MMMMM  DD     DD,    ^[[0;32;40m  `V$$$$$$$$$$$$$$$$$$
^[[0;34;40m        AA   AA     MM  MMM  MM  DD     `DD    ^[[0;32;40m    `$$$$$$$$$$$$$$$$$
^[[0;34;40m       AAAAAAAAA    MM   M   MM  DD     ,DD    ^[[0;32;40m                 $$$$$
^[[0;34;40m      AA       AA   MM       MM  DD     DD'    ^[[0;32;40m   ,$            $$$$$
^[[0;34;40m     AA         AA  MM       MM  DDDDDDDP'     ^[[0;32;40m  ,$$            $$$$$
                                               ^[[0;32;40m ,$$$            $$$$$
^[[0;34;40m                    .66      444               ^[[0;32;40m,$$$$            $$$$$
^[[0;34;40m                   66'      4 44               ^[[0;32;40m$$$$$            $$$$$
^[[0;34;40m                  66       4  44               ^[[0;32;40m$$$$$            $$$$$
^[[0;34;40m                 d6d666b. 4444444              ^[[0;32;40m$$$$$$$$$$$$$$'  `$$$$
^[[0;34;40m                 66    66     44               ^[[0;32;40m$$$$$$$$$$$$$'     V$$
^[[0;34;40m                 `\\6666P'     44               ^[[0;32;40m$$$$$$$$$$$$'       `$^[[0;37;40m
This is \l on \n.\O (\s \m \r) \t



PS - Don't forget to convert all the '^[' back to escapes (instructions above)
Back to top
View user's profile Send private message
asph
l33t
l33t


Joined: 25 Aug 2003
Posts: 737
Location: Barcelona, Spain

PostPosted: Wed May 24, 2006 8:57 am    Post subject: Reply with quote

memnoch ~ # cat /etc/issue

This is \n.\O (\s \m \r) \t
_________________
gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep
Back to top
View user's profile Send private message
Toad King
n00b
n00b


Joined: 09 Jun 2006
Posts: 17

PostPosted: Sat Dec 16, 2006 12:02 am    Post subject: Reply with quote

Code:
^[[1;31mAbandon all hope, ye who enter here.^[[0m

And for /etc/motd, I just set up this script to run hourly:

Code:
#!/usr/bin/perl -w

use strict;
use XML::Atom::Client;
use Text::Wrap;

$Text::Wrap::columns = 76;

my $atomapi = XML::Atom::Client->new;

my $o;

MAINLOOP: {
   eval {
      my $f = $atomapi->getFeed("http://4q.cc/index.php?pid=atom&person=all");
      my @entry = $f->entries;
      my $e = $entry[0];
      $o = $e->elem->getChildrenByTagName("title")->shift->firstChild->data;
   };

   if ($@) {
      redo MAINLOOP;
   }
}

$o = "\n\033[1;34m" . fill("", "", "FUN FACT: $o") . "\033[0m\n\n";
open(MOTD, ">/etc/motd");
print MOTD $o;
truncate(MOTD, length($o));
Back to top
View user's profile Send private message
LD
Guru
Guru


Joined: 23 Dec 2003
Posts: 336
Location: Middle of No-Where Granbury, Tx

PostPosted: Sat Dec 16, 2006 12:04 am    Post subject: Reply with quote

And the Dead shall rise from the grave and walk the earth.
_________________
[Owner/Operator: Dhampir Dreams]
Last.fm profile
Netflix Profile
Back to top
View user's profile Send private message
Toad King
n00b
n00b


Joined: 09 Jun 2006
Posts: 17

PostPosted: Sat Dec 16, 2006 12:20 am    Post subject: Reply with quote

LD wrote:
And the Dead shall rise from the grave and walk the earth.
You say that like its a bad thing. :D

Also, I can't get the message of the day to work for me. The file is there with the contents, and my home directory doesn't have a .hushlogin file in it. What else could be the problem?

EDIT: Found the problem; I had PAM installed and had to add this line to /etc/pam.d/login:
Code:
session    optional   /lib/security/pam_motd.so motd=/etc/motd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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