Install Rust on EndeavourOS
sudo pacman -S rustup rustup default stable
sudo pacman -S rustup rustup default stable
sudo pacman -Syu ghostty fish
Set Fish as Your Default Shell
chsh -s $(which fish)
Configure Ghostty to Launch Fish Natively
mkdir -p ~/.config/ghostty touch ~/.config/ghostty/config
nano ~/.config/ghostty/config
# --- Shell Execution --- command = /usr/bin/fish window-inherit-working-directory = false # --- Visual Tuning (Optional Suggestions) --- font-family = "JetBrainsMono Nerd Font" font-size = 11 theme = dark:tomorrow-night,light:tomorrow-day window-padding-x = 10 window-padding-y = 10
nano ~/.config/fish/config.fish
Add this snippet to the top of the file to force Ghostty’s terminal environment mapping:
if set -q GHOSTTY_RESOURCES_DIR
source "$GHOSTTY_RESOURCES_DIR/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish"
end
First-Time Fish Setup
fish_config
sudo nano /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: true
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
sudo netplan apply
sudo nano /etc/sysctl.conf
# Disable IPv6 globally net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
sudo sysctl -p
Using Registry Editor (regedit) – for all Windows Editions
Press Windows + R, type regedit, and press Enter to open the Registry Editor.
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator. If the NetworkConnectivityStatusIndicator key does not exist, right-click on the Windows key, select New > Key, and name it exactly that.
In the right pane, right-click and select New > DWORD (32-bit) Value.
Create the following two values and set their data to 1:
NoActiveProbe
DisablePassivePolling
Restart your computer for the changes to take effect.
This method uses a command to forcefully stop the auto-configuration feature.
Search for “Command Prompt”, right-click it, and select Run as administrator.
To disable the automatic configuration, run: netsh wlan set autoconfig enable=no interface="Wi-Fi".
To re-enable it later, simply change no to yes in the same command.
hosts FileThis method is complex and not recommended for the average user as it involves running a local web server to “trick” Windows into thinking the NCSI tests are passing.
Edit the hosts file (C:\Windows\System32\drivers\etc\hosts) and add these lines: 127.0.0.1 www.msftconnecttest.com and 127.0.0.1 www.msftncsi.com.
Run a local web server (like XAMPP) that responds to these requests.
Run this on your PC:
ssh -N -R 127.0.0.1:1080 ubuntu_user@UBUNTU_SERVER_IP
This creates a SOCKS proxy on the Ubuntu server at:
127.0.0.1:1080
Traffic from the Ubuntu server will go through SSH and exit from your PC’s internet connection.
On the Ubuntu server, test it:
curl --proxy socks5h://127.0.0.1:1080 https://ifconfig.me
Then run this on the Ubuntu server:
ssh -N -D 127.0.0.1:1080 pc_user@PC_IP
curl --proxy socks5h://127.0.0.1:1080 https://ifconfig.me
For example, if you already use one of these apps:
| App | Common HTTP / mixed proxy port |
|---|---|
| v2rayN | 10809 or similar |
| Clash Verge / Clash for Windows | 7890 |
| NekoRay / NekoBox | usually configurable |
Use the app’s HTTP or mixed proxy port.
ssh -N -R 127.0.0.1:1080:127.0.0.1:7890 ubuntu_user@UBUNTU_SERVER_IP
Open the Local Group Policy Editor: Press Windows + R, type gpedit.msc into the Run dialog, and click “OK”.
Navigate to the Policy: Go to the following path in the left panel:
Computer Configuration → Administrative Templates → Windows Components → File Explorer
(Note: In some Windows 11 versions, this may be named “Windows Explorer” instead.)
Open the Policy Setting: In the right panel, double-click “Configure Windows Defender SmartScreen”.
Disable SmartScreen: In the window that opens, select the Disabled option and click Apply and then OK to save the changes.
sudo useradd -r -s /bin/false -m -d /home/proxyuser proxyuser
sudo passwd proxyuser
sudo nano /etc/ssh/sshd_config
Match User proxyuser
AllowAgentForwarding no
AllowTcpForwarding yes
X11Forwarding no
PermitTTY no
ForceCommand /bin/false
sudo systemctl restart ssh # or sudo systemctl restart sshd
If you want every single .exe you launch to attempt to run with your full Admin token by default, you can tweak the registry.
Press Win + R, type regedit, and hit Enter.
Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Look for the value EnableLUA.
Double-click it and change the Value Data to 0.
Restart your computer.
Download & Install: Download the installer from the official MSYS2 website and run it. Using the default installation path (e.g., C:\msys64) is highly recommended
pacman -Syu
pacman -S --needed base-devel mingw-w64-x86_64-toolchain
rustup target add x86_64-pc-windows-gnu
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup set default-host x86_64-pc-windows-gnu
Create (or edit) a file at %USERPROFILE%\.cargo\config.toml. Add these lines to explicitly tell Cargo which linker and archiver to use; replace C:\msys64 with your actual MSYS2 path if different
[target.x86_64-pc-windows-gnu] linker = "C:\\msys64\\mingw64\\bin\\gcc.exe" ar = "C:\\msys64\\mingw64\\bin\\ar.exe"