Currently Viewing Posts Tagged Linux

Let Dreamhost PHP support Zip extension

The default PHP of DreamHost is not support Zip extension.
To let it support Zip. You need following steps.
1) Have your own customized PHP compile, which I posted before.
2) Then need to installing PECL Zip
Followed the guide on wiki.
The only difference I did, is to move zip.so file from
/home/username/php5/lib/php/extensions
to
/home/username/Domainname/cgi-bin/
Because I use cgi-bin as the extension folder.
Installation Difficult Rank: Easy
Time spend: 15 mins.
After install PECL zip extension, I can use PHP to create, modify, and read zip-format files.

Windows vista vs Ubuntu 7.04

Today I post a new comparison of Windows Vista and Ubuntu 7.04, and the applications running on them. It is an updated post if you saw my post on October 20, 2005.

I removed some applications on windows, and replaced them by a cheaper one or free software.

The software listed below is very subjective. You may like this one, doesn’t like other one. You may have other good free software.

Say, Microsoft office, most of the Windows users will use Microsoft Office suite, but not Open Office. Yes, you can use it on it.

 

WINDOWS PLATFORM

LINUX PLATFORM

 

Application name

Market price
(tigerdirect.com, bestbuy.com or vender site)

Application name

OS

Windows Vista Home Basic

199.99

Ubuntu 7.04 i386

Chinese input

Google Pinyin

free

SCIM

Office Suite

Microsoft Office Profession 2007.

499.99

Openoffice.org 2.2.1

Text Editor

UltraEdit 10.0
Jedit

39.95
free

Gedit 2.12.1

Dictionary

Powerword 2007

39.95

StartDict

Ebook Reader

Adobe Reader 8

CHM reader

free

Evince 0.4.0

XCHM

MultiMedia Player

MediaPlayer

Realplyer

(avi, rmvb, xvid, divx, quicktime)

free

Totom, Xine, win32codes

Realplayer

Images Viewer

ACDSee 7.0
Faststone Image View

49.99
free

gThumb 2.10

Photo Editor

PhotoShop CS2 v9.0
Coral Paint Shop Pro

569.99
109.00

Gimp 2.3.18

Compress

WinRAR 3.70

29.00

Nautilus 2.12.1

Internet  

 

 

Emule

Emule 4.8a

free

Amule

Download Tools

FlashGet

free

Download for X v2.5.0

Ftp Client

Filezilla

free

Gftp 2.0.18

BT

BitComet

free

Azureus

IM Tools

 

 

 
 

MSN Messenger

free

GAIM 1.5.0

 

Google Talk

free

GAIM 1.5.0

  

Skype

free

Skype

Email Client

Outlook Express / Thunderbird

free

Evolution

Web Browser

IE / Firefox

free

Firefox

Tools  

 

 

Security suite

Mcafee Internet Security Suite

64.99

unnecessary

DVD/CD Burner

Nero 7 Ultra

79.99

Total Cost of Software

 

1,414.85
1022.91

free

So look, the cost is dropped by 28% compared with my comparison. If you move to Ubuntu 7.04. I trust you can decrease all the software purchase cost.

Moving from ASP to PHP

I have a dream, mentioned in my Chinese Blog. I want to replce the current Windows 2003 server by a Linux server.
There are something to do before I move to Linux.
I am familiar with the Windows just like lots of other people who runs a Windows desktop.
Now for Server side, Linux, Bind, Apache, MySQL, postfix, and many server software are all running well.
The problem is I have to redesign my sites to PHP, MySQL. It is a big job.
It took me about 8 hours to convert G2Soft, main site of my Pentacle In-Out Board.
There are still some other sites I runing on this Windows server. I have to convert them one by one to a new site.

Upgrade Ubuntu 6.10 server to 7.04 server

I just upgrade my Ubuntu Server 6.10 to Ubuntu server 7.04.
Let me show you which server software I have now with version.
OS: Ubuntu 6.10 > 7.04
Control Panel: Webmin 1.320 > 1.340
DNS server: Bind 9.32 > 9.34
Web server: Apache 2.0.55 > 2.2.3
FTP server: ProFTPD Server 1.30
Database server: MySQL version 5.0.24 > 5.0.38
SSH server: OpenSSH_4.3
SMTP server: Postfix version 2.3.3 > 2.3.8
POP/IMAP server: Dovecot IMAP/POP3 Server 1.0
Webalizer: Webalizer version 2.01-10

Home VOIP server is possible

I always thinking about to have a home-brewed VOIP server. Such as this one, Build a Skype Server for Your Home Phone System, it is a skype server, not exactly what I want, but still good.
Through this Skype server, you can have a small phone system in your home.
The full function of home VOIP server is based on Open-source software and free of charge.
Asterisk
With two or three VOIP card, you will have a system, you can call out, or receive incoming call.
You can also have a conference call in your home.
Do you need it?
Running on Linux.

Servers in my Ubuntu Server

I installed a testing Ubuntu Server on April 3.
Some software or server application are installed on in during last 7 days.
Now I have a worked server which can be put under production environment.
Let’s list the detail information of them.
OS: Ubuntu 6.10
Control Panel: Webmin 1.320
DNS server: Bind 9.32
Web server: Apache 2.0.55
FTP server: ProFTPD Server 1.30
Database server: MySQL version 5.0.24
SSH server: OpenSSH_4.3
SMTP server: Postfix version 2.3.3
POP/IMAP server: Dovecot IMAP/POP3 Server 1.0
Webalizer: Webalizer version 2.01-10
Others:
PHP: PHP 5
Perl: Perl version 5.8.8
I also install other programs on top of above platform:
Webmail interface: SquirrelMail version 1.4.8
Log analytics: Advanced Web Statistics 6.5 (build 1.857)
phpMyAdmin: phpMyAdmin – 2.8.2-Debian-0.2
Two applications:
MovableType 3.44
WordPress 2.1.2

Continue reading “Servers in my Ubuntu Server”

Linux Command

Ubuntu basic commands, used very often.

Some Linux commands are very similar to Windows one.
I list them here for reference.
cd
The cd command will allow you to change directories
ls
The ls command will show you the files in your current directory.
cp
Make a copy of a file for you.
mkdir
The mkdir command will allow you to create directories.
rmdir
Remove the directory
df
The df command displays filesystem disk space usage for all mounted partitions.
du
The du command displays the disk usage for a directory.
rm
rm -rf \abc
Delete folder \abc, including all sub-folders and files under it.
mv
The mv command will move a file to a different location or will rename a file.
some other used ofter commands
tar xvfz 12345.tar
apt-get install
apt-get remove
apt-get update
apt-get upgrade
sudo nano .\abcd.cf
Edit .\abcd.cf in a nano text editor.

Setup a New Ubuntu 6.10 Server

Last week, I installed Ubuntu 6.10 server version Linux on an old computer.
You can see some information below from phpSysInfo.
ubuntu-phpsysinfo

Let me record my installation history.
1) Download Ubuntu 6.10 server image file, and burn it on CD.
2) Boot the computer from this boot-able CD, while promoted, I choose LAMP, and use all 40GB hard disk for Ubuntu.
3) After Installed new system and boot into Ubuntu system. There is no GUI in default.
4) Change Source list.
Modify
/etc/apt/sources.list
Add following sources in the end of the file

deb http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiverse

5) Update system

sudo apt-get update
sudo apt-get upgrade

6) Install Webmin 1.330
Go to Webmin official site to download.
Decompress it and run,

sudo apt-get install build-essential
cd (webmin directory)
sudo ./setup.sh /usr/local/webmin

When installation completed, enter http://127.0.0.1:10000, or https://127.0.0.1:10000 to web interface.
Now I have a Linux box with features as below:
OS: Ubuntu Linux
Database: MySQL 5
Webserver: Apache 2
Language: PHP 5
I installed proftpD, Webalizer later.

Try Ubuntu as Server

It is my dream. I can have a Linux box within all free software.
I installed a Ubuntu on one old computer Thursday.
The plan is to let this server has following functions:
OS: Linux (Ubuntu)
Web Server: Apache 2.0
Mail Server: Postfix (easier to configure than sendmail; has a shorter history of security holes than sendmail)
DNS Server: BIND9
FTP Server: proftpd
Webalizer for web site statistics
Webmin
ISPConfig
The list above may be changed depends on my experience.
Let me do it.

  • Archives