Freebsd for the very first time reddit / freebsd ---------------------------------------------------------------------- prxvvy · 2022-04-25 13:11 Hello Im recently considering switching from arch linux to freebsd because I got bored of linux and i want to learn and try something new, but Ive got a few doubts about freebsd. I use linux for programing only. Will i be able to get all the development tools i have in linux in freebsd? Is freebsd faster than linux? why? anything thay runs on linux will also do in freebsd? Is freebsd a type of rolling release system like arch linux? I ask this because i want to have latest package versions without my system breaking Can i get nvidia property drivers in freebsd? Or any other non-free driver Do jetbrains ides work on freebsd? Which iso do i have to download? I want the latest one without being a testing one how do pkg package manager and ports work Thx beforehand ---------------------------------------------------------------------- sysbits · 2022-04-25 13:30 The major difference you are going to notice with FreeBSD is the documentation, and update cycle. Overtime you will notice the lack of updates is nice. The FreeBSD attitude is not to recreate the wheel, just keep the wheel in good shape and running smooth. Id suggest you start here [https://docs.freebsd.org/en/books/handbook/ ](https://docs.freebsd.org/en/books/handbook/) . The FreeBSD handbook will be your best friend. Also check out [https://www.freshports.org/](https://www.freshports.org/) for all the software packages available. **pkg** can install pre-packaged software bundles. `pkg install xorg` **Ports** are useful when you can live 1M+ years and need to fine tune installation, like done on Arch Linux. `cd /usr/ports/x11/xorg/ && make install clean` Both install xorg, but the packaged version can lag a little behind. Read DEEP into the handbook. It will be extremely beneficial. I also recommend u/vermaden's blog [https://vermaden.wordpress.com/](https://vermaden.wordpress.com/) u/robonuggie's 100% FreeBSD Youtube channel [https://www.youtube.com/r obonuggie](https://www.youtube.com/robonuggie) ---------------------------------------------------------------------- vermaden · 2022-04-25 13:59 > Will i be able to get all the development tools i have in linux in freebsd? Most for sure. Name them. > Is freebsd faster than linux? why? Sometimes faster. Sometimes slower. > anything thay runs on linux will also do in freebsd? FreeBSD can run unmodified Linux binaries but most software it ported and runs on FreeBSD natively > Is freebsd a type of rolling release system like arch linux? I ask this because i want to have latest package versions without my system breaking You can use FreeBSD STABLE branch which is the same as rolling Arch. You can also stick to RELEASEs if that is what you prefer. > Can i get nvidia property drivers in freebsd? Or any other non-free driver Yes. Official binary driver from NVIDIA works. > Do jetbrains ides work on freebsd? No idea. Sorry. > Which iso do i have to download? I want the latest one without being a testing one 13.1-RC5 (this will be changed into 13.1-RELEASE within week I believe) > how do pkg package manager and ports work They work great! :) Packages are generally built Ports. You can use only pkg(8) packages without compiling in Ports. You can compile everything like in Gentoo. You can also mix packages with occasional compilation - but that is tricky and generally not recommended if you do now know what you are doing. Some things that you may find useful: - https://vermaden.wordpress.com/2020/09/07/quare-freebsd/ - https://vermaden.wordpress.com/2019/01/17/less-known-pkg8-features/ Regards. ---------------------------------------------------------------------- prxvvy · 2022-04-25 14:12 >Most for sure. Name them. cmake, make, gcc, clang, gdb, valgrind, python, nodejs and vim ---------------------------------------------------------------------- apearsonio · 2022-04-25 14:29 Here's a good place to search for ports/pkgs https://www.freshports.org/devel/cmake/ ---------------------------------------------------------------------- fbmluas · 2022-04-25 14:35 > You can use FreeBSD STABLE branch which is the same as rolling arch Am I dumb or did you mean -CURRENT? ---------------------------------------------------------------------- fbmluas · 2022-04-25 14:37 Those are all available. Clang and make are in the base system. ---------------------------------------------------------------------- vermaden · 2022-04-25 14:40 Currently there are: - CURRENT (HEAD) which will become 14.0 at some point - STABLE which will become 13.2-RELEASE (13.1-RELEASE will be released within week) - RELEASE which is currently at 13.1-RC5 stage and 13.1-RELEASE around the corner More here: - https://i.imgur.com/wsaa55f.png - https://i.imgur.com/rYdzTPw.png Hope that helps. ---------------------------------------------------------------------- vermaden · 2022-04-25 14:41 All of them are available natively on FreeBSD. Typing `make` you probably mean GNU make - this one is available as `gmake`. The `make` on FreeBSD is reserved/used by BSD `make`. ---------------------------------------------------------------------- prxvvy · 2022-04-25 14:41 ty for answers guys, one more question, does freebsd include unnecessary preinstalled programs? ---------------------------------------------------------------------- vermaden · 2022-04-25 14:42 Yes. It comes with `sendmail(8)` in base (joking) :> ---------------------------------------------------------------------- fbmluas · 2022-04-25 14:47 That’s kind of subjective no? (This is true of every system) A vast majority of the programs that come with an operating system aren’t technically needed for using the operating system. ---------------------------------------------------------------------- 404-does-not-exist · 2022-04-25 14:52 Jetbrains IDE's do indeed work. You can search freshports.org to check if other things are available or not. ---------------------------------------------------------------------- matyklug · 2022-04-25 15:30 I am a new user who is trying FreeBSD after using Linux for 4 years: Most likely It depends, I haven't noticed any changes nor did I extensively benchmark anything. No, but a lot of software is ported, and there is linuxator which is like wine for Linux based on my understanding It's not rolling afaik I am actually not sure, I only tested on an AMD iGPU They *should*, intellij for example seems to be in repos/ports. I myself am on CURRENT because of my GPU driver, but people seem to recommend RELEASE. Check out the handbook. Tl;dr: ``` \# pkg install firefox ``` (ignore the backslash, blame reddit) installs Firefox. ---------------------------------------------------------------------- Captainsmirnof · 2022-04-25 17:03 Those will al run natively (without using linux compatibility layer) as mentioned before, gnu make can be installed as gmake, freebsd uses bsd make (i'm not even sure about the differences myself, but apparently there are) Also freebsd comes pretty much as barebones as it gets by default, no bloat. I use both arch linux and freebsd on different machines ---------------------------------------------------------------------- kraileth · 2022-04-25 18:38 Most of your questions have already been answered by others. When it comes to the last one, let me point you to an article series. I wrote it a couple of years ago for newcomers who want to get familiar with packages and ports (one of FreeBSD's strong points): [Package Management with Pkg (1/2)](https://eerielinux.wordpress.com/2017/08/30/freebsd-package- management-with-pkg-12/) [Package Management with Pkg (2/2)](https://eerielinux.wordpress.com/2017/09/10/freebsd-package- management-with-pkg-22/) [Building Software from Ports (1/2)](https://eerielinux.wordpress.com/2017/09/20/freebsd-building- software-from-ports-12/) [Building Software from Ports (2/2)](https://eerielinux.wordpress.com/2017/10/15/freebsd-building- software-from-ports-22/) They are not perfectly up to date but still work as an introduction. Also please mind that if you play around with ports you should do that an a test system. Building directly on the host machine of course still works but will clutter your machine with build-time dependencies among other things. There are cleaner ways (which I've written about, too), but to use those it helps to already understand the basics. In general it's not that difficult to switch from Arch to FreeBSD (I've been an Archer, too, before I started using FreeBSD on my workstations). Definitely do take a look at the documentation. It's part of the BSD culture to take it very seriously. Especially if you're developer, you will enjoy it. ---------------------------------------------------------------------- prxvvy · 2022-04-25 18:56 nice, which one do you spend more time on? arch oe freebsd? or which one do you prefer to work ---------------------------------------------------------------------- -kilix- · 2022-04-25 19:12 Don't worry too much, you'll love FreeBSD, especially if you want to learn. I come from arch too and it was not very difficult. The most difficult part is to ditch the Linux way of thinking about googling stuff. In FreeBSD you check the handbook first. You also check the manpages. Then you Google, but be sure to check the date of the article, you may do more harm than good with outdated guides. Also, check Vermadens' outstanding guides and don't be afraid to ask here or on the FreeBSD forums. FreeBSD boots slower than Linux, but runs equally well, I can't really tell. FreeBSD and its' release system can be tuned. The system itself is separate from the packages and it's good. You can have "rolling release" (we dont call it that here) with 'latest' package branch if you wish so. ---------------------------------------------------------------------- kraileth · 2022-04-25 19:22 Having used Arch a couple of years privately, I chose to also install that on my workstation when I took the job that I still have (we have a "use what you like best" policy). Several of our servers ran FreeBSD and after not quite understanding things at first, I soon liked what I found there. Since I learn best when I daily drive something I decided to do a challenge: Doing a fresh backup of my main machine and just installing FreeBSD without much preparation (actually it was TrueOS, a graphical FreeBSD-based system that no longer exists). It was tough at the beginning, but much of the troubles were due to TrueOS being in alpha state at that time with quite a bit of breakage (one should not underestimate how fast you can learn under such circumstances, though!). After about three months I gave up and returned to Arch. But during that time I had fallen in love with ZFS and had grown a lot of appreciation for how FreeBSD is designed. When I had my home directory inaccessible for the third time in a few weeks due to the ZFS kernel module not working after an update, I installed GhostBSD and it was fantastic. Eventually I outgrew it and began using vanilla FreeBSD with my custom setup of a tiling WM and my preferred software only. Arch survived for quite a while at work while I had switched at home. However eventually I switched at work, too. Now I'm doing everything with FreeBSD (truth be told, I have a Linux VM for a couple of tasks like accessing older Supermicro IPMIs which I could never get to work otherwise - and the VM is running Arch of course). It's not perfect but fits my needs better than everything that I used before. ---------------------------------------------------------------------- bugamn · 2022-04-25 19:30 >Ports are useful when you can live 1M+ years and need to fine tune installation, like done on Arch Linux Aren't ports more like Gentoo, in that you need to compile everything, than Arch, which uses pre-compiled packages (even if it has tools to easily compile your own packages) ---------------------------------------------------------------------- implicitpharmakoi · 2022-04-25 20:11 It has a base Unix system and very little more. Doesn't come standard with bash if that tells you anything. ---------------------------------------------------------------------- grahamperrin · 2022-04-25 20:58 > suggest you start here https://docs.freebsd.org/en/books/handbook/ . Better (not limited to the Handbook): * [Resources for Newbies | The FreeBSD Project](https://www.freebsd.org/projects/newbies/) ---------------------------------------------------------------------- grahamperrin · 2022-04-25 21:07 > … Is freebsd a type of rolling release system like arch linux? I ask this because i want to have latest package versions ### Packages Typically a choice between two (for your chosen platform and version of FreeBSD): * latest * quarterly. ### Boot environments > without my system breaking … If you choose ZFS when installing, then make good use of boot environments (i.e. create, activate then boot a new boot environment (BE) before any update or upgrade), it'll be easy to work around any breakage: * activate then boot the previous environment. > Which iso do i have to download? I want the latest one without being a testing one. * FreeBSD 13.0-RELEASE. ---------------------------------------------------------------------- grahamperrin · 2022-04-25 21:19 Hi, > … You can use FreeBSD STABLE branch It's not clear from , but `STABLE` branches are for testing. is a slightly better introduction, although the third of the three paragraphs seems wrong (I'll make a bug report; there should be no direction to use 11.3, which is dead). On one hand: * `STABLE` does not fit the "without being a testing one" requirement given by /u/prxvvy in the opening post. On the other hand: * with sane use of boot environments, test-oriented builds of FreeBSD should not be scary – . Critically: * `CURRENT` and `STABLE` are currently **more difficult to update** (than alphas, betas, release candidates and RELEASE), so I hesitate before recommending `STABLE`, or `CURRENT`, to a newcomer. > … Official binary driver from NVIDIA works. As far as I know, it's recommended to use the *port of* the driver (not the driver from NVIDIA). Sleep/wake (suspend/resume) can fail in some cases, and so on. > … 13.1-RC5 Not yet available. > … (this will be changed into 13.1-RELEASE within week I believe) Builds of RELEASE will not begin before Thursday 5th May. [FreeBSD 13.1 Release Process | The FreeBSD Project](https://www.freebsd.org/releases/13.1R/schedule/) [FreeBSD release engineering | The FreeBSD Forums](https://forums.freebsd.org/threads/freebsd-release- engineering.83057/) page 2 … ---------------------------------------------------------------------- grahamperrin · 2022-04-25 21:24 ### Hardware > … I use linux for programing only. … Notebook computer, or desktop? (From , I can't guess.) If you can describe the hardware (make and model, graphics cards and so on), it'll help us to tell: * whether FreeBSD is capable of booting the computer * whether to expect any problem with graphics, sleep, wake and so on. ---------------------------------------------------------------------- grahamperrin · 2022-04-25 21:38 ### Graphics: DRM > … I myself am on CURRENT because of my GPU driver, … You should find that [graphics/drm-devel- kmod](https://www.freshports.org/graphics/drm-devel-kmod/) is usable with FreeBSD 13.1-RC4. Re: *packages* of drm-devel-kmod for 13.⋯, please see for example today's . ---------------------------------------------------------------------- vermaden · 2022-04-25 21:58 > STABLE Both STABLE and CURRENT are test/development branches. The development generally happens in CURRENT branch. If something is useful in STABLE then it gets MFC (Merge from CURRENT) into STABLE. STABLE is a lot safer (while more up to date then RELEASE) then CURRENT. CURRENT is minefield with sometimes quite big changes. > As far as I know, it's recommended to use the port of the driver (not the driver from NVIDIA). The FreeBSD package is nothing more then a built port. Its pointless to compile it if package is available. But I agree that its better to use nvidia package instead of binaries directly from Nvidia page. > Sleep/wake (suspend/resume) can fail in some cases, and so on. Like on Linux, Windows and macOS. But generally works really well. > 13.1-RC5 > Not yet available. You are right. RC4 is currently available. I thought that RC5 is already released. Regards. ---------------------------------------------------------------------- vermaden · 2022-04-25 21:59 Also about that 'rolling release' ... it may be useful to use FreeBSD from here for STABLE and CURRENT so you will get binary updates without the need for compilation: https://up.bsd.lv/ ---------------------------------------------------------------------- grahamperrin · 2022-04-25 22:09 +1 > The FreeBSD package is nothing more then a built port. Sure :-) I tried to avoid saying >> the package of *the port of* the driver (not the driver from NVIDIA) (I use the word *port* quite loosely, as in FreshPorts, which includes much information about packages.) Re: STABLE, I added more to my previous comment. Thanks again ---------------------------------------------------------------------- RemyJe · 2022-04-25 22:14 Gentoo's Portage system was inspired by the FreeBSD Ports system, so...yes. :) ---------------------------------------------------------------------- grahamperrin · 2022-04-25 22:40 > https://up.bsd.lv/ Proof of concept ended in July 2021 (please see the uppermost bullet point under **News**). At a glance: all the installers are very outdated, and so on. Instead: is probably the best-known (and maintained) source for PkgBase stuff. Discussion: * [PkgBase | The FreeBSD Forums](https://forums.freebsd.org/threads/pkgbase.79917/) ---------------------------------------------------------------------- grahamperrin · 2022-04-25 22:42 > … the third of the three paragraphs seems wrong … FreeBSD bug [263571 – FAQ: CURRENT, STABLE RELEASE: corrections, updates and enhancement](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263571) ---------------------------------------------------------------------- grahamperrin · 2022-04-25 22:47 > CURRENT (HEAD) which will become 14.0 at some point Nit (sorry): 14.0 *is* CURRENT. ---------------------------------------------------------------------- grahamperrin · 2022-04-25 23:00 Sorry, > … CURRENT is minefield … In my experience – everyday use of `CURRENT` for years – that's **far** too harsh a description. For me, it's almost completely rock-solid. YMMV. A year ago, someone described `CURRENT` as [broken by design](https://forums.freebsd.org/posts/503347) – a statement that's way beyond *milage may vary*, it's just [false](https://forums.freebsd.org/posts/554247). As a side note, the official FreeBSD Forums (linked there) are awful, sometimes. ---------------------------------------------------------------------- grahamperrin · 2022-04-25 23:03 +1 > to search ---------------------------------------------------------------------- grahamperrin · 2022-04-25 23:17 > unnecessary preinstalled programs? Yes: [vi\(1\)](https://www.freebsd.org/cgi/man.cgi?query=vi&sektion=1& manpath=FreeBSD) * I'm a nanoman * eleven days after [my most recent encounter with vi](https://forums.freebsd.org/profile-posts/3854/), I wonder whether I'm still suffering from SUPPRESSED **RAGE** ;-) [What is your favorite text editor? | The FreeBSD Forums](https://forums.freebsd.org/threads/what-is-your-favorite-text- editor.64315/) ---------------------------------------------------------------------- grahamperrin · 2022-04-25 23:59 ### Linuxulator > anything thay runs on linux will also do in freebsd? No. Some software *for Linux* is impossible, or unreasonably difficult, to run on FreeBSD. The Linuxulator is great, but not a panacea. I sometimes use Linux in Oracle VM VirtualBox; [emulators/virtualbox- ose](https://www.freshports.org/emulators/virtualbox-ose/). [Linuxulator - FreeBSD Wiki](https://wiki.freebsd.org/Linuxulator) [FreeBSD Quickstart Guide for Linux® Users | FreeBSD Documentation Portal](https://docs.freebsd.org/en/articles/linux-users/) Historic: [Linux® emulation in FreeBSD | FreeBSD Documentation Portal](https://docs.freebsd.org/en/articles/linux-emulation/) ---------------------------------------------------------------------- OtherJohnGray · 2022-04-26 00:22 I just installed the NVIDIA version on 13-RELEASE two days ago. If I just install the pkg version, will that overwrite it? Or do I need to do something else as well? ---------------------------------------------------------------------- OtherJohnGray · 2022-04-26 00:33 I’ve just switched and am loving it. I hear that laptop WIFI drivers can be an issue for some though? ---------------------------------------------------------------------- grahamperrin · 2022-04-26 02:39 > the NVIDIA version Which version, exactly? ---------------------------------------------------------------------- grahamperrin · 2022-04-26 02:40 > laptop WIFI drivers can be an issue Work in progress, for example: ---------------------------------------------------------------------- OtherJohnGray · 2022-04-26 04:03 NVIDIA-FreeBSD-x86\_64-510.60.02 From https://www.nvidia.com/Download/driverResults.aspx/187164/en-us ---------------------------------------------------------------------- RandomXUsr · 2022-04-26 04:38 This is the most helpful FreeBSD thread I've ever seen, because all of my questions were answered in one thread. Thanks to the OP and everyone that answered. ---------------------------------------------------------------------- rodrigo975 · 2022-04-26 06:36 just to complete u/vermaden's answer: >Is freebsd faster than linux? why? It depends on the metrics you are looking at. Just keep in mind that big companies such as Netflix or Sony uses FreeBSD for their products. You can read more about that on the FreeBSD foundation website [https: //freebsdfoundation.org/freebsd/](https://freebsdfoundation.org/freebs d/) >Is freebsd a type of rolling release system like arch linux? I ask this because i want to have latest package versions without my system breaking FreeBSD don't release packages the same way linux does. Every [supported version of FreeBSD](https://www.freebsd.org/security/#sup) has access to the same/latest version of packages, and usually the OS version upgrade is not required to keep you packages up-to-date. >Do jetbrains ides work on freebsd? Yes, see ports. Some FreeBSD committed uses Jetbrain products on FreeBSD >Which iso do i have to download? I want the latest one without being a testing one You can start by having a look at out [Handbook](https://docs.freebsd.org/en/books/handbook/bsdinstall/) You can start by installing the last release, then from time to time perform upgrades to apply fixes and security patches. As said, if you install a supported version, you have access to the same packages. ---------------------------------------------------------------------- matyklug · 2022-04-26 16:05 It failed to compile, saying it only supports STABLE or CURRENT, so I updated to CURRENT. Now it somewhat works. That was a few months ago tho. ---------------------------------------------------------------------- prxvvy · 2022-04-27 00:47 update: I installed freebsd but since ive got a laptop it couldn't find my wireless interface somehow, so no wifi, any solution? Im on a tty. sysctl net.wlan.devices returns nothing ---------------------------------------------------------------------- vermaden · 2022-04-27 08:05 There is a chance that you have a WiFi chipset not yet supported by FreeBSD. You can get a tiny USB dongle for about $3.00 like that one to overcome that limitation: - https://vermaden.wordpress.com/2020/10/30/realtek-usb-wifi-review/ ... or **TP-Link TL-WN823N** for 300Mbps but its little larger. Other suggestions: - https://gist.github.com/grahamperrin/0d6cca0e463c5fdc089e84ed442e214c ---------------------------------------------------------------------- grahamperrin · 2022-04-27 18:41 > It failed to compile, saying it only supports STABLE or CURRENT, With which version of FreeBSD exactly, did failure occur? No problem here with 13.1-RC4: https://i.imgur.com/PJNud2S.png ---------------------------------------------------------------------- matyklug · 2022-04-27 20:36 13.1, weird. It explicitly said that it only supports CURRENT or STABLE, Not RELEASE, so I installed CURRENT and it worked. ---------------------------------------------------------------------- prxvvy · 2022-04-27 21:12 uodate: My wifi chipset (iwlwifi) s indeed not supported in freebsd 13.0 but in 13.1rc4. So i finally successfully installed freebsd, thanks to everyone that gave their contrib you guys were so nice, pretty good community ---------------------------------------------------------------------- grahamperrin · 2022-04-28 02:20 > It explicitly said that it only supports CURRENT or STABLE, Not RELEASE, … Yeah, that's probably misleading (outdated). Certainly the description of the port is outdated: * FreeBSD bug [260074 – graphics/drm-devel-kmod package description: wrong correspondence, and no expression of compatibility with stable/13](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260074)