You are not logged in.

#1 2015-04-15 08:18:00

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Edit /etc/issue to change login style

Several years ago, I used to login to my user by console, and it looked something like this by editing /etc/issue:

http://img30.imageshack.us/img30/4893/issue.png

Since a lot of things have changed with the inclusion of systemd, I want to know if it's still possible to do it, and which files should  edit?

PS: also if someone has the code to make it look like it  would be great, if not I guess i will have to look for it 'cause I lost it.




-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#2 2015-04-15 08:22:45

pezz
Member
From: Geelong, Australia
Registered: 2010-05-23
Posts: 104

Re: Edit /etc/issue to change login style

Wow, that's neat.

Gonna try and find that for sure.

Offline

#3 2015-04-15 08:28:55

pezz
Member
From: Geelong, Australia
Registered: 2010-05-23
Posts: 104

Re: Edit /etc/issue to change login style

Doesn't look exactly like yours, but still looks pretty sweet:

https://bbs.archlinux.org/viewtopic.php?id=50845

Offline

#4 2015-04-15 09:00:23

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Edit /etc/issue to change login style

I was looking into that topic and on page four I found this

[H[2J
        [1;36m,[1;36m                       _     _ _                      [1;30m| [36m\s \r
       [1;36m/#\\[1;36m        __ _ _ __ ___| |__ | (_)_ __  _   ___  __    [30m|
      [1;36m/###\\[1;36m      / _` | '__/ __| '_ \\| | | '_ \\| | | \\ \\/ /    [30m| [36m\t
     [1;36m/#####\\[1;36m    | (_| | | | (__| | | | | | | | | |_| |>  <     [30m| [36m\d
    [1;36m/##[0;36m,-,##\\[1;36m    \\__,_|_|  \\___|_| |_|_|_|_| |_|\\__,_/_/\\_\\    [1;30m|
   [0;36m/##(   )##\\                                                 [1;30m| [36m\U
  [0;36m/#.--   --.#\\[1;37m   A simple, elegant gnu/linux distribution.    [1;30m|
 [0;36m/`           `\\[0m                                               [1;30m| [36m\l [36mon [1;36m\n [0m

I think that's the one I used to have before. Thanks for finding this topic!!

PS: you think is safe to do it? I haven't used Arch in five years and know with all the changes made to the core I'm afraid of breaking something.


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#5 2015-04-15 09:15:59

pezz
Member
From: Geelong, Australia
Registered: 2010-05-23
Posts: 104

Re: Edit /etc/issue to change login style

Pretty safe. If you're not sure, do what I did and spin up a VM and muck around!

This is what the post I linked to looks like, not bad at all:

https://i.imgur.com/OZKPhp7.png

Last edited by pezz (2015-04-15 09:16:42)

Offline

#6 2015-04-15 09:32:20

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: Edit /etc/issue to change login style

its in the wiki too that also points to that discusion

https://wiki.archlinux.org/index.php/Co … ole_colors

Offline

#7 2015-04-15 09:43:10

pezz
Member
From: Geelong, Australia
Registered: 2010-05-23
Posts: 104

Re: Edit /etc/issue to change login style

Nice!

Thanks bleach.

Offline

#8 2015-04-15 12:50:15

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Edit /etc/issue to change login style

Here's mine:

                  ^[[0;34m/\\
                 /^[[0;36m##^[[0;34m\\
                /^[[0;36m####^[[0;34m\\
               /^[[0;36m######^[[0;34m\\
              /^[[0;36m########^[[0;34m\\
             /^[[0;36m##########^[[0;34m\\
            /^[[0;36m############^[[0;34m\\
           /^[[0;36m##############^[[0;34m\\
          /^[[0;36m################^[[0;34m\\
         /^[[0;36m#######    #######^[[0;34m\\
        /^[[0;36m######        ######^[[0;34m\\
       /^[[0;36m######          ######^[[0;34m\\
      /^[[0;36m#######          #######^[[0;34m\\
     /^[[0;36m#########        #########^[[0;34m\\
    /^[[0;36m######                ######^[[0;34m\\
   /^[[0;36m####                      ####^[[0;34m\\
  /^[[0;36m##                            ##^[[0;34m\\
 /^[[0;36m#                                #^[[0;34m\\
 '                                  '^[[0m

\r (\l)

Jin, Jîyan, Azadî

Offline

#9 2015-04-15 19:57:57

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Edit /etc/issue to change login style

pezz wrote:

Pretty safe. If you're not sure, do what I did and spin up a VM and muck around!

This is what the post I linked to looks like, not bad at all:

https://i.imgur.com/OZKPhp7.png

Did you do anything else? mine is showing the code as it is, no colors hmm


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#10 2015-04-15 20:10:54

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Edit /etc/issue to change login style

MGu3l wrote:

mine is showing the code as it is, no colors hmm

You can use `echo -e` as long as you escape the colour codes first; for example:

# echo -e '\e[1;31mhello mum!\e[0m' > /etc/isssue

Or you can use a proper text editor (ie, vim) and press <Ctrl>+v then <Esc> then add the colour code; it should look like this in vim:

^[[1;31mhello mum!^[[0m

Jin, Jîyan, Azadî

Offline

#11 2015-04-15 21:07:08

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Edit /etc/issue to change login style

It's almost working!! big_smile

IMG_3344.jpg

as you can see now the template is working and all the colors looks as they should!! there are only 3 things i want to solve:


1. In the lower right corner the Arch login is located next to 'tt1 on Arch', how can I move the Arch login one or two lines down?

2.  This is an aesthetical problem, I get some advises about 'brcmsmac...', I'm in the process of investigate what are those, but in the meanwhile I would want the login screen appears after all this advises have appeared.

3. I don't want to write down 'startxfce4' each time I login, is there a file I can edit so Arch will load XFCE after I login?


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#12 2015-04-15 21:20:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Edit /etc/issue to change login style

1. Add a newline
2. Fix the underlying problem, or set the getty service type to idle rather than simple
3. bashrc/bash_profile - see the wiki.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#13 2015-04-15 21:23:52

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Edit /etc/issue to change login style


Jin, Jîyan, Azadî

Offline

#14 2015-04-15 22:07:16

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Edit /etc/issue to change login style

1. Solved
3. Solved [XFCE is taking some seconds to start, but I guess I'll have to take a look about that].
2. I will leave it as a reminder of the problem I need to solve.

Thanks!!


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

Board footer

Powered by FluxBB