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
Ctrl+F6

Resize Pane
Alt+Shit+Rigth/Left

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/File.pm 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.

Afterwards,

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"

Use;

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

Monday, September 10, 2012

rsync using non standard SSH port

For some reason, you want to listen SSH on different port. Let say you want to minimize SSH illegitimate attempt by deceiving the people out there with so called "closed port" (I learned this from Mr Adli Wahid, the then VP of CyberSecurityMalaysia). 

Rsync can be mapped with SSH, but by using the normal -e ssh flag it will use the default port 22.

To use with you personalized port, let say port 60000 use

rsync -avz --progress -e 'ssh -p60000' 

and the rest of the command.

That's all, worked for me.