Archive for February, 2010

Parallels Pro Control Panel for Linux on fresh install of CentOS 5.3 / RHEL 5.3

Prior to installation Parallels Control Panel for Linux on the mentioned operations system please check if the system has rpm user and rpm usergroup:

You need to create this user and appropriate usergroup. To do so please follow next steps:

Log as root to your PPCPL box

Type the following commands:

/usr/sbin/groupadd -g 37 rpm > /dev/null 2>&1
/usr/sbin/useradd -r -d /var/lib/rpm -u 37 -g 37 rpm -s /sbin/nologin > /dev/null 2>&1

After adding the rpm user and rpm usergroup you can proceed with the Parallels Pro Control Panel installation.

Reference : http://parallels.com/

SBDavid

/etc/skel directory

/etc/skel directory

The system will copy the contents of the /etc/skel directory to the user’s HOME directory.

The useradd command allows an administrator to create a default HOME directory configuration, then uses that as a template to create the new user’s HOME directory. This allows you to place default files for the system in every new user’s HOME directory automatically. On my Linux system, the /etc/skel directory has the following files.

root@dell:/etc/skel# ls -ld *
drwxr-xr-x 2 buddy buddy 4096 Oct 11 2008 Desktop
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Documents
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Download
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Music
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Pictures
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Public
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Templates
drwxr-xr-x 2 buddy buddy 4096 Mar 4 2009 Videos
SBDavid

System Default Values for useradd

System Default Values for useradd

The primary tool used to add new users to your Linux system is useradd. This command pro-
vides an easy way to create a new user account and set up the user’s HOME directory structure all at once. The useradd command uses a combination of system default values and command line parameters to define a user account.

To see the system default values used on your Linux distribution, enter the useradd command with the -D parameter.

root@dell:~# /usr/sbin/useradd -D
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/sh
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no

The -D parameter shows what defaults the useradd command uses.

SBDavid

Shell Command Aliases

Shell Command Aliases

A command alias allows you to create an alias name for common commands (along with their
parameters) to help keep your typing to a minimum.

Most likely your Linux distribution has already set some common command aliases for you. To
see a list of the active aliases, use the alias command with the -p parameter:

Example:

$ alias -p
alias l.=’ls -d .* –color=tty’
alias ll=’ls -l –color=tty’
alias ls=’ls –color=tty’
alias vi=’vim’
alias which=’alias | /usr/bin/which –tty-only –read-
alias–show-dot –show-tilde’
SBDavid

The /etc/profile file

The /etc/profile file

The /etc/profile file is the main default startup file for the bash shell. Whenever you log in to the Linux system, bash executes the commands in the /etc/profile startup file. Different Linux distributions place different commands in this file.

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.

« Prev - Next »