2013年8月3日 星期六

轉載 NAS1 Only - DS3612xs DSM 4.2-3211++ x64 (2013_07_06 版) - nas组装diy专区 - 第一纳斯网 - Powered by Discuz!.htm

本帖最后由 odie82544 于 2013-7-6 06:45 编辑

1. 请先看清楚每一个挡案的权限
2. 不要在本帖灌水

===================================
仅支持 Intel 平台
这是徒弟来交作业的版本, 基本上与 2013/06/05, 2013/06/22 版一样, 重复的就不写了, 请自行参考以下:
http://www.nas1.cn/forum.php?mod=viewthread&tid=64571&extra=page%3D1
http://www.nas1.cn/thread-65352-1-1.html

以下是 0601/0605/0622/0706 版本差异
Version_Compare_Table.jpg (204.16 KB, 下载次数: 5)
2013-7-6 01:08 上传

====================================================
本版主要特色与修正:
1. MAC 1-8 网卡地址改为抓取真实地址
2. 优化无 AX88179_178A 硬件于开机时后启动速度
3. 进版 Intel i350 网卡蕊片驱动 (及支持更多新网卡)
4. USB 蓝芽于每次开机后自动载入
5. 捨弃 vender 文挡
6. USB 盘开机后自动载入

====================================================

更新方法有两种: 1. 使用 SA 更新 / 2. 使用 DSM Web 更新
全新安装相信大家都会的, 以下只说明如何从 06/22 版更新到 07/06 版

共同具体方法:

A0. 把原先 DSM 先降版   1. 使用 telnet 或 ssh 登入 DSM 背景, 然后更改 /etc.defaults/VERSION 版本, 指令: vi /etc.defaults/VERSION
       如果都不懂, 就依照下图做
   2. 在 vi 中按 i , 然后移动游标把图中 minorversion 的 2 改成 1, 再把 buildnumber 的 3211 改成 1000
   3. 按 esc, 然后按 : , 再输入 wq, 最后後按 enter 存挡离开 vi


开始更新: (B1 与 B2 两种方法都可以更新, 爱用哪一种自己选)

B1.  方法一: 使用 SA Web
   1. 使用 DS3612xs_3211-20130706.img 刷新 U 盘
   2. 使用 刷新过的 U 盘开机
   3. 如果你的 U 盘不是 Sandisk CZ33, 选择以下开机画面 "DSM Install or Upgrade" , 如果是 Sandisk CZ33 则任选开机
   4. 使用 SA 搜寻你的机器, SA 将会出现可移转信息
   5. 使用 Web 功能更新, 剩下的都与 06/22 全新安装时候一样





07.jpg (32.14 KB, 下载次数: 3)
2013-7-6 01:14 上传



B2. 方法二: 使用 DSM Web
   1. 开启 DSM 中的系统更新
   2. 手动载入 DS3612xs_3211-20130706.pat
   3. 按确定后开始系统更新






====================================================
ax88179 蕊片之 USB 3.0 10/100/1000M 网卡之使用说明:

虽然这是 USB 网卡, 但没打算让你拔来拔去的用, 一般来说, 开机前插好, DSM 启动后即可使用
在 DSM 开机后才插入 ax88179 则有以下使用限制:

1. 如果你真的很爱插拔, 那必须进入 telnet 下使用以下批次更新 IP
   /etc/rc.network restart
2. 使用 SA 重新找寻 DSM IP
====================================================
下载: 
 DS3612xs_3211-20130706_China_Edition.part01.rar (10 MB, 下载次数: 925) 
 DS3612xs_3211-20130706_China_Edition.part02.rar (10 MB, 下载次数: 565) 
 DS3612xs_3211-20130706_China_Edition.part03.rar (10 MB, 下载次数: 531) 
 DS3612xs_3211-20130706_China_Edition.part04.rar (10 MB, 下载次数: 530) 
 DS3612xs_3211-20130706_China_Edition.part05.rar (10 MB, 下载次数: 515) 
 DS3612xs_3211-20130706_China_Edition.part06.rar (10 MB, 下载次数: 463) 
 DS3612xs_3211-20130706_China_Edition.part07.rar (10 MB, 下载次数: 424) 
 DS3612xs_3211-20130706_China_Edition.part08.rar (10 MB, 下载次数: 388) 
 DS3612xs_3211-20130706_China_Edition.part09.rar (10 MB, 下载次数: 420) 
 DS3612xs_3211-20130706_China_Edition.part10.rar (10 MB, 下载次数: 393) 
 DS3612xs_3211-20130706_China_Edition.part11.rar (10 MB, 下载次数: 382) 
 DS3612xs_3211-20130706_China_Edition.part12.rar (10 MB, 下载次数: 426) 
 DS3612xs_3211-20130706_China_Edition.part13.rar (10 MB, 下载次数: 403) 
 DS3612xs_3211-20130706_China_Edition.part14.rar (10 MB, 下载次数: 400) 
 DS3612xs_3211-20130706_China_Edition.part15.rar (10 MB, 下载次数: 403) 
 DS3612xs_3211-20130706_China_Edition.part16.rar (10 MB, 下载次数: 373) 
 DS3612xs_3211-20130706_China_Edition.part17.rar (10 MB, 下载次数: 387) 
 DS3612xs_3211-20130706_China_Edition.part18.rar (3.51 MB, 下载次数: 293) 

2013年7月16日 星期二

在 AppServ 安裝 ImageMagick 支援 PHP (PHP 5.2.x 版本) 教學 AppServ Based Install ImageMagick for PHP 5.2.x on Windows

在 AppServ 安裝 ImageMagick 支援 PHP (PHP 5.2.x 版本) 教學 AppServ Based Install ImageMagick for PHP 5.2.x on Windows

2013年2月17日 星期日

在 iPad 上使用 Unblock Youku 觀看大陸網站影片

由於版權等方面的原因,優酷土豆等網站上的很多視頻僅限中國大陸用戶觀看,這對身處國外的華人來說很不便。Unblock Youku 是我之前介紹的一個 Chrome 瀏覽器擴展程序,可以用來解除地域限制,使得海外用戶也能訪問國內的視頻網站觀看電影劇集。隨著蘋果 iPad 平板電腦等設備的普及,使用 iOS 設備觀看大陸影片的需求越來越多,而這些設備上是無法使用 Unblock Youku 插件的。為了解決這個問題,我們可以設置瀏覽器的 proxy 代理。Unblock Youku 目前實驗性地提供了一個代理自動配置 PAC 文件,非常簡單方便。

一、代理設置

簡單來說,只用給瀏覽器或者 iOS 設備設定一個代理自動配置 PAC (proxy auto-config) 文件就可以了。PAC 文件的地址為
http://yo.uku.im/proxy.pac

iOS 設備可以在當前使用的 WiFi 的高級選項里設置 HTTP 代理。如下圖所示
iPad 上 Unblock Youku 中國大陸代理設置
iPad 上 Unblock Youku 中國大陸代理設置

二、Firefox 和 IE 設置 Unblock Youku 代理

PAC 自動代理配置的方法比較通用,也可以用在 Firefox 和 IE 瀏覽器上。如果你習慣使用這些瀏覽器,那麼可以參考下面的截圖設定。
Firefox Unblock Youku設置
Firefox Unblock Youku設置
IE Unblock Youku 設置
IE Unblock Youku 設置
不過因為技術上的原因,這種代理模式功能比較受限,實際不能解封太多的網站。需要更加全面的功能還是建議使用 PC 上的 Chrome 瀏覽器。

三、檢查代理設置是否成功

按照上面的步驟設置之後,可以在瀏覽器中打開頁面 http://ipservice.163.com/isFromMainland
如果頁面顯示的是 true,便說明代理設置完畢,例如下圖中的結果
中國大陸IP地址檢測
中國大陸IP地址檢測

四、自己架設代理伺服器

因為代理伺服器資源有限,歡迎技術達人嘗試運行自己的伺服器。詳細教程請訪問 Github Wiki 頁面
本文直接轉載自 Github 上的 Unblock Youku 開發者文檔。

2012年12月15日 星期六

ACPI problem when debian starts

ACPI problem when debian starts

Here is stuff to play with if your patient, if you find what ailes you please post the solution here.
From: http://www.columbia.edu/~ariel/acpi/acpi_howto.txt
22. Boot parameter reference

acpi=force
If you built your kernel with acpi disabled, you can use this option
to force its use.

acpi=off
If you built your kernel with ACPI enabled, you can use this option
to turn it off (in case you'd rather use APM, it interferes with
something else, or it's just plain broken).

acpi=ht
Enable ACPI only to the degree needed to support hyperthreading. If
you don't want to use most of the ACPI driver, but you want
hyperthreading working, use this option so that the ACPI tables will
be used for virtual processor discovery.

acpi=strict
Be anal about syntax and method requirements in ACPI tables provided
by the vendor; if you turn this on, you can find potential problems
with your DSDT that may not show up by other means.

acpi_sleep=s3_bios
If this boot parameter is passed, upon wake from suspend, the kernel
will try to initialize your video adapter by calling code at
c000:0003h. In practice, this code may no longer be available after
power on, so your system may crash. But for some people, this is the
only way to get suspend to RAM to work. Use with caution.

acpi_sleep=s3_mode
Upon wake from suspend, the kernel will set the video adapter mode to
the mode it was in before suspend, using the VESA BIOS mode set call
(0x4f02). Use this if your system can get back to VGA text mode from
suspend, i.e. it suspends ok from a text console, but doesn't work
from X. This could crash your system so use with caution.

acpi_sleep=s3_bios,s3_mode
On some systems that require acpi_sleep=s3_bios, the system will be
left in VGA text mode and so you'll need to do s3_mode as well.

acpi_sci=level|edge|high|low
Set ACPI System Control Interrupt trigger mode; it's very unlikely
that you'll need this, as SCI handling has been stable for some time.
However, if you have a prerelease BIOS, and you see messages in your
log about unrecognized SCIs, try using one of these settings. [If
someone who has to use this option would contact me, I'll add a
better description.]

acpi_irq_balance
ACPI will balance active IRQs to minimize sharing. This is the
default in APIC mode.

acpi_irq_nobalance
ACPI will not move active IRQs around (the opposite of
acpi_irq_balance). This is the default in PIC mode.

acpi_irq_pci=...
If you have set acpi_irq_balance, you have to reserve some IRQs for
for use by PCI or else ACPI may use them all; list them here. Format:
,...

acpi_irq_isa
If you have set acpi_irq_balance, you have to reserve some IRQs for
for use by ISA or else ACPI may use them all; list them here. Don't
do this unless you have ISA devices. Format: ,...

acpi_osi=
By default, the _OSI method in ACPI will tell the BIOS that we are
running Microsoft Windows NT. But if you use this option with an
empty parameter, it disables the _OSI method. (What does the BIOS do
then?)

acpi_os_name=
By default, the _OSI method in ACPI will tell the BIOS that we are
running Microsoft Windows NT. But if you specify a name here, that OS
name will be reported to the BIOS instead. This may enable or disable
some methods in your DSDT depending on the OS string you choose.

acpi_serialize
If you see errors in your log which include things like

Error: Looking up [some-device-id] in namespace, AE_ALREADY_EXISTS


then try setting this option. It forces serialization of AML methods
in case a method creates namespace objects, fails to complete
cleanly, and leaves its debris around; this may allow us to track
down the specific problem.

acpi_skip_timer_override
This option is specific to certain versions of the nForce2 BIOS which
map IRQ0 to pin 2 and result in the timer being XT-PIC instead of
IO-APIC-edge. This isn't really an ACPI issue but it's called
acpi_skip_timer_override so it's in this document. See kernel bug
1203 at [241]http://bugme.osdl.org/show_bug.cgi?id=1203 for more
info.

acpi_dbg_layer=
Format: ; Turn on or off debugging of a or several acpi debug
layers. Each bit of the indicates a separate layer. Starting
from the rightmost bit, you can turn on debugging for the layers:
UTILITIES, HARDWARE, EVENTS, TABLES, NAMESPACE, PARSER, DISPATCHER,
EXECUTER, RESOURCES, CA_DEBUGGER, OS_SERVICES, CA_DISASSEMBLER,
COMPILER, and TOOLS. If you don't do this at boot time you can still
enable this by writing to /proc/acpi/debug_layer.

acpi_dbg_level=
Format: ; Turn on or off debugging of a or several acpi debug
levels. Each bit of the indicates a separate level. Starting
from the rightmost bit, you can turn on debugging for messages logged
at the level: ERROR, WARN, INIT, DEBUG_OBJECT, INFO, INIT_NAMES,
PARSE, LOAD, DISPATCH, EXEC, NAMES, OPREGION, BFIELD, TABLES, VALUES,
OBJECTS, RESOURCES, USER_REQUESTS, PACKAGE, ALLOCATIONS, FUNCTIONS,
OPTIMIZATIONS, MUTEX, THREADS, IO, INTERRUPTS, AML_DISASSEMBLE,
VERBOSE_INFO, FULL_TABLES, and EVENTS. If you don't do this at boot
time you can still enable this by writing to /proc/acpi/debug_level.

ec_burst=
use burst mode instead of polling mode for embedded controller; this
mode is better in the long run than polling mode but not ready for
prime time yet. Use it, however, if you see problems with button
failure or battery status failure or other ACPI events just
disappearing and not being handled; see kernel bug 3851 at
[242]http://bugzilla.kernel.org/show_bug.cgi?id=3851 for more
information.

acpi_generic_hotkey
There is a generic hotkey driver which will let you map hotkey codes
to specific acpi methods. It's not at all user friendly. Nonetheless,
it may be useful for you if your laptop has hotkeys that use the ACPI
interface. If you compile in the generic hotkey driver, using
CONFIG_ACPI_HOTKEY, you must use this boot option for the driver to
be enabled.

Some laptops have specific hotkey drivers for their setups; see the
CONFIG options above for the list. If you set this option and you
have compiled in both the generic hotkey driver and a specific driver
for one of those laptops, only the generic hotkey driver will be
used.

acpi_fake_ecdt
Workaround failure due to BIOS lacking ECDT; use this if you see
errors in your log early on about the battery, adapter or the
embedded controller. Setting this option lets the kernel ignore the
missing ECDT, and come back to complete initialization of those
devices later when it has pulled more complete information from the
DSDT.

acpi_wake_gpes_always_on
If your system seems not to be generating ACPI events, try setting
this option. Here's the explanation, taken right from the kernel
code:

Wake and Run-Time GPES are expected to be separate. We disable
wake-GPEs at run-time to prevent spurious interrupts. However, if a
system exists that shares Wake and Run-time events on the same GPE
this flag is available to tell Linux to keep the wake-time GPEs
enabled at run-time.

pci=noacpi
Do not use ACPI for IRQ routing. ACPI looks at _PRT packages to
figure out which interrupt goes with which PCI interrupt link device
and then looks up the resources that device uses. Instead, use the
PCI IRQ routing table. If your kernel hangs during boot, you may have
serious IRQ problems; try this option.

pci=routeirq
Do IRQ routing for all PCI devices. Each device should call
pci_enable_device(), which will do this IRQ routing, but some drivers
may be broken and not call it, so this option makes sure it gets
called for each device outside of the driver. If you have problems
with a particular device, try this option. Someday this option should
go away. I wonder about proprietary drivers though... Maybe this
option is here to stay.

pnpacpi=off
Try this option if you are having trouble with PNP devices under
ACPI; this will disable use of PNPACPI and will use PNPBIOS instead.

processor.max_cstate
Limit processor to maximum C-state; if you enabled
CONFIG_ACPI_PROCESSOR so that the CPU is placed in different power
states when it is idle, you may want this. Various IBM Thinkpad
systems emit a high-pitched whine when the CPU enters C3 or C4, so
passing C2 as a parameter will prevent that. See ThinkWiki at
[243]http://www.thinkwiki.org/wiki/Problem_with_high_pitch_noisesto
check your specific model.

If you don't want to lose the ability to use these lower power
states, you can try adjusting your timer speed instead: set your
default timer speed to HZ_100 (CONFIG_HZ_100).

If you know that your system should support C3 or C4 and a look at
/sys/module/processor/parameters/max_cstate shows that it's set
lower, you can try to increase it. Some BIOSes are blacklisted from
these lower power states in the kernel. As of this writing, those are
the IBM ThinkPad R40e, the Medion 41700, and the Clevo 5600D. Set
max_cstate=9 to override this limit.

2012年9月1日 星期六

ZFS on Linux

ZFS on Linux只支持64bits平台,包括兩個組件SPL(Solaris Porting Layer)和ZFS,當前版本為0.6.0-rc10,支持的zfs pool版本為28,文件系統版本為5。


安裝solaris移植層SPL

下載spl-0.6.0-rc10.tar.gz,解壓生成spl-0.6.0-rc10子目錄,進入該目錄執行以下操作

$ sudo apt-get install build-essential gawk alien fakeroot linux-headers-$(uname -r)

$ ./configure

$ make deb



這會在當前目錄下生成三個deb包

spl_0.6.0-1_amd64.deb

spl-modules_0.6.0-1_amd64.deb

spl-modules-devel_0.6.0-1_amd64.deb



安裝生成的deb包

$sudo dpkg -i *_amd64.deb



安裝ZFS

sudo apt-get install zlib1g-dev
sudo apt-get install uuid-dev



下載zfs-0.6.0-rc10.tar.gz,解壓縮生成zfs-0.6.0-rc10子目錄,進入該目錄執行以下操作

$ sudo apt-get install zlib1g-dev uuid-dev libblkid-dev libselinux-dev parted lsscsi

$ ./configure

$ make deb



這會在當前目錄下生成六個deb包

zfs_0.6.0-1_amd64.deb

zfs-dracut_0.6.0-1_amd64.debls

zfs-modules-devel_0.6.0-1_amd64.deb

zfs-devel_0.6.0-1_amd64.deb

zfs-modules_0.6.0-1_amd64.deb

zfs-test_0.6.0-1_amd64.deb



安裝生成的deb包

$sudo dpkg -i *_amd64.deb



讓系統啟動時自動加載zfs內核模塊,編輯/etc/modules文件,zfs作為單獨的一行添加到文件中。



測試



加載ZFS模塊

# modprobe zfs



查看zfs模塊信息

$ lsmod
grep zfs

Module Size Used by

zfs 791314 0

zunicode 324466 1 zfs

zavl 13115 1 zfs

zcommon 35811 1 zfs

znvpair 31373 2 zcommon,zfs

spl 120446 6 znvpair,zcommon,zavl,zunicode,zfs,splat



加載splat(Solaris Porting LAyer Test)模塊

#modprobe splat



查看splat使用說明

#splat

usage: splat [hvla] [-t >]

–help -h This help

–verbose -v Increase verbosity

–list -l List all tests in all subsystems

–all -a Run all tests in all subsystems

–test -t Run 『test』 in subsystem 『sub』

–exit -x Exit on first test error

–nocolor -c Do not colorize output



Examples:

splat -t kmem:all # Runs all kmem tests

splat -t taskq:0×201 # Run taskq test 0×201



執行kmem測試

#splat -t kmem:all

———–Running SPLAT Tests —————-

kmem:kmem_alloc Pass

kmem:kmem_zalloc Pass

kmem:vmem_alloc Pass

kmem:vmem_zalloc Pass

kmem:slab_small Pass

kmem:slab_large Pass

kmem:slab_align Pass

kmem:slab_reap Pass

kmem:slab_age Pass

kmem:slab_lock Pass

kmem:slab_overcommit Pass