需要兩個額外參數
smartctl -a -d sat -T permissive /dev/sda
-d satSpecifies device type. [Sat] is SCSI to ATA Translation (SAT) that is required with Synology.
需要兩個額外參數
smartctl -a -d sat -T permissive /dev/sda
-d satSpecifies device type. [Sat] is SCSI to ATA Translation (SAT) that is required with Synology.
## install mysql 5.7
yum update
yum install yum-utils -y
yum localinstall https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm -y
yum-config-manager --disable mysql80-community
yum-config-manager --enable mysql57-community
yum install mysql-community-server -y
# edit /etc/my.cnf
# 1. change socket=/tmp/mysql.sock under [mysqld] section
# add [client] section if not exist
# 2. change or add socket=/tmp/mysql.sock under [client] section
# install selinux utils
yum install policycoreutils-python-2.5-34.el7.x86_64
# start mysql service to get fail audit log for next step
systemctl start mysqld.service # this will not work and report error at this time
# modify selinux by analyzing audit log automatically
ausearch -c 'mysqld' --raw | audit2allow -m my-mysqld
semodule -i my-mysqld.pp
# start mysql service
systemctl start mysqld.service # service should start up accordingly
# get mysql temporary password in /var/log/mysqld.log
grep 'temporary password' /var/log/mysqld.log
# test mysql client connection
mysql -p
# change mysql root password and secure installation
mysql_secure_installation
if($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
}
/* That's all, stop editing! Happy publishing. */
在 ASUS Zenbook UX410UQK 筆電上 踩到 Nvidia 940MX 雷 ,在Ubuntu18.04上 suspend之後系統會掛掉。 目前的18.04.1依然無解。
只好改用最愛的 Debian Sid, kernel 4.17。 OK。
|
[Unit]
Description=Fix GPU after waking up from suspension
After=suspend.target
[Service]
User=root
Type=oneshot
# Sleep is because we want to ensure fastest wake up
ExecStart=/usr/bin/bash -c "sleep 2 && echo 1 > /sys/bus/pci/rescan"
TimeoutSec=0
[Install]
WantedBy=suspend.target