by Frost

Introduction
The past few days I have been digging and diving and reading through many different tutorials about setting up SVN (or Subversion) through Apache2 on Debian based Linux Distro's. After many trials and errors and taking down my webserver a few times I finally was able to get a full on SVN Server for my main website up and running with Authentication over SSL, and here is my tale.

The Line of Thinking
I have always wanted an SVN server for my main web server but never really had the time or motivation to figure out how to do SVN through command line (SSH) and on a Debian Linux Distro. Well the past couple days I have spent countless hours working on my main Xubuntu install getting SVN figured out and working. Then porting that over to my Server which has Debian Etch installed on it. How I wanted my SVN repository setup was what made sense to me for a web server. I stuck to the basic Tree with "trunk" and "branch" but decided to omit the "tags" since it is a website I am "versioning". Here is the tree structure:

    | ___ branch
    |         ___ www
    | ___ trunk
    |         ___ www

This structure suited my needs perfectly, as I wanted my other developer (it is only me and one other person) to be able to setup a webserver locally with branch then once the code is working under branch copy it over to trunk. Anything in trunk could at anytime be copied to webroot via a shell script. So I have stressed many times to only copy / commit working projects / files to trunk. Since this makes sense in my mind, it may not in yours, so do what you feel is best, I just found that structure to work for my needs.

Preparing The Server
Whether you are going to be setting up SVN on your local server just for your self to keep track of projects or on your remote server there are some steps to take to setup the server, with the first one being making sure you have the packages installed that need to be installed. If you are using Debian, the aptitude package manager. Here are a list of packages that are needed (Note I am assuming you are working under Apache2):

subversion
libapache2-svn

So a simple command (seen below) can make sure you have these packages installed:

1
sudo apt-get install subversion libapache2-svn

Once that has been done, we need to make sure that DAV and SSL (if SSL is wanted) are enabled by doing some simple commands:

1
2
sudo a2enmod dav
sudo a2enmod ssl

If for whatever reason you need to disable a module, the opposite to a2enmod is a2dismod (dis for disable). This is much easier then manually creating the symbolic links, and I would suggest you to use it.

Now that we have our webserver prepared (sort of) to at least handle Subversion Repositories the DAV mod and SSL connections, let's get to creating the subversion repository.

Creating the Subversion Repository
The subversion creation is really straight forward. I put my repositories under /var/svn/project_name, this is just a preference, feel free to choose where you want to put the repository, just remember the location as we will need it when we get to the VHosts file later on.

Before we get to far into the subversion, I love to create a template directory structure to do for the initial import, so here is a bash script, using a similar path to the one above to setup the structure I have outlined in this script:

1
2
3
4
5
cd /var
mkdir svn
cd svn
mkdir -p template/branch/www
mkdir -p template/trunk/www

Using the directory I stated above, here are the commands I would use to create the initial repository:

1
2
3
4
5
6
cd /var/svn
mkdir project_name
svnadmin  create project_name
chown -R www-data:www-data project_name
chmod -R g+rws project_name
svn import templates/ file:///var/svn/project_name/ -m "Initial import for structure."

Those commands are pretty straight forward. We need to change the owner (chown) to be www-data so Apache can effectively create / delete items to and from the repository. We also need to change the mode (chmod) to g+rws which essentially sets that any user part of the group www-data has read / write / and to set the user / group id upon execution. Viola we should have a fully working Subversion Repository (well almost fully working).


by Frost

Introduction
In reference to How To: Join / Combine MP3’s for Free on Windows, I decided to create a tutorial for combining / joining MP3s on Linux for Free as well. Although the process is slightly different it is still the same process, so let's get to it.

Initial Steps
First up we will use the Cat command to combine files, this is highly useful for combining text file, but will also combine binary files flawlessly. Before we plunge head first into combining MP3's we need to first remove any ID3 tag information from the files. In order to do this I installed a program called "eyeD3" on my Ubuntu system through Synaptic Package Manager. The command for eyeD3 to remove all tags is as follows:

1
eye3D --remove-all /path/to/mp3-files/*

This will remove all versions of ID3 tags on any MP3 in the directory pointed to. Doing this will prevent some MP3 players from acting weirdly (such as skipping over parts of the joined MP3). Now that we have our files setup, time to combine the files.

by Frost

Introduction
This morning I found myself ripping my hair out attempting to get my wireless card working on my new dual boot Ubuntu 9.10 / Windows 7 setup. The wireless worked great on Windows 7, but alas, the dreaded Ubuntu Karmic Koala was putting up a fight! Well here is how I was able to get my wireless card to work on Ubuntuo 9.10 Karmic Koala.

The First Steps
After many hours of googling (I was plugged into a hardline connection) I had learned nothing about the problem other then feeble attempts at trying to use ndiswrapper drivers to no avail. This was very disheartening, as it seems installing and using ndiswrapper worked for many people. Well unfortunately it did not work for me. Now I am just sitting here twiddling my thumbs and decide to lookup some simple commands I could use to probe and see why my wireless card was not working. It boiled down to 1 command that really caught my attention, "lshw"!

lshw Command on Ubuntu 9.10 Karmic Koala
It seems as though the lshw command lists available hardware on the system. In a desperate attempt I decided to give it a try. Well what came up really caught my attention, under *-network there was a "disabled" next to it. Which caught my attention and got me thinking, why is my wireless card disabled? Well in this line of thinking I stumbled upon another helpful command "lspci | grep Network" which pulled out the listing for the card. To my surprise it told me it was missing something to do with b43.

Fixing the missing b43
Well it turns out the b43 firmware was missing for the broadcom wireless card. Well great, thinking of how to fix it I decided to see if there was anything in the Synaptic Package Manager. I do a quick search for b43 and to my surprise on package comes up, b43-fwcutter, which basically extracts the broadcom firmware. Of course I install this package at once! After I installed it, the card did not work. Since this had to do with firmware etc, I decided to try a reboot. Once the computer came back up WOOHOO! My Ubuntu 9.10 Karmic Koala now has WiFi capabilities and connected flawlessly to my networks.

Ending Notes
Although I was very frustrated at time, I am extremely happy that the solution was a simple one. I decided to write this entry to help others out there with a Broadcom card having the same issue on Ubuntu 9.10 Karmic Koala. What took me a few hours to figure out, should have been more like 10 minutes to get straightened out. This was a great learning experience for me and I am so happy that I finally got the Wireless card to work! I hope this works and helps you out as well.

Other Notes
I am not an expert at Linux / Ubuntu by any means. I do not claim to be, as such if the above does not work, I am not sure how to fix it for you. Your question is better directed towards the Ubuntu Help Forums. If this does work, great! Glad I could help. Just an FYI that you posting your problems here means that you are posting them in vain if you are expecting me to fix them for you. Thank you!

© 2012 Help Source for Coders - Get Slunked! Suffusion theme by Sayontan Sinha
Stop SOPA