Ubuntu :: Error On Editing .bashrc?
Dec 28, 2010
I get the following error on editing my .bashrc file.How to fix it??
Code:
karthick@Ubuntu-desktop:~$ gedit .bashrc
(gedit:3934): GLib-CRITICAL **: g_bookmark_file_load_from_data: assertion `length != 0' failed
[Code]....
View 4 Replies
ADVERTISEMENT
Feb 19, 2011
I found this script [URL].. Basically this is a shortcut for cd-ing my file system..
I can type "save nm" where "nm" is any short name for the directory, like "blog" or "blg" Then whenever I want to go to nm I'll just use 'cd nm'
But it is not working out for me, I get this error every time I enter save:
bash: save: command not found
bash: parse_git_branch: command not found
So How can I make this command work?
View 1 Replies
View Related
Mar 24, 2011
I have a .bashrc script to shorten the length of my shell path and occasionally I get the error:
Code:
I've tracked it down to this line
Code:
But can't seem to find anything wrong with it.
View 2 Replies
View Related
Jun 14, 2011
When I add some path in .bashrc by commenting out old path and adding new one like this:
#EXPORT HOME_PLAY=/home/gem/old_play
EXPORT HOME_PLAY=/home/gem/play
EXPORT PATH=$PATH:HOME_PLAY
After saving above changes, I enter the command: source ~/.bashrc Now if I do echo $PATH, the path shows both the old PLAY_HOME and new PLAY_HOME. This is really bad and messes up a lot of things in my project. This problem only goes away if I logout or reboot, a rather very long process. What is happening is that the old path is added to new path element and the old path includes the old path element you want to remove.
View 10 Replies
View Related
Jun 12, 2010
in order to install OpenFOAM, I need to
> source ~/.bashrc
but I get an error file or directory not found...
View 6 Replies
View Related
Jan 2, 2010
I have a new install of Karmic (not an upgrade) on my home network. All the other machines are XP sp2 or sp3. I have the following line in /etc/fstab:
Code:
//desktop/ddrive /home/dram/aDesktop-D cifs credentials=/etc/credentials.dt,nobrl,uid=1001,gid=1001 0 0
[code]....
View 2 Replies
View Related
Jun 6, 2010
I have an old laptop that I installed EasyPeasy Lucid on. I have never used Grub2 as my other Ubuntu installs still use Grub Legacy. I have studied all the tutorials which instruct that the grub.cfg file should not be edited directly.This old laptop has one of the dreaded Intel graphics chips for which the kernel automatically loads the i915 module. Of course (like a multitude of others with Intel graphics and Lucid) I booted into a black screen but knew the workaround was to enable mode setting through grubI used the
Code:
i915.modeset=1
and added it to /etc/default/grub line GRUB_CMDLINE_LINUX, just after "quite splash", just
[code]....
View 9 Replies
View Related
May 1, 2011
I tried installing an update for ubuntu but I don't think it shut down properly and when I try to start it up, I get the error "Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions." The version is GNU GRUB version 1.98-1ubuntu9. I have tried looking into this issue and cannot seem to find a way to boot up ubuntu. I tried typing in "root (hd0, 1)" which it what it was on mine but it the message in the terminal returns "filesystem is ntfs". I'm not sure what to do and I don't want to lose files on my partition.
View 1 Replies
View Related
Mar 2, 2011
I have a problem with the GRUB menu. When i open my computer it gives me error message " Minimal BASH-like line editing is supported.".I can't get passed that. So, it makes the computer unuseful. Windows 7 is not seen, neither Ubuntu. I am stuck at that screen. Before i was running dual-boot Windows 7 32-bit and Ubuntu 10.10.The GRUB version is GNU GRUB version 1.98+20100804-5ubuntu3I looked everywhere to get this fixed but i just cant seem to fix it!
View 4 Replies
View Related
Feb 17, 2010
I am using Ubuntu 9.10. I was installing network simulator 2. After installation I get the following message.
Please put /home/administrator/Downloads/ns-allinone-2.34/bin:/home/administrator/Downloads/ns-allinone-2.34/tcl8.4.18/unix:/home/administrator/Downloads/ns-allinone-2.34/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
[Code].....
My friend suggested that it is something to do with .bashrc file. I fund files like .bash.bashrc.
View 4 Replies
View Related
Jul 4, 2010
I tried to make a function to put in either my .bash_aliases or .bashrc file to make a local backup of a file, but when I call the function and try to use tab completion I get the following error:
Code:
cp: cannot stat `help': No such file or directory
The function I added is as follows:
Code:
function bk
[Code]...
Also interestingly, if I define this function at the prompt rather than in my .bashrc, tab completion works fine.
View 3 Replies
View Related
Jul 28, 2010
how to edit or add codes to ~/.bashrc?? and also what is this bashrc if anyone could explain... i have tried editing this bashrc without success... how to save the changes in bashrc...
View 5 Replies
View Related
Jun 20, 2011
I have what I hope is a fairly simple question to answer. In my ~/.bashrc file I can create this alias:
Code:
alias uChmodDP='chmod -R $1 $2' #specify permissions. and the variables work fine. But I cannot seem to get any love from this alias:
Code:
alias umnt='umount /dev/$1' I realize the likely problem is the variable following hot on the heels of a specific directory, but is there anyway to specify a variable in an alias like this? For some reason I cannot umount usb pen drives by right clicking, and have to always resort to the terminal to do so, which for me is no real biggie, but if I could create this alias it would be an even better no biggie to umount using the terminal.
Actually, the inability to right click to umount usb devices seems to be a Thunar issue since I run xubuntu. Using Nautilus I am able to right click and eject/safely remove devices. Using Thunar however, right click unmount always pukes back an error that the device must have been mounted on the command line or some such BS. But like I said it is no real biggie to use terminal, but an alias would be even nicer. I prefer using Thunar and Xubu most of the time b/c my laptop is quite underpowered.
View 3 Replies
View Related
Apr 18, 2010
Rm: cannot remove `.bashrc': Operation not permitted
* ALL other files in /home/admin directory are able, only this one.
* can't even change own, grp, just nothing
* no matter if i'm doing it from root or admin
inside this file there is code...
View 9 Replies
View Related
Nov 29, 2010
I was wondering whether anyone knows how to add preformatted text to the bashrc file? I'm ashamed to say I did already read this somewhere but had no use for it and as such forgot it! I'm possibly googling the wrong keywords, so apologies if it's an easy answer to find (with the right keywords!).
Just for completeness, the reason I'm doing my bit introducing my partner to linux, and I've 'embedded' a terminal on her desktop, I want to now add a little ASCII animal with a welcome message (I'm ok with getting the welcome message and colors sorted), much like the one seen in Linux Mint.
View 2 Replies
View Related
Feb 25, 2011
I,m having a rough time getting the terminal environment to recognize my android debug bridge path (which is set in a separate hdd) I used to paste this in my bashrc, but then found that it would make the env system bonkers whenever i attempted sudoing with an option:
# Android Debug Bridge (ADB) sdk path
alias sudo='sudo env PATH=$PATH'
export PATH=${PATH}:/media/Disk/Linux/Android/sdk/platform-tools/
The "alias" line was the one making me have a rough time with env.
Now that i got rid of it everything is well but adb's path isn't exported anymore.
[Code]...
View 3 Replies
View Related
Apr 26, 2011
I'd like to know if there is a way to define commands in the .bashrc or .bash_profile. For instance, I want to be able to type 'work' in a terminal and set up an interactive work environment on my universities cluster. (This is done with the command 'qsub -I -X'.) I tried the following in my .bashrc file:
alias work ='qsub -I -X'
But, of course this failed, as I don't have a command work already defined. How do I go about doing this? Also, I can't assign 'qsub' an alias, since it's used with different options quite extensively.
View 5 Replies
View Related
Jan 23, 2011
I have been working on this script and I just made a ridiculous error. I tried to move my script out of my home directory and for some reason I put in "mv myscript .bashrc" Now my .bashrc file has nothing but my script in there... I think I may have overwritten some important info. Is running cp /root/.bashrc ~
View 2 Replies
View Related
Feb 27, 2011
I want something like
Code:
export ROS_PACKAGE_PATH=~/ros:$ROS_PACKAGE_PATH
to be done already for me when I open a new terminal. How do I edit the .bashrc so that this variable is always set already?
View 3 Replies
View Related
Nov 10, 2010
iam using slackware 13.1 ,i have this in my .bashrc :
Code:
# .bashrc
# Add bin to path
[code]...
View 7 Replies
View Related
Oct 25, 2010
I have a few alias' in my .bashrc to save some typing, mostly ls type variants.
I wanted to add the following:
- give me a Long listing of ALL in Reverse Time order, (don't recurse directory)
Code:
But it doesn't work anything like the way it does on the command line
When I use the alias I get the following:
Code:
No Time, No Permissions, no group/owner ... , Why?
View 2 Replies
View Related
Feb 15, 2011
I've installed python2.7 and I want all those convenient python libs I've installed from the repos to work with python2.7, but the libs in the repos get installed to python2.6.
No problem, I'll just set the $PYTHONPATH env var so that python2.7 will look at the python2.6 libs. I defined $PYTHONPATH as I wanted in the .bashrc file, and now python2.7 works as I desire when starting it from the shell.
The problem is when I start python2.7 from the gnome desktop (by clicking an application shortcut or button) it doesn't work. My guess is that the env vars set in .bashrc do not effect the gnome desktop, and so my question is what can I do to set an env var on the desktop?
To demonstrate my problem. If I open a bash shell and type "idle-python2.7 -n" idle will open, and I can "import twisted" without any problem in the idle python shell. However, if I do alt-f2 and run "idle-python2.7 -n" idle will still open but sys.path is not set as I would like and I cannot "import twisted". So there is clearly different behavior between an application started from the shell vs one started from the gnome desktop.
Environmental variables have long confused me, I'm also open to other solutions to my "getting python2.6 libs to run in python2.7" problem.
FULL INSTRUCTION: Both .bashrc and .gnomerc are located in your home directory. Put the following at the end of both files:
You should now be able to import the python libs installed from the repos in python2.7.
View 2 Replies
View Related
Mar 3, 2011
I want to play around my .bashrc file, but I can't seem to find a general guide to customizing it. I just want a guide that will show me examples and explain them in-depth.
Does anyone where to find one?
View 2 Replies
View Related
Mar 9, 2011
How do you get your bashrc take effect immediately in your root shell? I read this.
[URL]
Code:
. ~/.bashrc
Does this not work in your root shell?
View 1 Replies
View Related
Jan 25, 2011
I was installing a software in my Ubuntu 9.10 and after installation completed it prompted the following warning:
Warning: Your PATH does not point to your newly installed /home/pc/Reflex/software/bin/esorex.
To ensure execution of the newly installed software you should modify your PATH.
Note that "esorex" is the executable file and by typing its name in the Terminal the program starts.
What should I write in my "bashrc" as PATH to that program?
View 3 Replies
View Related
Aug 11, 2015
I'm not sure if this is a Debian-specific question or a KDE question.
FYI:
uname -a
Linux DESKTOP 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) i686 GNU/Linux
(Running KDE).
Question:
Upon logging in (typically, for the first time each day) I would like to see a console window/shell or a simple terminal-emulator/shell automatically open up.
The reason is: In order to get my .bashrc to execute I have to log-in, then bring up an xterm or some other terminal-emulator.
Background: My .bashrc has a once-per-day routine/section that will set up my desktop to look the way I want it on my initial log-in (primarily with my Java applications up/running and displayed and waiting for me).
Then, later on that day whenever I bring up new bash shells, my .bashrc is executed but that once-per-day routine/section is no longer executed.
View 5 Replies
View Related
Jan 17, 2010
I am curious since "Run command as a login shell" is UNTICKED (I think for all new users) under Gnome Terminal -> Menu Bar -> Profiles -> Edit -> Title and Command , BUT .bash_profile is sourced. I thought .bashrc should be sourced instead ?
View 6 Replies
View Related
Jul 5, 2010
I tried to make a (very simple) function to put in my .bashrc file to make a local backup of a file, but when I call the function and try to use tab completion I get the following error: Code: cp: cannot stat `help': No such file or directory The function I added is as follows:
Code: function bk
{
cp -f --backup=numbered ${1} ${1}.bak
[code]....
View 2 Replies
View Related
Oct 18, 2010
The following line is in the /etc/bashrc file. I was trying to decipher it but no google results explain it in detail.PROMPT_COMMAND='echo -ne 33]0;${USER}${HOSTNAME%%.*}:${PWD/#$HOME/~}07"'I understand that 33 is the ASCII character for ESC but not sure what ]0 does or anything after the HOSTNAME variable.
View 1 Replies
View Related
Feb 9, 2011
I have a script that I run using ./dom example.com.
I want to add an alias to .bashrc so that I can run it using "d example.com".
I have tried adding each of the lines below in turn but I still receive the error:
-bash: d: command not found
alias d="/bin/bash /home/user/dom"
alias d="./home/user/dom"
alias d="sh /home/user/dom"
View 3 Replies
View Related