I haven't configured my network adapter. I just left it the way it was. It says "Adapter 1: Intel PRO/1000 MT Desktop (Bridged Adapter, Realtek RTL8821C 802.11ac PCIe Adapter)". And 192.168.69 is a unique IP I made up.
You can't do that.
According to your question, the adapter is bridged. In this case, your configuration has to match the physical network that your host is connected to. If you move your host (or VM) to a different network, configuration will have to be updated to match the network it's connected to.
To find what network the host is, you can run ipconfig
in cmd in windows. Note that questions about this is offtopic on AU, and I only include it to help you.
If you set your adapter to NAT, you will not have to update, and you can set the IP's more freely, as Virtualbox will translate for you. NAT has the drawback that you'll have to configure port forwarding to expose any services on the network the host is attached to. This is somewhat more hassle to keep updated, but the nice thing is that your VM will work everywhere, even with static configuration.
Furthermore, I see no reason not to stick with DHCP, in this case, and in general. If you need a static IP, make a reservation in DHCP, or even rely on DDNS to keep DNS in sync with DHCP scopes.
To use DHCP, edit your config to
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-confid.cfg with the following:
# network: {config: disabled}
network:
ethernets:
enp0s3:
dhcp4: true
version: 2
Best Answer
When you type
srf2obj
, the shell checks to see ifsrf2obj
is an alias, a shell function, or (this is what you want to happen) an executable file in one of the directories in your$PATH
, or, if you specify a path to the file (/home/walt/bin/foo
,./srf2obj
) it will try that.If
ls -l srf2obj
shows that it is executable, try typing./srf2obj
. If not, make it executable viachmod +x srf2obj
. If you are going to do this a lot, consider adding this directory to your$PATH
.Or, you could invoke the interpreter directly, thusly:
gawk srf2obj