|

Ubuntu tinklo sutvarkymas [asmeniniai užrašai]

Asmeninis bandymas Ubuntu 16.04 bazinis diegimas + reikiami kiti paketai, wifi sutvarkymas.
lsmod | grep 8192

Wifi poreikis buvo sprendžiamas taip:

sudo apt-get install wpasupplicant

Sužinome interface vardą:

iw dev
ifconfig -a
sudo ifconfig wlx107b44561d30 up

Prasiskanuojame ką matome, ar yra matomas mūsų wifi kelvedys:

sudo iw dev wlx107b44561d30 scan | grep SSID

sudo nano /etc/wpa_supplicant.conf
pvz:

network={
    ssid="ssid_name"
    psk="password"
}

arba sugeneruojame

sudo wpa_passphrase ssid_name password > /etc/wpa_supplicant.conf

Išbandome (root), sintaksė:
wpa_supplicant -D[driver] -i[device] -c[/path/to/config]

wpa_supplicant -Dwext -iwlx107b44561d30 -c/etc/wpa_supplicant.conf

You can also run it in the background by using the -B option so that it doesn’t take up your console.
To get a DHCP lease, first release whatever leases you’re still holding onto (as root):

dhclient -r

Then ask for a new lease (of course replacing eth1 with the name of your network device, the same one as you used in the previous section):

dhclient eth1

Koreguojam /etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto enp0s25
allow-hotplug enp0s25
iface enp0s25 inet dhcp

#wifi
#auto wlx107b44561d30
allow-hotplug wlx107b44561d30
iface wlx107b44561d30 inet dhcp
pre-up wpa_supplicant -B -Dwext -iwlx107b44561d30 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

Ilga įkrova, vis rašo kad laukia “Raise network interfaces”, radau sprendimą:

Edit the file /etc/dhcp/dhclient.conf to set timeout to a sane value, like

timeout 15

The default value of 300 seconds is way too high.

Dar vienas, koreguojame /etc/network/interfaces, štai aprašymas:

So in your /etc/network/interfaces, change this:

# The primary network interface
auto eth0
iface eth0 inet dhcp

to this:

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

This will start interface eth0 when the kernel detects a hotplug event from the interface (i.e. when you plug a cable in), instead of starting it at boot.

Papildomų paketų diegimas:

sudo apt-get update
sudo apt-get install git wget telnet htop zip unzip mc curl
Kviečiu įvertinti įrašą!
[Viso: 0 Vidurkis: 0]

Similar Posts

Parašykite komentarą

El. pašto adresas nebus skelbiamas.

Sauga: + 43 = 53