Git

Week 4 was we mainly learned about Git, what it does and what it’s used for. Git
is basically a distributed version control system that already seems like it will be very useful tool for the remainder of this class. I haven’t used Git version control much before this class but it was easy to pick up after working with it for awhile. The more I use it though, the more easier its becoming to remember the commands which obviously makes working with it quicker and smoother.

From the blog MarcosKnightCS401 by MarcosKnightCS401 and used with permission of the author. All other rights reserved by the author.

Git

Week 4 was we mainly learned about Git, what it does and what it’s used for. Git
is basically a distributed version control system that already seems like it will be very useful tool for the remainder of this class. I haven’t used Git version control much before this class but it was easy to pick up after working with it for awhile. The more I use it though, the more easier its becoming to remember the commands which obviously makes working with it quicker and smoother.

From the blog MarcosKnightCS401 by MarcosKnightCS401 and used with permission of the author. All other rights reserved by the author.

Git

Week 4 was we mainly learned about Git, what it does and what it’s used for. Git
is basically a distributed version control system that already seems like it will be very useful tool for the remainder of this class. I haven’t used Git version control much before this class but it was easy to pick up after working with it for awhile. The more I use it though, the more easier its becoming to remember the commands which obviously makes working with it quicker and smoother.

From the blog MarcosKnightCS401 by MarcosKnightCS401 and used with permission of the author. All other rights reserved by the author.

Git

Week 4 was we mainly learned about Git, what it does and what it’s used for. Git
is basically a distributed version control system that already seems like it will be very useful tool for the remainder of this class. I haven’t used Git version control much before this class but it was easy to pick up after working with it for awhile. The more I use it though, the more easier its becoming to remember the commands which obviously makes working with it quicker and smoother.

From the blog MarcosKnightCS401 by MarcosKnightCS401 and used with permission of the author. All other rights reserved by the author.

Git

Week 4 was we mainly learned about Git, what it does and what it’s used for. Git
is basically a distributed version control system that already seems like it will be very useful tool for the remainder of this class. I haven’t used Git version control much before this class but it was easy to pick up after working with it for awhile. The more I use it though, the more easier its becoming to remember the commands which obviously makes working with it quicker and smoother.

From the blog MarcosKnightCS401 by MarcosKnightCS401 and used with permission of the author. All other rights reserved by the author.

Git

Week 4 was we mainly learned about Git, what it does and what it’s used for. Git
is basically a distributed version control system that already seems like it will be very useful tool for the remainder of this class. I haven’t used Git version control much before this class but it was easy to pick up after working with it for awhile. The more I use it though, the more easier its becoming to remember the commands which obviously makes working with it quicker and smoother.

From the blog MarcosKnightCS401 by MarcosKnightCS401 and used with permission of the author. All other rights reserved by the author.

Git

Week 4 was we mainly learned about Git, what it does and what it’s used for. Git is basically a distributed version control system that already seems like it will be very useful tool for the remainder of this class. I haven’t used Git version control much before this class but it was easy to pick up after working with it for awhile. The more I use it though, the more easier its becoming to remember the commands which obviously makes working with it quicker and smoother.

From the blog MarcosKnightCS401 by MarcosKnightCS401 and used with permission of the author. All other rights reserved by the author.

Research and Ideas during Server downtime

When Neo went down, it was difficult to determine what the next course of action would be since we need the cluster to get Eucalyptus running, and we need Eucalyptus running to actually use eutester. But in the meantime, we worked on several other small projects to get ourselves ready.

First of all, we moved all of our information from our PiratePad to the wiki so that others could start using our material more readily than before. We all made sure we understand the Python code fairly thoroughly as well. On the wiki, we posted info about eutester, getting the repository downloaded, some of the tutorials on Eucalyptus and Python, and even a very comprehensive API for the actual Python code in eutester.

Stephen and I set off to work on figuring out a few key concepts from the code that we are unsure about for this week. There are several code modules in eutester that look like they have to do with specific hardware/operating system instructions, but we want to find out what their jobs are, so we are doing the research this week/last week.

Additionally, we set other members of the team to the task of learning to handle Eucalyptus instances and trying to ssh into them, since we were all originally having problems doing this. Basically, we want people to be able to run their own Eucalyptus image and ssh into it so they can test on their own, or at the very least, just start learning the basics.

This leads into our final (and possibly most ambitious) “assignment” for ourselves this week. We would like to create a Linux kernel that is bundled with a working Eucalyptus image so that we can just upload this kernel whenever we want to test anything and we always know that it will be a working version and it will be compatible with our stuff. Another positive to this would be that since the Eucalyptus servers get wiped every 6 hours, we would already have the image of our personal kernel stored on a local machine and we could simple reupload when the servers get wiped. There is still much to be done before we can understand everything well enough to get to that point, but I think we are on the right track and our group has made very good progress so far in understanding everything they can.

From the blog trevorhodde by Trevor and used with permission of the author. All other rights reserved by the author.

Tutorial – Installing GNU FM

I recently heard about a neat little site called libre.fm that provides a last.fm like service for listening to and sharing your musical interests. Libre.fm, however, runs on free software, respects user privacy, and includes only freely licensed music. The software that powers libre.fm is called GNU FM. I installed it on my home server just to check it out. This post explains what I had to do to get a working installation. The GNU/Linux distribution that I am using is Debian Squeeze. Hopefully this guide can be of help to someone.

Prerequisites

This guide makes the assumption that you already have a functional web server (Apache, nginx, etc.), PHP 5, and database server (either MySQL or PostgreSQL).

Setup Database

I made a MySQL user specifically for GNU FM

CREATE USER 'gnufm'@'localhost' IDENITIFIED BY 'yourpassword';

Create a database

CREATE DATABASE gnufm;

Download Source

GNU FM uses Git for version control. The source is available from gitorious. Clone the repository with the following command.

git clone git://gitorious.org/foocorp/gnu-fm.git

Install Gnukebox

From the gnu-fm directory, copy the server application, gnukebox, to the web server directory.

cp -r gnukebox/ /var/www/

From your web browser, go to http://yourwebserver/gnukebox/install.php. It’s quite straight forward. Enter the information in for your database server like the database name and the user that you have created.

If the web server cannot write to the directory in which you installed gnukebox, you will see a page that prints out the configuration code that you will need to manually insert into the config.php file in the gnukebox directory.

Install Nixtape

From the gnu-fm directory, copy the web interface, nixtape, to the web server directory.

cp -r nixtape/ /var/www/

From your web browser, go to http://yourwebserver/nixtape/install.php. You will enter the same database details as you did for gnukebox and give your GNU FM server a name.

Once again, if the web server cannot write to the directory in which you installed nixtape, you will see a page that prints out the configuration code that you will need to manually insert into the config.php file in the nixtape directory.

Nixtape requires some extra PHP libraries to be installed along with it. Please note that the version numbers of these libraries may be different depending on how far you in the future you are coming from. Which means that copy/paste’ing the commands I give you will not work, but you’ll probably only have to change the version number in the command to make it work.

Install ADOdb

ADOdb is a database abstraction library for PHP. Installing the library takes just a simple apt-get.

apt-get install php5-adodb libphp-adodb

Install Smarty

Smarty is a PHP templating library that nixtape uses for all web pages. There are packages available in the Debian Squeeze repository, but GNU FM does not work with them. The problem is the result of a slightly different path to the files contained in the Debian package. Since the GNU FM repo has a .tar.gz archive of Smarty within it, we’ll just install that instead.

From the gnu-fm directory, cd to the external_dependencies directory.

Extract Smarty and the Smarty text plugin.

tar zxf Smarty-2.6.22.tar.gz
tar zxf smarty-gettext-1.0b1.tgz

Copy the needed files to the nixtape directory.

mkdir /var/www/nixtape/smarty
cp -r Smarty-2.6.22/libs/ /var/www/nixtape/smarty
cp smarty-gettext-1.0b1/block.t.php /var/www/nixtape/smarty/plugins

Create a templates_c directory for compiled templates and make it writeable by the web server user.

mkdir /var/www/nixtape/themes/gnufm/templates_c
chgrp www-data /var/www/nixtape/themes/gnufm/templates_c
chmod 775 /var/www/nixtape/themes/gnufm/templates_c

Profit!

At this point I was able to have a working GNU FM installation. There are still plenty of things left to do such as add music, add a new theme, etc. Maybe once I get around to doing those things I will make a follow-up tutorial. Anywho, I hope this has been of some use to you folks out there in Internet land. Still having a hard time setting up GNU FM? If so, head on over to #libre.fm on irc.freenode.net and ask the developers for help. Oh, and don’t forget to leave a comment if there’s an error or something you would like me to improve in this tutorial. You can also leave a comment and say what a great guy I am. 🙂

Take it easy.

From the blog David Thompson » WSU CS by davexunit and used with permission of the author. All other rights reserved by the author.

CS 401 – New Computers! Spring Break!

In my last blog post I mentioned that the computers that we were using to run Eucalyptus servers were too old to support hardware virtualization, a feature that we absolutely must have. I thought we were doomed, but luckily the IT department was able to give us 9 computers that are much more recent. The computers aren’t new by any means, but the CPUs are dual core and hardware virtualization is supported so I am quite content with them.

On Friday, Prof. Wurst and I set up several of the computers and installed CentOS 6.2 on them. I have already read and written a lot of documentation about how to compile Eucalyptus from source, so it did not take me very long to get the Eucalyptus services running on the new machines. The services, aside from the NCs, are running for the most part on 3 machines now. We decided that it would be best to let the Walrus service have its own server where previously it was on the same server as the CLC. So, the CLC, Walrus, SC, and CC are operational again. I have registered the Walrus, SC, and CC servers (CC and SC are on the same machine, by the way) with the CLC. However, the system is reporting that the SC and Walrus are broken and I have not yet resolved that issue.

In the meantime I decided to set up a couple of NCs, but in trying to set up the ethernet bridge for KVM to use, I managed to lock myself out of one of the servers when I did a `system network restart`. I guess I screwed up the configuration files! It’s not much of an issue because tomorrow I will be going to campus to work in the server room with Mike Iudiciani and I will resolve the issue there.

In doing all of this work, I have found a bug in the `euca_conf` tool. One role of euca_conf is to get credentials for access to the Eucalyptus system via command line. The command line switch for this is –get-credentials. I started the `eucalyptus-cloud` service and tried to get my credentials via euca_conf. However, I just got a “list index out of range” error printed to my terminal. After waiting for some time, the command worked successfully and I got my credentials. The problem appears to be that the cloud services were not fully functional when I tried to get the credentials, and euca_conf did not properly handle the situation and crashed. I will be filing a bug report about this shortly.

In other news, spring break is this week, but since we are running way behind schedule I will be working on this project a lot over the break. Setting up these servers has proven to be much more difficult than anticipated so I will be spending a lot of time trying to catch up to where we should be and hopefully the result of all of this hard work will be a finally functional Eucalyptus cloud.

 

From the blog David Thompson » WSU CS by davexunit and used with permission of the author. All other rights reserved by the author.