KDE 4.9.4 in openSUSE 12.2

First of all, you should remove all your KDE repositories (either from YaST or the configuration files). Then you should enter the following commands in order to add the newest repositories:
su -c 'zypper ar -f http://download.opensuse.org/repositories/KDE:/Release:/49/openSUSE_12.2/ KDE_49'
su -c 'zypper ar -f http://download.opensuse.org/repositories/KDE:/Extra/KDE_Release_49_openSUSE_12.2/ KDE_Extra'

After that, you just have to type in a terminal/console:
su -c 'zypper dup --from KDE_49 --from KDE_Extra '

And then, Zypper will start downloading and installing software. When the installation is finished, reload the graphical interface and then enjoy your fresh KDE environment.

Have fun!

openSUSE 12.2 is out!

Two months of extra stabilization work have resulted into a stellar release, chock-full of goodies, yet stable as you all like it.

The latest release of the world’s most powerful and flexible Linux Distribution brings you speed-ups across the board with a faster storage layer in Linux 3.4 and accelerated functions in glibc and Qt, giving a more fluid and responsive desktop. The infrastructure below openSUSE has evolved, bringing in newly matured technologies like GRUB2, and Plymouth and the first steps in the direction of a revised and simplified UNIX file system hierarchy. Users will also notice the added polish to existing features bringing an improved user experience all over. The novel Btrfs file system comes with improved error handling and recovery tools. KDE has improve its stability, GNOME 3.4, developing rapidly, brings smooth scrolling to all applications and features a reworked System Settings and Contacts manager while XFCE has an enhanced application finder.

Download openSUSE 12.2 from any of our mirrors: http://software.opensuse.org/

Dropbox in openSUSE 11.4 (KDE)

Today, I needed to use my «forgotten» Dropbox Account (which I had, but didn’t use).

First of all, you need a Dropbox Account, if you have none yet, get a free account here !
It is really easy to get it to work in openSUSE with KDE (for gnome there is a package called dropbox-nautilus), just type in a console:

sudo zypper in dropbox dropbox-servicemenu

Execute dropbox command:

The first time you execute it, the program will download the «proprietary daemon» (it’s an automatic process) and let you configure the necessary parameters to run the program.

After that, an icon should appear at your system tray:
dropbox tray icon

By clicking in that icon, you will get to the folder you previously configured to be synced.

Have fun!

Create a «Server Status» MOTD for openSUSE

In order to produce a «System Status» Message Of The Day (MOTD) file in openSUSE, a-la Ubuntu, you should write this script (as systemstats.sh) in /usr/local/bin

#!/bin/bash
#
# Server Status Script
# Version 0.1.3 m
# Updated: July 26th 2011 m

CPUTIME=$(ps -eo pcpu | awk ‘NR>1’ | awk ‘{tot=tot+$1} END {print tot}’)
CPUCORES=$(cat /proc/cpuinfo | grep -c processor)
UP=$(echo `uptime` | awk ‘{ print $3 » » $4 }’)
echo »
****************************************************************************
System Status
Updated: `date`

– Server Name = `hostname`
– OS Version = `grep openSUSE /etc/SuSE-release`
– Load Averages = `cat /proc/loadavg | awk {‘print $1″ «$2» «$3’}`
– System Uptime = `uptime | awk {‘print $3» «$4’}`
– Platform Data = `uname -orpi| awk {‘print $1» «$4’}`
– CPU Usage (average) = `echo $CPUTIME / $CPUCORES | bc`%
– Memory free (real) = `free -m | head -n 2 | tail -n 1 | awk {‘print$4’}` Mb
– Memory free (cache) = `free -m | head -n 3 | tail -n 1 | awk {‘print$3’}` Mb
– Swap in use = `free -m | tail -n 1 | awk {‘print $3’}` Mb
– Disk Space Used = `df -h / | awk ‘{ a = $4 } END { print a }’`
****************************************************************************
» > /etc/motd

# End of Script

Remember to make it executable (as root or sudo)

chmod +x /usr/local/bin/systemstats.sh

To make the script update the information automatically, you should edit /etc/crontab as root, and add this two lines at the end of the file

# Status Script
*/5 * * * * root /usr/local/bin/systemstats.sh

After you update the /etc/motd file (by running as root /usr/local/bin/systemstats.sh), it should look like something like this:

david@virtual:~> cat /etc/motd

****************************************************************************
System Status
Updated: Thu Oct 20 01:55:01 CEST 2011

– Server Name = virtual
– OS Version = openSUSE 11.4 (x86_64)
– Load Averages = 0.00 0.01 0.05
– System Uptime = 2:22, 1
– Platform Data = 2.6.37.6-0.7-desktop GNU/Linux
– CPU Usage (average) = 0%
– Memory free (real) = 3667 Mb
– Memory free (cache) = 138 Mb
– Swap in use = 0 Mb
– Disk Space Used = 9.5G
****************************************************************************

Based on the information found in http://www.md3v.com/create-a-linux-server-status-motd