Reach out to Dave Clarke (from Blastwave), as he has written a Solaris 10 howto.
Some other ideas for Howtos:
I think that a zones howto should be there.
Also a full L(S)AMP howto should be there. (Apache/MySQL/Perl)
Howto configure SVN (Server and client)
Howto setup Rails.
Howto setup a basic BIND (DNS) server.
Howto setup LDAP authentication
Howto backup and restore filesystems using just the included tools.
Howto setup a mailserver
That should get you started.
Three howtos that I wrote are attached. (They were written a while ago
so you may need to refresh their content is still relevant)
----------------------------------------------------------------
HOWTO - Setup NFS (Brian Gupta - 1998)
(PROBABLY NEEDS UPDATING FOR SMF)
* Major Config Files:
o /etc/vfstab - remote filestems entered here
o /etc/dfs/dfstab - local fs's to be exported here (if you
change run exportfs -a)
* RESTARTING THE nfsdaemon:
1. /etc/init.d/nfs.server stop
2. /etc/init.d/nfs.server start
* Some Status Commands:
o nfsstat -m
o /usr/sbin/showmount -e systemname (SHOWS AVAILABLE
FILESYSTEMS TO MOUNT ON REMOTE SYSTEM)
* Check the entry in /etc/mnttab
o ps -ef |grep rpcbind
o /usr/sbin/rpcbind -w
o rpcinfo -s systemname |sort -n
* How to automatically share your local CDROM Drive: (Assuming
nfsd and vold is running)
1. Add the following lines to /etc/rmmount.conf:
o # File System Sharing
o share cdrom*
* How to remotely access this CDROM:
o mount -F nfs -o ro vjtest:/cdrom/vrts_9803 /mnt
* NFS Administrator's guide: ?????
----------------------------------------------------------
Brian Gupta
+----
How To rsync a Pair of Directories
+----
This procedure has been tested with the following versions of rsync:
(rsync version 2.2.1 protocol version 19) - Solaris 2.6
(rsync version 2.4.6 protocol version 24) - Solaris 8
Please read this whole doc as there are multiple options, that can greatly
change the behavior of rsync.
The basic syntax is simple enough. Here's a generic example that synchronizes
the contents of a local directory - dirpath - with a remote counterpart -
remotehost:/dirpath/:
(This example is suitable for running rsync on systems running rsh
for remote administration)
rsync -auv --delete --rsh=/usr/athena/bin/rsh \
--rsync-path=/usr/local/bin/rsync /dirpath/ remotehost:/dirpath/
If, however, one is running on a system that does not accept rlogin connections
(Like all of our Solaris 8 standard builds), one must use ssh as the connection
method.
rsync -auv --delete --rsh=/usr/local/bin/ssh \
--rsync-path=/usr/local/bin/rsync /dirpath/ remotehost:/dirpath/
(A third example is useful on Solaris 2.6 systems that are not ssh enabled)
(Note: This example does not use the u or v flags, as it is run in the back-
ground, and we want to overwrite newer files. Nor does it specify the rsh path,
as the default system rsh is used if not specified)
rsync -a --rsync-path=/usr/local/bin/rsync \
tempest2:/dirpath/dir/ \
/archive/dirpath/dir/ &
One critical thing is to understand the flags I have listed (read man
for more).
-a - archive mode.. this basically says preserve everything (permissions,
modtimes, etc.) as well as to recurse.
-u - This tells rsync only to update a file if it is newer than the
target file
(When wanting to make to filesystems identical please drop this flag)
-v - verbosity.
Obviously, you want to supplant the proper local paths for the --rsh= and
--rsync= options. In addition, it IS CRUCIAL when using the --delete option to
remember the trailing slash on both the source and destination directory paths.
E.g., in the above n both the example, one uses
remotehost:/dirpath/
rather than the incorrect
remotehost:/dirpath
when syncing the directories. The --delete option tells rsync to
delete any file
s or directories on the destination machine that does not exist on the source
box. The trailing slash, therefore, grounds the source and destination machines
in the same exact directory, rather than having rsync erase everything in the
current destination directory and create the root of the tree there.
Finally, rsync can be run in the reverse direction should permissioning or
security needs require it. That is to say, the above example rsyncs the local
machine with its remote counterpart using the local box as the source.
Here's an example that does the opposite:
rsync -auv --delete --rsh=/usr/athena/bin/rsh \
--rsync-path=/usr/local/bin/rsync remotehost:/dirpath/ /dirpath/
Simple enough. You just change the order of the last two arguments.
-----------------------------------------------------------------------------
HOWTO increase the number of file descriptors
There is a hard limit set on the number of file descriptors per
process. This limitation is by default set to 1024. This cannot be
exceeded by either limits(csh) or ulimt(sh) commands. The users get a
limit of 64 file descriptors and can increase it to 1024. Here is what
has to be done to further increase this limit.
There are two variables in the kernel that can be modified to set
these limits. The limits are called the hard limit or the max allowed
and the soft or the current limit. The two variables that can be
modified are rlim_fd_max & rlim_fd_cur. Set the following in the
/etc/system file.
set rlim_fd_max=<the maximum value>
set rlim_fd_cur=<the default for all shells>
To take a look at what the current limits are :
To set the maximum open file descriptor limits for different shells.
/bin/sh & /bin/ksh : ulimit -n 1024
/bin/csh : limit descriptors 1024
---------------------------------------------------------------------------
(C) - Brian Gupta
On 5/8/07, Blake <blake.irvin at gmail.com> wrote:
> Made some changes and started a list of future HOWTO docs. Feedback
> appreciated.
>
> <http://www.genunix.org/wiki/index.php/HOWTOs_and_Guides>
>
> --
>
> blake/
> _______________________________________________
> docs-discuss mailing list
> docs-discuss at opensolaris.org
>