goo blog サービス終了のお知らせ 

PCメモ

自分のPCに関するメモです。どこでも見れるように、ブログで書いてます。

Freelink LSPro Squeeze化のまとめ

2012年08月31日 | Debian
Lennyへ

deb http://archive.debian.org/debian/ lenny main non-free contrib
deb-src http://archive.debian.org/debian/ lenny main non-free contrib
# Volatile:
deb http://archive.debian.org/debian-volatile lenny/volatile main contrib non-free
deb-src http://archive.debian.org/debian-volatile lenny/volatile main contrib non-free
# Backports:
deb http://archive.debian.org/debian-backports lenny-backports main contrib non-free
# Previously announced security updates:
deb http://archive.debian.org/debian-security lenny/updates main contrib


NO_PUBKEY AED4B06F473041FA


aptitude download debian-archive-keyring
dpkg --force-depends -i debian-archive-keyring_2010.08.28~lenny1_all.deb



準備1
uboot-envtoolsインストール&設定
apt-get install uboot-envtools
cp /usr/share/doc/uboot-envtools/examples/linkstation_pro_live.config /etc/fw_env.config

Etchの場合
wget http://ftp.debian.org/debian/pool/main/u/uboot-envtools/uboot-envtools_20080520-4_arm.deb
dpkg --force-depends-version -i uboot-envtools_20080520-4_arm.deb
cp /usr/share/doc/uboot-envtools/examples/linkstation_pro_live.config /etc/fw_env.config


DNS化
/etc/nsswitch.conf
hosts: files dns

/etc/network/interfaces

auto eth0
iface eth0 inet dhcp


準備2

cd /boot
mv uImage.buffalo uImage.buffalo.old
mv initrd.buffalo initrd.buffalo.old
wget http://http.us.debian.org/debian/dists/stable/main/installer-armel/current/images/orion5x/network-console/buffalo/lspro/uImage.buffalo
wget http://http.us.debian.org/debian/dists/stable/main/installer-armel/current/images/orion5x/network-console/buffalo/lspro/initrd.buffalo
wget http://http.us.debian.org/debian/dists/stable/main/installer-armel/current/images/orion5x/network-console/buffalo/lspro/config-debian




実行
sh config-debian

まとめ

2012年08月29日 | Debian
squid3

--------------------------

http_port 8080

acl localhost2 src 192.168.31.0/255.255.255.0



http_access allow localhost2


forwarded_for off
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all
reply_header_access X-Forwarded-For deny all
reply_header_access Via deny all
reply_header_access Cache-Control deny all

visible_hostname proxy-server
-------------------------------


/etc/init.d/squid stop
squid -z
/etc/init.d/squid restart




vsftpd
-------------------------------
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022(公開する場合)
ascii_download_enable=YES (デフォルト:NO)
ascii_upload_enable=YES (デフォルト:NO)


userlist_enable=NO
userlist_deny=NO
userlist_file=/etc/vsftpd/user_list


#userlist_enable userlist_deny
#NO - userlist_file を使用した制御は行われず、ローカルユーザはログイン可能。
#YES NO userlist_file を使用した制御が有効になり、userlist_file ファイル(ユーザを1行づつ記述したリスト)に登録されたユーザのみログインできる。
#YES YES userlist_file を使用した制御が有効になり、userlist_file ファイル(ユーザを1行づつ記述したリスト)に登録されたユーザはログインできず規制される。


chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

#/etc/vsftpd.chroot_list を作る

vncserver

2007年01月21日 | Debian
apt-get install vncserver gdm


$geometry ="800x600";
$depth = 16;

サービス開始
vncserver

サービスを落とす時は
vncserver -kill :1

-----------------
VNCサーバインストール
# apt-get install vncserver


# vncserver :1

You will require a password to access your desktops.

Password:
Verify:

New 'X' desktop is xxx:1

Starting applications specified in /etc/X11/Xsession
Log file is /root/.vnc/xxx:1.log


~.bachrcに以下を追加します。
alias vncstart='vncserver :1 -geometry 1024x768'
alias vnckill='vncserver -kill :1'

sourceコマンドですぐさま反映させます。
# source .bashrc




コマンドのエイリアスつくったので、起動と終了は以下の通り。
# vncstart
# vnckill