<< All Posts
Testing FreeBSD DigitalOcean Droplet


Hello there!

Today I’m gonna share with you a simple test I did this weekend in order to test a FreeBSD Server running at DigitalOcean.

First, there is no problem to start your Droplet. I’m not gonna teach you how to do that. It’s absolutely easy.

First tip. How to connect into your server using SSH? In ubuntu server, you can just do ssh root@YOUR_IP right? In freebsd this is the syntax:

ssh freebsd@YOUR_SERVER_IP

Let’s see some information:

freebsd@freebsd-512mb-nyc3-01:~ % uname -a;id

FreeBSD freebsd-512mb-nyc3-01 10.2-RELEASE FreeBSD 10.2-RELEASE #0 
r286666: Wed Aug 12 15:26:37 UTC 2015     
[email protected]:/usr/obj/usr/src/sys/GENERIC  amd64
uid=1001(freebsd) gid=1001(freebsd) groups=1001(freebsd),0(wheel)

How to install htop?

sudo pkg install htop

Where is our vim?

sudo pkg install vim

Now lets download my vim dotfiles. To do this, we’ll need git!

sudo pkg install git

And then:

cd ~
git clone https://github.com/rodolfobandeira/dotfiles.git .dotfiles
cd .dotfiles
./install.sh

Now, lets change the default SSH port 22 for something else:

sudo vim /etc/ssh/sshd_config

Change the line Port, no really? yes

sudo /etc/rc.d/sshd reload

Want to install Nginx?

sudo pkg install nginx

sudo nginx

Then go to the browser and type the IP of your server. You can get the IP with:

ifconfig vtnet0 | grep "inet " | awk '{ print $2 }' | head -n 1

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

Thats it. Not a big deal using FreeBSD nowadays.

Thanks!



<< All Posts

rodolfo.io

🇧🇷 🇨🇦
Runs on OpenBSD 🐡