Bas blog!

1mrt/110

Foto’s: Strange as Angels

Zaterdag 26-2-2011 in de P8, Terborg speelde de Cure tribute band "Strange as Angels" - Geweldige muziek avond gehad, te gekke band!

Heb die avond weer wat foto's gemaakt, en ze staan hier:

https://picasaweb.google.com/bas.janssen/StrangeAsAngels2622011P8Terborg

Tagged as: No Comments
6feb/111

Foto’s: Chinees nieuwjaar. Kung Hai Fat Choi!

Vandaag samen met Gea naar de nieuwmarkt gegaan. Het jaar van het konijn is begonnen voor de Chinese gemeenschap in Amsterdam!

De Liu He Men Kung Fu School gaf een kung-fu demonstratie  (en waren de draak denk ik zo..)   De foto's van deze mooie middag staan in m'n picasa album op:

https://picasaweb.google.com/bas.janssen/ChineesNieuwjaar2011#

Tagged as: , 1 Comment
6feb/110

Foto’s: Als je niks gewand band!

Vorige week in cafe de Kartouwe!  Gebeurt niet zo vaak dat ze daar een bandje hebben. En was dus weer erg gezellig!

De Foto's: https://picasaweb.google.com/bas.janssen/AlsJeNiksGewendBand#

Tagged as: No Comments
27jan/110

Remote disk image maken met DD + SSH & openen image met een loopback mount.

Dit voorbeeld gaat uit van /dev/hdb1, 2e ide schijf, eerste NTFS partitie waar een 1 op 1 kopie van moet worden gemaakt naar een ander werkstation.

Op linux machine met disk geplaatst voor backup:

1: un-mount de te kopieren partitie:

~: sudo umount /dev/hdb1

2: kopieer met DD het hele block device naar een andere machine via ssh:

~: sudo dd conv=noerror,sync if=/dev/hdb1 | ssh uid@workstation2 dd of=/backup/diskimage.bin

3: op workstation2: mount de gekopieerde image via de loopback interface naar mount point /media/backup:

~: sudo mkdir /media/loopbackup
~: sudo mount -o loop -t ntfs /backup/diskimage.bin /media/loopbackup

4: klaar, de files in de image zijn beschikbaar onder /media/loopbackup/

Noot: Mocht de te kopiëren schijf beschadigd zijn. (bijv. slechte sectors bevatten die niet door smart zijn weggeschreven)  - Kijk dan naar tools als dd_rescue voor het maken van de image file:

http://www.cgsecurity.org/wiki/Damaged_Hard_Disk#Disk_Duplication

http://en.wikipedia.org/wiki/Dd_rescue#Recovery-oriented_variants_of_dd

Tagged as: , , , , No Comments
15jan/111

A Firefox & AddblockPlus alternative: Privoxy with Chrome.

The switch to Chrome

A while ago I've switched from using Firefox (with addblock plus) to Google's Chrome as default browser on my netbook (a slow eeepc 901)  Chrome seems to be working a LOT faster when having few computing resources available. Even after optimizing Firefox a lot... I wrote about this more than a year ago and the problems still exist when running Firefox on this 2 years old netbook.

But.. After installing Chrome I was shocked at how many advertisements and blinking banners I saw when visiting my favorite websites! Auch!

I've been browsing the  'add-free web'  for  years and years, thanks to the Addblock Plus plugin for firefox. Unfortunately this plugin and it's excellent block lists (i.e. NL-block) are not available to Chrome users it seemed..

Enter Privoxy

"Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk. "

http://www.privoxy.org

Installation on ubuntu / debian is a breeze.. Just a simple 'sudo apt-get install privoxy' on the terminal will do. You can even install and run it as a service for windows.  After privoxy is installed and running, set your browser's proxy server setting to 127.0.0.1 on port 8118 and start browsing the web without adds.

Setting Privoxy as default proxy server in chrome

Setting Privoxy as default proxy server in chrome

Issues with Privox

After a few weeks of usage I find Privoxy is doing it's job pretty good.. However, there are a few minor issues:

  • AddBlock Plus scores just a bit better in general. Especially on blocking things like google and facebook adds.
  • No dedicated NL blocklist
  • No 'easy' way to update the filters or quickly block certain sites... There is no GUI available.. It's all in the config files ;-)
  • After rebooting my Ubuntu machine Privoxy always needs a second manual restart before the proxy is available to the browser..
    I solved this however with a quick hack. see instructions below (*)

But all in all Privoxy + Chrome is a good alternative for running Firefox + Addblock plus on low end machines!..

However I'll  keep on running Firefox on my regular desktop and work machines....

(*) Solving the Privoxy bootup problem for Ubuntu

1: Create a networking post-up script:  (sudo pico /etc/network/if-up.d/privoxy ) containing:

#!/bin/sh
set -e
PATH=/sbin:/bin:/usr/sbin:/usr/bin
/etc/init.d/privoxy restart
2: sudo chmod a+x /etc/network/if-up.d/privox
This makes sure Privoxy is automatically restarted whenever a new network connection is made.
22dec/100

Creating Self-Signed SSL Certificates for Apache on Linux | Linux.com

Handige tutorial voor als ik weer eens certs voor apache aan moet maken..

Creating Self-Signed SSL Certificates for Apache on Linux

26okt/100

puddletag, a tag editor for GNU/Linux

Eindelijk een goeie MP3-Tag editor voor GNU/Linux: puddletag, a tag editor for GNU/Linux

Tagged as: No Comments
21sep/100

Shell In A Box

Erg cool, via linuxmag; 'shell in a box'

Shell In A Box is project that includes a (secure) web server, Javascript files and CSS templates to setup web-based terminal access to your system.

Code: http://code.google.com/p/shellinabox/

Artikel: http://www.linux-mag.com/id/7864/

Tagged as: , No Comments
20sep/100

Webmin’s virtual twin • The Register

Webmin's virtual twin

Sysadmin blog More Mins: Virtualmin is an open core extension to Webmin. It allows a systems administrator to manage all the elements to provide shared hosting to multiple customers from one Linux server. Unlike Webmin, in which you configure all of the elements on a per-application basis, Virtualmin approaches configuration domain by domain, abstracting configuration of the applications away from the administrator.

Webmin's virtual twin  Via The Register

Filed under: Uncategorized No Comments
26aug/100

Wonder Shaper

M'n blog was een tijdje offline, maar hier gaan we weer ;-)

Handig script (voor op je eigen linux router) gevonden om het probleem van uploads die je ADSL verbinding (downloads)  satureren tegen te gaan:

Wonder Shaper.

An easy to use traffic shaping script that provides these improvements:

 * Low latency for interactive traffic (and pings) at all times
 * Allow websurfing at reasonable speeds while uploading / downloading
 * Make sure uploads don't hurt downloads
 * Make sure downloads don't hurt uploads

It does this by:

 * Limiting upload speed slightly, to eliminate queues
 * Limiting download speed, while allowing bursts, to eliminate queues
 * Interactive traffic skips the queue
 * ACKs and tiny packets skip the queue
Tagged as: , , No Comments