====== Setting up a Solaris 10 machine ====== ===== Initial setup of pkg-get ===== * Log in as root * Get wget for your architecture; [[http://www.blastwave.org/wget-i386.bin|i386]] or [[http://www.blastwave.org/wget-sparc.bin|sparc]] and put it in /tmp * Get [[http://www.blastwave.org/pkg_get.pkg|pkg-get]]. * Install it: $ pkgadd -d pkg-get.pkg * Install some tools to make the system a bit more useful: * WGET=/tmp/wget-i386.bin /opt/csw/bin/pkg-get install bash vim less wget sudo * Edit /etc/default/login and add /opt/csw/bin to PATH ===== Starting sshd ===== For some reason the host keys aren't generated when installing sshd so this might have to be done by hand like this: $ ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N "" $ ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" ===== Setting hostname ===== Fetching the hostname from dhcp didn't work, so add the hostname to /etc/nodename (create the file if it doesn't exist) and reboot. ===== Mounting NFS shares ===== First, since we're using NFSv3 instead of NFSv4, edit /etc/default/nfs and uncomment the lines specifying the maximum NFS version. Change these from 4 to 3. Then, edit /etc/vfstab and add the following entries: <code> ugle.ping.uio.no:/ping/ugle/home0 - /ping/ugle/home0 nfs - yes intr,bg wirth.ping.uio.no:/ping/wirth/home0 - /ping/wirth/home0 nfs - yes intr,bg wirth.ping.uio.no:/home - /home nfs - yes intr,bg,ro vodka.ping.uio.no:/ping/vodka/media0 - /ping/vodka/media0 nfs - yes intr,bg </code> Since we don't have a NIS home directory map, we need to disable this functionality in Solaris in order to mount /home. Edit /etc/auto_home and comment out the "+auto_home" line. unmount the existing home mount and mount our new shares with <code> umount /home mount -a </code> and you should be set. ===== Updating the database for apropos(1) ===== ''# catman -w'' ===== Setting Up LDAP ===== Initialize the client as a LDAP client: $ ldapclient -v manual -a authenticationMethod=none -a defaultSearchBase=dc=company,dc=com -a domainName=company.com -a defaultServerList=192.168.1.15 Read ldapclient(1M) for more information about creating profiles that eases in initialization of multiple LDAP clients. ===== Managing Network Services ===== /etc/inetd.conf is not used, try inetadm instead: <code> # inetadm ENABLED STATE FMRI ... enabled online svc:/network/login:rlogin ... </code> <code> # inetadm -d svc:/network/login:rlogin # inetadm ENABLED STATE FMRI ... disabled disabled svc:/network/login:rlogin ... </code> You should also check out ''smf(5)'' ===== Useful Commands ===== ==== Mounting an ISO image ==== $ lofiadm -a /export/temp/software.iso /dev/lofi/1 $ mount -F hsfs -o ro /dev/lofi/1 /mnt ===== Useful Stuff for .bashrc ===== <code> # Include free software, SUNWbtool (compiler stuff) export PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin # SUSv3 :/usr/xpg6/bin:/usr/xpg4/bin </code> ===== Resources ===== * [[http://www.blastwave.org/packages.php|The blastwave.org package list]]

 
settingupasolaris10machine.txt · Last modified: 2007/03/16 16:45
 
Wiki Syntax