You are not logged in.

#1 2009-11-20 19:20:20

cavveman
Member
Registered: 2009-11-20
Posts: 7

Cant use startx with non root user[SOLVED]

Hi. i wounder how I shall configure my kernel so i can allow my other user to use startx.

the user is a member in these groups:
video, audio, optical, storage, power

I have a x86_64 installation,

Last edited by cavveman (2009-11-20 21:10:53)

Offline

#2 2009-11-20 19:33:12

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Cant use startx with non root user[SOLVED]

Why you cant? It crash, freeze, or something else?

Post the output of startx and the contents of /var/log/Xorg.0.log

Offline

#3 2009-11-20 19:36:16

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Cant use startx with non root user[SOLVED]

It's certainly not your kernel.  More likely you've configured everything as root and the relevant configs are all in root's home dir.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2009-11-20 19:49:34

cavveman
Member
Registered: 2009-11-20
Posts: 7

Re: Cant use startx with non root user[SOLVED]

@kazuo
Didn't know how much of the Xorg.0.log you wanted.
When i entered startx it becomes black for a few seconds and i'm getting back to commandline


X.Org X Server 1.7.1.901 (1.7.2 RC 1)
Release Date: 2009-11-6
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.31-ARCH x86_64 
Current Operating System: Linux cavve 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:01:40 CET 2009 x86_64
Kernel command line: root=/dev/disk/by-uuid/6418c3dd-7adb-4dd3-a54e-6c34021527c2 ro
Build Date: 08 November 2009  04:08:18PM
 
Current version of pixman: 0.16.2
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Nov 20 20:42:00 2009
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Layout0"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Device0"
(**) |-->Input Device "Keyboard0"
(**) |-->Input Device "Mouse0"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/Type1" does not exist.
    Entry deleted from font path.
(==) FontPath set to:
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/TTF
(==) ModulePath set to "/usr/lib/xorg/modules"
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Keyboard0
(WW) Disabling Mouse0
(II) Loader magic: 0x7c1a00
(II) Module ABI versions:
    X.Org ANSI C Emulation: 0.4
    X.Org Video Driver: 6.0
    X.Org XInput driver : 7.0
    X.Org Server Extension : 2.0
(--) using VT number 7

(--) PCI:*(0:1:0:0) 10de:0612:1682:2373 nVidia Corporation G92 [GeForce 9800 GTX] rev 162, Mem @ 0xfd000000/16777216, 0xd0000000/268435456, 0xfa000000/33554432, I/O @ 0x0000cc00/128, BIOS @ 0x????????/131072
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
    compiled for 1.7.1.901, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
    compiled for 1.7.1.901, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
    compiled for 4.0.2, module version = 1.0.0
    Module class: X.Org Server Extension
(II) NVIDIA GLX Module  190.42  Tue Oct 20 21:19:30 PDT 2009
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
    compiled for 1.7.1.901, module version = 1.13.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
    compiled for 1.7.1.901, module version = 1.0.0
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
    compiled for 1.7.1.901, module version = 1.1.0
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
    compiled for 4.0.2, module version = 1.0.0
    Module class: X.Org Video Driver
(II) NVIDIA dlloader X Driver  190.42  Tue Oct 20 20:42:04 PDT 2009
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01@00:00:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
    compiled for 1.7.1.901, module version = 1.0.0
    ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/lib/xorg/modules/libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
    compiled for 1.7.1.901, module version = 1.0.0
    ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) Nov 20 20:42:00 NVIDIA(0): Enabling RENDER acceleration
(II) Nov 20 20:42:00 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) Nov 20 20:42:00 NVIDIA(0):     enabled.
(II) Nov 20 20:42:01 NVIDIA(0): NVIDIA GPU GeForce 9800 GTX/9800 GTX+ (G92) at PCI:1:0:0
(II) Nov 20 20:42:01 NVIDIA(0):     (GPU-0)
(--) Nov 20 20:42:01 NVIDIA(0): Memory: 524288 kBytes
(--) Nov 20 20:42:01 NVIDIA(0): VideoBIOS: 62.92.56.00.03
(II) Nov 20 20:42:01 NVIDIA(0): Detected PCI Express Link width: 8X
(--) Nov 20 20:42:01 NVIDIA(0): Interlaced video modes are supported on this GPU
(--) Nov 20 20:42:01 NVIDIA(0): Connected display device(s) on GeForce 9800 GTX/9800 GTX+ at
(--) Nov 20 20:42:01 NVIDIA(0):     PCI:1:0:0:
(--) Nov 20 20:42:01 NVIDIA(0):     BenQ G2200W (CRT-0)
(--) Nov 20 20:42:01 NVIDIA(0): BenQ G2200W (CRT-0): 400.0 MHz maximum pixel clock
(II) Nov 20 20:42:01 NVIDIA(0): Assigned Display Device: CRT-0
(==) Nov 20 20:42:01 NVIDIA(0): 
(==) Nov 20 20:42:01 NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
(==) Nov 20 20:42:01 NVIDIA(0):     will be used as the requested mode.
(==) Nov 20 20:42:01 NVIDIA(0): 
(II) Nov 20 20:42:01 NVIDIA(0): Validated modes:
(II) Nov 20 20:42:01 NVIDIA(0):     "nvidia-auto-select"
(II) Nov 20 20:42:01 NVIDIA(0): Virtual screen size determined to be 1680 x 1050
(--) Nov 20 20:42:01 NVIDIA(0): DPI set to (90, 88); computed from "UseEdidDpi" X config
(--) Nov 20 20:42:01 NVIDIA(0):     option
(==) Nov 20 20:42:01 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp
(II) Nov 20 20:42:01 NVIDIA(0): Initialized GPU GART.
(II) Nov 20 20:42:01 NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
(II) Nov 20 20:42:01 NVIDIA(0):     may not be running or the "AcpidSocketPath" X
(II) Nov 20 20:42:01 NVIDIA(0):     configuration option may not be set correctly.  When the
(II) Nov 20 20:42:01 NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
(II) Nov 20 20:42:01 NVIDIA(0):     try to use it to receive ACPI event notifications.  For
(II) Nov 20 20:42:01 NVIDIA(0):     details, please see the "ConnectToAcpid" and
(II) Nov 20 20:42:01 NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
(II) Nov 20 20:42:01 NVIDIA(0):     Config Options in the README.
(II) Nov 20 20:42:01 NVIDIA(0): Setting mode "nvidia-auto-select"
(II) Loading extension NV-GLX
(II) Nov 20 20:42:01 NVIDIA(0): Initialized OpenGL Acceleration
(==) NVIDIA(0): Disabling shared memory pixmaps
(II) Nov 20 20:42:01 NVIDIA(0): Initialized X Rendering Acceleration
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(**) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing extension GLX
record: RECORD extension enabled at configure time.
record: This extension is known to be broken, disabling extension now..
record: http://bugs.freedesktop.org/show_bug.cgi?id=20500
(II) config/hal: Adding input device Macintosh mouse button emulation
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
    compiled for 1.7.0.901, module version = 2.3.0
    Module class: X.Org XInput Driver
    ABI class: X.Org XInput driver, version 7.0
(**) Macintosh mouse button emulation: always reports core events
(**) Macintosh mouse button emulation: Device: "/dev/input/event0"
(II) Macintosh mouse button emulation: Found 3 mouse buttons
(II) Macintosh mouse button emulation: Found relative axes
(II) Macintosh mouse button emulation: Found x and y relative axes
(II) Macintosh mouse button emulation: Configuring as mouse
(**) Macintosh mouse button emulation: YAxisMapping: buttons 4 and 5
(**) Macintosh mouse button emulation: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE)
(**) Macintosh mouse button emulation: (accel) keeping acceleration scheme 1
(**) Macintosh mouse button emulation: (accel) acceleration profile 0
(II) Macintosh mouse button emulation: initialized for relative axes.
(II) config/hal: Adding input device G15 GamePanel LCD
(**) G15 GamePanel LCD: always reports core events
(**) G15 GamePanel LCD: Device: "/dev/input/event8"
(II) G15 GamePanel LCD: Found keys
(II) G15 GamePanel LCD: Configuring as keyboard
(II) XINPUT: Adding extended input device "G15 GamePanel LCD" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) config/hal: Adding input device G15 Gaming Keyboard
(**) G15 Gaming Keyboard: always reports core events
(**) G15 Gaming Keyboard: Device: "/dev/input/event7"
(II) G15 Gaming Keyboard: Found keys
(II) G15 Gaming Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "G15 Gaming Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) config/hal: Adding input device G15 Gaming Keyboard
(**) G15 Gaming Keyboard: always reports core events
(**) G15 Gaming Keyboard: Device: "/dev/input/event6"
(II) G15 Gaming Keyboard: Found keys
(II) G15 Gaming Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "G15 Gaming Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) config/hal: Adding input device Razer DeathAdder
(**) Razer DeathAdder: always reports core events
(**) Razer DeathAdder: Device: "/dev/input/event5"
(II) Razer DeathAdder: Found 12 mouse buttons
(II) Razer DeathAdder: Found scroll wheel(s)
(II) Razer DeathAdder: Found relative axes
(II) Razer DeathAdder: Found x and y relative axes
(II) Razer DeathAdder: Configuring as mouse
(**) Razer DeathAdder: YAxisMapping: buttons 4 and 5
(**) Razer DeathAdder: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Razer DeathAdder" (type: MOUSE)
(**) Razer DeathAdder: (accel) keeping acceleration scheme 1
(**) Razer DeathAdder: (accel) acceleration profile 0
(II) Razer DeathAdder: initialized for relative axes.
(II) config/hal: Adding input device Power Button
(**) Power Button: always reports core events
(**) Power Button: Device: "/dev/input/event3"
(II) Power Button: Found keys
(II) Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) config/hal: Adding input device Power Button
(**) Power Button: always reports core events
(**) Power Button: Device: "/dev/input/event2"
(II) Power Button: Found keys
(II) Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"

Offline

#5 2009-11-20 19:53:54

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Cant use startx with non root user[SOLVED]

What is the content of your .xinitrc file? What you are describing is consistent with an empty one.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#6 2009-11-20 20:11:02

cavveman
Member
Registered: 2009-11-20
Posts: 7

Re: Cant use startx with non root user[SOLVED]

I guess it's this one
Is there something wrong there?
I've read something about .Xauthority, is that the problem for me perhaps.

And thanks btw for helping.

#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
setxkbmap se
exec startkde

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs



twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

Offline

#7 2009-11-20 20:23:18

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Cant use startx with non root user[SOLVED]

cavveman wrote:

I guess it's this one
Is there something wrong there?
I've read something about .Xauthority, is that the problem for me perhaps.

And thanks btw for helping.

Is it is a mess tongue. You start to DE and after start a other WM probability this is not what you like to do. Start with a simple .xinitrc something like

#!/bin/sh
exec xterm

And see if xterm open. After this change it for "startkde" or what you like.

Last edited by kazuo (2009-11-20 20:23:47)

Offline

#8 2009-11-20 20:38:08

cavveman
Member
Registered: 2009-11-20
Posts: 7

Re: Cant use startx with non root user[SOLVED]

ok, the xinitrc file is smaller now, but i still could not use startx for the non root user.
And i had absolutely no idea that i could delete almost everything in the xinitrc file. Although I keep a backup file just in case.
Thanks for the tip.

Offline

#9 2009-11-20 20:51:01

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Cant use startx with non root user[SOLVED]

Is .xinitrc in your user's homedir or root's?  It should contain something like:

exec startkde


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#10 2009-11-20 21:10:10

cavveman
Member
Registered: 2009-11-20
Posts: 7

Re: Cant use startx with non root user[SOLVED]

loafer, that was the problem. had no idea there was a .xinitrc file in my users Home folder.
It was hidden though, thats why i could not find it first.

thanks everybody smile
i guess its solved now smile

Offline

Board footer

Powered by FluxBB