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年11月14日
Multi-Core Parallel Compression tools under Ubuntu
Multi-Core Compression tools - Ask Ubuntu
標籤:
command_line,
linux,
multi-core,
system,
ubuntu
2013年5月11日
Instant shutdown by pressing the power button (Ubuntu)
That's simple enough. When you press the power button a ACPI event triggers the script at /etc/acpi/powerbtn.sh.You can edit that to just run shutdown -h now as the first thing so it looks like:#!/bin/sh# /etc/acpi/powerbtn.sh# Initiates a shutdown when the power putton has been# pressed./sbin/shutdown -h now "Power button pressed"exit 0# leave the old code below (in case you want to revert!)
2013年4月16日
Kernel 3.5 for Ubuntu 12.04 (aka LTS Enablement Stacks)
Ubuntu 12.04 LTS get official kernel update. Namely,
Ref:
https://wiki.ubuntu.com/Kernel/LTSEnablementStack
https://bugs.launchpad.net/ubuntu/+source/xorg-lts-quantal/+bug/1101899
sudo apt-get install --install-recommends linux-generic-lts-quantal xserver-xorg-lts-quantalThere 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年8月1日
gnome-settings-daemon consumes 100% cpu in Ubuntu 12.04
Workaround
sudo mv /usr/lib/https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/969359gnome-settings- daemon- 3.0/keyboard. gnome-settings- plugin ~/
2012年2月10日
Ubuntu Linux Display card driver update (PPA)
Intro:
https://wiki.ubuntu.com/XorgOnTheEdge
PPAs:
https://launchpad.net/~ubuntu-x-swat/+archive/x-updates
https://launchpad.net/~xorg-edgers/+archive/drivers-only
https://launchpad.net/~glasen/+archive/intel-driver
https://launchpad.net/~oibaf/+archive/graphics-drivers [more info]
https://wiki.ubuntu.com/XorgOnTheEdge
PPAs:
https://launchpad.net/~ubuntu-x-swat/+archive/x-updates
https://launchpad.net/~xorg-edgers/+archive/drivers-only
https://launchpad.net/~glasen/+archive/intel-driver
https://launchpad.net/~oibaf/+archive/graphics-drivers [more info]
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
http://ubuntuforums.org/showthread.php?t=1741668&page=7#62
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/768039
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
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.
2009年11月14日
Usershares used in Ubuntu built-in Sambe share
The default setting is that all file are read-only, even the file owner
you may change it yourselves in /var/lib/samba/usershare/share_name
path=/path/to/shared/folder
comment=
usershare_acl=SID:R
guest_ok=y
The red letter means
Ref:
Integrating Ubuntu Hardy Heron 8.04 with Active Directory
HowTo Configure Shares on a Linux File Server in a SOHO LAN
you may change it yourselves in /var/lib/samba/usershare/share_name
path=/path/to/shared/folder
comment=
usershare_acl=
The red letter means
- R - read-only
- F - full access
- D - deny access
Ref:
Integrating Ubuntu Hardy Heron 8.04 with Active Directory
HowTo Configure Shares on a Linux File Server in a SOHO LAN
標籤:
linux,
networking,
ubuntu
2009年11月10日
UPNP gateway management under Linux
1. Install Perl UPNP library by:
sudo apt-get install -y libnet-upnp-perl
2. Download igdctl.pl or router.pl (depend the source)
and make it executable with:
chmod +x xxx.pl
3.) Just make a port forwarding now :)
./igdctl.pl -a -e 4332 -i 4332 -I 192.168.0.5 -P TCP
Ref:
A smart router administration tool
myDEBlog » Administrating your gateway device via UPnP
sudo apt-get install -y libnet-upnp-perl
2. Download igdctl.pl or router.pl (depend the source)
and make it executable with:
chmod +x xxx.pl
3.) Just make a port forwarding now :)
./igdctl.pl -a -e 4332 -i 4332 -I 192.168.0.5 -P TCP
Ref:
A smart router administration tool
myDEBlog » Administrating your gateway device via UPnP
標籤:
command_line,
linux,
networking,
system,
ubuntu
2009年6月27日
PiTiVi - video editing tool for Linux
PiTiVi - video editing
PiTiVi is a program for video editing based on the GStreamer framework. It is free software under the terms of the GNU Lesser General Public License. PiTiVi can:
* Capture and encode audio and video, with formats supported by GStreamer
* Split and trim video clips
* Split and trim audio
* Render projects in any format supported by the GStreamer framework
標籤:
apps,
linux,
multimedia,
ubuntu
2009年5月29日
2009年5月28日
2009年5月26日
Unlock Gnome keyring after login
especially useful for network-manager on laptop
sudo apt-get install libpam-gnome-keyring
then just click the option when password are asked again
sudo apt-get install libpam-gnome-keyring
then just click the option when password are asked again
2009年4月9日
LiveCD/LiveUSB creator (Boot ISO from USB)
i.e. UNetbootin and liveusb-creator, also Pendrivelinux
帝國反抗君 - PowerOp:從USB隨身碟開機,進入Linux的一百種方法(誤) - 樂多日誌
帝國反抗君 - PowerOp:從USB隨身碟開機,進入Linux的一百種方法(誤) - 樂多日誌
從USB隨身碟開機,進入Linux的一百種方法(誤)Pendrivelinux
其實只是要做個 brain dump,紀錄一下最近發現的幾種工具啦:
UNetbootin
「UNetbootin (Universal Netboot Installer) 為一種跨平台工具軟體,可以用來建立Live USB 系統,也可以載入各種系統工具,或安裝各種Linux作業系統(Linux套件)和其他作業系統,不需使用安裝光碟(自動透過網路下載)。」(引自中文維 基百科的UNetbootin條目
這個影片示範怎麼樣用 UNetbootin 把 Puppy Linux 安裝到 USB 隨身碟。
PowerOp 實測:我拿UNetbootin在我的MS Windows XP上面,把 Slax 6.0.9 安裝到USB隨身碟,非常輕鬆,全部都在圖形介面底下操作,比我以前寫的這篇SLAX - 小而美的Linux LiveCD還要用到命令列,輕鬆太多了!
09/04/07更新:SLAX 6.0.9 的中文還是可以參照洪朝貴教授的這篇文章來達成,也就是該文所說的 0*.lzm 放到 slax/base 底下,一共有 007, 008,009, 010 四個 lzm 檔
要注意的是,很多 Linux 發行版本也都有自己的,產生 Live USB 的方法。如果妳懶得一個個去查,那麼 UNetbootin 已經支援很多種 Linux 發行版本,是一個不錯的起點(無差別安裝? :p)
==
liveusb-creator
這個Fedora Live USB creator是跨平台的圖形介面工具,主要是拿來製作 Fedora 的 Live USB ,有 Persistent Storage 的功能,可以儲存妳開機之後的變更。
PowerOp 實測:我故意去下載 CentOS 5.2 LiveCD,然後拿Fedora Live USB creator去做出 Live USB,一樣可以開機成功,只是 Persistent Storage 的功能失效,無法儲存變更。(但是這表示別的 Linux 發行版本的 .iso 應該都可以給這個工具拿來用)。目前我有一個1GB的隨身碟,裡面有快700MB是Fedora 10(F10-i686-Live.iso),另外有快300MB是 Persistent Storage (在Windows上面用檔案總管看,會看到 Z:\LiveOS\overlay-FEDORA-0A64-271C 這個檔)。我用它開機進入 Fedora 10,然後安裝一些新套件,也新增一個文字檔,再重開機之後都還在,一切都有保留下來,非常正常 :)
09/04/07更 新:Fedora LiveUSB這個 persistent overlay 功能有嚴重的bug,資料寫滿之後會有問題,強迫關機再重開機之後,會出現 Bug In initramfs /init detected. Dropping to a shell. Good Luck 的文字 。可以在開機選單按 Tab 編輯參數(一般GRUB都是按 e 來編輯,這個LiveUSB不知為何是按 Tab),在最後面加上 reset_overlay 開機,LiveUSB就可以順利開機,但是資料會清空。這什麼爛解法啊,資料都掰掰了 Orz......查了一些資料,目前 Fedora 是用 dm-snapshot 這個已經在 Linux Kernel 的方式來實做 persistent storage ,但是會出現上述嚴重問題。別的 distro 會用 UnionFS 或是 AufS之類的方式來解,不過 Jeremy Katz 說 "we're _very_ resistent to adding not-upstreamed stuff into the Fedora kernels.",所以要等官方版的 Fedora LiveUSB支援「真正能用的」persistent storage,看來有得等了。
另 外發現現在 3.5G 上網越來越簡單了,在 Fedora 10 ,我的 華為 Huawei E220 USB 網卡插上去之後,System -> Preferences -> Network Configuration,選 "Mobile Broadband" 頁面去新增一個連線,選 Automatically Connect ,然後 Apply ,就可以看到右上角的狀態列多一個圖示,連線成功!
打 開 Firefox 上網,哇,中文字型有內建耶,連輸入法也有喔,System → Preferences → Personal → Input Method 就可以啟動 SCIM 了,在右上角看到小鍵盤圖示之後就可以按 Ctrl + 空白鍵,叫出 SCIM 輸入法,然後點選那個鬼畫符手繪的圖示,切換到酷音。
「Fedora 10: 因為光碟的容量有限,Live 環境只提供智能漢語拼音和酷音 (智能注音) 輸入法。當您正式把 Fedora 安裝到硬碟上,就會有其他中文輸入法。」引自
Hong Kong Linux User Group 使用 LiveCD 安裝 Fedora 10 (Cambridge) 桌面
==
查了一下,Ubuntu Live USB creator功能類似,不過目前只能在 Linux 上面執行。openSUSE 的 Image Creator 好像也可以,請參考 openSUSE 11 Live CD 的另一個選擇 Live USB stick
Install your favorite Linux operating system on a flash drive or USB key no larger than your thumb (Thumb Drive). Your Portable Linux operating system can then be run from any computer that can boot from a USB flash device, allowing you to bring your entire operating system, desktop, applications, files, email, personal settings, favorites, games and more with you. It’s your own personal operating system you can carry in your pocket.
At Pendrivelinux, we provide simplified portable Linux flash drive installation tutorials and USB Linux installer scripts, making is easy for anyone to install, boot and run their favorite Linux from a flash pen drive!
2009年3月19日
How to Run Microsoft Office 2007 in Ubuntu Linux 8.10 | ProgrammerFish - Everything that's programmed!
Wouldn’t it be lovely to have a nice, clean installation of Microsoft’s Office 2007 Suite to run on your Ubuntu Linux Distribution? For some people, this is the only thing that truly holds them back from an all-Linux environment… But not anymore! We have compiled a nice, concise set of instructions to help guide you along.
2009年3月15日
Reinstall GRUB
grub
>root (hd0,6) //for /dev/sda7 or using "find /boot/grub/stage1" to get the drive
>setup (hd0)
>root (hd0,6) //for /dev/sda7 or using "find /boot/grub/stage1" to get the drive
>setup (hd0)
2009年2月28日
parallel implementation if gzip and bzip2
pigz (http://www.zlib.net/pigz/)
pbzip2 (http://compression.ca/pbzip2/)
Ref:
SMP implementation of bzip2
PIGZ: Parallel GZIP - The Data Compression News Blog - c10n.info
pbzip2 (http://compression.ca/pbzip2/)
Ref:
SMP implementation of bzip2
PIGZ: Parallel GZIP - The Data Compression News Blog - c10n.info
標籤:
apps,
command_line,
linux,
ubuntu
HP MIE theme
Software Sources
HP MIE Restore Image Creator
You can install glassy-bleu-browser-skin_0.5_all.deb , glassy-bleu-theme_21_all.deb , and gnome-backgrounds-hp_0.4_all.deb files for the GlassyBleu theme
For the GDM theme, please get the ubuntu-gdm, extract it, and please edit the file because the auto-login feature doesn't work under normal Ubuntu
ref:
Linux on the HP 2133 Mini-Note: Installing the HP Linux MIE theme
Rukmal Weerawarana's Blog: How to install the HP MIE (Mobile Internet Experience) UI on Ubuntu 8.04 and 8.10
deb http://hpmini.archive.canonical.com/mie/ hardy main universe multiverse restricted
deb-src http://hpmini.archive.canonical.com/mie/ hardy main universe multiverse restricted
deb http://hpmini.archive.canonical.com/mie/ hardy-updates main universe multiverse restricted
deb-src http://hpmini.archive.canonical.com/mie/ hardy-updates main universe multiverse restricted
deb http://hpmini.archive.canonical.com/mie/ hardy-security main universe multiverse restricted
deb-src http://hpmini.archive.canonical.com/mie/ hardy-security main universe multiverse restricted
deb http://hpmini.archive.canonical.com/mie/ hardy-hpmini main universe multiverse restricted
deb-src http://hpmini.archive.canonical.com/mie/ hardy-hpmini main universe multiverse restricted
HP MIE Restore Image Creator
You can install glassy-bleu-browser-skin_0.5_all.deb , glassy-bleu-theme_21_all.deb , and gnome-backgrounds-hp_0.4_all.deb files for the GlassyBleu theme
For the GDM theme, please get the ubuntu-gdm, extract it, and please edit the file because the auto-login feature doesn't work under normal Ubuntu
ref:
Linux on the HP 2133 Mini-Note: Installing the HP Linux MIE theme
Rukmal Weerawarana's Blog: How to install the HP MIE (Mobile Internet Experience) UI on Ubuntu 8.04 and 8.10
2009年2月6日
Using Ubuntu on HP 2133
General
HP 2133 Mini-Note - Ubuntu Wiki
Doc's HP2133 Linux stuff
X11
HP-2133, Chrome9-Beta, X11 configuration file
PadLock
Ubuntu configuration for VIA padlock support - Ubuntu Forums
Bug #119294 in openssl (Ubuntu): “OpenSSL should support VIA PadLock”
SSE acceleration for libjpeg
IJG's JPEG software release 6b with x86 SIMD extension
Encrypted swap and home partition in Ubuntu 8.04 - Lars Strand
CPU - A110 Wiki
3D DriveGuard
accelerometer lis3lv02d and demo code hpfall.c
PPA for Pascal de Bruijn
http://blog.pcode.nl/2009/09/19/hp-3d-driveguard-on-ubuntu-karmic/
Audio
https://wiki.ubuntu.com/Audio/UpgradingAlsa
HP 2133 Mini-Note - Ubuntu Wiki
Doc's HP2133 Linux stuff
X11
HP-2133, Chrome9-Beta, X11 configuration file
PadLock
Ubuntu configuration for VIA padlock support - Ubuntu Forums
modprobe padlock_aes padlock_shaBug #119295 in openssh (Ubuntu): “OpenSSH should support VIA PadLock” (fixxed in Ubuntu 8.10)
modprobe via_rng
apt-get install rng-tools
set the options in /etc/default/rng-tools to: RNGDOPTIONS="--hrng=via"
added to your /etc/ssl/openssl.cnf:
openssl_conf = openssl_def
[openssl_def]
engines = openssl_engines
[openssl_engines]
padlock = padlock_engine
[padlock_engine]
default_algorithms = ALL
Bug #119294 in openssl (Ubuntu): “OpenSSL should support VIA PadLock”
sudo apt-get install build-essential fakeroot wgetVIA PadLock support for Linux
sudo apt-get build-dep openssl openssh
apt-get source openssl openssh
cd openssl-0.9.8g
wget --quiet -O - http://launchpadlibrarian.net/13798833/bug119295.patch | patch -p1
fakeroot debian/rules binary
cd ../openssh-4.7p1
wget --quiet --no-check-certificate -O - https://bugzilla.mindrot.org/attachment.cgi?id=1458 | patch -p0 -N
fakeroot debian/rules binary
SSE acceleration for libjpeg
IJG's JPEG software release 6b with x86 SIMD extension
jpegsrc-6b-x86simd-1.02.tar.gz - 881,825 bytes; UNIX-friendly formatEncrypted partition with Padlock power
Also install nasm 2 before compiling
Encrypted swap and home partition in Ubuntu 8.04 - Lars Strand
apt-get install lvm2 cryptsetup libpam-mountCPU frequency scaling
CPU - A110 Wiki
modprobe e_powersaver
----------------------------------------------------------------
CPU frequency scaling with Linux >= 2.6.25
As the CPU has the est feature flag, it supports CPU frequency scaling using the e_powersaver kernel module.
The latest 2.6.25 mainline kernel already contains the e_powersaver module which allows CPU frequency scaling on the A110.
CPU frequency scaling with Linux <= 2.6.24
There's a backport for older kernels supplied by Christian Rothländer. It's working with the Ubuntu kernel delivered with the first batch of the A110s.
3D DriveGuard
accelerometer lis3lv02d and demo code hpfall.c
PPA for Pascal de Bruijn
http://blog.pcode.nl/2009/09/19/hp-3d-driveguard-on-ubuntu-karmic/
Audio
https://wiki.ubuntu.com/Audio/UpgradingAlsa
訂閱:
文章 (Atom)