Search This Blog

Posts

Erasing the entire hard disk using Linux:Run the following command to fill your entire hard disk with zeros $ dd if=/dev/zero of=/dev/sda bs=1M The above command will whole hard disk with zeros. Note: this will take long time to complete. Erasing/filling the hard Disk with random data: We can fill the hard disk with random data in case of any security requirement to prevent data loss. Run the below $ dd if=/dev/random of=/dev/sda bs=1M

Mac OS X looses static routes when it is rebooted. To preserve the static route on mac we would need to create a startup script which adds your static route upon system startup. The following steps will help in achieving this. Create a directory named "addroute" under /System/Library/StartupItems/ with sudo privileges.Under addroute directory create "StartupParameters.plist" with below contents in it 3. Now, create addroute shell script under /System/Library/StartupItems/addroute directory. The addroute script should be like below. #!/bin/sh
# Setting up static routing tables for Mac OS X
. /etc/rc.common
syslogger ( ) {
printf "%s\n" "$*" >> /var/log/system.log
}

We can add static route in the system using route add command from the command prompt or terminal. But these routes gets erased when we reboot the system. To make your route's persistent even after reboot. follow below command on Windows or LinuxOn Windows :In Command Prompt, Run command as belowC:\> route -p add 192.168.1.0 mask 255.255.255.0 172.16.193. 100 metric 1-p switch will make the route persistent on windows.On Linux :Open Terminal , with root privileges create/edit below file to add the route details as below $ vim /etc/sysconfig/network-scripts/route-eth0 2. Add the route details like below and save the file. 192.168.1.0/24 via 172.16.193.100

3. Restart the network service by running " /etc/init.d/network restart ". Now you should be able connect the systems under 192.168.1.0/24 network through 172.16.193.100 gateway.Note : if your ip address is configured to eth1 port then you would have to create " route-eth1 &qu…

SSH connection by default is disabled to the VMWare ESXi hosts. We can enable the SSH connection on the ESXi host with following steps: Login into ESXi shell with your root credentials. ( How login as root can be known here )Open /etc/inetd.conf with vi.Look for #SSH by scrolling down or searching the string.Un-comment the line by removing "#" by pressing X from your keyboard.Save the file.Now get the process id of inetd by running command as " ps | grep inetd "Run "Kill -HUP . This would kill the inetd process daemon and inetd is relaunched again.Now again get the process id of inetd to make sure inetd was lauched again. Now SSH is enabled to the ESXi host. If inetd was not launched, then restart your ESXi host. This would enable the SSH connection upon restart.

We might sometime need the root access on the VMWare ESXi host to debug an issue. But VMWare ESXi does not provide any console other than the default one. But there is a way to get the shell/terminal access for the root. The below steps should help in that. Goto VMware ESXi console. Press Alt+F1 from your keyboard. Type "unsuported" even though you will not see the characters getting displayed on the console.Now , type the root password to get the root access to the ESXi host.