You are not logged in.

#1 2011-01-12 23:06:05

Kidfork
Member
From: Massachusetts
Registered: 2010-11-24
Posts: 29

KDE doesn't start up automaticly? `

Okay so the other day I accidently deleted /etc/passwd. Now everything is really screwly. One of the problems i've been facing latley is that now I cant get KDE to startup automaticly. Now I have to login through console, then i have to manually type "startx" in order for KDE to start.

Heres my /etc/inittab

\#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)    Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
#id:5:initdefault:
[...]
#x:5:respawn:/usr/bin/kdm -nodaemon

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux

# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1

# End of file
root:x:0:0:Superuser:/:/bin/bash
tyler:x:1000:1001::/home/tyler:/bin/bash
hal:x:82:82:HAL daemon:/:/bin/false

Last edited by Kidfork (2011-01-12 23:09:03)


16-Year Old Linux User
Arch Linux AMD64, 4GB DDR2, 320HDD 2.7 Pentium Dual, Geforce 9500 GT
Former Ubuntu/Windows User

Offline

#2 2011-01-12 23:10:40

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

Re: KDE doesn't start up automaticly? `

Your default run-level is commented out:

https://wiki.archlinux.org/index.php/GD … _run-level


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-01-13 07:42:49

TFB
Member
Registered: 2010-02-27
Posts: 22

Re: KDE doesn't start up automaticly? `

It is much easier to start your graphics with a daemon.  Just add kdm to the end of your daemons in /etc/rc.conf

Offline

#4 2011-01-13 21:26:23

Kidfork
Member
From: Massachusetts
Registered: 2010-11-24
Posts: 29

Re: KDE doesn't start up automaticly? `

With either of the options, I still have to console login and "startx"


16-Year Old Linux User
Arch Linux AMD64, 4GB DDR2, 320HDD 2.7 Pentium Dual, Geforce 9500 GT
Former Ubuntu/Windows User

Offline

#5 2011-01-13 21:31:34

TFB
Member
Registered: 2010-02-27
Posts: 22

Re: KDE doesn't start up automaticly? `

Post a copy of your rc.conf

Offline

#6 2011-01-13 21:44:18

Kidfork
Member
From: Massachusetts
Registered: 2010-11-24
Posts: 29

Re: KDE doesn't start up automaticly? `

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK=""
TIMEZONE="America/New_York"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="myhost"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond alsa kdm)

16-Year Old Linux User
Arch Linux AMD64, 4GB DDR2, 320HDD 2.7 Pentium Dual, Geforce 9500 GT
Former Ubuntu/Windows User

Offline

#7 2011-01-13 21:47:16

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: KDE doesn't start up automaticly? `

From what I understand if you want to use kdm as a daemon then you need to uncomment

#id:3:initdefault:

in /etc/inittab


Rauchen verboten

Offline

#8 2011-01-13 22:20:43

Kidfork
Member
From: Massachusetts
Registered: 2010-11-24
Posts: 29

Re: KDE doesn't start up automaticly? `

SS4 wrote:

From what I understand if you want to use kdm as a daemon then you need to uncomment

#id:3:initdefault:

in /etc/inittab


Nope, still the same, still have to "startx"


16-Year Old Linux User
Arch Linux AMD64, 4GB DDR2, 320HDD 2.7 Pentium Dual, Geforce 9500 GT
Former Ubuntu/Windows User

Offline

#9 2011-01-13 23:09:22

adee
Member
From: The Moon
Registered: 2009-11-10
Posts: 110

Re: KDE doesn't start up automaticly? `

You simply have to uncomment
#id:5:initdefault:

#x:5:respawn:/usr/bin/kdm -nodaemon

both lines. But this is well covered in the wiki (as usual....)

Offline

#10 2011-01-14 01:44:19

Kidfork
Member
From: Massachusetts
Registered: 2010-11-24
Posts: 29

Re: KDE doesn't start up automaticly? `

adee wrote:

You simply have to uncomment
#id:5:initdefault:

#x:5:respawn:/usr/bin/kdm -nodaemon

both lines. But this is well covered in the wiki (as usual....)

I've done this, and it unfourtunetly doesn't work.


16-Year Old Linux User
Arch Linux AMD64, 4GB DDR2, 320HDD 2.7 Pentium Dual, Geforce 9500 GT
Former Ubuntu/Windows User

Offline

#11 2011-01-14 06:10:45

TFB
Member
Registered: 2010-02-27
Posts: 22

Re: KDE doesn't start up automaticly? `

why don't you have the dbus daemon running?

Offline

#12 2011-01-14 06:30:00

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Re: KDE doesn't start up automaticly? `

groupadd -g 135 kdm &>/dev/null
useradd -u 135 -g kdm -d /var/lib/kdm -s /bin/false -r -M kdm &>/dev/null

From http://projects.archlinux.org/svntogit/ … ce.install

Offline

Board footer

Powered by FluxBB