Tuesday, April 6, 2010

How to add Ubuntu workstation to Windows Domain


I have tried few deferent ways to connect to the Ubuntu workstation to windows 2008 dc and after little research I found a way using likewise open.
Likewise open is free tool that can add Mac Linux or UNIX like OS to Windows Domain. You should visit following site for more details

http://www.likewise.com/index.php
This is the step I Have done. This was done in a Ubuntu 9.10 workstation.
For this I use a static IP address if you're using a DHCP check the configuration equal to you network In my environment im using a windows 2008 that has the following domain name
knights. Local
01. To assign a static IP address

sudo gedit /etc/network/interfaces
#keep the following line
auto lo
iface lo inet loopback
#add the IP address to the network card one
auto eth0
Iface eth0 inet static
address xxxx.xxxx.xxxx.xxxx
netmask xxxx.xxxx.xxxx.xxxx
gateway xxxx.xxxx.xxxx.xxxx
02. then add the DNS to the resolv.conf file
sudo gedit /etc/resolv.conf
# Generated by Network Manager
domain knghts.local
search knights.local
nameserver xxxx.xxxx.xxxx.xxxx
03. Change the host as dns winbind in nsswitch.conf file
sudo gedit /etc/nsswitch.conf
# /etc/nsswitch.conf
passwd: compat
group: compat
shadow: compat
hosts: file dns winbind
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
04. Install likewise open
sudo apt-get install likewise-open
05. now add the pc to domain
sudo domainjoin –cli join fqdn admini user
Eg ; sudo domainjoin –cli join knights.local administrator

After that restart the pc and you can log with your windows domain user to the Ubuntu workstation.


Tuesday, February 9, 2010

Configuring OCS Inventory 1.3 in ubuntu 9.10 step by step

OCS inventory NG (open Computer and software inventory Next Generation) is a free tool that can use for track IT assets in a network (soft ware & Hard ware).This can be implement in Linux and windows and I prefer this in Linux because open source software works better in Linux.

Follow the step as it is because it is the easiest way that I found

Configured on a VM ware virtual pc that has following configuration

  • 256 MB Ram
  • 8 GB HDD

Note :

strongly recommend you to use a static ip for this Ubuntu workstation

Requirements.

01.Apache webserver

02.MySQL Server

03. PhpMyadmin

04. Perl 5.8 or later

Steps

01.After the installation of the VM install the update and upgrade

Note : If you have install VM tools visit following site for more details,

sudo apt-get update

sudo apt-get upgrade

02. Install apache

sudo apt-get install apache2

03.Install MySQL server

sudo apt-get install mysql-server

Remember the password that you are giving for the mysql admin

04.Installing phpMyAdmin

sudo apt-get install phpmyadmin

05. Installing open ssh server

sudp apt-get install open ssh server

06. Installing perl

sudo apt-get install perl


07. create a symbolic link to the phpmyadmin

sudo ln –s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

08. install the following perl modules

sudo apt-get install

libxml-simple-perl libcompress-zlib-perl

libdbd-mysql-perl libdbd-perl libsoap-lite-perl

php5-gd build-essential libapache2-mod-perl

libdbi-perl php5-perl php5-dev-perl

09.Downlad the OCS inventory 1.3 and copy it to the temp folder

0CS -R downladed folder/OCS_UNIX_SERVER-1.3.tar.gz /tmp

10. Go inside the extracted folder and r run the setup

Sudo sh setup.sh

11. Give the full access to the ocs inventory folder to write and modify

First give permiton to the user that are running the setup

Sudo chown –R username /the/directory

eg:sudo chown -R thushara /etc/tmp/OCS Inventory

Then give wride permission

Sudo chmod atrwx /the/folder

eg: sudo chmod 666 /tmp/OCS Iventory

12. change the following values in php.ini file

Post_Max_Size to 20 MB

Upload_max_Filesize to 20 MB

Sudo gedit /etc/php5/apache2/php.ini


13. Restart the apache server

sudo /etc/init.d/apache2 restart

14. open the firefox and go to the following link

http//Ip address/ocsreports/install.php

15. provide the user as root and the password that used when your installing Mysql sever .It will take a wile then click the continue and log in to the ocs inventory server with the default password that is

User name : admin

Password : admin

Now you have sucsesfully installed OCS Inventory NG. :)

take look at the folowing site too learn more about OCS Inventoey NG,