Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Guide for editing hosts file in Ubuntu/Debian
- There are two easy ways: Terminal and GUI.
- 1.a) Terminal:
- Open your Terminal application. Make sure you're in Superuser mode (enter "sudo su" into the terminal).
- Once you have su abilities, access the file /etc/hosts with your favourite file editor (I prefer "nano" for it's user-friendliness).
- 1.b) GUI:
- Run TextEdit (GEdit) as ROOT (Done through right click on the application).
- Press CTRL+O and locate file /etc/hosts and open it.
- 2) Next step:
- Locate the bottom of the file and add the following lines to it:
- "
- 178.73.210.219 thepiratebay.se
- 178.73.210.219 www.thepiratebay.se
- 178.73.210.219 thepiratebay.org
- 178.73.210.219 www.thepiratebay.org
- "
- (Without the quotation marks)
- And then save the file.
- Try accessing http://thepiratebay.se/. If it works, then everything is configured correctly. If not try opening a Terminal and flushing your DNS cache (done through ifconfig) or rebooting your computer.
- To restore your hosts file to how it was before simply open the file in the same way, delete the 4 lines then save.
Advertisement
Add Comment
Please, Sign In to add comment