freebsd

Tools to clone a RHEL or FreeBSD box like SuperDuper does on Mac?

I maintain a couple of boxes that run Mac OS X Server. One of the great things about it is that I can use SuperDuper! to clone volumes. For example, I can take a snapshot of the entire boot volume before I apply software updates, and if something goes horribly wrong I can roll back to the snapshot. Or I can clone to an external drive and...

Open Source Full Disk Encryption for BSD Operating System?

Anyone aware of an open source equivalent to full disk encryption products such as Pointsec (a Cisco product) where the machine won't boot unless a password is supplied? ...

Any experience with SANOS operating system kernel?

I was browsing for an open source kernel when I ran across SANOS which feels like something worth keeping alive as open source. To bring it up to modern standards, the following enhancements need to occur: Support for Multiple CPUs/Cores Add IPv6 (currently only supports IPv4) Ability to run 8192 concurrent threads Ability to support ...

fork in freeBSD unix

Does the fork system call allocate a new user structure for the child process?It does allocate new process structure for the child process. ...

Explain CPU cache paging in FreeBSD, specifically paging queues

FreeBSD implements page coloring with paging queues. The queues are arranged according to the size of the processor’s L1 and L2 caches; and when a new page needs to be allocated, FreeBSD tries to get one that is optimally aligned for the cache. Can somebody please explain the above lines, what is the concept of paging qu...

Apache Refusing Connections

I've recently installed Apache on my FreeBSD machine. All was working fine; telnet via the local machine and http through Firefox on my XP box (connected via my DSL router) were garnering the "It works!" page. Then, I restarted my BSD machine and now neither telnet (through both su and my normal account) nor Firefox are allowed connectio...

Access EIP and EBP via ucontext on OS X

I am trying to port a tool to osx which is designed to run on linux and freebsd. There is a case in the program where access to the EIP and EBP is need. This is done via the ucontext. So i added a case for __APPLE__ to place a suitable access to the ucontext struct. 9887 #if defined(__FreeBSD__) 9888 *paddr = uc->uc_mcontext....

Hardened BSD from Scratch

I am aware of the Hardened Linux from Scratch project which is a project that provides you with step-by-step instructions for building your own customized and hardened Linux system entirely from source. I would like to know what is the equivalent in BSD? ...

How do I compile Perl 5.10 with thread support under FreeBSD 7.1?

I'm trying to compile Perl 5.10 on my FreeBSD 7.1 (BSD) server but when I run the Configure script and answer the questions I get the following error: ...POSTIX threads should be supported by FreeBSD 7.1 ... but your system is missing the shared libc_r. Googling for the answer came up with installing gethostnamadr.c which is fine exce...

Building a custom BSD version that supports only Java

What is the process I should use to accomplish the goal of building a version of FreeBSD that is capable of running a Java VM but not capable of any other functionality including, but not limited to: Running any process other than the Java VM Disabling any/all shell access When the Java VM exits, the OS shuts down I need to support J...

GWT 1.6.4 on FreeBSD?

Anyone have GWT 1.6.4 running on FreeBSD? Our build server is a FreeBSD box, and dies with the following when we try to compile: # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000800d0c724, pid=4749[thread 34370233088 also had an error], tid=0xa02d80 # # Java VM: Diablo Java HotSpot...

Problem porting PHP crypt() function to C#

Hi fellas, Im working on porting some old ALP user accounts to a new ASP.Net solution, and I would like for the users to be able to use their old passwords. However, in order for that to work, I need to be able to compare the old hashes to a newly calculated one, based on a newly typed password. I searched around, and found this as th...

What sample based profiling tool for FreeBSD?

I want to find profiler like vtune or oprofile on FreeBSD. Do you know any similar? ...

Putting the output of a command with interaction inside a variable while using grep in bash

This program I use has it's own variables to set when you run it, so I want to set those variables and then greping the output then storing it inside a variable. However, I don't know how to go about this the correct way. The idea I have doesn't work. The focus is on lines 7 through 14. 1 #!/usr/local/bin/bash 2 source /home/gempak/NA...

Adding stackless threading to BSD Kernel?

IronPort developed a stackless threading model that allows the IronPort appliance to support more than 10,000 simultaneous connections in contrast to the 100 connections supported on a traditional OS. If one wanted to do the same but to make it open source, where should they start? ...

Incorporating I/O driven scheduling into OS Kernel

IronPort developed a high performance file system and an I/O driven scheduler optimized for the asynchronous nature of messaging (hence "Async"OS). If you wanted to do the same but make it open source, what exactly would need to change? ...

Ruby on Rails starts very slowly on FreeBSD

I've been running Ruby on Rails on FreeBSD. It takes 10-20 seconds just to load the environment. Is there anything that I can do to make it load faster, or is FreeBSD just not a good platform for Ruby on Rails? ...

Weird "Bus error" in string::string constructor

I've been testing part of my code responsible for filling multimap object, when a weird error started to pop up: int SetPortName(string ID, string Name) cout << "ID: " << ID << " Name: " << Name; ... } works fine under non-root user in FreeBSD 5.4, but crashes with "Bus error" while ran under root. ...

Specify smtp server for php mail() in freebsd?

I have two dedicated servers, one of which is configured for sending email out (SPF, DKIM, other domain whitelisting methods, etc). I need to send email from both servers, but I want to send mail from both servers through the server that's been set up for it. It doesn't look like I can explicitly set an SMTP server directly in the mail ...

Forcing the order of output fields from cut command

I want to do something like this: cat abcd.txt | cut -f 2,1 and I want the order to be 2 and then 1 in the output. On the machine I am testing (FreeBSD 6), this is not happening (its printing in 1,2 order). Can you tell me how to do this? I know I can always write a shell script to do this reversing, but I am looking for something us...