Author Archives: Mike

Windows 10 + WSL + Cmder + neofetch = <3

Sometimes we have no choice of what operating system we have to run in our work environments. Many of us stick to our old ways using putty or cygwin to get by. I wanted something more so I went looking and this is what I have come up with. Multiple tabbed terminal sessions and all your native linux options at your fingers tips in windows with a little added rice. ūüėČ

First you want to install WSL and a flavor of Ubuntu from the Windows store. Once we have our ubuntu environment ready, lets update it. Launch it and run the following commands:

sudo apt-get update && apt-get upgrade

Then you will want to install neofetch in our Ubuntu environment. Follow the correct instructions for your version of Ubuntu installed.

Conemu seems to do something weird with the title display in neofetch so lets fix that first.


neofetch
vi ~/.config/neofetch/config.conf

Add the following above info title
info line_break
:wq!

Now we need to set our distro logo and set it to run on launch.

vi ~/.bash_aliases
alias neofetch2="neofetch \
--ascii_distro windows10 \
--line_wrap off \
--bold on \
--uptime_shorthand on
"
:wq!

vi ~/.bashrc

At the very bottom of the file add the following:

cd ~
neofetch2
:wq!

Now lets wrap this up by configuring cmder. Download and extract the latest version of cmder from here. Run cmder, once open right click on the top bar and select settings. Change your default startup task to {WSL:bash} and save your settings. The end result will look like the image at the top of this post.

-Mike

DHCP Troubleshooting & Wireshark

The other day I needed to do some DHCP troubleshooting. I have yet to learn all that tcpdump can do (I know it can do this filtering as well), so I at this time do most of my filtering in wireshark. icon-WireShark

Say you are looking for just the packets pertaining to one particular mac address. You can view these by using the following wireshark filter:

bootp.hw.mac_addr == 00:aa:bb:cc:dd:ee

I have found this to be very useful when I am trying to debug issues client devices maybe having or looking at the dhcp options being sent to a dhcp server.

VB.Net Hexadecimal/Binary to Integer

752I needed a way the other day to convert a few hexadecimal and binary addresses to integers. I figured I would share what I found. Below you will find the way to convert to and from arbitrary bases in vb.net.

-Mike

 

Binary to Integer

Replace “binary” with the binary number.

Convert.ToInt32(binary, 2)
 

Hexadecimal to Integer

Replace “hex” with the¬†hexadecimal code.

Convert.ToInt32(hex, 16)
 

Welcome to iBeta.org

Here I will blog about the random things related to technology and other items that I get into as time progresses. I hope that here I can share things that I know or learn on my journeys that may help others with similar interests. If you like what you read, please share and help me grow the site further. Feel free to comment and let me know your thoughts on particular articles and if you have anything to share please do so!

-Mike