[OT] Ubuntu network configuration

V13 v13 at v13.gr
Sat Apr 7 03:20:27 EEST 2012


On Saturday 07 April 2012, Christos Ricudis wrote:
> Αυτη τη στιγμη εχουμε
> 
> $ du -bs NetworkManager-0.9.4.0/
> 18552398        NetworkManager-0.9.4.0/
> 
> *20 fucking megabytes* για ενα glorified (και οχι και τοσο glorified,
> εδω που τα λεμε) *wrapper για την ifconfig και τον dhclent*, το οποιο
> εγινε η μεγααλη επιτυχια που ειναι σημερα απλα και μονο επειδη κανενας
> δε φαινοταν να μπορει να γραψει εναν WPA supplicant της προκοπης -
> αλλιως δε θα το ηξερε ουτε η μανα του το NM.

Gia tin akribeia:

$ find . -name \*.c -or -name \*.h |  xargs du -bcs | tail -1
5339904	total

ara 5MB. Ta ypoloipa einai non-code.

Apo ekei kai pera, einai kati parapano apo wrapper. Katarxin kalyptei kai alla 
pragmata opos ipv6, dns, modems, vpn, ppp kai wireless:

$ ls -ld src/*-manager
drwxr-xr-x 2 v13 v13 220 Nov 10 01:10 src/bluez-manager
drwxr-xr-x 3 v13 v13 300 Nov 10 01:10 src/dhcp-manager
drwxr-xr-x 2 v13 v13 280 Nov 10 01:10 src/dns-manager
drwxr-xr-x 2 v13 v13 120 Nov 10 01:10 src/dnsmasq-manager
drwxr-xr-x 2 v13 v13 120 Nov 10 01:10 src/ip6-manager
drwxr-xr-x 2 v13 v13 260 Nov 10 01:10 src/modem-manager
drwxr-xr-x 2 v13 v13 180 Nov 10 01:10 src/ppp-manager
drwxr-xr-x 3 v13 v13 280 Nov 10 01:10 src/supplicant-manager
drwxr-xr-x 2 v13 v13 240 Nov 10 01:10 src/vpn-manager

Episis kanei arketa kalo separation toy gui me to privileged part me 
apotelesma na min xreiazetai sudo + ena karo wrappers poy na kanoyn validate 
to input oste na min mporeis na pareis root gia na syndetheis se ena asyrmato 
diktyo.

Prosopika latrevo sto NM:
* to oti poreis na to bgaleis. (O nai! Den einai anapospasto meros toy 
systhmatos. To ksiloneis h apla to stamatas kai ola doylevoyn mia xara).
* to oti den afinei to kathe distribution kai to kathe DE na grafei ta dika 
toy anakalyptontas ton troxo apo thn arxi kai me apotelesma na xaneis to 
diktyo otan crasharoyn ta X. (ta thymasai ayta? e? e?)

Fysika den einai gia na kaneis bridge interfaces, na symetexeis se perissotera 
apo ena vlans, na xeirizesai tun/tap interfaces klp, alla ayto poy kanei 
kalyptei ena arketa megalo meros ton anagkon kai mexri simera eksakoloythei na 
einai me diafora o eykoloteros tropos na syndeseis enan forito se asyrmato 
diktyo.

Btw, AFAIK to NM den peirazei interfaces poy'nai dilomena sto 
/etc/network/interfaces, opote an baleis 'iface XXX inet manual' den tha to 
peirazei. Episis den peirazei interface poy den ta kserei. 

p.s. Molis anakalypsa oti exei kai command-line interface: nmcli


More information about the Linux-greek-users mailing list