[Linux] [Initial Settings] Getting Started

OS

keyboard

--BUFFALO US keyboard (1300 yen) ――It's really unreliable for those who use expensive keyboards

Swap Caps and Ctrl

Actually, there was a way not to use xmodmap! Its name is ** localectl **!!!!!!!!! Win with this guy!

Setting example of US keyboard layout


localectl --no-convert set-x11-keymap us pc105 "" ctrl:swapcaps   

Directory name written in English

LANG=C xdg-user-dirs-gtk-update

Log out here!

Reflect the above changes

Change software source

--Japan Advanced Institute of Science and Technology (ftp.jaist.ac.jp) --RIKEN (ftp.riken.jp) --WIDE project (ftp.tsukuba.wide.ad.jp) --Yamagata University (linux.yz.yamagata-u.ac.jp) --Fairway Co., Ltd. (mirror.fairway.ne.jp) --Assist Co., Ltd. (ubuntu-ashisuto.ubuntulinux.jp)

Automatic update settings

Panel software and updates Right-click and set

option

--List update 2 hours --List update interval 1 day

blacklist

Automation

--Automatic update OFF --Automatic maintenance OFF

Full Japanese localization of the app

sudo add-apt-repository -y ppa:sicklylife/ppa
sudo apt update
sudo apt upgrade

Gravo driver

Radeon It's difficult because there is information that open source drivers are more stable than proprietary (private source) drivers.

Proprietary

Installation


tar -xJvf amdgpu-pro_*.tar.xz
cd amdgpu-pro-*
./amdgpu-pro-install -y

Uninstall


sudo amdgpu-pro-uninstall

Open Source

Driver check

inxi -Gx

You can check the driver in the item of GLX Renderer --Proprietary: AMD Radeon --Open Source: Gallium (There is also a GLX Version item)

Nvidea

Find & install driver

Find driver



$ sudo apt search nvidia-driver

p   nvidia-driver-390                                 - NVIDIA driver metapackage
p   nvidia-driver-390:i386                            - NVIDIA driver metapackage
p   nvidia-driver-418                                 - Transitional package for nvidia-driver-430
p   nvidia-driver-430                                 - Transitional package for nvidia-driver-440
p   nvidia-driver-435                                 - NVIDIA driver metapackage
p   nvidia-driver-440                                 - NVIDIA driver metapackage
v   nvidia-driver-binary                              -
v   nvidia-driver-binary:i386   

Install driver


sudo apt install nvidia-driver-440

Graphic board fan control

★ Arch Wiki ★ https://wiki.archlinux.jp/index.php/NVIDIA/%E3%83%92%E3%83%B3%E3%83%88%E3%81%A8%E3%83%86%E3%82%AF%E3%83%8B%E3%83%83%E3%82%AF

Check GPU information with CLI

hwinfo --gfxcard --short
sudo lshw -C display

Check GPU temperature and fan speed with GUI

Install psensor


sudo apt install psensor

Fan control

CPU fan

When the CPU fan is 0 rpm

★ I referred to this ★ https://github.com/lm-sensors/lm-sensors/issues/134#issuecomment-513506723

The solution is to change the Linux boot settings. Add ʻacpi_enforce_resources = lax after quiet splash`.

/etc/default/grub


GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_enforce_resources=lax"

Apply settings and restart


sudo update-grub
reboot

Confirm again


sensors

About CPU fan control

★ Arch Wiki ★ https://wiki.archlinux.jp/index.php/%E3%83%95%E3%82%A1%E3%83%B3%E3%82%B9%E3%83%94%E3%83%BC%E3%83%89%E5%88%B6%E5%BE%A1

Install fancontrol


sudo apt install fancontrol

Setting steps

  1. sensors
  2. When the module is not recognized in 1, do sudo sensors-detect to make the system recognize the information (module) of the motherboard. If 3.2 doesn't work, refer to the above article (when the CPU fan is 0 rpm).
  3. After completing the settings by doing sudo pwmconfig, the settings will be saved in/ etc / fancontrol.
  4. Run the service with sudo systemctl start fancontrol
  5. Check if fancontrol is running with `sudo systemctl status fancontrol
  6. Make the system start automatically (autostart at boot time) when the system is started with systemctl enable fancontrol.
  7. Place a shell in / lib / systemd / system-sleep / that restarts fancontrol after the return of suspend [[systemd] Workaround for the problem that fancontrol does not work when suspended](https: // qiita. com / osorezugoing / items / 3489cdf964a029cfe4df)

** Other *** --Stop automatic startup at boot with systemctl disable fan control --Edit / etc / fancontrol if you are not satisfied with the settings

GPU fan

--If the fan speed is fixed and OK, you can set it from nvidia-settings

-https://wiki.archlinux.jp/index.php/NVIDIA/%E3%83%92%E3%83%B3%E3%83%88%E3%81%A8%E3%83%86%E3%82%AF%E3%83%8B%E3%83%83%E3%82%AF

I think Arch's Wiki approach is inevitable for beginners to stumble. I don't know this alone.

The recommended method is the next method I thought of ↓

Control using a shell

  1. Prepare a script
  2. Create a desktop file in / usr / share / applications 3.2 Copy the desktop file created in 2 to ~ / .config / autostart
  3. reboot or logout

See this article for details on how to do it [Linux ☓ Nvidia] Curve Control Fans

Recommended Posts

[Linux] [Initial Settings] Getting Started
[Linux] [Initial Settings] System Settings
[Linux] [Initial Settings] Install & Uninstall
[Linux] [Initial Settings] [Flutter] Summary
[Linux] [Initial Settings] Backup & Recovery
[Linux] [Initial Settings] Table of Contents
Flask initial settings
[Linux] DNS settings
Grails getting started
Settings for getting started with MongoDB in python
Getting started with Android!
1.1 Getting Started with Python
Getting Started with Golang 2
[Linux] su, sudo settings
Getting started with apache2
Getting Started with Golang 1
Getting Started with Python
Getting Started with Django 1
Linux, Windows proxy settings
Getting Started with Optimization
Getting Started with Golang 3
Getting Started with Numpy
Getting started with Spark
Getting Started with Python
Getting Started with Pydantic
Getting Started with Golang 4
Getting Started with Jython
Getting Started with Django 2
Translate Getting Started With TensorFlow
Getting Started with Python Functions
Getting Started with Tkinter 2: Buttons
Getting Started with Go Assembly
Anaconda 4.4.0 Initial Settings for Windows
Getting Started with PKI with Golang ―― 4
Django Getting Started: 2_ Project Creation
Django Getting Started: 1_Environment Building
Getting Started with Python Django (1)
Django Getting Started: 4_MySQL Integration
Django Getting Started: 3_Apache integration
Getting Started with Python Django (4)
Initial settings from Kubuntu installation
Getting Started with Python Django (3)
Getting Started with Python Django (6)
Raspbian initial settings (Raspberry Pi 4)
Getting Started with Django with PyCharm
Python3 | Getting Started with numpy
Getting Started with Python Django (5)
[Linux] [Initial Settings] Table of Contents for Development Environment Setup
Getting Started with Git (1) History Storage
Getting started with Sphinx. Generate docstring with Sphinx
Getting Started with Python Web Applications
Getting Started with Python for PHPer-Classes
Getting started on Docker Apache Hadoop
Getting Started with Sparse Matrix with scipy.sparse
Getting Started with Julia for Pythonista
Getting Started with Python Basics of Python
Getting Started with Cisco Spark REST-API
Getting started with USD on Windows
Linux ssh port forwarding (tunnel) settings
Getting Started with Python Genetic Algorithms
Getting started with Python 3.8 on Windows