Thursday 21 August 2008

openSUSE: Installing flash player plugin on any internet browser

Download Flash Player installer in .tar.gz format from this site. Run these commands in the directory where you saved the archive:

~> tar -xvvzf install_flash_player_9_linux.tar.gz
~> cd install_flash_player_9_linux
~> sudo cp libflashplayer.so /usr/lib/browser-plugins


Enter root's password, restart any running internet browser and that's it. Worked for me for Firefox.

Monday 18 August 2008

Ubuntu: Installing Truetype Fonts (TTF)

To install basic Microsoft TrueType Fonts such as Arial, Courier, Impact, Times New Roman etc. you need to enable the "Universe repositories" and install the msttcorefonts package:

$ sudo apt-get install msttcorefonts


New fonts will appear under the /usr/share/fonts/truetype/msttcorefonts directory.
Truetype fonts can also be installed by simply copying the .ttf files in some subdirectory under the /usr/share/fonts/truetype/.
For example, If you downloaded some neat TTF fonts over the internet, you can install them like this:

neat_fonts$ sudo mkdir /usr/share/fonts/truetype/neat
neat_fonts$ sudo cp *.ttf /usr/share/fonts/truetype/neat


Note: Name the subdirectory under /usr/share/fonts/truetype/ as you wish; "neat" is just for demonstrating purpose

Log out and than login again to be able to use new fonts or just run this command to regenerate the fonts cache:

$ sudo fc-cache -fv


Those fonts will now be accessible to any user on the Ubuntu system.

Wednesday 13 August 2008

How to setup OpenDNS on Linux

Check the OpenDNS webpage for more information of its services. Here, I'll just explain how to configure your network and switch over to the OpenDNS servers.

Use your favorite text editor and open the /etc/resolv.conf file as root and change the nameserver lines to:
nameserver 208.67.222.222
nameserver 208.67.220.220


Now it is needed to flush any cached addresses on the computer. Type this command:
sudo /etc/init.d/networking restart


That will also restart all the networking services.
Check this website to check that you switched. If you get "Oops!" try again. :)

Sunday 10 August 2008

Installing Internet Explorer on Linux / Ubuntu

Someone would ask: "Why would I need IE on Linux cause I got the newest and best browser ever called Firefox already installed?" :)
Sometimes the IE is necessary for web designers working on Linux to test their pages, or to browse sites that don't open in any browser except the IE.
Here I will explain how to install IE7 on Ubuntu box. Actually only the IE7 rendering engine will be installed on IE6 interface. I did this on my Ubuntu Hardy Linux installation, but the procedure should work on any Debian based distro.
Start by adding two new repositories:
$ sudo gedit /etc/apt/sources.list


Add (or uncomment) those two new lines:
deb http://us.archive.ubuntu.com/ubuntu hardy universe
deb http://wine.budgetdedicated.com/apt hardy main


Note: If using Ubuntu Gutsy type gutsy instead hardy in those two lines above.

Next, add the winebudget GPG key and install/upgrade wine and cabextract packages:
$ wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install cabextract wine


Now, download IEs4Linux and install it:
$ wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
$ tar zxvf ies4linux-latest.tar.gz
$ cd ies4linux-*
$ ./ies4linux --hack-ie7-proxy-settings


Check the versions of IE you want to install and also check to install flash plugin. If you get some kinda error try it without flash plugin.
Click Advanced button and check the box at the bottom to install version 7.0. Click OK and than OK again. When the IE6 is installed it will run. You need to configure your proxy settings now in the Internet Options dialog. Once done, close the browser and the installation of IE7 rendering engine should continue.
If the installation of IE7 won't continue try without the proxy hack argument --hack-ie7-proxy-settings.

That's it.

Saturday 9 August 2008

Search & Play YouTube videos in Totem Movie Player / Ubuntu

First think to do is to install appropriate gstreamer plugins. Use the apt-get command:

$ sudo apt-get install gstreamer0.10-plugins-bad


Next, open up the Totem Movie Player. You can start it with the totem & command in the CLI (command line interface) or from the desktop menu. On Ubuntu it can be found under Application -> Sound & Video -> Movie Player. If you don't have Totem install it the usual way of installing software packages.
Under the player's Edit.. menu select Plugins... New window will pop and under it check the box next to YouTube browser. The new sidebar should become visible. Something like this:



It is also possible to install YouTube H.264 plugin for better quality. Download archive file from here, and extract the files in the:

/usr/lib/totem/plugins

enjoy.

apt-get command

Most Debian Linux are already familiar with the apt-get command. For those unfamiliar with it here's a short description.

apt-get is a command-line tool for handling Debian Linux packages and it is used to install/remove individual packages, upgrade packages, apply patches, upgrade debian distribution, download .deb files etc. This command is a frontend to manyy GUI applications such as "Synaptic Package Manager"

Install or upgrade package

$ apt-get install [package name]


Remove a package

$ apt-get remove [package name]


Remove a package and its configuration files

Use this if 100% sure that the package will not be used never again :)

$ apt-get --purge remove [package name]


Upgrade a package

This will list all possible software upgrades. If you wish to upgrade them all hit the 'y' key:

$ apt-get upgrade


To upgrade single package use the 'install' argument option.

Distribution upgrade

Intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary.

$ apt-get dist-upgrade


note: use auto-complete command line feature if you don't know full package name. It is done using the <TAB> key.