OMG I’ve deleted a system directory! How do I recover it?


Posted: febbraio 20th, 2013 | Author: Francesco Apollonio | Filed under: English, Guide, Howto | Tags: , , , , , , , , , , | No Comments »


Ok, a little introduction first. I was working on an uninstall target of a Makefile for a system library. For a very unlucky case (or maybe for my stupidity) I’ve deleted (fortunately not all) my /usr directory :)

And now?

As I said before not every files and binaries were deleted because I realized quickly what I was doing and I pressed ctrl-c to stop it before it was late.

Let’s start with the trick.
Read the rest of this entry »


Installare Xilinx 14.2 in GNU/Linux (Debian Sid) per programmare una Spartan-6 LX9


Posted: ottobre 23rd, 2012 | Author: Francesco Apollonio | Filed under: Guide, Howto, Programmazione, VHDL | Tags: , , , , , , , , , , , , , | No Comments »


Ho la necessità di utilizzare il software ISE 14.2 (della suite di Xilinx) per programmare una microboard Spartan-6 LX9, ovviamente su GNU/Linux (Debian Sid ma funziona anche su altri sistemi GNU/Linux).

Il procedimento è tutto sommato semplice se non fosse per la compilazione dei driver per la connessione via usb al device. Infatti i driver, che si trovano nella directory linux_drivers presente nel tarball, non compilano probabilmente per una incompatibilità del kernel (uso Linux 3.2).

Con questa guida verrà installato il plugin Digilent ad ISE. Questo plugin non fa altro che istruire il software a comunicare direttamente con il circuito di configurazione USB-JTAG Digilent.
Read the rest of this entry »


How to automatically execute a VIM command only for some file types


Posted: maggio 21st, 2012 | Author: Francesco Apollonio | Filed under: English, Guide, Howto | Tags: , , , , , , | No Comments »


I want to set the maximum line length to a certain value, only for tex files.

VIM has a command to force line length. It’s:

set tw=120

To automatically execute this command only for tex files, you have to edit your vimrc file (~/.vimrc or /etc/vim/vimrc) adding the following lines:

if has("autocmd")
autocmd BufRead,BufNewFile *.tex set tw=120
endif

Now VIM will execute this command every time that you will open a tex file.


Creazione di una rete di controllo per macchine virtuali,che permetta di raggiungerle dall’host con il loro hostname


Posted: gennaio 19th, 2012 | Author: Francesco Apollonio | Filed under: Guide, Howto, KVM, Programmazione, VDE, Virtualbricks, Virtualizzazione | Tags: , , , , , , , , , , , , | 1 Comment »


Dovendo gestire più di un testbed formato da macchine virtuali di numero, tipologia e topologie diverse, mi sono imbattuto in alcuni problemi. I sistemi che utilizzo sono macchine virtuali KVM e VDE per gestire la rete. Per gestirli ovviamente utilizzo Virtualbricks poiché mi semplifica, e non di poco, la vita.

Il problema

Il problema che voglio affrontare in questo articolo è un problema di semplificazione all’accesso da remoto alle varie macchine virtuali, ovvero: come fare ad accedere, utilizzando SSH, alle varie macchine virtuali utilizzando come nome degli host i nomi delle macchine virtuali che ho impostato su Virtualbricks? E soprattutto questo meccanismo può essere automatizzato, in modo che ogni macchina virtuale, appena viene lanciata, istruisca la macchina host su quale è la combinazione hostname – IP corretta per comunicare con essa?

Read the rest of this entry »


Programmare ARM – Compilare il bin da caricare sulla Board LPC-P1343


Posted: luglio 4th, 2011 | Author: Francesco Apollonio | Filed under: ARM, Embedded, Guide, Howto, Programmazione | Tags: , , , , , , , , , | No Comments »


Abbiamo visto come caricare sulla scheda un firmware che già abbiamo, ma come possiamo compilarne uno noi?

Layout della board

Read the rest of this entry »


  • Articoli Recenti:

  • Tag

  • Categorie

  • Meta

  • Licenza Creative Commons

    Copyright © 2013, | ldlabs.org – Blog is proudly powered by WordPress All rights Reserved | Theme by Ryan McNair modified By Francesco Apollonio

    Smilla Magazine Il Bloggatore iwinuxfeed.altervista.org Feedelissimo - tecnologia WebShake - tecnologia