Les fichiers concernés sont :
/etc/hostname.<interface-name> (hme0, le0, ...) /etc/nodename /etc/defaultrouter /etc/netmasks (maybe) /etc/net/ticlts/hosts (optional) /etc/net/ticots/hosts (optional) /etc/net/ticotsord/hosts (optional)
ifconfig -a
touch /etc/dhcp.pcn0
vi /etc/hostname.pcn0
10.32.8.10 ou mysolaris
vi /etc/hosts
10.32.8.10 mysolaris
vi /etc/netmask
10.32.8.10 255.255.0.0
vi /etc/defaultrouter
10.33.255.254
vi /etc/resolv.conf
nameserver 10.0.0.1
et ne pas oublier :
vi /etc/nnswitch.conf
hosts : files dns
ifconfig pcn0 10.32.8.10 netmask 255.255.0.0
Le système de fichiers UFS de Solaris se découpe en tranches ! La tranche 2 représente le disque entier…
devfsadm -c disk
format
root@solaris: format /dev/rdsk/c2t1d0s2
selecting /dev/rdsk/c2t1d0s2
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format>
Sous-menu de la commande pour partitionnement :
partition
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
Option automatique interactive
format > 1 > partition > modify > 1. All Free Hog
partition> modify
Select partitioning base:
0. Current partition table (original)
1. All Free Hog
Choose base (enter number) [0]?
ll /dev/rdsk
newfs -v /etc/rdsk/c1d1t0s0
mount -o rw -F ufs /dev/dsk/c1d1t0s0 /mnt
vi /etc/vfstab
exemple :
#device device mount FS fsck mount mount #to mount to fsck point type pass at boot options /dev/dsk/c0d1s0 /dev/rdsk/c0d1s0 /data/part0 ufs 1 yes rw
prtvtoc /dev/dsk/c0d1s0 > /root/format_disk.txt
mount
ou
more /etc/mnttab
fmthard -s /root/format_disk2.txt /dev/rdsk/c0d1s0
newfs -N /dev/dsk/c0d1s0
quot /dev/dsk/c0d1s0
fstyp /dev/rdsk/c0d1s0
useradd -d /export/home/test -m -s /bin/bash -c "Compte de TEST" test
finger test
vi /etc/default/passwd MAXWEEKS= MINWEEKS= PASSLENGTH=6 #NAMECHECK=NO #HISTORY=0 #MINDIFF=3 #MINALPHA=2 #MINNONALPHA=1 #MINUPPER=0 #MINLOWER=0 #MAXREPEATS=0 #MINSPECIAL=0 #MINDIGIT=0
vi /etc/default/login # If CONSOLE is set, root can only login on that device. # Comment this line out to allow remote login by root. # CONSOLE=/dev/console
id -a user
vi /etc/ftpd/ftpusers
pkgadd -d <package-name>
pkginfo
pkgrm <package-name>
pkgchk
Par défaut PKG va chercher à installer ce qui se trouve dans /var/spool/pkg . On peut donc copier les packages dans ce dossier et lancer l'install directement :
pkgadd
$ nohup perl -e "if (fork()>0) {while (1) {sleep 100*100;};};"
voir le zombie crée :
$ ps -edf | grep defunct
prstat -s cpu -n 10 0 1
uname -a