you need below configuration on /etc/ssh/sshd_config
especially, you need comment 'UsePAM no'
@@ -62,8 +62,8 @@
#IgnoreRhosts yes
# Change to yes to enable built-in password authentication.
-#PasswordAuthentication no
-#PermitEmptyPasswords no
+PasswordAuthentication no
+PermitEmptyPasswords no
# Change to no to disable PAM authentication
#ChallengeResponseAuthentication yes
@@ -87,7 +87,7 @@
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
-#UsePAM yes
+UsePAM no
#AllowAgentForwarding yes
#AllowTcpForwarding yes
2012年1月2日月曜日
[FreeBSD] setting for xpdf kanji pdf file
1. defaultの/usr/local/share/xpdf/japanese/dot.xpdfrcのcMapDirにはaj16/CMapが足りないので
(2012/1/1時点現在)以下のように変更する
cMapDir Adobe-Japan1 /usr/local/share/fonts/adobe-cmaps/aj16/CMap
toUnicodeDir /usr/local/share/fonts/adobe-cmaps/aj16/CMap
2.それでも以下のようなフォントが足りない旨のエラーが出る場合には
Error: Couldn't find a font for 'Ryumin-Light-90ms-RKSJ-H'
Error: Couldn't find a font for 'Ryumin-Light-90ms-RKSJ-H'
dot.xpdfrcに以下の行を追加(漢字コードはSJISで)(まだ暫定なので、明朝系フォントもゴシックにマップしています)
displayNamedCIDFontTT MSGothic "/usr/local/share/fonts/
std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT MSPGothic "/usr/local/share/fonts/
std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT HGGothicEPRO "/usr/local/share/fonts/
std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT MSゴシック "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSゴシック,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSPゴシック "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSPゴシック,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MS明朝 "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MS明朝,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSP明朝 "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSP明朝,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT @MSゴシック "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSゴシック,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSPゴシック "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSPゴシック,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MS明朝 "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MS明朝,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSP明朝 "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSP明朝,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT MS-PMincho "/usr/local/share/fonts/
std.ja_JP/Ryumin-Light"
displayNamedCIDFontTT Ryumin-Light-90ms-RKSJ-H "/usr/local/shar
e/fonts/std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT GothicBBB-Medium-90ms-RKSJ-H "/usr/lo
cal/share/fonts/std.ja_JP/GothicBBB-Medium"
(2012/1/1時点現在)以下のように変更する
cMapDir Adobe-Japan1 /usr/local/share/fonts/adobe-cmaps/aj16/CMap
toUnicodeDir /usr/local/share/fonts/adobe-cmaps/aj16/CMap
2.それでも以下のようなフォントが足りない旨のエラーが出る場合には
Error: Couldn't find a font for 'Ryumin-Light-90ms-RKSJ-H'
Error: Couldn't find a font for 'Ryumin-Light-90ms-RKSJ-H'
dot.xpdfrcに以下の行を追加(漢字コードはSJISで)(まだ暫定なので、明朝系フォントもゴシックにマップしています)
displayNamedCIDFontTT MSGothic "/usr/local/share/fonts/
std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT MSPGothic "/usr/local/share/fonts/
std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT HGGothicEPRO "/usr/local/share/fonts/
std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT MSゴシック "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSゴシック,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSPゴシック "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSPゴシック,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MS明朝 "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MS明朝,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSP明朝 "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT MSP明朝,Bold "/usr/local/share/fonts/std.ja_JP/Go
thicBBB-Medium"
displayNamedCIDFontTT @MSゴシック "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSゴシック,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSPゴシック "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSPゴシック,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MS明朝 "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MS明朝,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSP明朝 "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT @MSP明朝,Bold "/usr/local/share/fonts/std.ja_JP/G
othicBBB-Medium"
displayNamedCIDFontTT MS-PMincho "/usr/local/share/fonts/
std.ja_JP/Ryumin-Light"
displayNamedCIDFontTT Ryumin-Light-90ms-RKSJ-H "/usr/local/shar
e/fonts/std.ja_JP/GothicBBB-Medium"
displayNamedCIDFontTT GothicBBB-Medium-90ms-RKSJ-H "/usr/lo
cal/share/fonts/std.ja_JP/GothicBBB-Medium"
2011年12月29日木曜日
[FreeBSD]cross installworld on FreeBSD-8.2-RELEASE
If you cross installworld FreeBSD-9 or 10 on FreeBSD-8.2-RELEASE(or before) with below error message, you need to update /usr/sbin/tzsetup to latest version.
Because latest Makefile in FreeBSD-10 is required -C option for tzsetup, but old tzsetup does not have -C option.
===> share/zoneinfo (install)
umask 022; cd /usr/src-9-20111228/share/zoneinfo; zic -D -d {client NFS mount \
point}/usr/share/zoneinfo -p America/New_York -u root -g wheel -m 444 -y /us\
r/obj/i386.i386/usr/src-9-20111228/share/zoneinfo/yearistype /usr/src-9-2011122\
8/share/zoneinfo/../../contrib/tzdata/africa /usr/src-9-20111228/share/zoneinfo\
/../../contrib/tzdata/antarctica /usr/src-9-20111228/share/zoneinfo/../../contr\
ib/tzdata/asia /usr/src-9-20111228/share/zoneinfo/../../contrib/tzdata/australa\
sia /usr/src-9-20111228/share/zoneinfo/../../contrib/tzdata/etcetera /usr/src-9\
-20111228/share/zoneinfo/../../contrib/tzdata/europe /usr/src-9-20111228/share/\
zoneinfo/../../contrib/tzdata/factory /usr/src-9-20111228/share/zoneinfo/../../\
contrib/tzdata/northamerica /usr/src-9-20111228/share/zoneinfo/../../contrib/tz\
data/southamerica
install -o root -g wheel -m 444 /usr/src-9-20111228/share/zoneinfo/../../contr\
ib/tzdata//zone.tab {client NFS mount point}/usr/share/zoneinfo/
Updating /etc/localtime
tzsetup: illegal option -- C
usage: tzsetup [-ns]
*** Error code 1
Get latest tzsetup source for FreeBSD-8
svn checkout svn://svn.freebsd.org/base/stable/8/usr.sbin/tzsetup tzsetup
cd tzsetup
make
make install
(if you have error at install, manually copy tzsetup file to /usr/sbin)
Because latest Makefile in FreeBSD-10 is required -C option for tzsetup, but old tzsetup does not have -C option.
===> share/zoneinfo (install)
umask 022; cd /usr/src-9-20111228/share/zoneinfo; zic -D -d {client NFS mount \
point}/usr/share/zoneinfo -p America/New_York -u root -g wheel -m 444 -y /us\
r/obj/i386.i386/usr/src-9-20111228/share/zoneinfo/yearistype /usr/src-9-2011122\
8/share/zoneinfo/../../contrib/tzdata/africa /usr/src-9-20111228/share/zoneinfo\
/../../contrib/tzdata/antarctica /usr/src-9-20111228/share/zoneinfo/../../contr\
ib/tzdata/asia /usr/src-9-20111228/share/zoneinfo/../../contrib/tzdata/australa\
sia /usr/src-9-20111228/share/zoneinfo/../../contrib/tzdata/etcetera /usr/src-9\
-20111228/share/zoneinfo/../../contrib/tzdata/europe /usr/src-9-20111228/share/\
zoneinfo/../../contrib/tzdata/factory /usr/src-9-20111228/share/zoneinfo/../../\
contrib/tzdata/northamerica /usr/src-9-20111228/share/zoneinfo/../../contrib/tz\
data/southamerica
install -o root -g wheel -m 444 /usr/src-9-20111228/share/zoneinfo/../../contr\
ib/tzdata//zone.tab {client NFS mount point}/usr/share/zoneinfo/
Updating /etc/localtime
tzsetup: illegal option -- C
usage: tzsetup [-ns]
*** Error code 1
Get latest tzsetup source for FreeBSD-8
svn checkout svn://svn.freebsd.org/base/stable/8/usr.sbin/tzsetup tzsetup
cd tzsetup
make
make install
(if you have error at install, manually copy tzsetup file to /usr/sbin)
ssh login to FreeBSD 10
from latest FreeBSD-10(least 2011/12/28 build), sshd never use $HOME/.ssh/authorized_keys2 file. We need rename from authorized_keys2 to authorized_keys.
2011年11月4日金曜日
screenの中でsjisを正しく表示
.screenrcに以下の記述が必要みたい(不要な環境もありますが...)
terminfo xterm KJ=sjis
# 次は、jlessをJLESSCHARSET=sjisで正しくsjis自動変換させて動かしたい....
--> JLESSCHARSET japanese-sjisとしたら解決...
terminfo xterm KJ=sjis
# 次は、jlessをJLESSCHARSET=sjisで正しくsjis自動変換させて動かしたい....
--> JLESSCHARSET japanese-sjisとしたら解決...
VirtualBox kernel module
When I updated VirtualBox kernel module, I also need reload netgraph kernel modules(It means I need to reboot system).
2011年11月2日水曜日
chromium for FreeBSD
When compile from ports tree and which ports tree on NFS server.
I need to union mount /usr/ports(NFS mount directory).
for example
mkdir /var/tmp/ports
mount -t nfs [nfs server's IP]:/usr/ports /usr/ports
mount -t unionfs -o noatime /var/tmp/ports /usr/ports
or use rpc_lockd
for example in /etc/rc.conf
rpcbind_enable="YES"
rpc_lockd_enable="YES" # for both side(server/client)
I need to union mount /usr/ports(NFS mount directory).
for example
mkdir /var/tmp/ports
mount -t nfs [nfs server's IP]:/usr/ports /usr/ports
mount -t unionfs -o noatime /var/tmp/ports /usr/ports
or use rpc_lockd
for example in /etc/rc.conf
rpcbind_enable="YES"
rpc_lockd_enable="YES" # for both side(server/client)
登録:
コメント (Atom)