Wednesday, September 13, 2017

CENTOS installation

If the network does not work...


restart the network interface
ifdown eth0
ifup eth0
Or
restart the network interface
ifdown enpXsX
ifup enpXsX
sudo yum update

# Setup your ssh keys
http://programmingmatrix.blogspot.com/2017/07/ssh-github-setup.html

https://kyup.com/tutorials/edit-sudoers-file/

nmtui

http://www.krizna.com/centos/setup-network-centos-7/

Select connect automatically.

Desktop setup

https://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/


http://dl.fedoraproject.org/pub/epel/7/x86_64/e/


## RHEL/CentOS 7 64-Bit ##
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
# rpm -ivh epel-release-7-10.noarch.rpm
 
 

This howto guide shows you’ll how to enable EPEL repository under RHEL/CentOS 6/5 to install additional standard open source packages by using YUM command.



Install EPEL Repository in Linux
Read Also : Install and Enable RPMForge Repository in RHEL/CentOS 7/6/5/4

What is EPEL

EPEL (Extra Packages for Enterprise Linux) is open source and free community based repository project from Fedora team which provides 100% high quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS, and Scientific Linux. Epel project is not a part of RHEL/Cent OS but it is designed for major Linux distributions by providing lots of open source packages like networking, sys admin, programming, monitoring and so on. Most of the epel packages are maintained by Fedora repo.

Why we use EPEL repository?


  1. Provides lots of open source packages to install via Yum.
  2. Epel repo is 100% open source and free to use.
  3. It does not provide any core duplicate packages and no compatibility issues.
  4. All epel packages are maintained by Fedora repo.

How To Enable EPEL Repository in RHEL/CentOS 7/6/5?

First, you need to download the file using Wget and then install it using RPM on your system to enable the EPEL repository. Use below links based on your Linux OS versions. (Make sure you must be root user).

RHEL/CentOS 7 64 Bit

## RHEL/CentOS 7 64-Bit ## # wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm # rpm -ivh epel-release-7-10.noarch.rpm

RHEL/CentOS 6 32-64 Bit

## RHEL/CentOS 6 32-Bit ## # wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm ## RHEL/CentOS 6 64-Bit ## # wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm

How Do I Verify EPEL Repo?

You need to run the following command to verify that the EPEL repository is enabled. Once you ran the command you will see epel repository.
# yum repolist

Sample Output

Loaded plugins: downloadonly, fastestmirror, priorities Loading mirror speeds from cached hostfile * base: centos.aol.in * epel: ftp.cuhk.edu.hk * extras: centos.aol.in * rpmforge: be.mirror.eurid.eu * updates: centos.aol.in Reducing CentOS-5 Testing to included packages only Finished 1469 packages excluded due to repository priority protections repo id repo name status base CentOS-5 - Base 2,718+7 epel Extra Packages for Enterprise Linux 5 - i386 4,320+1,408 extras CentOS-5 - Extras 229+53 rpmforge Red Hat Enterprise 5 - RPMforge.net - dag 11,251 repolist: 19,0

################################################

# install xfce

http://programmingmatrix.blogspot.com/2017/09/centos-xfce-installation.html

#######################################

https://unix.stackexchange.com/questions/181503/how-to-install-desktop-environments-on-centos-7


Doing it with Systemd
You can also use Systemd to accomplish this. This is arguably the better method since you're managing the state of the system directly through Systemd and its CLIs.
You can see what your current default target is:
$ sudo systemctl get-default
multi-user.target
And then change it to graphical:
$ sudo systemctl set-default graphical.target


sudo yum install epel-release
 
# Centos emacs is 24.3 Need 24.4 
 
https://codegists.com/code/emacs-24.4-centos-7/
sudo yum install -y ncurses-devel gnutls-devel libxml2-devel automake autoconf
wget http://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-25.2.tar.gz
tar xzvf emacs-25.2.tar.gz
cd emacs-25.2
./autogen.sh
./configure --without-makeinfo --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no
sudo make install

# Debug emacs

emacs --debug-init

mkdir ~/bin
cd ~/bin
ln -s ~/emacs-25.2/src/emacs .
# Test emacs
which emacs
ls -l /usr/local/bin/emacs
lrwxrwxrwx. 1 root root 10 Sep 14 18:40 /usr/local/bin/emacs -> emacs-25.2

###################################
https://blog.teststation.org/centos/python/2016/05/11/installing-python-virtualenv-centos-7/
 
https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-centos-7 
 
https://stackoverflow.com/questions/38613316/how-to-upgrade-pip3
 
 
###########################################
# Install the Nvidia drivers

sudo systemctl stop lightdm
sudo systemctl stop gdm 
sudo systemctl stop kdm 
sudo yum groups mark convert 
sudo yum -y group install "Development Tools" 
sudo yum -y --disablerepo="*" --enablerepo="epel" install dkms 
sudo yum -y install epel-release dkms libstdc++.i686 kernel-devel-$(uname -r) kernel-headers-$(uname -r) 

# Download the Nvidia drivers


# Download the driver
http://www.nvidia.com/Download/driverResults.aspx/118524/en-us 
 
http://www.linuxandubuntu.com/home/how-to-install-latest-nvidia-drivers-in-linux 
 
https://computingnoob.wordpress.com/2016/12/19/installing-cuda-8-on-centos-7/ 
 
http://programmingmatrix.blogspot.com/2017/09/installing-nvidia-cudnn-v51-using-rpm.html 

# Install the graphics driver
cd Downloads/ 
sudo ./NVIDIA-Linux-x86_64-381.22.run --dkms nvidia-smi 

# DOWNLOAD THE CUDNN VERSION WHICH IS COMPATIBLE WITH Tensorflow.

$ python -c 'import tensorflow as tf; print(tf.__version__)' 
1.3.0

# Use v6.0
# Download the cudnn driver
cuDNN v6.0 Library for Linux

tar xvf cudnn-8.0-linux-x64-v6.0.tar 
sudo cp cuda/include/cudnn.h /usr/local/cuda/include 
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
 
# Test that Tensorflow can find the GPU

python -c "import tensorflow as tf; sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))"
# The GPU device should be listed
# If the GPU device is not listed

https://stackoverflow.com/questions/44170747/tensorflow-does-not-recognize-gpu-after-installing-cuda-toolkit-and-cudnn
pip3 uninstall tensorflow tensorflow-gpu

pip3 uninstall tensorflow-gpu
# ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
https://www.tensorflow.org/install/install_linux


# find the correct tensor flow version for your libs here

https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package
pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.3.0-cp35-cp35m-linux_x86_64.whl
################################### 
 
sudo apt-get install boost-devel 
 
sudo yum update
sudo yum -y groupinstall "GNOME Desktop"

sudo yum install -y libgcrypt16
sudo yum install qt-devel

# Intsall Keepassx
sudo yum --enablerepo=epel install keepassx2

yum install -y dconf-editor gnome-shell-browser-plugin alacarte gnome-tweak-tool

# Install Firefox and Gnome Tweaker
yum update -y firefox
sudo yum install -y dconf-editor gnome-shell-browser-plugin alacarte gnome-tweak-tool
sudo yum update -y firefox
yum install -y http://mirror.internode.on.net/pub/fedora/linux/releases/19/Everything/x86_64/os/Packages/e/epiphany-3.8.2-1.fc19.x86_64.rpm


sudo yum install -y http://mirror.internode.on.net/pub/fedora/linux/releases/19/Everything/x86_64/os/Packages/e/epiphany-3.8.2-1.fc19.x86_64.rpm
su -c 'yum install gnome-tweak-tool'

sudo yum install tree

sudo yum install boost-devel
 
# Now install Spark, Kafka, Golang, Scala, 
 
https://programmingmatrix.blogspot.com/2017/01/new-ubuntu-setup.html?token=wVC1g14BAAA.zq2TsmTeIiJN0fbW0SQQa3Gg8UR3iT4GGFrjwcLHmn8D_oVmKSvK_1aIo6yM41aHpqPiIC61NuemqcYqmOOkbw.rShVWtZtHNrxgyc5dxHYwg&postId=4995348178182029377&type=POST 
 
 
# Setup the Python Virtualenv for deep learning using the instructions in this post 
http://programmingmatrix.blogspot.com/2017/04/clean-tensorflow-10-installation.html
 
# Trouble shoot python issues
# > > > from matplotlib import pyplot as plt
# ... ImportError: No module named 'tkinter'

yum provides '*/tkinter'
sudo yum -y install tk-devel

 
sudo yum install python35u-tkinter-3.5.4-1.ius.centos7.x86_64
 
# Protobuf installation 
 
https://blog.jeffli.me/blog/2016/12/08/install-protocol-buffer-from-source-in-centos-7/ 
 
sudo yum install autoconf automake libtool unzip gcc-c++ git -y
git clone https://github.com/google/protobuf.git
cd protobuf
./autogen.sh
./configure
make
sudo make install 
 
https://github.com/google/protobuf/releases 
 
# Install Dropbox
 
http://www.dropboxwiki.com/tips-and-tricks/install-dropbox-centos-gui-required#Downloading_the_CLI_interface_from_Dropbox 
 

No comments:

Post a Comment