博文

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…

How to Disable a Services in Linux

In Red Hat based distributions such as Fedora and CentOS, make use of a script called ‘chkconfig‘ to enable and disable the running services in Linux. For example, lets disable the Apache web server at the system startup. [avishek@tecmint]# chkconfig httpd off [avishek@tecmint]# chkconfig httpd –del In Debian based distributions such as Ubuntu, Linux Mint and other Debian based distributions use a script called update-rc.d. For example, to disable the Apache service at the system startup execute the following command. Here ‘-f’ option stands for force is mandatory. [avishek@tecmint]# update-rc.d -f a

AVG Internet Security 2015 key

8MEH-RO9SN-AVP3P-E3SMR-PK3ZG-HEMBR-ACED 8MEH-R6O2P-VYKXS-BAYWR-CDLLX-WEMBR-ACED 8MEH-RFOD4-SXWR8-JRTQA-JVMEN-WEMBR-ACED 8MEH-RCKOP-BP9KK-YW8EA-6ZMMK-SEMBR-ACED 8MEH-RS47Y-82HT8-GONVA-BO3R8-DEMBR-ACED 8MEH-RQX93-WYZKW-BE2FR-QX9FE-PEMBR-ACED 8MEH-REDSL-7EKFC-ULA8R-EEJMJ-4EMBR-ACED 8MEH-RSTBP-ST9JM-2TVHA-XL9M9-LEMBR-ACED 8MEH-RR6GC-KLJJD-S7DBA-NWPS7-EEMBR-ACED

在shell命令行下让mplayer循环播放和播放列表

第一步:将所有要播放的多媒体文件放在~/music/目录下;       第二步:进入music目录,执行ls > music.lst,则在music目录下生成一个名为music.lst的列表文件,并把music目录下的文件名写入到music.lst文件中;       第三步:运行mplayer -playlist music.lst即可实现列表播放       值得注意的是第二步中,生成的多媒体列表文件music.lst一定要与要播放的多媒体文件保存在同一个目录中,否则mplayer播放时会有找不到文件的错误提示。       如果要删除一些不想听的多媒体文件,则用编辑器打开music.lst列表文件,删除对应的文件名即可,保存时要注意一行一个文件名,不能有空行。       如果要增加文件,执行命令echo filename >> music.lst即可,即可将新增的文件名追加在music.lst列表文件末。

兄弟(brother)MFC7340打印机清零方法

兄弟BROTHER MFC7340打印机清零方法 硒鼓是鼓粉分离的,官方给出的硒鼓使用寿命12000张,但一般可以打印到25000张左右,到25000时机器可能会提示硒鼓错误,让你按使用说明书上的什么什么东东操作… 以下两种清零方法可以解决机器:硒鼓将用尽、硒鼓寿命为0%、硒鼓错误、计数器清零等问题。 1、粉盒清零(一般加粉时都可以操作) 步骤: 1、打开机器前盖取出硒鼓 2、取下粉盒边盖上的三个螺丝(注意别把里面的齿轮搞掉了) 3、将盖板上面的白色(或黑色的)拨片拨上去就行(逆时针转到另一头) 4、装回硒鼓放入机器就OK了 2、机器清零(提示硒鼓错误时可以按此操作) 步骤: 1、关闭电源 2、按住菜单键,打开电源,待机器面板上的3灯全亮 3、按74,出来一串数字,用笔记下,按退出 4、按90,按28,按64 5、关闭电源 6、重复步骤 2 7、按74,输入你刚才记下的数字,确认,按96 8、OK!再看看你是硒鼓寿命,变成100%了,页码计数器也变为0了!

Blocking abusive IP addresses using IPTABLES Firewall in Debian

In one of our previous article we have posted an instructional guide on how to secure your Debian/Ubuntu based VPS using IPTABLES/Netfilter. In the following article we are adding a blacklist to the firewall script which will allow you to block any abusive IP addresses or ranges of IPs in your Debian or Ubuntu based virtual server. What is iptables? It is is a user space application program that allows a system administrator to configure the tables provided by the Linux kernel firewall (implemented as different Netfilter modules) and the chains and rules it stores. Before proceeding any further, make sure you read the article on how to secure/design the firewall in your linux vps. This includes: Flushing the old firewall rules Determining service ports Setting-up default policies Setting-up your firewall rules Saving your firewall rules BLOCKING IPs USING IPTABLES To block some abusive IP address or range of IPs, you can use the following iptables rules: ## iptables -I INPUT -s 1.2.3.4...