How do you know type of codec is your movie?

Gspot might be able to help.
Download here.

19. July 2014 by Basri MY
Categories: Web | Leave a comment

Doa ringkas selepas solat

image-z-01

Dengan nama Allah yang Maha Pemurah lagi Maha Penyayang.

Segala puji bagi Allah Tuhan pentadbir seluruh alam. Selawat dan sejahtera semoga dilimpahkan ke atas junjungan besar Nabi Muhammad yang semulia-mulia pesuruh-Nya, serta ke atas keluarga dan sekalian sahabat-sahabatnya.

Ya Allah, wahai Tuhan kami, hidupkan kami dengan iman, matikan kami dalam iman, serta masukkan kami ke dalam syurga bersama-sama iman.

Ya Allah, ya Tuhan kami, ampunilah segala dosa kesalahan kami dan dosa-dosa kesalahan kedua ibu bapa kami, serta kesihanilah kedua ibu bapa kami sebagaimana mereka berdua mengasihani kami semasa masih kecil.

Ya Allah, akhirilah umur kami dengan kesudahan yang baik dan janganlah kiranya Engkau akhirkan umur kami dengan kesudahan yang tidak baik.

Ya Allah, ya Tuhan kami, janganlah kiranya Engkau pesongkan iman kami sesudah Engkau kurniakan kepada kami petunjuk. Anugerahilah kami rahmat kerana sesungguhnya Engkau Maha Pengurnia.

Wahai Tuhan kami, kurniakanlah kepada kami kebaikan di dunia ini dan juga di akhirat, dan peliharalah kami daripada azab neraka.

Semoga Allah mencucuri rahmat dan sejahtera ke atas junjungan kami Nabi Muhammad dan ke atas seluruh keluarga dan sahabat-sahabat baginda. Dan segala puji itu tertentu bagi Allah, Tuhan pentadbir seluruh alam.

Link asal di sini.

04. July 2014 by Basri MY
Categories: General | Leave a comment

rsync without password (cron)

Link here:

http://www.thegeekstuff.com/2008/06/perform-ssh-and-scp-without-entering-password-on-openssh/

Additional info, to make the ssh-agent key added permanently and not restarted everytime SHELL is loaded:

http://serverfault.com/questions/281957/ssh-agent-ssh-add-at-reboot

09. June 2014 by Basri MY
Categories: Linux | Leave a comment

Reset public_html to default public permission

cd public_html
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

06. June 2014 by Basri MY
Categories: Linux | Leave a comment

Install curl on Ubuntu

sudo apt-get update
sudo apt-get install php5-curl
sudo service apache2 restart

17. May 2014 by Basri MY
Categories: Linux | Leave a comment

The easiest way to install phpmyadmin on Ubuntu

sudo apt-get install phpmyadmin

If necessary do this:
sudo nano /etc/apache2/apache2.conf
and insert this line:
Include /etc/phpmyadmin/apache.conf
Else you can comment it later.

sudo service apache2 restart

13. May 2014 by Basri MY
Categories: Linux | Leave a comment

The easiest way to install LAMP & Webmin on Ubuntu

Here is the 5 minutes installation steps:

sudo su
sudo apt-get update
sudo apt-get install tasksel
sudo tasksel
sudo apt-get install nano

sudo nano /etc/apt/sources.list
Enter this entries, then save & exit:
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

cd /root/
wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
sudo apt-get update
sudo apt-get install webmin

sudo apt-get install apache2-suexec-custom
cd /etc/apache2/suexec
sudo nano www-data
Change the ‘/wwwroot’ to:
/home
apache2ctl restart

13. May 2014 by Basri MY
Categories: Linux | Leave a comment

Moving files to another hosting provider

There are few ways to quickly move from one hosting provider to another. Some of them:

1. Manually download via FTP client, and upload them to new host

2. The quicker one, do it over SSH command line

Okay for 2nd option, I will need SSH access both for old server and new server.

Then I will do database backup & restore. More of it here. But how do I transfer the database? After dumping it, I just put it on my old website and start downloading it from new server using WGET command.

Example:

wget http://www.mydomain.com/files/dump1.sql

File dump1.sql will be saved to current directory and restoration of database can be done from there.

Later I will start to transfer my files. What I will need is to compress the whole directory into a single tar file. For example:

tar -zcvf myfiles.tar.gz public_html

I will put myfiles.tar.gz to my old site and it’s now downloadable.

Then via the SSH at new server, I will get the file with:

wget http://www.mydomain.com/files/myfiles.tar.gz

After download complete, I will need to uncompress it:

tar -zxvf myfiles.tar.gz

Later I will need to change the owner and group of the files with:

chown -R [user] public_html
chgrp -R [group] public_html

I will then move the files to user folders.

13. May 2014 by Basri MY
Categories: Linux | Leave a comment

Linux – search for list of big files recursively

find . -type f -exec ls -s {} \; | sort -n -r | head -5

. is current directory

-5 can be 10 or 20

13. May 2014 by Basri MY
Categories: Linux | Leave a comment

Ubuntu, LAMP, Webmin & Virtualmin – do you need all those?

What do I think of Ubuntu, LAMP, Webmin & Virtualmin after having my on time setting them up?

For those looking to host website with own domain names:
You need LAMP, Webmin & Virtualmin.

For those looking to host website for intranet usage:
LAMP & Webmin will do.

Thanks to this list of reference:

http://crybit.com/webmin-on-ubuntu-12-04/

https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu

http://www.unixmen.com/install-lamp-with-1-command-in-ubuntu-1010-maverick-meerkat/

13. May 2014 by Basri MY
Categories: Linux | Leave a comment

← Older posts