Skip to content

Instantly share code, notes, and snippets.

@ltiao
Last active December 19, 2015 18:18
Show Gist options
  • Select an option

  • Save ltiao/5997561 to your computer and use it in GitHub Desktop.

Select an option

Save ltiao/5997561 to your computer and use it in GitHub Desktop.
  • 安裝 easy_install, pip

    yum install python-setuptools
    easy_install pip
  • 安裝 pexpect

    pip install pexpect
  • 安裝 Django

    pip install Django==1.5.1
  • 安裝 git

    yum install git
  • Autobackup 程式

    cd /home
    git clone git://github.com/ltiao/autobackup.git
  • tftp

    yum install tftp-server
    yum install tftp

    /etc/xinetd.d/tftp

    # default: off
    # description: The tftp server serves files using the trivial file transfer \
    #	protocol.  The tftp protocol is often used to boot diskless \
    #	workstations, download configuration files to network-aware printers, \
    #	and to start the installation process for some operating systems.
    service tftp
    {
    	disable	= no
    	socket_type		= dgram
    	protocol		= udp
    	wait			= yes
    	user			= root
    	server			= /usr/sbin/in.tftpd
    	server_args		= -c -s /home/backup/tftproot
    	per_source		= 11
    	cps			= 100 2
    	flags			= IPv4
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment