| View previous topic :: View next topic |
| Author |
Message |
russianpirate Veteran


Joined: 26 Sep 2004 Posts: 1167 Location: Detroit, MI
|
Posted: Wed Jun 15, 2005 12:23 am Post subject: |
|
|
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 |
|
 |
stustill Guru


Joined: 25 Feb 2003 Posts: 333 Location: Aberdeen, Scotland
|
Posted: Wed Jun 15, 2005 12:33 am Post subject: |
|
|
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 |
|
 |
Katphish Apprentice

Joined: 05 Dec 2005 Posts: 155
|
Posted: Sat Dec 31, 2005 10:23 am Post subject: ASCII PowerPC for /etc/issue |
|
|
Hi,
Sometimes I have a lot of spare time on my hands 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!
| 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 |
|
 |
Katphish Apprentice

Joined: 05 Dec 2005 Posts: 155
|
Posted: Sat Dec 31, 2005 10:34 am Post subject: ASCII IBM Thinkpad for /etc/issue |
|
|
Hi,
Sometimes I have a lot of spare time on my hands 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 .
*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 |
|
 |
ph03n1x l33t


Joined: 06 Feb 2003 Posts: 756
|
Posted: Sat Dec 31, 2005 1:14 pm Post subject: |
|
|
Dude you really have a lot of time...
what about a lenovo one  |
|
| Back to top |
|
 |
syscrash Guru


Joined: 14 Apr 2003 Posts: 541
|
Posted: Sat Dec 31, 2005 9:44 pm Post subject: |
|
|
/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 |
|
 |
bunder Bodhisattva


Joined: 10 Apr 2004 Posts: 5213
|
Posted: Sat Dec 31, 2005 9:51 pm Post subject: |
|
|
[oops] gotta watch those typoes.  _________________ 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 |
|
 |
geforce l33t


Joined: 29 Dec 2003 Posts: 653 Location: Canada
|
Posted: Mon Jan 02, 2006 6:18 pm Post subject: |
|
|
| Is /etc/issue.net supposed to be shown when connected by ssh to server ? |
|
| Back to top |
|
 |
Katphish Apprentice

Joined: 05 Dec 2005 Posts: 155
|
Posted: Wed Jan 04, 2006 8:53 am Post subject: |
|
|
| 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 |
|
 |
Katphish Apprentice

Joined: 05 Dec 2005 Posts: 155
|
Posted: Wed Jan 04, 2006 8:57 am Post subject: |
|
|
| ph03n1x wrote: | Dude you really have a lot of time...
what about a lenovo one  |
hehe, gotta do something between emerges
I don't know about lenovo yet, I am still torn up about all that  |
|
| Back to top |
|
 |
geforce l33t


Joined: 29 Dec 2003 Posts: 653 Location: Canada
|
Posted: Wed Jan 04, 2006 7:51 pm Post subject: |
|
|
| 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 |
|
 |
MACSRULETHEWORLD Tux's lil' helper


Joined: 17 Apr 2004 Posts: 131
|
Posted: Wed Jan 04, 2006 10:23 pm Post subject: |
|
|
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 |
|
 |
Katphish Apprentice

Joined: 05 Dec 2005 Posts: 155
|
Posted: Fri Jan 06, 2006 10:15 pm Post subject: |
|
|
| geforce wrote: | | I mean, after I logged in |
That would be the /etc/motd (Message Of The Day) file. |
|
| Back to top |
|
 |
Zepp Veteran


Joined: 15 Mar 2004 Posts: 1246 Location: Ontario, Canada
|
Posted: Sat Jan 07, 2006 1:04 am Post subject: Re: ASCII IBM Thinkpad for /etc/issue |
|
|
| Katphish wrote: |
It may look like a bunch of garbage but it does come out alright .
*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 |
|
 |
Katphish Apprentice

Joined: 05 Dec 2005 Posts: 155
|
Posted: Sat Jan 07, 2006 2:20 am Post subject: Re: ASCII IBM Thinkpad for /etc/issue |
|
|
| 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 |
|
 |
Zepp Veteran


Joined: 15 Mar 2004 Posts: 1246 Location: Ontario, Canada
|
Posted: Sat Jan 07, 2006 8:01 pm Post subject: Re: ASCII IBM Thinkpad for /etc/issue |
|
|
| 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  _________________ Every iPhone is a gift from God. |
|
| Back to top |
|
 |
Katphish Apprentice

Joined: 05 Dec 2005 Posts: 155
|
Posted: Mon Jan 09, 2006 1:35 am Post subject: |
|
|
cool, glad you like it!  |
|
| Back to top |
|
 |
floffe Guru


Joined: 24 Nov 2003 Posts: 414 Location: Linköping, Sweden
|
Posted: Mon Feb 27, 2006 2:06 pm Post subject: |
|
|
| lisa wrote: | | Code: |
dev root # cat /etc/issue
This is \n.\O (\s \m \r) \t
|
Don't need anything special.  |
++ |
|
| Back to top |
|
 |
Katphish Apprentice

Joined: 05 Dec 2005 Posts: 155
|
Posted: Wed May 24, 2006 3:31 am Post subject: |
|
|
| 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 |
|
 |
asph l33t


Joined: 25 Aug 2003 Posts: 737 Location: Barcelona, Spain
|
Posted: Wed May 24, 2006 8:57 am Post subject: |
|
|
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 |
|
 |
Toad King n00b

Joined: 09 Jun 2006 Posts: 17
|
Posted: Sat Dec 16, 2006 12:02 am Post subject: |
|
|
| 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 |
|
 |
LD Guru


Joined: 23 Dec 2003 Posts: 336 Location: Middle of No-Where Granbury, Tx
|
|
| Back to top |
|
 |
Toad King n00b

Joined: 09 Jun 2006 Posts: 17
|
Posted: Sat Dec 16, 2006 12:20 am Post subject: |
|
|
| LD wrote: | | And the Dead shall rise from the grave and walk the earth. | You say that like its a bad thing.
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 |
|
 |
|