Skip to main content

How to setup a static ip address for ubuntu server 16.04 | VM

so you downloaded this linux debian based distro installed it in a VM(let's say oracleVM) set everything up you try to connect to it from your own computer (for example you try to ssh to the ip address) but you can't connect to it, you start troubleshooting and then you start giving up and just google it.
Photo by Markus Spiske on Unsplash
to do that you'll need two things access to your actual modem and the VM settings and follw the instructions below:
  1. open your VM
  2. right click your ubuntu distro
  3. choose settings
  4. and then choose network
  5. enable you your network adapter if it's not enabled by default
  6. in the "Attached to" options menu choose "Bridge adapter
we are not done yet, boot to your ubuntu and login and type "ifconfig"
you'll see your ip similar to your modems ip a bit let's say my modem's ip is '192.168.1.1' and the ubuntu server running the VM is '192.168.1.41'.
Now we need to reserve the ip address so that it never changes except in one condition changing your modem.
  1. type your modem's ip
  2. login
  3. go to local network(just a quick note that you have to figure out the settings on your or google it if your modem is not like mine/ mine is dlink dsl-2750u)
  4. scroll all the way down to dhcp reservation list
  5. click add
  6. enter your server's name
  7. the ip address you found by typing "ifconfig"
  8. and then the mac address for your VM
you should be good to go and do all your without any more headaches caused by these static ip addresses.
video:

Comments

Popular posts from this blog

Udacity Machine learning intro| lesson two solutions

Do you think a horse is acerouse or non-acerouse: A: non-acerouse supervised classification examples: A1: form an album of tagged photos, recognize someone in a picture + A2: given someone's music choices and a bunch of features of that music(tempo, genre, etc) recommend a new song features  visualization: A: she likes those classification by eye: A: unclear speed scatterplot: Grade and bumpiness: A: smooth, flat speed scaterplot 2: A: medium, very steep speed scaterplot 3: A: bad flat from scatterplot to predictions: A: more like this   from scatterplot to predictions 2: A: unclear from scatterplot to decision surfaces: A:Red cross A good linear decision surface: A: the line that is going between the blue and red GussianNB Deployment on terrain data: select the GussianNb.py file(this one will be a bit tricky) and past this under the defined function:     clf = GaussianNB()     clf.fit(features_train, labels_tr...

Introduction | HTML

you've probably heard or somehow know about HTML it's the most popular markup language, its use is a most for any start up/professional project/company because they will always need to somehow share their services or their thoughts on the web on their own platform where they almost full control over it so they start looking for web developers like you(maybe?) to design and maintain the look and the feel of it and have better customer reactions. Photo by Sai Kiran Anagani on Unsplash while the web is going crazy right now as usual I'll try to somehow teach you the very basics of web development. let's start, shall we? Next

How to reverse a string in less than four lines of code | javascript

Today I was solving my first algorithm challenge at FreeCodeCamp and I managed to solve from MDN web docs . Here is the script: function reverseString(str) {   var str = str.split('').reverse().join('');   return str; } reverseString("hello"); to preserve non-BMP codepoints mixed with unicode code points (emoji, etc). read here  Link P.S: don't try to do this while your variables are declared as const it won't work :)