You are not logged in.

#51 2008-11-23 02:10:37

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 848

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

thumb.php?id=2708_4928BB2C

I used rson451's art with Shapeshifter's addition, and I changed the info color to white smile

It looks awesome.

Last edited by karabaja4 (2008-11-23 02:11:34)


pie!

Offline

#52 2008-11-23 02:23:34

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

karabaja4 wrote:

http://www.deviantpics.com/thumb.php?id=2708_4928BB2C

I used rson451's art with Shapeshifter's addition, and I changed the info color to white smile

It looks awesome.

I love the calls to fbgrab shown in the photograph.

Offline

#53 2008-11-23 02:26:37

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 848

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

peets wrote:

I love the calls to fbgrab shown in the photograph.

It seems buffer does not work like it should and I really don't want to mess with it to make it work roll. First I made a photograph but all I saw in shot.png were some tiny green lines tongue

Last edited by karabaja4 (2008-11-23 02:27:20)


pie!

Offline

#54 2008-12-02 16:17:11

skualito
Member
Registered: 2008-11-19
Posts: 197

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

Played with some ascii art editor, but not an artist hmm
the issue file is quite unreadable...


93631issue.png

Offline

#55 2009-03-03 22:44:41

equilibrium
Member
From: EU
Registered: 2008-06-18
Posts: 80
Website

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

amazing big_smile

much better than GDM/XDM smile

login300.png

Last edited by equilibrium (2009-03-03 22:45:09)


Archlinux x86_64 | Github | acer chromebook c7 (arch)

Offline

#56 2009-03-03 23:34:37

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 749

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

skualito wrote:

Played with some ascii art editor, but not an artist hmm
the issue file is quite unreadable...


http://ns1.hostingpics.net/pics/93631issue.png

can I get these codes?

Offline

#57 2009-03-04 03:20:44

orph
Member
From: Montréal, Canada
Registered: 2009-03-01
Posts: 25
Website

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

na12 wrote:
skualito wrote:

Played with some ascii art editor, but not an artist hmm
the issue file is quite unreadable...


http://ns1.hostingpics.net/pics/93631issue.png

can I get these codes?

I would be insterested in it too.


I KISS you.

Offline

#58 2009-03-04 04:26:05

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,800
Website

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

Could you post your PS1 variable so I can see how you've done the line on the left side of it?
(if someone else knows how to do it, please feel free to share)

Offline

#59 2009-03-11 16:58:19

greyarea
Member
Registered: 2008-09-30
Posts: 10

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

Xyne wrote:

Could you post your PS1 variable so I can see how you've done the line on the left side of it?
(if someone else knows how to do it, please feel free to share)

Just use ascii box characters? http://en.wikipedia.org/wiki/Box_drawing_characters

e.g.

PS1='┌[\[\e[0;32m\]\u\[\e[0m\]@\[\e[33m\]\h\[\e[0m\]\[\e[36m\] \W\[\e[0m\]]\[\[\e[0m\] \n└┤\e[31m\]\$\e[0m\]│'

Works on my terminal.

Offline

#60 2009-03-11 19:37:34

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,800
Website

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

Thanks greyarea. I didn't even know what to call them.

Offline

#61 2009-03-12 00:09:44

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

Daenyth wrote:
Thoht wrote:

I'm messing around with /etc/issue, but can't make it display colours. I tried both this:

I have a feeling that you're typing '^[' by hand. It's not those two characters, it's a special non-printing character. You can get it by doing ctrl+V, ctrl+[

by the by...

vim is amazing.  this command from within vim fixes any issues if you've copied someones raw /etc/issue file out of this thread:

:%s/\^\[/<Ctrl+v><Ctrl+[>/g

<key-combo> means press those keys inside the %s///g statment, as Daenyth mentions this'll show up as the non-printing ^ and [ you want to insert.

Offline

#62 2009-03-12 00:42:58

adamruss
Member
Registered: 2008-01-17
Posts: 142

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

this is my PS1 base on skualito's jusy copy these two lines into ~/.bashrc: (it includes a little script from lifehacker to reduce pwd size)
* if you want it global add it to /etc/profile.bash

term-shot.png

PROMPT_COMMAND='DIR=`pwd|sed -e "s!$HOME!~!"`; if [ ${#DIR} -gt 30 ]; then CurDir=${DIR:0:12}...${DIR:${#DIR}-15}; else CurDir=$DIR; fi'
PS1="\n╔═[\[\033[01;36m\]\A\[\033[01;00m\]]═[\[\033[01;32m\]\u\[\033[01;33m\]@\[\033[01;31m\]\h\[\033[01;00m\]]\n\[\033[01;00m\]╚═══\[\033[00;32m\]=\[\033[00;33m\]=\[\033[00;31m\]=\[\033[01;00m\]═══[\[\033[01;36m\]\$CurDir\[\033[01;00m\]]\[\033[01;32m\]>>\[\033[00m\] "

Last edited by adamruss (2009-03-12 08:16:04)


CPU: MacBook Pro 5,5
TB: OSX 10.6 / Windows 7 / Ubuntu 9.10

Offline

#63 2009-03-12 02:58:47

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

orph wrote:
na12 wrote:
skualito wrote:

Played with some ascii art editor, but not an artist hmm
the issue file is quite unreadable...


http://ns1.hostingpics.net/pics/93631issue.png

can I get these codes?

I would be insterested in it too.

Please please dear god I need this /etc/issue!

Offline

#64 2009-03-12 05:25:59

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,079

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

adamruss wrote:

this is my PS1 base on skualito's jusy copy these two lines into ~/.bashrc: (it includes a little script from lifehacker to reduce pwd size)

http://www.russ.co.il/images/term-shot.png

PROMPT_COMMAND='DIR=`pwd|sed -e "s!$HOME!~!"`; if [ ${#DIR} -gt 30 ]; then CurDir=${DIR:0:12}...${DIR:${#DIR}-15}; else CurDir=$DIR; fi'
PS1="\n╔═[\[\033[01;36m\]\A\[\033[01;00m\]]═[\[\033[01;32m\]\u\[\033[01;33m\]@\[\033[01;31m\]\h\[\033[01;00m\]]\n\[\033[01;00m\]╚═══\[\033[00;32m\]=\[\033[00;33m\]=\[\033[00;31m\]=\[\033[01;00m\]═══[\[\033[01;36m\]\$CurDir\[\033[01;00m\]]\[\033[01;32m\]>>\[\033[00m\] "

The script is great. It even corrects spelling errors if you are off by 1 character in typing. For eg. I have a folder called dwm and I typed in dwn, and it echoed the correct name and still cd'ed into dwm.
cd dpwnloads -- works and goes to downloads. but if I spell it wrong  like cd dbwnloads, it just says No such file or directory, which means it probably looks for errors in the keys next to the one that you actually want.


Good Stuff !


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#65 2009-03-12 12:39:01

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

Inxsible wrote:

The script is great. It even corrects spelling errors if you are off by 1 character in typing. For eg. I have a folder called dwm and I typed in dwn, and it echoed the correct name and still cd'ed into dwm.
cd dpwnloads -- works and goes to downloads. but if I spell it wrong  like cd dbwnloads, it just says No such file or directory, which means it probably looks for errors in the keys next to the one that you actually want.


Good Stuff !

That's actually a bash builtin thing. man bash, look for "cdspell" I believe.

Offline

#66 2009-03-12 16:22:09

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

CarLost wrote:

I found it..... sorry for disappoint you Daenyth     just add -t n (n secconds) just before aggety respawn in inittab..

i.e.
c0:2345:respawn:/sbin/agetty -8 -t 5 9600 ttyS0 linux

(I'm using serial connections thats is the 9600 ttyS0)

The rest is make a script who rewrite the issue file in /etc/rc.local

For future reference, the advice above causes the error below

CarLost wrote:

I got another problem..... I get the "respawn to fast: disabled for 5 minutes" message ... this is not good sad

I'll RTFM for disable THIS security issue tongue

Offline

#67 2009-03-13 11:14:12

skualito
Member
Registered: 2008-11-19
Posts: 197

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

Hi all

A requested, here's the link to the Buddha issue...
http://www.sendspace.com/file/vhswwz

It took me a while to find it back, after reinstalling arch some months ago, I erased all the backups to start from scratch again hmm, but with the help of the undelete funtion in midnight commander (only works for ext2fs) I could find it back yesterday after browsing a lot of files named after numbers. Lots of fun.

PS: you will have to add the clear escape code if you want to.

Last edited by skualito (2009-03-13 11:16:35)

Offline

#68 2009-03-13 12:21:51

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

And here's the Buddha issue on a non-crap hosting site:  http://omploader.org/vMWRiZA


Thanks so much for finding it for us!

Offline

#69 2009-03-13 12:31:14

skualito
Member
Registered: 2008-11-19
Posts: 197

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

Daenyth, can you tell me how to upload to the omploader, I didn't succeed, tried the firefox extension but I might be retarded ....

Edit : NEVERMIND, I'm stupid. Did not think of going to the homepage.

Last edited by skualito (2009-03-13 12:36:36)

Offline

#70 2009-03-13 12:35:33

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

I've never had a problem... You can either use the website's interface or you can use aur/ompload

Offline

#71 2009-03-15 01:26:17

radu242
Member
Registered: 2009-03-15
Posts: 11

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

Here's mine:
myetcissue.th.png

It is dervied from Arch's official logo and dav7's agetty escape codes. As a bonus, the login text is coloured bright cyan! smile

Here's the script to generate it:

#!/bin/bash
echo -e '\e[H\e[2J'
echo
echo
echo -e '                           \e[1;36m`                                                      \e[1;37m`://-             \e[1;36m./-  .-\e[0m'
echo -e '                          \e[1;36m-:                                                      \e[1;37m.///-             \e[1;36m./-   `\e[0m'
echo -e '                         \e[1;36m.//:              \e[1;37m -:::::::-`    .--- `--:-  `.-----.``  .///-`.....``     \e[1;36m./-   `   `   ``````      `\e[0m'
echo -e '                        \e[1;36m`////-             \e[1;37m.//////////:` `////:////..://////////- .//::////////:.   \e[1;36m./-  .:   :-`-:::::::.   -:.        -:  `:.      --\e[0m'
echo -e '                       \e[1;36m`://///.            \e[1;37m.---.---////- `/////:-.`:////:--.-:/:` .////:....-////`  \e[1;36m./-  -/`  //:.`    `-/.  -/.        :/`  .::`  `::`\e[0m'
echo -e '                       \e[1;36m:///////.          \e[1;37m.:/\e[1;30m++++++++++- \e[1;37m`////.   \e[1;30m./++/`      \e[1;37m`   .///:      -///.  \e[1;36m./-  -\e[0;36m+` `++         \e[1;36m/:  -/.        :/`   `-:..:-`\e[0m'
echo -e '                      \e[1;36m-/////////.        \e[1;30m:hhhhs+/+shdhh/ `yyys`   +yyh/           -+++-      -+++.  \e[0;36m-+-  :o` .oo         +/  :o.        /+`     \e[0;36m.//-\e[0m'
echo -e '                     \e[1;36m`://////////`       \e[1;30moddd/     sddd+ .dddd`   /dddy`      `   :dhh/      +hhh-  \e[0;36m-o:  :o` `oo         +/  :o.        +o`    .++/+.\e[0m'
echo -e '                    \e[1;36m-:..://///////`      \e[1;30m:dddy:``./hddd+ .dddd`   `sdddy/-``./yo- :ddd+      oddd:  \e[0;36m-o:  :o`  +o         +/  :o-       .+o`   :+:` -+:`\e[0m'
echo -e '                   \e[1;36m-////:::////////`      \e[1;30m/hddddddddsyd+ .dddd`    `/hdddddddddds`:ddd+      oddd:  \e[0;36m-o:  :o`  +o         +/  .++-`  `.:/+o` `/+-    .//.\e[0m'
echo -e '                  \e[1;36m-/////////////////`      \e[1;30m`/+ssso/.+o+- `so+:       `-/+ssss+/.  :ss+-      +yso.  \e[0;36m./.  ./   /:         ::   .:/++++/-`//` -/`       :/\e[0m'
echo -e '                 \e[1;36m-//////////++++/////`             '
echo -e '                \e[1;36m-////\e[0;36m++++oooooooooo+++.     '
echo -e '               \e[0;36m-/+++oooooooooooooooooo+.     \e[1;37m//=========================---\e[0m'
echo -e '              \e[0;36m:+oooooooo+-..-/+oooooooo+.     \e[1;37m\\\\ \e[1;34m\s(\m) \\r\e[0m'
echo -e '            \e[0;36m`/ooooooooo:`     .+oooooooo+.     \e[1;37m\\\\\e[0m'
echo -e '           \e[0;36m`/ooooooooo/        .ooooooooo+-     \e[1;37m\\\\ \e[1;32m\\t\e[0m'
echo -e '          \e[0;36m`/oooooooooo`         /oooooo++++-     \e[1;37m\\\\ \e[1;32m\d\e[0m'
echo -e '         \e[0;36m`+ooooooooooo`         :oooooo++/-:.     \e[1;37m\\\\\e[0m'
echo -e '        \e[0;36m.+ooooooooooo+`         :+oooooooo+/-`     \e[1;37m\\\\ \e[1;31m\U\e[0m'
echo -e '       \e[0;36m.+oooooo++/:-.`          `..-:/++ooooo+:     \e[1;37m\\\\\e[0m'
echo -e '      \e[0;36m.+oo++/-.`                      `.-:++ooo:     \e[1;37m\\\\ \e[0;35m\l \e[0;37mon \e[0;33m\\n\e[0m'
echo -e '     \e[0;36m-++/-.`     \e[01;37mA simple, lightweight     \e[0;36m`-:++/`    \e[1;37m\\\\=========================---\e[0m'
echo -e '     \e[0;36m-++/-.`      \e[1;37mlinux distribution.      \e[0;36m`-:++/`     '
echo -e '    \e[0;36m.:.`                                       .--      \e[1;36m'
echo
echo

Offline

#72 2009-03-22 19:42:55

feler
Member
From: Madrid, Spain
Registered: 2008-10-19
Posts: 7

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

Good work! I'm using it now.

Offline

#73 2009-03-23 11:39:52

Xenokite
Member
From: Linden, NJ USA
Registered: 2009-03-14
Posts: 96
Website

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

dav7 wrote:

NOTE: If you have no idea what "/dev/vc/1" or "text console" or "tty" means, know that these don't interest you and/or you don't find these interesting, or you boot to runlevel 5, this isn't for you.

NOTE 2: This has a known bug - if your screen is 80 columns wide and your hostname is over 11 chars long, due to the layout of this file it will wrap to the 2nd line.

Some time ago, I learned how agetty (the program that displays /etc/issue and manages login) is able to display certain types of "non-static" information by way of specific "escape sequences" that were agetty's own. Fast forward to now, when X has completely died (majorly buggy graphics configuration), I'm entirely in textmode (framebuffer - I just won't go there, too much work)... and so I decide to make a new /etc/issue for myself.

First I worked on the logo, which after a few attempts I decided to just accept how slashes "fall" because trying anything else just turns out like a Christmas tree, then with the inside of the logo done using full stops I had a crack at the font. I drew the "linux" first then figured out how to use pipe chars to "simulate" 'bold fonts' for the "arch", and I also tried to capture the essence of the fact that the font/logo is gradiented to an extent. The next day, a little mental visualization work later and I'd figured out how to lay out the various bits of info I wanted.

This is the result.

echo -e '\e[H\e[2J' > issue
echo -e '                                                            \e[1;30m| \e[34m\\s \\r' >> issue
echo -e '       \e[36;1m/\\\\                      \e[37m||     \e[36m| |                   \e[30m|' >> issue
echo -e '      \e[36m/  \\\\                     \e[37m||     \e[36m|     _               \e[30m| \e[32m\\t' >> issue
echo -e '     \e[1;36m/ \e[0;36m.. \e[1m\\\\   \e[37m//==\\\\\\\\ ||/= /==\\\\ ||/=\\\\  \e[36m| | |/ \\\\ |  | \\\\ /     \e[30m| \e[32m\\d' >> issue
echo -e '    \e[0;36m/ .  . \\\\  \e[37m||  || ||   |    ||  || \e[36m| | |  | |  |  X      \e[1;30m|' >> issue
echo -e '   \e[0;36m/  .  .  \\\\ \e[37m\\\\\\\\==/| ||   \\\\==/ ||  || \e[36m| | |  | \\\\_/| / \\\\     \e[1;30m| \e[31m\\U' >> issue
echo -e '  \e[0;36m/ ..    .. \\\\   \e[0;37mA simple, lightweight linux distribution.  \e[1;30m|' >> issue
echo -e ' \e[0;36m/_\x27        `_\\\\                                             \e[1;30m| \e[35m\\l \e[0mon \e[1;33m\\n' >> issue
echo -e ' \e[0m' >> issue
echo -e '' >> issue

"Ew, what do I do with THAT? hmm"

Save it to a file or just paste it directly into your terminal. It will create the file "issue" in the directory you're in containing the appropriate escape codes.

Here's an example of how you could "import" this:

$ cat > makeissue
<carefully paste code here, press CTRL+D when done>
$ chmod +x makeissue
$ su
Password: ******************************
# cd /etc
# mv issue issue-old
# ~/makeissue
# exit
exit
$

There are no dangers in running this as root - it just echos some escape sequences to a file, so you can see we run this script as root so the new "issue" file is placed appropriately in /etc, with root ownership, exactly as the original /etc/issue... and as always, we save the old version tongue

"Great, but `cat /etc/issue' produces something that looks like a birds' nest had a fight with a tree."
Agetty pays special attention to backslashes (\), so they have to be doubled (\\) when I want to show one. And yes, this breaks the layout when anything except agetty displays it.

"Um, I'm really clueless. Now what?"
Logout, examine, then log back in or switch to a free un-logged-in tty.

-dav7

Wow I am going to have to try this out cause on my Vbox that I am running my Arch I still login to my X system by using startx and I do most of my installs with PACMAN on TTY VC1 screen. If possible I wonder if I could get some help with the screen-shot ASCII on GUI?

Wow I should have read the whole thing before I posted look like i am never going to use the GDM logins. The whole set up has been improved.

Last edited by Xenokite (2009-03-23 11:44:19)


Registered Linux user :#500622
"être fort pour être utile" (be strong to be useful) —Georges Hébert
"There is only Good people and Bad people, we should not be judged by Race, religion or sex but we should be judged by our deeds or actions." - Lindsey Irving
Xenokite aka Lycan

Offline

#74 2009-03-23 13:42:58

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

if you'd like to test your work without the login/logout, just run this command after making your /etc/issue file:

> cat /etc/issue | sed 's/\\\\/\\/g'

it'll replace the \\ with \ so it displays correctly in a terminal (it doesn't replace the user/time/etc variables but you can see if your layouts correct)

Last edited by brisbin33 (2009-03-24 13:48:29)

Offline

#75 2009-03-24 03:46:58

Xenokite
Member
From: Linden, NJ USA
Registered: 2009-03-14
Posts: 96
Website

Re: /etc/issue "2.0" - My ASCII art version with Arch logo and text

wow for some reason no color and it doesn't show right completely messed up, i tried the ctrl+v and the ctrl+[ that didn't work. I am running it on a Vbox until i get my laptop in the email but i am trying to find out my columns just in case that could be the problem.


Registered Linux user :#500622
"être fort pour être utile" (be strong to be useful) —Georges Hébert
"There is only Good people and Bad people, we should not be judged by Race, religion or sex but we should be judged by our deeds or actions." - Lindsey Irving
Xenokite aka Lycan

Offline

Board footer

Powered by FluxBB