Getting online on a fresh FreeBSD install

No, I will not believe anyone saying they had never run into certain problems. Here are my little reminders.

No network after having booted into your newly installed FreeBSD?
Check the contents of your /etc/resolv.conf file (dammit, now I used Tab and expected this text-editor to complete both /et... and res.. - this says something about how easy it is, getting used to the shell's autocomplete function :}) by typing

ee /etc/resolv.conf
and see what it says about the nameserver-related stuff.
If you find f.eks.
#nameserver 192.168.01
- then just uncomment it by deleting the # from the start.
(If you see nothing, you might use a very lame and amateur solution - if you have another online machine in your environment, check its resolvconf analogue to find out your nameserver. Most often, it's going to be 192.168.01 or something-)

If you see nothing else in this file than this single word

search
- then add the name of your router to it. For example:
search ethereallink
(assuming "ethereallink" is the name identifying yer router).

This works on FreeBSD and DragonFly too!
Oh yeah, I have to comment on ee - Easy Editor - being a blessing that comes with every FreeBSD - and DragonFly BSD - install. The name speaks for itself. Even if you are still offline - and so, cannot install nano or any other comfortable editor AND you aren't a Vi(m)-wizard either -, you can edit yer config files in ee easily!
/off

If you - finally - got online, but attempting to download packages by

pkg install -y yerpackage
(feel free to type -y if you don't want senseless conversations with pkg telling you how much space will be used, and wishing to know if you really want to get that package.
In pkg-ish, -y means "don't ask me anything, just install it!")
- but still get some hysterical comments about "operation timed out" - then you need to use your new friend ee again, this time, to open
usr/local/etc/pkg.conf
Here, check the
FETCH_RETRY
line, feel free to change it to a higher value than the default 3. Also, check the line
FETCH_TIMEOUT
and increase the value of it from the default 30 to something higher. At least, I changed it to 200, and could download and install packages thereafter!
This is a very beginner-kind of info, but I think it can be important and might make the life of any newbeginner FreeBSD-fan a bit easier.