General :: .bash_profile Not Loading ?
Apr 1, 2010Whenever I reboot my fedora core 12 box I find that my .bash_profile does not load... I have to issue source ~/.bash_profile
How do I get this to load automatically each time?
Whenever I reboot my fedora core 12 box I find that my .bash_profile does not load... I have to issue source ~/.bash_profile
How do I get this to load automatically each time?
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
View 2 Replies View Relatedthis 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
View 11 Replies View RelatedI 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.
I'm logging in as a user at run level 3.I have my .bash_profile in my home directory
Code:
if [ -f ~/.bashrc ]; then
source ~/.bashrc
[code]....
Where to write JAVA_HOME? In .bashrc or in .bash_profile? What's the difference?
View 1 Replies View RelatedI 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
Code:
PATH=$PATH:$HOME/bin
PATH=/usr/java/jdk1.5.0_16/bin:$PATH
JAVA_HOME=/usr/java/jdk1.5.0_16/
export PATH JAVA_HOME
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
#!/bin/bash
export IRCNICK=DSL
export DISPLAY=:0
[code]....
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:
drwxr-xr-x 16 root root 0 Sep 8 18:28 .
drwxr-xr-x 23 root root 4096 Feb 5 2011 ..
d????????? ? ? ? ? ? ajd74
d????????? ? ? ? ? ? ban45
d????????? ? ? ? ? ? rb27
I cannot log in as root since the permission is denied
Ubuntu 10.04 not loading. Sticks at GRUB Loading message.
Read the other threads re OS not loading and GRUB. The talk about code goes over my head.
Local techie says the hardware is good. Tried reloading Ubuntu from CD. Tried loading the unmentionable OS.
Tried using Spotmau Powersuite.
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?
View 3 Replies View RelatedI 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.
View 2 Replies View RelatedI 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 RelatedI 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
[code]....
I lost my root .bash_profile. Have anyone, the .bash_profile contents of root to pass me?
View 3 Replies View RelatedI've a folder named "lynx" in my desktop . It contains ebooks - pdfs,chms etc . The problem is sometimes when i open the folder in nautilus , the folder keep loading forever and sometimes it shows two or three files and keep on loading . But at some other times , folder contents are displayed just as any other folder(i.e normal ).
View 5 Replies View RelatedI installed Drupal and there is only one site. It I access the website [url] where Drupal is installed I can easily see it functioning properly. But on internet it is not loading properly the colors etc are not visible properly.
Following changes were made to all the sites
Code:
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 am running Slackware 13.1.
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:
[Code]....
As a Security practice I wanted to disable X from loading.
So i modified following line from /etc/inittab.
I was then able to start my machine in terminal mode(runlevel 3).
I wasn't satisfied at this stage as i was able to get the graphical console by merely typing
Code:
So i search and find out that the reason for loading the graphical user interface was a script resided in
Code:
So i renamed it thinking OS will fail in finding it when invoked by inittab file . To my surprise i was able to get the terminal back even if i hit
But then i realize i keep on getting following error lines.
Code:
I found out the reason behind this was a line in /etc/inittab
Code:
Since the file prefdm was renamed and respawned the OS was keep on trying to execute it considering it is terminated.
Now i have made the above line commented and removed execute bit of the file. System is now behaving as i wish it would.
Will it make any difference? I m not using any application that explicitly use graphical user interface and i can work in runlevel 3.
actually i have installed ubuntu inside windoz 7.it was working fine bt i was understanding the the grub file and made few changes in it.thereafter the grub is not loading
View 1 Replies View RelatedI have disks of Lucid Puppy 5.11 and MacPup 5.11. Both disks run very well on my laptop, an old 2001 model Sony Vaio which is already booting Ubuntu 10.04 UNE.
But neither finishes loading on my HP Pavilion a1020n desktop, which is running Windoze XP Home. They both bog down on looking for optical drives... interesting as I am loading them from CD and it reads the optical drives fine up to that point.
It's sad that a quick-loading portable Linux won't load at all on my newer, faster machine.
Maybe it's because the laptop has GRUB already? My HP chokes every time I try to modify the boot sector, lots of "wonderful" security features to keep Windoze from "getting corrupted".
I have installed Fedora in my hard disk,but the GUI is not working.I can still work using my command line,but my mouse is not working.Is there any way out without re-installation?
View 6 Replies View RelatedI'm using a 3G modem whilst o2 transfer over adsl. trouble is no websites load but I can resolve domains. I enabled masquerade on the PPP0 ( modem) interface. added the server as default route for all workstations.
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
net.ipv4.ip_forward = 1″ to /etc/sysctl.conf
I have a linux server that I cannot really configure. I would like to upload via web page a quite big file ( ~100MB) but the server disconnect after 10 min. Is there any kind of software that can establish the connection without getting into server cfg details? If not what can cause this disconnection?What I need a simple web site when 50 ppl can upload short movies and then watch them. It needs to run localy (no .....)
View 2 Replies View RelatedI have a netbook with a XP/SuSE dualboot and I want to get rid of SuSE, I have EASEUS partition and I know thats probably the easiest way to get rid of it, but the problem is the loading screen, seeing as im on a netbook, the xp disk is out of the question and I lack a usb cd drive, how would I go about removing grub?
View 5 Replies View RelatedI am developing an extension for firefox that enables users to chat with any others who happen to be browsing the same website at the same time. The xul file adds a tool bar with a button "Enable Chat" in the browser toolbox. when a user clicks the Enable chat button, the server initiates the chat. I went through many tutorials for extension development. They have helped. But I cant seem to get my extension up properly. Ill just put up the contents of my files for extension..
/home/neethusha/extensions/blaze (blaze is the name of the extension)
chrome/content/blaze.xul
install.rdf
chrome.manifest
[Code]....
I made the pointer to the extension in a file named "blazebutton @anywhere.com" and saved it in the firefox profile folder "/home/neethusha/.mozilla/firefox/d5ma3rr9.dev/extensions"
When i open the firefox in this profile, the extension is not loading...
as mentioned in the header I have 2 HD's
The C drive runs on Win7
I would like to load the latest Ubuntu on the D drive but cannot find any info on how to do this on the ISO disk.