05.21.08

Debian: using apt to install a specific version

Posted in How To, Intermediate, Linux at 3:52 pm by Techie

If you’re like me, you may need to build your own packages in Debian, or perhaps have downloaded different versions of packages to install on your system. Sometimes you’d like to go the other way, though, and install an older version of a package you found in the repository, or even the same version, but a different build.

For example, let’s say you built your own version of perl, say 5.8.8-7blindedbytech1. Then, Debian finally gets the same version of perl into their repositories, say 5.8.8-7etch3. Unfortunately, doing an apt-get dist-upgrade isn’t going to install this version. This is particularly annoying if other packages have dependencies on these perl versions.

What’s one to do? Wouldn’t it be nice if you could specify which version of perl package to install? As it turns out, you can. When you do the apt-get install of the package, follow it by an equal sign (=) and the particular package version you want, e.g:

sudo apt-get install perl=5.8.8-7etch3

Obviously, this will only work if the specific version is in one of your repositories. You can do this with multiple packages, too. In fact, I had to, because perl-base was also a different version:

sudo apt-get install perl=5.8.8-7etch3 perl-base=5.8.8-7etch3

Be careful of dependencies. Don’t just blindly run these commands unless you know what you’re doing, and be sure to read the output messages, as it may have unintended effects. For instance, for me, the above command uninstalled mysql-server. Make sure you read the warnings it gives you, and you understand what they mean.

05.09.08

Windows XP Online Through Blackberry Pearl 8100 and T-Mobile

Posted in Intermediate, Windows at 5:46 pm by Techie

As I don’t always have an Internet connection, being able to get my laptop online through my cell phone (a Blackberry Pearl 8100 on T-Mobile) is quite useful. Here’s how you do it. I presume at this point you’ve already installed the Blackberry Desktop software, and can sync fine over USB.

Determine COM Ports

Right-click on “My Computer” (often found in the Start Menu), and select “Properties”. Click on the “Hardware” tab, and then the Button for “Device Manager”. Expand the section for “Ports (COM & LPT)”. You should see a couple entries here for RIM Virtual Serial Port v2 — for me these were “COM4″ and “COM5″.

Note the COM numbers for these entries. Close out.

Set Up Network Connection

Go to the “Control Panel”, and open up “Network Connections”. (If you have category view enabled, you may have to go to “Network and Internet Connections” first, before being able to select “Network Connections”. Go to “File->New Connection”, which will launch the “New Connection Wizard”. Do not do the Network Setup Wizard — that’s something else.

Click Next. Leave the option as “Connect to the Internet”, and click Next. Select “Set up my connection manually”, and click Next. Select “Connect using a dial-up modem”, and click Next.

At this point it should be asking you to select a device. Make sure to select the entry for one of the COM ports you found above. I noted above that COM ports 4 and 5 were for RIM, and here the only one showing up was COM4, so my choice is pretty clear. Select the correct one, and click Next.

For ISP name, put in whatever is meaningful to you so you know what it’s for. For instance, I called mine “T-Mobile (Blackberry)”. Click Next.

For Phone number, put in the following and click Next: *99#

For “Internet Account Information”, leave the fields blank. Leave “Use this account name and password…” checked, and uncheck the box for “Make this the default Internet connection”. Click Next. That should be the final page of the Connection Wizard, so click Finish.

This will probably pop up the “Connect T-Mobile (Blackberry)” dial-up wizard. Don’t connect yet. Close this out, because we need to make some changes to the modem first.

Go back to “Control Panel”, and go to “Phone and Modem Options”. (If you have Category View enabled, you may have to select “Printers and Other Hardware” first.) On the “Modems” tab, you should see the modem you selected above listed (e.g. “Standard Modem; highlight it and hit Properties.

This will bring up the properties window specific to that modem. On the Advanced tab, there’s a box for “Extra initialization commands”. In here, put the following:


+cgdcont=1,"IP","wap.voicestream.com"

If that doesn’t work, use the following instead:


+cgdcont=1,,"wap.voicestream.com"

OK all the way out, and launch the connection again. You can find it in the Control Panel under Network Connections (again, if you have Category View enabled, you may have to navigate into “Network and Internet Connections” first), under the Dial-up section. Alternatively you may find it under Start->Connect To on the Start Menu, if you have the new style Start Menu enabled.

Click Dial, and it should connect!

Bad Behavior has blocked 280 access attempts in the last 7 days.