[原创]通过路由表调教Linux下载机
新Linux服务器配好了,WD的4k扇区带来的分区问题也解决了,旧下载机上用rtorrent拖的文件也该拷过来了。
直接走sftp拷的话,虽然网络层是通过SSL校验的,但磁盘那块没;再加上下载机身loongson2E的,走sftp太费CPU。所以,还是走BT。问题是,rtorrent老去连ADSL外面的机子,留给LAN的网速就10M不到。
阅读全文…
新Linux服务器配好了,WD的4k扇区带来的分区问题也解决了,旧下载机上用rtorrent拖的文件也该拷过来了。
直接走sftp拷的话,虽然网络层是通过SSL校验的,但磁盘那块没;再加上下载机身loongson2E的,走sftp太费CPU。所以,还是走BT。问题是,rtorrent老去连ADSL外面的机子,留给LAN的网速就10M不到。
阅读全文…
Galaxy现在的网络结构是:
ADSL->Linksys WRT110->PC->Notebook
(万幸当年没接着用TP-LINK的路由,换了这个可以自己加路由表的,虽然在Linksys中还是算低端……
PC是装Gentoo的个人文件服务器(兼BT、ED)。
WRT110带的是100M交换机,虽然可以冲到上下各10M字节的满速,但离硬盘的速度还是差出好远。
而笔记本就一个RJ45,虽然走无线也可解决上网问题,但一来辐射不爽,二来,5100那卡挂一晚BT,第二天在单位竟然会隔着塑料板烫手。
所以,PC到NB连1G网线势在必行。
iproute2搞NAPT也行,但一想到上公网要经过两次NAT,心里就不爽。还是走经典途径,配路由表。
阅读全文…
以前一直用Roboform来管理密码,有Keygen也就不在乎是否需要交米。后来,打算用Linux,却被这个问题困扰了——Roboform没有Linux版。
KeePass是Open Source的,但在浏览器整合上没Roboform方便。KeeForm和KeePass Toolbar也不支持Linux。
刚刚上wiki看到KeePassX(其实Gentoo装的就是这个…),但还是没自动填表,非要drag’n’drop fields。(确实有Auto-Type,不过,是SendKey之类的东东。)
偶然间,看到LastPass,虽然是在线的,但国外的在线服务总比国内的可信,比如Gmail。看完privacy,感觉还行。至于是否保存三次元的密码(就素那些银行帐号啥的),Galaxy还没想好。
阅读全文…
http://linuxtoy.org/archives/awesome.html
平铺式窗口管理器——Awesome
2008-08-05 Kardinal Posted in Apps, Window Manager
[撰文/Kardinal]
首先科普一下 Tiling window manager,直译就是“瓦片式窗口管理器”;意译为“平铺式窗口管理器”。
假设你需要同时监视多个程序的状态并进行操作(这种情况非常之普遍),你就需要不停的按Alt+Tab切换,但是这会加速Alt尤其是Tab的磨损(手的磨损忽略了,因为它是可再生的)。
聪明的人就会想出这一招,见图1:

但是要先调整窗口布局,而且总是不太合适,有点缝隙啥的,分散注意力。
而在Tiling window manager 中,无论有多少个窗口,都会把屏幕占满,见图2:

它的窗口没有标题栏(标题在状态栏上),边框尽可能的窄(可再设置为0),以最大程度的节约桌面空间。
awesome还有超低的资源占用率。
阅读全文…
今天连单位那台6.0.6002的WinServer SP2 Std,结果发现欢迎页被设成一段说明,说密码被初始化了,随便试了2下没蒙对,就直接关了rdesktop,然后,就再也无法登录,直接报“disconnect: Internal licensing error.”
http://linux.insigma.com.cn/index.php
2009.5.22 Linux兼容内核(Longene)0.2.4发布
2009年5月22日,Linux兼容内核(Longene)0.2.4版正式发布。新版本的Linux兼容内核在0.2.3版的基础上,整体移植了Wine的文件系统管理机制,使得应用程序在Linux兼容内核上的运行效率有了明显的提高。同时,该版本还修正了上一版本中注册表管理、进程/线程管理中的一些bug。
阅读全文…
http://partedmagic.com/documentation/124-grub4dos-iso-booting.html
Parted Magic can be booted with grub4dos iso emulation.
You can use the pmagic-4.0.iso from the pmagic-4.0.iso.zip or pmagic-grub4dos-4.0.iso.zip archive. The pmagic-4.0.iso from the pmagic-4.0.iso.zip archive uses isolinux as bootloader, the pmagic-4.0.iso from the pmagic-grub4dos-4.0.iso.zip archive uses grub4dos as bootloader.
When you want to use grub4dos iso emulation without adding extra parameters to the Parted Magic kernel, you can only put the iso only in a few locations, namely /, /images/ and /pmagic/ else Parted Magic won’t find the iso which is needed to access the rest of the files.
The name of the iso can NEVER be changed.
Grub4dos can use 2 distinct types of mapping: direct and memory mapping:
When the booted operating system makes a read or write call to the direct mapped image (iso, floppy or hard disk image), then the read or write calls will access and modify the data inside the image directly. Those changes are permanent. With direct access, only the parts of the image, accessed by the booted operating system are read, unlike with memory mapping.
For direct mapping the image needs to be contiguous (not fragmented). If you attempt to directly map an non-continuous file, grub4dos will reply:
| Error 60: File for drive emulation must be in one contiguous disk area |
Use one of the following programs to defragment the file and try again afterwards:
| title Parted Magic 4.0 (iso in / and direct mapping) find –set-root /pmagic-4.0.iso map /pmagic-4.0.iso (hd32) map –hook root (hd32) chainloader (hd32) |
| title Parted Magic 4.0 (iso in /images/ and direct mapping) find –set-root /images/pmagic-4.0.iso map /images/pmagic-4.0.iso (hd32) map –hook root (hd32) chainloader (hd32) |
| title Parted Magic 4.0 (iso in /pmagic/ and direct mapping) find –set-root /pmagic/pmagic-4.0.iso map /pmagic/pmagic-4.0.iso (hd32) map –hook root (hd32) chainloader (hd32) |
The chainloader (hd32) command will boot the bootsector of the iso, which will in turn boot the actual iso.
For both pmagic-4.0.iso variants, you also start the grub4dos menu with:
| title Parted Magic 4.0 (iso in / and direct mapping and loading new grub4dos configfile) find –set-root /pmagic-4.0.iso map /pmagic-4.0.iso (hd32) map –hook root (hd32) configfile /boot/grub/grub4dos.lst |
In this case, no other bootloader takes over the command. So in this case, the /boot/grub/grub4dos.lst config file, will be loaded by the grub4dos version with which you mapped the iso.
This will also work when you have memory mapped the iso.
The whole image (iso, floppy or hard disk image) will be first copied to RAM (slow for large images, when your BIOS only supports USB1.1). Any changes made, to this memory mapped image, by the booted operating system, will be lost after a reboot. For memory mapping, the image doesn’t need to be contiguous.
| title Parted Magic 4.0 (iso in / and memory mapping) find –set-root /pmagic-4.0.iso map –mem /pmagic-4.0.iso (hd32) map –hook root (hd32) chainloader (hd32) |
| title Parted Magic 4.0 (iso in /images/ and memory mapping) find –set-root /images/pmagic-4.0.iso map –mem /images/pmagic-4.0.iso (hd32) map –hook root (hd32) chainloader (hd32) |
| title Parted Magic 4.0 (iso in /pmagic/ and memory mapping) find –set-root /pmagic/pmagic-4.0.iso map –mem /pmagic/pmagic-4.0.iso (hd32) map –hook root (hd32) chainloader (hd32) |
If you want to put the iso in another directory than /, /images or /pmagic, then you have to pass the directory location of the iso to the Parted Magic kernel (iso_location= parameter).
The name of the iso can NEVER be changed.
| title Parted Magic 4.0 (iso is located at /custom, direct mapping and booting the kernel) find –set-root /custom/pmagic-4.0.iso map /custom/pmagic-4.0.iso (hd32) map –hook root (hd32) kernel /pmagic/bzImage noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=10 loglevel=0 keymap=us iso_location=/custom initrd /pmagic/initramfs map –unmap=0:0xff |
Everything in red needs to be on one line.
Download grub4dos: Use the last release 0.4.4 (older releases don’t support all commands).
Also take a look at a grub4dos guide.
近期评论