I have just started using ubuntu and use the terminal a lot.I would like to edit it(blue username).I have tried changing the .bash_profile file, but my changes do not seem to affect it.I also added an alias to bash.bashrc but my computer started looping at login I reinstalled. I dont know if that caused it (I doubt it, but I didnt do anything else, though undoing it didnt work). what to put in the .bash_profile file. It is currently blank, and nothing I add seems to work (using online tutorials).Using ubuntu 10.10 (netbook) and normal - I would like to edit the netbook edition, though I thought they would be the same.
I have installed Oracle Database server in Red Hat Linux for the first time. I edited the .bash_profile first time & defined some parameters like "export ORACLE_SID =orcl".I quit the editing. Then When I entered ". .bash_profile" it got error " not a valid identifier" it shows like "bash: export: '=orcl' : not a valid identifier for all the lines I edited it shows same error beacause I think I put a space in between "ORACLE_SID" & "=orcl".
So when I tried to edit that using "vi .bash_profile" being a normal user. It doesn't allow me editing.when I try to delete that space (because I think I have got error) using Backspace key on my computer,,it just moves the cursor to left in stead of deleting that space.
There are things that I want to have for all my users.For example, I want to set the java_home, the PATH, I want to mount a drive, etc ...I understand there is a .bash_profile file that does that, but it seems I need to copy the code for all users every time.Is there some kind of MASTER file that sets all those things before running the individual profile files?
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 ?
I have loaded oracle 10g. I have made a shell namely Menu and copied it inside the /home/oracle directory. In the .bash_profile, entry has been made sh ./Menu. I want to execute this Menu whenever I login as oracle user.My system does not executeell. However, I am able to activate this shell by typing sh ./Menu from $ prompt
I'm trying to edit the bash_profile but I'm getting this error."/.bash_profile: line 46: syntax error: unexpected end of the file"Here is my bash_profile.
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then
this is my situation,I'm taking backup for some files in that i need to append the sysdate so that i can easily identify which file has to restore at some point,I've tried the following In my bash_profile(RHEL4)
Code: SYSDATE=`%d/%m/%Y` export SYSDATE
i tried after relogin to another terminal ,but when i give the following command
Code: [malick@home ~]$ echo $SYSDATE [malick@home ~]$ source ~/.bash_profile bash: fg: %d/%m/%Y: no such job
I don't know what to do ,once the sysdate is set i can add that element to my script where it takes the back up
I have installed oracle11g R2 on ubuntun 10.04, upon completing I need to set the profile with environment variables but, could not locate the .bash_profile
I have installed Centos 5 for Oracle on my PC. I observe that everytime I have to execute .bash_profile. Otherwise I get command not found message.How to change this behaviour so that it executes automatically everytime I open a new terminal or a tab.The bash_profile is as follows. I notice that the same entry is in another Centos 5 installation in another PC, But I don't have to executeeverytime the bash_profile .
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then
I have some Flex and Java files which can be compiled with JDK1.5. My server was already loaded with 1.4 (at path /usr/bin/java) and our sys admin(I dont know why) copied another JDK, JDK 1.5 at path /usr/java/jdk1.5.0_16/. It seems very easy to use this java. Just set the path in .bash_profile. I did it and now if I run which java I still see the path for java 1.4 not java 1.5. Am I doing something wrong? Following is actual entry from bash_profile
I have installed Damn Small Linux on an old laptop.very boot reports that the SSH has loaded as I have configured it to do so but does not load startx as instructed in .bash_profile.After bootup, the following is reported by the system.-bash: /home/dsl/.bash_profile: line 12: syntax error: unexpected end of fileThis is the content of the .bash_profile
I have tried changing permissions and I have looked for a solution, but the error still exists.In fact it gives me a different error every time I log in.
Could not chdir to home directory /home/rb27: Permission denied
here is a snippet of what I get when I use the command ls -al:
I was trying to get rid of qtconfig's error message "QGtkStyle was unable to detect the current GTK+ theme.".
So I created the file ~/.gtkrc-2.0 with this content:
Code: gtk-theme-name="Xfce" Then I had to read this file after logging in (or at least, when I start X. So I created a ~/.bash_profile file with the following line:
Code: export GTK2_RC_FILES="$HOME/.gtkrc-2.0" When I now login, I get this message: Code: -bash: export: command not found Any idea what could cause this problem?
I tried compiling a simple Hello World with gcc but didn't have any luck. I got this message: Code: junk.c:1:19: error: stdio.h: No such file or directory gcc was installed and configured correctly at one point but I think I changed the the .bash_profile since then. I checked where stdio.h lives. The path is:
Is it possible to edit the "Places" menu the way one can edit the "Applications" and "System" menus on gnome?
Right-clicking on the bar gives only Applications and System as editable menus. I would like to remove some items from the places menu and add others of my own liking
What I am trying to do is edit the link target to force ip=xxxx.xxx.xxx string at end. I have a software program which access 4 different servers running the software but with different configs. In xp I can copy links and modify as above to correctly force the program to the various servers.
I have read the various how tos on hard vs sym links which I get. Playing around with hardlinks and sysmlinks (the examples I find) does not seem to be what I need. Feel like this is pretty basic stuff but I am a bit stumped.
Im trying to control my works server from home (due to the snow) and need to edit part of my monte carlo code so need Xforwarding turned on, have tried to edit /ect/ssh/ssh_config to this effect but Im being told I do not have the permission to save the editted file... I am the only user on the computer and this is a pretty much fresh copy of Ubuntu (using 9.04 instead of 9.10 due to networking issues on my laptop, didnt want to risk it on my desktop)
I need to auto-hide the menu bar but I can't seem to find a place to right click for the menu bar properties. Also, I would like to get rid of some indicators like bluetooth and the mail/chat one but they're locked and can't be unlocked.
I am trying to edit a C++ source file, but gedit wont allow me to save changes to it. Gedit says:
Code: A file with the same name already exists. Please use a different name.
Right. Of course the file exists, I am trying to edit an existing file.
About the same happens with kate... Kate opens the file in read-only mode.
However, if I edit the same file with nano, editing and saving works. So the problem shouldn't be with access rights. Also "ls" shows rw rights to the file.
What could be the problem? I can use nano, but I would need the syntax highlightind, and other features of a better editor.
And whether I use sudo or not has no effect. The same happens with or without sudo, and I am the owner of the file.
PS. luckily I am still dual booting with Hardy. I can always go back.
Installed Ubuntu last night on a friends computer. I never work with pdf.files. Is there anything he can use to edit them on Ubuntu. I had to laugh thou when I returned home from work he was playing with Ubuntu, and downloading .exe files, and was frustrated why they were not installing.
When I want to edit a line in vim, I type the : followed by a number to go to that line. So for example ":8" would go to line 8. I was wondering if there was a way to omit the : character, so I would only have to type 8 and it would go to 8.
I'm a xubuntu 10.04 user and i recently tried to create a keyboard shortcut to launch the Terminal. I went into Settings -> Xfce Settings Manager -> keyboard
I chose the "application shortcut" tab and there I realized that the "add" function behaves very strangely.
A window pops upp with a text entry that lets me add a command name, but nothing to enter the shortcut's name. Anyhow, whatever I write in there, the window closes when I enter OK and nothing more happens.
I also tried to change the shortcuts from the Window Manager and nothing can be edited there either.
I'm running into a problem with ufw when enabled and need to edit before.rules but i simply do not know how to safely do so. This is a known issue [URL] The problem for me is;i issue the command sudo vi /etc/ufw/before.rules and i get there,i use the arrow keys to get to this part to replace "-m conntrack --ctstate" to "-m state --state" and i do not know how to execute this safely.I am using enter keys,delete keys and.