[FIX] EVE-NG No IP address on interface pnet0

[FIX] EVE-NG No IP address on interface pnet0

After some time with GNS3, today I wanted to experiment a bit with EVE-NG to see how it feels and what i can do with it. As soon as I installed and boot it up, it didn’t work. It seamed that during the install i’ve skipped something (rather important). Instead of checking it twice, the decision was to reinstall it and give it another go. Of course, the outcome was the same and then the obvious thing to do was to investigate. At a closer look, i realized that there was no IP given… So, in the future, install EVE first, and only then add the virtual network card. This way you will not get the error “No IP address on interface pnet0”.

1. The issue

2. Go to VMWare> Edit > Virtual Network Editor >

[FIX] EVE-NG No IP address on interface pnet0 1

3. Click Change settings (for admin rights) then click “Restore default” button

[FIX] EVE-NG No IP address on interface pnet0 2

4. Wait for the network adapter to be installed and after the default settings are loaded successfully, click OK

5. Now go to your vm like in the image bellow, right click on it and go to settings

[FIX] EVE-NG No IP address on interface pnet0 3

6. Now go to Hardware > Network adapter > Network Connection > Custom: Specific virtual Network > select the one with NAT option like bellow

[FIX] EVE-NG No IP address on interface pnet0 4

7. Power on your virtual machine and take a note of the IP address you’ve got assigned for this virtual machine.

[FIX] EVE-NG No IP address on interface pnet0 5

[FIX] EVE-NG No IP address on interface pnet0 6

8. Open your browser and enter the IP (mine is 192.168.36.128) and hit enter. User the default credentials (admin/eve) to login. 

[FIX] EVE-NG No IP address on interface pnet0 7

You’re done! If you have any observation leave a comment. If you know how to improve the method leave a message.

Have an inspiring day!

Mailchimp emails go to spam folder

Mailchimp emails go to spam folder

To improve the email deliverability and avoid your MailChimp emails go to spam folder there is a simple way to do it. I’ve spent about half an hour to understand why my emails got in the SPAM folder, so you don’t have to do it. In order to increase delivery rate to subscribers there is one more thing that needs your attention.

 

Why my emails go to spam?

There are many reasons to “why” the emails are going to spam. Someone might report it as spam, there are broken links in the email, it’s missing unsubscribe headers, alt attributes,you don’t have a good text-to-image ratio, etc. All this can affect the success of your email being send to the inbox of your subscribers.

When using Mailchimp services you need to do two things: verify and authenticate your domain. In order to do that, you need to configure the SPF record. This way your server authorize Mailchimp server to send emails from your domain. It might sound difficult but in fact in not that hard. Just adding the some modification to your DNS re records will do the trick.

SPF records: Authenticate your domain

In order to finish and verify Mailchimp you need to have access to your DNS records and to your Mailchimp account.

  • Go to Mailchimp>Account>Settings>Domains. If you are already verified, click Authenticate and a pop-up window will reveal the instructions.
  • Go to your domain in the DNS Editor and there you should be able to find and existing SPF record. Depending on your server, it could be a TXT record similar to this “v=spf1 inlcude:google.com ~all”.

 Create/Modify SPF

Click edit or modify and add the spf record indicated in MailChimp instructions.

“v=spf1 include:servers.mcsv.net ?all”

You can only have one SPF record. So, if there is an existing one, like my example above, you’ll need to add the new record that should look like this:

“v=spf1 include:google.com include:servers.mcsv.net ~all”

That will ensure that you’ll get your email delivered.
~all – mails from hosts not specifically allowed are not permitted to send mails.
?all – not specified host is neutral and nothing can be said about the validity of it.

 Create CNAME

Create a CNAME record for k1._domainkey with the value of: dkim.mcsv.net. If you need to set time to live TTL just use the default (usually 144000) or check other records you have.

Success! Email was delivered!

Click Authenticate Domain. Depending on your server, it can take up to 24/48 hours for the changes to propagate. Usually is just  a few moments, but it can take longer sometimes. If that is the case don’t worry, just come back later at MailChimp and click authenticate again.

How to limit characters in widget titles

How to limit characters in widget titles

Recently I had a request from a client to “make the titles in widget shorter”.

The thing that bummed me out was that the widget “recent posts” was a core file from wordpress. The problem with this was the fact that if you modify wordpress core file, at the next update, the file would get rewritten… So after some research on how to get this done, i’ve decided to take a break, as i couldn’d find a solution that woked. At a later time and with a fresh mind i took another aproach on this.

I tought that it must be some plugin that i can use in order to have a new widget with the same functions that the core file has, and to write that down. I found Custom Recent Post Widget can do this for me and i was so happy. Now all i had to do was to find the files that i needed to edit and to write some code over there… and that is what i’ve done.

Here is an example of how i did just that

1. Install and activate Custom Recent Post Widget
2. With your FTP client search inside the plugin folder search for includes>crpw-cat.php and open this file
3. Now you shoud find the class crpw-item, and inside that search for the tag (about line 52) like in the code below

1
<!--?php the_title(); ?-->

4. Replace the code above with this one

1
 

1
<a class="crpw-title" title="Permanent link to &lt;?php the_title_attribute(); ?&gt;" href="&lt;?php the_permalink(); ?&gt;" rel="bookmark"><!--?php if ( get_the_title() ) { $t = get_the_title(); $t = substr($t, 0, 40); /// if this doesn't work } echo mb_strimwidth(get_the_title(), 0, 50, '...'); ?--></a>

the next text

How to upgrade to PHP7 version from .htaccess

How to upgrade to PHP7 version from .htaccess

In case that you can’t use the PHP Version Manager in cPanel, you can change your PHP version by adding a line of code to your .htaccess file of your wordpress website.

To apply these changes you can use a FPT software like FileZilla (this is what i usually use). Locate your .httaccess file and at the top of the document add the following line of code:

1
AddType application/x-httpd-php71 .php

Or this line of code if the first one doesn’t work for you

1
Action application/x-httpd-php71 /cgi-sys/php71-fcgi-starter.fcgi

Here is an example

That’s all there is to it.