ubuntu可以简单地使用shutdown及其参数实现关机等操作,也可以同样基于命令行实现挂起。sudo pm-hibernate : 休眠sudo pm-suspend: 挂起sudo pm-powersave :省电模式具体命令细节可以用man进行查看转自:http://loveli0917.b...
分类:
其他好文 时间:
2014-07-22 22:58:13
阅读次数:
754
wondersharper1 安装wondershaper:sudo apt-get install wondershaper2 限制下载,上传速度(1500是限制下载速度(实际限速150k左右),1000是上传速度(实际限速100k左右):sudo wondershaper eth0 1500 1...
分类:
系统相关 时间:
2014-07-22 22:57:15
阅读次数:
278
1.明文传输 ftp,http,smtp,telnet2.机密性:plaintext-->转换规则-->ciphertext ciphertext-->转换规则-->plaintext 完整性:单项加密算法,提取数据特征码。输入一样,输出必然一样;雪崩效应,输入的微小改变,将会引起结果的巨...
分类:
系统相关 时间:
2014-07-22 22:56:33
阅读次数:
344
笔者是Windows的使用者,由于Coding的需要以及在Linux下开发的方便,所以开始使用Linux。当然笔者还是割舍不下Windows的,毕竟很多通讯工具等软件以及游戏在Linux下是没有发行的,所以笔者使用了虚拟机啊。下面给出简单的安装过程。1、下载虚拟机软件,笔者比较喜欢VMPlayer,...
分类:
系统相关 时间:
2014-07-22 22:56:33
阅读次数:
211
Zedboard自带有一颗ethernet PHY,Marvell 88E1518。在Zedboard自带的SD卡中已经包含有驱动,通过简单的设置即可联网。不过由于自己用的电脑是绑定mac地址的,设置起来多了几步。sudo ifconfig eth0 downsudo ifconfig eth0 h...
分类:
数据库 时间:
2014-07-19 21:38:29
阅读次数:
1192
1. Firefox安装Flash:sudo apt-get install flashplugin-nonfree2. 更换源:保存当前源列表:sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup打开当前源列表:sudo gedit ...
分类:
其他好文 时间:
2014-07-19 20:11:39
阅读次数:
207
在用virtualbox 挂载windows下的文件时,出现错误mount: wrong fs type, bad option, bad superblock ,在安装增强包后,解决方案:sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuest...
分类:
其他好文 时间:
2014-07-19 19:23:44
阅读次数:
171
Linux应用层想要操作kernel层的API,比如想操作相关GPIO或寄存器,可以通过写一个字符设备驱动来实现。
1、先在rootfs中的 /dev/ 下生成一个字符设备。注意主设备号 和 从设备号。可用如下shell脚本生成:
if [ ! -e audioIN ];then
sudo mknod audioIN c 240 0
fi
生成的设备为 /d...
分类:
系统相关 时间:
2014-07-18 22:36:04
阅读次数:
349
1.BIND:Berkeley Internet Name DomainDNS:Domian Name Service 域名解析2. Http3.PAM 插入式认证模块4.SMTP/POP3/IMAP4:Mail Server5.域名www.baidu.com这是一个主机名(FQDN,Full Qu...
分类:
系统相关 时间:
2014-07-17 00:10:02
阅读次数:
351
解决方法如下:1、增加用户组usbfssudo groupadd usbfs2、查看usbfs用户组的gidcat /etc/group | grep usbfsusbfs:x:1002:3、把当前用户增加到usbfs组sudo gedit /etc/group把usbfs:x:1002:修改为us...
分类:
系统相关 时间:
2014-07-16 12:41:10
阅读次数:
242