Archive for category Operating Systems
Slow internet in LinuxMint
Posted by Randy in Linux Stuff, Networking on April 13, 2012
I installed LinuxMint earlier today because I found that I really liked the Cinnamon desktop environment on my laptop. I promised that I would post how well it works on my desktop.
Well it mostly works fine. There’s still a slight hiccup that I’m trying to work through, where the desktop environment just seems to die. I have this same problem on Gnome 3 and Unity though, so I think it has something to do with the ATI drivers. I wish I had a good nVidia card to go in this thing.
There’s one bug that I had to post about. I was getting terrible internet speeds from my LinuxMint install. My top speed was around 190KBytes/sec. Some people may still regard this as fast, but I’m on a 30Mbit/sec connection. I should be seeing speeds around ten times that.
It was across the board too. I thought it was a bad mirror at first because I first noticed it while trying to update the system and install new software from the repos. I soon found that the problem was also happening from every web site and speedtests showed the same results.
I started out by searching for the issue and was coming up with a lot of duds. It was the standard first level support answers like “unplug your router and modem”. No need, I know that’s not the issue. After some intense searching, I finally found the answer. It was a problem with my network card drivers in the latest versions of Ubuntu and LinuxMint.
My system was showing a RTL8111/RTL8169 network device. The 8169 is the part to look for. This driver is built into the latest kernel and it has problems. I found that the solution was to build the r8168 drivers (note that’s 8168 not 8169) from source.
A full walk-through can be found here: https://unixblogger.wordpress.com/2011/10/18/the-pain-of-an-realtek-rtl8111rtl8168-ethernet-card/
Follow those steps and you’ll not have this issue again. Much thanks to the author!
jMonkeyEngine “An instance of the program cannot access specified user directory”
Posted by Randy in Linux Stuff, Programming on March 26, 2012
This is a simple issue and most Linux users can probably figure it out rather quickly. I don’t mean to offend anyone, but the error message is pretty straight-forward when it comes to the problem. However, I’ll explain it to those who run into it and want to know how to fix it. Then again, I may be the only person who runs into this problem. Either way, I’m posting it for anyone who may need it.
The problem stems with the installation of jMonkeyEngine. The installer is a .sh file which which can be executed like so:
1 | sh jME3_SDK_Beta-Linux.sh |
However, if you are like me, you may have ran it with sudo like this:
1 | sudo sh JME3_SDK_Beta-Linux.sh |
The good thing about using sudo is that the program will be installed for all users on the machine. I’ve not ran it without sudo to see if it will install for only the user running the installer, but I’m assuming that it will.
After the installation occurs, it asks you if you want to start jMonkeyEngine. If you answer yes, it will start it as root, and it will write it’s hidden users directory in your home directory. The home directory will have root:root as the owner because the program was first started by the root user.
So when you go back and run the program again, it will not have access to the required folder. The solution is to change the owner of the folder. This is accomplished simply by typing this in a terminal while in your home folder (the terminal should open in your home folder automatically, but just to make sure we’ll change directory into it first). In the following example the word “username” should be replace with your actual username.
1 2 | cd ~/ chown -R username:username .jmonkeyplatform |
You should now be able to open jMonkeyEngine. The -R, for those of you interested, means “recursive”, which will change the owner of all files and folder inside of .jmonkeyplatform, not just the folder itself.
How to get rid of the annoying blue shadow in KDE 4
Posted by Randy in Linux Stuff on March 24, 2012
I vowed to switch to KDE after trying for a few months to find an alternative to Gnome 2, which is going the way of the Dodo. I ran into two problems initially. The system sounds were distorting and I hated the annoying blue shadow on active windows.
The fix for the first problem came when I installed the phonon gstreamer backend, though I’m not sure this was exactly the fix as I never switched to that backend in the settings.
To fix the annoying blue shadow, go to System Settings -> Workspace appearance -> Window Decorations. Click on the Oxygen theme and then click “Configure Decoration”. Click the Shadows tab and change the colors under “Active Window Glow”. I made my inner color a dark grey and the outer color black. I like this a lot better than the bright blue.
Global Media Shortcuts in Windows
Many Gnome users may have taken advantage of the global keyboard shortcuts available. I’m in Windows at the moment on a normal keyboard, and I want the same customizable shortcuts. Typically in Linux I’ll set Win/Super + P for the play/pause shortcut, Win + Up Arrow for volume up, Win + Down Arrow for volume down, Win + Left Arrow for previous, Win + Right Arrow for next, and Win + M for mute. This removes the need for extra media keys completely, and I really like that feature of Gnome.
Now that I’m in Windows 7, I really miss that ability. I’m looking for a way to do this. If anyone out there knows how to do this, shoot me a comment.
Thanks!
Edit: Eureka! Nevermind on the suggestions. I found a nice little free app that does exactly what I wanted. I was about to try to write one myself, but this one does it well. You can download it here. The app is great. I setup my keys, changed the options to have the app start at windows startup, and set it to close to the system tray. That will confirm that it’s always running when I’m in Windows.