Why I use Fedora Linux?


Just go through a list of projects the Fedora community has in mind, I am sure, you will be using one of this technology in a very near future. Fedora provides developers a place to host their code and collaborate online. It provide each project with source control via git, Mercurial, bzr, Subversion, and others, as well as a bug tracker and wiki via Trac.

One of the project which I am looking forward is Func (Fedora Unified Network Controller). Below are some information about what Func does, which I extracted it from their official wiki:

So, if I want Words, What Is Func?

Func allows for running commands on remote systems in a secure way, like SSH, but offers several improvements.

  • Func allows you to manage an arbitrary group of machines all at once.
  • Func automatically distributes certificates to all “slave” machines. There’s almost nothing to configure.
  • Func comes with a command line for sending remote commands and gathering data.
  • There are lots of modules already provided for common tasks.
  • Anyone can write their own modules using the simple Python module API.
  • Everything that can be done with the command line can be done with the Python client API. The hack potential is unlimited.
  • You’ll never have to use “expect” or other ugly hacks to automate your workflow.
  • It’s really simple under the covers. Func works over XMLRPC and SSL.
  • Since func uses certmaster, any program can use func certificates, latch on to them, and take advantage of secure master-to-slave communication.
  • There are no databases or crazy stuff to install and configure. Again, certificate distribution is automatic too.

Bash by example - Introduction

Is this the first time you learn about bash? In this post, I will teach you how to write your first bash script using a simple example.

Let start with what is bash?
Bash (Bourne shell) is the shell, or command language interpreter, that will appear in most the *nix system. It offers functional improvements over sh (shell) for both programming and interactive use. In addition, most sh scripts can be run by bash without modification.

So why do you need to learn bash?
The answer is simple, by learning how to program in bash scripting, your daily interaction with *nix system is more fun as well as productive. A working knowledge of bash shell scripting is essential to anyone wishing to become reasonably proficient at *nix system administration.

Now using your favorite editor, let start create a script called helloworld.sh. By convention, bash shell script have name ending with .sh, but it is not requisite. Below shows a very short script that writes a message on the screen.

#!bin/bash
#
# This is my first bash shell script
# Kelvin
 
printf "Hello bash world! Bash is wonderfull."
 
exit 0

Save the file, and then run the./helloworld.sh from the command line.

You will see Hello bash world! Bash is wonderfull. printed out on the screen.

Congratulation, and welcome to the world of bash.