Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Wednesday, July 4, 2012

Multiple Instances for Skype 4 on Ubuntu

Skype has a new version for ubuntu! Hooray! The Skype 4 has arrived! But the problem is the multiple instances was gone. So I look for a solution for this, and I found this:

1. Install skype (if you haven't yet)

2. We'll create new copies of the installed skype. Open the terminal and run the following commands:
cp -r ~/.Skype ~/.Skype.first
cp -r ~/.Skype ~/.Skype.second

Saturday, June 9, 2012

[Ubuntu] Virtualbox Fullscreen on Ubuntu 10.10 Won't Work

I use Virtualbox to have the Ubuntu 10.10 (64-bit) version in my unit but the Fullscreen function doesn't work properly. If I go to View > Switch to Fullscreen, then the virtualbox window will have a fullscreen but not the ubuntu itself.

So I've research on how to do it and here's what works for me:

sudo apt-get update
sudo apt-get install build-essential linux-headers-$(uname -r)
sudo apt-get install virtualbox-ose-guest-x11 

Apparently, we need to solve first the Guess Additions Issue on Ubuntu 10.10 for the Fullscreen to take effect.

Enjoy! =D

Thursday, June 7, 2012

[Ubuntu] Resize Wubi Disk

If you're wondering what is wubi then let me explain it a bit. Wubi let's you install ubuntu OS via Windows. Although installing ubuntu in a traditional boot-to-CD way still it's more complicated to other non-techie people.

Installing ubuntu using wubi limits your ubuntu drive into 30GB storage disk, not so bad if you're not really using as your primary OS. I, as a web developer and using ubuntu as my primary OS due to my current work, needed to have a larger storage disk but I don't want to backup my file and install ubuntu over again (traditional way). It's a hassle to backup files specially if I need the larger storage right away. So I've done some research and read a lot of articles if it is possible to just resize and extend the storage disk which was installed via wubi. And, yes, I found the solution that works for me.

First, download the wubi-resize_1.5b.sh. Save it on Downloads folder.

Wednesday, May 23, 2012

[Ubuntu] Install PIL in Virtualenv

I look everywhere on how to install PIL without a hitch. After a few reading, searching, frustrations, installing and uninstalling, I finally found the one that works for me (and for you might as well).

Follow the steps on how to install PIL:
1 install the needed libraries
sudo apt-get install libjpeg-dev libpng-dev zlib1g-dev liblcms1-dev python-dev

2 install the dependencies needed to build PIL
sudo apt-get build-dep python-imaging

3 run these commands
sudo ln -s /usr/lib/i386-linux-gnu/libfreetype.so /usr/lib/
sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib/
sudo ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib/

4 Lastly, install PIL
pip install PIL

You should at least see this somewhere
    --- JPEG support available
    --- ZLIB (PNG/ZIP) support available
    --- FREETYPE2 support available

Thursday, May 10, 2012

[ubuntu] Virtualenv

Install
sudo apt-get install virtualenv
OR
easy_install virtualenv

Create environment
virtualenv <folder name>

Create clean environment
virtual --no-site-packages <folder name>

Activate environment
source <folder name>/bin/activate

Deactivate environment
deactivate

Note: you can create your environment in any directory as long as you activate it using the right directory path

Sunday, April 22, 2012

[Ubuntu][Sqlite3] Display all Tables

Here's how to display all tables on ubuntu terminal

Activate sqlite3:
sqlite3 my_database_name.db

Display all tables:
SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;
Related Posts Plugin for WordPress, Blogger...