Difference between revisions of "User:Alexmat"

From ArchWiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
[http://wiki.archlinux.org/index.php/User:Alexmat:Network_File_System_Setup Network File System Setup]
 
[http://wiki.archlinux.org/index.php/User:Alexmat:Network_File_System_Setup Network File System Setup]
 +
 +
[http://wiki.archlinux.org/index.php/User:Alexmat:Auto_File_System_Mounter Auto File System Mounter]
  
 
[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]
  
 +
[http://wiki.archlinux.org/index.php/User:Alexmat:Network_Time_Protocol_Daemon Network Time Protocol Daemon]
  
 
+
[http://wiki.archlinux.org/index.php/User:Alexmat:Jabberd_Setup Jabberd Setup]
= 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 [[http://jabberd.jabberstudio.org/2/docs/ 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.
 

Latest revision as of 00:59, 18 September 2005