Showing posts with label etc. Show all posts
Showing posts with label etc. Show all posts

Saturday, December 17, 2016

Mount non Linux drives automatically when they are not in etc fstab

Mount non Linux drives automatically when they are not in etc fstab


So, I usually face this problem when Im not using GUI based File Managers. They allow you to auto mount drives when you click on them but when you are using CLI based file managers or no file managers at all, the only way is to mount them through writing commands. Im a lazy fad and I want this done automatically. So heres a script for that. [ https://gist.github.com/Tafhim/5d0839caca813ae82c97 ].

#!/usr/bin/zsh
if [[ "$1" == "" ]] then
echo "Please specify a device name";
exit;
fi;
deviceFile=$1

## Auto mount only ntfs, fat32, vfat
for i in $(ls $deviceFile* | grep [0-9]$); do
blkid -s UUID -o value $i | read z;
blkid -s TYPE -o value $i | read f;
echo "$z is $f";
if [[ "$z" != "" && ("$f" == "ntfs" || "$f" == "vfat" || "$f" == "fat32" ) ]] then
/usr/bin/udisksctl mount -t $f -b $i # https://help.ubuntu.com/community/AutomaticallyMountPartitions
fi;
done


Go to link download

Read more »

Saturday, December 3, 2016

Android Pattern Lock Remover Software For All Sony Xperia Samsung Micromax Karbon Lenovo Lg Etc Without flash Free Download

Android Pattern Lock Remover Software For All Sony Xperia Samsung Micromax Karbon Lenovo Lg Etc Without flash Free Download


Android tabs and phones pattern lock remover software free download for all Samsung, Sony Xperia, Karbon, LG, Micromax for free from the provided link. If you want to remove pattern code of your any android device or tablet then download and install all android device pattern lock remover software to remove pattern lock of your device without flash easily with via USB cable. This is only and worlds best software for removing pattern locks, its latest version v1.02B full installer for windows direct download link is avail at the end of below article.


Android Pattern Lock Remover Software For All (Sony Xperia, Samsung, Micromax, Karbon, Lenovo, Lg, Etc) Free Download

This amazing software for all android device helps you to remove your android pattern lock code without flash just click the downloading link to download setup file for this software and after complete the downloading the setup file double click on the downloaded file to install it on your PC.

Download Pattern Lock Remover Software For All

Go to link download

Read more »

Wednesday, November 23, 2016

Run Code Blocks programs using Gnome Terminal Konsole etc

Run Code Blocks programs using Gnome Terminal Konsole etc


Ok, so we all (mostly) love Code::Blocks. But using the XTerm window (the one you get to test your codes into) is a real pain (for me at least) in the ... Instead I wanted to use the default terminal that I use for commands. Now, Ive been a user of Gnome-Terminal for quite sometime and now have shifted to KDE. So now I use Konsole. Finding the exact attribute string is a bit annoying after each install so heres a collection. Ill add more when I use more.
For Konsole:
konsole --workdir $WORKDIR --title $TITLE -e

For Gnome - Terminal
gnome-terminal $TITLE -x

For X-Term
xterm -T $TITLE -e


Credits:
Eragon0605: [ http://ubuntuforums.org/showpost.php?p=9190211&postcount=3 ]
jens: [ http://forums.codeblocks.org/index.php/topic,11245.msg76596.html#msg76596 ]


Go to link download

Read more »

Wednesday, September 14, 2016

When you cant log into Postgresql from Web Interface Adminer etc

When you cant log into Postgresql from Web Interface Adminer etc


I ran into this problem earlier this week and left it until today, when I needed it work at all cost. Turns out it was a simple issue with the configuration file. Heres the process.

First of all, open the file /etc/postgresql/9.1/main/pg_hba.conf
Find the line : "local" is for Unix domain socket connections only
Below that line there is a line like this: local all all md5
Just change the last value to: peer
So the line now looks like: local all all peer
Now save the file (you need to be root)
Then restart the Postgresql process using the command: sudo service postgresql restart
Done.

Go to link download

Read more »