Ubuntu

Ubuntu 12.04 Samba Standalone Server With tdbsam Backend

The installation of a Samba fileserver on Ubuntu 12.04 and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. not issue any guarantee that this will work for you.

1 Preliminary Note

an Ubuntu 12.04 system here with the hostname server1.example.com and the IP address 192.168.0.100

running all the steps in this tutorial with root privileges, so make sure you’re logged in as root

sudo su

2 Installing Samba

Connect the server on the shell and install the Samba packages

apt-get install libcups2 samba samba-common

Edit the smb.conf file

vi /etc/samba/smb.conf

remove the “#” at the beginning of the line security = user in the below

[...]
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.

 Continue reading “Ubuntu 12.04 Samba Standalone Server With tdbsam Backend” »

Be the first to comment - What do you think?  Posted by Aniruddh - August 9, 2012 at 12:01 am

Categories: File Server, Ubuntu   Tags:

Using mod_spdy With Apache2 On Ubuntu 12.04

SPDY means is a new networking protocol whose goal is to speed up the web. It is Google’s alternative to the HTTP protocol and a candidate for HTTP/2.0. SPDY augments HTTP with several speed-related features such as stream multiplexing and header compression.This tutorial explains how to use mod_spdy with Apache2 on Ubuntu 12.04.

1 Preliminary Note

SPDY runs over HTTPS, so we need an HTTPS-enabled web site to test SPDY. Please note that SPDY will fall back to HTTPS if the user’s browser does not support SPDY or if things go wrong, so installing mod_spdy doesn’t hurt your existing setup.

assuming that you have a working LAMP setup, as described on Installing Apache2 With PHP5 And MySQL Support On Ubuntu 12.04 LTS (LAMP)

testing purposes I wil lsimply enable the default SSL web site that comes with Ubuntu’s Apache package

Continue reading “Using mod_spdy With Apache2 On Ubuntu 12.04” »

Be the first to comment - What do you think?  Posted by Aniruddh - August 8, 2012 at 11:36 pm

Categories: Ubuntu, Web Server   Tags:

Integrate ClamAV Into PureFTPd For Virus Scanning On Ubuntu 12.04

This explains  integrate ClamAV into PureFTPd for virus scanning on an Ubuntu 12.04 system.a file gets uploaded through PureFTPd, ClamAV will check the file and delete it if it is malware.

1 Preliminary Note

PureFTPd setup on your Ubuntu 12.04 server

you are logged in as root

sudo su

should run all the steps as root user

2 Installing ClamAV

ClamAV can be installed as show below

apt-get install clamav clamav-daemon clamav-data

Run

freshclam

Download the latest virus signatures and starts the ClamAV daemon

/etc/init.d/clamav-daemon start

 

3 Configuring PureFTPd

create the file /etc/pure-ftpd/conf/CallUploadScript which contains string yes

echo "yes" > /etc/pure-ftpd/conf/CallUploadScript

create the file /etc/pure-ftpd/clamav_check.sh it wil be usefull when file uploaded through PureFTPd

Continue reading “Integrate ClamAV Into PureFTPd For Virus Scanning On Ubuntu 12.04” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 6:01 pm

Categories: Ubuntu   Tags:

How To Upgrade Kubuntu 10.04 (Lucid Lynx) To 10.10 (Maverick Meerkat)

The new Kubuntu 10.10 (Maverick Meerkat) has just been released. This guide shows how you can upgrade your Kubuntu 10.04 desktop installation to Kubuntu 10.10.

1 Upgrade
Go to Applications > System

and open a terminal

In the terminal

sudo su

Then open /etc/update-manager/release-upgrades

vi /etc/update-manager/release-upgrades

and change the line Prompt=lts to Prompt=normal

Close the terminal

Now go to Applications > System > Software Management

KPackageKit opens. In KPackagekit, go to Software Updates. You should find a message there that a distribution upgrade is available

Click on Continue to confirm that you want to do the distribution upgrade

A window with the release notes for 10.10 comes up. Click on Upgrade

The upgrade tool is now being downloaded, and the upgrade is being prepared

Continue reading “How To Upgrade Kubuntu 10.04 (Lucid Lynx) To 10.10 (Maverick Meerkat)” »

Be the first to comment - What do you think?  Posted by Aniruddh - July 10, 2012 at 8:16 pm

Categories: Linux, Ubuntu   Tags:

How To Install Alfresco Community 3.3 On Ubuntu Server 10.04 (Lucid Lynx)

Alfresco is the Open Source Alternative for Enterprise Content Management (ECM), providing Document Management, Collaboration, Records Management, Knowledge Management, Web Content Management and Imaging.

1. Installing Ubuntu Server 10.04

Ubuntu 10.04, follow steps in page 1 and page 2.

2. Notes

You need to enable ‘partner’ repository in /etc/apt/sources.list. Otherwise the required package sun-java6-jdk will not be installed.
The following IP address is used for the server: 192.168.1.1/255.255.255.0
Please replace the above points with your current settings.

3. Required dependencies

As root run the following command to install the required

root@dms:~# apt-get install mysql-server sun-java6-jdk imagemagick swftools openoffice.org-core openoffice.org-java-common openoffice.org-writer openoffice.org-impress openoffice.org-calc

4. Configuring JAVA_HOME variable

root@dms:~# source /etc/environment

5. Change MySQL default character set

complex language that requires UTF-8 like arabic, farsi, hebrew, etc… You’ll need to force UTF-8 support in mysql, otherwise any document with a title written in e.g. arabic language will appear as ???????

Edit /etc/mysql/my.cnf and add the following under [mysqld]:

Restart mysql

root@dms:~# /etc/init.d/mysql restart

6. Database setup for Alfresco

Continue reading “How To Install Alfresco Community 3.3 On Ubuntu Server 10.04 (Lucid Lynx)” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 19, 2011 at 3:40 pm

Categories: Ubuntu   Tags:

Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04)

Nginx with PHP 5.3.3 and PHP-FPM on Ubuntu Lucid Lynx (10.04-amd64). The Lucid release is a Long-Term Support (LTS), will be supported for three years on the desktop and for five years with the server version.

Step 0 – Preliminary Notes

Step 1 – Install Nginx

apt-get install nginx

Step 2 – Install all required dependencies for this installation

apt-get install autoconf2.13 libssl-dev libcurl4-gnutls-dev libjpeg62-dev libpng12-dev libmcrypt-dev libmysql++-dev libfreetype6-dev libt1-dev libc-client-dev libbz2-dev mysql-client libevent-dev libxml2-dev

Step 3 – Download PHP

cd /usr/local/src

wget http://se.php.net/get/php-5.3.3.tar.gz/from/this/mirror

tar xzf php-5.3.3.tar.gz

Continue reading “Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04)” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 3:40 pm

Categories: Ubuntu   Tags:

Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) Without Compiling Anything

Apache is most of the time a memory hungy process, people started to look for different ways to host their website. Apache is clearly not the only webserver available. A few good examples are lighttpd and nginx. In this tutorial I will show you how to install it on your Ubuntu server. This tutorial also applies to Debian, though. There is only a very small difference

Step 0 – Preliminary Notes

In order to complete this tutorial, I assume you have installed a base system of Ubuntu Lucid (10.04). How this can be done, can be read in different tutorials. This tutorial only focusses on getting nginx+php running without much hassle.

Step 1 – Nginx

Installing nginx is the first step we have to do. This can be easily done by downloading it from the repository.

sudo apt-get install nginx

default vhost has to be changed in order to work properly

sudo vim /etc/nginx/sites-available/default

Step 2 – Installing PHP

Many sites rely on PHP for providing them dynamic content, whether this is a wiki, forum software, weblog or something entirely different.
There is no need to use DotDeb, since PHP5.3 is now officially supported in Ubuntu Lucid (10.04). Its as easy as

sudo apt-get update

resulting text should include dotdeb.

Now we’ll install PHP. In order to install PHP-FPM, we’ll have to add the PPA to it since it is not officially supported

 add-apt-repository ppa:brianmercer/php

sudo apt-get update && sudo apt-get install php5-fpm

Continue reading “Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) Without Compiling Anything” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 18, 2011 at 3:13 pm

Categories: Ubuntu   Tags:

How To Install Latest Intel Driver 2.12 On Ubuntu 10.04 (Lucid Lynx)

the most interesting update of the Intel drivers for linux is now a fact. We can now have this great hardware acceleration for playing h.264 video. Or in other words we now have Hardware acceleration for HD content with our Intel video cards. As an owner of U400-138 with Intel 4500 MHD I have been waiting for this over a year but now I can play 720p without an issue. And so here is how to install this.

First let’s add the Xorg-edgers repo.

$ gksudo gedit /etc/apt/sources.list

need to install everything

$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 8844C542
$ sudo apt-get update
$ sudo apt-get dist-upgrade

Continue reading “How To Install Latest Intel Driver 2.12 On Ubuntu 10.04 (Lucid Lynx)” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 17, 2011 at 12:27 pm

Categories: Ubuntu   Tags:

Ubuntu 10.04 Samba Standalone Server With tdbsam Backend

the installation of a Samba fileserver on Ubuntu 10.04 and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. In the resulting setup, every user has his own home directory accessible via the SMB protocol and all users have a shared directory with read-/write access.

1 Preliminary Note

I’m using an Ubuntu 10.04 system here with the hostname server1.example.com and the IP address 192.168.0.100.

I’m running all the steps in this tutorial with root privileges, so make sure you’re logged in as root

sudo su

2 Installing Samba

Connect to your server on the shell and install the Samba packages

aptitude install libcups2 samba samba-common

Edit the smb.conf file

vi /etc/samba/smb.conf

Close the file and restart Samba

/etc/init.d/smbd restart

Continue reading “Ubuntu 10.04 Samba Standalone Server With tdbsam Backend” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 16, 2011 at 11:53 am

Categories: samba, Ubuntu   Tags:

Using iSCSI On Ubuntu 10.04 (Initiator And Target)

Explains how you can set up an iSCSI target and an iSCSI initiator (client), both running Ubuntu 10.04. The iSCSI protocol is a storage area network (SAN) protocol which allows iSCSI initiators to use storage devices on the (remote) iSCSI target using normal ethernet cabling. To the iSCSI initiator, the remote storage looks like a normal, locally-attached hard drive.

1 Preliminary Note

two Ubuntu 10.04 servers here:

server1.example.com (Initiator): IP address 192.168.0.100
server2.example.com (Target): IP address 192.168.0.101

Because we will run all the steps from this tutorial with root privileges, we can either prepend all commands in this tutorial with the string sudo, or we become root right

sudo su

2 Setting Up The Target (server2)

server2:

First we set up the target (server2):

aptitude install iscsitarget

Open /etc/default/iscsitarget...

vi /etc/default/iscsitarget

We can use unused logical volumes, image files, hard drives (e.g. /dev/sdb), hard drive partitions (e.g. /dev/sdb1) or RAID devices (e.g. /dev/md0) for the storage. In this example I will create a logical volume of 20GB named storage_lun1 in the volume group vg0

Continue reading “Using iSCSI On Ubuntu 10.04 (Initiator And Target)” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 12, 2011 at 6:35 am

Categories: Ubuntu   Tags:

Next Page »