up

Blogs

When Gmail disallow mail client login

When you use email client (ThunderBird, Outlook, Outlook express) or any special app to connect to google mail imap or pop3 service you may run into one of these error messages:

  • [WEBALERT http://something-secret-url] Web login required.
  • NO failed: Re-Authentication Failure

These are tipical problem when you do not use Weblogin (https://gmail.com) on from the same IP.

Here is the solution:

Blog categories:  Linux

3gp or 3ga to mp3

We have already learned how to convert jpeg files to pdf on Linux. Now I am going to show you how you can convert .3ga or .3gp audio files to mp3 or ogg. Of course I use Ubuntu.

If you type in Google that "3gp to mp3 linux" thing, you found the ffmpeg command. That's OK. But somehow I cannot make this ffmpeg wokr on my Ubuntu. So I found another way to converting 3gp to mp3.

Gnac

Gnac is an audio file converter application. You can install with

Blog categories:  Linux
Blog tags:  linux

How to disable chrome caching on Ubuntu?

I bought SSD drive to my laptop, so I decided to minimize write I/O on my system. The less writing is a good idea even you have a HDD. Your system become faster in this way.

There are some good starting point:
https://wiki.debian.org/SSDOptimization
http://askubuntu.com/questions/1400/how-do-i-optimize-the-os-for-ssds

The best linux copy and backup method: Rsync vs cp

I need a method I can make a backup from my laptop. I used a USB HDD for that and linux prompt.

1. step: Make an initial copy of your data

So, after i mount my USB HDD I used first time the cp command of course.

Blog categories:  Linux  Unix admin

How to convert your real system to virtual machine?

I had a real Linux server system that I need to convert into virtual server, because I wanted to sell my old hardware, but I needed the system as backup. This backup is able to run as virtual server. This is a very useful backup method. This tutorial show you how you can convert your whole system into virtualbox system. Virtualbox is a free opensource virtual computer solution from Oracle.

1. Backup your system disk

If you can, put your system disk to another computer. But if you can't do it you can do it the original system.

HTTP AUTH logout method

This code cause logout feeling for your user. The browser will ask again the username and password.

<?php
  header('WWW-Authenticate: Basic realm="protected area"');
  header('HTTP/1.0 401 Unauthorized');
?>

I use it with a logout controller, that set a session variable to true and redirect the request to the home page. And the home page check this session variable, and if it true, it sends these headers and set back the session variable to null.

Blog categories:  Web development

SATA HotPlug and HostSwap in Ubuntu Linux

Check active scsi devices:

ubuntu@ubuntu:~$ lsscsi
[1:0:1:0]    disk    ATA      SAMSUNG HD103SJ  1AJ1  /dev/sda
[2:0:0:0]    disk    ATA      SAMSUNG HD103SJ  1AJ1  /dev/sdb
[3:0:0:0]    cd/dvd  HL-DT-ST DVDRAM GH22NS90  HN00  /dev/sr0
[5:0:0:0]    disk    Generic  STORAGE DEVICE   9451  /dev/sdd
[6:0:0:0]    disk    GT-I5700  - Card                /dev/sdc

Now refresh SCSI devices. Use this command to refresh host0 (or host1, host2, host3):

ubuntu@ubuntu:~$ echo "- - -" | sudo tee -a /sys/class/scsi_host/host0/scan 

Check the result:

SSH port forwarding in nutshell

My goal:
I want to see the intranet website from home with my linux laptop. I can connect over SSH to the intranet web server. But I want to see the webpage in a browser of my laptop.

The solution is SSH port forwarding. From my Linux laptop. Here is the syntax:

ssh -L <myPortNumber>:<RemoteIP>:<RemotePort>  <host> [other ssh options like port and user]

I used this:

ssh -L 8088:127.0.0.1:80  intranetserver.example.com

Now I can click to http://localhost:8088/ on my favorite browser and I can browse the intranet.

Blog categories:  Linux  Unix admin

Open Source CRM Comparison

I would like to choose an ideal CRM for a client. It must be open source. But I don't know CRM systems. I'm starting discover world of CRM systems by this post.

1. Zurmo

Pro:
Awesome design and user interface
Fast ajax and Yii in use
You can configure data structures (contact, company, task, meeting). You can extend anything with custom fields.

Con:
Very young CRM with actually smaller community than other CRMs
Some feature is missing: E-mail marketing, Google Calendar integration, etc.

2. vTiger

Blog categories:  Web development

UEFI BIOS Windows 7 installation problem and solution

New ASUS K55 Laptop with UEFI Bios

I have a client who bought an ASUS K55VD laptop. This laptop is coming with Windows 8. But my client had bought a windows 7. So He wanted to use this windows 7 on his new laptop. I had another task. I had to change the HDD to SSD. It sounds easy, doesn't it?

Problems was coming...

I have never seen UEFI BIOS before. I did not think this will be a challenge for me. I tell the truth I wasted a lot of time to install the OS.

Blog categories:  Hardware