Mysql Backup’s

Backing up your mysql instance can be a pain.  The following two commands work great… Your backup user only needs select and Lock table rights. mysqldump -u username -p’password‘ -f –routines –add-drop-database table_name | bzip2[…]

Continue reading …

iptables: Samba

Ports that Samba uses Samba uses NetBIOS ports 137,138 udp and 139 tcp. It also uses port 445 for SMB file sharing without NetBIOS. Sample iptables rules for Samba: SAMBA_SERVER=”192.168.1.100″ NETWORK=”192.168.1.0/24″ BROADCAST=”192.168.255.255″ iptables -A INPUT[…]

Continue reading …

Linux Boot Process

This will document the x86 boot process from a linux perspective. This document will attempt to provide a technical overview if you are not comfortable with hexidecimal, octal or binary you might want to brush[…]

Continue reading …

Network Protocol: ARP

ARP – Network Layer Address Resolution Protocol (ARP) is used in networking to resolves IP addresses to MAC address. It allows machines on a network to talk node to node using mac addresses resolved by[…]

Continue reading …

Network Protocol: Mac Address

Mac Addresses – Data Layer Each physical network interface card (NIC) has a unique identifer assigned to that NIC.   This unique identifier is called a Mac Address.  A mac address contains a vendor ID and[…]

Continue reading …

Network Protocol: IP

IP – Network Layer Internet Protocol is the end to end addressing system used on the Internet with the Domain name system to identify unique hosts. Host and Net An IP address is made up[…]

Continue reading …

Network Protocol: DNS

DNS – Application Layer DNS stands for Domain name system, it is a database that matches names with physical addresses.  In the case of the Internet when you type www.jgriffiths.org your machine queries a DNS[…]

Continue reading …

Network Protocols

Protocols are agreed upon standards.  Without protocols computers would be unable to talk to each other.  In networking terms protocols are a lot like languages.  Imagine if this website was in german and you only[…]

Continue reading …

Format Conversion Scripts

Format Conversion scripts WMA to MP3 I created this script to go through all *.wma files in a directory and convert them to mp3 files and then delete the wma files. I works great for[…]

Continue reading …