請勿用來作違法的事!!! XD~
WinMenc 可以轉 只是安裝有點麻煩....orz
2008年8月27日 星期三
2008年8月25日 星期一
unrar @ fedora
Search results for unrar
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/unrar
at page 3 , you can find the "unrar"
ex:
for fedora 7 => unrar-3.7.7-1.lvn7.i386.rpm
the download url is http://rpm.livna.org/fedora/7/i386/unrar-3.7.7-1.lvn7.i386.rpm
--
I can't type chinese.... orz
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/unrar
at page 3 , you can find the "unrar"
ex:
for fedora 7 => unrar-3.7.7-1.lvn7.i386.rpm
the download url is http://rpm.livna.org/fedora/7/i386/unrar-3.7.7-1.lvn7.i386.rpm
--
I can't type chinese.... orz
2008年8月19日 星期二
atheros - 無線網卡切到特定模式
http://madwifi.org/wiki/UserDocs/iwpriv
Locking to a Specific Mode
iwpriv ath0 mode 1iwpriv ath0 mode 2
iwpriv ath0 mode 3
iwpriv ath0 mode 0 (default) autoselect mode.
2008年8月16日 星期六
修改 /etc/hosts 的內容
上次重灌時不知為啥檔案是空白的 = =
新增這行
127.0.0.1 localhost.localdomain localhost
這邊是用全形的空白 使用時記得換掉 XD
新增這行
127.0.0.1 localhost.localdomain localhost
這邊是用全形的空白 使用時記得換掉 XD
import yum KEY
ex: fedora 3
rpm --import http://download.fedora.redhat.com/pub/fedora/linux/core/3/i386/os/RPM-GPG-KEY
粗體字是一行
rpm --import http://download.fedora.redhat.com/pub/fedora/linux/core/3/i386/os/RPM-GPG-KEY
粗體字是一行
atheros madwifi - Monitor Mode
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode monitor
ifconfig ath0 up
By default, monitor mode receives packets with prism2 headers prepended on them. To change this, you must run one of the following:
Only 802.11 headers:
echo '801' > /proc/sys/net/ath0/dev_type
Prism2 headers:
echo '802' > /proc/sys/net/ath0/dev_type
Radiotap headers:
echo '803' > /proc/sys/net/ath0/dev_type
Atheros Descriptors:
echo '804' > /proc/sys/net/ath0/dev_type
from
http://madwifi.org/wiki/UserDocs/MonitorModeInterface
wlanconfig ath0 create wlandev wifi0 wlanmode monitor
ifconfig ath0 up
By default, monitor mode receives packets with prism2 headers prepended on them. To change this, you must run one of the following:
Only 802.11 headers:
echo '801' > /proc/sys/net/ath0/dev_type
Prism2 headers:
echo '802' > /proc/sys/net/ath0/dev_type
Radiotap headers:
echo '803' > /proc/sys/net/ath0/dev_type
Atheros Descriptors:
echo '804' > /proc/sys/net/ath0/dev_type
from
http://madwifi.org/wiki/UserDocs/MonitorModeInterface
2008年8月13日 星期三
手動flash meraki
Guide to flashing a meraki/accton/fonero
March 3rd, 2008
LINUX:
You can go here to get the Ubuntu LiveCD:
http://www.ubuntu.com/getubuntu/download
We have tried to make this as simple as possible, but it would be
helpful if you have some familiarity with Linux (or someone available
who has).
1. Boot Live CD and bring up a terminal window (under “Applications”,
then “Accessories”, then “terminal” on Ubuntu)
2. Make sure it is connected to the internet, then type the following to download the files you will need:
Code:
sudo apt-get upgrade
sudo apt-get install wget
wget http://www.blogin.it/ROBIN/test/meraki/openwrt-atheros-2.6-vmlinux.gz
wget http://www.blogin.it/ROBIN/test/meraki/openwrt-atheros-2.6-root.jffs2-64k
wget http://ruckman.net/downloads/mesh/easyflash
wget http://ruckman.net/downloads/mesh/flash
ifconfig eth0 up
chmod +x easyflash
chmod +x flash
3. Plug in your Meraki to your Ethernet LAN port on your computer.
4. Type: ./flash (note: If your Meraki is NOT connected to eth0, modify the file “flash” accordingly, it should be eth0 but you can check by issuing ifconfig)
5. Plug in the Meraki to power.
6. You should see something like this displayed:
Code:
No packet
No packet
Peer MAC: 00:18:84:80:67:1C (this will be the MAC address of your router)
You MAC: 00:ba:be:ca:ff:ee
Your IP: 192.168.1.0
Setting IP address…
Loading rootfs…
Sending rootfs. 6400 blocks…
Initializing partiions…
Rootfs partition size now 0×006f0000
Flashing rootfs…
Loading Kernel…
Sending kernel, 1536 blocks…
Flashing Kernel…
Setting boot_script_data…
Done. Restarting device…
7. Go get lunch. This will take 15-30 minutes, depending upon the flash
chip speed in your router. DO NOT INTERRUPT!
8. When it is done, the window will show Done.
WINDOWS:
Get the utility:
http://ruckman.net/downloads/mesh/ap51-flash-gui.exe
Download the firmware:
http://www.blogin.it/ROBIN/test/meraki/openwrt-atheros-2.6-root.jffs2-64k
http://www.blogin.it/ROBIN/test/meraki/openwrt-atheros-2.6-vmlinux.gz
Run the utility and choose the firmware files with the browse buttons.
Choose the network adapter that the Meraki is connected in the pull down menu.
Click on the “Go” button and walk away for about 30 minutes.
Good Luck!
http://ruckman.net/
March 3rd, 2008
LINUX:
You can go here to get the Ubuntu LiveCD:
http://www.ubuntu.com/getubuntu/download
We have tried to make this as simple as possible, but it would be
helpful if you have some familiarity with Linux (or someone available
who has).
1. Boot Live CD and bring up a terminal window (under “Applications”,
then “Accessories”, then “terminal” on Ubuntu)
2. Make sure it is connected to the internet, then type the following to download the files you will need:
Code:
sudo apt-get upgrade
sudo apt-get install wget
wget http://www.blogin.it/ROBIN/test/meraki/openwrt-atheros-2.6-vmlinux.gz
wget http://www.blogin.it/ROBIN/test/meraki/openwrt-atheros-2.6-root.jffs2-64k
wget http://ruckman.net/downloads/mesh/easyflash
wget http://ruckman.net/downloads/mesh/flash
ifconfig eth0 up
chmod +x easyflash
chmod +x flash
3. Plug in your Meraki to your Ethernet LAN port on your computer.
4. Type: ./flash (note: If your Meraki is NOT connected to eth0, modify the file “flash” accordingly, it should be eth0 but you can check by issuing ifconfig)
5. Plug in the Meraki to power.
6. You should see something like this displayed:
Code:
No packet
No packet
Peer MAC: 00:18:84:80:67:1C (this will be the MAC address of your router)
You MAC: 00:ba:be:ca:ff:ee
Your IP: 192.168.1.0
Setting IP address…
Loading rootfs…
Sending rootfs. 6400 blocks…
Initializing partiions…
Rootfs partition size now 0×006f0000
Flashing rootfs…
Loading Kernel…
Sending kernel, 1536 blocks…
Flashing Kernel…
Setting boot_script_data…
Done. Restarting device…
7. Go get lunch. This will take 15-30 minutes, depending upon the flash
chip speed in your router. DO NOT INTERRUPT!
8. When it is done, the window will show Done.
WINDOWS:
Get the utility:
http://ruckman.net/downloads/mesh/ap51-flash-gui.exe
Download the firmware:
http://www.blogin.it/ROBIN/test/meraki/openwrt-atheros-2.6-root.jffs2-64k
http://www.blogin.it/ROBIN/test/meraki/openwrt-atheros-2.6-vmlinux.gz
Run the utility and choose the firmware files with the browse buttons.
Choose the network adapter that the Meraki is connected in the pull down menu.
Click on the “Go” button and walk away for about 30 minutes.
Good Luck!
http://ruckman.net/
2008年8月12日 星期二
gallery2 播放影片 with FFMPEG
參考來源:
http://lakers.eyio.net/mars/?p=752
簡單說 去抓ffmpeg 0.4.8 compiled for Dreamhost
http://codex.gallery2.org/images/c/c4/Dreamhost_ffmpeg_0.4.8.zip
然後放在server上 再去gallery裡面的設定
把FFMPEG的路徑打上 就可以播放影片了
--
目前只知道avi,wmv確定可以放 rmvb不行
flv也可以放 不過感覺應該跟ffmpeg無關 囧?
http://lakers.eyio.net/mars/?p=752
簡單說 去抓ffmpeg 0.4.8 compiled for Dreamhost
http://codex.gallery2.org/images/c/c4/Dreamhost_ffmpeg_0.4.8.zip
然後放在server上 再去gallery裡面的設定
把FFMPEG的路徑打上 就可以播放影片了
--
目前只知道avi,wmv確定可以放 rmvb不行
flv也可以放 不過感覺應該跟ffmpeg無關 囧?
2008年4月9日 星期三
Fedora core 5 安裝 mrtg
rpm -qa | grep perl
rpm -qa | grep zlib
rpm -qa | grep gd
rpm -qa | grep libpng
rpm -qa | grep net-snmp
rpm -qa | grep mrtg
先檢查有沒有這些東東
我沒有裝mrtg 於是用yum install mrtg
還有裝net-snmp-utils
步驟其實都跟參考網頁差不多 只有一個地方不一樣
------------------------------------------------------------
Step 2 修改snmp的設定檔 /etc/snmp/snmpd.conf
在中間加上一行
view systemview included .1.3.6.1.2.1.2
Step 3 啟動snmp服務
Step 4 產生 /etc/mrtg/mrtg.cfg
cfgmaker xxx.xxx.xxx.xxx 〉 /etc/mrtg/mrtg.cfg
(xxx為IP)
Step 5 etc/mrtg/mrtg.cfg
在檔案的尾端加上列文字:
Workdir: /var/www/html/mrtg
Refresh: 300
Interval: 5
Language: big5
Options[_]: growright
下面這兩個步驟我跟他相反(我是先7再6)
Step 7 修改 /etc/httpd/conf.d/mrtg.conf 如下
#Alias /mrtg /var/www/mrtg
Alias /mrtg /var/www/html/mrtg
〈Location /mrtg〉
Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# Allow from ::1
# Allow from .example.com
〈/Location〉
Step 6 執行下列指令
env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
最後呢 重新啟動 httpd 服務
然後打開瀏覽器 連 http://xxx.xxx.xxx.xxx/mrtg/xxx.xxx.xxx.xxx_2.html
就可以看了
另外,也可以進去網頁的mrtg資料夾,打下列指令
indexmaker /etc/mrtg/mrtg.cfg 〉 index.html
然後瀏覽器只要打 http://xxx.xxx.xxx.xxx/mrtg/ 就可以看了
-------------------------------------------------
因為內容幾乎都是別人打的 不是我自己寫的 囧
所以我只有摘錄重點 看不懂的人or想看詳細步驟的
請去看下面網址
-------------------------------------------------
參考網頁:
http://blog.nanaimoinn.com/index.php?blog=3&p=433&more=1&c=1&tb=1&pb=1
rpm -qa | grep zlib
rpm -qa | grep gd
rpm -qa | grep libpng
rpm -qa | grep net-snmp
rpm -qa | grep mrtg
先檢查有沒有這些東東
我沒有裝mrtg 於是用yum install mrtg
還有裝net-snmp-utils
步驟其實都跟參考網頁差不多 只有一個地方不一樣
------------------------------------------------------------
Step 2 修改snmp的設定檔 /etc/snmp/snmpd.conf
在中間加上一行
view systemview included .1.3.6.1.2.1.2
Step 3 啟動snmp服務
Step 4 產生 /etc/mrtg/mrtg.cfg
cfgmaker xxx.xxx.xxx.xxx 〉 /etc/mrtg/mrtg.cfg
(xxx為IP)
Step 5 etc/mrtg/mrtg.cfg
在檔案的尾端加上列文字:
Workdir: /var/www/html/mrtg
Refresh: 300
Interval: 5
Language: big5
Options[_]: growright
下面這兩個步驟我跟他相反(我是先7再6)
Step 7 修改 /etc/httpd/conf.d/mrtg.conf 如下
#Alias /mrtg /var/www/mrtg
Alias /mrtg /var/www/html/mrtg
〈Location /mrtg〉
Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# Allow from ::1
# Allow from .example.com
〈/Location〉
Step 6 執行下列指令
env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
最後呢 重新啟動 httpd 服務
然後打開瀏覽器 連 http://xxx.xxx.xxx.xxx/mrtg/xxx.xxx.xxx.xxx_2.html
就可以看了
另外,也可以進去網頁的mrtg資料夾,打下列指令
indexmaker /etc/mrtg/mrtg.cfg 〉 index.html
然後瀏覽器只要打 http://xxx.xxx.xxx.xxx/mrtg/ 就可以看了
-------------------------------------------------
因為內容幾乎都是別人打的 不是我自己寫的 囧
所以我只有摘錄重點 看不懂的人or想看詳細步驟的
請去看下面網址
-------------------------------------------------
參考網頁:
http://blog.nanaimoinn.com/index.php?blog=3&p=433&more=1&c=1&tb=1&pb=1
訂閱:
文章 (Atom)