Archive for the ‘Internet’ Category

Creative Labs Outrages Windows Vista Users

Creative Labs is causing a stir among open-source developers and Windows Vista users alike. Apparently there have been a lot of driver issues happening exclusively within Windows Vista with many Sound Blaster cards made by Creative Labs. In response to this, many Vista users have resorted to a user modified (hacked) version of Creative Labs’ set of Vista drivers, which enable and fix many flaws with the company sanctioned drivers.

The sound card manufacturers response to this act has caused an uproar, as it appears they do not want users to modify the drivers in such a way as to make them…what’s the word?….FUNCTIONAL!?

Responses from users have varied…

Here’s a great link if you would like to read more about all this in great detail.

Monday, March 31st, 2008

How to setup Internet Connections in Ubuntu

This blog is divided into four parts:

  1. Setting up your wired Internet Connection.
  2. Troubleshooting wired Connections.
  3. Setting up your wireless adapter.
  4. Installing Firestarter Firewall.

Let’s get started with the first topic.

Internet Connection Setup in Ubuntu (Wired)

Before I go into this detailed technical babble, I want to go over a basic check list for connectivity to the Internet.

  • Cable/DSL modem is powered on and is authenticated with your ISP (meaning, the “Cable” or “DSL” light on the front is on solid, and you have a good connection to your ISP).
  • Your cable modem is directly attached to your PC Ethernet port via a Cat5 Ethernet cable. If you have more than one PC in your house and you own a router see the next item:
  • Your Cable/DSL modem is attached to your router’s up link port via a Cat5 cable, and your PC is attached to one of the routers down link ports.
  • Once again: DOUBLE CHECK YOUR PHYSICAL LAYER and make sure everything is correctly connected.

Kind of like this:

The above is the standard connection scheme of a home network. If you have done the above, shoot for the moon and try to open Firefox and visit www.google.com. If it says the page can’t be displayed, try clicking (inside of Firefox) Edit>Preferences and then select the Advanced catagory at the top-far-right, and then click the Network tab (see below).

From there, click on the Settings button within the Connection zone of the window. This window will then appear:

From here, make sure the “Auto-Detect Proxy Settings” radio button is selected (as above). Then hit OK.

Now, close Firefox, restart it and attempt to visit www.google.com again. If it still doesn’t work, read below to troubleshoot your connection:

Connection Troubleshooting
(skip if you’re not having any problems)

Typical Internet users have to have the following equipment in order to get access to the Internet:

  1. A modem (Could be dial up, could be DSL, could be cable. All three perform the same basic function: Modulate and demodulate data as it is sent to and received from your Internet Service Provider, as well as assign you one single IP address).
  2. An Ethernet Adapter.
  3. A Router (required if you have more than one computer in the house and you want them to access the Internet simultaneously).

Another networking device that is similar to a router, but inadequate for Internet connection management between more than one computer, is a Hub. Hubs are devices that do absolutely no routing of traffic with IP address, but instead, can only route traffic based on MAC addresses. Hubs were originally designed for LAN networks that did not need Internet access; only shared access between local, in-house computers. Hubs are also bad for security reasons, since they are nothing more than repeaters that echo all traffic out of every port on the device.

Basic Internet connectivity requires IP address routing capability (a router, in other words), as well as default gateway and DNS addresses to either be known in advanced, or (much more often) auto-configured by the modem/router using DHCP. In Ubuntu, DHCP is enabled on all Ethernet devices by default. This means that when you turn your computer on, it should ask the router (or cable/DSL modem) “What is my IP address, subnet mask, and default gateway supposed to be?” And the router replies and assigns the client PC an unused IP address along with the rest of the requested information. In this way, multiple computers on a LAN can be dynamically assigned IP addresses by the router as they are needed.

So the first thing you should check is if your computer is being assigned an IP address by the router at all. A quick way to do this is to open Applications>Accessories>Terminal, and once it is open, type in “ifconfig” (which is short for Interface Config). The readout will look similar to this:

In the above screenshot, you’ll see interface names listed down the left side (in this case, there are only two shown: eth0 and lo — which stands for “loopback”). These names vary depending on the type of networking device you are using. Another example: if you had more than one Ethernet adapter in your computer, you would likely see the second one listed here as “eth1″.

To the right of “eth0″ we see a lot of information written out for us. The “inet addr:” is your Local IP address. (In the above example, the IP address assigned to the computer is 192.168.73.129). If you have an address here, then that means your router/modem properly assigned you an address while booting your PC. If you don’t see an ip address here, you can attempt to force your router to assign you one by typing in “dhcpcd eth0″ and pressing enter.  (Note: dhcpcd is not installed by default.  To installed it from terminal, type “sudo apt-get install dhcpcd”).

An alternative place to check and see if you are being assigned an IP address is System>Administration>Network Tools applet:

Unlike the ifconfig command, you can only view the IP addressing information for one network device at a time in here. And other than that, you can’t do much here when it comes to setting up your device.

The other place to check your network settings is in System>Administrator>Network. In here, you should select your Ethernet device and make sure it is in “Roaming Mode”, which places the device into DHCP mode.

If you’re still not able to get an IP address assigned to your networking interface then the cause might be a bad cable, the modem/router may need to be reset or your network interface is broken or unsupported (rare). E-mail me if you are still having trouble.

Setting up a wireless adapter

Wireless adapters in the world of Linux have a history of incompatibility looming over them that still makes people hesitant to bother even trying Linux out because it’s thought the probability of their wireless adapter working out of the box is low. That presumption is gradually moving further and further away from the truth, and thanks to Ubuntu’s Restricted Drivers Manager, it’s moving by leaps and bounds.

For starts, check your Update Manager to ensure your system is running with the latest set of drivers and kernel headers, as well as updated software. You can do this by running System>Administrator>Update Manager. The next thing you’ll want to do is check System>Administrator>Restricted Drivers Manager to see if your wireless device uses proprietary binary drivers that need to be enabled. That might sound like a bunch of Greek, but after you open Restricted Drivers Manager, all you have to do is check off any un-checked items, and restart your computer. In most cases your device will work instantly upon reboot.

The next step to getting your wireless device connected to a wireless network is to tell it which one you want to connect to. A program that makes this simple is called WiFi Radar and it allows you to browse the airwaves for nearby access points and authenticate with them if you have the proper encryption key.

The fastest way to install Wifi Radar is to open a Terminal window and type in the following:

  • sudo apt-get install wifi-radar

 

You can now open WiFi Radar by clicking Applications>Internet>WiFi Radar.

 

Once you have WiFi Radar loaded, all you have to do select the WiFi Network you would like to connect to from a list of detected networks, click connect, and then type in any necessary WEP/WPA encryption passwords. I would strongly recommend you configure your router to use WPA encryption, as WEP is an old, obsolete encryption method which can be hacked in a matter of minutes. WPA is much stronger.

SPECIAL NOTE ON WIRELESS LAPTOPS: If you have a laptop with a wireless adapter built in, check your BIOS settings to make sure the device is enabled when the computer is first turned on, and that the ability to switch it on and off can be done by the operating system, and not by the user. A friend of mine once brought me a Dell Dimensions 1300 and we couldn’t figure out why his wireless adapter was being detected, but no wireless networks were being displayed for us to select from. I was stumped when I first came across this problem, but after changing the BIOS settings as noted above, I had no problems with it after that. In most cases, wireless devices on some laptops can be controlled by what’s called a soft-switch, usually a keyboard combination like Functionkey-F2, a media button or a physical switch to enable and disable the card.

I can’t go into much detail about setting up your wireless router, but I can give you a check list of things to do to help you set it up and secure it. Configuring these settings into your router will be up to you, so consult with the manual of your router to find out how you can configure it manually. In most cases, you have to type “192.168.1.1″ or a similar IP address into the address bar in a web browser like Firefox, and then enter the default Admin password.

Here are some tips to keep in mind when setting up your wireless network:

  • Use WPA encryption if possible, and not WEP.
  • Consider adding MAC address filters to prevent unwanted users from attaching to your router.
  • Once you have your wireless adapter configured to connect to your wireless network correctly, disable ESSID broadcasting.
  • Change the routers Administrator password. For added security, make it something different from your WPA encryption password.
  • Write your WPA and Admin passwords down on a post-it note and stick it to the bottom of your router. (This sounds self-defeating in terms of security, but if a person can physically touch your router and you don’t want them messing with it, you should find a better place to put it. Because all they have to do to give you a headache is press the reset button).

Installing and Running Firestarter Firewall Software

Firestarter is an effective, lightweight and easy to use firewall administration program that allows you to monitor active connections between your computer and others, set access rules and otherwise help make your system more secure. Firestarter also allows you to easily setup Internet Connection Sharing if you have multiple networking devices available.

To install Firestarter, type the following into terminal:

  • sudo apt-get install firestarter

Once installed, you can find this application in your System>Administration menu. The program has documentation located here, including a simple introductory tutorial.  To get it to run when you boot, click System>Preferences>Session. Click on the Add button, then in the “command” line, type “firestarter” all lower-case, and you should also name it firestarter as well. Once you have those two fields populated, click ok, and that’s it!

As always, drop me a comment or e-mail if you have questions or feedback.

Tomorrow, I’ll show you how to edit your Grub boot menu so you can change your default OS!

Saturday, March 8th, 2008

The Best Video I’ve Seen Explaining Net Neutrality


If you like the above video, you may wish to read an older blog post of mine: “What if George Orwell had written about Net Neutrality?

Wednesday, March 5th, 2008

NIN Shocks Internet with 36 Track Instrumental

If you like Nine Inch Nails, click this link before reading any further (so you can listen to the album right now while you read a little about it from me).

 

I’ve been on a pretty good streak writing blogs about Ubuntu Linux lately, but now Trent Reznor of Nine Inch Nails went and released a new album by surprise. And I say surprise because not even one track of it was being pirated on the Internet before its official release date. Hey, I don’t know about you but I’m impressed by that. In most cases, new CD’s are pirated weeks in advanced by some Joe Shmoe delivery guy with a box cutter and audio ripping software, the files ending up in bittorrent swarms and spoiling the album later on. Perhaps not necessarily spoiling album sales per say, but spoiling it nonetheless.

Nine Inch Nails recently left Interscope Records; Trent Reznor choosing to avoid the red tape of signing any more contracts with another label went solo. Since that time, www.nin.com has added a new remix section to the website, where you can download multi-track versions of NIN songs and remix them to your hearts content, and then upload your mixes to share with the world online. This brand new 36 Instrumental release, entitled Ghosts I-IV, is being distributed under the Creative Commons License, or what some might call “Copyleft.” In short, you are free to copy and distribute the music, remix the music and publish, but only for non-commercial purposes. Because sharing is caring.

I could go on about all the cool little things Reznor had done to piss off his ex-record label (like dropping USB keys containing unreleased tracks into bathrooms at venues where Nine Inch Nails performed live; see: viral marketing). But I’d rather like to say more about the uniqueness in the way Trent chose to distribute and sell this latest album. For comparison, I’d like to criticize Radiohead’s In Rainbows.

In Rainbows was released on the Internet… or at least the first 10 tracks of it, as the physical CD release of it contained an additional 8 more and didn’t come out till a later date. In Rainbows was released for download, at a price of “Whatever you think it’s worth,” letting the fan choose their own price tag for the download. I remember downloading In Rainbows for nothing, and I’m glad I did. I like Radiohead (really!), but had I known in advanced that the Internet release wasn’t actually the whole thing, or that the download was in 160 Kbps MP3 format (mediocre quality), I’d probably wouldn’t have wasted my time waiting for their servers to come back online after the flood of downloads caused them to crash.

Trent Reznor, in the unique position of being a well known musician and also not being slave to a contract, decided to do his first truly solo release just a little differently. And I like the way it was done:

  • Free: Download the first 9 tracks
  • $5: Download all tracks in either Lossless FLAC, Apple Lossless or 320 Kbps MP3
  • $10: Download all tracks as above, and get 2 CD digipack with booklet (shipping in April)
  • Element of Surprise!

Now that’s a deal! And a rather clever business model.

There were some more expensive deluxe packages available, including a classy $300 package (above) with Trent Reznor’s handwritten signature (limited to 2500 units). So there’s something for everybody.  You might not like industrial rock music (or whatever they’re labeling the genre these days), but you shouldn’t have any problem appreciating this business model. It’s genius!

Tuesday, March 4th, 2008

Six things to do after you install Ubuntu

UPDATE:  Here’s a better list.  Check it out!

 

So you went to Ubuntu.com, downloaded the latest Ubuntu Live CD ISO file from their website and burned it to a CD. You booted from that CD, waited for the desktop to appear, and double clicked on the Install icon. 40 minutes later, your hard drive is partitioned and ready to boot Ubuntu for the first time. Congratulations!

But now what?!

As you might have noticed, the desktop and software installed with Ubuntu by default is a bit bland. I’ve written the following guide for two reasons:

  • To make installing some popular software a breeze.
  • To expose you to different ways software can be installed in Ubuntu (a.k.a., “get your learn on.”)

So we’re going to jazz up our Ubuntu and learn about installing software by doing the following:

  1. Running Update Manager.
  2. Install Flash, Java, Windows Media Codecs, MS fonts in 4 clicks!
  3. Install Compiz Fusion’s Advanced Settings Manager with one more click.
  4. Reveal Archive Manager in the Accessories menu.
  5. Install Phatch from a *.deb file.
  6. Bonus Challenge: Install Google Earth using Terminal

Yeah! We want something more like the above screenshot. And most important of all: we want to get all of this stuff installed with ease. I said EASE! As in ridiculously simple to do. So lets get started!

1.) Run Update Manager
Difficultly: Very Easy

  • Tip: To make the rest of this go faster, only pay attention to the bulleted text in bold. Like this right here. [/ Robert DeNiro]

The reason I have listed this first is simple: Typically, Ubuntu ISO images are a tad bit older than the current distribution. Therefore on a fresh install your Linux Kernel is likely out of date along with a lot of other software, and as a result your system may be vulnerable or may not be detecting all of the hardware in your computer. If this is a fresh install, you probably have at least 200 MB worth of updates you will be asked to download and install. If you are not having any hardware compatibility issues right now (as in: everything appears to be working correctly), then you can do this step last (since installing that many updates can take some time).

Running Update manager is about as easy as sitting on your hands, since it automatically checks for updates each time you turn your computer on. However, you can force this process to occur sooner by running it manually:

  • Click System>Administration>Update Manager
  • Click on the “Check” button to check for updates

If there are updates available, you simply click “Install” to install them. Piece of cake.

*Note: If you’re still having hardware issues after installing all of your updates, you should check in System>Administration>Restricted Drivers Manager to see if there are any devices that need to be enabled.

2.) Install Flash, Java, Win32 Video Codecs, DVD playback (and more) in just four clicks!
Difficultly: Very Easy

Did you think installing all that software is going to take you a half hour? With Ubuntu, installing software is very simple. To get started, do the following:

  • Click Applications>Add/Remove…

Now that you have the Add/Remove Software app open, do the following:

  • Change the “Show:” drop menu in the upper right corner to “All Available Applications”
  • Search for the word “restricted” while the “All” software category is highlighted (should already be by default, as shown below):

  • Once the search returns its results, check off the box next to “Ubuntu Restricted Extras”
  • Sit tight, and don’t click the Apply Changes button just yet…

Ok, we’re half way done. That probably took you… a minute? Wipe that sweat off your brow, we got Compiz Advanced Settings Manager to install next.

*Notice: It has been brought to my attention that the DVD decoder included with the above mentioned Ubuntu Restricted Extra’s package is inadequate for playback of encrypted DVD’s (the kind you buy from the store). If you encounter such problems with DVD playback, this guide will show you how to install the libdvdcss2 package. Also, you may have heard a rumor that installing this package is illegal. If someone tells you this, refer them to 17 U.S.C. Sec. 1201(f). The binaries to crack the encryption are not illegal if you have a license to the content. (i.e., if you have a legit DVD, you have license to watch it.) After all, the content must be decrypted in order to make the content usable.

3.) Install Compiz Advanced Settings manager
Difficultly: Very Easy

Compiz Fusion is included by default with Ubuntu, but its super-advanced control panel is not. Need of this advanced control panel comes up if you are a power user who wants to use the 3D window management features to the max, which means turning your desktop into a rotating cube, among other things. You can also greatly customize your special effects, animations and window behaviors using this control panel. So let throw it on!

  • After you’ve checked off Ubuntu Restricted Extras in the above step, do another search for the word “compiz”

  • Check off “Advanced Desktop Effects Settings”
  • Click the Apply Changes button in the lower right corner.

Once installed, this advanced control panel can be found in System>Preferences>Advanced Desktop Effects Settings. Your Restricted Ubuntu Extras package will also be installed.

*Notice: You will want to make sure you have visual effects enabled in System>Preferences>Appearence>Visual Effects before using the above control panel you’ve installed.

4. Enable (reveal) your Archive Manager to create zip files.
Difficultly: Very Easy

Some of you might be wondering: How can I create a zip file? The answer is with the included Archive Manager. This tool (for some weird reason) isn’t shown in the Applications>Accessories menu by default. But we can reveal it very easily by doing the following:

  • Click System>Preferences>Main Menu
  • Click on the Accessories menu in the left panel, then check off the Archive Manager (see below). Then click Close.

That it! Now when you open your accessories menu, you’ll be presented with a new shortcut to your Archive Manager. You can use this utility to create zip files. Keep in mind that it can also create other types of archives, such as tar.gz, so you should specify your desired file type when you create a new archive.

5.) Install Phatch - Batch Photo Management Software
Difficultly: Very Easy

Recently, I was looking around for a program that I could use that would allow me to resize multiple photos at the same time. This is what’s called a “Batch Conversion”. So I found a program called Phatch that does this job very well. To install it, you have to download the deb installer.

  • Click here to download the Phatch deb file. Save it to your desktop for now.
  • Find the deb file you just downloaded and double click on it.

After you double click on the deb file, this window will appear:

At this point, all you have to do is click the Install button in the upper right-hand corner. Once installed, you’ll be able to find the program in the Applications>Graphics menu.

I would also suggest that when installing programs via deb installer files, to save these deb files to a permanent location before running them. Simply clicking “Run” in Firefox will cause the file to be stored in a temporary cache folder, which could cause your deb file to possibly disappear mid-way through an installation. So saving it to your desktop and double-clicking on the file from there is the preferred method. Once you are done with the deb file, you can delete it.

6.) CHALLENGE - Install Google Earth
Difficultly: Medium

I threw this into the list because I wanted to give you a little exposure to the terminal. Don’t freak out! You’re just going to copy and paste some text so calm your ass down.
First thing you have to do is download Google Earth. To do that, visit this link: http://earth.google.com/download-earth.html

After you agree to the license, you’ll be taken to a new page where an automatic download will begin and ask you what you want to do with a file called GoogleEarthLinux.bin. Simply save this file to your Desktop for now.

Next we’ll need to open up a terminal window. A terminal window is similar to DOS in that it is a Command Line Interface. To open Terminal, do the following:

  • Click Applications>Accessories>Terminal

When you first open terminal you’ll be given a prompt where you can enter commands. You also will be sitting in your Home Folder. If you type in the letters “ls” (That’s ls, short for the word “list”, in lowercase), you’ll be shown the files and folders in your home folder. Notice that one of them is called “Desktop”. We need to change our directory so we can run our GoogleEarthLinux.bin file. To do this:

  • Type “cd Desktop” (no quotes) and hit enter.

In the world of Linux, everything is case-sensitive, so be sure to capitalize the word “Desktop” in the above command. This command will bring you to your desktop. If you type “ls” again and hit enter, you’ll see the files which reside on your desktop right now. Listed in it somewhere should be the bin file you just downloaded.

Now for the magic!

  • In terminal, type: “sh GoogleEarthLinux.bin” (no quotes) and hit enter.

After you press enter, the following window will appear, and begin to install Google Earth for you:

Shortly after the above screen appears, you’ll get another one that says the program successfully installed. You’ll then be given the option to run Google Earth right away. If you don’t want to, you can just click Quit, and start it later by going to Applications>Internet>Google Earth.


Well, that wraps up this little list. There are plenty of other applications out there worth installing, such as Pidgin, Audacity, Avidemux and many more. Most of these programs can be installed using the Add/Remove applet which we used to install our Ubuntu Restricted Extras with. Simply searching for the program will likely produce a result that you can simply check off install with a couple clicks. Sure beats the hell out of looking through a filing cabnet for a software CD or a serial number (see: Windows software).

Oh yeah, one more thing. You can’t have a bad ass operating system without a bad ass wallpaper to go with it:

http://interfacelift.com/wallpaper/index.php?sort=ratings

And here’s another great link for some wallpapers:

http://abduzeedo.com/20-beautiful-hdr-pictures?=main

Have fun with your Ubuntu!

Sunday, March 2nd, 2008

Digg-style voting meets Ubuntu Development

A new website has launched called Ubuntu Brainstorm and it looks to be the seedling of a site that has a lot of great potential for driving the direction of the Ubuntu Linux operating system. At the moment, it looks like the website is gaining a lot of participants at a very fast rate. This is a good thing in the long run, but for the time being, it can cause the popularity between newer and older topics to appear disproportionate. That’ll iron itself out in the long run as well.

The way Ubuntu Brainstorm works is simple: You can join in by submitting your own ideas about what you think should change or be slightly modified about the current Ubuntu operating system, and then other people can vote for or against your submitted ideas. It works much like Digg does as a social bookmarking website, where users submit multitudes of different things, and the popularity contest begins.

Some good suggestions have already been made, and it is clear that one of the strongest drives held by many of the participants is to find ways to make the OS increasing simpler for new users. One of the most recent suggestions I liked was to get rid of that dreaded GRUB menu and replace it with something more pleasant looking, and less intimidating. There are many other suggestions present on the site. And best of all, you don’t have to be a developer or know a thing about computer programming to make an impressionable suggestion.

So if you’re an Ubuntu user, check this site out and join in helping to make Ubuntu the best OS in the world: http://brainstorm.ubuntu.com/

Here’s the dumb idea I just submitted: http://brainstorm.ubuntu.com/idea/338/

Friday, February 29th, 2008

Google Gives All SF Homeless Free Voicemail

SAN FRANCISCO, Calif. — Google has made an announcement that could help hundreds of homeless people in San Francisco get back on their feet.

Every single homeless person in the city will be given a life-long phone number and voicemail, should they choose to accept it, NBC11’s Lisa Bernard said.

Google is partnering with San Francisco to provide the service to homeless individuals and to shelters and agencies so they can distribute the numbers to their clients.

The announcement was made at a Project Homeless Connect event at the Bill Graham Civic Auditorium Wednesday.

A homeless person will be able to call in for his or her messages from any phone.

The move by the city and the company would allow someone to be able to fill out a job application, which asks for a call back number.

It will allow clinics to share test results.

Mayor Gavin Newsom and Google said they want to empower people.

“How do you communicate as a homeless individual? ” Newsom asked. “How do you expect your life to turn around if you can’t even get information or if someone can’t even get in touch with you?”

“It just seems exactly like any other voice mail,” said Craig Walker, senior project manager of Google. “There’s no stigma attached to it that ‘hey this is a temporary thing’ or ‘this is an 800 number.’ It’s really just a local number owned by the user.”

One man who used to be homeless said the right message can raise the spirit.

“Having your family, friends and loved ones being able to say ‘here I’m thinking about you, I love you, I want you to know you’re mine, and I miss you,’ can have a monumental change in one’s behavior.”

“Providing phone and messaging capabilities and access to vital healthcare is an extraordinary step forward in the city’s commitment to a comprehensive approach to addressing the needs of this vulnerable community,” Newsom said.

“We’re firm believers in the power of technology to improve the daily lives of individuals and communities as a whole, and we recognize that access to phone and voicemail services is one way that Google can help San Francisco’s homeless stay connected with family, friends, social workers, health care providers, and potential employers,” Walker said.

Walker said the program was ready to start right away.

Original article: http://www.nbc11.com/news/15429799/detail.html

Thursday, February 28th, 2008

How to connect Linux to your cellular Internet

Not so long ago, I wrote a guide up that showed T-mobile customers how to connect their cell phone to their Linux machines using wvdial, allowing them to access the Internet. Well I’ve come back to write an updated (and even easier) guide to connecting not just T-mobile phones, but Sprint and Verizon wireless phones as well (and possibly others, as you’ll soon see).

So, here we go in short and simple form:

  1. Switch your phones USB mode to Data Connection (this is usually on Memory Card mode by default). Connect your phone to your computer after this has been configured correctly.
  2. Install wvdial by opening a terminal window (click on Applications>Accessories>Terminal) and then type in “sudo apt-get install wvdial“.
  3. Now that your phone is attached to your computer and wvidial is installed, type “sudo wvdialconf” into terminal, and press enter.

The wvdialconf is a useful utility that I failed to use or mention in my previous guide. The wvdialconf utility will probe your computer for modem devices, and upon finding your cell phone and verifying it to be such a device, will test its capabilities. Running this command with “sudo” in front of it will allow the program to create it’s own template configuration file based upon your phones capabilities.

wvdialconf will return you to the terminal prompt once it is completed. The next thing you will need to do is modify the configuration file it just created slightly. To do this, type “sudo gedit /etc/wvdial.conf” into terminal and press enter.

Once it opens, it will probably look something like this:

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
; Phone = <Target Phone Number>
ISDN = 0
; Username = <Your Login Name>
Init1 = ATZ
; Password = <Your Password>
Modem = /dev/ttyACM0
Baud = 460800

The above configuration file was what was automatically generated by wvdialconf for me after it probed my Motorola K1, so it may look different for you. Note that the Modem = /dev/ttyACM0 as shown above may be detected differently on your PC, especially if you have attached it to your computer/laptop via a wireless bluetooth connection.

If you have a T-Mobile phone, you will want to modify and save the config file so it looks more like this (I”ve highlighted the most important changes in red):

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Phone = *99#
ISDN = 0
Username = user
Init1 = ATZ
Password = pass
Modem = /dev/ttyACM0
Baud = 460800

Be sure to remove the semi-colon’s in front of the Username / Password lines. T-mobile authenticates it’s users by their phone number (and likely their phones mac address, so a username and password is not required from them. I’ve had no problem using the username “user” and the password “pass” with T-Mobile’s servers).

If you have a Sprint phone, you will want to modify the file so it looks like this:

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Phone = #777
ISDN = 0
Username = {your phone number}@sprintpcs.com
Init1 = ATZ
Password = {your four digit access code}
Modem = /dev/ttyACM0
Baud = 460800
New PPPD = Yes
ISDN = 0

In addition, you will want to do a sudo gedit /etc/ppp/peers in a terminal window and add the following two lines to the file:

lcp-echo-failure 0
lcp-echo-interval 0

If you have a Verizon Wireless device, you will want to make your config file look more like this:

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Phone = #777
ISDN = 0
Username = {your phone number}@vzw3g.com
Init1 = ATZ
Password = vzw
Modem = /dev/ttyACM0
Baud = 460800

—–

Once you have modified the configuration file correctly and saved it, you can close it and return to the terminal window. From now on, after your cell phone is connected, all you have to do to initiate the dialing sequence is type “wvdial” into a terminal window and press enter. Closing the terminal window, or hitting CTRL-C while it is open, will terminate your connection.

Like the sprint device, I also don’t have a verizon device handy for testing to see how well the above guide will work. But it is a big step in the right direction for most people. If you use this guide above and have trouble, please contact so we can seek out a better method for your prefered device. I would love to know of your experience with trying this on your computer.

Good luck!

Thursday, February 28th, 2008

How to connect T-Mobile Wireless Internet in Linux

I recommend you use this updated guide I’ve written which is easier. The below information is useful, but it is covered a little more accurately and simply in the link.

(Note: This blog was appended on Feb. 23, 2008. Information for Sprint phones was added as well as a minor modification to the wvdial.conf for T-Mobile phones example have been made).

I recently took on the challenge of getting an old PC up and running with Xubuntu 7.10. My father recently purchased the T-Mobile Internet package, which allows him to connect his computer to unlimited mobile Internet for $20 a month. Setting this up proved to be easier than I anticipated.

Laptop attached to a mobile phone

  1. The first thing you need to do is change the USB configuration in your phone. On my phone (a Motorola K1) and many other T-Mobile phones, you have to make your default USB connection a data connection. By default, most phones are configured to be in “Memory Card” mode.
  2. Next, you need to install a piece of software in Ubuntu called “wvdial“. To do this, click on Applications>Accessories>Terminal. Once your terminal window is open, type in the following: sudo apt-get install wvdial
  3. Edit your wvdial.conf file. Type sudo gedit /etc/wvdial.conf in a terminal window to do this.

Once you have your wvdial.conf file open, paste in the following text over all the contents of the file:

[Dialer Defaults]
Init1 = AT+CGDCONT=1,”IP”,”internet2.voicestream.com
Modem Type = USB Modem
Phone = *99***1#
Password = pass
Username = user
Modem = /dev/ttyACM0
Baud = 460800

Take note of the “ttyACM0″ part. This may not be the same on your PC. To find out what yours is, attach your phone to your PC, and then type the following into the terminal:

$ dmesg | fgrep acm

You should see something like this returned in the output:

[ 9168.949496] cdc_acm 2-3:1.0: ttyACM0: USB ACM device

This ACM device is your phone, and it is now an accessible piece of hardware. For wvdial to use it, you must make sure the above configuration file points wvdial to the right device name. If the above dmesg output produces a different ttyACM#, change it accordingly to match your PC. (Note, if you don’t get any dmesg results at all, try typing this in first: sudo modprobe cdc_acm).

After your wvdial.conf file is created and you’re sure your Modem = /dev/tty line is correct, save the file and close gedit. Then simply run wvdial from the terminal:

$ wvdial

Wvdial will then access your phone as it is directed to do so by the wvdial.conf file, and essentially dial T-mobiles Internet Service Provider. No real username or password is required for this, so leave the user/pass in the above config file as it is written. You’ll see some output on the screen that looks like this:

user@user-desktop:~$ wvdial
WvDial<*1>: WvDial: Internet dialer version 1.56
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: AT+CGDCONT=1,”IP”,”wap.voicestream.com”
WvDial Modem<*1>: AT+CGDCONT=1,”IP”,”wap.voicestream.com”
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<*1>: Sending: ATDT*99#
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATDT*99#
WvDial Modem<*1>: CONNECT
WvDial<*1>: Carrier detected. Waiting for prompt.

At this point, the program will pause as it handshakes and establishes a connection using PPP. After about 10 or 20 seconds, the output will continue on and look similar to this:

WvDial<Notice>: Don’t know what to do! Starting pppd and hoping for the best.
WvDial<Notice>: Starting pppd at Thu Jan 17 17:50:28 2008
WvDial<Err>: Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
WvDial<Err>: –> PAP (Password Authentication Protocol) may be flaky.
WvDial<Err>: Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
WvDial<Err>: –> CHAP (Challenge Handshake) may be flaky.
WvDial<Notice>: Pid of pppd: 13530
WvDial<*1>: Using interface ppp0
WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
WvDial<*1>: local IP address 10.38.225.200
WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
WvDial<*1>: remote IP address 192.168.100.101
WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
WvDial<*1>: primary DNS address 66.94.9.120
WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
WvDial<*1>: secondary DNS address 66.94.25.120
WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]

Congrats! You are now connected to the Internet using your cellphone. And all you have to do to establish a connection is open a terminal window and type wvdial.

To end your connection, you can simply close the terminal window containing the above mess, or hit CTRL-C while the terminal window is open. So be careful and don’t close the window by accident, or your connection will be dropped and you’ll have to run wvdial all over again. Oh, the agony of typing that one command over again!!

Anyway, enjoy your T-Mobile Wireless Internet connection! You should see a steady downstream of about 20 to 30 KB per second, which is about 5 times faster than dial up. And it’s unlimited! It’s not DSL or Cable, but that’s still not a bad deal for 20 bucks a month.

Additional Information for Sprint users:

You may need to make your wvdial.conf file look more like this to get your phone to work:

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Phone = #777
ISDN = 0
Username = NONE
Init1 = ATZ
Password = NONE
Modem = /dev/ttyACM0
Baud = 460800
Auto DNS = 1
Stupid Mode = 1

In addition, you will want to do a sudo gedit /etc/ppp/peers in a terminal window and add the following two lines to the file:

lcp-echo-failure 0
lcp-echo-interval 0

I do not have a Sprint phone, but according to this guide it is confirm to work on a Sprint Samsung MM-920.

Friday, January 18th, 2008

Steal This Film II

Below is a 40 minute movie about the current state of the Internet and the role it has played in the distribution of information. It takes a historical look at methods used by people throughout history to produce and publish creative works, and the continually morphing war on the piracy of those creative works. The movie is well worth viewing.

(Note: Contains adult language).

You can download a DVD quality version of this film at this site.

Sunday, December 30th, 2007