LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't startx (https://www.linuxquestions.org/questions/slackware-14/cant-startx-619498/)

Rollo69 02-07-2008 10:26 PM

Can't startx
 
I was following this post to try to update my Xorg to 7.0 from 6.8.2 and now I can't startx as root or user.
Code:

-bash: startx: command not found
Everything compiled/installed without any problems/issues/missing files. I did change 1 part of the instructions. The line #23 says
Quote:

lndir /etc/X11 #This will symlink any missing files back to the original files.
But I was unable to get lndir to work so I did the following command instead
Code:

ln -s /etc/X11
All links look good and the command
Quote:

chmod u+s /usr/X11R7/bin/Xorg #Must SUID the Xorg file for it to work properly.
shows
Code:

-rwsr-xr-x  1 root root 18488998 2008-02-06 10:07 /usr/X11R7/bin/Xorg*
I located startx
Code:

/usr/bin/startxfce4
/usr/X11R7/bin/startx
/usr/X11R7/lib/X11/doc/html/startx.1.html
/usr/X11R7/man/man1/startx.1x
/usr/X11R7/man/man1/startx.1x.gz
/usr/everything/xinit-X11R7.0-1.0.1/startx.cmd
/usr/everything/xinit-X11R7.0-1.0.1/startx.cpp
/usr/everything/xinit-X11R7.0-1.0.1/startx.man
/usr/everything/xinit-X11R7.0-1.0.1/startx
/usr/everything/xinit-X11R7.0-1.0.1/startx.1x
/usr/everything/xorg-server-X11R7.0-1.0.1/hw/xfree86/utils/xorgcfg/.deps/xorgcfg-startx.Po
/usr/everything/xorg-server-X11R7.0-1.0.1/hw/xfree86/utils/xorgcfg/xorgcfg-startx.o
/usr/everything/xorg-server-X11R7.0-1.0.1/hw/xfree86/utils/xorgcfg/startx.c

Code:

ls -l /usr/X11R7/bin/startx
-rwxr-xr-x  1 root root 4212 2008-02-06 09:51 /usr/X11R7/bin/startx*

The everything directory is were I put the tarballs to compile/install.

More info in next post.

Rollo69 02-07-2008 10:30 PM

Can't startx
 
Here is my Xorg.0.log
[CODE]
Code:

X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.13 i686 [ELF]
Current Operating System: Linux Heavnersnetwork 2.6.22.2 #2 SMP Wed Aug 15 20:23:52 EDT 2007 i686
Build Date: 11 September 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
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: Wed Feb  6 03:48:08 2008
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |  |-->Monitor "Monitor0"
(**) |  |-->Device "Card0"
(**) |-->Input Device "Intellimouse"
(**) |-->Input Device "Keyboard0"
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(**) ModulePath set to "/usr/X11R6/lib/modules"
(WW) Open APM failed (/dev/apm_bios) (No such device)
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.2
        X.Org Video Driver: 0.7
        X.Org XInput driver : 0.4
        X.Org Server Extension : 0.2
        X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org Font Renderer
        ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Video Driver, version 0.7
(--) using VT number 7


(II) LoadModule: "record"
(II) Loading /usr/X11R6/lib/modules/extensions/librecord.a
(II) Module record: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.13.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 0.2
(II) Loading extension RECORD
(II) LoadModule: "extmod"
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 0.2
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 0.2
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.2
(II) Loading extension XFree86-DRI
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.2
(II) Loading extension GLX
(II) LoadModule: "xtrap"
(II) Loading /usr/X11R6/lib/modules/extensions/libxtrap.a
(II) Module xtrap: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 0.2
(II) Loading extension DEC-XTRAP
(II) LoadModule: "freetype"
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
        compiled for 6.8.2, module version = 2.1.0
        Module class: X.Org Font Renderer
        ABI class: X.Org Font Renderer, version 0.4
(II) Loading font FreeType
(II) LoadModule: "type1"
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Module type1: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.2
        Module class: X.Org Font Renderer
        ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Type1
(II) Loading font CID
(II) LoadModule: "vesa"
(II) Loading /usr/X11R6/lib/modules/drivers/vesa_drv.o
(II) Module vesa: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 0.7
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 0.4
(II) LoadModule: "kbd"
(II) Loading /usr/X11R6/lib/modules/input/kbd_drv.o
(II) Module kbd: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 0.4
(II) VESA: driver for VESA chipsets: vesa
(II) Primary Device is: PCI 01:00:0
(--) Chipset vesa found

(II) Setting vga for screen 0.
(II) Loading sub module "vbe"
(II) LoadModule: "vbe"
(II) Loading /usr/X11R6/lib/modules/libvbe.a
(II) Module vbe: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.1.0
        ABI class: X.Org Video Driver, version 0.7
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Loading /usr/X11R6/lib/modules/linux/libint10.a
(II) Module int10: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Video Driver, version 0.7
(II) VESA(0): initializing int10
(II) VESA(0): Primary V_BIOS segment is: 0xc000
(II) VESA(0): VESA BIOS detected
(II) VESA(0): VESA VBE Version 3.0
(II) VESA(0): VESA VBE Total Mem: 131072 kB
(II) VESA(0): VESA VBE OEM: VIA K8M890CE

(II) VESA(0): VESA VBE OEM Software Rev: 1.0
(II) VESA(0): VESA VBE OEM Vendor:
(II) VESA(0): VESA VBE OEM Product:
(II) VESA(0): VESA VBE OEM Product Rev:
(**) VESA(0): Depth 24, (--) framebuffer bpp 32
(==) VESA(0): RGB weight 888
(==) VESA(0): Default visual is TrueColor
(==) VESA(0): Using gamma correction (1.0, 1.0, 1.0)
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Video Driver, version 0.7
(II) VESA(0): VESA VBE DDC supported
(II) VESA(0): VESA VBE DDC Level 2
(II) VESA(0): VESA VBE DDC transfer in appr. 1 sec.
(II) VESA(0): VESA VBE DDC read successfully
(II) VESA(0): Manufacturer: NEC  Model: 61ab  Serial#: 16843009
(II) VESA(0): Year: 2000  Week: 12
(II) VESA(0): EDID Version: 1.2
(II) VESA(0): Analog Display Input,  Input Voltage Level: 0.700/0.300 V
(II) VESA(0): Sync:  Separate  Composite
(II) VESA(0): Max H-Image Size [cm]: horiz.: 41  vert.: 31
(II) VESA(0): Gamma: 2.20
(II) VESA(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
(II) VESA(0): First detailed timing is preferred mode
(II) VESA(0): GTF timings supported
(II) VESA(0): redX: 0.625 redY: 0.338  greenX: 0.281 greenY: 0.602
(II) VESA(0): blueX: 0.149 blueY: 0.073  whiteX: 0.283 whiteY: 0.297
(II) VESA(0): Supported VESA Video Modes:
(II) VESA(0): 720x400@70Hz
(II) VESA(0): 720x400@88Hz
(II) VESA(0): 640x480@60Hz
(II) VESA(0): 640x480@67Hz
(II) VESA(0): 640x480@72Hz
(II) VESA(0): 640x480@75Hz
(II) VESA(0): 800x600@56Hz
(II) VESA(0): 800x600@60Hz
(II) VESA(0): 800x600@72Hz
(II) VESA(0): 800x600@75Hz
(II) VESA(0): 832x624@75Hz
(II) VESA(0): 1024x768@87Hz (interlaced)
(II) VESA(0): 1024x768@60Hz
(II) VESA(0): 1024x768@70Hz
(II) VESA(0): 1024x768@75Hz
(II) VESA(0): 1280x1024@75Hz
(II) VESA(0): 1152x870@75Hz
(II) VESA(0): Manufacturer's mask: 0
(II) VESA(0): Supported Future Video Modes:
(II) VESA(0): #0: hsize: 640  vsize 480  refresh: 85  vid: 22833
(II) VESA(0): #1: hsize: 800  vsize 600  refresh: 85  vid: 22853
(II) VESA(0): #2: hsize: 1024  vsize 768  refresh: 85  vid: 22881
(II) VESA(0): #3: hsize: 1152  vsize 864  refresh: 75  vid: 20337
(II) VESA(0): #4: hsize: 1280  vsize 960  refresh: 85  vid: 22913
(II) VESA(0): #5: hsize: 1280  vsize 1024  refresh: 85  vid: 39297
(II) VESA(0): #6: hsize: 1600  vsize 1200  refresh: 85  vid: 22953
(II) VESA(0): #7: hsize: 1920  vsize 1440  refresh: 70  vid: 19153
(II) VESA(0): Supported additional Video Mode:
(II) VESA(0): clock: 229.5 MHz  Image Size:  396 x 297 mm
(II) VESA(0): h_active: 1600  h_sync: 1664  h_sync_end 1856 h_blank_end 2160 h_border: 0
(II) VESA(0): v_active: 1200  v_sync: 1201  v_sync_end 1204 v_blanking: 1250 v_border: 0
(II) VESA(0): Ranges: V min: 55  V max: 160 Hz, H min: 31  H max: 110 kHz, PixClock max 290 MHz
(II) VESA(0): Monitor name: NEC FE1250
(II) VESA(0): Serial No: 0315796RA
(II) VESA(0): Searching for matching VESA mode(s):


(II) VESA(0): Total Memory: 2048 64KB banks (131072kB)
(II) VESA(0): Monitor0: Using default hsync range of 31.00-110.00 kHz
(II) VESA(0): Monitor0: Using default vrefresh range of 55.00-160.00 Hz
(II) VESA(0): Not using built-in mode "2048x1536" (width too large for virtual size)
(II) VESA(0): Not using built-in mode "1920x1440" (width too large for virtual size)
(II) VESA(0): Not using built-in mode "1600x1200" (width too large for virtual size)
(--) VESA(0): Virtual size is 1280x1024 (pitch 1280)
(**) VESA(0): *Built-in mode "1280x1024"
(**) VESA(0): *Built-in mode "1024x768"
(**) VESA(0): *Built-in mode "800x600"
(**) VESA(0):  Built-in mode "640x480"
(--) VESA(0): Display dimensions: (410, 310) mm
(--) VESA(0): DPI set to (79, 83)
(II) VESA(0): Attempting to use 85Hz refresh for mode "1280x1024" (11b)
(II) VESA(0): Attempting to use 85Hz refresh for mode "1024x768" (118)
(II) VESA(0): Attempting to use 85Hz refresh for mode "800x600" (115)
(II) VESA(0): Attempting to use 85Hz refresh for mode "640x480" (112)
(**) VESA(0): Using "Shadow Framebuffer"
(II) Loading sub module "shadow"
(II) LoadModule: "shadow"
(II) Loading /usr/X11R6/lib/modules/libshadow.a
(II) Module shadow: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.a
(II) Module fb: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.2
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
        [0] -1        0        0xffe00000 - 0xffffffff (0x200000) MX[B](B)
        [1] -1        0        0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
        [2] -1        0        0x000f0000 - 0x000fffff (0x10000) MX[B]
        [3] -1        0        0x000c0000 - 0x000effff (0x30000) MX[B]
        [4] -1        0        0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [5] -1        0        0xbfffc000 - 0xbfffffff (0x4000) MX[B]
        [6] -1        0        0xdfffe000 - 0xdfffe0ff (0x100) MX[B]
        [7] -1        0        0xdffff000 - 0xdffff0ff (0x100) MX[B]
        [8] -1        0        0xd0000000 - 0xcfffffff (0x0) MX[B]O
        [9] -1        0        0xdd000000 - 0xddffffff (0x1000000) MX[B](B)
        [10] -1        0        0xc0000000 - 0xcfffffff (0x10000000) MX[B](B)
        [11] 0        0        0x000a0000 - 0x000affff (0x10000) MS[B]
        [12] 0        0        0x000b0000 - 0x000b7fff (0x8000) MS[B]
        [13] 0        0        0x000b8000 - 0x000bffff (0x8000) MS[B]
        [14] -1        0        0x0000ffff - 0x0000ffff (0x1) IX[B]
        [15] -1        0        0x00000000 - 0x000000ff (0x100) IX[B]
        [16] -1        0        0x0000f800 - 0x0000f8ff (0x100) IX[B]
        [17] -1        0        0x0000fb00 - 0x0000fb1f (0x20) IX[B]
        [18] -1        0        0x0000fc00 - 0x0000fc1f (0x20) IX[B]
        [19] -1        0        0x0000fd00 - 0x0000fd1f (0x20) IX[B]
        [20] -1        0        0x0000fe00 - 0x0000fe1f (0x20) IX[B]
        [21] -1        0        0x0000ff00 - 0x0000ff0f (0x10) IX[B]
        [22] 0        0        0x000003b0 - 0x000003bb (0xc) IS[B]
        [23] 0        0        0x000003c0 - 0x000003df (0x20) IS[B]
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Reloading /usr/X11R6/lib/modules/linux/libint10.a
(II) VESA(0): initializing int10
(II) VESA(0): Primary V_BIOS segment is: 0xc000
(II) VESA(0): VESA BIOS detected
(II) VESA(0): VESA VBE Version 3.0
(II) VESA(0): VESA VBE Total Mem: 131072 kB
(II) VESA(0): VESA VBE OEM: VIA K8M890CE

(II) VESA(0): VESA VBE OEM Software Rev: 1.0
(II) VESA(0): VESA VBE OEM Vendor:
(II) VESA(0): VESA VBE OEM Product:
(II) VESA(0): VESA VBE OEM Product Rev:
(==) VESA(0): Write-combining range (0xc0000000,0x8000000)
(II) VESA(0): virtual address = 0xafc30000,
        physical address = 0xc0000000, size = 134217728
(II) VESA(0): VBESetVBEMode failed...Tried again without customized values.
(==) VESA(0): Default visual is TrueColor
(==) VESA(0): Backing store disabled
(==) RandR enabled
(II) Setting vga for screen 0.
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension XFree86-Bigfont
(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 built-in extension XEVIE
(**) Option "Protocol" "IMPS/2"
(**) Intellimouse: Device: "/dev/mouse"
(**) Intellimouse: Protocol: "IMPS/2"
(**) Option "CorePointer"
(**) Intellimouse: Core Pointer
(**) Option "Device" "/dev/mouse"
(**) Option "Buttons" "5"
(==) Intellimouse: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Intellimouse: ZAxisMapping: buttons 4 and 5
(**) Intellimouse: Buttons: 5
(**) Option "CoreKeyboard"
(**) Keyboard0: Core Keyboard
(**) Option "Protocol" "standard"
(**) Keyboard0: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) Keyboard0: XkbRules: "xorg"
(**) Option "XkbModel" "pc105"
(**) Keyboard0: XkbModel: "pc105"
(**) Option "XkbLayout" "us"
(**) Keyboard0: XkbLayout: "us"
(**) Option "CustomKeycodes" "off"
(**) Keyboard0: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "Intellimouse" (type: MOUSE)
(II) Intellimouse: ps2EnableDataReporting: succeeded
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
SetClientVersion: 0 8
_XSERVTransSocketINETGetPeerAddr: getpeername() failed: 107
_XSERVTransSocketINETAccept: ...SocketINETGetPeerAddr() failed:
(II) 3rd Button detected: disabling emulate3Button

Had to shorten log file but if there is any other info needed please let me know.

Thanks for the help!!

dracolich 02-08-2008 09:31 AM

After locating startx have you tried running it with the full path?
Code:

user@hostname $ /usr/X11R7/bin/startx
I also see you have a /usr/bin/startxfce4. Does that one work? For startx you may just need to add /usr/X11R7/bin to your path, but startxfce4 should work.

Rollo69 02-08-2008 03:02 PM

cant startx
 
Thanks for you help Dracolich.
Quote:

Today 10:31 AM dracolich
After locating startx have you tried running it with the full path?
Code:

user@hostname $ /usr/X11R7/bin/startx

I tried the command but errors:
Code:

bigdawg@heavnersnetwork:$ /usr/X11R7/bin/startx
/usr/X11R7/bin/startx: line 132: xauth: command not found
/usr/X11R7/bin/startx: line 142: xauth: command not found
/usr/X11R7/bin/startx: line 144: xauth: command not found
/usr/X11R7/bin/startx: line 142: xauth: command not found
/usr/X11R7/bin/startx: line 144: xauth: command not found
/usr/X11R7/bin/startx: line 155: xauth: command not found
/usr/X11R7/bin/startx: line 159: xauth: command not found

Quote:

Today 10:31 AM dracolich
I also see you have a /usr/bin/startxfce4. Does that one work?
I tried that as well:
Code:

bigdawg@heavnersnetwork:$ /usr/bin/startxfce4
/usr/bin/startxfce4: Starting X server
/usr/bin/startxfce4: line 45: exec: xinit: not found

Quote:

Today 10:31 AM dracolich
For startx you may just need to add /usr/X11R7/bin to your path, but startxfce4 should work.
What path do I need to add /usr/X11R7/bin to??

Thanks

gnashley 02-08-2008 03:10 PM

You need to add /usr/X11R7/bin to your user path -preferably permanently by putting it in you .bashrc or something.
Meanwhile you should be able to test things by running X like this:
PATH=/usr/X11R7/bin:$PATH ; startx

Rollo69 02-08-2008 03:31 PM

Xorg update issue
 
Quote:

Originally Posted by gnashley (Post 3050744)
You need to add /usr/X11R7/bin to your user path -preferably permanently by putting it in you .bashrc or something.
Meanwhile you should be able to test things by running X like this:
PATH=/usr/X11R7/bin:$PATH ; startx

When I tested x with
Code:

PATH=/usr/X11R7/bin:$PATH ; startx
I got this
Code:

xauth: error while loading shared libraries: libXau.so.6: cannot open shared object file: No such file or directory
xauth: error while loading shared libraries: libXau.so.6: cannot open shared object file: No such file or directory
xauth: error while loading shared libraries: libXau.so.6: cannot open shared object file: No such file or directory
xauth: error while loading shared libraries: libXau.so.6: cannot open shared object file: No such file or directory
xauth: error while loading shared libraries: libXau.so.6: cannot open shared object file: No such file or directory
xauth: error while loading shared libraries: libXau.so.6: cannot open shared object file: No such file or directory
xinit: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
xauth: error while loading shared libraries: libXau.so.6: cannot open shared object file: No such file or directory

I can't locate/find a .bashrc file. And I don't understand how to add /usr/X11/bin to my user path.

Thanks for you patience and help!!

onebuck 02-08-2008 06:13 PM

Hi,
Quote:

Originally Posted by Rollo69 (Post 3050764)
<snip>

I can't locate/find a .bashrc file. And I don't understand how to add /usr/X11/bin to my user path.

Thanks for you patience and help!!

Did you do a 'ls -al /home/username' (replace username with the your user). The '.bashrc' would be hidden if you created one. Don't forget your '.bash_profile'.

Code:

sample .bashrc;

#.bashrc
#08-30-06 12:20 gws copied loki:/root
#
#06-27-07 13:06 gws added from odin for willi
#
#06-27-07 13:14 gws added from oden:root to /home/gws/.bashrc

# Add bin to path

export PATH="$PATH:/sbin:/usr/sbin:$HOME/bin"

#export PATH="$PATH:$HOME/bin"

# Dynamic resizing
shopt -s checkwinsize

# Custom prompt
#PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

#08-29-06 11:40 gws

if [ `id -un` = root ]; then
  PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] '
 else
  PS1='\[\033[1;32m\]\h:\w\$\[\033[0m\] '
fi

#
# Add color
eval `dircolors -b`

# User defined aliases
alias cls='clear'
alias clls='clear; ls'
alias ll='ls -l'
alias lsa='ls -A'
alias lsg='ls | grep'
alias lsp='ls -1 /var/log/packages/ > package-list'
alias na='nano'
alias web='links -g -download-dir ~/ www.google.com'

#08-29-06 11:50 gws

#To clean up and cover your tracks once you log off
#Depending on your version of BASH, you might have to use
# the other form of this command
  trap "rm -f ~$LOGNAME/.bash_history" 0

#The older KSH-style form
#  trap 0 rm -f ~$LOGNAME/.bash_history

Code:

sample .basah_profile;

# .bash_profile
#08-30-06 12:21 gws copied loki:/root
#06-27-07 13:10 gws copied from odin:root for willi
#06-27-07 13:17 gws copied from odin:root for /home/gws
#
# Source .bashrc
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi


jong357 02-08-2008 07:13 PM

Looks like you need to add /usr/X11R7/lib to /etc/ld.so.conf and then run 'ldconfig'...

Modular X was pretty fresh back when that post was first created but putting it in X11R7 was a pretty bad idea IMO. It had already been decided for quite some time at that point that /usr would be the defacto for modular X...

Your system isn't aware of all these not standard locations so it can't find anything.

Also, something major as the X window system, you should be making your new PATH global. Append to your PATH in /etc/profile, otherwise you have to do all this stuff for all users.

Rollo69 02-09-2008 09:49 AM

Quote:

Originally Posted by onebuck (Post 3050894)
Hi,


Did you do a 'ls -al /home/username' (replace username with the your user). The '.bashrc' would be hidden if you created one. Don't forget your '.bash_profile'.

When I did the ls -al /home/bigdawg I didn't have a .bashrc or a .bash_profile. The only thing close was
Code:

-rw-------    1 bigdawg users  6156 2008-2-07 10:22 .bash_history
Quote:

Yesterday 08:13 PM jong357
Looks like you need to add /usr/X11R7/lib to /etc/ld.so.conf and then run 'ldconfig'..
I added /usr/X11R7/lib to my ld.so.conf file then ldconfig and startx came up with errors. I tried commenting out the /usr/X11R6/lib path in ld.so.conf and tried startx but with the same errors. Here is my Xorg.0.log
Quote:

X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.22.2 i686
Current Operating System: Linux Heavnersnetwork 2.6.22.2 #2 SMP Wed Aug 15 20:23:52 EDT 2007 i686
Build Date: 06 February 2008
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/usr/X11R7/var/log/Xorg.0.log", Time: Fri Feb 8 22:26:34 2008
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) | |-->Monitor "Monitor0"
(**) | |-->Device "Card0"
(**) |-->Input Device "Intellimouse"
(**) |-->Input Device "Keyboard0"
(WW) The directory "/usr/X11R6/lib/X11/fonts/misc/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/TTF/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/Type1/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/CID/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/75dpi/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/100dpi/" does not exist.
Entry deleted from font path.
(WW) FontPath is completely invalid. Using compiled-in default.
(==) FontPath set to "/usr/X11R7/lib/X11/fonts/misc/,/usr/X11R7/lib/X11/fonts/TTF/,/usr/X11R7/lib/X11/fonts/OTF,/usr/X11R7/lib/X11/fonts/Type1/,/usr/X11R7/lib/X11/fonts/CID/,/usr/X11R7/lib/X11/fonts/100dpi/,/usr/X11R7/lib/X11/fonts/75dpi/"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(**) ModulePath set to "/usr/X11R6/lib/modules"
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.2
X.Org Video Driver: 0.8
X.Org XInput driver : 0.5
X.Org Server Extension : 0.2
X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(WW) Warning, couldn't open module bitmap
(II) UnloadModule: "bitmap"
(EE) Failed to load module "bitmap" (module does not exist, 0)
(II) LoadModule: "pcidata"
(WW) Warning, couldn't open module pcidata
(II) UnloadModule: "pcidata"
(EE) Failed to load module "pcidata" (module does not exist, 0)

Fatal server error:
Unable to load required base modules, Exiting...

(WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
(WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
Quote:

Yesterday 08:13 PM jong357
Also, something major as the X window system, you should be making your new PATH global. Append to your PATH in /etc/profile, otherwise you have to do all this stuff for all users.
How would I make my new PATH global in /etc/profile?? Would I add the /usr/X11R7/bin to the default system $PATH?? It has /usrX11R6/bin now.

Thanks

jong357 02-09-2008 02:37 PM

Quote:

Originally Posted by Rollo69 (Post 3051507)
I added /usr/X11R7/lib to my ld.so.conf file then ldconfig and startx came up with errors.

They are new errors and your almost there.

Quote:

I tried commenting out the /usr/X11R6/lib path in ld.so.conf and tried startx but with the same errors.
Doesn't matter. Just make sure /usr/X11R7/lib stays in there.

Quote:

How would I make my new PATH global in /etc/profile?? Would I add the /usr/X11R7/bin to the default system $PATH?? It has /usrX11R6/bin now.
Yep. You got it. Forget about ~/.bashrc and ~/.bash_profile. They don't come with Slackware which is why I suggested /etc/profile. If you only run as one user all the time and no one else uses the box then sure, you could do that. But, as I mentioned, with something as basic as the X window system, you want it to be able to work at all times for all users.

Your new startx errors are complaining about your old xorg.conf file. You have stale paths relating to /usr/X11R6 that are no longer valid since all your stuff in now in /usr/X11R7...

After you get your /etc/xorg.conf file in order, X "should" just start with no further errors. It looks like it's not finding your modules for X. Your going to have to symlink the hell out of stuff in order for everything to work. It's even using a bogus log dir... BAD idea with /usr/X11R7.. You can make it work if you keep tinkering and symlink here and there. You are almost there tho by the looks of it.

BCarey 02-09-2008 04:47 PM

Quote:

Originally Posted by jong357 (Post 3051726)
Forget about ~/.bashrc and ~/.bash_profile. They don't come with Slackware which is why I suggested /etc/profile.

Just to be clear, they are not automatically created in a new user's directory, but if the user creates the files they will "work" fine.

Brian

Rollo69 02-09-2008 10:44 PM

startx issues
 
Quote:

Originally Posted by jong357 (Post 3051726)
Yep. You got it. Forget about ~/.bashrc and ~/.bash_profile. They don't come with Slackware which is why I suggested /etc/profile. If you only run as one user all the time and no one else uses the box then sure, you could do that. But, as I mentioned, with something as basic as the X window system, you want it to be able to work at all times for all users.

Your new startx errors are complaining about your old xorg.conf file. You have stale paths relating to /usr/X11R6 that are no longer valid since all your stuff in now in /usr/X11R7...

After you get your /etc/xorg.conf file in order, X "should" just start with no further errors. It looks like it's not finding your modules for X. You can make it work if you keep tinkering and symlink here and there. You are almost there tho by the looks of it.

Alright, I've made it a little farther now. I went in and changed my xorg.conf file. It had X11R6 in the path(s) for fonts so I changed to X11R7 as shown below.
Code:

Section "Files"
        RgbPath      "/usr/X11R7/lib/X11/rgb"
        ModulePath  "/usr/X11R7/lib/modules"
        FontPath    "/usr/X11R7/lib/X11/fonts/misc/"
        FontPath    "/usr/X11R7/lib/X11/fonts/TTF/"
        FontPath    "/usr/X11R7/lib/X11/fonts/Type1/"
        FontPath    "/usr/X11R7/lib/X11/fonts/CID/"
        FontPath    "/usr/X11R7/lib/X11/fonts/75dpi/"
        FontPath    "/usr/X11R7/lib/X11/fonts/100dpi/"
EndSection

Now startx works, Yahooooo! BUT I can't read the fonts. It only shows squares [] where my fonts should be. It also took about 30secs to a minute to shutdown out of xwindows. Any suggestions for/about this??

Thanks for the help!!

edit: Not sure if this matters but there isn't a "/usr/X11R7/lib/X11/rgb/"

jong357 02-10-2008 12:06 AM

Try this:

Code:

fc-cache -f
updatedb
locate rgb.txt

My rgb.txt is in /usr/share/X11/rgb.txt
so in xorg.conf I have
RgbPath "/usr/share/X11/rgb"

Rollo69 02-11-2008 05:13 PM

Thanks for the help jong but even my old xorg.conf file shows RgbPath "/usr/X11R6/lib/X11/rgb". Also I lost permission to use locate/slocate, why?? I looked for /usr/share/X11 and I don't have that directory. What are the permissions and owner for your rgb.txt??
Code:

-r--r--r--  1 root root 17371 2005-09-12 01:56 rgb.txt

jong357 02-11-2008 05:52 PM

do a "chmod 644 rgb.txt"

Looks like you found it, no? Change the path in your xorg.conf


All times are GMT -5. The time now is 12:17 PM.