Skip to content

Instantly share code, notes, and snippets.

@boxysean
Created May 1, 2013 00:26
Show Gist options
  • Save boxysean/5492914 to your computer and use it in GitHub Desktop.
Save boxysean/5492914 to your computer and use it in GitHub Desktop.
Let it be known, this is how you set up a GuruPlug to run the Outernet stack
install git, git-core
setup ssh keys with github
install sys-rc-conf
disable lighttpd and stop service
install apache2
remove apache2-mpm-prefork and install apache2-mpm-worker
apt-get upgrade
mark mysql-client-5.0 as upgradable... and then let them all upgrade
LDAP
----
install slapd
install phpldapadmin
Add this LDIF to phpldapadmin (import function)
dn: dc=outernet,dc=nodomain
dc: outernet
description: Outernet
o: Outernet
objectClass: dcObject
objectClass: organization
objectClass: top
dn: ou=people,dc=outernet,dc=nodomain
ou: people
objectClass: organizationalUnit
WEBMAIL
-------
download http://www.afterlogic.com/download/webmail_php.zip and unzip it to /var/www/webmail
install php5-curl
restart apache2
follow instructions in http://ip-of-guruplug/webmail/install
Note you need to make Dovecot to work with LDAP to get webmail LDAP authentication, cool!
[[ if you need to debug slapd, this is good /usr/sbin/slapd -h ldap:/// ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d -d acl -d config -d stats -d filter -d args ]]
MAIL
----
follow guide to install mail transports
http://library.linode.com/email/postfix/dovecot-mysql-debian-6-squeeze
Update your dovecot.conf and dovecot-ldap.conf with these https://gist.github.com/boxysean/5492302
OSCLASS
-------
cd /var/www
git clone [email protected]:idamantium/Osclass.git osclass
Update config.php
Import working database into osclass database
OUTERNET-SPLASH
---------------
cd /var/www
git clone [email protected]:boxysean/outernet-splash.git
Update lib/config.php
DNS
---
install bind9, dnsutils
if you're having troubles, try named-checkzone [zone] [dbfile]
If you're winging it, just setup dnsmasq on the openwrt router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment