CYGWIN设置 .【转】
?
??mutt command linemutt [...] address 参数: -a file : attach a file to message -b address: BCC -c address: CC -F muttrc -H draft: draft contain both header and body -s subject: subject of the message -x : emulate the mailx compose mode 环境变量: EMAIL : user's email address MAIL : user's spool mailbox 示例: bash$ echo "contents" | mutt -x -s "subject" mail@address bash$ echo | mutt -x -s "subject" -i filename mail@address
?
exim & minires eximExim is a fully featured mail transfer agent, a drop-in replacement for sendmail. bash$ /usr/bin/exim-config bash$ view /etc/exim.conf bash$ vi /etc/aliases postmaster: your_login_name bash$ vi /etc/reslov.conf nameserver 10.0.0.7 search your.domain bash$ cygrunsrv -I exim -p /usr/bin/exim -e CYGWIN=nontsec -a "-bdf -q15m" -d "Exim Mail Transfer Agent" -1 /var/log/exim/cygrunsrv_out.log -2 /var/log/exim/cygrunsrv_err.log bash$ cygrunsrv -S exim
?
3.11. Q 如何得到 Dos/Windows? 格式的路径名?bash$ cygpath -d -m "`pwd`"
?
3.12. Q Setup Xinetdstart init servicebash$ /usr/bin/init-config
?
chkconfig 工具用来维护 /etc/rc.d 下的脚本 若要启动 sshd 执行 "/sbin/chkconfig --add sshd"?
xinetd configbash$ /usr/bin/xinetd-config
?
3.13. Q other command?ttcp, netsnoop?
3.14. Q XFree86 under Cygwin?add /usr/X11R6/bin to PATH; start Xwindow using startxwin.bat(dos/windows), or startxwin.sh(cygwin); if has a firewall installed, open port "6000" of local server; run xclient in local machine, just set environment: export DISPLAY=127.0.0.1:0.0 if run xclient in remote machine, give authorize to remote host: bash$ /usr/X11R6/bin/xhost remote_hostname_or_ip_address telnet/ssh to remote host; set environment DISPLAY, like: export DISPLAY=<IP_of_Cygwin_XFree86>:0.0 xterm?
3.15. Q 安装后的设置综述? binmode or textmode? 执行 mount 命令,如果不是 textmode,修改注册表 HKEY_LOCAL_MACHINE/SOFTWARE/Cygnus Solutions/Cygwin/mounts v2/.../cygdrive flags。 cygdrive flags是一个DWORD值,&0x2 == 0x2 为 Unix Style,否则为 Dos like style。?
修改 ~/.inputrc 文件,加入如下内容# Ignore case while completing set completion-ignore-case on # Make Bash 8bit clean set meta-flag on set output-meta on # to show 8-bit characters set convert-meta off # to show it as character, not the octal representation
?
修改 /etc/profile, 加入如下内容:set -o vi alias less='/bin/less -r' alias ls='/bin/ls -F --color=tty --show-control-chars' # glob filenames in a case-insensitive manner shopt -s nocaseglob export SGML_CATALOG_FILES=/share/catalog.sgml export XML_CATALOG_FILES=/share/catalog.xml export CYGWIN="nobinmode nontsec nosmbntsec" export PATH=$PATH:.
?
修改登录用户的主要组:bash$ vi /etc/passwd默认属于 513 组(对于域控制器是Domain Users,非域控制器为 NONE),个人偏好设置为 544(Administrator)
?
建立 symbol link: 因为一些脚本默认的 md5 摘要程序是 md5, 而非 md5sum;bash$ ln -s /usr/bin/md5sum /usr/bin/md5设置 DOCBOOK DTD/DSSSL 路径
bash$ ln -sf /cygdrive/e/HOME/WORK/johnson_homepage/worldhello/share /share
?
?设置 usemodwiki 路径映射mkdir /repos cd /repos/ ln -s /cygdrive/d /d ln -s /d/HOME/WORK/johnson_homepage/worldhello/usemod JohnsonUseModWiki ln -s /d/HOME/WORK/johnson_homepage/worldhello/wiki .
?
?
?设置建立工作路径bash$ ln -sf /cygdrive/e/HOME/WORK/ ~/work
?
?
from:http://blog.csdn.net/onefish/article/details/229192
?