2012-12-28

Ubuntu - List all USB devices

On the terminal, simply type this command:

lsusb


For more of its options, read
http://manpages.ubuntu.com/manpages/hardy/man8/lsusb.8.html


SQL Server 2012 - Code editor custom color

This guy has a good solution... simple and quick.
http://www.jimmcleod.net/blog/index.php/2012/06/26/beautify-your-management-studio-2012/

2012-12-10

Ubuntu - Timed shutdown from the command line

sudo shutdown -h 23:59 "Custom log message about why you are shutting down."

2012-12-09

Ubuntu - How to pair two devices unto a single Logitech Unifying receiver

(1) Download the files autopair.sh and unify.c from this guy's github page... it is amazing that people take the time to actually do this, and share it... hats off to them.
https://github.com/treeder/logitech_unifier

(2) Make the autopair.sh file executable.

(3) Execute it (double click or from terminal) and follow the on-screen instructions. You basically have to turn off the second device you use to sync (preferably keep using the keyboard's unifying receiver), and when prompted, turn it back on.

Voila!




Ubuntu - How to execute an .sh file

(1) Make sure it is allowed to execute. Right click on it and set, on the "Permissions" tab, the checkbox that reads "Execute... allow executing file as a program". Alternatively, use the following command line:

chmod +x filename.sh


(2) Execute it by either double clicking on it, or using the command line. Below is the command.

sudo ./filename.sh

2012-12-06

Ubuntu - Desktop missing, low resolution, displays don't work

This is how it worked for me, on Ubuntu 12.10... I accidentally installed bumblebee on my desktop computer. I had the nvidia drivers. I ended-up using whatever the default for Ubuntu is, and it works like a charm now (dual display).


  • apt-get purge nvidia-current
  • rm /etc/X11/xorg.conf
  • sudo apt-get update
  • sudo apg-get install ubuntu-desktop
  • sudo service lightdm restart
  • sudo reboot

Voila!