2009年11月5日 星期四

~/.bashrc settings (prompt style & color setting)

"prompt style & color setting"
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\[\033[31m\]\u\[\033[00m\]:\W\[\033[31m\]\$\[\033[00m\] '
{
\[\033[31m\]:Red
\[\033[00m\]:end of color setting
}

2009年6月25日 星期四

Linux 基本指令(一)



Linux 基本指令




Linux基本指令


本頁最近更新日期:2007/10/30


以下指令若有「」標誌的可點入連結觀看進階講解





快速選單:
A B C D
E F G H

I J K L
M N O P
Q R S T

U V W X
Y Z





alias


替指令取別名

alias 列出目前系統所使用的所有指令別名

alias 別名=Linux 指令名稱 此時若輸入「別名」則功能會跟輸入「Linux 指令名稱」相同

◎ 若想要每次開機都使用此別名,在 bash 中,一定要在 .bashrc 中指定,如果是 tcsh 中,則要在 .cshrc 中指定




ar

將許多檔案備存成一個或多個檔案

ar -rcv 備存檔名 欲備存檔名1 欲備存檔名2 ...
將「欲備存檔名1 欲備存檔名2 ...」及所有您指定的檔案,備存至「備存檔名」中。
參數 -r:在新加入組成檔時,檢查備存檔案中的組成黨,如果重複的話,就取而代之。
參數 -c:建立備存檔案。
參數 -v:顯示詳細資訊。


ar -t 備存檔名 列出「備存檔名」中之檔案名稱

ar -x 備存檔名 取出「備存檔名」中所有檔案

ar -x 備存檔名 備存檔中檔案之檔名 取出「備存檔名」中某些檔案




回頂端







bg

將程式置於背景執行

如果您執行的程式很多的話,可以在執行程式時,按下「Ctrl + z」暫停程式,
然後利用指令「jobs」查詢該工作之編號


bg 工作編號 將「工作編號」之工作置於背景執行

fg 工作編號 將「工作編號」之工作置於前景執行



bc


簡易計算機

quit 離開 bc



回頂端








clear

清空畫面


若是您嫌畫面東西太多、太雜了,不妨試試這個指令



cmp

列出兩個檔案的文字內容第一個相異處

cmp 檔名1 檔名2 若輸入此指令,電腦會將「檔名1、檔名2」中第一個字元相異處列印出來





cp


複製檔案

cp 檔名1 檔名2 複製「檔名1」至「檔名2」,若「檔名2」原本就存在,將會被覆蓋

cp -r 資料夾名1 資料夾名2 複製「資料夾名1」至「資料夾名2




回頂端







df

檢視電腦硬碟之使用情形

df -h 以人類較易閱讀的方式列出資料




diff

比較兩個檔案的文字內容有何不同處

diff 檔名1 檔名2 若輸入此指令,電腦會將「檔名1、檔名2」中有字元相異的那行列印出來



du


取得資料夾大小

du 資料夾路徑 取得該「資料夾路徑」中所有目錄 (包含其下子目錄) 的資料夾大小

du -s 資料夾路徑 取得該「資料夾路徑」的資料夾大小 (不包含子目錄)

du -h 資料夾路徑 以人類較易閱讀的方式顯示該「資料夾路徑」的資料夾大小 (不包含子目錄)




回頂端







fg

將程式置於前景執行

相對於指令「bg」,此指令用來將程式置於前景執行

可利用指令「jobs」查詢該工作之編號。


fg 工作編號 將「工作編號」之工作置於前景執行





free

查看記憶體使用狀況

-m 以 MB 為單位


-t 顯示記憶體總合

-s 秒數 每隔「秒數」顯示一次記憶體狀況



回頂端








grep

搜尋檔案中的字串

grep "字串" * 搜尋此層目錄中,包含「字串」的所有檔案,若「字串」中的英文字元大小寫不同,將被視為不同字串


grep -i "字串" * 搜尋此層目錄中,包含「字串」的所有檔案,若「字串」中的英文字元大小寫不同,將被視為相同字串

grep -r "字串" ./ 遞迴搜尋此層目錄包含其下所有子目錄中,包含「字串」的所有檔案,若「字串」中的英文字元大小寫不同,將被視為不同字串





回頂端







history

列出曾經用過的指令

!編號 可執行 history 中該編號的指令


history 數字 可列出最近「數字」項指令

history -d 編號 可刪除該「編號」的指令

history -c 刪除 history 中所紀錄的所有指令





回頂端







ifconfig

設定、檢視網路介面

此指令用以檢視、設定網路卡介面

ifconfig 列出系統中所有的網路卡介面及其相關設定,包含 IP address, MAC address 等資訊


ifconfig 網路介面 IP位址 設定「網路介面」的 IP 位址為「IP位址」,如:ifconfig eth0 192.168.0.3,即是設定 eth0 的 IP 位址為 192.168.0.3

ifconfig 網路介面 netmask IP位址 設定「網路介面」的子網路遮罩為「IP位址」,如:ifconfig eth0 255.255.255.0,即是設定 eth0 的子網路遮罩為 255.255.255.0


◎ 其他與網路相關的設定,若您是使用 Fedora Linux Distribution,可至
/etc/sysconfig/networking/profiles/default/ifcfg-eth0 檔案中設定,該設定檔中,若
BOOTPROTO=dhcp 表示此電腦要使用 DHCP 自動取得 IP 位址,若要自己指定 IP 位址,則 BOOTPROTO 必須要設定成
static (即 BOOTPROTO=static); 另外,還有些較常用參數,像是
IPADDR=IP位址,NETMASK=子網路遮罩位址,以及 GATEWAY=預設閘道等都可在此設定檔中做設定,待設定完畢存檔後,便可透過
ifdown 和 ifup 指令重新啟用網路介面套用新的設定值。



ifdown

停止網路介面運作

此指令用可與 ifup (啟動網路介面) 配合使用

ifdown eth0 停止「eth0」網路介面運作




ifup

啟動網路介面

此指令用可與 ifdown (停止網路介面運作) 配合使用

ifup eth0 啟動「eth0」網路介面



回頂端








kill

終止系統中的 proces

此指令可配合 ps 指令使用,先利用 ps 指令查詢欲終止 process 的 PID,再利用 kill 指令終止該 process

kill -9 PID 終止系統中編號為「PID」的 process





回頂端







ln

建立檔案或目錄的連結檔

若修改透過 ln 指令建立出來的連結檔,原本的檔案內容也會跟著改變

ln 檔名 連結檔名稱 建立「檔名」的硬連結檔,而該連結檔名為 「連結檔名稱


ln -s 檔名 連結檔名稱 建立「檔名」的符號連結檔,而該連結檔名為 「連結檔名稱



ls

列出該資料夾的檔案名稱

ls 列出資料夾中檔案的檔案名稱


ls 檔名 只列出「檔名」的資料

ls 資料夾名稱 列出「資料夾名稱」內的資料

ls -l 列出檔案的詳細介紹,包含有存取權限、檔案擁有者、內含字元總數、最後更動檔案時間及檔名...等


ls -t 依「最後更動檔案時間」排序,由最近排至最久

ls -r 與原本排序相反地(reverse)排列

◎ 依此類推,則 ls -rtl 為列出所有檔案的詳細資料,並用「最後更動檔案時間」排序,方法為最久排至最近



lsmod

列出目前 linux kernel 中所有 modules 的狀態

可透過此指令檢視系統中目前安裝了那些 modules



回頂端







mail

個人信件工具


◎ 在命令列輸入 mail 即可進入 mail 程式內收發信件

◎ 若想寫信給他人,則在命令列輸入 mail 收信者帳號 ,即可發送信件給「收信者

◎ 若想將既有的文字檔當成信件內容寄給他人,則在命令列輸入 mail 收信者帳號 -s 信件主題 < 文件檔名稱


即可將「文件檔名稱」發送給「收信者

在 mail 程式中

◎ 輸入 ? 查詢所有指令

◎ 輸入 h 列出所有信件


◎ 輸入 t 閱讀信件

◎ 輸入 n 閱讀下一封信件

◎ 輸入 d 刪除信件

◎ 輸入 u 救回刪除信件


◎ 輸入 R 回覆信件

◎ 輸入 m 收信者帳號 發送信件給「收信者

◎ 輸入 q 離開 mail 程式,並將閱讀過的所有信件存至「mbox」檔案


◎ 輸入 x 離開 mail 程式



man

列出 Linux 主要的說明檔

man 區段清單 說明的主題 列出關於「說明的主題」之相關訊息








區段清單
1:使用者指令2:系統呼叫3:程式庫呼叫
4:裝置5:檔案格式6:遊戲
7:雜項8:系統指令9:核心內部指令





mv

移動檔案( 檔案更名 )

mv 檔名1 檔名2 移動「檔名1」至「檔名2」,若「檔名2」原本就存在,將會被覆蓋




回頂端







netstat

檢視目前電腦的網路連線情況

netstat -a 列出電腦中 listening 和 non-listening 的連線


netstat -n 列出電腦現有的連線時,列出 IP 位址就好,不必列出 domain name

netstat -t 列出電腦中現有的 TCP 連線

netstat -u 列出電腦中現有的 UDP 連線



ntsysv

設定系統開機時要自動啟動的服務



回頂端







passwd

設定密碼

passwd -d 使用者名稱 刪除「使用者名稱」之密碼


passwd -l 使用者名稱 鎖住「使用者名稱」之帳號,使之失效



ps

列出系統中 processes 的執行狀況

ps -f 列出 processes 的完整資訊,包含 UID (User ID)、PID (Process ID)、PPID (Parent Process ID) 等資訊


ps -A 列出系統中所有的 processes



回頂端







rm

刪除檔案


rm 檔名 刪除「檔名

rm -r 資料夾名 刪除「資料夾名



rpm


RPM 套件管理員 (package manager)

如果您要替 Linux 系統安裝新的軟體,不妨先上網找找看網路上是否有已經包裝好的 RPM packet,若找的到,則安裝軟體的過程就省事多了

rpm -q 套件名稱 查詢目前系統中是否有安裝「套件名稱」這個套件

rpm -ivh 套件名稱 安裝名為「套件名稱」的套件於系統中,並在安裝過程中顯示文字訊息


rpm -u 套件名稱 升級系統中名為「套件名稱」的套件

rpm -e 套件名稱 解除安裝系統中名為「套件名稱」的套件



回頂端








sort

將文字檔案內容排序並印出

sort 檔名 將文字檔案「檔名」內容排序並印出(由小至大排序)

sort -r 檔名 將文字檔案「檔名」內容排序並印出(由大至小排序)


sort -f 檔名 將文字檔案「檔名」內容排序並印出(不管字元之大小寫,由小至大排序)



su

切換登入身份

su 切換登入身份到 root


su -l 使用者帳號 切換登入身份到「使用者帳號

su -c "指令" 以 root 的權限執行「指令



回頂端








tail

列出文字檔案尾端內容

tail 檔名 列出「檔名」最後十行

tail -n 檔名 列出「檔名」最後 n 行


tail +n 檔名 從 n 行開始列出「檔名」到最後



tar

建立/解開 .tar 封裝檔

tar -cvf 封裝檔名稱.tar 資料夾名稱 將 「資料夾名稱」 封裝成為 「封裝檔名稱.tar」檔案


tar -czvf 壓縮封裝檔名稱.tar.gz 資料夾名稱 將 「資料夾名稱」 壓縮成為 「壓縮封裝檔名稱.tar.gz」壓縮檔

tar -cjvf 壓縮封裝檔名稱.tar.bz2 資料夾名稱 將 「資料夾名稱」 壓縮成為 「壓縮封裝檔名稱.tar.bz2」壓縮檔


tar -xvf 檔名.tar.gz 解開 「檔名.tar」封裝檔

tar -xzvf 檔名.tar.gz 解開 「檔名.tar.gz」壓縮封裝檔

tar -xjvf 檔名.tar.bz2 解開 「檔名.tar.bz2」壓縮封裝檔




top

列出目前系統中正在執行的工作,以及每個工作所分配到的記憶體空間與 CPU 使用百分比



回頂端








useradd

建立使用者帳號


useradd 新使用者帳號 建立 「新使用者帳號」於此 Linux 系統中



回頂端







※vim

開啟編輯文字檔程式


在指令模式下輸入 vi 檔名vim 檔名 即可進入 VIM 程式


回頂端








wc

計算文件檔之行數、字數及字元數(word-counting)


wc 檔名若輸入此指令,則電腦會列出「檔名」內文字之行數、單字數及字元數

wc -l 檔名列出「檔名」內文字之行數

wc -w 檔名列出「檔名」內文字之單字數


wc -m 檔名列出「檔名」內文字之字元數

wc -L 檔名列出「檔名」內最長那行文字所包含的字元總數



whereis

查詢指令執行檔所在位址


whereis 指令名稱查詢 指令名稱 所在目錄



who

列出所有線上的使用者

◎ 若想知道自己是誰,可利用指令 whoami 來查詢





回頂端






UltraEdit 使用 CTAG

引用自http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/ctags.html


IDM Power Tips

CTAGs and UltraEdit

What is Ctags?
Ctags is a program that generates a tag (or index) file of objects and functions found in C/C++ header and source files. The tag file allows these items to be referenced quickly from within UltraEdit.

What does Ctags do?
The purpose of Ctags is to allow you to quickly find a function or object that is defined elsewhere in the active file or another file (i.e. header or source file). You can use this feature to navigate through your project to find the various functions, variables, class members, and so on...

After you have generated your tag file, you simply use the "Find Symbol" in the Search menu to find the symbol (located next to the cursor in the active document) elsewhere in the file(s).

UltraEdit supports Ctags, either as part of a project, or independently.

Using Ctags

Ctags EXE
UltraEdit relies on an external tag file generator. There are many versions of Ctags; however, we recommend "Exuberant Ctags" available from http://ctags.sourceforge.net/. UltraEdit includes a Ctags EXE in the GNU folder (in the installation directory) as part of the standard installation. Therefore, you would not need to download/install Ctags to use this feature.

UltraEdit can make use of an existing tagfile, or if an EXE for creating Ctags is available it can also create the tag file. If you prefer to use a different Ctags version, you may specify this under Ctag Options in the Project menu.

PLEASE NOTE: IDM Computer Solutions, Inc. does not support Ctags (the program) and we can't offer definitive answers on how Ctags itself works. We can help with information on standard configuration for integration with UltraEdit and how Ctags should work in conjunction with UltraEdit. For the most comprehensive and up-to-date information regarding Exuberant Ctags please see http://ctags.sourceforge.net/. The latest version of the manual for Exuberant Ctags should be available at http://ctags.sourceforge.net/ctags.html.


Step 1: Create the Tag file

The tag file is the index file of the various functions, class members, etc. In order to use Ctags, you must first create the Tag file.

You can create the Tag file using the Create CTAG file menu item in the Project menu.

Create CTAG File in the Project Menu

If you prefer, you may also select the option Create CTAG file on project load in the Project Settings dialog in the Project Menu. This will cause the Ctags file to be created automatically when the project is loaded. This essentially ensures that you have an updated Ctags file every time you open the project.

Create CTAG File in the Project Menu


Step 2: Find a Symbol/Tag

As we've previously discussed, the purpose of Ctags is to be able to quickly find a function or object that is defined elsewhere in the active file or another file (i.e. header or source file).

Using Ctags is simple. When editing source files, you may position the cursor over a function, variable, class member, or macro and press F11. This activates the Find Symbol functionality (in the Search menu) which positions the cursor on the definition of the item you searched for.

If the specified item (symbol) exists in the active document, focus will shift to the appropriate line in the active file. If the specified item (symbol) exists in a different file, that file will be opened to the line where the symbol is defined. Let's give it a try...

Now that we've created the Tag file in Step 1, you may place your cursor next to a symbol or tag (function, class member, variable, etc).

Cursor

You may now select the Find Symbol item from the Search menu (or press F11). UltraEdit, in conjunction with the Tag file, will search for the symbol.

Find Symbol in the Search Menu

If only one match is found
The file will be opened (in UltraEdit) and the cursor positioned at the symbol.

If multiple matches occur
A dialog box will be shown giving you the option to position the cursor at the appropriate tag.

If a tag cannot be found
A dialog will be displayed indicating that the tag could not be found.

Cannot find TAG

Using our sample project, the definition of "UpdateClientWindow" was found on line 32 and the cursor is positioned at the beginning of the line.

Symbol found


Ctags Configuration within UltraEdit

As we've previously mentioned above, Ctags is intalled as part of the standard installation, so it is not necessary to download/install the Ctags exe. However, UltraEdit does allow you to configure some options in Ctags.

The Ctag Options dialog (in the Project menu) allows you to change options related to Ctags:

UltraEdit Ctags Options dialog

The following three items may be defined using the Tag File Options dialog:

Default Tagfile
This specifies the tagfile to be used if there is not a specific project tagfile active (defined in the Project Settings dialog under the Project menu). Note: This must be present if there is not a project-specific tagfile for UltraEdit to look up the symbols associated with the active project.

Ctag EXE Path/Name
This specifies the full path and name of the Ctag exe that will be run to create the tag file from within UltraEdit. UltraEdit can reference a tagfile for symbols if this is not present, but it can not create a new Tag file. The default setting for this is "ctags.exe" in the "GNU" subdirectory under the UltraEdit installation directory.

CTAG Parameters
This specifies the parameters to be passed to the Ctags exe for it to function correctly. The default settings ( -L %fi -f %fo ) are configured for Exuberant Ctags as described above.

Troubleshooting/Tips


What does "-L %fi -f %fo" mean?

-L file This instructs Ctags to read from file a list of file names for which tags should be generated. If file is specified as "−", then file names are read from standard input. File names read using this option are processed following file names appearing on the command line. Options are also accepted in this input. If this option is specified more than once, only the last will apply.

Note: File is read in line-oriented mode, where a new line is the only delimiter and non-trailing white space is considered significant, in order that file names containing spaces may be supplied (however, trailing white space is stripped from lines); this can affect how options are parsed if included in the input.

%fi
%fi on the parameter line is replaced when the ctag exe is run with the filename/path of a file that contains a list of files that the ctags.exe will use to create its tags from. If a project is loaded in UltraEdit, UltraEdit creates a temporary file with a list of the project files and passes this in place of %fi.

-f tagfile
-f tagfile instructs Ctags to use the name specified by tagfile for the tag file (default is "tags", or "TAGS" when running in etags mode). If tagfile is specified as "−", then the tag file is written to standard output instead. Ctags will stubbornly refuse to take orders if tagfile exists and its first line contains something other than a valid tags line. This will save your neck if you mistakenly type "ctags −f *.c", which would otherwise overwrite your first C file with the tags generated by the rest! It will also refuse to accept a multi-character file name which begins with a ’−’ (dash) character, since this most likely means that you left out the tag file name and this option tried to grab the next option as the file name. If you really want to name your output tag file "−ugly", specify it as "./−ugly". This option must appear before the first file name. If this option is specified more than once, only the last will apply.

%fo
%fo on the parameter line is replaced with the full filename/path of the tag file to be created. This would be the tag file specified in the project, or the Default Tagfile defined above.

All Options
For further options for Exuberant Ctags please see http://ctags.sourceforge.net/ctags.html.


Why aren't the tags in my files being mapped?

--langmap=map[,map[...]] controls how file names are mapped to languages (see SOURCE FILES, at http://ctags.sourceforge.net/ctags.html). Each comma-separated map consists of the language name (either a built-in or user-defined language), a colon, and a list of file extensions and/or file name patterns. A file extension is specified by preceding the extension with a period (e.g. ".c"). A file name pattern is specified by enclosing the pattern in parentheses (e.g. "([Mm]akefile)"). If appropriate support is available from the runtime library of your C compiler, then the file name pattern may contain the usual shell wildcards common on Unix (be sure to quote the option parameter to protect the wildcards from being expanded by the shell before being passed to ctags). You can determine if shell wildcards are available on your platfom by examining the output of the --version option, which will include "+wildcards" in the compiled feature list; otherwise, the file name patterns are matched against file names using a simple textual comparison.

If the first character in a map is a plus sign, then the extensions and file name patterns in that map will be appended to the current map for that language; otherwise, the map will replace the current map. For example, to specify that only files with extensions of .c and .x are to be treated as C language files, use "--langmap=c:.c.x"; to also add files with extensions of .j as Java language files, specify "--langmap=c:.c.x,java:+.j". To map makefiles (.e.g files named either "Makefile", "makefile", or having the extension ".mak") to a language called "make", specify "--langmap=make:([Mm]akefile).mak". To map files having no extension, specify a period not followed by a non-period character (e.g. ".", "..x", ".x."). To clear the mapping for a particular language (thus inhibiting automatic generation of tags for that language), specify an empty extension list (e.g. "--langmap=fortran:"). To restore the default language mappings for all a particular language, supply the keyword "default" for the mapping. To specify restore the default language mappings for all languages, specify "--langmap=default". Note that file extensions are tested before file name patterns when inferring the language of a file.

If you were to specify this in the Ctag Options dialog in the Project menu you could use
"--langmap=c:.c.x -L %fi -f %fo" with the default parameters so that files with a ".x" extension would be parsed as C files. The "-L" option which indicates that the files to be parsed are to be read from the specified file would still require that these files be part of the project for this to work.


How can I keep the Find Symbol function from going to a matching but incorrect tag?

The -n option may be added so that only line numbers would be used in the tag file for locating tags. This has four advantages:

1. Significantly reduces the size of the resulting tag file.

2. Eliminates failures to find tags because the line defining the tag has changed, causing the pattern match to fail.

3. Eliminates finding identical matching, but incorrect, source lines.

4. Retains separate entries in the tag file for lines which are identical in content.

Apache 首頁顯示"DodumentRoot"

修改檔名 "/etc/httpd/conf.d/welcome.conf"
改成不是"welcome.conf"
即可

Fedora 10 (or Ubuntu 9)安裝微軟正黑體

微軟正黑體

字體下載:
http://www.box.net/shared/f1o8hu4pdy
http://www.box.net/shared/9f9krap7v0

1.將字體copy到"/usr/share/fonts/zh_TW/TrueType" 下面,如果没有zh_TW,就自己新建一個。

接着(很重要),修改字體的權限,改為755或者乾脆777

2.在"/usr/share/fonts/zh_TW/TrueType" 執行
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv,刷新字體缓存。

2009年6月24日 星期三

Fedora 10 (or Ubuntu 9) 使用嘸蝦米

一、下載 liu.bin ,將檔案置於本機 /usr/share/scim/tables/ 下

二、在桌面環境的 scim 圖示 (Fedora 10 桌面右上角鍵盤圖示) 點選滑鼠右鍵,選擇 『重新載入設定值』即可。

可能需要登出後再重新登入。

2009年6月6日 星期六

iPod touch 2G -redsn0w 破解法

iPod Touch 2G-redsn0w破解法(推薦)

四月 10th, 2009 | 文章分類: iPod Touch 2G破解

jailbreakDev-Team現在終於發表官方版本的破解軟體囉,軟體的代號保持不變-redsn0w。目前還是測試版本,並且無圖示GUI的支援。全介面目前只有英文的DOS模式。

————————————————————————————
iPod Touch 2G-redsn0w破解法
所需軟體:redsn0w、iTunes
適合韌體版本:2.2.1
所需檔案下載點:檔案下載
————————————————————————————

任何入侵、破解、修改iPod Touch和iPhone的行為以及安裝第三方軟體的軟體,皆有可能造成系統的不穩定,或是讓原有的保固服務失校的可能性,請自行評估風險後在使用。

Dev-Team發表了測試版本的redsn0w,redsn0w是iPod Touch 2G的破解軟體,和之前網路上的版本不同,提供使用者更加穩定、方便的破解軟體。目前此軟體可以由http://redsn0w.com/下載。目前還無圖形化GUI的介面,如果不習慣英文介面的朋友,請稍等一下吧。官網上表示圖形化GUI版本將會在近期發表。

步驟一:

請打開程式,程式會出現下方圖示,按下enter鍵繼續。

1

步驟二:

請將iPod Touch強制關機,然後連接到電腦。連結後請按enter鍵。

2

步驟三:

即將指導進入DFU狀態,使用者請將手指準備到機體附近,以下過程很快速,如果漏掉了哪個步驟就會不成功。請在強制關機iPod Touch一次,然後從步驟一再開始一次即可。

3

步驟四:

開始按照畫面指示操控。

4a.當看到2."Hold down the Hold button for 3 seconds…"

請按下電源鍵3秒(看畫面上的倒數即可)

4b.當看到3.WITHOUT releasing the HOLD button, also hold down the Home

請同時按住電源鍵和Home鍵10秒鐘(依照程式的倒數即可)

4c.當看到4.WITHOUT releasing the Home button, release the Hold button. Keep holding the Home button for 30 second…

請放開電源鍵,持續按住Home鍵盤30秒(通常不用30秒系統就可以找到)

4 8

步驟五:

系統會開始跑出一連串的動作,不用理他,靜待結果即可。

5

5a.如果系統出現以下畫面,請立即將usb從iPod Touch 2G移出,然後再插入即可。

7

步驟六:

這時候你會開始在機體上看到下面的畫面,等到系統重灌結束,然後重新開機後,你就會看到多了一個Cydia。這時候就可以將iPod Tocuh 2G從連接線拔下來囉。

DSC02674

DSC02675

相關文章

訂閱本站最新文章: (如何訂閱?)
Follow Discussion

111 Responses to “iPod Touch 2G-redsn0w破解法(推薦)”

  1. 123 Says:

    Dev-Team釋出最新iPod Touch 2G破解 是3.0破解嗎??

    站長 回應:

    是目前的2.2.1版本喔。

  2. 新手 Says:

    這還要搭配什麼?
    還是只執行這就行了?

    站長 回應:

    不用搭配什麼,他本身就是破解軟體,只不過目前這個版本是用命令提示字元,有圖示GUI版本,將會在近期發表。

  3. 天才大兵 Says:

    我的touch復活了!!
    自從陣亡之後
    每天都過著吃布下飯的日子+這幾天又很忙

    所以都沒有上來看~
    不過今天剛好有時間
    我把他救活了!!!!

    真的很開心!!

    我用這個版本的破解
    一切都回歸正常了!!!

    話說~雖然現在的這個是用DOS的
    不過我覺得比之前的簡單了很多了!!!!
    而且現在穩定性比較高了!!
    不會時不時的就跳了出來!!!

    電量的問題~只能說破解之後灌太多程式+遊戲了!!
    70+的遊戲~完了一天都還有全部都玩玩!!

    感謝大大那天的建議!!

    站長 回應:

    不用客氣囉。歡迎常來。

  4. Stanley0322 Says:

    我的iTouch 2G 2.2.1成功
    過程就花大概2~3分鐘

    其實還挺簡單的
    0.確認iTouch連接電腦並且是關機狀態
    1.進行過程螢幕會一閃一閃的,別擔心,繼續跟著往下做
    2.按著左上角電源鍵3秒
    3.持續按著電源件不放,同時按著Home鍵10秒
    4.放開左上角電源鍵,繼續按著Home鍵30秒,等待系統自動解鎖
    再來就會自動跑JB囉
    等他跑完就成功了^^Y

    成功後就多了Cydia可以下載

    站長 回應:

    感謝分享~~也恭喜你加入破解的行列囉。歡迎常來~!!!

  5. mike Says:

    我今天再次破解
    沒想到一次就成功了
    謝謝

    站長 回應:

    恭喜破解成功,歡迎加入。常常來逛喔。

  6. Yan Says:

    我是香港來的讀者喔!
    剛剛買了ipod touch,對它一無所知,哈哈。
    從你的網址學了很多,也破解了,非常簡單,謝謝你呀!
    keep it up!

    站長 回應:

    感謝支持,希望天天來晃晃囉。

  7. pigcher Says:

    請問這個破解完後会帶什麼軟體 ? 如cydia..

    站長 回應:

    是的,會有Cydia。

  8. frankingdog Says:

    我想請問現在最新的IPOD TOUCH是第三代嗎??
    還有那個IPOD TOUCH “2G” 這是什麼意思??
    是指他的韌體版本是2G?
    如果我現在在中華電信買一台最新的IPOD TOUCH
    他的版本會是什麼版本??有辦法破解嗎??

    站長 回應:

    如果是現在買的話會是iPod Touch 2G。可以破解。

  9. Shayne Says:

    回樓上
    現在的Ipod Touch是2代喔
    2G 是 2nd Generation 就是第2代的意思
    中華電信是賣Iphone喔
    現在Ipod Touch都已經可以破解摟

    希望有幫到忙 ^^

    站長 回應:

    其實中文名稱好像有點爭議,我在下面的留言會解釋一下。感謝你的分享喔。

  10. frankingdog Says:

    http://tw.f5.page.bid.yahoo.com/tw/auction/e33227658?
    可是我看網拍
    他上面寫最新是第三代..

    站長 回應:

    中 文在第幾代當中有爭議,iPod Touch 1G(最原始版本),一開始所搭配的韌體版本為1.X。然後隨後2.0版本韌體發表了,所以市面上的iPod Touch 1G重新更新韌體為2.x,然後販賣,在台灣有人把它稱之為第二代。隨後,iPod Touch 2G發表了,iPod Touch 2G有內建喇叭,音量控制鈕。所以又有商家稱之為第三代。不過這些都是部分商家自己研發的名詞,本站為了防止混淆,所以才一直使用英文名稱。

  11. JoeT Says:

    謝啦….
    只花了2分鐘
    只是想請問一下改完隻後可以關機嗎?
    我已經改好了只是不敢關機..
    請解答謝謝

    站長 回應:

    此版本是完美破解,所以可以安心的關機喔。

  12. JoeT Says:

    順便問一下..請問去哪裡下載字典阿
    可以給我名子嗎..?

    站長 回應:

    到AppStore打”dictionary”搜尋,可以找到很多付費或免費的軟體。

  13. JS Says:

    請問是JB後的畫面是英文的嗎? 謝謝:)

    站長 回應:

    JB後的iPod Touch還是會依照你設定的語言顯示,如果原本是中文那還是會顯示中文。

  14. 牛 Says:

    請問JB後,之前打的備忘錄那些資料會不見嗎??還有沒有無線上網是不是就不行上網了@@也就不行執行Cydia下載東西了嗎??

    站長 回應:

    此版本和之前的不一樣,不用重新刷韌體,所以破解後原本的資料還會在喔。一定要有無線網路iPod Touch才能上網,Cydia也要有無線網路才能使用。

  15. jj Says:

    為啥我都不會有反應…
    我到第4步驟 解鎖的時候 電腦會說偵測到新硬體…
    要我安裝驅動…
    然後我的IPOD也沒啥動作…
    是要有安裝ITUNES的電腦才能嗎 0.0?

    站長 回應:

    是的,要有iTunes才能使用破解軟體喔。

  16. jj Says:

    鳳梨終於出現了~~XD
    謝謝站長~~~

    站長 回應:

    不用客氣喔,能用比較重要。不知道使用過程方不方便?

  17. 牛 Says:

    忙完段考準備要開始JB了,請問大大載點是不是壞掉了??

    站長 回應:

    載點沒壞喔,那個載點是bt檔,你要先安裝bt才能抓。

  18. jj Says:

    補充一下我JB後資料軟體都還在喔~~
    此破解真的很方便~~
    照著Stanley0322大大的方法就可以了~~
    不過破解的電腦要有安裝ITUNES
    不然偵測不到DFU狀態下的IPOD~~~

    站長 回應:

    感謝經驗分享,原來這一版不用重刷韌體,所以資料不會消失,你提醒了我才知道。

  19. weilun0117 Says:

    今天我也開始了
    沒想到JB後 資料都還在= =+
    這樣應該算是有成功吧!!XDD
    不過 破解後我要怎樣安裝我想要的軟體進去阿…..= =
    破解後反而不知道要怎樣弄
    有哪位大大可以指導一下嗎 :o

    站長 回應:

    遊戲軟體可透過AppStore、Cydia、installer下載,本站不允許討論ipa軟體,不好意思喔。

  20. Haku Says:

    To 牛: 小弟試過囉!Linux & Mac & Windows都沒掛喔!多試幾次吧!http://redsn0w.com/ 祝你JB成功!

    站長 回應:

    我不知道為什麼會這樣,所以我把它先刪掉了。不過還是感謝你熱心的回覆喔。

  21. Haku Says:

    哈~我只是點進去網址按一下載點而已,不知道是BT檔= =
    見笑了….

    站長 回應:

    不會不會,你說的是沒錯的,檔案可以下載。

  22. JoeT Says:

    JB後資料會不見,之前下載的軟體也都會不見,不過如果你有用iTunes先備份,那你的資料可以在同步回去的。一定要有無線網路iPod Touch才能上網,Cydia也要有無線網路才能使用。

    站長…這版的好處就是改了之後全部東西都會留著唷
    所以其實東西都不會消失

    站長 回應:

    恩恩,了解,感謝你的分享,已經修正留言。因為沒用過這個版本破解,所以才以為要刷新韌體。 :88:

  23. 牛 Says:

    謝謝Haku大大的提醒˙ˇ˙
    謝謝jj大大及JoeT大大的測試˙ˇ˙
    謝謝站長的回應˙ˇ˙ :o

    站長 回應:

    :) 免客氣。

  24. QQ Says:

    :( 有沒有不是BT 的
    我沒有開BT的軟件

    站長 回應:

    windows版本的:http://www.mediafire.com/file/ymj50xmg1bt/redsn0w-win_0.3.zip

  25. tautoulover Says:

    站長
    我想問一下關於充電的問題
    因為在網路上爬文 聽到2種說法
    一種是用到完再充電
    一種是不要用完再在充不然會電池會受命縮短
    那到底是怎樣才對的呢?

    站長 回應:

    這真的是個好問題 :88: ,我小時候聽到的版本也是用到完再充電,防止電池記憶性影響壽命,不過今年開始許多科學家推翻這個理論,等電池快用完之前就要充電,不要用到完全沒有。我 想這還有有爭議。不過兩個論點共通點就是,不要只用了一點點就充電,這樣確實是對電池不好。不過是用光還是剩下10%就充電,那就看個人囉(我趨向相信快 用光前就要充電)。

    希望大家可以補充一下。

  26. JoeT Says:

    http://www.youtube.com/watch?v=dKGgenrLrw0

    這是影片..有需要的人可以去看看

    站長 回應:

    感謝,將他補進去文章裡面。 :cheer:

  27. allen Says:

    我JB成功了…
    可是為什麼我裡頭沒有installer??

    站長 回應:

    此版本好像沒有installer,不過installer的軟體cydia也下載的到,所以別擔心喔。

  28. QQ Says:

    成功了,非常感謝 :o
    安裝好後裡頭只有”Cydia”沒有”installer”??
    請問安裝好後就完成, 直接可以用嗎?
    還要做些什麼和注意些什麼呢

    站長 回應:

    此版本好像沒有installer,不過installer的軟體cydia也下載的到,所以別擔心喔。

    破解完後,還是和正常使用就可以了,多出來的Cydia可以用來下載AppStore上禁止的軟體,想了解更多可以到新手上路區找相關資料喔。

  29. Xaos Says:

    我在其他網站看到說破解完要替換MobileIntallation,能不能告訴我為什麼呢?

    站長 回應:

    破解完即可使用,不需要替換喔。

  30. SDD Says:

    請問如何看破解時所用的軟件是哪一種的?
    因為是給別人破解的
    不知道他破解是用新版的還是舊版的
    只知道是完美破解
    可以隨時關機
    軟件裡沒有你們說的installer
    但是有cydia
    installer是幹麼的?
    破解後玩遊戲是不是比沒破解玩遊戲來的耗電?
    破解完 下載遊戲
    遊戲副檔名是ipa
    請問怎麼放進去玩呢?
    抱歉問題很多 原諒我這新手><”

    站長 回應:

    用哪一種破解法其實不太看得出來,不過不論用哪一種方法都是一樣的,所以不用擔心。至於Cydia、installer的用處麻煩參考新手上路區,裡面可以找到你所需要的解答。此外,因為ipa已經違法,本站不允許討論ipa檔案的問題,而且容易造成系統錯誤。

  31. 猴猴 Says:

    太棒了!! 我已完成JB動作了!!

    改緊充實我的IPOD去了

    感謝詳細做法!!

    站長 回應:

    :cheer: 恭喜囉,希望常來喔。

  32. Xaos Says:

    請問installer的用處?(新手上路區沒說)謝謝~

    站長 回應:

    installer和cydia都是一樣的功能,可以用來下載AppStore上不被允許的軟體,例如背景更改、錄影功能等等。

  33. 阿偉 Says:

    我成功了!!
    只是cydia都是英文看不懂…囧
    我想安裝台灣的離線地圖我該怎麼找??

    站長 回應:

    離線地圖的教學還在撰寫當中,如果你很急著用,可以用Google尋找一下喔。

  34. 阿偉 Says:

    我找到了~~用xgps軟體
    可以下載地圖…只是好大~~~全台灣下載的話要6G
    怎麼會那麼多??

    站長 回應:

    這和地圖的詳細度有關,不過就算使用離線地圖軟體,全台灣的圖檔也是要上2或3 GB的,所以算是正常。你可以從你需要的地區開始下載起。

  35. Xaos Says:

    那請問installer和cydia既然功能一樣,有同時存在的必要嗎?謝謝
    (謝謝你的回答~因為最近想買一台,先做做功課 :88: )

    站長 回應:

    這和破解的演變有關,installer是最早的破解軟體,但隨著2.x的韌體發表,Cydia慢慢變的熱門,所以也就比較少人會用installer了,很多軟體現在都Cydia才能下載的到了。

  36. 阿ROY Says:

    請問一下站長
    我的歌都在I P T 裡
    破了以後 歌會沒了嗎
    電腦都沒了那些歌 我試了按備份
    但都找不到在那 如果有人知道 能告訴我在那個資料俠嗎 謝謝!!

    站長 回應:

    你用這個方法破解的話,所有的檔案並不會改變喔,都會保留住。如果你想把歌曲抓出來,是看看新手區中的”將歌曲從iPod/iPhone中匯出”。

  37. k!T Says:

    站長我有一個問題想問你…
    我想知道是不是在http://redsn0w.com/下載這3個軟件…?
    然後跟這些步驟,即按著home件等等…這些軟件就自動send入i-touch?
    還有沒有其他步驟…風險大不大的?
    希望站長看得明…

    站長 回應:

    只要依照網友提供的步驟就可以完成囉,風險當然不敢說沒有,不過此版本是目前最容易破解的。破解前請確定對電腦有一定程度的了解,並且了解破解。

  38. 樵 Says:

    我每次到步驟四的時候IPOD都會出現ITUNES跟USB的圖示ㄟ,我因該怎麼辦呢?在JB的時候也要開個ITUNES媽?我電腦是VISTA的可以使用嗎???我的DS模式一直顯示hit any key continue……

    站長 回應:

    這版本Vista也可以用喔。你要先確定一開始步驟一的時候你的iPod Touch是關機的喔。

  39. Bo Says:

    之前試了很多方法都不行,但用左這方法後右方便右快捷 V GOOD!!! :cheer: 重有我想問用了這方破解後是不是可以安裝遊戲??

    站長 回應:

    可以透過AppStore、Cydia下載遊戲。

  40. solid Anubis Says:

    請問一下~JB完後為何無法使用itunes匯入遊戲?
    我的IPHONE就可以…@@也是JB過的…
    另外,為何我JB完後沒有Installer這個軟體呢?

    站長 回應:

    你之前購買的軟體,只要在次下載就可以囉。如果你有備份,那使用備份同步也可以完成。此版本的破解沒有installer喔。

  41. andrew Says:

    不知為什麼..
    我總是 :@@: 不能進入DFU”模式,,,
    能教教我嗎?

  42. andrew Says:

    不知道為什麼
    我總是不能進入DFU模式
    每次跟你的步驟做後..就會關機了..
    能幫幫我嗎?

    站長 回應:

    請先確定在一開始的狀態是關機中的。

  43. 阿偉 Says:

    板大你好!!!
    我已經成功破解了!!!但是我想要在ipod touch2G裡面用注音輸入法
    請問我該去哪裡尋找??
    Xgps這款軟體我下載了地圖
    可是卻沒有辦法在離線狀態搜尋
    這樣不是很麻煩呢??
    cydia還有什麼有用或者是必推的軟體呢??

    站長 回應:

    注音法請參考:http://www.itouchtw.com/archives/528

    XGPS無法在離線搜尋,不過你可以在出發前先設定好,這樣就可以使用路線圖囉。

    cydia有許多好用的軟體,不知道你需要哪方面的?

  44. czh Says:

    在redshow下載後要怎樣??我開不到 :(

    站長 回應:

    下載後安裝完畢,然後重開機就可以用了。他不會出現在桌面上喔。

  45. andrew Says:

    我也是確認關機了才開始,,
    但做完以上的步驟..
    ipod touch仍是關機狀態,,,
    itunes也沒有偵測到ipod touch
    能幫幫我嗎??
    (我按power+home的時候,,,大約7秒,,電腦會”登”一聲…
    放了power鍵以後,,,按住home鍵大約7秒,,電腦會”登登登”響三聲…
    但itunes也是不能偵測到ipod touch.
    請問正確嗎?)

    站長 回應:

    聽你的步驟應該是沒錯,不過如果電腦一直找不到,我會建議你換台電腦,而且USB需要直接接電腦主機後面,並不能使用擴充的喔。

  46. aa Says:

    你好,我在安裝此軟體之後有幾個問題

    1.安裝完畢之後cydia是出現了,但是常有下載後的軟體一段時間會無法執行(也就是按了執行,進去後幾秒又跳出的問題)

    2.基於以上的情況,我就進行一次重置,結果沒想到跑完之後,畫面一直停留在黑屏白蘋果的開機畫面,一段時間它稍微閃一次,黑屏白蘋果又出現,目前一直持續這個情況,連上電腦也沒有接續的聲音

    因為是安裝此軟體之後才出現的現象,所以想跟您請教有沒有適合的處理方案

    站長 回應:

    1.請關機在開機,可以解決這樣的問題,如果重新開機後情況還是一樣,表是某些Cydia下載的軟體和系統有衝突。

    2.請用手動恢復原廠韌體,然後在破解一次。新手區有教學喔。

  47. 阿偉 Says:

    請問JB後的APP STORE可以更新嗎??
    iBuletooth 現在有哪些功能??可以連接連芽耳機放音樂嗎??

    站長 回應:

    JB後的AppStore還是可以更新喔,不會影響原本的軟體權益。iBluetooth目前還不支援iPod Touch喔。

  48. 阿道 Says:

    我想請問是什麼時候要按住那些鍵?我的等了半個多小時 都沒有成功…

    站長 回應:

    進行破解時,畫面上會有英文提示,提示會說哪時候要按。

  49. 阿偉 Says:

    請問除了 iacces 以外
    在cydia裡面還有別的注音輸入法嗎??
    iacces 只能試用20天
    之後就囧了!!

    站長 回應:

    iCosta有倉頡,可以透過Cydia下載。

  50. 蔡餅 Says:

    請救救我的IPOD TOUCH 一直卡在開機的白蘋果~連回覆都不行ˊˋ請大大救救我

    站長 回應:

    應該是你破解過程有漏掉步驟喔,還是不行開機的話,請刷回原廠韌體。新手區有教學喔。不行的話請在留言。

  51. nosunfish Says:

    站長請問~
    我在Downloading Jailbreak Data這邊跑了好久…
    看著小圈圈一直轉似乎都沒有鳳梨出現的樣子..
    一般人是2~3min就會完成嗎?

    謝謝~

    站長 回應:

    理論上應該不會超過5分鐘,如果你超過了表示過程有問題,刷回原廠韌體再次破解看看。如果還是一樣,建議你換台電腦。

  52. KENICHI Says:

    耶!!!第一支IPOD TOUCH入手一小時
    第一次就破解成功了
    真開心
    我是2.2.1版的
    感謝大大 :)

    站長 回應:

    :cheer: 恭喜,歡迎常來喔。

  53. tautoulover Says:

    站長請問一下
    放在touch裡面的東西
    例如 相片
    有辦法加密嗎?

    站長 回應:

    我不知道這個是不是你要的,請到AppStore找尋關鍵字”picture safe”。

  54. davidlpl8 Says:

    jailbreak 会不会有危险?会锁机吗?
    还有,我用的是英文机,也可以用同一个方法jailbreak 吗??

    站長 回應:

    鎖機只會發生在iPhone身上,iPod Touch破解失敗不會鎖機。不論哪國版本,只要是iPod Touch 2G,都可以使用這個方法破解。

  55. kkeevviinn46 Says:

    請問進入dfu模式之後
    他出現AppleMobileDevice:WriteFile error 1167
    然後就一直卡在Waiting for reboot
    這種情形該怎麼辦呢
    是哪裡出問題了
    麻煩解答一下
    感謝

    站長 回應:

    文章中5a.有提到喔,出現錯誤訊號要把usb拔掉再插回去。你現在要再重做一次囉。

Trackbacks

  1. iPod Touch 2G-QuickFreedom教學 | iTouchTW
  2. iPod Touch 2G完美破解法 | iTouchTW

留下寶貴的意見

:) :( :o :ohh: :88: :@@: :cheer: :blood: :jump: :lay: :x