Solaris

Solaris knowledge

Sometimes, if you modify the MBR of a x86 disk you can loose its content so you need to reinstall the grub again, for example after install a mixed linux/solarisx86 environment, or migrating a x86 physical machine to a virtualized environment. You have two options to boot the system, both using the CD-Rom: One is using the cdrom grub, to do that, press e after grub appears, and delete all the lines and add the next 3 lines: root (hd0,2,a) kernel /platform/i86pc/multiboot module /platform/i86pc/boot_archive As Read more...
IP setting can be done temporary or persistent. in the fist case, the interface must be plumbed in the following way: # ifconfig nxge0 plumb # ifconfig <intferface> <ip address> broadcast <bcast address> netmask <netmask> If you want your configuration to persist across reboots you'd need to do the following... Each machine on a TCP/IP network gets its configuration information from the following TCP/IP configuration files and network databases: /etc/hostname.interface Read more...
Sometimes a disk fails and need to be replaced with a new one, to do that we need to know which device is... # cfgadm -al Ap_Id Type Receptacle Occupant Condition c0 scsi-bus connected configured unknown c0::dsk/c0t0d0 CD-ROM connected configured unknown c1 scsi-bus connected configured unknown c1::dsk/c1t0d0 disk connected configured unknown c1::dsk/c1t1d0 disk connected configured unknown c2 fc connected unconfigured unknown c3 scsi-bus connected unconfigured unknown usb0/1 unknown empty Read more...
Special characters to show useful information in $PS1 prompt: \h short hostname (without domain). \H long hostname. \n new line. \s shell name (like bash, sh) \t 24h format clock. \u current username. \v shell version. \w current folder. Inside PS1 we can add the output of a specific command, preferably with short output, like  PS1=$(date) We can color the prompt messages just adding  \[\033[COLORm\]. and \[\033[0m\] to stop colors to avoid colored commands. Where COLOR Read more...
Create the shared key with puttygen: http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe Press generate and move the mose when requested. When finish, copy the text content of the window to a file, and save it in a safe place or save it clicking  "save public key" or "save private key".   Open putty.exe and in Connections >> SSH >> Auth, select private key file clicking in "Browse" and finding the key file saved previously. or you can use pageant: http://the.earth.li/~sgtatham/putty/latest/x86/pageant.exe And Read more...