• 追加された行はこの色です。
  • 削除された行はこの色です。
  • UNInCHU/Setup へ行く。

#contents

*ホームディレクトリ [#d550b5d2]
ホームディレクトリの中のフォルダ名が日本語になっています。~
コンソールで使うことが多いので、毎回日本語は入れてられないので、英語名になおします。~
~
コンソールから下記を入力すると、設定が書き換わるとともに、ディレクトリ名も英語名に書き換わります。((参考:http://d.hatena.ne.jp/simabuki/20110601/1306922619))

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

この操作はインストール後に一番最初にしておいた方がよいです。~
元ディレクトリにファイルが入っていると、元ディレクトリはそのまま残って、英語名のディレクトリが作られます。

*sudo [#o9475fae]
sudoが使えるように、現在ログオンしているユーザを設定に追加します。((参考:http://www.ep.sci.hokudai.ac.jp/~epwww/dvlop/sudo.html))~

 $ su -
 # visudo

-修正前
 ...
 # User privilege specification
 root    ALL=(ALL:ALL) ALL
 ...

-修正後
 ...
 # User privilege specification
 root    ALL=(ALL:ALL) ALL
 ユーザ名 ALL=(ALL:ALL) ALL
 ...


*NTP [#mc6937f0]

デスクトップの上段にある時計をクリックすると、時計のシステム設定が開いて、ネットワークとの同期ができるような設定がありますが、どうやらこれだけでは同期ができないようです。~
おとなしくNTPの設定をします。

-1.まずは元設定のバックアップを作ります。
 $ su -
 # apt-get install ntp
 # cd /etc
 # cp -p ntp.conf ntp.conf.org


-2.設定を修正します。

--修正前
 ...
 # You do need to talk to an NTP server or two (or three).
 #server ntp.your-provider.example
 
 # 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
 
 ...

--修正後
 ...
 # You do need to talk to an NTP server or two (or three).
 #server ntp.your-provider.example
 
 # 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 ntp.jst.mfeed.ad.jp iburst
 server ntp.nict.jp iburst
 server ntp.ring.gr.jp iburst
 
 ...

インターネットマルチフィード社、
独立行政法人情報通信研究機構、
Ring Server Project の3カ所を登録しています。~
~
登録するNTPサーバは、こちらのサイト「http://wiki.nothing.sh/page/NTP」を参考にしました。~
ネットワーク的に近いところが良いようですので、さらに自分の使っているプロバイダのNTPサーバも登録しています。(上記設定例からは省略しました)

-3.ntpdを再起動
 # /etc/init.d/ntp restart
 [ ok ] Stopping NTP server: ntpd.
 [ ok ] Starting NTP server: ntpd.

-4.同期状況を確認((先頭の記号の見方参考:http://nobuit.blog56.fc2.com/blog-entry-142.html))
 $ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
 ==============================================================================
 +ntp.jst.mfeed.a 172.29.2.50      2 u    6   64   17   19.686    2.260   0.192
 *ntp.nict.jp     .NICT.           1 u   44   64    7   21.468    1.970   0.212
 +ntp.ring.gr.jp  133.243.238.163  2 u   46   64   17   21.299    1.918   0.276


*無線LAN [#h38f580b]

[[DebianのWiki>https://wiki.debian.org/iwlwifi]]を参考にしました。~

-1.まずは元設定のバックアップを作ります。
 $ su -
 # cd /etc/apt
 # cp -p sources.list sources.list.org

-2.設定を修正します。

--修正前
 ...
 deb http://ftp.jp.debian.org/debian/ wheezy main 
 deb-src http://ftp.jp.debian.org/debian/ wheezy main 
 
 deb http://security.debian.org/ wheezy/updates main 
 deb-src http://security.debian.org/ wheezy/updates main 
 ...

--修正前
 ...
 deb http://ftp.jp.debian.org/debian/ wheezy main contrib non-free
 deb-src http://ftp.jp.debian.org/debian/ wheezy main contrib non-free
 
 deb http://security.debian.org/ wheezy/updates main contrib non-free
 deb-src http://security.debian.org/ wheezy/updates main contrib non-free
 ...

「contrib non-free」の文字を追加します。~

-3.firmware-iwlwifiパッケージのインストール
 # apt-get update
 # apt-get install firmware-iwlwifi

パッケージリストをアップデートしてからインストールします。

-4.デバイスを認識する
 # modprobe -r iwlwifi ; modprobe iwlwifi

再起動してもいいですけど。~
あとはデスクトップのシステム設定から、無線LANの設定をします。~
といっても、「有効」にしてパスフレーズを入れればつながります。


*ネットワークプリンタ [#lea9c782]
使用しているプリンタは、[[Brother DCP-7065DN>http://www.brother.co.jp/product/printer/mfc/dcp7065dn/]] です。~
幸い、ブラザー社からLinux向けのドライバが出ているので、そちらを使いつつ、~
プリンタデーモンの「CUPS」の設定をします。

-1.ドライバのダウンロード
下記のサイトから型番を追いかけて、Linux(deb)向けドライバをダウンロード。~
http://www.brother.co.jp/product/software/index.htm

--brother-udev-rule-type1-1.0.0-1.all.deb
--cupswrapperDCP7065DN-2.0.4-2.i386.deb
--dcp7065dnlpr-2.1.0-1.i386.deb((32bit版ライブラリがないとインストールできないかもしれません。うまくいかない場合は、別ページで紹介のMPLABXの紹介に書いた、i386ライブラリをインストール後に実行してみてください))


-2.パッケージのインストール
 # dpkg -i brother-udev-rule-type1-1.0.0-1.all.deb
 # dpkg -i cupswrapperDCP7065DN-2.0.4-2.i386.deb
 # dpkg -i dcp7065dnlpr-2.1.0-1.i386.deb

-3.CUPSの設定((参考:http://www.letstryit.net/2010/03/linux-cups.html&br;参考2:http://bleedux.wordpress.com/2011/08/01/brother-dcp-7065dn-receiving-data-but-not-printing/))

++ブラウザから、http://localhost:631/ にアクセス。
++「管理」ページに移動
++「プリンターの追加」ボタンを押す
++「その他のネットワークプリンタ」→「LPD/LPR ホストまたはプリンタ」を選択して、次に進む
++「接続」に以下を設定して、次に進む((DCP-7065DN本体にブラウザでアクセスすると、「binary_p1」をはじめとしたキュー名が解ります。ほかにWindowsPCからも接続していれば、プリンタのプロパティの内容も参考になります。))
 lpd://192.168.x.x/binary_p1
++「名前(例:Brother_DCP-7050DN)」「説明(例:ネットワークプリンタ)」「場所(例:空白)」を入力して、次に進む
++「メーカー(例:Brother)」と「モデル(例:DCP7065DN for CUPS)」を、プリンタに合わせて設定して、次に進む((モデルに「DCP7065DN for CUPS」が現れないときは、このページを何回かアクセスし直します。何で出てこないんだろう・・・))

以上で設定完了です。~
~
「プリンター」ページに移って、登録したキュー名(ここでは Brother_DCP-7050DN)を選択。~
「メンテナンス」のコンボボックスから「テストページの印刷」をすると、印刷できます。


**参考 [#q70b5e3f]
-/etc/cups/printers.conf の内容 
 # Printer configuration file for CUPS v1.5.3
 # Written by cupsd
 # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
 <Printer Brother_DCP-7065DN>
 UUID urn:uuid:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 Info ネットワークプリンタ
 MakeModel Brother DCP7065DN for CUPS
 DeviceURI lpd://192.168.x.x/BINARY_P1
 State Idle
 StateTime xxxxxxxxxx
 Type xxxxxxx
 Accepting Yes
 Shared No
 JobSheets none none
 QuotaPeriod 0
 PageLimit 0
 KLimit 0
 OpPolicy default
 ErrorPolicy stop-printer
 Attribute marker-colors \#000000,#000000
 Attribute marker-levels -1,97
 Attribute marker-names Black Toner Cartridge,Drum Unit
 Attribute marker-types toner,opc
 Attribute marker-change-time 1402746401
 </Printer>

//*指紋認証
//-http://www.freedesktop.org/wiki/Software/fprint/
//-http://blog.asial.co.jp/iphone/1071
//-http://ubuntuforums.org/showthread.php?t=760018&page=14


----
[[UNInCHU]]
RIGHT:2014-06-15 (日) 18:18:44
トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS