Posts Tagged ‘Install’

Fedora Installation

Thursday, December 27th, 2007 by hejian

Setup Repository

F9: sudo rpm -ivh http://rpm.livna.org/livna-release-9.rpm
F8: sudo rpm -Uvh http://rpm.livna.org/livna-release-8.rpm
F7: sudo rpm -Uvh http://rpm.livna.org/livna-release-7.rpm

yum install yum-fastestmirror

Desktop

yum install vim-X11 mc

Imput method:
yum install scim-pinyin
For Fedora after 8:
System -> Preferences -> Personal -> Input Method -> Enable input method feature
For Fedore 7:
System -> Preferences -> Personal -> Input Method -> Use custom input method (scim)
scim-restart

yum install stardict stardict-dic-zh_CN

yum install gedit-plugins

vmware

yum install gcc-c++ kernel-devel
./vmware-install.pl

Java
Download jre-6ux-linux-i586-rpm.bin at http://java.sun.com/javase/downloads/index.jsp

sh ./jre-6ux-linux-i586-rpm.bin
ln -s /usr/java/jre1.6.0_xx/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.6.0_xx/bin/java 999

Note:
F8, F7 and FC6 could not running jre-6ux, need download jre-1_5_0_xx at http://java.sun.com/j2se/1.5.0/download.jsp

Install fonts

cd /usr/java/jre1.6.0_xx/lib/fonts
mkdir fallback
cp /path/to/simsun.ttf fackkback/

Server

install MySQL/PHP:

yum install php
yum install php-mysql
yum install mysql-server
yum install php-gd php-mbstring php-mcrypt php-xml

System -> Administration -> Services -> start the httpd and mysqld service

CentOS Installation

Thursday, October 11th, 2007 by hejian

Repository

Install RPMforge(dag) reporsitory:
For CentOS5:

rpm -Uvh http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

For CentOS4:

rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm -Uvh http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm

Desktop

yum install vim-X11 ctags mc

Chinese Input

For CentOS5:

yum install scim-bridge scim-qtimm scim-pinyin

and then: System -> Preferences -> Personal -> Input Method -> Enable input method feature

For CentOS4:

Download fcitx-3.2.tar.bz2 and install.
echo "export XMODIFIERS=@im=fcitx" >> ~/.bashrc
echo LC_CTYPE=zh_CN.UTF-8 >> /etc/sysconfig/i18n

stardict
For CentOS5:
yum install stardict
For CentOS4:
the x86_64 version will not work, need download the i386 version from: http://dag.wieers.com/rpm/packages/stardict/

Skype
For CentOS5

wget http://www.skype.com/go/getskype-linux-beta-centos
yum localinstall skype-<version>-centos.i586.rpm

For CentOS4

yum localinstall skype-1.1.0.20-fc3.i586.rpm

VMWare

yum install gcc
yum install kernel-devel
./vmware-install.pl

Adobe Flash Player

yum install curl compat-libstdc++-33 glibc nspluginwrapper nss (need x86_64 and i386 version)
yum --nogpgcheck localinstall flash-plugin-10.0.15.3-release.i386.rpm

XFCE

sudo yum groupinstall XFCE-4.2
startxfce4

Server

Apache/MySQL/PHP
Note for CentOS4:
There has a bug in PHP4 x86_64: http://bugs.php.net/bug.php?id=34879 Need to enable the centosplus repository to install PHP5.1

Install PHP:

yum install php
yum install php-mysql
yum install mysql-server
yum install php-gd php-mbstring php-mcrypt php-xml

Install ffmpeg-php
1. download ffmpeg-php from sourceforge
2. install phpize: yum install php-devel
3. compile/install ffmpeg:

phpize
./configure
make
make install

Debian Installation

Friday, September 7th, 2007 by hejian

Optimize sources.list

apt-get install netselect
netselect-apt lenny
cp sources.list /etc/apt/

Desktop
apt-get install x-window-system
apt-get install gnome
apt-get install gnome-volume-manager

Locale

dpkg-reconfigure locales
echo "LC_CTYPE=zh_CN.UTF-8" >> /etc/default/locale
aptitude install scim-pinyin

VMware

aptitude install build-essential
aptitude install linux-headers-`uname -r`
sudo ./VMware-Workstation-6.5.0-118166.x86_64.bundle

Firewall

mkdir /etc/sysconfig
iptables-save > /etc/sysconfig/iptables
vim /etc/sysconfig/iptables

Edit /etc/network/if-pre-up.d/iptables:

#!/bin/bash
/sbin/iptables-restore < /etc/sysconfig/iptables

This file needs to be executable so change the permissions:

chmod +x /etc/network/if-pre-up.d/iptables

Web Server
Please see Apache/MySQL/PHP on Debian

FreeBSD Installation

Tuesday, June 5th, 2007 by hejian

Ports:

portsnap fetch
portsnap extract

Desktop
Setup /etc/csh.cshrc:

alias ls ls -FG
setenv LANG en_US.UTF-8
setenv LC_CTYPE zh_CN.UTF-8
setenv MM_CHARSET UTF-8
setenv XMODIFIERS @im=scim

Install packages:

pkg_add -r vim6
pkg_add -r mc
pkg_add -r xorg
Xorg -configure
cp /root/xorg.conf.new /etc/X11/xorg.conf
startx
pkg_add -r scim zh-scim-pinyin
pkg_add -r stardict
pkg_add -r xchat
pkg_add -r firefox
pkg_add -r gimp
pkg_add -r xfce4
pkg_add -r rox (FreeBSD dos not provide Thunar yet :( )

Apache/MySQL/PHP

Install Apache:

pkg_add -r apache22
echo 'apache22_enable="YES"' >> /etc/rc.conf
apachectl start

Install MySQL:

pkg_add -r mysql50-server
mysql_install_db
chown -R mysql /var/db/mysql
echo 'mysql_enable="YES"' >> /etc/rc.conf
/usr/local/libexec/mysqld --user=mysql &
mysqladmin -u root password 'new-password'

Install PHP:

cd /usr/ports/lang/php5
make config (enable Build Apache module)
make
make install
make clean
cp /usr/local/etc/php.ini-dist /etc/local/etc/php.ini
pkg_add -r php5-mcrypt php5-mysql php5-pcre php5-session

Create file /usr/local/etc/apache/Includes/mod_php.conf, add these settings:

<IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>

Restart apache:

apachectl graceful

Wordpress template made by HeJian