Skip to main content

Posts

Showing posts from 2014

Ubuntu && Python: Solving "ImportError: No module named OpenSSL"

In order to easily solve the following Python import error on Ubuntu systems: ImportError: No module named OpenSSL You can install the relevant package using the following command: $ sudo apt-get install python-openssl  The other option would be to install the OpenSSL paackage using Python's pip : $ sudo pip install pyOpenSSL Good luck! - Tal Kain

Ubuntu and Gnome: Moving the Close, Maximize and Minimize buttons to the right corner.

A quick tip: One of the first things that I do after setting a new Ubuntu system is changing the location of the Close && Minimize && Maximize buttons to be on the right side of the window. There are several ways to achieve this, but the simplest way is using the command line, running the following command: gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close" (The colon should be on the left side of the string) -Tal

Ubuntu: Fixing issues with apt-get after installing Steam client

After installing the latest Steam client ( http://store.steampowered.com/ ) on my Ubuntu 14.04 using the Ubuntu Software Center, I decided to install another package using the package manager. As a first step I ran apt-get update , which (you guessed correctly) failed fetching several index files: Err https://private-ppa.launchpad.net precise/main amd64 Packages               HttpError401 Err https://private-ppa.launchpad.net precise/main i386 Packages                 HttpError401 Ign https://private-ppa.launchpad.net precise/main Translation-en_US           Ign http://security.ubuntu.com trusty-security/main Translation-en_US     ..... ...  W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/steam/ubuntu/dists/precise/main/binary-amd64/Packages  HttpError401 W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/steam/ubuntu/dists/precise/main/binary-i386/Packages  HttpError401 E: Some index files failed to download. They have

Running virt-manager from its master branch (1.0.1) on Ubuntu 14.04

Hey all, After upgrading my system from Ubuntu 12.04 to Ubuntu 14.04 I decided to check whether the latest package of virt-manager  (  http://virt-manager.org/ ) comes with the feature that I needed the most - snapshots. Unfortunately, The current Ubuntu 14.04's version of virt-manager is still based on the 0.9 branch, So I decided to clone the latest version from the project's git repository (  https://git.fedorahosted.org/git/virt-manager.git ) and try it out. While doing so, I had several issues which I will list here so you won't have to waste your time doing the same research. Summary for busy people There are several packages that you will need to install: $ sudo apt-get install gir1.2-libvirt-glib-1.0 python-ipaddr libosinfo-bin libosinfo-1.0-dev libgtk-3-dev gir1.2-gtk-vnc-2.0 python-spice-client-gtk gir1.2-spice-client-gtk-3.0 This should fix all the following issues. End of summary for busy people After the git-clone's process was over, I r

Saving space on an SSD hard drive using Sysinternal’s Junction

(NOTE: This is a post that I made on March 4, 2012 that I re-post on this blog after restoring it using archive.org ) ---------------------------------------------------------------------------------------------------------- Not so long ago I decided to buy myself a new computer (since my old one could handle the pressure), I bought myself two hard drives: OCZ Vertex2 60GB Western Digital Caviar Blue (1TB) The SSD for the operating system and the Caviar Blue for all my data. I installed my Windows 7 Ultimate edition (with no SP1), Visual Studio, Office and updated them all using Windows Update. After doing so, I was amazed to find out that I had only 20GB left on my SSD drive – bummer… In order to find out what is taking me so much space I used WinDirStat ( http://windirstat.info ) and find out that my C:\WINDOWS\Installer folder took almost 6GB of my expensive SSD space! After searching the web for a while I found out about Mark Russinovich’s tool called "Juncti

BinDiff error: "Can't start disassembler. Please set correct path in the main settings first"

After installing  BinDiff  and running the application for the first time on my Windows 7 x64 machine, I tried comparing two different binaries but got an error in the middle of the process: Can't start disassembler. Please set correct path in the main settings first The solution for this error is very simple: While installing BinDiff, the installation process asks for the installation path of IDA. The default path (on x64 machine) would be C:\Program Files (x86)\IDA\. This is not always correct. At my case the installation was at C:\Program Files (x86)\IDA 6.3\. Moving the path inside BinDiff will not be sufficient since part of BinDiff's files are still on the old directory. Easiest way to fix it (or by doing it in advance): Uninstall BinDiff and install it while pointing to the correct IDA's path. -Tal

Python PIP Error: Unable to find vcvarsall.bat

While trying to install the Python's  PIL  package on my Windows 7 machine using  pip  I came across this error: Error: Unable to find vcvarsall.bat Although I had Visual Studio 2010 installed, and made sure the batch file exists and the batch file creates the compilation environment correctly, I still got this error. Googling the issue brought this question  with this specific  solution . The short answer (credits to  fmuecke ) is to point the environment variable  VS90COMNTOOLS to the value of   VS100COMNTOOLS . SET VS90COMNTOOLS=%VS100COMNTOOLS% This solved the issue. -Tal