2015-02-25

Check JDK version within Win7

Command: javac -version


2015-02-12

NFS Server & Client

On NFS server (IP: 192.168.0.103) shared a writable folder /nfsdata to everyone under IP subnet 192.168.0.0/24

Server

  • # mkdir /nfsdata
  • # chmod 777 /nfsdata
  • # vi /etc/exports
    • /nfsdata 192.168.0.0/24(rw,sync)
  • # service nfs restart
Client
  • # showmount -e 192.168.0.103
    • Export list for 192.168.0.103:
    • /nfsdata 192.168.0.0/24
  • # mkdir /mnt/nfs
  • # mount 192.168.0.103:/nfsdata /mnt/nfs
  • # cp /etc/passwd /mnt/nfs
An other way to auto connect with NFS server when Client boot up.
  • # vi /etc/fstab
    • 192.168.0.103:/nfsdata /mnt/nfs     nfs     default,soft,intr,timeo=1  0   0
  • # mount /mnt/nfs
  • # reboot

More message for Login.

For local login.
(Default content)

  • # vi /etc/issue
    • Fedora Core release 4 (Stentz)
    • Kernel \r on an \m
For remote login.
  • # vi /etc/issue.net

Welcome message after get success login.

  • # vi /etc/motd

Tune on [NumLock] by default.

Add following on bottom on file rc.sysinit, and reboot the Linux.

Step-1:
  •  # vi /etc/rc.d/rc.sysinit
Step-2:
  • for tty in /dev/tty[1-9]*; do setleds -D +num < $tty
  • done
Step-3:
  • # reboot