Displaying articles with tag howto
Posted by hank,
Sat Mar 22 12:27:00 UTC 2008
I wanted to speed up package downloading to set up my apt-proxy today in Gutsy, so I decided to find the correct way to find the fastest Ubuntu mirror. It’s actually done like so (stolen from here):
- Click on “System | Administration | Software Sources”
- Under “Ubuntu Sotware” tab, choose “Other” in the “Download from” list box.
- Choose your country and then click “Select Best Server” and choose the recommendation.
This automatically updates the /etc/apt/sources.lst file. The same utility can also be reached from the Synaptic Package Manager, through “Settings | Repositories”.
In action:

It says mirrors.rit.edu is the best one for me. Makes sense.
Tags: howto
Posted by hank,
Sun Nov 11 02:07:00 UTC 2007
Notice that I can do a -g for a progess bar! Yay! Now for an action shot:
hank@rofl:~/tmp/coreutils-6.7$ cp -g coreutils_6.7-1_i386.deb /nexus/mod0/www/deb/binary/
coreutils_6.7-1_i386.deb | 48% | 3.2 MiB | 118 KiB/s | ETA
Continue Reading
Tags: howto
Posted by hank,
Sun Nov 11 00:42:00 UTC 2007
Installing the package
Most people will want this. Add the following to your /etc/apt/sources.list at the bottom:
# Hankzilla
deb http://modzer0.cs.uaf.edu/~hardwarehank/deb binary/
Then run a sudo apt-get update. Then install it with sudo apt-get install wxwaste. Run it with waste.
Building from source
- Get it
- Install some dependencies:
# Checkinstall is optional, but it makes it nice since removal is just thru apt.
sudo apt-get install wx-common libwxgtk2.6-dev wx2.6-headers checkinstall
- Unpack the source, then
./configure && make && sudo checkinstall
- Add a nice menu listing:
# Put this in /usr/share/applications/waste.desktop
[Desktop Entry]
Type=Application
Version=1.5b4
Name=WASTE
GenericName=Secure Filesharing
Comment=Facilitates encrypted filesharing between trusted clients
Icon=gnome-term-linux.png
TryExec=waste
Exec=waste
Terminal=false
Categories=GNOME;Application;Network;
Tags: howto
Posted by hank,
Sat Oct 06 11:20:00 UTC 2007
So, last month sometime, BrainSlayer got DD-WRT working on version 8 of the WRT54G. Now this was great news to me when I read it since I’ve been wanting to get rid of the crappy LinkSys management from the beginning. Some of the procedure worked, and some of it didn’t for me.
Do not try this if you don’t know exactly what you’re getting into.
Continue Reading
Tags: howto
Posted by hank,
Sat Sep 15 18:17:00 UTC 2007
So, earlier this year, I decided it would be cool to mirror Wikipedia. So, I successfully set up a local copy on my system, and it’s been just sitting there ever since. But lately, I’ve been interested in fulltext indexing offered by various indexing engines, and Sphinx has looked especially tasty. So, I figured I’d sit down and try it today.
I pointed it at my 16GB of Wikipedia text in my MySQL database.
Continue Reading
Tags: howto
Posted by hank,
Fri Apr 20 19:35:00 UTC 2007
I got mad at gnome-terminal today. It wasn’t opening links. So, as usual, GNOME hid the setting away somewhere completely insane.
.gconf/desktop/gnome/url-handlers/http
Why isn’t there just a .gnome-terminalrc? How hard would that be?
Tags: howto
Posted by hank,
Wed Mar 28 14:05:00 UTC 2007
So I found that my super key was not a modifier key in GNOME today, but rather a standalone key. THis was unacceptable. To change it, I did this:
System -> Preferences -> Keyboard -> Layout Options -> Alt/Win Key Behavior -> Super is mapped to Win-Keys
Now, I can change my shortcuts to not be stupid.
Tags: howto
Posted by hank,
Thu Mar 22 05:20:00 UTC 2007
Wow. Just wow. After being frustrated for hours, I found this post on why Ubuntu Feisty Fawn HERD 5 was completely ignoring that I had any hard drives during initramfs. I kept getting to the USB HID part (which happens after the ‘Waiting for root filesystem…’ message) and hard locking for about 5 minutes before dropping to the initramfs shell. Here’s how to fix this absolutely stupid and negligent problem:
- Get your LiveCD and go into rescue mode (I used the alternate install CD, so YMMV with the normal one).
- Answer all the questions until it drops you to a shell. This shell sucks, so hit ALT-F2 to get to a real terminal. Hit
ENTER and you’re there.
- Type
chroot target/ and you’ll be in your root partition. Now, type bash. Congratulations! A useable terminal.
- Edit with your editor of choice the file
/etc/initramfs-tools/modules and jam in all this crap:
libata
pata_jmicron
ata_piix
ahci
ata_generic
- Now, mount up your /boot partition if you have it separate from your root. If it’s on your root partition (
ls /boot should let you know), then skip this step. I used mount /dev/sda5 /boot.
- type
update-initramfs -u -k 2.6.20-12-generic, replacing the last bit with your actual kernel version. It will regenerate your initramfs file for the given kernel, which now will contain the modules listed in the file you just edited. Do this for all desired kernels.
- Reboot into grub, and select one of the kernels you changed. Try to boot it with its default kernel line. I used a line with a UUID and it worked fine. YMMV on this too. If it still breaks, try giving it a kernel line with
root=/dev/sda5 or whatever partition your boot is on.
I’m really glad this worked, and it better be fixed in Feisty REALLY soon. Otherwise, I’m going to lose a lot of faith in Ubuntu. Also, why doesn’t the graphical installer support RAID partitioning? Lame.
Tags: howto
Posted by hank,
Sun Feb 25 19:29:00 UTC 2007
So, I figured I might as well provide a quick tutorial on how to make Mephisto Plugins currently. Many of the old plugins are broken, so there needs to be a resurgence of plugin development. Here’s the basic structure of the Tag Cloud plugin:
mephisto_tag_cloud
- init.rb README
- lib
- mephisto_plugins
- tag_cloud.rb
As you can see, the structure is very simple. Here’s my code for init.rb
Liquid::Template.register_filter(MephistoPlugins::TagCloud)
That’s it! No require or anything! Next, I edited lib/mephisto_plugins/tag_cloud.rb:
module MephistoPlugins
module TagCloud
def size_tag(tag, largest = 2)
size = (Tag.find_by_name(tag).taggings(true).length + 18).to_f / 18
size = largest if size > largest
"<span style='font-size: #{size}em'><a href='/tags/#{tag}'>#{tag}</a></span>"
end
end
end
Holy crap that barely any code at all! So, the moral of the story is that it’s very easy to make the plugins once you figure out what to do.
Tags: howto