Skip to content

Instantly share code, notes, and snippets.

@fabiosoft
Created February 12, 2014 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiosoft/8962644 to your computer and use it in GitHub Desktop.
Save fabiosoft/8962644 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Installazione "Wicd" Network Manager per WiFi e Eth
# Start as Root or sudo.
# Solo root può eseguire lo script
if [[ $EUID -ne 0 ]]; then
echo "Avvia lo script come ROOT o SUDO" 1>&2
exit 1
fi
apt-get update
apt-get install wicd
cp /etc/network/interfaces /etc/network/interfaces.default
printf "auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp\n" > /etc/network/interfaces
read -p "Adesso mi riavvio, al boot configura Wicd da desktop (VNC) dal menu Start > Internet > Wicd Network Manager"
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment