寻觅生命中的那一片浅草......

每月存档 七月, 2010

samba共享设置

首先,将共享方式改为

security = share

1、免密码访问

mkdir /data/test_share
cd /data/
chown -R nobody.nobody test_share
chmod -R 777 test_share
vi /etc/samba/smb.conf
加入以下内容

[File]
comment = File Server
path = /data/test_share
browseable = yes
writable = yes
guest ok = yes
write list = +staff

service smb restart
这样就可以免密码访问了

2、需要密码才能访问的共享

假设用户是share1,密码是i3zH7Xhw

mkdir /data/share1
cd /data/share1
useradd share1
passwd share1
输入密码:i3zH7Xhw
chown -R share1.share1 share1
chmod -R 770 share1
smbpasswd -a ming2
输入密码:i3zH7Xhw

vi /etc/samba/smb.conf
加入以下内容

[share1]

comment = share1

path = /data/share1

writable = yes

valid users = share1

public = no

service smb restart

这样,就需要输入密码才能访问共享

install Kernel-2.6.34 on debian 5.0.4

install Kernel-2.6.34 on debian 5.0.4

1、add packages source
vi /etc/apt/sources.list
add followed content,then save and quit:

deb-src http://debian.lcs.mit.edu/debian lenny main
deb http://debian.lcs.mit.edu/debian sid main
deb http://mirrors.163.com/debian stable contrib main non-free
deb-src http://mirrors.163.com/debian stable contrib main non-free
deb http://mirrors.163.com/debian sid contrib main non-free
deb-src http://mirrors.163.com/debian sid contrib main non-free
deb http://mirror.dlut.edu.cn/debian/ lenny main non-free contrib
deb-src http://mirror.dlut.edu.cn/debian/ lenny main non-free contrib
deb http://debian.ustc.edu.cn/debian/ lenny main non-free contrib
deb-src http://debian.ustc.edu.cn/debian/ lenny main non-free contrib
deb http://ftp.tw.debian.org/debian lenny main
deb-src http://ftp.tw.debian.org/debian lenny main

2、update package list and install tools
sudo apt-get update
sudo apt-get install kernel-package libncurses5-dev fakeroot
sudo apt-get install build-essential udev
sudo apt-get install libhtml-template-perl libparse-recdescent-perl
sudo apt-get install yaird

3、download the kernel source and install it.
cd /usr/src/
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.tar.bz2
tar xf linux-2.6.34.tar.bz2
cd linux-2.6.34
sudo make mrproper
sudo make menuconfig
sudo make clean
sudo make bzImage modules
sudo make install modules_install
sudo cd /boot
sudo mkinitrd.yaird -o initrd.img-2.6.34 2.6.34
sudo update-grub
sudo reboot

References
http://www.bearhou.com/?p=184
http://hi.baidu.com/higkoo/blog/item/6188b42a9ec13796023bf6cc.html

2010年七月
« 6月   8月 »
 1234
567891011
12131415161718
19202122232425
262728293031