107 - NTP Server Configuration

The NTP server (ntpd) can be setup to run continuously. This will keep the system clock synchronized.
You will also be able to server NTP clients on your LAN, if you wish. 

1. Edit /etc/ntp.conf

106 - How to delete a specific file by timestamp

1. You can delete all files created more than 4 days before.

# find ./ -type f -mtime +4 -exec rm {} \;
# find /d01 -name "*" -mtime +4 -exec rm -rf {} \;

2. You can delete all files from 4 days before to the current date.

105 - CIFS mount for Windows File System

The Common Internet File System (CIFS) Protocol is a dialect of SMB. If you use this protocol,
you can get access to a file system on a windows system for Linux Environment.

1. Install Samba-client

    If you did not install samba-cleint, you need to do.

# yum install samba-client

2. Mount CIFS on a Linux Server.

104 - HP Printers Driver Set

Your Linux system already has the HPLIP software installed. That's because all major Linux distributions regularly pick up the HPLIP software
and include it with their distribution installation. However, if it is not installed or you need to upgrade to a newer HPLIP version to support your printer.

You can download the HPLIP software which supports 1,924 HP printers on nearly any Linux distribution available today.

http://hplipopensource.com/hplip-web/index.html

1. Install all packages needed.

103 - Need to know UUID and external device

UUID (Universally Unique Identifier) is the only way to guarantee you recognize the same drive or partition no matter what.
If you introduce to your system another hard drive, this might upset quite a few things, starting with the way your system boots up
(or stops booting up upon the new drive introduction). Using UUID helps remedy most of such things so on.

1. Device Map

102 - Mount NTFS on an extarnal USB HDD

1. Check the device name and its partition.

101 - Create FAT32 on an extarnal HDD

1. umount USB HDD.

# umount /media/disk

2. Check the status of HDD.

100 - Hardware Clocks

System administrator command. Read or set the hardware clock.
This command maintains change information on /etc/adjtime, which can be used to ajust the clock based on how much
it drifts over time.

There is also a hardware clock (CMOS clock). You can look at the current hardware clock time with:

# hwclock --show

To set the hardware clock from the system clock, leaving the hardware clock in UTC, enter the following:

099 - How to connect MS-SQL 2008 Express Server from Linux

1. Install ODBC Driver (FreeTDS) packages.

Download URL: http://dag.wieers.com/rpm/packages/freetds/

If your server is Linux 64bit :

* freetds-0.64-1.el5.rf.x86_64.rpm
* freetds-devel-0.64-1.el5.rf.x86_64.rpm

# rpm -ihv freetds-0.64-1.el5.rf.x86_64.rpm
# rpm -ihv freetds-devel-0.64-1.el5.rf.x86_64.rpm

2. Add an entry in  /etc/odbcinst.ini

* tds.driver.template

098 - x window system

1. Open x connection from a remote server.

* Make sure x window system is running in the local host.

# xhost +    (accept any target hosts.)
# xhost [host_name1] [host_name2]  (accept a specific target host.)

2. Login a target server with ssh.

Syndicate content