martedì 23 febbraio 2010

Quake 3 su Solaris

Sean McGrath ha postato sul suo blog, post ripreso da PlanetSolaris gli screenshots di Quake3 giocato su Solaris.

A quanto pare, Icculus.org avrebbe rilasciato un port per x64 ma anche per SPARC!
I links:

venerdì 19 febbraio 2010

dmesg è sacro

Quando mi loggo su una macchina Unix, io DEVO digitare "dmesg". E' più forte di me. Ognuno ha i suoi riti, lancia ksh -o vi, da invio $random volte alternato al comando cd ...
Io digito dmesg e do invio. Su Linux, su Solaris ...

Su Aix non c'è!
E non c'è alog -o -t boot o errpt -a che tenga.
Per questo sono arrivato a farmelo da me:

root@localhost / #which dmesg
/usr/bin/dmesg
root@localhost / #file /usr/bin/dmesg
/usr/bin/dmesg: shell script
root@localhost / #cat /usr/bin/dmesg
#!/usr/bin/bash

cat /var/adm/messages
root@localhost / #dmesg
Jan 14 17:18:25 localhost user:warn|warning root: sdjskdjkjdkjkwejk
Jan 14 17:19:11 localhost auth|security:crit reboot: rebooted by root
Jan 14 17:19:12 localhost syslog:err|error syslogd: going down on signal 15
Jan 14 17:19:13 localhost mail:crit sendmail[225452]: My unqualified host name (loopback) unknown; sleeping for retry
Jan 14 17:26:01 localhost mail:crit sendmail[184410]: My unqualified host name (loopback) unknown; sleeping for retry
Jan 14 17:27:01 localhost mail:alert sendmail[184410]: unable to qualify my own domain name (loopback) -- using short name
Jan 14 17:35:56 localhost syslog:info syslogd: restart
Jan 15 00:50:10 localhost user:notice syslog: set by root
Jan 15 00:51:08 localhost user:notice last message repeated 4 times
Jan 15 00:52:27 localhost syslog:info syslogd: restart
Jan 15 01:08:40 localhost auth|security:crit halt: halted by root
Jan 15 01:08:40 localhost syslog:err|error syslogd: going down on signal 15
Jan 15 08:08:40 localhost syslog:info syslogd: restart
Jan 15 08:08:41 localhost mail:crit sendmail[184422]: My unqualified host name (loopback) unknown; sleeping for retry
Jan 15 08:08:41 localhost daemon:notice RMCdaemon[274650]: (Recorded using libct_ffdc.a cv 2):::Error ID: 6eKora0tF/I9/atf.S6.e.1...................:::Referen
ce ID: :::Template ID: a6df45aa:::Details File: :::Location: RSCT,rmcd.c,1.56,213 :::RMCD_INFO_0_ST The daemon is started.
Jan 15 08:08:45 localhost auth|security:notice su: from root to pconsole at /dev/tty??
Jan 16 03:14:33 localhost syslog:info syslogd: restart
Jan 16 03:14:35 localhost mail:crit sendmail[184410]: My unqualified host name (loopback) unknown; sleeping for retry
Jan 16 03:14:37 localhost user:info syslog: /usr/sbin/ifconfig -l
Jan 16 03:14:43 localhost daemon:notice RMCdaemon[213212]: (Recorded using libct_ffdc.a cv 2):::Error ID: 6eKora0H2GI9/npg/S6.e.1...................:::Referen
ce ID: :::Template ID: a6df45aa:::Details File: :::Location: RSCT,rmcd.c,1.56,213 :::RMCD_INFO_0_ST The daemon is started.
Jan 16 03:14:52 localhost auth|security:notice su: from root to pconsole at /dev/tty??
Jan 16 03:15:35 localhost mail:alert sendmail[184410]: unable to qualify my own domain name (loopback) -- using short name
Jan 16 03:15:35 localhost mail:info sendmail[184410]: starting daemon (AIX6.1/8.13.4): SMTP+queueing@00:30:00
Jan 16 03:17:22 localhost auth|security:info syslog: tty0: failed login attempt for alex
[ -- CUT -- ]

Ebbene si :)

Allo stesso modo pgrep:
root@localhost / #which pgrep
/usr/bin/pgrep
root@localhost / #file /usr/bin/pgrep
/usr/bin/pgrep: shell script
root@localhost / #cat /usr/bin/pgrep
#!/usr/bin/bash
# My Pgrep Work in Progress 0.1

if [ $1 = "-h" ];then
echo "Usage:\n";
echo "Useful options are f and N";
echo "ps options A and e are implicited";
echo "Es:\n";
echo "pgrep Nf blabla"
else
ps -Ae${1}|grep $2|awk '{print $1,$2,$8}'
fi

mercoledì 17 febbraio 2010

lockNgo: libera memoria in un tot ;)

James Dickens ha postato questo codice sul suo blog, che locka una certa quantità di memoria e poi esce liberandola dopo essere stato in sleep per un ammontare di tempo predefinito (5 secondi) anche impostabile.

Es:

lockNgo -m 256 -s 5

frees 256 Mb e dorme 5 secondi.Funziona a meraviglia su osol 128 e 132 x86 e x64, stasera lo compilo su SPARC. Il link al suo post

/*
* Mlock memory to flush caches and create availible memory
* for Sun's VDI on undersized servers.
*
* Based on James Litchfield's blog entry on locking memory
* http://blogs.sun.com/thejel/entry/locking_memory
*/


!!!! UPDATE !!!!

Qui la nuova versione "intelligente"!

martedì 16 febbraio 2010

Stampatelo in mente!! Mirroring zpool/rpool

zpool attach [-f] pool device new_device

Attaches new_device to an existing zpool device. The
existing device cannot be part of a raidz configuration.
If device is not currently part of a mirrored configura-
tion, device automatically transforms into a two-way
mirror of device and new_device. If device is part of a
two-way mirror, attaching new_device creates a three-way
mirror, and so on. In either case, new_device begins to
resilver immediately.

AD Domain Controller fault CIFS log

Ieri c'è stato un major fault sul dominio qui dal cliente. A causa di uno switch critico (non ridondante) il domain controller è stato irreperibile per parecchio tempo.

Il fileserver Solaris (che è in join al dominio) e idmapd se ne sono accorti e hanno loggato regolarmente.

Ecco quando è andato giù ed è tornato su.

Feb 15 11:18:19 filebox idmapd[293]: [ID 696364 daemon.error] Degraded operation (Global Catalog servers not configured/discoverable). If you are running an SMB server in workgroup mode, or if you're not running an SMB server, then you can ignore this message

Feb 15 14:43:57 filebox idmapd[293]: [ID 643943 daemon.notice] Normal operation restored


lunedì 15 febbraio 2010

Browsers War

Ultimamente mi sono discostato dal monopolistico utilizzo di Firefox sui miei computers.
Dei tre che posso considerare PC di uso quotidiano, ora, solo uno, un Debian, ha su Firefox.
Al lavoro su Solaris, uso con soddisfazione Opera 10.10 (tra l'altro disponibile in repository; sull'altro, il PC Windows da videogioco, sto usando Chrome.

Devo dire che sia Opera che Chrome mi hanno colpito piacevolmente, li trovo validi, leggeri e veloci.
Leggerezza, quello che manca a Firefox: ricordo quando arrivò in tutta la sua snellezza, vederlo caricare in un batter d'occhio; per uno abituato a Mozilla era un piacevole vantaggio.

Chrome manca di supporto a piattaforme che non siano Wintel, e ancora aspettiamo il port per Linux, promesso ormai da tempo e mai visto; i signori di Opera, si son fatti furbi, ed evidentemente sanno che si può strappare qualche punto percentuale alla concorrenza supportando architetture un pò esotiche e OS diversi da Windows o Mac Os X.

Per ora rimarrò così, anche se l'idea di sostituire Firefox anche su Linux mi viene ... ma li ho Epiphany a fare il lavoro sporco quando Firefox non mi va :)

sabato 6 febbraio 2010

5 ore di Webcast: il futuro di Sun in Oracle

SpeakerWebcast
Charles Phillips: Welcome and Oracle + Sun: Transforming the Industry
John Fowler: Hardware Strategy
Thomas Kurian: Software Strategy
Edward Screven: Operating Systems and Virtualization
Juergen Rottler: Customer Service and Support Strategy
Jeff Epstein: Operational Strategy
Larry Ellison: Oracle + Sun

Linux e Solaris per Oracle + Articoli

"I love Linux. We're big supporters of Linux, [but] Solaris is an older and more capable operating system," Ellison said.
Quanta verità :)

Oracle's Phillips said the company is pouring more R&D money into fueling its vision of integrated technology stacks. He said Oracle this year will spend $4.3 billion in R&D, up from $2.8 billion in 2009 and $2.7 billion in 2008.

"We're not only going to keep the Sun name, we're going to invigorate it," Phillips said. "We are going to make Sun the gold standard in servers under our products."

Inoltre un pò di link interessanti:
http://www.eweek.com/c/a/IT-Infrastructure/Oracle-to-Revamp-Sun-Supply-Chain-504058/?kc=EWKNLDAT02042010STR4
http://www.eweek.com/c/a/Channel/Oracle-to-Invest-in-Sun-Hardware-827858/
http://blogs.sun.com/jimgris/entry/linux_solaris
http://www.cuddletech.com/blog/pivot/entry.php?id=1108
http://www.serverwatch.com/news/article.php/3861376/Whats-the-Future-of-Linux-and-Solaris-at-Oracle.htm

Visite