星期四 四月 24, 2008

Enlarge Upload File Size in CoolStack PHP

If you want to enlarge upload file size (e.g. 1000M) in CoolStack PHP on Solaris. You may just edit the file "/opt/coolstack/php5/lib/php.ini", and
add "upload_max_filesize = 1000M" and "post_max_size = 1000M" in the part of [PHP].

At the end, don't forget restart Apache.

  • # pkill httpd
  • # /opt/coolstack/apache2/bin/httpd


SAI Moodle on Solaris

I just made a special DVD for Moodle with SAI (Sun Academic Initiative) courses on Solaris. Here is the screenshot.


It is very easy to deploy. With this DVD, you just need do these step as the following.

Part 1. Setup Cool Stack (Apache, MySQL and PHP)

1. Create group and user for MySQL
# groupadd mysql
# useradd -G mysql mysql

2. pkgadd Cool Stack (Apache HTTP Server 2.2.3, MySQL 5.0.33 and PHP 5.2.0)
# pkgadd -d CSKamp_x86.pkg
Cool Stack will be installed to the folder of /opt/coolstack

3. Create "my.cnf" in /etc with the following content
[mysqld]
basedir=/opt/coolstack/mysql_32bit
datadir=/opt/coolstack/mysql_32bit/data

4. Run MySQL post-install, create database repository
# cd /opt/coolstack/mysql_32bit/bin
# ./mysql_install_db --defaults-file=/etc/my.cnf --user=mysql

5. Start MySQL
# cd /opt/coolstack/mysql_32bit/bin
# ./mysqld_safe --defaults-file=/etc/my.cnf --user=mysql

6. Change MySQL root password
# /opt/coolstack/mysql_32bit/bin/mysqladmin -u root password 'rootpassword'

7. Run MySQL client in command line
# /opt/coolstack/mysql_32bit/bin/mysql -p
password: rootpassword

8. Edit /opt/coolstack/apache2/conf/httpd.conf
# gedit /opt/coolstack/apache2/conf/httpd.conf

Change index page.
<IfModule dir_module>
    DirectoryIndex index.php
</IfModule>

9. Start Apache
#/opt/coolstack/apache2/bin/httpd

Part 2. Setup Moodle with SAI

1. Unzip moodledata.zip to /opt/coolstack/apache2/, and change authorization.
# chmod -R 777 moodledata
# chown -R noaccess moodledata

2. Unzip moodle.zip to /opt/coolstack/apache2/htdocs/, and change authorization.
# chmod -R 777 moodle
# chown -R noaccess moodle

3. Unzip mysql.zip to /opt/coolstack/mysql_32bit/data/, and change authorization.
# chmod -R 777 moodle
# chown -R noaccess moodle

4. Change setting in /opt/coolstack/apache2/htdocs/moodle/config.php
$CFG->wwwroot = 'http://YourServerIPAddress/moodle';

5. Moodle can import SAI courses with SCORM standard very easily.
If you meet errors, please change the filename "imsmanifest_\*\*\*.xml" to imsmanifest.xml in SAI course ZIP bundle.

If you also need this DVD, please mail me.


星期五 四月 18, 2008

Solaris x86 B80 on HP520(KD074AA)

I have recently installed Solaris x86 B80 on HP520(KD074) which with Intel 945GM, memory of 512MB(have added to 1.5G), Graphics card of Intel 950MA.


1. Install Solaris B80:


       Solaris x86 B80 provides two editions of Solaris Express Developer Edition and Solaris Express. The differences between them are the Solaris Express Developer Edition will install some development tools automaticlly, such as NetBeans and SunStudio.


       HP520 can not install Solaris Express Developer Edition because the graphics card in HP520 cannot be recognised automaticlly, we can install Solaris Express and complete it with configuation step by step. But we found that we can not enter to Java Desktop System.


 


2. Graphics Driver


       There are two methods to deal with the problem of JDS:


1)     1.  Changed to Xsun Server


Solaris adopts Xorg server default to display the graphics, but we can change to Xsun server:


# kdmconfig


              We can Choose the Xsun server and the graphics driver with Xfree-86 default, then reboot after configuration and we can enter the JDS. But the Screen resolution can not be changed in this mode.


2)     2.  Choose other driver of Solaris


Choose the new driver by configuring the Xorg with:


# /usr/X11/bin/xorgconfig


See the configuration details at:


http://wiki.gceclub.sun.com.cn/index.php/%E5%A6%82%E4%BD%95%E9%85%8D%E7%BD%AEXorg%E7%9A%84%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%3F


In the graphics driver we choose the VESA generic driver(number 0), after configuration we reboot and enter the JDS.


But the VESA driver can not support the 3D display and OpenGL, it is need to find the other suitable driver.


 


3. Audio Driver


       The audio card also can not word after installation. There are two drivers to be solve the problem:


1)     1. OSS Driver


The OSS driver can support the most aduio card in Solaris, we can download the drivers from http://www.opensound.com/solaris.html.


Unzip the download files to pkg file and steup with ‘pkgadd -d’.


2)      2.Audio Driver for solaris


Download the common driver from http://www.tools.de/solaris/audio/beta.


Unzip the download files to pkg file and steup with ‘pkgadd -d


 


Chinese article see:


http://developers.sun.com.cn/blog/BingfengHong/entry/%E5%9C%A8hp520_kd074_%E4%B8%8A%E5%AE%89%E8%A3%85solaris_x86_b80


 

星期四 四月 03, 2008

Configure VNC Server on Solaris

Author: Cai Xiaowu 


Configure vnc server on solaris

[Read More]

Solaris file system overview------NFS


As a classic file
system,NFS played an important part in unix system.In this acticle I
will introduce how to use NFS including configuring NFS server and
client.

NFS Server:

In the console,you can use dfshares to the existing NFS server shared directory.

# dfshares


nfs dfshares:swustcs: RPC: Program not registered

because nfs is based on RPC(Remote procedure call),you must register RPC first,such as the command below:

#/usr/lib/nfs/mountd

Start NFS server(it is active by default):

#svcadm enable network/nfs/server     (you can also stop it by: #svcadm disable network/nfs/server)

 

Set share directory on NFS Server

#share -F nfs -o ro=swustcs /cdrom

 
NFS Client:

In order to share NFS server resource,you must start the nfs service at the client:
list nfs service:

# svcs | grep nfs
online         15:43:28 svc:/network/nfs/rquota:default
online         15:43:29 svc:/network/nfs/mapid:default
online         15:43:29 svc:/network/nfs/status:default
online         15:43:31 svc:/network/nfs/nlockmgr:default
online         15:43:33 svc:/network/nfs/server:default

Check the shared directory:

# showmount -e
swustcs 的导出列表:
/cdrom swustcs

create a directory to mount shared directory:

# mkdir /nfstest

 
mount the shared directory to local directory:

# mount -F nfs swustcs:/cdrom /nfstest

read the directory:

# ls /nfstest
cdrom0      sol_11_x86
# ls /nfstest/sol_11_x86
autorun.inf                  JDS-THIRDPARTYLICENSEREADME
autorun.sh                   License
boot                         README.txt
Copyright                    sddtool
DeveloperTools               Solaris_11
installer
#


umount the shared directory:

# umount /nfstest
# ls /nfstest

 

 

Cai Xiaowu

csqqer@gmail.com
 


星期日 三月 30, 2008

Windows on Solaris10 && Repair Grub

Problem:


1.      We install Solaris b79 first and install Windows later in the lab, but the MBR was destroyed and the Grub does not work.


2.      Only one PC in the lab has CD-ROM and others does not have.


Solutions:


1.      Solution of PC with CD-ROM


1)     Prepare a Solaris X86 CD or DVD. Set up the machine boot from CD-ROM.


2)     Enter “c” into the grub in the grub form.


3)     Find the installed Solaris with following methods:


grub>find /platform/i86pc/multiboot


(hd0,1,a)--------------------output


OR:  grub>find /boot/grub/menu.lst


       (hd0,1,a)--------------------output


4)     Set the output to root device


grub>root (hd0,1,a)
Filesystem type is ufs, partition type 0xbf


5)     Set the boot and archive files and boot from grub


grub>kernel /platform/i86pc/kernel/unix
grub>module /platform/i86pc/boot_archive
grub>boot


So we can boot Solaris X86 from grub.


6)     After logining to Solaris, steup grub as root, and reboot


#cd /usr/sbin
#installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0d0s0


Output:


Updating master boot sector destorys existing boot managers (if any)
Continue (y/n)? y
stage1 written to partition 1 sector 0 (abs 31455270)
stage2 written to partition 1, 233 sectors starting at 50 (abs 31455320)
stage1 written to master boot sector


#reboot


7)     Successful….


2.      Solution of PC without CD-ROM


1) Set the Solaris partition active in Windows


   Find the partition Which Solaris installed and set it active.


2    2) Reboot the computer. Because the MBR has been changed, the Windows cannot be boot. But after it we can enter the grub.


3) After entering the grub, we can adopt the solution above from the third step to the seventh step. And we can relax after installed the grub again.


See: http://developers.sun.com.cn/blog/BingfengHong/entry/solaris10_x86_windows%E5%8F%8C%E7%B3%BB%E7%BB%9Fgrub%E5%BC%95%E5%AF%BC%E4%BF%AE%E5%A4%8D%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88

About

This is Chinese Functional CA Team Blog. Any suggestion is appreciated.

Search

Archives
« 五月 2015
星期日星期一星期二星期三星期四星期五星期六
     
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
      
今天