Jan 7, 2023

RustDesk : Install RustDesk Server in Ubuntu

 Install RustDesk Server in Ubuntu Server v.22.0.4 64-bit.


1. Check UFW is "Enabled" in Ubuntu.

$sudo ufw status


2. Enable UFW if not available.

$sudo apt install ufw -y

$sudo ufw enable


3. Configure default UFW settings.

$sudo ufw default allow outgoing

$sudo ufw default deny incoming


4. Allow SSH connection.

$sudo ufw allow ssh

$sudo ufw allow 22/tcp


5. Allow RustDesk Ports and Protocols.

$sudo ufw allow 21114:21119/tcp

$sudo ufw allow 8000/tcp

$sudo ufw allow 21116/udp

$sudo ufw allow http

$sudo ufw allow https


6. Install RustDesk Server.

$sudo wget https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/install.sh

$sudo chmod +x install.sh

$sudo ./install.sh


7. When prompted for IP/Domain Name, key-in a FQDN address. (eg. remote.abc.com)


8. When prompted to install Web Server (HTTPD), type "Yes" (if you haven't install Apache2 Server). It will auto install GoHttpd server (recommended).


9. Upon completion, please take note of the "Public Key, Username and Password" displayed on screen, copy it to notepad for future references.


10. Ensure your router also have "Port Forwarding" configured to match the RustDesk's ports as above.


11. At another computer, open any internet browser (eg. Chrome) and browse to http://[your domain]:8000 and you will prompted for username & password to login, use the same username and password save in above steps.


12. After successful login, proceed to download the installer for Windows, its a PowerShell script. After download proceed to run the script (run as admin).


13. Once installation completed, you can open/run the RustDesk Client on your computer.


Note: as of writing, the "Address Book" function was still under development and there are no timeline available for the release, thus the "Login" function in the "Address Book" module will return an error message.


Edit, 2-Apr-2023: Added Video.





!!! HAPPY COMPUTING !!!



Jan 6, 2023

Favorites : Location of Favorites

 Location of "Favorites" for Internet Explorer, Microsoft Edge and Google Chrome browser in Windows 10 22H2.


1) Internet Explorer Favorites Path.

%USERPROFILE%\Favorites\*.*


2) Microsoft Edge Favorites Path.

"%USERPROFILE%\AppData\Local\Microsoft\Edge\User Data\Default\Bookmarks"

"%USERPROFILE%\AppData\Local\Microsoft\Edge\User Data\Default\Favicons"


3) Google Chrome Favorites Path.

"%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Bookmarks"

"%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Favicons"


!!! HAPPY COMPUTING !!!


PowerShell : Command Line

PowerShell Command for Windows 10 22H2. 

1) Enable/Install SMB v1 Client Protocol.

Enable-WindowsOptionalFeature -Online -FeatureName "SMB1Protocol-Clinet" -All


2) Mount ISO image file.

Mount-DiskImage -ImagePath "%ISO_FILE_PATH%"


3) Unmount/Eject ISO Image file.

Dismount-DiskImage -ImagePath "%ISO_FILE_PATH%"


4) To run a PowerShell Script File (.ps1) inside a Batch File.

POWERSHELL.EXE -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%POWERSHELL_SCRIPT_FILE%""' -Verb RunAs}"


!!! HAPPY COMPUTING !!!


Jan 5, 2023

Batch : Rename Hostname

 Inside batch file, create the following command line to rename the current computer with a new hostname.

WMIC COMPUTERSYSTEM where name="%COMPUTERNAME%" CALL RENAME name="%NEWPCNAME%"

Need to restart computer to take effect.


!!! HAPPY COMPUTING !!!


Windows 10 : Location of Group Policy Object for Local Computer

 Windows 10 22H2, Location of Group Policy Object (GPO) for Local Computer. Able to copy all files and folders to another computer thus without the need to re-configure all policies again.

C:\Windows\System32\GroupPolicy

Copy all files and folders to another location (eg. Pendrive) and overwrite the same into another computer of the same location. This method is suitable for deploying GPO without ADDS.

After computer restart, all policies will be in effect.


!!! HAPPY COMPUTING !!!


Windows 10 : Registry Location

 Windows 10 22H2 Registry Location for certain functions or features.

1. Disable Delivery Optimization.

HKLM\System\CurrentControlSet\Services\DoSvc\Start=dword:00000003


2. Disable Download to other PC.

HKCU\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings\DownloadMode=dword:00000000

HKCU\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings\DownloadModeProvider=dword:00000008


3. Disable Fast Startup Option.

HKLM\System\CurrentControlSet\Control\Session Manager\Power


4. Disable Network Connected Device Auto-Setup.

HKLM\Software\Micvrosoft\Windows\CurrentVersion\NcdAutoSetup\Private\AutoSetup=dword:00000000


5. Show Desktop Icons (eg. This PC, Documents, Network).

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{59031a47-3f72-44a7-89c5-5595fe6b30ee}=dword:00000000

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{20D04FE0-3AEA-1069-A2D8-08002B30309D}=dword:00000000

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}=dword:00000000


6. Change Search Box to Icon in Taskbar.

HKCU\Software\Microsoft\Windows\CurrentVersion\Search\SearchboxTaskbarMode=dword:00000001


7. Disable Driver Searching via Windows Update.

HKLM\Software\Microsoft\Windows\CurrentVersion\DriverSearching\SearchOrderConfig=dword:00000000


!!! HAPPY COMPUTING !!!