New answers tagged

2

Via the TTY You can enter the TTY by pressing ctrl+alt+f1 where you have to login with your user-name and your password. ctrl+alt+f7 will bring you back to your GUI later. Now copy the existing raw .bashrc from /etc/skel to your home directory by cp /etc/skel/.bashrc ~/ Maybe even bring the rest over if you're not sure if your .profile was changed too. ...


4

If you can't get a working shell Via the file browser Open the file browser, go to the home directory, press CtrlH so that hidden files are shown. Edit .bashrc as needed. Open the file browser, go to /etc/skel, press CtrlH so that hidden files are shown. Copy .bashrc to your home folder to restore it to the default. Via the run menu Press AltF2, type ...


0

Use this instead: PS1="\[\033[01;32m\]\u\[\033[0;37m\]@\[\033[01;37m\]\h:\[\033[01;34m\]\w \[\033[01;35m\]$ \[\033[0;37m\]" I'm afraid I don't really understand the details so I can't give you a complete answer as to why this is happening. I think this comes down to different terminal emulators having different formats for the ANSI escape sequences, but I'...


2

Probably your .bashrc or .profile is messedup. Your gedit will not start if it is not in path and since your path is empty it is not in the path. You should first establish a good enough path. export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin And then you should be able to start gedit. Alternativelly you could just run gedit with ...


1

I figured out that I was using zsh as my default shell. Problem was because of line 9th line from last in .zshrc file. # Base16 Shell BASE16_SHELL="$HOME/.config/base16-gnome-terminal/base16-default.dark.sh" [[ -s $BASE16_SHELL ]] && source $BASE16_SHELL I commented these lines and now it works fine.


0

Check if your ~/.profile script is okay. Per default ~/.bashrc should be loaded automatically by ~/.profile like this: # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi


0

Answering this in case someone runs into a similar problem The problem was with the lines export LD_LIBRARY_PATH=$LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/lib and export LD_LIBRARY_PATH=$LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/lib They should be export LD_LIBRARY_PATH=$LD_LIBRARY_PATH=$...



Top 50 recent answers are included