You are not logged in.

#1 2017-02-15 11:15:35

eugenio
New Member
Registered: 2017-02-15
Posts: 3

non graphical login

hi there folks ,
two questions :

1) how can i avoid graphical login ( lightdm )  and use the cli instead ?

2) i'm looking for a way to execute some pre-login commands in other
to have some output results ( such as sensors, neofetch  ) shown before the login happens

example :

     `:+ssssssssssssssssss+:`           ------------------
      -+ssssssssssssssssssyyssss+-         OS: xxxxx
    .ossssssssssssssssssdMMMNysssso.       Model: Lxxx
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: xxx
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: xxxx
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: xxxx
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: xxxxx
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: xxxxxxxxx
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: GNOME Shell
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: xxxxxx
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Axxxxxxx
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: Intel i5-3340M (2) @ 3.4GHz
    .ossssssssssssssssssdMMMNysssso.       GPU: NVIDIA NVS 5200M
      -+sssssssssssssssssyyyssss+-         Memory: ssssssssssssssssss+:`
            .-/+oossssoo+/-.                                       


--> login promt :


thx

Offline

#2 2017-02-15 11:35:44

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: non graphical login

eugenio wrote:

hi there folks ,
two questions :

1) how can i avoid graphical login ( lightdm )  and use the cli instead ?
....

thx

CLI on Startup Enable/Disable

(PS Please use [ code ] tags for terminal output in your posts wink see my sig for post formatting. And welcome to Bunsenlabs smile )

EDIT To run a command before logging in, I think you have to have a systemd unit file, but I'm not the person to advise you about that subject! systemd.unit(5)

Last edited by damo (2017-02-15 11:41:06)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2017-02-15 12:36:56

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: non graphical login

About starting stuff: I just add stuff at the bottom of ~/.bashrc Misunderstood the question.

Last edited by brontosaurusrex (2017-02-16 19:02:41)

Offline

#4 2017-02-15 13:16:07

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: non graphical login

brontosaurusrex wrote:

About starting stuff: I just add stuff at the bottom of ~/.bashrc

But doesn't that run after the $USER has logged in? @OP wants something like screenfetch to run in a TTY before the login prompt.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#5 2017-02-15 13:25:07

eugenio
New Member
Registered: 2017-02-15
Posts: 3

Re: non graphical login

ok thx for the advice , i 'll give it a look , see what can i do ......

smile

Offline

#6 2017-02-15 13:27:18

eugenio
New Member
Registered: 2017-02-15
Posts: 3

Re: non graphical login

damo wrote:
brontosaurusrex wrote:

About starting stuff: I just add stuff at the bottom of ~/.bashrc

But doesn't that run after the $USER has logged in? @OP wants something like screenfetch to run in a TTY before the login prompt.


actually yes, i wanted the script /command to start before the user logs into the system..
more or less like a motd in a cisco system when promts you for a credential and shows you
some infos about the system you're going to log into.

Last edited by eugenio (2017-02-15 13:29:35)

Offline

#7 2017-02-15 19:40:07

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: non graphical login

eugenio wrote:

more or less like a motd in a cisco system

Why not use /etc/motd?

smile

EDIT: thread moved to Help & Support (Other)

Last edited by Head_on_a_Stick (2017-02-15 22:06:04)

Offline

Board footer

Powered by FluxBB