The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Some notes on making pi-hole work on a DHCP enabled network

Posted by jpluimers on 2017/08/24

Many networks have DHCP Manual allocation (commonly called static allocation) handing out static/fixed IP addresses over DHCP so you can centralise IP address handout based on MAC (or other attributes).

Here are some links that should me get going making my pi-hole Raspberry Pi using DHCP instead of static IP addresses.

Yucky way to set a static IP: How do I set a static IP address in Raspbian “Jessie” using /etc/dhcpcd.conf? – Pi-Hole: A Black Hole For Internet Advertisements [WayBack]

–jeroen

Posted in Development, Hardware Development, Power User, Raspberry Pi | Leave a Comment »

Designing your way out of the CanHandle-Handle conundrum | Software on a String

Posted by jpluimers on 2017/08/23

I recently had to refactor exactly this: Designing your way out of the CanHandle-Handle conundrum | Software on a String [WayBack] so I was glad that Marjan Veenema paved the path in 2015 for me.

–jeroen

Posted in Design Patterns, Development, Software Development | Leave a Comment »

Repurposing Old Smartphones for Home Automation | Linux.com | The source for Linux information

Posted by jpluimers on 2017/08/23

At the recent Embedded Linux Conference and OpenIoT Summit, Mozilla Technical Evangelist Dietrich Ayala proposed a simple and affordable solution to home automation: A discarded smartphone can handle some of the most useful home automation tasks without requiring expensive hubs and sensors — or risking data security in the cloud.

I’ve been awaiting talks like this for years basically because I didn’t take the time to try myself.

Source: Repurposing Old Smartphones for Home Automation | Linux.com | The source for Linux information [WayBack]

–jeroen

Read the rest of this entry »

Posted in Development, LifeHacker, Mobile Development, Power User | Leave a Comment »

Manual:CRS examples – MikroTik Wiki

Posted by jpluimers on 2017/08/22

The Cloud Router Switches support three types of mirroring. Port based mirroring can be applied to any of switch-chip ports, VLAN based mirroring works for all specified VLANs regardless switch-chip ports and MAC based mirroring copies traffic sent or received from specific device reachable from the port configured in Unicast Forwarding Database.

Port Based Mirroring

The first configuration sets ether5 port as a mirror0 analyzer port for both ingress and egress mirroring, mirrored traffic will be sent to this port. Port based ingress and egress mirroring is enabled from ether6 port.

/interface ethernet switch
set ingress-mirror0=ether5 egress-mirror0=ether5

/interface ethernet switch port
set ether6 ingress-mirror-to=mirror0 egress-mirror-to=mirror0

Source: Manual:CRS examples – MikroTik Wiki [WayBack]

This allows you to torch traffic from a specific port despite that port being grouped to a master-port.

Via: Torch not working with CRS226-24G-2S+ – MikroTik RouterOS [WayBack]

But, when using Bridge, all ports share a single 1 gbps link to the CPU, so your layer 2 performance will suffer horribly.

If you need to see all the traffic from a single port when using Master/slave port configuration, use port mirroring.

–jeroen

 

Posted in Development, Internet, MikroTik, Power User, RouterOS, routers, Scripting, Software Development | Leave a Comment »

MAC-Telnet: Open source MAC Telnet client and server for connecting to Microtik RouterOS routers and Posix machines via MAC address.

Posted by jpluimers on 2017/08/22

Found out about this a while ago:

MAC-Telnet – Open source MAC Telnet client and server for connecting to Microtik RouterOS routers and Posix machines via MAC address.

Source: haakonnessjoen/MAC-Telnet: Open source MAC Telnet client and server for connecting to Microtik RouterOS routers and Posix machines via MAC address. [Fork]

Background:

Earlier, I wrote about a Wireshark plugin for dissecting Mac-Telnet packets. Now I have created an open source application for connecting to a RouterOS router.

Source: RouterOS Mac-Telnet application for Linux users | Håkon Nessjøen [WayBack]

My previous post was about RouterOS Mac-Telnet application for Linux users where I talked about the MAC-Telnet client I created for Linux users.

Source: MAC-address based Telnet server in Linux | Håkon Nessjøen [WayBack]

–jeroen

Posted in C, Development, Internet, MikroTik, Power User, routers, Software Development | Leave a Comment »

‘Nieuw-West heeft veel te bieden voor herhaalbezoekers’ – Opinie – PAROOL

Posted by jpluimers on 2017/08/21

‘Volgens mij gaat het niet om gebrek aan aanbod, maar om gebrek aan kénnis van het aanbod in Nieuw-West,’ schrijft Liesbeth van der Woud in een lezersbrief aan Het Parool.

Ze heeft helemaal gelijk: [WayBack‘Nieuw-West heeft veel te bieden voor herhaalbezoekers’ – Opinie – PAROOL

–jeroen

Posted in LifeHacker | 2 Comments »

bind “the working directory is not writable”

Posted by jpluimers on 2017/08/21

I didn’t notice this bind change for a while, but some time ago after doing an rcnamed restart it would split out this error message:

the working directory is not writable

It seems harmless as BIND still starts:

Starting name server BIND ..done

Anyway, some links that helped me solve it:

The last entry provides the solution:

rcnamed stop
chown named:named /var/lib/named/ -R
rcnamed start
rcnamed status

The latter didn’t show any error message.

–jeroen

Posted in *nix, bind-named, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »

Android/iPhone/…: How To Disable or Change SIM PIN Code

Posted by jpluimers on 2017/08/21

If you need to change the SIM code or disable it altogether on your Android device, here’s how to do just that: Android: How To Disable or Change SIM PIN Code and How to remove the PIN code from the SIM card | Table [WayBack]

Posted in Power User | Leave a Comment »

What directories to backup on ESXi apart from the VMs? – Server Fault

Posted by jpluimers on 2017/08/18

What directories to backup on ESXi apart from the VMs? – Server Fault [WayBack]:

You may want to look at purpose-built VMware backup tools. You will be very disappointed if you treat an ESXi host like a Linux/Unix server.

Use the VMware backup commands [WayBack] from a separate station, and you’ll be left with a nice configuration tarball. I would find another approach for the actual VM backups.

Edit: Host-based example

vim-cmd hostsvc/firmware/sync_config
vim-cmd hostsvc/firmware/backup_config

This stores the config in /scratch/downloads:

# vim-cmd hostsvc/firmware/backup_config
Bundle can be downloaded at : http://ip.of.esxi.host/downloads/52fd67ba-2fdf-9876-6651-46c3da638f1a/configBundle-centaur.ewwhite.net.tgz

Also see: http://www.virtuallyghetto.com/2013/02/how-to-backup-restore-free-esxi-host.html [WayBack]

–jeroen

Posted in ESXi5, ESXi5.1, ESXi5.5, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

Twitter image size suffixes – via: Making silly #latex jokes is much more fun than doing final tweaks in my thesis on #coeffects…

Posted by jpluimers on 2017/08/18

Twitter stores images on twimg.com in various sizes.

You specify the size by adding a colon plus suffix to the URL. No colon plus suffix means a default size.

Suffixes you can use see to come from the media entity in Entities in Objects | Twitter Developers:

  • thumb
  • small
  • medium
  • large

There is one undocumented size: orig

The default size seems to be medium.

Examples (full images below):

media entity observed size URL
thumb 150×150 https://pbs.twimg.com/media/CiMNh9rWEAAdM6Q.png:thumb
small 340×325 https://pbs.twimg.com/media/CiMNh9rWEAAdM6Q.png:small
medium 600×573 https://pbs.twimg.com/media/CiMNh9rWEAAdM6Q.png:medium
(none) 600×573 https://pbs.twimg.com/media/CiMNh9rWEAAdM6Q.png
large 1024×979 https://pbs.twimg.com/media/CiMNh9rWEAAdM6Q.png:large
orig 1600×1529 https://pbs.twimg.com/media/CiMNh9rWEAAdM6Q.png:orig

Thanks to Thomas Petricek [WayBack] who poked fun last year on Twitter [WayBack] at both LaTeX and O RLY (the image meme [WayBack], not the text meme)

--jeroen

Read the rest of this entry »

Posted in Development, SocialMedia, Software Development, Twitter, Web Development | Tagged: , | Leave a Comment »