Tag Archives: linux

Ubuntu Linux Email Notification on Hard Disk S.M.A.R.T Errors

This is a short guide on setting up sendmail command on Ubuntu to work with smartmontools to monitor SMART statuses of drives and send email notifications on any failures. 1. Setup sendmail to relay to an external SMTP server (Gmail, … Continue reading

Posted in Uncategorized | Tagged | 1 Comment

Strongswan PSK IPsec IKEv2 VPN on Ubuntu 14.04 with Blackberry

This is a short guide on configuring Strongswan on Ubuntu 14.04 with pre-shared keys (PSK) for a Blackberry 10 device to connect with. Setting this up requires in-depth knowledge of networking and routing. Install and configuring Strongswan: sudo apt-get install … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Installing Grub2 on Both GPT HD in Software RAID1 on Ubuntu 14.04

I installed Ubuntu 14.04 on 2x 3TB mdadm raid 1 and wanted both drives to be bootable in case one fails. This took a rather long time to figure out but this is how you do it. Below was tested … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

PXE/Network ISO Boot with Ubuntu on Beagleboard and Tomato WRT54G

This is a short guide on configuring Ubuntu linux to provide network boot services to a local network. It works like this: DHCP responds with dhcp-boot option that tells the client to fetch the boot image from a certain computer. … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

1:1 NAT with iptables and KVM

Use libvirt to add a network with NAT forwarding to an interface. It will add most of the iptables rules for you. It should looks something like below. “iptables -L”: Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT … Continue reading

Posted in Uncategorized | Tagged | 2 Comments

Installing Squid 3.1 on CentOS 5.6 with SELinux

Since there are no official packages of Squid 3.1 for CentOS or RHEL, the only ways to install are compiling from source or via 3rd party rpm. My method may not be proper so if there are any glaring mistakes, … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Using TC to Limit Uplink Bandwidth in Linux

Short guide on using TC to force users to obey a certain upload speed in linux. #First add a ‘root’ for eth1 tc qdisc add dev eth1 root handle 1: htb default 30 #Second add a class (bucket) with bandwidth … Continue reading

Posted in Uncategorized | Tagged | 9 Comments

Installing Tinyproxy

Short guide on installing Tinyproxy in CentOS on an OpenVZ VPS. [root@shizuka ~]# yum install tinyproxy At this point, you need to edit the conf file and add an “Allow x.x.x.x/xx” line to let users access the proxy. [root@shizuka ~]# … Continue reading

Posted in Uncategorized | Tagged | 3 Comments

Resizing Logical Volume & Swap on Redhat/CentOS VM

My CentOS vm was near the capacity of its allocated VHD. I used VHD Resizer from VMToolKit to expand the file container. Once it is expanded, the inner layers must expanded as well. This is a collection of info I … Continue reading

Posted in Uncategorized | Tagged | 1 Comment