Deithrian

Deithrian

Linux vs FreeBSD for Phoenix?

I saw that there’s a port for Elixir and Phoenix on FreeBSD.

Why would you want to run a Phoenix project on FreeBSD vs Linux?
Can you share your opinion please?

I’m trying to pick a deployment target and start learning about it.
Since Linux seems to be the default choice for servers, are there any reasons for choosing FreeBSD instead?

First 10 of 73 Posts! Switch mode

NobbZ

NobbZ

As nearly always when it comes to the choice of an operating system, this choice might be driven by many different kind of “arguments”:

  • Personal matter
  • Personal experience
  • Policies of your Employer
  • Policies of your Client
  • Available ressources (there is this machine in that datacenter, which is running FBSD and monitored some internal stuff for the last year which we don’t need anymore, but we could run our new Phoenix-Page on it, but we can’t reinstall due to the fact that it is thousands of miles away)
sashaafm

sashaafm

Like the other people have said, unless you have a very specific reason to use FreeBSD I think it’s best to stick to Linux.

Deithrian

Deithrian

I was actually expecting some big arguments against using BSD, but since there seem to be none, I’ll give it a spin :slight_smile:
It’s going to be an adventure in uncharted waters for me, but I have high hopes that the buzz will be strong :005:

sashaafm

sashaafm

Please do report back :slight_smile:

AstonJ

AstonJ

Why do you want to use FreeBSD @Deithrian? Just curious :stuck_out_tongue:

Deithrian

Deithrian

@AstonJ I have emotional scars from trying to remove a video codec under Linux and watching the entire OS disappear in front of my eyes :icon_eek:
The bloody thing destroyed itself over a video codec…
I know I should read the deps and bla bla, but come on… that’s like uninstalling QuickTime on Windows and watching the uninstaller delete system32 :scream:

And so, BSD seems to be the second obvious choice for servers, plus no emotional scars there yet lol
I also saw a couple of talks on BSD and there’s a good amount of reasons for using it too.

AstonJ

AstonJ

What’s the TLDR/benefits on using FeeBSD (over Linux) @Deithrian?

Don’t you use the minimal Linux installs on your server? We use the minimal CentOS 7 image (minimal system with SSH daemon) on our new servers and just install what we need…

Mandemus

Mandemus

BSD is a port of Unix to the PC.
Linux is a unix-like emulator for the PC.

Splitting of hairs for the most part. /etc/rc.d/* vs inittab, jail vs virtualization, no run levels. In the end though csh works like csh on both platforms.

BSD would be just harder to maintain. Desktop builds such as PCBSD are a far cry from the user experience you get with modern linux distros.

FreeBSD was the mainstay of colocated machines back in the 90’s when everyone was running a DikuMUD. RedHat started making headway around 1999 or so.

Building up Centos minimal installs is what I’ve always done for deployed projects too. However the fact that ‘stable’ means things installed via yum and the Centos repo are a year behind gets aggravating. Often having to build things from source.

For development at home I choose Fedora for this very reason.

AstonJ

AstonJ

Thanks @Mandemus, so basically theres no real benefit and it becomes harder to maintain. I was expecting more. I guess perhaps it ‘might’ be a little more secure since it is not used as much?

Haha I hear you, but the upside is a rock solid system :003: I use Chruby for ruby versions and don’t mind the occasional building from source.

Mandemus

Mandemus

BSD is rock solid and secure. Not through obscurity but It’s having a long pedigree. It is as I said an actual port of AT&T’s System V Unix. Linux is merely a unix inspired workalike.

AIX on IBM Power hardware is prevalent in science and business, OsX on the Macintosh is also BSD.

I wanted to install two ubiquitous things last month. lftp and tmux. Both were like 5 minor versions behind. I run into that constantly with Centos. It makes the repo essentially a worthless exercise in frustration.

I get why they do it, stability. Still while I don’t need almost daily updates like with Fedora, but the way things are the Centos repo is always feeling ancient.

Last Post!

drobban

drobban

Thank you for the tip, will take a look.

Where Next?

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2976 91332 914
New
f0rest8
Hi everyone :waving_hand: Posting here to showcase and announce that Metamorphic is now officially live on a public-facing domain at htt...
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
AstonJ
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
zachdaniel
Introducing AshStorage! Attachment and file management that slots directly into your resources :smiling_face_with_sunglasses: I had hope...
New

We're in Beta

About us Mission Statement