2010年12月31日 星期五

只要十分鐘,快速優化 MySQL 資料庫 - 洪維謙老師的窩

只要十分鐘,快速優化 MySQL 資料庫 - 洪維謙老師的窩

2010年12月29日 星期三

Debian5 Lenny and MySQL Server 5.1.x | Abby and Win's Blog

Debian5 Lenny and MySQL Server 5.1.x | Abby and Win's Blog

Gallery 2 | Linux App Finder

Gallery 2 | Linux App Finder

2010年12月7日 星期二

ubuntu 10.04 加快更新 最快的更新源修改_E网情深_百度空间

ubuntu 10.04 加快更新 最快的更新源修改_E网情深_百度空间
ubuntu 10.04 加快更新 最快的更新源修改2010-06-08 13:161.sudo gedit /etc/apt/sources.list
编辑你的源列表,将原来的内容全部删除,添加下面列表中最适合你的源(注意不要全部添加),选择一个最合适你的即可,复制到你的列表中,然后保存列表。

2.sudo apt-get update 更新源列表信息
可以在运行“sudo apt-get update ”时查看一下错误信息,把不能连接的源删除再重新运行“sudo apt-get update ”。

3.sudo apt-get upgrade 升 级

或者用ubuntu自带的更新管理器升级也可
Ubuntu 10.04源列表:

台湾

代码:
deb http://tw.archive.ubuntu.com/ubuntu/ lucid main universe restricted multiversedeb-src http://tw.archive.ubuntu.com/ubuntu/ lucid main universe restricted multiversedeb http://tw.archive.ubuntu.com/ubuntu/ lucid-security universe main multiverse restricteddeb-src http://tw.archive.ubuntu.com/ubuntu/ lucid-security universe main multiverse restricteddeb http://tw.archive.ubuntu.com/ubuntu/ lucid-updates universe main multiverse restricteddeb-src http://tw.archive.ubuntu.com/ubuntu/ lucid-updates universe main multiverse restricted
SRT Sources

代码:
deb http://ubuntu.srt.cn/ubuntu/ lucid main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-security main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-updates main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-proposed main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-backports main restricted universe multiverse
网易(速度很快)

代码:
deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
ubuntu官方上海源,提供 Kernel,Hiweed,ubuntu

代码:
deb http://mirror.rootguide.org/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirror.rootguide.org/ubuntu/ lucid main universe restricted multiverse
deb http://mirror.rootguide.org/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirror.rootguide.org/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirror.rootguide.org/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirror.rootguide.org/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/ lucid-updates universe main multiverse restricted
搜狐

代码:
deb http://mirrors.shlug.org/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.shlug.org/ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.shlug.org/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ lucid-updates universe main multiverse restricted
骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin

代码:
deb http://ubuntu.srt.cn/ubuntu/ lucid main universe restricted multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid main universe restricted multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-security universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ lucid-updates universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-updates universe main multiverse restricted

2010年11月25日 星期四

ImageMagick 6.4.x on CentOS 5 | Andrew Duck

ImageMagick 6.4.x on CentOS 5 | Andrew Duck

在CentOS 5上安裝Git

現在都流行這個Git分佈式版本控制系統,我也在服務器上裝一個學一下.

首先安裝Git依賴的一些包.

yum install zlib-devel
yum install openssl-devel
yum install perl
yum install cpio
yum install expat-devel
yum install gettext-devel


接下來,如果你已經安裝過Curl了,那麼跳過這一步,沒有的話,就裝一下.

wget http://curl.haxx.se/download/curl-7.18.0.tar.gz
tar xzvf curl-7.18.0.tar.gz
cd curl-7.18.0
./configure
make
make install


確定一下ld.so.conf文件裡有/usr/local/lib,這個是為git-http-push準備的.

vi /etc/ld.so.conf
#插入下面的代碼
/usr/local/lib

保存文件,接著運行:

/sbin/ldconfig


最好,我們下載Git並安裝它

wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar xzvf git-latest.tar.gz
cd git-{date}
autoconf
./configure --with-curl=/usr/local
make
make install

這就是所有的安裝步驟,不算是太麻煩

2010年9月18日 星期六

快閃記憶體 SLC 與 MLC 的差別 - hanky and nekochan's blog

快閃記憶體 SLC 與 MLC 的差別 - hanky and nekochan's blog
最近好像太常碰到這個問題了, 就寫一篇文放著, 下次再遇到人問就丟這篇的URL給他看.

首先還是得先來一些關於快閃(flash)記憶體的預備常識:

快閃記憶體的用途目前最常見的就是: 記憶卡 (你的數位相機在用的), 隨身碟, 以及 SSD (固態磁碟機).
依其記憶單元的儲存技術, 可分為:
SLC: Single-Level Cell, 一個記憶單元只存放一個位元 (兩個狀態)
MLC: Multi-Level Cell, 一個單元可以存放多個電位狀態, 以 2 bits 為例就是 00, 01, 10, 11 四個狀態, 如此一來儲存密度較 SLC 高, 成本較低, 但速度就慢多了 <--- 我們不要太深究為什麼, 那是學電子的人才要去關心的事...我們暫時只需知道片面的結論就好. 讀完這一點, 你已經知道 SLC/MLC 不是牌子的名稱, 而是不同的技術名詞.

SLC 的壽命為 100,000 次的讀寫
MLC 的壽命為 10,000 次的讀寫
是的, 以同容量的 SLC 與 MLC 隨身碟相比, MLC 的價格大約才四分之一, 但壽命只有十分之一

Wear-leveling (損耗平均) 技術:
不管是 SLC 或 MLC 都有壽命上的問題, 所以如果有些記憶單元太常被讀取, 就會比其他記憶單元早很多步往生歸西. wear-leveling 就是要想辦法偷偷幫你搬家, 平均用掉這些記憶單元的壽命. 例如你家樓下有十個信箱筒, 有三個最常被使用, 怕說壞得比較快...樓下管理員就在半夜偷偷地把另外幾乎沒在用的三戶的信箱筒掉包...大概就是這樣的概念了. 等等, wear-leveling 當然是控制晶片 (樓下管理員) 在管的啦, 你有看過信箱 (記憶單元) 會自己搬家的嗎? 讀到這裏, 你應該更有概念了: 一隻 16G MLC 隨身碟的壽命, 不是一隻讀寫一萬次就完蛋了, 而是 [理想上] 有 16GB*10000 這麼長命; 觀念不在次數, 而在總資料流量. 160000GB 的資料流量, 給你三年的時間當分母好了, 全年無休地天天拷來拷去, 一天 146GB 耶!

多通道讀寫:
類似的名詞這幾年比較常見於主機板: 雙通道記憶體. 兩條RAM同時抓取資料, 在相同時間內抓到的資料量自然就是單條的兩倍 (廢話). 相同的觀念, 一樣可以用在快閃記憶體的控制晶片設計. MLC 比 SLC 慢這個常識這我們剛剛知道了, 但 "多通道 MLC 讀寫" 就可以和 "單通道 SLC 讀寫" 一較長短了... 決勝點就在於控制晶片. 當然...控制晶片本身也是成本之一, 搞得愈複雜就愈貴.

不是技術阿宅的人可能看到這裏就已經沒耐性再看下去了 (我有預先做過 reader's test 了哈哈)... 幸好你大概也只需要知道這麼多啦. 接下來就是 case study 了.

目前 (2008年11月) 市售已經罕有 SLC 的隨身碟了. 創見 JF168 16G (SLC) 的要價四千多塊. 而 16G MLC 隨身碟滿街都是, 最普通的大概一千元上下, 而像我買的 Corsair Voyager GT 16G 則是一千八左右, 速度仍略遜於 SLC 的隨身碟.

如果你比較在意 "寫入速度", 加上你真的比別人常常在用隨身碟搬大量資料 (例如影音圖檔什麼的), 那你可能得多花點錢投資購買 SLC 的隨身碟. 這並不是壽命上的考量. 如同我前一篇文寫過的, 除非你一天有 146G 的資料搬移量 (不管是讀或寫), 不然 MLC 16G 的隨身碟應該夠長命撐到你嫌它太小而買一隻大了八倍十六倍的新品 (屆時價錢可能也一樣在兩千塊以下). MLC 的另一個小問題就 "寫入比較有卡卡的感覺", 不若 SLC 那麼順暢, 尤其當你有一堆大大小小的檔案要寫來寫去的時候, 爛一點的 MLC 隨身碟就像喘不過氣來似的半死狀 (啊就慢啊~).

(待續)

2010年6月7日 星期一

phpmyadmin 出現關聯資料表的附加功能未能啟動解決方法

1.建立一個資料庫名稱:phpmyadmin


說明:先到phpmyadmin,建立一個名為"phpmyadmin"的資料庫



2.找到create_tables.sql

說明:檔案位址在phpmyadmin目錄中的scripts文件夾,就看到create_tables.sql檔案了
-------------------------------
-- --------------------------------------------------------
-- SQL Commands to set up the pmadb as described in Documentation.html.
--
-- This file is meant for use with MySQL 5 and above!
--
-- This script expects the user pma to already be existing. If we would put a
-- line here to create him too many users might just use this script and end
-- up with having the same password for the controluser.
--
-- This user "pma" must be defined in config.inc.php (controluser/controlpass)
--
-- Please don't forget to set up the tablenames in config.inc.php
--
-- $Id$

-- --------------------------------------------------------

--
-- Database : `phpmyadmin`
--
CREATE DATABASE IF NOT EXISTS `phpmyadmin`
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
USE phpmyadmin;

-- --------------------------------------------------------

--
-- Privileges
--
-- (activate this statement if necessary)
-- GRANT SELECT, INSERT, DELETE, UPDATE ON `phpmyadmin`.* TO
-- 'pma'@localhost;

-- --------------------------------------------------------

--
-- Table structure for table `pma_bookmark`
--

CREATE TABLE IF NOT EXISTS `pma_bookmark` (
`id` int(11) NOT NULL auto_increment,
`dbase` varchar(255) NOT NULL default '',
`user` varchar(255) NOT NULL default '',
`label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '',
`query` text NOT NULL,
PRIMARY KEY (`id`)
)
ENGINE=MyISAM COMMENT='Bookmarks'
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

-- --------------------------------------------------------

--
-- Table structure for table `pma_column_info`
--

CREATE TABLE IF NOT EXISTS `pma_column_info` (
`id` int(5) unsigned NOT NULL auto_increment,
`db_name` varchar(64) NOT NULL default '',
`table_name` varchar(64) NOT NULL default '',
`column_name` varchar(64) NOT NULL default '',
`comment` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '',
`mimetype` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '',
`transformation` varchar(255) NOT NULL default '',
`transformation_options` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`)
)
ENGINE=MyISAM COMMENT='Column information for phpMyAdmin'
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

-- --------------------------------------------------------

--
-- Table structure for table `pma_history`
--

CREATE TABLE IF NOT EXISTS `pma_history` (
`id` bigint(20) unsigned NOT NULL auto_increment,
`username` varchar(64) NOT NULL default '',
`db` varchar(64) NOT NULL default '',
`table` varchar(64) NOT NULL default '',
`timevalue` timestamp(14) NOT NULL,
`sqlquery` text NOT NULL,
PRIMARY KEY (`id`),
KEY `username` (`username`,`db`,`table`,`timevalue`)
)
ENGINE=MyISAM COMMENT='SQL history for phpMyAdmin'
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

-- --------------------------------------------------------

--
-- Table structure for table `pma_pdf_pages`
--

CREATE TABLE IF NOT EXISTS `pma_pdf_pages` (
`db_name` varchar(64) NOT NULL default '',
`page_nr` int(10) unsigned NOT NULL auto_increment,
`page_descr` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '',
PRIMARY KEY (`page_nr`),
KEY `db_name` (`db_name`)
)
ENGINE=MyISAM COMMENT='PDF relation pages for phpMyAdmin'
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

-- --------------------------------------------------------

--
-- Table structure for table `pma_relation`
--

CREATE TABLE IF NOT EXISTS `pma_relation` (
`master_db` varchar(64) NOT NULL default '',
`master_table` varchar(64) NOT NULL default '',
`master_field` varchar(64) NOT NULL default '',
`foreign_db` varchar(64) NOT NULL default '',
`foreign_table` varchar(64) NOT NULL default '',
`foreign_field` varchar(64) NOT NULL default '',
PRIMARY KEY (`master_db`,`master_table`,`master_field`),
KEY `foreign_field` (`foreign_db`,`foreign_table`)
)
ENGINE=MyISAM COMMENT='Relation table'
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

-- --------------------------------------------------------

--
-- Table structure for table `pma_table_coords`
--

CREATE TABLE IF NOT EXISTS `pma_table_coords` (
`db_name` varchar(64) NOT NULL default '',
`table_name` varchar(64) NOT NULL default '',
`pdf_page_number` int(11) NOT NULL default '0',
`x` float unsigned NOT NULL default '0',
`y` float unsigned NOT NULL default '0',
PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`)
)
ENGINE=MyISAM COMMENT='Table coordinates for phpMyAdmin PDF output'
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

-- --------------------------------------------------------

--
-- Table structure for table `pma_table_info`
--

CREATE TABLE IF NOT EXISTS `pma_table_info` (
`db_name` varchar(64) NOT NULL default '',
`table_name` varchar(64) NOT NULL default '',
`display_field` varchar(64) NOT NULL default '',
PRIMARY KEY (`db_name`,`table_name`)
)
ENGINE=MyISAM COMMENT='Table information for phpMyAdmin'
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

-- --------------------------------------------------------

--
-- Table structure for table `pma_designer_coords`
--

CREATE TABLE IF NOT EXISTS `pma_designer_coords` (
`db_name` varchar(64) NOT NULL default '',
`table_name` varchar(64) NOT NULL default '',
`x` INT,
`y` INT,
`v` TINYINT,
`h` TINYINT,
PRIMARY KEY (`db_name`,`table_name`)
)
ENGINE=MyISAM COMMENT='Table coordinates for Designer'
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

-- --------------------------------------------------------

--
-- Table structure for table `pma_tracking`
--

CREATE TABLE IF NOT EXISTS `pma_tracking` (
`db_name` varchar(64) collate utf8_bin NOT NULL,
`table_name` varchar(64) collate utf8_bin NOT NULL,
`version` int(10) unsigned NOT NULL,
`date_created` datetime NOT NULL,
`date_updated` datetime NOT NULL,
`schema_snapshot` text collate utf8_bin NOT NULL,
`schema_sql` text collate utf8_bin,
`data_sql` longtext collate utf8_bin,
`tracking` set('UPDATE','REPLACE','INSERT','DELETE','TRUNCATE','CREATE DATABASE','ALTER DATABASE','DROP DATABASE','CREATE TABLE','ALTER TABLE','RENAME TABLE','DROP TABLE','CREATE INDEX','DROP INDEX','CREATE VIEW','ALTER VIEW','DROP VIEW') collate utf8_bin default NULL,
`tracking_active` int(1) unsigned NOT NULL default '1',
PRIMARY KEY (`db_name`,`table_name`,`version`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;
-----------------------------------------------------------------------------



3.匯入create_tables.sql檔到phpmyadmin資料庫中



4.更改config.inc.php

說明:檔案在phpmyadmin目錄下,以下為更改數據



$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; // Database used for Relation, Bookmark and PDF Features

// (see scripts/create_tables.sql)

// - leave blank for no support

// DEFAULT: 'phpmyadmin'

$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; // Bookmark table

// - leave blank for no bookmark support

// DEFAULT: 'pma_bookmark'

$cfg['Servers'][$i]['relation'] = 'pma_relation'; // table to describe the relation between links (see doc)

// - leave blank for no relation-links support

// DEFAULT: 'pma_relation'

$cfg['Servers'][$i]['table_info'] = 'pma_table_info'; // table to describe the display fields

// - leave blank for no display fields support

// DEFAULT: 'pma_table_info'

$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords'; // table to describe the tables position for the PDF schema

// - leave blank for no PDF schema support

// DEFAULT: 'pma_table_coords'

$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages'; // table to describe pages of relationpdf

// - leave blank if you don't want to use this

// DEFAULT: 'pma_pdf_pages'

$cfg['Servers'][$i]['column_info'] = 'pma_column_info'; // table to store column information

// - leave blank for no column comments/mime types

// DEFAULT: 'pma_column_info'

$cfg['Servers'][$i]['history'] = 'pma_history'; // table to store SQL history

// - leave blank for no SQL query history

// DEFAULT: 'pma_history'

2010年5月11日 星期二

CentOS6.0安裝 Gallery2 相關資料

Gallery2.31 相簿安裝 影音轉換
PHP 5.3 on CentOS 5 Webtatic.com

RPM Search RedHat EL 5 php-eaccelerator-0.9.6.1-2.el5.remi.x86_64.rpm

兩個我常用的 CentOS Yum Repo
一. remiepel升級倉庫---> PHP MYSQL 等
 rpm -Uvh http://mirror01.idc.hinet.net/EPEL/5/x86_64/epel-release-5-4.noarch.rpm
 rpm -Uvh http://rpms.famillecollet.com/enterprise/5/remi/x86_64/remi-release-5-8.el5.remi.noarch.rpm
導入認證KEY
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi移除 mysql i386
/etc/init.d/mysqld stop 
yum erase mysql.i386

安裝升級php 與 mysql
yum --enablerepo=remi check-update
yum --enablerepo=remi upgrade php mysql mysql-server php-mysql php-devel php-gd php-mcrypt php-mstring

 /etc/init.d/mysqld start
設定密碼:mysqladmin -u root password '密碼'

如 mysql ,升級或安裝時,套件清單 都會出現相同名稱的兩套套件,差別只在 i386 與 x86_64 的差異,
若不管,直接輸入 y 安裝之後,一旦要啟動 mysql ,系統就會警告說有兩套 mysql 在系統中,無法啟動!這問題我在安裝 perl 的時候就發生過,結果 perl 就無法執行!

也許可以 rpm -qa grep mysql 確認一下系統上還有哪些 mysql 套件,是否不只是因為有同一版本的 i386 與 x64
或用 yum list mysql* 確認一下有哪些 mysql 套件

只需要在 yum.conf 加上一行過濾掉 i386, i686 的軟件包就可以了:

# vi /etc/yum.conf
[main]
...
exclude=*.i386 *.i686


二. rpmforge 升級倉庫 (另一個類似atrpms repository)---影音類如果是選擇以RPM先連上軟件倉庫最容易更新相關影音轉碼套件 ,CentOS 5.4默認的Repository裡找不到這些yum包,先安裝rpmforge這個Repository。很全很強大,近10000個軟件包

#32位:wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
#64位:wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
#rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
導入認證KEY
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
(若為CentOS6.xx 則 
   32位: http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

    x86_64 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
)

#yum --enablerepo=rpmforge check-update
修改 vi /etc/yum.repos.d/rpmforge.repo
enabled = 1 ==> enabled = 0
然後參照 Install ffmpeg, flvtool2, mplayer, mencoder and ffmpeg-php in Cpanel/CentOS安裝 Gallery2 電子相簿系統

需額外下載 Transcode Module 放到gallery2 module 目錄

以下方式一次安裝(除了ffmapeg 比較麻煩)
yum install --enablerepo=rpmforge ImageMagick netpbm netpbm-progs jhead ffmpeg ffmpeg-devel flvtool2 mplayer mencoder lame libogg libvorbis libtheora swftools amrnb amrwb transcode x264
How To Install FFmpeg, Mplayer, Mencoder, FFmpeg-PHP on CentOS 5.x Sohail Riaz, Linux and Open Source Blog

參考下列方式可以自行安裝較新套件奇想空 先教Server學轉片吧
Install ffmpeg, flvtool2, mplayer, mencoder and ffmpeg-php in Cpanel/CentOS L i j e e s h . I N
1. Open the file “/ffmpeg-php-0.6.0/ffmpeg_frame.c”
2. Replace all PIX_FMT_RGBA32 with PIX_FMT_RGB32 (vi:n1,n2s/PIX_FMT_RGBA32/PIX_FMT_RGB32)/g

Install ffmpeg ffmpeg-php and Audio Binaries on CentOS / RHEL System with Cpanel

(1)LAME (Lame Aint an MP3 Encoder)
(2)ffmpeg
ffmpeg-php extension ffmpeg-php

(3)FLVTool2

ImageMagick: Install from Binary Distribution

http://registerboy.pixnet.net/blog/post/24896148


Installing or Upgrading PHP 5.3.2
cd /root
rpm -ivh http://repo.webtatic.com/yum/centos/5/`uname -i`/webtatic-release-5-0.noarch.rpm
yum --enablerepo=webtatic install php
yum --enablerepo=webtatic install php-devel

yum-allowdowngrade 可以降级的插件:
allow downgrade for yum:
yum install yum-allowdowngrade
Add a line to yum.conf:
showdupesfromrepos=1
After that list all php packages:
yum list php
If php 5.2.8 is available, remove new one:
yum remove php
and install an old one:
yum --allow-downgrade install php-5.2.8


相關套件說明可參考這邊Install ffmpeg ffmpeg-php and Audio Binaries on CentOS / RHEL System with Cpanel


在php.ini裡有一些跟上傳檔案時有關的數值,

◦upload_max_filesize:
這是上傳單一檔案的大小限制,譬如我若允許上傳超過20MB的影片檔,那這數值就必須至少大於「20M」才可以。
◦post_max_size:
PHP允許一次上傳檔案的大小限制,譬如Gallery2要上傳檔案時,可以一次多個檔案上傳,若我一次要上傳2個15MB的影片檔,那麼這個數值就必須至少大於「30M」了。

這個 post_max_size 必須大於 upload_max_filesize
◦memory_limit:
執行每個scripts時使用的memory大小限制

這個 memory_limit 必須大於 post_max_size
這三個數值的大小,必須是 memory_limit > post_max_size > upload_max_filesize


布丁布丁吃什麼?: VNCserver初始設定與自動啟動



MYSQL
先將mysql的服務啟動
#chkconfig mysqld on
#service mysqld start


以下範例為將預設的空密碼改為"my1234"
#mysqladmin -u root password my1234
如果你是要將舊密碼改為"my1234"
#mysqladmin -u root -p password my1234
Enter password: <==這裡請輸入舊的密碼


phpMyAdmin
先到phpmyadmin的目錄裡面
#cd /var/www/html/phpMyAdmin
產生config.inc.php設定檔
預設是沒有這個檔案的,要先將config.sample.inc.php複製成config.inc.php
#cp ./config.sample.inc.php ./config.inc.php
將認證方式改為http或是cookie還有修改hostname



為方便MySQLDB操作(或許以經習慣使用phpMyAdmin來設定DB).

安裝時會有一些要處理的事項, 在此記錄.

PS: 此文大多搜集網路



1. phpMyAdmin網頁下載最新版本.

2. /etc/httpd/conf.d/, 新增phpmyadmin.conf

Alias /phpMyAdmin /var/www/phpMyAdmin

Order deny, allow

Deny From ALL

Allow From 192.168.0.



開啟 myphpadmin下的config.sample.inc.php

3.將 $cfg['Servers'][$i]['auth_type'] = 'cookie'; cookie改為 http,另存為 config.inc.php

4.重新啟動apache

service httpd restart




----------------------------------------------------------------------

I. 問題1

http://xxx/phpMyAdmin頁面出現

[code]

php 5.2+ is required

[/code]

因為php版本低於5.2

[code]

php -v

[/code]

@解決方式:

a. 安裝epel remi

(remi需要epel; 故先安裝epel, 再安裝remi)

[code]

wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

wget http://rpms.famillecollet.com/el5.i386/remi-release-5-8.el5.remi.noarch.rpm

[/code]

epel-release-5-4.noarch.rpmremi-release-5-8.el5.remi.noarch.rpm下載時可以查尋是否有最新版本

b. rpm安裝

[code]

rpm -Uvh epel-release-5-4.noarch.rpm

rpm -Uvh remi-release-5-8.el5.remi.noarch.rpm

[/code]

c. 指定remi套件, update phpmysql

[code]

yum --enablerepo=remi update php mysql

[/code]

重新啟動php, mysql

[code]

service httpd restart

service mysqld restart

[/code]



----------------------------------------------------------------------

II. 問題2

進入phpMyAdmin, 出現

未安裝mcypt, mstring

設定檔案現在需要密碼 (passphrase) (blowfish_secret).

@解決方式

a. mcryptmstring

[code]

yum --enablerepo=remi install php-mcrypt php-mstring



(若以下方式, 可能無法安裝)

yum install php-mcrypt

yum install php-mstring

[/code]

b. 設定檔案現在需要密碼

/var/www/phpMyAdmin/config.inc.php (可修改config.sample.inc.php)

修改

[code]

$cfg['blowfish_secret'] = '輸入一亂碼, cookie認證'

[/code]

重新啟動apache

[code]

service httpd restart

[/code]


2010年5月1日 星期六

QNAP TS-459 Pro Turbo NAS 添加中文 UTF8 locale (Gallery2)

新增購了一台NAS當LOCAL FTP SERVER,想說安裝Gallery2.3 來將原有B2D上的相簿轉移.
結果發現一直無法使用中文介面.打電話去QNAP線上支援得到回答是原廠內建都有,沒得請自己試試,一氣之下只好自己來,經過努力拜了G大神後,參考多方說法終於找到方法.
首先因為有些PHP模組是用locale模組方式來支援多國語言,當然Gallery2就是其中之一(即將正式發行的Gallery3就沒此困擾).而QNAP 的NAS(其實市面上很多NAS都是)本身locale 只有支援 US_utf8(用locale -a 驗證).所以要自己動手去增加zh_TW的utf8,這樣就能支援中文介面囉.下面簡述實作:
1.先下載Posix-locale文件
2. 解開後 將 \posix-locales\LOCALES\ 下的 zh_TW 與 zh_CN 拷貝到 NAS裡的 /usr/share/i18n/locales/ 目錄下
3. 下指令 localedef -cv -i zh_TW -f UTF-8 zh_TW.utf8
4. 用 locale -a 檢查 是否出現 Zh_TW

PS.1.QNAP NAS會在每次韌體升級之後,會重新寫入操作系統,所以此過程需要在每次升級版本的時候操作一次。
2.為了避免在UTF8編碼無效時,某些軟件(如MLDonkey)出現亂碼的問題,在操作/升級前,請先關閉所有的QPKG。




BigDump - 載入大檔案的sql檔到MySQL
mysql大數據轉移解決方案
QNAP TS-409 Pro添加中文UTF8 locale
解决中文化问题:安装locale模块教程
加入我們的 locale database

2010年4月28日 星期三

VMware Tools 安裝

VMware Tools Linux 安裝

ESXi_enable_SSH
ESXi 3.5 does ship with the ability to run SSH, but this is disabled by default (and is not supported). If you just need to access the console of ESXi, then you only need to perform steps 1 - 3.

1) At the console of the ESXi host, press ALT-F1 to access the console window.
2) Enter unsupported in the console and then press Enter. You will not see the text you type in.
3) If you typed in unsupported correctly, you will see the Tech Support Mode warning and a password prompt. Enter the password for the root login.
4) You should then see the prompt of ~ #. Edit the file inetd.conf (enter the command vi /etc/inetd.conf).
5) Find the line that begins with #ssh and remove the #. Then save the file. If you're new to using vi, then move the cursor down to #ssh line and then press the Insert key. Move the cursor over one space and then hit backspace to delete the #. Then press ESC and type in :wq to save the file and exit vi. If you make a mistake, you can press the ESC key and then type it :q! to quit vi without saving the file.
6) Once you've closed the vi editor, run the command /sbin/services.sh restart to restart the management services. You'll now be able to connect to the ESXi host with a SSH client.

Tip - with some applications like WinSCP, the default encryption cipher used is AES. If you change that to Blowfish you will likely see significantly faster transfers.

Update for ESXi 3.5 Update 2 - With Update 2 the service.sh command no longer restarts the inetd process which enables SSH access. You can either restart your host or run ps grep inetd to determine the process ID for the inetd process. The output of the command will be something like 1299 1299 busybox inetd, and the process ID is 1299. Then run kill -HUP (kill -HUP 1299 in this example) and you'll then be able to access the host via SSH.

You can also download an oem.tgz file which will enable SSH (and FTP). Copy the file to a datastore with the VI client and then to bootbank with the command cp /vmfs/volumes//oem.tgz /bootbank/oem.tgz and then reboot.


How to Update ESX Server With ESXUPDATE

Download | 1n73r.net

A couple cool browser plugins Colliris
Download 1n73r.net

Install

希子部落格(Seize Blog) » Gallery2: 免費網路藝廊的下載、解壓、上傳到伺服器主機(Server)、安裝與使用

希子部落格(Seize Blog) » Gallery2: 免費網路藝廊的下載、解壓、上傳到伺服器主機(Server)、安裝與使用

2010年4月23日 星期五

OEMScan - Automated Multi Manufacture Pre-Activation Utility written by xehqter

OEMScan - Automated Multi Manufacture Pre-Activation Utility written by xehqter

For OEMBIOS files and SLP ID's check out Bazalel's OEMBIOS repository:


For Multi-Manufacture Activation Discussion

New Award BIOS tool for performing SLIC Insertion/Modification

New Award BIOS tool for performing SLIC Insertion/Modification
[汉化] Award 自助修改工具 AwardTool 1.34 (2010.02.26) - AWARD SLICTool & AMI SLICTool - BIOS之家原创&汉化软件区 - BIOS之家论坛 - Powered by Discuz!

技嘉主板刷黑后最简单的恢复办法(双bios主板有效),绝对迅速 - 技嘉 BIOS技术部 - BIOS之家论坛 - Powered by Discuz!


重點:接通針腳後開機,點亮後進入覆寫界面即可鬆開,否則自動恢復系統無法將備份BIOS寫入MAIN BIOS ROM!
根據各位主板型號的不同,BIOS布線也會不同,不過只需注意一點,BIOS ROM周圍會畫上一個類似電池樣子的白線,凸出的那面就是1、8針腳。

技嘉主板刷黑后最简单的恢复办法(双bios主板有效),绝对迅速 - 技嘉 BIOS技术部 - BIOS之家论坛 - Powered by Discuz!
2009年3月9日購入技嘉770-ds3p2.0主板,今天自己改BIOS準備裝vista。用網上的軟件無法打開無後綴的bios文件,只好自己把後綴改成bin後修改,軟件提示是成功了。但是刷入主板後——黑。因為在保期內,於是開車飛奔至售後,把維護人員一番忽悠,換了塊新主板。拿回家繼續開工,又黑之……覺無臉再拿去忽悠了(也實在沒第二個好的理由了)。抓破腦袋、把以前的軟驅、光驅統統接上,還是無法點亮。暴怒。忽然回想主板是雙BIOS,於是翻出鑷子,造main bios的短路。這裡我的本意並不是這樣,因為我想既然有兩個BIOS ROM,那麼我設想的是當主BIOS因為被我短路了而進入無法讀取狀態,這樣主板可能會從備份BIOS ROM上進入BIOS界面。很幸運方法果然奏效,成功短路並啟動bios的自動恢復。注意,一定要在main bios上造短路,不要把back up bios弄短路了!(可能其他型號的板型在走線上會有不同,那麼我們碰到這種情況,第一不要慌張,第二要耐心。要知道,總有2根針腳接通後可以造成短路的,至於是哪2根,那就需要你仔細的去動手了,放心,主板不會壞!)

技嘉的dual bios技術的原理很簡單,在main bios能啟動的情況下,backup bios不會對bios進行檢測。只有當main bios出現故障(這個故障一般是軟件故障)才會從backup bios進行對main bios的覆寫(注意,是覆寫,而不是從backup bios進行啟動)。

因為一開始我也認為是把bios改出問題了,但拿到售後,維護人員一檢測,我心裡就有底了,因為Bios Rom是好的(再說現在技術條件下硬件載體也不大可能壞),只是無法順利啟動,偵錯卡始終按C1-EF-F4無限循環運動(這裡我們簡稱為「死循環」吧,反正症狀就是蜂鳴器不響、風扇照轉,反覆不停重啟-斷電-重啟……)。當我第二次刷黑後,也小驚了一下,還在琢磨第二天怎麼再拿去忽悠維護人員。反正一想離天亮還有10來個小時,不如自己鼓搗鼓搗,結合主板放電原理,終於在不經意間成功點亮主板進入bios設定。但是設定完後又進入了main bios的死循環,反覆測試8個針腳後,終於找到能造成短路的針腳連接。開機,點亮,檢測main bios,主板認為Main bios無法啟動(其實是人工短路),鬆開短路,進入backup bios覆寫界面(屏幕上顯示main bios Rom正在從backup bios Rom進行抄寫,注意:如果進入覆寫界面後沒有及時鬆開短路,那麼將無法覆寫,因為我也操作了2次才得出的結果),寫入完畢後主板重啟,進入bios設定界面,改好後順利進入系統。因為從邏輯上來考慮,既然雙BIOS的設計原意就是指M bios無法啟動而從B bios上copy,那麼我們跳過所有的黑屏原因,直接讓主板認定M bios無法啟動不就行了麼?。我為什麼在文章中寫到我點亮2次後才成功呢,因為第一次我設想的是雙BIOS會從完好的那個BIOS中啟動,直到進入copy界面,我才明白原來是這麼個恢復方式,因此第一遍我從頭到尾都是讓M bios短路的,所以即便到了copy界面,也無法寫入(短接ing肯定是無法寫入的嘛),第2次才在copy界面鬆開了短路,於是寫入成功。

另外論壇一些同學提出的按重啟鍵、取電池等等方式本人並不認同,因為這些方式只是單純的清空COMS設定,而COMS是主板BIOS內的一種設定項,因此清空COMS不等於清空BIOS。

引用下340樓同學的電路元件理論:SPI BIOS芯片的工作原理,就會知道為啥要短接1、8腳。實際上該芯片1腳為片選信號,低電壓為選中,第8腳是Vcc,短接1、8腳則使1腳電壓為高電平,即不選中該芯片,此時開機,才會選中雙BIOS芯片中的另一片備用BIOS芯片。

dmiscope,win环境下修改dmi安装oem xp

dmiscope,win环境下修改dmi安装oem xp

2010年4月19日 星期一

Bios Mods

Bios Mods

用Phoenix BIOS WinPhlash備份文件刷BIOS,改開機LOGO - ASGARD - bewanted2008 - 和訊博客

用Phoenix BIOS WinPhlash備份文件刷BIOS,改開機LOGO - ASGARD - bewanted2008 - 和訊博客


用過Phoenix BIOS WinPhlash 的都知道,Phoenix BIOS WinPhlash 備份出來的BIOS文件是無法用Phoenix BIOS pro打開的,用Phoenix BIOS pro打開備份文件會提示:“文件長度錯誤”對話框,雖然在widows下看屬性大小是一樣的,但就是無法打開。那該怎麽修改bios裏的開機畫面?­

下面介紹一種方法:­

用UltraEdit-32打開Phoenix BIOS Editor備份的本機BIOS文件,與網上下載的同類電腦的其它BIOS,經過細心對比發現在地址000ffff0h前的內容是一樣的,而在000ffff0h後BIOS文件發生了變化。
把能打的BIOS文件000ffffoh下面的內容復制,貼到備份文件相同位置上,然後保存文件。就能用Phoenix BIOS Editor可以打開備份文件了,用Phoenix BIOS Editor修改開機LOGO,點Phoenix BIOS Editor上的綠色圖標就可以改了。這個網上有很教程就不作介紹了。修改好了用Phoenix BIOS WINPFLASHN刷進去就ok了,使用Phoenix BIOS WinPhlash 時註意點高級選項,把只有新版本才能刷的勾去了,然後在DMI選項中選根據自己的需要選怎麽刷,如果要改開機LOGO選項中一定要有刷BIOS。
Phoenix BIOS Editor

Windows 7 大量部署 MDT 2010 Step By Step

Windows 7 大量部署 MDT 2010 Step By Step

2010年4月18日 星期日

Corden's Blog

Corden's Blog

VMware converter 4.0 使用心得 (P2V) - Part2
上禮拜遇到的問題都解決了!(樂~)

主要是有一台Windows 2000的機器,原先不能移轉,後來發現converter在轉好硬碟後,最後的 reconfigure 步驟會失敗。這時只要使用converter提供的 Reconfigure Machine功能再做一次reconfigure就OK。但是這VM開機後,會一直找到 PCI to PCI Bridge 的裝置,你允許他安裝driver後,他又會再找到一個,永遠都按不完。這時看裝置管理員,裡頭真的有一堆這種裝置,這現象像是陷入迴圈(loop)一樣。

後來上google查了一下,原來也有很多人遇到這鳥問題。解決方式是修改VM的配置檔(*.vmx)。修改步驟:


Power off VM
下載該VM的 *.vmx 檔案
使用文字編輯器開啟 *.vmx,把 pciBridge0.present = "true" 改成 pciBridge0.present="FALSE"
刪除其他有pciBridge開頭的參數(整行都刪除!)
上傳 *.vmx
Power on VM
以上步驟若會使用ssh連進esx系統,那就直接編輯vmx就好啦!

另一個問題是,之前做Windows2000 P2V兩台,在設定VM的硬碟時,我需要 resize硬碟。當設定就緒,開始移轉就會失敗,會出現「Format C」失敗。這問題可以用重新移轉方式解決。也就是先不要去改硬碟size,等移轉成功後,再從VM移轉一次。這樣就可以resize硬碟了。
為甚麼要 resize?都是因為客戶的機器C槽爆了,而且這系統沒人有把握重裝他(維護廠商不見了),所以只好寄望VM可以一勞永逸了!


VMware converter 4.0 使用心得 (P2V)
前兩個禮拜都在做VMware P2V的移轉。使用的是VMware converter 4.0。最近一次做P2V應該是一年前的是了,那時是幾版的我也忘了。沒想到這次使用新版的就遇到移轉失敗。一開始測試實機是Windows XP,移轉後無法開機。使用XP Install CD做修復時,可以看到硬碟,但是就是無法找到硬碟。(BIOS完後,就一片黑)



上網找了資料,原來VMware早就有對策!他建議移轉Windows應該依照作業系統來選擇Bus Type:
For Windows XP, choose Bus Logic.
For Windows 2003, choose LSI Logic.
For Windows 2008, choose LSI Logic SAS.

Windows 2000,比照XP囉!這樣移轉後,硬碟都沒問題,起碼都會進入開機畫面。不過,還是有些實體機器本身就已經病入膏肓了,移轉後就一身病。像是遇到一台C碟只剩不到100MB的空間,移轉一直不順利,後來USER努力刪除檔案,讓剩餘空間達到500MB,這時候可以移轉進行到97%,硬碟都轉到VM去了,剩下步驟是要reconfigure,這動作失敗後,去VM開機,他會出現disk inaccessable的藍底白字。



後來這台九怪的機器移轉時,我特別去選擇不要reconfigure,讓移轉順利完成。然後再用VMware converter 4裡面的Configure Machine做一次reconfigure,這樣就成功了。機器都100%移轉了,可是還是有怪現象,就是這VM一直會找到一個PCI-to-PCI Bridge(名字有點忘了,有PCI bridge字眼就是了)的設備,然後讓他安裝driver後,他又會再找到一個,就這樣陷入無窮迴圈一樣。


另一個Windows2000的限制是在移轉時,無法重新配置硬碟空間。Windows 2003以後的都沒提,就是這Windows2000,自己去配置disk size後,移轉就會出錯,說他無法「format C」。客戶一直魯說要增大硬碟,不然移上去也沒用。其實只要先從實體機器去做partition resize就好了說....

底下是修復Windows硬碟或開機問題的資訊:

障礙排除:
1. Cannot boot or start a converted virtual machine(VMKB)
2. Repairing boot sector problems in Windows NT-based operating systems(VMKB)

以 Windows XP 建立 NTFS 或 FAT 磁碟分割的開機磁片(MSKB)

使用Windows安裝開機修復:
1. 開機後按 R(修復主控台)
選擇Windows安裝目錄,輸入管理者密碼
2. 取得shell後
fixmbr
fixboot
chkdsk c: /p
dir \ (確認 ntldr, NTDETECT.COM兩個檔案在,沒有就從d:\i386\複製過去)
boot /rebuild
輸入開機識別,指的是一個名稱
輸入OS版本,若是XP or 2003輸入 /fastdetect,其他OS直接按enter
exit
作者:小園丁發表: 星期一, 四月 05, 2010 標籤: IT 此文章的連結
0 意見
Solaris 10 網卡 Trunk 設定
Solaris10開始,不用再使用額外的軟體來做網卡Trunk設定了。他支援LACP標準協定,只要透過dladm即可完成Trunk設定。Sun在三年前開始,機器不管是SPARC or X86架構,都會內建4 port網卡,以下以T5120 4 port 1Gbps網卡設定為說明:

1. 要設定NIC2 and NIC3 為 aggregation要先把 e1000g2 and e1000g3 unplumb
也就是 ifconfig -a,不會看到 e1000g2 and e1000g3

2. 下指令 dladm show-link 確定都看到 e1000g2, e1000g3

3. 建立 aggregation
# dladm create-aggr -d e1000g2 -d e1000g3 5
這樣會建立出 aggr5 的網路介面

4. 設定網路
手動設定:
# ifconfig aggr5 plumb
# ifconfig aggr5 192.168.1.1 netmask 255.255.255.0 up
開機設定檔:
/etc/hostname.aggr5
(以上就不多說了,反正aggr5就當作是一個網路介面使用就是了!)

上面建立aggregation使用預設參數,其中-P 是採用L4,
L2是mac,L3是IP。其餘詳細參數請參閱 man dladm。

PS:switch上也要做trunk設定!

2010年4月15日 星期四

行软之家论坛 行业软件交流 |管家婆|速达|金蝶|用友|超市|ERP|CRM|OA|HR|财软|免费|破解|补丁|注册机 - Powered by Discuz!

行软之家论坛 行业软件交流 管家婆速达金蝶用友超市ERPCRMOAHR财软免费破解补丁注册机 - Powered by Discuz!

行软之家论坛 行业软件交流 |管家婆|速达|金蝶|用友|超市|ERP|CRM|OA|HR|财软|免费|破解|补丁|注册机 - Powered by Discuz!

行软之家论坛 行业软件交流 管家婆速达金蝶用友超市ERPCRMOAHR财软免费破解补丁注册机 - Powered by Discuz!

http://www.hrzj.org/?fromuid=108134

Jamyy's Weblog: PuTTY - SSH Tunnel 運用備忘

Jamyy's Weblog: PuTTY - SSH Tunnel 運用備忘
Jamyy's Weblog: L7-filter 安裝實錄

讀寫均超1GB/s PhotoFast怪獸級固態硬盤評測 - Hugo是雨果不是愚狗,有問題就問我弟-顧狗(Google) - Yahoo!奇摩部落格

讀寫均超1GB/s PhotoFast怪獸級固態硬盤評測 - Hugo是雨果不是愚狗,有問題就問我弟-顧狗(Google) - Yahoo!奇摩部落格

2010年4月13日 星期二

德瑞克:SQL Server 學習筆記: 架設網域控制站:Windows Server 2008

德瑞克:SQL Server 學習筆記: 架設網域控制站:Windows Server 2008

一行指令,Windows 7筆電變AP | T客邦

一行指令,Windows 7筆電變AP T客邦

1. 打開命令輸入視窗,輸入「cmd」(不含括號)之後,同時按下鍵盤上的Ctrl+Shift+Enter,這是為了以管理員模式開啟終端機視窗,Windows環境下的正確名稱是命令提示字元。


2. 這時候終端機視窗就會打開了,請輸入

「netsh wlan set hostednetwork mode=allow ssid=你要的名稱 key=密碼」

3. 再輸入「netsh wlan start hostednetwork」

4.如果上一步執行後出現的訊息是「已啟動主控網路」,那麼請回到桌面,按一下右下方的網路狀態圖示,並點擊「開啟網路和共用中心」
5. 這時候,你應該會在「檢視作用中的網路」頁框裡,看到剛才建立的無線網路名稱。點擊一下右邊的「無線網路連線」。
按下「內容」。
6. 在「共用」頁框裡,把「允許其它網路使用者透過這台電腦的網際網路連線來連線」打勾,然後再把下方的「允許其它網路使用者來控制或停用網際網路連線」取消勾選,接著按下確定。
7. 基本上到這裡,你的筆電已經變成一個基地台了,我們來看看連不連得上。以iphone為例,點一下「設定」。

Windows 7 暗黑密技:上帝模式 (列出所有控制台項目)

Windows 7 暗黑密技:上帝模式 (列出所有控制台項目)

2010年4月11日 星期日

Windows Server Core - CoreConfigurator to the rescue - Windowmaker's blog

Windows Server Core -HYPER-V SERVER 2008 好用的Server Core GUI管理工具-CoreConfigurator 's blog

DownLoad form http://coreconfig.codeplex.com/Wikipage

Athkai 悠閒ING~ - Mbps ? Kbps?MB/s?KB/s?

Athkai 悠閒ING~ - Mbps ? Kbps?MB/s?KB/s?

Mbps ? Kbps?MB/s?KB/s?
bps 是什麼,bps 是 bit per second 的縮寫,意思是「位元/秒」
bit,常以「b」表示。電腦傳輸資料的最小單位,也就是一個「0」或一個「1」

bit, 位元,常以「b」 表示。
Byte,一個位元組,常以「B」 表示, 8 bit = 1 Byte
Kilo Byte,一千位元組,常以「KB」表示,1024 B = 1 KB
Mega Byte,百萬位元組,常以「MB」表示,1024 KB = 1 MB
Giga Byte,十億位元組,常以「GB」表示,1024 MB = 1 GB

換算一下大家常見的乙太網路速度規範: 10Mbps, 100Mbps, 1Gbps.
10Mbps = 1280 KB/s = 1.25 MB/s
100Mbps = 12800 KB/s = 12.50 MB/s
1000Mbps = 128000 KB/s = 125.00 MB/s (1Gbps)

換算一下 USB 1.1 的速度: 12Mbps
12Mbps = 1536 KB/s = 1.50 MB/s

換算一下 USB 2.0 的速度: 480Mbps
480Mbps = 61440 KB/s = 60.00 MB/s

預計可能 USB 3.0 的速度: 480Mbps
4.8Gbps = 614400 KB/s = 600.00 MB/s

而 Digital Video...等利用 IEEE1394 的設備為:
http://zh.wikipedia.org/wiki/IEEE_1394
FireWire 400
400Mbps = 51200 KB/s = 50.00 MB/s
FireWire 800
800Mbps = 102400 KB/s = 100.00 MB/s
S1600
1.6Gbps = 204800 KB/s = 200.00 MB/s
S3200
3.2Gbps = 409600 KB/s = 400.00 MB/s

IDE的速度為:
ATA 1 66 = 67584 KB/s = 66.00 MB/s
ATA 2 100 = 102400 KB/s = 100.00 MB/s
ATA 3 133 = 136192 KB/s = 133.00 MB/s

目前 Serial ATA的速度為:
SATA I = 153600 KB/s = 150.00 MB/s
SATA II = 307200 KB/s = 300.00 MB/s

2010年4月8日 星期四

如何在網域環境下管理Hyper-V伺服器 (一) | 蘇老碎碎唸

如何在網域環境下管理Hyper-V伺服器 (一) 蘇老碎碎唸

如何在網域環境下管理Hyper-V伺服器 (二) 蘇老碎碎唸

如何在網域環境下管理Hyper-V伺服器 (三) 蘇老碎碎唸

如何在網域環境下管理Hyper-V伺服器 (三) 蘇老碎碎唸

Hyper-V Remote Management Configuration Utility - Release: HVRemote Version 0.7

降低管理微软Hyper-V成本 五大最佳免费工具推荐 - 51CTO.COM

降低管理微软Hyper-V成本 五大最佳免费工具推荐 - 51CTO.COM

Jerry_IT資訊技術手札 - Windows 7 的遠端伺服器管理工具~包含Hyper-V遠端管理工具(KB958830)

Jerry_IT資訊技術手札 - Windows 7 的遠端伺服器管理工具~包含Hyper-V遠端管理工具(KB958830)

如何提取hyper-v的驱动程序 - xmuxsp - 51CTO技术博客

如何提取hyper-v的驱动程序 - xmuxsp - 51CTO技术博客

Mike's Blog, or how I learned to love the virtual machine... : Using the Hyper-V Integration Components in WinPE

Mike's Blog, or how I learned to love the virtual machine... : Using the Hyper-V Integration Components in WinPE

WinPE 管理 Hyper-V

VHD tool - Home

VHD tool - Home
VhdTool.exe /create [/quiet]
VhdTool.exe /convert [/quiet]
VhdTool.exe /extend [/quiet]
VhdTool.exe /repair [/quiet]

Create: Creates a new fixed format VHD of size .
WARNING - this function is admin only and bypasses
file system security. The resulting VHD file will
contain data which currently exists on the physical disk.

Convert: Converts an existing RAW disk image file to a fixed-format VHD.
The existing file length, rounded up, will contain block data
A VHD footer is appended to the current end of file.

Extend: Extends an existing fixed format VHD to a larger size .
WARNING - this function is admin only and bypasses
file system security. The resulting VHD file will
contain data which currently exists on the physical disk.

Repair: Repairs a broken Hyper-V snapshot chain where an administrator
has expanded the size of the root VHD. The base VHD will be
returned to its original size. THIS MAY CAUSE DATA LOSS if the
contents of the base VHD were changed after expansion.

安裝Virtual Machine Manager 2008 VMM 伺服器 « 獨自生活

安裝Virtual Machine Manager 2008 VMM 伺服器 « 獨自生活

無限空間免費分享 VSPACE.CC

無限空間免費分享 VSPACE.CC

QNAP NAS Community Forum • View topic - [HOWTO] Guideline for installation of Gallery 2

QNAP NAS Community Forum • View topic - [HOWTO] Guideline for installation of Gallery 2

gallery2_move

gallery2_move

「Did you know ?(你知道嗎?)」第1-4版中文字幕版足本收錄 | iGarden - NSS ICT Education Blog

「Did you know ?(你知道嗎?)」第1-4版中文字幕版足本收錄 | iGarden - NSS ICT Education Blog

將B2D、Lifetype、gallery2安裝在64位元新電腦

將B2D、Lifetype、gallery2安裝在64位元新電腦

YouTube - 超感人的泰國人生保險廣告

YouTube - 超感人的泰國人生保險廣告