Ubuntu :: Run Environmental Variables On A 10.04 LTS Home Server
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
ADVERTISEMENT
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
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 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 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
Jul 4, 2011
I always have to google about setting environment path variables when I install new software. My basic problem is that I dont know whether these variables need to be set globally or not. I have read a number of mails/tutorials which say that Environment variables should be set by simply doing an export ..eg EDITOR=nano export EDITOR
additionally I have read that it should be written into /etc/bash.bashrc
But are these really global variables or local? I want the variables to be set
even after I have logged out.
so I could also write the variable here...
/etc/environment
or here
/etc/profile
View 1 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
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
May 20, 2011
I have a general question regarding php. Suppose that I want to have an array that stores connection-specific data, that can be anything IP address or something similar. However, whenever I use global or server variables (i.e. GLOBALS or _SERVER) the array created in this way is kind of connection-oriented, so that for each connection there is a separate instance of this array. Maybe it has something to do with the MPM of Apache, but I am not sure. Is it possible to implement an array that stores information about all connections that are at a system? In this way, each connection can chip in and upload it with data? Also, I would rather not use cookie's.
View 3 Replies
View Related
Feb 9, 2011
I do this:
Code:
a@b:~$ export A=hi
a@b:~$ echo $A
hi
a@b:~$ bash -c "export A=blah; echo $A"
hi
a@b:~$
Why doesn't the bash command print the new value of $A? Is there a way to make it do so?
View 6 Replies
View Related
Sep 5, 2010
I have bash. I installed Qt libs and want to set environmental variable PATH, I tried some stuff from qt tutorials..
Here is what i tried:
Code:
and it does nothing so i tried
Code:
then checked path
Code:
Now there are two issues
1) the make gives error that header not found( probably make don't have the path)
2) when i closed the terminal and opened it again the PATH I newly entered was not there !
View 3 Replies
View Related
Jul 27, 2011
I'm looking at setting up a script that ssh's into our netapp (server01) and then reports an environmental chassis status list-sensors. being relatively new to programming I'm a little lost. I've gotten this far:
Quote:
#!/bin/bash
SERVER="server01"
USR="root"
OUT="out.txt"
ssh $USR@$SERVER > $OUT
View 4 Replies
View Related
Jan 6, 2011
i recently installed apache2 mysql php exc. to run a realtime stat site for my servers.the only thing is that the buttons/ images are not showing up.i checked that my GD was up to date and installed perl5 GD. dont know what else to check.my site with problems go to:http://24.20.177.228/stats_public
View 2 Replies
View Related
Nov 24, 2010
I want to install a DLNA server on my ubuntu home server. It will primarily be used for photo browsing on my PS3, but general media support would be nice. (I use Squeezebox server for music.) What are my options, and what are the main difference between them.
View 9 Replies
View Related
Dec 7, 2010
I and setting up a home web server using Ubuntu 10.04 server (local only). I am currently using Webmin 1.53 to access it remotely all is going great very easy to use. Webmin - Check, ftps-fileZilla - Check, Apache -It Works BUT I cant seam to set up Apache as a named server using Bind DSN. Tried most of the help in the fourms and ..... I think my problems is in the master server selection, do i have to use [URL]... or can i just use myservername. I have tryed both with no luck. First time with the server addition.
[code]...
View 6 Replies
View Related
Sep 9, 2010
What is the Amazon ec2 server, what use would it have on a home server? Does it just give me access to my server like ftp would?
View 3 Replies
View Related
Dec 2, 2010
I have both windows (xp and win7) and mac (osx snow leopard) running on my network. I'd like to find a unified system that I could use as a file server. Mainly, I'd like to have it hold music and movies, maybe run some automated backups from a win 7 desktop. I'd also like it to be a print server. I'd like to run the most simple and lightest weight OS for the server os. However, I don't think I have the basic linux knowledge to run Ubuntu Server as it is terminal based. I have installed it on my machine but I feel like im running in circles. I have it installed and can SSH in with my laptop no problem. I feel like I may be better off installing Ubuntu Desktop and removing what I dont need. at htis time the server has only a 40gig hdd in it, i also have a 500gb hdd i'd be using for the files.
View 14 Replies
View Related
Feb 12, 2009
I have one server at home, connected through a router that gives me a static IP:192.168.1.2 - My PC192.168.1.3 - CentOS serverI enabled the port 80 into router forwarding system and I can connect properly to CentOS server, using the IP my internet provider gives me. My router automatically forwards a changed IP to my dyndns.com account so I can also access the server through a domain name (I pay to have it linked to one of my domains).My next step is to configure the mail server (dovecot) , so I can send emails from my local server(192.168.1.3).I was wondering if anyone has any tutorial links or tips to have the mail server configured through a home internet provider + home router.
View 5 Replies
View Related
Jan 21, 2010
I'm going to start a new thread because previous searches have not totally satisfied my question. I've read all day about doing this but each inquiry leads to discussion of configuring the router. I am also not network savy. I would like to set up an FTP server on my home computer (presently Ubuntu 8.10). I have only one computer. I am using DSL with my telephone line for internet connection. I do not use a router.
Is it possible to do this with no router and only a DSL ISP connection?
View 3 Replies
View Related
Aug 25, 2009
I have a home DNS server that has been working for some time today. Today I restarted to restarted it to clear the cache on it and now it refuses to answer and requests. Named starts fine with no errors. Here is named config file that worked for about 2 weeks fine and now doesn't want to work.
options {
directory "/etc";
pid-file "/var/run/named/named.pid";
forwarders {
192.168.1.10;
};
forward only;
};
zone "." {
type hint;
file "/etc/db.cache";
};
View 1 Replies
View Related
Aug 31, 2009
OS: CentOS 5.3
vsftpd ver: vsftpd-2.0.5-12.el5_3.1
I installed vsftpd server in one of my servers using "yum install vsftpd" command. NFS server is running in the other server and mounted as "/data" in this FTP server. root in FTP server has also root authority in NFS server. All the files and sub-folders under "/data" in FTP server have 755 or 766 mode. Even I modified vsftpd setting to allow root login.
When I login as root to FTP server with FileZilla client, I can see all the file list in root home directory and move to /data directory. I can download any file in a local HDD but I can not download any file in /data directory.
View 1 Replies
View Related
Mar 28, 2010
Currently I use FreeNAS, which is a FreeBSD-based NAS distribution for my home server. However, I would like to move to a Linux-based home server with the ability for new software packages to be installed, which is a problem with FreeNAS. I use Lucid beta on my Dell Mini 10v, and have two Windows 7 and one Windows XP desktop(s), with all of them connected via Gigabit ethernet and Wifi N.
The home server would act as a file server (SMB and whatever the best one is for my Ubuntu netbook), a media server (UPnP, MT-DAAPD/iTunes and DLNA for my PS3), as a webserver and as a VirtualBox server just to experiment with. The server itself has a 160GB PATA drive which will be for the OS, and a 1TB SATA drive to be for the data; Gigabit ethernet; an AMD Athlon 64 2.2GHz (with AMD-V) and 1GB RAM.Are there any things you would recommend for me to install? I think that having a window manager would be nice, even if just for initial setup since I am not very experienced with command-line Linux. I'm planning on installing Webmin and a VNC/SSH server so I can configure it remotely. I don't need any firewall or VPN services as these will be provided by a pfSense box separate from this.
View 9 Replies
View Related
Sep 11, 2009
I'd like to know what solutions do you, people, use to backup a live system that acts as a small home mail/file/irc/web server and some other purposes. For example, right now, to backup the mail, I have to stop fetchmail, kill vixie-cron to avoid any problem and then do the backup. Then restart vixie-cron.I wonder if there's any solution that will leave me do the backup without all this hassle.
View 3 Replies
View Related
Jun 15, 2011
i need to create a SSH server in my home and i should able to log in my SSH server over the internet from out site. what are the setup i have to do?
View 14 Replies
View Related
Mar 14, 2011
I have several PCs running w7 and linux. I have a netbook Samsung N150 which has a large HD (250G) and interested in running 24h homeserver mainly for media files. Netbook will be hooked up to LAN and will be streaming wirelessly (have fast connection) thru out the house. Which of the recent distro.
View 3 Replies
View Related
Mar 22, 2009
I am trying to set up a web based FTP site on my home server, I got ftp up and running and I can log into it using an ftp client but I want to set it up so I can get to it from the web. I put the directory in the www/html folder but that does not seem to help it
If anyone could point me in the right direction that would be great. I also need to let anonymous users get access to it.
View 2 Replies
View Related