Skip to content

mac Macports

Macports

Use BASH shell

Install Macports BASH and add /opt/local/bin/bash to list of approved shells.

sudo port install bash
sudo pico /etc/shells
chsh -s /opt/local/bin/bash
Setup .bash_profile
pico ~/.bash_profile
Add this
. /var/vnix/config/server.inc.sh
Logout and login. Check with set command.

Install essentials under /usr/local/vnix/setup

Swap Files

View swap files

sudo ls -la /var/vm

Check swap files

sudo fs_usage | grep swapfile

Flush DNS Resolver Cache

sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

If this doesn’t work, change the DNS server under Network and keep in mind the propagation on the internet for new domain names takes some time.

Install syslog-ng (not used)

Install with Macports

sudo port install syslog-ng
Notes
syslog-ng has the following notes:
    To use syslog-ng, first unload OS X's built-in syslog daemon:

        sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.syslogd.plist

    Then copy /opt/local/etc/syslog-ng.conf-dist to /opt/local/etc/syslog-ng.conf,
    customize, and load syslog-ng:

        sudo launchctl load -w /Library/LaunchDaemons/org.macports.syslog-ng.plist

    A startup item has been generated that will aid in starting syslog-ng with launchd. It is disabled by default. Execute the following command to start it, and to cause
    it to launch at startup:

        sudo port load syslog-ng
Configuration File
sudo pico /opt/local/etc/syslog-ng.conf

Setup logrotate

Append to newsyslog.conf
~~~bash
sudo pico /etc/newsyslog.conf
Add this
/var/vnix/logs/*.log      vnyx:wheel      644  7           1000 *     GJ

Tips

Show hidden files

cmd + shift + period