Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:guides:network-script [2010/07/08 15:14] – external edit 127.0.0.1 | en:guides:network-script [2014/11/15 20:00] (current) – updated (thanks K3nn3th) linea | ||
|---|---|---|---|
| Line 62: | Line 62: | ||
| For user tux, which must use network.sh from every host; without a password you should add: | For user tux, which must use network.sh from every host; without a password you should add: | ||
| - | <code bash> | + | <file> |
| tux ALL=NOPASSWD: | tux ALL=NOPASSWD: | ||
| - | </code> | + | </file> |
| For user tortux, which may only get connected from localhost, and which should use a password each time, you should add: | For user tortux, which may only get connected from localhost, and which should use a password each time, you should add: | ||
| - | <code bash> | + | <file> |
| tortux my_hostname=PASSWD: | tortux my_hostname=PASSWD: | ||
| - | </code> | + | </file> |
| If you forgot your hostname, just run: | If you forgot your hostname, just run: | ||
| Line 97: | Line 97: | ||
| # (This script is only useful if sudo is installed, and correctly configured) | # (This script is only useful if sudo is installed, and correctly configured) | ||
| - | echo '' | + | echo '< |
| # for default file: | # for default file: | ||
| - | echo '' | + | echo '<item label=" |
| - | echo '' | + | echo -n '<action name=" |
| - | echo 'sudo / | + | echo -n "sudo / |
| - | echo '' | + | echo '</ |
| + | echo '</ | ||
| - | # for others | + | # for other configuration |
| - | for file in $(ls /etc/network/) | + | # depending on your setup): |
| - | do | + | # e.g nice for frugal installs: |
| - | echo -e "" | + | # ls /home/tux/ |
| - | echo '' | + | ls / |
| - | echo "sudo / | + | echo '< |
| - | echo '' | + | echo -n '<action name=" |
| - | done | + | echo -n "sudo / |
| + | echo '</ | ||
| + | echo '</ | ||
| + | done | ||
| # To stop connections: | # To stop connections: | ||
| - | echo '' | + | echo '<item label=" |
| - | echo '' | + | echo -n '<action name=" |
| - | echo 'sudo / | + | echo -n "sudo / |
| - | echo '' | + | echo '</ |
| + | echo '</ | ||
| - | echo '' | + | echo '</ |
| </ | </ | ||
| Line 131: | Line 136: | ||
| And now you only have to add these lines in // | And now you only have to add these lines in // | ||
| - | <code bash> | + | <file> |
| - | menu id=" | + | <menu id=" |
| execute="/ | execute="/ | ||
| - | </code> | + | </file> |
| Then reconfigure openbox: | Then reconfigure openbox: | ||