View previous topic :: View next topic |
Author |
Message |
vericgar Retired Dev


Joined: 13 Dec 2002 Posts: 79 Location: Spokane, WA
|
Posted: Sun Feb 29, 2004 12:24 am Post subject: post your /etc/issue |
|
|
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 |
|
 |
Sequentious Apprentice

Joined: 07 Jun 2002 Posts: 290 Location: London Ontario Canada
|
Posted: Sun Feb 29, 2004 12:36 am Post subject: |
|
|
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 |
|
 |
alexwade n00b

Joined: 22 Aug 2002 Posts: 47 Location: Orlando, FL
|
Posted: Sun Feb 29, 2004 2:05 am Post subject: linux_logo |
|
|
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 |
usefor detailed options. |
|
Back to top |
|
 |
EvilTwinSkippy n00b


Joined: 20 Feb 2003 Posts: 63 Location: Philadelphia, PA
|
Posted: Sun Feb 29, 2004 2:20 am Post subject: My Issue |
|
|
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 |
|
 |
RedDawn Guru


Joined: 22 Sep 2003 Posts: 368 Location: Los Angeles, California
|
Posted: Sun Feb 29, 2004 4:13 am Post subject: lol |
|
|
.
.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 |
|
 |
iswm Tux's lil' helper


Joined: 10 Jan 2004 Posts: 139 Location: Tucson, AZ
|
Posted: Sun Feb 29, 2004 5:01 am Post subject: |
|
|
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 |
|
 |
c4Ff3In3 4ddiC+ Tux's lil' helper


Joined: 16 Aug 2003 Posts: 110
|
Posted: Sun Feb 29, 2004 5:42 am Post subject: |
|
|
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 |
|
 |
iswm Tux's lil' helper


Joined: 10 Jan 2004 Posts: 139 Location: Tucson, AZ
|
Posted: Sun Feb 29, 2004 6:17 am Post subject: |
|
|
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 |
|
 |
sigix Apprentice


Joined: 25 Jul 2003 Posts: 192
|
Posted: Sun Feb 29, 2004 11:08 am Post subject: Re: post your /etc/issue |
|
|
Code: |
# cat /etc/issue
cat: /etc/issue: No such file or directory
|
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 |
|
 |
plate Bodhisattva


Joined: 25 Jul 2002 Posts: 1663 Location: Berlin
|
Posted: Sun Feb 29, 2004 11:11 am Post subject: |
|
|
Moved from DTT. Only actual documentation goes in there, it's not a discussion forum as such. |
|
Back to top |
|
 |
muphicks n00b

Joined: 22 Nov 2003 Posts: 48
|
Posted: Sun Feb 29, 2004 3:30 pm Post subject: |
|
|
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 |
|
 |
wdreinhart Guru

Joined: 11 Jun 2003 Posts: 569 Location: 4QFJ12345678
|
Posted: Sun Feb 29, 2004 4:11 pm Post subject: |
|
|
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 |
|
 |
paperwings Tux's lil' helper


Joined: 14 Jan 2003 Posts: 137 Location: Boston, MA
|
Posted: Sun Feb 29, 2004 4:32 pm Post subject: |
|
|
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 |
|
 |
nbensa l33t


Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Sun Feb 29, 2004 4:53 pm Post subject: |
|
|
^L
 |
|
Back to top |
|
 |
lisa Retired Dev


Joined: 01 Jun 2003 Posts: 273 Location: York, UK again! Horray!
|
Posted: Sun Feb 29, 2004 5:39 pm Post subject: |
|
|
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 |
|
 |
Aurora l33t


Joined: 26 Sep 2003 Posts: 658 Location: Classified
|
Posted: Sun Feb 29, 2004 5:53 pm Post subject: |
|
|
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 |
|
 |
sapphirecat Guru

Joined: 15 Jan 2003 Posts: 376
|
Posted: Sun Feb 29, 2004 5:54 pm Post subject: |
|
|
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
\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 |
|
 |
nephros Advocate


Joined: 07 Feb 2003 Posts: 2138 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Mon Mar 01, 2004 11:00 am Post subject: |
|
|
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 |
|
 |
ecatmur Advocate


Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Mon Mar 01, 2004 7:54 pm Post subject: |
|
|
/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 |
|
 |
Aurora l33t


Joined: 26 Sep 2003 Posts: 658 Location: Classified
|
Posted: Thu Mar 04, 2004 1:36 pm Post subject: |
|
|
*editted for stupidity*
Yah...sry folks. I answered my own question. _________________ "My downfall raises me to infinite heights." -Napoleon Bonaparte |
|
Back to top |
|
 |
Aurora l33t


Joined: 26 Sep 2003 Posts: 658 Location: Classified
|
Posted: Thu Mar 04, 2004 1:41 pm Post subject: |
|
|
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 |
|
 |
cybe n00b


Joined: 22 Jul 2003 Posts: 67 Location: Finland
|
|
Back to top |
|
 |
Sequentious Apprentice

Joined: 07 Jun 2002 Posts: 290 Location: London Ontario Canada
|
Posted: Fri Mar 05, 2004 12:34 am Post subject: |
|
|
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 |
|
 |
Satori80 Tux's lil' helper

Joined: 24 Feb 2004 Posts: 137
|
Posted: Sat Jun 12, 2004 12:20 am Post subject: |
|
|
What I can't figure is where is it documented what all the control sequences are? Where are they listed? |
|
Back to top |
|
 |
superjaded l33t


Joined: 05 Jul 2002 Posts: 750
|
Posted: Sat Jun 12, 2004 12:30 am Post subject: |
|
|
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 |
|
 |
|