Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Prossima revisione | Revisione precedente Ultima revisione Entrambe le parti successive la revisione | ||
netbsd [2016/06/16 23:48] kimotori creata |
netbsd [2020/05/18 18:44] amnesia [Grub2] |
||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | = OpenBSD = | + | ====== NetBSD ====== |
- | ==grub== | + | [[Partizionamento manuale]] |
- | title OpenBSD | + | ==== Grub2 ==== |
- | rootnoverify (hd0,1) | + | Se si ha un dualboot con linux, nasce il problema. |
- | makeactive | + | La configurazione uefi non sempre risulta facile. Io ho proceduto così: |
- | chainloader +1 | + | |
- | ==grub2== | + | menuentry "NetBSD efi" { |
+ | insmod part_gpt | ||
+ | insmod part_msdos | ||
+ | insmod fat | ||
+ | set root='hd0,gpt1' | ||
+ | #search --set=root /dev/sda1 | ||
+ | chainloader /efi/netboot/bootx64.efi | ||
+ | } | ||
+ | Naturalmente si dà per inciso che **/dev/sda1** sia la partizione efi, ed i file efi di net siano dentro una dir denominata come pare all' utente, io ho scritto **/efi/netboot/** per semplicità. | ||
- | menuentry "OpenBSD" { | + | **NOTE:** |
- | set root=(hd0,2) | + | Per i nuovi nati, in fat32 è, ovviamente, NON-case_sensitive |
- | chainloader +1 | + | |
- | } | + | |
- | in entrambi i casi la partizione è /dev/sda2 | + | ==== Comandi utili ==== |
+ | installarli appena si ha un sistema funzionante | ||
- | = Gruppo wheel = | + | pkgfind |
+ | |||
+ | pkg_chk (in /usr/pkgsrc/pkgtools) | ||
+ | |||
+ | pkg_rolling-release | ||
- | Non dimenticare di aggiungere wheel all' utente!! Quante volte me ne son scordato... | + | li si trova qui https://pkgsrc.se/pkgtools/ |
+ | ===== Installazione disco ===== | ||
+ | (poi ci metto gli screen) | ||
- | # usermod -G wheel utente | + | ===== installazione Mate ===== |
+ | Installazione in breve: | ||
- | Oppure a manina | + | per gli utenti linux vecchio tool, ora si usa gamin... |
+ | pkgin install fam | ||
- | # vi /etc/group | + | il vecchio hardware abstraction layer... |
+ | pkgin install hal | ||
- | in alto a sinistra dove scritto: | + | File essenziali di mate (x11 va aggiunto prima durante l' installazione): |
+ | pkgin install mate | ||
+ | mate-applets | ||
+ | mate-desktop | ||
+ | mate-notification-daemon | ||
+ | mate-terminal | ||
+ | mate-panel | ||
+ | mate-session-manager | ||
+ | mate-icon-theme | ||
+ | mate-control-center | ||
+ | mate-power-manager | ||
+ | mate-utils | ||
+ | mate-calc | ||
+ | caja | ||
+ | caja-extensions | ||
+ | atril | ||
+ | gvfs-goa | ||
+ | gvfs-google | ||
+ | gvfs-nfs | ||
+ | gvfs-smb | ||
+ | mate-backgrounds | ||
+ | mate-user-share | ||
+ | mate-backgrounds | ||
+ | mate-user-share | ||
+ | mate-common | ||
+ | mate-icon-theme | ||
+ | mate-icon-theme-faenza | ||
+ | mate-indicator-applet | ||
+ | mate-media | ||
+ | mate-menus | ||
+ | mate-netbook | ||
+ | mate-notification-daemon | ||
+ | mate-panel | ||
+ | mate-polkit | ||
+ | mate-power-manager | ||
+ | mate-screensaver | ||
+ | mate-sensors-applet | ||
+ | mate-session-manager | ||
+ | mate-settings-daemon | ||
+ | mate-system-monitor | ||
+ | mate-terminal | ||
+ | mate-themes | ||
+ | mate-user-share | ||
+ | mate-utils | ||
- | wheel:*:0:root | + | File extra |
+ | pkgin install mate-extra | ||
- | aggiungere la virgola e l' utente: | + | ===== Configurazioni ===== |
- | wheel:*:0:root,utente | + | file alteration monitor; Il servizio sicurissimo di dbus :); Hal |
+ | cp /usr/pkg/share/examples/rc.d/famd /etc/rc.d/ | ||
+ | cp /usr/pkg/share/examples/rc.d/dbus /etc/rc.d/ | ||
+ | cp /usr/pkg/share/examples/rc.d/hal /etc/rc.d/ | ||
- | Ecco fatto. | + | Ed ultimo ma non poco importante l' avvio e i suoi demoni: |
- | E che non si ripeta mai più! :) | + | vi/vim/nano /etc/rc.conf |
- | = Connessione wifi = | + | ... |
+ | rpcbind=YES | ||
+ | famd=YES | ||
+ | hal=YES | ||
+ | dbus=YES | ||
- | E' inutile dire che con man ifconfig si risolvono i problemi, o qualche volta, aumentano i dubbi :D | + | configurare l- avvio del DE dall' utente |
- | Procediamo a manina e cerchiamo la periferica: | + | echo mate-session >> /home/utente/.xinitrc |
+ | qualcosa di utile: | ||
+ | pkgin install firefox71 seamonkey sane libreoffice gimp mc | ||
- | # ifconfig -a | + | Usare pkgsrc per software aggiuntivi... |
- | Trovata! Sul pc (prestato) che ho qui è athn0. Per collegarci dobbiamo sapere cosa c'è nell' aria: | + | ===== pkgsrc ===== |
- | # ifconfig athn0 scan | ||
- | ecco il risultato: | ||
- | athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 | + | cd /usr/pkgsrc && cvs update -dP |
- | 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 | + | ===== pkgsrc-wip ===== |
+ | Per una comodità sul nostro caro jwm il tool menumaker è presente in pkgsrc-wip e lo userò come esempio | ||
- | In alto a destra dove è vuoto.. scriviamo: | + | installare git |
- | up | + | pkgin install git |
- | dhcp | + | |
- | Salviamo e chiudiamo l' editor. | + | procedere con git: |
- | Se abbiamo la pass di tipo wpa2 procederemo così: | + | cd /usr/pkgsrc |
+ | git clone git://wip.pkgsrc.org/pkgsrc-wip.git wip | ||
- | # ifconfig athn0 nwid RETE1 chan 13 bssid 00:00:00:00:00:00 wpakey 1234567890 | + | Per continuare |
- | Se invece è una rete aperta | + | cd /usr/pkgsrc/wip |
+ | git pull -r | ||
- | # ifconfig athn0 nwid RETE3 -wpakey -nwkey | + | Procedere come di consueto |
- | Poi: | + | trovate tutto qui https://pkgsrc.org/wip/ |
- | # dhclient athn0 | ||
- | Che restituirà: | + | Via browser lo troviamo qui |
- | + | https://pkgsrc.se/wip/menumaker | |
- | DHCPREQUEST on athn0 to 255.255.255.255 port 67 | + | ===== Aggiornamento NetBSD ===== |
- | 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. | + | |
+ | Si possono usare alcuni metodi. dal manuale all' automatico, Io preferisco | ||
+ | sysupgrade |