Tag Archives: CentOS

Install Tsunami UDP on CentOS 7

Install dependencies:

$ yum install cvs git gcc automake autoconf libtool -y

Download Tsunami UDP:

$ cd /tmp
$ cvs -z3 -d:pserver:anonymous@tsunami-udp.cvs.sourceforge.net:/cvsroot/tsunami-udp co -P tsunami-udp
$ cd tsunami-udp
$ ./recompile.sh
$ make install

Then on the server side:

$ tsunamid --port 46224 * # (Serves all files from current directory for copy)

On the client side:

$ tsunami connect <server_ip> get *

Transfer dataset back to S3:

aws s3 cp --recursive /mnt/bigephemeral s3://<your-new-bucket>/


  • Tsunami UDP transfers only files and doesn’t do directories/ subdirectories, we need to tar them all up as one single tar file (additional storage capacity needs to be taken into consideration).
  • Multi-threading is not supported.
  • Multi session not supported. Client supports only one connection to the server at a time. No parallel file transfer.
  • No resume or retry for file transfer.
  • Does not support Native encryption.


redhat – No ruby-devel in RHEL7? – Stack Overflow

This answer comes by way of piecing together bits from other answers – so to the previous contributors…thank you because I would not have figured this out.This example is based on the RHEL 7 AMI (Amazon Managed Image) 3.10.0-229.el7.x86_64.So by default as mentioned above the optional repository is not enabled. Don’t add another repo.d file as it already exists just that it is disabled.To enable first you need the name. I used grep to do this:grep -B1 -i optional /etc/yum.repos.d/*above each name will be the repo id enclosed in [ ] look for the optional not optional-sourceEnable the optional repo:yum-config-manager –enable Refresh the yum cache (not sure if this is necessary but it doesn’t hurt):sudo yum makecacheFinally, you can install ruby-devel:yum install ruby-develDepending on your user’s permissions you may need to use sudo.

Source: redhat – No ruby-devel in RHEL7? – Stack Overflow

Install Transmission on CentOS 7

Nowadays it’s really simple to install Transmission on CentOS 7 or EL distro. First you need to install EPEL packages:

$ yum install epel-release
$ yum -y update

…or use the following command if you’re running Red Hat Enterprise Linux:

$ yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E '%{rhel}').noarch.rpm

Install Transmission:

$ yum install transmission-cli transmission-common transmission-daemon

Create storage directory:

$ mkdir /ebs-data/transmission/
$ chown -R transmission.transmission /ebs-data/transmission/

Start and stop the Transmission to auto generate configs:

$ systemctl start transmission-daemon.service
$ systemctl stop transmission-daemon.service

To edit the config, you MUST first stop the daemon, otherwise the config will be overwritten after you restart the daemon:

$ systemctl stop transmission-daemon.service
$ var /var/lib/transmission/.config/transmission-daemon/settings.json

Edit config:

"download-dir": "/ebs-data/transmission",
"incomplete-dir": "/ebs-data/transmission",
"rpc-authentication-required": true,
"rpc-enabled": true,
"rpc-password": "my_password",
"rpc-username": "my_user",
"rpc-whitelist": "",
"rpc-whitelist-enabled": false,

Save and start daemon:

$ systemctl start transmission-daemon.service

Access via your browser:

$ open http://localhost:9091/transmission/web/

Enable IPv6 Tunnel Broker on Aliyun CentOS 7

In /etc/modprobe.d/disable_ipv6.conf:

alias net-pf-10 off
#alias ipv6 off
options ipv6 disable=0

In /etc/sysctl.conf:


Then run sysctl -p to take effect.

Then in Example Configurations under HE.net Tunnel Details page, in the dropdown menu select Linux-route2, copy all the commands and paste into your server:

modprobe ipv6
ip tunnel add he-ipv6 mode sit remote local ttl 255
ip link set he-ipv6 up
ip addr add 2001:470:18:d18::2/64 dev he-ipv6
ip route add ::/0 dev he-ipv6
ip -f inet6 addr

Test the tunnel:

ping6 irc6.oftc.net

SELinux policy for nginx and GitLab unix socket in Fedora 19

The installation of GitLab in Fedora 19 went fine. I followed the official installation guide with some deviations where necessary, mostly taken from the CentOS guide in gitlab-recipes. I setup nginx using the ssl config, and poked some holes in iptables. For systemd services I used these files.

Source: SELinux policy for nginx and GitLab unix socket in Fedora 19

Run `sudo` with Ansible `become` Option on Google Compute Engine

Playbook config:

- name: basic setup
  hosts: default
  user: user
  become: true
  become_user: root
  become_method: sudo
    - tasks

If you got the following errors:

GATHERING FACTS *************************************************************** 
failed: [server1] => {"failed": true, "parsed": false}
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/user/.ssh/config
debug1: /Users/user/.ssh/config line 139: Applying options for server1
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: auto-mux: Trying existing master
debug1: mux_client_request_session: master session id: 2
sudo: sorry, you must have a tty to run sudo

Then visudo and disable requiretty:

Defaults    !requiretty

List and Change Kernel in CentOS 7

List kernels:

$ egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'
CentOS Linux (3.10.0-327.10.1.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-327.4.5.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-327.3.1.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-229.20.1.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-123.9.3.el7.x86_64) 7 (Core)
CentOS Linux, with Linux 0-rescue-45461f76679f48ee96e95da6cc798cc8

Set kernel to the fourth:

$ grub2-set-default 3