博文

三星老人手机万能解锁密码

三星万能解锁密码: 2767 2878#

apache中如何只允许本地和另一IP访问

httpd.conf 中设置 Options All AllowOverride None Order Deny,Allow Deny From all Allow From 192.168.0.7 Allow From 127.0.0.1

freebsd安装及安全使用SSMTP

第一步:ee /ec/rc.conf中加入 sendmail_enable=”NO” sendmail_submit_enable=”NO” sendmail_outbound_enable=”NO” sendmail_msp_queue_enable=”NO” killall sendmail 第二步:安装ssmtp: pkg install ssmtp ee /etc/mail/mailer.conf sendmail /usr/libexec/sendmail/sendmail send-mail /usr/libexec/sendmail/sendmail mailq /usr/libexec/sendmail/sendmail newaliases /usr/libexec/sendmail/sendmail hoststat /usr/libexec/sendmail/sendmail purgestat /usr/libexec/sendmail/sendmail to sendmail /usr/local/sbin/ssmtp send-mail /usr/local/sbin/ssmtp mailq /usr/libexec/sendmail/sendmail newaliases /usr/libexec/sendmail/sendmail hoststat /usr/libexec/sendmail/sendmail purgestat /usr/libexec/sendmail/sendmail 第三步:创建ssmtp用户 pw useradd ssmtp -g nogroup -h – -s /sbin/nologin -d /nonexistent -c “sSMTP pseudo-user” 第四步: cd /usr/local/etc/ssmtp chown ssmtp:wheel . chmod 4750 . 第五步: cp ssmtp.conf.sample ssmtp.conf chown ssmtp:wheel . ssmtp.conf chmod 640 ssmtp.conf 第六步:编辑ssm...

linux查看磁盘是ssd还是hdd

Linux或freebsd,如果是vps,好像必须得是KVM的才能查看。 SSD是非转动磁盘 cat /sys/block/sda/queue/rotational 返回 0, 就是 SSD。

2016年5月报名考驾照

图片
5月17日 正式报名 5月23日 科目一过关 98分 6月21日 科目二过关 90分 7月18日 科目三过关 100分 (没想到最没有把握的一关,竟然……还有科目四,别人都说科三过了就相当于驾照已经到手了,可是 我还要等一段时间,就因为我是外地户口,难道这里面的潜规则真的太太太……等就等吧,真的再不想花冤枉钱了。) 12月21日 科目四 (即科三安全文明行车考试)过关 96分)

Xterm终端中文乱码的解决办法

最近安装了Archlinux发现Xterm终端不支持中文,中文显示乱码。google了半天,终于找到了答案 首先,编辑~/.Xresources文件,添加一下三句: –英文字体 xterm*faceName:DejaVu Sans Mono:antialias=True:pixelsize=14 –中文字体 xterm*faceNameDoublesize:WenQuanYi Micro Hei:antialias=True:pixelsize=14 Xterm*locale:zh_CN.UTF-8 其中的DejaVu Sans Mono和WenQuanYi Micro Hei是我的字体文件,查看本机上安装的字体使用fc-list命令查看,将第二行WenQuanYi Micro Hei改为你安装的中文字体,修改完成之后在终端下输入命令: xrdb -merge ~/.Xresources 重新加载你的终端配置文件,好了,大功告成。终端可以显示中文了

debian apt-get update:public key 错误修复

apt-get update 出现 这种错误 Reading package lists… Done W: There is no public key available for the following key IDs: 7638D0442B90D010 W: There is no public key available for the following key IDs: 7638D0442B90D010 W: There is no public key available for the following key IDs: 9D6D8F6BC857C906 解决方法 apt-get install debian-keyring debian-archive-keyring apt-get update

兄弟8070D加粉后如何清零

碳粉清零: 1、打开前盖 2、按清除键显示跟换硒鼓不理它,马上再按“启用”键,然后马上按“00”。 过几秒就可以关前盖 就可以了 硒鼓清零: 1、打开前盖 2、按清除键显示跟换硒鼓 1是 2否 按1 过几秒就可以关前盖就可以了

Depends: init-system-helpers (>= 1.18~) but it is not installable

Depends: init-system-helpers (>= 1.18~) but it is not installable E: Unable to correct problems, you have held broken packages. Working on debian wheezy… I added backports to my apt repo “deb http://ftp.de.debian.org/debian wheezy-backports main” and performed a “apt-get update”. Afterwards, the apt-get install docker-engine completed fine. Personally, I’m leaving backports commented out for now but in my conf as a reminder…