Sunday, May 3, 2015

How to upgrade your Debian Wheezy to Jessie


cp /etc/apt/sources.list{,.bak}
cat /etc/apt/sources.list
sed -i -e 's/ \(stable\|wheezy\)/ jessie/ig' /etc/apt/sources.list
apt-get update
apt-get --download-only dist-upgrade
apt-get dist-upgrade -y

Tuesday, April 21, 2015

Closing session windows in Byobu

Just recently use Byobu. And finding credible note is royal pain. Will update when I am free.

Close Window/Session

Resize Pane

Monday, September 24, 2012

dpkg problem

Had this problem:

 subprocess installed post-installation script returned error exit status 1

And found a solution here

What I did to recover from this problem;

  1. Go to /var/lib/dpkg/info
  2.  Find the related package problem ended with *.postinst
  3. Delete that particular file
  4. Try apt-get update again, should be working

Error with debconf

I had this problem just now, making my system half-broke!

"Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/ line 44, <DEBCONF_CONFIG> chunk 3."

Searched for the solution and found. To solve,

sudo apt-get install debconf --reinstall

and worked!

Tuesday, September 18, 2012

Lomo plugin for Gimp

1. Install this plugin. Create a folder and extract that zipfile.

2. Use gimptool. As for this time of writing, in Linux Mint Maya 13 (based on Ubuntu 12.04 LTS), I need to install libgimp2.0-dev.


gimptool-2.0 --install-script lomo-gimp.scm

3. Launch Gimp. Go to Filters->Artistics->Lomo Gimp

4. Alter whatever variable that you need.

Thursday, September 13, 2012

Removing comma at then of line

Let say for a file named "filename.CSV"


sed 's/,$//g' filename.CSV

Wednesday, September 12, 2012

Enable USB on Oracle's Virtualbox

I want to mount my USB disk on my Windows as the guest on my Ubuntu host. But need to install a USB extension. Download the extension here. Which version suits you depends.. you may want to test one by one as there is no clear cut or suggested version on the Virtualbox installed.

Go to your Virtualbox menu, File->Preferences

After few straightforward/self-explain buttons, it's good to go!

After the installation, the USB won't be mounted straight away, you need to include the current user into vboxuser as explained here