Friday, October 28, 2005

cPanel - httpd on xxxx failed

httpd failed @ Fri Oct 28 16:02:27 2005. A restart was attempted automagicly. cPanel needs a spell checker. Automagicly = fix w/ magic

Thursday, October 27, 2005

Fun - Fitness studio

Fitness studio - fitness_studio.wmv a cute/funny video

Mike Lazaridis featured on CNN

CNN.com - BlackBerry co-creator a�national icon - Oct 24, 2005: "Mike Lazaridis" It also mentions UW. Thanks CNN and other news channels for this marketing boost for the school.

Wednesday, October 26, 2005

Linus Torvalds - Philosophy

"If you're too commercial," Torvalds says, "you end up being too shortsighted. You have a 'this is what we need' mentality, and you blow everything else off. But you want the commercial side, because commercial forces end up listening to different customers and meeting different needs compared to those doing it just for fun."

Monday, October 17, 2005

bittorrent downloads in the background

If you want a simpler setup, a GUI-less server that download, store and share files and you can move it to another machine later. You could run BitTorrent (the original client) and setup a secure HTTP to download to another machine.

The following command will continuously scan the current directory for torrent files and adding them. When something is done, you can move the torrent file and its newly-downloaded files to another folder, it will automatically be removed from sharing. Check out other parameters you can do with launchmany-console

nohup launchmany-console --saveas_style 1 --max_upload_rate 600 --display_interval 5 . > torrent.log &

( Older version: nohup btlaunchmany.py --display_interval 5 . > torrent.log & )

Labels:

Sunday, October 16, 2005

Crontab format

*     *     *     *     *  command to be executed
-     -     -     -     -
|     |     |     |     |
|     |     |     |     ------ day of week (0 - 6) (Sunday=0)
|     |     |     -------- month (1 - 12)
|     |     ---------- day of month (1 - 31)
|     ------------ hour (0 - 23)
------------- min (0 - 59)

Redirect crond(pam_unix) syslog messages

If you see too many of these lines:
root@s1 trungson]# tail /var/log/messages
Oct 16 12:36:01 s1 crond(pam_unix)[21821]: session closed for user root
Here is how to redirect it to a more appropriate place
[root@s1 trungson]# more /etc/syslog.conf
...
*.info;mail.none;authpriv.none;cron.none;auth.!=info    /var/log/messages
...
# Log cron stuff, add auth.info to redirect cron logging
cron.*;auth.info              /var/log/cron

Mirrors - Setting Up

Apache
http://www.apache.org/info/how-to-mirror.html
PHP
http://www.php.net/mirroring.php
CentOS
http://www.centos.org/modules/tinycontent/index.php?id=22
PuTTY
http://www.chiark.greenend.org.uk/~sgtatham/putty/mirrors.html
MySQL
http://dev.mysql.com/downloads/how-to-mirror.html
OpenSSL
http://www.openssl.org/source/mirror.html
CPAN
http://www.cpan.org/misc/cpan-faq.html#How_mirror_CPAN
Curl
ProFTPD
LDP
LVS
sudo
KDE

Saturday, October 15, 2005

Linux - Change timezone

[root@s5 etc]# cp /etc/localtime /etc/localtime.bkup
[root@s5 etc]# cp /usr/share/zoneinfo/US/Eastern localtime
cp: overwrite `localtime'? y
[root@s5 etc]# date
Sat Oct 15 21:38:52 EDT 2005

Just to be sure it's correct
[root@s5 etc]# rdate -s rdate.darkorb.net

Permission denied XMLHttpRequest.open

Error: uncaught exception: Permission denied to call method XMLHttpRequest.open Check the URL passed into the XMLHttpRequest.open. It seems the URL has to be on the same host as the current webpage.

Bill Gates visited UW

Too bad I wasn't there. But thanks Mr. Gates to stop by the only Canadian university in his tour. I'd love to be there. Hope my Alma Matter will continue to be on the leading edge of technology. The quantum institution I think is going big.

Friday, October 14, 2005

Linux command - sudo

root@r1 [/var/log]# sudo -u nobody sh -c "whoami"
nobody

root@r1 [/var/log]# sudo -u nobody sh -c "tail yum.log"
Sep 30 01:17:38 Updated: net-snmp-libs 5.0.9-2.30E.19.i386
Sep 30 01:17:38 Updated: net-snmp-devel 5.0.9-2.30E.19.i386

root@r1 [/var/log]# man sudo
sudo allows a permitted user to execute a command as the 
superuser or another user, as specified in the sudoers file....

Thursday, October 13, 2005

Useful Linux command - last

[root@s1 ~]# man last
Last searches back through the file /var/log/wtmp (or the 
file designated by the -f flag) and displays a list of all 
users logged in (and out) since that file was created.

[root@s1 ~]# last -R
root     pts/0        Fri Oct 14 00:17   still logged in
root     pts/0        Thu Oct 13 15:31 - 15:32  (00:00)
root     pts/0        Thu Oct 13 14:15 - 14:17  (00:02)
root     pts/0        Thu Oct 13 11:59 - 13:42  (01:43)
root     pts/1        Tue Oct 11 08:24 - 08:24  (00:00)
root     pts/0        Tue Oct 11 08:17 - 18:44  (10:27)
root     pts/0        Tue Oct 11 02:41 - 04:40  (01:58)
reboot   system boot  Tue Oct 11 02:37         (2+21:49)
root     pts/0        Tue Oct 11 02:22 - down   (00:13)
reboot   system boot  Tue Oct 11 02:22          (00:14)
root     pts/1        Tue Oct 11 02:17 - 02:18  (00:00)
root     pts/1        Tue Oct 11 02:16 - 02:16  (00:00)
root     pts/0        Tue Oct 11 01:10 - down   (01:10)
reboot   system boot  Tue Oct 11 01:03          (01:18)
root     pts/0        Tue Oct 11 00:16 - down   (00:45)
reboot   system boot  Tue Oct 11 00:12          (00:49)
root     pts/0        Mon Oct 10 21:42 - down   (02:28)
reboot   system boot  Mon Oct 10 21:37          (02:33)
root     pts/0        Mon Oct 10 21:00 - down   (00:36)
reboot   system boot  Mon Oct 10 20:55          (00:41)
root     pts/1        Mon Oct 10 20:26 - down   (00:28)
root     pts/0        Mon Oct 10 20:22 - down   (00:32)
reboot   system boot  Mon Oct 10 20:21          (00:32)
root     pts/0        Mon Oct 10 20:17 - down   (00:03)
reboot   system boot  Mon Oct 10 20:14          (00:06)
root     pts/1        Mon Oct 10 18:18 - down   (01:55)
root     pts/1        Sat Oct  8 14:59 - 18:01  (03:02)
root     pts/1        Sat Oct  8 01:50 - 01:54  (00:04)
root     pts/1        Fri Oct  7 19:48 - 20:24  (00:35)

wtmp begins Fri Oct  7 19:48:49 2005

Payment Processing Job - Scam

Beware of these. Nobody trust stranger to send money too, unless it's free money for them too.

New Browser War

Now it's what advanced features can be delivered. Not many of backward compatibility issues. Good for developers to take advantage of more interactive functionalities.

Setting up a CentOS worker

Quite easy, everything can be done w/ yum - Enable CentosPlus for PHP5 - yum install php - yum install mysql - yum install php-mysql - yum install php-gd - Enable mysqld/httpd on chkconfig

Wednesday, October 12, 2005

Ideas for Google

BACKGROUND: Google is the prime example of a late best mover. Do what your competitors already do and do it better. Their mission is to organize the world's information so that it'll be useful and universally accessible. Their organization's culture is open to experiment new ideas/projects.

IDEA #1: Google Auctions To keep up their mission, the propose is to offer auctions through Google/Froggle. Either (1) entering a partnership with eBay, Yahoo! Auctions, uBid (major online marketplaces) to integrate current auctions with search results (with details and not simply an affiliate link to eBay site) or even more ambitious, (2) providing auction services like eBay. Problem with (2): what improvements can be done to eBay, a pretty good system in my opinion? The idea may have been investigated by Google but we, the public, have not seen it. This business plan will be proposed to Google's as new project to the expanding portfolio.

IDEA #2: Google Portal (scrapped, they already have it http://www.google.com/ig, but could be improved)

IDEA #3: Google Dating - Search for people or dating, maybe something like the social network, orkut.com, not that new.

GNAX P3

Main Package P3 1.0 Special: 
3-Months @ $166.38 + Setup: $69.00
IDE Hard Drives: 1x 40gb IDE Drive Included  
Operating System: CentOS 3.4
Power Management: Remote APC Reboot Included  
Ram: 512MB RAM Included  
Transfer: 10MB Port Speed/400 GB Included  
Backup Storage: Not At This Time  
Control Panel: No Control Panel  
Package(s) Total $166.38
Package(s) Setup $69.00
Sub Total $235.38
Total Due $235.38

Not too bad for a reliable network like GNAX. Good for a 
simple load balancer (director in the case of LVS)

Tuesday, October 11, 2005

LayeredTech

From Rapid Deploy Servers
• Intel P4 2.8Ghz
• Pre-installed OS ONLY - CentOS OR FreeBSD
• 80GB IDE Hard Drive
• 1024MB RAM
• Bandwidth: 1000GB
• IP Addresses: 8 (5 usable)
• Private VLAN
• Basic Resource Monitoring
• 100% Self Managed and Dedicated
• NO RESELLER DISCOUNTS APPLY

Monthly Fee Options:
• $65.00 | $99 Setup
• $75.00 | $49 Setup
• $85.00 | $0 Setup

Plus 5-20% discount for long-term. Pretty good deal.

Google Sitemap Generator

xml-sitemaps.com is a good one. Idea for service: signup for sitemap, add a site, then give FTP login, routinely (daily, weekly) update the sitemap and upload to their server (need trust).

SCSI Performance on Dual Opteron 244 4G

18:03:21  up 116 days,  3:05,  1 user,  load average: 0.78, 1.05, 1.00
192 processes: 190 sleeping, 1 running, 1 zombie, 0 stopped
CPU states:  cpu    user    nice  system    irq  softirq  iowait    idle
          total    9.0%    0.0%    2.9%   0.0%     0.4%    8.4%   78.8%
          cpu00   10.1%    0.1%    3.3%   0.0%     0.1%   12.7%   73.2%
          cpu01    7.9%    0.0%    2.5%   0.0%     0.7%    4.1%   84.4%
Mem:  3538168k av, 3127276k used,  410892k free,       0k shrd,  219364k buff
                  1705180k actv,  851480k in_d,   40724k in_c
Swap: 2040244k av, 280k used, 2039964k free, 1454620k cached

root@r1 [~/trungson/shells]# hdparm -tT /dev/sda
/dev/sda:
Timing buffer-cache reads:   2532 MB in  2.00 seconds = 1266.00 MB/sec
Timing buffered disk reads:   50 MB in  3.12 seconds =  16.03 MB/sec

Might be some problem w/ the disk reads

Get bandwidth/traffic stats

hdparm benchmark results

[ #? 73G SCSI ]
root@ [~]# more /var/log/dmesg
Vendor: FUJITSU   Model: MAP3735NP         Rev: 0106
Type:   Direct-Access                      ANSI SCSI revision: 03
SCSI device sda: 143571316 512-byte hdwr sectors (73509 MB)

root@ [~]# hdparm -tT /dev/sda
/dev/sda:
Timing buffer-cache reads:   1180 MB in  2.00 seconds = 590.00 MB/sec
Timing buffered disk reads:  152 MB in  3.01 seconds =  50.50 MB/sec

[ #22 36G SCSI ]
Vendor: FUJITSU   Model: MAP3367NP         Rev: 0108
Type:   Direct-Access                      ANSI SCSI revision: 03
SCSI device sda: 71775284 512-byte hdwr sectors (36749 MB)

[root@]# hdparm -tT /dev/sda
/dev/sda:
 Timing cached reads:   2836 MB in  2.00 seconds = 1416.80 MB/sec
 Timing buffered disk reads:  106 MB in  3.02 seconds =  35.12 MB/sec

[ #11 73G SCSI ]
Vendor: SEAGATE   Model: ST373207LW        Rev: 0003
Type:   Direct-Access                      ANSI SCSI revision: 03
SCSI device sda: 143374744 512-byte hdwr sectors (73408 MB)

root@ [~]# hdparm -tT /dev/sda
/dev/sda:
 Timing buffer-cache reads:   3228 MB in  2.00 seconds = 1614.00 MB/sec
 Timing buffered disk reads:   74 MB in  3.07 seconds =  24.10 MB/sec

[ #215 73G SCSI x4 RAID 10 ]
Vendor: SEAGATE   Model: ST373455SS        Rev: 0002
Type:   Direct-Access                      ANSI SCSI revision: 05

/dev/sda:
 Timing cached reads:   8692 MB in  2.00 seconds = 4350.98 MB/sec
 Timing buffered disk reads:  718 MB in  3.01 seconds = 238.91 MB/sec

Labels: