Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Friday, February 19, 2016

Today I installed a demo of Horizon View 6.2 using linux Desktops: it works, but it is not yet very straight-forward, it lacks some major features, for example:
- single sign-on
- automated pools, linked clones etc...
I will make more experiments in the next days and see how far I can get, waiting for Horizon 7 ga.

Ubuntu linux accessed throught View Horizon

Sunday, March 13, 2011

better Freetype fonts in Fedora

libfreetype includes some features that enhance much the apparence of rendered fonts: this features are disabled by default in distros like fedora and ubuntu, due to potential copyright issues. But can be enabled quite simply by recompiling the Freetype package. This is how:

rpm -qi freetype
will output informations about the package and the version of the lib you are using:

Name        : freetype                     Relocations: (not relocatable)
Version     : 2.4.2                             Vendor: Fedora Project
Release     : 4.fc14                        Build Date: Mon 15 Nov 2010 11:20:32 AM CET
Install Date: Sat 12 Mar 2011 12:03:25 PM CET      Build Host: x86-03.phx2.fedoraproject.org
Group       : System Environment/Libraries   Source RPM: freetype-2.4.2-4.fc14.src.rpm
  notice on a 64 bit system you'll probably have both .i686 and .x86_64 versions, as well as the .devel versions. Download the rpm source with yumdownloader:

yumdownloader --source freetype
this will download the .src.rpm, in my case  freetype-2.4.2-4.fc14.src.rpm.
Install the package:

 rpm -ih ./freetype-2.4.2-4.fc14.src.rpm
this will create a directory "rpmbuild" and unpackage the files needed to recompile the whole package. cd to the rpmbuild

cd rpmbuild
now we rebuild the package while enabling the copyrighted features:

rpmbuild --clean -bb --with bytecode_interpreter --with subpixel_rendering --with xfree86 SPECS/freetype.spec

after that you'll find new packages in rpbuild/RPMS/x86_64/ . you can install them with

sudo rpm -Uh RPMS/x86_64/freetype-X.Y.Z-K.fcXX.x86_64.rpm --force
you can also install the devel lib.

Now for the 32 bit libraries, first make sure you have the 32 bit versions of the devel libs needed to recompile:
 [massi@poldon rpmbuild]$ rpm -qa | grep libX11-devel
libX11-devel-1.3.4-3.fc14.x86_64
[massi@poldon rpmbuild]$
Download and install the missing 32 bit package:

 yumdownloader libX11-devel-1.3.4-3.fc14.i686
 sudo rpm -ih libX11-devel-1.3.4-3.fc14.i686

Now recompile the package with target "i686" to produce the 32 bit lib:

 rpmbuild --target i686 --clean -bb --with bytecode_interpreter --with subpixel_rendering --with xfree86 SPECS/freetype.spec
The .rpms will be in RPMS/i686 . Install the 32 bit libraries as you did with the 64 bit ones.
 sudo rpm -ih RPMS/i686/freetype-2.4.2-4.fc14.i686.rpm --force
sudo rpm -ih RPMS/i686/freetype-devel-2.4.2-4.fc14.i686.rpm --force

Now restart X and enjoy truetype fonts with proper rendering and hinting support ;-)






















 

Thursday, March 11, 2010

error printing from vmware to cups

On my linux machine I use vmware workstation 7.0.1 to run several windows machines. In each I use virtual printing to let the printers I configured on my host machine appear as local printers, without the need to share them throught samba or to configure them on each single vm.

From time to time (after upgrades) my virtual printer ceases to work: when I print from the vm the job fails and in my host machine I get an error from cups "stopping job because the scheduler could not execute a filter"

This seems to be caused by the filter

/usr/lib/cups/filter/thnucups

wich is incorrectly set to permissions "-rwsr-xr-x" instead of 555 "-r-xr-xr-x" as all the others.

to fix the problem, just set the permissions to 555

sudo chmod 555 /usr/lib/cups/filter/thnucups