最先端を避け、
成熟した実績のある、
強力で活発な開発コミュニティと多数の有能なユーザーがいるディストロを選ぶ
長年の習慣を變へるのが難しい、指先の自由が利かない、アスキーを始めとした外國語が讀み難い(判り/解り難い)などの理由によつて、グラフィカルで直感的なインターフェースに賴る事は決して不合理な事ではない。各々のユーザにとつて適切な方法を選び取る事。
ディストリビューション、もしくはコミュニティのマニュアルを參照する
sudo
を設定sudo EDITOR=nano visudo
#root ALL=(ALL:ALL) ALL
sinumade ALL=(ALL:ALL) ALL # sinumade に権限を与へる
#%wheel ALL=(ALL:ALL) ALL # wheel グループ全員に権限を与へる
# デフォルトのエディタ
Defaults editor=/bin/rnano
#Defaults editor=/usr/bin/kak
fcitx-configtool
)も確認
sudo mkdir -p /etc/X11/xorg.conf.d/
sudo -e /etc/X11/xorg.conf.d/00-keyboard.conf
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "jp"
Option "XkbModel" "pc105"
EndSection
sudo -e /etc/X11/xorg.conf.d/30-touchpad.conf
Section "InputClass"
Identifier "system-touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "Tapping" "on"
Option "ScrollMethod" "edge"
EndSection
sudo cp /usr/share/X11/xorg.conf.d/70-synaptics.conf /etc/X11/xorg.conf.d/
sudo -e /etc/X11/xorg.conf.d/70-synaptics.conf
Section "InputClass"
Identifier "system-touchpad"
Driver "synaptics"
MatchIsTouchpad "on"
Option "VertTwoFingerScroll" "on"
Option "HorizTwoFingerScroll" "on"
EndSection
root
ログインをロックsudo passwd -l root
sudo passwd -u root
root
ログインをロックsudo -e /etc/securetty
#tty1
#tty2
...
sudo -e /etc/X11/xorg.conf
Section "ServerFlags"
Option "DontVTSwitch" "True"
Option "DontZap" "True"
EndSection
xbacklight
を始めとしたユーティリティでの調整の仕方は分らなかつた
sudo -e /etc/udev/rules.d/81-backlight.rules
# バックライトの輝度
SUBSYSTEM=="backlight", ACTION=="add", KERNEL=="intel_backlight", ATTR{brightness}="40"
/sys/class/backlight/intel_backlight/max_brightness
)以內で指定
/sys/class/backlight/intel_backlight/brightness
でできる
.rules
file, but priority is given to the brightness set in brightness
file.(Devuanはこのファイルを設定する必要がある。.rules
ファイルも讀込むが、brightness
ファイルで設定した輝度が優先される)
startx
:~/.xinitrc
# デフォルトの設定ファイルをコピー
cp /etc/X11/xinit/xinitrc ~/.xinitrc
#!/bin/sh
redshift -O 2200 -b 0.8:0.8 &
exec i3
~/.xprofile
startx
, XDM:~/.xsession
#!/bin/sh
xautolock -time 15 -locker "amixer -c 1 sset PCM mute && i3-msg 'workspace LOCK; bar mode invisible' && slock && amixer -c 1 sset PCM unmute && i3-msg bar mode hide" &
redshift -O 2200 -b 0.8:0.8 &
mocp --server && mocp --play &
keynav &
xbanish &
exec i3
~/.xsessionrc
#!/bin/sh
xautolock -time 15 -locker "amixer -c 1 sset PCM mute && sxiv -fbs f ~/PIC/screensaver/1px.png & sleep 0.5 && slock && amixer -c 1 sset PCM unmute" &
redshift -O 2200 -b 0.8:0.8 &
mocp --server && mocp --play &
keynav &
xbanish &
# ディレクトリを作成
cd
mkdir -p BIN DOC DL/00
# ゴミ箱へのシンボリックリンクを作成
mkdir -p ~/.local/share/Trash/files
ln -s ~/.local/share/Trash/files ~/Trash
# 利用可能なデバイスを確認
sudo fdisk -l
# 暗号化されたデバイスを復号
sudo cryptsetup luksOpen /dev/sdb1 backup
# マウントディレクトリを作成
sudo mkdir -p /media/usb/
# マウント
sudo mount /dev/mapper/backup /media/usb/
# マウントディレクトリへ移動、中の一覧を表示
cd /media/usb/ && ls
# ディレクトリをコピー
cp -r Install Pictures Musics ISO Apps ~/
# アンマウント
sudo umount /media/usb/
# 復号化を解除
sudo cryptsetup close backup
# 復号化が解除されたか確認
sudo fdisk -l
# xdg-user-dirs をインストール
sudo apt install --no-install-recommends xdg-user-dirs
# ディレクトリを作成
xdg-user-dirs-update
# ホームディレクトリを設定
sed -i -E 's/ダウンロード/DL/; s/ドキュメント/DOC/; s/音楽/MUS/; s/画像/PIC/' ~/.config/user-dirs.dirs
# ディレクトリを作成
mkdir -p ~/.local/share/fonts/ ~/DL/00/
# フォントを移動
find ~/DL/00/ -type f -iname \*.ttf -exec mv {} ~/.local/share/fonts/ \;
# ダウンロードディレクトリへ移動、ディレクトリを作成
cd ~/DL/ && mkdir 00
# フォントを 00 へ移動
find -type f -iname \*.ttf -exec mv {} 00 \;
# ディレクトリ・ファイルのパーミッションを変更
chmod 555 00
chmod 444 00/*
# ディレクトリ・ファイルの所有者を root(システム管理者)へ変更
sudo chown -R root 00
# フォントをシステムディレクトリへ移動
sudo mv 00 /usr/share/fonts/
# fuse をインストール
sudo pacman -S fuse2 # Hyperbola
sudo pacman -S fuse-openrc # Parabola
# fuse をサービスに追加
sudo rc-update add fuse default
# fuse を起動
sudo rc-service fuse start
dpkg --print-architecture
wget https://jxself.org/gpg.asc # ダウンロード
mv gpg.asc jxself.asc # 改名
sudo mv jxself.asc /etc/apt/trusted.gpg.d/ # キーの追加
gnupg
パッケージ)
apt-key finger
sudo apt edit-sources
/etc/apt/sources.list
:
#deb mirror://linux-libre.fsfla.org/pub/linux-libre/freesh/mirrors.txt freesh main
deb https://linux-libre.fsfla.org/pub/linux-libre/freesh/ freesh main
echo 'Dir::Bin::Methods::ftp "ftp";' | sudo tee -a /etc/apt/apt.conf.d/99local-ftp
sudo apt update
uname -v
linux-libre
をパッケージから檢索
apt search linux-libre
linux-libre
カーネルをインストール
sudo apt install linux-libre-4.19
blacklist.txt
を參考に不自由/その他リスクのあるソフトウェアを避けていく。但し、Arch と他のディストロのパッケージでは差異があるので、例へば Debian/Devuan では問題無い事もある。逆に、他のディストロ獨自の問題もあるかも知れない
[nonsecurity] is a scope creep project that leads to vulnerabilities, contains absurd bugs and conceptional problems [nonprivacy] contains hard coded Google DNS, [technical] breaks portability, ignores backwards compatibility, replaces existing services forcing into adoption, [branding] contains Arch logo splash, [recommends-nonfree] contains nonfree GNU/Linux distros examples instead of FSDG GNU/Linux ones
(Quoted on 2021-09-04)
[nonsecurity][nonprivacy] comes from systemd source
(Quoted on 2021-09-04)
[nonsecurity] contains absurd bugs and conceptional problems such as uncontrolled memory usage, over silent dropping of messages and dead-locks by design, [nonprivacy] leaks machine-id across applications which causes privacy and fingerprinting concerns, [uses-nonprivacy][uses-nonsecurity] depends on libsystemd and make-depends on systemd, [technical] Arch version uses version control system (VCS) sources
(Quoted on 2021-09-04)
[nonsecurity] contains absurd bugs and conceptional problems such as SIGSEGV then takes some client apps with it; buffering issues which cause sound to stutter, jitter, and basically sound like crap; bugs with the hardware mixer; breaks or jitters input streams when adjusting line-in or mic volume; misidentifies mixer controls, [uses-nonsecurity] make-depends on openssl, [uses-nonprivacy][uses-nonsecurity] make-depends on systemd, [technical] Arch version uses version control system (VCS) sources
(Quoted on 2021-09-04)
[nonsecurity] contains a number of features that are deemed insecure, unnecessary or deprecated and a number of open bugs reported in the bug tracker that had gone unfixed for years and that are being fixed in LibreSSL
(Quoted on 2021-09-04)
[nonsecurity] history of malware in hosted packages -> https://hacknews.co/malware/20181127/rogue-developer-infects-widely-used-nodejs-module-to-steal-bitcoins.html https://thenewstack.io/npm-cleans-typosquatting-malware/ http://webinos.org/2013/06/17/reflections-on-nodejs-malware/, [uses-nonsecurity] depends on openssl, [technical] Arch version does not use SHA-512 hash
(Quoted on 2021-09-04)
[semifree] has trademark issues, [technical] Arch version does not use SHA-512 hash
(Quoted on 2021-09-04)
[semifree] has trademark issues, recommends nonfree software, [uses-nonprivacy] by default has non-privacy search engines
(Quoted on 2021-09-04)
electron::parabola:1231:[semifree][FIXME:package] contains embedded Chromium, recommends nonfree modules
(Quoted on 2021-12-26)
electron::parabola:1231:[semifree][FIXME:package] contains embedded Chromium, recommends nonfree modules
(Quoted on 2021-12-26)
sudo apt install --no-install-recommends wireless-regdb wireless-tools iw wpasupplicant rfkill network-manager-gnome
lspci -k | grep Network
ip link
sudo ip link set wlan0 up
RTNETLINK answers: Operation not permitted
と出力される?
sudo rfkill list
sudo rfkill unblock wifi
ip link show wlan0
sudo iwlist wlan0 scan | grep SSID
sudo useradd -m boss
sudo passwd boss
sudo groupadd worker
sudo gpasswd -a sinumade worker
sudo gpasswd -a boss worker
mkdir share
sudo chown :worker share
sudo chmod 770 share
sudo chmod g+s share
echo "umask 007" >> ~/.bashrc
e2fsprogs
dosfstools
FAT32
は、ファイルのパーミッションを設定する事ができない。なのでマウント時に umask
オプションを用ゐる:
sudo mount /dev/sdb1 /media/usb -o dmask=022,fmask=133
sudo umount /media/sinumade/NONAME
sudo fdisk -l
sudo dd if=/dev/zero of=/dev/sdb bs=4096 status=progress
sudo cfdisk /dev/sdb
dos
83 Linux
もしくは c W95 FAT32 (LBA)
mkfs.ext4
もしくは mkfs.fat
)
sudo mkfs.ext4 -n MYWORK /dev/sdb1
sudo cryptsetup open --type plain /dev/sda container --key-file /dev/random
sudo fdisk -l # コンテナを確認
sudo dd if=/dev/zero of=/dev/mapper/container status=progress
sudo cryptsetup close container
dos
(恐らくMBR)を指定した方が無難かな?
sudo -e /etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"
Identifier "default"
Option "DPMS" "True"
EndSection
Section "ServerLayout"
Identifier "BlankScreen"
Option "StandbyTime" "5"
Option "SuspendTime" "5"
Option "OffTime" "15"
Option "BlankTime" "15"
EndSection
sudo apt install --no-install-recommends \
cups cups-pk-helper \
avahi-discover \
printer-driver-gutenprint \
system-config-printer system-config-printer-udev
sudo gpasswd -a sinumade sys