Ubuntu

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.

Well, this is fairly easy and straightforward to setup. The only catch is this is only supported for Ubuntu, so you will need to be okay with that. Once you are, jump over here: http://unetbootin.sourceforge.net/ and downloaded this Windows USB key installer tool.

Basically load up your Ubuntu desktop ISO and select all the options. Now you will see a field to enter a size for your persistent folder titled "space used to perserve files across reboot (ubuntu only). Simply enter a size in this field and hit okay. Size is in MB, so list something like 2000 for 2GB of space. After it builds your USB key you are all set and ready to use your persistent USB key Ubuntu system!



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.

This tutorial is going to guide you through setting up both Windows 7 and Ubuntu 64bit on a PC. The only thing we are assuming is that you are starting fresh with an empty hard drive or you are cool with completely wiping your main drive to do this.



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



Ubuntu - How to Set a Static IP Address

You will need to manually edit some files to set your static IP address. Do the following:

# sudo nano /etc/network/interfaces

Change the file to look like below:

auto lo eth0
iface lo inet loopback
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx

Change the xxx's with the appropriate network information.

Edit the DNS servers by doing the following:
# sudo nano /etc/resolv.conf

nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

now restart your network device. 

# sudo /etc/init.d/networking restart

Do an ifconfig to make sure the static ip address set properly.

# ifconfig



Syndicate content