Pages: Prev 1 2 3 4 Next

2008-06-25

SqueezeCenter and Compress::Zlib

After upgrading to Nevada b92 SqueezeCenter refused to start with the following error:

The following modules failed to load: Compress::Zlib

# perl -MCPAN -e shell
cpan> install Compress::Zlib
. . .
Module [Compress::Zlib] failed to load: is only available with the XS version
. . .

But the actual problem is Scalar::Util. To solve the problem reinstall Scalar::Util and then Compress::Zlib. Use force install if CPAN says that the latest version is already installed:

# perl -MCPAN -e shell
. . .
cpan[1]> install Scalar::Util
CPAN: Storable loaded ok (v2.12)
Going to read /var/tmp/cpan/Metadata
Database was generated on Tue, 24 Jun 2008 10:02:57 GMT
Scalar::Util is up to date (1.19).
cpan[2]> force install Scalar::Util
. . .
cpan[3]> force install Compress::Zlib
. . .

Sources: whirlpool.net.au and Usenet forums.


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2008-06-20

X libs and X fonts

Alan Coopersmith wrote :

FreeType2 is what converts a TTF or other font file into a pattern of bits displayed on the screen, but it has lots of flags that control how that’s done (anti-aliasing, hinting, LCD optimization, etc.).

Xft2 is the library that calls FreeType to get a bit pattern and then displays that bit pattern on the X server, via either the Render extension or plain Xlib (but plain Xlib is slow).

fontconfig is the library that finds /usr/X11/lib/X11/fonts/TTF/Times.ttf when you ask for “Times Roman 12″. (It’s called by either Xft2 or pango, I forget which.)

pango is the library that calls Xft with a list of glyphs and locations to display them at, after determining what ordering and spacing they should be laid out in, and what glyphs to display for a given character string (which is much easier for English than for languages like Arabic
or Hindi).

GTK+ is the library that applications call to draw their interface on screen (the toolkit), and it calls pango to draw the text portion of those interfaces.

I’m not sure if cairo calls pango or goes direct to Xft2.


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2008-05-02

Solaris snv_88 and wine 0.9.61

For the first time I did not have to do anything special to compile wine. Just configure and gmake. The rest is pretty the same: Picasa runs at 100% CPU load, Firefox 3b5 crashes every 5 minutes ;-)


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2008-04-14

What process is using this port?

If lsof is installed in your system:

xeon# lsof 2>/dev/null | fgrep :telnet
telnet 18409 alekz 4u IPv4 0xffffff0e3b19c740 0t0 TCP xeon:52431->10.0.0.1:telnet (UknownState_-2094513781)

xeon# lsof 2>/dev/null | fgrep :8080
firefox-b 699 alekz 52u IPv4 0xffffff02db1e0780 0t110637 TCP xeon:51567->dmz:8080 (UknownState_-2094513781)
firefox-b 699 alekz 67u IPv4 0xffffff0e3b0e06c0 0t127870 TCP xeon:47231->dmz:8080 (UknownState_-2094513781)
squid 2778 nobody 8u IPv4 0xffffff01dc8ce080 0t0 TCP *:8080 (UknownState_-359969560)
squid 2778 nobody 22u IPv4 0xffffff01dc6d36c0 0t110637 TCP dmz:8080->xeon:51567 (UknownState_-2094513781)
squid 2778 nobody 41u IPv4 0xffffff01dc8c26c0 0t127870 TCP dmz:8080->xeon:47231 (UknownState_-2094513781)

If lsof is not installed:

  • Run pfiles /proc/* | less
  • Search for port:
    • Press </>
    • Type port: 23
    • Press <Enter>

The result may look like:

18409: telnet 10.0.0.1
. . .
4: S_IFSOCK mode:0666 dev:318,0 ino:42212 uid:0 gid:0 size:0
O_RDWR|O_NDELAY
SOCK_STREAM
SO_OOBINLINE,SO_SNDBUF(49152),SO_RCVBUF(49640)
sockname: AF_INET 10.0.0.2 port: 52431
peername: AF_INET 10.0.0.1 port: 23
~
~
~

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2008-04-07

wine-0.9.59, OpenSolaris and Picasa

New release, new features, new bug fixes and new bugs.
Let’s start with compiling.
[read more...]


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2008-04-01

Replacing a DiskSuite (Solaris Volume Manager) disk

A short guide on how to recover a broken DiskSuite mirror.
[read more...]


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2008-03-28

SunRay On Screen Display Messages

SunRay OSD Messages. Taken from the documentation here.

[read more...]


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2008-03-26

Midnight commander cannot change directory

Probably your mc is compiled by Blastwave (CSW) and you are running Solaris 11. Try to download it from Ibiblio  and compile it by yourself.

Recommended configure settings:

 ./configure --enable-extcharset --enable-charset --with-samba

UTF8 is still not supported, though.


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2008-03-20

Switching keyboard layouts and IIIM

Internet/Intranet Input Method (IIIM) is a distributed Input Method solution that provides Input support for Java & X11 clients via Internet/Intranet. The related documentation can be found here.

When I upgraded from snv_83a to snv_85 I lost the ability to switch layouts. This is what I discovered:

[read more...]


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

How to heal garbled terminal

If you see something like:

°±⎼␊⎻: ␌▒┼’├ ⎺⎻␊┼ .┐␍␊/␌▒␌␤␊-│␊⎺┼
│␊⎺┼# ─
┐⎽␤: ─: ┼⎺├ °⎺┤┼␍
│␊⎺┼#
│␊⎺┼#
│␊⎺┼# ├⎻┤├ ⎽±⎼

instead of normal ASCII text, run the following command (blindly)

tput sgr

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Pages: Prev 1 2 3 4 Next

  Sun
Alekz.Net