Posts

Showing posts from February, 2013

grep IP addresses with regular expressions

If addresses.txt contains lines of addresses, this grep command will give you only the lines with a valid IP address and nothing else. cat addresses.txt | grep '^[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}$'`

Installing the no-ip.org client in Ubuntu

If you get "no such package" error when trying to install the no-ip client on Ubuntu, follow these instructions (more info at their help site ): cd /usr/local/src wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz tar xzf noip-duc-linux.tar.gz cd no-ip-2.1.9 make make install

Script for updating no-ip DDNS from behind the router

no-ip is my favourite dynamic DNS service, and I was saddened by the fact that my new Cisco EPC3825 cable modem didn't support it. I have a Linux server running, so my second option was to use that for updating the IP. All I needed was a script to do it for me, from inside the LAN of my home. Problem is, my server is in a LAN with an internal IP, while I need it to update no-ip.org with the IP address of my cable modem. It was made possible by 1) no-ip - maybe the best free dynamic DNS? 2) ifconfig.me - an AWESOME site for figuring out your IP in linux 3) some scripting skills 4) cron First, have an account at no-ip.org ready, so sign in and create an account if you haven't done it yet. Install curl and wget: apt-get install curl wget Install also the no-ip client (more info at their help site ): cd /usr/local/src wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz tar xzf noip-duc-linux.tar.gz cd no-ip-2.1.9 make make install Now...

Installing Labtec webcams for Windows 7

PROTIP: Just install the "Windows XP and Windows Vista" driver! At least it worked great for my Labtec Webcam 2200 and with Windows 7 32-bit. The drivers can be downloaded from: http://www.labtec.com/ Make sure you get the webcam model right!