Instalação e configuração do OpenSolaris B63 com Studio Express
Há algum tempo venho por conta própria estudando o Solaris em x86, já que os cursos do S.O. são caros e proibitivos para muitos. Tenho me dedicado no meu tempo livre ao estudo do sistema. Criei apostilas de uso pessoal com testes em instalação de aplicativos e aqui venho compartilhá-las.
Parte 2: Algumas configurações pós-instalação do sistema operacional
Ativar o Webmin
O Webmin é um aplicativo de gerenciamento muito útil, facilita a configuração e administração do sistema.# /usr/sfw/bin/webminsetup -> Seguir as orientações do terminal
Modificando o SSH
O servidor SSH vem bloqueado para que o root entre remotamente no sistema. Para modificar:# vi /etc/ssh/sshd_config
PermitRootLogin yes
# reboot
Preparando discos vazios
Diferente do Linux que você no processo de instalação pode criar RAID 0, 1 e 5, no Solaris só é possível após a instalação. Aparentemente parece uma desvantagem, mas com o devido estudo você irá notar algumas vantagens em gerenciamento realmente interessantes. Aconselho ler o Solaris Volume Manager Administration Guide, que é encontrado em:Caso tenha unidades vazias ou com outro sistema de partição, deverá preparar estas unidades para uso com partições Solaris.
# format
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <DEFAULT cyl 1103 alt 2 hd 255 sec 63>
/pci@0,0/pci9004,7881@b/sd@0,0
1. c1t1d0 <IBM-DCAS-34330W!#-S69D cyl 8245 alt 2 hd 6 sec 171>
/pci@0,0/pci9004,7881@b/sd@1,0
2. c1t2d0 <DEC-RZ1DB-CS(C)DEC-0307 cyl 5271 alt 2 hd 20 sec 168>
/pci@0,0/pci9004,7881@b/sd@2,0
3. c1t3d0 <IBM-PCCO-DGHS09Y!#-04F0 cyl 8141 alt 2 hd 10 sec 218>
/pci@0,0/pci9004,7881@b/sd@3,0
4. c1t4d0 <HP-9.10GBC80-CX03-CX03 cyl 14053 alt 2 hd 3 sec 421>
/pci@0,0/pci9004,7881@b/sd@4,0
Specify disk (enter its number): 2
Disk not labeled. Label it now? n
format > verify
Please run fdisk first. <- isso se da porque a unidade está vazia.
format > fdsik
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table. y
format > type
AVAILABLE DRIVE TYPES:
0. Auto configure
1. HP-9.10GBC80-CX03-CX03
2. IBM-PCCO-DGHS09Y!#-04F0
3. DEC-RZ1DB-CS(C)DEC-0307
4. IBM-DCAS-34330W!#-S69D
5. DEFAULT
6. other
Specify disk type (enter its number)[3]: 0
Esta opção fará com que o disco seja automaticamente configurado.
Disk not labeled. Label it now? y format > verify Primary label contents: Volume name = < > ascii name = <DEC-RZ1DB-CS(C)DEC-0307 cyl 5281 alt 2 hd 20 sec 168> pcyl = 5283 ncyl = 5281 acyl = 2 bcyl = 0 nhead = 20 nsect = 168 Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 79 129.61MB (79/0/0) 265440 1 swap wu 80 - 158 129.61MB (79/0/0) 265440 2 backup wu 0 - 5282 8.46GB (5283/0/0) 17750880 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 usr wm 159 - 5280 8.21GB (5122/0/0) 17209920 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 1.64MB (1/0/0) 3360 9 alternates wm 0 0 (0/0/0) 0Esta configuração de partições não serve para criação do RAID 5, a que nos serve é a partição backup cxtxdxs2, vamos apagar as outras.
format > partition partition > 0 Enter partition id tag[root]: unassigned Enter partition permission flags[wm]: ENTER Enter new starting cyl[1]: 0 Enter partition size[265440b, 79c, 78e, 129.61mb, 0.13gb]: 0 partition > 1 Enter partition id tag[swap]: unassigned Enter partition permission flags[wm]: ENTER Enter new starting cyl[80]: 0 Enter partition size[265440b, 79c, 78e, 129.61mb, 0.13gb]: 0 partition > 6 Enter partition id tag[usr]: unassigned Enter partition permission flags[wm]: ENTER Enter new starting cyl[159]: 0 Enter partition size[17209920b, 5122c, 5121e, 8403.28mb, 8.21gb]: 0 partition > print Current partition table (unnamed): Total disk cylinders available: 5281 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 unassigned wm 0 0 (0/0/0) 0 1 unassigned wu 0 0 (0/0/0) 0 2 backup wu 0 - 5282 8.46GB (5283/0/0) 17750880 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 1.64MB (1/0/0) 3360 9 alternates wm 0 0 (0/0/0) 0 partition > quit format > volname Enter 8-character volume name (remember quotes)[""]: ENTER Ready to label disk, continue? Y format > quitNesta instalação vamos fazer modificações nas unidades c1t2d0 c1t3d0 c1t4d0.
Recentemente instalei no meu notebook o NexentaOS que é um OpenSolaris ao qual integraram o dpkg do Debian.
Abraços.