2021年7月25日星期日

安裝 Samba

試過在 Debian 及 Ubuntu 衍生發行版上都沒問題

1. 安裝 Samba packages

apt update
apt install samba smbclient cifs-utils

2. 創建 Shared Samba Directory/Folder

只創建一個不用密碼分享的資料夾

mkdir /public

3. Setup Samba File Server

在 samba 設定檔 /etc/samba/smb.conf 加入以下參數

[public]
   comment = Public Folder
   path = /public
   writable = yes
   guest ok = yes
   guest only = yes
   force create mode = 777
   force directory mode = 777

4. Update the permissions of the Shares

chmod 2777 /public (網上教是用2775但實作時不能寫入)

5. Restart Samba service

systemctl restart nmbd

6. Allow Remote Access to Samba

若有開啟防火牆要執行以下指放行連入,否則也會出現access deny的問題

ufw allow from 192.168.xxx.xxx/24 to any app Samba

Reference

主要是跟以下網頁設置,內文也有教如可設定私人資料夾

https://kifarunix.com/quick-way-to-setup-samba-file-server-on-debian-10/ 

2021年6月23日星期三

Task Scheduler Crashed - FX:{c7b8fb06-bfe1-4c2e-9217-7a69a95bbac4}

Task Scheduler Crashed every time I tried to open a task or create a new task. The following is noted in the error pop-up window:

Unhandled Exception in Managed Code Snap-in

FX:{c7b8fb06-bfe1-4c2e-9217-7a69a95bbac4}

The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

Exception type:
System.IO.FileNotFoundException

Tried many methods searched on the web.  The following method finally fixed the problem:

  1. Run regedit
  2. Go to HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkList
  3. Delete everything under the following path,
    • Nla->Cache
    • Nla->IntranetEnabled
    • Nla->Wireless
    • Profiles
    • Signatures->Managed
    • Signatures->Unmanaged
  4. Reboot

Task Scheduler should be running fine now. Please be noted that network location awareness profiles has been reset and need to be reconfigured in network properties (public and private network thing).

Reference

https://answers.microsoft.com/en-us/windows/forum/windows_10-start-winpc/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953

2019年10月1日星期二

關於開機USB

網上論壇見有人入唔到Windows,但又想攞番電腦入面啲檔案,這時做一隻USB開機手指就最合用,整咗就可以插隻USB手指落部有問題電腦到用嚟開機進入桌面用檔案管理員抄檔案

要整開機USB要先下載ISO檔
https://www.hirensbootcd.org/files/HBCD_PE_x64.iso

再下載USB工具
https://www.hirensbootcd.org/files/ISO2USB.exe

然後跟以下instructions整隻開機USB
https://www.hirensbootcd.org/usb-booting/
之後隻USB就可以用嚟開機

留意可能要設定下BIOS至會先讀隻USB開機而唔會用番隻有問題嘅HDD開機
https://bit.ly/2o0Tu1u
http://it-easy.tw/usb-bios/

2019年9月14日星期六

移除 Nvidia Telemetry 背景服務

Nvidia 安裝驅動時原來會同時安裝收集用戶數據的Telemetry背景服務, 這個移除了也不會影響顯卡功能,在 cmd 示窗內執行以下指令便可移除;

rundll32 "%PROGRAMFILES%\NVIDIA Corporation\Installer2\InstallerCore\NVI2.DLL",UninstallPackage NvTelemetryContainer

參考
https://forums.evga.com/How-to-Uninstall-Nvidia-NvTelemetry-m2905741.aspx

2019年9月4日星期三

Excel 2013 打不開工作表內的網頁連結

今天想打開Excel 2013工作表內的網頁連結,卻彈出視窗指有群組policy不容許動作,但搞了一排原來不是群組policy的問題,而是我停用IE 11,因許多網站已不支援IE 11而停用了,但可能 office 2013 比較舊,內裡一些設定還是使用IE相關的參數。

2019年8月9日星期五

重設 Windows 10 開始功能表的常用應用程式清單

在網上找到作個記錄, 不翻譯了,

Open Start menu > Launch Settings app >Privacy >General >Disable (Allow Windows to track app launches to improve Start and search results)> Enable (Allow Windows to track app launches to improve Start and search results) again > Go to the main page of Settings app again >Personalization >Start >Enable (Show the most used apps).

2019年8月5日星期一

移除檔案管理員上的 'Quick Access' 項目

編輯以下機碼;
移至 HKEY_CLASSES_ROOT\CLSID{679f85cb-0220-4080-b29b-5540cc05aab6} 下之 'ShellFolder',

揀選 Permissions, 跟著選 Advanced 鍵,在 'Advanced Security Settings for ShellFolder' 視窗,點選 'Change', 跟著點選 'Advanced',修改 owner 為 'Administrators' 以容許修改 'ShellFolder' 內容。

跟著在 'ShellFolder', 修改 'Attributes' 為 'a0600000'。
原文

P.S.修改後發現檔案管理員的拖放功能失效,所以改回了之前的'Attributes' 為 'a0100000'

2019年8月2日星期五

在 Windows 10 啟用相片檢視器開啟相片及 RAW 檔

Windows 10 預設使用新的「相片」應用開啟相片檔案, 如果想使用傳統的「相片檢視器」開啟可以用以下檔案修改機碼

啟用「相片檢視器」下載機碼 

停用「相片檢視器」下載機碼

原機碼包沒有連結我用的 Sony RAW 格式 ARW 檔,所以之後跟據機碼格式加入。

參考
 https://www.tenforums.com/tutorials/14312-restore-windows-photo-viewer-windows-10-a.html