Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Monday, September 1, 2014

Dell Sputnik Tip: Mouse / Cursor is broken or frozen after resuming from suspend or sleep

For some reason my third generation Dell Sputnik (aka Dell XPS13 with Ubuntu pre-installed) sometimes has a frozen or broken mouse / cursor after I suspend or sleep my laptop.  You can easily get it working again (this is not a permanent fix) by switching to a different TTY and then back to the TTY that holds the x-server GUI.

  • ctrl+alt+F6 to switch to TTY6 (this will give you a terminal)
  • Do nothing in the terminal
  • ctrl-alt+F7 to switch back to the TTY7 which is the Ubuntu x-server
  • Voila... your mouse should be working again.

If anyone has a permanent fix, please let me know.

Thursday, August 21, 2014

Installing Cython - x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-fstack-protector-strong’

I went around and around trying to get Cython install on my Ubuntu 14.04 LTS box.  I kept getting:

x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-fstack-protector-strong’

Turns out that the ‘-fstack-protector-strong’ option was not added to the GCC compiler until version 4.9.  Upgraded my GCC to the latest available fixed the issue.

Tuesday, August 19, 2014

The City of Munich -- Switching Back to Windows from Linux?

 Munich’s much vaunted migration to Linux could be about to unravel, sending the city back into the fee-driven bosom of Microsoft.

http://www.omgubuntu.co.uk/2014/08/munich-city-linux-switching-back-windows

The City of Munich, Germany has been a Linux user for over 10 years but it appears that city employees are clamoring to switch back to Windows.

The issue I see is that they built their own distribution - LiMux. It was originally based on Debian and then switched to Ubuntu. The last stable release of LiMux was in 2011 and is based on Ubuntu 10.04 LTS which was released in April 2010. That version of Ubuntu is seriously old in the tooth now -- even Microsoft releases new version of Windoze faster.

Seems to me that the City of Munich suffers from "Not invented here" syndrome and would be better off if they just switch to an vendor with commercial support like Ubuntu or Red Hat instead of trying to build and maintain their own distro.

Friday, July 25, 2014

Logitech Unifying Receiver Pairing on Linux

This post is mostly for my future reference. Really simple to pair a new mouse with an existing receiver on Linux.

ltunify is a program resulting from the gathered knowledge on the Logitech HID++ protocol. It allows you to pair additional devices like keyboards and mice to your Unifying receiver, unpair existing devices and list information about connected devices. This section will show you how to install the ltunify program.

Besides a C compiler and a way to fetch sources (wget+tar or git), you will need Linux 3.2 or newer with the hid-logitech-dj module. On Debian and Ubuntu distributions, the required packages can be installed using:

sudo apt-get install git gcc

Fetch the sources and install ltunify to $HOME/bin/ using the next commands:

git clone https://git.lekensteyn.nl/ltunify.git
cd ltunify
make install-home

The following steps will assume that $HOME/bin is available in your path. If not, run:

export PATH="$HOME/bin:$PATH"

If everything went well, you should be able to run ltunify --help to show the available options:

Usage: ltunify [options] cmd [cmd options]
Logitech Unifying tool version dev
Copyright (C) 2013 Peter Wu <lekensteyn@gmail.com>

Generic options:
-d, --device path Bypass detection, specify custom hidraw device.
-D Print debugging information
-h, --help Show this help message

Commands:
list - show all paired devices
pair [timeout] - Try to pair within "timeout" seconds (1 to 255,
default 0 which is an alias for 30s)
unpair idx - Unpair device
info idx - Show more detailed information for a device
receiver-info - Show information about the receiver
In the above lines, "idx" refers to the device number shown in the
first column of the list command (between 1 and 6). Alternatively, you
can use the following names (case-insensitive):
Keyboard Mouse Numpad Presenter Trackball Touchpad

The below session shows you how to use a device index to unpair a mouse.

$ sudo ltunify list
Devices count: 1
Connected devices:
idx=1 Mouse M525

$ sudo ltunify unpair 1
Device 0x01 Mouse successfully unpaired

$ sudo ltunify list
Devices count: 0
Connected devices:

$ sudo ltunify pair
Please turn your wireless device off and on to start pairing.
Found new device, id=0x01 Mouse

$ sudo ltunify list
Devices count: 1
Connected devices:
idx=1 Mouse M525

It is also possible to select a device by device type (case-insensitive). When multiple devices of the same type are available, the first one will be selected.

$ sudo ltunify unpair mouse
Device 0x01 Mouse successfully unpaired

Thursday, March 7, 2013

AirDroid - Manage your Android from your Computer Browser

http://youtu.be/WfNnQxpw7Uw

I need to transfer some video files from my Ubuntu computer to my Nexus 7. I couldn't get MTP via USB to work right.

Luckily, I found this nice Android application (free - no ads) that gives you a simple virtual desktop of your Android in your browser. I was able to upload my videos over WiFi in just a few seconds.

You can get AirDroid in the Google Play Store

Monday, May 24, 2010

The Feud: Debian-Ubuntu Relationship (via Debian.org Mailing Lists)


On Fri, Apr 30, 2010 at 10:32:09AM +0200, Stefano Zacchiroli wrote:

>   I've been invited to give a talk at the forthcoming Ubuntu Developer
> Summit, on May 13th in Brussels. I've accepted, since I'd like to take
> the chance of the talk to present to the Ubuntu (and Canonical) people
> how we feel about the state of the Debian-Ubuntu relationship. I'm
> therefore seeking your feedback on the topic, in order to present our
> views rather than mine only.





So, I'm now back and with some feedback to share. I'll first post (in
this mail) a summary of the replies I got to this "poll" and later on a
more general summary of what I did at UDS.




Figures



I got about 50 feedback mails in a bit less than 2 weeks, which I
consider a fair amount of feedback. In case people are interested in
giving more feedback, by all means go ahead and mail me. The more, the
better. Obviously, the summary I report below is limited to the
feedback mails I got thus far.



Success stories



I got quite an amount of "submissions" for the success stories category
(frankly, more than I expected).



The most appreciated collaboration paradigm between Debian and Ubuntu
seems to be "mixed teams", where people from both distros work together
using some $VCS. I got report about a dozen such teams, of varying sizes
from a handful of packages to several hundreds. An interesting and
appreciated trend is that such teams usually lead to a direct
involvement in Debian by Ubuntu people: first as DMs, then as DDs, and
in some cases also to greater involvement such as becoming members of
our core teams (e.g.: ftp-master).



Other reported success stories are in the development of some core tools
such as dpkg and d-i where, starting from Ubuntu-specific needs, generic
technical solutions have been developed, benefiting not only Debian and
Ubuntu, but all possible Debian derivatives.



People also appreciate bug filing from Ubuntu [1] (especially if with
patches [2]) in the context of large changes such as the default gcc
version.



Interestingly enough, even for parts of the two distros that are
packaged independently (e.g. GNOME), some Debian people have now more
trust in Ubuntu patches than in the past and that entails a more
fruitful exchange or cherry pick of patches.



[1] http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=origin-ubuntu;users=ubuntu-devel@lists.ubuntu.com


[2] http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ubuntu-patch;users=ubuntu-devel@lists.ubuntu.com




FAIL.



Now to what people don't currently like in the Debian-Ubuntu
relationship.



I won't spare much mail space to discuss episodes that concern
individuals. In fact, one such episode (i.e. the "python affair", see
#573745) has been reported by several people, and details can be found
in the tech-ctte bug log.



Beside that, people don't like when Canonical does not behave as a good
upstream, e.g. when they are not reactive to Debian developers as their
downstream distributors. More generally, people would like to see
efforts in packaging Canonical software---when is not Ubuntu
specific---into Debian directly.



Similarly, people don't like when Ubuntu does not behave as a proper
downstream. In particular, there seems to be a desire to have more
triaging of Launchpad bug and then forwarding to the Debian BTW when
they apply to Debian too (no surprise here: it is the most "traditional"
complain Debian had wrt Ubuntu).



Several people do care about the status of their Debian packages in the
Ubuntu distribution. As a consequence, those people find annoying when
those packages degrade in quality due to reasons not under their control
(e.g. they are synced in bad moments, patched inappropriately, etc.);
that seems to mostly affect the Ubuntu universe.



Requests



The last category of feedback sought in the poll was "requests".



A recurrent request is to give more credit to Debian. Coming from the
tradition of free software, people have no problem with the fact that
Ubuntu benefits from Debian work, but they feel that the mantra "give
credit where credit is due" should be better respected. All in all,
people don't like the equation "GNU/Linux = Ubuntu" which is slowly
getting through.



Another recurrent request is to push the culture of "do changes in
Debian first". That would mean discussing changes in Debian first; then,
*if* an agreement can be reached (which is not necessarily the case, of
course), people would like to see those changes implemented in Debian
first; from there, they will naturally flow to Ubuntu.



Then, I've also collected tons of technical requests related to how
Debian people can more easily interact with the Ubuntu infrastructure
(most notably with Launchpad) in "their" way, i.e. via mail, via the
Debian BTS, etc. In that category---that I won't detail to avoid abusing
your patience---there is stuff like: an opt-in service to be notified of
Launchpad bugs, Ubuntu accepting uploads from our keyring, Ubuntu having
something like patch-tracker.d.o to better split patches, etc.



While on the above I've noticed no real convergence, it seems that in
general those Debian people which care about their packages in Ubuntu,
would like to have a contact point where to drop sync requests. It seems
that using the suggested way to do that (don't ask me what it is :))
does not really work, as they get lost in the noise or similar.


Ok, for the first time I've seen -- a real account of the feud going on why some people are hating Canoncial (the makers of Ubuntu). Lately, I see 140 character posts on Twitter or Identi.ca that is just "complaining" without any real concrete reasons. If this is the reason, then there is something you complain about. However, denting/tweeting is not a good format.

Wednesday, May 19, 2010

Alien Arena - Fix audio/sound on Ubuntu

Just recently started playing Alien Arena for fun (free) on Ubuntu which is Quake II or Unreal Tournament.  AA is available for Windows, Linux and FreeBSD.  However, I found that after upgrading to Ubuntu Lucid 10 that the audio no longer functioned.  Open up Synaptic Package Manager and see if "libopenal1" is installed.  Installing the Open Audio Library packaged fixed the issue for me.  See you on AA.

Thursday, April 15, 2010

Ubuntu - Screen Dims When Watching Hulu / YouTube

I was majorly annoyed when this was happening so I when to check the power management settings (System -> Preferences -> Power Management) and made sure that "Dim Screen When Idle" was unchecked for both AC and battery settings.  Darn both of those options were unchecked and I just lived with having to move the mouse for a couple of weeks.


What you need to check is your Screensaver settings (System -> Preferences -> Screensaver).  By defualt, the screeensaver is "Blank Screen" and the timeout for "idle" is rather low.  So uncheck "Activate screensaver when computer is idle" or increase the slider for "Regard computer as idle after...".  This solved my problems and I'm posting this so I don't forget.

Wednesday, April 14, 2010

USB to Parallel Converter - TrendNet TU-P1284 on Ubuntu using HP Series II Printer

I own an aging, but trusted workhorse of a printer - HP Series II.  My printer was built in 1987 and to the surprise of many the toner cartridges are still available from mass retailers.  The crux of getting old in the printer world is my Series II only has an LPT port and most new computers (even desktops) no longer have LPT ports.  This was the issue for me in the recent years where I only had one computer (a Shuttle mini-box) with an LPT port.  This was fine until our recent move and I now longer want to have my Shuttle system setup to just for my occational printing needs.


Enter the TrendNet TU-P1284 USB to Parallel Convert which I just got off Amazon for a cool $14.  I'm using Ubuntu and CrunchBang as my operating systems.  As any Linux user knows, having a manufacturer listing Linux support is pretty rare for the little items like a converter (although I am noticing it more and more).  So the cable arrived today and I hurried unpacked it. I plugged it in and a big fat... nothing.  CUPS would not even recognize a new printer connected.


After a whole bunch of Googling and a few thoughts of returning the cable to Amazon, I found a bug from a few years about about foomatic not recognizing printers connected via usb to parallel converters. So instead of editing CUPS configuration files I decided to check if I could find in "/dev/usb" if Ubuntu actually saw the usb converter plugged in and Ubuntu did at "/dev/usb/lp0". I was right! It was mirrored at /dev/usblp0.  So I tried adding a printer again in CUPS by using this device URI "usb:/dev/usblp0" (yes, a zero - "0") and the test page did not work.  I reviewed that bug report again and noticed his HP printer only worked when using the device URI of "parallel:/dev/usblp0".  That worked and I was able to select the printer driver for HP II (there are three available) and had a successful test page printed.


So I'm posting this for two reasons:



  1. Google did not come up with any immediate results that helped me.

  2. I will forget how I set this up by tomorrow and next time I switch computers around in my office I will up a wall trying to figure this out again.


Hope this helps somebody else out there.

Sunday, December 27, 2009

Monday, November 2, 2009

Ubuntu 9.10 Upgrade - The Best Upgrade Experience

Last night, I upgraded my main development machine from Ubuntu 9.04 to 9.10.  Wow!  What a great experience and I'm not being facetious here.  Anybody who's ever done an upgrade on any operating system knows that upgrades tend to be a bit nail biting. I recall my first service pack 1 upgrade for Windows XP system.  Ouch!

So upgrading my Ubuntu installation was simply as easy as click upgrade and entering my system privilege password.  It took about an hour, but admittedly about 45 minutes of it downloading about 1500 packages over my slow internet connection.  The other option was to get a torrent file and that would have taken about 15 minutes to install, but I was being lazy and didn't want to fire up BitTorrent.  When it finished and it prompted me to restart my machine.  Voila! I was done -- Gossip Girl episode uninterrupted.

I was surprised by the faster boot time and barely got to see the new start up screen.  A bunch of security related changes were made including changes to how applications like CUPS are jailed via AppArmour.  However, the most interesting bundled change is the ability to encrypt your home directory:

During installation, Ubuntu 9.10 now offers the option of setting up an encrypted home directory. The technology required for this – eCryptfs, a stackable, encrypted file system that is placed on top of the home directory – has been part of Ubuntu for some time. However, the users of the distribution's desktop version previously had to set it up themselves on the command line; now, a simple mouse click during installation is all that is required
(via h-online.com)

Since I upgraded, I didn't get the option to turn on eCryptfs so I'm going to be looking to turn that on soon.  If my laptop was ever stolen, I'd like to have the peace of mind that my electronic bills and personal documents are not so easily accessed.

I haven't had the time to check out UbuntuOne which looks really cool akin to DropBox.  Looks like my LaunchPad account will be used for more than just filing tickets on Gwibber:

Ubuntu One is a new Canonical service for all Ubuntu users: It offers 2GB of free internet storage which can be used for tasks like synchronising data across multiple Ubuntu installations, making files available to other users, or simply backing up information. To take advantage of Ubuntu One, users need a Launchpad account – those who don't have one already can set up an account when first accessing Ubuntu One (under Applications/Internet in the start menu).
(via h-online.com)

So far I'm having a great Karmic Koala experience.  Now, have you thought about trying Ubuntu?  Try out a LiveCD version first to get a feel before replacing your jailed proprietary operating system with sweet satisfaction of freedom.