Skip to main content

Posts

Showing posts with the label ubuntu

View pdf document inline in firefox linux

In my bus ticketing web application, tickets are generated in form of pdf file. The problem is firefox (currently version 3.6.6) is not designed to display pdf file in its browser window out of the box, we need to install a plugin. The first obvious option is to install adobe acrobat reader for linux which includes firefox plugin (can be freely downloaded from Adobe web site). However, there are some problems: It is huge! Seems there are some memory leaks (firefox 3,6.3 and acrobat reader 9.3.2), after some time it only displays white blank page. You need to restart firefox to cure it. I don't know whether the problem is in acrobat or firefox. Fortunately, for Ubuntu, we still have another option: Install mozzplugger and xpdf-reader: $ sudo apt-get install mozplugger xpdf Edit mozzplugger configuration file: $ sudo vim /etc/mozpluggerrc Find this line: text/x-pdf:pdf:PDF file Replace the blocks below that line to: repeat noisy swallow(Xpdf) fill: xpdf "$file"

Gnome Network Manager dispatcher.d scripts doesn't run

I just set up a new linux box of Ubuntu 9.04. This computer will connect to netware servers, so I installed ipx. However, with this particular version of Ubuntu, the ipx won't start at boot time eventhough it has starting script in the /etc/init.d which is correctly linked to startup directories (/etc/rc2.d, /etc/rc3.d, etc). I guessed the reason is Gnome Network Manager, somehow it prevented ipx to be started. I then wrote a script in /etc/NetworkManager/dispatcher.d, I gave it a name: 02ipx.sh, so it will executed after the built in /etc/NetworkManager/01ifupdown, the content is very simple #!/bin/bash if [ "$1" == "eth0" ] && [ $2 == "up" ] then /etc/init.d/ipx restart fi I assign root as the owner of script and set the permission to 775. Unfortunately, this script was never called!! After spent 5 hours pulling my hairs, uncle Google came to help with this page It turns that Network Manager is very picky with the script permission and owner

Ubuntu shutdown problem, acpid: exiting...

Some times ago, I uninstalled gnome network-manager on my Ubuntu 9.04 dan replaced it with WICD because it won't bring up ipx protocol on boot time. Unfortunately, WICD also has its own problem, it can't bring up your wired and wireless interface simultaneously. Tonight, I decided to replace WICD with gnome network-manager and I planned to fix the ipx problem through its dispatcher scripts feature. Surprisingly, right after the network manager installed there is no problem with the ipx protocol, apparently the package network-manager in ubuntu repository has been updated recently. However, when I shutdown or restarted my computer, it always hang with a blank screen displaying the message: acpid:exiting , the only way to completely shut down my laptop is only by pressing the power button for about 3 seconds. After some googling, it turns that the problem was the network interfaces should be brought down before taking down the computer. Here is the solution: Edit as root the file

Yahoo messenger problem on Linux

Recently, I can't connect to yahoo messenger through Pidgin on my Ubuntu 9.04 box. After some googling I found this page: http://news.softpedia.com/news/How-to-Fix-Yahoo-problem-in-Pidgin-114754.shtml Unfortunately, after following the steps I still can't connect to yahoo with error message: unknown "error 1013. Logging into the Yahoo! website may fix this". Logging to yahoo website as suggested doesn't cure the problem :( After some more googling, I found this page: http://developer.pidgin.im/ticket/9467. Removing the @yahoo.com part of your pidgen account solves the problem.