Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday, April 23, 2007

Adding Windows fonts in Linux

Unlike past times, Linux do come with good fonts. And the font rendering can be made better by choosing to antialiase the fonts. But at times you come across a website which has been designed with the windows user in mind. Such websites are best viewed with one of the windows fonts. If you have windows OS installed on your machine, you can copy the essential fonts from the windows partition to linux and use them to get a better web experience. Here is how you do it.

Method I :
Copy the ttf (True Type Fonts) fonts Ariel, Tahoma, Verdana, Courier New and Times New Roman from the windows partition to the fonts:// location in nautilus.

Method 2 :

Some people who are using Ubuntu have said that they can't do it as normal user. And since Ubuntu does not have a root account, they find difficulty in using su to copy eaither. Such people can do the following:

Create a '.fonts' folder in your home directory and copy the necessary fonts into it. Now you have access to the fonts on a per user basis.


Method 3:

This method can be used to install the fonts system wide if the above two methods do not give satisfactory results.

First find out in which location linux has installed the truetype fonts. It is usually at the location '/usr/share/fonts/truetype/' . But you may also do a search for the same as follows:

# find /usr -iname \*.ttf head -n 5

Once you know the path of the fonts directory, move to this directory and create a folder there (it can be any name).

# cd /usr/share/fonts/truetype# mkdir windowsfonts
# mkdir windowsfonts

Note: You need to be logged in as root while doing this.

Next copy all the windows ttf fonts to the windowsfonts directory that was just created.

# cp /media/hda1/windows/Fonts/*.ttf .Now change the ownership of the fonts as well as make sure they have a right of 644 .

# chown root.root *.ttf# chmod 644 *.ttfNow run the command mkfontdir while in the windowsfonts directory.

# mkfontdirThis will create an index of the fonts in the directory. It will also create two files fonts.dir and fonts.cache-1 .

Now moving to the parent directory, edit the file fonts.cache-1 using your favourate editor and append the following line to it.

#File: /usr/share/fonts/truetype/fonts.cache-1
...
"windowsfonts" 0 ".dir"

Lastly run the command fc-cache.
# fc-cacheThis command will scan the font directories on the system and build font information cache files for applications using fontconfig for their font handling.



That's it. Now you can have access to windows fonts in all your X applications including firefox and OpenOffice.org.

Read More..

Friday, April 13, 2007

OpenSuSE 10.2 Review

When you ask someone to name a couple of GNU/Linux distributions, in most cases, you will hear the names Debian, Red Hat, Ubuntu and then, SuSE Linux which is now a days known as OpenSuSE.The reason is that apart from it being one of the oldest Linux distributions around, it has made a name as a distribution which is robust, secure and user friendly. Originally SuSE Linux was owned by a German company by the same name. But in January 2004, it was acquired by Novell which continued to further develop and fine tune it and include more SuSE specific features to it. The end result is a distribution which has grown to have its own unique identity. OpenSuSE is a community program sponsored by Novell and is developed in an open model.

One of the foremost reason to consider OpenSuSE Linux as a very popular Linux distribution is the mere fact that in the past couple of months, it has risen from the bottom of the heap to enjoy second place, just below Ubuntu Linux, in the Distrowatch most popular Linux distributions list.

Read More..

Thursday, April 12, 2007

Sharing a Printer to Windows Without Samba

Sharing a printer with a Windows box usually requres Samba.
In this tutorial, I will show you howto do it, without.

On your PCLinuxOS print server

1) Install your printer normally using the PCLinuxOS Control Center
2) Make sure “cups” in PCC > System > Configure system services is set to start on boot.
3) Open up the KDE Control Center browse to Peripherals > Printers
4) Activate Administrator Mode, and goto Print Server > Configure Print Server > Browsing > Browsing Addresses
5) Click Add, and set the type to Allow. Enter the range of your network computers. You can enter a wildcard mask into the first box like 192.168.1.*
6) Goto Print Server > Restart print server to restart everything and apply your new changes

On your Windows clients

1) Control Panel > Printers and Faxes > Add Printer > Network Printer
2) Enter the url as http://yourprintserversname:631/printers/printername

You should have a wonderful Samba-less printer now :)


Read More..

IE 4 Linux

What is IEs4Linux?

IEs4Linux is the simpler way to have Microsoft Internet Explorer running on Linux (or any OS running Wine).
No clicks needed. No boring setup processes. No Wine complications. Just one easy script and you'll get three IE versions to test your Sites. And it's free and open source.

Who is the target public?

  • WebDesigners that want to move to Linux but still need to test their sites on IE.
  • People who have to open IE-only sites

The IEs installations are smaller than usual because they include only the necessary files to have a good test browser (there is no Outlook, Media Player etc).

Please, don’t use any of these IEs to navigate!! Get Firefox.

Specific instructions

[edit] General instructions

IEs 4 Linux needs two packages: cabextract and Wine. You can install them using your Linux package manager (synaptic, apt-get, yum, emerge etc) or go to their sites.

After that, download IEs 4 Linux. Extract it. Run 'ies4linux'. Follow the instructions.

In a terminal, you can do:

wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*

Note: Please see these legal notices before using IEs4Linux.
./ies4linux

Thanks for Linuxer

By : Loekis aka PetriX
:::Tungmung forever:::

Read More..