Preventing Wi-Fi Access Point Spoofing

Jan 6, 2016 - 1 minutes
To prevent an adversary from spoofing your wifi’s access point. i.e Setup another router with the same name ‘_The Cloud’ for example. Debian based systems which use NetwrokManger allow for whitelisting BSSIDs, the MAC address of the access point (ap)/router. Once you provide NetworkManager with a BSSID it will force the connection to use only that BSSID value. This can cause issues with roaming though. You can do this in two ways, nm-applet or nmcli. Read more ...

hstr - Alternative ctrl+r in bash

Jan 5, 2016 - 1 minutes
Found out about this nice little tool which upgrades bash and zsh’s history searching. You can optionally configure it by: hh --show-configuration >> ~/.bashrc It appears to add the above defaults to your bashrc without your consent. I installed it by adding the developers repository to apt-get as advised. It also apears to only have monochromatic or hicolor settings, I’d like it more if I could configure each colour option. Read more ...

Identify which port is USB3

Jan 4, 2016 - 3 minutes
I wanted to plug in a USB3 device into my work machine. I did not know if it even had USB3 support. So I used lsusb to find out. $ lsusb Bus 004 Device 006: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T Bus 004 Device 005: ID 413c:2003 Dell Computer Corp. Keyboard Bus 004 Device 043: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Bus 004 Device 044: ID 18d1:4ee2 Google Inc. Read more ...

cpio - copy files to and from archives

Jan 3, 2016 - 2 minutes
I found this command when I picked up Unix in Easy Steps Went to page 40~ and saw how to make backups. Thought “pfft they will just use tar”. And there it was cpio, never head of it before. Book said that its commonly used to create archives, madness. ls | cpio -ov > directory.cpio Stick all the files in the current directory into an archive directory.cpio. -o creates and -v verbose. Read more ...

Duplicity and Hubic

Jan 2, 2016 - 1 minutes
Install the dependencies (See note at end). sudo apt-get install duplicity sudo pip install pyrax Create a ~/.hubic_credentials with the format below. Get the client ID and secret from the Hubic website under ‘My Account -> Developers’, add an application with a descriptive name and set the redirect domain to ‘http://localhost/. [hubic] email = <hubicemailaddress> password = <hubicpassword> client_id = <hubicclientid> client_secret = <hubicclientsecret> redirect_uri = http://localhost/ You should now be able to use duplicity to backup to the Hubic storage. Read more ...

Part One - Fresh Install

Jan 1, 2016 - 2 minutes
This is the first part in my documentation series about managing a Debain server for fun and profit. Install some packages apt-get install vim htop fail2ban ufw nginx git jekyll logwatch apticron ntp screen weechat stow vnstat vnstati sudo Add user useradd osaka usermod -a -G sudo osaka Select the correct time zone: dpkg-reconfigure tzdata Make sure the time is correct: service ntp stop ntpd -gq service ntp start Setup exim to send emails, for status reporting etc. Read more ...

Graphing IRC server logs

Oct 28, 2015 - 3 minutes
I wanted to graph my IRC server logs to see the number of connects and disconnects. The raw logs look something like this: [Tue Apr 15 01:12:17 2014] - Disconnect - (2:42:4) Wibben!Wibben@b.clients.kiwiirc.com [VHOST ht-A107D790.clients.kiwiirc.com] [Tue Apr 15 02:05:43 2014] - Connect - tlotr!tlotr@b.clients.kiwiirc.com [VHOST ht-A107D790.clients.kiwiirc.com] [Tue Apr 15 07:10:48 2014] - Disconnect - (5:5:9) tlotr!tlotr@b.clients.kiwiirc.com [VHOST ht-A107D790.clients.kiwiirc.com] [Tue Apr 15 18:45:05 2014] - Connect - Hackay!Hackay@a.clients.kiwiirc.com [VHOST ht-61603BBC.clients.kiwiirc.com] [Tue Apr 15 20:26:51 2014] - Disconnect - (1:41:50) Hackay! Read more ...

Thunderbird Office365 Calendar QUB

Feb 22, 2015 - 1 minutes
To have access to Outlook’s meeting request and calendar features, you need to install and configure two addons for Thunderbird. Install the latest version of the Lightning add-on. Download the latest version of the Exchange Calendar and Tasks Add-on. There are a few release candidates, currently the latest version is 3.2.2 In Thunderbird, click on Tools | Add-ons Click on the Gear icon (next to “Search all add-ons”) and select Install Add-on From File. Read more ...

Configuring static IP and Internet sharing on the RaspberryPI

Feb 7, 2015 - 2 minutes
With just a fresh install of raspbian, and a network cable, you too can setup your very own Raspberry PI with Internet access. Make sure you have the same physical setup: PI (Ethernet) -> (Ethernet) Computer (Wireless or second Ethernet) -> Internet. Install raspbian onto the SD card. Mount the SD card with write privileges and navigate to the file /etc/network/interfaces and set a static IP. auto eth0 iface eth0 inet static address 10. Read more ...

Compiling mcabber with OTRv4 on Debian

Dec 11, 2014 - 2 minutes
Currently OTRv4 (libotr5-dev) is only in testing, which means you need to add the backports repository. (For Ubunutu skip this step, the rest is the same.) Add the following line to the bottom of /etc/apt/sources.list if you don’t already have it. deb http://ftp.debian.org/debian/ wheezy-backports main Update and install the required libraries to compile mcabber with OTR, PGP and UTF-8 support. apt-get install build-essential libloudmouth1-dev libgpgme11-dev libncursesw5-dev libotr5-dev Download and extract the latest release. Read more ...