If you find yourself hit with a bunch of errors relating to snmp like the below
Error: Line 283: Label statement before first chip statement Error: Line 284: Label statement before first chip statement Error: Line 285: Label statement before first chip statement Error: Line 286: Label statement before first chip statement Error: Line 287: Label statement before first chip statement Error: Line 288: Label statement before first chip statement Error: Line 289: Label statement before first chip statement Error: Line 322: Compute statement before first chip statement Error: Line 323: Compute statement before first chip statement Error: Line 324: Compute statement before first chip statement Error: Line 325: Compute statement before first chip statement Error: Line 1073: Parse error in chip name Error: Line 1094: Parse error in chip name Error: Line 1104: Parse error in chip name Error: Line 1114: Parse error in chip name Error: Line 1124: Parse error in chip name
Run the below
aptitude purge snmpd apt-get purge libsensors3
Then reinstall snmpd
I had to virtualise a few Physical Linux CentOS and Debian Servers over to Virtual Machines in Proxmox recently so thought I’d write a quick and dirty guide to do so. As a prerequisite the Physical servers were live mail handling servers running things like webmail, dovecot proxy, Postfix etc, I also wanted to downsize the disk’s on them from 200G down to 40G, so I went with the method below.
1. I firstly created a brand new virtual machine in proxmox with NO OS on it with the disk size at the new size I wanted, i.e. 40G
2. Make sure the new virtual machine has a working network adapter
3. Next, I booted up into a Debian 7 live cd (I prefer the debian 7 live ISO from previous GRUB recovery issues i’ve had in the past.)
4. Once booted up, sudo to bash as root and set a password because you’ll probably need this later.
bash$ sudo bash bash# passwd
5. Make sure the new virtual machine has an IP address, if not, you’ll need to set one
6. Create partitions accordingly, I created a 4Gig swap at the start and the rest as /
bash# fdisk /dev/vda Disk /dev/vda: 42.9 GB, 42949672960 bytes
Device Boot Start End Blocks Id System /dev/vda1 3 8325 4194304 82 Linux swap / Solaris /dev/vda2 * 8325 83221 37747712 83 Linux
*note that /dev/vda2 is set as bootable
7. Next, format the partitions accordingly and mount the new / to /mnt
bash# mkfs.ext4 /dev/vda2 bash# mkswap /dev/vda1 bash# mount /dev/vda2 /mnt
8. You’ll need to create an empty proc and sys mount point as below
bash# mkdir /mnt/proc; mkdir /mnt/sys
9. Now, on the source server that’s currently live you need to rsync the data to the new server
live_mail_server# rsync -vrtlpogDSH --progress --delete --exclude=/sys --exclude=/proc / root@new_virtual_machine_ip:/mnt/
Once the initial rsync has run I tend to run another final one. If you’re running MySQL on the source server and there’s a lot of mysql churn, it’s best to shut mysql down before hand.
10. Now the fun part as you need to get grub working. Regardless of the grub version on the original server you should install the grub2 packages and install the grub2 boot loader
*you might need to add a DNS resolver to /etc/resolv.conf first if aptitude fails bash# aptitude install grub2 bash# grub-install /dev/vda --boot-directory=/mnt/boot
11. Finally edit /mnt/etc/fstab and update the / and swap’s accordingly removing any UUID’s and replacing with /dev/vda1 for example.
12. Reboot the system and wait for the grub boot loader to come up. You can from there then drop to a console for example and load the appropriate initramfs and kernel. This took a bit of playing around with boot there’s plenty of articles out there on this.
13. Once booted make sure you then install/reconfigure grub accordingly so that subsequent reboots work as expected.
This was a little bit of a mission for a customer recently that required http2 support with curl but they weren’t fussed about it being separate from the already installed version of curl. This also helped because it turned out it needed a newer version of OpenSSL and the last thing I wanted to do was to replace the installed version of OpenSSL and break dependencies.
Firstly, install the dev tools you’re doing to need.
yum -y groupinstall "Development Tools" yum -y install libev libev-devel zlib zlib-devel openssl openssl-devel git
Next, we’re going to store a few things in /var/tmp and install the new version of openssl into /opt/openssl
mkdir /var/tmp cd /var/tmp wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz tar -zxf openssl-1.0.2-latest.tar.gz cd openssl-1.0.2l mkdir /opt/openssl ./config --prefix=/opt/openssl make make test make install
Now on to nghttp2
git clone https://github.com/tatsuhiro-t/nghttp2.git cd nghttp2 autoreconf -i automake autoconf ./configure make make install echo '/usr/local/lib' > /etc/ld.so.conf.d/custom-libs.conf ldconfig ldconfig -p| grep libnghttp2
Then finally, we build curl with http2 and the newer openssl
cd /var/tmp git clone https://github.com/bagder/curl.git cd curl ./buildconf ./configure --with-ssl=/opt/openssl --with-nghttp2=/usr/local --disable-file --without-pic --disable-shared make
Finally, you should be able to run curl with
This does not ‘install’ curl, it just builds it. My advice would be to have it install into /opt somewhere but you can change that on the ./configure line above.
I’ve posted DMitry up on github, fork away!
This was kindly posted online by R.West at the url below:-
You can only “forward as an attachment” in Outlook Web Access if you have installed the S/MIME control.
In OWA, goto OPTIONS and then EMAIL SECURITY.
Click the link to install the S/MIME attachment.
After that, you can create a NEW message, and drag/drop an existing message from your inbox into the new message. It will appear as an attachment, not a link.
*Note:- when I did this the email never showed as an attachment in the new message window but it was there and did work.
For quite sometime on any of my PC’s I would get jerky/stuttery playback on youtube videos in Chrome but perfect playback in Internet Explorer. So, what’s going on? Well if it’s anything like mine your chrome has likely got more than one Adobe / Shockwave flash plugin installed. Here’s how to resolve it:-
1. Open up Chrome and head enter ‘chrome://plugins’ in your address bar.
2. Clicked on the ‘+’ located at the top right of the screen next to ‘Details. This will expand the details of all the plugins you’ve got.
3. Use CTRL+F if you need it to locate ‘Flash’ in the list.
4. Once you’ve found the Adobe Flash plugins check how many files are listed under the plugin and disable ALL of them except for the one similar to below:-
Name: Shockwave Flash Description: Shockwave Flash 16.0 r0 Version: 16,0,0,305 Location: C:\Windows\SysWOW64\Macromed\Flash\NPSWF32_16_0_0_305.dll Type: NPAPI Disable MIME types: MIME type Description File extensions application/x-shockwave-flash Adobe Flash movie .swf application/futuresplash FutureSplash movie .spl
5. Next, tick the ‘Always Allowed’ tickbox and completely close chrome. With mine I ran taskkill /F /IM chrome.exe from a command prompt to completely kill it.
6. Now, head to youtube and hopefully your problems are solved 🙂
Hope this helps someone else.
Working on a server running DBMail 3.0 and found there was a memory leak with IMAPD at least stating ‘Too Many Open Files’ every now and then. Upgrading to 3.1.9 wasn’t as straight forward as I had hoped as libevent2 is now required rather than version 1 so the following were the steps I found that worked for me on FreebSD:-
First remove the old libevent version
cd /usr/ports/devel/libevent make deinstall
Next, install the new version
cd /usr/ports/devel/libevent2 make install
Finally I then had to patch dbmail to include some libevent2 files
edit src/dbmail.h.in at #ifdef HAVE_ENDIAN_H #include #endif add +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <event2/keyvalq_struct.h> +#include <event2/event_compat.h> +#include <event2/buffer_compat.h> + +
Finally you can then cd the the extracted tar ball of dbmail 3.1 and run the following
env CPPFLAGS="-I /usr/local/include -I /usr/local/include/event2 -I /usr/local/include/event2/compat -I /usr/local/include/zdb -L/usr/local/lib/event2" LDFLAGS="-L/usr/local/lib/event2" ./configure --with-sieve=/usr/local --sysconfdir=/etc
gmake gmake install
Hope this helps!
Title: Depeche Prank Call
This is a prank call I performed a year or so ago for some virginia beach escorts, still makes me giggle today. If you like what you see then subscribe. I’ll post up more content soon, thanks guys for the views!
If you find yourself in a situation where you’re using FileZilla 3 and the server is proftpd based you may find that your symlinks (symbolic links) aren’t working and throw the following errors:-
"Critical File System Error"
Then you may need to enable the following in your ProFTPD config providing your ProFTPD server is patched to support it:-
ShowSymlinks on <IfModule mod_facts.c> FactsOptions UseSlink </IfModule>
Hope this helps