Skip to main content

Posts

Showing posts from 2016

DevOps JD's required skills from LinkedIn

From some of DevOps JD on linkedIn, I realised that DeveOps should be the leader of the organization. https://docs.google.com/spreadsheets/d/1P520nH0pYcAdN0rJcnMQqsgu9cV9GdknztJ92J8l7-s/pubhtml DevOps' Required Skills From LinkedIn on 8/30/16: DevOps should be the leader of the company! Yahoo Netflix Samsung Salesforce Fortinet SUM OS admin UNIX systems Unix platforms Linux administrator Linux VMs Docker VMs VMware, OpenStack, Hyper-V Openstack, KVM, VMWare Version control version control systems Git, SVN Cloud Amazon AWS AWS AWS, Azure DB MySql Oracle, MySQL, NoSQL Mysql administration and strong command of SQL MySQL RabbitMQ MySql, MongoDB, Redis, Oracle, ProgreSQL N/W TCP/IP networking, DNS, HTTP NAS Understanding of network stack, network tuning, subnet/VLANs. HAProxy, DNS, IPTable Script Lang Shell, Perl, Python, Ruby, PHP bash Python, Bash/tcsh a scripting language: Perl, Python and Unix Shell preferred Python, Perl, Ruby Python, Ruby, Shell, PHP Web LAMP stack

Install CoreOs on linode without VM

Install CoreOs on linode without VM 1. Add a Linode 2. Create a new Disk   CoreOS 3. Rescue > Reboot into Rescue Mode 4. Remote Access   Launch Lish Console 5. make an install script cat <<'EOF1' > install.sh # add needed package sudo apt-get update sudo apt-get install -y curl wget whois sudo apt-get install -y ca-certificates #sudo apt-get install gawk -y # get discovery url discoveryUrl=`curl https://discovery.etcd.io/new` # write cloud-config.yml cat <<EOF2 > cloud-config.yml #cloud-config users:   - name: core     groups:       - sudo       - docker coreos:   etcd:     name: node01     discovery: $discoveryUrl hostname: node01 EOF2 # get the coreos installation script #wget https://raw.github.com/coreos/init/master/bin/coreos-install wget https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install # run installation chmod 755 coreos-install sudo ./coreos-install \       -d /dev/sda \       -

Fortidirector setting with GoDaddy

Fortidirector setting with GoDaddy cf.  https://www.youtube.com/watch?v=HjHGsqyawqQ&feature=youtu.be < Fortidirector Service cases > - Real serivce domain:  http://topzone.biz 1. http redirection (Herp) curl -v http://chart.topzone.biz => < HTTP/1.1 302 Found < Location: http://topzone.biz/ 2. dns redirection (Derp) dig +trace map.topzone.biz => map.topzone.biz. 1 IN CNAME topzone.biz. ;; Received 58 bytes from 23.249.53.30#53(r0.r1cd.com) in 51 ms - supported by health check (http, tcp, ping etc) < Fortidirector Settings > [Herp Setting] 1. add Records in godaddy https://dcc.godaddy.com/manage/topzone.biz/dns Type Name Value TTL CNAME chart cnames.r1cd.com 600 seconds 2. add http resource in fortidirector https://www.fortidirector.com/fd/app/traffic_manager/network_resources - from url dewey_from_http http://chart.topzone.biz/ - to url dewey_to_http http://topzone.

IPv6 over IPv4 tunneling

= [ ipv6 over ipv4 tunneling ] ==================================== In order to test ipv6, you can use ipv6 over ipv4 tunneling like this, source server --> tunnelbroker --> target server https://tunnelbroker.net/new_tunnel.php check ipv6 - ubuntu $ ip -6 addr - mac / ubuntu $ ifconfig | grep inet6 - check ipv6 scope https://www.ultratools.com/tools/ipv6CIDRToRange - source server IPv4 Endpoint (Your side): 110.232.77.37 Available Tunnel Servers: IPv6 Tunnel Endpoints Server IPv4 Address:74.182.46.6 Server IPv6 Address:2001:470:23:15c::1/64 Client IPv4 Address:110.232.77.37 Client IPv6 Address:2001:470:23:15c::2/64 vi /etc/network/interfaces auto he-ipv6 iface he-ipv6 inet6 v4tunnel         address 2001:470:23:15c::2         netmask 64         endpoint 74.182.46.6         local 110.232.77.37         ttl 255         gateway 2001:470:23:15c::1 sudo service networking restart ping6 2001:470:23:15c::2 - target server https://tunnelbroke

Build Apache HTTP Server on fedora 16

Build Apache HTTP Server on fedora 16 # make fedora 16 VM http://doohee323.blogspot.kr/2016/03/making-fedora-16-vm-and-install-openssl.html #!/ usr /bin/ env bash set -x #export TMP=/root/ tmp export TMP=/home/vagrant/ tmp mkdir -p $TMP # 0) zlib cd $TMP wget http://zlib.net/zlib-1.2.8.tar.gz tar xvfz zlib -1.2.8.tar.gz cd zlib -1.2.8 ./configure make sudo make install # 1) openssh sudo rm - Rf / usr /lib64/ openssl / usr /local/ openssl / usr /share/man/man1/ openssl .1ssl.gz sudo rm - Rf / usr /local/ ssl /bin/ openssl / usr /local/ ssl /include/ openssl / usr /local/include/ openssl sudo rm - Rf / usr /share/bash-completion/ openssl / usr / lib /ruby/1.8/ openssl sudo rm - Rf / usr /bin/ openssl / usr /include/ openssl cd $TMP wget https://openssl.org/source/openssl-1.0.2g.tar.gz tar xvfz openssl -1.0.2g.tar.gz cd openssl -1.0.2g ./ config --prefix=/ usr -- openssldir =/etc/ ssl -- libdi

Making fedora 16 VM and install openssl

# make VM in vagrant https://github.com/doohee323/fedora16_in_vagrant # change repo. source vi /etc/yum.repos.d/fedora.repo sudo mkdir /etc/yum.repos.d/repo.disabled sudo mv /etc/yum.repos.d/* repo.disabled sudo vi /etc/yum.repos.d/fedora16.repo [Fedora16-Repository] name=DVD-Fedora16 Repository baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/16/Fedora/x86_64/os/ enabled=1 gpgcheck=0 yum clean all yum search glibc sudo yum install glibc-common.x86_64 # get source sudo yum install curl-devel expat-devel gettext-devel \   openssl-devel perl-devel zlib-devel git clone https://github.com/openssl/openssl.git git ls-remote --tags ./. git ls-remote --tags ./. | grep OpenSSL_1_0_2 git checkout tags/OpenSSL_1_0_2g git describe --tags # build ./config #./config --prefix=/usr/local --openssldir=/usr/local/openssl make make test sudo make install export PATH=$PATH:/usr/local/ssl/bin # version check openssl version -a [vagrant@loc

Make build Env. for Golang and zmq in Chroot

https://github.com/doohee323/buildGoInChroot When you need to build Golang app. in different ubuntu version, you can use chroot. I made it for the usecase. It makes chroot environment and a builds debian file. And I made a lucid with vagrant, and installed below 3 ubuntu version debians in it. Since ZMQ library is needed for this app, only lucid debian can run in lucid VM. Required 1. install chroot apt-get install dchroot apt-get install debootstrap 2. edit chroot configuration vi /etc/schroot/schroot.conf [precise] description=Ubuntu precise location=~/chroot/precise priority=3 users=hello group=hello root-groups=root [lucid] description=Ubuntu lucid location=~/chroot/lucid priority=3 users=hello group=hello root-groups=root [trusty] description=Ubuntu trusty location=~/chroot/trusty priority=3