You are not logged in.

#1 2015-05-05 00:26:59

sweetsweetpie
Member
Registered: 2015-05-05
Posts: 4

Configuring Login Prompt

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

#2 2015-05-05 00:52:04

ksu
Member
Registered: 2015-02-26
Posts: 55

Re: Configuring Login Prompt

Have you tried Google? smile

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

#3 2015-05-05 01:30:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Configuring Login Prompt

Offline

#4 2015-05-05 01:32:37

sweetsweetpie
Member
Registered: 2015-05-05
Posts: 4

Re: Configuring Login Prompt

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

#5 2015-05-05 01:45:00

jedijimi
Member
From: Hartford Wi
Registered: 2013-12-10
Posts: 93

Re: Configuring Login Prompt

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

#6 2015-05-05 01:47:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Configuring Login Prompt

The best you will get (without hacking source) is https://wiki.archlinux.org/index.php/Au … al_console


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-05-05 22:05:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Configuring Login Prompt

sweetsweetpie wrote:

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

#8 2015-05-05 23:23:14

sweetsweetpie
Member
Registered: 2015-05-05
Posts: 4

Re: Configuring Login Prompt

A faster login smile 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

#9 2015-05-05 23:30:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Configuring Login Prompt

sweetsweetpie wrote:

A faster login.

There is nothing faster than autologin...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2015-05-05 23:58:39

sweetsweetpie
Member
Registered: 2015-05-05
Posts: 4

Re: Configuring Login Prompt

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

#11 2015-05-06 00:12:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Configuring Login Prompt

Yes. But unless your drive is encrypted, anyone who has physical access can get to your files anyway.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2015-07-05 11:14:12

moneytoo
Member
From: Czech Republic
Registered: 2012-04-04
Posts: 20

Re: Configuring Login Prompt

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

Board footer

Powered by FluxBB