Thursday, January 31, 2008

What's dpkg-reconfigure

Reconfigure an already installed package like gdm.
dpkg-reconfigure package_name



For example you can reconfigure X Server:
sudo dpkg-reconfigure xserver-xorg

Friday, January 25, 2008

Issue 9 at Full Circle Magazine

Full Circle Magazine Logo
Hi :)

Issue 9 at Full Circle Magazine is out!

Contents

  • OpenGEU - A step-by-step install from OpenGEU creator Luca De Marini.

  • How-tos: Directory Server, Ubuntu on an iBook, Installing OpenTTD (Transport Tycoon Deluxe), and part one of the new “Create Your Own Server” series.

  • The new “Create Your Own Server” series (mentioned above).

  • Review of the KDE 4.0 release

  • Letters, the Q&A, My Desktop, the Ubuntu Women column, the Top 5, and much, much more!



Full Circle Magazine - Issue 9


Download English version

Good Luck

Tuesday, January 22, 2008

Webmin, Installing on Ubuntu Gutsy Gibbon (7.10)

Webmin
Hi :)
I wrote post about Webmin in ITPencil. My Persian friend like it. I decide to write post about Webmin and how to installing it on Ubuntu Gutsy Gibbon (7.10).
It's very good for newbie.

from webmin.com:


Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.



Installing Webmin On Ubuntu Gutsy Gibbon (7.10)
Webmin has some dependency package.
Install dependencies:

sudo aptitude install bash perl libnet-ssleay-perl openssl \
libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

After install dependencies, you can download and install Webmin. Last version of Webmin is 1.390.
Download Webmin:

sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.390_all.deb


Install Webmin:

sudo dpkg -i webmin*.deb


Log in and use it:
Copy this URL into your web browser: https://localhost:10000

Sunday, January 6, 2008

Linux and UNIX bash shell aliases

shell
Hi

Commonly used for a long strings that are frequently used. Alias allows you to have a small more familiar command or name to execute a long string.

Set an alias
Syntax
alias [name[='command']







nameSpecifies the alias name.
commandSpecifies the command the name should be an alias for.
-aRemoves all alias definitions from the current shell execution environment.
-tSets and lists tracked aliases.
-xSets or prints exported aliases. An exported alias is defined for scripts invoked by name.
-pPrints the list of aliases.


Examples
alias command with no arguments or with the -p option prints the list of aliases:

$ alias
alias ff='firefox'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -l'
alias ls='ls --color=auto'
alias sx='startx'


Sets clr to type clear

$ alias clr='clear'


Remove an alias
Syntax
unalias [name]



nameSpecifies the alias name.
-aRemoves all alias definitions


Clear all Linux / UNIX bash shell aliases

$ unalias -a


Note
When the computer is rebooted all alias will be lost.

How to prevent it?
All alias must be added to .bashrc file located at your user folder (example: /home/saeid/.bashrc)

Example

$ gedit /home/saeid/.bashrc

paste:

alias clr='clear'

now you have to 'compile' your .bashrc file

$ source .bashrc

Now clr alias it's saved.

Good luck