Friday, April 14, 2017

Detect CPU bug on x86

Something I always forgot:

$ sudo apt-get install mcelog

Then simply set:

$ grep error /etc/mcelog/mcelog.conf
syslog-error = yes

Thursday, April 9, 2015

Dell Laptop Fan Control And Get CPU Temperature

http://www.cyberciti.biz/faq/controlling-dell-fan-speeds-temperature-on-ubuntu-debian-linux/

$ i8kctl fan 1 1

Wednesday, April 8, 2015

Session Description Protocol on FreeBox V5

Currently here is what I have on FreeBox v5 (firmware 1.5.20):

$ avprobe "rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=996&flavour=hd"
[...]
Input #0, rtsp, from 'rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=996&flavour=hd': Metadata: title : unknown comment : unknown Duration: N/A, start: 13461.359467, bitrate: N/A Stream #0.0: Data: [0][0][0][0] / 0x0000 Stream #0.1: Data: [0][0][0][0] / 0x0000 Stream #0.2: Audio: aac, 48000 Hz, stereo, s16 Stream #0.3: Data: [0][0][0][0] / 0x0000 Stream #0.4: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 26.40 fps, 25 tbr, 90k tbn, 50 tbc
[...]

This is part of the Real Time Streaming Protocol, during a `DESCRIBE` (https://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol#Protocol_directives) an application/sdp message is sent containing:


v=0
o=leCDN 1428411111 1234565108 IN IP4 kapouet.proxad.net
s=unknown
i=unknown
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 33
a=control:rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=100008

It would have been nicer to include the actual name of the show to store it as title in an MP4 container !

Friday, February 6, 2015

syscfg on debian

Steps:



wget ftp://ftp.dell.com/sysman/dtk_3.1.1_165_Linux.iso
mkdir /tmp/loop
sudo mount -o loop dtk_3.1.1_165_Linux.iso /tmp/loop
mkdir /tmp/bla
cd /tmp/bla
sudo apt-get install rpm2cpio
rpm2cpio /tmp/loop/tools/dell-toolkit.rpm | cpio -i --make-directories
export LD_LIBRARY_PATH=./opt/dell/toolkit/lib/
sudo cp ./etc/omreg.cfg /etc/omreg.cfg
./opt/dell/toolkit/bin/syscfg


Enjoy !

Tuesday, January 27, 2015

Removing parport from loaded module

I did not want dmesg to contain:

[   25.662755] ppdev: user-space parallel port driver

All I needed to do is:

$ grep LP /etc/default/cups
# LOAD_LP_MODULE: enable/disable to load "lp" parallel printer driver module
LOAD_LP_MODULE=no

Thursday, September 11, 2014

Having fun with docbook

For some reason you need to apply the dbfo at different level to apply properties to an element:
<example>
<?dbfo pgwide="1"?> <!-- example level -->
<title>
Full example
</title>
<programlisting language="csharp">
<?dbfo keep-together="auto" ?> <!-- at programlisting level -->
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="MyCode.cs" parse="text"/></programlisting>
</example>
Reference: http://www.sagehill.net/docbookxsl/PageBreaking.html

Don't ask...

Monday, July 7, 2014

Error starting domain: internal error Network 'default' is not active.

# virsh net-start default
ref:
http://wiki.libvirt.org/page/Virtual_network_'default'_has_not_been_started