Categoriearchief: Automatisering

Virual Encrypted Folders

Voor het versleuteld opslaan van gegevens:

Voeg fuse toe aan de kernel of laad de fuse module: modprobe fuse

Aanmaken encrypted filesysteem: encfs ~/crypt-raw ~/crypt

De versleutelde bestanden staan in ~/crypt-raw, benaderbaar via ~/crypt.

Unmounten met: fusermount -u ~/crypt

Mounten met: encfs ~/crypt-raw ~/crypt

Een prima artikel uit Linux Format, juni 2006, LXF80.

Pas op, als je de sleutel kwijt bent is er geen weg terug, de data is vooralsnog permanent onbereikbaar……

DVB-C Cinergy 1200 op Caiway netwerk met MythTV


# Caiway Netherlands (Westland, Midden-Delfland, Maassluis,
# Aalsmeer, Uithoorn, Halderberge (kern Oudenbosch),
# wijk Wateringse Veld (Den Haag), IJsselstein, Schiedam en Doorn
# Bij ?FREQUENTIE? drukt u op uw afstandsbediening ?55400? in op uw scherm verschijnt nu 554,00 MHZ.
# Hierna drukt u op de afstandsbediening op het pijltje naar beneden zodat u de optie ?NETWERK ID?
# selecteert. Hier kiest u afhankelijk van uw gemeente
# Westland/Midden Delfland -> 2249
# Maassluis -> 6227
# Aalsmeer/Uithoorn -> 2257
# Oudenbosch -> 6536
# Hierna drukt u op de afstandsbediening weer op het pijltje naar beneden, u bent nu bij de
# optie ?MODULATIE?. Standaard is uw digitale ontvanger ingesteld op ?64 QAM?. Staat hier iets anders
# dan drukt u net zolang op het pijltje naar links of rechts op de afstandsbediening tot u de
# optie ?64 QAM? selecteert.
# Hierna drukt u op de afstandsbediening op het pijltje naar beneden zodat u de
# optie ?SYMBOOLSNELHEID? selecteert. Hier vult u in ?6900?
# freq sr fec mod
C 554000000 6900000 NONE QAM64

dvbscan ./nl-caiway > channels.conf

Channel scanner in mythtv-setup via import

Hoe formatteer ik mijn 1000 GB backup disk?

Hoe formatteer ik mijn 10002000 GB backup disk?

mkfs.ext4 -m 1 /dev/device


mke2fs -t ext4 -c -c -L backupdisk -m 1 /dev/device

tune2fs -O extents,uninit_bg,dir_index /dev/device

fsck -pf /dev/device

mke2fs – create an ext2/ext3/ext4 filesystem

mke2fs -c -c -j -L backupdisk -m 1 /dev/sdd1

-c Check the device for bad blocks before creating the file system.
If this option is specified twice, then a slower, read-write
test is used instead of a fast read-only test.

-j Create the filesystem with an ext3 journal. If the -J option is
not specified, the default journal parameters will be used to
create an appropriately sized journal (given the size of the
filesystem) stored within the filesystem. Note that you must be
using a kernel which has ext3 support in order to actually make
use of the journal.

-L new-volume-label
Set the volume label for  the  filesystem  to  new-volume-label.
The maximum length of the volume label is 16 bytes.

-m reserved-blocks-percentage
Specify the percentage of the filesystem blocks reserved for the
super-user. This avoids fragmentation, and allows root-owned
daemons, such as syslogd(8), to continue to function correctly
after non-privileged processes are prevented from writing to the
filesystem. The default percentage is 5%.

-t fs-type
Specify the filesystem type (i.e., ext2, ext3, ext4, etc.) that is to be cre‐
ated.  If this option is not specified, mke2fs will pick a default either via
how  the  command  was  run (for example, using a name of the form mkfs.ext2,
mkfs.ext3, etc.) or via a default as defined by the /etc/mke2fs.conf(5) file.

puk9 willem # mke2fs -c -c -j -m 1 /dev/sdd1
mke2fs 1.40.8 (13-Mar-2008)
Warning: 256-byte inodes not usable on older systems
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
61054976 inodes, 244190000 blocks
2441900 blocks (1.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
7453 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

tune2fs – adjust tunable filesystem parameters on ext2/ext3 filesystems

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

hdparm – get/set SATA/ATA device parameters

hdparm -q -S 241 /dev/sdb

-S     Set the standby (spindown) timeout for the drive.  This value is
used  by  the  drive to determine how long to wait (with no disk
activity) before turning off the spindle motor  to  save  power.
Under  such circumstances, the drive may take as long as 30 sec‐
onds to respond to a subsequent disk access, though most  drives
are much quicker.  The encoding of the timeout value is somewhat
peculiar.  A value of zero means “timeouts  are  disabled”:  the
device will not automatically enter standby mode.  Values from 1
to 240 specify multiples of 5 seconds, yielding timeouts from  5
seconds to 20 minutes.  Values from 241 to 251 specify from 1 to
11 units of 30 minutes, yielding timeouts from 30 minutes to 5.5
hours.   A  value  of  252  signifies a timeout of 21 minutes. A
value of 253 sets a vendor-defined timeout period between 8  and
12  hours, and the value 254 is reserved.  255 is interpreted as
21 minutes plus 15 seconds.  Note that  some  older  drives  may
have very different interpretations of these values.

How to open a Philips Universal Remote Control SBC RU 760?

My Philips SBC RU 760 is lost after it has fallen on the ground (Philips, how do you test your new remote controls?). A metal part, inserted to give it a better feeling a assume, came loose and ruined the circuit board. This is not a plus for my love hate relation with Philips products as you can imagine…..

I hope you can repair yours wit the help of this information.

Philips SBC RU760 Top


Philips SBC RU760

Philips SBC RU760 Circuit board broken

How to open a Philips Universal Remote Control SBC RU 760?

Linux disk tools for Windows systems (FAT, NTFS)

Some tools to remember

GNU Parted

  • GNU Parted creates, resizes, moves, copies partitions, and filesystems (and more).


  • Curses based disk partition table manipulator for Linux
  • Onderdeel van util-linux-ng


  • fdisk – Partition table manipulator for Linux
  • Onderdeel van util-linux-ng


  • Create an MS-DOS file system under Linux
  • mkfs.vfat -F 32 -n /dev/sdxx


  • Make bootable


  • SystemRescueCd is a Linux system on a bootable CD-ROM for repairing your system and recovering your data after a crash.

ffmpeg tips (en mencoder)

ffmpeg -i infile.mpg -map 0:1 -vn -ac 2 -ar 48000 -ab 256k -ss hh:mm:ss -t hh:mm:ss outfile.mp3

-map = selecteer de stream (zie de output van ffmpeg voor meer informatie)

-vn = Disable video recording

-ac = aantal kanalen

-ar = Set the audio sampling frequency (default = 44100 Hz)

-ab = Set the audio bitrate in kbit/s (default = 64)

-ss = Seek to given time position in seconds. “hh:mm:ss[.xxx]” syntax is also supported.

-t = Set the recording time in seconds. “hh:mm:ss[.xxx]” syntax is also supported.

How-to gids op:

En tips om snel klaar te zijn

Handige opties:

-target pal-dvd = Predefined settings
-aspect 4:3 = Aspect ratio videobeel
-b 2000k = Videobitrate
-r 10 = Videoframerate
-ar 22050 = Audio samplerate
-ab 64k = Audiobitrate
-aq 0 .. 9 = Audio quality

-acodec copy
-vcodec copy

-ss 00:11:37.458 -t 00:42:43.452 
-map 0.0:0.0 -map 0.2:0.1

Ondertiteling extract

ffmpeg -i file.mkv -vn -an -codec:s:0.1 srt

Ondertiteling toevoegen

ffmpeg -i infile.mkv -vcodec copy -acodec copy -vf outfile.mkv

Fouten uit een (mpg) file halen:

ffmpeg -i "1003_20130405181500.mpg" -vcodec copy -acodec copy "/media/media/1003_20130405181500.mpg"

mencoder "1003_20130405181500.mpg" -oac copy -ovc copy -o "/media/media/1003_20130405181500.mpg"

Disable autorun in Microsoft Windows


Disable AutoRun in Microsoft Windows

To effectively disable AutoRun in Microsoft Windows, import the following registry value:



      [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]



To import this value, perform the following steps:

  1. Copy the text
  2. Paste the text into Windows Notepad
  3. Save the file as autorun.reg
  4. Navigate to the file location
  5. Double-click the file to import it into the Windows registry

Microsoft Windows can also cache the AutoRun information from mounted devices in the MountPoints2 registry key. We recommend restarting Windows after making the registry change so that any cached mount points are reinitialized in a way that ignores the Autorun.inf file. Alternatively, the following registry key may be deleted:


Once these changes have been made, all of the AutoRun code execution scenarios described above will be mitigated because Windows will no longer parse Autorun.inf files to determine which actions to take. Further details are available in the CERT/CC Vulnerability Analysis blog. Thanks to Nick Brown and Emin Atac for providing the workaround.


Microsoft has provided support document KB953252, which describes how to correct the problem of NoDriveTypeAutoRun registry value enforcement. After the update is installed, Windows will obey the NoDriveTypeAutorun registry value. Note that this fix has been released via Microsoft Update to Windows Vista and Server 2008 systems as part of the MS08-038 Security Bulletin. Windows 2000, XP, and Server 2003 users must install the update manually. Our testing has shown that installing this update and setting the NoDriveTypeAutoRun registry value to 0xFF will disable AutoRun as well as the workaround described above.