wiki:TipAndDoc/Linux/Debian

Version 38 (modified by mitty, 11 years ago) (diff)

--

Install Squeeze

  • smallest install (with SSH server)
    • $ df -h
      Filesystem            Size  Used Avail Use% Mounted on
      /dev/sda1              19G  547M   18G   3% /
      tmpfs                 506M     0  506M   0% /lib/init/rw
      udev                  501M  132K  501M   1% /dev
      tmpfs                 506M     0  506M   0% /dev/shm
      
  • Choose a mirrorでリストにないミラーを選ぶ方法
    • 国別のリストで一番上にある「enter information manually」を選ぶ

gdm3 reboot repeatedly with no display

  • 「Graphical deskrtop environment」でインストールするとXが導入されるが、(少なくともNVIDIAのGPUが載っている環境で)モニタを繋がずに使おうとすると、Xが正常に起動せず無限に再起動する
    Feb 15 16:01:35 vm-host gdm3[1541]: WARNING: GdmDisplay: display lasted 0.473466 seconds
    Feb 15 16:01:35 vm-host acpid: client 1702[0:0] has disconnected
    Feb 15 16:01:35 vm-host acpid: client connected from 1715[0:0]
    Feb 15 16:01:35 vm-host acpid: 1 client rule loaded
    Feb 15 16:01:35 vm-host gdm3[1541]: WARNING: GdmDisplay: display lasted 0.477113 seconds
    Feb 15 16:01:35 vm-host acpid: client 1715[0:0] has disconnected
    Feb 15 16:01:35 vm-host acpid: client connected from 1964[0:0]
    Feb 15 16:01:35 vm-host acpid: 1 client rule loaded
    
    (以下略)
    

additional packages

  • bash-completion dnsutils file firmware-linux-free host htop less locate lsof ntp perl python screen sudo sysv-rc-conf telnet unzip vim

backports

  • http://backports-master.debian.org/Instructions/

    Add backports to your sources.list

    1. Add this line to your sources.list (or add a new file to /etc/apt/sources.list.d/)
      deb http://backports.debian.org/debian-backports squeeze-backports main
      
    2. Run apt-get update

    Install a package from backports

    apt-get -t squeeze-backports install "package"
    
     aptitude -t squeeze-backports install "package"
    
  • backport kernelの場合
    • # aptitude install -t squeeze-backports linux-image-amd64
      The following NEW packages will be installed:
        linux-image-3.2.0-0.bpo.2-amd64{a} linux-image-amd64
      The following packages will be upgraded:
        linux-base
      1 packages upgraded, 2 newly installed, 0 to remove and 38 not upgraded.
      

T23 2647-5JJ

  • BIOSからLegacy Floppyをdisableにしないと認識に失敗してか、disk accessランプが付いたまま停止する
    • ps on busybox
      D mount /dev/fd0 -tauto /media
      
  • Wifi -> Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller rev2

hp ProBook 6550b

  • wifi
    45:00.0 Network controller: Intel Corporation Centrino Advanced-N 6200 (rev 35)
    
    • # aptitude install firmware-iwlwifi

Dual Monitor

  • on Debian Squeeze
  • Apple Cinema HD 30inch + Dell 2405FPW with ATI Radeon HD 4670
  • 方法1 GPUがATI Radeon HD 4670なので、以下に従ってドライバを入れるととりあえず2560x1600で映るようになる
    • ATIProprietary - Debian Wiki
    • ただし、そのままでは左右のディスプレイがミラー状態になるので、xorg.confを自分で編集する必要がありそう(未検証)
  • 方法2 Kernelをbackportする
    • deb http://ftp.jp.debian.org/debian-backports squeeze-backports main contrib non-free
    • $ sudo aptitude install -R -t squeeze-backports linux-image-2.6-amd64
    • 再起動するとMonitor Preferencesから問題なく2560x1600+1920x1200に設定出来る
  • Linux愛好者の独り言 Debian 6.0(squeeze)でデュアルモニタ
    • xrandr
      • 実機上でやる必要がある
    • sudo Xorg -configure
      • ログアウト, sudo service gdm3 stopしてからCUI上で行う
        Fatal server error:
        Server is already active for display 0
        	If this server is no longer running, remove /tmp/.X0-lock
        	and start again.
        
        
        Please consult the The X.Org Foundation support 
        	 at http://wiki.x.org
         for help. 
        
        

nonfree

Radeon firmware

  • ATI Radeon HD 4670
  • dmese (before)
    [    5.461457] [drm] Loading RV730 Microcode
    [    5.588838] r600_cp: Failed to load firmware "radeon/RV730_pfp.bin"
    [    5.588878] [drm:rv770_startup] *ERROR* Failed to load firmware!
    [    5.588917] radeon 0000:01:00.0: disabling GPU acceleration
    
  • $ sudo aptitude install -R firmware-linux-nonfree
  • dmese (after)
    [    5.279896] [drm] Loading RV730 Microcode
    [    5.863369] [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
    [    5.863685] radeon 0000:01:00.0: WB enabled
    

JapaneseEnvironment

  • フォント
    • $ sudo aptitude install -R ttf-vlgothic
  • 日本語入力
    • $ sudo aptitude install im-config ibus-mozc
    • System > Preferences > iBus Preferenes
      • [Input Method] -> Add

use non stable package

use wheezy packages

  • /etc/apt/sources.list.d/wheezy.list
    deb http://ftp.tsukuba.wide.ad.jp/debian/ wheezy main
    deb-src http://ftp.tsukuba.wide.ad.jp/debian/ wheezy main
    
    deb http://security.debian.org/ wheezy/updates main
    deb-src http://security.debian.org/ wheezy/updates main
    
  • /etc/apt/apt.conf.d/stable
    APT::Default-release "stable";
    
  • /etc/apt/preferences.d/stable
    Package: *
    Pin: release a=stable
    Pin-Priority: 700
    
    Package: *
    Pin: release a=testing
    Pin-Priority: 650
    
    Package: *
    Pin: release a=unstable
    Pin-Priority: 600
    

Attachments (1)

Download all attachments as: .zip