Find the answer to your Linux question:
Results 1 to 7 of 7
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    i can't run startx in my pc

    Hello Team

    Let me tell you that i have a issue with startx command. I have modified a file called xinit (/usr/bin), now its impossible to log in to fluxbox. Appears a message :

    /usr/bin/startx :line 195: 1756 Segmentation fault xinit "$client" $clientargs --"$server" $display $serverargs.

    Please i need some help to resolve this issue or any recommendation, i'll be very happy

    P.D How must I Build up a new xinit file or replace it?
    Kind regardS

  2. #2
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Hello and Welcome!

    cd into usr/bin.
    Is there a file in there called xinit~? Many times in Linux, when you modify a file, the system will automatically create a copy of the original.
    If it's there, you might be able to solve the problem by moving the original back.
    As root:
    mv xinit~ xinit

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Fairfax, Virginia, USA
    Hi, If you are using RedHat or Fedora style Linux, you can reinstall it. For Fedora, the command would look something like this:
    [root@bmicek ~]# yum search xinit
    xorg-x11-xinit.x86_64 : X.Org X11 X Window System xinit startup scripts
    ConsoleKit-x11.x86_64 : X11-requiring add-ons for ConsoleKit
    xorg-x11-xinit-session.x86_64 : Display manager support for ~/.xsession and ~/.Xclients
    [root@bmicek ~]# yum reinstall xorg-x11-xinit
    Resolving Dependencies
    --> Running transaction check
    ---> Package xorg-x11-xinit.x86_64 0:1.0.9-18.fc14 set to be reinstalled
    --> Finished Dependency Resolution
    Dependencies Resolved
     Package               Arch          Version                Repository     Size
     xorg-x11-xinit        x86_64        1.0.9-18.fc14          fedora         43 k
    Transaction Summary
    Reinstall     1 Package(s)
    Total download size: 43 k
    Installed size: 71 k

  4. $spacer_open
  5. #4
    rename the automatically created "xinit~" as "xinit" using following command

    mv xinit~ xinit

  6. #5
    What Linux distro are you using? The surest way to fix it is to reinstall the package to which it belongs (as per Brian's suggestion)

  7. #6
    Hello Team

    I am using backtrack 5 R1

    I Have a version from Debian

    root@bt:/usr/local/bin# dpkg -l xinit
    | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name           Version        Description
    pi  xinit          1.2.0-1        X server initialisation tool
    root@bt:/usr/local/bin# dpkg -p xinit
    Package: xinit
    Priority: optional
    Section: x11
    Installed-Size: 124
    Maintainer: Ubuntu Developers <>
    Architecture: i386
    Version: 1.2.0-1
    Replaces: xbase-clients (<= 1:7.2.ds2-3)
    Depends: libc6 (>= 2.4), libx11-6, x11-common, xauth
    Recommends: xserver-xorg | xserver, xterm | x-session-manager | x-window-manager | x-terminal-emulator
    Size: 35772
    Description: X server initialisation tool
     xinit and startx are programs which facilitate starting an X server, and
     loading a base X session.
    Original-Maintainer: Debian X Strike Force <>
    The surest way to solve this problem is resintall bynary file, however when i search in, appears a version different to me:

    1.2.0-2]Debian -- Details of package xinit in squeeze[/url]]Debian -- Package Download Selection -- xinit_1.2.0-2_i386.deb[/url]

    Any suggestion? i reinstall this package binary in a virtual machine
    make install

    However works typing xinit, however startx doesn't work

  8. #7
    Hello Team

    let me tell you that i had to reinstall xinit and it works.

    i Have to solve the problem with backtrack 5 R1 updating and upgrading xinit file. To solve some issues with fluxbox i had to reinstall as well :apt-get install flux-for-back
    Afortunately now i can swith from gnome to fluxbox and vice-versa modifying .xinitrc

    Thanks a lot for your support

    Best Regards!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts