Difference between revisions of "User:Alexmat"

From ArchWiki
Jump to: navigation, search
Line 1: Line 1:
 
[http://wiki.archlinux.org/index.php/User:Alexmat:Secure_OpenLDAP_Authentication_for_a_Small_Network Secure OpenLDAP Authentication for a Small Network]
 
[http://wiki.archlinux.org/index.php/User:Alexmat:Secure_OpenLDAP_Authentication_for_a_Small_Network Secure OpenLDAP Authentication for a Small Network]
 +
 +
[http://wiki.archlinux.org/index.php/User:Alexmat:Network_File_System_Setup Network File System Setup]
  
 
[http://wiki.archlinux.org/index.php/User:Alexmat:Manual_CK_Kernel_Install Manual CK Kernel Install]
 
[http://wiki.archlinux.org/index.php/User:Alexmat:Manual_CK_Kernel_Install Manual CK Kernel Install]
  
  
 
= Auto File System Mounter =
 
 
== Install ==
 
 
pacman -Sy autofs
 
 
== Automount Home Directory ==
 
 
Edit /etc/autofs/auto.master:
 
 
/home /etc/autofs/auto.home --timeout 600
 
 
Edit /etc/autofs/auto.home:
 
 
*  -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp 192.168.1.11:/home:&
 
 
== Start AutoFS ==
 
 
/etc/rc.d/autofs start
 
 
add to daemons too :)
 
  
 
= Network Time Protocol Daemon Setup =
 
= Network Time Protocol Daemon Setup =

Revision as of 00:55, 18 September 2005

Secure OpenLDAP Authentication for a Small Network

Network File System Setup

Manual CK Kernel Install


Network Time Protocol Daemon Setup

Install

pacman -Sy ntp

Configure

# default restrictions
restrict default noquery notrust nomodify

# override the default restrictions
restrict 192.168.1.0 mask 255.255.255.0 nomodify

# public NTP servers to sync with
server bigben.cac.washington.edu
server time-nw.nist.gov
server tick.ucla.edu

restrict bigben.cac.washington.edu noquery nomodify
restrict time-nw.nist.gov noquery nomodify
restrict tick.ucla.edu noquery nomodify

# NTP drift file
driftfile /etc/ntp.drift

# NTP log file
logfile /var/log/ntp.log

Prevent DHCP Overwrite of /etc/ntp.conf

Edit /etc/conf.d/dhcpcd:

DHCPCD_ARGS="-t 30 -h $HOSTNAME -N"

Sync Time with Stratum 1 Server on Boot

Edit /etc/rc.d/ntpsync:

. /etc/rc.conf
. /etc/rc.d/functions

# Sync with Stratum 1 time server
stat_busy "Syncing System Clock"
/usr/bin/ntpdate -s bigben.cac.washington.edu
stat_done

Set executable:

chmod +x /etc/rc.d/ntpsync

Add NTPD to Daemon Startup List

Edit /etc/rc.conf:

Daemons(... ntpsync ntpd ...)


Jabberd2 using MySQL storage and OpenLDAP authentication

READ THIS!

If you have any problems at all, the official [Jabberd2 documentation] is superb!

Build Jabberd2 with MySQL and OpenLDAP Support

Copy the official arch build from /var/abs/extra/daemons/jabberd. Edit the PKGBUILD and add mysql and ldap support. Dont delete the SRC directory after your done, you'll need the mysql script in there to populate your initial database.

RTFM

The manual above walks you through the install of Jabberd very well. Make sure your ids are the same and look to /var/log/errors.log and /var/log/everything.log for help if you get stuck.