0% found this document useful (0 votes)
4 views7 pages

Setting Hash in DGLux5 Web Docs

The document discusses Linux network configuration, scheduling jobs with cron, backup and restore processes, and adding or removing software. Linux network configuration files include /etc/resolv.conf for name servers, /etc/sysconfig/network for networking settings, and /etc/sysconfig/network-scripts/ifcfg-eth0 for device-specific settings. Cron allows scheduling jobs to run at intervals by adding scripts to directories like /etc/cron.hourly or by editing /etc/crontab, which defines the schedule in a standard format of minutes, hours, days, months, and weekdays. Backups can be made with tar and placed on different disks or tape for restoration later.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views7 pages

Setting Hash in DGLux5 Web Docs

The document discusses Linux network configuration, scheduling jobs with cron, backup and restore processes, and adding or removing software. Linux network configuration files include /etc/resolv.conf for name servers, /etc/sysconfig/network for networking settings, and /etc/sysconfig/network-scripts/ifcfg-eth0 for device-specific settings. Cron allows scheduling jobs to run at intervals by adding scripts to directories like /etc/cron.hourly or by editing /etc/crontab, which defines the schedule in a standard format of minutes, hours, days, months, and weekdays. Backups can be made with tar and placed on different disks or tape for restoration later.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd

Linux System Administration

Linux Network Configuration


/etc/[Link] Tells the kernel which name server
should be queried when a program asks to "resolve"
an IP Address.
nameserver [Link]
search [Link] [Link]
/etc/sysconfig/network Indicates networking is
enabled (NETWORKING=yes) and provides
information on hostname, gateway and nis domain.
NETWORKING=yes
HOSTNAME=[Link]
NISDOMAIN=cc
GATEWAY=[Link]
Linux System Administration

Linux Network Configuration


/etc/sysconfig/network-scripts/ifcfg-eth0 Network
configurations like boot protocol (static/dhcp), ip
address, netmask, network address, broadcast
address etc.
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=[Link]
NETMASK=[Link]
BROADCAST=[Link]
NETWORK=[Link]
GATEWAY=[Link]
Linux System Administration

Scheduling Jobs: Cron

Cron is a program that enables you to execute a


command, or a script with a sequence of commands,
at a specified date, time or at set intervals.
Add the job script in /etc/[Link] or
/etc/[Link] or /etc/[Link] or
/etc/[Link] to schedule a job
Linux System Administration

Scheduling Jobs: Cron


Make an entry in /etc/crontab file to schedule a job (crontab -e) the
format is
* * * * * command_to_execute
each star denotes Minute Hour Day_of_Month Month Day_of_Week
Minute = Minute of the hour, 00 to 59. * Will indicate every minute
Hour = Hour of the day in 24-hour format, 00 to 23. * Will indicate
every hour
Day = Day of the month, 1 to 31. * Will indicate every day
Month = Month of the year, 1 to 12. * Will indicate every month
Day = Day of the week, 3 chars - sun, mon, tue, or numeric (0=sun, 1=mon etc).... * Will
indicate every day
Task = The command you want to execute
Linux System Administration

Backup & Restore

Backup the user area or configuration file


Use tar to take backup on a different disk or tape
Backup can be scheduled using cron
Backup: tar –zcvf <tar filename> <Directory Tree to be
backedup>
Restore: tar –zxvf <tar filename> <file to be recovered>
Backup should be occasionally checked by restoring it
Backup Policy: Full Backup every weekly/fortnightly
and incremental backup every day
Linux System Administration

Adding & Removing Software


Download a binary
Download the source code and compile on the system
(download, untar, configure, make, make install, make
uninstall)
Use RPM - Redhat Package Manager and install rpms
[Link] & [Link] can be used to
search and download rpms (i386 Binary RPMs or SRC RPMs)
For Binary rpms: rpm [options] rpm-file
(rpm –qa, rpm –ivh, rpm –Uvh, rpm -e)
Where -q= query, -a= all, -i=install, -v=verbrose, -U= upgrade,
-h= hash, -e= erase
For Source rpms: rpmbuild –rebuild rpm-source-file
Compiled binary rpms will be available at
/usr/src/redhat/RPMS/i386 which can be installed

You might also like