whyrl: (geeky)
I'm currently installing Ubuntu 9.10 on a desktop at home because I'm sick of using FreeBSD as a desktop (specifically, the headache that is the ports tree). I'm going to make a note here of any gotchas that I encounter during my transition.

I've been using JMK's Neep Alt font in gvim. I find it a pleasing font for programming. This is a bitmap font, which Ubuntu doesn't seem to support out of the box.

First, install the software package:

$ sudo apt-get install xfonts-jmk

Then you need to delete the following file:

$ sudo rm /etc/fonts/conf.d/70-no-bitmaps.conf

Finally, rebuild the font cache:

$ sudo fc-cache -f -v

Source: http://ubuntuforums.org/showthread.php?t=792471
whyrl: (mad scientist)
Pulling this info out into a separate entry. This is how to set up the iPhone to enable data access on the US T-Mobile network.

Settings->General->Network

Enable 3G: off
Data Roaming: on
T-Mobile recommends turning WiFi off, but I have had no problems with WiFi enabled.

Settings->General->Network->Cellular Data Network

Cellular Data
APN: epc.tmobile.com
Username: (blank)
Password: (blank)

MMS
APN: epc.tmobile.com
Username: (blank)
Password: (blank)
MMSC: mms.msg.eng.t-mobile.com/mms/wapenc
MMS Proxy: (blank)
MMS Max Message Size: (blank)
MMS UA Prof URL: (blank)


Note: This requires an unlocked iPhone, obviously. Ask your carrier about getting your phone unlocked. It took me about two weeks with Optus in Australia and they did it at no charge.
whyrl: (geeky)
1. Download HoeKey.
2. Add this to the config:

=Rem|-- iTunes --

176=Msg|iTunes|793|0|720896 ; Next
177=Msg|iTunes|793|0|786432 ; Prev
179=Msg|iTunes|793|0|917504 ; Play/Pause
178=Msg|iTunes|793|0|851968 ; Stop
whyrl: (geeky)
Cygwin is a great toolkit to have on a Windows machine. One of the biggest problems with it though is that it uses the awful Windows Command Prompt terminal by default. There are a couple of ways around this such as installing an X terminal emulator or ssh/telnet to the localhost. Here I will explain how to set it up nicely with PuTTY - or more accurately PuTTYcyg.

Mark Edgar wrote a patch for PuTTY called PuTTYcyg that makes it work as a terminal emulator for Cygwin. I'd been using it for several months at work and it cohabits quite peacefully with PuTTY. It is not an ideal solution and I'd much prefer it if the functionality was included in the official PuTTY source but since I'll only use the binary for connecting to the localhost I guess security isn't that big a deal.

1. Download PuTTYcyg from here and install puttycyg.exe and cthelper.exe (I installed them to the same folder as PuTTY, e.g. "C:\Program Files\PuTTY\").
2. Create a shortcut to puttycyg.exe with the command line arguments "-cygterm -" in the Target: box, e.g. "C:\Program Files\PuTTY\puttycyg.exe" -cygterm -
This will start a Cygwin terminal using your default shell (specified in /etc/login).

That's pretty much it! No more horrible Command Prompt with Cygwin.
(Oh, you might want to change the icon of that shortcut to Cygwin's icon - there should be a cygwin.ico file in Cygwin's root install directory.)

I find it useful when I right-click on a directory to have a target called "Cygwin Prompt Here" that, as the name implies, opens a Cygwin terminal in that directory. Here's what I did:

1. Start the Registry Editor (regedit).
2. Browse to HKEY_CLASSES_ROOT\Directory\shell\
3. Create a new key called "Cygwin Prompt".
4. Modify the default value of Cygwin Prompt to "Cygwin &Prompt Here".
5. Create a new key under Cygwin Prompt called "command".
6. Modify the default value of command to (include the quotes and modify the path to puttycyg.exe as appropriate): "C:\Program Files\PuTTY\puttycyg.exe" -cygterm bash --rcfile ~/.bash_login -i
That's it! You should be able to right-click a directory and get a shell in that directory.

Here's a summary of what you should have:
HKEY_CLASSES_ROOT\Directory\shell\Cygwin Prompt
	(Default)	REG_SZ		Cygwin &Prompt Here
HKEY_CLASSES_ROOT\Directory\shell\Cygwin Prompt\command
	(Default)	REG_SZ		"C:\Program Files\PuTTY\puttycyg.exe" -cygterm bash --rcfile ~/.bash_login -i

November 2016

S M T W T F S
  12 345
6789101112
13141516171819
20212223242526
27282930   

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 20th, 2017 10:47 pm
Powered by Dreamwidth Studios