Installation
installation à minima
sudo yum upgrade
verifiaction système
vérification de la version du système
uname -m && cat /etc/*release x86_64 CentOS Linux release 7.4.1708 (Core) NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" CentOS Linux release 7.4.1708 (Core)
uname -r 3.10.0-693.5.2.el7.x86_64
installation de gnome
à partir des indication ici : https://unix.stackexchange.com/questions/181503/how-to-install-desktop-environments-on-centos-7
sudo yum -y groups install "GNOME Desktop" startx
kernel header and development package
sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
utile pour nvidia ?
sudo yum install -y libbsd-devel glibc-devel libX11-devel glib2-devel
nvidia
http://developer.nvidia.com/cuda-download
vérification de la présence d'une carte nvidia
lspci | grep -i nvidia 02:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 930MX] (rev a2)
https://elrepo.org/tiki/tiki-index.php
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
https://elrepo.org/tiki/nvidia-detect
sudo yum install nvidia-detect nvidia-detect >>> kmod-nvidia sudo yum install $(nvidia-detect)
https://elrepo.org/tiki/bumblebee
sudo yum install bumblebee sudo gpasswd -a $USER bumblebee
Nvidia cuda toolkit
http://developer.nvidia.com/cuda-download
https://gist.github.com/wangruohui/df039f0dc434d6486f5d4d098aa52d07#check-the-installation
cuda run-file : https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_384.81_linux-run
extraction local (évite d'installer les drivers nvidia, déjà gérés...)
cd ~ wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_384.81_linux-run chmod +x cuda_9.0.176_384.81_linux.run ./cuda_9.0.176_384.81_linux.run --extract=$HOME sudo ./cuda-linux.9.0.176-22781540.run
sudo bash -c "echo /usr/local/cuda/lib64/ > /etc/ld.so.conf.d/cuda.conf" sudo ldconfig
post-installation
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
cuda example samples
installer en locale pour avoir les droits d'accès
compiler et exécuter avec optirun
optirun make -j optirun <binaire d'exemple>
glut est nécessaire pour certains exemples
sudo yum install freeglut freeglut-devel
mesa-libGL (déjà installé)
sudo yum install mesa-libGL mesa-libGL-devel mesa-libglapi
Bumblebe
pour lancer bumblebee
systemctl start bumblebee.service
Python 3.6.6
suivre ce tutoriel https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/
# Python 3.6.3: wget http://python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz tar xf Python-3.6.3.tar.xz cd Python-3.6.3 ./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" make && make altinstall
puis utilisation des environements virtuels
# Use the built-in functionality in Python 3.6 to create a sandbox called my36project: python3.6 -m venv my36project # Activate the my36project sandbox: source my36project/bin/activate # Check the Python version in the sandbox (it should be Python 3.6.3): python --version # Deactivate the sandbox: deactivate
TexLive
https://www.tug.org/texlive/quickinstall.html
téléchargement ici : http://tug.org/texlive/acquire-netinstall.html -> http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
cd /your/download/directory ./install-tl # install-tl-windows on Windows [... messages omitted ...] Enter command: i [... when done, see below for post-install ...]
par la suite, pour mettre à jour le listing des paquets latex, utiliser texhash, mais la version du paquet, donc
cd /usr/local/texlive/2018/bin/x86_64-linux sudo ./texhash
pour installer des paquets latex https://www.tug.org/texlive/doc/tlmgr.html