Archivio mensile:Febbraio 2015

Adattatore Usb Seriale

Collegamento seriale verso Switch HP Procurve con Mac OSX

Come stabilire senza tools di terze parti un collegamento in seriale ( tramite adattatore usb-seriale ) tra uno switch HP Procurve ed un Mac equipaggiato con OSX Yosemite. ( procedura valida anche per system 10.6-10.9 )

In windows esiste un tool tuttofare davvero comodo ed efficente, si chiama PUTTY.
Putty ci permette di profilare e salvare i parametri di accesso a porte seriali come un client FTP (e non solo) ma nel mac come possiamo fare per stabilire un collegamento seriale?

come sapere OSX il system di base dei Macintosh è unix based e per questo motivo attraverso il terminale possiamo fare davvero di tutto.

per il nostro scopo basterà aprire terminale e digitare :

screen /dev/tty.usbserial 19200

dove :

screen : è il comando per aprire la comunicazione

/dev/tty.usbserial : è il nostro convertitore usb-seriale Yosemite compatibile un Lindy 42811
driver aggiornati a febbraio 2015 md_PL2303_MacOSX_10_6-10_10_v1_5_1

19200 : la velocità in baud della comunicazione seriale. ( per esempio un valore piu lento poteva essere 9600, la velocità ottimale è scritta nei manuali redatti dai produttori, per hp da 1200 in su fino 115000 va sempre bene)

con questo semplice comando, seguito da qualche battuta del tasto ENTER per risvegliare la console ( battere enter 3/4 volte e comunque fino al messaggio della HP), entreremo in seriale sugli switch hp procurve.

p.s.

digitando “help” oppure “?” a video lo switch mostrerà i comandi di programmazione disponibili

Come Rackspace – RSC crea virtual host su vps managed

come RSC crea host :


cd /etc/httpd/vhost.d/
ll
cat dominioesistente.estensionedominio.conf
ll
cp dominioesistente.estensionedominio.conf nuovodominio.estensionedominio.conf
vim nuovodominio.estensionedominio.conf <- QUI modifica i parametri con quelli nuovi mkdir -p /mnt/data/vhosts/NUOVODOMINIO.ESTENSIONE/httpdocs/ cd /mnt/data/vhosts/NUOVODOMINIO.ESTENSIONE/httpdocs/ ll vim index.php vim NUOVODOMINIO.ESTENSIONE.conf ll curl curlmyip.com netstat -plnt cd /mnt/data/vhosts ll cat /etc/passwd useradd -d /mnt/data/vhosts/NUOVODOMINIO.ESTENSIONE -s /sbin/nologin NUOVOUTENTE passwd NUOVOUTENTE_APPENACREATO ll chown NUOVOUTENTE_APPENACREATO:apache dominio.estensione -R ll cd dominio.estensione/ ll find . -type d | xargs chmod 775 find . -type f | xargs chmod 664 chmod g+s . httpd -t service httpd graceful curl curlmyip.com sevice iptable save service iptables save service iptables restart vim /etc/sysconfig/iptables service iptables restart curl curlmyip.com servie httpd restart service httpd start cd /etc/httpd/vhost.d/ ll mv DOMINIO.ESTENSIONE.conf DOMINIO.ESTENSIONE ll service httpd restart vim DOMINIO.ESTENSIONE mv DOMINIO.ESTENSIONE DOMINIO.ESTENSIONE.conf httpd -t service httpd restart mv DOMINIO.ESTENSIONE.conf terrediromagna.org service httpd restart vim DOMINIO.ESTENSIONE mkdir -p /mnt/data/vhosts/DOMINIO.ESTENSIONE/logs/ mv DOMINIO.ESTENSIONE DOMINIO.ESTENSIONE.conf httpd -t service httpd restart cd mysql cat /etc/passwd curl curlmyip.cpom curl curlmyip.com