Ubuntu :: Reset Environmental Variables After Restart The System
Apr 15, 2010
I am new in Using Ubuntu, I need to set up environmental variables in Ubuntu, I do the following:
Code:
export JAVA_HOME=/path/to/Java
export PATH=$JAVA_HOME:$PATH
it work fine, but every time I restart the system I have to reset it again Is that the right way to it, or I do something wrong
View 2 Replies
ADVERTISEMENT
Dec 24, 2010
I have installed ubuntu10.04 LTS in VirtualBox in my home computer(i forgot to tell you i am very new to linux-though i am studying a lot, but....-maybe because of my age "45" i am going slow. LOL. I hope i dont have a heart attack before i finish what i am trying to do in the server). Back to my issue: What i want is to have in the server some enviromental variables running not only for the root user but for all the users,when the server is open and not having to type the following commands every single time i open the terminal. Here are the commands:
export JAVA_HOME=/opt/java
export PATH=$JAVA_HOME/bin:$PATH
export M2_HOME=/opt/maven/maven
export PATH=$M2_HOME/bin:$PATH
[code]....
(where java, maven, tomcat are symbolic links for java jdk, maven and apache-tomcat 5.5.31). Please (LOL) save me from the heart attack, give me the chance to enjoy the holidays with my family!
View 4 Replies
View Related
Aug 6, 2010
I installed Java on a server and anytime I have to start or stop a service that requires the $JAVA_HOME variable I have to manually set it with the export command such as: Code: export JAVA_HOME=/usr/java-jdk1.6.0_21 How can I permanently set this variable?
View 3 Replies
View Related
Jul 23, 2010
For example, if I'm in csh, I can use `setenv VARNAME varVALUE` while I can use export in Bash. Given that the environmental variables are created, can BASH read env vars from csh and vice versa?
View 2 Replies
View Related
Mar 17, 2011
My question has to do with how environmental variables are passed from parent to child processes at the BASH SOURCE CODE level. I have a need to add an environmental variable that has the complete invocation line so that the child process can see it via ENVP.I have been studying the source for a quite a while and can't seem to find how to make the variable pass to the child. In EXECUTE_CMD.c I found a good place to set the variable: I made a routine similar to PUT_COMMAND_NAME_INTO_ENV called PUT_COMMAND_LINE_INTO_ENV which would add "?=THE FULL INVOCATION LINE" as an environmental variable but it doesn't make it to the child. (I've tried names other than '?' but they don't work either.
I'm thinking that there is either a LIST or a attribute associated with those environmental variables that should be passed to the child but I can't find it.
View 1 Replies
View Related
Apr 30, 2011
[URL]
Basically, when I do a reboot or shutdown and then the system tries to start I get a blank screen thus I have to hit the reset button and then I'm showed a grub menu (not sure why I have it set to autoboot) and then I can boot properly.
View 9 Replies
View Related
Feb 6, 2010
In my KUBUNTU 9.04 every time i set my desktop(wallpaper) it is reset to default after restart.
View 1 Replies
View Related
Oct 26, 2010
I have a Dell laptop which has braodcom wireless . After I Installed UBUNTU 10.10 my wireless drivers are automatically installed.
THE HAPPEIST PART NO NEED TO DOWNLOAD AGAIN the restricted drivers
I use a dial up broadband so i have to dial usin PPPoe top connect to internet. so when I'm using wireless modem I have to first make sure that the wifi is established and then run PPPoe. i configured the wireless eth1 thru iwconfig with difficulty as it getting the SSID and the key phrase updated to the settings only when i run the command twice.
Ok got connected to the internet and yes my work i dopne i shutdown or restart my system for somereason and here the problem starts , all the configuration done to the iwconfig eth1 is gone again my eth1 is a default one with no SSID. and i thought the problem is da hardware switch ,but NO it was not my eth1 is always ON
View 10 Replies
View Related
Apr 30, 2011
I have just finished the upgrade of the latest version and I'm at the point of my system restating.
My system automatically tried to restart but on the restart I got the 'terminal' view. It stopped when asking for my username (it never normally asks for this before the grub menu) and then password. I didn't get any further than that.
I now have on my screen (still in the terminal view before the grub menu)
"name@name-desktop:...$ "
I'm on my phone now so I don't actually have the symbol for before the dollar sign but your know what it is. The raised S on a 90 degree angle.
View 6 Replies
View Related
Jul 16, 2009
How come FC11 is set by default to reset the IPTables firewall to ACCEPT across the board each restart?
View 4 Replies
View Related
Jan 31, 2011
I was using debian lenny 5.0.5. Yesterday, I did a general update of the system and today it doesn't work. Debian just doesn't start, the screen looks black, the keyboard gives me no response, and I need restart with the "reset" button, how I can fix it?
View 7 Replies
View Related
Sep 6, 2010
I am an absolutely beginner with Linux (ubuntu). I got fed up with widows and decided it was time to go. I installed (clean install from a cd) ubuntu 10.04 on my desktop. It is an hp compaq d220 MT.It looks good and feels good, well at least for a while since it keeps crashing. The screen starts to flicker, goes black, and the only way to get it up and running again is to press the on/off button until the system powers off and restart.
View 2 Replies
View Related
Sep 7, 2010
I'm trying to use system to call echo and pass variables to it. That was a success. The problem is the variables inside the while-loop i wrote cannot be manipulated. what I'm doing wrong here? here's the code:
Code:
#include <iostream>
#include <stdlib.h>
#include <string>
#include <sstream>
[Code]....
View 7 Replies
View Related
Apr 6, 2011
mkvmerge -o <filename without extension>_TV.mkv -S <filename> && mkvextract tracks <filename> 3:<filename without extension>.*** && perl /home/brian/Desktop/ass2srt.pl <filename without extension>.*** && rm <filename without extension>.***
Doing these commands for multiple command line file inputs is the goal. So I can just type ./script.sh *.mkv in my terminal.This is what I have so far, but it doesn't work whatsoever.
View 2 Replies
View Related
Mar 12, 2010
I need to include variables in a system() call. This is that I have:
[code]#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
[Code]....
P.S.: I know this is a pointless redundant program, but it's part of a larger project learning process.
View 10 Replies
View Related
Sep 9, 2010
I just recently reinstalled openSUSE 11.3 last night with the GNOME desktop. Since I'm starting fresh again, I'd like to set up my System as flawless as possible.
So, my question is stated in the Title. How do you set System-Wide environment variables on OpenSUSE 11.3 // GNOME? I usually set them by adding an export to my ~/.bashrc, but I remember in Ubuntu that I could add them to /etc/environment. I checked that file out on my system, and it has a the default comment on it stating:
"This file is parsed by pam_env module...Syntax: simple "KEY=VAL" pairs on seperate lines"
This seems to be the spot to add my "export JAVA_HOME=/usr/java/..etc", etc. but I wanted to clarify before I went ahead and made any changes.
View 9 Replies
View Related
May 10, 2010
I have an RHEL 5 server joined to a windows domain. However I wanted to add variable lines to be executed each time a user logs in. However I succeeded to put them in /etc/bashrc file and it worked like a charm.
But its annoying that everytime the user logs in to the shell remotely it displays the whole variables that were declared. Is there a way how to add them once and not to display the output each time the user logs in?
View 10 Replies
View Related
May 3, 2010
I've been looking at possible options - I might install new from the CD if I have to. But before I do that, I'm wondering if there's anything I can do to restore the system to the way it would have been if I'd actually done a clean install - but to leave /home intact and perhaps the application also. (I haven't installed that many). I'm running 9.10, upgraded from 8.04>8.10>9.04 - it's working but There are some issues I can't seem to resolve such as stuttering audio.
View 3 Replies
View Related
Jan 28, 2010
I've currently got 9.10 and have (somehow) managed to mess the system up already!It's a new computer so I'm not fussed about data loss etc, but is there a way to completely reset the system which will also format the hard drive (as it was a download that has messed it up!) without losing the O/S?
View 9 Replies
View Related
Mar 6, 2009
How do I set my centos system to the configuration it had directly after the installation? Because there are so many messed up tings on here right now, firefox will only work with my proxy server if I put its IP directly into firefox but not if I put its IP into the system proxy settings and then point firefox at that. httpd refuses to serve up any kind of documen apart from the test page randomly and even then I sometimes get a 403 error. Seriously is this the normal practice for setting up a LAMP server???
View 7 Replies
View Related
Mar 19, 2011
I created some new accounts on a dev seat: Code: useradd -m newUser1.Users get created fine and can log in but are missing all the bash files (.bashrc, .bash_history, etc). When these users try to use the up and down arrows to view shell history they get junk characters. I checked and there is no history file in their homes. Where is the environmental variable set and how can I get this working?
View 1 Replies
View Related
Jun 3, 2011
I'm unable to reset using either the reset option in gnome shell or the command using a terminal. When I select it the shell exits and displays the graphic "exploding" and then it just sits there. Shutdown works fine; just no reset. Any ideas? I've installed from the DVD. I booted the live CD and it resets just fine so I know it's no my hardware
View 1 Replies
View Related
May 6, 2009
I'm new to Linux, tried Ubuntu, had slow boot problems, tried openSUSE 11.1, still have slow boot problems. The issue seems to be that the ata.0 device is slow to respond (ERROR= -16), the boot system forces a hard reset, then a soft reset, configures for UDMA 133, says the drive is ready, then does it again, three times, and then configures the drive for UDMA 100. It's a brand new Western Digital Caviar drive, and windowsXP likes it just fine. Once SUSE boots, everything seems to work just fine. I thought the problem might be with the drive jumpers, so I reset them from cable detect to master/single. No change in the problem.
View 9 Replies
View Related
Jan 21, 2011
I am Just trying to set the Environmental variable using a script file and my code is as follows:
#!/bin/bash
echo $PATH
PATH=${PATH}:/opt/bin
export PATH
echo Environmental Variable path is Set
echo $PATH
When I am running the above script, from the last line "echo $PATH" I am getting that /opt/bin has been appended to the PATH but again when I am typing echo $PATH in the terminal I am not getting the newly appended path.
View 3 Replies
View Related
Mar 22, 2010
I am a system administrator and i have configured squid server at the server side.Now i am facing a problem that these two websites are not accessible through squid transparent proxy server while they are accessible when changing the gateway.The websites are following:-
[URL]
This type of error message comes ERROR The requested URL could not be retrieved While trying to retrieve the URL: [URL] The following error was encountered: * Read Error The system returned: (104) Connection reset by peer
View 4 Replies
View Related
Aug 20, 2010
I have a lot of RAR files and ISO. Is there a program like Winrar which could open them in Linux? Cause now it only opens zip files . Also I would like to know what the best package manager is (I mean the easiest -used to use the Software Manager in Mint 9 Xfce).At last I would like to know if there is a good program to make disk images to reset the system.
View 9 Replies
View Related
Feb 2, 2011
I just installed Ubuntu 10.04 on my old Toshiba Satellite laptop. I'm dual booting with another Linux distro - ZenMini Everything works O.K. running Ubuntu but I can't restart the system with out it locking up. I have to power down completely from Ubuntu. I don't have any problem restarting with ZenMini so its obviously an Ubuntu problem.
View 3 Replies
View Related
Apr 1, 2011
I'm trying to make an environmental variable RPMS that will resolve to a website. I know I have to make the changes in .bash_profile, but all the things I try don't seem to want to work.
I've tried:
PATH=$RPMS:ftp://rha-server/pub/os/rhel5/Server/
or simply just making the variable itself
$RPMS=ftp://rha-server/pub/os/rhel5/Server/
The second one made a variable just fine, but when I attempted to run this command:
rpm -ihv $RPMS/caching-nameserver*
View 5 Replies
View Related
Mar 28, 2011
Code:
/*[workhard@localhost BeginningLinuxProgrammingC3]$ echo new_value 1122
new_value 1122
It's ok when I add value"1122" to a new value. But how can I add value "11 22" to a new value.
#include <stdio.h>
#include<string.h>
#include <stdlib.h>
int main (int argc, char **argv)
[Code]....
View 2 Replies
View Related
Jul 28, 2011
i am trying to declare an environmental variable in the /etc/profile' (as per the tutorial i'm following) but when i declare it and do an echo i get nothing.Here's what i've done so far..nside /etc/profile:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ -d /etc/profile.d ]; then
[code]...
View 12 Replies
View Related