Geek News: Latest Technology, Product Reviews, Gadgets and Tech Podcast News for Geeks


Tag: opensuse

OpenSUSE 12.2 Out Now

Posted by Andrew at 4:30 PM on September 5, 2012

OpenSuSE logoFor Linux fans, there’s a new version of OpenSUSE out today, bringing the version number to 12.2. Albeit a little late, this new version sees some significant upgrades and changes which improve performance and reliability. OpenSUSE is one of the big 5 Linux distributions so it’ll be a solid release.

In additional to the 3.4 kernel, KDE is bumped to 4.8.4 and Gnome to 3.4. SuSE has always been a strong proponent of the KDE desktop (my personal favourite) so I’ll be checking that out later. LibreOffice 3.5 brings word processing and spreadsheets to the party and Gimp 2.8 is on hand for image editing.

“We are proud of this release, maintaining the usual high openSUSE quality standards.” said Andrew Wafaa from the openSUSE Board. “The delay in the schedule caused by our growth in the last two years means we have to work on scaling our processes. Now this release is out and with the upcoming openSUSE conference in October in Prague, the community has time and opportunity to work on that.”

I run OpenSUSE on my main PC so I’ll be upgrading soon – the distro is downloading via BitTorrent as we speak – but live upgrades are also now supported so I might investigate that for the first time.

The full press release is here.

Check File Copies with Linux Scripts

Posted by Andrew at 6:22 AM on October 17, 2011

OpenSuSE logoFor several years, I’ve had an original Buffalo LinkStation NAS as my main fileserver. Being on 24×7, it’s gone through several fans and at least one hard disk, but it’s now time to retire it in favour of a LinkStation Duo which will give me more space, RAID capabilities and faster transfer speeds.

Naturally, as my main fileserver, it’s backed up. However when I copy the files to the new Duo, how do I know that they’ve all copied correctly and none have been missed? There are hundreds of thousands of files and checking each one by hand would be pointless.

Linux has lots of tools that tell me how much disk space is used, such as du, df and filelight, but they don’t always report back consistently between filesystems. Mostly for reasons of speed, they report the total size of the file blocks used to store a file and as block sizes can vary between filesystems, the total number of blocks used for a set of files will be different. For example, I have two folder sets that I know are identical and du -s on one reports 210245632 and on the other 209778684.

Fortunately, there’s an extra command line flag that will change the behaviour to take longer and sum the actual bytes. In this case, du -sb will return 214813009920 bytes on both filesystems. On the whole, I can be reasonably confident that if the total number of bytes used is the same between two filesystems, then all the files have copied correctly.

But what if the total number of bytes don’t match? How can I find the missing or truncated file? After thinking and tinkering, what I want is to get a list of files with each filesize from the old and new filesystems and then compare the two. And here’s how you do it (each section here goes on one line).

find /home/old_folder -type f -printf '%s %p\n' |
sed 's/\/home\/old_folder\///' | sort > old.txt
find /home/new_folder -type f -printf '%s %p\n' |
sed 's/\/home\/new_folder\///' | sort > new.txt
diff -wy --suppress-common-lines old.txt new.txt

If you aren’t used to Linux, this can look a bit scary, but it’s not really. The first two lines create the text files with all the files and the third line compares the two. The the first two lines are much the same in that they do the same commands but on different filesystems. There are three sections, find to list all the files, sed to chop the directory path off, and sort to get all the files in some sort of order. Here are some explanations.

find – finds files
/some/folder – where to start finding files
-type f – only interested in files (not directories or links)
-printf ‘%s %p\n’ – only print the filesize (%s) and the full pathname (%p) on each line (\n)

sed – processes text
‘s/x/y/’ – means replace x with y. In our instance, it’s replacing the leading folder path with nothing. It looks worse than it is because the slashes in the path need to be escaped by a preceeding backslash, so you get these \/s everywhere.

sort – sorts text
> file.txt – copy everything into a text file.

One of the clever things about Unix-like operating systems is that you can pass information from one command to another using a pipe. That’s represented by the | symbol, so the find command gets the information on files and files sizes, passes it to sed to tidy up which then in turn passes it on to sort before sending it to a file.

After running this set of commands on the old and new filesystems, all that needs done is to compare the files. Let’s look at the third and final command.

diff – compares files line-by-line
-w – ignore whitespace (spaces and tabs)
-y - compare files side-by-side
–suppress-common-lines – ignore lines that are the same
old.txt new.txt – the two files to compare

So what might the output of the diff be? If all the files copied correctly, you’d get absolutely nothing. Other possibilities are that the file partially copied or didn’t copy at all. Here’s what the output might be like.

598 i386/compdata/epson3.txt | 500 i386/compdata/epson3.txt
598 i386/compdata/onstream.txt <

The numbers at the beginning of the entry are the number of bytes, so the first line shows that the epson3.txt is only 500 bytes long in the new file but 598 in the old. The second line shows that onstream.txt is present in the old file but not in the new, as the arrow points to the old file.

To close the story, did I find that I had lost any files? Yes, I did. I discovered a couple of small files that hadn’t copied at all because of non-standard characters in their filenames. The filenames were acceptable to Windows but not Linux and I’d used my Linux PC to do the copying. Fortunately, the files were saved and all the scripting was worth it.

Read more on Linux at Geek News Central.

The Best Ever SuSE Linux – v11.4

Posted by Andrew at 5:27 PM on March 21, 2011

OpenSuSE 11.4 was released back on 11 March so this weekend I took the plunge and upgraded my main PC from 11.3 to 11.4. And less than two hours later, I had the best ever SuSE running on my PC.  Here’s how I got on…

SuSE offer two methods of upgrading, the first being an on-line update and the second being the more traditional iso image download, burn and boot. I chose the latter as the guidance on SuSE’s website suggested that this would be more reliable. It also means that if the upgrade does fail and I needed to carry out a complete install from scratch, I already had the media to hand. Before booting from the DVD to upgrade, I backed up all the user files from the home partition and made copies of the important files – fstab, hosts, passwd, groups, auto.nas and so on.

Booting from the DVD, the installer goes through the usual licensing screen before analysing the existing system. As I had 11.3 previously installed, the installer gave me the option to upgrade, which I choose. After more analysis, it gives a summary of the changes required before asking permission to proceed – which I gave.

About 35 minutes and 250-odd packages later, the PC rebooted, loaded Linux and displayed the login screen. I entered my username and password, and the screen faded to the X desktop, with all my icons and widgets still there. Sweet!

Even more surprisingly, all the 3D window effects worked out of the box. That’s never happened before – normally you have to download drivers from nVidia or ATi before all the graphic goodness works smoothly. To be fair 11.3 was a “nearly” release. While the applications and tools worked, the 3D effects were a bit hit or miss. Sometimes they worked, sometimes they didn’t. But 11.4 hits it on the head.

The 3D eye candy is very slick. I run a 3 x 2 virtual desktop and the scrolling between the desktops is super-smooth, making it feel like one giant desktop. Windows glide in and out as they open and close. But by far my favourite effect is when you have overlapping windows and you want to bring one to the foreground. The upper window slides down the screen and then slips behind the lower window, bringing it to the front. Think of taking off the top sheet from a pile of paper and putting it to the back. So cool.

I’ve taken a couple of screenshots but (a) it’s really hard to catch the window closing when pressing the PrtScn button and (b) there’s no sense of the animation.

To finish off the installation, I added the ubiquitous Packman repository to load up all the unofficial multimedia goodies, such as DVD playing and video encoders.

Although it’s only been a few days, I’ve not encountered any problems at all with 11.4 and I’ve discovered that several of 11.3′s bugs have been fixed. Most of the major packages have been updated and OpenOffice.org has been replaced by LibreOffice (which is a whole sorry story in itself). Everything seems to be working fine.

If you want to try SuSE without messing with your current setup, there are live DVDs available for download. I run the KDE desktop rather than Gnome.

While it may be a little premature, I think this is the best SuSE ever.

OpenSuSE Linux 11.4 Released

Posted by Andrew at 7:35 AM on March 10, 2011

The latest version of OpenSuSE Linux, 11.4, has just been released and it’s chock full of new features. The replacement for OpenOffice.org, LibreOffice, gets its first major outing, KDE gets bumped to 4.6 and Gnome comes in at 2.32.

There’s a also a pile of updates to applications, including Empathy, RhythmBox, Amarok, Totem, Evince and Shotwell. For developers, GTK 3 is included so Gnome applications can be upgraded to the new framework.

I’m running 11.3 so I’ll be downloading from the mirrors tonight and upgrading over the weekend. I’m looking forward to the new eye candy provided by the KDE Plasma Desktop Workspaces. Ok, so I’m shallow.

If you want to try OpenSuSE, there’s a live version as well, in both KDE and Gnome flavours. Give it a whirl.