我想调整这样一个动画 GIF 文件do.gif 的大小 
如果我这样做,convert do.gif -resize 24x24\! do-24.gif我会在do-24.gif 中调整它的大小但没有动画
如何以正确的方式调整大小以获得相同的动画?
这是我在 auth.log 中找到的日志条目。+是什么意思???意思?是否存在未经授权的访问?
Feb 11 07:48:32 tts-server su[31265]: Successful su for www-data by root
Feb 11 07:48:32 tts-server su[31265]: + ??? root:www-data
Feb 11 07:48:32 tts-server su[31265]: pam_unix(su:session): session opened for user www-data by (uid=0)
Feb 11 07:48:32 tts-server su[31265]: pam_unix(su:session): session closed for user www-data
Feb 11 07:48:32 tts-server su[31275]: Successful su for www-data by root
Feb 11 07:48:32 tts-server su[31275]: + ??? root:www-data
Feb 11 07:48:32 tts-server su[31275]: pam_unix(su:session): session opened for user www-data …Run Code Online (Sandbox Code Playgroud) 我尽量减少对新 SSD 系统驱动器的磁盘写入。我被 iostat 输出困住了:
~ > iostat -d 10 /dev/sdb
Linux 2.6.32-44-generic (Pluto) 13.11.2012 _i686_ (2 CPU)
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sdb 8,60 212,67 119,45 21010156 11800488
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sdb 3,00 0,00 40,00 0 400
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sdb 1,70 0,00 18,40 0 184
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sdb 1,20 0,00 28,80 0 288
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sdb 2,20 0,00 32,80 0 328
Device: tps …Run Code Online (Sandbox Code Playgroud) 我正在旋转 5400 rpm 1Gb 驱动器。
启动需要69 秒(慢吗?)并且/var/lib/ureadahead包含空目录debugfs。这就是为什么我想知道 ureadahead 是否能发挥作用。
/var 目录在根分区上
~ > df
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 24G 15G 8,1G 65% /
udev 3,9G 4,0K 3,9G 1% /dev
/dev/sda9 705G 143G 562G 21% /data
/dev/sda8 29G 24G 4,2G 85% /home
Run Code Online (Sandbox Code Playgroud)
配置似乎是默认的
~ > cat /etc/init/ureadahead.conf|grep -v '#'|grep -ve '^$'
description "Read required files in advance"
start on starting mountall
stop on stopped rc
expect fork
kill timeout 180
normal …Run Code Online (Sandbox Code Playgroud) 软件中心以某种方式显示了相当短的已安装软件包列表。如何在文本文件中获取它?
我试过:
> dpkg --get-selections|wc -l
3265
> aptitude search '~i!~M'|wc -l
1181
> dpkg -l | grep ^ii | sed 's_ _\t_g' | cut -f 2|wc -l
3076
> dpkg --get-selections | grep -v deinstall|wc -l
3076
> apt-mark showmanual|wc -l
1181
Run Code Online (Sandbox Code Playgroud)
我知道我已经安装了几十个软件包,而不是数千个。我需要在列表中准确地选择我选择的没有依赖关系的包来查看它。
更新
非常感谢@kos,我终于得到了该命令的列表:
> zcat /var/log/apt/history.log.*.gz | cat - /var/log/apt/history.log | grep -Po '^Commandline: apt-get install \K.*' | tr ' ' '\n' | grep -v '\-\-reinstall'|grep -v '\-\-force-yes'|grep -v '\-y'|grep -v '\-f'|sort|uniq wc -l
103
Run Code Online (Sandbox Code Playgroud) 尽管有一个快速的计划(70 MBit 下载),Firefox 开始加载 url 时有很大的延迟
同样在窗口底部的状态行中,它有时会打印 waiting for 192.168.101.1:8888
我的笔记本电脑通过 WiFi 连接,没有dns-nameservers配置/etc/network/interfaces,我的路由器有线连接到 ISP。
该IP地址属于谁?为什么我的浏览器会等待那个奇怪的地址?
更新:
~ > ifconfig
eth0 Link encap:Ethernet HWaddr e0:db:55:d9:75:56
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:51841 errors:0 dropped:0 overruns:0 frame:0
TX packets:51841 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 …Run Code Online (Sandbox Code Playgroud) 我用谷歌搜索了一些并查看了它找到的两个第一个链接:
他们没有提到如果出现此类警告我该怎么办:
Warning: The command '/bin/which' has been replaced by a script: /bin/which: POSIX shell script text executable
Warning: The command '/usr/sbin/adduser' has been replaced by a script: /usr/sbin/adduser: a /usr/bin/perl script text executable
Warning: The command '/usr/bin/ldd' has been replaced by a script: /usr/bin/ldd: Bourne-Again shell script text executable
Warning: The file properties have changed:
File: /usr/bin/lynx
Current hash: 95e81c36428c9d955e8915a7b551b1ffed2c3f28
Stored hash : a46af7e4154a96d926a0f32790181eabf02c60a4
Run Code Online (Sandbox Code Playgroud)
Q1:是否有更多扩展的 HowTos 来解释如何处理不同种类的警告?
还有第二个问题。我的行为是否足以解决这些警告?
a) 找到包含可疑文件的包,例如 /bin/which 文件是 debianutils
~ > dpkg -S …Run Code Online (Sandbox Code Playgroud) 如果用户使用键盘或鼠标,是否有可以指示暂停指定进程并在用户停止与操作系统交互后的特定时间恢复的工具?
我想用这种方式来处理烦人的 mlocate update db、backuppc。
ps
09.2015 我猜这些有用的工具困扰着我,因为我的 Ubuntu 实际上是一个服务器,而不是桌面。
如何定义全局快捷键Ctrl+a 1使用 AutoKey 将相同的击键Ctrl+发送a 1到标题为“gnu screen”的窗口?如果没有这样的标题窗口,它应该显示一个弹出消息“找不到目标窗口”。
autokey ×1
bootchart ×1
command-line ×1
disk ×1
disk-usage ×1
dns ×1
firefox ×1
gnu-screen ×1
imagemagick ×1
log ×1
manpage ×1
monitor ×1
networking ×1
optimization ×1
process ×1
rkhunter ×1
security ×1
ssd ×1
ureadahead ×1