- Press the Windows key
- Type Notepad into the search field
- In the search results, right-click Notepad and select Run as administrator.
- From Notepad, open the following file:
C:\Windows\System32\Drivers\etc\hosts
- Make the necessary changes to the file.
- Select File > Save to save your changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
s.connect(("8.8.8.8", 80)) | |
print(s.getsockname()[0]) | |
s.close() |
DietPi Give your Single-board computer some Lightweight justice. What you'll need:
4GB or greater Micro SD card.
Internet Access (Ethernet or Wifi, required to complete the DietPi setup).
Dedicated USB Drive is highly recommended (Allows DietPi-Software installations to utilize USB over SD).
Step 1 (Download DietPi Image): Download - dietpi.com
Execute the following to remove a specific host:
nano ~/.ssh/known_hosts