Fastest way of transferring files between 2 server's over network

Below are file transfer tips from the geek..

Fastest way of transferring files between 2 server's over network

-- SCP : (20MB/sec)
-- FTP : requires ftp installed id/password  : 40MB/sec
-- NetCAT : might work if netcat is installed.  : 60MB/sec      

   source : tar -cvzf /dir/ |netcat -l 7777
   client :  netcat source_ip:7777 |tar -xvzf path
-- Using Python / WGet : Ninja Master : 80MB/sec

 # cd $folder_have the file
 # Start python webserver with this command.
 python -m SimpleHTTPServer
Client :
  wget -c http://x.x.x.239:8000/$file

-c will recover from a file break if something broke half way.

Iptables Port forwarding for VNC

 /sbin/iptables -A PREROUTING -t nat -p tcp -d $NATIP --dport 5900 -m 
state --state NEW,ESTABLISHED,RELATED -j DNAT --to

Monitor your Boot Sequence with Bootchart

Ubuntu – Monitor your Boot Sequence with Bootchart

About Bootchart
Bootchart is a tool used to analyse your system performance in linux boot process.
It process all the required information accumulated during the boot process
(CPU usage and disk usage) which will then display as PNG, SVG, EPS encoded chart.
First of all you will have to Install Bootchart on Ubuntu.


sudo aptitude install bootchart
Reboot your PC

When you restart your computer Bootchart will create a graphical illustration in .png format.
Disabling and Enabling Bootchart
To disable Bootchart just use these code:

cd /etc/init.d

sudo update-rc.d -f stop-bootchart remove

 Removing any system startup links for /etc/init.d/stop-bootchart


And to re-enable just use these codes:

cd /etc/init.d

sudo update-rc.d stop-bootchart start 99 2 3 4 5 .

 Adding system startup for /etc/init.d/stop-bootchart ...

   /etc/rc2.d/S99stop-bootchart -> ../init.d/stop-bootchart
   /etc/rc3.d/S99stop-bootchart -> ../init.d/stop-bootchart
   /etc/rc4.d/S99stop-bootchart -> ../init.d/stop-bootchart
   /etc/rc5.d/S99stop-bootchart -> ../init.d/stop-bootchart

Common Scripting errors for beginners

when i  started scripting i had these errors in the begenning . The most common mistakes one makes during his initial stages of scripting are.

1.Check script file permissions. A script needs execute permission

2.We should not use default values that generate errors.If you
  give those your script execution breaks in the middle.

3.We must supply parameters as required ie make parameter mandatory
  if parameter is to be provided for sure, or else it throws an error.

4. Resuable script should not be hard-coded values.Use parameters  instead.

5.Commenting the script is very important... Make it a habbit to write
  comments.Also specify in comments if script has multiple parameters.
  you can also write examples in comments for better understanding.

6. Error handling is a must for scripting

what is Citrix presentation server ?

Citrix presentation server uses ICA protocol

allow to remotely access individual application.

It appears on the task-bar so we can toggle around the screens.

Adds management infrastructure ( allow more sessions on to server)

ability to start applications from a web site