Saturday, December 3, 2011

B3 Server 2.3.2 Update


Minor update.

Upgrading to 2.3.2

  • Become root
$ su
  • Do an upgrade
# apt-get update
# apt-get upgrade
  • Left beyond packages
# apt-get install bubba-album bubba-backend libdbix-class-perl libsql-abstract-perl squeezecenter
  • A little cleansing
 # apt-get autoremove
You can confirm the software version going into b3 web administration page, then Settings and Software update.


Official Excito forum notes

New features and major changes
* Fixed issue in ftd causing upload via file manager to fail after 256 files
* Fixed memory leak issue in disk manager, causing UI to behave strange and some operations to fail
* Fixed memory leak issue in photo album generation

Sunday, November 6, 2011

Backing up MySQL in B3 Server to rsync.net


In a previous post I talked about how to backup to rsync.net using duplicity.

I will now show how to backup your B3 Server Mysql databases using the same method.


Installation

Be sure duplicity is installed:
$ su
# apt-get install duplicity

Generate an ssh key to connect to rsync.net
  • Generate the ssh key using the defaults (don't use a password when asked):
# ssh-keygen -t rsa
  • Copy your key to rsync.net (if you don't have no one there):
# scp ~/.ssh/id_rsa.pub user@server.rsync.net:.ssh/authorized_keys
  • If you already have a key from another machine or user in rsyn.net, you need to add a new one:
# cat ~/.ssh/id_rsa.pub | ssh user@server.rsync.net 'dd of=.ssh/authorized_keys oflag=append conv=notrunc'

Saturday, November 5, 2011

B3 Server 2.3.1 Update


Minor update released last week.

Upgrading to 2.3.1

  • Become root
$ su
  • Do an upgrade
# apt-get update
# apt-get upgrade
  • Upgrade b3 backend
# apt-get install bubba-backend

You can confirm the software version going into b3 web administration page, then Settings and Software update.


Official Excito forum notes

A major part of this update is a new software update service. When updating the update service, strange things can happen, so:
* If the update doesn't go all the way but hangs just before it should be finished (99 or 100%) this is normal. This is in the transition to the new updater logic. Just wait a few minutes and then reload the page.
* After the update - restart your B3.
* The updater might look like it hangs, it doesn't'! Please don't reload the page, be patient, it starts again.

Sunday, October 16, 2011

Installing Ubuntu 11.10

Since upgrading didn't work on my machine, I went ahead and did a fresh install.

As I keep my /home partition separated from my / partition (they're in fact in different drives), I can install without much worries. I have to reinstall a bunch of things, but I was in need of a clean up anyway.


Installing
  • Backup your data!
  • Be sure you have the latest updates prior to this new release:
$ sudo apt-get update
$ sudo apt-get upgrade
  • Download Ubuntu. In my case was the 64bit version (ubuntu-11.10-desktop-amd64.iso).
  • Check the hash of the downloaded file:
$ md5sum ubuntu-11.10-alternate-amd64.iso
  • Compare the output with the Ubuntu hash list:
62fb5d750c30a27a26d01c5f3d8df459 ubuntu-11.10-desktop-amd64.iso
  •  Create a CD or a bootable USB stick. I used the "Startup Disk Creator" in Ubuntu. More information here.
  • Reboot into your CD or bootable USB stick.
  • Install!

Saturday, October 15, 2011

Upgrading to Ubuntu 11.10

Ubuntu 11.10 came out last Thursday. Codename: Oneiric Ocelot.

I will be upgrading using the "Alternate CD/DVD upgrade".
This way I don't depend on Ubuntu servers during the upgrade.

Upgrading

  • Backup, backup!
  • Be sure you have the latest updates prior to this new release:
$ sudo apt-get update
$ sudo apt-get upgrade
  • Download the alternate iso image. In my case was the 64bit version (ubuntu-11.10-alternate-amd64.iso).
  • Check the hash of the downloaded file:
$ md5sum ubuntu-11.10-alternate-amd64.iso
  • Compare the output with the Ubuntu hash list:
5e427f31e6b10315ada74094e8d5d483  ubuntu-11.10-alternate-amd64.iso
  • Mount the iso file as a cdrom:
$ sudo mkdir -p /media/cdrom
$ sudo mount -o loop ~/Desktop/ubuntu-11.10-alternate-amd64.iso /media/cdrom
  • Run the installer:
$ gksu "sh /media/cdrom/cdromupgrade"

You can find more on how to upgrade to Oneiric in Ubuntu website.

Sunday, October 9, 2011

Offsite backups with rsync.net

If you don't do backups... well, you should.

An example of a good backup system could be:
  • External drive backups: your computer is backed up at an external drive;
  • CD/DVD backups: burn your backups to a CD or DVD;
  • Offsite backups: your backups are located at a different site, ie, another place other than your home or office.
A good idea is to have all three backup systems in place. External drivers can brake and DVDs are misplaced, so a offsite location for your backups are a good idea.

I started using rsync.net for my offsite backups. It's a paid service, but it gives you monthly payments for GB (minimum 7 GB) and ssh, ftp, sftp, webdav, https, and... rsync. Check the site for full features.

A great way to use rsync.net for your backups is using duplicity. Duplicity is an encrypted bandwidth-efficient backup that uses the rsync algorithm.

I will show you how I set up my system to create encrypted backups in a rsync.net server.

More info about this setup can be seen at rync.net own site.

Wednesday, October 5, 2011

Moving /home to another disk

I have two hard drives in my computer: one with the / partition and the swap partition, and another with the /home partition.

The hard drive with the /home partition was getting full, so I bought another one.

Here's what I did to move the /home partition to the new hard drive:
  • Replace the old drive for the new one.
  • Connect the old drive to another sata port. This way the new drive is in the right place and after moving the /home partition I just have to remove the old drive.
  • Boot computer.
  • Create a new Extended Partition in the new drive (I used GParted) with a primary partition inside. At this point there is no mount point to this new partition. The new partition in this case is /dev/sdb5.

Monday, September 26, 2011

Moving back to blogger completed

Last week I finished the migration of the blog from Squarespace back to Blogger.

The blog url is still the same (lofspot.net), but any reference to squarespace will soon stop working.

There are some wrong links in past posts, so if you see some leave me a comment.

B3 Server 2.3 Upgrade

B3 Server 2.3 version come out a couple of months ago.

Normally the upgrade is easy and done via the web interface, but since I changed the mysql root default password, I need to upgrade manually.

Upgrade to 2.3

  • Connect to your b3 server
$ ssh user@b3server
  • Become root
$ su
  • Upgrade instructions
# change_distribution elvin
# apt-get -c /etc/apt/bubba-apt.conf -y update
# apt-get -c /etc/apt/bubba-apt.conf -y dist-upgrade
Keep in mind the configuration files you want to keep during the upgrade. It will ask you.
Example: samba.conf

  • Reboot after the upgrade
# reboot

Sunday, May 8, 2011

Reinstall B3 Server default system

B3 Server comes with a custom Debian (Squeeze) install.

In order to reinstall the all system you will need an USB stick and the latest install image from http://update.excito.net/install/latest/b3/.

Creating the usb recovery disk

  • You'll need an empty usb stick (it will be formatted)
  • Find out the device reference of your usb stick (check the LABEL in the output)
$ sudo blkid
    • or use gparted (sudo apt-get gparted) to find out 
  • Remove all existing partitions from the usb stick
    • I used gparted to remove all partitions
  • Create a new primary partition using the cfdisk interface to:
    • create a new primary partition
    • make it bootable
    • change it to type W95 FAT32
$ sudo cfdisk /dev/sdc

  •  Create a new vfat partition
$ sudo mkfs.vfat /dev/sdc1
$ zip b3-install-2.2.1.zip /media/usb_disk

B3 online again

So, my B3 is online again. After is breakdown last week I can finally rest (and reinstall/reconfigure everything again).

The problem was the hard drive. I never seen a hard drive so damaged. Luckily I managed to backup all my data. Check my previous post on how to create an usb recovery disk for booting b3 server so you can move your files elsewhere.

Monday, May 2, 2011

Reinstall Oxygen ROM in HTC Desire

I'm currently using the Android Oxygen ROM in my HTC Desire.

As the version 2.1 just came out, I've decided to wipe my device and do a fresh install.
Also I took the chance to post the procedure.

Note: I have root on my device.

Backup before wipe

  • I used Titanium Backup to create a backup of my apps
  • I used SMS Backup to backup my sms to GMail
  • I backup up my sdcard using rsync in Ubuntu
$ rsync -axS --delete /media/sdcard/ /media/backup
  • I've manually kept a list of all the apps I want to keep. I will installed them all by hand, as needed, and restore only a list of selected ones

Sunday, May 1, 2011

Create an usb recovery disk for booting b3 server

I can't access my B3 Server and I don't know why... :( I was away for a week and in between I couldn't access my server.

Now, after locally rebooting it, still no joy...

I will show how to create an usb recovery disk to boot the B3 Server and how to backup your B3 storage to your local computer.
After this you can do a full recovery, formating and reinstalling your B3 Server.


Creating the usb recovery disk
  • You'll need an empty usb stick (it will be formatted)

Sunday, April 24, 2011

Moving back to Blogger

I'm moving back to Blogger after a long time without new posts.

Next time you point to lofspot.net, this is the blog you'll see. My old blog is located at http://paapereira.squarespace.com/, but will be discontinued rapidly.

The goal for this blog is to document my incursions to Linux (Ubuntu), Android and my new B3 Server.

I have to manually import my blog from Squarespace :( and this will take some time.
I've decided to import only some posts, the ones I think are more interesting and that make sense.

What have I been up to?

Since my last post (almost a year ago) my Ubuntu eXperience have been very light. My desktop environment is very stable and it's very easy to maintain Ubuntu, so my post frequency have been very much reduced.
Meanwhile I've bought an Android device (HTC Desire) and have been playing with it. I will include some posts about it.
Recently I've bought a B3 Server (Debian based) and will also include posts about this.


See you in a bit...