Pages

domenica, febbraio 14, 2016

Ubuntu Mate - Colleghiamoci alla WiFi tramite terminale

Può essere utile sapre come connettere la nostra scheda WiFi al router tramite  terminale.

Fermiano il servizo

sudo service network-manager stop

Verifichiamo la presenza delle schede

sudo iwlist scan

La mia scheda è idenficata è si chiama wlan0 

per cui la debbo attivare con il comando 
 
sudo ifconfig wlan0 up

Possiamo impostare l'indirizzo IP e il Gateway manualmente 

sudo ifconfig wlan0 <indirizzo_ip_locale> up

sudo route add default gw <indirizzo_ip_gateway>

 

Ora dobbiamo ottenre le informazioni della scheda con il comando

sudo iwlist scan

facciamo una ricerca migliore, per indentificare la scheda con 

sudo iwlist scan | grep -i 'essid'

abbiamo ottenuto una lista delle rete WiFi

identifichiamo la nostra rete essid = 'MiaWiFi' e ci colleghiamo

sudo iwconfig wlan0 essid 'MiaWiFi' key open    

se la nostra rete è protetta da password utilizzamo 

sudo iwconfig wlan0 essid 'MiaWiFi' key 'chiave_di_rete' 

connettiamolo alla rete con 

sudo dhclient wlan0

In fine dobbiamo impostare il DNS primario e secondario con 

sudo nano /etc/resolvconf/resolv.conf.d/base

e all'interno del file scriviamo 

nameserver 8.8.8.8

nameserver 8.8.4.4



Dopo aver salvato con CTRL + O usciamo con CTRL + X e digitiamo 

sudo resolvconf -u

  

 


 

domenica, febbraio 07, 2016

Expand Partition SD on Ubuntu Mate 15.10 in Raspberry PI 2




























Open Terminal Command

Type this: 
sudo fdisk /dev/mmcblk0
insert your password 

Delete partition

Command (m for help): <----    
Partition number (1,2, default 2):
<----


Partition is deleted

Partition 2 has been deleted.

Create new partition
Command (m for help): n  <----
Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): p
<----
Partition number (2-4, default 2): 2
<----

Press Enter For total size
First sector (133120-31116287, default 133120):   ENTER  <----
Last sector, +sectors or +size{K,M,G,T,P} (133120-31116287, default 31116287):

Created a new partition 2 of type 'Linux' and of size 14,8 GiB.
: ENTER
<---


Close fdisk  type w
Command (m for help): <----
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).


Reboot System
sudo reboot  <----



Open Terminal Command

Type this: 
sudo resize2fs /dev/mmcblk0p2
insert your password 
 Finish