Enabling X11Forwarding Remotely


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Enabling X11Forwarding Remotely
# 1  
Old 11-11-2009
Enabling X11Forwarding Remotely

When my developer installs a new build, all the servers have X11Forwarding turned off. I would like to write a script to execute from the main server in the suite and have it enable X11Forwarding on all the remote servers.

I created a script that I can execute as root to change the config file and restart the deamon. (The script is convieniently located in a directory that all the servers can mount to.) But... I need to log into 20 machines and su to root to execute it.

Is there a way I can ssh into each machine as root and execute the script?

I've tried something like...

foreach host ($hostlist)
ssh $host su - root -c /here/there/enable_X11script.sh
end


... and it complains about needing to execute in a standard tty.



Any help that would reduce the manual entry across 20 servers would be appreciated.


Scott E.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Enabling services.

Hi, I would like to know wheather it is possible to enable same services on another Linux Box, which are enabled on First Linux Server. Example. Server A having some services enabled, I want same kind of services enabled on Server B using single command / using chkconfig command, instead... (4 Replies)
Discussion started by: manoj.solaris
4 Replies

2. Red Hat

XWindow is not enabling !!!

Dear Experts, Our system admin is struggling over a month with an issue regarding xwindow. RHEL 5.4 is our server OS. whenever I export Display with my machine IP and run xclock. It is not working. We are using DHCP. Please tell me what checks and actions should be taken from our sys admin point... (8 Replies)
Discussion started by: saifurshaon
8 Replies

3. UNIX for Dummies Questions & Answers

Help with enabling ports.

Hi All, How to enable or disable a port in solaris 10. Thanks in advance.:) (3 Replies)
Discussion started by: rama krishna
3 Replies

4. Solaris

Enabling MQ Listeners

Hi I've been trying to change the services for MQ listeners using inetaconv and inetadm. The MQ was already installed and Im trying to change the QManager name. Ive creted the appropriate files (MQSeries-tcp.xml) and am now trying to enable MQSeries and then refresh the service: inetadm... (2 Replies)
Discussion started by: billy_mega
2 Replies

5. Cybersecurity

Enabling C2 audit

hey guys, im going to enable C2 auditing on a sun box, i know how to do it, but im just wondering if there are any issues or problems that i may run into. this will be my first major change (since i have to reset the box) since i joined this company and i dont really wanna kill their servers, so... (2 Replies)
Discussion started by: roguekitton
2 Replies

6. AIX

Enabling 64 bit

Hi, I am having some issues installing Oracle 10G Release 2 on my AIX 5.2L box. Here is what i do: 1- Extract the 10gr2 64bit cpio file using cpio -icdmv < install_file.cpio 2- Once the file is extracted, i run the rootpre.sh file. I got no error message so far everything is fine 3-... (3 Replies)
Discussion started by: Netghost
3 Replies

7. Solaris

Enabling NTP ....

Hi , What is the best way to configure NTP ( Network Timing Protocol ).. on Solaris 9 .... I have 5 Servers. Regards (2 Replies)
Discussion started by: ArabOracle.com
2 Replies

8. UNIX for Dummies Questions & Answers

enabling TFTP

ive been trying to enable a tftp service on a unix box using the command atftpd --daemon but when i scan the open ports using nmap it doesnt show that port 21 as up does anyone know the reason... ive tried /etc/init.d/atftpd start , it didnt work if i type atftpd by it self it gives me a set... (2 Replies)
Discussion started by: ratamahatta
2 Replies

9. Programming

Enabling Far in GCC

hello, i want to enable far in gcc, how to enable this. pls reply back thanx in advance. svh (1 Reply)
Discussion started by: svh
1 Replies
Login or Register to Ask a Question
SHUNIT2(1)																SHUNIT2(1)

NAME
shunit2 - A unit test framework for shell scripts SYNOPSIS
shunit2 unitfile DESCRIPTION
shUnit2 is a xUnit unit test framework for Bourne based shell scripts, and it is designed to work in a similar manner to JUnit, PyUnit, etc.. If you have ever had the desire to write a unit test for a shell script, shUnit2 can do the job. You can either run shunit2 directly from the commandline and specify the unit file or directly source the shunit2 executable. If you directly execute shunit2 and don't specify a unitfile shunit2 assumes a empty testfile and will return without an error message. EXAMPLE
Simple script to test if 1 equals 1 #! /bin/sh testEquality() { assertEquals 1 1 } # load shunit2 . shunit2 Execute shUnit2 unit tests directly from the commandline shunit2 /path/to/unit/file OPTIONS
shunit2 does not support any commandline options at all. You can either source shunit2 to execute your unit tests or directly run shunit2 as a commandline script. SEE ALSO
For more information see http://code.google.com/p/shunit2/ or have a look at the installed documentation in /usr/share/doc/shunit2/ AUTHOR
shunit2 was written by Kate Ward <kate.ward@forestent.com>. This manpage was written by Ulrich Dangel <mru@spamt.net>. 2.1.6 03/25/2012 SHUNIT2(1)