内容へ移動
Applied Mechanics wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
debian:wheezy
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== Wheezy ====== 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に登録 ==== <code bash> adduser yamada sudo </code> ==== カタカタディレクトリを英語に変換 ==== 日本語環境でインストールした場合,カタカナのディレクトリがあるので英語に変換する. <code> LANG=C xdg-user-dirs-gtk-update </code> GNOMEを使わないのであれば,消してもよい. ==== wgetの設定 ==== デスクトップであれば,/etc/wgetrc のプロキシの記述部分を以下のように編集. <code> https_proxy = http://proxy.kuins.net:8080/ http_proxy = http://proxy.kuins.net:8080/ ftp_proxy = http://proxy.kuins.net:8080/ </code> ノートであれば,以下のようにすれば良いのではなかろうか. <code> env http_proxy=http://proxy.kuins.net:8080/ wget URL </code> ==== aptの設定 ==== うちの研究室だと,地球流体電脳倶楽部(京都)のサーバが近いらしい. 以下を取ってきて,/etc/apt/sources.list におく. [[http://www.debian.or.jp/using/apt/sources.list.http.dennou-k.gfd-dennou.org|http://www.debian.or.jp/using/apt/sources.list.http.dennou-k.gfd-dennou.org]] 近いところを見つける方法は以下の通り. <code bash> 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 </code> /etc/apt/sources.list はこんな感じ. <code> 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 </code> 最新のものに更新しておく. <code bash> sudo apt-get update sudo apt-get upgrade -y sudo apt-get dist-upgrade sudo apt-get autoremove </code> ==== nvidia ==== nvidiaの設定は,https://wiki.debian.org/NvidiaGraphicsDrivers を参照. /etc/X11/xorg.conf はこんな感じで動いている. <code> Section "Module" Load "glx" EndSection Section "Device" Identifier "Video Card" Driver "nvidia" EndSection </code> ==== ntpの設定 ==== ntpを入れて,/etc/ntp.conf を編集. <code bash> sudo apt-get install ntp sudo vi /etc/ntp.conf </code> <code> # 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 </code> 最後にリスタート <code bash> sudo /etc/init.d/ntp restart </code> ==== google-chrome ==== chromeで検索.ダウンロード. <code bash> sudo dpkg -i Downloads/google-chrome-stable_current_amd64.deb </code> ==== 印刷 ==== ブラザーのプリンターの設定. http://solutions.brother.co.jp/support/os/linux/lpr_printer/driver.html#HL-4570CDW の簡易インストールを参考にインストールする。 <code bash> gunzip linux-brjprinter-installer-2.0.0-1.gz bash linux-brjprinter-installer-2.0.0-1 HL-4570 </code> 以下、回答例。 <code> 以下のパッケージが見付かりました。 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 </code> ==== latex ==== 適当なパッケージをインストール <code bash> sudo apt-get install texlive-lang-cjk texlive-fonts-recommended xdvik-ja </code> ==== その他 ==== 各種,パッケージをインストール === Fortran === <code bash> sudo apt-get install gfortran liblapack3gf liblapack-dev liblapack-doc-man </code> === tex === <code bash> sudo apt-get install texlive-full yatex </code> === Fluxbox === <code bash> sudo apt-get install udisks-glue fluxbox </code> === その他 === <code bash> sudo apt-get install gnuplot nkf emacs inkscape </code> ==== 日本語入力 ==== 日本語入力は Alt+grave をあてるのが好き. ==== FlashPlayer ==== 下記ページを参考にする. https://wiki.debian.org/FlashPlayer まず,gnashを削除. <code> sudo apt-get purge gnash gnash-common browser-plugin-gnash mozilla-plugin-gnash </code> wgetにproxyのことを教えてあげる. /etc/wgetrc の設定を下記のように変更. <code> # 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/ </code> あとは,普通にインストール. <code bash> sudo apt-get install flashplugin-nonfree </code> ==== Dual display ==== http://d.hatena.ne.jp/sakurako_s/20110710/1310240661 を参考にする。 ==== emacsでコンパイルするときに陥りやすい間違い ==== === 全角スペースの罠 === fortranを用いたコンパイルでは全角スペースがcodeに入っているとerrorをはきます. 気をつけましょう. == emacsの全角スペース,tabの可視化 == <code bash> emacs ~/emacs.el </code> でemacsのソースを開き,以下を追加 <code> (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) </code> 全角スペースを赤色で表示,tabを黄色で表示します. ==== evince のウィンドウサイズが変更できないとき ==== fluxboxでevinceを使うと,ウィンドウサイズが変更できなくなることがある. マウスでウィンドウをつかめないので,代わりにAltを押しながら右クリックでウィンドウサイズを変更する.
debian/wheezy.1507002953.txt.gz
· 最終更新: 2018/02/19 11:22 (外部編集)
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ