Posts Tagged Linux
December 26, 2012 at 2:39 pm · Filed under Linux, OS X, software ·Tagged Apple, Darling Project, Darwin, Linux, Mac OS X, Unix, WINE
This falls into the category of “I wonder why no one ever thought of this before” — it seems to me that since OS X and Linux are both based on Unix (more or less), it would be easier to make OS X software run under Linux than Windows software.
While there is the Wine project to run native Windows binaries on Linux (and other platforms), there’s a new open-source project that’s emerging for running Apple OS X binaries on Linux in a seamless manner.
It is The Darling Project that’s set out to achieve binary compatible support for Apple OS X / Darwin applications on Linux. …
More here:
A New Project To Run Mac OS X Binaries On Linux (Phoronix)
By the way, I think they need a logo. I suggest Tux the penguin hugging a heart with an apple stem coming out of the top. I would suggest Tux hugging an actual apple, but you-know-who would probably sue.
Like this:
Like Loading...
Permalink
October 3, 2012 at 2:45 pm · Filed under issues, Linux, privacy, Security, Ubuntu ·Tagged amazon search, Canonical, Identity theft, Linux, linux distributions, Operating system, software, Ubuntu
This is a REALLY big deal for anyone that is the slightest bit protective of their privacy or security, or that doesn’t want to be a potential victim of identity theft. Seriously, if you use Ubuntu version 12.10, don’t do another single thing on your system before you go read this. And if you use an earlier version, do NOT upgrade to 12.10, at least not until this situation is rectified. I’d say now is a very good time to check out other popular Linux distributions (feel free to leave suggestions in the comments).
Ubuntu has a bigger problem than its Amazon blunder (InfoWorld)
Like this:
Like Loading...
Permalink
December 13, 2011 at 9:43 am · Filed under Asterisk, Editorial, FreeSwitch, hardware, Opinion ·Tagged Hardware, Linux, Personal computer, Universal Serial Bus, USB
If you go on eBay and search for items with USB in the title, you will find thousands of items that do all sorts of complicated things for under $5 or $10. What you WON’T find, at least at any reasonable price, is a device that will let you simply connect a pair of wires and determine if a connected switch is opened (nearly infinite resistance) or closed (nearly zero resistance). It’s as if all the designers of USB devices were so obsessed with doing complicated things that they never stopped to think that someone might want to do the simplest possible thing – monitor a switch to see if it’s open or closed.
Heck, if they simply MUST make it complicated, put a USB plug on one side and an 8-pin RJ-45 style jack on the other side and allow the simultaneous monitoring of four pairs of wires (four switches) using standard RJ-45 pairing (as would be used with Cat 6/5e/6 wiring into such a plug). Or include two such jacks to allow monitoring up to eight pairs. Or put an LED bar on the device to visually show which switches are closed.
Then all we need to know is how to read the state of the switch closure(s) using software. This should be possible using a shell script or program written in a higher level language.
Asterisk or FreeSWITCH PBX users could use such a device to trigger which announcement to play if a custom extension is called. For example, by connecting a simple thermostat, you could play a different recording depending on whether a room temperature is normal or abnormal. By using a microswitch, you could play a different announcement depending on whether a door is opened or closed (call your home and easily determine if you forgot to close the garage door, for example).
This type of device certainly ought to be possible. After all, many UPS’s use a USB connection to indicate whether the UPS is running on the battery or not.
I just can’t understand why you can’t buy an inexpensive USB device to do this simplest of functions. I know, you can buy expensive devices that cost hundreds of dollars that will perform this function, but why, when you can buy USB devices that do far more complicated functions for under ten bucks, finding something that will inexpensively detect simple switch closures is like looking for unobtainium!
Like this:
Like Loading...
Permalink
September 3, 2011 at 11:30 pm · Filed under Boxee, Editorial, HTPC, Linux, Linux Mint, Opinion, software, Ubuntu, video, XBMC ·Tagged Distributions, Linux, Nvidia, Operating Systems, Secure Shell, Ubuntu, Ubuntu Linux, Update Manager

"XBMC needs hardware accelerated OpenGL rendering" error
In the past couple of years I’ve helped install Ubuntu Linux on four HTPC systems, three of which were Acer Aspire Revos (two are still in use), and the fourth an ASRock Vision 3D. On each of these we’ve had a recurring problem where Ubuntu pushes an update to Linux (which appears in the Update Manager along with other updates) and then you start having video problems, or problems with your HTPC software. In the most extreme cases, Ubuntu appears to not boot at all – you simply get a black screen. In reality it has booted and you can SSH into it from another machine (assuming you’ve had the knowledge and foresight to enable SSH access), but the graphic display manager isn’t working, so you either get a blank screen or just text. In less extreme cases, it will still boot into the desktop but when you try to run your HTPC software (such as XBMC or Boxee), it won’t start. Instead it may fail with a message similar to “XBMC needs hardware accelerated OpenGL rendering. Install an appropriate graphics driver”.
The problem always seems to be the same and it’s the one I wrote about in the article, If your Linux-based PC with NVIDIA graphics started booting to a black screen or text only, here is the fix — maybe! I suggest you read that article BEFORE you have the problem! It’s just getting REALLY annoying to encounter this issue every few weeks, and while it’s happened so often that I now know the drill to fix it, I can imagine that it probably sends new Ubuntu users into full panic mode (I know it really freaked me out the first time I encountered it).
This is not an uncommon problem either. Putting the phrase “XBMC needs hardware accelerated OpenGL rendering” (including the quotes) into Google brings up “About 2,500 results” as I write this. To me that indicates that about 2,500 people, give or take a few, have had this issue hand have been frustrated enough to have posted something somewhere on the Web about it. There are doubtless thousands of others who searched on the phrase and found enough information to fix the problem. And it’s NOT what I’d call an easy fix for someone unfamiliar with using the Linux command line or working outside the Ubuntu GUI.
Every so often I read one of those articles about how the new versions of Ubuntu are so easy to use that even your grandmother could use it. Bzzzzzt! Sorry, that’s wrong, not as long as shit like this happens. Unless you have a very uncommon grandmother, she is probably not going to be able to figure out how to download and reinstall a video driver.
The solution is simple: If you can’t push out Linux upgrades that don’t break our video drivers, then stop pushing out Linux upgrades! Or else, figure out or to make it download and upgrade the video driver at the same time. Or at the very least, pop up some kind of warning message if someone is about to do any update that will likely break things, and give them the option to permanently exclude such updates.
And I don’t want to hear any crap out of anybody about how it’s stupid to install updates if you don’t know what they do. Ubuntu pushes out these updates via their Update Manager software, which pops up and basically nags the user to install the updates. You can close and ignore it, of course, but every so often it will keep nagging you to install the updates. Users coming from another platform (particularly Mac users) will probably assume it’s okay to install all offered updates. I just question the wisdom of pushing out Linux kernel updates this way — those are in a totally different category than, say, an upgrade to a new version of Firefox, and yet the user is not in any way warned that a kernel update is a pretty serious upgrade that could cause breakage.
P.S. Please do NOT get the idea that I am any kind of expert in this stuff. If you leave a comment asking for help in fixing your system, it’s probably going to sit there like a big old smelly dog turd on the lawn, with no replies at all, unless I or a reader just happens to know the answer, which is rather unlikely! There are much more appropriate forums for requesting help — please use one of those.
Like this:
Like Loading...
Permalink
August 22, 2011 at 11:36 am · Filed under HTPC, Linux, Linux Mint, software, Ubuntu, video ·Tagged Gnome Display Manager, Linux, Nvidia, OpenSSH, Secure Shell, Server, Ubuntu, Update Manager, WinSCP
This article has been moved. Please click here to read it.
Like this:
Like Loading...
Permalink
June 28, 2011 at 1:35 pm · Filed under Asterisk, FreeSwitch, FusionPBX, Trixbox ·Tagged Asterisk, Dynamic DNS, DynDNS, Firewalls, Internet service provider, IP address, Linux, Webmin
This article has been moved. Please click here to read it.
Like this:
Like Loading...
Permalink
April 6, 2011 at 5:59 am · Filed under Asterisk, Linux, Obihai, software, Trixbox, VoIP ·Tagged Asterisk, Linux, OBiAPP, Virtual Network Computing, VNC, Voice over IP, WINE, X Window System
This article has been moved. Please click here to read it.
Like this:
Like Loading...
Permalink
March 25, 2011 at 2:56 pm · Filed under Asterisk, Linux, networking, software, Trixbox, Ubuntu, VoIP ·Tagged Asterisk, Caller ID, Elastix, FreePBX, Growl, how-to, Linux, NotifyOSD, PBX in a Flash, Perl, Programming, Secure Shell, Trixbox, tutorial, Ubuntu, VoIP
This article has been moved. Please click here to read it.
Like this:
Like Loading...
Permalink
January 8, 2011 at 1:35 pm · Filed under Apple, Mac, OS X, software ·Tagged Apple, Linux, Mac OS, Mac OS X, Midnight Commander, Ubuntu, Ubuntu Linux
This article has been moved. Please click here to read it.
Like this:
Like Loading...
Permalink
November 9, 2010 at 12:07 pm · Filed under Asterisk, Internet, Linux, Security, software, Trixbox, VoIP ·Tagged Asterisk, Fail2ban, IP address, Iptables, Linux
This article has been moved. Please click here to read it.
Like this:
Like Loading...
Permalink
October 9, 2010 at 2:41 am · Filed under Linux, software, Ubuntu ·Tagged Linux, Secure Shell, Ubuntu
Just in case you read my previous post, this one falls into the category of “things I figured out how to do” that I want to have a record of, in case I ever have to do it again. Note I am NOT saying this will work for anyone else (so don’t complain if you try it and can’t make it work, because about all I’ll be able to offer you is sympathy and dumb looks). Also note that this is probably not a procedure that rank beginners with Linux should attempt, since you could potentially mess up your system if something goes wrong.
These notes are for gSTM, the Gnome SSH Tunnel Manager version 1.2 running under Ubuntu. Normally, if you have it set to run at system startup its panel will be in the middle of the screen, and you have to click on the icon in the notification area (top bar tray, near the clock) to minimize it. This fixes that so you can start gSTM minimized (or start gSTM minimised, as our friends in Canada and the U.K. would spell it). Of course, you probably don’t want to do this until you have finished setting up your tunnel(s).
- Using Synaptic or apt-get install the libgnomeui-dev package, if it’s not already installed.
- Go to http://sourceforge.net/projects/gstm/files/ and download the .tar.gz file for your distribution (probably gstm-1.2.tar.gz for most users).
- Uncompress the file you just downloaded in a temporary location and in a terminal window navigate to the src directory of the expanded file (cd gstm-1.2/src).
- Using a web browser go to the “Patches” section of the project at http://sourceforge.net/tracker/?group_id=145040&atid=760625 and click on “Close winodows & minimise patch” [sic] and once there click on the small arrow to the right of the words “Attached File ( 1 )” and a Download link should appear. Click on that to download a file named “patch” and save it to the aforementioned src directory.
- If any version of gSTM is currently running, quit it now.
- Run this command in the src directory: patch -i patch (note the second instance of “patch” refers to the file you just downloaded). If it complains about permissions, preface the command with sudo.
- If there are no errors applying the patch file, then run these three commands (if you’re not running as root then you’ll need to preface these with sudo): ./configure; make; make install
- Start gSTM using this command: gSTM –start-minimised-to-tray (U.S.A. users, note the U.K. spelling of “minimised”). This is also the command you should use in Ubuntu’s Startup Applications Preferences. Note that if you do click on the tray icon to open the window, pressing the close button or the quit button will now only hide the window. To actually quit the program you have to right click the tray icon and select quit.
- If everything works you can delete the source files to save a little space on your hard drive.
Hopefully this patch will be incorporated into a release version someday, but since the last actual release was in 2005, I’m not holding my breath. I’ll also note that there are two other patches available, an About Dialog Patch and a patch to show notification dialog icons, but since doing the above is really stretching my abilities in Linux (I’m strictly a GUI type of person, and hate working at the command line) and since I didn’t need either of the other patches, you’re on your own with those.
EDIT: If all you really want to do is start a SSH tunnel at system startup to create a SOCKS5 proxy (and run it in the background), you don’t necessarily need gSTM at all. In Ubuntu’s Startup Applications, you can add a “Startup Program” with a line similar to the following as the command string:
screen -dmS tunnel ssh username@serveraddress -D 7777
You can optionally replace tunnel with any other single word of your choice. Replace username@serveraddress with the user name and address of the server you wish to tunnel through. 7777 is the local port number for your SOCKS5 proxy and can be changed if desired. If you do this a tunnel should be set up at each reboot, provided that you have installed the screen utility on your system (it is not installed by default in Ubuntu, but can be easily installed using apt-get or synaptic). You’ll also need to change the permissions on a directory, but if you run the above line from a terminal window (leaving off the -dmS tunnel) the first time you run it, it should tell you what you need to do (if I recall correctly, you need to change the permissions of /run/screen to 775). The only problem with doing it this way is that if you lose the connection to the server you won’t be able to restart it without running the above command again.
EDIT2: For more ways to tunnel data using SSH, see Quick-Tip: SSH Tunneling Made Easy.
Like this:
Like Loading...
Permalink
September 8, 2010 at 2:53 pm · Filed under Asterisk, Linux, software, VoIP ·Tagged Asterisk, CentOS, Google Talk, Jabber, Linux, Telephony
Disclaimer: The following instructions are for experimenters and tinkerers, and may or may not be correct and complete. Use them at your own risk, or don’t use them at all. Just because something worked on my system doesn’t mean it will work on yours, so if you don’t have confidence in your ability to recover from any problems that may arise, don’t do this!

Image via CrunchBase
If you have an Asterisk installation and are trying to get something related to Google Talk (do not confuse with Google Voice) to work, or, perhaps you are trying to send Jabber-based notifications from your Asterisk box and it’s not working, it might be because of a couple of missing modules. The specific problem may be that the modules res_jabber.so and/or chan_gtalk.so are missing in your Asterisk installation. These are normally found in the directory /usr/lib/asterisk/modules and if they aren’t there, it’s probably because of missing dependencies that existed when you (or the installation script you used) built Asterisk. One way to tell is to go to your Asterisk source directory (typically something like /usr/src/asterisk-1.x.xx where the x’s are replaced by your version number) and run make menuselect, then arrow down to Channel Drivers (to see chan_gtalk) and then to Resource Modules (to see res_jabber). If either have an XXX in front, that means there is a missing dependency and if you move the selection bar over the file (use the tab key and arrow keys to move around) and then look at the bottom of the screen, it should tell you what’s missing, or what the problem is.
Note that if you want these modules to become available you’ll need to recompile Asterisk so if you don’t know how to do that, you may want to read up on that first. I used to recommend the page How to upgrade Asterisk on the FreePBX site, but it is getting a bit long in the tooth (basically it skips a couple of steps), however I’m sure you can find current instructions using Google (anyone know of a better page offhand?). EDIT: You might also want to at least take a glance at these more recent articles: Links and Information: Updating an Asterisk/FreePBX system so you can use Google Voice and How to use Google Voice for free calls on an Asterisk 1.8+/FreePBX 2.8 system (the easy way).
The fix is to first install any missing modules – in my case, one thing it complained about was gnutls and it turned out that to fix the problem (under CentOS) I had to do this:
yum install gnutls-devel gnutls-utils
(If it complains about missing repositories, you can exclude them using the --disablerepo=repo_name flag)
Also, if you are going to do this, you may as well get the latest version of iksemel (used by both modules) as it has a few bug fixes, and may need to be recompiled anyway (according to this post on the PBX in a Flash forum, “it’s a dependency for res_jabber.so, which in turn is a dependency for chan_gtalk.so”). Go to http://code.google.com/p/iksemel/downloads/list to find it, save the latest version to your Asterisk server, unzip it to an appropriate location (such as /usr/src/iksemel-1.x) and then do this from the iksemel source directory (where you unzipped the downloaded file):
./configure --prefix=/usr --with-libgnutls-prefix=/usr --with-gnutls
(For the moment don’t worry if it spits out a warning, as long as the configuration is successful)
Then do the typical installation:
make
make check
make install
If that goes well, the next thing to do is go back to your Asterisk source directory, and do the following:
./configure
make menuselect
At this point res_jabber.so and chan_gtalk.so should no longer have the XXX in front of them, and will likely be already selected “[*]” – if not, select the two modules. Then Save and Exit (don’t forget to do this!).
Now it is time to recompile Asterisk. I recommend backing up the system before you do this, in case anything goes wrong, but that’s up to you – it’s your system. If you are not upgrading Asterisk then you should be able to just do the following:
make
make install
If all goes well you should now have the res_jabber.so and chan_gtalk.so modules in your /usr/lib/asterisk/modules directory. If it didn’t go well, see the disclaimer at the start of this article, and remember, I’m not your tech support guy. Feel free to post any issue you encounter in a comment (particularly if you figured out how to resolve the issue – it may help someone else) but please don’t be surprised if I can’t do any more than shoot dumb looks in your general direction!
For more information on Google Talk and Asterisk, see http://www.voip-info.org/wiki/view/Asterisk+Google+Talk
Like this:
Like Loading...
Permalink
July 24, 2010 at 3:41 pm · Filed under Asterisk, Linux, networking, software, Trixbox, VoIP ·Tagged Asterisk, Elastix, FreePBX, how-to, Linux, PBX in a Flash, Perl, Trixbox, tutorial, VoIP
This article has been moved. Please click here to read it.
Like this:
Like Loading...
Permalink
March 9, 2010 at 1:54 pm · Filed under Boxee, consumer, Digital Television, Home Theater, Home Theatre, HTPC, Linux, Linux Mint, Ubuntu, video, XBMC ·Tagged Acer Aspire Revo, Home Theater, Linux, Nvidia, Sharp LC-42SB45U TV, Ubuntu
This article has been moved. Please click here to read it.
Like this:
Like Loading...
Permalink