User Tools

Site Tools


solaris_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
solaris_installation [2007/08/08 17:33] – /* Configuration */ mediawiki_defaultsolaris_installation [2026/09/27 05:35] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
- 
-====== Tardis Solaris Installation/Configuation ====== 
- 
- 
-A fairly minimal guide to running Solaris on to Tardis systems. 
- 
- 
-====== Installation ====== 
- 
- 
-===== Pre-requisites ===== 
- 
-  *  Computer - wired in, serial consoled, networked 
-  *  Install media (or install jumpstart server) 
-  *  IP address - find something free in appropriate VLAN/subnet 
-  *  Hostname - pick something, have DNS admin add it to the DNS 
- 
- 
-===== Pre-install setup ===== 
- 
-Attempt to do the following //before// installing the new machine. Generally you will require someone else to to complete some or all of these tasks, depending on whether you have/need access to the Spiderport/Switch/Firewall configuration. 
- 
- 
-==== Configure spiderport ==== 
- 
-Login to [[http://www.tardis.ed.ac.uk/admin/systems/spiderport.html|spiderport]] (requires access to admin machine, eg baker or davison) and configure tcp port //n// to map to the serial port you plugged the new machine into, where //n// is the last octet of the IP address chosen for the new system. 
- 
- 
-==== VLAN install ==== 
- 
-Login to [[http://www.tardis.ed.ac.uk/admin/net|switch]], map chosen ethernet port into the approriate VLAN. 
- 
- 
-==== Firewall configuration ==== 
- 
- 
-  *  Allow outgoing DNS, HTTP Proxy Access (if required). 
-  *  Allow incoming SSH (if required). 
- 
- 
-===== Solaris Install ===== 
- 
- 
-Put install media in drive. 
- 
-Connect to the serial console on the new machine (would advise running this inside a screen session, in case the connection fails and context is lost). Drop machine to the prom (^] then send break from the telnet> prompt), type boot cdrom at the go prompt to begin the interactive installer program. 
- 
-Most of the questions in the installer program can be answered with common sense. Remeber to use <esc>n instead of Fn to progress through the menus. 
- 
- 
-==== Responses to non-obvious questions ==== 
- 
- 
-May not be conclusive, mostly from memory 
- 
-  *  Terminal type - choose 'xterms', it seems to work fine. 
-  *  Install type - choose normal install. Install the whole solaris system (minus OEM support). The 'reduced networking support' option is much more minimally configured and could also be considered. 
-  *  Disk layout - choose 'auto-layout', the customise. The defaults are inappropriate, make / considerably larger, do not have a seperate /export partition('slice'), allow for a sensible /var 
- 
- 
-====== Configuration ====== 
- 
- 
-===== DNS ===== 
- 
-  cp /etc/nsswitch.dns /etc/nsswitch.conf 
-Then edit /etc/resolv.conf to taste. 
- 
-===== LDAP Client ===== 
- 
-  /usr/sbin/ldapclient -v manual -a defaultSearchBase=dc=tardis,dc=ed,dc=ac,dc=uk -a domainName=tardis.ed.ac.uk -a defaultServerList=193.62.81.2 
- 
-===== Environment tweaks ===== 
- 
- 
-Solaris comes with a fairly alien default configuration, especially if you come from a GNU tools background. Things you may wish to do: 
- 
-  *  Set the default shell to bash rather than sh (this is safe in S10). 
-  *  Set the default TERM variable to something less 'broken'. 
-  *  Edit /etc/default/login and /etc/default/su setting PATH and SUPATH to: 
-<code>/opt/csw/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin</code> 
-  *  Export an appropriate $http_proxy variable from /etc/profile. 
- 
- 
-===== 2.2 Package Manager ===== 
- 
- 
-pkg-get is an apt-ish package manager for Solaris for installing unofficial community software builds. You can install pkg-get from [[http://www.blastwave.org/howto.html|blastwave.org]]. Usage is fairly trivial, eg: 
- 
-<code>pkg-get -i vim</code> 
- 
- 
-===== 2.3 Minimise Network Exposure ===== 
- 
-//TODO: using svcadm to disable the vast swathes of useless services// 
- 
-===== 2.4 Solaris Zones ===== 
- 
-See [[http://www.opensolaris.org/os/community/zones/faq/#sa_create|Zones FAQ]] on [[http://www.opensolaris.org/|opensolaris.org]]. 
- 
-==== 2.4.1 Creating and installing a zone ==== 
- 
-   
-  reaper:~# zonecfg -z <zonename> 
-  db: No such zone configured 
-  Use 'create' to begin configuring a new zone. 
-  zonecfg:db> create 
-  zonecfg:db> set zonepath=/zones/zone_roots/<zonename> 
-  zonecfg:db> add net 
-  zonecfg:db:net> set address=<zone ip addr> 
-  zonecfg:db:net> set physical=hme0 
-  zonecfg:db:net> end 
-  zonecfg:db> commit 
-  zonecfg:db> exit 
-   
-  reaper:~# zoneadm -z <zonename> install 
-  reaper:~# zoneadm -z <zonename> boot 
-  reaper:~# zlogin -e] -C <zonename> 
- 
- 
-Then follow the above guidelines on setting up the Solaris environment. 
- 
- 
-==== Useful info ==== 
- 
- 
- 
-=== Connecting to the console on a zone === 
- 
-It is necessary to change the escape char for zlogin, because by default it is the same as ssh (~) which will create confusion if you're logged in through a chain of ssh sessions. 
- 
-zlogin -e] -C <zonename> 
- 
-To disconnect from a zone, first log out, then type ]. after a newline. 
- 
- 
-=== Adding user accounts === 
- 
-//(you cannot ssh into the root account)// 
- 
-  *  Disable autofs 
-<code>svcadm disable svc:/system/filesystem/autofs:default</code> 
-  *  Fix permissions on /home 
-<code>chmod 755 /home</code> 
-  *  Add account 
-<code>useradd -m -d /home/username -s /bin/bash/ username</code> 
-<code>passwd username</code> 
- 
-//This may all be fixable cleanly by leaving autofs running and following the instructions in the comments [[http://www.oreillynet.com/onlamp/blog/2006/03/solaris_first_install.html|here]]. // 
- 
- 
  
solaris_installation.1186594388.txt.gz · Last modified: (external edit)