Posts Tagged ‘ubuntu’

Authenticate to Active Directory with Ubuntu

9. July 2009

1 Comment »

While Linux is a fantastic operating system, when it comes to user rights management, Active Directory is far superior than anything Linux currently implements. As a result many businesses and organizations implement the technology. For a longtime it was extremely difficult to get a Linux operating system to authenticate with active directory – configuring multiple services and managing to get them to work with each other, let alone work with Windows was a task best left for those with years of Linux administration experience. However, in recent years as Linux has become more user friendly, and it should be no surprise that authenticating with active directory has become easy too. In the past few days I have been working with an opensource software called likewise-open which is in the official Ubuntu repositories. Below is a quick guide to getting started and some tips/issues I have found.

Authenticating with likewise-open 4.1 (from Ubuntu 8.04 repository)

1. Install likewise-open
# sudo apt-get install likewise-open

2. Join the domain
# sudo domainjoin-cli join your.fqdn domain_admin
For example:
# sudo domainjoin-cli join example.com Administrator

REBOOT

3. Update rc.d
# sudo update-rc.d likewise-open defaults

4. Start likewise-open
# sudo /etc/init.d/likewise-open start

Using the default domain with likewise-open 4.1
To use the default domain (and avoid using DOMAIN\user to login) append the following line to /etc/samba/lwiauthd.conf
winbind use default domain = yes
==============================================================

Authenticating with likewise-open 5.1 (from Ubuntu 9.04 repository)

1. Install likewise-open5
# sudo apt-get install likewise-open5

2. Join the domain
# sudo domainjoin-cli join your.fqdn domain_admin
For example:
# sudo domainjoin-cli join example.com Administrator

REBOOT

3. Update rc.d
# sudo update-rc.d likewise-open defaults

4. Start likewise-open
# sudo /etc/init.d/lsassd start

Using the default domain with likewise-open 5.1
To use the default domain (and avoid using DOMAIN\user to login) uncomment the following line in /etc/likewise-open5/lsassd.conf
assume-default-domain = yes
==============================================================

Giving domain administrators sudo privileges
Append the following line to /etc/sudoers
%your.fdqn\\domain^admins ALL=(ALL) ALL

==============================================================
Known issues
1. After rebooting the computer and logging in you are given the error “Domain Controller unreachable, using cached credentials instead. Network resource may be unavailable.” Likewise does not start correctly. You have to login as a local admin and run the following command and then users will be able to login.
# sudo /etc/init.d/likewise-open restart
Issue seems to be resolved with likewise-open5

2. If you are having issues authenticating wirelessly, make sure your wireless connection is established. In many instances, wireless will only connect AFTER you login.

3. Samba does not hide hidden windows shares

Setting up a LAMP server with Ubuntu

5. July 2009

No Comments »

Ubuntu, known for its ease of use, makes no exception for setting up an apache, mysql, and php stack. Since the release of Feisty Fawn, Ubuntu has come packed with tasksel – a user interface for installing tasks.

1. At your command prompt, run tasksel as root.

john@earth:~$ sudo tasksel

2. Select LAMP server
1

3. Continue the installation by following the prompts.

It works!
4

One tool I have difficulty living without is phpMyAdmin. From the command prompt type

sudo apt-get install phpmyadmin

Continue the installation by following the prompts. If you are using a version of Ubuntu older than 9.04 (Jaunty) you will need to add the following line to /etc/apache2/apache2.conf Continue the installation by following the prompts. Version 9.04 does this automatically. You will be able to access phpMyAdmin by browsing directly to http:///phpmyadmin

Universal Netboot Installer

7. June 2009

No Comments »

The first thing I did when I received my new Asus F6Ve-B1 was download Ubuntu 9.04 and ready myself for a clean installation of a decent operating system. I burnt the ISO, rebooted my PC, and entered the Ubuntu installation menu. Shortly after I was presented with a screen full of errors.

[ 57.764316] Buffer I/O error on device sr0, logical block 22

This means that the CD cannot be read. Either because of faulty or misconfiguration hardware or faulty media. After a quick Google search, there appeared to be several solutions. The most popular ones being “Try a new CD ROM drive” and “Burn your ISO at a lower speed and verify the md5 signature.” I opted for neither of these solutions, an instead did a USB install. A very useful piece of software to aid in this process is UNetbootin.

UNetbootin can create a bootable Live USB drive, or it can make a “frugal install” on your local hard disk if you don’t have a USB drive. It can load distributions by automatically downloading their ISO (CD image) files, or by using existing ISO files, floppy/hard disk images, or kernel/initrd files, for installing other distributions.

screenshot

This is a must have piece of software for your toolbox!

Note that the MySQL client library is not bundled anymore!

9. May 2009

No Comments »

Unable to get PHP configured to my specifications using the Ubuntu repositories, I decided to install it from source. However, I kept getting the error:

Note that the MySQL client library is not bundled anymore!

Not wanting to install MySQL from source, I found a package in the Ubuntu repositories that installed the necessary library files.

sudo apt-get install libmysqlclient15-dev

After I installed that package, PHP was able to install successfully.

Slow connection to Ubuntu repositories

9. May 2009

No Comments »

While attempting to get a fully functional LAMP stack running on my Ubuntu install, I opted to use the repositories for some necessary libraries. The first package I installed was approximately 20MB and it took about three hours. While it was downloading (since I had some spare time), I checked my internet connection. I soon found out that it wasn’t my ISP since I was getting 12Mb/s down. I also scanned the Ubuntu forums for any sign of server maintenance that could be causing the slowness. I didn’t find anything. I then tried changing the repository download location:

System->Administration->Synaptic Package Manager from there Settings->Repositories. From the “Download from” drop down, select “Other.” Click on “Select Best Server” will ping all of the repository locations and select the location with the best ping.

That didn’t help either. After many fruitless attempts I narrowed the fault down to my router. I upgraded its firmware and that fixed it!