[archlinux arm]安裝在樹苺派
[新增使用者pi]
useradd -m pi
[設置使用者pi的密碼]
passwd pi
[安裝sudo跟配置 ]
sudo pacman -S sudo
visudo
增加一行 "pi ALL(ALL)= ALL"
[安裝ssh]
sudo pacman -S openssh
[為ssh增加使用者pi]
sudo nano /etc/ssh/sshd_config
增加一行 "AllowUsers pi"
sudo systemctl enable sshd
[安裝transmisson]
sudo pacman -S transmisson-cli
修改/var/lib/transmission/.config/transmission-daemon/settings.json
(記得把 umask 的值设置 0 以便samba正常)
[網路]
可以用wifi-menu
[kodi自啟動]
sudo nano .bashrc
添加
flock -nx /home/gtwang/my_script.lock -c kodi &
https://blog.gtwang.org/linux/prevent-shell-script-duplicate-executions/
http://www.sooebuy.com/kodi/94/
https://beekc.top/2019/09/09/install-kodi-in-raspberry-pi/
http://www.kodiplayer.cn/course/2902.html
留言