Ubuntu

How to Create a Dual Boot Ubuntu (Linux) and Windows 7 Machine

It's always useful to have a dual boot machine in case you want to do some testing or run different applications that don't run on your primary operating system. I tend to mess around with some web development in my free time, and I like using Ubuntu just for this. Ubuntu is a great desktop and server operating system. I tend to install the desktop version and then install a LAMP stack on top of it for my web testing.

Of course you could simply use VMware and run Ubuntu as a virtual machine on top of your Windows install, but by installing it as a dual boot system, it will run natively, which means I should see better performance out of it as compared to running it as a virtual machine.

So let's get started with the tutorial.

How to Create a LiveUSB Ubuntu Pendrive that saves your Settings

I recently wrote up a guide on how to create a LiveUSB pendrive using Ubuntu. I wanted to share this alternative way of building the system. The previous tutorial showed how to create a Live system on a USB key that would reset each time you reboot your machine. Well let's say you plan to use this USB Live system more permanently and you would like it to save the settings and changes you make while using the system. So basically the settings and options get saved each time you run the system and upon reboot they are still there.

Preparing a Ubuntu (or other distro) Web Server for Drupal

So I recently created a VMware application with Ubuntu to test some of my Drupal sites offline. You can easily install Ubuntu by downloading one of their Images, I recommend 8.04.4 LTS (Hardy Heron) as it comes with Php 5.2. Anything after Hardy Heron comes with PHP 5.3 which causes issues with Drupal 6. If you are using Drupal 7 or newer, than it probably wont matter. But as most of us our probably on Drupal 6, I thought I would mention this.

So just download the server version and run through the installation. It's pretty straitforward and at one point it will ask if you want to install optional services. Install the LAMP, OpenSSH, and anything else you will want. Now you should have a running server with a basic LAMP install running. You will want to edit a few things so that it plays nicely with Drupal.

Drupal uses a bit of memory, so let's increase this first. Edit your php.ini and my.cnf files.

# nano /etc/mysql/my.cnf

Search for max_allowed_packet, there will be two occurrences, increase the limit to whatever you see fit, I push mine to 128M.

# nano /etc/php5/apache2/php.ini Read more »


Ubuntu - How to Install and Setup Samba File Sharing

Install Samba

sudo apt-get install samba smbfs

Then edit the config file

sudo nano /etc/samba/smb.conf

Find the Authentication section which is marked with a header of

'####### Authentication #######' and make the following changes.

Uncomment the security line and add a line

security = user
username map = /etc/samba/smbusers

Now let's add a Samba user by running this command:

# sudo smbpasswd -a <username>

it will then ask you to set a password and confirm

next we will create the file we referenced above and add this

user we just added.

# sudo gedit /etc/samba/smbusers

Add the ubuntu username which you want mapped to the current user

you just added to samba.

Something like this:

<ubuntu-username> = "<samba username>"

save file and exit

Now setup which folders to share

# sudo nano /etc/samba/smb.conf

Find the Share definition section by looking for this

"#======================= Share Definitions

=======================" Read more »


Syndicate content