°²×° Suse 10.3 ¼° Linux ±Ê¼Ç
This is a memo of setting up Suse 10.3 on Mon Mar 17, 5:18 PM
Download Open Suse: http://en.opensuse.org and see http://en.opensuse.org/Download_Help
Summary - These tools were configured to use:
Apache 2.2 web server
Bison 2.3
Flex 2.5.33
Ftp server
Gcc 4.2.1 (C/C++)
Java 1.5.0
Mono (C# cross compiler)
MySQL (Ver 14.12 Distrib 5.0.45, for suse-linux-gnu (i686) using readline 5.2)
Perl (v5.8.8 built for i586-linux-thread-multi)
Php (PHP 5.2.4 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 23 2007 14:12:53))
phpBB 3.0.1
Python 2.5.1
SSH server
Demos
cgi-bin/hi.cgi
(cgi written in Perl)
cgi-bin/hi.pl
(cgi written in Perl)
cgi-bin/chi.cgi
(cgi written in C)
php/index.php
(PHP)
cgi-python/hi.py?user_name=me
(Python as cgi, use mod_python.cgihandler as handler)
python/index.py (with a function hello(req, who))
(Python, use mod_python.publisher as handler, the better way)
Perl using MySQL database
Apache
www root is /srv/www/htdocs/
config files are in /etc/apache2/
See apache.txt
for configuration change.
Crontab
crontab.txt
MySQL
Install notes
See Setup guide
The Perl-DBD-MySQL module was missing. So download and install using YaST.
DBD::mysql module note
DBD modules download
Database auto-backup using crontab
Menhir
Menhir install records
OCaml
ocaml.txt
phpBB
phpBB website
To install is very easy, follow the instruction guide
. Note that the database needs to be created manually.
(For MySQL, in MySQL shell, type "create DATABASE [database_name]")
Python
Mod_Python - Integrating Python with Apache
Ruby on Rails
RailsOnSUSE on SUSE 10.0
General note
Notes on install CPAN modules
Installing Perl Modules
In Suse, can use YaST --> Software Management to install new package.
More notes
=hi.cgi=
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "<html><head><title>Hello World!
Ïà¹ØÎĵµ£º
ubuntu: ÐÞ¸ÄΪmaserat1
1) ÐÞ¸Ä /etc/hostname
master1
2£© /etc/hosts
127.0.0.1 localhost.localdomain localhost
172.16.111.102 master1.localdomain master1
172.16.111.103 slaver1.localdomain slaver1
172.16.111.106 slaver2.localdomain slaver2
3£© ÖØÆôÍøÂç
Redhat ÐÞ¸ÄΪslaver2
1) Ð ......
Name
times - get process times
Synopsis
#include <sys/times.h>
clock_t times(struct tms *buf);
Description
times() stores the current process times in the
struct tms that buf points to. The struct tms is as defined
in <sys/times.h>
:
struct tms {
clock_t tms_utime; /* us ......
Linux 2.6Äں˵ÄÒ»¸öÖØÒªÌØÉ«ÊÇÌṩÁËͳһµÄÄÚºËÉ豸ģÐÍ¡£Ëæ×ż¼ÊõµÄ²»¶Ï½ø²½£¬ÏµÍ³µÄÍØÆË½á¹¹Ô½À´Ô½¸´ÔÓ£¬¶ÔÖÇÄܵçÔ´¹ÜÀí¡¢ÈȲå°ÎÒÔ¼°plug and playµÄÖ§³ÖÒªÇóÒ²Ô½À´Ô½¸ß£¬2.4ÄÚºËÒѾÄÑÒÔÂú×ãÕâЩÐèÇó¡£ÎªÊÊÓ¦ÕâÖÖÐÎÊÆµÄÐèÒª£¬2.6Äں˿ª·¢ÁËȫеÄÉ豸ģÐÍ¡£
2.6 ......
ǰÌ쿪»úʵȻûÓÐÉùÒôÁË£¬ÔõôŪҲ²»ÐУ¬ÔÚÂÛ̳¹ÒÁËÒ»¸öÌû×Ó£¬µ½ÏÖÔÚҲûÓÐÈ˻ظ´¡£×òÌìÂèÂè¹ýÉúÈÕÎÒ»ØÂè¼ÒÈ¥ÁË£¬½ñÌì²Å»ØÀ´¡£ÎÒ´ò¿ª»úÆ÷ÅÎÍûÄÜºÃÆðÀ´£¬½á¹û»¹ÊÇûÓÐÉùÒô¡£
1¡¢ÔÚ¿ØÖÆÌ¨ÏÂÓÐÉùÒô
control+alt+f1Çл»µ½¿ØÖÆÌ¨£¬Ö®ºómplayer /mnt/wine/music/*.mp3 ½á¹ûÓÐÉùÒô
2¡¢´´½¨ÐÂÓû§ÓÐÉùÒô
useradd - ......
1. ls£ºÁгöÎļþÁбí
¸ñʽ£º ls option£¬option¿ÉÒÔÊÇ£º -a ÁгöÒþ²ØÎļþ£¬-l ÁгöÎļþÏêϸÐÅÏ¢
2. pwd£º²é¿´µ±Ç°Ä¿Â¼
3. mkdir£º ´´½¨Ä¿Â¼
4. touch£º ´´½¨Îļþ
5. cd£º Çл»Ä¿Â¼
6. cp£º ¿½±´Îļþ/Ŀ¼
¸ñʽ£º cp srcfile desfi ......