Showing posts with label build. Show all posts
Showing posts with label build. Show all posts

Wednesday, 19 June 2013

tsunami-udp: faster than rsync


  1. build
    1. sudo apt-get install git gcc
    2. sudo apt-get install automake autoconf
    3. git clone git://github.com/rriley/tsunami-udp.git
    4. cd tsunami-udp
    5. ./recompile.sh
    6. sudo make install
  2. run
    1. you'll need a port open to allow direct connection from client to server
      1. unfortunately, this doesn't work through NAT firewalls alone
      2. firewall / port forwarding
        1. to server, TCP, 46224 by default
        2. to client, UDP, 46224 by default
    2. start up server
      1. tsunamid myfile.gz
    3. connect with client
      1. tsunami set rate 5M connect myserver.domain.com get myfile.gz
      2. it will flood your connection if you dont set rate properly
  3. documentation
    1. http://tsunami-udp.cvs.sourceforge.net/viewvc/tsunami-udp/docs/USAGE.txt
    2. splits files automatically
    3. allows wildcards when running server and client commands, "*", namely
      1. client will auto-find all files served, one after the next
      2. use forward-slash, i.e. get \*, for client command 
        1. so bash doesn't intrepret the asterisk
  4. undocumented
    1. doesn't do subdirectories, better tar that up and have plenty of disk space

Tuesday, 5 March 2013

Build rpm of monit 5.5

  1. Download https://github.com/pcharlesleddy/misc/blob/master/monit.spec
    1. change "_topdir" to match your local system.
  2. cd into what you set _topdir to
  3. mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp}
  4. Download monit-5.5.tar.gz file and put it in the SOURCES directory
  5. Put monit.spec in the SPECS directory
  6. rpmbuild -v -bb --clean SPECS/monit.spec
    1. yum -y install rpmdevtools
  7. Output should mention where the rpm ended up
  8. rpm -qlp on the rpm file to see what's in it
Gory details: http://fedoraproject.org/wiki/How_to_create_an_RPM_package

Notes
  1. "%spec -q" means be "quiet" when untarring, not that interesting, but people use it a lot

    Interview questions: 2020-12

    Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...