Archive for the ‘ Commands ’ Tag

Cronjobs – An effective Linux utility

  • Articles written so far : 99

Cron, an Unix term stands for Command Run ON. It is very useful utility in Unix/Linux specially for SysAdmins who might like to schedule different tasks on different times for different purposes. Most frequently it is used for running scripts and creating backups. It’s a command based utility, where we can schedule a task on a given time to run. It’s format looks like the following:

MIN  HOUR  DOM  MON  DOW  CMD

MIN = Minutes[0-59] , HOUR = Hour[0-23] , DOM = Day of month[1-31] , MON = Month[1-12] , DOW = Day of week[0-6] , CMD = Command to run

00  06  *  *  *  /home/bak/cback.sh

The above command will run on the following time and will trigger a script at home bak directory called cback.sh:

00 = 0th minute

06 = 6AM at morning

* = Every day

* = Every month

* = Every day of the week

Normally * represents ‘Every’ word here, if you want to run it every hour. Replace 06 with *, which will trigger the script every hour.

understanding cronYou can see the cron jobs by running crontab -l in terminal and add/edit them via crontab -e .

Read Linux man pages in terminal for more knowledge or read this article for more deep understanding.

How to install Google Chrome in openSUSE

  • Articles written so far : 99

Don’t be confused about Chrome and Chromium. Both are browsers and using the same engines, then what’s the difference?, the difference is one is actively developed by open source community[Chromium] and the other is maintained and developed by Google[Chrome]. Google Chrome can say provide stable version, while Chromium is dev build version[unstable] which is stable though but have new features which then go to Google Chrome stable version later. Chromium is already provided in openSUSE default repositories. But for Google Chrome we need to add new repository. Which will have three versions, stable, beta, unstable. If you want to have different versions of this browser, install both Chromium and Chrome. Currently i’m running both versions, stable version from Google[Chrome] repository and dev build[Chromium] from openSUSE repositories. 1st of all open terminal and become root by su - , and then type, choose your system architecture:

64bit version

zypper ar http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome

32bit version

zypper ar http://dl.google.com/linux/chrome/rpm/stable/i386 Google-Chrome

Now type:

zypper ref

And install Google Chrome:

zypper in google-chrome-stable

Now you will have two versions of Chrome/Chromium browser.

How to install Cinnamon desktop on openSUSE 12.1

  • Articles written so far : 99

Cinnamon is a desktop environment introduced by Linux Mint developers/creators. It is based on Gnome3 giving you the look and feel of Gnome2 and is quite nicely done with its initial stage. Let’s have it in openSUSE 12.1, 1st of all open terminal and become root by su - . Now type:

zypper ar http://download.opensuse.org/repositories/GNOME:/Cinnamon/12.1/ Cinnamon-desktop

And now refresh the repos:

zypper ref

Install cinnamon by typing the following command:

zypper in cinnamon

After installation, logout and choose cinnamon from the session menu and login. There you have it…easy!

[howto] Install KDM themes in openSUSE

  • Articles written so far : 99

If you are on KDE with openSUSE and want to change the default login theme(by default it is SUSE theme). That will be pretty easy. In case you tried Login Screen in Configure Desktop Settings and its not working, then you can follow this post to have your desired login screen theme. Almost every theme is available on kde-look.org KDM KDE4 themes page, search around and download your favorite one. Lets say you downloaded it to Downloads folder in your home directory, extract it there. [for example this post will use KStarboard-new theme]

Now open terminal and become root by su - , type:

cd /home/username/Downloads/

mv KStarboard-new /usr/share/kde4/apps/kdm/themes/

Now open YaST, go to /etc/sysconfig Editor and then click on Desktop -> Display Manager -> DISPLAYMANAGER_KDM_THEME, and you will SUSE or some other value, change it to your theme folder name like KStarboard-new. Save and close YaST. Checkout the screen shot for this.

YaST /etc/sysconfig

Reboot your system so that the changes take effect.

If you are editor/terminal lover, you can open the following file in terminal instead of using YaST and edit it there(via root user):

vim /etc/sysconfig/displaymanager

Look for this line [DISPLAYMANAGER_KDM_THEME="SUSE"] and add your theme folder name there.

That should do it.