Monthly Archives: 2月 2012

ROX-Filer を使ってみる

今後継続して使っていこうと思っているウィンドウマネージャは、自分の中で使いやすいかなと思っている Fluxbox で落ち着きつつある。ただ、Blackbox 派生のウィンドウマネージャに Openbox などもあるとのことで興味はある。また時間ができたら Openbox も使ってみたいと思う。

さて、今回は、ROX-Filer。

ROX-Filer は、(Gnome や KDE のような)デスクトップ環境である ROX のベースになるファイラーだそうだ。デスクトップ環境としての ROX を試したことは無いが、ROX-Filer はちょいちょい使わせてもらっている。とても使い勝手のよいアプリケーションだと思う。

x11-fm/rox-filer

rox-filer-2.10_2

# cd /usr/ports/x11-fm/rox-filer
# make config-recursive
# make install clean

いままでは、ウィンドウマネージャに FluxBox を使用して、ROX-Filer をファイラーとして使っていた。次のような画面になる。

> rox

続いて、画面下部にパネルを表示する。PANE_1 は好きな文字。

> rox - -bottom=PANEL_1

さらに、ピンボードを表示する。DESK_ICON は好きな文字。

> rox - -pinboard=DESK_ICON

 

なお、この瞬間に背景画像が消えたが、 デスクトップ上を右クリックしてBackdrop を選択し、画像をドラッグ&ドロップすれば背景画像に設定できる。

 

 

squid-3.1.16

ちょっと脱線。squid をインストールするのでメモりながらやる。

www/squid31

# cd /usr/ports/www/squid31
# make config-recursive
# make install clean

オプションはデフォルトでインストールした。

===> post-installation information for squid-3.1.16:

     o You can find the configuration files for this package in the
       directory /usr/local/etc/squid.

     o The default cache directory is /var/squid/.
       The default log directory is /var/log/squid/.

       Note:
       You must initialize new cache directories before you can start
       squid.  Do this by running “squid -z” as ‘root’ or ‘squid’.
       If your cache directories are already initialized (e.g. after an
       upgrade of squid) you do not need to initialize them again.

     o The default configuration will deny everyone but the local host and
       local networks as defined in RFC 1918 for IPv4 and RFCs 4193 and
       4291 for IPv6 access to the proxy service.  Edit the “http_access
       allow/deny” directives in /usr/local/etc/squid/squid.conf
       to suit your needs.

     To enable Squid, set squid_enable=yes in either
     /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/squid
     Please see /usr/local/etc/rc.d/squid for further details.

     Note:
     If you just updated your Squid installation from an earlier version,
     make sure to check your Squid configuration against the 3.1 default
     configuration file /usr/local/etc/squid/squid.conf.default.
    
     /usr/local/etc/squid/squid.conf.documented is a fully annotated
     configuration file you can consult for further reference.

     Additionally, you should check your configuration by calling
     ‘squid -f /path/to/squid.conf -k parse’ before starting Squid.

===>   Compressing manual pages for squid-3.1.16
===>   Registering installation for squid-3.1.16
===> SECURITY REPORT:
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/libexec/squid/squid_radius_auth
/usr/local/sbin/squid

      This port has installed the following startup scripts which may cause
      these network services to be started at boot time.
/usr/local/etc/rc.d/squid

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type ‘make deinstall’
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage:

http://www.squid-cache.org/

とりあえず読みながらやってみる。

ローカル以外からのアクセすは DENY になっているとのこと。

設定ファイルは /usr/local/etc/squid/squid.conf  なので必要に応じて変更。

cache_dir ufs /var/squid/cache 1000 16 256

で、

# squid -z

これで、/var/squid/cache が作られた。

覚えておく部分のメモ

http_port 3128

このまま、/etc/rc.conf に追記する。

suqid_enable=”YES”

ここまでは、上記の説明に記載されているとおり。

で、squid を起動してみる。

/usr/local/etc/rc.d/squid start

OK。

 

 

Fluxbox のスタイルを変更する

Fluxbox インストール後にはいくつかのスタイルが選べる。

ここでは、zimek_green というスタイルを選んでみた。

右クリックメニューから、Fluxbox menu ⇒ System Styles ⇒ zimek_green

 

そして、再ログインすると次のようなイメージになる。緑茶が飲みたくなったぜ。

ウィンドウのタイトルバーやツールバーの文字が小さいので、スタイルの定義を変更をしたくなった。こういった場合は、共有のコンフィグファイルを、ユーザディレクトリにコピーしてから変更する。

# cd ~/.fluxbox
# mkdir styles
# cp -R /usr/local/share/fluxbox/styles/zimek_green styles
# cd styles/zimek_green
# chmod 644 theme.cfg
# vi theme.cfg

これで、ユーザスタイルが選択できるようになった。

右クリックメニューから、Fluxbox menu ⇒ User Styles ⇒ zimek_green

 

~/.fluxbox/styles/zimek_green/theme.cfg

フォントの種類やフォントのサイズを変更する場合は、次の箇所を編集する。

######### FONTS ##########

menu.frame.font:                    sans-9:bold
menu.title.font:                        sans-10:bold
toolbar.clock.font:                    sans-9:bold
toolbar.workspace.font:            sans-10:bold
toolbar.iconbar.focused.font:     sans-8:bold
toolbar.iconbar.unfocused.font:  sans-8
window.font:                            sans-8

↓ 例えば、次のように変更。

menu.frame.font:                      Kochi Gothic:style=regular:size=12
menu.title.font:                         Kochi Gothic:style=regular:size=12
toolbar.clock.font:                      Kochi Gothic:style=regular:size=12
toolbar.workspace.font:              Kochi Gothic:style=regular:size=12
toolbar.iconbar.focused.font:      Kochi Gothic:style=regular:size=12
toolbar.iconbar.unfocused.font:   Kochi Gothic:style=regular:size=12
window.font:                             Kochi Gothic:style=regular:size=12

ちなみに、ここで使用したフォントは japanese/font-kochi 。

設定ファイルを変更したら、画面上でリロードできる。

右クリックメニューから、Fluxbox menu ⇒ Reload config

ここまでの結果は、次のようになった。

 

次に、マウス右クリックによるメニューの行間隔が狭い感じなので、増やしてみた。

~/.fluxbox/styles/zimek_green/theme.cfg

########## MENU ###########

menu.bevelWidth:                                                1

menu.itemHeight:                                                19
#menu.titleHeight:                                              21

こっちの変更については Reload Config では反映されなかったので、再ログインして、結果次のようなイメージになった。

 最後に、綺麗な壁紙を貼り付けて、もちろん conky も表示して出来上がり。

Wallpaper : Floral Wallpaper by leon-99

 

x11-themes/fluxbox-tenr-styles-pack は、スタイルシートがたくさん入ったパッケージだが、試しにインストールしてみたら大量のスタイルが出てきた。ちょっとびっくり。こわいわっ!笑

 

 

Fluxbox のウィンドウグループを使う

Fluxbox は、複数のウィンドウを 1 つのウィンドウにまとめて表示し、タブで切り替えができるそうだ。

これについて試してみた。

このような感じで、画面の中に 4 つのウィンドウがあるとする。これらのうち、左上の xterm と、右上の Firefox を 1 つのウィンドウにまとめてみる。

ctrl キーを押したまま、Firefox のタイトルバーをクリックしてドラッグすると、四角い枠が表示された。この枠を、xterm の上へ移動する。

そして、xterm の上でドロップすると次の画面のように 2 つのウィンドウが 1 つにまとまった。

左上のウィンドウには 2 つのウィンドウがグループ化されて表示されている。このウィンドウのタイトルバーの部分がタブになっているので、xterm と firefox を切り替えることができた。

さらに、その他のウィンドウもまとめてしまって、ウィンドウのサイズを少し大きくしたものが次のイメージ。

複数の xterm を同時に開いて作業する場合など、画面をスマートに利用できるので、この機能はとても気に入った。

タブリングの為の ctrl キー の定義は、.fluxbox/keys ファイルの 25 ~ 26 行目あたりに記述されている。

# control-click a window’s titlebar and drag to attach windows
OnTitlebar Control Mouse1 :StartTabbing

Fluxbox – ウィンドウマネージャ

Blackbox から派生したという Fluxbox を使ってみようと思う。

x11-wm/fluxbox

fluxbox-1.3.2

# cd /usr/ports/x11-wm/fluxbox
# make config-recursive
# make install clean

で、.xsession の編集

#!/bin/sh

fluxbox

などとしておき、ログインする。

Blackbox が継承されているだけあって、感覚が似ている。デザインこそ違うが、親しみやすい画面だ。

  1. Fluxbox で新しく加わった機能として、複数のウィンドウを 1 つのウィンドウにまとめるグループ化(ブラウザなどによくあるタブ化する)ことができるそうだ。
  2. それから、ある程度のサンプル的なスタイルも定義されていて選択することができる。
  3. slit も健在で、順序の変更ができるとか。ただ、conky が使える今となっては、私自身が slit に興味がないので、slit のお試しはパスする。

それでは、上記1 と 2 をひとつずつ試してみたいと思う。