Installing rutorrent and rtorrent via a script

I changed directory to /home/user “user is your user name”

then download the script and run.  webmin kept stopping so I skipped webmin and didn’t need the ftp server so I answered no to them and installed webmin manually later.

Ubuntu and Ubuntu clones
cd
wget –no-check-certificate -O autodl-setup http://sourceforge.net/projects/autodl-irssi/files/autodl-setup/download
sudo sh autodl-setup

Installing B4RT on Ubuntu 10.04 updated 2012

Here is a simple copy and paste info for installing b4rt on ubuntu 10.04.  Im sure this will work on many other ubuntu distro’s.  This is not a complete guide for someone who is not familiar with ubuntu command line.  Just a quick reference for copy and paste using windows and putty as the command machine.

apt-get update
apt-get upgrade

apt-get install apache2
apt-get install mysql-server phpmyadmin

apt-get install bzip2 php5-cli php5-gd zip unzip unrar libxml-dom-perl libxml-simple-perl libhtml-parser-perl libdigest-sha1-perl bittorrent bittornado vlc-nox uudeview wget transmission-cli perl python libthreads-shared-perl

(((((((((((  webmin  )))))))))))))

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.580_all.deb
dpkg –i webmin_1.580_all.deb

((((((   if you are missing dependencies  ))))))))))))
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

apt-get update
apt-get upgrade

change to a temp directory like /home/temp or something
mkdir command   mkdir /home/temp
cd /home/temp

wget http://prdownload.berlios.de/tf-b4rt/torrentflux-b4rt_1.0-beta2.tar.bz2

(or alternativly from http://gunblade.fakap.net/doc/torrentflux-b4rt_1.0-beta2.tar.bz2)
wget the latest version.

Extract it:

# tar xjvf torrentflux-b4rt_1.0-beta2.tar.bz2

# cd torrentflux-b4rt_1.0-beta2

Copy the “html” folder to the web root:

# cp -R html /var/www/b4rt

Change owner:

# chown -R www-data:www-data /var/www/b4rt/inc/config/

Create a download directory:

# mkdir /var/b4rt/

# chown www-data:www-data /var/b4rt/

4.3 Install torrentflux-b4rt

Open your new torrentflux-b4rt website:

https://xx.xx.xx.xx/b4rt or
http://xx.xx.xx.xx/b4rt

There will be a wizard to guide you threw the installation:

– select type of database: MySQL
– enter your MySQL database settings below: (as created in 3.2)

Host: localhost
Name: b4rt
Username: b4rt
Password:

UNCHECK the “Create Database” option! CHECK the “Use Persistent Connection” option.

Follow the wizard… (next, next, next …)

– Server Settings

User Download Path: /var/b4rt (as created in 4.2)

– Check System Tools

Ignore the “NOT FOUND” on “cksfv”. Continue. Next …

– Setup Completed

Delete the /var/www/b4rt/setup.php:

# rm /var/www/b4rt/setup.php

4.4 Finish the installation

https://xx.xx.xx.xx/b4rt or
http://xx.xx.xx.xx/b4rt

Login with your credentials (user, password).

 

 

Installing Torrentflux B4RT on Ubuntu Server

make sure you have all software installed  (LAMP)

install phpmyadmin if you like

# apt-get install uudeview unrar-free cksfv vlc bittornado azureus bzip2 php5-gd php5-cli unrar-free grep python net-tools mawk wget unzip cksfv vlc-nox uudeview python-psyco python-crypto libxml-simple-perl libxml-dom-perl libdbd-mysql-perl libdigest-sha1-perl uudeview unrar-free cksfv bittorrent

 

now make whatever changes you need to finish

example download directory and permissions

 

http://tech-newbie.blogspot.com/2008/05/installing-torrentflux-b4rt-on.html

http://thegnome.nchar.com/home/torrentflux-b4rt

 

for a more detailed install

Installing Transmission on Ubuntu Server

apt-get install transmission-daemon

/etc/init.d/transmission-daemon stop

nano /var/lib/transmission-daemon/info/settings.json

/etc/init.d/transmission-daemon start

access from the web server using port 9091 or whatever you set in your settings

typical settings

 "rpc-authentication-required":true, 
 "rpc-bind-address": "0.0.0.0", 
 "rpc-enabled": true, 
 "rpc-password": "{1cc72c39f8a3d1c23e81a6ea37f72f2d0085399dKxhyBIwU  ", 
 "rpc-port": 9091, 
 "rpc-username": "user", 
 "rpc-whitelist": "127.0.0.1,192.168.1.*",
 "rpc-whitelist-enabled": true, 
 "speed-limit-down": 100, 
 "speed-limit-down-enabled": false, 
 "speed-limit-up": 100, 
 "speed-limit-up-enabled": false, 
 "upload-limit": 20, 
 "upload-limit-enabled": 0, 
 "upload-slots-per-torrent": 14

also make sure you save directory is chmodded to work

 

Setup Ubuntu 10.10 server x32

4 Get root Privileges

sudo passwd root

5 Install The SSH Server (Optional)

If you did not install the OpenSSH server during the system installation, you can do it now:

aptitude install ssh openssh-server

7 Configure The Network

vi /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

Then restart your network:

/etc/init.d/networking restart

Then edit /etc/hosts. Make it look like this:

vi /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.0.100 server1.example.com server1

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Now run

echo server1.example.com > /etc/hostname
/etc/init.d/hostname restart

Afterwards, run

hostname
hostname -f

Both should show server1.example.com now.

8 Edit /etc/apt/sources.list And Update Your Linux Installation

Edit /etc/apt/sources.list. Comment out or remove the installation CD from the file and make sure that the universe and multiverse repositories are enabled. It should look like this:

vi /etc/apt/sources.list

Then run

aptitude update

to update the apt package database and

aptitude safe-upgrade

to install the latest updates (if there are any). If you see that a new kernel gets installed as part of the updates, you should reboot the system afterwards:

reboot

11 Install Some Software

Now we install a few packages that are needed later on. Run

aptitude install binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.6-dev libpcre3 libpopt-dev lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ build-essential

(This command must go into one line!)

14 MySQL

In order to install MySQL, we run

aptitude install mysql-server mysql-client libmysqlclient16-dev

We want MySQL to listen on all interfaces, not just localhost, therefore we edit /etc/mysql/my.cnf and comment out the line bind-address = 127.0.0.1:

vi /etc/mysql/my.cnf

[…]
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1
[…]

Then we restart MySQL:

/etc/init.d/mysql restart

Now check that networking is enabled. Run

netstat -tap | grep mysql

The output should look like this:

root@server1:~# netstat -tap | grep mysql
tcp 0 0 *:mysql *:* LISTEN 6796/mysqld
root@server1:~#

17 Apache/PHP5/Ruby/Python/WebDAV

Now we install Apache:

aptitude install apache2 apache2-doc apache2-mpm-prefork apache2-utils apache2-suexec libexpat1 ssl-cert

Next we install PHP5, Ruby, and Python (all three as Apache modules):

aptitude install libapache2-mod-php5 libapache2-mod-ruby libapache2-mod-python php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

Now we have to enable some Apache modules (SSL, rewrite, suexec, include, and WebDAV):

a2enmod ssl
a2enmod rewrite
a2enmod suexec
a2enmod include
a2enmod dav_fs
a2enmod dav

Restart Apache:

/etc/init.d/apache2 restart

20 Synchronize the System Clock

It is a good idea to synchronize the system clock with an NTP (network time protocol) server over the internet. Simply run

aptitude install ntp ntpdate

and your system time will always be in sync.

apt-get install phpmyadmin

Today we will show you how to install webmin in Ubuntu 10.10 Maverick
1- Before to install webmin we need first to install some dependencies
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl

For libmd5-perl install it manually :

– Download libmd5-perl

wget http://ftp.debian.org/pool/main/libm/libmd5-perl/libmd5-perl_2.03-1_all.deb

– Install libmd5-perl:

sudo dpkg -i libmd5-perl_2.03-1_all.deb

2- Now download webmin from this Link with wget

Saving to: `webmin_1.510-2_all.deb’

100%[======================================>] 14,504,260 709K/s in 37s

2010-09-28 18:36:29 (379 KB/s) – `webmin_1.510-2_all.deb’ saved [14504260/14504260]

3- Install the downloaded package using the command :

sudo dpkg -i webmin_1.510-2_all.deb

If you got errors while installing webmin, type this command:

sudo apt-get -f install

4- Now restart webmin

sudo /etc/init.d/webmin restart

5- To access webmin, open your browser and type :

https://localhost:10000 or https://your-ip:10000

WOW!! you did it.

How to crack a WEP key using Ubuntu

After the article on cracking a WEP key using a MAC, many users have requested similar *testing* of their security procedures using a popular LINUX distro and WinXP. This article delves into cracking a WEP key and a WEP key force using the most popular and user friendly LINUX distro out there : UBUNTU. All you need is a laptop with a wireless card and a copy of Ubuntu Linux. NOTE: Most of the Intel wireless adapters that come in built in most laptops these days should work.

Ubuntu (IPA pronunciation: /u’buntu/) is a Linux distribution offering an operating system predominantly targeted at desktop computers. Based on Debian GNU/Linux, Ubuntu concentrates on usability, freedom from restriction of use, regular releases, and ease of installation. Ubuntu is sponsored by Canonical Ltd., by South African Mark Shuttleworth; the name of the distribution comes from the African concept of ubuntu (roughly, “humanity towards others”).

First step, obviously, is to install Ubuntu. Just boot from the CD and follow the directions. If you have problems or need help installing UBUNTU, follow this guide straight from Ubuntu. Once you have the OS installed and configured/customized to your liking we can proceed with the first step. I’d suggest performing the following steps in order, otherwise you may have problems.

Next, install the extra repositories and all the programs that Ubuntu doesn’t preinstall. Make sure your machine is able to establish a connection to the Internet. If you can only connect via wireless and are having problems, there is a package called Wi-Fi radar that is helpful. To install the extra repositories, open a terminal window and type the following:

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo gedit /etc/apt/sources.list

While in the editor, replace everything with:

## Add comments (##) in front of any line to remove it from being checked.
## Use the following sources.list at your own risk.
deb http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse

## MAJOR BUG FIX UPDATES produced after the final release
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse

## UBUNTU SECURITY UPDATES
deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse

## BACKPORTS REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)
deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)
deb http://packages.freecontrib.org/ubuntu/plf dapper free non-free
deb-src http://packages.freecontrib.org/ubuntu/plf dapper free non-free

Save the file and exit the text editor. Next type the command:

sudo apt-get update

Now we have to install the packages we’ll need later on:

sudo apt-get install build-essential
sudo apt-get install aircrack
sudo apt-get install kismet
sudo apt-get install airsnort
sudo apt-get install linux-source
sudo apt-get install linux-headers
sudo apt-get install sharutils

Next, you should update your entire system by going to the System Menu>Administration>Update Manager. Click ‘Check’ and begin installing updates. Then reboot your system. After this is done, it’s time to patch the Madwifi drivers.

This is where everything can be tricky. My wireless card (Linksys WPC55AG) uses the Atheros driver, which I needed to patch. If you have a different driver, you’re going to need to find out whether or not you need to patch your drivers, or if they’ll even work with the Aircrack suite. The forums at aircrack-ng.org are a good place to look and so is a Google search. If you have an Atheros card, it will be called ath0 when you type iwconfig in the terminal window, or there will be a line that says Ethernet controller: Atheros Communications… when you type lspci in the terminal.

Let’s apply the madwifi patch which you’ll need if you’re using the Atheros driver. This will temporarily disable your wireless card when it deletes the old drivers of the disk. First we’re going to navigate to the /usr/src directory, download the new drivers, delete the old drivers, then install the new ones and apply the patch. You can just copy and paste the commands below into the terminal or type them yourself. So. first, let’s get the patch and then get the corresponding version of the driver

sudo -i

cd /usr/src

get http://patches.aircrack-ng.org/madwifi-ng-r1679.patch

wget http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r1679-20060707.tar.gz

ifconfig ath0 down
rmmod ath_rate_sample wlan_wep ath_rate_onoe ath_pci wlan ath_hal
find /lib/modules -name ‘ath*’ -exec rm -v {} \;
find /lib/modules -name ‘wlan*’ -exec rm -v {} \;

# tar zxvf madwifi-ng-r1679-20060707.tar.gz
# cd madwifi-ng-r1679-20060707/
# patch -Np1 -i ../madwifi-ng-r1679.patch
# make
# make install
# mod_probe ath_pci

NOTE: Some people have been having problems with the modprobe command. A comment below contains a fix in some cases:

However, during Madwifi Installation I got this warning:

Warning: could not find /usr/src/madwifi/ath_hal/.hal.o.cmd for /usr/src/madwifi/ath_hal/hal.o

This warning can be IGNORED.

When I ran “modprobe ath_pci” it gave me an error message and “dmesg” gave me some gibberish about “disagrees about version of symbol”.

I browsed the web and found the solution: You have to delete the linux-restricted modules. Just search for “linux-restricted” in Synaptic. I removed everything but “linux-restricted-modules-common”. Then I compiled the madwifi again and ran “modeprobe ath_pci” again. NO ERROR this time! Authenticating and injecting works!

Apparently some network cards with atheros chipset cause problems if you don’t remove the linux-restricdet-modules.

If you are using the Atheros driver, next we need to configure kismet to use the right source. If you are using another driver you’ll have to look up what syntax you use. First navigate to the Kismet config, then change the source line.

sudo gedit /etc/kismet/kismet.conf

Change the line that begins with ’source=’ to ’source=madwifi_ag,ath0,madwifi’. Now reboot the computer. After it boots back up you should be able to access the internet again via your wireless card.

Now we can begin cracking. Open up a terminal window, enter monitor mode, and run kismet.

sudo airmon start ath0
sudo kismet

Locate the wireless network you want to crack, and note its ESSID and channel. Then exit by pressing Ctrl-C.

Next, run airodump.

sudo airodump ath0 filename channel# 1

The one at the end lets Airodump know we only want to capture IV’s. The filename can be anything you want, and will be saved in your home directory (or whatever directory you run the command from) as filename.ivs.

Copy the bssid of the wireless network from the airodump window by selecting it and pressing Shift+Ctrl+C. Open up a new terminal window so we can run aireplay to start injecting packets so our data count goes up. We want the data column in airodump to reach between 100,000 and 400,000. The more packets we have, the faster aircrack can find the WEP key. If the WEP key is 128 bits, we may need up to 1,000,000 packets.

sudo aireplay -1 0 -e ESSID -a BSSID -h 0:1:2:3:4:5 ath0

This should associate the network with the wireless connection. If it times out repeatedly, you need to be closer to the wireless router or change your interface rate by typing ’sudo iwconfig ath0 rate 1M’.

Next we want to start injecting packets.

sudo aireplay -3 -b BSSID -h 0:1:2:3:4:5 ath0

At first, it will only read packets, and say 0 ARP requests and 0 packets sent. Just wait a minute or two and it will start sending packets in large quantities. If it returns text that says it has been deauthorized, press Ctrl+C and run the command again. You can try to speed things up by entering this command:

sudo aireplay -0 ath0 -a BSSID ath0

Otherwise just sit back and wait. As soon as packets begin to be sent, the data field in Airodump should start flying. Wait until the desired number of packets have been recieved, then open a new terminal window and run aircrack.

sudo aircrack filename.ivs

After a minute, aircrack should return the WEP key. If it doesn’t, collect more packets.

Ubuntu Server 9.04 Manual Lamp Install

Here is a quick Reference guide for installing the components needed for a fresh ubuntu server install to Lamp configuration.
These instructions were originally written 3-2008. As you know that will surely change by the time you need this info.
Hopefully this will give you some idea on how to do it on newer versions of ubuntu server.

Run all as root or sudo

1. change ip from dhcp to static

sudo vi /etc/network/interfaces
[how to setup for dhcp]
Auto eth0
iface eth0 inet dhcp
[how to setup for static]
auto eth0
iface eth0 inet static
Address 192.168.1.50
Netmask 255.255.255.0
Network 192.168.1.0
Broadcast 192.168.1.255
Gateway 192.168.1.1
[now to setup dns settings]
vi /etc/resolv.conf
On the line ?name server xxx.xxx.xxx.xxx? replace with ip of dns server.

Now to restart network
/etc/init.d/networking restar

2. [get updates for ubuntu]

aptitude update
aptitude upgrade
aptitude dist-upgrade

3. apt-get install apache2
/etc/init.d/apache2.start
/etc/init.d/apache2 stop

4. apt-get install php5 libapache2-mod-php5
[restart apache]
/etc/init.d/apache2 restart

5. [how to delete full directorys]
rm ?r directory

6. apt-get install mysql-server

If you are running a server you should probably bind your
address by editing bind-address in /etc/mysql/my.cnf and
replacing its value (127.0.0.1) by your IP address

how to set root password if not setup in install of mysql
mysql> SET PASSWORD FOR ?root?@’localhost? = PASSWORD(?xxxxxx?);

Try running it

Code:
mysql -uroot -pxxx

7. apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

8. Also I had to chown the www folder so that I could easily edit files in it:

cd /var/
sudo chown -R USERNAME www

then created a symlink in my home directory:
ln -s -v /var/www /home/USERNAME/www

9. apt-get install openssh-server

10. http://prdownloads.sourceforge.net/webadmin/webmin_1.400_all.deb

apt-get install openssl libauthen-pam-perl libio-pty-perl libmd5-perl
libnet-ssleay-perl

dpkg -i webmin_1.400_all.deb