[原创] Ubuntu终端使用Privoxy代理

在Ubuntu下,除了浏览器之外,为了能在系统全局层面上自动使用代理访问那些“不存在的网站”,有一个常用的做法就是,在Chrome的SwitchyOmega插件里的“自动切换”情景模式下“导出PAC”,得到一个PAC文件,放在磁盘的某个路径下(假设为:/home/codelast/OmegaProfile__.pac),然后在Ubuntu系统的网络设置里如下设置:

阅读更多

[原创] 解决Ubuntu 无法用 apt-get install 安装任何软件(dpkg: error processing package xxx)的问题

Ubuntu不知道什么原因,不能用 apt-get install 安装任何软件了,并且在屏幕上输出海量错误信息,非常迷惑人,例如下面这一例:

insserv: Starting vpnagentd_init depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service vpnagentd_init and mountkernfs if started
insserv:  loop involving service mountkernfs at depth 1
insserv: Starting vpnagentd_init depends on plymouth and therefore on system facility `$all' which can not be true!
......
insserv: Starting vpnagentd_init depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service vpnagentd_init and dns-clean if started
insserv:  loop involving service dns-clean at depth 1
......
insserv: Starting vpnagentd_init depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package binfmt-support (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Processing triggers for initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: Generating /boot/initrd.img-4.13.0-32-generic
Errors were encountered while processing:
 udev
 grub-common
 grub2-common
 grub-pc-bin
 grub-pc
 resolvconf
 binfmt-support
E: Sub-process /usr/bin/dpkg returned an error code (1)

这里只列出了部分错误信息,实际上输出的内容极多,多得让人眼都瞎。

阅读更多

[原创] 如何在Ubuntu下的VirtualBox虚拟机(Windows XP)里挂载/使用U盘

在Ubuntu下安装了VirtualBox之后,如果你的虚拟机安装的是Windows XP系统,那么,你会发现,当你插上U盘时,无论你怎么折腾,虚拟机(XP)里都是没有任何反应的,既不提示找到新硬件,也看不到U盘的分区。
不像VMware,默认安装之后对U盘的支持很好,根本不需要用户去配置什么东西。从这一点上,我觉得VirtualBox太龌龊了,小而美归小而美,但是你不能把最常用的功能放在基础支持列表之外,还要用户去配置才能用,不是么?

下面就教你如何能让VirtualBox的虚拟机(XP)找到U盘并挂载上。宿主机系统是Ubuntu。实话说,网上的很多文章写得实在让人很无语,要么简略得太夸张,要么连中文都写得不通顺(负点责任行吗),我实在是看不下去了,所以在研究出来怎么做之后,我决定要把这么简单的一件事情写成教程,帮助有需要的人。

阅读更多

[原创]在Linux下进行文件“粉碎”/擦除

文章来源:http://www.codelast.com/

 

众所周知Windows下的文件删除之后是有可能恢复的,对重要文件,为了增加恢复的难度,我们可以用文件粉碎工具进行文件粉碎。我最常用的是集成到资源管理器中的Eraser。那么在Linux下有没有类似的软件呢?我在一台只有Ubuntu系统的主机上,安装了一个文件粉碎工具wipe,有些想法,记下来。

安装:apt-get install wipe

wipe有没有GUI我不知道,命令行也不难用:

阅读更多

[原创]Ubuntu配置(杂)

本文很杂,主要是记录自己配置Ubuntu的过程中遇到的问题及网上搜到的解决方法。部分内容是网上搜来的,部分内容是自己写的。

本文在逐渐添加内容,期间经历了多次Ubuntu版本的升级,因此,下面的每一个条目不一定适用于每一个Ubuntu版本。

 

阅读更多