[n**a@*** ~]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
140.115.0.0 * 255.255.0.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
default MGT-gw.mgt.ncu. 0.0.0.0 UG 0 0 0 eth0
[n**a@ncu ~]$ which route
/sbin/route
[n**a@ncu ~]$
------------------------------------
此指令可查詢、刪除或新增閘道器。
default是目前預設的閘道器。
2009年8月25日 星期二
2009年3月6日 星期五
[Linux文件] Vim 操作指令
要從normal mode切到insert mode,可用
a 從目前游標所在位置的下一個字元開始輸入
i 從游標所在位置插入新輸入的字元
o 新增加一行,並將游標移到下一行的開頭
-------------------------------------------
:w 要存的目的地 //儲存的指令
:q //離開vim,也搭配 ! 強制離開
-------------------------------------------
h //將游標向左移動一格
l //將游標向右移動一格
j //將游標向下移動一行
k //將游標向上移動一行
^b //等同pageup,^是ctrl鍵
^f //等同pagedown
^u //將游標向前移動半頁
^d //將游標向後移動半頁
^e //螢幕向下捲動一行
^y //螢幕向上捲動一行
0 //將游標移到該行最前面
$ //將游標移到該行最後面
G //將游標移到最後一行的開頭
w或W //將游標移到下一個字
e或E //將游標移到本單字的最後一個字元
b //將游標移到本單字的第一個字元
-------------------------------------------
yy //複製目前整行
nyy //複製包含此行共n行
yw //複製目前游標到此單字結束
nyw //複製目前游標到此單字結束及後面n-1個字
p //貼上複製文字
-------------------------------------------
d //配合上下左右鍵刪字
D //刪除一行中游標之後的所有字元
dd //刪整行
dw //功能似乎同D
nd //配合上下鍵刪n行,包括本行共n+1行
ndd //刪下方包括本行共n行
x //刪游標所在位置字元
X //刪游標所在前一字元
nx //刪游標後之n-1個字元,加上當前共n個字元
nX //刪當前游標前n個字元,不含當前游標字元
-------------------------------------------
/或? //搜尋字元
n //移到下一個找到的字串
N //移到上一個找到的字串
r //取代游標所在位置的字元
cc //取代當行
%s/temp/tmp/g //一口氣將temp全換成tmp
%s/temp/tmp/gc //將temp全換成tmp,系統會一個一個確認後再取代
-------------------------------------------
^g、^G //在最下方顯示游標所在位置及文章總行數
nG //移到第n行
-------------------------------------------
u //執行undo指令,就是取消前一次動作
^r //執行redo指令,還原前一次動作
. //重複編輯動作,像在word 的f4
a 從目前游標所在位置的下一個字元開始輸入
i 從游標所在位置插入新輸入的字元
o 新增加一行,並將游標移到下一行的開頭
-------------------------------------------
:w 要存的目的地 //儲存的指令
:q //離開vim,也搭配 ! 強制離開
-------------------------------------------
h //將游標向左移動一格
l //將游標向右移動一格
j //將游標向下移動一行
k //將游標向上移動一行
^b //等同pageup,^是ctrl鍵
^f //等同pagedown
^u //將游標向前移動半頁
^d //將游標向後移動半頁
^e //螢幕向下捲動一行
^y //螢幕向上捲動一行
0 //將游標移到該行最前面
$ //將游標移到該行最後面
G //將游標移到最後一行的開頭
w或W //將游標移到下一個字
e或E //將游標移到本單字的最後一個字元
b //將游標移到本單字的第一個字元
-------------------------------------------
yy //複製目前整行
nyy //複製包含此行共n行
yw //複製目前游標到此單字結束
nyw //複製目前游標到此單字結束及後面n-1個字
p //貼上複製文字
-------------------------------------------
d //配合上下左右鍵刪字
D //刪除一行中游標之後的所有字元
dd //刪整行
dw //功能似乎同D
nd //配合上下鍵刪n行,包括本行共n+1行
ndd //刪下方包括本行共n行
x //刪游標所在位置字元
X //刪游標所在前一字元
nx //刪游標後之n-1個字元,加上當前共n個字元
nX //刪當前游標前n個字元,不含當前游標字元
-------------------------------------------
/或? //搜尋字元
n //移到下一個找到的字串
N //移到上一個找到的字串
r //取代游標所在位置的字元
cc //取代當行
%s/temp/tmp/g //一口氣將temp全換成tmp
%s/temp/tmp/gc //將temp全換成tmp,系統會一個一個確認後再取代
-------------------------------------------
^g、^G //在最下方顯示游標所在位置及文章總行數
nG //移到第n行
-------------------------------------------
u //執行undo指令,就是取消前一次動作
^r //執行redo指令,還原前一次動作
. //重複編輯動作,像在word 的f4
2008年11月18日 星期二
[Linux文件] Azureus安裝、使用
linux中下載bt的軟體,不過感覺輸windows中的軟體一些 = =
裝法很容易,
#yum search azureus
就會找到有套件可裝。
# yum install azureus
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package azureus.i386 0:2.5.0.4-2.fc7 set to be updated
--> Processing Dependency: libswt3-gtk2 >= 3.2.0 for package: azureus
--> Processing Dependency: bouncycastle >= 1.33-3 for package: azureus
--> Processing Dependency: libgconf-java for package: azureus
--> Processing Dependency: jakarta-commons-cli for package: azureus
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package libgconf-java.i386 0:2.12.4-8.fc7 set to be updated
---> Package libswt3-gtk2.i386 1:3.2.2-15.fc7 set to be updated
---> Package bouncycastle.i386 0:1.34-3.fc7 set to be updated
---> Package jakarta-commons-cli.i386 0:1.0-6jpp_10.fc6 set to be updated
--> Processing Dependency: libgtkjni-2.8.so for package: libgconf-java
--> Processing Dependency: libgtkjava-2.8.so for package: libgconf-java
--> Processing Dependency: jakarta-commons-lang for package:
jakarta-commons-cli
--> Processing Dependency: libcairojava-1.0.so for package: libgconf-java
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package jakarta-commons-lang.i386 0:2.1-6jpp.1.fc7 set to be updated
---> Package libgtk-java.i386 0:2.8.7-4.fc7 set to be updated
---> Package cairo-java.i386 0:1.0.5-7.fc7 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
azureus i386 2.5.0.4-2.fc7 fedora 12 M
Installing for dependencies:
bouncycastle i386 1.34-3.fc7 fedora 2.3 M
cairo-java i386 1.0.5-7.fc7 fedora 134 k
jakarta-commons-cli i386 1.0-6jpp_10.fc6 fedora 68 k
jakarta-commons-lang i386 2.1-6jpp.1.fc7 fedora 421 k
libgconf-java i386 2.12.4-8.fc7 fedora 72 k
libgtk-java i386 2.8.7-4.fc7 fedora 2.1 M
libswt3-gtk2 i386 1:3.2.2-15.fc7 updates 3.1 M
Transaction Summary
=============================================================================
Install 8 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 20 M
Is this ok [y/N]: y
Downloading Packages:
(1/8): jakarta-commons-cl 100% |=========================| 68 kB 00:01
(2/8): libgconf-java-2.12 100% |=========================| 72 kB 00:02
(3/8): cairo-java-1.0.5-7 100% |=========================| 134 kB 00:04
(4/8): bouncycastle-1.34- 100% |=========================| 2.3 MB 00:54
(5/8): libswt3-gtk2-3.2.2 100% |=========================| 3.1 MB 00:53
(6/8): libgtk-java-2.8.7- 100% |=========================| 2.1 MB 00:29
(7/8): azureus-2.5.0.4-2. 100% |=========================| 12 MB 03:52
(8/8): jakarta-commons-la 100% |=========================| 421 kB 00:09
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: cairo-java ######################### [1/8]
Installing: libgtk-java ######################### [2/8]
Installing: libgconf-java ######################### [3/8]
Installing: bouncycastle ######################### [4/8]
Installing: libswt3-gtk2 ######################### [5/8]
Installing: jakarta-commons-lang ######################### [6/8]
Installing: jakarta-commons-cli ######################### [7/8]
Installing: azureus ######################### [8/8]
Installed: azureus.i386 0:2.5.0.4-2.fc7
Dependency Installed: bouncycastle.i386 0:1.34-3.fc7 cairo-java.i386
0:1.0.5-7.fc7 jakarta-commons-cli.i386 0:1.0-6jpp_10.fc6
jakarta-commons-lang.i386 0:2.1-6jpp.1.fc7 libgconf-java.i386 0:2.12.4-8.fc7
libgtk-java.i386 0:2.8.7-4.fc7 libswt3-gtk2.i386 1:3.2.2-15.fc7
Complete!
-----------------------------------------------
下上面的指令就裝好了,接下來就可以在應用程式,
網際網路那邊找到azureus可以執行了,
第一次進到程式中,會問一些設定的問題,
都盡量填一填,然後就可以打開種子下載了,
比較特別的是,如果沒有指定下載位置的話,
預設下載回來的檔案會放在 家目錄/.azureus/Documents/Azureus Downloads
-------------------------------------------------
還有一款下載bt的軟體叫CTorrent,是純命令列的client端下載軟體,
如果azureus表現真的超差的話,也可以試試!
--
裝法很容易,
#yum search azureus
就會找到有套件可裝。
# yum install azureus
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package azureus.i386 0:2.5.0.4-2.fc7 set to be updated
--> Processing Dependency: libswt3-gtk2 >= 3.2.0 for package: azureus
--> Processing Dependency: bouncycastle >= 1.33-3 for package: azureus
--> Processing Dependency: libgconf-java for package: azureus
--> Processing Dependency: jakarta-commons-cli for package: azureus
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package libgconf-java.i386 0:2.12.4-8.fc7 set to be updated
---> Package libswt3-gtk2.i386 1:3.2.2-15.fc7 set to be updated
---> Package bouncycastle.i386 0:1.34-3.fc7 set to be updated
---> Package jakarta-commons-cli.i386 0:1.0-6jpp_10.fc6 set to be updated
--> Processing Dependency: libgtkjni-2.8.so for package: libgconf-java
--> Processing Dependency: libgtkjava-2.8.so for package: libgconf-java
--> Processing Dependency: jakarta-commons-lang for package:
jakarta-commons-cli
--> Processing Dependency: libcairojava-1.0.so for package: libgconf-java
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package jakarta-commons-lang.i386 0:2.1-6jpp.1.fc7 set to be updated
---> Package libgtk-java.i386 0:2.8.7-4.fc7 set to be updated
---> Package cairo-java.i386 0:1.0.5-7.fc7 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
azureus i386 2.5.0.4-2.fc7 fedora 12 M
Installing for dependencies:
bouncycastle i386 1.34-3.fc7 fedora 2.3 M
cairo-java i386 1.0.5-7.fc7 fedora 134 k
jakarta-commons-cli i386 1.0-6jpp_10.fc6 fedora 68 k
jakarta-commons-lang i386 2.1-6jpp.1.fc7 fedora 421 k
libgconf-java i386 2.12.4-8.fc7 fedora 72 k
libgtk-java i386 2.8.7-4.fc7 fedora 2.1 M
libswt3-gtk2 i386 1:3.2.2-15.fc7 updates 3.1 M
Transaction Summary
=============================================================================
Install 8 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 20 M
Is this ok [y/N]: y
Downloading Packages:
(1/8): jakarta-commons-cl 100% |=========================| 68 kB 00:01
(2/8): libgconf-java-2.12 100% |=========================| 72 kB 00:02
(3/8): cairo-java-1.0.5-7 100% |=========================| 134 kB 00:04
(4/8): bouncycastle-1.34- 100% |=========================| 2.3 MB 00:54
(5/8): libswt3-gtk2-3.2.2 100% |=========================| 3.1 MB 00:53
(6/8): libgtk-java-2.8.7- 100% |=========================| 2.1 MB 00:29
(7/8): azureus-2.5.0.4-2. 100% |=========================| 12 MB 03:52
(8/8): jakarta-commons-la 100% |=========================| 421 kB 00:09
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: cairo-java ######################### [1/8]
Installing: libgtk-java ######################### [2/8]
Installing: libgconf-java ######################### [3/8]
Installing: bouncycastle ######################### [4/8]
Installing: libswt3-gtk2 ######################### [5/8]
Installing: jakarta-commons-lang ######################### [6/8]
Installing: jakarta-commons-cli ######################### [7/8]
Installing: azureus ######################### [8/8]
Installed: azureus.i386 0:2.5.0.4-2.fc7
Dependency Installed: bouncycastle.i386 0:1.34-3.fc7 cairo-java.i386
0:1.0.5-7.fc7 jakarta-commons-cli.i386 0:1.0-6jpp_10.fc6
jakarta-commons-lang.i386 0:2.1-6jpp.1.fc7 libgconf-java.i386 0:2.12.4-8.fc7
libgtk-java.i386 0:2.8.7-4.fc7 libswt3-gtk2.i386 1:3.2.2-15.fc7
Complete!
-----------------------------------------------
下上面的指令就裝好了,接下來就可以在應用程式,
網際網路那邊找到azureus可以執行了,
第一次進到程式中,會問一些設定的問題,
都盡量填一填,然後就可以打開種子下載了,
比較特別的是,如果沒有指定下載位置的話,
預設下載回來的檔案會放在 家目錄/.azureus/Documents/Azureus Downloads
-------------------------------------------------
還有一款下載bt的軟體叫CTorrent,是純命令列的client端下載軟體,
如果azureus表現真的超差的話,也可以試試!
--
2008年8月28日 星期四
[Linux文件] wireshark安裝教學
wireshark其實就是ehtereal的團體出來換名開發的軟體,
其功能和原本的ehtereal一樣,安裝方式如下:
先下指令查詢一下有那些可以安裝,
# yum search wireshark
Loading "installonlyn" plugin
fedora 100% |=========================| 2.1 kB 00:00
livna 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 166 kB 00:02
updates 100% |=========================| 2.3 kB 00:00
primary.sqlite.bz2 100% |=========================| 2.1 MB 19:39
wireshark-gnome.i386 0.99.5-1.fc7 fedora
Matched from:
wireshark-gnome
Gnome desktop integration for wireshark and wireshark-usermode
Contains wireshark for Gnome 2 and desktop integration file
http://www.wireshark.org/
wireshark.i386 0.99.5-1.fc7 fedora
Matched from:
wireshark
Wireshark is a network traffic analyzer for Unix-ish operating systems.
This package lays base for libpcap, a packet capture and filtering
library, contains command-line utilities, contains plugins and
documentation for wireshark. A graphical user interface is packaged
separately to GTK+ package.
http://www.wireshark.org/
wireshark-gnome.i386 0.99.7-1.fc7 updates
Matched from:
wireshark-gnome
Gnome desktop integration for wireshark and wireshark-usermode
Contains wireshark for Gnome 2 and desktop integration file
http://www.wireshark.org/
pcapdiff.noarch 0.1-2.fc7 updates
Matched from:
Pcapdiff is a tool developed by the EFF to compare two packet captures and
identify potentially forged, dropped, or mangled packets. Two technically-
inclined friends can set up packet captures (e.g. tcpdump or Wireshark) on
their own computers and produce network traffic between their two computers
over the Internet. Later, they can run pcapdiff on the two packet capture
files to identify suspicious packets for further investigation. See
Detecting packet injection: a guide to observing packet spoofing by ISPs
and EFF's Test Your ISP Project for more background.
wireshark.i386 0.99.7-1.fc7 updates
Matched from:
wireshark
Wireshark is a network traffic analyzer for Unix-ish operating systems.
This package lays base for libpcap, a packet capture and filtering
library, contains command-line utilities, contains plugins and
documentation for wireshark. A graphical user interface is packaged
separately to GTK+ package.
http://www.wireshark.org/
-------------------------------------------------------
上面我們可以看到,其實就是主程式和gnome圖型化介面套件及lib檔,
所以我們就下兩次指令分別安裝主程式和圖型化介面,
# yum install wireshark
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
fedora 100% |=========================| 2.1 kB 00:00
livna 100% |=========================| 2.1 kB 00:00
updates 100% |=========================| 2.3 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package wireshark.i386 0:0.99.7-1.fc7 set to be updated
--> Processing Dependency: libsmi for package: wireshark
--> Processing Dependency: libsmi.so.2 for package: wireshark
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package libsmi.i386 0:0.4.5-2.fc6 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
wireshark i386 0.99.7-1.fc7 updates 10 M
Installing for dependencies:
libsmi i386 0.4.5-2.fc6 fedora 2.4 M
Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): wireshark-0.99.7-1 100% |=========================| 10 MB 02:11
(2/2): libsmi-0.4.5-2.fc6 100% |=========================| 2.4 MB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: libsmi ######################### [1/2]
Installing: wireshark ######################### [2/2]
Installed: wireshark.i386 0:0.99.7-1.fc7
Dependency Installed: libsmi.i386 0:0.4.5-2.fc6
Complete!
------------------------------------------------------
上面安裝好主程式後,再來安裝圖型化介面,
# yum install wireshark-gnome
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package wireshark-gnome.i386 0:0.99.7-1.fc7 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
wireshark-gnome i386 0.99.7-1.fc7 updates 642 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 642 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): wireshark-gnome-0. 100% |=========================| 642 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: wireshark-gnome ######################### [1/1]
Installed: wireshark-gnome.i386 0:0.99.7-1.fc7
Complete!
--------------------------------------------------------------
這樣安裝完後,就可以在「應用程式」->「網際網路」,
開啟wireshark natwork analyzer應用程式了!
至於相關使用上的教學,和windows上大同小異,
就留待下篇一并講解~
--
其功能和原本的ehtereal一樣,安裝方式如下:
先下指令查詢一下有那些可以安裝,
# yum search wireshark
Loading "installonlyn" plugin
fedora 100% |=========================| 2.1 kB 00:00
livna 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 166 kB 00:02
updates 100% |=========================| 2.3 kB 00:00
primary.sqlite.bz2 100% |=========================| 2.1 MB 19:39
wireshark-gnome.i386 0.99.5-1.fc7 fedora
Matched from:
wireshark-gnome
Gnome desktop integration for wireshark and wireshark-usermode
Contains wireshark for Gnome 2 and desktop integration file
http://www.wireshark.org/
wireshark.i386 0.99.5-1.fc7 fedora
Matched from:
wireshark
Wireshark is a network traffic analyzer for Unix-ish operating systems.
This package lays base for libpcap, a packet capture and filtering
library, contains command-line utilities, contains plugins and
documentation for wireshark. A graphical user interface is packaged
separately to GTK+ package.
http://www.wireshark.org/
wireshark-gnome.i386 0.99.7-1.fc7 updates
Matched from:
wireshark-gnome
Gnome desktop integration for wireshark and wireshark-usermode
Contains wireshark for Gnome 2 and desktop integration file
http://www.wireshark.org/
pcapdiff.noarch 0.1-2.fc7 updates
Matched from:
Pcapdiff is a tool developed by the EFF to compare two packet captures and
identify potentially forged, dropped, or mangled packets. Two technically-
inclined friends can set up packet captures (e.g. tcpdump or Wireshark) on
their own computers and produce network traffic between their two computers
over the Internet. Later, they can run pcapdiff on the two packet capture
files to identify suspicious packets for further investigation. See
Detecting packet injection: a guide to observing packet spoofing by ISPs
and EFF's Test Your ISP Project for more background.
wireshark.i386 0.99.7-1.fc7 updates
Matched from:
wireshark
Wireshark is a network traffic analyzer for Unix-ish operating systems.
This package lays base for libpcap, a packet capture and filtering
library, contains command-line utilities, contains plugins and
documentation for wireshark. A graphical user interface is packaged
separately to GTK+ package.
http://www.wireshark.org/
-------------------------------------------------------
上面我們可以看到,其實就是主程式和gnome圖型化介面套件及lib檔,
所以我們就下兩次指令分別安裝主程式和圖型化介面,
# yum install wireshark
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
fedora 100% |=========================| 2.1 kB 00:00
livna 100% |=========================| 2.1 kB 00:00
updates 100% |=========================| 2.3 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package wireshark.i386 0:0.99.7-1.fc7 set to be updated
--> Processing Dependency: libsmi for package: wireshark
--> Processing Dependency: libsmi.so.2 for package: wireshark
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package libsmi.i386 0:0.4.5-2.fc6 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
wireshark i386 0.99.7-1.fc7 updates 10 M
Installing for dependencies:
libsmi i386 0.4.5-2.fc6 fedora 2.4 M
Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): wireshark-0.99.7-1 100% |=========================| 10 MB 02:11
(2/2): libsmi-0.4.5-2.fc6 100% |=========================| 2.4 MB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: libsmi ######################### [1/2]
Installing: wireshark ######################### [2/2]
Installed: wireshark.i386 0:0.99.7-1.fc7
Dependency Installed: libsmi.i386 0:0.4.5-2.fc6
Complete!
------------------------------------------------------
上面安裝好主程式後,再來安裝圖型化介面,
# yum install wireshark-gnome
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package wireshark-gnome.i386 0:0.99.7-1.fc7 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
wireshark-gnome i386 0.99.7-1.fc7 updates 642 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 642 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): wireshark-gnome-0. 100% |=========================| 642 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: wireshark-gnome ######################### [1/1]
Installed: wireshark-gnome.i386 0:0.99.7-1.fc7
Complete!
--------------------------------------------------------------
這樣安裝完後,就可以在「應用程式」->「網際網路」,
開啟wireshark natwork analyzer應用程式了!
至於相關使用上的教學,和windows上大同小異,
就留待下篇一并講解~
--
2008年8月25日 星期一
[Linux文件] pico 另一套文件編輯器
和vim差不多,一樣是文字編輯器,
但是介面比較容易上手,適合新手,
fedora7似乎並未內建,但是安裝很容易,
pico是和pine綁在一起的,pine是華盛頓大學開發的,
所以要用pico就要安裝pine這個看電子郵件的套件,
安裝指令如下:
------------------------------------
# yum install pine
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package pine.i386 0:4.64-7.lvn7 set to be updated
--> Processing Dependency: libc-client.so.2006 for package: pine
--> Processing Dependency: libc-client2006 >= 2006k for package: pine
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package libc-client2006.i386 0:2006k-1.fc7 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
pine i386 4.64-7.lvn7 livna 1.9 M
Installing for dependencies:
libc-client2006 i386 2006k-1.fc7 updates 666 k
Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 2.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): libc-client2006-20 100% |=========================| 666 kB 00:09
(2/2): pine-4.64-7.lvn7.i 100% |=========================| 1.9 MB 00:26
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: libc-client2006 ######################### [1/2]
Installing: pine ######################### [2/2]
Installed: pine.i386 0:4.64-7.lvn7
Dependency Installed: libc-client2006.i386 0:2006k-1.fc7
Complete!
-------------------------------------
相比vim,因為下面功能列會有提示操作,
所以比較簡單,pico預設單行輸入太長時會自動斷行,
這在編輯一些設定檔時反而會出問題,所以要這樣解決。
#pico -w 檔案名
加上w參數,就可以不自動斷行。
--
但是介面比較容易上手,適合新手,
fedora7似乎並未內建,但是安裝很容易,
pico是和pine綁在一起的,pine是華盛頓大學開發的,
所以要用pico就要安裝pine這個看電子郵件的套件,
安裝指令如下:
------------------------------------
# yum install pine
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package pine.i386 0:4.64-7.lvn7 set to be updated
--> Processing Dependency: libc-client.so.2006 for package: pine
--> Processing Dependency: libc-client2006 >= 2006k for package: pine
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package libc-client2006.i386 0:2006k-1.fc7 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
pine i386 4.64-7.lvn7 livna 1.9 M
Installing for dependencies:
libc-client2006 i386 2006k-1.fc7 updates 666 k
Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 2.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): libc-client2006-20 100% |=========================| 666 kB 00:09
(2/2): pine-4.64-7.lvn7.i 100% |=========================| 1.9 MB 00:26
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: libc-client2006 ######################### [1/2]
Installing: pine ######################### [2/2]
Installed: pine.i386 0:4.64-7.lvn7
Dependency Installed: libc-client2006.i386 0:2006k-1.fc7
Complete!
-------------------------------------
相比vim,因為下面功能列會有提示操作,
所以比較簡單,pico預設單行輸入太長時會自動斷行,
這在編輯一些設定檔時反而會出問題,所以要這樣解決。
#pico -w 檔案名
加上w參數,就可以不自動斷行。
--
2008年4月4日 星期五
[Linux文件] filezilla 安裝、設定
安裝使用yum即可輕鬆裝起來,
# yum install filezilla
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package filezilla.i386 0:3.0.2.1-1.fc7 set to be updated
--> Processing Dependency: libwx_gtk2u_html-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_qa-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_aui-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_baseu_net-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_xrc-2.8.so.0(WXU_2.8) for package:
filezilla
--> Processing Dependency: libwx_gtk2u_xrc-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_adv-2.8.so.0(WXU_2.8) for package:
filezilla
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8) for package:
filezilla
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_adv-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_baseu-2.8.so.0(WXU_2.8) for package:
filezilla
--> Processing Dependency: libwx_baseu-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_baseu_net-2.8.so.0(WXU_2.8) for package:
filezilla
--> Processing Dependency: libwx_baseu_xml-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_aui-2.8.so.0(WXU_2.8) for package:
filezilla
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package wxGTK.i386 0:2.8.4-3.fc7 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
filezilla i386 3.0.2.1-1.fc7 updates 2.1 M
Installing for dependencies:
wxGTK i386 2.8.4-3.fc7 updates 4.4 M
[mTransaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 6.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): wxGTK-2.8.4-3.fc7. 100% |=========================| 4.4 MB 00:12
(2/2): filezilla-3.0.2.1- 100% |=========================| 2.1 MB 00:06
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: wxGTK ######################### [1/2]
Installing: filezilla ######################### [2/2]
Installed: filezilla.i386 0:3.0.2.1-1.fc7
Dependency Installed: wxGTK.i386 0:2.8.4-3.fc7
Complete!
---------------------------------------------------------
如上操作即可輕鬆安裝好filezilla,然後gnome面版中,
應用程式->網際網路中就可以執行程式,
在軟體使用上都和windows版的一樣,唯一比較麻煩的地方是,
軟體內建是使用utf8的編碼,但是大部份的ftp server是用big5,
所以要如下參考文獻操作~
http://blog.xuite.net/ericsk0313/ubuntu/5454248
簡單附圖如下~
http://farm3.static.flickr.com/2329/2133074116_28d24b1254_o.png
# yum install filezilla
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package filezilla.i386 0:3.0.2.1-1.fc7 set to be updated
--> Processing Dependency: libwx_gtk2u_html-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_qa-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_aui-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_baseu_net-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_xrc-2.8.so.0(WXU_2.8) for package:
filezilla
--> Processing Dependency: libwx_gtk2u_xrc-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_adv-2.8.so.0(WXU_2.8) for package:
filezilla
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8) for package:
filezilla
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_adv-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_baseu-2.8.so.0(WXU_2.8) for package:
filezilla
--> Processing Dependency: libwx_baseu-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_baseu_net-2.8.so.0(WXU_2.8) for package:
filezilla
--> Processing Dependency: libwx_baseu_xml-2.8.so.0 for package: filezilla
--> Processing Dependency: libwx_gtk2u_aui-2.8.so.0(WXU_2.8) for package:
filezilla
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package wxGTK.i386 0:2.8.4-3.fc7 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
filezilla i386 3.0.2.1-1.fc7 updates 2.1 M
Installing for dependencies:
wxGTK i386 2.8.4-3.fc7 updates 4.4 M
[mTransaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 6.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): wxGTK-2.8.4-3.fc7. 100% |=========================| 4.4 MB 00:12
(2/2): filezilla-3.0.2.1- 100% |=========================| 2.1 MB 00:06
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: wxGTK ######################### [1/2]
Installing: filezilla ######################### [2/2]
Installed: filezilla.i386 0:3.0.2.1-1.fc7
Dependency Installed: wxGTK.i386 0:2.8.4-3.fc7
Complete!
---------------------------------------------------------
如上操作即可輕鬆安裝好filezilla,然後gnome面版中,
應用程式->網際網路中就可以執行程式,
在軟體使用上都和windows版的一樣,唯一比較麻煩的地方是,
軟體內建是使用utf8的編碼,但是大部份的ftp server是用big5,
所以要如下參考文獻操作~
http://blog.xuite.net/ericsk0313/ubuntu/5454248
簡單附圖如下~
http://farm3.static.flickr.com/2329/2133074116_28d24b1254_o.png
2008年3月8日 星期六
[Linux文件] ncftp 安裝、使用
ncftp是命令列的ftp client端套件,安裝方式如下,
# yum install ncftp
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package ncftp.i386 2:3.2.0-3.fc7 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
ncftp i386 2:3.2.0-3.fc7 fedora 557 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 557 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): ncftp-3.2.0-3.fc7. 100% |=========================| 557 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: ncftp ######################### [1/1]
Installed: ncftp.i386 2:3.2.0-3.fc7
Complete!
--------------------------------------------
使用上,-u 是帳號 -p 是密碼(可以先不打,登入再key in) -P 是port
# ncftp -u XPG -P 6666 140.115.80.91
接下來伺服器會問密碼,key in 即可
用get指令可以下載檔案、ls列目錄
cd 可切換目錄、put可上傳目錄,
但是實際使用上,會出現錯誤訊息,
下次再試試吧>"<
--
# yum install ncftp
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package ncftp.i386 2:3.2.0-3.fc7 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
ncftp i386 2:3.2.0-3.fc7 fedora 557 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 557 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): ncftp-3.2.0-3.fc7. 100% |=========================| 557 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: ncftp ######################### [1/1]
Installed: ncftp.i386 2:3.2.0-3.fc7
Complete!
--------------------------------------------
使用上,-u 是帳號 -p 是密碼(可以先不打,登入再key in) -P 是port
# ncftp -u XPG -P 6666 140.115.80.91
接下來伺服器會問密碼,key in 即可
用get指令可以下載檔案、ls列目錄
cd 可切換目錄、put可上傳目錄,
但是實際使用上,會出現錯誤訊息,
下次再試試吧>"<
--
2008年3月2日 星期日
[Linux文件] 更新時間 ntpdate
內建的date指令可以看系統時間,clock也可以,
但是clock只提供root使用。
另外ntpdate指令可以用來和網路時間伺服器進行時間校正,
但是fedora不一定有內建,使用下面安裝,
#yum install ntp
就會找到大約1.3mb的檔案可裝了,裝上後執行指令可能找不到,
這個指令裝到/usr/sbin下面,可以用find指令來找,
#fing / -name ntp* -print
再到家目錄bash檔設定路徑,可以參考之前的文件,
記得要登出,新設定才會生效,
接下來就可以使用ntpdate指令來校正時間了。
#ntpdate stdtime.sinica.edu.tw
奇怪的是,上面的時間居然不準@@,
不管怎樣,就算準,
也要下這行指令把時間資訊寫入cmos才會真的改變時間設定。
#clock -w
---------------------------------------
順便附上台灣常用時間伺服器,話說中正也有架喔!
台灣常見的 Time Server 為:
time.stdtime.gov.tw
clock.stdtime.gov.tw
freq_f.stdtime.gov.tw
tick.stdtime.gov.tw
time.chttl.com.tw
廣告一下,中正大學也有提供 ntp.ccu.edu.tw
但是clock只提供root使用。
另外ntpdate指令可以用來和網路時間伺服器進行時間校正,
但是fedora不一定有內建,使用下面安裝,
#yum install ntp
就會找到大約1.3mb的檔案可裝了,裝上後執行指令可能找不到,
這個指令裝到/usr/sbin下面,可以用find指令來找,
#fing / -name ntp* -print
再到家目錄bash檔設定路徑,可以參考之前的文件,
記得要登出,新設定才會生效,
接下來就可以使用ntpdate指令來校正時間了。
#ntpdate stdtime.sinica.edu.tw
奇怪的是,上面的時間居然不準@@,
不管怎樣,就算準,
也要下這行指令把時間資訊寫入cmos才會真的改變時間設定。
#clock -w
---------------------------------------
順便附上台灣常用時間伺服器,話說中正也有架喔!
台灣常見的 Time Server 為:
time.stdtime.gov.tw
clock.stdtime.gov.tw
freq_f.stdtime.gov.tw
tick.stdtime.gov.tw
time.chttl.com.tw
廣告一下,中正大學也有提供 ntp.ccu.edu.tw
2008年1月23日 星期三
[Linux文件] 安裝JDK環境
先列上一篇安裝教學文章,可以做參考,
但是我這次安裝不是用這樣的方式。
http://my.so-net.net.tw/idealist/servlet/Tomcat.html
-----------------------------擷取---------------------------
安裝Tomcat (Linux)
(Steven Shi, idealist@gcn.net.tw, 2002/09/08)
網路上常有網友詢問在Linux上如何安裝Tomcat,其實現在Tomcat的安裝己做的相當簡單
,茲說明如下: (我使用的是J2SE 1.4.1和Tomcat 4.1.10,如果版本不同可能安裝時也會
有些許不同)
1. 下載並安裝 J2SE:
下載網址為http://java.sun.com,下載後可得到名為
j2sdk-1_4_1-rc-linux-i586.rpm.bin的檔案,它是一個執行檔,
但是權限在下載後為644,無法執行,
所以先用chmod更改權限為可執行…
chmod 755 j2sdk-1_4_1-rc-linux-i586.rpm.bin
然後執行j2sdk-1_4_1-rc-linux-i586.rpm.bin…
./ j2sdk-1_4_1-rc-linux-i586.rpm.bin
執行後會得到j2sdk-1_4_1-rc-linux-i586.rpm,這時候用rpm解開就行了…
rpm -ivh j2sdk-1_4_1-rc-linux-i586.rpm
安裝後J2SE會安裝在/usr/java/j2sdk1.4.1
2. 下載並安裝Tomcat:
下載網址為http://jakarta.apache.org,下載後可得到名為
jakarta-tomcat-4.1.10.tar.gz的檔案,將它放到/opt底下,用tar解開…
tar zxvf jakarta-tomcat-4.1.10.tar.gz
執行後會安裝到/opt/jakarta-tomcat-4.1.10
3. 設定環境變數:
在/etc/profile中加入以下粗斜體部份…
JAVA_HOME=/usr/java/j2sdk1.4.1
CATALINA_HOME=/opt/jakarta-tomcat-4.1.10
CLASSPATH=$CATALINA_HOME/common/lib/servlet.jar
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME
CATALINA_HOME CLASSPATH
---------------------------------------擷取線---------
不知道是fedora7已經預先裝好還是怎樣,我是用yum裝的~
# yum search jdk
從結果判斷,我要裝的是
jakarta-commons-collections-testframewor 3.1-9jpp.1.fc7 fedora
所以呢~
[root@MoblieLab burning]# yum install jakarta-commons-collections
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
filelists.sqlite.bz2 100% |=========================| 4.5 MB 00:16
---> Package jakarta-commons-collections.i386 0:3.1-9jpp.2.fc7.1 set to be
updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
jakarta-commons-collections i386 3.1-9jpp.2.fc7.1 updates
914 k
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 914 k
Is this ok [y/N]: y
-----------------------------------------------
但是這個指令執行的似乎只是更新不是安裝,所以我想可能之前已經裝過了,
不管,總之就是要裝這個套件就是了,
也可以行java官網安裝,只是比較麻煩 = =
接下來就是測試能不能使用javac編譯程式,參考下文
http://caterpillar.onlyfun.net/Gossip/JavaGossip-V1/FirstJava.htm
詳細程式碼如下
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello! World!");
}
}
如果編譯完成產生class檔後,可執行就成功了!
--
但是我這次安裝不是用這樣的方式。
http://my.so-net.net.tw/idealist/servlet/Tomcat.html
-----------------------------擷取---------------------------
安裝Tomcat (Linux)
(Steven Shi, idealist@gcn.net.tw, 2002/09/08)
網路上常有網友詢問在Linux上如何安裝Tomcat,其實現在Tomcat的安裝己做的相當簡單
,茲說明如下: (我使用的是J2SE 1.4.1和Tomcat 4.1.10,如果版本不同可能安裝時也會
有些許不同)
1. 下載並安裝 J2SE:
下載網址為http://java.sun.com,下載後可得到名為
j2sdk-1_4_1-rc-linux-i586.rpm.bin的檔案,它是一個執行檔,
但是權限在下載後為644,無法執行,
所以先用chmod更改權限為可執行…
chmod 755 j2sdk-1_4_1-rc-linux-i586.rpm.bin
然後執行j2sdk-1_4_1-rc-linux-i586.rpm.bin…
./ j2sdk-1_4_1-rc-linux-i586.rpm.bin
執行後會得到j2sdk-1_4_1-rc-linux-i586.rpm,這時候用rpm解開就行了…
rpm -ivh j2sdk-1_4_1-rc-linux-i586.rpm
安裝後J2SE會安裝在/usr/java/j2sdk1.4.1
2. 下載並安裝Tomcat:
下載網址為http://jakarta.apache.org,下載後可得到名為
jakarta-tomcat-4.1.10.tar.gz的檔案,將它放到/opt底下,用tar解開…
tar zxvf jakarta-tomcat-4.1.10.tar.gz
執行後會安裝到/opt/jakarta-tomcat-4.1.10
3. 設定環境變數:
在/etc/profile中加入以下粗斜體部份…
JAVA_HOME=/usr/java/j2sdk1.4.1
CATALINA_HOME=/opt/jakarta-tomcat-4.1.10
CLASSPATH=$CATALINA_HOME/common/lib/servlet.jar
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME
CATALINA_HOME CLASSPATH
---------------------------------------擷取線---------
不知道是fedora7已經預先裝好還是怎樣,我是用yum裝的~
# yum search jdk
從結果判斷,我要裝的是
jakarta-commons-collections-testframewor 3.1-9jpp.1.fc7 fedora
所以呢~
[root@MoblieLab burning]# yum install jakarta-commons-collections
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
filelists.sqlite.bz2 100% |=========================| 4.5 MB 00:16
---> Package jakarta-commons-collections.i386 0:3.1-9jpp.2.fc7.1 set to be
updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
jakarta-commons-collections i386 3.1-9jpp.2.fc7.1 updates
914 k
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 914 k
Is this ok [y/N]: y
-----------------------------------------------
但是這個指令執行的似乎只是更新不是安裝,所以我想可能之前已經裝過了,
不管,總之就是要裝這個套件就是了,
也可以行java官網安裝,只是比較麻煩 = =
接下來就是測試能不能使用javac編譯程式,參考下文
http://caterpillar.onlyfun.net/Gossip/JavaGossip-V1/FirstJava.htm
詳細程式碼如下
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello! World!");
}
}
如果編譯完成產生class檔後,可執行就成功了!
--
2007年12月27日 星期四
[Linux文件] VirtualBox 網路、音效
在虛擬器軟體裡的網路選項中,選nat,
進到xp後,設定網路自動取得ip即可以上網,
至於音效方面,如設定網路一般,
在軟體選項點音效,選ALSA音效驅動程式,
這樣子進xp就有音效了。
但是在實際上用的時間,效果很好,
只是在用完xp,關機或是用到一半,
linux卻不能上網了@@,原因還不清楚,
不過要一直調ifconfig,換插網路孔才能再上線,
看來還要再觀察。
附記.最後一次連beryl都爆炸了 = =
我是用ctrl + alt F6 切到虛擬作業台,
用root把beryl砍了再能再進xwindow的…
下次再實驗!
--
進到xp後,設定網路自動取得ip即可以上網,
至於音效方面,如設定網路一般,
在軟體選項點音效,選ALSA音效驅動程式,
這樣子進xp就有音效了。
但是在實際上用的時間,效果很好,
只是在用完xp,關機或是用到一半,
linux卻不能上網了@@,原因還不清楚,
不過要一直調ifconfig,換插網路孔才能再上線,
看來還要再觀察。
附記.最後一次連beryl都爆炸了 = =
我是用ctrl + alt F6 切到虛擬作業台,
用root把beryl砍了再能再進xwindow的…
下次再實驗!
--
2007年12月25日 星期二
[Linux文件] VirtualBox安裝使用
http://www.virtualbox.org/wiki/Linux%20build%20instructions
上面是官方網站,點download頁面,
有fedora7、6、5的安裝包(之前只有7@@)
請下載7的rmp安裝包,拿回來執行
#rpm -ivh Virtual...(tab補完)
裝好後,會顯示不能啟動什麼什麼文件之類的,
提示訊息是請你把要使用virtualbox的user加到這個群組,
所以到系統->管理->使用者及群組->管理群組(最後一個和fedora不同)
把root和其它user加到virtualbox的群組即可!
這時不要忘了先登出讓設定生效!
------------------------------
登入後,就可以在應用程式列表裡找到virtualbox,
執行,然後用法就和vmware差不多,
這版本的中文化做的很好,也有很多提示,
在使用上應該不會有什麼問題,記得設定時,
要把光碟機選起來,不然虛擬機器會沒有光碟機開機XD
下面再給幾個教學網站。
http://noviceworld.blogspot.com/2007/09/virtualbox-15.html
http://oss-tw.blogspot.com/2007/10/linux-mac-os-x.html
據說虛擬出來的xp會沒網路,不過有解決辦法,
下次再一起解決!試用看看,
如果效果不錯,那轉換平台到linux的日子就不遠了XD
--------------------------------------
之前一直在試如何在Linux下無縫執行Windows
找了許多網站並且也照著執行
卻也還是無法成功
而就在昨天上課
老師跟我們說Virtualbox 1.5已經將無縫執行的功能內建了
今天想說就試試
竟然還真給我成功了
還真有一股莫名的興奮
其實這還挺簡單的
不用像之前還要安裝什麼、設定什麼的
首先當然就是下載Virtualbox 1.5後安裝
安裝好之後要將自己的帳號納入vboxusers群組之下
從系統->管理->使用者及群組->管理群組
進入群組設定名單
找尋vboxusers這個群組名稱後選擇屬性
將你想可以使用VirtualBox軟體的使用者全勾選起來
就完成權限設定了
如此就可使用Virtualbox安裝Windows XP了
安裝完成後就可以正常使用Windows XP了但是還不是很方便
因每當你要操作Windows XP時就要在視窗上點一下進入Guest環境
此時鍵盤與游標都會被這個視窗綁住
要跳離的話得按下右端的ctrl鍵
而且也沒有網路
畫面解析度也不高
VirtualBox為了提供更好的Guest功能
便製作了一個叫VBoxGuestAdditions的擴充套件
提供網路存取以及其他豐富的功能
安裝方法是在Virtualbox的主畫面選擇設定值
進入光碟分頁
選擇掛載ISO映像檔
掛載/usr/share/virtualbox/VBoxGuestAdditions.iso
開啟虛擬的Windows後
安裝光碟機裡的檔案重開機就ok了
按快捷鍵Crtl+L就可以無縫執行Windows了
還有VirtualBox提供了分享資料夾的概念
可以讓Guest與Host之間的檔案相通
設定方法在主畫面的設定值裡
分享資料夾分頁中使用新增
指定要分享的Host資料夾以及名稱
我是將分享資料夾名稱設定為linux
位置在/home/neversay/Desktop中
設定完後開啟虛擬Windows
開啟主選單->執行
在輸入欄中填入
net use z: \\vboxsvr\linux
這樣在windows我的電腦中
就會出現代號z的網路磁碟機了
主客端作業系統就可以藉由這個磁碟機互傳資料囉
上面是官方網站,點download頁面,
有fedora7、6、5的安裝包(之前只有7@@)
請下載7的rmp安裝包,拿回來執行
#rpm -ivh Virtual...(tab補完)
裝好後,會顯示不能啟動什麼什麼文件之類的,
提示訊息是請你把要使用virtualbox的user加到這個群組,
所以到系統->管理->使用者及群組->管理群組(最後一個和fedora不同)
把root和其它user加到virtualbox的群組即可!
這時不要忘了先登出讓設定生效!
------------------------------
登入後,就可以在應用程式列表裡找到virtualbox,
執行,然後用法就和vmware差不多,
這版本的中文化做的很好,也有很多提示,
在使用上應該不會有什麼問題,記得設定時,
要把光碟機選起來,不然虛擬機器會沒有光碟機開機XD
下面再給幾個教學網站。
http://noviceworld.blogspot.com/2007/09/virtualbox-15.html
http://oss-tw.blogspot.com/2007/10/linux-mac-os-x.html
據說虛擬出來的xp會沒網路,不過有解決辦法,
下次再一起解決!試用看看,
如果效果不錯,那轉換平台到linux的日子就不遠了XD
--------------------------------------
之前一直在試如何在Linux下無縫執行Windows
找了許多網站並且也照著執行
卻也還是無法成功
而就在昨天上課
老師跟我們說Virtualbox 1.5已經將無縫執行的功能內建了
今天想說就試試
竟然還真給我成功了
還真有一股莫名的興奮
其實這還挺簡單的
不用像之前還要安裝什麼、設定什麼的
首先當然就是下載Virtualbox 1.5後安裝
安裝好之後要將自己的帳號納入vboxusers群組之下
從系統->管理->使用者及群組->管理群組
進入群組設定名單
找尋vboxusers這個群組名稱後選擇屬性
將你想可以使用VirtualBox軟體的使用者全勾選起來
就完成權限設定了
如此就可使用Virtualbox安裝Windows XP了
安裝完成後就可以正常使用Windows XP了但是還不是很方便
因每當你要操作Windows XP時就要在視窗上點一下進入Guest環境
此時鍵盤與游標都會被這個視窗綁住
要跳離的話得按下右端的ctrl鍵
而且也沒有網路
畫面解析度也不高
VirtualBox為了提供更好的Guest功能
便製作了一個叫VBoxGuestAdditions的擴充套件
提供網路存取以及其他豐富的功能
安裝方法是在Virtualbox的主畫面選擇設定值
進入光碟分頁
選擇掛載ISO映像檔
掛載/usr/share/virtualbox/VBoxGuestAdditions.iso
開啟虛擬的Windows後
安裝光碟機裡的檔案重開機就ok了
按快捷鍵Crtl+L就可以無縫執行Windows了
還有VirtualBox提供了分享資料夾的概念
可以讓Guest與Host之間的檔案相通
設定方法在主畫面的設定值裡
分享資料夾分頁中使用新增
指定要分享的Host資料夾以及名稱
我是將分享資料夾名稱設定為linux
位置在/home/neversay/Desktop中
設定完後開啟虛擬Windows
開啟主選單->執行
在輸入欄中填入
net use z: \\vboxsvr\linux
這樣在windows我的電腦中
就會出現代號z的網路磁碟機了
主客端作業系統就可以藉由這個磁碟機互傳資料囉
2007年12月24日 星期一
[Linux文件] which指令使用說明
要找一個指令的實際存在目錄,可以如下使用
-bash-3.2# which firefox
/usr/bin/firefox
上面的例子就可以看到firefox在那個目錄下。
--
-bash-3.2# which firefox
/usr/bin/firefox
上面的例子就可以看到firefox在那個目錄下。
--
2007年12月9日 星期日
[Linux文件] 有關bash檔指令設定(ex.ifconfig)
因為用root的權限,要執行ifconfig一直沒辦法,
我就以為是因為我沒安裝這個套件,所以用
#yum search ifconfig
找到net-tool裡面有包含ifconfig,就裝了
#yum install net-tool
可是接下來還是不能執行,但是用系統內建搜尋,
搜"ifconfig"可以發現在/sbin下是有這個指令,也可以執行的
所以問題就是出在我的bash沒有去找這個資料夾,
解決辦法就是去家目錄下,開隱藏檔.bash_profile
...
PATH=$PATH:$HOME/bin:/sbin
...
在檔案中加入藍色那行字,bash就會進/sbin資料夾找這個指令了
--
我就以為是因為我沒安裝這個套件,所以用
#yum search ifconfig
找到net-tool裡面有包含ifconfig,就裝了
#yum install net-tool
可是接下來還是不能執行,但是用系統內建搜尋,
搜"ifconfig"可以發現在/sbin下是有這個指令,也可以執行的
所以問題就是出在我的bash沒有去找這個資料夾,
解決辦法就是去家目錄下,開隱藏檔.bash_profile
...
PATH=$PATH:$HOME/bin:/sbin
...
在檔案中加入藍色那行字,bash就會進/sbin資料夾找這個指令了
--
2007年11月29日 星期四
[Linux文件] vsftpd 安裝與設定
通常fedora有內建,如果沒裝到,
請去抓rpm或是用yum安裝,
#yum install vsftpd
安裝好後,請下
#/etc/init.d/vsftpd start
#netstat -tulnp| grep 21
最後面的參數可以改成restart、stop等等
第二行指令可以看是否開啟成功。
但是因為fedora7內建SELinux設定關係,
ftp服務會被擋掉,所以在連進ftp時,
會出現下面的錯誤訊息
"500 OOPS: cannot change directory:/home/xxxxxx "
請到 系統->管理->Fire and SELinux裡面,
把防火牆和selinux關掉,
再連線就ok了!
http://linux.vbird.org/linux_server/0410vsftpd.php#server
--
請去抓rpm或是用yum安裝,
#yum install vsftpd
安裝好後,請下
#/etc/init.d/vsftpd start
#netstat -tulnp| grep 21
最後面的參數可以改成restart、stop等等
第二行指令可以看是否開啟成功。
但是因為fedora7內建SELinux設定關係,
ftp服務會被擋掉,所以在連進ftp時,
會出現下面的錯誤訊息
"500 OOPS: cannot change directory:/home/xxxxxx "
請到 系統->管理->Fire and SELinux裡面,
把防火牆和selinux關掉,
再連線就ok了!
http://linux.vbird.org/linux_server/0410vsftpd.php#server
--
2007年11月28日 星期三
[Linux文件] 星際譯王 安裝
官方網站:
http://stardict.sourceforge.net/
在fedora7中不一定會安裝到這軟體
在官方網站download那裡,可以下載最新fedora的rpm安裝檔,
# rpm -ivh star...
可惜會少一些相關套件,一個一個找太麻煩 = =
# yum search stardict
列出可以下載的正式名稱
# yum install stardict
就可以安裝主程式和三、四個相關套件了
程式安裝完畢後,再到官網dictionary區中把字典下回來,
rpm檔的話,直接下指令安裝就可以了^^
http://stardict.sourceforge.net/
在fedora7中不一定會安裝到這軟體
在官方網站download那裡,可以下載最新fedora的rpm安裝檔,
# rpm -ivh star...
可惜會少一些相關套件,一個一個找太麻煩 = =
# yum search stardict
列出可以下載的正式名稱
# yum install stardict
就可以安裝主程式和三、四個相關套件了
程式安裝完畢後,再到官網dictionary區中把字典下回來,
rpm檔的話,直接下指令安裝就可以了^^
2007年11月24日 星期六
[Linux文件] VNC Server設定
參考網頁
http://fedoranews.org/tchung/vnc/index.shtml
-----------------------------------
What is VNC?
VNC stands for Virtual Network Computing. It is remote control software which
allows you to view and interact with one computer (the "server") using a
simple program (the "viewer") on another computer anywhere on the Internet.
The two computers don't even have to be the same type, so for example you can
use VNC to view an office Linux machine on your Windows PC at home. VNC is
freely and publicly available and is in widespread active use by millions
throughout industry, academia and privately.
For more information, please visit http://www.realvnc.com/
Do I have it in my system?
Type following command to check if you have the client and server installed
in your system.
[tchung@tchung101 tchung]$ rpm -q vnc vnc-server
vnc-4.0-0.beta4.3.2
vnc-server-4.0-0.beta4.3.2
[tchung@tchung101 tchung]$
--------------------------------------換頁
To configure vncserver as a service on your system, add yourself in following
config file.
[tchung@tchung101 tchung]$ sudo vi /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# URL:http://www.uk.research.att.com/vnc/sshvnc.html
# VNCSERVERS="1:myusername"
VNCSERVERS="1:tchung"
--------------------------------------換頁
Before starting vncserver as a service, let's create a vnc password with
vncpasswd command.
Notice it creates a hidden directory .vnc under your home account with file
passwd which contains your vnc password.
[tchung@tchung101 tchung]$ vncpasswd
Password:
Verify:
[tchung@tchung101 tchung]$ ls -d .vnc
.vnc
[tchung@tchung101 tchung]$ ls .vnc
passwd
[tchung@tchung101 tchung]$
--------------------------------------換頁
Now let's start vncserver as a service.
[tchung@tchung101 tchung]$ sudo /sbin/service vncserver start
Starting VNC server: 1:tchung [ OK ]
[tchung@tchung101 tchung]$
Take a look at the contents of .vnc directory now. You should have something
similiar to following.
[tchung@tchung101 tchung]$ cd .vnc
[tchung@tchung101 .vnc]$ ls
passwd tchung101:1.log tchung101:1.pid xstartup
[tchung@tchung101 .vnc]$
If you edit the script called xstartup, you will notice following comment in
red.
Uncomment those two lines in red as shown below!!! Otherwise, you will get
nothing but grey screen.
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
----------------------------------------換頁
Since we've just edited vnc startup script, let's restart the vncserver.
[tchung@tchung101 tchung]$ sudo /sbin/service vncserver restart
Shutting down VNC server: 1:tchung [ OK ]
Starting VNC server: 1:tchung [ OK ]
[tchung@tchung101 tchung]$
So how do I connect to vncserver? Use vncviewer command in vnc client as
following.
[tchung@tchung101 tchung]$ vncviewer localhost:1
Enter your vnc password and here is the result: Screenshot
UPDATE:
To connect to a remote system with firewall, port 5901 needs to be open.
Add following line in red to open port 5901 and restart iptables service.
[tchung@tchung101 tchung]$ sudo vi /etc/sysconfig/iptables
# Firewall configuration written by redhat-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j
ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
[tchung@tchung101 tchung]$ sudo /sbin/service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
[tchung@tchung101 tchung]$
TIP by Forrest Taylor
To enable two different users in vncservers:
VNCSERVERS="1:tchung 2:thomasc"
You will, of course have to run vncpasswd for both users. Also in your
firewall update, you may want to clarify that VNC uses port 5901 for
connection 1. If you had both users above, you would have to have ports 5901
and 5902 open.
http://fedoranews.org/tchung/vnc/index.shtml
-----------------------------------
What is VNC?
VNC stands for Virtual Network Computing. It is remote control software which
allows you to view and interact with one computer (the "server") using a
simple program (the "viewer") on another computer anywhere on the Internet.
The two computers don't even have to be the same type, so for example you can
use VNC to view an office Linux machine on your Windows PC at home. VNC is
freely and publicly available and is in widespread active use by millions
throughout industry, academia and privately.
For more information, please visit http://www.realvnc.com/
Do I have it in my system?
Type following command to check if you have the client and server installed
in your system.
[tchung@tchung101 tchung]$ rpm -q vnc vnc-server
vnc-4.0-0.beta4.3.2
vnc-server-4.0-0.beta4.3.2
[tchung@tchung101 tchung]$
--------------------------------------換頁
To configure vncserver as a service on your system, add yourself in following
config file.
[tchung@tchung101 tchung]$ sudo vi /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# URL:http://www.uk.research.att.com/vnc/sshvnc.html
# VNCSERVERS="1:myusername"
VNCSERVERS="1:tchung"
--------------------------------------換頁
Before starting vncserver as a service, let's create a vnc password with
vncpasswd command.
Notice it creates a hidden directory .vnc under your home account with file
passwd which contains your vnc password.
[tchung@tchung101 tchung]$ vncpasswd
Password:
Verify:
[tchung@tchung101 tchung]$ ls -d .vnc
.vnc
[tchung@tchung101 tchung]$ ls .vnc
passwd
[tchung@tchung101 tchung]$
--------------------------------------換頁
Now let's start vncserver as a service.
[tchung@tchung101 tchung]$ sudo /sbin/service vncserver start
Starting VNC server: 1:tchung [ OK ]
[tchung@tchung101 tchung]$
Take a look at the contents of .vnc directory now. You should have something
similiar to following.
[tchung@tchung101 tchung]$ cd .vnc
[tchung@tchung101 .vnc]$ ls
passwd tchung101:1.log tchung101:1.pid xstartup
[tchung@tchung101 .vnc]$
If you edit the script called xstartup, you will notice following comment in
red.
Uncomment those two lines in red as shown below!!! Otherwise, you will get
nothing but grey screen.
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
----------------------------------------換頁
Since we've just edited vnc startup script, let's restart the vncserver.
[tchung@tchung101 tchung]$ sudo /sbin/service vncserver restart
Shutting down VNC server: 1:tchung [ OK ]
Starting VNC server: 1:tchung [ OK ]
[tchung@tchung101 tchung]$
So how do I connect to vncserver? Use vncviewer command in vnc client as
following.
[tchung@tchung101 tchung]$ vncviewer localhost:1
Enter your vnc password and here is the result: Screenshot
UPDATE:
To connect to a remote system with firewall, port 5901 needs to be open.
Add following line in red to open port 5901 and restart iptables service.
[tchung@tchung101 tchung]$ sudo vi /etc/sysconfig/iptables
# Firewall configuration written by redhat-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j
ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
[tchung@tchung101 tchung]$ sudo /sbin/service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
[tchung@tchung101 tchung]$
TIP by Forrest Taylor
To enable two different users in vncservers:
VNCSERVERS="1:tchung 2:thomasc"
You will, of course have to run vncpasswd for both users. Also in your
firewall update, you may want to clarify that VNC uses port 5901 for
connection 1. If you had both users above, you would have to have ports 5901
and 5902 open.
2007年11月16日 星期五
[Linux文件] ns2 安裝
1. http://www.isi.edu/nsnam/ns/
到官方網站下載allinone這個檔案。
2.到root資料夾,解壓縮tar檔
tar -zxvf ns...
3. cd ns...
./install
等它跑完
4.將bash檔覆蓋到家目錄
export
PATH=/root/ns-allinone-2.31/bin:/root/ns-allinone-2.31/tcl8.4.14/unix:/root/ns-a
llinone-2.31/tk8.4.14/unix:$PATH
export
LD_LIBRARY_PATH=/root/ns-allinone-2.31/otcl-1.13:/root/ns-allinone-2.31/lib
export
TCL_LIBRARY=/root/ns-allinone-2.31/tcl8.4.14/library:/usr/local/gcc-3.4.0/lib
5.登出再登入,讓它載入新的設定檔
6.到 /root/ns.../ns.../tcl/ex
這是範例資料夾,執行下面指令測試是否可以run起來
ns nam-example.tcl
7.可以run,大功告成。
到官方網站下載allinone這個檔案。
2.到root資料夾,解壓縮tar檔
tar -zxvf ns...
3. cd ns...
./install
等它跑完
4.將bash檔覆蓋到家目錄
export
PATH=/root/ns-allinone-2.31/bin:/root/ns-allinone-2.31/tcl8.4.14/unix:/root/ns-a
llinone-2.31/tk8.4.14/unix:$PATH
export
LD_LIBRARY_PATH=/root/ns-allinone-2.31/otcl-1.13:/root/ns-allinone-2.31/lib
export
TCL_LIBRARY=/root/ns-allinone-2.31/tcl8.4.14/library:/usr/local/gcc-3.4.0/lib
5.登出再登入,讓它載入新的設定檔
6.到 /root/ns.../ns.../tcl/ex
這是範例資料夾,執行下面指令測試是否可以run起來
ns nam-example.tcl
7.可以run,大功告成。
2007年11月10日 星期六
yum不能使用解法
有時執行yum指令會出發下列訊息,
[root@localhost Casanoba]# yum search virtualbox
Loading "installonlyn" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.
此時可以使用 # ps aux | grep yum
來找到那個程序有關yum,然後再用kill殺掉它,
root 2499 0.0 1.0 25328 10464 ? S 20:23 0:00
/usr/bin/python /usr/sbin/yum-updatesd
root 3353 0.0 0.0 4988 676 pts/1 R+ 20:51 0:00 grep yum
# kill 2499
這樣處理後,就可以使用yum指令了。
[root@localhost Casanoba]# yum search virtualbox
Loading "installonlyn" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.
此時可以使用 # ps aux | grep yum
來找到那個程序有關yum,然後再用kill殺掉它,
root 2499 0.0 1.0 25328 10464 ? S 20:23 0:00
/usr/bin/python /usr/sbin/yum-updatesd
root 3353 0.0 0.0 4988 676 pts/1 R+ 20:51 0:00 grep yum
# kill 2499
這樣處理後,就可以使用yum指令了。
2007年6月23日 星期六
安裝pidgin
今天上網,不知為何,
gaim會有登入程式消失的情況,
就用這個機會,順便更新一下版本。
查了一下,gaim更名為pidgin,
官網為 http://www.pidgin.im/pidgin/home/
只要下載其pidgin.repo到/etc/yum.repos.d/這個資料夾
就可以使用 #yum install pidgin 安裝了!
當然也有fedora的套件可以下載安裝~
安裝完成後,執行程式就沒問題了^^
參考資料:
http://tetralet.luna.com.tw/index.php?op=ViewArticle&articleId=63&blogId=1
----
gaim會有登入程式消失的情況,
就用這個機會,順便更新一下版本。
查了一下,gaim更名為pidgin,
官網為 http://www.pidgin.im/pidgin/home/
只要下載其pidgin.repo到/etc/yum.repos.d/這個資料夾
就可以使用 #yum install pidgin 安裝了!
當然也有fedora的套件可以下載安裝~
安裝完成後,執行程式就沒問題了^^
參考資料:
http://tetralet.luna.com.tw/index.php?op=ViewArticle&articleId=63&blogId=1
----
訂閱:
文章 (Atom)