centos证书登录
生成证书: ssh-keygen -t dsa 一直回车,然后: cd ~/.ssh cat id_dsa.pub >> authorized_keys #2019年5月20日 修改更新: chmod 644 authorized_keys cd .. chmod 700 .ssh cd .. chown root:root root 测试: ssh localhost 可发送authorized_keys到要登陆的机器.
解决perl warning Setting locale failed....
用apt-get安装ppp 出现错误如下: mail:/etc# apt-get install pptp Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package pptp mail:/etc# apt-get install ppp Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: ppp 0 upgraded, 1 newly installed, 0 to remove and 281 not upgraded. Need to get 356kB of archives. After this operation, 1069kB of additional disk space will be used. Get:1 http://mirror.peer1.net stable/main ppp 2.4.5-4 [356kB] Fetched 356kB in 1s (206kB/s) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default...
解决password file must not be other-accessible
到这这个错误的原因有两个都是很好解决的. 1.Server和Client端的 server.pass 文件保持属主的600权限. 2.文件只保存log的密码,格式"password",而不需要这样 "user:password".
CentOS-5安装配置ExtMail Web邮件收发系统
1、制作YUM源 编译CentOS-Base.repo文件: vi /etc/yum.repos.d/CentOS-Base.repo 加入如下内容: # EMOS-Base.repo # # Created by ExtMail Dev Team: http://www.extmail.org/ # # $Id$ [EMOS-base] name=EMOS-Base baseurl=http://mirror.extmail.org/yum/emos/1.5/os/$basearch/ gpgcheck=0 priority=0 protect=0 [EMOS-update] name=EMOS-Updates baseurl=http://mirror.extmail.org/yum/emos/1.5/updates/$basearch/ gpgcheck=0 priority=0 protect=0 保存后,然后尝试执行一下yum list 等操作,看看是否已经成功. 2、配置mta-postfix 安装postfix: yum -y install postfix yum remove sendmail 配置postfix: postconf -n > /etc/postfix/main2.cf mv /etc/postfix/main.cf /etc/postfix/main.cf.old mv /etc/postfix/main2.cf /etc/postfix/main.cf 编辑main.cf: vi /etc/postfix/main.cf 增加如下内容: # hostname mynetworks = 127.0.0.1 myhostname = mail.centos.bz mydestination = $mynetworks $myhostname # banner mail_name = Postfix - by extmail.org smtpd_banner = $myhostname ESMTP $mail_name #...
centos python3.4安装pip和pyaudio
从官方github获取具体版本的pip: wget https://raw.githubusercontent.com/pypa/get-pip/master/2.6/get-pip.py 运行刚才获取的pip文件: python3.4 get-pip.py 然后: git clone http://people.csail.mit.edu/hubert/git/pyaudio.git cd pyaudio/ sudo yum -y install portaudio portaudio-devel python setup.py install