The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download | Blog | Stats
Personal tools

Mac Installation

From the makers of InspIRCd.

Jump to: navigation, search

Contents

Installing InspIRCd on an Intel Mac

Overview

For the most part, installing InspIRCd on an Intel based Mac is the same as installation on a Linux/Unix machine, however, some additional steps need to be taken for OS X 10.5 compatibility. To run InspIRCd, you must have the process launched by a user with UID 16 (Leopard will only allow this from a system account), but to compile, you must be using a non-system account with a UID of at least 500. Apple has removed Netinfo Manager from OS X 10.5 and up which makes this more difficult. Note: You will need sudo privileges to complete this process!

Installation

To begin, compile InspIRCd from tarball in Terminal using your regular account.

Creating the IRCDaemon User

InspIRCd needs to be run by a user with UID 16, which we will name irc. The following commands can be run from Terminal from a sudo-enabled user to create the account:

sudo mkdir -p /Users/irc
sudo dscl . -create /Groups/irc
sudo dscl . -create /Groups/irc PrimaryGroupID 16
sudo dscl . -create /Users/irc
sudo dscl . -create /Users/irc RealName "irc"
sudo dscl . -create /Users/irc NFSHomeDirectory /Users/irc
sudo dscl . -create /Users/irc UserShell /bin/bash
sudo dscl . -create /Users/irc UniqueID 16
sudo dscl . -create /Users/irc PrimaryGroupID 16
sudo passwd irc

You will now be prompted to enter the new user's password twice.

Changing Permissions

You need to change the owner of all of the files to your new user.

sudo chown -R 16:16 /PATH/TO/inspircd

Your user account also did not have permissions to create the log file. To create this run:

sudo touch /var/logs/ircd.log
sudo chown 16:16 /var/logs/ircd.log

Before You Start The Process

When you are ready to launch InspIRCd, you need to run the process as the irc user. To do this, type:

su irc