RockyLinux 8 安裝rclone ,以及自動更新
- 安裝
yum install -y curl unzip wget screen fuse fuse-devel
curl https://rclone.org/install.sh | bash
- 更新
rclone selfupdate
yum install -y curl unzip wget screen fuse fuse-devel
curl https://rclone.org/install.sh | bash
rclone selfupdate
現在安裝docker 跟喝水一樣, 完全沒難度阿
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf update -y
dnf install -y docker-ce docker-ce-cli containerd.io
docker --version
#########
#ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
ExecStart=/usr/bin/dockerd -g /docker -H fd:// --containerd=/run/containerd/containerd.sock
#########
systemctl daemon-reload
systemctl enable docker
systemctl start docker
docker ps
要確認/修改三個地方
hostnamectl set-hostname <mail>
# 短名字, 不需要完整的
yum update -y
yum install -y epel-release
yum groupinstall -y "Xfce" "base-x"
yum systemctl set-default graphical
reboot
yum install tigervnc-server -y
adduser william
passwd william
su - william
vncpasswd
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
vi /etc/tigervnc/vncserver.users
###############
:1=william
###############
systemctl daemon-reload
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service
firewall-cmd --zone=public --permanent --add-service=vnc-server
# 或是直接指定port
# firewall-cmd --zone=public --permanent --add-port=5901/tcp
firewall-cmd --reload
之前CentOS 6,7時代, 時間更新使用的是 ntpdate -s x.x.x.x
但是來到了 8 版, 改用chronyd , 若要修改同步的 server , 請修改 /etc/chrony.conf
找到pool 後面加上server的ip即可, 或是沿用預設值也可以
若需要設定server顯示的時間符合本地時間, 可先參考server綁定的地區
ls -l /etc/localtime
然後參考地區
timedatectl list-timezones
再變更
timedatectl list-timezones "Asia/Taipei"
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss -l root x.x.x.x
請視情況(錯誤訊息), 更改演算法與支援的key
錯誤訊息通常為:
Unable to negotiate with 10.192.130.232 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
Unable to negotiate with 10.192.130.232 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
touch -a -m -t 201512180130.09 fileName
-a = accessed
-m = modified
-t = timestamp - YYMMDDhhmm.ss time format
此時系統會嘗試安裝, 結果當然失敗
yum install kernel-devel-xxxx kernel-headers-xxxx
yum install gcc make perl
yum list |grep libelf #找出套件
yum install elfutils-libelf* #後面接星號, 全部安裝
當然會失敗
/sbin/rcvboxadd quicksetup all