How to disable ads from uTorrent

Hello,

Open Options > Preferences > Advanced. Here you’ll find a large list of flags for the app and a filter box. Search for and disable(double click & set false) the following flags:
> offers.left_rail_offer_enabled/left_rail_offer
> gui.show_plus_upsell
> offers.sponsored_torrent_offer_enabled/sponsored_torrent_offer_enabled
> bt.enable_pulse
> gui.show_notorrents_node
> offers.content_offer_autoexec

Restart your uTorrent, and the ads should disappear.. Enjoy…

Reference : http://bitsnapper.com/disable-ads-from-utorrent/

How To Install Seafile on Ubuntu 14.04

Hello,

Seafile is a one of wellknown private cloud software. We can use the Community version free or Profesional version free or 3 users only. Please make sure you re-install the bsdutils on Ubuntu due some error on Minimal version of Ubuntu.

apt-get --reinstall install bsdutils

Then we can install the pre-requirement package needed for Seafile

sudo apt-get install mysql-server poppler-utils libpython2.7 python-pip python-setuptools python-imaging python-mysqldb python-memcache

For Proffesional version, we also need Java SDK

sudo apt-get install openjdk-7-jre

Install boto package

sudo pip install boto

We can do a bit of MySQL housekeeping before we begin installing our service. First, initialize the MySQL data directory:

sudo mysql_install_db

Next, we can run a security script that asks us some questions in order to lock down some settings:

sudo mysql_secure_installation

Download the SeaFile at http://seafile.com/en/download/ and extract. To install using MySQL please run this command

./setup-seafile-mysql.sh

After the installation finish, we can also combine Seafile with Apache. Please follow this command to use Apache on Seafile
Please aneble the multiverse repository to install fast-cgi. Once the multiverse repos are enabled, run an update and install the two packages:

sudo apt-get update
sudo apt-get install apache2 libapache2-mod-fastcgi

Then enable these modules:

a2enmod rewrite
a2enmod fastcgi
a2enmod proxy_http

Before we move ahead let’s create the web directory where we will download Seafile packages. On Ubuntu it should be under /var/www/

sudo mkdir -p /var/www/directory_name

Now we have to create a vhost file for the seafile server:

nano /etc/apache2/sites-available/your_vhost_name.conf

The vhost file should look something like the one below:


   ServerName www.your-domain-name.com
 # Use "DocumentRoot /var/www/html" for Centos/Fedora
 # Use "DocumentRoot /var/www" for Ubuntu/Debian
   DocumentRoot /var/www/your-directory/
   Alias /media /var/www/your-directory/seafile-server-latest/seahub/media
   RewriteEngine On 
    
       Require all granted
    

    
        Require all granted
    
 # seafile fileserver
   ProxyPass /seafhttp http://127.0.0.1:8082
   ProxyPassReverse /seafhttp http://127.0.0.1:8082
   RewriteRule ^/seafhttp - [QSA,L]
 # seahub
   RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ /seahub.fcgi$1 [QSA,L,E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

In your vhost you have to change three things:
ServerName to reflect the URL or your server
DocumentRoot provide the path to the directory we created above
Alias /media /var/www/your_directory_path/seafile-server-latest/seahub/media

Open the apache.conf file

nano /etc/apache2/apache2.conf

and add the this line at the end (don’t forget to change the path of directory):

FastCGIExternalServer /var/www/your_directory_path/seahub.fcgi -host 127.0.0.1:8000

Open ccnet.conf with desired editor, I use nano:

sudo nano /var/www/your-directory/ccnet/ccnet.conf

In this file check that the ‘SERVICE_URL’ points to the correct domain.

SERVICE_URL = http://www.your_domain.com:8000

Now edit the second config file:

sudo nano /var/www/your-directory/seahub_settings.py

and add the following line before DATABASES

FILE_SERVER_ROOT = ‘http://www.your-domain.com/seafhttp’

First we have to run a script which will enable the site which we configured within the apache2 configuration

a2ensite your_vhost_name.conf
service apache2 restart

Finally, we need to run the seafile server

/var/www/your-directory/seafile-server-latest/./seafile.sh start
/var/www/your-directory/seafile-server-latest/./seahub.sh start-fastcgi

Have fun with Seafile…

How To Use Apache mpm-worker on Virtualmin – Ubuntu 14.04

Hello,

Apache mpm-prefork is the default setting on Virtualmin. We can change to mpm-worker to slightly improve the Apache performance.
Please install these package. You will need to update your sources.list to ensure that the multiverse repository is enabled and then do an apt-get update before attempting the install.

sudo apt-get install libapache2-mod-fastcgi php5-fpm

Then add this line of code on file
/etc/apache2/conf-available/php5-fpm.conf


    AddHandler php5-fcgi .php
    Action php5-fcgi /php5-fcgi
    Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
    FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization

Then enable the new mods and config:

a2dismod php5
a2enmod actions fastcgi alias
a2enconf php5-fpm
service apache2 reload

The new Apache should be up and running.

How To Create Raid Array On Ubuntu

Hello,

RAID (Redundant Array of Inexpensive Disks) is commonly use on server to gain performance and redundancy. We can also create our own RAID disk on our computer using some flash disk or external hard disk.

First install the mdm application

sudo apt-get install mdadm

To create the RAID array, please use this following command

sudo mdadm –create /dev/md0 –level=5 –raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1

Follow by format or create the filesystem:

sudo mkfs.ext4 /dev/md0

Add the RAID to /etc/fstab:

/dev/md0 /myDisk ext4 defaults,nobootwait 0 2

——————————-
“/myDisk”, or whatever anything else have to exist as a directory.
The nobootwait is to prevent startup from halting if it can’t mount it for some reason.
The barrier=1,nodelalloc to reduce risk of loss in a crash at the cost of performance.
The noatime to gain a small bit back.
——————————-

After that mount it using following command

sudo mount -a /dev/md0 /myDisk

To check the RAID status we can use following command

sudo cat /proc/mdstat

To add a disk (sdd1) to a RAID array (md0), please use following command :

sudo mdadm --add /dev/md0 /dev/sdd1

To see a detail about a RAID array, please use following command :

sudo mdadm --detail /dev/md0

To change a failed hard disk, please use following command :

sudo mdadm --manage /dev/md0 --fail /dev/sdb1
sudo mdadm --manage /dev/md0 --remove /dev/sdb1
sudo mdadm --manage /dev/md0 --add /dev/sdb1

Have fun…

How To Format a Disk Using Fdisk

Hello,

We can format a disk attached on our computer using fdisk tool that available on all Linux distribution.

List Partitions
The sudo fdisk -l commands lists the partitions on your system.

Entering Command Mode

sudo fdisk /dev/sda

In command mode, we use single-letter commands to specify actions you want to take. Type m and press Enter to see a list of the commands you can use.

Viewing the Partition Table
Use p to print the current partition table to the terminal from within command mode.

Deleting a Partition
Use the d command to delete a partition. It’ll ask for the number of the partition you want to delete, which you can get from the p command. If we want to delete the partition at /dev/sda1, I’d type 1.

Creating a Partition
Use the n command to create a new partition. We can create a logical or primary partition (l for logical or p for primary). A disk can only have four primary partitions.

Writing Changes
Use w to write the changes to the disk.
Use q if we want to quit without saving changes.

Formatting a Partition
We have to format new partitions with a file system before we can use them. We can do this with the appropriate mkfs command.

sudo mkfs.ext4 /dev/sda1

If you want to format a partition as a swap partition

sudo mkswap /dev/sda1

Have fun..

How To Install Zimbra on Ubuntu 14.04

Hello,

To install Zimbra, it’s recomended to use a server with minimum 2GB of RAM.

Please install the following prerequisites:

apt-get install libgmp10 libperl5.18 unzip pax sysstat sqlite3 libaio1

Download the latest Zimbra (currently 8.6.0). This can be obtained on the following URL

Zimbra Collaboration Open Source

wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz

Unzip and install the file

tar xvfz zcs-*
cd zcs-*
sudo ./install.sh

After finish install, there will a configuration setup. We need to set the root password.

Main menu

   1) Common Configuration:                                                  
   2) zimbra-ldap:                             Enabled                       
   3) zimbra-logger:                           Enabled                       
   4) zimbra-mta:                              Enabled                       
   5) zimbra-dnscache:                         Enabled                       
   6) zimbra-snmp:                             Enabled                       
   7) zimbra-store:                            Enabled                       
        +Create Admin User:                    yes                           
        +Admin user to create:                 [email protected]      
******* +Admin Password                        UNSET                         
        +Anti-virus quarantine user:           [email protected]
        +Enable automated spam training:       yes                           
        +Spam training user:                   [email protected]ail.unixmen.local
        +Non-spam(Ham) training user:          [email protected]
        +SMTP host:                            mail.unixmen.local       
        +Web server HTTP port:                 8080                          
        +Web server HTTPS port:                8443                          
        +Web server mode:                      https                         
        +IMAP server port:                     7143                          
        +IMAP server SSL port:                 7993                          
        +POP server port:                      7110                          
        +POP server SSL port:                  7995                          
        +Use spell check server:               yes                           
        +Spell server URL:                     http://mail.unixmen.local:7780/aspell.php
        +Enable version update checks:         TRUE                          
        +Enable version update notifications:  TRUE                          
        +Version update notification email:    [email protected]      
        +Version update source email:          [email protected]      
        +Install mailstore (service webapp):   yes                           
        +Install UI (zimbra,zimbraAdmin webapps): yes                           

   8) zimbra-spell:                            Enabled                       
   9) zimbra-proxy:                            Enabled                       
  10) Default Class of Service Configuration:                                
   s) Save config to file                                                    
   x) Expand menu                                                            
   q) Quit                                    

Address unconfigured (**) items  (? - help)

We can later access the Zimbra using this following URL
https://ip-address:7071 or https://domain-name:7071

Should the admin port number need to be changed, please follow this step

    sudo su zimbra  (Login as user zimbra)
    zmprov getServer mail.example.com | grep -i port (Chek zimbra port)
    zmprov ms mail.example.com zimbraAdminPort 1213 (change standard admin port to new port, for example 1213)
    zmcontrol restart (restart service zimbra)

Have fun.

How To Change Default Port on Odoo

Hello,

The default port of Odoo installation is 8069.
If you need to change the default port, please use this step..

vim /etc/odoo/openerp-server.conf

Add this code on the file, please change the port to what you want to

xmlrpc_port = 9069

If you want to access on port 80 or 443 (SSL) to avoid the port numbers entirely, you may want to take a different approach. Port 80 can be done by leaving Odoo running at 8069, then adding in an iptables rule to forward traffic from 80 to 8069. This bash script does the trick, please make sure you change eth0 if needed:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069
iptables-save

Thank you.

Source : https://www.odoo.com/forum/help-1/question/how-to-change-port-8069-to-another-port-in-openerp-6-1-geoengine-34721

How To Install Odoo V8 On Ubuntu 14.04

Hello,

Odoo is pretty wellknown Open Source ERP system. We can easily install Odoo on any VPS as low as 384MB of RAM.

Before install Odoo, first please install PostgreSQL :

apt-get install postgresql

and create the user for Odoo on the database

sudo su - postgres -c "createuser -s $USER"

Next, we can install the Odoo

wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/8.0/nightly/deb/ ./" >> /etc/apt/sources.list
apt-get update
apt-get install odoo

If you have issue on creating the database with the following error message :
============================================
DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
============================================
Please follow this step to fix the issue.
Login to postreSQL

sudo -u postgres psql postgres

Then run this following command :

update pg_database set datallowconn = TRUE where datname = 'template0';
\c template0
update pg_database set datistemplate = FALSE where datname = 'template1';
drop database template1;
create database template1 with template = template0 encoding = 'UTF8';
update pg_database set datistemplate = TRUE where datname = 'template1';
\c template1
update pg_database set datallowconn = FALSE where datname = 'template0';

Exit from PostgreSQL by press Ctrl-D.

If you have a certificate error with following message :
============================================
GPG error: http://nightly.odoo.com ./ Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY DEF2A2198183CBB5
============================================

Please run this command to fix

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DEF2A2198183CBB5

Thank you.

Source :
https://www.odoo.com/forum/help-1/question/dataerror-new-encoding-utf8-is-incompatible-with-the-encoding-of-the-template-database-sql-ascii-52124
https://www.odoo.com/documentation/8.0/setup/install.html#deb

How To Enable Quota On Ubuntu 12.04

Hello,

To enable Quota on Ubuntu 12.04 it need to install the new image-extra-virtual
To install please run this following command

apt-get install linux-image-extra-virtual.

Then please reboot your server and make sure to use the new image on the grub option. You can check the image used by the system by run this command

uname -a

Please follow this command to enable the quota after the server reboot.

modprobe quota_v1 
modprobe quota_v2 
rm /quota.user && rm /quota.group 
quotacheck -avugm 
quotaon -avug

Thank you.

How To Use IPv6 Only Server To Host A Website

Hello,

Do you have a server or VPS that only has IPv6 only? Confuse how to use this server to host your website? Don’t worry, please use this tutorial to make your domain works with server that has IPv6 only.

1. Please register to CloudFlare as the DNS server for your domain-name
2. Add your domain to CloudFlare
3. Please change the NS setting of the domain name to point to CloudFlare NS
4. Change the following CloudFlare setting of you domain
=> Automatic IPv6 become FULL
5. Please use this record guide to set your DNS
================
AAAA domain-name IPv6
AAAA www IPv6

[optional for sub-domain]
AAAA sub-domain IPv6
================
Thank you