[LINUX] A story about a beginner trying hard to set up CentOS 8 (procedure memo)

I want to use CentOS 8 for desktop / development (blender-python3.7, unity for linux (game engine)). Do not publish outside the LAN (WAN-> LAN port mapping is not performed on the router side) Almost the first time (I used it a little in a university circle about 5-10 years ago) To-do list

  1. Update to the latest BIOS before installation (because RDRAND is dead Ryzen 3 ASRock X570 Pro4 (BIOS v1.0))

  2. Partition (only one NVME m2 512GB) --MBR default -/ boot 1GB (If you have it, can you afford it? Now the kernel is about 100MB?

    • /(root)) 128GB -/ home rest (about 400GB?) -/ swap 4GB (with 32GB of RAM ...
  3. selinux

    • /etc/selinux/config -~~ SELINUX = permissive (only warning) ~~ --setebool -P antivirus_can_scan_system 1 (Allow selinux to scan for viruses (clamAV))
  4. Administrator account --sudo adduser adminhoge #You will be asked for your password on the way

    • sudo adduser adminhoge wheel
  5. Everyday account --adduser userhoge #You will be asked for your password on the way

  6. nvidiaDriver install (https://qiita.com/kkk627/items/9ab959421804341f215e) dnf update (without kernel source (kernbel-devel) and kernel)

    1. dnf groupinstall "Development Tools"
    2. dnf install libglvnd-devel elfutils-libelf-devel
    3. /etc/modprobe.d/blacklist-nouveau.conf
      • blacklist nouveau
      • options nouveau modeset=0
      • blacklist lbm-nouveau
    4. mv /boot/initramfs-(uname -r).img /boot/initramfs-(uname -r)-nouveau.img #backup with nouveau.img
    5. dracut --omit-drivers nouveau /boot/initramfs-$(uname -r).img $(uname -r) #make no nouveau.img
    6. reboot os In select mode a-> e quiet Behind (space) 3-> ctrl x
    7. sudo init 3 #CUI mode
    8. bash NVIDIA-Linux-x86_64****.run : y->n
  7. Add to nvidia-drm.modeset = 1 GRUB and grub2-update (https://wiki.archlinux.jp/index.php/NVIDIA) -> If you don't do this, you will not have enough privileges to log in? The driver crashes and the screen goes black, causing a recovery load. 8. reboot

  8. Edit> vm.swappiness = 10> /etc/sysctl.conf #swap suppression

  9. yum install epel-release

  10. dnf install dnf-automatic zsh dnf install java-11-openjdk.x86_64

  11. clamAV settings

Scan execution clamdscan -c ${CONFIG} ```
chmod +x /etc/cron.daily/clamdscan.sh systemctl enable [email protected] systemctl start [email protected] systemctl status [email protected] (https://inaba-serverdesign.jp/blog/20170913/clamav_scan_virus_install.html) (https://qiita.com/bezeklik/items/4696e15c889ffff6bc41)

  1. Install from web: Google-chrome vscode (& minecraft client)
  2. Are you there? ./ zshrc https://news.mynavi.jp/article/zsh-10/

Work with sudo vs code from here --install the following in vscode - ms-ceintl.vscode-language-pack-ja - coenraads.bracket-pair-colorizer - ms-python.python --Ctrl + Shift + P-> configure display language-> Change the part written as "en" to "ja"

  1. dnf-automatic, but I want to update the kernel manually, update is security only --Edit excludepkgs = kernel *> /etc/dnf/automatic.conf --Edit apply_updates = yes> /etc/dnf/automatic.conf --Edit upgrade_type = security> /etc/dnf/automatic.conf

    • systemctl enable dnf-automatic.timer
    • systemctl start dne-automatic.timer
  2. (http://tooljp.com/linux/Redhat7/faqRedhat7/html/what-is-virbr.html) Somehow the virtual LAN is springing up without permission, so crush it.

    • dnf install libvirt-client.x86_64
    • virsh net-list --all
    • virsh net-autostart default --disable
  3. sshd

  1. py -3.7 -m venv py37env
  2. dnf install mesa-libGLU-devel.x86_64 --Without, unity did not start
    • ln -s /etc/ca-certificates/extracted/ca-
    • bundle.trust.crt /etc/ssl/certs/ca-certificates.crt -Certificate name? Seems to have changed and unity was throwing a compile error (v2018.4), so I linked it.
  3. chmod u+x ~/Downloads/UnityHubSetup.AppImage ./UnityHubSetup.AppImage
  4. Date gsettings set org.gnome.desktop.interface clock-show-date true
  5. Window button gsettings set org.gnome.desktop.wm.preferences button-layout appmenu: minimize, maximize, close

In / etc / sudoers %wheel ALL=(ALL) ALL But Make sure there is groups -> username wheel

Make sure that it is

sudo passwd -l root #root login seal (I was able to sudo if I was messed up with rescue from the USB that died here and I thought I was going to die. But clamdscan doesn't work without sudo, what should I do?

ps. dnf install pv ps.

https://qiita.com/takanemu/items/90ea4b938a979b0990b3

I wrote it in .xprofile but it didn't work, so I wrote it in .bashrc. Make the cache a RAMDisk. It seems that it will support if it complies with freedesktop.org (chrome etc.

ps. dual boot with windows

/etc/adjtime

UTC -> LOCAL

Specifying the cache directory

~/.bashrc



export XDG_CACHE_HOME=/dev/shm/.cache-$(whoami)
mkdir -p ${XDG_CACHE_HOME}
chmod 700 ${XDG_CACHE_HOME}

Recommended Posts

A story about a beginner trying hard to set up CentOS 8 (procedure memo)
A story about trying to run JavaScripthon on Windows and giving up.
A story about trying to connect to MySQL using Heroku and giving up
A story about a Python beginner trying to get Google search results using the API
A story about trying to implement a private variable in Python.
A story about trying to automate a chot when cooking for yourself
A story of a deep learning beginner trying to classify guitars on CNN
How to set up a local development server
A story about trying to introduce Linter in the middle of a Python (Flask) project
How to set up a Python environment using pyenv
A story about trying a (Golang +) Python monorepo with Bazel
A story about a Linux beginner passing LPIC101 in a week
To myself as a Django beginner (4) --Create a memo app--
A story about a Linux beginner putting Linux on a Windows tablet
A story about a Python beginner who was about to be crushed by ModuleNotFoundError: No module named'tweepy'
[Note] A story about trying to override a class method with two underscores in Python 3 series.
[Django] A story about getting stuck in a swamp trying to validate a zip with form [TDD]
A story about how to specify a relative path in python.
Set up a web server with CentOS7 + Anaconda + Django + Apache
A story about how to deal with the CORS problem
Procedure memo to put AWS command line interface in CentOS6
A story about a GCP beginner building a Minecraft server on GCE
A story about a python beginner stuck with No module named'http.server'
A story about a beginner participating in a project by Django from team building to product release in 6 weeks
A story about adding a REST API to a daemon made with Python
Set up a node to do MNIST on ROS using Tensorflow
A story about wanting to think about garbled characters on GAE / P
A story about trying to reproduce Katsuwo Isono, who does not react to inconvenience, by natural language processing.
Set up a yum repository server on CentOS7 system and refer to it locally and from other servers.
A story about trying to improve the testing process of a system written in C language for 20 years
A story when a beginner gets stuck trying to build a vim 8.2 + python 3.8.2 + lua plugin environment on Ubuntu 18.04.4 LTS