Marilag Ang Malaya

Friday, January 30, 2009

Reconfiguring VirtualBox after installation of new kernel

When you update your kernel, you will need to recompile the VirtualBox kernel module. This can be done by running the command:
sudo /etc/init.d/vboxdrv setup
You will need to have the Dynamic Kernel Module Support Framework (DKMS) installed to do this.
sudo apt-get install dkms

Labels: , ,

Thursday, January 29, 2009

Open Office 3.0 on Ubuntu 8.10 (Intrepid Ibex)

OOo3 will not be available on Ubuntu 8.10 because the developers did not have enough time to test it. If you really need to install the latest and greatest OOo3, you can find installation instructions on Softpedia.

Labels: , ,

Friday, January 23, 2009

Subversion on Eclipse Ganymede

The latest Eclipse Ganymede shipped with the SVN connectors. The update URL's are written below if your Eclipse does not have them.

Install the following:

http://www.eclipse.org/subversive/downloads.php


http://www.polarion.com/products/svn/subversive.php?src=eclipseproject

Labels: , , ,

Show secure sites more clearly

Firefox removed the yellow bar that indicated a secure site. Only secure sites with Extended Validation (EV) certificates, i.e. forked out a lot of money, show up with a nice green bar. Other sites with self-signed certificates or whose CA's public keys are not shipped with Firefox, they simply show up as a regular site.

To help show which sites are SSL-enabled, you need to edit the default configuration of Firefox. We browse the about:config page in Firefox and search for the term browser.identity.ssl_domain_display. We can set this to any of three possible values:
0 - default
1 - display top level domain only, e.g. blogspot.com
2 - display entire domain, e.g. neutitan.blogspot.com
I recommend setting the value to 2.

Subversion on Ubuntu 8.10

Access methods
  1. file:/// - direct access on local machine
  2. http:// - using WebDAV
  3. https:// - SSL-encrypted
  4. svn:// - access via svnserve machine
  5. svn+ssh:// - SSH-tunneled
Installation Instructions
  1. Install the necessary packages:
    $ sudo apt-get install apache2 subversion libapache2-svn
  2. Create the group (to contain subversion users)
    $ sudo groupadd subversion
  3. Create the repository folders
    $ sudo mkdir /srv/svn
    $ cd !$
    $ sudo mkdir new_project
    $ sudo chown -R www-data:subversion new_project
    $ sudo chmod g+rws new_project
  4. Tell subversion to create subversion repository. I"t will create new files.
    $ sudo svnadmin create /srv/svn/new_project
  5. (Optional) If you want to use the WebDAV (http, https) methods, you will need to repeat the last two commands in § 3, and apply these to the new files generated by § 4.
    $ sudo chown -R www-data:subversion new_project
    $ sudo chmod -R g+rws new_project
Enabling WebDAV access
  1. Now, edit the /etc/apache2/mods-available/dav_svn.conf file, and add the following lines:
    <Location "/svn/new_project">
    DAV svn
    SVNPath /srv/svn/new_project
    AuthType Basic
    AuthName "My Project Subversion Repository"
    AuthUserFile /etc/subversion/passwd
    <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
    </LimitExcept>
    </Location>
    You may also point it to the "root" subversion folder /srv/svn if you wish to view the repositories of all projects that you are hosting.
  2. Restart the web server.
    $ sudo /etc/init.d/apache2 restart
  3. (Optional) If you want to use WebDAV with SSL, simply follow standard Apache SSL certificate use.
  4. Add the subversion users.
    $ sudo htpasswd -c /etc/subversion/passwd first_user
    $ sudo htpasswd /etc/subversion/passwd subsequent_users
  5. Check if the passwd file exists.
    $ cat /etc/subversion/passwd
  6. Check if we can access the repository.
    $ svn co http://hostname/svn/new_project new_project \
    --username first_user
Access using SVN protocol
  1. Edit the configuration file, /srv/svn/new_project/conf/svnserve.conf
  2. Uncomment the these lines in the configuration file:
    [general]
    password-db = passwd
    N.B. These lines must not contain spaces before them.
  3. Edit the passwd file in the same folder and add a new user using this syntax:
    username = password
  4. Now, run the svnserver with this command:
    $ sudo svnserve -d --foreground -r /srv/svn
  5. Now, try to access the SVN using:
    $ svn co svn://hostname/new_project new_project \
    --username first_user
  6. You can now use SVN sub-commands to add/edit/delete files here.
Access using SVN+SSH protocol
  1. After enabling the SVN protocol above, enable SSH on the SVN server and create accounts for people who are given access.
  2. Check the access to the SVN using this command:
    $ svn co svn+ssh://hostname/srv/svn/new_project new_project \
    --username first_user
  3. N.B. You must use the full path of the SVN repository.
References
Subversion, Ubuntu Documentation, accessed 2009 January 23.

Labels: , , ,