目前分類:工作記錄 (87)

瀏覽方式: 標題列表 簡短摘要

參考文獻:
https://blog.xuite.net/yh96301/blog/242333268
https://tw511.com/a/01/885.html
 

1. rufus做開機USB stick。資料分割配置要選GPT格式。

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

參考資料:
https://www.ichiayi.com/tech/winxp_samba
https://freetoad.pixnet.net/blog/post/23509679
http://arbitrarytsai.blogspot.com/2019/10/fix.html

 

文章標籤

貓熊麗麗 發表在 痞客邦 留言(1) 人氣()

安裝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

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

參考文獻: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

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

參考文獻:http://www.unixlinux.online/unixlinux/linuxjc/linuxjc/201702/35313.html

實際用法:使用setfacl和getfacl指令

# getfacl sf <<<查詢目錄的ACL
# file: sf
# owner: steventsai

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

參考資料:https://cput5800.blogspot.com/2017/03/ms-sql-clsid.html

圖片

Server 2016發生錯誤訊息如上:

解決方式:

開啟元件服務>>>電腦>>>我的電腦>>>DCOM設定>>>Microsoft SQL Server Integration Services 13.0

文章標籤

貓熊麗麗 發表在 痞客邦 留言(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

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

參考資料: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
圖片

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

# adduser stduser
Adding user `stduser' ...
Adding new group `stduser' (1004) ...
Adding new user `stduser' (1004) with group `stduser' ...
Creating home directory `/home/stduser' ...

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

參考文獻:https://magiclen.org/ubuntu-exfat/
https://royalprogrammer.wordpress.com/2018/01/27/exfat-format/
https://blog.xuite.net/beavisliu/blog/15341561

1. 在ubuntu上安裝支援exfat格式的軟體

# apt-get install exfat-utils exfat-fuse

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

參考文獻:https://blog.johnsonlu.org/ubuntursync-%E5%AE%89%E8%A3%9D/

1. 安裝:

# apt-get install rsync
Reading package lists... Done
Building dependency tree

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

參考文獻:http://www.j4.com.tw/comp-qna/ubuntu-%E6%96%B0%E5%A2%9E%E7%A1%AC%E7%A2%9F%EF%BC%88%E7%A3%81%E7%A2%9F%E5%88%86%E5%89%B2%E3%80%81%E6%A0%BC%E5%BC%8F%E5%8C%96%E8%88%87%E6%8E%9B%E8%BC%89%EF%BC%89/

有時候不知道為甚麼會從4T變2T,使用fdisk時,請不要用n,要用g。
# fdisk -l /dev/sdb 檢查大小是否正確,再重新用n劃過partition。

# fdisk -l /dev/sd*

Disk /dev/sdb: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

參考文獻:https://medium.com/@jscinin/linux-ubuntu-%E7%B3%BB%E7%B5%B1%E4%B8%8B%E5%AE%89%E8%A3%9D-anaconda-be5021ff4cd2

https://www.pythonheidong.com/blog/article/583710/20bfc0e293572fa10eec/
 

# apt-get update
# apt-get install -l curl

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

參考文獻:https://www.opencli.com/linux/fix-could-not-chdir-to-home-directory

自行手動建立,登入才會成功。

 


貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

A. 使用VNC之前請先確認vnc安裝並啟用:
#rpm -qa | grep vnc
vnc-server-4.1.2-14.el5_6.6
vnc-4.1.2-14.el5_6.6

B. 啟用時請直接:

文章標籤

貓熊麗麗 發表在 痞客邦 留言(1) 人氣()

在Xen Server下裝Windows還算蠻簡單的,但裝非windows的OS時就遇到一點困難。

正常情況下,選了NewVM,插入DVD(好啦我很懶我都用DVD),就會自動安裝,但很見鬼的是若是選了Template,再用DVD,就變成用文字介面裝最小最精簡的版本,而且整個過程完全不能改,不能重劃Partition,如果只當Server用倒是還好,但這台裝起來是要跑一些特別程式的,非要有GUI不可啊!

加上這台是2顆HD:256G SSD+3T SATA HD,超過XenServer可以看懂的容量了,安裝時請注意下列事項:

1. Template請選Other:不然保證只有文字介面.... 會哭喔。

undefined

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

undefined

因為資料交換的關係,偶而會需要用Win7來讀取ext4(Linux)格式的硬碟,試了幾個軟體,發現有個軟體叫Linux Reader還不錯用。雖然不像NTFS或是FAT格式可以直接讀寫,但至少把資料讀出來或是備份起來是不錯的功能。軟體本身也很小,分成32bit和64bit,也有portable的版本可以用,還算方便。

 

undefined

↑ Portable是32-bit版本。

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

1. 啟動nfs功能。目前nfs都不用另外安裝,只是內訂值不是自動啟動,第一次需要手動叫起來。

# /etc/init.d/nfs start
正在啟動 NFS 服務:                                        [  確定  ]
正在啟動 NFS quotas:                                      [  確定  ]
正在啟動 NFS mountd:                                      [  確定  ]

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

使用ntfs-3g掛上的ntfs HD可以在Linux下正常讀寫。不知道為甚麼,ntfs-3g現在直接用yum沒法安裝,需要另行下載並安裝,所以安裝方式跟之前不太一樣。安裝時要用root權限安裝,所以請小心。

 

1. 首先,請先安裝需要的compiler:

# yum install gcc gcc-c++

or

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

1. 檢查相關資料:

# vi /etc/resolv.conf
nameserver 192.168.1.1  //ad server 的ip最好也是解析主機。

# ntpdate clock.stdtime.gov.tw    //校正時間,如果與AD主機時間差超過5分鐘,會失敗。所以最好二台機器都做時間校正。

# vi /etc/hosts

文章標籤

貓熊麗麗 發表在 痞客邦 留言(0) 人氣()

1 2345