家里有一条电脑作为存储,安装了redis 服务,但是后面发现redis服务经常有问题,想卸载无法卸载sudo apt remove redis-server
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
redis-server
0 upgraded, 0 newly installed, 1 to remove and 202 not upgraded.
After this operation, 919 kB disk sp
背景最近做智能家居,需要用到一些应答词 需要自己录制。但是在mac下面通过 QuickTime 录制的是 m4a格式。但是应答词需要 wav格式。所以就需要转化了解决方法# sox 不行, ffmpeg 很麻烦,用 avconv 很简单。安装 如果没有就安装
# apt-get install libav-tools
avconv -i xx.m4a xx.wav
查看软件xxx安装内容:dpkg -L xxx
查找软件库中的软件:apt-cache search 正则表达式
查找软件库中的软件:aptitude search 软件包
查找文件属于哪个包:dpkg -S filename
查找文件属于哪个包:apt-file search filename
查询软件xxx依赖哪些包:apt-cache depends xxx
查询软件xxx被哪些包依赖:apt-cache rdepends xxx
增加一个光盘源:sudo apt-cdrom add
系统升级:sudo apt-get update;sudo apt-get dist-upgrade
清除已删除包的残馀配置文件:dpkg -l |grep&
AppArmor 是一款与SeLinux类似的安全框架/工具,其主要作用是控制应用程序的各种权限,例如对某个目录/文件的读/写,对网络端口的打开/读/写等等。 来之Novell网站的引用:AppArmor is designed to provide easy-to-use application security for both servers and workstations. Novell AppArmor is an access control system that lets you specify per program which files the program may read, write, and execute. AppArmor secures applications by enforcing good application behavior without relying on attack signatures, so it can pr
ubuntu使用ntpdate更新时间的时候提示错误如下root@lnmp:/etc/squid3# sudo ntpdate cn.pool.ntp.org
5 Jan 07:22:59 ntpdate[4129]: the NTP socket is in use, exiting解决方法$ ps aux | grep ntpd #将进程号记录下来
$ sudo kill 2378 # 杀死刚才记录的进程号
$ sudo ntpdate cn.pool.ntp.org # 再次更新
1:修改源(我使用163的源)直接修改/etc/apt/sources.listdeb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security