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-bind-address": "", 
 "rpc-enabled": true, 
 "rpc-password": "{1cc72c39f8a3d1c23e81a6ea37f72f2d0085399dKxhyBIwU  ", 
 "rpc-port": 9091, 
 "rpc-username": "user", 
 "rpc-whitelist": ",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

Then restart your network:

/etc/init.d/networking restart

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

vi /etc/hosts localhost.localdomain localhost 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 > /etc/hostname
/etc/init.d/hostname restart

Afterwards, run

hostname -f

Both should show 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:


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 =

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 =

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

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


– 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.

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
[now to setup dns settings]
vi /etc/resolv.conf
On the line ?name server 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 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 ( 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

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


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

dpkg -i webmin_1.400_all.deb