Find the manufacturer and version of your motherboard with this command:
sudo dmidecode | grep "Base Board" -A 13
Example output:
Base Board Information
Manufacturer: ASUSTeK Computer INC.
Product Name: Maximus Formula
Version: Rev 1.xx
Serial Number: XXXXXXXXXXX
Asset Tag: To Be Filled By O.E.M.
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: To Be Filled By O.E.M.
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0
Tags = dmidecode, find, information, manufacturer, motherboard
No Comments »
General instructions to rebuild a Fedora source rpm.
Note: This example uses the vlc source rpm, but it doesn’t work on my Fedora 8 system because there are problems installing dependencies, but the general commands should work on other packages
- Install build tools
su -c 'yum install yum-utils rpmdevtools'
- Download source package. Either use yumdownloader to download from an existing repository:
yumdownloader --source vlc
or download directly from a server
wget -nd ftp://ftp.pbone.net/mirror/rpm.livna.org/fedora/development/SRPMS/\
vlc-0.9.0-0.5.20080802git.lvn10.src.rpm
- Install the source package. This will unpack the source into your /$HOME/rpmbuild directory.
rpm -Uvh vlc-0.8.6i-1.lvn8.src.rpm
- Install build dependencies for the source package
su -c 'yum-builddep vlc-0.8.6i-1.lvn8.src.rpm'
- Edit the spec file
cd ~/rpmbuild/SPECS
vim vlc.spec
- Add the new source package
cd ../SOURCES
wget -nd http://download.videolan.org/pub/videolan/vlc/0.9.2/vlc-0.9.2.tar.bz2
- Build the rpm
cd ../SPECS
rpmbuild -bb vlc.spec
- Install the rpm
cd ../RPMS/x86_64
rpm -Uvh vlc-0.9.2.fc8.x86_64.rpm
References:
Building a kernel from the src rpm
Fedora rpm guide
Tags = 0.9.2, fedora, package, rebuild, recompile, rpm, rpmbuild, source, update, vlc, yum
No Comments »
Update 11-04-2008: The release version of Ubuntu 8.10 Intrepid should work out of the box, so you don’t need to do any of this. However, only the stylus works. If linuxwacom comes out with an update to use the eraser and tablet buttons, you might need to manually install the linuxwacom driver, but right now, enjoy the “it just works” philosophy. :)
Ubuntu 8.10 “Intrepid Ibis” will use Xorg 7.4’s input hotplugging, allowing auto-detection of input devices (e.g. keyboards, mice, tablets) during an X session. (Previously, input devices were only detected at the startup of an X session.)
Note that there are still a number of bugs with hotplugging:
- you must install the latest linuxwacom driver to get correct clicking
- hotplugging will only recognize the stylus events (so no eraser or express buttons)
- unplugging the tablet causes X to crash.
Edit 9-20-08: There is a line in the linuxwacom source you need to edit to fix this (see step 4 of Manual Installation below). [linuxwacom post] Edit 11-04-08: Intrepid updated the linuxwacom driver that ships with Intrepid, so you don’t need to install the updated linuxwacom driver.
Installing LinuxWacom driver in Intrepid
(based off the Hardy linuxwacom install thread, here. Tested on Intrepid alpha 6 LiveCD)
Easy Method:
- Download my install_linuxwacom script
- Run the script
chmod +x install_linuxwacom
./install_linuxwacom
- Enjoy!
Manual Installation Steps:
- Install required packages
sudo apt-get update
sudo apt-get install linux-headers-$(uname -r) build-essential x11proto-core-dev libxau-dev libxdmcp-dev x11proto-input-dev x11proto-kb-dev xtrans-dev libx11-dev x11proto-xext-dev libxext-dev libxi-dev linux-libc-dev libc6-dev libncurses5-dev xserver-xorg-dev tk-dev tcl-dev -y
- Download latest linuxwacom-dev package from linuxwacom (0.8.1-4 as of this writing)
wget -nd http://prdownloads.sourceforge.net/linuxwacom/
linuxwacom-0.8.1-4.tar.bz2
- Extract the source
tar xjvf linuxwacom-0.8.1-4.tar.bz2
cd linuxwacom-0.8.1-4
- To fix the X crashing when unplugging the tablet, edit line 381 of src/xdrv/wcmConfig.c replacing WCM_UNINIT_CALLED with WCM_XORG_XSERVER_1_4
sed -i -e '381s/WCM_UNINIT_CALLED/WCM_XORG_XSERVER_1_4/' src/xdrv/wcmConfig.c
- Compile the driver
./configure --enable-wacom
make
sudo make install
- (Optional) You can test the kernel module before installing it. Plug in your tablet and see if it works correctly after executing these commands.
sudo rmmod wacom
sudo insmod src/2.6.26/wacom.ko
If it doesn’t work, you can reload the original driver. (Or just reboot your computer)
sudo rmmod wacom
sudo modprobe wacom
- Install the kernel module (and backup the original). (Note: The 2.6.26 module works with Intrepid’s 2.6.27 kernel)
cp /lib/modules/$(uname -r)/kernel/drivers/input/tablet/wacom.ko wacom.ko.$(uname -r)
sudo cp src/2.6.26/wacom.ko /lib/modules/$(uname -r)/kernel/drivers/input/tablet/wacom.ko
- Reload the kernel module with the new version
sudo rmmod wacom
sudo modprobe wacom
- Enjoy!
Read the rest of this entry »
Tags = 10-wacom.fdi, 2.6.26, 2.6.27, 8.10, driver, fdi, hal, hotplug, howto, input, install, intrepid, kernel, linuxwacom, module, tablet, ubuntu, wacom, wacom.fdi, xorg, xorg.conf, xserver
1 Comment »
# install deb build tools
sudo apt-get install build-essential fakeroot dpkg-dev devscripts
# download the source code
# install other packages needed to build
sudo apt-get build-dep package
cd package
# update the version in the changelog
# make any changes to the source
# e.g. vim debian/rules
# then build the new package
dpkg-buildpackage -rfakeroot -uc -b
#install the package
cd ..
sudo dpkg -i package.deb
Tags = deb, dpkg-buildpackage, package, rebuild, recompile, source, ubuntu
No Comments »