Category Archives: <linux>
Notes on installing Gitorious on Ubuntu 10.10
A few notes from my experience installing Gitorious on Ubuntu Maverick 10.10. I used soundmaster’s fork of the gitorious-ubuntu-sprinkle script. I used ruby 1.8 and rubygems from the Ubuntu repository. Edit Config Files The sprinkle readme doesn’t mention it, but you need to edit the config files before running. Add your mysql password to config/database.yml and change your hostname and … Continue reading
Redmine on Ubuntu Maverick
Redmine is a project management software. There’s existing documentation on the web about installing Redmine on Ubuntu, but much of it is out of date and confusing. Redmine is in the Ubuntu repos now so the installation is really quite simple. sudo tasksel install lamp-server sudo apt-get install redmine Select sqlite for the database (redmine-sqlite is installed as a dependency … Continue reading
How to setup a SparkleShare Private Server on Ubuntu
*Feb 3, 2011: This is a work in progress… *Todo: nautilus integration not working – missing dependencies? (no ubuntu python-nautilus-dev package?) *Todo: compile a release build instead of a debug build? *Todo: build a ubuntu/debian package? SparkleShare is dropbox-like software that can sync to your own private server. The SparkleShare documentation recommends syncing to GitHub or Gitorius, but all you … Continue reading
Vim: Save and Run Shortcut
Make Vim more IDE-like by assigning F5 to save and run your current script. Just add this to your ~/.vimrc map <F5> <Esc>:w<CR>:!%:p<CR> This maps the F5 key to run two things: :w, which saves your file, and :!%:p, which will run your current script (! runs a shell command and %:p expands to the path of your current file). … Continue reading
Password-less SSH Login
ssh-copy-id moose@moosechips.com If you get ERROR: No identities found, you need to create a ssh key. (Create one without a password when prompted.) ssh-keygen -t rsa Then run ssh-copy-id again. If your remote user has a different login name, you can setup a ssh config file so it will use the right user name. Create a text file at ~/.ssh/config … Continue reading
Running Mathematica Over SSH Using Cygwin
When trying to run Mathematica over SSH using Cygwin, you will probably get some error message like ssh -Y user@host mathematica xset: bad font path element (#23), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax This is because you need to install the Mathematica fonts into Cygwin’s X … Continue reading
Install Gitweb to a Subdirectory
Reach gitweb at a subdirectory, i.e. “http://moosechips.com/gitweb”. The gitweb README and INSTALL files come with instructions on setting up access to your root web directory, but chances are you’re already using that for your homepage. Here’s the setup for installing to a subdirectory. (This worked for me with git-1.7.0.1)
Linux Font DPI Help from Mozilla
Thanks to Mozilla for providing excellent linux font DPI support. On my Gentoo setup, I added a Xft.dpi setting go my ~/.Xdefaults file. Now my fonts look normal again. :) Xft.dpi: 108 Before: After:
X and Hal on Gentoo
Instructions for installing xorg-server and hal on gentoo. I’m writing this because the gentoo documentation for X setup is very outdated. Gentoo now uses xorg 1.5 which uses hal to setup devices automatically instead of having to configure /etc/X11/xorg.conf. The Xorg 1.5 update guide might be a little helpful, but it’s missing some info and is a bit vague in … Continue reading
Intel 4965 Wireless on Gentoo
I recently configured the wireless on my X61 Tablet for Gentoo. I have a Intel 4965 AGN wireless card. lspci | grep -i wireless 03:00.0 Network Controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61) Relevant kernel options (from gentoo-sources 2.6.28-r5 kernel) Device Drivers —> [*] Network device support —> Wireless LAN —> {*} Intel Wireless Wifi … Continue reading
Bootable Gparted USB Stick
Creating a bootable usb stick with the Gparted live iso in Ubuntu. Gparted is a graphical partition editor which can resize, move, copy, create, delete your hard drive partitions. Overview: Format your usb stick to Fat16 and make it bootable using gparted. Install the gparted-live*.iso using unetbootin. (unetbootin also automatically installs the syslinux bootloader) Reinstall syslinux onto usb stick. (Gparted’s … Continue reading
grep and less with color
Add these lines to your ~/.bashrc to make colorful grep | less output. alias grep=’grep –color=always’ export LESS=’-R’
Emacs Experimentation
My experiences as a [g]vim user trying out emacs. Day 1: Emacs commands Running emacs was no problem, as it was already installed from Fedora’s repository. Reading through some emacs tutorials, I found Emacs For VI Users very helpful. Probably my most used vi commands are delete line (dd), yank line (yy), and put (p or P). Emacs confusingly uses … Continue reading
Linux: Find Motherboard Information
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 … Continue reading
Fedora: Rebuild A Source Package
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 … Continue reading