You are not logged in.
Pages: 1
I wanted to configure the login prompt for my tty1. Essentially, I want to for a default user to be prefillled and perhaps to display to display some ascii art prior the prompt.
From what I have gathered,
The configuration file for tty is in
/lib/systemd/system/getty\@.service
Should I be looking into the source of /bin/login? (and where can I find this source)
Offline
Have you tried Google?
http://unix.stackexchange.com/questions … ogin-shell
http://www.deater.net/weave/vmwprod/linux_logo/
and many more by simply searching for "linux login ascii art"
Offline
Offline
Thanks. You're right (I was only looking up how to change the login prompt).
But honestly, showing ascii art is really secondary to what I want to do.
I want to prefill a username in the login prompt.
Offline
I think you wanna do something with your PS1. You'll find it in your '.bashrc' file. Look here.
Crude matter we are not, Luminous beings we are
Offline
The best you will get (without hacking source) is https://wiki.archlinux.org/index.php/Au … al_console
Offline
I want to prefill a username in the login prompt.
Any particular reason why you want to do that?
https://wiki.archlinux.org/index.php/Di … er#Console ?
Offline
A faster login also I feel a GUI is unnecessary just for this.
Would it be possible to create a wrapper that calls login? I would just like some direction I suppose.
Offline
A faster login.
There is nothing faster than autologin...
Offline
Doesn't that mean someone can just access my files by turning on my computer. I guess it's a silly task but I was just trying to do it anyway. What actually displays the prompt to enter the password. I was looking at the login source as well as the login config and couldn't find anything where they ask the user about the prompt.
Last edited by sweetsweetpie (2015-05-05 23:59:25)
Offline
Yes. But unless your drive is encrypted, anyone who has physical access can get to your files anyway.
Offline
I was looking for the same. Without using any graphical login manager, I didn't want to enter my username. I setup fingerprint reader on my laptop and wanted to only swipe my finger. I achieved it using following in autologin.conf
ExecStart=-/usr/bin/agetty --skip-login --login-options myusername --noclear %I 38400 linux
# instead of
#ExecStart=-/usr/bin/agetty --autologin myusername --noclear %I 38400 linux
Offline
Pages: 1