月度归档:2011年12月

syslog_level

Published / by whosb / Leave a Comment

Severity Level Keyword Description

0 emergencies  System unusable
1 alerts Immediate action required
2 critical Critical condition
3 errors Error conditions
4 warnings Warning conditions
5 notifications Normal but significant conditions
6 informational Informational messages
7 debugging Debugging messages

msmtp conf

Published / by whosb / Leave a Comment

msmtp conf

如果是手动安装的话,是通过nano ~/.msmtprc文件配置的

defaults
account user
host mail.163.com
domain 163.com
from [email protected]
auth login
user [email protected]
password 11111111
account default:user
logfile /var/log/maillog

account default logfile .msmtp.log #日志文件,可用touch创建此文件
host smtp.163.com
from [email protected]
auth login #改为logon会出现错误
user kpshare
password ******
测试: msmtp [email protected] good ctrl+d
3.
配置esmtp(如果选择esmtp工具发送邮件,则需要
配置此项)
1)进入当前主目录(/root),创建.esmtprc和.emsmtp.log,可用touch .esmtprc和touch .esmtp.log命令创建
2)chmod 600 .esmtprc #一定要改权限,否则无法使用
3)vi .esmtprc,添加以下内容: identity [email protected] #此项一定要有,否则会运行错误,网上有些参考资料就没有写此项 hostname smtp.163.com:25 #端口号一定要写 username “kpshare” password “******” mda=”/usr/bin/procmail -d %T”
4.设置mutt
1)进入当前主目录(/root),创建.muttrc,可用touch .muttrc命令创建
2)vi .muttrc,添加以下内容: #以下两行任选一个 set sendmail = “/usr/local/bin/msmtp -v -X ~/.msmtplog” #指定msmtp发送邮件 set sendmail = “/usr/local/bin/esmtp -v -X ~/.esmtplog” #指定esmtp发送邮件 set fast_reply = yes #在回复邮件的时候,不用自己输入地址和标题 set folder = ~/Mail #邮件存放目录 set include = yes #回信时是否包含原文 my_hdr From: kpshare<[email protected]> #这俩行一定要写,否则你的信件会以 my_hdr Reply-To: kpshare<[email protected]> #[email protected]这样的地址发送出去,

nomachine

Published / by whosb / Leave a Comment

nomachine

nomachine nx server

ubuntu
http://64.34.161.181/download/3.5.0/Linux/nxclient_3.5.0-7_i386.deb
http://64.34.161.181/download/3.5.0/Linux/nxnode_3.5.0-7_i386.deb
http://64.34.161.181/download/3.5.0/Linux/FE/nxserver_3.5.0-9_i386.deb

sudo dpkg -i nxclient_3.5.0-7_i386.deb&&sudo dpkg -i nxnode_3.5.0-7_i386.deb &&sudo dpkg -i nxserver_3.5.0-9_i386.deby

centos
wget http://64.34.161.181/download/3.5.0/Linux/nxclient-3.5.0-7.i386.rpm
http://64.34.161.181/download/3.5.0/Linux/nxnode-3.5.0-7.i386.rpm
wget
http://64.34.161.181/download/3.5.0/Linux/FE/nxserver-3.5.0-9.i386.rpm

sudo rpm -i nxclient-3.5.0-7.i386.rpm
sudo rpm -i nxnode-3.5.0-7.i386.rpm
sudo rpm -i nxserver-3.5.0-9.i386.rpm