Oct
25
2008
0

Switching Debian repository

While running apt-get update, I found one of the source repository debian.cn99.com is not responding, so I checked the Debian mirror page, there’s another repository “www.anheng.com.cn” good enough in China, so I decide to switch my repository to it. Here’s the steps:

1. edit /etc/apt/sources.list, comment out the old repository in case we’ll need to resume it later.

2. add the following 2 lines:

deb http://www.anheng.com.cn/debian/ etch main non-free contrib
deb-src  http://www.anheng.com.cn/debian/ etch main non-free contrib

3. save the file and run: apt-get update

Written by hkai in: Linux Debian | Tags: , , ,
Aug
21
2008
0

Install flash plugin on Debian 4.0

1. download install_flash_player_9_linux.tar.gz from www.adobe.com

2. extract to a folder, close your browser, then run ./flashplayer-installer

3. when asking installation path of the Mozilla, Netscape, or Opera browser, typein /usr/lib/iceweasel

4. start browser, in the address type in about:plugins

Written by hkai in: Flash/Flex, Linux Debian |
Aug
19
2008
0

Installing Debian without burning CD

If you have a windows machine and would like to install debian onto your system, and don’t have access to a CD-RW, here is a software you can use to install Debian onto your system

Install Debian Without burning CD

Written by hkai in: Linux Debian |
Oct
26
2007
0

Install backup-manager on Debian, Fedora and Gentoo

Debian:
apt-get install backup-manager

Fedora Core4 and Gentoo:
1. download latest stable release from http://www.backup-manager.org/
wget http://www.backup-manager.org/download/backup-manager-0.6.3.tar.gz
2. unzip to a directory
tar -zxvf backup-manager-0.6.3.tar.gz
3. build and install
cd backup-manager-0.6.3
make install
cp /usr/share/backup-manager/backup-manager.conf.tpl /etc/backup-manager.conf
4. move the required library: backup-manger require this to be able to upload
mv /usr/share/perl5/BackupManager /usr/lib/perl5/site_perl/5.8.6

Written by hkai in: Linux Debian, Linux Fedora, Linux Gentoo |
Oct
22
2007
2

Migrate virtual machine from vmware server 1.0 to vmware workstation 6.0

When open a virtual machine created with vmware server 1.0 with vmware workstation 6.0, which is running debian 4.0r0,
the eth0 won’t start by reporting the following error:

linuxvm1:/etc/network# ifup eth0
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.

The solution:
1. run ifconfig -a
2. in the list, it’ll appear all the NIC that system detected, for example: eth1, eth2, lo
3. change the file: /etc/network/interfaces, change eth0 to eth1

4. ifup eth1

 

Written by hkai in: Linux Debian, VMware |
Sep
28
2007
0

Setup atftpd on debian

1. apt-get install atftpd atftp
2. mkdir /tftpboot
3. chmod 777 /tftpboot
4. /etc/init.d/atftpd start

notice:
1. I prefer it start as a standalone server instead requires inetd
2. if atftpd isn’t start, you’ll need to check if it set USE_INETD=true in 2 files: /etc/default/atftpd and /etc/init.d/atftpd
just commend out that 2 line and it shall able to start.
3. the log file is /var/log/syslog

Written by hkai in: Linux Debian |
Sep
14
2007
1

Install PDO, PDO_SQLITE, PDO_DBLIB, PDO_MYSQL

Recently I’m using PRADO framework for some web application development. It comes to deploy to the server side.
The server is running Debian 3.1r3

  • apt-get install php5-dev php5-mysql php5-sybase php5-sqlite libmysqlclient-dev freetds-dev
  • apt-get install make
  • pecl install PDO
  • pecl install PDO_SQLITE
  • pecl install PDO_MYSQL
  • pecl install PDO_DBLIB

At the last step, it report:
pear/PDO_DBLIB requires PHP extension “pdo” (version >= 1.0)
No valid packages found
install failed

Here’s the solution:

  • pecl download PDO_DBLIB
  • tar zxvf PDO_DBLIB-1.0.tgz
  • pecl build
  • After the build finished, it’ll try to install to /var/tmp, on my system, the files was gone after the make. so I have to build it again
  • cd PDO_DBLIB-1.0
  • ./configure
  • make
  • After the make finished, the module is locate at ./PDO_DBLIB-1.0/modules/pdo_dblib.so, copy it to /usr/lib/php5/20060613+lfs or any location that extension files should be
  • add extension=pdo_dblib.so
  • happy coding now!
Written by hkai in: Linux Debian, Linux General, PHP |
Aug
01
2007
0

build a package using apt-get

Today I’m using an old machine installed debian 3.1r3, I’d like to install a package unzip, but after I run apt-get update;apt-get upgrade; apt-get install unzip, it requires to remove a package kernel-image-2.4.27-2-386.
So I wonder why it requires to remove the kernel? Will my box be able to boot after it been removed?
I answered NO to apt-get.

But I still need to solve the problem. Here’s what I did:
1. add deb-src into /etc/apt/source.list
deb http://http.us.debian.org/debian/ stable main contrib non-free
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
deb-src http://security.debian.org/ stable/updates main contrib non-free
2. run apt-get update, which update the packages
3. download and build unzip: apt-get -b source unzip
apt-get will download the source package and automatically build it into a deb package in the current directory.
4. install the built package: dpkg -i unzip_5.52-9_i386.deb

Hope this will help you.

Written by hkai in: Linux Debian |
Jul
05
2007
4

Fluxbox: my choice of window manager on Debian

After installed debian 4.0 onto my VMware workstation. I tried several window manager

  • XFCE4: the file manager is not stable
  • openbox: require other software like Gnome to be useful
  • icewm-lite
  • blackbox

My choice is fluxbox, which has great features and lightweight

  • Fast and lightweight: this is virtual machine, so KDE and Gnome is not suitable
  • Multiple workspace
  • Tab window: combine multiple windows into one
  • The menu is easy to configure
  • Support style/theme

Here’s a screen shot of my desk

fluxbox1.jpg

Thanks Michael let me know the typo in my post.

Written by hkai in: Linux Debian |
Jul
05
2007
0

aptitude: searching with a pattern

search packages using aptitude:

  • search all lib*perl: aptitude search lib~nperl
Written by hkai in: Linux Debian |

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes