Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A collection of UNIX tips UNIX
I have compiled a bunch of hints about the Unix underpinnings of OS X, including how to get Sendmail running, making finger work, tons of links, and lots of other useful information.

[Editor's note: Ian has taken his web site off line, but the collection of tips has been posted in the body of this article. If you'd like to see the collection, simply read the rest of this article. There's minimal HTML markup, but there's a lot of good info here. Happy reading!]

##### LINKS #####

http://gnu-darwin.sourceforge.net/FreeBSD/
http://www.bsdtoday.com/resources/HOWTOs/cooley-openbsd-linux-emulation.html
http://www.develux.com/tuxgames/
http://gnu-darwin.sourceforge.net/
http://www.peak.org/ftp/next-ftp/apple/macosx/server/New/all.html
http://www.macosx.com
http://www.macosxapps.com
http://developer.apple.com/macosx/architecture/
http://www.macosxhints.com/
http://www.access.ch/ml/software/macosx/
http://xamba.sourceforge.net/
http://www.videolan.org/vlc/macosx.html
http://elisa.utopianet.net/~rlucia/devel/darwin_ports/
http://www.channelu.com/NeXT/NeXTStep/3.3/nsa/index.html
http://www.xecu.net/istone/NetInfo/netinfo_user_guide.pdf
http://www.xecu.net/istone/NetInfo/netinfo.tar
http://www.openpackages.org/
http://www.obdev.at/products/sharity/
http://forums.macnn.com/cgi-bin/Forum3/HTML/004817.html
http://members.blackbox.net/a/programs/pptp/
http://macosx.sage-tech.net/
http://osxfaq.com
http://mosx.tienhaara.net/sendmail.html
http://www.macosxapps.com/
http://www.openoffice.org/dev_docs/source/build_mac.html
http://www.savagetranscendental.com/OSX.html
http://www.bresink.de/osx/
http://osx.hyperjeff.net/Apps/
http://www.users.qwest.net/~rlutton/ADSL/

#####Kill inetd (no need to restart the box for network changes)#####
kill -1 <PID>

#####Make things autostart#####
su to root...
First, create the startup directory and files:
% cd /Library/StartupItems
% mkdir SQLi
% cd SQLi
% touch SQLi
% touch StartupParameters.plist
% pico SQL
and enter the following:

#!/bin/sh
. /etc/rc.common
if [ "$" = "-YES-" ]; then
ConsoleMessage "Starting SQL Server"
/usr/local/mysql/share/mysql/mysql.server start
fi

Save the file and quit Pico. Now we'll edit the StartupParamters.plist:

% pico StartupParameters.plist
Enter the following text:

{
Description = "secure SQL server";
Provides = ("SQL");
Requires = ("Resolver");
OrderPreference = "None";
Messages =
{
start = "Starting SQL server";
stop = "Stopping SQL server"; };
}

Save the file and quit Pico. Now we'll set the correct permissions.
% chgrp wheel SQL
% chgrp wheel StartupParameters.plist
% chmod 755 SQL

The last step is to edit the host config file:
% pico /etc/hostconfig
and enter the following line:
SQLSERVER=-YES-

#####NetInfo & IMAP#####
su to root, then do this:

niutil -create . /services/imap
niutil -createprop . /services/imap protocol tcp udp
niutil -createprop . /services/imap port 143

and add the following lines in /etc/inetd.conf:
imap4 stream tcp nowait root /usr/local/libexec/imapd imapd

#####Change the logon message#####
edit /etc/motd with pico as root

#####Update & Install Apache and PHP#####
wget http://www.apache.org/dist/httpd/apache_1.3.19.tar.gz
gnutar xzf apache_1.3.19.tar.gz
cd apache_1.3.19
./configure --enable-module=most --enable-shared=max
make
sudo make install

wget http://www.php.net/distributions/php-4.0.4pl1.tar.gz
gnutar -xzf php-4.0.4pl1.tar.gz
cd php-4.0.4pl1
./configure --with-xml --with-apxs=/usr/sbin/apxs --disable-pear
make
sudo make install
sudo cp php.ini-dist /usr/local/lib/php.ini

then, uncomment these in /etc/httpd/httpd.conf
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

http://hotwired.lycos.com/webmonkey/01/16/index3a_page5.html?tw=backend

#####Software Update Refuses to work#####
remove this /Users/(user name)/Library/Preferences/Software Update

#####Get Sendmail working!!! do these things:#####
su to root
put '/usr/sbin/sendmail -bd -q15m' in
/System/Library/StartupItems/Sendmail/Sendmail
chmod 755 /
read /Library/Documentation/Administration/Services/sendmail/README do
what it says
reboot

#####Setup Aliases in Sendmail#####
su, edit /etc/mail/sendmail.cf and un-comment the following line:
O AliasFile=/etc/mail/aliases
edit /etc/mail/aliases (format is 'aliases: (tab) username')

#####Anti-Spam in Sendmail: http://www.brettglass.com/spam/paper.html
#####
edit /etc/mail/access with "email@whatever.com/ip [tab] REJECT" then type:
makemap hash /etc/mail/access < /etc/mail/access

#####Setup Quotas: http://www.freebsd.org/handbook/quotas.html #####
help! this doesn't work in OS X...how do we do this??
#####Edit the /usr/local/lib/pine.conf to set default pine settings for
new users#####

#####Enable comsat in /etc/inetd.conf to make biff work (and biff too, of
course)#####

#####Finger says users have "never logged in," but it's lying.#####
You need to create /var/log/lastlog.

touch /var/log/lastlog
chmod 644 /var/log/lastlog

#####Rebind/Speedup Cocoa Aplications#####
sudo update_prebinding -root /

#####Move the dock!!!####
$> su
type the root password.
$> open -e
/System/Library/CoreServices/Dock.app/Contents/Resources/French.lproj/DockMenus.plist
The file opens with TextEdit, find in the text "1013", then replace
"<key>command</key>" by "<key>menu</key>" under the selected line, do the
same by
finding "1014", save.
Just click on the separation bar on the Dock !!!

#####Make the terminal partly transparent####
Open Terminal, type:
defaults write com.apple.terminal TerminalOpaqueness .8

#####Make aliases at the command line#####
Open Terminal, switch to home directory, create a file called .tcshrc,
edit it with things like:
alias sage 'telnet 192.168.0.254'

#####Run X on OSX
http://slashdot.org/articles/01/02/20/2015239.shtml
http://mrcla.com/XonX/
    •    
  • Currently 2.00 / 5
  You rated: 1 / 5 (4 votes cast)
 
[36,591 views]  

A collection of UNIX tips | 0 comments | Create New Account
Click here to return to the 'A collection of UNIX tips' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.