Questions tagged [bashrc]

.bashrc is the Bash shell configuration file for a user's terminal login session.

153 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
837 views

Why are /root/.bashrc and /etc/skel/.bashrc different on a vanilla install?

I noticed on a new Ubuntu 16.04 install that my root user's .bashrc differed slightly in behavior from a new user I had just created on the same box. From what I can find, the root user's .bashrc ...
l8nite's user avatar
  • 151
3 votes
1 answer
247 views

Install software that uses a different shell

I would like to install cryoSPARC, and looking through the readme it looks like this program requires that the user use bash as their default shell. At the moment I'm using tcsh, and have built up a ....
Suzanne's user avatar
  • 31
3 votes
0 answers
2k views

Error parsing gtk-icon-sizes string: ' '

Sorry I am pretty new to Linux machine, Ubuntu and Command line. Here is what I did: I tried to install PhpStorm 2016.3.2 on Linux machine (Ubuntu) by downloading the .gz file from JetBrains site. I ...
Java's user avatar
  • 131
3 votes
0 answers
2k views

Why is neither /root/.bashrc nor /root/.profile executed after sudo -i?

I have export PATH="$PATH:/opt/local/bin" in /root/.bashrc and /root/.profile (nothing else in /root/.profile) and /bin/bash is the login shell for root in /etc/passwd. Yet invoking sudo -i (which ...
Kalle Richter's user avatar
3 votes
0 answers
556 views

After editing root .bashrc Unable to login even with tty1-6 and drop to prompt command from recovery mod

I have had the worse two weeks started with Ubuntu 12.04 , and updating to 14.04 had problem , just after a good luck of successfully installing brand new ubuntu 14.04 I now got the nightmare again ...
Abdo Ruzaqi's user avatar
3 votes
0 answers
2k views

Ubuntu got no .bash_login, .bash_profile

I'm new to Ubuntu and currently on it for assignment I need to run source ~/.bashrc at the first start of Ubuntu to enably my alias at the starting of the program. I've checked that I need to ...
Unknown's user avatar
  • 195
2 votes
2 answers
1k views

Ubuntu 20.04 not allowing `runuser` to manage systemd --user services "Failed to connect to bus: No such file or directory"

When I try to run runuser -l mruser -c "systemctl --user status myservice.service" as root, I get the following error: Failed to connect to bus: No such file or directory I do not get this ...
Dave's user avatar
  • 193
2 votes
1 answer
166 views

bash: `set +m` option does not work when placed in the .bashrc file

If I enter the command: set +m at the end of the .bashrc file, when I run the command: echo $- the option m is missing as it should be, but... If I enter the command: { sync & } 2> /dev/null ...
Mario Palumbo's user avatar
2 votes
0 answers
340 views

After update to 21.04 my alias in bashrc no longer works

I have appended this alias in my .bashrc file: alias libreoffice="flatpak run org.libreoffice.LibreOffice/x86_64/stable" Prior to the update (from Kubuntu 20.10 to Kubuntu 21.04) this alias ...
Bruni's user avatar
  • 10.5k
2 votes
0 answers
486 views

/bin/sh: 1: :/usr/local/cuda-11.0/bin/bin/nvcc: not found

when i used nvidia-smi i got the version of cuda is 11.0 but I checked the path /usr/local and found /cuda11.1 i got an error when I installed mmcv package /bin/sh: 1: :/usr/local/cuda-11.0/bin/bin/...
user3188912's user avatar
2 votes
1 answer
6k views

How to make an environment variable available for a python program using os.environ module?

I'm just new in this site and new to all the GNU/Linux environment, I'm trying to access to an environment variable from a python program that I wrote in PyCharm, I created it but I the the variable ...
ALDO FLORES AGUAYO's user avatar
2 votes
1 answer
377 views

Cannot run commands in bash terminal - argument list too long

Whenever I try to run "vim .bashrc" I get the error: "argument list too long" Most of the threads about this seem to be focused on commands like rm or mv... but I can't even open a ...
Bernadette's user avatar
2 votes
0 answers
505 views

Multiple source lines in .bashrc seem to override each other

I have two packages named pkg1 and pkg2. The pkg1 is part of a workspace labeled abc in /home/csbales while pkg2 is a part of a workspace labeled catkin_ws in /home/csbales. To source them and ROS, ...
CSBales's user avatar
  • 21
2 votes
0 answers
389 views

how to source bashrc from the eclipse terminal?

How do I configure eclipse so that I have access to bash complete with my aliases? I ran: [org.eclipse.Java ~]$ alias [org.eclipse.Java ~]$ source /home/thufir/.bashrc but that seems awkward. Also:...
Thufir's user avatar
  • 4,551
2 votes
1 answer
6k views

Ubuntu 20.04 LTS : Whatever I am installing using pip3, it is giving a warning saying, add /home/username/.local/bin to path

I am asking this question because I was facing the same issue and could not find a complete solution so here it is. Steps to follow : 1. Open Files app, go to home. 2. Open .bashrc file using text ...
Gopesh Khandelwal's user avatar
2 votes
0 answers
756 views

Can't Configure Bash-Shell to Run OpenFOAM (working enviroment)

I've Been trying to download and install OpenFOAM-v1806 for windows 10 using Ubuntu. I am currently using this guide to help me https://www.openfoam.com/download/install-windows-10.php and am stuck at ...
Arienzale06's user avatar
2 votes
1 answer
8k views

Setting path permanently for openmpi in ubuntu

Every new instance of terminal forces me to export openmpi path before using it. I tried setting the path permanently using echo export PATH="$PATH:/home/$USER/.openmpi/bin" >> /home/$USER/....
Rupjit Chakraborty's user avatar
2 votes
2 answers
3k views

bash: complete: filenames: invalid option name?

When I try to source my .bashrc file after updating it with new environment variables, I get the following message: "bash: complete: filenames: invalid option name". As I'm new to Ubuntu, I'm not ...
kps's user avatar
  • 21
2 votes
0 answers
617 views

vi tab completion works only in some directories

I have moved from Ubuntu 14.04 to 16.04 (new installation). On 14.04 I had no problems with tab completion. However on 16.04 I have problems especially with vi: In some directories (e.g. ~/ , /etc, /...
musbach's user avatar
  • 1,445
1 vote
0 answers
25 views

Reverse search fails when commands are present in bash_history

Ubuntu 22.04, from terminal I type ctrl+r and mosquitto_sub it finds mosquitto_sub --help and nothing else. But: # cat .bash_history | grep mosquitto_sub mosquitto_sub --help mosquitto_sub -t foo1/# -...
Mark's user avatar
  • 507
1 vote
0 answers
322 views

I'm trying to launch rplidar but I'm getting a timeout error

I've set up ROS noetic in my Raspberry Pi 4 B with Ubuntu 20.04. I want to make a map with my LiDAR, so I started by installing rplidar. However, when I run roslaunch rplidar_ros rplidar.launch (after ...
Flamethrower's user avatar
1 vote
0 answers
490 views

eval expression within shell script returns exit code 1

I am using ubuntu 18.04 to run a shell script, and the eval expression returns an exit code 1: #!/bin/bash set -e export DEBIAN_FRONTEND=noninteractive git clone https://github.com/asdf-vm/asdf.git ~...
soltex's user avatar
  • 111
1 vote
0 answers
41 views

How to write an override to prevent an application from launching?

I am looking for help to write a script or terminal command by which I can prevent an app from launching. Let us call this script .bash_ban for instance. Is it possible to write up a command in ....
Tatty Man's user avatar
  • 101
1 vote
0 answers
1k views

When I edit .bashrc in Ubuntu 20.04, it does not ask me to save anymore

I'm not sure what happened but when I sudo nano ~/.bashrc to add a couple of exports #spotify export SPOTIFY_CLIENT_ID='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' export SPOTIFY_CLIENT_SECRET='...
mLstudent33's user avatar
1 vote
2 answers
3k views

Update info - how to currently set Java_home?

I'am trying to get Maven running. I have installed JDK and Maven. Thus I have been trying to set the Java_home variable for three days now, I cannot get it working. I have followed the instructions of ...
Muske Yannick's user avatar
1 vote
0 answers
1k views

gedit: Unable to init server: Could not connect: Connection refused

I am trying to make use of the alias command to separate the ROS1 and ROS2. I have dual-booted Ubuntu on my MacAir machine and am using the docker container, which I have installed both the ROS1 and ...
Ji Hwan Park's user avatar
1 vote
0 answers
693 views

WSL how to reset and recover original configuration files

I tried to modify the color settings on the bash console in WSL Ubuntu. I have tried editing .bashrc and playing with the defaults and properties settings. I can no longer set the colors and so need ...
odbdux's user avatar
  • 11
1 vote
0 answers
204 views

Possible errors after removing python3.6 from Ubuntu 16.04

I have installed python3.6 in Ubuntu 16.04, but due to this my terminal was not opening so I fixed by removing python3.6. But I have run tons of commands in xterm to fix it. So by running it, I have ...
NITISH KUMAR's user avatar
1 vote
0 answers
463 views

Bash is trying to run "_update_ps1" after every command, but only when in tmux

I have been working to change my statusline in bash from powerline-shell to the powerline bindings for bash. It appeared like it worked but when I opened tmux, after every command I get the error: ...
Jeremy's user avatar
  • 496
1 vote
0 answers
232 views

.bashrc seems not executed when logged in from a relay machine

I am using Xubuntu 18.04 in Virtualbox. I have 4 identically installed Xubuntu 18.04 virtual machines each doing different jobs. I have account A on machine One and account B on machine Two. In both ...
lisprogtor's user avatar
1 vote
1 answer
2k views

source $HOME/.bashrc conflicts with zsh?

When I do source $HOME/.bashrc, it results in the following: As you can see, it jumbles up the text where the path of the current directory would be. I am calling this because I am trying to change ...
counterhash's user avatar
1 vote
0 answers
792 views

'jupyter-notebook' command not working after installing Anaconda

After installing Anaconda and following the installation page, I have run into an issue that requires me to go to the bin in order to use the jupyter-notebook command. I found the this working with ...
Nevermore23274's user avatar
1 vote
4 answers
490 views

BASH variables aren't loading properly on startup

I rarely post a question because I tend to get obsessed with trying to figure things out on my own, but today I am really stuck.... and I've had a long week and my brain is dead... anyways, I am ...
Booey's user avatar
  • 17
1 vote
0 answers
367 views

scp not running .bashrc or .bash_profile before copying file

My .bash_profile has the line export path_shortcut=/some/file/path (not wrapped in any conditionals), but calling scp file.txt target_computer:$path_shortcut still copies file.txt to the target ...
LHeng's user avatar
  • 111
1 vote
0 answers
199 views

Is `.bashrc` executed when ubuntu 18 logging in?

I added a line at the beginning of .bashrc which is: exit No terminal will be opened (the usual way), but Ubuntu 18.04 never been able to log in (to the user interface). I was able to log in later by ...
Yasin Yousif's user avatar
1 vote
0 answers
350 views

Made change to my account's .bashrc and can't login but also cannot login with any other account

I had an issue with running scp on a workstation and followed the advice in this link to resolve it: https://www.fir3net.com/UNIX/General/why-does-scp-file-transfer-fail-but-there-is-no-error.html ...
Suzan Kowalski's user avatar
1 vote
1 answer
4k views

Showing <urlopen error [Errno 111] Connection refused> not able to use localhost for multiple applications!

I have been unable to install a number of applications including anaconda and druid on my ubuntu 16.04 system because whenever they try to open a url using localhost it flashes a message: urlopen ...
Hamra Nadeem's user avatar
1 vote
0 answers
339 views

18.04: Bracket match not found in .bashrc with Gedit or Mousepad?

OS: Ubuntu 18.04 or Kubuntu 18.04. I have Gedit 3.28.1 on both systems. While looking at .bashrc or /etc/skel/.bashrc, I found an instance of "bracket match not found" as shown in the image below in ...
DK Bose's user avatar
  • 42.5k
1 vote
0 answers
4k views

PYTHONPATH in .bashrc? .profile? Errors when upgrading from Ubuntu 16 to 18

I upgraded my Ubuntu to 18.10 from 1, and now I am having problems with some of my settings. I used Anaconda python, and when trying to load one of my custom libraries, I get this: ---> 13 from ...
Luis Miguel's user avatar
1 vote
2 answers
290 views

Ubuntu 16.04: Inability to log in after small modification in .profile file in user home

I have an Ubuntu 16.04 system on my laptop. I had installed the program redshift on it which adjusts the screen light to make it easier on the eyes. Today in a bid to always start it up automatically ...
Jayant's user avatar
  • 11
1 vote
0 answers
33 views

Prevent alias with `find` from running at login

How do I make an alias in .bashrc with sub-commands? Right now I have: alias pngc="for file in \`find \$1 -name \"*.png\"\`; do pngcrush -brute \"\$file\" temp.png; mv -f temp.png \$file; done" If ...
Mark Jeronimus's user avatar
1 vote
0 answers
190 views

Changing the color of terminal text

I'm using Ubuntu 16.04 LTS I mean changing the color of text I type, not user@server. Have seen some other posts about it, but could not get it to work. Want it permanent. I already change the user@...
Corpse Slush's user avatar
1 vote
0 answers
554 views

"Network is unreachable" error for bash script at startup

I have a bash script that is run at startup on an Odroid running Ubuntu Mate. The script connects to the wifi and then calls a python script which makes a http request: ... nmcli dev connect ...
firion's user avatar
  • 111
1 vote
1 answer
1k views

Emacs launched from favorites doesn't read .bashrc

If I open emacs from the command line, it loads my .bashrc and correctly sets my paths. M-: (getenv "PATH") Returns my actual $PATH variable. If I open emacs from the command line, pin the icon to ...
Mittenchops's user avatar
  • 1,620
1 vote
0 answers
43 views

Newly created alias should be activated constantly

I add an alias to `~/.bashrc and activate it. # add some helpful aliases alias l.='ls -d .* --color=auto' Activate it: source .bashrc It work well on current bash. $ l. ls: --color=auto: No such ...
Wizard's user avatar
  • 2,891
1 vote
0 answers
393 views

source syntax error

I am trying to use an anaconda virtualenv, which gets created successfully but I cannot source it. When I run source activate myenv I end up getting syntax errors: bash: activate: line 39: syntax ...
powder's user avatar
  • 111
1 vote
1 answer
715 views

Excluding some commands from getting stored in bash history only after terminal is closed

Currently I am using $HISTIGNORE to ignore some commands and not save them in bash history. But current behaviour is if I am running a terminal I executed a command which is in $HISTIGNORE then on ...
ksmukta's user avatar
  • 31
1 vote
0 answers
2k views

Help Ubuntu 16.04 download java jdk/jre 6 manual installation , and set path in .bashrc?

Problem of my Game that I want to launch did not work with java7-8 and solution that I need is Solution because server only is supported with 1.6.0 JRE I need to install it manualy but I don't know ...
Martin Joshevski's user avatar
1 vote
0 answers
540 views

source ~/.bashrc results in ln: failed to create hard link '/dev/raw1394': File exists

i updated my bashrc file. when i try to save it https://stackoverflow.com/questions/2518127/how-do-i-reload-bashrc-without-logging-out-and-back-in I get the error ln: failed to create hard link '/...
Kong's user avatar
  • 1,221
1 vote
1 answer
1k views

How to start a gnome-terminal without loading profile (like bash --noprofile --norc)

Can I start a gnome-terminal without loading profile? (just like bash --noprofile --norc) Sometime I made mistake in writing .bashrc and find no way (except ssh from another machine) to access that ....
Nan Hua's user avatar
  • 11