You are not logged in.
The file at /etc/issue is used to print the information seen on the console login screen that can be accessed with <Ctrl>+<Alt>+F1-F6
In a stock BunsenLabs system, it is as shipped by Debian:
Debian GNU/Linux 8 \n \l
The \n & \l are special characters that print out the hostname and TTY name, respectively.
For more on these special characters, read the ISSUE ESCAPES section of:
man agetty
The /etc/issue file also accepts ANSI escape codes that allow colourisation of the output.
This can be used to generate a natty blue BL flame logo on the login screen
I like to use vim to create text files and for that program, whilst in INSERT mode, <Ctrl>+v followed by the <Escape> key will generate the required escape character.
Alternatively, the ANSI code can be entered using the printf(1) command, for example:
printf '\e[0mfoo' > bar.txt
Any suggestions for other methods and/or with different editors would be gratefully received
So to generate the Bunsen flame logo, I copy&pasta'd the one in our screenfetch package and added a blue colour code before the logo and a null colour code afterwards so that the console text is re-normalised:
BunsenLabs GNU/Linux 8 \n \l
^[[0;34m HC]
H]]]]
H]]]]]]4
@C]]]]]]]]*
@]]]]]]]]]]xd
@]]]]]]]]]]]]]d
0]]]]]]]]]]]]]]]]
kx]]]]]]x]]x]]]]]%
#x]]]]]]]]]]]]]x]]]d
#]]]]]]qW x]]x]]]]]4
k]x]]xg %x]]]]]]%
Wx]]]W x]]]]]]]
#]]]4 xx]]x]]
px] ]]]]]x
Wx] x]]x]]
&x x]]]]
m x]]]]
x]x]
x]]]
]]]]
x]x
x]q
]g
q
^[[0m
https://github.com/Head-on-a-Stick/conf … r/issue.bl
Which translates to:
The file at /etc/motd can also be altered to change the message that is printed after login.
For more on this, read:
man motd
Last edited by Head_on_a_Stick (2016-12-30 13:48:51)
Offline
Looks nice!
I'll have to reboot to see the results here, I guess.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
btw, use the raw file from github, don't just copy the code above or the colour escape sequences won't work. The '^' character is actually some mysterious ESC thing that doesn't render as a real character either on GitHub's web interface or in Geany, but is needed as-is.
Also I have to look at my tty font size setting in order to get the whole thing to fit in the screen.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
use the raw file from github, don't just copy the code above or the colour escape sequences won't work.
Ah yes, the ANSI escape code character can be a tricky little blighter
For vim, starting from the "beep repeatedly" (normal) mode, press i to enter "break everything" (insert) mode then press <Ctrl>+v (at the same time) and then the <Escape> key (after releasing <Ctrl>&v) to produce an escape code.
Unfortunately, I don't know how to do this with geany
The best I can think of is to create a sample escape code with:
printf '\e' > escape.txt
Then load escape.txt into geany and copypasta away.
Also I have to look at my tty font size setting in order to get the whole thing to fit in the screen.
I like to use the smallest terminus font on the console:
sudo apt install xfonts-terminus console-setup
sudo dpkg-reconfigure console-setup
Then select "Terminus" and the smallest font, on my system this is 6x12:
Hmmm, that grab has me thinking that I should try to match the console colours to the (urxvt) desktop colours in BL...
Offline
I should try to match the console colours to the (urxvt) desktop colours in BL...
Place this snippet in ~/.profile:
if [ "$TERM" = "linux" ]; then
printf "\e]P0000000" # color0
printf "\e]P19e1828" # color1
printf "\e]P2aece92" # color2
printf "\e]P3968a38" # color3
printf "\e]P4414171" # color4
printf "\e]P5963c59" # color5
printf "\e]P6418179" # color6
printf "\e]P7bebebe" # color7
printf "\e]P8888888" # color8
printf "\e]P9cf6171" # color9
printf "\e]PAc5f779" # color10
printf "\e]PBfff796" # color11
printf "\e]PC4186be" # color12
printf "\e]PDcf9ebe" # color13
printf "\e]PE71bebe" # color14
printf "\e]PFffffff" # color15
# clear # removes artefacts but also removes /etc/{issue,motd}
fi
https://github.com/Head-on-a-Stick/conf … lourtty.sh
Last edited by Head_on_a_Stick (2016-12-30 17:38:03)
Offline
john@bunsen1:~$ echo $TERM
rxvt-unicode
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
sudo apt install xfonts-terminus console-setup sudo dpkg-reconfigure console-setup
Then select "Terminus" and the smallest font, on my system this is 6x12:
I was only offered 8x14 (the preexisting setting was 8x16) and "Terminus" was in the menu both before and after installing xfonts-terminus (already had console-setup). Changing from "Fixed" to "Terminus", downsizing, and rebooting made no difference to my tty display font size (rather too big).
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
john@bunsen1:~$ echo $TERM rxvt-unicode
Try that command again from TTY2
font size (rather too big)
The smaller font sizes are framebuffer-dependent, which graphics card do you have?
Make sure that any resolutions are not being set through the bootloader and/or via the kernel command line:
cat /proc/cmdline
Otherwise, for Intel cards KMS should be enabled by default and the full native resolution should be available on the console screen, this also seems to apply for my AMD laptop.
If you have NVIDIA then I think you will have to use the open driver to enjoy all the benefits.
Offline
johnraff wrote:john@bunsen1:~$ echo $TERM rxvt-unicode
Try that command again from TTY2
Ah OK I just twigged that you were colourizing the tty, not a terminal emulator!
If you have NVIDIA then I think you will have to use the open driver to enjoy all the benefits.
NVIDIA I'm afraid, and I'm using the non-free driver because some small glitch came in nouveau's rendering with the upgrade from Wheezy to Jessie.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline