Blogger news

Social Media

Thursday, August 23, 2012

How to add adf ly ads to files links after transload

1- go to adf.ly and register your account

2-copy the code

<script>
var adfly_id = 925909;
var adfly_advert = 'banner';
var domains = ['yoursite.com/files'];
</script>
<script src="http://adf.ly/js/link-converter.js"></script>

3-get your id from adf.ly/referrals.php then change with id code
change yoursite.com to your site domain

4-add the code to header
\templates\plugmod\header.php
befor tage

Tuesday, June 19, 2012

[Tutorial] Installasi ruTorrent/rTorrent Seedbox pada Ubuntu

Bahasa Inggris dulu yaaa... lagi males terjemahin :D

This tutorial will guide you through the installation of libtorrent 0.13.0, rTorrent 0.9, and the ruTorrent Web UI (3.0) on a Debian or Ubuntu system. It has been tested with Debian 6 (x64) and Ubuntu 11.04 (x64).
To begin, access your VPS via SSH and run the following to update your platform and install some needed dependencies:

# apt-get update
# sudo apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev libsigc++-2.0-dev unzip unrar-free curl libncurses-dev
# apt-get install apache2 php5 php5-cli php5-curl
Enable scgi for Apache:
# apt-get install libapache2-mod-scgi
# ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
Install XMLRPC:
# mkdir /install;cd /install
# svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
# cd xmlrpc-c
# ./configure --disable-cplusplus
# make
# make install
Intall libtorrent:
# cd /install
# wget http://vps6.net/src/libtorrent-0.13.0.tar.gz
# tar xvf libtorrent-0.13.0.tar.gz
# cd libtorrent-0.13.0
# ./autogen.sh
# ./configure
# make
# make install
Install rTorrent:
# cd /install
# wget http://vps6.net/src/rtorrent-0.9.0.tar.gz
# cd rtorrent-0.9.0
# ./autogen.sh
# ./configure --with-xmlrpc-c
# make
# make install
# ldconfig
Create required directories:
# mkdir /home/seeder1/rtorrent
# mkdir /home/seeder1/rtorrent/.session
# mkdir /home/seeder1/rtorrent/watch
# mkdir /home/seeder1/rtorrent/download
Setup .rtorrent.rc file (rTorrent config):
# cd ~/
# wget http://vps6.net/src/.rtorrent.rc
# cp .rtorrent.rc /home/seeder1/
(Edit the settings in .rtorrent.rc, like max upload/download speed, max connected peers, etc, as needed.)
Install rTorrent:
# cd /install
# wget http://vps6.net/src/rutorrent-3.0.tar.gz
# tar xvf rutorrent-3.0.tar.gz
# mv rutorrent /var/www
# wget http://vps6.net/src/plugins-3.0.tar.gz
# tar xvf plugins-3.0.tar.gz
# mv plugins /var/www/rutorrent
# rm -rf /var/www/rutorrent/plugins/darkpal
# chown -R www-data:www-data /var/www/rutorrent
Secure /rutorrent:
# a2enmod ssl
# a2enmod auth_digest
# a2enmod scgi
# openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
# chmod 600 /etc/apache2/apache.pem
# htdigest -c /etc/apache2/passwords seedbox seeder1
(Enter a password of your choice when prompted, you will use this to log in to the ruTorrent web UI.)
# cd /etc/apache2/sites-available/
# rm -rf default
# wget http://vps6.net/src/default
# a2ensite default-ssl
# /etc/init.d/apache2 reload
Install screen:
# apt-get install screen
Start rTorrent in a detached shell using screen:
# screen -fa -d -m rtorrent
(To start rtorrent automatically after reboots, add the above command to /etc/rc.local)

Setup is now complete! Access ruTorrent at http://xx.xx.xx.xx/rutorrent/ (replace xx.xx with your server's IP address). You should be greeted with a login prompt, where the username is "seeder1" and the password is the one you set above in the "secure /rutorrent" section.

Default username & Password : seeder1 : host2==

biasanya, abis login muncul error :



rtorrent: Could not lock session directory: /home/seeder1/rtorrent/.session

Bad link to rTorrent...
ok, ini cara ngefix nya :

If you receive either of these errors in the ruTorrent WebUI, the problem is likely to be that rTorrent has not successfully started. To fix this, access your VPS via SSH (or by VNC, and open a Temrinal window), and run the following:

# rm -rf /home/seeder1/rtorrent/.session/rtorrent.lock
# screen
# rtorrent
Press CTRL+A+D to exit screen, then exit SSH and refresh ruTorrent.

oke. sampe sini aja ah... 


terima kasih..

[Tutorial] Error Tidak jelas pada "YUM" di Centos Linux

kemarin, saya membeli VPS Centos di salah satu vps provider, bisa dibilang harga nya murah, tapi spesifikasi nya kurang memuaskan.. sewaktu saya ingin install program-program semacam PHP, MySQL,Apache, dll. saya mendapatkan error yang tidak jelas untuk orang awam seperti saya, kurang lebih seperti ini error nya :

[root@linux ~]# yum install php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 345, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 662, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 502, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack
self.doSetup()
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_mirrorlist()
File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
self._poll_mirrors()
File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
pollThread.start()
File "/usr/lib/python2.4/threading.py", line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread
 setelah submit ticket ke yang jual VPS dikasih tau dimana error nya, ternyata error di konfigurasi nya, yaitu di /etc/yum.conf  pada baris ke 11 (plugins=1). disuruh ganti menjadi plugins=0 .
dan, selesai... error pun hilang.

mohon maaf kalau artikel nya nggak jelas yah, karna lagi malas ngeblog juga nih..

terima kasih.

Sunday, May 27, 2012

[Newbie Only] Cara Install WinRAR (unrar) untuk linux centos

Update.. cara ini khusus newbie yah... buat yang udah expert jangan sombong ya buat yang baru belajar. :D

gampang kok...

login via putty ke vps lalu ikuti langkah di bawah ini.

1. wget http://rarlab.com/rar/rarlinux-3.7.1.tar.gz
2. tar xvzf rarlinux*
3. cd rar
4.  make
5. make install

selesai.. gampang toh :D ? untuk unrar nya googling yah :D, artike ini buat installasi aja :D

[Share] Install Remote Desktop Di CentOS 5

Ok, hampir sebulan nggak ngepos nih.. jadi langsung aja yah... kali ini gw pgn ngasih tutorial installasi VNC di centos linux 5.x  step nya cukup panjang... terserah mao versi download PDF juga boleh :

Persiapan :
- Sebuah VPS ber os linux Centos 5.x (yg gw pake 5.8)
- PuttY (Koneksi SSH ke VPS anda)

Steps :
1. Konek ke VPS anda menggunakan PuttY seperti biasa, masukan username & password setelah selesai Lanjut ke langkah 2


2. ketik command di bawah ini pada PuTTY
Code:
 yum groupinstall "X Window System"
yum groupinstall "GNOME Desktop Environment"
jika di step ini ente mendapatkan error “Error: Missing Dependency: libgaim.so.0 is needed by package nautilus-sendto” ketika menginstall GNOME Desktop Enviroment, silakhan install manual nautilus-sendto cara :
Code:
 yum install yum-utils
yumdownloader nautilus-sendto
rpm -Uvh --nodeps nautilus-sendto [Tekan TAB]
3. VNC Server akan terinstall dgn X-Windows System. trus, langkah akhir yaitu edit config VNC nya, dgn cara :
Code:
 vi /etc/sysconfig/vncservers 
dan lihat baris :
Code:
 VNCSERVERS="2:root" 
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost 
Di baris pertama, menunjukkan "VNCSERVER="2:root" yang berarti ente akan connect ke vps via port 2 . baris kedua menunjukkan resolusin nya.. bisa di edit sesuai selera.

4.  Sekarang,VNC Server hampir selesai. sekarang kita akan memberikan password utk keamanan :
Code:
 vncpasswd 
Berikan password sesuai selera. saja..

5. Jalankan VNC :
Code:
 vncserver :2 
inget :2 itu port yang akan digunakan utk connect, pastikan available dan ga digunakan ya. 6. Upps... ga secepat itu.. sekarang kita kill dulu process VNC nya.. kita menjalankan VNC hanya utk benar2 work atau tidak. :
Code:
 vncserver -kill :2 
7. sekarang, edit local config file di root folder
Code:
 vi ~/.vnc/xstartup 
Cari baris yang bertuliskan " twm & " rubah menjadi " gnome-session & ". simpan file nya. 8. ok.. sekarang kita start lagi vnc nya :
Code:
 vncserver :2 
9. ok.. sekarang kita udah bisa connect ke server.. connect pake software bernama "RealVNC" jadi konek via soft vnc nya :
Code:
 Ipanda:2 
oke.. sampe sini dulu ya.. kalo ada yang gak dimengerti tanya saja ya. Next Akan di Share untuk CentOS 6