Find the answer to your Linux question:
Results 1 to 7 of 7
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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2012
    Posts
    3

    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
    Location
    Kentucky
    Posts
    5,023
    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:
    Code:
    mv xinit~ xinit
    Jay

    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
    Location
    Fairfax, Virginia, USA
    Posts
    94
    Hi, If you are using RedHat or Fedora style Linux, you can reinstall it. For Fedora, the command would look something like this:
    Code:
    [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
    ================================================================================
    Reinstalling:
     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. #4
    Just Joined!
    Join Date
    Dec 2011
    Posts
    35
    rename the automatically created "xinit~" as "xinit" using following command

    mv xinit~ xinit

  5. #5
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    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)

  6. #6
    Just Joined!
    Join Date
    Jan 2012
    Posts
    3
    Hello Team

    I am using backtrack 5 R1

    I Have a version from Debian

    Code:
    root@bt:/usr/local/bin# dpkg -l xinit
    Desired=Unknown/Install/Remove/Purge/Hold
    | 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#
    Code:
    root@bt:/usr/local/bin# dpkg -p xinit
    Package: xinit
    Priority: optional
    Section: x11
    Installed-Size: 124
    Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
    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 <debian-x@lists.debian.org>
    root@bt:/usr/local/bin#
    The surest way to solve this problem is resintall bynary file, however when i search in debian.org, appears a version different to me:

    1.2.0-2

    packages.debian.org/squeeze/xinit]Debian -- Details of package xinit in squeeze[/url]

    packages.debian.org/squeeze/i386/xinit/download]Debian -- Package Download Selection -- xinit_1.2.0-2_i386.deb[/url]

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

    However works typing xinit, however startx doesn't work

  7. #7
    Just Joined!
    Join Date
    Jan 2012
    Posts
    3
    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
  •