Install Torrent client on Raspberry PI

Transmission is a BitTorrent client which features a simple interface on top of a cross-platform back-end. Transmission is free software licensed under the terms of the GNU General Public License (GPL), with parts under the MIT License. Now my experiment is installing transmission on Raspberry PI. Transmission is perfect when combined with XMBC or raspbmc.

The steps:
1. Open your terminal
2. Run “sudo apt-get update”
3. Then install transmission with nano text editor

sudo apt-get -y install transmission transmission-daemon nano

4. Make sure transmission service start and then stop it.

sudo service transmission-daemon start && sudo service transmission-daemon stop

5. You will need to change the transmission config, so edit it with

sudo nano /etc/transmission-daemon/settings.json

6. Change the username,password, and port that transmission will use. Don’t forget to change rpc-enabled: true and rpc-whitelist-enabled become false, if you want transmission web gui to be accessible from any host.

7. Start transmission service

sudo service transmission-daemon start

8. You can access transmission web gui using youripaddress:yourport (example: 192.168.1.10:9091)

How to get free itunes gift card

Want to download a paid app but do not have a credit card/ paypal from itunes / google play? There is a solution for your problem!

Freemyapps is a app that uses a point system to change with google gift card or itunes gift card.

How easy?
just click image below
freemyapps

How we can get the points for receiving gift cards?
we can download the app available in the links list (select the greatest points) and we must use that app for around 30 seconds. After that you will gain some certain point.

How to set up a web cam server on Raspberry PI

Device you need:

-Webcam (check your device compability at http://elinux.org/RPi_VerifiedPeripherals#USB_Webcams )

 

Install and set-up motion. In a command line terminal type the following (in order)..

sudo apt-get install motion sudo apt-get install ffmpeg

There will be a message similar to the one below, you can ignore it for now.

/etc/default/motion – disabled by default

Next, type the following commands which will add the motion user to the raspbian group and allow the raspbian user to access the web cam. If your’e using the debian squeeze distro replace the raspbian user with pi.

sudo usermod -a -G raspbian motion sudo usermod -a -G video raspbian – lets local user access webcam

Now type the following :

cd /home/raspbian (or /home/pi) mkdir motion chmod 775 motion sudo chmod 555 /etc/motion/motion.conf

Next we change the defaults for motion (these are the values I use, but the motion.conf file shows all possible options).

sudo nano /etc/motion/motion.conf

Find and change/set the following values :

daemon off -> daemon on process_id_file -> /home/raspbian/motion/motion.pid
width 320 -> 640 (this is optional and will increase the processor usage) height 240 -> 480 (this is optional and will increase the processor usage) framerate 15
max_mpeg_time 0 (change from 0 to a reasonable amount (12000), or you'll end up with a rather large video file) output_normal best (saves the best image from recorded motion)
ffmpeg_cap_new off (change this to 'on' if you want to record motion to a video file)
ffmpeg_video_codec swf -(change to mpeg4 if you rather record video to an .avi file, this only works with ffmpeg installed) target_dir /tmp/motion -> /home/raspbian/motion (where you want to store videos/pictures of motion)
webcam_quality 75
webcam_motion off -> on (change this to 'on' so only 1 frame per second is broadcast to the web cam server until actual motion is detected)
webcam_localhost on -> off (change this to 'off' so you can view the webcam stream remotely) webcam_maxrate 1 (the maximum number of frames per second the web cam server will show in your browser, try 10 for starters)

Once you’ve done, save the changes and quit nano. Now, type the following in the terminal to start motion : motion
If all goes well once you’ve type this command in, you should see a message telling you that motion has gone into daemon mode and then you’ll be returned to the command prompt. If there’s any problems and you don’t return to the command prompt, press ctrl + c to force motion to quit and check you’ve set permission properly.
You can access the video stream in any browser by entering the following in the url bar : http://192.168.x.x:8081 (or what ever ip address belongs to your raspberry pi).
To stop motion, do the following.

nano /home/raspbian/motion/motion.pid

This will list the process id number motion is running under, so make a note of it and then exit nano.
Now to stop motion simply type the following in the terminal :

kill -9 number

If you want to save yourself typing ‘motion’ every time you want to view the web cam, type the following commands in your terminal

sudo nano /etc/default/motion

Once in the configuration file, change the following line from ‘no’ to ‘yes’

start_motion_daemon=no

Save, and exit nano. This will now start motion every time your computer starts.

Cara Install Webmin di centOS 5 / centOS 6

Webmin adalah antarmuka berbasis web untuk administrasi sistem Unix. Menggunakan browser web modern, Anda dapat men-setup account pengguna, Apache, DNS, file sharing, dan banyak lagi. Webmin menghilangkan kebutuhan untuk secara manual mengedit file konfigurasi Unix seperti / etc / passwd, dan memungkinkan Anda mengelola sistem dari konsol atau jarak jauh.

tutorial cara menginstallnya:

1. Gunakan Putty atau program sejenis untuk mengakses terminal VPS.

2. Pada terminal, ketik “yum update”.

3. Kemudian ketik “y” (yes) untuk melakukan update, tunggu hingga update selesai.

 

4. Berikutnya ketik “yum install policycoreutils”

5.  Setelah selesai, sekarang kita akan menambah repo untuk webmin, ketik perintah sama persis seperti dibawah ini, lalu klik enter (bila muncul “nano: command not found” ketik “yum install nano” dan pilih y (yes) terlebih dahulu sebelum menambah repo)

nano /etc/yum.repos.d/webmin.repo

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

pada bagian akhir kemudian klik tombol ctrl+x , y(yes), lalu enter untuk save.

6. Ketik “wget http://www.webmin.com/jcameron-key.asc” untuk mendownload key. Lalu ketik “rpm –import jcameron-key.asc” untuk menjalankan import key.

7. Setelah selesai menambah repo, ketik “yum install webmin” untuk memulai menginstall webmin. Jangan lupa untuk memilih y (yes) untuk menginstall.

 

8. Sekarang anda sudah bisa mengakses webmin dengan menggunakan port 10000. Buka web browser dan ketik ip atau nama domain anda dan tambahkan :10000 di akhirannya. Contoh : 123.123.123.123:10000 atau namadomainanda.com:10000

 

9. Sekarang anda sudah bisa mengontrol VPS anda dari webmin. Gunakan username dan password VPS untuk login webmin. Biasanya secara default username VPS anda adalah root.

Cara install wordpress di VPS

Yang dibutuhkan :

1. Akses full ke VPS sebagai root

2. putty / bitvise SSH  untuk melakukan SSH ke vps

 

tutorial :

1. Login ke VPS anda sebagai root

2. ketik perintah dibawah

cd /var/www/html

wget http://wordpress.org/latest.tar.gz

3. Setelah selesai download file wordpress, extract dengan perintah

tar -xzvf latest.tar.gz

4. Rename file “wp-config-sample.php” menjadi “wp-config.php”

5. Buatlah database yang nantinya akan digunakan sebagai database wordpress. Bisa melalui phpmyadmin atau melalui terminal.

6a. Bila melalui phpmyadmin, buka phpmyadmin anda melalui IP anda / nama domain anda. Contoh: 123.123.123.123/phpmyadmin atau domainanda.com/phpmyadmin. Pastikan phpmyadmin sudah terinstall.

6b. Bila melalui terminal, login ke mysql anda dengan perintah “mysql -u <username> <password>”. Username dapat anda isi dengan root dan password diisi dengan passwordnya root.

7a. Klik tab databases, lalu ketik nama database yang akan dibuat. Setelah itu klik create.

7b. Ketik “CREATE DATABASE <database name>;”. <database name> diisi dengan nama database yang mau dipakai.

8. Buka wp-config.php dengan perintah “nano wp-config.php”. (Jika belum menginstall nano, install terlebih dahulu dengan perintah “yum install nano”)

9. ubahlah 3 poin dibawah ini

/** The name of the database for WordPress */
define(‘DB_NAME’, ‘<nama database>’);

/** MySQL database username */
define(‘DB_USER’, ‘<nama user>’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘<password user>’);

<nama database> -> isi dengan nama database yang sudah dibuat sebelumnya

<nama user> -> gunakan “root”

<password user> -> jika menggunakan “root” sebagai nama user, masukkan passwordnya user “root”

Setelah selesai, save dengan klik tombol ctrl+x lalu Y(yes) kemudian enter.

 

Semua settingan dasar untuk wordpress di VPS sudah tersetting dan cobalah untuk membuka wordpress anda.

Cara menghilangkan ads di google chrome

Ketika kita sedang membuka suatu website, kadang – kadang akan tampil semacam iklan dari google yang biasanya ada disisi dari konten website yang kita akses. Biasanya iklan iklan tersebut memiliki judul yang mirip dengan pencarian kita dan bisa saja membuat kita bingung dengan konten website tersebut. Untuk mencegah kebingungan dan pembuangan bandwidth yang sia-sia untuk ads maka anda dapat menginstall googleadblock pada browser chrome anda.

 

extension ini juga dapat memblock iklan yang ada pada youtube (biasanya iklan yang tampil sebelum video dimulai)

 

extension ini dapat didownload dari website http://chromeadblock.org/

Mengaktifkan .htaccess pada apache2 centOS

Biasanya setting .htaccess secara default adalah “AllowOverride None”. Maka agar .htaccess dapat berjalan di server kita, ubahkan file config httpd dengan cara mengetik :

nano /etc/httpd/conf/httpd.conf

(bila belum menginstall nano, maka install terlebih dahulu dengan perintah “yum install nano”)

lalu cari kata-kata “AllowOverride None” yang merupakan settingan .htaccess (gunakan ctrl+w untuk melakukan find). Gantilah menjadi “AllowOverride All”

 

Kemudian restart httpd dengan perintah

service httpd restart

Maka sekarang fungsi .htaccess yang ada diserver anda sudah dapat berjalan.

Mengamankan web server anda

Terkadang banyak orang lupa mengenai setting config apache yang secara default masih memberikan informasi mengenai system yang dipakai oleh server. Hal ini bisa menimbulkan masalah besar jika informasi mengenai server anda diketahui oleh orang lain. Informasi mengenai server dapat digunakan untuk mencari venerability pada server dan bila sampai menjadi exploit, tentunya pemilik server akan mengalami kerugian besar seperti kehilangan data-data berharga.

 

untuk mencegah hal-hal yang tidak diinginkan, maka dalam tutorial ini saya akan memberikan tips settingan apache server agar setidaknya sedikit lebih secure daripada sebelumnya

 

1. Hilangkan penampilan informasi dari apache

Secara default, informasi mengenai server masih ditampilkan oleh apache. maka dari itu kita harus menghilangkan informasi tersebut dari publik.

Setting default apache

Bukalah config apache anda

perintah pada centOS

nano /etc/httpd/conf/httpd.conf

 

Setelah itu, cari kata-kata ServerSignature. Secara default settingan ServerSignature adalah on. Gantilah menjadi ServerSignature Off.

Kemudian selanjutnya cari kata-kata ServerToken. Secara default settingan ServerToken adalah OS. Gantilah menjadi ServerToken Prod.

Save perubahan dengan mengklik ctrl+x lalu y(yes) kemudian enter.

 

2. Sembunyikan versi PHP

buka php config

perintah pada centOS

nano /etc/php.ini

Cari kata-kata expose_php. Secara default settingan ServerSignature adalah on. Gantilah menjadi expose_php Off.