Showing posts with label Tips. Show all posts
Showing posts with label Tips. Show all posts

Hotmail 提供免費 POP3、SMTP

之前就有傳聞 Hotmail 即將免費提供 POP3 & SMTP 服務,現在已經在下列地區可供使用:英國、加拿大、澳洲、法國、日本、紐西蘭、西班牙、德國、義大利。

啟用這項功能,登入到 Hotmail 中,選項中的個人資訊->註冊資訊,改成上述九個國家中之一即可。

POP3 & SMTP Server:

User Name: Windows Live ID ( yourname@hotmail.com)
Password: 密碼

POP3
Server: pop3.live.com
Port: 995
SSL 安全連線: Yes (On or Required)
SMTP
Server: smtp.live.com
Port: 25
Outgoing Authentication: Yes
SSL 安全連線: Yes (On or Required)

順帶一提,Yahoo的設定如下,
http://edit.my.yahoo.com/config/set_popfwd?.src=ym

再到電子信箱選項中,就會看到POP收信與自動轉寄的功能。

內送郵件伺服器 (POP3):pop.mail.yahoo.com.tw
使用 SSL,連接埠 (port): 995
外寄郵件伺服器 (SMTP):smtp.mail.yahoo.com.tw
使用 SSL,連接埠 (port): 465,使用安全驗證

帳號名稱: yourname@yahoo.com.tw
電子信箱: yourname@yahoo.com.tw
密碼: 你的 Yahoo!奇摩電子信箱 密碼
read on
Posted at 8:17 PM on 1/31/09 | 2 comments
Filed under:
 

PPPoE Check

檢查 pppoe 連線是否正常

#!/bin/sh
set -- `ping -c 5 -t 4 202.145.138.1 | grep loss`
# 202.145.138.1 --> TTN DNS
LOSS=$7
if [ "$LOSS" = "100.0%" ]; then
pkill -9 ppp
sleep 15
ppp -ddial pppoe
fi


檢查 DNS 是否更新

#!/bin/sh
set -- `nslookup monkeybiz.info | grep Address`
DNS=$4
set -- `ifconfig tun0 |grep inet`
tun=$2

if [ "$DNS" = "$tun" ]; then
else
/usr/local/etc/rc.d/ddclient restart
fi


ddclient.conf for dnspark

daemon=1800 # check every 1800 seconds
syslog=yes # log update msgs to syslog
#mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=no # use ssl-support. Works with

## single host update
protocol=dnspark, \
login=login-name, \
password=passwd \
abcdefg.com

use=web, web=ipdetect.dnspark.com, web-skip='Current Address:'
read on
Posted at 1:50 AM on 9/4/08 | 0 comments
Filed under: ,
 

cshrc,screenrc,vimrc

.cshrc

alias h history 25
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
alias csup csup -g -L 2
alias rm rm -i
alias vi vim
alias su su -
alias df df -h
alias du du -h
# A righteous umask
umask 22

set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
set autolist
set autoexpand
set recexact
set autocorrect
set correct = all
set prompt3 = "%SDo you mean [%R] (y/n/e) ? "
if ( $tty =~ ttyv* ) then
setenv TERM cons25
else
setenv TERM xterm-color
endif
setenv EDITOR vim
setenv PAGER less
setenv BLOCKSIZE K
setenv PACKAGEROOT http://ftp3.tw.freebsd.org
setenv CLICOLOR
setenv LSCOLORS ExGxFxdxCxDxDxBxBxExEx
setenv LANG zh_TW.UTF-8
setenv LC_TIME en_US.UTF-8

if ($?prompt) then
# An interactive shell -- set some stuff up
#set prompt = "`/bin/hostname -s`# "
set prompt = "%B%{^[[32m%}%n:%~%#"
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif


.screenrc

#caption always "%{wb}[%M %d %C %a] Load: %l %-Lw%{Wk}%50>%n%f* %t%{-}%+Lw%< "
caption always "%{wb} %-Lw%{Wk}%50>%n%f* %t%{-}%+Lw%< "
hardstatus alwayslastline "%=%{..K}%e %{..Y} %M %d %{..G}%c %{..W} Load: %l %{wb}"
defutf8 on
defc1 off
defencoding utf8
bind b encoding big5 utf8 #^A+b Big5轉utf-8
bind u encoding utf8 utf8 #^A+u 轉utf-8
attrcolor b ".I"
attrcolor i "+b"
# tell screen how to set colors. AB = background, AF=foreground
# erase background with current bg color
term xterm
termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm"
defbce "on

.vimrc

set cindent
set hls
set nocompatible
set sw=2
set background=dark
syntax on
highlight Comment ctermfg=darkcyan
highlight Search term=reverse ctermbg=4 ctermfg=7
set tabstop=4
hi Normal guifg=White guibg=DarkBlue
set autoindent
set shiftwidth=4
set nobackup
set ru
set fileencoding=utf-8
set encoding=utf-8
set termencoding=utf-8
set fileencodings=utf-8,big5,euc-jp,gbk,euc-kr,utf-bom,iso8859-1
set ambiwidth=double
read on
Posted at 12:45 AM on 10/28/07 | 0 comments
Filed under: ,
 

FreeBSD Driver for Ralink RT2561

UPDATE:

Under FreeBSD 7.0-BETA, the Ralink RT2561 device can be recognized and work smoothly by the default.

link:*BSD driver for Ralink RT2500/RT2600 chipsets.


雖然在6.2中已經有ral(4),可以支援Ralink RT2500。但是Edimax Ew-7128g總是抓不到。
pciconf -lv 顯示的結果
none1@pci2:4:0: class=0x028000 card=0x25611814 chip=0x03011814 rev=0x00 hdr=0x00
vendor = 'Ralink Technology, Corp'
class = network
Google的結果,找到解決方法,以module載入。
在/usr/src/sys下套用patch之後, 到/usr/src/sys/modules/ral下 make && make install 。
修改/boot/loader.conf,加入if_ral_load="YES"。
試試看,下 kldload if_ral 指令。
抓到啦 :p
ral0@pci2:4:0: class=0x028000 card=0x25611814 chip=0x03011814 rev=0x00 hdr=0x00
vendor = 'Ralink Technology, Corp'
class = network
read on
Posted at 6:59 PM on 5/9/07 | 0 comments
Filed under: ,
 

解決刪不掉的電影檔

如果常常遇到無法移動或刪除AVI、WMV等多媒體檔案,
大多都是explorer的媒體預覽功能在作怪。
因為它會先預讀影片的時間長度、維度等等資料。

如何關掉這種沒有用的功能呢,
開始,執行,輸入
REGSVR32 /U SHMEDIA.DLL
確定後,會跑出
DllUnregisterServer 在 SHMEDIA.DLL 成功
的對話方塊。
read on
Posted at 11:44 PM on 4/28/07 | 0 comments
Filed under: ,