Wednesday, January 26, 2011

Solaris - CPU

Nothing fancy, just a quick note for thyself

# psrinfo -vp
The physical processor has 1 virtual processor (0)
x86 (GenuineIntel family 6 model 23 step 10 clock 2387 MHz)
Intel(r) Core(tm)2 Duo CPU P8600 @ 2.40GHz
#


Macam cat /proc/cpuinfo kat linux,

# kstat cpu_info
module: cpu_info instance: 0
name: cpu_info0 class: misc
brand Intel(r) Core(tm)2 Duo CPU P8600 @ 2.40GHz
cache_id 0
chip_id 0
clock_MHz 2387
clog_id 0
core_id 0
cpu_type i386
crtime 31321.127312219
current_clock_Hz 2387348216
current_cstate 0
family 6
fpu_type i387 compatible
implementation x86 (GenuineIntel family 6 model 23 step 10 clock 2387 MHz)
model 23
ncore_per_chip 1
ncpu_per_chip 1
pg_id -1
pkg_core_id 0
snaptime 33573.371480431
state on-line
state_begin 1295996392
stepping 10
supported_frequencies_Hz 2387348216
supported_max_cstates 0
vendor_id GenuineIntel

#

Monday, January 24, 2011

Solaris Zone

Create zone:
bash-3.00# zonecfg -z 1
1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:1> create
zonecfg:1> set zonepath=/opt/zones/1
zonecfg:1> add net
zonecfg:1:net> set physical=e1000g0
zonecfg:1:net> set address=192.168.1.111
zonecfg:1:net> end
zonecfg:1> add inherit-pkg-dir
zonecfg:1:inherit-pkg-dir> set dir=/opt
zonecfg:1:inherit-pkg-dir> end
zonecfg:1> verify
zonecfg:1> commit
zonecfg:1> exit

# zoneadm -z 1 install
Preparing to install zone <1>.
Creating list of files to copy from the global zone.
Copying <2924> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1102> packages on the zone.
Initialized <1102> packages on zone.
Zone <1> is initialized.
The file contains a log of
the zone installation.
#

# zoneadm -z 1 boot
# zlogin -C 1
(follow on screen instructions)

If you want to rename zone:
# zoneadm -z 1 halt
# vi /etc/zones/index (rename "1" to your new zone name, i.e. zone1x86)
# cd /etc/zones/
# mv 1.xml zone1x86.xml
# vi zone1x86.xml (change any reference "1" to new zone name, i.e. zone1x86)
# zoneadm -z zone1x86 boot

read more...

Sunday, January 23, 2011

Luser Attitude Readjustment Tool



lart(8)         lart(8)

NAME
       lart  - Luser  Attitude Readjustment Tool - use a lart to
       adjust lusers' attitudes

SYNOPSIS
       lart [ -use tool ] [ -bBfFgklp ] 

DESCRIPTION
       lart adjusts the attitudes of those pesky, clueless people
       who  rely  upon their  admins for everything from picking
       their mice off of the floor to turning on their monitors;
       namely, the  luser(8). Running lart with the appropriate
       arguments will cause  the  specified  luser  to run  away
       screaming in agony.  Alternatively, you can make the luser
       buy you a beer, after killing all of their processes.


Solaris 10 x86 on VMWare disk mirror


umount /export/home

bash-3.00# format
Searching for disks...done



AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@0,0/pci15ad,1976@10/sd@0,0
       1. c1t1d0
          /pci@0,0/pci15ad,1976@10/sd@1,0
Specify disk (enter its number):

read more...

Solaris 10 x86 on VMWare


Tuesday, January 18, 2011

MacOSX 10.6.4 running on AMD Phenom X2 555

Finally I managed to install 10.6.4 on my AMD Phenom X2 555 system with Asus M4A88T-V EVO/USB3.

The problem that I'm facing right now is to get my onboard AT HD4250 to work, at least to change resolution to 1920x1080. So far I found out that 4250 is NOT supported. Tried installing RadeonHD kext but somehow couldn't get it to work. Will continue to work on this later on.

USB 2.0 seems to work (haven't check whether it's 1.1 or 2.0 - later), USB 3.0 not tested (i don't have USB 3.0 device), Firewire not tested

read more...

MacOSX 10.6.4 ISO/DVD offset

dump everything in DVD to ISO (change /dev/sr0 to your DVD device):
# cat /dev/sr0 > macosx_10.6.4_install.iso

find your offset (it is gonna take quite some time, so be patience):
# hexdump -C macosx_10.6.4_install.iso | grep "48 2b 00 04"
31b4b400 48 2b 00 04 80 00 01 00 31 30 2e 30 00 00 00 00 |H+......10.0....|

read more...

Thursday, January 13, 2011

Cron (solaris) "bad user" error

cron (solaris) "bad user" error message in /var/log/cron
--------------------------------------------------------

Cron needs to be able to access a shell as the cron user in order to
do its thing. The easiest work-around for this is to edit the
/etc/shadow file and change the *LK* to *NP* for the affected
accounts.

Tuesday, January 11, 2011

vxrestore / vxdump

# vxdump 0fu /dev/rmt/0m /var ; dump vxfs file system /var to tape /dev/rmt/0m using level 0 and update /var/adm/dumpdates

# vxrestore tf /dev/rmt/0m | grep eaaa ; obtain table of contents from tape /dev/rmt/0m and look for filename containing "eaaa"

# vxrestore -yxf /dev/rmt/0m ; restore the whole content of the tape into current dir, answer 1 and y

# mt -f /dev/rmt/0m rewind ; rewind tape after listing the tape