Archive for July, 2007

Proxy List (s) Update 26 July 2007

213.239.218.131: 3128 anonymous server Jul-25, 23:48 Germany
211.74.162.107: 8080 anonymous proxy server Jul-25, 22:27 Taiwan
59.76.81.3: 8080 anonymous server Jul-25, 23:33 China
203.125.255.88: 8080 anonymous proxy server Jul-25, 18:32 Singapore
202.175.60.214: 80 anonymous proxy server Jul-25, 15:38 Macau
124.30.29.19: 8080 anonymous proxy server Jul-25, 22:14 India
202.33.129.139: 8000 anonymous proxy server Jul-25, 20:00 Japan
209.59.121.122: 8080 anonymous server Jul-25, 23:57 Virgin Islands,
222.151.211.93: 8080 anonymous server Jul-25, 23:54 Japan
82.178.89.205: 80 high-anonymous server Jul-25, 18:35 Oman
88.208.201.14: 80 high-anonymous server Jul-25, 18:31 United Kingdom
202.181.246.68: 4691 high-anonymous server Jul-25, 18:04 Hong Kong
82.178.89.240: 80 high-anonymous server Jul-25, 18:01 Oman
217.141.250.204: 80 high-anonymous server Jul-25, 23:55 Italy
82.178.89.229: 80 high-anonymous server Jul-25, 19:33 Oman
82.178.95.168: 80 high-anonymous server Jul-25, 21:37 Oman
82.178.88.212: 80 high-anonymous server Jul-25, 21:37 Oman
128.192.101.217: 3127 high-anonymous proxy server Jul-25, 18:30 United
129.237.161.193: 8888 high-anonymous server Jul-25, 18:18 United
129.82.12.187: 3128 high-anonymous server Jul-25, 16:21 United States
82.178.93.245: 80 high-anonymous proxy server Jul-25, 17:32 Oman
85.154.167.128: 80 high-anonymous server Jul-25, 17:32 Oman
68.80.198.46: 2392 high-anonymous proxy server Jul-25, 17:06 United
217.141.108.200: 80 high-anonymous proxy server Jul-25, 21:59 Italy
71.140.173.217: 2601 high-anonymous proxy server Jul-25, 17:04 United
82.178.93.198: 80 high-anonymous server Jul-25, 17:34 Oman
82.178.93.20: 80 high-anonymous proxy server Jul-25, 17:35 Oman
200.21.168.42: 8080 high-anonymous proxy server Jul-25, 23:31 Colombia
218.74.122.100: 80 high-anonymous server Jul-25, 23:30 China
200.195.95.38: 80 high-anonymous server Jul-25, 23:03 Brazil
218.25.214.216: 80 high-anonymous server Jul-25, 23:56 China
202.64.220.99: 8080 high-anonymous proxy server Jul-26, 00:00 Hong
200.121.64.100: 8080 high-anonymous proxy server Jul-25, 23:31 Peru
190.1.152.161: 6588 high-anonymous server Jul-25, 23:08 Colombia
82.178.95.227: 80 high-anonymous proxy server Jul-25, 22:07 Oman
82.178.86.27: 80 high-anonymous server Jul-25, 22:07 Oman
82.178.92.131: 80 high-anonymous proxy server Jul-25, 22:07 Oman
62.231.243.136: 66 high-anonymous proxy server Jul-25, 22:11 Oman
128.112.139.80: 3127 high-anonymous proxy server Jul-25, 22:30 United
128.112.139.80: 3124 high-anonymous proxy server Jul-25, 22:30 United
132.252.152.194: 3127 high-anonymous server Jul-25, 22:56 Germany
194.36.10.154: 3124 high-anonymous proxy server Jul-25, 22:56 United
80.237.140.233: 8000 high-anonymous proxy server Jul-25, 13:48 Germany
80.237.140.233: 3382 high-anonymous proxy server Jul-25, 17:59 Germany
82.178.89.220: 80 high-anonymous server Jul-25, 14:39 Oman
18.85.13.75: 80 high-anonymous server Jul-25, 23:15 United States
76.31.171.163: 2441 high-anonymous server Jul-25, 21:38 United States
82.178.86.91: 80 high-anonymous proxy server Jul-25, 14:40 Oman
138.251.214.19: 3124 high-anonymous server Jul-25, 08:59 United
69.121.174.6: 7212 high-anonymous server Jul-25, 15:41 United States
192.38.109.144: 3127 high-anonymous proxy server Jul-25, 22:56 Denmark
132.252.152.194: 3124 high-anonymous proxy server Jul-25, 22:07
131.188.44.100: 3127 high-anonymous proxy server Jul-25, 22:56 Germany
195.116.60.1: 3127 high-anonymous proxy server Jul-25, 22:19 Poland
82.178.95.170: 80 high-anonymous proxy server Jul-25, 21:34 Oman
200.31.42.3: 80 high-anonymous server Jul-25, 23:32 Chile
69.247.70.13: 2399 high-anonymous proxy server Jul-25, 22:00 United
151.204.41.29: 8080 high-anonymous proxy server Jul-25, 23:16 United
82.178.88.99: 80 high-anonymous server Jul-25, 22:06 Oman
88.163.76.154: 2481 high-anonymous proxy server Jul-25, 21:41 France
75.28.168.172: 2443 high-anonymous proxy server Jul-25, 21:02 United
212.13.37.118: 80 high-anonymous proxy server Jul-25, 21:02 Portugal
66.215.202.191: 1028 high-anonymous server Jul-25, 20:33 United States
82.178.86.43: 80 high-anonymous proxy server Jul-25, 21:37 Oman
82.178.89.241: 80 high-anonymous server Jul-25, 21:36 Oman
82.178.95.204: 80 high-anonymous proxy server Jul-25, 21:36 Oman
82.178.95.245: 80 high-anonymous proxy server Jul-25, 21:35 Oman
85.154.167.151: 80 high-anonymous proxy server Jul-25, 16:04 Oman
212.0.126.202: 80 high-anonymous proxy server Jul-25, 19:41 United
85.154.167.139: 80 high-anonymous server Jul-25, 16:08 Oman
80.237.140.233: 444 high-anonymous proxy server Jul-25, 16:16 Germany
82.178.89.203: 80 high-anonymous proxy server Jul-25, 17:37 Oman
85.154.167.142: 80 high-anonymous proxy server Jul-25, 18:32 Oman
80.237.140.233: 8080 high-anonymous proxy server Jul-25, 19:58 Germany
140.247.60.123: 8888 high-anonymous server Jul-25, 15:40 United States
80.237.140.233: 8888 high-anonymous server Jul-25, 20:00 Germany
82.178.95.216: 80 high-anonymous proxy server Jul-25, 16:19 Oman
82.178.87.158: 80 high-anonymous proxy server Jul-25, 15:02 Oman
82.178.89.157: 80 high-anonymous server Jul-25, 15:01 Oman
82.178.88.183: 80 high-anonymous proxy server Jul-25, 15:33 Oman
68.56.177.92: 2393 high-anonymous server Jul-25, 15:19 United States
150.165.15.18: 3127 high-anonymous proxy server Jul-25, 22:08 Brazil
130.75.87.84: 3124 high-anonymous proxy server Jul-25, 22:21 Germany
130.161.40.154: 3128 high-anonymous proxy server Jul-24, 16:15
192.38.109.144: 3124 high-anonymous proxy server Jul-25, 22:05 Denmark
198.133.224.145: 3127 high-anonymous proxy server Jul-24, 16:16 United
82.178.95.231: 80 high-anonymous proxy server Jul-25, 14:18 Oman
82.178.86.199: 80 high-anonymous proxy server Jul-25, 14:35 Oman
82.178.95.249: 80 high-anonymous proxy server Jul-25, 14:36 Oman
82.178.89.255: 80 high-anonymous proxy server Jul-25, 14:27 Oman
82.178.89.221: 80 high-anonymous server Jul-25, 14:27 Oman
82.178.88.121: 80 high-anonymous server Jul-25, 14:26 Oman
82.178.89.234: 80 high-anonymous server Jul-25, 14:26 Oman
85.154.167.132: 80 high-anonymous server Jul-25, 14:32 Oman
85.154.167.131: 80 high-anonymous proxy server Jul-25, 14:36 Oman
85.154.167.157: 80 high-anonymous server Jul-25, 14:38 Oman
169.229.50.12: 3124 high-anonymous server Jul-25, 23:33 United States
82.178.88.165: 80 high-anonymous proxy server Jul-25, 18:32 Oman
85.154.167.156: 80 high-anonymous proxy server Jul-25, 14:05 Oman
82.178.95.193: 80 high-anonymous server Jul-25, 14:38 Oman
85.154.167.159: 80 high-anonymous proxy server Jul-25, 14:06 Oman
194.36.10.154: 3128 high-anonymous proxy server Jul-25, 22:06 United
203.178.133.3: 3128 high-anonymous server Jul-25, 18:29 Japan
128.208.4.198: 3128 high-anonymous proxy server Jul-25, 22:05 United
129.12.3.75: 3128 high-anonymous proxy server Jul-25, 22:05 United
143.205.172.12: 3127 high-anonymous server Jul-25, 21:16 Austria
129.24.17.69: 3128 high-anonymous server Jul-25, 22:19 United States
128.112.139.97: 3124 high-anonymous proxy server Jul-25, 22:05 United
128.112.139.97: 3128 high-anonymous proxy server Jul-25, 22:05 United
130.88.203.26: 3124 high-anonymous proxy server Jul-25, 21:20 United
131.246.191.42: 3124 high-anonymous server Jul-25, 22:19 Germany
129.12.3.75: 3124 high-anonymous proxy server Jul-25, 22:05 United
143.205.172.12: 3128 high-anonymous server Jul-25, 22:19 Austria
193.136.227.163: 3128 high-anonymous proxy server Jul-25, 12:09
128.31.1.11: 3128 high-anonymous server Jul-25, 12:09 United States

Comments

Writing a Shell Script that executes Locally OR Remotely

There are a lot of times when it is useful to have a single shell script run both upon the local host, and also upon remote hosts. Here we’ll show a simple trick which allows you to accomplish this easily.

To execute shell scripts remotely the most obvious approach is to copy it there, with scp, and then use ssh to actually execute it. This is similar to running simple commands remotely using ssh directly:

skx@mine:~$ ssh yours uptime
07:12:25 up 3 days, 18:15,  0 users,  load average: 0.00, 0.00, 0.08
skx@mine:~$

With that in mind the solution becomes:

  • Write a simple shell script which will be useful.
  • Determine whether it should run remotely, and if so:
    • Copy itself there.
    • Execute itself there.

As an example we’ll look at a simple script which will report upon the uptime of the system it is executed upon:

Here is the script:

#!/bin/sh

#
#  Are we installing locally?  Or remotely?
#
if [ ! -z $1 ]; then

#  Hostname
host=$1

#  Create a secure temporary file.
file=`mktemp`

#  Create a temporary file, and copy the contents of ourself into
# it.  Making sure it has a shebang.
echo "#!/bin/sh"                > "${file}"
grep -A2000 '^#-=-MARKER-=' $0 >> "${file}"
chmod 755 "${file}"

#  Copy the file to the remote host, and invoke it
scp "${file}" ${host}:
ssh "${host}" ./`basename ${file}`

#  Cleanup remotely and locally.
ssh "${host}" /bin/rm `basename ${file}`
rm ${file}

#  All done - the rest of the script will occur remotely.
exit
fi

## THE NEXT LINE IS IMPORTANT     - DO NOT EDIT.  DO NOT REMOVE.
#-=-MARKER-=-
## THE PREVIOUS LINE IS IMPORTANT - DO NOT EDIT.  DO NOT REMOVE.

uptime

Here you can see that the script detects whether to run remotely or not based upon the presence of a command line argument, so this is local execution:

skx@mine:~$ ./uptime.sh
14:05:10 up  4:59,  4 users,  load average: 0.05, 0.05, 0.07

Whereas this is remote:

skx@mine:~$ ./uptime.sh cfmaster.my.flat
tmp.RRjRSx9137                                100%   98     0.1KB/s   00:00
14:05:28 up 430 days, 20:02,  0 users,  load average: 9.72, 6.58, 4.26

Neat huh?

The key to this script is that it can separate out the “real” work of the script so that only the end of the script is copied to the remote host - the part after the argument processing. This is achieved with the following command:

grep -A2000 '^#-=-MARKER-=' $0

This uses the “-A” option of GNU grep to cause it to print out a number of line after the line beginning “#-=-MARKER-=” - this is the part of the script that actually reports on the system uptime, and this is the part you’d replace with your own code.

The relevant lines are then placed into a temporary file and copied to the host upon which it should execute them. (If you didn’t have key-based authentication setup you’d be prompted for your password three times; the first time for the copy, the second time for the execution, and the final time to cleanup the file which was copied.)

Using a simple system like this you could easily write scripts that would preform tasks like installing CFEngine locally or remotely.

Comments

Installing Vmware Server on Debian Etch 4.0

To install VMware server on Debian Etch (4.0) you first need to have Etch installed on you host PC, you can achieve this by using the netinst CD available at: http://www.debian.org/devel/debian-installer/ Once you have it installed you can proceed with this How To install VMware server on Debian Etch

1.- First install some software needed (as root)

apt-get install libx11-6 libx11-dev libxtst6 xinetd wget

apt-get install linux-headers-`uname -r` build-essential

apt-get install binutils-doc make manpages-dev autoconf automake1.9 libtool flex bison gdb libc6-dev-amd64 lib64gcc1 gcc-2.95-doc

apt-get install gcc apt-get install g++

(Thanks to Marga: read here 2.- Get the Software You can get the vmware server here: http://www.vmware.com/download/server/ and do not forget to obtain the serial number by registering here: http://register.vmware.com/content/registration.html

3.- Installation You can use wget, to get the appropiate code, or any mean you prefer, once you have the .tar.gz file tar xvzf [package_downloaded] cd vmware-server-distrib ./vmware-install.pl here you just need to press enter, enter, enter to all questions, unless you want a more presonalized configuration, i.e. if you have two NICs and want both of the bridged to vmnet0 and vmnet2 as in my case, just follow the instructions in the script.

4.- Patching the software As Etch has a newer version of Kernel the VMware server needs to be patched, here is how.

– Get the code Download from here: http://jaws.go2linux.org/archivos/vmware-any-any-update109.tar.gz

– Unpack it tar xvzf vwmare-any-any-update108.tar.gz

– Change to its directory cd vwmare-any-any-update108

– Run the script that is going to patch the VMWare.

./runme.pl 5.- Automatic start vmware at start update-rc.d vmware defaults 20 Enjoy your vmware server installed on your Debian 4.0 Etch

Original Article Source: http://www.go2linux.com/

Comments (2)