博文

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...

How to mount Google Drive on debian

图片
apt-get install ocaml camlp4-extra git clone https://github.com/OCamlPro/opam.git cd opam ./configure make sudo make install apt-get install m4 libcurl4-gnutls-dev libfuse-dev libsqlite3-dev opam init //**if error( opam init https://opam.ocaml.org/1.1 ) opam update opam install google-drive-ocamlfuse 安装成功后,进入Google Project建立一个Project https://console.developers.google.com/project 进入项目的API设置开启Drive API 建立一个OAuth验证ID 建立项目的Client ID 记录下这两个生成的参数做稍后使用 进入/root/.opam/system/bin/目录绑定项目 cd /root/.opam/system/bin/ ./google-drive-ocamlfuse -headless -label googledrive -id ##Client ID##.apps.googleusercontent.com -secret ##secret key## 执行完上述指令会返回一个https的网址在浏览器粘贴到浏览器后会进入google页面询问是否允许访问该项目,选accept然后记录下浏览器页面返回的密码,粘贴进去回车即可。 进入~/.gdfuse/googledrive cd ~/.gdfuse/googledrive nano config 编辑config修改内容例如 verification_code= [key returned from browser] client_id= [eg. 123123231.apps.googleusercontent.com] client_secret= [eg. ASDQWEWGSD!$@#@#ASD] 完成配置加载Google Drive远端存储到本地/googledrive mkdir /googledrive cd ~/.o...