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.
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.
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"
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:
Is it possible for me to SSH to another server in Linux (Ubuntu), run a program there but display it locally?And is it possible for me to SSH to another server in my terminal,and configure it so that all graphical programs (Firefox, Emacs) run in that SSH session will be displayed locally?
I was wondering if you can 'share' devices in Linux by overlaying the devices nodes? For instance, is it possible to use SSH (FS) + bind to selectively bind devices locally?
I set up apache (apache2) to create a moodle server, but I can't get it to work globally. Here is the rub: http://192.168.0.150 works beautifully, showing me the index page at /var/www [URL] (my dyndns) or http://96.49.75.14 (my current IP address) doesn't work.ssh works well globally, i.e. ssh -l myname [URL] works. pinging [URL] works without a problem. Ports 22, 80 and 443 are open on my router (checked my router's settings).I use ubuntu 10.4. Is it an iptables problem, as in http://www.linuxquestions.org/questi...achine-750157/ ? But I couldn't figure out the iptables manpage.
I have rhel5.4 in my vmware , i am trying to install yum repositories in /home/Server bcoz i dont have enough space in /var/ftp/pub. i installed vsftpd ,createrepo rpms and index is installed, but when i check for yum list its saying cannot change directory.
I can't reach my website via http. I'm not sure but I think I just need to unblock port 80. But I can't find where a firewall has even been installed on my machine. ufw status returns inactive. sudo aptitude search firewall shows nothing installed.
Nslookup mydomain.com returns the correct IP. Pinging works.
But typing in the domain name or IP through the web browser just results in a "Network Timeout...Taking too long to respond."
Wget just hangs looking for MySiteName.com:80
VirtualHost has been set up and apache restarted. Site works fine with the ServerAlias I have assigned in my hosts file.
I need to run a (Tcl, or whatever) script on a remote Unix machine, from a (local) Windows command shell, and I want the stdout/stderr of the script to show up in the Windows CLI. The exit code would also be useful.
I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and an sftp for each command output seemed a little.. Next, I tried to Applescript Terminal, but it only gives access to the currently visible text in a tab (i.e. if half the output has already scrolled out of sight, it doesn't get returned - useless).
Last, I tried piping ssh to tee (e.g. ssh user@host | tee output.txt). This almost worked. I have the output in a local file, but there are a lot of unwanted characters mixed in. For example, every time I hit backspace, there's a ^H in the file. There's also text like "[0m[K" which is harder to get rid of.
I am creating this script which will login to a server with ssh and check if a particular exists there, if not it will create the user.This is the script:Quote:
I need to recreate in a local folder called /distro/fedora/ the full directory tree (including eventually hidden files, symlinks, etc.) contained in the .iso file just downloaded (Fedora-15-i686-Live-Desktop.iso).
I understand I can mount the ISO image using something like this:
mount -ro loop /path/to/image.iso /mnt
but then, which would be the best way to get a copy exact of what I see underneath /mnt in to /distro/fedora ?
I just tried FreeNX. I work great. I am thinking about uninstalling the vino/vnc on my machine.
However, I'd like to know if FreeNX can access the session that open locally on the server. I tried session 0 and 1, none of them can access the local session.
For default vnc, the connection will let you access the local session on the server. Can FreeNX do that?
i was trying to configure yum locally, can i copy files to any other location other than /var/ftp/pub. how to configure yum.repos.d/rhel debuginfo file.
I just switched from Windows to Linux. I've been using EditPlus for many years mainly because of it's ability to save locally, and then send the file via FTP, with easy keyboard shortcuts (ctrl-s to save, ctrl-alt-s to ftp).
I also need syntax highlighting and basic code editing features. Is there anything for Linux that can do this? I don't want to run EditPlus via Wine
I need to save locally and remotely simultaneously, or at least with a few keystrokes. I already know of plenty of ways to edit remote files.
Is there an open source application that can download e-mails from a generic POP mail server, keep a copy of the mails locally and then deliver copies to multiple accounts on a LAN? I have a friend who uses a group e-mail account, and more than one person is always hooked onto that account. The problem is they cannot leave e-mail on the server, as it eats out their webhosting space, but if someone downloads a message in Outlook, the other users do not see that message.
I can set my EDITOR variable in my .bashrc to e.g. gedit, which is a nice graphical editor on ubuntu. But when I log in over PuTTY that editor will fail.What is the best way to detect if I'm logged in and can run a graphical editor, or not, and set EDITOR appropriately?
I am installing a program on a server as a non-root user. Specifically it is tmux 1.5, but this should apply broadly to all locally installed program in my opinion (I mention the program name in case this problem ends up not being my own error).
The program requires me to install some dependent libraries (e.g. libevent and ncurses). So, I installed them both locally since I do not have root access
cd $HOME/library/installation/folder DIR=$HOME/local ./configure --prefix=$DIR #... make ... make install
[Code]....
Ok, so this installs the program without problems into $HOME/local/bin, but if I run the executable: $HOME/local/bin/tmux , I get the following error:
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
It would seem to me that the program cannot find the desired libraries, but the file libevent-2.0.so.5 does indeed exist in $HOME/local/lib as specified in the configure options. I am wondering how I can get the program to recognize the installed library in order to run. I tried putting symbolic links in $HOME/lib, $HOME/bin, and $HOME/local/bin, but none of these worked.
What I'm trying to do is to grant my regular user to locally mount partitions and shutdown the machine without a password. Here is what I've done to /etc/sudoers:
Code:
Host_Alias LOCAL = localhost Cmnd_Alias SHUTDOWN = /sbin/shutdown Cmnd_Alias MOUNT = /bin/mount, /bin/umount <my_username> LOCAL=(root) NOPASSWD: SHUTDOWN, MOUNT %wheel ALL=(ALL) ALL
My user is a member of wheel group and I want to type the password for each sudo command except for shutdown and mount. However I am asked for a password whenever I execute "sudo mount [...]" or "sudo shutdown [...]".
I have tried to host a website at home (consider it a good option and learning experience). After using some Linux distros finally decided to stick with UBUNTU (10.10). Sadly everything was ok until the configuration of BIND9 finally failed.
I am nearly blind with most concepts of networking, my understanding is really basic and am guessing my problem is on that direction but really can not figure it out.
My set up is based on a guide found at [url] and have just changed the domain name so my configuration files are:
And for the reverse zone:
My resolv.conf file looks as follows:
With the last three lines being the IP of my ISP DNSs and declared in /etc/bind/named.conf.options as formwarders.
The output of named-checkzone arquibailleres.com is:
And:
When my BIND service is restarted its output log clearly states that the zones are added and indicates "sending notifies" yet by using dig and ping everything works nicely but when I try to connect to the site from an external computer my site simply is not recognised.
Ping output:
Dig output:
I have rented a static IP address, but still when looking for my global address I see: 201.130.192.159.
To me it looks like it is working, but I already mentioned that my understanding of that stuff is really poor, I have finally ran the "port scan tool" under System -> Administration -> Network Tools and it indicates that my port 53 is assigned to "domain" and open, also port 80 is open for www.
How would I set up a website that would be only accessible locally. There's a router machine (server) that keeps provides internet access for a number of client machines. I need to set up a learning platform (moodle) locally. The server machine runs moodle server (apache server) and students should have access to their accounts locally (no need to be accessible outside of LAN). First of all, what would be the best network configuration for it.Sorry for a dumb question, but could I just come up with any domain name if everything stays locally within LAN?
Is it possible to develop my websites locally before uploading them to my host? I need PHP and MYSQL. I'd like to have basically http access to my websites locally on my hard disk but restrict access to only me. No access outside of this machine. How to do this?
I'm planning a trip and google maps/bing maps/mapquest seem to not like to have too many points on the itinerary. Is there a good similar program that I can run locally?
I've got an SSH server setup on my box which is running locally fine. I can connect to it through my local laptop but when I try to connect through the internet either via my IP or using the DynamicDNS I have setup both get an operation timed out message.I've got firestarter running with an inbound policy to allow connections from any host to port 22. I've also gone into my Netgear router and selected to forward any inbound connections to port 22 to the IP of the box that's got the SSH server on it.
Even with all this the connection just isn't being made. I've also tried temporarily setting the DMZ option on the router to forward all inbound connections to the IP of the Ubuntu box but still get the same Operation time out. Is there any other options that wouldn't allow remote connections via SSH? Or am I missing something hugely obvious here? Maybe it's possible to connect to SSH via a different port or something?I'm running Ubuntu 10.4 and have installed openssh-server via Synaptic. Would be great to get this working so I can use it as a tunnel from work and access the VNC, which I've been told should be done via SSH anyway.