Skip to content

a GUI tool for linux to switch hosts configurations for different develop environments quickly

Notifications You must be signed in to change notification settings

fiefdx/hostswitcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hostswitcher

a GUI tool for linux to switch hosts configurations for different develop environments quickly

Alt text

Install & Run

# install wx
sudo apt-get install python-wxgtk3.0 python-wxtools wx3.0-i18n libwxgtk3.0-dev

# install
git clone git@github.com:fiefdx/hostswitcher.git
cd hostswitcher
sudo python ./setup.py install

# run
sudo hostswitcher
# it will create a directory /etc/hostswitcher and copy your default hosts file /etc/hosts into it as /etc/hostswitcher/default

# click "Add" button, then enter <file name>, it will create a new hosts file in /etc/hostswitcher/<file name> base on default file, and you can edit this file properly
# select a hosts file from the drop down menu, then click "Edit", then you can edit this selected hosts file
# select a hosts file from the drop down menu, then click "Delete", then you can delete this selected hosts file
# select a hosts file from the drop down menu, then click "Set", then you can set this selected hosts file as current hosts file
# the status bar always display currently used hosts file name, so you can easily tell which hosts file is currently used

# it use gedit as default editor, if you don't like it, you can change the hostswitcher file 'Editor = "gedit"' to any other editor easily

About

a GUI tool for linux to switch hosts configurations for different develop environments quickly

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages