Recently I installed a server with a Supermicro SMC2108 RAID adapter, which is actually a LSI MegaRAID SAS 9260. LSI created a command line utility called MegaCLI for Linux to manage this adapter. You can download it from their support pages. The downloaded archive contains an RPM file. I installed mc and rpm on Debian with…
Category: Uncategorized
“Failed to open disk scsi0:0: Unsupported and/or invalid disk type 8” error when trying to power on a VM on ESXi 4
Convert the file to zerothick type. vmkfstools -i uda20.vmdk -d zeroedthick uda20z.vmdk nJoy;-)
Using Stunnel to Encrypt Unsecure Connections
So you’re a fully signed up ‘tin foil hatter’ and you have an old app that communicates over the internet but doesn’t use SSL? Not to worry, there is a solution for you and its called stunnel. Stunnel is available for both Linux and Windows, and simply put creates an SSL tunnel from one machine…
Change Hostname Permanently on Debian or Ubuntu
Debian based systems use the file /etc/hostname to read the hostname of the computer at boot time and set it up using the init script /etc/init.d/hostname.sh We can edit the file /etc/hostname and change the hostname and then run: /etc/init.d/hostname.sh start Steps: 1. sudo vim /etc/hostname 2. Save the file with the hostname you like…
Moving SSL Certs from IIS to Apache
Some instructions for converting SSL certificates generated for IIS to private key, and cert files you can use on unix, or Apache for windows. First Export your IIS certificate into a pfx file (this is something you should do anyways for backup) Run mmc.exe Click the ‘Console’ menu and then click ‘Add/Remove Snap-in’. Click the ‘Add’ button…
Booting into Single User Mode – (Password Recovery)
Many occasions during commissioning of servers we need to reboot especially to freshen hardware re-configurations. (ain’t that still a bitch). Single user mode is there to help. Booting into single user mode At the GRUB splash screen at boot time, press any key to enter the GRUB interactive menu. Select CentOS with the version of the kernel…
Checking for email server blacklisting
Trying to understand why mail is not being sent ? [For Sendmail] If your tail -f /var/log/maillog logs are showing something like this: Aug 30 22:43:06 netman sendmail[8100]: starting daemon (8.14.4): SMTP+queueing@01:00:00 Aug 30 22:43:06 netman sm-msp-queue[8109]: starting daemon (8.14.4): queueing@01:00:00 Aug 30 22:43:11 netman sendmail[8102]: q7SIq1Kk011256: to=<david.saliba@jial.com>, ctladdr=<root@netman.lan> (0/0), delay=2+04:51:10, xdelay=00:00:05, mailer=esmtp, pri=3720580, relay=alt4.jial-smtp-in.l.gogglee.com. [XX.125.142.26],…
Creating a router on a CentOS 6 server
Assuming you want to NAT the network on eth1 and route the traffic to eth0 this is the spell: Create the forwarding rule: /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE and then enable IP forwarding echo “1” > /proc/sys/net/ipv4/ip_forward OR sysctl -w net.ipv4.ip_forward=1 Permanent setting using /etc/sysctl.conf If we want to make…
Windows time stamping in batch files
Creating a time-stamp in windows can be usful for the automated backups we all SHOULD be doing 🙂 pkzip c:\<source>\*.* c:\<target>\TempZip.zip ren C:\<target>\TempZip.Zip c:\<target>\TempZip_%date:~-4,4%%date:~-7,2%%date:~-10,2%.zip Or simply to create a directory for copying open files (Lawrence 🙂 ) set backdir=%date:~-4,4%%date:~-7,2%%date:~-10,2% mkdir %backdir% cd %backdir% etc..
Common Errors and Fixes for OpenStack Compute
The Launchpad Answers site offers a place to ask and answer questions, and you can also mark questions as frequently asked questions. Credential errors, 401, 403 forbidden errors A 403 forbidden error is caused by missing credentials. Through current installation methods, there are basically two ways to get the novarc file. The manual method requires…