Ubuntu Servers :: Setting Up Env Vars At Startup

Jun 21, 2010

one of the servers is the "main guy" which has NIS and NFS. the others mount the partition and can log in whith the same "main" account.

my problem is that i need to call a startup script "settings.sh" to set some enviroment variables for the cluster to work.

this script is on the NFS folder.

i would like if possible to call this script as early as possible, even before login phase, since they are servers and can be shutdown, restarted, etc.

at the moment i need to log via ssh into every one of the 4 nodes and do "source /opt/cfc/sge/default/common/settings.sh" manually each time they reboot.

i would like to put this script somewhere so that it gets called after the NFS mount, but without the need to log into an account. is possible?

otherwise i could set the nodes to automatically login into the main account..

im a little confused on something really simple, i know. But on the past i always used .bash_rc, this time i dont want to take that solution.

View 4 Replies


ADVERTISEMENT

Ubuntu :: Setting Volume On Startup?

Sep 25, 2010

I have an issue with my machine. The volume is 100% on startup, and I need that fixed. I looked around and found THIS on stackoverflow. However I cannot find the rc-default file I need to edit to make that solution work. I'm running Karmic. Anyone else find a solution to this problem?

View 9 Replies View Related

Ubuntu :: Do Env Vars Set In .bashrc Not Effect The Gnome Desktop

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

General :: Get All Vars And Set Locally In Script ?

Mar 14, 2011

I am new to linux and need to do this in a script.

1. Get all the vars (env command)

2. Set them locally (name, value pair) in script using loop iteration.

Pseudo code

Code:

View 2 Replies View Related

Ubuntu :: Apache2 Mod_Rewrite - Passing The Artist=$1 To The Server GET Vars

Sep 9, 2010

I've given a bit of support using Mod_rewrite to use magical urls to redirect to scripts, but when I migrated to Ubuntu's Apache2... I'm lost. I basically want to rewrite like this:

Code: RewriteRule ^artist/(.+)/$ artist.php?artname=$1 But I noticed that it wasn't passing the artist=$1 to the server GET vars. Then I noticed that if I changed the name of the file in both the rule and the file system to artists.php, typing artist/blah/ no longer was found. So then I realized that if I removed the rewrite rule artist/hello/ would still resolve to artist.php without any parameters my htaccess is like so:

[Code]...

View 1 Replies View Related

General :: 'set' Command To Output Vars Without Values?

Sep 3, 2010

I need a list of shell variables without values and without finctions. Can't find an option for set or typeset to print values only

View 4 Replies View Related

Ubuntu :: Conky At Startup - Has Wrong Window Setting

May 17, 2011

I have conky running a simple script on my Ubuntu 11.04 install. Running conky from using ALT-F2 is fine, but I have have conky added to the startup list, and when it runs from this, the conky window is different (ie not integrated with desktop layer). It has some shadowing around the edge and it seems to be on a layer other than the desktop. In addition to this, it stops running after a short while. I then run conky from ALT-F2 again and it's appears as I want, and stays there all day. I have included what I think is the relevant code below from my conkyrc. Has anyone had similar issues with a suitable way to resolve the problem?

Code:
own_window yes
own_window_transparent yes
own_window_type override
#own_window_type desktop
#own_window_type normal
#
own_window_type conky
own_window_class Conky

View 1 Replies View Related

Programming :: Calling Vars In A For Loop In A Shell Script?

Oct 8, 2010

# variable declaration
stt=10
enn=20
stp=1

# I want to do it in the following structure but not sure how to call # the stt, enn and stp in a for loop

for (( i = $stt; i -le $enn; i=i + $stp ))
do
blah blah
done

View 9 Replies View Related

Fedora :: Setting Startup Options On Exit ?

Aug 13, 2010

I have a dual boot machine; sometimes I want to use windows for something Linux won't do.

It boots up Linux by default, so if I want Windows, I need to interrupt it at the beginning.

It would be more convenient if I could tell it, when I shut down, what to reboot into.

View 4 Replies View Related

OpenSUSE :: Kontact At Startup - Can't Find Setting

Oct 11, 2010

Kontact automatically starts when I start up my computer. I can't find the setting for this. How can I change it?

View 9 Replies View Related

OpenSUSE Network :: OpenVPN - Permission Denied For Vars Command

Mar 30, 2010

I did some reading on Openvpn and am following some instructions I found @ Install & Configure OpenVPN SSL VPN in SUSE & openSUSE Linux | SUSE & openSUSE

I keep getting the same error message when I run the . ./vars command
"NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/easy-rsa/2.0/keys"

But when I run ../vars I get
"Bash: ../vars: Permission denied"

View 1 Replies View Related

Fedora :: 15 Service Configuration App - Enable / Disable At Startup Setting Is Greyed Out

Jun 25, 2011

When installing Samba and Webmin I use the application "system-config-services" or (if it is easier to find for you that way) menu->Administration->Service management. In this application I can start the services I need (nmb, smb, webmin), but the enable/disable at startup setting is greyed out... Even when I start the application as root it still gives me no possibility to configure the services to start up on boot. This should be possible. It works this way in Fedora 13 and Fedora 14, so why not in Fedora 15?

Before reporting a bug, I would like to ask if other users here have the same problem (and -if possible- a solution)... In the mean tim I guess it is back to the old way of configurating services - sigh..

[edit] I tried to remove the [SOLVED] from the title, but the forum software does not seems to allow me to do that... I thought it was solved by installing xinetd, but I was happy a bit too early. I still have no answer for this problem.

View 6 Replies View Related

Ubuntu Servers :: Setting Up DNS For A Small Lan

Jan 25, 2010

how to set up dns/bind but the issue I am hitting is that I want to just create a non internet domain setup ie t60.mysuperlan. desktop.mysuperlan. etc . Using a hosts file isn't the best as its pretty much about learning all the stuff to make it work.

View 2 Replies View Related

Ubuntu Servers :: Setting Up Lpr For Printing Under 8.04

Feb 23, 2010

I managed to install a networked printer to my box by

apt-get install system-config-printer-common system-config-printer-gnome

And using the system-config-printer, I can send print test page and it works.

Now, I noticed that I don't have lpr installed on this box.

So even if I install lpr or lprng I cannot seem to make it work.

Ohh and by the way, the only thing I use to print from that box is Acrobat Reader 9.. it is proprelly installed. I can see the networked printer entry from the program.. but for some reason Acrobat Reader 9 needs to use lpr to send the print job.

I wish to know what I am missing here.

I can do lpstat -v and I see my printer entry from there.

Now: the question: how can I setup lpr to work with my networked printer?

Should I install lpr or lprng?

What is the proper way to install a networked printer under Ubuntu-server?

View 2 Replies View Related

Ubuntu Servers :: Setting MTU With VLAN?

Apr 4, 2010

Looking for any help I can get here.. We have a 9.10 server with both (ifenslave & VLAN) installed and configured. When we are running in bond mode (bond0) it sets the MTU to 9000 just fine.

iface bond0 inet static
hwaddress ether 00:04:7B:30:4A:AC
address 172.21.2.250
netmask 255.255.255.0
mtu 9000

[Code]...

View 5 Replies View Related

Ubuntu Servers :: Setting Up 2nd Interface?

Jul 15, 2010

I am having trouble setting up my second network interface on Ubuntu Server 10.04. When setting up the machine it did detect both cards but I only picked one to configure, and now I want to setup the second.

I went into /etc/interfaces and basically copied the settings for eth0 but changed the IP and the name to eth1. I then restarted.

Quite honestly it might be working! But when I run ifconfig -a I see no packets I see

Quote:

eth1 Link encap:Ethernet HWaddr 00:0e:0c:59:af:c4
inet addr:192.168.4.21 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0

[Code].....

isn't that what "UP BROADCAST...." line means?

So perhaps my question is how do I test my 2nd interface? I tried using the 2nd IP with Putty (which is how I usually work on the machine) and couldn't connect.

View 7 Replies View Related

Ubuntu Servers :: Setting Up Openvpn 10.4

Jul 21, 2010

I am following this guide on setting up an Openvpn but having a little issue with permission denied.

I am at this step 'Initialize the Public Key Infrastructure (PKI)'

Code:
cd /etc/openvpn/easy-rsa/2.0/
. /etc/openvpn/easy-rsa/2.0/vars
. /etc/openvpn/easy-rsa/2.0/clean-all

[Code]....

View 8 Replies View Related

Ubuntu Servers :: Setting Up A Database On 10.04?

Aug 19, 2010

I want to set up Ubuntu Server 10.04 on a computer I have lying around, set up a database for storing information, and a website for accessing it, which is only avaliable on my local network (it would just have an IP address on my local network). How would I do something like this?

I want to set it up on probably a Dell, and I want to be able to have multiple fields on the website that people see when they go to that IP address where they can enter information to be recorded in the database, and then be able to easily access it with a login, which different people would have different ones, so they can see just the information they entered..

View 2 Replies View Related

Ubuntu Servers :: Setting Up DNS For Webserver

Nov 17, 2010

how to create an entire server from scratch using a minimal install. I know Ubuntu Server 10.04.1 comes with packages that can be included during install but for the sake of learning I only installed SSH access.

I was able to get Apache2, MySQL, PHP5 installed and running fine. What I'm trying to do next is setup DNS so I can point fragdata.com to my Ubuntu server and have other people see my test site.

I have registered the nameserver ns1.fragdata.com with my IP and updated DNS in my registrar. I followed the tutorial but "dig fragdata.com" gives me the following:

Code:
root@linux-server:/home/syvil# dig fragdata.com
; <<>> DiG 9.7.0-P1 <<>> fragdata.com
;; global options: +cmd
;; Got answer:

[Code]....

View 9 Replies View Related

Ubuntu Servers :: Setting Up Apache In 10.10?

Dec 7, 2010

When starting Apache I get this error in 10.10 (not in 9.10): [Fri Dec 03 21:14:22 2010] [error] (2)No such file or directory: could not open transfer log file /etc/apache2/${APACHE_LOG_DIR}/other_vhosts_access.log. Unable to open logs So where do I define APACHE_LOG_DIR ?

View 4 Replies View Related

Ubuntu Servers :: Setting Up Apache2 With SSI The *right* Way?

Jan 5, 2011

So I've got a box running 10.04LTS Server, and on it is running the latest build of Apache2.It's a home box - a server set up for the sole purpose of experimenting and having fun with. So far, the fun is mostly breaking it over SSH and then fixing it when I get home and can log into it via recovery.What I really want to do is to get this box set up with Apache2 the way it seems like it was designed - with Apache2 serving web pages from its default file location (/var/www) but also being able to log in and upload/download new web page files to that directory over SCP or SFTP. I keep hitting snags.Here's what I've done so far:

1. The server is set up in a DMZ at home and my router updates a Dynamic DNS record; so far I can SSH into it no problem.

2. Apache is working. I get my "it works!" page when I enter either the IP or the dyndns domain name.

3. SFTP is sort of working. I can log on using WinSCP and see the files and download them, but I can't upload to the default directory with my normal login.

Here's my issues: 1. I want to set up Apache *correctly*. To me, that means leaving it pointing to the default directory, but still being able to upload to that directory. I have not (and probably will not) enable the root account. I've set the permissions to 755. I've tried chown'ing the directory, but then it seems I can't view the webpages.As a workaround, I created a www folder in my default user home directory and pointed Apache2 there in the 'default' file in /etc/apache2/sites-available. The changes read as follows:

Code:
DocumentRoot /home/username/www
<Directory />
Options FollowSymLinks[code]...

That gives me a workaround for the default directory SFTP issue, but I would rather learn what I need to do to have it set up and working with default values.

2. You may notice I added Includes under the Options. My goal is to get server-side includes working. But they aren't. I have some existing webpages my work has set up - I using these as a template to use to adapt a flash movie I made to a specific resolution, as well as to learn how to optimize my flash for a webpage. Our webhost uses virtual hosting; I am not yet doing so. I'm not sure what they've done to set up the server-side includes, but the files they are using are all html files - no shtml. The include files themselves have either .htm or .html extensions. All of the pages have .html extensions.

My reading said that I need mod_include installed in Apache2. Where can I check to see that it is installed? Where do I need to add the Includes under Options?Is it in the right place? And finally, where do I need to add XBitHack on to enable it? This is the method that Apache suggests, but the documentation offers no clue as to where to put it. Most of the documentation out there refers to apache.conf, but that's the Apache 1.3 way of doing things.I really just want this to be set up according to the defaults as much as possible.I want to have a good working knowledge of Apache and of how to set it up and configure it, but dang it if it isn't a frustrating process.

View 8 Replies View Related

Ubuntu Servers :: Setting Up A Server ?

Mar 23, 2011

I have never used this software at all and am running a Win XP server for a n in house web site using Joomla. My XP box started to give problems as of today. So now I need to rebuild a web server box. I have always been told that Ubuntu is the way to go.

View 9 Replies View Related

Ubuntu Servers :: Setting Up Ec2 Instance Of 10.04?

Mar 24, 2011

I need to set up an ubuntu 10.04 instance on ec2, but there are some instance ready available I tried with few but I am not really happy with that since those are meant for test puporse.

I have to deploy a java/j2ee based web app with mysql. 1)need to install tomcat 2)java runtime 6 3) apache web server

What would be the best image to use for my requirement and I initially planning to launch with the micro instance if my web app demands I may further move to small and larger instances. So it should be eligible for free usuage tier.

View 6 Replies View Related

Ubuntu Servers :: Postgresql-8.4 Won't Boot At Startup On 9.10?

Apr 1, 2010

I have just moved to rackspacecloud and created a Ubuntu 9.10 server. Moved everything over all fine (7-10 wordpress sites). Now I have a couple rails apps that need to move over and run on postgresql 8.4.

I installed postgresql via sudo apt-get as per usual. Usually at this point the postgresql server starts up and I can forget about it. But no luck. I booted it by running /etc/init.d/postgresql-8.4 start. When I run that command it boots fine, I can connect via psql no trouble.

I rebooted the machine to see what happened. After boot, apache and mysql started just fine, wp sites came up nicely no trouble. postgresql wouldn't start up.

I have tried installing from source, I have tried using different /etc/init.d/postgresql-8.4 scripts. I have no idea what to do.

I have downgraded to upstart to 0.6.3-10. I have apt-get updated, upgraded. I have Googled. I have pushed and pulled.

Usually with any linux issue in the past I have been able to find a solution on the net or work it out myself. This one stumps me to no end.

The other irritating part is that while I wait to work out this issue I am still paying for my old server running my Rails apps.

View 1 Replies View Related

Ubuntu Servers :: MySWL Fails On Startup?

Jul 18, 2010

I cannot get MySQL to start on startup. Every time I need to run the following command from the command line to get it going:

Code:
start mysql

If I try to use MySQL from the command line before starting MySQL I get

Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

How to resolve this once and for all

View 6 Replies View Related

Ubuntu Servers :: Setting Up DHCP After Install

Feb 15, 2010

Due to me not remembering how my father set up the DHCP in my FreeBSD server (Files etc) i could not input the corrent info while i was installed Ubuntu 8.04 (LTS) server edition (32 bit). Could anyone be nice enough to tell me what i need to do, or what files to edit so i can access the internet from it?

View 9 Replies View Related

Ubuntu Servers :: Setting Up At Multiple Locations

Mar 27, 2010

So I've got a home server hosting a website for my restaurant, but I'd like to get another server up to get some redundancy going.

I have another machine I'd like to set up at another location to take over retrieving requests sent for the website whenever my home server goes down. I've got my domain through [URL], but the domain is hosted through [URL] for their dynamic dns service (because im not using a static ip).

So I'm guessing having another server set up is just a matter of setting up dns records, however I don't know where to begin with setting that up. Any words of wisdom out there?

View 4 Replies View Related

Ubuntu Servers :: Setting Up Virtualhost And /etc/hosts?

Apr 11, 2010

I've set up apache2, but I'm having trouble getting virtual hosts to work

my /etc/hosts

Code:
127.0.0.1localhost
127.0.1.1johnny-desktop
127.0.0.1go

[Code]....

View 2 Replies View Related

Ubuntu Servers :: Setting Static IP Address ?

May 17, 2010

I just upgraded to 10.04 and I want to set the static ip address but I can't find where to do it.

View 2 Replies View Related

Ubuntu Servers :: Error While Setting Up WebDAV?

May 27, 2010

I've been trying to set up a webDAV server on my remote server and while trying to enable a vhost 'webdav' with the command

Code:
sudo a2ensite webdav
sudo /etc/init.d/apache2 restart

[Code]....

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved