auto login and startx without a display manager - lenny

Share your own howto's etc. Not for support questions!

Postby contredire » 2009-01-15 05:03

okay, but I cant do that right now, since I cant even start gnome any more! see my post here:
viewtopic.php?p=201460#201460
Debian Lenny
contredire
 
Posts: 188
Joined: 2009-01-10 23:12
Location: Linköping, sweden

Postby Bro.Tiag » 2009-01-15 07:02

contredire wrote:okay, but I cant do that right now, since I cant even start gnome any more! see my post here:
viewtopic.php?p=201460#201460


OK. I did read your other thread, I'm no expert, but that looks like a hardware issue to me. May be a ram issue, since the LiveCD craped out as well.

Cheers
User avatar
Bro.Tiag
 
Posts: 1937
Joined: 2007-06-02 19:14

Postby contredire » 2009-01-17 01:59

I made a backup of my files, so now I dare starting to fix the problem.

First I tried
sudo aptitude purge gnome-desktop-environment
now, I get to the gnome desktop after boot instead of the log in windows, but the design is rather changed but my settings are still there.. and when entering a ctrl-alt-F1 prompt, the X server is terminated, and started again when I log in on the ctrl-alt-F1-prompt

what about that? how to get rid of all gnome, KDE and fluxbox files, configs etc?
Debian Lenny
contredire
 
Posts: 188
Joined: 2009-01-10 23:12
Location: Linköping, sweden

Postby Bro.Tiag » 2009-01-17 03:07

contredire wrote:I made a backup of my files, so now I dare starting to fix the problem.

First I tried
sudo aptitude purge gnome-desktop-environment
now, I get to the gnome desktop after boot instead of the log in windows, but the design is rather changed but my settings are still there.. and when entering a ctrl-alt-F1 prompt, the X server is terminated, and started again when I log in on the ctrl-alt-F1-prompt

what about that? how to get rid of all gnome, KDE and fluxbox files, configs etc?


You should have only removed GDM, gnome desktop manager not the whole gnome desktop.

Cheers
User avatar
Bro.Tiag
 
Posts: 1937
Joined: 2007-06-02 19:14

Postby contredire » 2009-01-17 10:40

I know that. but I want to purge all desktop environment and reinstall it to see if it stops freezing..

What is the name of the packages I need to remove?
Debian Lenny
contredire
 
Posts: 188
Joined: 2009-01-10 23:12
Location: Linköping, sweden

Postby contredire » 2009-01-18 10:13

I have installed gnome again. how do I remove gdm without removing all gnome stuff?
Debian Lenny
contredire
 
Posts: 188
Joined: 2009-01-10 23:12
Location: Linköping, sweden

Postby kce » 2009-01-19 07:43

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!
User avatar
kce
 
Posts: 265
Joined: 2008-10-31 16:48

Re: auto login and startx without a display manager - lenny

Postby handheldCar » 2011-05-11 02:49

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.
handheldCar
 
Posts: 221
Joined: 2009-11-27 02:31
Location: North Cackalack

Re: auto login and startx without a display manager - lenny

Postby IamTrying » 2011-10-23 14:48

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.
#
#1:2345:respawn:/sbin/getty 38400 tty1
1:2345:respawn:/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
IamTrying
 
Posts: 1
Joined: 2011-10-23 14:43

Re: auto login and startx without a display manager - lenny

Postby librefan » 2012-03-19 12:55

Hello,

I'm not sure I understand the difference in the following:

MeanDean wrote: 1. for auto login

edit /etc/inittab and change
Code: Select all
1:2345:respawn:/sbin/getty 38400 tty1

to make it look like
Code: Select all
#1:2345:respawn:/sbin/getty 38400 tty1

below it add the following new line
Code: Select all
1:2345:respawn:/bin/login -f YOUR_USER_NAME tty1 </dev/tty1 >/dev/tty1 2>&1

be sure to replace YOUR_USER_NAME with the user you want to be automatically logged in

2: for automatic startx
edit .bash_profile (or other file that gets run when you login) and add
Code: Select all
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
    startx
fi



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?

Is this still working with Wheezy (testing)?

Many thanks for your help!
librefan
 
Posts: 12
Joined: 2012-03-19 11:27

Re: auto login and startx without a display manager - lenny

Postby adenukolnis » 2012-03-20 03:44

to get to the desktop directly.

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 2


Is this still working with Wheezy (testing)?

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.
adenukolnis
 
Posts: 459
Joined: 2012-02-24 18:36

Re: auto login and startx without a display manager - lenny

Postby librefan » 2012-03-20 08:24

Many thanks adenukolnis, for your clear reply. I'll try that as soon as.
librefan
 
Posts: 12
Joined: 2012-03-19 11:27

Re: auto login and startx without a display manager - lenny

Postby librefan » 2012-03-20 11:58

Well, it didn't work for me. The boot got as far
Starting system message bus: dbus
and then it hanged.
librefan
 
Posts: 12
Joined: 2012-03-19 11:27

Re: auto login and startx without a display manager - lenny

Postby lego » 2012-04-28 00:20

librefan wrote:Is this still working with Wheezy (testing)?

It works for me.
lego
 
Posts: 56
Joined: 2008-01-09 09:43

Re: auto login and startx without a display manager - lenny

Postby Lou » 2013-12-03 17:40

Thank you guys, i'm overwhelmed, so much help and so ****** fast!

THANK YOU!!!
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid
Lou
 
Posts: 1775
Joined: 2006-05-08 02:15

PreviousNext

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable