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

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
vericgar
Retired Dev
Retired Dev


Joined: 13 Dec 2002
Posts: 79
Location: Spokane, WA

PostPosted: Sun Feb 29, 2004 12:24 am    Post subject: post your /etc/issue Reply with quote

I thought I had seen a thread for doing this a while ago, but I can't seem to find it.

/etc/issue for those who don't know controls what the console login looks like.

Here's mine:

Code:
^[[H^[[J^[[34;01m ____   __   __  _/"\\_  ___   ___
/ _  \\ / ,\\ /  \\|_   _|/ _ \\ / _ \\
\\_   //  _// /\\ \\ | | | |_| | |_| |
/   / \\___\\|/  \\_|| |  \\___/ \\___/
\\__/ ^[[0;1mGentoo ^[[32m\s ^[[34;01m|_|^[[0;0m \r
\v :: ^[[1m\l^[[0m

^[[1mWelcome to ^[[36m\n.\O^[[0;10m


Make sure you watch out for the ^[. You can make those in vim by using Ctrl+v and then Ctrl+[ when in insert mode.

Output:
Code:
 ____   __   __  _/"\_  ___   ___                                                       
/ _  \ / ,\ /  \|_   _|/ _ \ / _ \
\_   //  _// /\ \ | | | |_| | |_| |
/   / \___\|/  \_|| |  \___/ \___/
\__/ Gentoo Linux |_| 2.4.22-gentoo-r7                                                       
#1 Sat Feb 21 18:30:27 PST 2004 :: tty2                                                         

Welcome to darkelf.garjasp.com

darkelf login:


of course with lots more color then that.

Tip: taking console screenshots - as root cat /dev/vcsN > capture.txt where N is the tty number.
_________________
+~+ Sometimes a good ole loving kick is all it needs +~+
Back to top
View user's profile Send private message
Sequentious
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 290
Location: London Ontario Canada

PostPosted: Sun Feb 29, 2004 12:36 am    Post subject: Reply with quote

My /etc/issue is nothing special, but on my server I have the following script run by cron every hour:

Quote:
#!/bin/bash

/usr/games/fortune -s > /etc/motd


Nice little fortune whenever I ssh to the machine.
_________________
--
Chris I
chris@cidesign.ca :: www.cidesign.ca/~chris/
Back to top
View user's profile Send private message
alexwade
n00b
n00b


Joined: 22 Aug 2002
Posts: 47
Location: Orlando, FL

PostPosted: Sun Feb 29, 2004 2:05 am    Post subject: linux_logo Reply with quote

You can make cool /etc/issue files with linux_logo, like so...
Code:
emerge app-misc/linux-logo
clear > /etc/issue
linux_logo >> /etc/issue

use
Code:
linux_logo -h
for detailed options.
Back to top
View user's profile Send private message
EvilTwinSkippy
n00b
n00b


Joined: 20 Feb 2003
Posts: 63
Location: Philadelphia, PA

PostPosted: Sun Feb 29, 2004 2:20 am    Post subject: My Issue Reply with quote

Code:

Warning: This computer is monitored by an artificial intelligence with no moral code and a sysadmin with a sense of divine retribution.

Hack at your own risk. Pray the authorities get there first.

_________________
I've found that people will take what you say more seriously if you tell them Ben Franklin said it first.
Back to top
View user's profile Send private message
RedDawn
Guru
Guru


Joined: 22 Sep 2003
Posts: 368
Location: Los Angeles, California

PostPosted: Sun Feb 29, 2004 4:13 am    Post subject: lol Reply with quote

.
.vir. d$b
.d$$$$$$b. .cd$$b. .d$$b. d$$$$$$$$$$$b .d$$b. .d$$b.
$$$$( )$$$b d$$$()$$$. d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b. .$$$$$$$b.
Q$$$$$$$$$$B$$$$$$$$P" d$$$PQ$$$$b. $$$$. .$$$P' `$$$ .$$$P' `$$$
"$$$$$$$P Q$$$$$$$b d$$$P Q$$$$b $$$$b $$$$b..d$$$ $$$$b..d$$$
d$$$$$$P" "$$$$$$$$ Q$$$ Q$$$$ $$$$$ `Q$$$$$$$P `Q$$$$$$$P
| $$$$$$$P `""""" "" "" Q$$$P "Q$$$P" "Q$$$P"
| `Q$$P" """
+--------------------------------------------------------- l i n u x

Linux Version 2.6.3-gentoo-r1, Compiled #1 SMP Fri Feb 27 20:25:04 PST 2004
One 3.08GHz Intel Pentium 4 Processor, 1GB RAM, 6078.46 Bogomips Total
RedDawn

bash-2.05b#
Back to top
View user's profile Send private message
iswm
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 139
Location: Tucson, AZ

PostPosted: Sun Feb 29, 2004 5:01 am    Post subject: Reply with quote

Not really sure what's going on, but since this is kind of related, anyone know why /etc/issue isn't being displayed when I log into my sshd? I've looked around in /etc/ssh/sshd_config and didn't see anything about it, although I tried changing Banner to /etc/issue. Anyone able to give me a hand with this?
Back to top
View user's profile Send private message
c4Ff3In3 4ddiC+
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2003
Posts: 110

PostPosted: Sun Feb 29, 2004 5:42 am    Post subject: Reply with quote

iswm wrote:
Not really sure what's going on, but since this is kind of related, anyone know why /etc/issue isn't being displayed when I log into my sshd? I've looked around in /etc/ssh/sshd_config and didn't see anything about it, although I tried changing Banner to /etc/issue. Anyone able to give me a hand with this?

I think you want /etc/motd.
Back to top
View user's profile Send private message
iswm
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 139
Location: Tucson, AZ

PostPosted: Sun Feb 29, 2004 6:17 am    Post subject: Reply with quote

c4Ff3In3 4ddiC+ wrote:
I think you want /etc/motd.

Yeah, that works. Although it would be nice to have a message displayed before someone logs in.
Thanks.
Back to top
View user's profile Send private message
sigix
Apprentice
Apprentice


Joined: 25 Jul 2003
Posts: 192

PostPosted: Sun Feb 29, 2004 11:08 am    Post subject: Re: post your /etc/issue Reply with quote

Code:

# cat /etc/issue
cat: /etc/issue: No such file or directory

:D

vericgar wrote:

Tip: taking console screenshots - as root cat /dev/vcsN > capture.txt where N is the tty number.

how to get the /etc/issue contents from the remote host by this method?
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Sun Feb 29, 2004 11:11 am    Post subject: Reply with quote

Moved from DTT. Only actual documentation goes in there, it's not a discussion forum as such.
Back to top
View user's profile Send private message
muphicks
n00b
n00b


Joined: 22 Nov 2003
Posts: 48

PostPosted: Sun Feb 29, 2004 3:30 pm    Post subject: Reply with quote

iswm wrote:
Not really sure what's going on, but since this is kind of related, anyone know why /etc/issue isn't being displayed when I log into my sshd? I've looked around in /etc/ssh/sshd_config and didn't see anything about it, although I tried changing Banner to /etc/issue. Anyone able to give me a hand with this?


Another alternative if you really want issue to display via ssh is to edit sshd_config and set

Banner /etc/issue.ssh

then cp /etc/issue to /etc/issue.ssh and edit out all the colour code, which I don't think will display.

Then when you ssh to your machine you should get the issue showing before you type your user name. Although with putty it seems to show after the username but before you enter your password.
Back to top
View user's profile Send private message
wdreinhart
Guru
Guru


Joined: 11 Jun 2003
Posts: 569
Location: 14SQB1124847710

PostPosted: Sun Feb 29, 2004 4:11 pm    Post subject: Reply with quote

Mine:
Code:

                                            .
      .vir.                                d$b
   .d$$$$$$b.    .cd$$b.     .d$$b.   d$$$$$$$$$$$b  .d$$b.      .d$$b.
   $$$$( )$$$b d$$$()$$$.   d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b.  .$$$$$$$b.
   Q$$$$$$$$$$B$$$$$$$$P"  d$$$PQ$$$$b.   $$$$.   .$$$P' `$$$ .$$$P' `$$$
     "$$$$$$$P Q$$$$$$$b  d$$$P   Q$$$$b  $$$$b   $$$$b..d$$$ $$$$b..d$$$
    d$$$$$$P"   "$$$$$$$$ Q$$$     Q$$$$  $$$$$   `Q$$$$$$$P  `Q$$$$$$$P
|  $$$$$$$P       `"""""   ""        ""   Q$$$P     "Q$$$P"     "Q$$$P"
|  `Q$$P"                                  """
+--------------------------------------------------------- l  i  n  u  x
                                                                               
      Linux Version 2.6.3-love3, Compiled #2 Sun Feb 22 13:29:15 CST 2004
     One 1.74GHz AMD Athlon XP Processor, 512M RAM, 3416.06 Bogomips Total
                                chi.example.net


Edit:
It was made by putting the following into /etc/conf.d/local.start
Code:
#/etc/issue setup (needed to catch version changes)
clear > /etc/issue
linux_logo -L 3 >> /etc/issue


Last edited by wdreinhart on Sun Feb 29, 2004 11:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
paperwings
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 137
Location: Boston, MA

PostPosted: Sun Feb 29, 2004 4:32 pm    Post subject: Reply with quote

oh why not:
Code:

                           *                .       *    8    .        *
  .   *       *     .       .      .   *       .        88           .
                                           *        .   8b    *
      *   .              *     .   .            ;.      88b  .      .. *
                 .                    ...:::..::::.::..: 88b    ..:::::::     
    .       _________ *     .      :::                 .  888b       ::.
           / ___  /=/           ..::.. ..'       .          `88bo.    :.
       *  / /__/  /=/     *       ::::::....,    .       . .         :::..
  *      / ______/=/          *  .      :::...:;:......::::      ..::'
.    .  / /=/         .                 .         ::    `::..::''     *
       /_/=/       A   P   E   R   W   I   N   G   S  .     *    .      *
--------------------------------------------------------------------------
                    Dept. of Geology and Geophysics
                    Texas A&M University -- HALB 376
--------------------------------------------------------------------------


_________________
I RTFM already, damnit, and the manual writer needs to be smacked.
Back to top
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Sun Feb 29, 2004 4:53 pm    Post subject: Reply with quote

^L

;-)
Back to top
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Sun Feb 29, 2004 5:39 pm    Post subject: Reply with quote

Code:

dev root # cat /etc/issue

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



Don't need anything special. :)
_________________
Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think)
Back to top
View user's profile Send private message
Aurora
l33t
l33t


Joined: 26 Sep 2003
Posts: 658
Location: Classified

PostPosted: Sun Feb 29, 2004 5:53 pm    Post subject: Reply with quote

Most of these posts are copy/paste of what you see when you log out. However, the thread is about posting your actual /etc/issue so someone can easily replicate it.

Just a thought.
_________________
"My downfall raises me to infinite heights." -Napoleon Bonaparte


Last edited by Aurora on Mon Mar 01, 2004 12:58 am; edited 1 time in total
Back to top
View user's profile Send private message
sapphirecat
Guru
Guru


Joined: 15 Jan 2003
Posts: 376

PostPosted: Sun Feb 29, 2004 5:54 pm    Post subject: Reply with quote

Code:
^[[1mWelcome to Gentoo Linux on \l^[[0m

I try to avoid being promiscuous with my kernel version. I don't run a getty on tty1 anymore either :twisted:

\l is only there because one of the lines is reserved for the superuser only. It makes a handy reminder.
_________________
Former Gentoo user; switched to Kubuntu 7.04 when I got sick of waiting on gcc. Chance of thread necro if you reply now approaching 100%...
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2135
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Mon Mar 01, 2004 11:00 am    Post subject: Reply with quote

Code:




                ...
              ;::::;
            ;::::; :;
          ;:::::'   :;
         ;:::::;     ;.
        ,:::::'       ;           OOO\
        ::::::;       ;          OOOOO\
        ;:::::;       ;         OOOOOOOO
       ,;::::::;     ;'         / OOOOOOO
     ;:::::::::`. ,,,;.        /  / DOOOOOO
   .';:::::::::::::::::;,     /  /     DOOOO
  ,::::::;::::::;;;;::::;,   /  /        DOOO
 ;`::::::`'::::::;;;::::: ,#/  /          DOOO
 :`:::::::`;::::::;;::: ;::#  /            DOOO
 ::`:::::::`;:::::::: ;::::# /              DOO
 `:`:::::::`;:::::: ;::::::#/               DOO
  :::`:::::::`;; ;:::::::::##                OO
  ::::`:::::::`;::::::::;:::#                OO
  `:::::`::::::::::::;'`:;::#                O
   `:::::`::::::::;' /  / `:#
    ::::::`:::::;'  /  /   `#

And this shall be the plague wherewith the LORD will smite all the
people that have fought against Jerusalem; Their flesh shall consume
away while they stand upon their feet, and their eyes shall consume away
in their holes, and their tongue shall consume away in their mouth.
                                                            Zec 14:12

  scourge login: _

and after login you get:
Code:

Linux 2.6.3-love6 on dual AMD Athlon(TM) MP 1800+
up 46 min,  3 users,  load average: 0.08, 0.05, 0.03
Today is Monday, March 01, 2004 [12:01:01]

A statesman is a politician who's been dead 10 or 15 years.
                -- Harry S. Truman

I am scourge. But you are root.
[root@scourge]# _

_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Mon Mar 01, 2004 7:54 pm    Post subject: Reply with quote

/etc/cron.hourly/issue-maker:
Code:
#!/bin/bash
 
linux_logo -fiuy -w 160 -L 3 -F "#O Version #V, Compiled #C\n#N #M #X #T #P, #R RAM, #B Bogomips Total\n#L, #U\n#H.$(hostname -d)\n\t      " > /etc/issue
/etc/cron.hourly/motd-maker:
Code:
#! /bin/bash
 
if [ -x "$(which cowsay)" ]; then
        cows=(/usr/share/cowsay*/cows/*.cow)
        modes=("-b" "-d" "-g" "-s" "-t" "-w" "-y" "")
        filter="cowsay -f ${cows[$(($RANDOM%${#cows}))]} ${modes[$(($RANDOM%${#modes}))]} -n"
else
        filter="cat"
fi
 
bold=$'\x1b[0;01m'
normal=$'\x1b[0;0m'
colours=($'\x1b[30;01m' $'\x1b[31;01m' $'\x1b[32;01m' $'\x1b[33;01m' $'\x1b[34;01m' $'\x1b[35;01m' $'\x1b[36;01m')
colour=${colours[$(($RANDOM%7))]}
marker () { sed "s/^/¹/;s/$/²/"; }
colouriser () { sed "s/¹/  $colour/;s/²/$bold  /"; }
 
if [ -x "$(which fortune)" ]; then
        producer="fortune"
else
        producer="uname -a"
fi
 
(
        echo $bold
        $producer | marker | $filter | colouriser
        echo $normal
) > /etc/motd
Back to top
View user's profile Send private message
Aurora
l33t
l33t


Joined: 26 Sep 2003
Posts: 658
Location: Classified

PostPosted: Thu Mar 04, 2004 1:36 pm    Post subject: Reply with quote

*editted for stupidity*

Yah...sry folks. ;) I answered my own question.
_________________
"My downfall raises me to infinite heights." -Napoleon Bonaparte
Back to top
View user's profile Send private message
Aurora
l33t
l33t


Joined: 26 Sep 2003
Posts: 658
Location: Classified

PostPosted: Thu Mar 04, 2004 1:41 pm    Post subject: Reply with quote

Sequentious wrote:
My /etc/issue is nothing special, but on my server I have the following script run by cron every hour:

Quote:
#!/bin/bash

/usr/games/fortune -s > /etc/motd


Nice little fortune whenever I ssh to the machine.


What do I need to emerge to get this cool fortune script? :)
_________________
"My downfall raises me to infinite heights." -Napoleon Bonaparte
Back to top
View user's profile Send private message
cybe
n00b
n00b


Joined: 22 Jul 2003
Posts: 67
Location: Finland

PostPosted: Thu Mar 04, 2004 3:40 pm    Post subject: ANSI Reply with quote

I did a google search for ANSI graphics... ansi gallery etc, and found these nice very complex nice BBS ansi pics... they look mighty fine as /etc/issue...



http://www.google.com/search?q=ansi+art+gallery&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8

[url]
http://ue.untergrund.net/ansi/ANSI80.HTM
_________________
_________________________________
The MOST important book on the planet?
http://thewayhomeorfacethefire.info/
Back to top
View user's profile Send private message
Sequentious
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 290
Location: London Ontario Canada

PostPosted: Fri Mar 05, 2004 12:34 am    Post subject: Reply with quote

Aurora wrote:
Sequentious wrote:
My /etc/issue is nothing special, but on my server I have the following script run by cron every hour:

Quote:
#!/bin/bash

/usr/games/fortune -s > /etc/motd


Nice little fortune whenever I ssh to the machine.


What do I need to emerge to get this cool fortune script? :)
emerge fortune-mod -s

That will list some fortune addons as well.
_________________
--
Chris I
chris@cidesign.ca :: www.cidesign.ca/~chris/
Back to top
View user's profile Send private message
Satori80
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 137

PostPosted: Sat Jun 12, 2004 12:20 am    Post subject: Reply with quote

What I can't figure is where is it documented what all the control sequences are? Where are they listed?
Back to top
View user's profile Send private message
superjaded
l33t
l33t


Joined: 05 Jul 2002
Posts: 726

PostPosted: Sat Jun 12, 2004 12:30 am    Post subject: Reply with quote

Code:
This is \n (\s \m \r) \t


Took out the domain part since I never set it, and "yoshioka.(none)" kind of sucks. ;)
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 1, 2, 3  Next
Page 1 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