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

learn more… | top users | synonyms

2
votes
1answer
84 views

Change a driver's source code and compile

I have made some little change to if_igb in /usr/src/sys/dev/e1000/if_igb.c. How can I compile only this file and load it to kernel dynamically? I'm using FreeBSD 8.2 Release.
5
votes
1answer
594 views

how to reboot a frozen FreeBSD server from the serial console?

Linux has the "magic sysrq key" to reboot frozen machines remotely, and it works over the serial console, but what about FreeBSD? Is there a way to send a "control-alt-delete" to FreeBSD servers on ...
3
votes
1answer
332 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 ...
2
votes
1answer
398 views

Debian/kfreebsd VirtualBox guest additions

I'm trying and failing to install the virtualbox guest additions for a unstable Debian/kfreebsd virtual machine running in VirtualBox. Without the guest additions, the idle process pegs one of my CPU ...
4
votes
1answer
331 views

How do I update lsof port on FreeBSD 9.2?

It threw errors about kernel sources missing. So, I looked and sure enough this box doesn't have them. The documentation I have says to install them via sysinstall. That failed both automatically ...
4
votes
2answers
2k views

How to install PostgreSQL 9.3 in FreeBSD jail?

I configured virtual NICS using pf, and a jail for FreeBSD using qjail create pgsql-jail 192.168.0.3. When I tried to install PostgreSQL 9.3 using port collection, it shows strange message at first. ...
1
vote
0answers
275 views

How can I use an ACL in BIND to forward requests per zone selectively?

I have some zones declared internally as forwards to another DNS, but there is a hefty amount of IP space we do not want to be forwarded in this manner for these zones. These forwards are for very ...
0
votes
1answer
46 views

User Access Permissions

I have recently taken ownership of a (FreeBSD) FileServer and need to identify which shares users have access to on an individual basis. Is there an easy way to achieve this with a single command?
13
votes
6answers
882 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 ...
0
votes
1answer
115 views

Recover rc.conf in FreeBSD

I'm using FreeBSD 9.1 and I accidentally deleted the file /etc/rc.conf. How can I recover it?
2
votes
0answers
288 views

How to configure Sendmail in a jail to get correct FQDN?

I am building a mail server using FreeBSD 9.1-RELEASE with a jail. On the direct OS, all what I have to do was only adding my domain name to /etc/mail/local-host-names file. Anyway I wanted to run ...
1
vote
1answer
378 views

FreeBSD ipfw keepstate vs setup keep-state

A lot of examples where people are using keep-state with setup together. For example: ipfw add 1 allow tcp from any to me 22 setup keep-state Because of setup, this rule will allow only SYN ...
2
votes
1answer
320 views

NFS mount properties (options) in FreeBSD

I am trying to determine how to examine the actual properties of an NFS mount in FreeBSD. In CentOS (6.4 tested) one can cat /proc/mounts or execute nfsstat -m to determine all of the mount ...
2
votes
0answers
161 views

FreeBSD gettytab configuration

I have a serial port on my system which is named cuau3 under FreeBSD. I want to change the properties of this port, I can change the device's speed using /etc/ttys and /etc/gettytab files, but I can't ...
2
votes
1answer
170 views

bmake error on Mandrive: “bmake: no system rules (sys.mk)”

I'm trying to use bmake to build OS161 on Mandriva. When I try to run bmake, I get the following error: bmake: no system rules (sys.mk) I get the same error, even when I run bmake -m ...
2
votes
0answers
138 views

FreeBSD pf firewall, new connections severly delayed when nating

I have a newly setup fbsd 9.1 with pf, which itself doesn't experience any slowness when for example downloading a debian iso from my local debian repo (ftp.se.debian.org). Any machine behind it, ...
3
votes
1answer
77 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
231 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
2answers
332 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 ...
2
votes
0answers
748 views

Mount MTP device in FreeBSD

I have an Android tablet which uses MTP instead of USB Mass Storage for transferring files. I'd like to mount it in a FreeBSD machine. I tried the method described here. I installed mtpfs by going ...
1
vote
1answer
123 views

Get system notification at a certain time?

Is there a way, in Linux or FreeBSD, to receive notification from system at a specified time? I'm thinking something in like of what inotify in Linux does for filesystem events. There IS a way to ...
0
votes
1answer
132 views

What is the state of new format packages (pkgng) in recent FreeBSD

So, I was searching around with no results about what is the state with new format packages on FreeBSD. As I understand after this spring's security issue package building has been postponed. And they ...
3
votes
4answers
32k 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 ...
0
votes
0answers
79 views

Redundant and Load Balanced storage on FreeBSD?

Back from: Load balanced & Redundant Storage on FreeBSD How do I create a (Redundant and Load Balanced) Storage based on FreeBSD? Storage should be located on (2 or more servers) providing ...
1
vote
1answer
171 views

How do I resolve a “rm: libtoolT: No such file or directory” error?

I'm doing a "portmaster -f" update on a machine just upgraded from FreeBSD 8.3 to 9.1 and am getting a "rm: libtoolT: No such file or directory" error. I see it's something that commonly afflicts ...
1
vote
1answer
60 views

Can I use several pipelines as a argument? [duplicate]

I want to check the difference of two file list one is ls | cut -c 1-4 another is ls | cut -c 1-4 | uniq does there exists any way can let me do like this diff (ls | cut -c 1-4) (ls | cut -c 1-4 | ...
1
vote
1answer
50 views

FreeBSD: Put Server Files on Its Own Partition/Slice

When installing FreeBSD v9, can I specify that a particular partition/slice have /var/www/ as a mount point?
2
votes
1answer
187 views

FreeBSD: Partition with Multiple Mount Points

On the latest FreeBSD installation, how can I make a partition have both /var/ and /tmp/ as a mount point? That is, one partition would contain /var/ and /tmp/. Is that even possible? I know of course ...
0
votes
3answers
1k views

Custom crontab does not work (FreeBSD)

I created file crontab.custom with: */1 * * * * /home/username/data/www/run.sh And run.sh contains: php script.php After this I run this command crontab crontab.custom. Now crontab -l ...
2
votes
1answer
783 views

How to add crontab in FreeBSD

I am trying to add a job to my crontab in FreeBSD but it is not working : I have used this to add the job: sudo crontab -e -u vaibhav @daily /home/vaibhav/applications/comparison/scrapy but it is ...
1
vote
2answers
84 views

startx error doesn't load from terminal

I have installed GNOME v2 in my freebsd but when I try to do startx it gives the following error. Please Help.
4
votes
1answer
304 views

tcpdump don't show src and dst address

I'm having a problem with a tcpdump. The output is: 21:53:53.877873 MPLS (label 266837, exp 0, [S], ttl 255), IP, length: 193 21:53:53.878037 MPLS (label 326819, exp 0, [S], ttl 255), IP, length: ...
5
votes
1answer
1k views

FreeBSD: Can't install Python 2.7

I can't seem to be able to install Python 2.7 on my FreeBSD system. Here is some info: # portsnap update Ports tree is already up to date. Version: # uname -r 7.1-RELEASE Installation: # cd ...
0
votes
2answers
335 views

PF and types of NAT(Network Address Translation)

As you know, at least 3 types of NAT are used. Of course i need to two types of them.DNAT and SNAT. DNAT : hiding server behind NAT, SNAT : hiding your client behind NAT. Question: I read a quick ...
0
votes
2answers
365 views

Guide on how to install FreeBSD on a laptop [closed]

Is there a guide on how to install FreeBSD on a Laptop with some basic GUI elements or a Desktop Manager? Please assist and I know some more people would want to know this.
3
votes
2answers
1k views

daemonize rtorrent

Just read the man page, but found no option for this. Maybe I missed it, maybe it doesn't exist. I have a server at home I'm SSHing to for rtorrent, but the torrent stops downloading and won't restart ...
1
vote
1answer
1k views

Gnome not starting in FreeBSD

I tried to install gnome2 in FreeBSD using the command pkg_add -v -r gnome2. I also edited my file in /etc/rc.conf and added the lines gdm_enable="YES" and gnome_enable="YES" and also added the lines ...
2
votes
4answers
945 views

Process is eating all of the CPU time

Is there any magic command to track down which process is starting this perl task that is eating 100% of CPU time? I have this problem on several machines where JBoss AS is installed.
-1
votes
1answer
307 views

Install GNOME in freebsd

I'm new to FreeBSD it comes with a CLI mode not a graphical interface. How can I install GNOME in FreeBSD. Can I install GNOME by downloading its package from a different machine if its possible and ...
1
vote
3answers
458 views

FreeBSD reboots during install and leaves invalid install

I just downloaded the most recent FreeBSD CD image, and put it in VirtualBox. It looks like it installs fine but then it reboots and boots from the CD image again. When I make it boot from the ...
6
votes
1answer
302 views

Any random password results in successful login on tty

I can login to my machine (FreeBSD 9.1-RELEASE) for any user (for example: root or operator or any that exists in /etc/passwd) with any random password that I type... I tried to reset password for ...
2
votes
2answers
218 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 ...
1
vote
1answer
59 views

Are there any PaxTest for OpenBSD?

Pax: PaX is a process memory protection patch For FreeBSD, there exists a testsuite called PaxTest, is there a PaxTest available for OpenBSD?
0
votes
1answer
396 views

newsyslog.conf logrotate when file is older than 6 month

I would like to delete following files with newsyslog.conf when the files are older than 6 month: # logfile [owner:group] mode count size when flags [/pid_file] ...
4
votes
1answer
139 views

what is the linux boot param “memmap” equivalent in freebsd

In linux kernel, there is an option to reserve a portion of system ram i.e memmap=512M$2G (boot param) Here 512M starting from 2G would be reserved and not available to OS What is the equivalent in ...
2
votes
2answers
948 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 ...
3
votes
1answer
416 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"; ...
1
vote
1answer
94 views

kinit returns error salt type 3 unsupported on FreeBSD 9.1-RELEASE install

When attempting to run kinit to log into a Kerberos V5 realm I get the following error on a default install FreeBSD 9.1-RELEASE kinit: krb5_get_init_creds: salt type 3 not supported Any ideas?
1
vote
2answers
109 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 ...
2
votes
2answers
150 views

quick filter of IP that's causing sendmail DOS under FreeBSD

I've got what appears to be a malicious/spam host that is overloading my Sendmail server causing it to refuse connections to other hosts. I'm overloaded by connections from one particular IP address. ...