add php gd (graphics directly) support in ubuntu
#sudo apt-get install php5-gd
then, restart web service
#sudo service lighttpd restart //or #sudo service apache2 restart
add php gd (graphics directly) support in ubuntu
#sudo apt-get install php5-gd
then, restart web service
#sudo service lighttpd restart //or #sudo service apache2 restart
clean kernel temp files
#make clean
next, install modules of new kernel:
#make modules_install
then, generate a image for new kernel.
#cd /lib/modules #mkinitramfs -o initrd.img-2.6.30.4 2.6.30.4 #mv initrd.img-2.6.30.4 /boot
edit menu.lst file for grub booter, add following:
title Ubuntu 8.04.3 LTS, kernel 2.6.30.4 root (hd0,2) kernel /boot/vmlinuz root=UUID=98f69044-be12-4dde-95df-358dca35c632 ro quiet splash initrd /boot/initrd.img-2.6.30.4 quiet
install new linux kernel 2.6.30.4 using “make install”, system should show following detail:
root@ibm-laptop:/usr/src/linux-2.6.30.4# make install
sh /usr/src/linux-2.6.30.4/arch/x86/boot/install.sh 2.6.30.4 arch/x86/boot/bzImage \
System.map “/boot”
In order to use the new kernel image you have just installed, you
will need to reboot the machine. First, however, you will need to
either make a bootable floppy diskette, re-run LILO, or have GRUB
installed.
Checking for ELILO…No
GRUB is installed. To automatically switch to new kernels, point your
default entry in menu.lst to /boot/vmlinuz-2.6.30.4
====================
GRUB menu configuration file menu.lst should be update.
configuration and update to linux kernel 2.6.30.4
using root account do following.
#make mrproper #check kernel .o and .config files
next configuration kernel. there are three kinds of configuration UI.
#make config #Text UI
#make menuconfig #Text graph UI
#make xconfig
before using menuconfig mode, ncurses should be installed.
#apt-get install libncurses*
and before using xconfig mode, following package should be installed.
#apt-get install libqt3-headers libqt3-mt-dev
after all configuration work done. using make command to compile kernel.
get recent linux kernel (2.6.30.4)
$sudo wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.4.tar.gz /usr/src $sudo tar xvf /usr/src/linux-2.6.30.4.tar.gz
if linux-2.6.30.4.tar.bz2 package, using command:
$sudo tar jxvf /usr/src/linux-2.6.30.4.tar.bz2
open root account in ubuntu:
$sudo passwd root
then, set new password for root.
php upload file, File input (or “upload”) in HTML forms, Uploading multiple files, PHP – File Upload
update new theme.
3 good topic about mozilla extension development.
Getting started with extension development
Mozilla Firefox Extension Development
What Google Chrome OS Will Look Like
Im still waiting for opera 10
enable javascript and other HTML element in wordpress MU. open wp-includes/kses.php find following line
$allowedposttags = array(
add following codes
'script' => array( 'type' => array(), 'src' => array(), 'language' => array() ), 'noscript' => array( ), 'object' => array( 'height' => array(), 'width' => array(), 'type' => array(), 'data' => array(), 'allowfullscreen' => array(), 'id' => array() ), 'param' => array( 'name' => array(), 'value' => array() ), 'embed' => array( 'width' => array(), 'height' => array(), 'type' => array(), 'src' => array(), 'allowfullscreen' => array() ), 'coolcode' => array( 'lang' => array() ), //over
update new wp theme.
a few online tools for testing is your web pages enable gzip model:
1. port80
2. GidZipTest
3. HTTP Compression Test
WPMU DEV is a third party wordpress plugin directory, you can find special plugin for wordpress mu.
format ‘12345′ to ‘12,345′
javascript:
string.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, function(s){return s+","})
ruby:
string.gsub(/(\d)(?=(\d\d\d)+(?!\d))/) { |match| match + ',' }
DecimalFormat class also can be used.
/usr/bin/mysqladmin -u root password ‘new-password’
/usr/bin/mysqladmin -u root -h myhost password ‘new-password’
mysql -p -u root
install samba in arch linux:
$pacman -S samba
$cp /etc/samba/smb.conf.default /etc/samba/smb.conf
$adduser -d /home/<user dir> -m <user name>
$passwd <user name>
$smbpasswd -a <user name>
add two lines in to /etc/samba/smb.conf
netbios name = archsmb
encrypt passwords = yes
[homes]
browseable = yes
writable = yes
then:
$/etc/rc.d/samba start
$smbclient -L localhost -U <user name>
Hi, very nice post. I have been wonder’n bout this issue,so thanks for posting
phpRPG is an open source project established since 2001. The aim of the project is to develop a web-based RPG (role-playing game) using a powerful server-side scripting engine called PHP and its best known open source database companion MySQL.
cube engine is a open source project for 3D game engine. Cube 2: Sauerbraten is a free multiplayer/singleplayer first person shooter, built as a major redesign of the Cube FPS.
for start each service in arch linux, set deamon in /etc/rc.conf. using sshd for example:
deamons(… sshd lighttpd … …)
for flash game developer, the pushbutton is a quite useful game engine. It is open source project host in google code. official web site support some game snapshot. for developing, it require java 1.6, flash player 9, AIR runtime and Flex SDK
some sources about silverlight 3D programming:
open ssh service. change /etc/hosts.allow add one line
sshd: ALL
install lighttpd php fcgi and mysql.
pacman -Ss search
pacman -S lighttpd php fcgi mysql samba perl-cgi
configuation arch linux network by dhcp:
add following lines to /etc/rc.conf
eth0=”dhcp”
INTERFACES=(eth0)
ROUTES=(!gateway)
then try /etc/rc.d/network restart
Hi, interest post. I’ll write you later about few questions!
install red5 in the ubuntu:
install sun-java5-bin by apt-get
$sudo apt-get install sun-java5-bin
then download deb package in the red5 website. I used version 0.7.0(final). Try command:
$sudo dkpg -i red5_0.7.0_all.deb
$/etc/init.d/red5 start
finially: open your web browser, access web address http://localhost:5080
for configuration red5 server. you can find the conf file in the /usr/lib/red5/conf. and the service apps is in the /usr/lib/red5/webapps
liduan 2:17 pm on July 10, 2009 Permalink