Re: aggiornamento sistema

"Davide D'Amico" <[email protected]>
Newsgroups gmane.os.freebsd.italian.aiuto
Message-ID <CAHykR+Lp+U+bsfGsmJKOETw_VJ3mg+XfL4HgauowEtD_8jHUSA@mail.gmail.com>
Il giorno 11 luglio 2013 16:16, domenico <[email protected]> ha scritto:

> Salve,
> ho da poco ripreso ad utilizzare FreeBSD, volevo suggerimenti per poter
> aggiornare nel modo più indolore possibile un server di test casalingo.
>
> Mi spiego meglio, ho un HP micro server dove tramite i ports ho installato
> vari programmi e servizi come apache, cyrus ed altro a questo punto vorrei
> tenerlo aggiornato il più possibile dato che ci girano anche applicazioni
> utente come Firefox, etc.
> Ovviamente ho già letto  l'handbook, ma vi chiedo suggerimenti pratici.
>
> Cosa mi suggerite ?
>

1. cd /usr/ports/ports-mgmt/portaudit && sudo make install clean
2. echo "0       2       *       *       *       root
 /usr/local/vbin/updatePorts.sh" >> /etc/crontab
3. mkdir -p /usr/local/vbin
4. cat > /usr/local/vbin/updatePorts.sh << EOF
#!/bin/sh

/usr/sbin/portsnap -f /etc/portsnap.conf cron
/usr/sbin/portsnap update >/dev/null

NUM_VULNS=$(/usr/local/sbin/portaudit -Faq | sort | uniq | wc -l)
if [ $NUM_VULNS -gt 0 ]; then
  echo ""
  echo ""
  echo "Vulnerabilities found:"
  /usr/local/sbin/portaudit -Faq | sort | uniq
fi
EOF
5. chmod 0700 /usr/local/vbin/updatePorts.sh
6. man portaudit, man pkg, man portmaster e man portdowngrade

Questi semplici step chiaramente non esauriscono il discorso, ma è un
inizio. Il resto verrà da sè.

d.

_______________________________________________
Aiuto mailing list
[email protected]
http://mailman.gufi.org/mailman/listinfo/aiuto
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.