Rsync 比對中文字時會出現亂碼
#提供給Rsync轉碼用!!
本BLOG主要以自我學習備忘用,歡迎指教..^^
Rsync 比對中文字時會出現亂碼
#提供給Rsync轉碼用!!
修改 /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x10de:0x054c (forcedeth)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="11:22:33:44:55:66", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
轉載自 http://lsslab.blogspot.com/2009/04/windows-windows-xp.html
2009年4月10日星期五
[Windows]使用 wmic.exe 修改 Windows XP 的電腦名稱
wmic.exe ComputerSystem Where Name="%ComputerName%" Rename Name="NewComputerName"
wmic.exe 是 wmi 的命令列版本,用起來應該是沒有後遺症的。
為了節省打字的時間,我把他改寫成批次檔 s.bat 放在 c:\:
wmic.exe ComputerSystem Where Name="%ComputerName%" Rename Name="PC403-%1"
於是,整個步驟化簡成:
s 01
01 是電腦編號, s 01 就把電腦重新命名為 PC403-01 了。
預設安裝Ubuntu時,安裝vsftpd伺服器
於/var/log/vsftpd.log 不會自動產生log輪轉的問題!!
解決方式:
apt-get install logrotate
logrotate -vf /etc/logrotate.conf
link: http://www.l4l.be/index.php/linuxdocs/46-storage/112-iscsi-enterprise-target-installatie
Installatie
Zorg er voor dat de compiler en bijbehorende tools geinstalleerd staan, ook is openssl-dev nodig. Onder Ubuntu doe je dit met:
apt-get install build-essential libssl-dev
Download IETd, also-known-as iscsitarget:
wget http://downloads.sourceforge.net/project/iscsitarget/iscsitarget/0.4.17/iscsitarget-0.4.17.tar.gz
Pak het uit:
tar xzvf iscsitarget-0.4.17.tar.gz
cd iscsitarget-0.4.17
Als je nu zou willen compileren, dan loop je tegen het volgende probleem op:
iscsitarget-0.4.17/kernel/block-io.c: In function ‘blockio_open_path’:
iscsitarget-0.4.17/kernel/block-io.c:164: error: implicit declaration of function ‘open_bdev_excl’
iscsitarget-0.4.17/kernel/block-io.c:164: warning: assignment makes pointer from integer without a cast
iscsitarget-0.4.17/kernel/block-io.c: In function ‘blockio_detach’:
iscsitarget-0.4.17/kernel/block-io.c:328: error: implicit declaration of function ‘close_bdev_excl’
iscsitarget-0.4.17/kernel/block-io.o] Error 1
iscsitarget-0.4.17/kernel] Error 2
Met andere woorden er is een probleem... Open het bestand block-io.c in je favoriete editor, en ga naar regel 164. Daar staat:
bdev = open_bdev_excl(path, flags, THIS_MODULE);
Verander dit in:
bdev = open_bdev_exclusive(path, flags, THIS_MODULE);
Ook is er een verandering nodig in regel 328, voor het gemak geef ik hier de volledige verandering weer:
static void
blockio_detach(struct iet_volume *volume)
{
struct blockio_data *bio_data = volume->private;
int flags = FMODE_READ | (LUReadonly(volume) ? 0 : FMODE_WRITE);
if (bio_data->bdev)
close_bdev_exclusive(bio_data->bdev, flags);
kfree(bio_data->path);
kfree(volume->private);
}
Nu kun je compileren/installeren:
make
sudo make install
dmesg
lo: Disabled Privacy Extensions
lo: Disabled Privacy Extensions
lo: Disabled Privacy Extensions
lo: Disabled Privacy Extensions
........ more
修改 vim /etc/default/grub
於GRUB_CMDLINE_LINUX="" 加入 ipv6.disable=1
GRUB_CMDLINE_LINUX="ipv6.disable=1"
存檔後
執行 update-grub
reboot