Posts

Showing posts with the label Package Management

PHP: Unable to load dynamic library suhosin.so in Debian sid

When you install php5 in Debian sid, you'll get following warning after updating. PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/ suhosin.so' - /usr/lib/php5/20100525/ suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0 And you will get a punch of   annoying  system mail. Orz After searching on google, I got the answer from Debian bug mailing list. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668739 The problem is the suhosin was obsoleted in Debian sid and it will be remove after system upgrading. But its configuration still exist in /etc/php5/conf.d. shawn:/usr/lib/php5$ dpkg --list | grep php5 | more ii  libapache2-mod-php5                5.4.4-14                  amd64        server-side, HTML-embedded scripting language (Apache 2 module) ii  php5         ...

Use offical jdk/jre in Debian Wheezy and later version

After Wheezy, sun-jdk and sun-jre won't be available in non-free repository. But there are still lots of applications won't be work without it. Orz Well, we still have a solution to overcome this condition from Debian. Follow below steps and get it! Install java-package. Download the latest jdk/jre binary tar ball for linux. fakeroot make-jpkg ./the_tar_ball_you_downloaded. dpkg -i the_deb_package_you_just_build_it. sudo update-alternatives --auto java. And then you have oracle-jdk/oracle-jre now! :-)

Convert Debian amd64 to multi-arch

Do following steps... sudo dpkg --add-architecture i386 sudo sed -i 's/deb\ /deb\ [arch=amd64,i386]\ /g' /etc/apt/sources.list sudo apt-get clean; sudo apt-get autoclean; sudo apt-get update After that you can install the packages that only support i386 such like skype. Enjoy it!

Homebrew uninstall

You can uninstall Homebrew, the package manager, with following steps: cd `brew --prefix`  rm -rf Cellar  brew prune  rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew  rm -rf ~/Library/Caches/Homebrew And you may refer to the FAQ from Homebrew's wiki page.

LibreOffice installation with PPA on Ubuntu

I love to use LibreOffice on my linux desktop, so I always replace OpenOffice.org with LibreOffice when the desktop was newly installed. $ sudo add-apt-repository ppa:libreoffice/ppa $ sudo apt-get update && sudo apt-get install libreoffice Now I can use it!

equinox-theme installation on Ubuntu/Debian

Please follow steps below: Find equinox project on launchpad.net, then you can see the ppa path in the page. Install Ubuntu sudo add-apt-repository ppa:tiheum/equinox Debian sudo vim /etc/apt/sources.list Add a line: deb http://ppa.launchpad.net/tiheum/equinox/ubuntu lucid main sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4631BBEA sudo apt-get update sudo apt-get install equinox-theme faenza-icon-theme Open preference/appearence and change theme to Equinox Evolution Then, you can enjoy it!

UNetbootin installation on Ubuntu 9.10 (Karmic) and later

$ sudo add-apt-respository ppa:gezakovacs/ppa $ sudo apt-get update $ apt-cache search unetbootin --> To check if we can find unetbootin $ sudo apt-get install unetbootin

LaTeX installation with beamer class on Ubuntu

$ sudo apt-get install latex-cjk-chinese latex-beamer Then, you can create slide with LaTeX beamer class.

Latex installation on Archlinux

Nowadays, if we want to use LaTeX, we have to install the texlive package for it. And it is very easy to install all of those needed packages on Archlinux. $ sudo pacman -S texlive-core texlive-langcjk texlive-latexextra texlive-pictures Then, you can enjoy it now!

Homebrew - Another package manager for Mac OS X

前陣子在 plurk 上看到 Rex 大提到 Homebrew,一開始也不曉得那是什麼? 慢慢才知道原來是另一種套件管理工具。 今天在看到 ihower 大大的 blog 文章後,索性就動起來手來,先把 MacPorts uninstall 掉,然後再依照 ihower 大大提供的步驟把 homebrew 裝了起來。(作法請參考 ihower 大大的 原文 ) Homebrew 是一套 ruby based 的套件管理程式,它的特性如下﹕ 不佔用系統空間 不重覆安裝 mac 系統中已內建的工具 ruby based 的 portfile,易於修改、自訂 使用者可很快的建立自己想要的套件 個人用了之後,覺得 MacPorts 更新較快、內容較多,但,Homebrew 則是標榜不重覆,簡易使用。 果真簡易!

MacPorts uninstall

Following the steps below: Uninstall ALL installed packages $ sudo port -f uninstall installed Remove related directories $ sudo rm -rf \ /opt/local \ /Applications/DarwinPorts \ /Applications/MacPorts \ /Library/LaunchDaemons/org.macports.* \ /Library/Receipts/DarwinPorts*.pkg \ /Library/Receipts/MacPorts*.pkg \ /Library/StartupItems/DarwinPortsStartup \ /Library/Tcl/darwinports1.0 \ /Library/Tcl/macports1.0 \ ~/.macports Now, its clear and all installed packages from MacPorts was disappeared.

Another chinese input methods in MacPorts

除了內建的和 Yahoo 輸入法之外,在 MacPorts 裡也找到其它可用的選項。 dhcp-22007:~ shawn$ port search "Chinese input method" gcin @1.2.1 (x11) a Chinese input method server. openvanilla @0.7.2 (aqua, textproc) package of popular Chinese input methods Found 2 ports. Wow, gcin 也放進來了! Great job!

MacPorts update & upgrade

To update MacPorts $ sudo ports selfupdate To upgrade outdated installed applications $ sudo ports upgrade outdated

Dictionary files installation for stardict

After stardict installed, you may... Get dictionary files from sourceforge.net http://stardict.sourceforge.net/Dictionaries_zh_TW.php Extract files to dedicated path /usr/share/stardict/dic Restart stardict That works on Debian/Ubuntu, Enjoy it!

Upgrade Your Debian to testing after System installed

Do following steps to upgrade your system when you first time login: Edit your /etc/apt/sources.lst Replace lenny with testing (besides violatile package) Save & exit # apt-get autoclean # apt-get clean # apt-get update # apt-get -t testing upgrade # apt-get -t testing dist-upgrade After that, you're in testing environment now.