ユーザ用ツール

サイト用ツール


サイドバー

debian:wheezy

Wheezy (Version 9)

Debianのインストールおよび設定メモ (主にドスパラで買ったパソコンにインストール)

インストール

日本のサーバ(例えば, http://ftp.jaist.ac.jp/debian-cd/current/amd64/iso-cd/) から,最新版の debian-*-amd64-netinst.iso を落としてCDに焼く.

host名は研究室で適当に決定する.名前は山田太郎さんの場合,Taro YAMADA,アカウントはyamadaで登録する.

プロキシおよびポートは以下の通り. http://proxy.kuins.net:8080/

設定

sudoに登録

adduser yamada sudo

カタカタディレクトリを英語に変換

日本語環境でインストールした場合,カタカナのディレクトリがあるので英語に変換する.

LANG=C xdg-user-dirs-gtk-update

GNOMEを使わないのであれば,消してもよい.

wgetの設定

デスクトップであれば,/etc/wgetrc のプロキシの記述部分を以下のように編集.

https_proxy = http://proxy.kuins.net:8080/
http_proxy = http://proxy.kuins.net:8080/
ftp_proxy = http://proxy.kuins.net:8080/

ノートであれば,以下のようにすれば良いのではなかろうか.

env http_proxy=http://proxy.kuins.net:8080/ wget URL

aptの設定

うちの研究室だと,地球流体電脳倶楽部(京都)のサーバが近いらしい. 以下を取ってきて,/etc/apt/sources.list におく. http://www.debian.or.jp/using/apt/sources.list.http.dennou-k.gfd-dennou.org

近いところを見つける方法は以下の通り.

wget http://http.us.debian.org/debian/README.mirrors.txt
sudo cp apt-spy -d testing -s JP -m README.mirrors.txt -p http://proxy.kuins.net:8080

/etc/apt/sources.list はこんな感じ.

deb http://dennou-k.gfd-dennou.org/debian wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
#deb-src http://dennou-k.gfd-dennou.org/debian wheezy main contrib non-free

最新のものに更新しておく.

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade 
sudo apt-get autoremove 

nvidia

nvidiaの設定は,https://wiki.debian.org/NvidiaGraphicsDrivers を参照.

/etc/X11/xorg.conf はこんな感じで動いている.

Section "Module"
    Load        "glx"
EndSection

Section "Device"
    Identifier  "Video Card"
    Driver              "nvidia"
EndSection

ntpの設定

ntpを入れて,/etc/ntp.conf を編集.

sudo apt-get install ntp
sudo vi /etc/ntp.conf
# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example
server ntp.kuins.net

# pool.ntp.org maps to about 1000 low-stratum NTP servers.  Your server will
# pick a different set every time it starts up.  Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
#server 0.debian.pool.ntp.org iburst
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst

最後にリスタート

sudo /etc/init.d/ntp restart

google-chrome

chromeで検索.ダウンロード.

sudo dpkg -i Downloads/google-chrome-stable_current_amd64.deb

印刷

ブラザーのプリンターの設定. http://solutions.brother.co.jp/support/os/linux/lpr_printer/driver.html#HL-4570CDW の簡易インストールを参考にインストールする。

gunzip linux-brjprinter-installer-2.0.0-1.gz 
bash linux-brjprinter-installer-2.0.0-1 HL-4570

以下、回答例。

以下のパッケージが見付かりました。
   hl4570cdwlpr-1.1.1-5.i386.deb
   hl4570cdwcupswrapper-1.1.1-5.i386.deb
インストールしますか? [y/N] ->Y
Device URIを指定しますか? [y/N] ->Y
使用するDevice URIの番号を選択してください。 ->16(IPアドレスの指定)
ご使用のプリンタ/MFCのIPアドレスを指定してください。->10.249.205.96
テスト印刷を実行しますか? [y/N] ->Y

latex

適当なパッケージをインストール

sudo apt-get install texlive-lang-cjk texlive-fonts-recommended xdvik-ja

その他

各種,パッケージをインストール

Fortran

sudo apt-get install gfortran liblapack3gf liblapack-dev liblapack-doc-man

tex

sudo apt-get install texlive-full yatex

Fluxbox

sudo apt-get install udisks-glue fluxbox 

その他

sudo apt-get install gnuplot nkf emacs inkscape 

日本語入力

日本語入力は Alt+grave をあてるのが好き.

FlashPlayer

下記ページを参考にする. https://wiki.debian.org/FlashPlayer

まず,gnashを削除.

sudo apt-get purge gnash gnash-common browser-plugin-gnash mozilla-plugin-gnash

wgetにproxyのことを教えてあげる. /etc/wgetrc の設定を下記のように変更.

# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
https_proxy = http://proxy.kuins.net:8080/
http_proxy = http://proxy.kuins.net:8080/
ftp_proxy = http://proxy.kuins.net:8080/

あとは,普通にインストール.

sudo apt-get install flashplugin-nonfree

Dual display

emacsでコンパイルするときに陥りやすい間違い

全角スペースの罠

fortranを用いたコンパイルでは全角スペースがcodeに入っているとerrorをはきます. 気をつけましょう.

emacsの全角スペース,tabの可視化
emacs ~/emacs.el

でemacsのソースを開き,以下を追加

(global-whitespace-mode 1)
(setq whitespace-space-regexp "\\(\u3000\\)")
(setq whitespace-style '(face tabs tab-mark spaces space-mark))
(setq whitespace-display-mappings ())
(set-face-foreground 'whitespace-tab "yellow")
(set-face-underline  'whitespace-tab t)
(set-face-foreground 'whitespace-space "yellow")
(set-face-background 'whitespace-space "red")
(set-face-underline  'whitespace-space t)

全角スペースを赤色で表示,tabを黄色で表示します.

evince のウィンドウサイズが変更できないとき

fluxboxでevinceを使うと,ウィンドウサイズが変更できなくなることがある. マウスでウィンドウをつかめないので,代わりにAltを押しながら右クリックでウィンドウサイズを変更する.

debian/wheezy.txt · 最終更新: 2018/02/19 11:22 by saito