顯示包含「linux」標籤的文章。顯示所有文章
顯示包含「linux」標籤的文章。顯示所有文章

2013年11月14日

Multi-Core Parallel Compression tools under Ubuntu

Multi-Core Compression tools - Ask Ubuntu
PXZ - Parallel XZ is a compression utility that takes advantage of running LZMA compression of different parts of an input file on multiple cores and processors simultaneously. Its primary goal is to utilize all resources to speed up compression time with minimal possible influence on compression ratio.
sudo apt-get install pxz
PLZIP - Lzip is a lossless data compressor based on the LZMA algorithm, with very safe integrity checking and a user interface similar to the one of gzip or bzip2. Lzip decompresses almost as fast as gzip and compresses better than bzip2, which makes it well suited for software distribution and data archiving.
Plzip is a massively parallel (multi-threaded) version of lzip using the lzip file format; the files produced by plzip are fully compatible with lzip.
Plzip is intended for faster compression/decompression of big files on multiprocessor machines, which makes it specially well suited for distribution of big software files and large scale data archiving. On files big enough, plzip can use hundreds of processors.
sudo apt-get install plzip
PIGZ - pigz, which stands for Parallel Implementation of GZip, is a fully functional replacement for gzip that takes advantage of multiple processors and multiple cores when compressing data.
sudo apt-get install pigz
PBZIP2 - pbzip2 is a parallel implementation of the bzip2 block-sorting file compressor that uses pthreads and achieves near-linear speedup on SMP machines. The output of this version is fully compatible with bzip2 v1.0.2 (ie: anything compressed with pbzip2 can be decompressed with bzip2).
sudo apt-get install pbzip2
LRZIP - A multithreaded compression program that can achieve very high compression ratios and speed when used with large files. It uses the combined compression algorithms of zpaq and lzma for maximum compression, lzo for maximum speed, and the long range redundancy reduction of rzip. It is designed to scale with increases with RAM size, improving compression further. A choice of either size or speed optimizations allows for either better compression than even lzma can provide, or better speed than gzip, but with bzip2 sized compression levels.
sudo apt-get install lrzip
A small Compression Benchmark (Using the test Oli created):
ORIGINAL FILE SIZE - 100 MB
PBZIP2 - 101 MB (1% Bigger)
PXZ - 101 MB (1% Bigger)
PLZIP - 102 MB (1% Bigger)
LRZIP - 101 MB (1% Bigger)
PIGZ - 101 MB (1% Bigger)
A small Compression Benchmark (Using a Text file):
ORIGINAL FILE SIZE - 70 KB Text File
PBZIP2 - 16.1 KB (23%)
PXZ - 15.4 KB (22%)
PLZIP - 15.5 KB (22.1%)
LRZIP - 15.3 KB (21.8%)
PIGZ - 17.4 KB (24.8%)

2013年5月6日

Set the icon of a system folder in GNOME

By the default, unlike Windows, the icon of Dropbox folder in Linux is the same as other normal folder. To change icon to, you may type the command:
gvfs-set-attribute ~/Dropbox metadata::custom-icon-name folder-dropbox
Ref: http://oxygene.sk/2012/10/dropbox-folder-icon-in-gnome-3/

2013年4月18日

HE.net IPv6 tunnel gateway on Raspberry Pi


cat /etc/radvd.conf
interface eth0
{
  AdvSendAdvert on;
  AdvLinkMTU 1480;
  prefix 2001:230:19:2b4::/64
  {
    AdvOnLink on;
    AdvAutonomous on;
  };
};
execute
apt-get install radvd
/etc/init.d/radvd start
append /etc/network/interfaces:

auto he-ipv6
iface he-ipv6 inet6 v4tunnel
        address 2001:230:18:2b4::2
        netmask 64
        endpoint 216.218.221.6
        ttl 255
        gateway 2001:230:18:2b4::1
iface eth0 inet6 static
        address 2001:230:19:2b4::1
        netmask 64
        post-up ip6tables -A FORWARD -i he-ipv6 -o eth0 -p tcp --dport=1:2048 -j DROP
execute
/etc/init.d/networking
append /etc/sysctl.conf
net.ipv6.conf.all.forwarding=1
execute
sudo sysctl -p

2013年4月16日

Kernel 3.5 for Ubuntu 12.04 (aka LTS Enablement Stacks)

Ubuntu 12.04 LTS get official kernel update. Namely,
sudo apt-get install --install-recommends linux-generic-lts-quantal xserver-xorg-lts-quantal
There is a bug that leads to remove some i386 package required by many program (eg. wine1.5). Workaround:
sudo apt-get install xserver-xorg-lts-quantal libgl1-mesa-dri-lts-quantal:i386 libgl1-mesa-glx-lts-quantal:i386

Ref:
https://wiki.ubuntu.com/Kernel/LTSEnablementStack
https://bugs.launchpad.net/ubuntu/+source/xorg-lts-quantal/+bug/1101899

2012年12月4日

Proxy setting in Linux

http://wiki.archlinux.org/index.php/Proxy_settings#Proxy_settings_on_GNOME3

gsettings set org.gnome.system.proxy mode 'manual'
gsettings set org.gnome.system.proxy.http host 'proxy.localdomain.com'
gsettings set org.gnome.system.proxy.http port 8080
gsettings set org.gnome.system.proxy.ftp host 'proxy.localdomain.com'
gsettings set org.gnome.system.proxy.ftp port 8080
gsettings set org.gnome.system.proxy.https host 'proxy.localdomain.com'
gsettings set org.gnome.system.proxy.https port 8080
gsettings set org.gnome.system.proxy ignore-hosts "['localhost', '127.0.0.0/8', '10.0.0.0/8', '192.168.0.0/16', '172.16.0.0/12' , '*.localdomain.com' ]"
http://askubuntu.com/questions/11274/setting-up-proxy-to-ignore-all-local-addresses

2012年3月12日

Bootable Linux USB for recovery

1. Download files from
http://www.pendrivelinux.com/downloads/Universal-USB-Installer/Universal-USB-Installer-1.8.8.8.exe
http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/11.10/ubuntu-11.10-desktop-i386.iso

2. Plug in your USB drive with >700MB free space

3. Double click "Universal-USB-Installer-1.8.8.8.exe"

4. Click in "I Agree"

5. Select "Ubuntu 11.10 Desktop" in Step 1

6. Select the downloaded ubuntu-11.10-desktop-i386.iso in Step 2

7. Select the drive letter of your USB drive in Step 3
   Do NOT select "Format ?:\ Drive"

8. Set size to 0 in Step 4

9. Click "Create" to proceed

10. Check the alertbox shows 3 actions (instead of 5 actions) and then click "YES"

11. Wait for completion

12. You have your USB drive bootable.

13. Reboot with the USB drive plugged-in.
    press F12 or F9 at startup to get a menu and select your USB drive as bootup device.
    ref: http://www.tomshardware.com/reviews/windows-pocket,1113-3.html
    Then wait for the startup process (or Select "Run Ubuntu from USB" yourself).

14. You should get a desktop, click on the 3rd icon on the left and you can get a file manager.
    Plug your portable harddisk and copy your files to it

15. For harddisk checking, click on the 1rd icon on the left desktop,
    type the "Disk Utility" and click the icon with "Disk Utility".
    In popup window, select the harddisk you have and check SMART Data.
    There will be fields called "Bad sector" (which show number of dead region in harddisk)
    and "Overall Assessment"

16. For memory checking, select "Test memory" instead of "Run Ubuntu from USB" at startup time.
    Then a blue screen shows and the memoey are being tested. It takes about half an hour.

17. For remote desktop access, click on the 1rd icon on the left desktop,
    type the "Desktop sharing" and click the icon with "Desktop sharing".
    In popup window, click on "Allow other users to view your desktop", "Allow other users to control your desktop" and "Auto config UPnP router...."
    Then use Firefox and go to http://checkip.dyndns.org. Tell the address.
    Then there will be a yellow-backgrounded text say you can access the desktop with an address, please tell the address. Also tell the reach-ability.

2011年11月18日

Fail to compile kernel 2.4 in VMWare Player

If you compile your own version of kernel, a error message are returned
No module BusLogic found for kernel 2.4.12
mkinitrd failed
Solution:

  1. Open a new terminal window and open the /etc/modprobe.conf file.
  2. Comment out the line with BusLogic and save the changes.

Ref: Upgrading VMware Tools fails with the error: No module BusLogic found for kernel x.x.xx-xx, aborting

2011年10月18日

dante-client (socksify) broken on Ubuntu 11.04 Natty

ERROR: ld.so: object '/lib/libdl.so.2' from LD_PRELOAD cannot be preloaded: ignored.

Solution:
ln -sf /lib/i386-linux-gnu/libdl.so.2 /lib/libdl.so.2
ln -sf /lib/i386-linux-gnu/libc-2.13.so /lib/i386-linux-gnu/libc.so


Ref:
https://bugs.launchpad.net/ubuntu/+source/dante/+bug/767085

2011年9月20日

halt problem in Ubuntu 11.04 amd64 and Dell Optiplex 990

Just add the option "reboot=pci" to GRUB_CMDLINE_LINUX in /etc/default/grub

http://ubuntuforums.org/showthread.php?t=1741668&page=7#62
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/768039

2011年5月24日

Compile tgif under cygwin (Windows)

Had imake, make, gcc, libX11, libXext, (xterm), libXt(for tgif4.2), libXmu(for tgif4.2), Xming install in your cygwin
Also download tgif (my case 4.1.42)
Then run:
rm Tgif.tmpl
cp Tgif.tmpl-cygwin Tgif.tmpl
xmkmf
make tgif.exe
make install
tgif.exe -display localhost:0

ref:
http://bourbon.usc.edu:8001/tgif/faq/compile.html
http://www.nebadje.org/doku.php?id=forum:blogcls#tgif_on_cygwin

http://uguisu.skr.jp/Windows/app.html

2011年2月9日

Using Trackpoint in Thinkpad under Linux

我與小黑(ThinkPad X200s)之小紅點 
echo -n 1 > /sys/devices/platform/i8042/serio1/press_to_select
sudo apt-get install gpointing-device-settings

2011年1月15日

Offline map generator for RMap -- TrekBuddy Atlas Creator

Dr. TYT 的 Android 地圖: Android 離線地圖系列(三):離線地圖製作器 TrekBuddy Atlas Creator 1.2 beta 1 (android-map.blogspot.com Version 1)
http://android-map.blogspot.com/2009/07/gps-trekbuddy-atlas-creator.html

 PC 端離線地圖製作軟體 Mobile Atlas Creator 1.8 正式版
http://android-map.blogspot.com/2010/11/mobile-atlas-creator-18.html
All In One 整合版 Mobile_Atlas_Creator_1.8_SQLite.zip

Mobile Atlas Creator
http://mobac.dnsalias.org/

2010年12月11日

UML Tools for Software Development

StarUML - The Open Source UML/MDA Platform
http://staruml.sourceforge.net/en/

argouml.tigris.org
http://argouml.tigris.org/

Open ModelSphere - Free Modeling Software Open Source GPL
http://www.modelsphere.org/

2010年11月27日

Getting Free Droid Font

A good quality Unicode fonts is included in Android, and released as BSD.
Apart from Android SDK, you may also obtain it in  its Git repository (platform/frameworks/base.git/data/fonts)

ref:
How to get the latest Droid font family § Lvx ex Cælis
http://blog.bcse.tw/how-to-get-the-latest-droid-font-family

2010年11月6日

disable ctrl+mousewheel zooming

How can you disable zooming in Internet Explorer/Firefox? - Super User
In Firefox, if you still want the option of zooming with ctrl-- and ctrl-=, you can

go to about:config
and set mousewheel.withcontrolkey.action to 0.

This makes it so scrolling with the control key down does the same as scrolling without the control key.

2010年10月2日

免費、開源又跨平台的檔案同步軟體:DirSync Pro
一說起免費的檔案備份與資料同步軟體,SyncBack會是被提及頻率頗高的一套,除了免費版本外,也有提供付費功能供使用者選用。但如果想要找一套免費、開源又跨平台的同步軟體,則會難倒一堆人,幸好DirSync
Pro(Directory Synchronize Pro)填補了這個空隙。