將學生主機由ubuntu 11.04 升級至 16.04資料移動過程記錄
scp -r -p root@192.168.0.3:/home/711999 /home
權限無法複製,用劉勇炫老師的homechown.sh更改權限
samba
find / -name passdb.tdb
apt的samba密碼檔放在 /var/lib/samba/passdb.tdb
gcc的samba密碼檔放在 /usr/local/samba/private/passdb.tdb
scp -r -p root@192.168.0.3:/var/lib/samba/passdb.tdb /usr/local/samba/private
xrdp port更改 /etc/xrdp/xrdp.ini
mysql
apt install phpmyadmin
http://sp.idv.tw/blogs/index.php?op=ViewArticle&articleId=676&blogId=1
編輯mysql配置文件 my.cnf
(ubuntu 16.04放在/etc/mysql/mysql.conf.d/mysqld.cnf)
在 [mysqld]下添加
sql_mode=""
scp -r -p root@192.168.0.3:/var/lib/mysql/0_fh /var/lib/mysql
chown -R mysql.mysql 0_fh
scp -r -p root@192.168.0.3:/var/lib/mysql/0_fh1071 /var/lib/mysql
chown -R mysql.mysql 0_fh1071
scp -r -p root@192.168.0.3:/var/lib/mysql/gtpa /var/lib/mysql
chown -R mysql.mysql gtpa
html
scp -r -p root@192.168.0.3:/var/www/fh /var/www/html
scp -r -p root@192.168.0.3:/var/www/fh1071 /var/www/html
scp -r -p root@192.168.0.3:/var/www/xoops_data /var/www/html
scp -r -p root@192.168.0.3:/var/www/xoops_lib /var/www/html
scp -r -p root@192.168.0.3:/var/www/html /var/www/html
scp -r -p root@192.168.0.3:/var/www/php4 /var/www/html
scp -r -p root@192.168.0.3:/var/www/index.html /var/www/html
scp -r -p root@192.168.0.3:/var/www/gtpa /var/www/html
16.04安裝xrdp
http://honglung.pixnet.net/blog/post/167257893-windows-%E9%81%A0%E7%AB%AF%E6%A1%8C%E9%9D%A2%E9%80%A3%E7%B7%9A%E5%88%B0-ubuntu-16.04
安裝遠端桌面管理軟體
sudo apt-get install xfce4
sudo apt-get install xrdp
配置遠端桌面管理軟體
echo xfce4-session > ~/.xsession
XOOPS
$root_path = "/var/www/html/fh1071";//這是主目錄
$xoop_up_path = "/var/www/html/fh1071";//這是xoops_data及xoops_lib的位置
DHCPD
apt install isc-dhcp-server
scp -r -p root@192.168.0.3:/etc/dhcp/dhcpd.conf /etc/dhcp
noip
192.168.0.3 192.168.0.9 IP已互換
ups
scp -r -p -P 8088 root@192.168.0.9:/root/ups /root
dpkg -i PPL_1.3.2_amd64.deb
pwrstat -status
service pwrstatd start
scp -r -p -P 8088 root@192.168.0.9:/home/51* /home