Find the answer to your Linux question:
Results 1 to 5 of 5
hi, I have a booting problem. Before that I downloaded an application program and I defined the PATH variable in .bashrc file in order to enable running that program. Unfortunately, ...
  1. #1
    Just Joined! cahcilik's Avatar
    Join Date
    Feb 2007
    Location
    yogyakarta, Indonesia
    Posts
    2

    Question booting failure in SUSE 10.0

    hi,

    I have a booting problem. Before that I downloaded an application program and I defined the PATH variable in .bashrc file in order to enable running that program. Unfortunately, it doesn't work, cause as I rebooted my computer the next day, it failed and I couldn't go into GUI, instead after login I was in a bash shell. When I typed any unix commands except ls, it failed to execute. just one example, I typed startx command then I got this failure notice:
    command not found

    I have tried severals unix commands but the shell gave the same failure notices. Even, when I gave exit commands, it brought me back to login. I could not shut down my computer.

    I do not know how to go into the system and to edit this .bashrc file from bash shell. so please help me.

    thanks a lot
    cahcilik

  2. #2
    Linux Engineer aliov's Avatar
    Join Date
    Dec 2006
    Location
    Geneva,Beirut
    Posts
    1,078

    booting failure in SUSE 10.0

    It's not a booting failure,but it's seems that some missing configuration happen during the installation of your application,so if you want to edit the .bashrc from the console type emacs,if gives you command not found so go to /usr/bin/ and run the binary (./emacs /home/{....}/.bashrc) and edit the file.
    you can find the binary related to you X GUI in /usr/X11R6/bin so you can go there and type ./startx to see and reply me about any news.

    hope this help

  3. #3
    Linux Engineer rong's Avatar
    Join Date
    Feb 2005
    Location
    California
    Posts
    803
    You say you can not get any commands to work except ls? Are you sure?

    Can you run cd ~ and then pwd to see if you are in your home directory?

    If yes, can you run vi which is an editor? If so vi .bashrc and remove or comment out (use # to comment out) the entries you put in there. If you are not familiar with vi run man vi for info on using vi.

    If you really can not run any of these commands (even as root) then it looks like your /bin directory has gotten messed up.
    registered Linux user #388382

    Have you checked here first?

  4. #4
    Just Joined! cahcilik's Avatar
    Join Date
    Feb 2007
    Location
    yogyakarta, Indonesia
    Posts
    2
    so if you want to edit the .bashrc from the console type emacs,if gives you command not found so go to /usr/bin/ and run the binary (./emacs /home/{....}/.bashrc) and edit the file.

    I have tried it but I got .bashrc as a blank file. it seems impossible since I never deleted it. BUt I guess I made mistake in defining the path where .bashrc file is stored. Or is it possibile that the path I had defined before erased the whole .bashrc file? where is .bashrc usually stored?

    you can find the binary related to you X GUI in /usr/X11R6/bin so you can go there and type ./startx to see and reply me about any news.

    I got this failure notice :
    You did not install any X-server\ (eg. X org\)! please install at least one server to start X.
    For me it is also impossible. Before this computer got wrong, I used startx command when I logged in in the command mode.
    I appreciate any comments and help on this.

    thanks a lot

  5. #5
    Linux Engineer aliov's Avatar
    Join Date
    Dec 2006
    Location
    Geneva,Beirut
    Posts
    1,078
    The .bashrc file sould be in your home directory
    /home/..../.bashrc so if emacs gives you a blanck screen for sure you are wrong with the path so in this case emacs open a new file called .bashrc
    about the X server instead of /usr/X11R6/bin go into /usr/bin ond type ls -l to see if the binary startx exist and try to run it.

    hope this help

Posting Permissions

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