If you’ve been wishing that you could install a web server on your Ubuntu PC, you will be pleased to find out that you can install one very easily. All you will need is an Internet connection, and a bit of time. I hope this guide is helpful.
Here’s how to install: Open Synaptic Package Manager. Choose Edit > Mark Packages by Task. Scroll down and check the box beside “LAMP Server.” This will mark apache2, PHP, and MySQL for installation. Apply the changes. You will be prompted for some configuration information. That’s it! Punch http://localhost into your browser’s address box to test your installation.
Now I suppose you want to add some files. The server’s root directory is /var/www. If you navigate there with your file browser you will see the files, and even be able to open them with gedit, but you will not be able to edit them. This is because the directory is owned by root. There are multiple ways to work with this. You can run Nautilus from a terminal (sudo nautilus /var/www), or even create a launcher on your desktop (for this command: gksudo nautilus /var/www). However, you will probably find it more convenient to change the permissions of the /var/www folder. To do this, run Nautilus as root (sudo nautilus), navigate to the /var folder and right-click on the www folder. Give yourself access under the permissions tab. Now you can create and delete files without running your file browser as root.
Feedback welcome!
Oh by the way, you can access the server from another computer on the network as well, provided that your firewall allows incoming traffic on port 80. Just enter http://your-ip, where your-ip is the ip address of the computer that hosts the server.
One of the strengths of Linux and open-source in general is that it is infinitely customizable, allowing it to be used to power anything from a phone to a mainframe. In addition, there are a wide variety of distributions available, some of which are targeted at specific tasks. Ken Hess has compiled a valuable list of 10 special-purpose Linux distributions. You can find his list at:
http://www.daniweb.com/news/story239006.html
I’ve been on the look-out for open source firewall software recently. For your benefit, here’s a list of what I’ve found so far:
pfSense – http://www.pfsense.com/
m0n0wall – http://m0n0.ch/wall/
IPCop – http://sourceforge.net/apps/trac/ipcop/wiki
Untangle – http://www.untangle.com/
Zeroshell – http://www.zeroshell.net/eng/
I also ran across a very interesting web-based SSL VPN:
OpenVPN ALS (a.k.a as Adito) – http://sourceforge.net/projects/openvpn-als/
I recently designed several web-based software applications using PHP & MySQL. Some of the applications allow the user to upload photographs to the web server. However, it seems many times when I install one of these apps on a new server, I have trouble with the image upload feature. After several episodes of head-scratching, I’m posting everything I know about the subject here. Hopefully, it will server as a reminder to me and some assistance to others.
Most of the Linux servers I maintain are running Ubuntu 8.04, so the specific file locations will be geared toward that distribution.
- Make sure the php5-gd package is installed. That’s pretty basic but can be overlooked(I’m living proof of that). In Ubuntu 8.04 the command to install the appropriate package is:
sudo apt-get install php5-gd
- In php.ini (usually in /etc/php5/apache2 or somewhere close), check the following values:
memory_limit needs to be of sufficient size.
post_max_size needs to be of sufficient size.
file_uploads needs to be on
upload_max_filesize needs to be of sufficient size
- Make sure the default system temp directory (usually /tmp) is writable by everybody. This is usually the case by default, but I had this trouble on some physical servers that I had converted to OpenVZ containers.
Good luck!
About a week ago I pulled the plug on my EVNow.org website. I started the site a few years ago with big dreams of it becoming the place to go for news on alternative energy and electric cars. Unfortuately, one guy can only do so much in a 24-hour day. So EVNow is one hobby that had to go.
On the bright side, GreatCove.com is back on its feet. Last spring I had replaced the home page of the site with a message about going out of business. At the time I had taken a position with the Fulton County Government. I am still happily employed there, but I have begun to do some web programming on the side. No, I am not doing repair and networking, so don’t rush to the phone to call me concerning your virus infested home computer.
Yesterday I stumbled across an article on how to install the beta version of Google Chrome on my Ubuntu 9.10 desktop. The article mentioned using the command line, but I found just downloading the file, double-clicking to open it, and then clicking “Install” did the job just fine. Nice!
http://linux.com/news/software/applications/31870-get-your-chrome-experience-on-in-linux
Before you plunk down serious cash on an enterprise virtualization solution, check out the free, open-source ProxMox VE. It is based on two mature open-source virtualization products, namely OpenVZ and KVM. I maintain two physical ProxMox VE servers running a total of eight virtual machine “guests”, including Ubuntu 8.04, Ubuntu 9.04, Windows 2003, and CentOS. So far, the expirience has been nothing but positive.
To download ProxMox VE, head over to the developers website at www.proxmox.com and find ProxMox VE on their product page. Or just go straight to pve.proxmox.com to get right into the good stuff.
There’s also a good review of ProxMox over at www.montanalinux.org.
I cringe when I hear of somebody buying a computer game. It’s like paying for the privilege of wasting time. I can’t be too critical, however; because a few years back I was an avid game player myself. At the height of my time-wasting addiction, I played Age of Empires II for as long as ten hours straight.
For those of you who are still into gaming, I can recommend a couple of very nice commercial-quality games available for free. They still waste your time, but not your money.
The first is Glest. It is a real-time strategy game with game play similar to the Age of Empires series. Like most modern RTS games, it uses a 3D rendering engine so you are free to change your point-of-view by rotating and zooming the display. The more recent versions have added the ability to play with others over the Internet. Nice!
Another good one is Battle for Wesnoth. This is a turn-based strategy game and there is a bit of a learning curve. If your experience is like mine, the effort will pay off with a LOT of wasted time and possibly a stubborn addition to the game. Like Glest, you can play against the computer or other humans. Since it is turn-based, Wesnoth can even be played like a board game by several time-wasting humans huddled around a single PC.
It seems like mail server software from the largest software company on earth would include an easy way to export email addresses for printing or use by other programs. Unless I’m missing something, that is not the case. It can be done, but it takes some work. Here is how I accomplish it:
- From within Outlook, click on File > Folder > New Folder
- Give it a name, such as BernardoIsCool
- Pull down the list of options beside “Folder Contains:” and select “Contact Items”
- Select Contacts as the location to place the folder, and click OK
- Click Tools > Address Book
- From within the address book, click Tools > Options
- Under “Keep personal addresses in:” choose the folder you created in Step 2
- Click OK
- Select all of the addresses in the address book. Because neither CTRL+A nor the edit menu will help you with this (What is up with that, Billy?), click on the topmost address and then use SHIFT+PAGE DOWN to select the rest.
- Right-click on one of the selected addresses and click “Add to contacts”
- Close the address book, and go to your Outlook Contacts. Select the newly created folder and you should see everybody in the global address book.
- Finally, use File > Import and Export tool to get the list of addresses into a CSV (comma-separated text file). You can then use Calc or Excel to get rid of the extra columns.
A few weeks ago, Google took the wraps off of a new web browser called “Chrome“. The browser enters into competition against a handful of entrenched foes, mostly notably Microsoft Internet Explorer and Mozilla Firefox. I took Google Chrome for a spin over the past few days and like what I see. The user interface is simpler than either IE or Firefox, and it appears to be the fastest of the three browsers as well.
Chrome is supposedly optimized to run web applications such as those provided by Google. Some even say it will eventually replace Windows as fewer applications are installed on computers and more of them hosted online.
What do you think? Is this a possibility?