Configuring a trunk network without native VLAN on Ubuntu

I had to deal with systemd nonsense today because I’m trying to deploy something cool under Ubuntu. Usually I don’t have to deal with systemd so I thought it may be worth documenting for me to remember.

So, first of all. Doing the first attempt on-the-fly to know networking actually works. In this case I will use vconfig to create the vlan interface, ip for adding the address to the new device and route for the gateway.

For this example I want to use the interface enp9s0f1, the VLAN 205, as IP address I want 10.200.205.22 and my gateway is 10.200.205.254.

# vconfig add enp9s0f1 205
# ip addr add 10.200.205.22/24 dev enp9s0f1.205
# route add default gw 10.200.205.254
# ip link set dev enp9s0f1 up
# ip link set dev enp9s0f1.205 up

Once this is done, you should be able to reach the server thru the network. You might want to setup your DNS too, go to resolved configuration and add the following lines (or modify if already there).

/etc/systemd/resolved.conf

[Resolve]
DNS=8.8.8.8
FallbackDNS=8.8.4.4

Restart systemd-resolved by doing systemctl restart systemd-resolved. Once everything works as it should time to make it persistent.

Go to /etc/systemd/network and you will have to create 3 files. One for the carrier and two for the VLAN interface.

/etc/systemd/network/enp9s0f1.network

[Match]
Name=enp9s0f1

[Network]
VLAN=enp9s0f1.205

Once we specify that we will use a VLAN using enp9s0f1.205 device, we will create enp9s0f1.205.netdev and enp9s0f1.205.network to configure that interface as it should. netdev will specify that it is a VLAN and the ID while the network file will provide the static configuration of the address.

/etc/systemd/network/enp9s0f1.205.netdev

[NetDev]
Name=enp9s0f1.205
Kind=vlan

[VLAN]
Id=205

/etc/systemd/network/enp9s0f1.205.network

[Match]
Name=enp9s0f1.205

[Network]
Description=”VLAN 205″
Address=10.200.205.22/24
Gateway=10.200.205.254

After doing this make sure to have systemd-networkd and systemd-resolved enabled for next boot (systemctl enable …), perform a reboot and everything should be good to go :).

And well this was my first and not pleasant approach to systemd-networkd and systemd-resolved and so far I hated how they work.

If you know a better way to fulfill this, feel free to leave a comment!

Gear talk: From old-school to the future.

As some of my fellow readers know and a guitar aficionado, I been playing for a time now and although I don’t play very well I appreciate when my setup screams as exactly as I want. That’s exactly what I found on a Randall Diavlo RD45H coupled with my Gibson Explorer a couple of years ago.

Sadly, I had to move from a house to an apartment that cannot handle that beast. So I looked up which are alternatives that would allow me to have a huge variety of sounds while using headphones and being cheap.

The gadgets
I narrowed my search to 2 gadgets: POD HD500X and the Eleven Rack. Being that said I looked up reviews, hear few clips on YouTube and looked up how active the scene of making new presets, the choice was easy once I took all of that. Also got a Beyerdynamic DT 990 Pro 250 ohm for it.

The Axe

Strandberg Boden 6

The hardest part was to pick the right axe, moving away from an Explorer paired with an 81/85 EMG pickups is not easy, still, I have it but is hard to travel with. For this, the requirement was easier than with the interface: something portable and amazing.

 

Got a Strandberg Boden 6 with Suhr passive pickups that sounds better than how it looks, is super lightweight and it comes with the EndurNeck, which basically is kinda weird as it is not flat but round and the shape changes thru the neck. Also, headless guitars are gorgeous.

Result
Now that I have everything setup I must say that I miss the tubes. The interface is great, does all I expected it to do but doesn’t sound as right as I wish but allows me to be more flexible on what to play which is also great!

About the guitar, I cannot describe how well it plays. The electronics are very quiet, no noise, no fret buzz, can be played on all the positions while being comfortable at the same time, it includes a gig bag which is very convenient as you can use it as a backpack, which I hope that is able to go in a plane cabin.

An immigrant voyage – Part I

A few months ago I had a job offer which involved a relocation to the United States for few years. So I took it right away. However, I didn’t know at the moment what I was getting into when it comes to complexities (and expenses) that come with it.

 

I had the fortune that a friend (and coworker) was able to provide me housing for the first couple of months to settle in while I looked for an apartment and a car.

It was Colombus day and I wanted to get my SSN paperwork done. The day I arrived I looked up my i-94 form, which I noticed was filled with an incorrect kind of visa in the system but correctly on my passport, this is a requirement to proceed with the request but anyway I showed up at social security administration office which was closed.

So I went to USCIS at Detroit, which I did and they told me there is nothing they could do that as it’s a Homeland Security matter, so my first guess was to return to the airport and try to get it fixed right away which I would think its a basic procedure as I saw a note in the waiting room about it and how to get it fixed by just sending an email with a copy of the stamp and my visa. Went to my future workplace to ask for a scanner and I did send the requested information, immediately I got an auto-response that said: “Responses can take up to 6 weeks so please do not call or send another email.”. I was starting my new position in 2 weeks.

Day 2 – Showed up at Social Security Administration office to try my luck but I couldn’t do the request due to the issue with the i-94.
It seemed that the only way to get the form fixed right away was to leave the country and come in again and so I did. Went to Windsor, ON (Canada) by crossing the tunnel from Detroit downtown. I was there for around an hour and came back to Detroit, explained the whole thing at the immigration office and they issued a new form and that’s pretty much how I got a was able to complete my paperwork without waiting 6 weeks. This time I asked for a physical one rather than depending on the online one. The best part of all, I was able to go back and finish my paperwork before the office closed.

Sadly I didn’t take a photo of anything for this post so I will just dropped a photo that I took at an airport.

#F1ESTA

It has been 5 years since I’ve started to follow this beautiful motorsport, the F1. A year has passed since the last Mexico GP and now it’s back to bring the fans beautiful sounds of fuel combusting inside the motors, the particular smell of burning tires drawing patterns over the asphalt, the sparks flying from the brakes, and of course the roar of the fans cheering for their favorite drivers (which mostly was for Esteban Gutierrez and Sergio Pérez as we had the fortune of having to Mexican drivers on the track).

I arrived in Mexico City on Thursday evening and had a delicious bagels for dinner and a restful night of sleep in preparation for a long next day. I was looking forward to attending the early morning practices and taking some photos before the full excitement of the main event in the following days called #F1ESTA, which means “party” in Spanish.

Day 1

The start of the day was slow. I didn’t think that many people would be there for the practices. I started to see people wearing gray, red and blue in the Mexico City subway. As I was getting closer to the racetrack Hermanos Rodríguez, I could feel the excitement growing within me; it was the first time that I was going to see and listen to an F1 car on the track. I arrived at the venue with a friend and started to look for our designated entrance gate. Being a couple hours early before the practices, we had a ton of time to look around for merchandise, drink a cup of coffee to warm ourselves in the chilly morning and took few photos—I knew it would be almost impossible to do so on the weekend.

There were some staff people distributing earplugs to the fans.  However, I came to get my ears destroyed—I mean it couldn’t be worse than standing next to a big speaker in a concert. Practices started and we had the fortune of seeing many cars taking part of it.

There were some staff people distributing earplugs to the fans.  However, I came to get my ears destroyed—I mean it couldn’t be worse than standing next to a big speaker in a concert. Practices started and we had the fortune of seeing many cars taking part of it.

Day 2

I arrived to the racetrack to meet a friend for the qualifiers, before the last session of test practice started.  This time, the venue was packed full of fans!.The weather was great, which meant the track was hot, so I knew the qualifiers were going to be amazing. As much as I like rain, and even more, racing on water, it was my first time seeing the F1 in person so I wanted the to see the top speeds. I found that my seat was right on a DRS (Drag Reduction System) zone so that was a great surprise. I had bought the tickets as fast as possible to get a nice spot but didn’t realize how good it was until a day before.

After practices finished, historic classical cars started to race. Although their sound was amazing, the cars were slow compared to today’s cars. I started to look for a friend who traveled the whole way from Seattle to Mexico City that same morning to join the #F1ESTA. Upon finding him, we went for beer and tequila. The excitement in the air was incredible.

The qualifiers started which means that lap times were faster; I didn’t knew if was worth to turn my head when the cars passed right in front of us because it was impossible to follow them at their high speed.

When the qualifiers finished I knew that Sunday was going to be a day to remember for a lifetime. We left to get some rest, order for food and attended a Halloween party which we left early to be ready for the Mexico GP.

Day 3

Race start was at 1 PM. We took our time to sleep in and to have a mexican breakfast which included eggs and a lot of salsa before getting into the venue. Mexico City traffic was totally messed up due to the usual traffic and the amount of people getting close the racetrack. We were a couple miles away from the venue when we decided to continue walking as it was impossible to get nearby on a car. We took about 40 minutes walking the 2 miles to the venue, but we arrived at the incorrect gate so we had to make our way to the right one.

We arrived just in time to get a beer, meet up with another friend for a few minutes and to see planes drawing the colors of the Mexican flag in the sky.

First lap, Hamilton got out of the track and back inside, seconds after yellow flag and virtual safety car. Couple of laps with the safety car inside the track until the race restarted, the smell of the burning tires was very noticeable. People were yelling; commentators had an excited tone of voice. I was completely filled with joy being able to see and listen to the race and absorb the whole F1 experience in person.

http://farm6.staticflickr.com/5615/30445060560_68d2f34227_z_d.jpg

In the last couple of laps, my favorite 3 drivers (Verstappen, Vettel and Ricciardo) were fighting to get in the 3rd place points; each of them did actually, two of them for few time due to penalties performed right after the race and after the podium.!

I cannot stop describing how awesome this experience was. It was one of the best things I ever seen and I would recommend that everyone check out an F1 racing event even if you are not into cars or racing at all. You are not attending just for the race but  for the whole event which invites you to embrace the atmosphere and join the big party.

Heroes Of The Storm: One month playing a ‘MOBA’

Yeah, I know. Blizzard says that it is not a MOBA but a “Hero Brawler” even when we probably don’t know what it is just yet. I’ve never been a big fan of MOBAs although I played the mods at Starcraft and then Warcraft III, many time ago. The big odd of this kind of games is play with people that doesn’t know how to play its character or does a worst performance than the rest of the team resulting on a loss. Which also is an advantage when you do a proper team with your friends, which can be incredibly fun.

Blizzard DOTA

For this blog post I gonna start with some history of what a MOBA is and highlight which are the differences between Heroes Of The Storm and the rest of the other games that fall in the category of this genre. MOBAs are characterized for being a kind of game where two teams fight in teams to destroy other enemies with help of weak units that we call minions.

So we know now that MOBAs are based on Blizzard games, at least at the begin,  when IceFrog created his map at Warcraft III and got many attention, then Riot Games released League of Legends at 2009, the same year IceFrog was hired by Steam.

2010: Heroes of Newerth was released and Steam secured the rights for DotA: Allstars, also announced Dota 2.

blizzard-allstars

2012: Blizzard announced Blizzard DOTA, and got into a dispute with Steam for the rights, as they bought DotA-Allstars, LLC. But still Steam owned DOTA trademark and they changed the name to Blizzard Allstars and at last to Heroes Of The Storm.

There are other games in the business besides League of Legends, Heroes of Newerth and Dota 2, like Smite, but this are the most relevant ones.

Generic MOBA Map
Generic MOBA Map

 

Now lets talk about the specifics of Heroes of the Storm.

Here we can spot the first difference between Heroes Of The Storm with other MOBAs, some maps are not like this and don’t even share the same secondary objectives which is get mercenaries and use the map mechanics like coins, skulls, seeds depending on the map.

20140506052946a0ds192ej1csaazy

Talents instead of shop is an interesting thing to mention, in other games you can equip your character with all the stuff you need at the current game, to adapt the character to this exact game. But still, is a mess for a new player to know all the items, know which are the correct ones using a item shop that is way to big and that makes you lose time in-game.

The talents are granted at level 1, 4, 7, 10, 13, 16 and 20 (as far I can remember right now) and this ones can adapt your character to the current situation, increasing  healing, attack and powering other abilities. Bribes for the mercenaries too.

BlackHeartBay_00

As there is no store, there is no gold. So what the minions drop? Experience. The experience is not given to the last hit but to the player (team) that is closer to the dying minion. The level is for all the team, not individual. Some characters are better killing minions, other can stun big groups of other heroes and others which are good at hunting your enemies, almost always, is your choice using talents.

Another difference with another games like this is that is more team oriented as it encourages the players to stick and work together to get the objectives (mercenaries, pay for map mechanics, breaking walls).

The characters are some that the ones that play Blizzard games know, Jim Raynor and Kerrigan of Starcraft, Thrall and Arthas from World of Warcraft, Tyrael and Diablo of Diablo, this with a lot of other characters that will make the game more enjoyable.

After about 100 matches in this last 30 days I can say that I’m very excited about the game and it’s final release, my win ratio has been around 50% so is quiiiiite okay. I wish I could blame my team mates but well, it’s teamwork and it depends on everyone.

My favorite map is by far Cursed Hollow and Haunted Mines where the turn around is always a possibility using map mechanics and the character I been using the most is Jim Raynor. Sadly, I can’t play Hero league just yet as I need a couple more of Heroes but I’m hoping to play it later this week and get rid of bad players which no  experience at all. If anyone is interested on seeing this game, go ahead and look for streams at Twitch and if it happens that my channel is online, subscribe!

Heroes of the Storm

GG.

My top 5 TV shows

TV shows are a huge deal, at least for me. This is mainly because unlike the movies, the TV shows actually can tell a story in a detailed way giving the producers more resources to work with. Due to this, the viewer can know more about the characters and plot.

In my life I’ve watched many TV shows and from all of them, I want to highlight the ones that, at least for me, they were better than the any others.

5. House of Cards

house-of-cards
It is an adaptation of House of Cards that was a BBC mini-series and is based on a novel by Michael Dobbs. It is a political drama which tells the story of Frank Underwood, a democrat that will do everything to get himself into a position of power. The series show the manipulation and pragmatism performed by the main character which is portrayed by Kevin Spacey to accomplish his goals.

One particular thing about this series that they adopted from the BBC series is how Frank U. talks to the audience explaining all the eventualities.

Currently both seasons are available at Netflix and there is a third season coming out next year.

4. Sherlock

sherlock-bbc
Sherlock is a crime drama produced by Sue Vertue for the British television. This TV show tells the story of Sherlock Holmes and his flatmate Dr. Watson and how they solve various mysteries.

The performance of Benedict Cumberbatch and the quality of the filming makes the series very attractive. The adaptation done from the Sir Arthur Conan stories are awesome.

There are 3 seasons, each season have 3 long episodes.

3. Breaking Bad

Breaking Bad
This series tell the story of Walter White, portrayed by the actor Bryan Cranston. Mr. White is a chemistry teacher that once had lots of potential but due to some money issues he had to do some extra work at a car wash.

When he is diagnosed with lung cancer he does everything he can to leave money for his family. Searching an income of money he finds his real passion about cooking crystal meth and a long story develops from there.

The Sopranos has five seasons that are completely enjoyable. During the complete history you can see the transformation of a teacher into the biggest meth cook. There is a prequel in development.

2. The Sopranos

The Sopranos

This is another crime drama! The Sopranos tells the story about Anthony Soprano (James Gandolfini), a mobster of the Italian-American mob based in New Jersey. Tony is a character which has lots of conflicts with his criminal organisation and family duties. These issues are often mentioned during his visits to the psychiatrist.

Also it shows the rivalry with other criminal organisations and how he and his colleagues deal with this problems. This TV show was really well performed to the point where the viewer actually sympathizes with Tony and some other characters.

This show has been rated as the greatest TV shows ever. The Sopranos has 6 seasons and was recorded in a time length of 8 years. The performances of James Gandolfini, Michael Imperioli, Steven Van Zandt, Tony Sirico and Dominic Chianese makes this series superb. It is a really recommended TV show.

1. Game of Thrones

Game of Thrones

Game of Thrones is an adaptation of “A Song of Ice and Fire” created by George R.R. Martin. The story is based on Westeros and Essos which are fantasy locations. The show relates various plot lines which are about some noble houses that are involved in a war for the Iron Throne and the constant threat of war by the northern creatures (called “the Others”) against the living creatures.

I don’t really know how to describe this series without spoiling a chunk story but I can tell that if you like dragons, swords, war and medieval stuff this series will fill your expectations.

Season 4 just finished a couple of weeks ago and the last part of the novel is still unreleased. As any other HBO series the locations and characters are awesome.

George R.R. Martin is involved on the production of the series. Notable actors are Sean Bean and Peter Dinklane which are well known for previous works and several new actors.

So these are the five most awesome TV shows I’ve watched since I can remember. I would highly recommend  any of them. Most can be found at Netflix, Amazon Instant Video or HBO Go. If you know any other show that I haven’t mentioned and is worth watching let me know at the comments.

Recover files after shortcut USB-drive virus

Today I plugged my USB at school and noticed that I had a little but annoying virus that converted all my files into .lnk files. So when I came back home I plugged it to recover my files and format it but then I realised that Windows Defender put the virus in quarantine and made my files “invisible” (couldn’t see it even with show hidden files at Windows Explorer).

The good thing is that this can be easily fixed, but I don’t know if any common user actually knows how. So this is the main reason of this easy pie tutorial.

Open your My PC and see where your USB drive is located (or sdcard, whatever).

usb

Then, just open the Command Prompt and write this (change the drive letter to your own).

cmd

You should be able to see your files now, enjoy.

Why Windows 8.1 is the best desktop operating system

It’s been 18 months since the release of Windows 8 and 6 months since the release of Windows 8.1. But yet, many people are using outdated operating systems.

Windows XP and Windows 7 still have a big user base. The main reason is because they been told that the Windows 8 interface is not friendly.  Some of those people claim that they used it a little and that they didn’t like it. The main reason is the introduction of the “Start Screen” and the removal of the “Start Menu” that has been used from Windows 95 to Windows 7.

So, what are the reasons to upgrade to Windows 8?

Faster startup: Apparently Microsoft started to realize how important it is to get the desktop running as fast as possible.  It’s the first improvement that you notice when you update. They also added an easier way to disable some applications that run at boot from Task Manager. You can disable a few things to make it even faster. My start-up time currently is 7.8 seconds, which is awesome. The time used by Windows 7 can even be the double.

Starcraft looks as it should. It looked really bad on Windows 7. This also happens with other old applications that used to work fine on Windows XP and didn’t work as they were supposed to since Vista.

taed

Windows App Store, some applications may be so useless but we have to admit that some look neat, like Twitter and Netflix. If you have 2 screens or more you will be in love.

netflix-100010107-orig

PC settings is easier for computer illiterates that have used to have a bad time using Control Panel on older versions.

pc

Touch screens are a nice extra. Although this post is about desktop computers, most of the newest notebooks are shipping with a touch screen and Windows 8.1 support is awesome. Just use a Surface and you will know what I’m talking about.

There are lots of bad things about Windows and sometimes I wish I could be using an *NIX shell or using applications like LinkinusTransmit and Sequel Pro from OS X. But Linux and OS X are far from being usable on some work environments because of the lack of professional applications. (Solidworks and Proteus for example).

Starcraft 2 – #1 – Micromanagement

After many months after I said that I would talk about Starcraft, finally, I found a right topic to start, micromanagement.

starcraft2_scr121

What is micromanagement?

Micromanagement relies on getting more juice from your units, which means doing more for less and doing it better. The most important things may be: getting information from your enemy ground, correct unit placement and little but highly mobile engagements with few units avoiding his army. And of course, micromanagement on a battle.

Scouting

Scouting is the most important thing on the game since your strategy will be based on how to defeat your opponent strategy (which means that is also very important to avoid being scouted).

An example of scouting could be looking into your Protoss enemy ground and see a very early Twilight Council, a heavy gas production, a low gate count and probably Chrono Boost on Cybernetics Core. Based on that, anyone should know that getting detection should be a priority. Dark Templars are coming. This early game scouting is essential but you need to do it throughout the whole game to reveal your enemy strategy and act in consequence.

I took this little list from Liquidpedia that describes what an early scout can reveal by seeing just the basics.

  • Proxy: Lack of buildings in base.
  • Cheese: Lack of workers and more unit-producing structures.
  • Double gas: Would indicate a fast tech build.
  • No gas: Usually indicates a fast expand.
  • Structures: The type of unit producing structures will give an indication of what build or what units the opponent will use
  • Placement – the placement of the buildings can indicate if the opponent will turtle or play aggressively.

Scouting will reveal what your opponent haves now and what he will have on the next 5 minutes, at least, as long you know how to read this. This will allow you to get a counter or doing a timing attack.

Each race have a different approach of how to scout on mid/late game more effectively and cheaper. Terrans do buildings, Zergs do overseers and changelings and Protoss have observers and hallucinated phoenixes.

Positioning

While scouting focus on knowing your enemy, positioning is more about how your own army must engage your enemy. This is hard, as your enemy will try to avoid awkward grounds where is possible to set up a concave, this heavily depend on which match are your playing and the map. This video will give you an idea of how important positioning is and how to deal with it on TvT for example.

Positioning can be approached using different techniques depending on your unit composition and how to use ranged units as BroodLords, Tempests and Tanks and also having enough of other units to tank damage and by using terrain. You can also put units as this ones on unreachable places for your enemy. Other terrain techniques are used with units like High Templars, so they can use storm from places without visibility for the enemy while his army goes by. There is a full article about this on Liquidpedia that is a must-read.

Engagement micro

This is more about keeping your units alive and attacking for more time, so they can be repaired/healed/recharged for the next engagement. This can be done on big fights and little ones to get more juice from each unit. An usual kind of micro could be the stalker blink or something very usual (at least for me) wait until the enemy targets the colossus and bring it back, so all enemy units try to get my colossus while his units are being attacked by the rest of the army.

How to get better at micro?

There are lots of games at arcade such as Starcraft Micro Tournament that can be play with your friends and Starcraft Master that allows you to learn the basics and also gives you a new avatar.

Source: Liquidpedia

#RememberSenna

Today, May 1st, is the commemoration of the death of Ayrton Senna, a Brazilian that is better known for being one of the best F1 pilots ever. Senna was born in São Paulo in 1960 and died at the age of 34 in 1994 at Imola, Italy.

ayrton-senna-image

Senna was recognised for being faster than anyone before. He won three F1 championships, 41 Grand Prix,  had 81 podiums and 65 pole positions at the end of 10 years career in the maximum motor sport category.

His qualifying times were insane! He was faster than anyone at the grid. Including his own team mate, Alain Prost. He surpassed all the limits previously known with an innate driving talent.

All the other drivers at the grid were his rivals but also his work partners, his friends, as he demonstrated when he saved Érik Comas after his crash. He was the first to arrive to the crash scene and disregarding his own security ran to help him. He was a winner, as he demonstrated at Brazil. All his fans were shouting his name, wanting him to take his homeland Grand Prix. His McLaren transmission got jammed and was stuck on sixth-gear, but he still amazingly keep the lead from start to finish. He was someone that learned from his mistakes, as seen when he took his first championship by winning six of eight races after his crash at Monaco in 1988.

Lotus-driver-Ayrton-Senna

The main thing is to be yourself and not allow people to disturb you and change you. You have to be yourself, even though many times you make a mistake due to your own personality. You learn, and you must learn through your mistakes and get better.

I believe if you have the ability to focus strongly on something then you have the ability to gain from it. It’s been like that all my life—it’s always been a question of improving. There is no end, as you go through you just keep finding more and more, it’s fascinating. We are made of emotions and we are all looking for emotions—it’s just a question of finding a way to experience them.

– Ayrton Senna

Besides his performance at the sport, his legacy is bigger than that, as he was also knew for being a man of faith, a devout Christian and his philanthropic generosity.

When the Brazil football team won the 1994 World Cup, they dedicated their victory to Senna by holding a banner after winning the finals. The FIA greatly improved the safety to the sport after this, which included improved crash barriers, more safety standards and redesigned tracks.

Many people that have lots of money do philanthropy to have a better image. Senna was different as he really wanted the best for the youth of his country. His family continued his philanthropy work by founding the Ayrton Senna Institute months after his accident.

Ayrton Senna

He will always be a hero to remember for his personality and skills, rest in peace Ayrton.