Backup and Restore Lion Wiki
Backup the Collaboration Database on the server running the wiki open a terminal and paste the following into the file backup-wiki.sh #!/bin/bash rm -rfd /tmp/wiki_backup BACKUP=/tmp/wiki_backup mkdir $BACKUP pg_dumpall --username=_postgres > $BACKUP/postgres_lion_db.sql cp -ap /Library/Server/Wiki $BACKUP tar -cvzf wiki-backup.tar.gz $BACKUP Save and exit the file, then do the following chmod +x backup-wiki.sh sudo ./backup-wiki.sh This will create the file wiki-backup.tar.gz in your CWD Prep the migration file Copy this file to the new server, untar it. edit the postgres_lion_db.sql...
read moreHow to Build an 802.1q LACP Trunk for Xen in CentOS 5.5
Overview In this how-to we’re going to install CentOS 5.5 and prep it to become a virtual machine server. Before proceeding PLEASE read our Xen software page so you understand how the VM and network topology works. This how-to was built combining various methods publicly already available. If you find some copy and pasted text just remember: a good sysadmin is a lazy sysadmin. Prerequisites LACP bonded 802.1q trunk with necessary VLAN’s assigned Installation Install CentOS 5.5, during the package selection screen make sure to enable the Virtualization option. Configuration First...
read moreHow to Force Propagation on Apple Secondary DNS Server
As you all probably know that using Apple’s DNS server can be challenging at times. If you make changes on the primary you usually have to wait some time before those changes propagate to the secondaries. However with the following commands you can force this propagation without having to nuke files or folders in /var/named 1. On the secondary server, run this command. (use whatever zone you want to transfer in place of lan.example.com rndc -p 54 retransfer lan.example.com IN com.apple.ServerAdmin.DNS.public 2. Reload configuration rndc -p 54 reload 3. Forcing client cache...
read moreHow to Calculate MTU for Tunnels
WARNING: BORING ALERT!!!! If you have any tunnels in your network you may notice at times packet loss between subnets or perhaps stalled web sessions. This usually has to do with a combination of MTU negotiation and packet fragmentation. MTU 101 Maximum Transmission Unit refers to how much data in bytes the data layer can send forward. For ethernet the size is 1500 bytes, which coincides with how much data can fit in an ethernet frame. Within the MTU is another size called MSS (Maximum Segment Size) which refers to how much TCP data can be transmitted. This is also known as the payload and...
read moreCalculate Subnet Network Masks and CIDR notation
How to calculate the network mask from a CIDR notation, or a CIDR notation from a network mask. To figure this out we need to understand the relationship between the two. A network mask when written in binary will be 32 bits long. This also means that each octet of a network mask can hold a total of 8 bits. 255.255.0.0 == 11111111.11111111.00000000.00000000 255.255.255.0 == 11111111.11111111.11111111.00000000 255.255.255.192 == 11111111.11111111.11111111.11000000 Example 1-1: Calculate the network mask from CIDR Notation /16 1. First subtract the CIDR notation from the total number of bits...
read moreApache LDAP Authentication, Require ldap-group, OpenLDAP server, AND YOU!
OK peoples, this one frustrated me for a bit, but because I’m stubborn I figured it out. I have a webservice that I want to protect by using LDAP authentication within Apache from our OpenLDAP server. However, you want to make sure that the user belongs to a specific LDAP group. If you’re like me your groups look something like this: bart:~ jordan$ ldapsearch -h ldap.shop.lan -x -b "dc=shop,dc=lan" cn=fgstaff # extended LDIF # # LDAPv3 # base with scope subtree # filter: cn=fgstaff # requesting: ALL # # fgstaff, Groups, shop.lan dn: cn=fgstaff,ou=Groups,dc=shop,dc=lan cn:...
read more