debian 的 urxvt 7.5-1 …

好一陣子前升級到 urxvt 7.5-1 之後,每次開它都會叫 “urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.” 結果查不到原因只好 downgrade 回 stable,變成這樣… Orz

剛發現… 問題是上傳的 binary 有問題 %^!#$^#!$%#%$!
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=351371

惡搞 DISPLAY (for screen)

我工作時通常會 ssh 連回宿舍的電腦的 screen。有時候,例如收信(我用 mutt)收到有附圖檔時,我都得先另存下來再 scp/firefox 去開來看 。因為有 screen 的關係,所以就算用 ssh -X 也沒辦法開。不過當然也可以再開個 terminal 連一個新的 ssh -X。

於是想來惡搞一下,這樣就可以輕鬆地按 enter 開 mutt 的圖檔了 :p

(screen 裡面舊的窗當然還是不能用)

在下列檔案加入..

.xinitrc:


echo $DISPLAY > /tmp/display
chmod 600 /tmp/display

.bash_profile:


if [ "$DISPLAY" ]; then
  echo $DISPLAY > /tmp/display
  chmod 600 /tmp/display
else
  rm -f /tmp/display
fi

.bashrc:


if [ "$PS1" ]; then
  if [ -e /tmp/display ] && [ "$TERM" = "screen" ]; then
    export DISPLAY=`cat /tmp/display`
  fi
fi