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

learn more… | top users | synonyms

3
votes
3answers
169 views

Doing actions on a list from the shell

I have a list of packages I want to deinstall. The deinstaller program pkg_deinstall doesn't take a list of packages as parameter to deinstall. How would I deinstall from the list (like a foreach ...
3
votes
2answers
245 views

Mac OS X command-line tools - differences from FreeBSD

As I understand it many Mac OS X command-line tools (like ls, cp, chmod, chown etc.) are imported from FreeBSD. Which version of FreeBSD contains the command-line tools most compatible with the OS X ...
3
votes
4answers
962 views

FreeBSD vs Damn Small Linux for a Really Old Machine?

I am doing this just for fun, I have several more powerful machines at hand but thought it would be cool to resurrect an approximately 14 year old machine with a Pentium II processor. I will have to ...
3
votes
3answers
198 views

Bash port auto upgrading script in cron doesn't work properly?

I've been recently try to write a script to automate checks for new version of ports and software installed on my FreeBSD server. This script is added to root's crontab and fires daily. If I run it ...
3
votes
4answers
4k views

How to apply updates on OpenBSD, NetBSD, and FreeBSD?

I'm using OpenBSD for quite a while now. All I do, however is go from one release to the next, always just doing an update. I configured the system so it works as my router and firewall, and it works ...
3
votes
1answer
144 views

How do I find where a port is?

If I want to find out which directory under /usr/ports contains a port like "gnome-terminal", how can I do that? Is there an easy command? At the moment I use things like echo */gnome-terminal ...
3
votes
2answers
420 views

How do I set a script that it will run on start up in FreeBSD?

I am using FreeBSD 9 and I want to make a script that will check if an Ethernet cable is connected, and if so, connects to it. I want to set it so that it runs whenever the machine starts up, or ...
3
votes
2answers
794 views

Find FreeBSD ports that depend on another port

I have a headless FreeBSD server where some port has installed tons of X11-related packages. I would like to find out what these ports are so I can get rid of the unwanted X-related packages. Is there ...
3
votes
3answers
6k 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 ...
3
votes
1answer
67 views

GCC not runnable on FreeBSD

I'm trying to run GCC on FreeBSD and I get this error: % gcc ar: unrecognized option `--plugin' usage: ar -d [-Tjsvz] archive file ... ar -m [-Tjsvz] archive file ... ar -m ...
3
votes
6answers
5k views

Cloud Server: Which MTA (exim/postfix/etc.) on What OS (Linux/FreeBSD)

My company wants to migrate the current mail server into a Cloud Server Provider. The Provider is the IaaS (Infrastructure as a Service) kind, not SaaS (Software as a Service). That means I have to ...
3
votes
1answer
219 views

How can I stop ssh from trying to create ~/.ssh?

I'm working on an rsync-based backup for a FreeNAS system. Part of the backup process involves logging into the remote system that serves as the backup storage. Whenever I do that, I get the message ...
3
votes
1answer
79 views

Insert a new directory path to PATH in .cshrc file fail

I want to add a additional directory to PATH in .cshrc in my home directory . But after I put the path to it ,It still not working . I don't know what's the problem ... After I add this directory to ...
3
votes
2answers
2k views

Is there an easy way to create a FreeBSD rc script?

I have a FreeBSD jail in which I run a server using the command: /usr/sbin/daemon /path/to/script.py At the moment I have to run this command every time I restart the machine and the jail starts. ...
3
votes
2answers
694 views

FreeBSD kernel nat or natd?

As I notice more often with FreeBSD, there are always plenty of ways that lead to some specific goal. After figuring out which firewall I wanted (I choose ipfw) I now am completely insecure about ...
3
votes
2answers
491 views

Is there an easy way to not log a specific sshd event?

The monitoring tool of my hoster is making regular connections with ssh on port 22 to see or the service is up. This is cluttering my /var/log/messages with this kind of messages: Dec 13 22:20:17 ...
3
votes
1answer
601 views

Allowed and safe characters for ZFS filesystem in FreeBSD

Which characters are allowed and safe for ZFS file system name? Are this characters only ASCII or UTF-8 is supported? '@' is not allowed because it is reserved for snapshots. PS: I play with FreeBSD ...
3
votes
3answers
1k views

How much disk space should be allocated for FreeBSD?

I have a Samsung N150 netbook with 160 GB hard disk. I want to install FreeBSD OS. There will be no other OSs, no dual booting or like that, just FreeBSD. So the manual says to have a separate ...
3
votes
3answers
732 views

Updating FreeBSD 8.0 to 8.1 (methods and policy)

I have 8.0-RELEASE-p4 + few ports installed. I wonder wheather I should update to 8.1. How long is 8.0 supported? How to update the system? I couldn't find anything about it in handbook. SOLUTION ...
3
votes
1answer
53 views

FreeBSD missing PCIIDS

I was trying FreeBSD in VirtualBox and so when I was compiling the VirtualBox guest additions (through ports), I got an error. PCIIDS could not be found on any of the FreeBSD servers, and so, my ...
3
votes
1answer
298 views

Why are devd rules applied before devfs rules?

My problem I have the following lines in /etc/devd.conf which execute the usbhidaction for a /dev/uhid* device with the named vendor and product id. attach 100 { match "vendor" "0x046a"; ...
3
votes
1answer
657 views

FreeBSD or PC-BSD?

After years of Linux I would like to give *BSD a try, but I'm uncertain if I should use FreeBSD or PC-BSD. With KDE out-of-the-box and graphical package-manager and such, PC-BSD strikes me as ...
3
votes
3answers
146 views

Other than /etc/rc.conf what other config files control system services at boot time?

I am still very new to FreeBSD, from what I have learned in manuals, /etc/rc.conf controls system services at boot time. There is no mention of sendmail and syslogd in /etc/rc.conf, so how come they ...
3
votes
2answers
284 views

Verbose shutdown messages

I am using BSD at the moment and think I have an X compatibility problem where my computer doesn't shut down. It can cause problems because I have to turn off the power manually while there is no ...
3
votes
2answers
276 views

Is it possible (and a good idea) to do `pw lock root` on FreeBSD?

I have set up sudo on my FreeBSD server. As I now never want to log in as root anymore, I was wondering whether I should do sudo pw lock root. My questions are: Is this possible, without forever ...
3
votes
2answers
556 views

How to block outgoing connections from process/user on FreeBSD?

My server executes third party software which processes user submitted files. I want to block outgoing connections from my process. How can I do it in FreeBSD?
3
votes
3answers
1k views

FreeBSD 8.1 on MacBook 5,2

I've been trying to dual-boot FreeBSD 8.1 with Mac OS X on my MacBook (5,2), but am having trouble trying to get the live cd to boot. I reach the FreeBSD Boot Loader Screen with the options for boot, ...
3
votes
1answer
467 views

What does 'mergemaster' do that 'make distribution' doesn't?

After calling make installworld (or make world), there are two ways of updating source files in the new world: calling mergemaster -p or make distribution. I know that mergemaster calls make ...
3
votes
1answer
232 views

FreeBSD 10 on VirtualBox not booting into GDM

Instead, I get a plain shell prompt log-in. After logging in, I try gdm start but get this: # gdm start ** (gdm-binary:977): WARNING **: Failed to acquire org.gnome.DisplayManager ** ...
3
votes
1answer
211 views

How does ZFS grow/scale?

I am wondering how would one design a ZFS system to build something that is massively scalable, along the lines of your favorite cloud storage, but with all the neat benefits the come with ZFS. A ...
3
votes
1answer
584 views

Logrotate maually on FreeBSD 8

I am able to rotate any log file manually via logroatate like this: logrotate -f /etc/logrotate.d/my-hourly-file I want to know how to perform the same action on FreeBSD 8? My investigation shows ...
3
votes
2answers
493 views

Does FreeBSD support network virtualization like Crossbow?

Does FreeBSD support network virtualization like Solaris Crossbow? I've tried to follow the VImage links from the FreeBSD wiki page, but the links are mostly dead. If VImage is no longer part of ...
3
votes
1answer
444 views

Network interfaces for Jails

I have been reading over the creation of Jails on FreeBSD, and one stumbling block I have is regarding network interfaces. Say my local router is 10.0.2.1, and the BSD box is 10.0.2.5. I would like ...
3
votes
1answer
443 views

FreeBSD: Remove symlinks in devfs

Background I have been rebuilding a small home NAS. This server represents my first 'real' foray into the world of server administration and it has taught me quite a bit already. Originally, the ...
3
votes
2answers
273 views

FreeBSD zfs timeout errors

I have FreeBSD 8.2 with ZFS v28. 8 cpu core, 16Gb ram. Two disk drives (1.5Tb WD Green) on zfs mirror raid. My system strangely uses memory. With alot of free (wired) memory it start to use swap and ...
3
votes
3answers
888 views

FreeBSD 9 Sound Driver

I installed FreeBSD 9. I'm trying to make a sound to work but no luck. My Sound Card: Realtek ALC898 Can someone help me how to make it to work (I'm creating custom kernel)? Base on FreeBSD ...
3
votes
1answer
613 views

FreeBSD: Stable branch back to release

I'm currently using FreeBSD 8-STABLE, and I'm just a little confused about what I will do when FreeBSD 9 is released. Will I need to change anything in my stable-supfile? How do I go about getting ...
3
votes
3answers
2k views

Installing centos and freebsd with serial console

I am trying to install Centos 5.7 and FreeBSD 8.2 on KVM with serial console access. This is what I used: sudo virt-install -n freebsd -r 1024 --vcpus=2 --os-type unix --accelerate -v --disk ...
3
votes
1answer
493 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
839 views

Install byobu (screen-profiles) on FreeBSD

I've got mostly Ubuntu servers, but have a need for 2 FreeBSD boxes. On all of the Ubuntu systems I've gotten extremely used to having Byobu on top of GNU Screen. I've been trying to figure out how to ...
3
votes
1answer
87 views

Change OS Name from email send by exim

OS: FREEBSD 9 OS ROLE: SERVER MAIL SERVER: EXIM When I send mail from my freebsd server to gmail. and when i click on show original. I shows my os name too along with mta name. as in first line of ...
3
votes
1answer
1k views

Expanding the disk size on pfsense under VMWare ESXi

I've been testing pfsense on ESXi for a while. And now I'm almost running out of space. Currently it holds around 30GB and I would like to expand it to 150GB as I'm planning on installing squid for ...
3
votes
1answer
65 views

What is the correct partition type for a geli-crypted partition on FreeBSD?

I am currently in the process of setting up an encrypted homeserver with zfs and geli. However I am not sure what the correct partition type for geli-crypted filesystems are. Do I just take ...
3
votes
1answer
158 views

Low-level disk access in FreeBSD

I'm developing a utility that needs to do low-level random access of disks (read individual sectors). In Linux I accomplish this by accessing the corresponding block device (e.g. /dev/sda). However, ...
3
votes
1answer
1k views

Obtain device name and mount point if partition label is known

How to obtain the partition device name and mount point when the file system label is known? There are several possibilities: Linux File system label to device name The device name can be obtained ...
3
votes
3answers
2k views

How do I export a folder to a subnet using NFS in FreeBSD 9.0

The following NFS exports file does not work on FreeBSD 9.0. How should I be specifying that I wish to share with the whole subnet? mybox# cat /etc/exports /storage/build ...
3
votes
1answer
352 views

Java on FreeBSD

Is it possible to get the latest Java (Java 7u3 or Java 6u31) on FreeBSD? Everything i found on the internet is outdated. I currently have 6u24 from the packagemanager which works for now but may get ...
3
votes
2answers
503 views

Installing FreeBSD without removable media from CentOS 6

I've been tasked with installing FreeBSD 8 alongside CentOS 6, without the luxury of removable media. CentOS 6 is already on the machine, and running quite nicely. However, I cannot figure out how to ...
3
votes
2answers
141 views

National characters in manpages

I am trying to get a proper display of national characters with FreeBSD man. I have tried running the following on 8.1 and 9.0: # PAGER=less LANG="pl_PL.UTF-8" man -d -M. ./man.1 -- Using ...
3
votes
1answer
394 views

What port range will ipfw nat use for aliasing?

I am using ipfw nat with the following config ipfw -q nat 1 config if em0 Which TCP and UDP ranges will the NAT choose its alias ports from? I would like it to be always from the range 49152–65535, ...