Inactive TELNET session timeout
The previous post about “Why Telnet Not Working From Different Network” solved my stupid mistake and I have discover another interesting regarding telnet.
Normally if anyone ‘telnet’ to server box and inactive(mean without login) for 60 seconds, the system will keep disconnect automatically. Due to certain reasons, I have to extend the inactive telnet session timeout to one hour.
The solution is simple but I have a difficulty before and I would like to share with everyone.
Edit /etc/login.defs, look for LOGIN_TIMEOUT and change from 60 second to 3600 seconds which is 1 hour.
#vi /etc/login.defs
# Max time in seconds for login
LOGIN_TIMEOUT 3600
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
How to housekeeping OMSA TTY log file on Linux
Previously I wrote about How To Install/Uninstall Dell Open Manage Server Administrator(OMSA) On SLES9 or SLES10 and I found another error which is TTY log that keep increasing without automated housekeeping.
As I understand from Dell malling list, there is no way to turn it off. Too bad, I have a TTY log file that almost go up to 1G.
-rw-rw-r-- 1 root root 962M Jun 11 05:45 /var/log/TTY_00000000.log
So, let me explain how to housekeeping OMSA TTY log file using logrotate.
Edit /etc/logrotate.d/omsa-tty and save it as below:
#vi /etc/logrotate.d/omsa-tty
/var/log/TTY_00000000.log {
daily
dateext
notifempty
rotate 7
compress
postrotate
/etc/init.d/dsm_om_shrsvc restart
endscript
}
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
How To Configure Timezone on SLES Linux
The following tutorial will guide you How to configure TIMEZONE on SLES Linux.
Basically you can configure Linux timezone using two methods which is using command or YaST.
Note: use timezone “GMT+0“ for an example below.
For YaST timezone setup, it’s pretty simple. Login to terminal and type:
#YasT Setup
yast timezone
Select Global, select GMT+0
Hardware clock Set To: Localtime
Click Accept.
For command line setup, you’re require to know these 2 files /etc/localtime and /etc/sysconfig/clock.
#Backup existing file
mv /etc/localtime /etc/localtime.old cp /etc/sysconfig/clock /etc/sysconfig/clock.old
#Edit configuration files
ln -s /usr/share/zoneinfo/GMT+0 /etc/localtimevi /etc/sysconfig/clock TIMEZONE=GMT+0 HWCLOCK="--localtime"
Possibly Related Posts:
- How to Install Webmin on OpenFiler
- lppasswd: Unable to open passwd file: Permission denied
- Missing /var/log/lastlog
- Telnet service_limit error
- How To Capture PUTTY Session Log
How to add a raw mapping device on VMware
VMware ESX Server offers two choices for managing disk access in a virtual machine—VMware Virtual Machine File System (VMFS) and raw device mapping (RDM). It is very important to understand the I/O characteristics of these disk access management systems in order to choose the right access type for a particular application. Choosing the right disk access management method can be a key factor in achieving high system performance for enterprise-class applications.
Basically you can read few VMware RDM related guide from VMware such as: http://www.vmware.com/pdf/esx25_rawdevicemapping.pdf and http://www.vmware.com/resources/techresources/1040
I would like to share “How to add a raw mapping device on VMware” in my VMware ESX development box together with SuSE Linux Enterprise Server 9 VMware guest.
- Click on SLES 10 VMware guest in my Virtual Infrastructure Client
- Click Edit Setting
- Click Add
- Select Hard Disk
- Click Next
- Selecet Raw Device Mappings
- Click Next
- Select Target LUN
/vmfs/devices/disks/vmhba0:0:16:0
/vmfs/devices/disks/vmhba0:0:22:0 - Click Next
- Select Store with Virtual Machine OR Specify datastore
- Click Next
- Select Compatibility
- Choose physical (allow the guest operating system to access the hardware directly. Taking a snapshot of this virtual machine will not include this disk)
- For Virtual (it’s allow the virtual machine to use VMware snapshots and other advanced functionality
- Click Next
- Select Virtual Device Node -> SCSI (0:1)
- Click Next
- Ready to Complete
- Click Finish
- Click OK
Done!
As you can see from pictures show above, SLES 9 with 200G Raw Device Mapping Drive created.
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
How To Add New Username Using Default Password with OpenSSL in SuSE Linux Enterprise Server
How To Add New Username Using Default Password with OpenSSL in SuSE Linux Enterprise Server
Creating a single or two username in SLES is simple job but creating 100 or 1000 new usernames in Linux using manual command line would be pain.
I would like to share about using OpenSSL for creating new username in SLES and probably work for other Linux distro as well.
#Create a default password using OpenSSL
openssl passwd -crypt mysecretpassword
#Example of password output
D4KtJYzzCtz3x
#Create a new username(e.g. myusername1, 2 & 3using default password)
useradd -m myusername1 -d /home/myusername1 -p D4KtJYzzCtz3x
useradd -m myusername2 -d /home/myusername2 -p D4KtJYzzCtz3x
useradd -m myusername3 -d /home/myusername3 -p D4KtJYzzCtz3x
Read more
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
- WP Contact Form III – You do not have sufficient permissions to access this page Error