I recently ran out of disk space on a drive on a FreeBSD server. I truncated the file that was causing problems but I'm not seeing the change reflected when running df. When I run du -d0 on the partition it shows the correct value. Is there any way to force this information to be updated? What is causing the output here to be differe...
I'm setting up an web application with a FreeBSD PostgreSQL back-end. I'm looking for some database performance optimization tool/technique. Does someone know one?
...
It's not just a capture I'm looking to do here. I want to first capture the packet, then in real time, check the payload for specific data, remove it, inject a signature and reinject the packet into the stack to be sent on as before.
I had a read of the ipfw divert sockets using IPFW and it looks very promising. What about examples in m...
Tools like 'ps' and 'top' report various kinds of memory usages, such as the VM size and the Resident Set Size. However, none of those are the "real" memory usage:
Program code is shared between multiple instances of the same program.
Shared library program code is shared between all processes that use that library.
Some apps fork off ...
What is the average time that it would take a complete novice, whose background is mostly Windows XP, to go through the FreeBSD handbook and get sufficient mastery to setup a server from the ground up?
...
What does it mean when it gives a backtrace with the following output?
#0 0x00000008009c991c in pthread_testcancel () from /lib/libpthread.so.2
#1 0x00000008009b8120 in sigaction () from /lib/libpthread.so.2
#2 0x00000008009c211a in pthread_mutexattr_init () from /lib/libpthread.so.2
#3 0x0000000000000000 in ?? ()
The program has ...
Hello,
I have a FreeBSD box with Bash set up.
I'm used to Debian Linux where my command history is automatically saved when I log out, so that when I log back in I can press up or Ctrl-R or whatever and have access to my history.
How do I set up Bash to do this on FreeBSD?
...
I'm working on an assigned group project at University where we have to re-implement the TCP/IP stack to support some extra stuff (http://discolab.rutgers.edu/mtcp/), and then demonstrate it.
The thesis/design we're working from says the original researchers changed the sourcecode for FreeBSD to support the extra bits and bobs.
We've g...
I know that lots of web hosting providers are offering FreeBSD, but how good is FreeBSD as a development platform?
Specifically, is Java 1.6 available in it?
Is there somthing specific that it offers with regard to tools that is not available under Linux?
...
I have a script that constantly segfaults - the problem that I can't solve as segfault is in python libxml bindings - didn't write those. Ok, so in Linux I used to run an inf.loop so that when script dies - it restarts, like so:
#!/bin/bash
while [ 1 ]
do
nice -n 19 python server.py
sleep 1
done
Well, I can't seem to find /bin/bash in...
Is there a way in FreeBSD to (being root) run a command as unprivileged user, like nobody? Kind of like reverse of sudo. Oh and considering that 'nobody' has /usr/sbin/nologin as shell - so su is not an option.
...
If i need to find out the size of a tcp packet on BSD.....what do we need to do?
Is there some utility which allows for this?
...
What are some alternatives to make for linux/freebsd?
...
When I run rake gems:build with hpricot 0.6.164 on my FreeBSD server I get:
Error: Failed to build gem native extension.
/user/localbin/ruby18 extconf.rb gems:build RB_USER_INSTALL
checking for main() in -lc... yes
creating Makefile
make
make install
/usr/bin/install -c -o root -g wheel -m 0755 hpricot_scan.so /u...
I have some old perl code which recently stopped working on a FreeBSD box. The code which fails looks (in simplest form) like this:
#!/usr/local/bin/perl -w
use strict;
use DBI;
my $datasource = "DBI:mysql:dbname:hostname.domain.com";
my $user = "username";
my $pass = "password";
DBI->connect($datasource, $user, $pass);
This fails...
I'm looking to build a server with lots of tiny files delivered by an XML API. It won't be doing a whole lot of iterating over directories or blocks of sequential files--we're talking lots and lots of seeks for discontinuous data.
Will seek time on BSD UFS degrade over time for requests for individual files? I understand that the files...
From time to time, a file that I'm interested in is modified by some process. I need to find out which process is modifying this file. Using lsof will not work, nor does kqueue. Is this possible under FreeBSD and Linux?
...
I have tried to make backup cron job on my webserver running FreeBSD. Currently it looks something like this:
/usr/local/bin/mysqldump --opt --single-transaction --comments --dump-date --no-autocommit --all-databases --result-file=/var/backups/mysql/all.sql
It works fine when I run it as root (since root has a .my.cnf with the use...
I need to access the Serial Ports with Java in Windows Vista and FreebSD
is there any third party Solution to do that?
I understand Sun doesn't have a solution for that
...
As the title says, does any Unix-like system ascribe a meaning to the SUID bit on a directory, and if so, what does it mean?
The SVTX (saved text, or sticky) bit has a meaning - thou shalt not delete a file from this directory unless you can write to the file. It is used on /tmp, for example.
The SGID (set GID) bit has a meaning - fil...