Convert PDF using linux

Convert at it again.

I think I have posted something like this before, but ‘convert’ keeps being an amazing tool.

Today converting Pdf’s into png picture format with:

> convert -density <density in DPI> input.pdf -quality <quality ratio> output.png

Found at

Posted in linux | Comments Off on Convert PDF using linux

A memory from past holidays..

I love Norway, but I didn’t have enough time to do some serious timelapsing, however, here a quick blurb at Haugesund camping (August 2015):

Posted in News | Comments Off on A memory from past holidays..

Nothing new

It is autumn. Holidays are past. Nothing is new anymore.

I’m currently still working on that gps device (working on fatfs), a camera rig for an old DSLR that I got from a friend for which I don’t have a project page yet, and a side project for electronic fireworks using cheapo laser diodes and some other flashy LEDS and stuff.

Ideas enough, however time is scarce.

I’ll post more when I have some

Posted in News | Comments Off on Nothing new

Looking for multimedia files [list of common multimedia files] -> solution? powershell!

Sometimes as system administrator, you find your file servers are cluttered with stuff you may want to decide to do something about, say, export to the final bin. However the case, you want to know what’s there. [and it is usually big stuff]. On windows you can ofcourse check manually, or make a list based on file extension. That’s simply how it works. It took some sites to google, but there is an abundance of file extensions out there. Most of them aren’t used, but this is a list that may be found common for multimedia files: list-mmfiles

I’m going to use this to list all multimedia files on the network now, when I miss files (by manual checking), i’ll update the list in this post.

Oh well, I skipped that, I just did :

Get-Childitem X:\ -Recurse -ErrorAction SilentlyContinue | Export-csv
-Path C:\all.csv -Encoding ascii

To get all files on the system, and sort it out later, using Excel.
You can then sort on file extension.. pff, sjah.. tssss. No file size info..

I quickly looked up through the file types that were actually on the file system and ran a script that adds up all the file sizes (it does this from the path you’re in):

$totalfs = 0
$files = Get-ChildItem -Recurse -Include *3gp,*asf,*avi,*bmp,*cda,*gif,*jpg,*m1v,*m4a,*m4v,*mov,*mp3,*mp4,*mpe,*mpg,*pcx,*png,*wma,*wmf,*wmv,*wmz
$totalfs = ($files | Measure-Object -Sum Length).Sum / 1GB
"{0:N0}" -f $totalfs

Update: Oh and by the way, this should also list the amount of files.
(I needed that to list all txt files, actually: cookies)

$totalfs = 0
$totalfsc = 0
$files = Get-ChildItem -Recurse -Include *txt
$totalfs = ($files | Measure-Object -Sum Length).Sum / 1GB
$totalfsc  = ($files | Measure-Object -Sum Length).Count
"{0:N0}" -f $totalfs
"{0:N0}" -f $totalfsc
Posted in News | Comments Off on Looking for multimedia files [list of common multimedia files] -> solution? powershell!

Nagios 3.4.1 Columns in status.cgi

That wasn’t nice.

Nagios has 3 columns as a default hard coded inside its status.cgi.
Today we have such wide screens to display things with…

In order to change this default behaviour of old code, in nagios, change the following:

(get a copy of the nagios source code, in my case 3.4.1)
unpack, ./configure it
in /yoursourcedir/nagios/cgi/ change status.c
int overview_columns = 3; into int overview_columns = 10;

then compile with:

make cgis

then you can copy the newly created cgi in place of the old one (for example.)

Be aware that you set the rights correctly.

Hope this helps you.

Posted in News | Comments Off on Nagios 3.4.1 Columns in status.cgi

LDAP Configuration for HP Printers and Active Directory

I had to figure out how to configure LDAP on these HP Color LaserJet Pro MFP M476 series with LDAP support.
The LDAP configuration was a tad bit different than I suspected.

For some reason the SSL function didn’t work, so I switched to normal, old-fashioned way of doing this on port 389.

LDAP Server: Fill in your Windows Domain Name.Extension
Server port: 389

verification: Simple

And here we go, username must be specified, not as username, but as user DN. so:

Username: cn=username,OU=Users, DC=Domain,DC=DomainExtension

The search path should be something like:
Path OU=Users,DC=DOMAIN,DC=DomainExtension
Match cn
e-mail mail

Note that you don’t use spaces in LDAP queries.

Now you can test your configuration.
Fill in some account that you know exists in your directory and hit the Test button.

Should work now.
Hope this helps you.

Posted in ldap, News | Comments Off on LDAP Configuration for HP Printers and Active Directory

Fortigate SSL Login

To log in to a fortigate gui over http-SSL they moved the port from




Coz 443 is used so much (seriously?)

It is: https://x.x.x.x:10443

This will help you to get this:





Posted in Configuration, Fortigate | Tagged | Comments Off on Fortigate SSL Login

Linux distribution focused on audio

I’m currently trying out AVlinux to have some bits going with sound and audio.
Not necessarily “music”, whatever people think it is.

If this doesn’t work out well next on the list are:

Ubuntu Studio

You got something better? let me know at the regular e-mail address @ this website

Posted in News, sound | Comments Off on Linux distribution focused on audio

Ubuntu 14.04 turn off virbr0

You installed virtualisation software during installation, and now your installation comes with a virbr0 in your interface list. You don’t want that. Remove it!

Yo, Ubuntu turn off that vir, bro!

> brctl delbr virbr0
bridge virbr0 is still up; can't delete it
> virsh net-destroy default
Network default destroyed
> virsh net-undefine default
Network default has been undefined
> service libvirtd restart
libvirtd: unrecognized service


> service --status-all


> service libvirt-bin restart
libvirt-bin stop/waiting
libvirt-bin start/running, process xxxx

You are happy again.

Posted in linux, News | Comments Off on Ubuntu 14.04 turn off virbr0

Post Holidays Syndrome

The holidays on Iceland this year in July were great.
Not too good weather-wise, but well, what do you expect from a country that begins with “Ice”.

I wished the weather would’ve been better for I would have made more timelapse films.
See this page for a few I did manage to make.

Posted in Holidays, News | Comments Off on Post Holidays Syndrome