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
-
- Posts: 188
- Joined: 2009-01-10 23:12
- Location: Linköping, sweden
You'll have to remove gdm from the rc scripts. This worked for me:
Code: Select all
update-rc.d gdm remove
More paranoid than AMLJ!
-
- Posts: 221
- Joined: 2009-11-27 02:31
- Location: North Cackalack
Re: auto login and startx without a display manager - lenny
Very nice, the first post still works.
PS There's the nodm package.
PPS For Xfce, both of these approaches--the nodm package and the inittab script--disable the powerdev user's ability to shutdown or restart the computer, so in that case, gdm seems best because it can be configured from Xfce settings. Kdm can be configured from systemsettings if you could supply the administrative password. That was done by running 'kdesu systemsettings' in KDE 4.4, but I don't know how it's done in Xfce. Xdm isn't really simple either, so gdm wins.
PS There's the nodm package.
PPS For Xfce, both of these approaches--the nodm package and the inittab script--disable the powerdev user's ability to shutdown or restart the computer, so in that case, gdm seems best because it can be configured from Xfce settings. Kdm can be configured from systemsettings if you could supply the administrative password. That was done by running 'kdesu systemsettings' in KDE 4.4, but I don't know how it's done in Xfce. Xdm isn't really simple either, so gdm wins.
Re: auto login and startx without a display manager - lenny
Just modify the line, i have tested and works.
$ apt-get install mingetty
$ vim /etc/inittab
# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
# <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
#1respawn:/sbin/getty 38400 tty1
1respawn:/sbin/mingetty --autologin sun tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
$ apt-get install mingetty
$ vim /etc/inittab
# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
# <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
#1respawn:/sbin/getty 38400 tty1
1respawn:/sbin/mingetty --autologin sun tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
Re: auto login and startx without a display manager - lenny
Hello,
I'm not sure I understand the difference in the following:
Is this still working with Wheezy (testing)?
Many thanks for your help!
I'm not sure I understand the difference in the following:
I have no display manager and want to get to the desktop directly. Do I go through step 1 and 2? Or just step 2?MeanDean wrote: 1. for auto login
edit /etc/inittab and changeto make it look likeCode: Select all
1:2345:respawn:/sbin/getty 38400 tty1
below it add the following new lineCode: Select all
#1:2345:respawn:/sbin/getty 38400 tty1
be sure to replace YOUR_USER_NAME with the user you want to be automatically logged inCode: Select all
1:2345:respawn:/bin/login -f YOUR_USER_NAME tty1 </dev/tty1 >/dev/tty1 2>&1
2: for automatic startx
edit .bash_profile (or other file that gets run when you login) and addCode: Select all
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then startx fi
Is this still working with Wheezy (testing)?
Many thanks for your help!
-
- Posts: 459
- Joined: 2012-02-24 18:36
Re: auto login and startx without a display manager - lenny
If you do not want to have to type in a username and password AND you want the graphical environment to start automatically then you want 1 and 2to get to the desktop directly.
I haven't tried it lately. I can't think of any reason it wouldn't but I will soon try it and post back.Is this still working with Wheezy (testing)?
Re: auto login and startx without a display manager - lenny
Many thanks adenukolnis, for your clear reply. I'll try that as soon as.
Re: auto login and startx without a display manager - lenny
Well, it didn't work for me. The boot got as far
and then it hanged.Starting system message bus: dbus
Re: auto login and startx without a display manager - lenny
It works for me.librefan wrote: Is this still working with Wheezy (testing)?
Re: auto login and startx without a display manager - lenny
Thank you guys, i'm overwhelmed, so much help and so ****** fast!
THANK YOU!!!
THANK YOU!!!
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid
KISS - Keep It Simple, Stupid
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