ESXi PXE install has no differences from other PXE installs, you need DHCP server, tftp server and the installation ISO. In my example, I build the DHCP server and tftp server on CentOS 6.3 minimal installation. 1) Install and configure the DHCP Server yum –y install dhcp cd /etc/dhcp/ cp –a dhcpd.conf dhcpd.conf.bak Modify dhcpd.conf … Continue reading ESXi 5.0 PXE Install
Tag: Linux
Install syslog-ng on CentOS 6.3
syslog-ng is an open source syslog server that can be installed on many *nix servers. In my example, I installed it on a 64bit CentOS 6.3 server with minimal package. 1) Download and extract the source code. wget http://www.balabit.com/downloads/files?path=/syslog-ng/open-source-edition/3.4.0alpha3/source/eventlog_0.2.12.tar.gz wget http://www.balabit.com/downloads/files?path=/syslog-ng/open-source-edition/3.4.0alpha3/source/syslog-ng_3.4.0alpha3.tar.gz tar xvzf eventlog-0.2.12.tar.gz tar xvzf syslog-ng-3.4.0alpha3.tar.gz 2) Install dependencies. yum -y install kernel-headers* glibc-headers-* … Continue reading Install syslog-ng on CentOS 6.3
Create Passwordless SSH
Two steps to create passwordless SSH/SCP:1) Run 'ssh-keygen' to generate the key pair.2) Run 'ssh-copy-id root@remote' to copy the public key to the remote host
Bash: Log File Archive Script
There are some logs files are in such format: 20120130-174201-130947.log. I created two bash scripts to archive them by year/month/day: The first one is based on the log file creation date, the other one is based on the time stamp within the file name. #Backup Script1: Use modification date of the file#!/bin/bash #Define the Log … Continue reading Bash: Log File Archive Script
Bash: UT-Citrix
I developed the Ubuntu version Citrix thin client. To follow the same naming convention as TC-Citrix, I name it UT-Citrix. Here are the key scripts: checkip #!/bin/bash #wait for the DHCP ready while ! ifconfig eth0 | grep 'inet addr' >/dev/null 2>&1 do echo sleep 2 done sysprep #!/bin/bash #rename the computer echo HOSTNAME=UT-`ifconfig | … Continue reading Bash: UT-Citrix