Questions tagged [freebsd]
FreeBSD is a free Unix-based operating system descended from AT&T UNIX via BSD UNIX.
155
questions
61
votes
7
answers
22k
views
How can I achieve portability with sed -i (in-place editing)?
I'm writing shell scripts for my server, which is a shared hosting running FreeBSD. I also want to be able to test them locally, on my PC running Linux. Hence, I'm trying to write them in a portable ...
37
votes
3
answers
4k
views
Why don't shell builtins have proper man pages?
All shell builtins share the same manual page:
BUILTIN(1) BSD General Commands Manual BUILTIN(1)
NAME
builtin, !
etc.
Then there is a little text describing what ...
34
votes
3
answers
62k
views
ssh port forward to access my home machine from anywhere
I'm coming from this question: https://superuser.com/questions/359799/how-to-make-freebsd-box-accessible-from-internet
I want to understand this whole process of port forwarding.
I read so many things,...
19
votes
2
answers
7k
views
Linux Source Routing, Strong End System Model / Strong Host Model?
Can a multihomed Linux machine implement a true Strong ES Model?
###Specific Use Case
I have a system with five different interfaces, each connected to the same subnet, thus the same gateway to the ...
44
votes
3
answers
30k
views
Where does Mac OS X come from?
Discussing with Mac owners, I got several versions of where Mac OS X comes from. It is known to have some root in BSD, but how much, and where?
Some say that Mac OS X has a FreeBSD kernel, with all ...
10
votes
2
answers
2k
views
grep strange behaviour with single letter words
I am removing stop words from a text, roughly using this
code
I have the following
$ cat file
file
types
extensions
$ cat stopwords
i
file
types
grep -vwFf stopwords file
I am expecting the ...
4
votes
2
answers
2k
views
BSD sed: Replace only the Nth occurrence of a pattern
Using BSD sed;
How can I perform the following substitution?:
Before:
hello hello hello
hello hello hello
After:
hello world hello
hello hello hello
In other words; how can I replace only the ...
10
votes
1
answer
10k
views
Use or convert .ttf font for console use in FreeBSD
I have a monospace .ttf font I really like (UbuntuBeta Mono). Is there any way I can use it (or convert first and then use, if needed) for the console in freeBSD?
I know there is usr/share/syscons/...
5
votes
1
answer
2k
views
Using native 1366 x 768 resolution in a Lenovo Ideapad
I have a Lenovo Ideapad 100S 14'' IBR-14'' Intel Celeron CPU N3060 @ 1.60GHz, 32GB SSD, 4GB RAM, based in the Broadwell chipset, running FreeBSD 12.0.
I have been trying to configure xorg to use the ...
254
votes
4
answers
96k
views
Why is FreeBSD deprecating GCC in favor of Clang/LLVM?
So I was surfing the net and stumbled upon this article. It basically states that FreeBSD, starting from Version 10 and above will deprecate GCC in favor of Clang/LLVM.
From what I have seen around ...
35
votes
7
answers
33k
views
How can I use DD to migrate data from an old drive to a new drive?
I am upgrading the internal SATA hard drive on my laptop from a 40G drive to a 160G drive. I have a Linux/Ubuntu desktop which has a SATA card. I would actually like to do the same thing for a couple ...
10
votes
7
answers
36k
views
Add FreeBSD to GRUB2 boot menu
I have Gentoo x64 installed with Grub2 on my MBR drive. Today I installed FreeBSD x64 9.2.
Now I'm in Gentoo and trying to add FreeBSD to grub2 menu list.
grub2-install /dev/sda
os-prober
grub2-...
9
votes
1
answer
9k
views
Correct location for piping and redirecting output in find -exec?
I'm using find with the -exec option in console, on FreeBSD (for example, find . -exec sha1 {} \;).
How do I correctly place (and if needed, escape) redirect and other execution control symbols that ...
53
votes
4
answers
43k
views
Where in "/" should extra permanent disks be mounted?
According to Wikipedia
http://en.wikipedia.org/wiki/Unix_directory_structure
http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
extra disks should not be mounted in /mnt/ according to the ...
8
votes
4
answers
7k
views
How to debug SSH port forwarding
This is an extension to ssh port forward to access my home machine from anywhere
I tried things mentioned there but I am not able to ssh to my machine.
Netgear router settings for port forwarding:
...