FreeBSD is a free Unix-like operating system descended from AT&T UNIX via BSD UNIX.

learn more… | top users | synonyms

9
votes
2answers
7k views

ssh port forward to access my home machine from anywhere

http://serverfault.com/questions/303937/how-to-make-freebsd-box-accessible-from-internet I want to understand this whole process of port forwarding. I read so many things but failing to understand ...
17
votes
6answers
2k views

How to 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 ...
28
votes
2answers
13k 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 ...
22
votes
7answers
6k 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 ...
7
votes
4answers
2k 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: ...
8
votes
1answer
3k 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 ...
200
votes
4answers
67k 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 ...
16
votes
3answers
823 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 ...
2
votes
1answer
188 views

Why does `last` show '{' and '|' in the TTY field?

We recently set up a new FreeBSD 7.2 machine on March 11. When looking at last, we noticed some funny characters for the TTY field. What do these characters mean? Note that at this time, the ...
1
vote
1answer
31 views

what does elibc_FreeBSD mean in gentoo portage overlays?

I have a gentoo overlay which has been added to http://gpo.zugaina.org/. One of my ebuilds recMD5 now shows the use flag elibc_FreeBSD even though I didn't add it. I am also running into it for a ...
84
votes
9answers
36k views

Why would someone choose FreeBSD over Linux? [closed]

Why would someone choose FreeBSD over Linux? What are the advantages of FreeBSD compared to Linux? (My shared hosting provider uses FreeBSD.)
7
votes
3answers
7k views

Sharing folder from Windows Host to Freebsd Guest

First of all, let me say that though I use Linux (Red Hat, at work) regularly, I am a complete beginner when it comes to actually administrating it. What I am trying to accomplish: I have (at home) ...
6
votes
2answers
1k views

How can I boot the PC-BSD live DVD-ISO IMAGE directly via GRUB2?

Via the loopback command, GRUB2 allows to directly boot an ISO file. Now, I've configured the according menuentry to boot the PC-BSD Live DVD ISO, but when I try to boot it, the FreeBSD bootstrap ...
18
votes
3answers
3k views

FreeNAS grub2 booting ISO

I've got usb-keys setup to multi-boot different Linux images. I wouldn't mind adding FreeNAS, and there's a doc with samples to add to grub.cfg menuentry "FreeNAS-8.0.4-RELEASE-x64" { insmod ufs2 ...
11
votes
2answers
2k views

Why does FreeBSD use the GPL-licensed GCC?

Why does FreeBSD use GCC as its default compiler? I am under the impression that a core pillar of the FreeBSD philosophy is not to use any GNU software and in particular, GPL code. Yet GCC which is ...
7
votes
7answers
75k views

How can I change the default gateway?

Currently I'm running a FreeBSD 9.1 and the default gateway is already configured in the rc.conf. rc.conf: defaultrouter = "10.0.0.1" But now I want to change the default gateway without rebooting ...
7
votes
1answer
8k views

How do I add PC BSD / FreeBSD to Grub 2 boot loader?

I have Ubuntu 10.04 installed as my primary operating system, and I installed PC BSD in a different partition: /dev/sda4 without installing it's boot loader. I figured out that I need to edit ...
6
votes
3answers
4k views

Host CPU does not scale frequency when KVM guest needs it

I have asked this question on serverfault, but it could also have been posted here. I will synchronise the answers if one is found. Observation: I have an HP server with an AMD dual core CPU (Turion ...
3
votes
2answers
2k views

Load balanced & Redundant Storage on FreeBSD [closed]

Did Google for this the last week, still can't find any reasonable solutions for FreeBSD. Most of the articles contain solutions for a fail-over storage only (FreeBSD HAST). This is NOT what I'm ...
6
votes
1answer
4k views

How can you get console backgrounds for Arch Linux?

I have tested out openSUSE and found that the tty1 is a bit different from other systems as the tty has got a background. I know that Knoppix has a tux penguin for each core the computer has, but I'm ...
5
votes
1answer
6k views

How To create a FreeBSD 10 bootable USB?

Currently I am Using Linux Mint 17 and I want to dual boot FreeBSD and Linux Mint 17. How can I create Bootable USB for FreeBSD 10? I tried Unetbootin, Image writer and powerISO but it's not ...
3
votes
2answers
42 views

How to prevent FreeBSD from disconnecting a drive device?

While accessing a drive with high error rates (as, for example, here for opensuse) in FreeBSD, the system eventually disconnects the drive and it disappears from /dev. This makes it impossible to run ...
3
votes
3answers
9k views

Set up Grub2 to boot Freebsd using either Ubuntu tools or LiveUSB to find what partitions?

I currently have Windows7 and Ubuntu 11.04 (Natty) installed on my computer. I also made a FreeBSD liveUSB (or installer, not sure; just dded their .img to the USB stick) and installed it without ...
1
vote
1answer
9k views

switching from user to root and revers (FreeBSD)

I want to make some modification with root and then with my user, in fact I want to install sudo and he give me the error in the first step: cd /usr/ports/security/sudo make install clean ...
11
votes
2answers
3k views

FreeBSD: “Too many open files” but should be able to open another 160,000 files

I have a FreeBSD 8 system running ZFS, with a MySQL 5.5 server which is about 355GB and projected to grow to be a couple of Terabytes. MySQL is triggering errors about "Too many open files" on ...
7
votes
1answer
7k views

What's the sudo equivalent for FreeBSD?

In pretty much any GNU/Linux distribution you use sudo or su, What's the right choice for FreeBSD 10 ?
7
votes
1answer
3k views

Korn Shell: End, pgup, pgdown, and delete key not working

So basically my End, Pageup/Pagedown, and Delete key are not working in ksh93. I'm running FreeBSD by the way. My arrow keys are working, and so is my home key. Those keys work when I put this in my ...
7
votes
1answer
957 views

Why root's default shell is configured differently with other normal user account's default shell?

As I know, root's default shell is configured csh and normal user's default shell is sh in FreeBSD. And in Ubuntu, root is dash, normal user is bash. (refer: What's the Ubuntu's default shell?) Why ...
4
votes
2answers
648 views

FreeBSD and Windows show different times

In a dual-boot system, I usually use FreeBSD 9 but when I boot to Windows 7 my system time in both OS automatically change and show incorrect time. What's the problem and How can I solve it?
4
votes
1answer
777 views

Routing Tables: What is the effect of the RTF_IFSCOPE flag?

(Related to this question I posted a while ago on apple.stackexchange.) What is the difference between the following two routing table entries: default E.F.G.H UGSc 0 ...
3
votes
1answer
574 views

Cross-compile FreeBSD package as unprivileged user

My goal is to cross-compile binaries from an amd64 FreeBSD host to an armv6 RaspberryPi FreeBSD target. The problem I am running into is I am required to be root in order to make install, where my ...
3
votes
3answers
1k views

FreeBSD and Linux shared partitions

Which directories, and how, can I share between FreeBSD and Linux? In particular, how can I deduplicate respectively /usr/home and /home? I guess directly sharing a partition between both systems ...
3
votes
2answers
309 views

FreeBSD installed package location

I installed Unrealircd on FreeBSD via the sysinstall utility. I cannot seem to find the location where it was installed. How can I find the default location of installed packages? Edit: I found the ...
2
votes
1answer
304 views

How to add a read only group permission to a folder that already has a default group, and have it inherited for all newly created files & folders?

In Windows this is easy. I never fully figured out Linux permissions, I have a directory such as this: /Photos The current ACL permissions are as follows: owner: root - full access group: photos ...
2
votes
2answers
416 views

FreeBSD Base packages

Recently, I've stumbled upon an interesting question about the difference between Linux and FreeBSD (Why would someone choose FreeBSD over Linux?) and found there a link to this site. I've read that ...
2
votes
2answers
2k views

OpenSSH, chroot user: Root needs to own the user directory, is there any consequence?

I want to create an account for my friend on my computer, but I don't want my friend to be able to view all my files. I saw that with OpenSSH, there is an option for that. Inside the SSHD ...
2
votes
1answer
7k views

Mounting ufs partition with read/write permissions on ubuntu 10.04

According to this writeup ufs kernel module is compiled with only read permissions. I could mount a ufs partition with this command: sudo mount -t ufs -r -o ufstype=ufs2 /dev/mapper/loop0p1 ...
1
vote
0answers
60 views

ath0 wi-fi connection breaks

Can't hold wi-fi connection in hostapd mode. Sometimes it's good, sometimes not, yesterday all day wi-fi works, today no chance even to connect. % more /etc/rc.conf wlans_ath0="wlan0" ...
1
vote
1answer
24 views

Is there any dynamically produced .log file showing up the memory usage on FreeBSD?

I am using FreeBSD 10.1-RELEASE and I was just wondering if there is any .log file produced by default from the system because I am using ELK and I want to pass this file to logstash and then ...
1
vote
2answers
124 views

kfreebsd ISO boot to grub menu

Having obtained the kfreebsd ISO image from here, I set up a VirtualBox VM to install from the ISO. When I boot up the VM, the session ends up with the grub menu instead of initializing the ...
1
vote
1answer
262 views

the right way to synchronise sources on freebsd

Update: I'm happy to report @dartonw 's answer worked and I went and did a checkout and then buildworld and it built successfully in about 6 hours. So I've been having some issues with jails in ...
1
vote
1answer
258 views

Hamachi for Web Surfing

I recently installed Hamachi on my FreeBSD 9 and I want to know how can I browse web anonymously by this software?
0
votes
1answer
2k views

Configuring Apache 2.4 for CGI on FreeBSD

I am trying to run CGI on FreeBSD 9.2. I installed Apache 4.2 (pkg install apache42) Configured it to load CGI module. Also, I did chmod a+x on files in cgi-bin directory. And when I connect to ...
0
votes
1answer
850 views

setting up an IRC server on freebsd

ssh port forward to access my home machine from anywhere In continuation to what I've been trying to do, I want to setup an IRC chat server on my freebsd box at home so friends can join that server ...