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

learn more… | top users | synonyms

1
vote
3answers
517 views

Add a binary to my path

I have an executable. I want to execute the executable in terminal with name only like other commands. I can put my executable in /usr/local/bin or I could add its PATH to ~/.bashrc. Both will work. ...
0
votes
1answer
86 views

In .bashrc how to use the output of “uname -m” as path (I get error: “uname: No such file or directory”)?

In my $HOME/.bashrc I defined the following variable: ARCH="uname -m" Calling from the terminal: $ARCH I'd like to get: x86_64 and I get as I'd like: x86_64 But calling: local/$ARCH I'd ...
0
votes
1answer
71 views

Throwing error message when opening terminal

I'm new on Ubuntu and ROS. I installed two different distro. (groovy and hydro). When I open the terminal I take this error. bash: /opt/ros/groovy/setup.bash: No such file or directory I remove ...
0
votes
2answers
127 views

unable to type commands in terminal

I was install mpi and I have given the path for it in the .bashrc and I closed my terminal and after some time again I opened terminal it's showing following error in the very first line followed by ...
1
vote
1answer
141 views

howto link / execute / add to $PATH: python3.3.5 after manual installation in 12.04 LTS

I'm trying to install python3.3.5 on /home/myUser/XX, where home is located on a separate partition. I'm relatively new to Linux and have only basic knowledge about installing packages on my own, ...
0
votes
0answers
444 views

error while loading shared libraries: libmwlaunchermain.so: cannot open shared object file: No such file or directory

I am running MutSig command, its output: Setting up environment variables LD_LIBRARY_PATH is ...
1
vote
1answer
47 views

Cannot seem to get bash history along with others working

This is very similar to all the other questions out there but at the same time not. I am running Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-59-generic x86_64) to be precise. I successfully setup a new user ...
2
votes
1answer
95 views

bashrc shortcuts in Tmux

I have sets many shortcuts in .bashrc profile of local user, and they work properly. Currently on my 12.04 system but when ever I tried to used them in tmux, I always get the same response command not ...
10
votes
2answers
371 views

Why does Ubuntu's default ~/.profile source ~/.bashrc?

These are the contents of the stock ~/.profile that came with my 13.10 (commented lines removed): if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi ...
1
vote
1answer
897 views

nvcc not found, but only when using sudo

I can't get ANYTHING working on linux. I'm trying to compile CudaMiner. sudo make: ypt-jane.o `test -f 'scrypt-jane.cpp' || echo './'`scrypt-jane.cpp mv -f .deps/cudaminer-scrypt-jane.Tpo ...
3
votes
1answer
143 views

Why doesn't the xbacklight command work in rc.local?

When I execute the command xbacklight -set 10 in my terminal the brightness is set to 0.1 as it should. But when I use this command in my rc.local-file, then it is not executed upon start -- because ...
0
votes
1answer
168 views

.bachrc $PATH doesn't find my python scripts

I've tried adding a path to my .bashrc file as follows export PATH=/beda/users/home/user252083/bin:$PATH and yes, I can then run the binary "bader", which is in the bin folder from anywhere. I also ...
0
votes
2answers
54 views

Where can I put commands that I want to run for all interactive, non-login shells?

Normally, in bash, the answer would be ~/.bashrc or /etc/bash.bashrc. But unfortunately Ubuntu is sourcing these files from ~/.profile and /etc/profile respectively. So, where should I put such ...
3
votes
1answer
31 views

Keeping “info” lines visible after quitting “info”?

I have: export MANPAGER="/usr/bin/less -r -X -is" as the last line in ~/.bashrc. This allows me to keep most of a man page visible on screen after exiting man. I want to do the same when I view ...
1
vote
1answer
43 views

The .bashrc file changed back after reload it

I changed the .bashrc file and run source ~/. bashrc it changes back to the old one. Why?
0
votes
2answers
145 views

Access and edit .bashrc via ssh on terminal

I try to access .bashrc by typing ~/.bashrc on my terminal. I am connecting to a remote server via ssh. I get an access denied message. I have no problems logging in, just the access denied message ...
0
votes
1answer
115 views

Ubuntu terminal not exporting environment variable from .bashrc

i tried following(read from stack exchange): added "export OSTYPE=linux" in .profile but even then it shows "echo $OSTYPE" as linux-gnu
0
votes
3answers
89 views

Copy current terminal prompt to clipboard

Is there a way to copy the currently written content of the bash prompt? Say I wrote: ping www.google.com so that the lines in terminal looks like: petr@sova:~$ ping www.google.com and didn't ...
1
vote
1answer
32 views

“NS=: ” in terminal profile when source .bashrc

I don't know what have I done in my Ubuntu 12.04. But whenever I igarcia@dulx0004:~$ source .bashrc I get the following [NS=:]igarcia@dulx0004:~$ What is going on?
1
vote
1answer
213 views

ADT Bundle .bashrc $PATH not working

I Installed the ADT bundle, worked fine the first go, even from a Gnome custom launcher. Didn't test ADB or FASTBOOT from CL, subsequently neither nor ADT is working. echo "$PATH" /usr/local/sbin: ...
1
vote
0answers
120 views

Specifying Python Distribution in Ubuntu 13.10 (for Continuum Anaconda Python)

I've been trying to install Python on my Ubuntu 13.10 VM. Ubuntu already comes with Python, and when I remove it with apt a lot of other apps get removed. I have installed Continuum's Anaconda ...
0
votes
2answers
56 views

Virtual console not reading ~/.bashrc

I'm using Ubuntu 13.04, and have set up some custom functions in ~/.bashrc. The custom functions work fine when I open a terminal within the GNOME environment. When I switch over to a virtual ...
1
vote
2answers
237 views

No files in /etc/skel/ ; Can't restore .bashrc

I recently messed up my .bashrc file, which I mentioned in this question: Problem with installing Android developer files on Eclipse - messed up something with .bashrc, and I can't find a way to ...
1
vote
1answer
810 views

Restore .bashrc to its default?

I've been trying to install Android developer tools on Eclipse, and I followed the information in this video: http://www.youtube.com/watch?v=-qk9c-Ug2UI&list=PLQOohAn5nxx43fqFugU6dIwSQNbvXdgi5 . ...
0
votes
1answer
341 views

bash: /home/gaja/.bashrc: line 4: syntax error near unexpected token `('

When I open the Terminal I got the following the errors. bash: /home/gaja/.bashrccu: No such file or directory bash: /home/gaja/.bashrc: line 4: syntax error near unexpected token (' bash: ...
1
vote
1answer
92 views

.bashrc not working after restart

I can't figure out what's wrong with my PC! I'm quite new to Ubuntu. I need to add android tools to the PATH variable so I add the following lines to .bashrc file: PATH=${PATH}:/home/user/Program\ ...
2
votes
0answers
268 views

Virtualenv permission denied

After a lot of struggle with virtualenv/virtualenvwrapper I decided to remove all virtualenvs and re-install the packages. root> su myuser myuser> sudo pip install virtualenv myuser> sudo ...
0
votes
2answers
220 views

Problems with sudo inside shell script

I want to make a shell script to run VI with sudo if I try to edit a file that I don't have write permissions and for that I created an alias alias vi=my_script.sh #!/bin/bash file=$1 ...
1
vote
0answers
63 views

Login errors in .bashrc in 13.04

I just upgraded to 13.04, and suddenly I get xsession errors in my .bashrc on login. There is nothing wrong with the .bashrc file--I can source it from a terminal login, and after I get into the ...
1
vote
2answers
689 views

My terminal shows only a blank screen--How can it?

I recently installed Ubuntu 13.10. in the process of editing bash.bashrc file something went wrong and all of a sudden all i'm getting when I open my terminal is a blank screen. No directory names or ...
1
vote
1answer
166 views

how to make ps1 display full path name

using ubuntu 12.04.3, i've modified my PS1 to [\u@\h ]\w$ which SHOULD display as follows: [user@host /home/user]$ but it doesn't it's still [user@host ~]$ this used to work. what changed?
0
votes
0answers
47 views

help changing an environmental variable

I need a little help with this syntax. Do I use the quotes? Do I add these variables to .bashrc or bash? Are bash and .bashrc the same file? Where is the .bashrc file? What is the "." leading the ...
2
votes
1answer
517 views

“Can't open” an /opt file

This is my first post. I wanted to ask for any idea so to solve my problem. I am using Ubuntu 12.04 LTS, and my purpose is to use OpenFoam CFD software. I am trying to execute an script called Allrun ...
-2
votes
1answer
153 views

How to absalutely fully change terminal prompt to color

its mind bogglingly supprising how hard it is to TOTALLY change terminal prompt graphic featurs.... Like PS1 Or in my case color features.... I have edited /etc/bash.bashrc and ~/.bashrc and ...
3
votes
1answer
305 views

Is there a secure way to pass authentication parameters for proxy to applications?

I am behind a proxy server and need to specify authentication parameters to access the internet. For this, I have exported my username, password, host and port_no in my /home/$USER/.bashrc file and in ...
1
vote
2answers
197 views

Merging Home Directories Breaks Readline/.bashrc

Over the last few days, I merged a home directory from a working install of 12.04 to an old home directory, I believe from an install of 10.04 (it was a bare driv) I got the new drive to load and ...
13
votes
3answers
3k views

What does “${debian_chroot:+($debian_chroot)}” do in my terminal prompt?

In my terminal prompt definition in my .bashrc file, among other things, I have this snippet of code: ${debian_chroot:+($debian_chroot)} What does this do, and do I need it?
0
votes
1answer
137 views

Change a vps' welcome message

When I log into my sudo user on an Ubuntu vps, this message appears: There is a Quick installer available in /usr/sbin named quickinstaller.sh. It will give you the option of installing a LAMP ...
0
votes
2answers
207 views

Accidentally deleted .bashrc on USB stick Ubuntu 12.04

I have a 16GB flash drive I have setup to run Ubuntu 12.04 from. While using it, I accidentally deleted .bashrc, and rebooted the system not realizing the file was gone. Now Ubuntu just hangs on the ...
0
votes
1answer
68 views

How do I automatically change to a specific folder on login for an account with no home folder?

Typically I would create a user account and in the home folder, place the cd command in the ~/.bashrc file. For system users, however, with on home folders, the /etc/bash.bashrc file is used instead ...
0
votes
1answer
2k views

Changing shell colors: “dircolors -b command not found”

(Preface: I'm brand new to Linux.) Problem I'm trying to change to colors of the file system in the bash shell. I've altered my .bashrc file according to: ...
3
votes
1answer
289 views

Why default .bashrc is set to return immediately if not running interactively?

In Ubuntu default .bashrc there's this: # If not running interactively, don't do anything [ -z "$PS1" ] && return Does anyone know why that is there? Is there something in the bashrc that ...
0
votes
0answers
66 views

Some help with my terminal

When I access the terminal it always comes out something like user @ ubuntu: ~ $ , but now after trying to install a .tar.gz driver for my printer (my PC still does not recognize it), I get only ...
-1
votes
1answer
196 views

How to install class bench using make all and bashrc [duplicate]

Class bench is program for Linux,Classbench duty is create packets and generate some rules which they call them filter set.In class bench there is three folder: trace_generator db_generator ...
1
vote
1answer
160 views

Synclient alias in .bashrc not responding

I created an alias to turn the mousepad off with synclient, but it does not respond as expected. After running the synclient touchpadoff=1 in the terminal however, the alias starts to work properly. ...
1
vote
1answer
144 views

emacs when run from the Applications menu (via. desktop setting) doesn't load environment variables

So when I invoke emacs from the terminal, all my environment variables are loaded correctly from .bashrc. However, when I load emacs from the Ubuntu Application menu (by invoking the ...
3
votes
1answer
622 views

Bash aliases - how do I run a file in a different folder without losing my current location?

I have a nice little bash alias in my .bashrc folder that allows me to start Tomcat running without having to cd into the folder first, e.g. alias startTomcat="cd ~/apache-tomcat-7.0.34/bin/ ...
0
votes
1answer
419 views

I have to reload bashrc each time

Despite the fact that I added some commands in .bashrc, I have to say "source ~/.bashrc" each time after rebooting. .bashrc PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting export ...
1
vote
0answers
801 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 ...
3
votes
2answers
976 views

Install Elixir to System

How can I install Elixir on Ubuntu 13.04 so that I can easily use it from the command line and update it easily by cloning git. I have installed Erlang 16 by getting package from here Erlang ...