Archive for February, 2010

Migrating to the Latest Version of Parallels Pro Control Panel

The following section provides instructions on migrating to the latest version of Parallels Pro Control Panel.

To migrate to the latest version of Parallels Pro Control Panel:

Log in to the Server Administrator control panel on the Parallels Pro Control Panel server from which you want to migrate data.

Export data from the server:
In the shortcuts section of the Home page, click Export/Import (Tools section).
Perform a Complete backup.

Log in to the Server Administrator control panel on the Parallels Pro Control Panel server.
Import the data to the server to which you want to migrate.
In the shortcuts section of the Home page, click Export/Import (Tools section).
Click Import.

Reference: http://download.pro.parallels.com/

SBDavid

Linux Login shell

When you log in to the Linux system, the bash shell starts as a login shell. The login shell looks for four different startup files to process commands from. The order in which the bash shell processes the files are:

/etc/profile
$HOME/.bash profile
$HOME/.bash login
$HOME/.profile

The /etc/profile file is the main default startup file for the bash shell on the system. Every user on the system executes this startup file when they log in. The other three startup files are specific for each user and can be customized for each user’s requirements.

The complete parameter list for the ls command.

There are lots of parameters for the ls command that can come in handy as you do file management. If you use the man command for ls, you’ll see several pages of available parameters for you to use to modify the output of the ls command.

root@dell:~# ls -sail /etc |less
418076 8 -rw-r–r– 1 root root 4623 May 5 2009 Muttrc
493130 4 drwxr-xr-x 2 root root 4096 Jul 6 2009 Muttrc.d
416980 4 drwxr-xr-x 3 root root 4096 Sep 27 2008 NetworkManager
500697 4 drwxr-xr-x 2 root root 4096 Apr 7 2009 ODBCDataSources
416981 4 drwxr-xr-x 13 root root 4096 Dec 8 19:19 X11
416982 4 drwxr-xr-x 4 root root 4096 Sep 1 2007 Xprint
417381 4 -rw-r–r– 1 root root 2563 Jan 3 2008 a2ps-site.cfg
417382 16 -rw-r–r– 1 root root 15064 Jan 3 2008 a2ps.cfg
416983 4 drwxr-xr-x 9 root root 4096 Sep 27 2008 acpi

A common combination to use is the -a parameter to list all files, the -i parameter to list the inode for each file, the -l parameter to produce a long listing, and the -s parameter to list the block size of the files. The inode of a file or directory is a unique identification number the kernel assigns to each object in the filesystem. Combining all of these parameters creates the easy-to-remember -sail parameter.

SBDavid

Shell Environment Variables

Shell Environment Variables

There are specific environment variables that the bash shell uses by default to define the system environment.

The most important environment variable in this list is the PATH environment variable. When you enter a command in the shell command line interface (CLI), the shell must search the system to find the program. The PATH environment variable defines the directories it searches looking for commands.

The PATH environment variable looks like this.

root@dell:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

This shows that there are six directories where the shell looks for commands. Each directory in the PATH is separated by a colon. The PATH also shows the order in which it looks for commands.

The individual directories listed in the PATH are separated by a colon. All you need to do is reference the original PATH value, and add any new directories to the string.

$ PATH=$PATH:/home/buddy/bin
SBDavid

Setting global environment variables

Setting global environment variables

Global environment variables are visible from any child processes created by the process that sets the global environment variable. The method used to create a global environment variable is to create a local environment variable, then export it to the global environment.

This is done by using the export command:

Example:

export http_proxy=http://192.168.1.1:3128/

You can also remove an existing environment variable. This is done by using the unset command.

« Prev - Next »