Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ちょっと古いマシンにLinux導入

 ちょっと古いマシンにLinux導入

鹿児島 Linux 勉強会 2016.04
https://kagolug.connpass.com/event/29919/

Kenichiro MATOHARA

April 15, 2016
Tweet

More Decks by Kenichiro MATOHARA

Other Decks in Technology

Transcript

  1. 大まかなスペック CPU Intel A110(1Core 800MHz TDP 3W/Pentium Mの後継でAtomの前身的 な) RAM

    1GB ChipSet 945GU Express HDD 20GB(ZIF!) 5.6型ワイドLCD 1024×600(抵抗皮膜式タッチパネル) Wi-Fi IEEE802.11a/g/b USB 2.0 x1 SD Card Slot x1 ConpuctFlash Type II x1
  2. 導入Tips? CPUの制限(i686)からi386版のイメージを選択 mkusbにてusbメモリにイメージを流し込んでUSB経由で導入 こちらの記事がおすすめ → 第415回 Ubuntuを実機にインストールする 際に注意すべきこと:Ubuntu Weekly Recipe|gihyo.jp …

    技術評論社 ファイルシステムはCPUのaes支援もないし暗号化fs無しでswapと/のみext4に lscpu コマンドや /proc/cpuinfo で確認できる.このサポートがない状態で暗 号化fsを利用すると体感速度がかなり落ちて辛い 後は特に問題なくデバイスも動作(指紋認証デバイスは認識しているが動作未確認)
  3. cpuinfo $ lscpu Architecture: i686 CPU 操作モード: 32-bit Byte Order:

    Little Endian CPU(s): 1 On-line CPU(s) list: 0 コアあたりのスレッド数:1 ソケットあたりのコア数:1 Socket(s): 1 ベンダー ID: GenuineIntel CPU ファミリー: 6 モデル: 13 Model name: Genuine Intel(R) processor 800MHz ステッピング: 8 CPU MHz: 600.000 CPU max MHz: 800.0000 CPU min MHz: 600.0000 BogoMIPS: 1197.04
  4. Flags: fpu vme de pse tsc msr pae mce cx8

    apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx bts est tm2
  5. cpuinfo $ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel

    cpu family : 6 model : 13 model name : Genuine Intel(R) processor 800MHz stepping : 8 microcode : 0x21 cpu MHz : 600.000 cache size : 512 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fdiv_bug : no f00f_bug : no
  6. coma_bug : no fpu : yes fpu_exception : yes cpuid

    level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx bts est tm2 bugs : bogomips : 1197.04 clflush size : 64 cache_alignment : 64 address sizes : 32 bits physical, 32 bits virtual power management:
  7. aes支援がある例(Intel Core i5-2540M) $ grep -m1 -o aes /proc/cpuinfo aes

    $ grep -m1 aes /proc/cpuinfo flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid xsaveopt Core2Duo辺り以降なら入ってる感じ.FA向けのGeode LXなんかにも入っていた
  8. lspci lspci 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML

    and 945GT Express Memory Controller Hub (rev 03) 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02) 00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02) 00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02) 00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02)
  9. 00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller

    #4 (rev 02) 00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 02) 01:00.0 Ethernet controller: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01) 08:03.0 CardBus bridge: O2 Micro, Inc. OZ711MP1/MS1 MemoryCardBus Controller (rev 20) 08:03.2 SD Host controller: O2 Micro, Inc. Integrated MMC/SD Controller
  10. lsusb $ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux

    Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 0430:0501 Sun Microsystems, Inc. Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  11. キーボードバックライトの利用 /sys/devices/platform/fujitsu- laptop/leds/fujitsu::kblamps/brightness を突くと光った 規定値は0 0~254 で消灯 255 で点灯 $

    sudo sh -c "echo 255 > /sys/devices/platform/fujitsu- laptop/leds/fujitsu::kblamps/brightn ess" 実装済みだったので助かった
  12. 旧いPCを再利用 用途にもよるけどブラウザでリッチなコンテンツを利用しようと思うとCore2Duo RAM2GB以上くらいは欲しい それ以下だと初めてだとハマりどころが多くて難しい 導入メディアの選定 USB起動できるできない CD/DVD Network経由 RAM増設やSSD化で快適に GUI利用なら最低512MB

    Gnome等だと起動するだけで使いきってしまうので軽量なWMを 利用(lxde/Xface4/awesome等を利用) GUIアプリも軽量なものを(Chrome/Firefox等は重いので midori/dillo等を利用) CUIなら用途にも依るけど32MB~ TynyCore
  13. これから購入する場合 店頭などで触れるならLiveUSB Linuxを用意して店員さんに断って起動して調べる messages/lspci/lsusb/lshw等の結果を持ち帰って調べる (書き出し場所をミスると帰ってからデータがなくて悲しいことになるので注 意) Web検索等で動かしている人がいないか探す 「機種名 + Linux」とか「機種名

    + ディストリビューション名」で検索したり Debian Wikiとか → InstallingDebianOn - Debian Wiki Debian GNU/Linux デバイスドライバ確認ページとか → Debian HCL; Debian GNU/Linux device driver check & report もある Debian HCL 載ってなかったら登録しましょう! #今回のマシンも登 録した Debian HCL - Fujitsu / FMV-U8250 国内でしか売ってないようなものは避けたほうが無難 とはいえ最近はだいたい動く