Enable/disable jounal on running ext root partition

Some times ago, trying to reach better performances on my SDD, I followed the wrong suggestion to disable the journal. This solution isn’t really good because I had some data loss and at almost each reboot the system got in fsck.

Yesterday I decided to go back and restore the journal. Each guide I found online was related to non root fs or to boot in maintenance mode. The only thing you need is a ro mountetd fs and usually you fine on internet this command line:

sudo mount -r -o remount /

Which is not enought and you get a busy error message.

The way to go around this issue is to force the remount, so if you want to enable journal:

sudo mount -f -r -o remount /dev/sda6

sudo tune2fs -O has_journal /dev/sda6

Or disable it:

sudo mount -f -r -o remount /dev/sda6

sudo tune2fs -O has_journal /dev/sda6

 

TBS tuner ? The wrong tuner card for Linux!

Since 6 months I bought a new satellite dish, which point to Astra so I can improve my Deutsch :). I used an old Pinnacle card as a receiver, but this old card doesn’t support dvb-s2. On the same machine I have two other cards:

  • TerraTec Cinergy T PCIe dual
  • Technisat Skystar2 PCI DVB-S

Recently some German channels (Das Erste HD, Arte HD,  ZDF HD,…) started to transmit in HD using the dvbs2 standard, so I decided to buy a new card. the requirements where very simple:

  • low profile, so if I decide to buy a new case I can choose a smaller one
  • support for dvb-s2
  • compatible with linux, without too much pain (based on my experience on linux there is always some pain)
  • remote not needed, in fact for me a new remote is simply a new trash
  • not too expensive, in fact i replace an already working card

After googling around for a while I found the card that looked good for my needs, and reading the instructions the driver seems really simple to install, my choice was the TBS6922. A few days later the card is delivered and in a few minutes the card gets installed. I follow strictly the build instructions and surprise surprise… the card works, but my TerraTec Cinergy T PCIe dual doesn’t work anymore. I lost a whole day trying to make everything work and at the end I also upgraded my HTPC station to the unstable release of Ubuntu 13.04 getting each hour more and more angry, and with kernel 3.8.?? the driver doesn’t build anymore.

What the people in TBS call driver is in fact a the whole kernel module for video, including the base video, video_buf, video_dvb and all other video/card drivers from an old version of linux! Yes! Your system gets downgraded, in fact if you install the TBS driver all your kernel modules in kernel/drivers/video get downgraded to an older version and you will never ever know which older version it is. So you will experiment things not working, bugs out-coming, compatibility issues and all you can thing about when you install old (obsolete) things on newer system with recent hardware.

What TBS developer should do is simply inform better on their site that they make their hardware working on linux by potentially braking the functionality of other hardware. Technically the approach approach should  be a dkms module like nvidia or others.

I’m still waiting from the TBS people a solution to my issue, perhaps I will receive an answer only after the  TerraTec Cinergy T PCIe dual has become obsolete…hope someone on the internet will help. If you have some hint please write me 🙂

Using new imon devinput with lirc

I don’t know exacly untile when but the imon lcd support has been merged  into the linux kernel using devinput.

This means that if you want to use the lirc_imon driver you need to blacklist the imon driver shipped with the kernel. You just need to add the following lines in the /etc/modprobe.d/blacklist.conf file:

blacklist rc_imon_pad

blacklist imon

After this you can proceed followingone of the lirc guides related to imon you find on the web.

But if you want to use the new devinput module, which in fact make thinks easier, you just leave the modules as they are and just edit the Hardware.conf file (/etc/lirc/hardware.conf):

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE=”Linux input layer (/dev/input/eventX)”
REMOTE_MODULES=””
REMOTE_DRIVER=”devinput”
REMOTE_DEVICE=”/dev/input/by-id/usb-15c2_0038-event-if00″
REMOTE_SOCKET=””
REMOTE_LIRCD_CONF=”devinput/lircd.conf.devinput”
REMOTE_LIRCD_ARGS=””

#Enable lircd
START_LIRCD=”true”

And in the lirc configuration file /etc/lirc/lircd.conf you should put this line:

#Configuration for the Linux input layer (/dev/input/eventX) remote:
include “/usr/share/lirc/remotes/devinput/lircd.conf.devinput”

This work good on my ubutu 11.10, perhaps you need to adjust some paths if your distro is different.

PLS NOTE Done this way the knob on my antec fusion doesn’t work neigther the blue key on the remote. The kno generates events on a different device: /dev/input/by-id/usb-15c2_0038-event-mouse

So you have to chain two distinct lirc servers togethere:

/usr/sbin/lircd –pidfile=/var/run/lirc/lircd1.pid –output=/var/run/lirc/lircd1 –driver=devinput –device=/dev/input/by-id/usb-15c2_0038-event-mouse –listen/usr/sbin/lircd –output=/var/run/lirc/lircd –driver=devinput –device=/dev/input/by-id/usb-15c2_0038-event-if00 –connect=localhost 8765

This way you find events of both devices on the socket /var/run/lirc/lircd.

Due to a driver bug, which i will investigate, the knob gets temporarly disabled if you press some particular key. For example if you press the yellow tv button the kno will not work anymore, until you press a number button of the remote.

To make the two instances of lirc to startup at boot time i added an upstart script /etc/init/htpc-lirc.conf:

description    “HTPC lirc daemon”

start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]

script
mkdir /var/run/lirc -p
/usr/sbin/lircd –pidfile=/var/run/lirc/lircd1.pid –output=/var/run/lirc/lircd1 –driver=devinput –device=/dev/input/by-id/usb-15c2_0038-event-mouse –listen
/usr/sbin/lircd –output=/var/run/lirc/lircd –driver=devinput –device=/dev/input/by-id/usb-15c2_0038-event-if00 –connect=localhost:8765
end script

Finally link it init.d

ln -s /lib/init/upstart-job /etc/init.d/htpc-lirc

 

 

 

Malagiustizia

Il Tribunale del Riesame di Napoli ha annullato l’ordinanza di carcerazione per Gaetano Riina, fratello di Totò, perché il GIP ha copiato il testo dal PM introducendo diversi errori semantici.
Fosse capitato a un comune mortale, avrebbe quantomeno perso l’incarico o il ruolo che ricopre.

Ecco alcune fonti:

Dare importanza a chi non ne ha

Pensavo di usare il titolo “L’importanza di dare importanza a chi non ha importanza” ma poi mi è sembrato un po troppo ripetitivo, carino, ma ripetitivo.

All’università in diverse occasioni mi hanno insegnato che spesso le persone meno influenti sono quelle che posso creare le maggiori difficoltà. Nel corso di sicurezza informatica tra i diversi approcci per violare un sistema era suggerito quello di corrompere il personale interno, il libro di testo suggeriva di corrompere il personale delle pulizie, spesso sottopagato, con libero accesso anche a locali riservati e ai pc lasciati abbandonati di notte.

Il corso di marketing invece individuava i centralinisti e portieri come persona che possono bloccare il contatto con le persone desiderate o se debitamente stimolate agevolare l’incontro con l’obiettivo della strategia commerciale.

A leggere quei passaggi sembrava di vivere in un modo di mata hari, la sensazione che fossero ispirati a James Bond piuttosto che alla realtà non me l’ha mai tolta nessuno.

Devo però ammettere che l’esperienza mi sta dando torto. In diverse occasioni mi è capitato che interi gruppi di lavoro venissero bloccati da persone che non hanno ruolo decisionale e rivestono ruoli chiave.

L’ultimo episodio in ordine cronologico è di un sistemista che lavora nell’area IT di un importante banca. Avrebbe gradito essere coinvolto nel progetto fin dalle fasi iniziali. Con questa frase ha aperto la riunione in cui non avremmo dovuto fornirgli le indicazioni su come metter online l’applicazione.  Errore enorme. No dare a lui le indicazioni senza neppure averlo consultato prima? In tutti i posti dove sono stato il sistemista prende il lavoro e lo pubblica sui server. Lui no, i sui server sono più delicati di quelli di altri e sono più carchi di quelli da altri. Ha chiesto la documentazione tecnica, schermi di progetto, librerie utilizzate, spiegazioni sulle scelte operate. Una settimana di blocco attività per evadere le sue richieste e un’ulteriore settimana di rallentamenti vari. Non dargli importanza ci è costato 2 settimane di ritardo. E nella riunione finale non ha potuto trattenere un sorriso di soddisfazione “Se mi aveste contattato dall’inizio non avremmo avreste avuto tutti questi problemi”. Mava…

Quinti mai sottovalutare le persone coinvolte anche marginalmente, chiunque può sempre mettersi di traverso

WP to LinkedIn Auto Publish Powered By : XYZScripts.com