Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisione Revisione precedente Prossima revisione | Revisione precedente | ||
openbsd [2019/03/04 23:01] amnesia [Slim] |
openbsd [2020/06/24 23:30] (versione attuale) amnesia |
||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | ===== OpenBSD ==== | + | ======= OpenBSD ====== |
- | ===grub=== | + | |
- | title OpenBSD | + | === Comandi utili === |
- | rootnoverify (hd0,1) | + | |
- | makeactive | + | |
- | chainloader +1 | + | |
- | ==grub2== | + | fw_update -a |
- | menuentry "OpenBSD" { | + | syspatch |
- | set root=(hd0,2) | + | |
- | chainloader +1 | + | |
- | } | + | |
- | in entrambi i casi la partizione è /dev/sda2 | + | pkg_check |
- | = Gruppo wheel = | + | sysupgrade |
+ | |||
+ | === Gruppo wheel === | ||
Non dimenticare di aggiungere wheel all' utente!! Quante volte me ne son scordato... | Non dimenticare di aggiungere wheel all' utente!! Quante volte me ne son scordato... | ||
Linea 37: | Linea 32: | ||
E che non si ripeta mai più! :) | E che non si ripeta mai più! :) | ||
- | = Connessione wifi = | + | Alle volte è utile un meta pachetto ma lo creo io qui :) |
- | + | ||
- | E' inutile dire che con man ifconfig si risolvono i problemi, o qualche volta, aumentano i dubbi :D | + | |
- | Procediamo a manina e cerchiamo la periferica: | + | |
- | + | ||
- | # ifconfig -a | + | |
- | + | ||
- | Trovata! Sul pc (prestato) che ho qui è athn0. Per collegarci dobbiamo sapere cosa c'è nell' aria: | + | |
- | + | ||
- | # ifconfig athn0 scan | + | |
- | + | ||
- | ecco il risultato: | + | |
- | + | ||
- | athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 | + | |
- | lladdr 00:00:00:00:00:00 | + | |
- | priority: 4 | + | |
- | groups: wlan egress | + | |
- | media: IEEE802.11 autoselect (OFDM48 mode 11n) | + | |
- | status: no network | + | |
- | ieee80211: nwid RETE1 chan 13 bssid 00:00:00:00:00:00 35dB 150M privacy,short_slottime | + | |
- | nwid RETE2 chan 13 bssid 00:00:00:00:00:00 23dB 150M privacy | + | |
- | + | ||
- | Assegniamo un indirizzo ip al pc o meglio ancora, semplifichiamo con dhcp. Creiamo il file hostname della periferica: | + | |
- | + | ||
- | # vi /etc/hostname.athn0 | + | |
- | + | ||
- | In alto a destra dove è vuoto.. scriviamo: | + | |
- | + | ||
- | up | + | |
- | dhcp | + | |
- | + | ||
- | Salviamo e chiudiamo l' editor. | + | |
- | + | ||
- | Se abbiamo la pass di tipo wpa2 procederemo così: | + | |
- | + | ||
- | # ifconfig athn0 nwid RETE1 chan 13 bssid 00:00:00:00:00:00 wpakey 1234567890 | + | |
- | + | ||
- | Se invece è una rete aperta | + | |
- | + | ||
- | # ifconfig athn0 nwid RETE3 -wpakey -nwkey | + | |
- | + | ||
- | Poi: | + | |
- | + | ||
- | # dhclient athn0 | + | |
- | + | ||
- | Che restituirà: | + | |
- | + | ||
- | DHCPREQUEST on athn0 to 255.255.255.255 port 67 | + | |
- | DHCPACK from 192.168.1.254 (00:00:00:00:00:00) | + | |
- | bound to 192.168.1.2 -- renewal in 1800 seconds. | + | |
- | + | ||
- | A volte bisogna riavviare la rete, e forse, è anche buona cosa e saggia leggerne i dettagli: | + | |
- | + | ||
- | # sh -x /etc/netstart athn0 | + | |
- | + | ||
- | Se volessimo rendere permanente la connessione (ed attiva all' avvio) allora il file hostname.athn0 sarà: | + | |
- | + | ||
- | nwid NomeDellaRete | + | |
- | + | ||
- | wpakey 1234567890 | + | |
- | + | ||
- | dhcp (oppure ip fisso) | + | |
- | + | ||
- | Questo è tutto. | + | |
- | ===== Mate Desktop ===== | + | |
- | + | ||
- | Comandi: | + | |
- | + | ||
- | pkg_add mate-calc mate-control-center mate-desktop mate-icon-theme mate-media mate-menus mate-notification-daemon mate-panel mate-power-manager mate-screensaver mate-session-manager mate-settings-daemon mate-terminal mate-themes-3.22.15 mate-utils caja | + | |
- | + | ||
- | + | ||
- | ==== avahi ==== | + | |
- | + | ||
- | Attivare il multicast su /etc/rc.conf.local: | + | |
- | + | ||
- | multicast=YES | + | |
- | ?dbus_enable=YES? | + | |
- | + | ||
- | ** Nota:devi attivare il demone per tutto il sistema: | + | |
- | + | ||
- | rcctl enable messagebus avahi_daemon | + | |
- | rcctl order messagebus avahi_daemon | + | |
- | + | ||
- | Regola per il firewall su pf.conf aggiungendo al traffico avahi (multicast): | + | |
- | + | ||
- | pass proto udp from any to 224.0.0.251 port mdns allow-opts | + | |
- | + | ||
- | Abilitare ConsoleKit in una sessione grafica pretendendo ck-launch-session | + | |
- | Esempio: | + | |
- | + | ||
- | /usr/local/bin/ck-launch-session /usr/local/bin/openbox-session | + | |
- | + | ||
- | The /var/log/ConsoleKit/history logfile can grow very large after some | + | |
- | time. It is advised to use newsyslog(8) to rotate it. | + | |
- | + | ||
- | To get all upower(1) functionalities, apmd(8) and the system-wide D-Bus | + | |
- | daemon needs to be running | + | |
- | + | ||
- | # rcctl enable apmd messagebus | + | |
- | + | ||
- | ==== Slim ==== | + | |
- | + | ||
- | Gestore grafico, se si decidesse di usarlo, compreso i themes: | + | |
- | + | ||
- | pkg_add -v slim slim-themes | + | |
- | + | ||
- | Attivare Slim | + | |
- | # rcctl enable slim | + | Informazioni aggiornate dalla 6.5: |
- | Dicevo... Se si decidesse di usarlo... sarebbe meglio evitare, è sempre bene farne a meno di troppe inutili comodità :) | + | [[Connessone wifi]] |
+ | [[Mate Desktop]] | ||
+ | [[JWM]] |