Feb 23

Update: Don’t feel left out if you’re a Windows user. Check out our tutorial about Fedora’s Revisor tool.

SUSE Studio is clever. Very clever. It’s the result of two years’ work by a team at Novell to provide its enterprise customers with a convenient launch pad for building virtual appliances and customised distributions. It’s also been a massive success, boasting over half a million downloads and over 40,000 users. But don’t let the word ‘enterprise’ put you off: customised distributions like these are incredibly useful, whether you use them yourself, make them for someone else, or deploy them across your IT infrastructure. They represent what’s great about Linux: its ability to be repackaged, copied and redistributed with complete freedom. Building your own distribution is also rather cool.

Fancy a pretty desktop like this one? You don’t even have to close your web browser to create one thanks to SUSE Studio.

In serving its high-end customers, Novell has created the most powerful and most intuitive distribution design tool the low-end Linux community has ever seen. And it manages to do all this through a web browser. It makes hunting for the perfect distribution a little like online shopping. Point your cursor at a feature and it’s added to your distribution. You can add as many or as few items as you wish, and when your virtual basket is full, the checkout process will let you preview your order before presenting you with a variety of delivery options.

You could download an ISO file for optical media, for example, or a pre-formatted virtual machine configuration that you could run from VMware Player, VirtualBox or Xen. There’s even an option to build a Flash version of your distribution that can be written to a USB thumb drive. All of this is accomplished online through a web browser. The building process and your distribution are hosted on Novell’s servers until you’re ready to download the fruits of your labours. Moreover, unlike nearly every other distribution building tool, you don’t need any specialist knowledge in order to create exactly what you want.

Create an account

The first step to creating your own distribution is to create a personal account at www.susestudio.com. The only fly in the ointment is that you’ll then need to wait for an invitation to arrive at your registered email account. This delay is necessary for Novell to ensure a decent quality of service for all its users, and how long you have to wait is dependent on demand. We found that it can vary between half an hour and a few days. When you do get an invitation, a single click is all you need to activate the distro building features.

When your account is activated and you log in, you’ll be presented with a page that allows you to choose a base template for your distribution. Each one is built around either Novell’s community-supported OpenSUSE 11.1 distro or its business-friendly SUSE Linux Enterprise distribution (versions 10 and 11). If you’re looking at deploying your distro in a critical environment then the enterprise distributions offer better professional support and long-term stability, but you’ll probably find that OpenSUSE is more interesting.

You also need to select a suitable package template for the distribution base. There are the standard Gnome- and KDE 4-based distributions, for instance, as well as a minimal X installation and a package designed for servers. There’s also an option labelled ‘Just enough OS (JEOS)’, which features the bare minimum of packages required for a working installation and is the closest option to a blank canvas. The basic JEOS image requires just 270MB of space, for example, whereas the default KDE 4 install requires a little over 1GB to be available.

Select some software

Our first distribution is going to require a desktop environment. For that reason, we plumped for the KDE 4 desktop option in the OpenSUSE 11.1 category. Next, scroll down the page and give your creation a name before clicking on the ‘Create appliance’ button. The following page can be quickly skipped over and you’ll then find yourself at the Software Sources page. This is where you augment your base installation with essential packages. Your new distribution will still be able to download and install packages, but including them at this point will avoid the need to go through that process for every machine.

Just pick the components you want to include from this handy list.

Click on the ‘Recommended’ button to get a good idea of which packages make the most sense to include. Top of the list is Firefox, followed by Flash-player for Adobe Flash support. This is closely followed by OpenOffice.org, GIMP, DVD-writing tools and Ntfs-3g for reading Windows partitions on the same machine. Adding each of these packages is a sensible choice. Click on the ‘+add’ button to the left of each package to drop them into your proto-distribution. The only other packages we added were Kde3, which turned our distribution into the ultimate KDE package, and Yast2-live-installer, which enables a Live DVD to be installed. As you add packages, you’ll see a running tally in the left-hand border of the page. This will update with the current amount of space that your distribution is taking up, both as a compressed archive and as the final object. This is something to keep a close eye on if you need your distro to fit onto either a 4.7GB DVD or a 700MB CD.

If your requirements aren’t met by the default package list, you can add further package repositories by clicking on the blue ‘+’ symbol at the top of the page. There are several pages of different sources, including Apache, Compiz and even a repository for emulators. If you have your own packages to include, you can upload them to your custom distribution by clicking on ‘Upload RPMs’, but you’ll need a SUSE-formatted RPM package for this to work.

Configure the distro

Now switch to the Configuration tab at the top of the page. This is where you answer all the questions you’re typically asked when installing a distribution. The first page, for example, requests your location, time zone and keyboard layout. You should leave DHCP enabled for the network. Disable HTTP in the firewall configuration unless you’re going to run a web server from each machine with this distribution. Below these questions you can create a default list of users. You might want to add a generic guest account, and an administrator account too.

The second page allows you to personalise your distribution with your own graphics. Upload your own logo and background, and these will be displayed while your distribution is booting. We made the background blue to reflect our choice of desktop environment.

The third page lists the start-up options and allows you to enter your own end user license agreement (EULA). You should keep the start-up option at its default value, but editing the EULA may be useful if you’ve added your own packages. The following Server page will let you configure any server package you’ve installed, while the Desktop page lets you specify a user for auto-login and any applications you want running from the desktop. You could choose to launch Firefox (mozilla-firefox) if you were building a web kiosk installation, for instance.

The final two pages of the configuration state deal with virtual machine specifics and any custom scripts you want to run. For a large deployment, you may want a script that sets up email accounts, for example.

Build the distro

Overlay files are a way of accomplishing a custom configuration without using a script. For example, you could configure your Evolution mail client locally and upload just the configuration file during the Overlay Files stage. This would create a default configuration for each distribution.

Finally, when everything is configured correctly, switch to the Build tab and select the format for your distro from the dropdown list. Click on ‘Build’ and Novell’s servers will start to cook your distribution. How long this takes is dependent on how many packages you’ve included. Our 1.5GB ‘super KDE’ distro took 14 minutes to create, and the end result was a 477MB compressed file.

But before you download your custom distribution, SUSE Studio has one last trick up its sleeve. There’s a preview mode in SUSE Studio that will let you run your distribution from the remote server. When the build process has finished, look for the ‘Testdrive’ button beneath the status text. Clicking on this will open a new window, in which you’ll see your distribution start to boot. You can even SSH into your virtual server by enabling networking and then following the on-screen instructions – and if you installed a web server then that will be running too.

SUSE’s Testdrive option lets you test the distro, again without leaving your browser.

The Testdrive facility gives you an hour to try the server before ending the session. When you’re happy with the results, just go back to the Build page and download your distribution. Note that a default account provides 15GB of storage and you can access any of your prebuilt distributions by clicking the ‘Home’ icon. SUSE Studio will delete your build from its server after seven days, but it keeps the building information so that you can rebuild the image again.

Run the distro

After downloading your distribution, it’s time to run it on some hardware. How you do this depends on the format you’ve chosen. VMware images can be loaded into your virtual machine application directly, while USB sticks or hard disk images can be written to their final media using the ‘dd’ command. It’s not difficult, but you need to ensure you get the correct destination, since dd won’t ask if you’re sure and can quite easily just overwrite your data. If you’ve gone for an optical disc image, this simply needs to be burnt to a disc using a tool such as Brasero or K3b.

With your optical media in hand, it’s then just a simple case of booting your machine with your distro’s disc in the drive and installing it. Within a few moments you’ll be dropped into your very own Linux distribution, ready to go and complete with all the packages you’ve selected.

Offline alternatives

The main problem with SUSE Studio is that it relies on both Novell’s servers and its goodwill. There may come a time when Novell wants to charge for the service. Alternatively, if you need to build your own distribution and the internet isn’t working, you’re going to be stuck. Hopefully, Novell will release the application code to Studio, or make it part of one of its distributions one day, and you’ll be able to take advantage of its functionality from your own machine. But until then, it’s worth finding an alternative.

Outside SUSE Studio, building your own distribution can be a tricky business. You normally need to know a lot about Linux and how it all hangs together. The Gentoo distribution is a viable alternative to putting everything together yourself. Gentoo still gives you complete control over every package that’s installed, but it’s a well-trodden path that offers plenty of community support and a step-by-step installation procedure.

However, you won’t be able to share the distribution you’ve created with other Linux users unless you’re prepared to go through a lengthy build process. Currently, the best alternative to SUSE Studio is Fedora’s Revisor tool, which we covered in PC Plus 279. It’s a point-and-click interface for building your own Fedora-based Live distribution, which means that you can boot and run it off either a USB stick or an optical drive. You can select the packages to include and create a custom configuration that fits your specifications exactly. It’s often used to rebrand the default Fedora distro, but it’s capable of more than simple makeovers.

Test your distro in a VM

One of the build options for SUSE Studio is ‘VMware/Virtual Box’. When you select this from the dropdown list and click on the ‘Build’ button, SUSE Studio will construct your distribution and insert the installation into a VMware hard drive image.

Virtualbox is the best way to realistically test your distro outside of your browser.

This can then be loaded directly into VMware and run without any further configuration. VMware is normally expensive, but there’s a free version called VMware Player that’s compatible with the same image and features the same excellent performance as the full-price version.

The best option for Linux users, however, is Virtual Box. This is a free, open-source competitor to VMware, and most distributions include Virtual Box packages that can be installed through a package manager. From Ubuntu’s Synaptic, for example, search for and install the Virtualbox-ose package.

When you download the virtual machine from SUSE Studio, it’s delivered as a ‘vmx.tar.gz’ file. VMX is the virtual machine format, while ‘tar.gz’ is the most common archiving format on Linux. You can normally double-click on a file to decompress it, or type tar xvf on the command line followed by the name of the file to do it manually. You then need to launch VirtualBox. Click on ‘New’, select Linux as the operating system and OpenSUSE as the version, and then click on ‘Next’ twice. When you get to the virtual hard disk page, click on ‘Existing’ and ‘Add’, then point the file requester at your downloaded ‘vmdk’ file. You can then run your virtual machine and play with your new distribution.

Oct 21

pdfedit
PDFedit is free and open source tool for manipulating PDF documents. You can use it to read, change and extract information from a PDF file.PDF Editor is run in english language by default, but by setting environment variable LANG before launching the program, you can tell PDF Editor to look for specific language file.

Howto install pdfedit in ubuntu / debian
open a terminal
$sudo apt-get install pdfedit ( or open synaptic package manager and search for pdfedit)

poppler-utils
poppler-utils is a package contains pdftops (PDF to PostScript converter), pdfinfo (PDF document information extractor), pdfimages (PDF image extractor), pdftohtml (PDF to HTML converter), pdftotext (PDF to text converter), and pdffonts (PDF font analyzer). After installation all the utilities can be used in command line.

Howto install poppler-utils in ubuntu / debian
open a terminal
$sudo apt-get install poppler-utils ( or open synaptic package manager and search for poppler-utils)

pdftk
Pdftk is pdf tool kit for doing everyday things with PDF documents. pdftk can be used for Merge PDF Documents, Split PDF Pages into a New Document, Encrypt Output as Desired
Fill PDF Forms with FDF Data or XFDF Data and/or Flatten Forms, Apply a Background
Attach Files to PDF Pages or the PDF Document, Unpack PDF Attachments, Burst a PDF Document into Single Pages, Repair Corrupted PDF (Where Possible).

Interface used is Command Line

Howto install pdftk in ubuntu / debian
open a terminal
$sudo apt-get install pdftk ( or open synaptic package manager and search for pdftk)

Eg:
Merge Two or More PDFs into a New Document
$ pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf

More Help Here

QPDF
QPDF is a command-line program that does structural, content-preserving transformations on PDF files. It could have been called something like pdf-to-pdf. QPDF is capable of creating web-optimized) files and encrypted files. QPDF also supports a special mode designed to allow you to edit the content of PDF files in a text editor.
Interface used is Command Line

Howto install qpdf in ubuntu / debian
open a terminal
$sudo apt-get install qpdf ( or open synaptic package manager and search for qpdf)

see more here


pdfsam
pdfsam is an open source tool designed to handle pdf files. Pdfsam basic is a simple tool designed to split and merge pdf files. It’s written in Java and it provides a Graphical interface (GUI) and a shell interface (Console). It’s platform independent and it runs on every platform where a Java Virtual Machine is available. It’s released in 2 versions.

split your pdf documents (into chapters, single pages, etc.). merge many pdf documents or subsections of them. extract sections of your document into a single pdf document. save and load your environment to automatize your recurrent jobs.

Howto install pdfsam in ubuntu / debian
open a terminal
$sudo apt-get install pdfsam ( or open synaptic package manager and search for pdfsam)

Oct 21

Windows Vista never made many friends. In truth, it wasn’t a cataclysmically bad operating system – just one that was already failing to live up to its hype before anyone got their hands on it. The big planned features – notably the WinFS database filesystem described by Gates as “the Holy Grail” – never materialised. The UAC security proved nothing short of a disaster, making the Office paperclip’s prompting seem restrained in comparison to its constant nagging. And then there was That Slogan, which was quite possibly the worst, most annoying aspect of the whole over-hyped build-up. “The Wow Starts Now.” Oh, please…

Lower expectations, better software

Windows 7 is a different story. For the last year, the build-up has been slow, thoughtful and much more reasonable. Where Vista ended up being a classic case of style over precious little substance, Windows 7 is a much more careful release. Its elements have been polished up, and many of Vista’s residual annoyances have been removed. Unfortunately, however, there’s little in the way of brand-new features. It’s also disappointing that some of the features that are new – such as the ability to run XP in a virtual machine – are reserved for only the higher-end editions. Elsewhere, several features have actually been removed and their functions completely passed across to the free Windows Live suite and other downloads.

Is Windows 7 a life-changing update? No. Will it completely revolutionise the way you use your computer? Again, not really. Like all operating systems, Windows 7 is at its best when it’s invisible – staying out of your way. As a result, while there are definitely excellent additions – like the new definitely-not-borrowed-from-Apple taskbar (also known as the Not-Dock) – what really stands out is how all the little details feel like they’ve been designed for us rather than for engineers or marketing people. It’s the small stuff that has the most impact, like giving us control over what icons appear in the notification bar instead of letting any old Tom, Dick or Adobe decide what we need to know about.

From the moment you boot it up, Windows 7 exudes a mature kind of class, standing up without the need for glitzy gimmicks or yapping demands for your attention. It’s by far Microsoft’s most confident operating system. It’s also the most publicly tested – Windows 7 has been on many of our PCs for the last year, and anyone could download it in beta. No Windows OS to date has had a more public gestation period.

There will of course be technical problems over the next few months. Driver issues, old programs not liking their new home, the inevitable parade of bugs, niggles and exploits – it’s unrealistic to expect otherwise. But that’s OK. These issues can and will be fixed over time. The important part – for us, at least – is that after using Windows 7 for some time, we’ve never been even slightly tempted to go back to Vista or XP.

Continue Reading: Performance and Interface