Official blog of KEINOS but mostly for my own reference. A Japanese made in Mexico with Mexican quality. Who monkey around the jungle of codes. ;-)
This is a memorandum for KEINOS.
fdisk -h
lsblk
command is not available by default, such as Alpine Linux.alias ll='ls -l'
cat /etc/passwd | sort
df -l / | grep dev | awk '{ print $1 }'
$ df -l /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda3 99014644 2660412 91304892 3% /
$ df -l / | grep dev | awk '{ print $1 }'
/dev/vda3
journalctl | grep <service>
systemctl list-unit-files --type=service
sudo journalctl -f -u <service>
# Example
journalctl -fu ipfs.service
sudo systemctl status <service>
Check graphics driver.
$ # Check graphics devices
$ ubuntu-drivers devices
...
$ # Install the driver (Depends on driver)
$ sudo apt install nvidia-driver-510 nvidia-dkms-510
...
$ # Check the driver
$ nvidia-smi
...
Error messages:
warning: setlocale: LC_ALL: cannot change locale (ja_JP.UTF-8)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "ja_JP.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Solution:
apt-get install language-pack-ja
Debian:
apt-get install locales
sed -i -E 's/# (ja_JP.UTF-8)/\1/' /etc/locale.gen
locale-gen