« 类别 Linux 下的文章

Archlinux android udev rule

今天更新了下系统,连上手机后不显示”HTC”了。。。 于是加了下udev rule成功搞定。 直接: 1yaourt -S android-udev 重新加载自定义规则: 1sudo udevadm control –reload-rules 1lssub 然后可看到 Bus 002 Device 002: ID 0bb4:xxxx High Tech Computer Corp. 就说明Linux已经成功识别手机了。 参考文档: https://wiki.archlinux.org/i...

Pacman “filesystem: /etc/mtab exists in filesystem”

好久没升级了,今天升级时遇到这个错误: error: failed to commit transaction (conflicting files) filesystem: /etc/mtab exists in filesystem Errors occurred, no packages were upgraded. 在官方论坛找到了解决办法: When upgrading to filesystem-2011.12 there will be a conflict with /etc/mta...

登录ssh Access denied

fuck-gitosis

一直好好的,密码也没变。突然不能登录了。 尝试本地登录,也不行。 查看/var/log/auth.log 有如下信息: 123456Dec  9 13:49:59 hacklog-ubuntu sshd[1122]: User 用户名不让你看 from 172.30.16.31 not allowed because not listed in AllowUsers Dec  9 13:49:59 用户名不让你看-ubuntu sshd[1122]...

opera 11.52 在archlinux 下crash问题解决办法

系统:archlinux opera每次在关闭时都会crash,100%的crash. About Opera Version information Version 11.52 Build 1100 Platform Linux System i686, 3.1.4-1-ARCH Browser identification Opera/9.80 (X11; Linux i686; U; en) Presto/2.9.168 Version/11.52 1234567cd ~ mkdir buil...

Linux下多线程下载工具Myget原是国人所写

这个工具其实很早就听过,只是没怎么对它感兴趣~~~ 今日偶尔间想起这个,于是去看下这个工具还有没有在更新。 去其sf主页才知道,Myget是由国人xiaosuo(网名)开发的,其blog url: http://blog.chinaunix.net/space.php?uid=317451 不过目前他已经不维护这个项目了,有人fork之并将源码托管在github: https://github.com/lytsing/Mytget

...

Archlinux下安装Cisco Packet Tracer 5.3

我下载的是PacketTracer532_Generic_Ubuntu.tar.gz 解压后运行install安装即可。 不过在删除物件时程序会crash,从console 可看出发生了segment fault. 在这里找到了解决方法: 发生此错误的原因是此版本的软件是为debian系列的linux系统设计的, 而在我们的系统上qt库一般是比较新的,发生此错误的原因是pt没有使用它自己的Lib目录下面的库,而是用了系统的。而pt是在老版本的qt库下编译的,因此,调用新版本的qt库难免出错。 The...

Axel批量下载

Archlinux的童鞋没有的速度装: 1sudo pacman -S –needed axel 多线程支持断点续传的下载工具Axel,不像wget一样可以用-i参数指定从文件读取下载文件URL.不过在linux下面这并不是问题。 axel是物如其名:Accelerator ,加速器,和它相比,wget这种单线程的工具简直是龟速了,上图一张: 这里给出两种方法: 方法一 axel-batch.sh 123#!/bin/sh -e # usage:  ./axel-batch.s...

Linux下用hostapd架无线AP

本文将介绍在linux下面用笔记本无线网卡架设无线AP。 在win7下面用“承载网络”让爪机上wifi真是爽YY啊。 其实linux下面也是可以的,不过得看运气了。正如windows7下面要求你的无线网卡驱动必须支持“承载网“一样。 首先,查看网卡芯片信息: 对于pci网卡: 1lspci 我的是: 03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection 对于USB...

Linux下用dnsmasq做dns cache server

@依云说这个速度快,我试了下,果然。 目前最新版是2.58 ,可去其FTP下载:http://www.thekelleys.org.uk/dnsmasq/ 12345678sudo pacman -S –needed dnsmasq cd /etc [admin@huangye etc]$ sudo cp -v dnsmasq.conf{,.orig} `dnsmasq.conf’ -> `dnsmasq.conf.orig̵...

Linux下用pdnsd做dns缓存服务器

123sudo pacman -S pdnsd cd /etc sudo cp pdnsd.conf.sample pdnsd.conf 123456789101112131415161718192021222324252627282930313233343536373839404142434445[admin@huangye etc]$ cat pdnsd.conf global {     perm_cache=1024;    ...

开灯