0
votes
0answers
14 views

Problem during the usage of up and down keys for checking up and down arrows

I am facing an issue during the usage of up and down on gnome-terminal. Lets say my previous commands are vi pos_of_rightmost_setbit.cpp gcc -o harsha pos_of_rightmost_setbit.cpp At this point ...
0
votes
1answer
33 views

Unable to login to my account using terminal

I was trying to add some lines to the end of .bashrc file by following instructions to install rvm on Ubuntu 12.04 , now when i am putting in password after doing a sudo su the terminal freezes . ...
3
votes
1answer
175 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 ...
1
vote
1answer
103 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\ ...
0
votes
2answers
222 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
76 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
766 views

Why is rc.local in /etc, should it be owned by root, and when is it run?

My understanding of rc.local, based on a quick Google search, is that I can put some bash in it which will be run at the beginning of [something] (what, user login, system start up?). The rc.local in ...
0
votes
2answers
909 views

~/.bashrc not autosourced in 12.04 lts

As this post says, the ~/.bashrc is sourced automatically in Ubuntu 12.04 LTS Server, which I use. I don't know where he got this information from, but as it is not downvoted yet, I believe it is ...
1
vote
1answer
484 views

removing a defined variable from .bashrc

Previously I defined a variable in my .bashrc file. Now I comment it and source the file again. However the echo command still returns the previous value. 1) $ echo $DB_ROOT /home/mahmood/db-4.0 ...
0
votes
1answer
1k views

Ubuntu root .bashrc file

I was installing rvm and for some reasons i changed first line on root's .bashrc what was there? i inserter if [[ -n "$PS1" ]]; then and see that i'm root, can't undo... What string is first like ...
1
vote
0answers
53 views

.bashrc not run when SSH-ing in as a user who has home dir encryption [duplicate]

If I SSH into an Ubuntu 12.04.1 LTS server as a user with home dir encryption, I get a really plain shell (no default .bashrc run). If I log in via console (of course causing the home directory to be ...
0
votes
2answers
862 views

Running gedit in background

So I've got this working in a 10.04 ubuntu OS in bash where I can run: $ gedit app/file.rb bash opens that file with gedit but it is tied up. How can I make my earlier command equivalent to $ ...
2
votes
2answers
3k views

~/.bashrc return can only 'return' from a function or sourced script

I am trying to setup a OpenStack box to have a look at OpenStack Object Storage (Swift). Looking through the web I found this link; http://swift.openstack.org/development_saio.html#loopback-section ...
1
vote
0answers
748 views

what to do about .ssh-agent pop up at login screen? [closed]

I was setting up git with a ssh key passphrase on Ubuntu 12.04 via the terminal with the assistance of Help.GitHub: "You can run ssh-agent automatically when you open bash by adding the following to ...