Category: Ubuntu
Setting Proxy in Ubuntu
apt
1 2 3 4 |
Acquire { HTTP::proxy "http://127.0.0.1:8080"; HTTPS::proxy "http://127.0.0.1:8080"; } |
snap
1 2 3 4 5 |
# /etc/environment http_proxy=http://127.0.0.1:8080/ https_proxy=http://127.0.0.1:8080/ systemctl restart snapd |
Ubuntu Network Manager
Setting Static IP
1 2 3 4 5 |
nmcli con mod connection_name ipv4.addresses 192.168.0.123/24 nmcli con mod connection_name ipv4.gateway 192.168.0.1/24 nmcli con mod connection_name ipv4.dns "8.8.8.8" nmcli con mod connection_name ipv4.method manual nmcli con up connection_name |
Settting to use DHCP
1 2 |
nmcli con mod connection_name ipv4.method auto nmcli con up connection_name |
Configuration file location
1 |
/etc/NetworkManager/system-connections/<em>connection_name</em> |
Wifi
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# displays a table of available wifi access points. nmcli dev wifi sudo nmcli dev wifi connect my_ssid # with password sudo nmcli dev wifi connect my_ssid password "my_password" # prompt for password sudo nmcli --ask dev wifi connect my_ssid # add wifi connections sudo nmcli con add con-name HOMEOFFICE ifname wlan0 type wifi ssid my_ssid |