Linux Logical Volume Manager Walkthrough
For an excellent walkthrough of LVM, check out this link on Stephen Foskett’s blog: https://blog.fosketts.net/guides/walkthrough-logical-volume-manager-linux/
For an excellent walkthrough of LVM, check out this link on Stephen Foskett’s blog: https://blog.fosketts.net/guides/walkthrough-logical-volume-manager-linux/
From Phil Sung:
Another Ubuntu release, another set of X.org shakeups.
Some things in X changed in Lucid (xorg 1:7.5+5 and higher), breaking existing Thinkpad TrackPoint scrolling configurations that modify files in /etc/hal/fdi/policy (like those you may have seen in this previous post). You can use gpointing-device-settings to apply the same policy, but I found that even that stops working after a suspend/resume cycle.
Samson Yeung pointed out to me the following fix which can be applied on Ubuntu Lucid/10.04:
Create a new file /usr/lib/X11/xorg.conf.d/20-thinkpad.conf with the following contents:
Section “InputClass”
Identifier “Trackpoint Wheel Emulation”
MatchProduct “TrackPoint”
MatchDevicePath “/dev/input/event*”
Driver “evdev”
Option “EmulateWheel” “true”
Option “EmulateWheelButton” “2”
Option “Emulate3Buttons” “false”
Option “XAxisMapping” “6 7”
Option “YAxisMapping” “4 5”
EndSection
Then restart X.
The configuration above works for both Thinkpad laptops with TrackPoints and the Thinkpad TrackPoint keyboard.
Not sure why, but Ruby and the MySQL 5.1 client library don’t play well together.
Fortunately the the solution is simple: download an older MySQL client library from (libmySQL.dll) or (libmySQL.dll) and copy it to your Rubybin folder.
This worked for me with: Windows 7, MySQL 5.1.47, Ruby 1.9.1 and rubygems: sequel 3.13.0, mysql (2.8.1 x86-mingw32).
This from Xen wiki:
These messages are from a glibc that was built with negative GS register offsets. Xen can run with negative GS register references, but it must “trap and emulate” this condition, which is relatively resource intensive, and quite slow.
If you don’t have a patched glibc, see the no-tls-direct-seg-refs patch mentioned in XenSpecificGlibc.
Most newer distributions are shipped with a “-mno-tls-direct-seg-refs” compiled glibc, but it might not be enabled by default.
Some newer distributions like the RHEL5 Beta1/Beta2 require the ld.so.conf.d trick below to refer to the patched glibc.
Some slightly older distributions like Ubuntu Dapper can be fixed with a simple rebuild of glibc: (see UbuntuDapperHowTo).
echo ‘hwcap 0 nosegneg’ > /etc/ld.so.conf.d/libc6-xen.conf && ldconfig
Reference Link: https://lists.xensource.com/archives/html/xen-users/2006-11/msg00026.html and https://www.mail-archive.com/[email protected]/msg00041.html
To ride the bleeding edge with Firefox, check out this site:
https://www.ubuntu-inside.me/2009/05/daily-firefox-35-36-repository-for.html
Summary of ubuntu-inside page: The released and nightly versions of firefox can be installed side-by-side, although only one can run at a time. The repository has 2 firefox packages: the usual branded Firefox package, called firefox-3.5 or 3.6, and the other is abrowser-3.5 or 3.6 which refers to an unbranded build of firefox. Install either one.
Be warned! This is DAILY mozila repository.
Edit sources.list to add the appropriate repository, depending on your Ubuntu release :
$sudo gedit /etc/apt/sources.list
And add one of them which matches with your Ubuntu you are using :
For Ubuntu Karmic Koala :
deb https://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic main
deb-src https://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic main
For Ubuntu Jaunty :
deb https://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main
deb-src https://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main
For Ubuntu Intrepid :
deb https://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu intrepid main
deb-src https://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu intrepid main
For Ubuntu Hardy :
deb https://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu hardy main
deb-src https://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu hardy main
While binbash at ubuntu-inside.me describes explains how to install public keys using a script here, I was able to get away with:
$ gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys EF4186FE247510BE
$ gpg --export --armor EF4186FE247510BE | sudo apt-key add -
Then update your index :
$sudo apt-get update
Install Firefox 3.6 you can install 3.6 or abrowser instead of firefox, that is your choice) :
$sudo apt-get install firefox-3.6 firefox-3.6-gnome-support
To run from command line: firefox-3.6
Or from menu: Applications > Internet > Namoroka Web Browser.
To use as default firefox, create link from firefox-3.6 to firefox
Problem installing Ant under Ubuntu Karmic Koala (9.10): apt insists on installing gcj even if Sun JRE is already present.
Workaround for karmic, for those unfamiliar with apt. In the console, type:
sudo apt-get install ant ant-gcj- ant-optional-gcj- gcj-4.4-base- libgcj-common-
I was surprised to see Ruby doesn’t have this handy function:
module Enumerable
def dups
inject({}) {|h,v| h[v]=h[v].to_i+1; h}.reject{|k,v| v==1}.keys
end
end
I like JFS: better performance than ext3 and more reliable than reiserfs. However installation under CentOS is awkward, at best. Here’s one of the better install guides I found. Quoted from https://www.norlin.se/blog/2006/12/28/centos-and-jfs/
JFS (Journaled File System) is a file system from IBM. I have always really liked this file system since I first came across it, working with AIX, but I have never used it in a Linux environment until now. When you read comparisons of different file systems it seems JFS always comes out in a top position. For Linux it is sometimes beaten by XFS, but I think that is due to the fact that XFS is more widely used on Linux.
For some reason RedHat seems to have taken out support for JFS in RHES, but it is available for CentOS using the kernel in the CentosPlus repository. The process to upgrade an existing Centos installation to support JFS is simply to update the kernel with the kernel in centosplus and install jfsutils:
yum –enablerepo=centosplus install kernel-smp
yum –enablerepo=centosplus install kernel-smp-devel
yum install jfsutils
Then you probably need to change the “default” row in grub.conf and reboot to start using the new kernel with JFS support.
To create a JFS file system on a new partition use fdisk and mkfs -t jfs.
I think you need to stick to ext3 for the root and boot file systems though and there is no path (at least that I know of) for migrating an existing ext3 file system to JFS “in place”.
Quoted from Jay Fields blog:
Up until a few years ago I’d never done any type of public speaking. I’m outspoken among friends, but generally shy around strangers. However, some opportunities presented themselves and I decided to take the leap into the world of presenting. I thought it might be helpful to document some lessons I’ve learned. If you decide to take the leap into presenting, I hope these ideas make your journey a bit easier than mine.
Almost everything I learned I got from Neal Ford, Jim Webber, and Dan North. Thanks for the ideas, gentlemen. If I left anything out, it would be cool to see additional lessons that you’ve learned throughout the years.
Update:
Steve Vinoski said…
I’d add the following:
While installing go, configuring vim syntax took longer than it should – would have been easier if I had known the following:
mkdir ~/.vim/ftdetect and ~/.vim/syntax if they don’t exist
vi ~/.vim/ftdetect/go.vim
containing:
au BufRead,BufNewFile *.go set filetype=go
copy go.vim to $GOROOT/misc/vim/go.vim to ~/.vim/syntax/
And of course, make sure you are running vim-enhanced and not vim-tiny, as tiny doesn’t support syntax highlighting.
Recent Comments