2008年11月29日土曜日

siduxで無線接続をする

su -
ceni

で設定できると思う。

でも、一々ceniって打つの面倒だしknetworkmanagerでESSIDを選択出きるようにしたら便利
kubuntuではそうなってるから、そうしよう。ちなみに無線LANカードはAltheros製なのでmadwifiを使います。
rootになって
apt-get remove ceni knemo
m-a a-i madwifi
apt-get install knetwrokmanager knetworkconf kwalletmanager
adduser username netdev
後は設定だ。
modprobe -r ath5k
vi /etc/modprobe.d/madwifi
blocklist ath5kとか
全部コメントアウトするよ!

vi /etc/modprobe.d/blocklist
blocklist ath5k
blocklist mac80122
一番下に追加するよ!

vi /etc/modprobe.d/alias
alias atho ath_pci
一番下に追加するよ!


ここら辺で一度rebootし、reboot後
lsmod |grep ath
lspci |grep Ether
を使ってath_pciが読み込まれているか確認


これで大丈夫なはず。ceniは削除しなくてもいいかも!邪魔だから消しちゃった^^
knetworkmanagerがいつまで経ってもath0を有線で認識しないときはknetworkmanagerを再インストールすると直るかも!
設定も間違ってないのに動かないときは再インストール!8時間悩んだ挙句に、knetworkmanager再インストールで直ったときはPCぶっ壊そうと思った^^
それでもダメなら、wicdをインストールするのもいいかも。

2008年11月28日金曜日

色々思うところあってs30をsiduxにしました.

例によって,LiveCDは反転したような画面で起動します.
ここで諦めないで,なんとかControl Center->display検索->displayで解像度かリフレッシュを60Hzとかに変えてApply!
Ctrl+Alt+BackSpaceして,X再起動したら普通な画面になってるはず,うちのはなった.

後は普通にインストール.死ぬほど楽.
再起動後,grubのbootオプションにsingleを書いて,設定したrootのパスワードでlogin.
xorg.confがぐちゃぐちゃなので,以下のものと差し替えで完了.後は日本語関係をインストール中
s30のxorg.conf置いておきますね.多分これで普通に表示できる.
Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "jp106"
Option "XkbLayout" "jp"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
EndSection


Section "Device"
Identifier "Silicon Motion, Inc. SM720 Lynx3DM"
Driver "siliconmotion"
Vendorname "Silicon Motion, Inc."
BusID "PCI:0:9:0"
Option "HWCursor" "off"
Option "SWCursor" "on"
Option "UseBIOS" "off"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-51
VertRefresh 43-60
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Silicon Motion, Inc. SM720 Lynx3DM"
Monitor "Generic Monitor"
DefaultDepth 16
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
# InputDevice "Synaptics Touchpad"
EndSection

Section "DRI"
Mode 0666
EndSection

2008年11月27日木曜日

swf/flvからmp3抽出

ニコニコ動画とかyoutubeとかからswf/flvをダウンロードしたけど,mp3にしたい!って人がいると思う.

sudo apt-get install ffmpeg swftools

  • 使い方

  • ffmpeg -i input.flv -acodec copy output.mp3

    swfextract -m input.swf -o output.mp3

    まぁこれでほとんどの動画は大丈夫なんだと思う.
    たまにmp4とかあるけど,それは調べてない(´ω`)