|
Thursday, 03 December 2009 12:51 |
|
This how to helps you to create secure connection via ssh between your unix and linux systems. All examples written for RedHat based systems. Also we assume that you already have installed openssh server and running, if not do this steps:
|
|
|
Thursday, 03 December 2009 12:47 |
|
Personal Package Archives (PPA) in Ubuntu - it catalogs APT, which are provided by third parties on Launchpad (platform-party developers Ubuntu). That's where the freshest and the coolest programs grouped into packages Debian, which can be downloaded. It is well known that this service using Google and the community Wine.
|
|
Thursday, 03 December 2009 12:43 |
Files
Cron service
# service crontd status # service crontd start # service crontd stop # service crontd restart
Valid values for cron job
- Minutes - from 0 to 59
- Hours - from 0 to 23
- Day of month - from 1 to 31
- Month - from 1 to 12 (also from jan to dec)
- Day of week - from 0 to 6 (0 is sunday, also from sun to sat)
Cron monitoring commands
-
Check cron config
# chkconfig --list | grep crond # ps -ef | grep cron
-
Show current cron jobs of user
# crontab -l
-
Show current cron jobs of user root
# crontab -u root -l
-
Delete cur cron jobs
# crontab -r
-
Delete user's cur cron jobs
# crontab -u root -r
-
Edit the cron tab jobs
# crontab -e
-
Edit the user's cron tab jobs
# crontab -u root -e
-
Install cron job for user root from file /var/spool/cron/root content
# crontab -i -u root /var/spool/cron/root
Example of cron file
# Cron example file /var/spool/cron/root # (Created for Boot1935) SHELL=/bin/bash MAILTO=root
# 1-12 hours * 0,1,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * /root/reich3/saytime.sh # minutes with 5 minute interval 5,10,15,20,25,30,35,40,45,50,55 * * * * /root/reich3/saytime.sh # hours 0-1, 9-23 * 0-2,9-23 * * * play /root/reich3/saytime.wav # every minute 0-59 * * * * /root/reich3/saytime.sh
|
|
Thursday, 03 December 2009 12:33 |
Creating Password
Create htpasswd file for current (pwd) path
# htpasswd -mc .htpasswd yourusername
Insert new password Create .htaccess file for current path
# touch .htaccess # mcedit .htaccess
Paste this lines to .htaccess file
AuthName "Login to the Private Area" AuthType Basic AuthUserFile /var/www/html/{protected_dir}/.htpasswd Require user {username}
NOTE: Change {username} and {protected_dir} for your own
|
|
Thursday, 03 December 2009 12:29 |
|
Download Kernel from http://kernel.org Extract package
# tar xjf linux-2.6.19.tar.bz2 # cd linux-2.6.19
Modify /etc/modprobe.conf to avoid error message
# mcedit /etc/modprobe.conf
Comment mptscsi (if exists)
alias eth0 pcnet32 alias scsi_hostadapter mptbase #alias scsi_hostadapter1 mptscsi alias scsi_hostadapter2 mptfc alias scsi_hostadapter3 mptspi alias scsi_hostadapter4 mptsas alias scsi_hostadapter5 mptscsih # make mrproper # make clean # make menuconfig # cp /boot/config-`uname -r` .config
Then Select - Load an alternative Configuration File (.config) press enter Select - General Setup ->Type
# -default
Then exit, (close app) Selete YES when question do you want to save ...?
# make rpm # ls -l /usr/src/redhat/SRPMS/ # ls -l /usr/src/redhat/RPMS/i386/ # cd /usr/src/redhat/RPMS/i386/ # rpm -ivh --nodeps kernel-2.6.19default-1.i386.rpm
Now install the new kernel, and create ramdisk:
# echo "DMRAID=no" > /etc/sysconfig/mkinitrd/noraid # chmod 755 /etc/sysconfig/mkinitrd/noraid # mkinitrd /boot/initrd-2.6.19.default.img 2.6.19-default
Open file, and put this 4 lines on top of the 2 similar lines.
# mcedit /etc/grub.conf
Title CentOS 5.2/U-5.3 (2.6.19-default) root (hd0,0) kernel /vmlinuz-2.6.19-default ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.19.default.img Change the `default=1` to `default=0` on the top of the text. Now configure the grub boot loader via vim command and add the following text in the end of the file:
# shutdown -r -n now
All is complate.
# uname -r
|
|
|
|
|
<< Start < Prev 1 2 3 Next > End >>
|
|
Page 1 of 3 |