How to install gogs on centos7

# INSTALL GO and Gogs (github opensource server) on CENTOS 7 wget “https://dl.google.com/go/go1.10.linux-amd64.tar.gz” mv go1.10.linux-amd64.tar.gz /usr/local/ cd /usr/local/ tar -zxvf go1.10.linux-amd64.tar.gz ln -s /usr/local/go/bin/go /usr/local/bin/go ln -s /usr/local/go/bin/godoc /usr/local/bin/godoc ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt adduser -c “Gogs” git su – git […]

Tags: , , , , , ,

CentOS7 change interface name

In CentOS7 or RedHat7 again we have funky strange network interfaces names… To change the name back to eth0 just follow: 1. Rename the device name vi /etc/sysconfig/network-scripts/ifcfg-ens** 2. Rename the file mv /etc/sysconfig/network-scripts/ifcfg-ens192 /etc/sysconfig/network-scripts/ifcfg-eth0 3. add net.ifnames=0 biosdevname=0 to […]

Tags: , , ,