NuxOra – Linux and Oracle IT website

Admistration, configuration, déploiement, optimisation et tuning.

sysadmin

Sendmail: quick start

First you have to edit the config file vi /etc/mail/sendmail.mc you have to know your smtp server: ……… dnl # Uncomment and edit the following line if your outgoing mail needs to dnl # be sent out through an external mail server: dnl # define(`SMART_HOST’,`serverSMTP’) dnl # define(`confDEF_USER_ID’,“8:12”)dnl dnl define(`confAUTO_REBUILD’)dnl define(`confTO_CONNECT’, `1m’)dnl ……… Then, generate [...]

create a directory tree

If you want to quick, don’t forget to use the ‘-p’ option wrong way: [john@host john]$ mkdir dev [john@host john]$ cd dev [john@host dev]$ mkdir first [john@host dev]$ cd first [john@host first]$ mkdir alpha [john@host dev]$ mkdir second [john@host dev]$ ll [john@host dev]$ cd .. [john@host john]$ mkdir prod [john@host john]$ cd prod [john@host prod]$ [...]

Monter une iso

Pour monter directement un fichier iso sous linux: mount -o loop -t iso9660 fichier.iso /mnt/iso On a ainsi dans /mnt/iso le contenu de l’iso, ca evite de graver

run level and /etc/inittab

Description The numbers associated with the run levels for a specific distribution are listed in the /etc/inittab #/etc/inittab (in RHEL 3) # Default runlevel. The runlevels used by RHS are: # 0 – halt (Do NOT set initdefault to this) # 1 – Single user mode # 2 – Multiuser, without NFS (The same as [...]

Bash Shell Tips

Native Windows users are reluctant to use Bash shell, even some linux geeks don’t know everything about the very useful shortcuts available in bash shell. But when you use all these shortcuts you can go very quickly I’ve tried to compile all of them: for example $ Tab Tab –> press ‘$” then ‘Tab’ and [...]