/* About ----- This directory contains extra files to make the 'fancy urls' feature even more fancier, by eliminating the 'index.php'-part of the URL Installation ------------ 1. Copy all files in this directory (except for index.html) to your main nucleus dir (where your index.php and action.php file are) If you have an already existing .htaccess file (most ftp-programs don't show hidden files by default, so don't start uploading it without checking your server). If you do, download that old one first, and copy the contents of the new .htaccess file (from the fancyurls folder) in your old one, and upload that... 2. Edit this file so that $CONF['Self'] points to your main directory. NOTE: this time, and only this time, the URL should NOT end in a slash 3. Also edit the $CONF['Self'] variable in your index.php, if you don't want to end up with index.php/item/1234 urls when people come via that way 4. Enable 'Fancy URLs' in the Nucleus admin area (nucleus management / edit settings) 5. Off you go! If it doesn't work: ------------------- Remove the files again (don't forget the hidden file .htaccess). Voila. */ // remember: this URL should _NOT_ end with a slash. $CONF['Self'] = 'http://www.momoso-net.com/~ms08'; ?>
2005-12-22: フレームバッファで画像ビューア
iiviewはフレームバッファで動作する画像ビューアなんですが。実際動かしてみるとこんなメッセージが出力されました。gzip: /usr/lib/kbd/consolefonts/lat1-08.psf.gz: No such file or directory
gzip: /usr/share/consolefonts/lat1-08.psf.gz: No such file or directory
gzip: /lib/kbd/consolefonts/lat1-08.psf.gz: No such file or directory
GENTOOでは/usr/share/consolefonts/のディレクトリしか無く、lat1-08.psf.gzというフォントファイルも存在しません。
そこで、/usr/share/consolefonts/lat1-08.psfu.gzが使えるかなってことでfbsupport.cのソースをこんな感じに修正しちゃいます。
/* FB supporting stuff */
#define FONTPATHCOUNT 3
const char *fontpath[]= {"gzip -cd /usr/share/consolefonts/lat1-08.psfu.gz",
"gzip -cd /usr/share/consolefonts/lat2-08.psfu.gz",
"gzip -cd /usr/share/consolefonts/lat4-08.psfu.gz"
/* H.COYAMA 2005-12-21
const char *fontpath[]= {"gzip -cd /usr/lib/kbd/consolefonts/lat1-08.psf.gz",
"gzip -cd /usr/share/consolefonts/lat1-08.psf.gz",
"gzip -cd /lib/kbd/consolefonts/lat1-08.psf.gz"
END */
};
lat2、lat4もおまけでいれました。
これでうまくいくはずなのですが、READMEにこんあことが
Currently iiview uses the framebuffer device /dev/fb0 as default device. You can select other devices by setting the FRAMEBUFFER environment variable.
GENTOO だと/dev/fb/0のリンクなんだけどPermissionが0660でユーザには書き込めないかもしれませんね。
id -a hogehoge で
uid=1000(hogehoge) gid=100(users) 所属グループ
=100(users),10(wheel),18(audio),19(cdrom),27(video),35(games),85(usb)
videoが所属グループにあったら大丈夫かも?
全てうまくいきました。
Category: Gentoo Linux No Trackbacks