
參考文獻:
https://blog.xuite.net/yh96301/blog/242333268
https://tw511.com/a/01/885.html
1. rufus做開機USB stick。資料分割配置要選GPT格式。
2. 進BIOS使用UEFI USB開機。
3. 設定網路卡。
4. 語言選中文。 用英文介面安裝,速度快又穩。不要一開始就選中文。

參考文獻:
https://blog.xuite.net/yh96301/blog/242333268
https://tw511.com/a/01/885.html
1. rufus做開機USB stick。資料分割配置要選GPT格式。
2. 進BIOS使用UEFI USB開機。
3. 設定網路卡。
4. 語言選中文。 用英文介面安裝,速度快又穩。不要一開始就選中文。

參考資料:
https://www.ichiayi.com/tech/winxp_samba
https://freetoad.pixnet.net/blog/post/23509679
http://arbitrarytsai.blogspot.com/2019/10/fix.html
在Win10上也適用。
1. 在windows端進入cmd mode。
2. 列出這台pc目前所有的連線,即使是已經中斷的也會列出來。
安裝Samba:
參考文獻:
https://magiclen.org/ubuntu-server-samba/
https://tsaiyuyan.github.io/2019/04/09/ubuntu-she-ding-samba-fen-xiang-dang-an/
https://www.itread01.com/content/1550441893.html
# apt-get install samba <<<光是安裝好,在console上設定成分享,就可以用了。但這樣做好的samba只有第一個使用者可以開分享,其他使用者不行。所以要繼續進行後續設定。
# smbpasswd -a steventsai <<<這個使用者要先在OS上建好。
New SMB password:
Retype new SMB password:
Added user steventsai.
# smbpasswd -e steventsai <<<要啟用。
Enabled user steventsai.
參考文獻:https://www.mdeditor.tw/pl/pw03/zh-tw
# sudo apt-get update
# apt-get install mysql-server, mysql-client, libmysqlclient-dev(C語言相關庫)
安裝Mysql Secure
# sudo mysql_secure_installation
參考文獻:http://www.unixlinux.online/unixlinux/linuxjc/linuxjc/201702/35313.html
實際用法:使用setfacl和getfacl指令
# getfacl sf <<<查詢目錄的ACL
# file: sf
# owner: steventsai
# group: rddata
user::rwx
group::rwx
group:rddata:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:rddata:rwx
default:mask::rwx
default:other::r-x
設定使用者權限:
# setfacl -R -m u:ytliu:rwx sf <<<-R表示這個目錄以下的所有檔案目錄一起設。u: 表示設定使用者。
參考資料:https://cput5800.blogspot.com/2017/03/ms-sql-clsid.html

Server 2016發生錯誤訊息如上:
解決方式:
開啟元件服務>>>電腦>>>我的電腦>>>DCOM設定>>>Microsoft SQL Server Integration Services 13.0

參考文獻:https://vivaldi.club/d/11869
# vi /etc/polkit-1/localauthority/50-local.d/restrict-login-powermgmt.pkla
[Disable lightdm PowerMgmt]
Identity=unix-user:*
Action=org.freedesktop.login1.reboot;org.freedesktop.login1.reboot-multiple-sessions;org.freedesktop.login1.power-off;org.freedesktop.login1.power-off-multiple-sessions;org.freedesktop.login1.suspend;org.freedesktop.login1.suspend-multiple-sessions;org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=no
ResultInactive=no
ResultActive=no
:x
再用gui介面登入後就會發現沒有poweroff的按鈕了。
參考資料:https://linuxconfig.org/how-to-install-matlab-on-ubuntu-20-04-focal-fossa-linux
需在GUI介面下進行安裝。
1. download matlab 到ubuntu下。要記得選對版本,要用linux版本。
/home/user/Downloads/matlab_R2020b_glnza64.zip

2. 新增解開的目錄,將剛剛下載的檔案解開:
# mkdir /home/user/Downloads/matlab
# unzip -q matlab_R2020b_glnza64.zip -d matlab
3. 新增要安裝的地方:
# mkdir -p /usr/local/MATLAB/R2020b/
# adduser stduser
Adding user `stduser' ...
Adding new group `stduser' (1004) ...
Adding new user `stduser' (1004) with group `stduser' ...
Creating home directory `/home/stduser' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for stduser
Enter the new value, or press ENTER for the default
Full Name []: Standard User Template
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
然後到console上以新帳號登入機器,系統會自己建X-windows的環境:/home/user/Desktop等等等。
因為要使用某些CAD,所以要複製環境變數過來:
# cp /home/olduser/.bashrc /home/newuser/.bashrc
# source .bashrc <<<啟用環境變數。
# cp /home/olduser/Desktop/anaconda-navigator.desktop /home/newuser/.local/share/application/*.desktop
就會生出anaconda的link。
↑這個作法是每個user要個別設置喔。