Home Blog Page 2128

ARM Versions Of OpenSuse 12.2 Almost Ready, Release Candidates Out

Release Candidates for OpenSuse targeted for the ARM CPU architectures are already out and developers are looking for testers of this release. The second release candidate was released and one can expect a stable version of OpenSuse 12.2 for ARM soon.

Read more at Muktware

$99 Game Console Ouya To Ship With Android Jelly Bean

Makers of the Android video game console Ouya have announced that it will ship with Android Jelly Been. Earlier, they had planned to include Android Ice Cream Sandwich as the base OS.

Read more at Muktware

Sony’s Financial Fortunes Start to Change

Sony has announced its second-quarter financial results today and, while they still make grim reading taken alone, it looks like the Japanese tech giant is experiencing at least a small change in its fortunes.

While the compnay has announced a loss of $198 million on $20.5 billion in revenue for the second quarter of 2012, that’s far better than the same period last year, which clocked up a loss of $350 million. Perhaps most impressively, the improvement comes on the back of plenty of hiccups at Sony — including issues in China that apparently cost $375 million.

Read more at Gizmodo

The People Who Support Linux: IT Manager Finds New Purpose with Raspberry Pi After Near-Fatal Fall

After an accident last year left him with severe brain trauma, Alan Lumley is miraculously back at work as an IT Manager and even more serious about Linux.

Alan Lumley

Lumley awoke after two weeks in a coma, having survived a 12-foot fall on concrete stairs that smashed his skull. The doctors didn’t think he would ever work again, he said. When he regained full consciousness after two months in the hospital all he could think about was getting back to work in the server room at Outplay Entertainment, a social and mobile game development firm based in the U.K.

He would frequently check in on the game services systems from his hospital bed, he said, despite the company’s insistence that he rest. About five months later, Lumley returned to work. It was a miracle recovery, the chairman of the brain injury unit told him in June.

Now, he’s found a new purpose in life beyond his day job. He’s studying for his LPIC-1 certification and working on a side project developing a security entry system using fingerprint and facial recognition that’s managed by a Raspberry Pi device.

“I think I’m more focused than I was before, I don’t need certs to get work but I want to better myself,” Lumley said.

“I’m quite obsessed when it comes to learning,” he said. “At some point I want the whole alphabet after my name in certification letters.”

He’d had many ideas for side projects before the accident, he said, but never found the time to work on them. He initially bought a Raspberry Pi because there was a waiting list for them. Then he started tinkering with it and now runs three different operating systems on it.

He plans to spend the next year integrating biometrics applications and designing a relatively simple facial recognition system with two-step authentication for the Pi.  

“I’m using libface as facial recognition for Linux and cross referencing it with a mongoDB database,” Lumley said.

He sees his side project as one important way to give back to the Linux community. Supporting The Linux Foundation was another way to show his support, he said. He also plans to take advantage of the custom @linux.com email address and discounts to Linux events and training.

“I am a firm believer of giving support to groups that are active in promoting the technology or tools that you are using,” he said via email. “ Without organizations such as The Linux Foundation there can be a lack of direction and support.”

 

ZTE Expects 40 Percent Rise in Smartphone Shipments in 2013

The Chinese mobile maker, despite a U.S. House committee warning U.S. businesses to avoid buying equipment from the firm, expects to see a massive rise in smartphone shipments this year.

Enterprise Software: Beware the Loud Voices of Charlatan Thought Leaders

Beware of advisors who lack experience and give you bad advice. Never hesitate to ask consultants, analysts, and other thought leaders the tough questions.

How to do Painless MySQL Server Backups with AutoMySQLBackup

servers

AutoMySQLBackup is a clever script that takes the pain out of setting up automated incremental daily, weekly, and monthly backups of MySQL databases. Its only dependency is the mysqldumpcommand, which comes with mysql-client. AutoMySQLBackup dumps your databases at whatever intervals you desire, and rolls them up into compressed tarballs. Then you can copy the tarballs to other media, and encrypt them if you wish.

Getting AutoMySQLBackup

Download AutoMySQLBackup from Sourceforge, and then unpack the tarball:

$ tar zxvf automysqlbackup-v3.0_rc6.tar.gz

Now you should have the automysqlbackup-v3.0_rc6 directory with six files in it: automysqlbackup, automysqlbackup.conf, CHANGELOG, install.sh, LICENSE, and README.

Next, read the README because it contains installation instructions and other useful information. It may not tell you everything you need to know, so hopefully this article will fill the gaps. Then your next step is to run install.sh, and this requires root privileges. If the installation script fails you can easily install AutoMySQLBackup manually by following these steps. These are run from the directory where you unpacked the tarball:

# chown root:root automysqlbackup
# chmod 0700 automysqlbackup
# cp automysqlbackup /usr/local/bin/
# mkdir /etc/automysqlbackup
# cp automysqlbackup.conf /etc/automysqlbackup/automysqlbackup.conf
# cd /etc/automysqlbackup
# cp automysqlbackup.conf servername.conf

Replace “servername.conf” with whatever you want to name your configuration file. Then you will have a copy of the original for reference, and your working configuration file.

Configuration Options

The configuration file is large and well-commented, and you need to change only a few things to start making and testing your backups. First you need to select a MySQL user that has, at a minimum, SELECT privileges, and then enter that user and user’s password:

# Username to access the MySQL server e.g. dbuser
CONFIG_mysql_dump_username='db_user'
# Password to access the MySQL server e.g. password
CONFIG_mysql_dump_password='sekkritpassword'

There is a complication if you are using Parallels Plesk 10.2 or newer on your server, and you want to authenticate with the admin user. It is better to use a different MySQL user, like one you have created with minimal privileges just for AutoMySQLBackup, but if that is not possible then you can’t use the plain-text admin password. Starting with version 10.2 the Plesk admin password is encrypted in /etc/psa/.psa.shadow. You can dump this password in plain text with this command if you need to recover it:

# /usr/local/psa/bin/admin --show-password

But you can’t use the plain text password in your AutoMySQLBackup configuration. Instead, use the encrypted password:

# Password to access the MySQL server e.g. password
CONFIG_mysql_dump_password=`cat /etc/psa/.psa.shadow`

Your server is localhost, and you need to create or choose a directory to store your backups in:

# Host name (or IP address) of MySQL server e.g localhost
CONFIG_mysql_dump_host='localhost'
# Backup directory location e.g /backups
CONFIG_backup_dir='/home/mysqlbackups'

You have a lot of control over which databases are backed up. If you have a lot of them, then leaving CONFIG_db_names=() empty copies all of them. Then if there are any you want to exclude, just create an exclude list. One of my servers hosts over 150 virtual Web hosts, and each one has its own MySQL database, so this is a huge timesaver for me:

# List of databases for Daily/Weekly Backup e.g. ( 'DB1' 'DB2' 'DB3' ... )
# set to (), i.e. empty, if you want to backup all databases
CONFIG_db_names=()
# List of databases for Monthly Backups.
# set to (), i.e. empty, if you want to backup all databases
CONFIG_db_month_names=()
# List of DBNAMES to EXLUCDE if DBNAMES is empty, i.e. ().
CONFIG_db_exclude=('information_schema' 'test_db' 'demo_db' )

Rotation settings are straightforward. This example performs monthly backups on the 3rd of every month, weekly backups on Saturdays, daily backups are kept for 7 days, weekly backups are kept for 14 days, and monthly backups for 30 days.

# Which day do you want monthly backups? (01 to 31)
# If the chosen day is greater than the last day of the month, it will be done
# on the last day of the month.
# Set to 0 to disable monthly backups.
CONFIG_do_monthly="03"
# Which day do you want weekly backups? (1 to 7 where 1 is Monday)
# Set to 0 to disable weekly backups.
CONFIG_do_weekly="6"
# Set rotation of daily backups. VALUE*24hours
# If you want to keep only today's backups, you could choose 1, i.e. everything older than 24hours will be removed.
CONFIG_rotation_daily=7
# Set rotation for weekly backups. VALUE*24hours
CONFIG_rotation_weekly=14
# Set rotation for monthly backups. VALUE*24hours
CONFIG_rotation_monthly=30

There are two items that control notifications. I like to see the logfiles after every run, as this example shows:

# What would you like to be mailed to you?
# - log   : send only log file
# - files : send log file and sql files as attachments (see docs)
# - stdout : will simply output the log to the screen if run manually.
# - quiet : Only send logs if an error occurs to the MAILADDR.
CONFIG_mailcontent='log'
# Email Address to send mail to? (
 This e-mail address is being protected from spambots. You need JavaScript enabled to view it
 )CONFIG_mail_address='
 This e-mail address is being protected from spambots. You need JavaScript enabled to view it
 '

First Run

For the first few runs, while you’re getting familiar with AutoMySQLBackup, I recommend backing up just one or two small databases. It’s safe and can’t hurt your databases, but the larger your databases the longer it takes to try different configuration tweaks. Run it from the command line like this:

# automysqlbackup /etc/automysqlbackup/servername.conf

Then you can check your backup directory to see if it worked. It should have created all the necessary directories:

# ls /home/mysqlbackups/
daily/  
fullschema/  
latest/  
monthly/  
status/  
tmp/  
weekly/

And made entries like this, for each database you backed up, in the daily/ directory:

-rw-r--r-- 1 root root 66428 Oct 25 00:12 daily_db_name_2012-10-22_00h05m_Monday.sql.gz

AutoMySQLBackup generates a detailed log file, so there will be no mysteries about what happened if anything goes wrong.

The README offers a simple backup script:

#!/bin/sh
/usr/local/bin/automysqlbackup /etc/automysqlbackup/myserver.conf
chown root.root /var/backup/db* -R
find /var/backup/db* -type f -exec chmod 400 {} ;
find /var/backup/db* -type d -exec chmod 700 {} ;

You’ll need to change myserver.conf to your configuration file name, and /var/backup/ to your own backup directory. This script ensures that the backup files owner is root, and that they are read-only, which are simple precautions against accidental changes. Don’t forget to make it executable.

Scheduled Backups

Good old cron is still champ for scheduling backups. This example runs the backup script every morning at 12:05AM:

5 0 * * *  /usr/local/bin/backupscript 

Offsite Backups

Now that you have these nice database backups, what do you do with them? I use Horcrux, which we learned about last week, to encrypt and copy them to an offsite backup. So all I have to do to add my database backups to my Horcrux backup is to add this line to my Horcrux configuration:

+ /home/mysqlbackups/

Because these are compressed tarballs, you can manage them like any ordinary files and copy them to whatever backup media you want.

What about restoring from backup? AutoMySQLBackup doesn’t offer any special tools for making that any easier, so you’ll have to do it manually by first unzipping the backup file, and then using the mysql client to restore your database or databases. The README and forums are helpful, but what will help the most is knowing how to administer MySQL databases.

Servergy Announces Linux-on-Power Enterprise Development Platform

P-CubedServergy is announcing its newest product in the Servergy Power Linux Series line, an innovative Linux-on-Power development platform called “P-Cubed”.  The computer is an all-in powerful development board catering primarily to enterprise Linux programmers, but for educators and serious hobbyists as well. Leveraging Power Architecture (TM) in an SoC that encompasses high-end hardware, with features including multi-core with hardware virtualization, the board delivers where other development platforms fall short.
 
Servergy will deliver support for a broad range of Linux and Java distributions. The company will be developing a developer portal that will be open soon on its website for taking pre-orders. The portal will also aim to be a one-stop area to get to all of the documentation, binaries and developer related materials for “P-Cubed” as well as general Power-on-Linux resources.
 
“As a proud member of the global Linux Foundation and Power.org organizations, Servergy is committed to be an industry leader in the Hyper-Efficiency Linux-on-Power space and to helping grow a diverse global development community built on innovation, collaboration, and education is key. The overwhelmingly positive response we are getting on our new “P-Cubed” innovation platform shows that it clearly supports those objectives,” said Bill Mapp, Servergy CEO.  
 
The P-Cubed computer uses the same proven Power Architecture (TM) developed by Apple, IBM and Motorola (now Freescale), which is used by everyone from the DOD to the NASA Mars Rover to the Sony, Nintendo and X-Box gaming stations.  Enterprise Linux developers can now have that same power in their own hands for developing serious enterprise applications.
 
Beginning today, anyone interested can send an email to This e-mail address is being protected from spambots. You need JavaScript enabled to view it
 requesti
ng more information and be one of the first to get their name on the pre-order list and reserve their very own P-Cubed (TM) Power Linux development platform. 

Ubuntu: No More Alphas, Just One Beta

Automated testing and regular integration are the cornerstones of the new Ubuntu QA and release plans, but that plan means the end of the alpha releases and only a single beta release. Ubuntu remixes will take control of their own scheduling.

Read more at The H

ARM Introduces Cortex-A53 and Cortex-A57 64-Bit Processor Cores

Semiconductor company ARM has released details of the first implementations of the ARMv8 micro architecture that could be used in end products in 2014 and are said to combine superior performance with improved efficiency.

Read more at The H