Project D4 Stage 1: CRON

NEED TO DO:

Modify forum\includes\functions_digest_users.php and make the CRON work so the usergroup table can be stored every nite. Note that all

// START mod - inmotion coder Yang - 2006-10-24
// $numbergroups = vb_number_format($usergroupcache['usergroupid'];
// END mod - inmotion coder Yang

should be changed back, or comment out. Find a way that no usergroupcache is used. Or that is to say, to count the usergroup instead of users (numberusers) After doing the CRON, have to find a way to access the CRON table, and then out put at forum\index.php

Important files:

forum\modules\stats.php
forum\admincp\stats.php
forum\admincp\user.php

Project D1 Stage 1: Make It Work

First, change all

/var/www/html/inmotion/melbourneunderage

to

D:\POST_MONASH\WebSites\AppServ\www\melbourneunderage\

Then, change all

http://www.localhost.com/inmotion/melbourneunderage

to

http://localhost/melbourneunderage

in

http://localhost/melbourneunderage/forum/admincp/

Then find out what’s going on… Hints: For too large database, use DOS shell:

mysql -u root -p clubs_forum < clubs_forum2.sql

Important configuration files are:

forum/include/config.php
forum/index.php
photos/gallery_config.php

Keywords:

(users)

welcomeblock.php: adv_portal_welcomeblock

(CRON)

http://localhost/melbourneunderage/forum/admincp/cronadmin

How to Install XMMS So We Can Play MP3 and WMA on Fedora

How to play music by using XMMS:

1、Quite simple.

[root@localhost ~]# yum install xmms 
[root@localhost ~]# yum install xmms-mp3

2、Or:

[root@localhost softs]# rpm -ivh http://www.xmms.org/files/1.2.x/rpm/rh9.x/xmms-1.2.8-1.i386.rpm

3、Done!


How to let XMMS show Chinese characters correctly:

1、The simplest way is to right click XMMS player, choose Preference -> fonts, and change to Chinese fonts.

2、Show all the GB2312 character sets:

[root@localhost ~]# xlsfonts|grep gb2312
-isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0

3、Modify configuration file of XMMS:

[root@localhost softs]# vi ~/.xmms/config
In config, change following lines:
playlist_font=-*-fixed-medium-r-normal--16-*,*song*-16-*,-adobe-times-medium-r-normal-*-*-140-*-*-p-*-iso10646-1
use_fontsets=TRUE
mainwin_use_xfont=TRUE
mainwin_font=-adobe-times-medium-r-normal-*-*-140-*-*-p-*-iso10646-1

4、Add a short cut (run command xmms) on desktop. Done!


How to play video by using MPlayer:

[root@localhost ~]# yum install mplayer
[root@localhost ~]# yum install mplayer-gui

Reference

1. Fast Configure Your FC5 [EB/OL]. (Good article!)
2. XMMS Chinese Songs Configuration [EB/OL].
3. XMMS Chinese Playlist Problems [EB/OL].

How to Auto-mount NTFS and FAT File Systems in FC5

1、Check the core type by using:

[root@localhost ~]# uname -a

2、Download the latest kernel-module-ntfs package from here. For me, it’s this.

3、Install this rpm package. Don’t worry about the warning prompt generated by FC5 installer. Better we input installation command instead of install directly:

[root@localhost ~]# rpm -ivh /downloaded/softs/ kernel-module-ntfs-2.6.17-1.2187_FC5smp-2.1.27-0.rr.10.5.i686.rpm

4、Check the file system:

[root@localhost ~]# /sbin/fdisk -l
Disk /dev/sda: 78.5 GB, 78518522880 bytes 255 heads, 63 sectors/track, 9546 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 5 40131 de Dell Utility /dev/sda2 * 6 1964 15735667+ 7 HPFS/NTFS /dev/sda3 9154 9545 3148740 db CP/M / CTOS / ... /dev/sda4 1965 9153 57745642+ f W95 Ext'd (LBA) /dev/sda5 1965 3750 14346013+ b W95 FAT32 /dev/sda6 3751 5024 10233373+ 7 HPFS/NTFS /dev/sda7 5882 7840 15735636 b W95 FAT32 /dev/sda8 7841 9153 10546641 b W95 FAT32 /dev/sda9 5025 5753 5855661 83 Linux /dev/sda10 5754 5881 1028128+ 82 Linux swap / Solaris Partition table entries are not in disk order

5、Make new mount points:

[root@localhost ~]# mkdir /mnt/c
[root@localhost ~]# mkdir /mnt/d
[root@localhost ~]# mkdir /mnt/e
[root@localhost ~]# mkdir /mnt/f
[root@localhost ~]# mkdir /mnt/z

6、If we want to mount manually, we can do like this:

[root@localhost ~]# mount -t ntfs -o nls=utf8,umask=000 /dev/sda2 /mnt/c
[root@localhost ~]# mount -t vfat -o iocharset=utf8,umask=000 /dev/sda5 /mnt/d
[root@localhost ~]# mount -t vfat -o iocharset=utf8,umask=000 /dev/sda7 /mnt/e
[root@localhost ~]# mount -t vfat -o iocharset=utf8,umask=000 /dev/sda8 /mnt/f
[root@localhost ~]# mount -t ntfs -o nls=utf8,umask=000 /dev/sda6 /mnt/z

Go to /etc and modify fstab:

[root@localhost ~]# vi /etc/fstab

In fstab:

/dev/sda2    /mnt/c    ntfs    umask=000,nls=utf8
/dev/sda5    /mnt/d    vfat    umask=000,iocharset=utf8
/dev/sda7    /mnt/e    vfat    umask=000,iocharset=utf8
/dev/sda8    /mnt/f    vfat    umask=000,iocharset=utf8
/dev/sda6    /mnt/g    vfat    umask=000,iocharset=utf8

Save and restart.

Go to /mnt. Done!

Reference

1. How to mount NTFS and FAT32 File System under Fedora Core 4 [EB/OL].

How to Configue Alsa Sound Card on Fedora

It’s time to write down how I configure my Alsa sound card on my Dell 640m. Next time I won’t bother much time in Googling and trying this way and that…

  1. Update Kernel by using:
    [root@localhost ~]# yum install kernel ;

    Or: Download the latest kernel from Software Updater, like kernel-smp-2.6.17-1.2187_FC5.i686.rpm ;

  2. No need to re-compile the new kernel. Just install the rpm package by using Software Updater.
  3. Download the latest Alsa Util and Lib package from Software Updater, then install them.
  4. We can get the system infomation by using uname -a.
    [root@localhost ~]# uname -a Linux localhost.localdomain 2.6.17-1.2187_FC5smp #1 SMP Mon Sep 11 01:32:34 EDT 2006 i686 i686 i386 GNU/Linux

    Restart and switch to the latest version of the Fedora Core. That is Linux 2.6.17-1.2187_FC5smp. Note that smp means Duo Core system.

  5. The sound panel should be un-muted and we use HDA-Intel (Alsa Mixer). We can test the sound by using:
    [root@localhost ~]# system-config-soundcard
  6. Done!

Reference

1. Hardware Installer: Configure the Alsa Audio Controller [EB/OL].

How to Fix Grub

Since last time I lost my Grub, I did not have time to fix it. So today when I got up, I finally decided to solve this problem.

After ten minutes or so, I found it quite simple:

1. Find the partition information by using paragone patition manager. Mine is like:

* Other Dell Utility
C NTFS Windows XP
D FAT32 FAT System
G NTFS Windows Vista
* Linux Ext3
* (Linux Swap)
E FAT32 FAT System
F FAT32 FAT System
* Other
* Other

2. Put in the Fedora Core 5 DVD, restart with a CDROM supported mode. After some basic configurations, see a #sh prompt. Type in sh# grub we will get grub>

3. grub> root (hd0 , then press <tab>, the screen will show like:

1 unknown type unknown partition type
2 unknown type unknown partition type
4 FAT FAT32
5 unknown type unknown partition type
6 exfnt Linux
7 unknown type unknown partition type
8 FAT FAT32
9 FAT FAT32

It cannot show NTFS types for XP and Vista because Fedora Core 5 does not know this Windows partition type. So we may guess according to the results we got from step 1. Then we get the actual table is:

1 Dell Utility
2 Windows XP
4 FAT
5 Windows Vista
6 Linux Extension
7 Linux Swap
8 FAT
9 FAT

Then the task becomes very simple.

4. grub> root (hd0, 6) -> grub> setup (hd0) -> Restart the system then.

5. Done! First menu is Grub, when we choose Windows, it will show boot menu of Vista and XP.

Reference

1. Hot to Fix Grub with the Boot Disk [EB/OL].
2. Install XP+Mac+Vista+Linux within One Hard Disk [EB/OL].

The Age: Microsoft sets price for Zune

Today a friend assigned me to buy an iPod Nano II, while Microsoft announced the future price for Zune… Microsoft sets price for ZuneSeptember 29, 2006A Microsoft portable Zune media player is shown during a...

阅读更多

Installed Joomla

Thanks to Javier. I installed this Joomla. The interface is similar to Mambo. There are some minor changes like security function and installing packages. See snapshots. Haven’t explored much inside, but as far...

阅读更多

Leaving Hobart Again

Be absent for 5 days… I would say it is a gd place to stay at. The memory is related with words like “relax”, “enjoy”, “BBQ”, “sunshine”, “seagull”...

阅读更多

1 277 278 279 280 281 290