Mounting NTFS Disk on a Mac in read-write mode

by admin on February 24, 2017

if you have an external hard drive with NTFS format, you cannot write to disk on your MacOS system. NTFS format used in windows system and is mounted on MacOS in read only format due to some security reasons!

you can format your hard disk to FAT32 dormat to be readable and writable in Windows and Mac or use some 3rd party application to write on NTFS disk. but there is a simple way to mount NTFS disk on MacOS in W/R mode.


NTFS-3G is an open source cross-platform implementation of the Microsoft Windows NTFS file system with read-write support

1- if you don’t have brew package manager on your Mac, install it as described on

2- Install NTFS-3G and its dependencies from Homebrew by opening a Terminal and entering the following command.

3- I’ve prepared a simple shell script that you can use it to mount NTFS disk in read-write format manually. you can download script from here and make it executable by running below command.

Note: before running the script you should unmount your readonly mounted disk via pressing eject button on file manager.

please note that my external hard disk device mounted in system as /dev/disk2s1, so if your disk mounted as a different device in your system, you should check detected hard disk name on your system by checking your devices under /dev/ directory and replace it with disk2s1 in script with yours and then run it.

now run the script in terminal and wait for 5 second. your disk will be mounted in read-write format and you will get success message in script output. now you can use a file manager like File Commander to browse the disk.



Connecting to PostgreSQL DB using Oracle SQL Developer

by admin on June 27, 2016


Oracle SQL Developer 4.x surely does support connections to PostgreSQL DB. you should download JDBC driver for Postgres from here:

If you are using the 1.6 then you should use the JDBC4 version. you can check installed JVM java version on GNU/Linux by running below command:

If you are using 1.7 then you should use the JDBC41 version.

If you are using 1.8 then you should use the JDBC42 version

If you are using a java version older than 1.6 then you will need to use a JDBC3 version of the driver, which will by necessity not be current
after downloading suitable JDBC package based on installed JVM version on your machine, in SQL Developer go to:

Tools → Preferences, Database → Third Party JDBC Drivers

and add the downloaded jar file. now just make a new Database Connection and instead of Oracle, select PostgreSQL tab and connect to your database and enjoy! 🙂

installing sql developer v4.1.3.20 on ubuntu 16.04

by admin on May 5, 2016

in order to install sql developer v4.1.3.20 on ubuntu 16.04 follow below steps:

download package from here (for 64bit system only)

Extract package to /opt:

Installing Java openjdk jre and jdk package:

Linking over an in-path launcher for Oracle SQL Developer:

to prevent error: ./sqldeveloper: Permission denied

Run SQL Developer:

Note: When you run Sql Developer at the first time, you need to specify the path of JDK’s folder. In my computer, JDK stored at /usr/lib/jvm/java-1.8.0-openjdk-amd64

  • Finally, create desktop application for easy to use:

    add this lines:

    then type:

Resize a VirtualBox VDI Disk under Linux

by admin on November 21, 2014

Resize VirtualBox Disk Image — easy way!

just open a terminal and run below command:

You’ll  get a message from 0 to 100% and done!

i’ve resize my windows7 VM VDI file under linux host. after this step you should restart you machine and go to my computer, right click and manage, go to storage, right click on the disk you expand, click on extend volume and resize and enjoy!

configuring sendmail

by admin on November 12, 2014

1- install sendmain-cf

2- change directory to /etc/mail and take a backup from original files.

3- edit below config file:

you should remove dnl from below line:

  • LOCAL_DOMAIN (‘localhost.localdomain’) dnl
  • FEATURE (masquerade_envelope) dnl
  • FEATURE (masquerade_entire_domain) dnl


and enter your domain name that you want to use – such as localhost

  • MASQUERADE_AS (‘localhost’) dnl
  • MASQUERADE_DOMAIN (localhost) dnl

and then:

now you can send test email: