Fight for the Internet 1!

Sunday, May 2, 2010

Ubuntu Logitech diNovo Edge Bluetooth Wireless Keyboard

I use the Logitech diNovo Edge in Ubuntu/Kubuntu and I love it. When I installed Kubuntu 10.04 Lucid, this wireless keyboard failed to work. The bluetooth device manager kept prompting me to connect and pair the device with a PIN but nothing I did ever worked.

UPDATE/EDIT: This problem has been reported in version dating from 10.04 to 11.04. This solution works for those, but there is a slightly different solution for 11.10.

Here is the solution / fix for getting the keyword to work. The source for this information is here.

Edit the file: /lib/udev/rules.d/70-hid2hci.rules

(If you need help editing a file, see bottom section.)

Change this line:

# Logitech devices
KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \
RUN+="hid2hci --method=logitech-hid --devpath=%p"

to

KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \
RUN+="hid2hci --method=logitech-hid --devpath=%p"

I have made the changed sections BOLD. I also turned bluetooth off from the icon in the system tray.

After making this change, I turned on my wireless keyboard, unplugged it's bluetooth dongle, plugged it back in, paired the keyword with the dongle, and a few seconds later it worked. I did not even have to reboot.

HOW TO EDIT THE FILE (for those who need help with this stage)

New users to Linux may have trouble editing text files at first. I'll try to be simple, and this guide is for people using Gnome or KDE.

The simplest way is using a user friendly program. In Gnome (which is normal Ubuntu), the default text editor is gedit. In KDE (in Kubuntu) it is Kate. Also, this is a protected system file, so you need to use special Administrator privileges before you can edit it. Don't worry. This is simply.

KDE

In KDE, you need to find the "Run Command" option the Application menu. (The App menu is usually in the lower left-hand corner, with a colorful K-button.) In KDE4's new menu style, the "Run Command" is (currently) under the 'Computer' section, near the top of the small list. Find the option and click it.

In the input box that displays, copy/paste the this command into it and press enter:
kdesu kate /lib/udev/rules.d/70-hid2hci.rules

The 'kdesu' program tells the system you want to run the text editor (kate) with Admin access. You will be prompted for your individual user password, which you enter. Then kate should open with a file ready for you. (This is the /lib/udev/rules.d/70-hid2hci.rules file which we told kate to open for us.) If this file does not open, you can open it manually by going to menu File -> Open... and then navigating to the '/' root directory, down to 'lib' and so on until you find the file ' 70-hid2hci.rules'.

Edit the file as directed earlier in this article. Save the file, close the file (menu File -> Close), and then finally exit Kate.

GNOME

In Gnome, first open the Terminal through the Application menu. (The App menu is usually in the upper left-hand corner, labeled as Applications.) On my system, it is under Applications -> Accessories -> Terminal.

In the input command window that displays, copy/paste the this command into it and press enter:
gksu gedit /lib/udev/rules.d/70-hid2hci.rules

The 'gksu' tells the system you want to run the text editor (gedit) with Admin access. You will be prompted for your individual user password, which you enter. Then gedit should open with a file ready for you. (This is the /lib/udev/rules.d/70-hid2hci.rules file which we told gedit to open for us.) If this file does not open, you can open it manually by going to menu File -> Open... and then navigating to the '/' root directory, down to 'lib' and so on until you find the file ' 70-hid2hci.rules'.

Edit the file as directed earlier in this article. Save the file, close the file (menu File -> Close), and then finally exit gedit. You can close the Terminal also.

Hope that helps.

Thursday, April 29, 2010

Google Still Not Evil

I probably shouldn't be posting this, since I feel commenting on anything related to politics is foolish on the Internet, but I'm doing it anyway. (Perhaps I'll delete this post later.)

Google is Still Not Evil.

I hear people talk about this and to be honest, I try not to be disdainful of their thoughts but it's hard.

GMail: If you worry about Google reading your email when using Gmail, there's a solution: Don't use it. Good Lord people, it's a great free service, but you aren't required to use it.

Do be honest, it's basically impossible for your email to not be ready by any modest sized email provider now days. For spam purposes alone your email is scanned. Not to mention there are other things being watched for. About the only way you can be "safe in your privacy" is to run your own email service, and even then that won't be a guarantee. Email isn't very secure to begin with and people need to realize that.

But I'm not done here. Gmail is awesome, and it's free. Do you remember the days of 10MB inboxes? I sure do. Do you remember the days of abysmal email interfaces? Thank God Google came along and improved things. (Though some old companies still haven't got with the program of using anything beyond HTML 2.0 or HTML 3.2. I'm looking at you Yahoo.)

Google Search: If Google started censoring their stuff, people can always choose to use something else. Though they are censoring things now, but that's not because they want to but because Government's and independent Agencies ask them to (like the RIAA and MPAA).

Google Earth: Paranoid much? Get over yourselves. You can tell Google not to map your private residence. (I know at least two people that have done such.) But you have to be a private estate or some-such and if you whine about not having a private place... that's not their problem. As far as seeing them as Big Brother for mapping the whole earth, you are just being an anti-big organization paranoid person, because Lord knows many Governments and probably numerous companies have already done this. At least Google's been upfront and honest about it.

Google Phone GSP: You think that just because your phone has GSP, that suddenly now you can be found? Um... unless you had powers of invisibility, you could be found before, albeit it not as quickly. Your cellphone can be tracked by cellphone tower transmitters along, alone. Let's also not forget that Google Phone's are not the only ones with GSP. Numerous phones have them, from many companies and providers. Honestly, this point alone is just banal and so are those people who worry about it.

Google Phone: I have not heard this argument spoken much but some people, namely Steve Jobs, seems to think Google is in fact being evil because they entered the cellphone business. Umm.... Steve, aren't you just being juvenile because you now have to share the cellphone-industry sandbox? Seriously, Google has just as much right to venture into that industry as you did to make your portable music player. Nay, strike that. They had more rights, because they made (good) software, not hardware, whereas you often make both. Grow up Steve. Sometimes I respect you, and other times I wonder if you've gone off your medication.

Google Chrome: People worry about it being closed source. ... Wait, what? People worry about Chrome, but you don't worry about Internet Explorer, the Blackhole for Viruses and Security vulnerabilities? Or what about Safari? Opera? They are all closed source. Most people seem to single out Chrome for some reason as dangerous because it's closed source. Well, again, all I can say is you can always use another browser. There are plenty now, and if openness matters, you know where to go: www.getfirefox.com

I'm aware people worry that it watches your activity and possibly stores the information, in the supposed interests of providing better features and usability for you. If you don't like being watched and recorded however, get a different browser. Simple as that.


YouTube: This isn't mentioned by people when talking about how evil Google is becoming. That's probably because it's a point in their favor mostly. Google spends multiple millions of dollars a year to keep YouTube running, because that website has never made a single penny of profit. But they've done more than just keep it running. They've added numerous great features, most prominent among them being higher quality video. That's just awesome.



Conclusion
The list of great things Google provides we the people for free goes on and on. (Something that neither Apple nor Microsoft can boast. Certainly not for free, and in my opinion, not even with price disregarded.) Google contributes every single year to the free open source community, something you don't see Microsoft do very often and certainly not for the many early years of their history.

Honestly people, Google isn't forcing you to use their products and they are still free. If you are worried about misuse of power, you ought to be flipping outraged at Microsoft. You'd have trouble getting away from them and they sure has hell are not free. (For more information, check out http://techrights.org/)

In conclusion, because I don't want to talk about this anymore, I've yet to see one decent piece of convincing evidence to show that Google is Evil or becoming Evil.

Monday, April 12, 2010

Command to Logout / Shutdown / Restart KDE4

There may be another easier way to do this, but this command will bring up a dialog box with the options to Logout / Restart or Shutdown KDE4.

qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 1 -1 -1

This is useful for when Plasma crashes and will not restart. (I actually have no idea how to manually restart plasma.)

Saturday, April 10, 2010

KDE Compositing Won't Enable

Today, I started KDE and for some reason Compositing was disabled, and my System Settings icon was missing from its normal place in the KDE Menu. I could not re-enable Compositing. I suspect the problem is because of some recent software upgrades I loaded for KDE 4.4.2. Here is how I fixed my problem. Hopefully it will help others.

General Troubleshooting
To make sure there was no problem with my computer, I did a simple but easy test. I created a new user through KDE's system, and logged into that account. Everything worked fine. So, I knew it was a configuration file problem.

I could now compare the new account's config files (which reside in the an individual's home directory and typically start with a '.' or are stored in a directory starting with a '.'). Comparing the new account's config files against my own. I was able to eliminate quickly all of the non-KDE config files fairly quickly.

I made a backup of the .kde/ directory in my home directory, using a tar file. Then that directory, I used a simple divide-and-conquer technique for finding the troubled files. Instead of checking the over 100 config files from my directory, I simply copied the first half of the new account's config files over my own, and logged-out-logged-in to KDE to check if that fixed the problem. If not, I tried the other half, and repeating the eliminating half until I found the files the troublesome files.

Solution
The files in question was all prefixed with kwin. Had I guessed intelligently I would have tried these first. But simply overwriting all the kwin related files in ~/.kde/share/config/ with the newly created account files (which were probably created from defaults) fixed my problem. Compositing was restored and all I had to do was reset a few minor customizations I had before.

Wednesday, March 17, 2010

KDE 4.4 Feature: Drag to edge to Maximize

I do not like the new feature in KDE 4.4 for dragging a window to top of the screen to maximize it. Here is how to disable this feature.

Open System settings -> Workspace Behavior -> Screen Edges

Now deactivate:
* Maximize windows by dragging them to the top of the screen

Thanks to commentors for the updated info.

Wednesday, March 10, 2010

Fix Pidgin's Google IM "Lost Connection with server" error

(Please note this fix was some time ago with an older version of Pidgin, and older versions of Gtalk. Particularly the address 'talk.gmail.com' doesn't always work.)

Recently I encountered an old error in Pidgin, and here is my solution to it. While visiting a network at a local college, my Google IM account throws this error in Pidgin:
Lost connection with server: Connection reset by peer
Here is how to fix this.
  1. From within the main Pidgin window, select the menu "Accounts"-> "Manage Acconts"
  2. Select the Google IM account in question. Click the "Modify..." button.
  3. Check the option: Force old (port 5223) SSL
  4. Uncheck the option: Allow plaintext auth over unencrypted streams
  5. Set Connect Port: 443
  6. Set Connect Server: talk.google.com
  7. Click the "Save" button and re-connect with your account.
Trouble Shooting
If you get a message asking you to accept a certificate, you have probably forgot to add the Connect Server address.

Tuesday, March 9, 2010

Ubuntu Linux software easy download support

This is mostly a thought piece or commentary. One reason to run a very popular distribution of Linux is that it tends to be widely supported. Ubuntu is certainly one of the most popular Linux Distributions in the world.

Just today, I checked out the www.pidgin.im website and to my delight I found, under the Downloads section, an explicit area for Ubuntu. It had easy to do instructions for adding automatic Pidgin updates into your Ubuntu system. These updates are made possible by members of the community running their own complimentary APT repositories (PPAs under the Launchpad website), which Ubuntu helps provide with bandwidth, tools, tutorials, etc.

The APT system is one of the greatest inventions in computer software management history, and one of the absolutely greatest features of Linux. Ubuntu has helped foster spreading of the marvel and ease of the APT system.

So, the one line conclusion: The APT system is great (if you didn't already know) and Ubuntu is continuing too expand and make great use of it.