Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
auto login and startx without a display manager - lenny
Re: auto login and startx without a display manager - lenny
hey guys old thread but I need to know
I assume the user that's being logged in has no password since I see nothing in the posted code that indicates a password is given.
how would one modify
1respawn:/bin/login -f YOUR_USER_NAME tty1 </dev/tty1 >/dev/tty1 2>&1
with a password
I assume the user that's being logged in has no password since I see nothing in the posted code that indicates a password is given.
how would one modify
1respawn:/bin/login -f YOUR_USER_NAME tty1 </dev/tty1 >/dev/tty1 2>&1
with a password
- manishthatte
- Posts: 15
- Joined: 2014-05-12 02:46
Re: auto login and startx without a display manager - lenny
I want to try meandean's method.
But how do i find the bash profile?
But how do i find the bash profile?
Taking baby steps in Debian
- manishthatte
- Posts: 15
- Joined: 2014-05-12 02:46
Re: auto login and startx without a display manager - lenny
I tried iamtrying's method too. Doesnt work. Still the login screen is there.
What to do?
What to do?
Taking baby steps in Debian
- manishthatte
- Posts: 15
- Joined: 2014-05-12 02:46
Re: auto login and startx without a display manager - lenny
Below given method worked for me:
1) Edit /etc/lightdm/lightdm.conf with sudo
2) Remove # from the line > autologin-user = manish
3) Save the file and reboot
1) Edit /etc/lightdm/lightdm.conf with sudo
2) Remove # from the line > autologin-user = manish
3) Save the file and reboot
Taking baby steps in Debian
Re: auto login and startx without a display manager - lenny
I am running Jessie and tried the rungetty method,
it does not work.
A login is still displayed.
I wonder how to troubleshoot this..
Many thanks
it does not work.
A login is still displayed.
I wonder how to troubleshoot this..
Many thanks
Re: auto login and startx without a display manager - lenny
I suspect that systemd breaks this method
Re: auto login and startx without a display manager - lenny
It does, here is a solution.naednaem wrote:I suspect that systemd breaks this method
If you've modified /etc/inittab put it back to it's original.
From https://wiki.manjaro.org/index.php?titl ... th_Systemd with modification for debian.
From the console (as root);
Edit autologin.confmkdir /etc/systemd/system/getty@tty1.service.d
with;vi /etc/systemd/system/getty@tty1.service.d/autologin.conf
Now update your .bash_profile;[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
Reboot.# Following automatically calls - startx when you login:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
Cheers
Re: auto login and startx without a display manager - lenny
if say i want to build a media center (using kodi/xbmc), could i replace replace startx with kodi/xbmc?
edit - replacing startx with kodi effectively ran startx and then started kodi
i suppose what i wanted to see was how these prepackaged solutions load straight into a kodi without a de loading.
edit - replacing startx with kodi effectively ran startx and then started kodi
i suppose what i wanted to see was how these prepackaged solutions load straight into a kodi without a de loading.
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: auto login and startx without a display manager - lenny
Create a file at ~/.xsession with the following content:milomak wrote:i suppose what i wanted to see was how these prepackaged solutions load straight into a kodi without a de loading.
Code: Select all
#!/bin/bash
if [ -z "${DBUS_SESSION_BUS_ADDRESS-}" ] && type dbus-launch >/dev/null; then
eval $(dbus-launch --sh-syntax --exit-with-session)
fi
source /etc/profile
exec kodi
deadbang
Re: auto login and startx without a display manager - lenny
thanks.Head_on_a_Stick wrote:Create a file at ~/.xsession with the following content:milomak wrote:i suppose what i wanted to see was how these prepackaged solutions load straight into a kodi without a de loading.Code: Select all
#!/bin/bash if [ -z "${DBUS_SESSION_BUS_ADDRESS-}" ] && type dbus-launch >/dev/null; then eval $(dbus-launch --sh-syntax --exit-with-session) fi source /etc/profile exec kodi
do i leave the changes i made to inittab?
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: auto login and startx without a display manager - lenny
I'm sorry, I'm not familiar with /etc/inittab or how to use itmilomak wrote:do i leave the changes i made to inittab?
If you have Kodi autostarting from there, then yes you should probably disable that.
deadbang
Re: auto login and startx without a display manager - lenny
thank you good sir. indeed not reverting the innitab changes has kodi loading twice.
you are a scholar and a gentleman.
you are a scholar and a gentleman.
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: auto login and startx without a display manager - lenny
You're welcome
Thread Update for Debian jessie (systemd)
For automatic login, edit the file at /etc/systemd/system/getty.target.wants/getty@tty1.service and change the "ExecStart=" line in the "[Service]" section to this:
Replace "<user name>" with your user name.
For automatic `startx` use this snippet in ~/.bash_profile (or ~/.zprofile for zsh users):
http://forums.debian.net/viewtopic.php?f=16&t=123694
Thread Update for Debian jessie (systemd)
For automatic login, edit the file at /etc/systemd/system/getty.target.wants/getty@tty1.service and change the "ExecStart=" line in the "[Service]" section to this:
Code: Select all
ExecStart=-/sbin/agetty -a <user name> %I $TERM
For automatic `startx` use this snippet in ~/.bash_profile (or ~/.zprofile for zsh users):
Code: Select all
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
deadbang
- Nili
- Posts: 441
- Joined: 2014-04-30 14:04
- Location: $HOME/♫♪
- Has thanked: 5 times
- Been thanked: 3 times
Re: auto login and startx without a display manager - lenny
Heya there Head_on_a_Stick,Head_on_a_Stick wrote:You're welcome
Thread Update for Debian jessie (systemd)
For automatic login, edit the file at /etc/systemd/system/getty.target.wants/getty@tty1.service and change the "ExecStart=" line in the "[Service]" section to this:Replace "<user name>" with your user name.Code: Select all
ExecStart=-/sbin/agetty -a <user name> %I $TERM
This part of your code interests me (ofcourse i am using right now)
Code: Select all
ExecStart=-/sbin/agetty -a nili %I $TERM
I noticed after startx start on tty1 while on tty2 it is made nili (automatic login). I don't want to stay login all time tty2 (as well couldn't stop with exit because autostart again ) It must be stopped early on boot.
So, my question: Is there anyway to prevent autologin on tty2?
Many thanks...
Kindly regards
Nili
openSUSE Tumbleweed KDE/Wayland
♫♪ Elisa playing...
Damascus Cocktail ♪ Black Reverie ♪ Dye the sky.
♫♪ Elisa playing...
Damascus Cocktail ♪ Black Reverie ♪ Dye the sky.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: auto login and startx without a display manager - lenny
@Nili -- could you post this in my Howto that is specifically for jessie please?
http://forums.debian.net/viewtopic.php?f=16&t=123694
This one is for lenny.
When you post in the other thread, include the output of:
http://forums.debian.net/viewtopic.php?f=16&t=123694
This one is for lenny.
When you post in the other thread, include the output of:
Code: Select all
ls -l /etc/systemd/system/getty.target.wants
deadbang
- Nili
- Posts: 441
- Joined: 2014-04-30 14:04
- Location: $HOME/♫♪
- Has thanked: 5 times
- Been thanked: 3 times
Re: auto login and startx without a display manager - lenny
I feel so stupid for not reading the topic because in addition mixing lenny code for jessie brought me a lot of troubles that i hardly fixed them today with boot resque. I removed all the mistakes made. I am ready to post from start on the appropriate topic.
Sorry for the stupidity, great heat here: sun in head occasionally lol.
Sorry for the stupidity, great heat here: sun in head occasionally lol.
openSUSE Tumbleweed KDE/Wayland
♫♪ Elisa playing...
Damascus Cocktail ♪ Black Reverie ♪ Dye the sky.
♫♪ Elisa playing...
Damascus Cocktail ♪ Black Reverie ♪ Dye the sky.
Re: auto login and startx without a display manager - lenny
one thing i noticed is that i am unable to get to a console via alt-Fx. how can i add this?Head_on_a_Stick wrote:Create a file at ~/.xsession with the following content:milomak wrote:i suppose what i wanted to see was how these prepackaged solutions load straight into a kodi without a de loading.Code: Select all
#!/bin/bash if [ -z "${DBUS_SESSION_BUS_ADDRESS-}" ] && type dbus-launch >/dev/null; then eval $(dbus-launch --sh-syntax --exit-with-session) fi source /etc/profile exec kodi
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: auto login and startx without a display manager - lenny
Try <Ctrl>+<Alt>+Fxmilomak wrote:i am unable to get to a console via alt-Fx.
deadbang
Re: auto login and startx without a display manager - lenny
that's what i actually meantHead_on_a_Stick wrote:Try <Ctrl>+<Alt>+Fxmilomak wrote:i am unable to get to a console via alt-Fx.
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: auto login and startx without a display manager - lenny
It could be that Kodi is grabbing the keybind or something.
I'm not sure really.
I'm not sure really.
deadbang