Questions tagged [freebsd]
FreeBSD is an advanced operating system for a variety of architectures. It is derived from BSD, the version of UNIX® developed at the University of California, Berkeley; and is developed and maintained by a large team of individuals. It is a complete Operating System, including the kernel, drivers, and userland utilities such as shells.
1,544
questions
5
votes
3
answers
3k
views
httpready problem on Apache httpd restart on FreeBSD?
I run Apache HTTPD 2.2 on my FreeBSD 7.2 webserver. I have enabled the httpready and dataready in my /boot/loader.conf, like this:
accf_http_load="YES"
accf_data_load="YES"
That works great when the ...
4
votes
8
answers
7k
views
What next after Ubuntu? Arch Linux / FreeBSD / Gentoo [closed]
I have been using Ubuntu, mainly as a production system for a very long time. Fedora Core and Mandrake before that. I am a developer, mostly working over networking core - L3/L4. I wish to graduate to ...
4
votes
6
answers
8k
views
"watching" a log on FreeBSD vs Linux
On Linux systems I can
watch -n1 tail /var/log/whatever.log
or
watch -n1 grep somestuff /var/log/whatever.log
To show updates to a log every 1 seconds.
On FreeBSD however, the watch command does ...
4
votes
13
answers
2k
views
Source based distros vs Prebuilt package based distros
I wonder what is the general preference and where does it come from. Having used FreeBSD actively for a couple of years I'm leaning towards Gentoo, but I've had an unpleasant experience of wasting ...
4
votes
5
answers
57k
views
How to increase /var directory size?
First question:
When I run df -h I can see this:
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad4s1a 9.7G 8.0G 918M 90% /
devfs 1.0K 1.0K 0B ...
4
votes
5
answers
8k
views
Installing and setting up SVN on FreeBSD Server
Firstly thank you to everyone who responded to my earlier question - https://stackoverflow.com/questions/1393827/setting-up-svn-web-based-services-vs-your-own-svn-server
As much as I would prefer to ...
4
votes
2
answers
1k
views
FreeBSD 9 - default file system?
What will the default file system be in FreeBSD 9?
4
votes
6
answers
1k
views
Will Debian (GNU/kFreeBSD) + official ZFS support be a stable configuration?
Looks like Debian 6.0 (Squeeze) will be supporting ZFS via the official GNU/kFreeBSD kernel.
This opens a possibility of converting our Debian GNU/Linux cluster's dedicated NAS server from ...
4
votes
2
answers
971
views
Postfix seems to send spam
I recently discovered this in my postfix-log:
Aug 4 11:09:12 mail postfix/smtpd[71597]: connect from unknown[59.88.35.206]
Aug 4 11:09:14 mail postfix/smtpd[71597]: Anonymous TLS connection ...
4
votes
4
answers
18k
views
How do I update PHP and all its modules on FreeBSD in one go?
Basically, I usually do something like this:
# portsnap fetch
# portsnap update
# portmaster -L | grep -B1 "New version"
===>>> php5-5.2.11
===>>> New version available: ...
4
votes
5
answers
11k
views
ZFS backup advice with another server
I currently have two servers both have the exact same hardware, disks, etc.
One server (server1) is going to be the "main" server. It's basically a server with raidz2 that has SMB shares on it that ...
4
votes
1
answer
3k
views
How can I connect to MySQL remotely and still keep it safe?
As you know, keeping the MySQL port 3306 open is unsafe. However, I would like to use a good MySQL administration program instead of phpMyAdmin, which requires 3306 port to be open.
Of course I can ...
4
votes
1
answer
245
views
Forgotten Root Password FreeBSD - Have sudo accounts
This is a really stupid question. Is there a way of resetting the root users password on my FreeBSD machine? I have a user which has sudo capabilities so I can perform all admin functions.
Thanks.
4
votes
4
answers
12k
views
What is the equivalent in FreeBSD 7.2 to yum/yast/apt-get?
I'm new to the FreeBSD release, but am very familiar with many Linux releases. I'm attempting to (1) keep my system updated, and (2) install new packages under FreeBSD 7.2. So is there an equivalent ...
4
votes
2
answers
14k
views
Create a rule using shell in fresh pfSense installation to open up WAN access to WebConfigurator
I am in a situation where I require WAN access to be opened up to the WebConfigurator through pfSense because I do not have another node connected to the same network to access WebConfigurator from ...
4
votes
2
answers
4k
views
Building one big filesystem with JBOD and ZFS
How to build a really big ZFS filesystem?
The above question is vague in the 1st reading, so more precise.
I know how to build big ZFS volume with one computer. e.g.
get a good computer with ECC ...
4
votes
2
answers
3k
views
Linux alternative for FreeBSD systat tool
I'm looking for a Linux alternative for systat tool that is avalaible only for FreeBSD.
What do you recommend?
4
votes
5
answers
4k
views
Max total files in a directory in FreeBSD 6 ufs?
Is there an upper limit to the total number of files stored in a single subdirectory in FreeBSD 6?
The filesystem is ufs
4
votes
4
answers
589
views
What "FreeBSD for Linux Geeks" Guides Exist? [closed]
I have been using linux for quite some time now, usually Ubuntu these days, but have used Debian and Gentoo too, and have been meaning to get started with FreeBSD for a long time.
While both are very ...
4
votes
1
answer
1k
views
How can I quickly install FreeBSD ports?
I am a Linux system administrator, so my knowledge of the specifics of FreeBSD are very literal, and not very thorough; I've been configuring packages and what not a for a few days now and every one ...
4
votes
2
answers
3k
views
Snmpd update interface counters slowly or something like this
I update one my freebsd box to 9-stable (totally new installation) and install net-snmp for monitoring.
uname -r
9.1-PRERELEASE
pkg_info net-snmp-5.7.1_7
Information for net-snmp-5.7.1_7:
Comment:...
4
votes
3
answers
909
views
What emulator should I use to run Windows as a guest OS on FreeBSD?
What's the best emulator for running windows on FreeBSD as a guest OS?
Any references would be appreciated.
4
votes
1
answer
3k
views
FreeBSD 11 not showing RX,TX packets and counts
I am having a FreeBSD 11 system in which I get the following output for ifconfig command
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<...
4
votes
6
answers
3k
views
Router limits network performance but its CPU load isn't 100%
I'm using a PC Engines APU device running FreeBSD as a NAT router. The setup is very usual: one WAN connection and one LAN connection.
Theoretically, WAN connection is 800/40 Mbit/s and the LAN one ...
4
votes
2
answers
7k
views
Need help grepping postfix log
I'm trying to search for an unknown string (Message ID) in a log based on a known string (recipient address), and then grep the unknown string to output the entire relevant log information. I'm able ...
4
votes
2
answers
12k
views
FreeBSD 10 won't boot to ZFS root after power failure
While installing new hardware today, I involuntarily disconnected the power to one of our servers. This server is running FreeBSD 10 with Root-on-ZFS as offered by the installer.
It has a total of 36 ...
4
votes
1
answer
3k
views
No space left on device - wrong size
I'm running an FreeBSD dedicated server. I am getting messages that I have ran out of space on the device. df -h is saying that I have no space left but du -sh /* doesn't even show the directiories ...
4
votes
2
answers
176
views
executing a command again once it stops (rsync, FreeBSD)
I started doing backups via rsync to a remote server. This works all fine and good but 40 gig take their time and as I get a dynamic IP it gets interrupted every day.
So every morning when I wake up I ...
4
votes
2
answers
6k
views
ZFS RaidZ Import Failure when migrating
So my the USB drive attached to my FreeNas 7 system, went bad so I used the situation as an opportunity to upgrade to FreeNas 8. The problem is now I'm having trouble getting my ZFS to spin up:
[...
4
votes
1
answer
166
views
How do I securly update a *BSD system?
Security is a major concern. Every major Linux distribution uses signed packages. But the FreeBSD systems in the office downloading unsigned packages/ports via FTP.
Is there a solution that would ...
4
votes
3
answers
6k
views
What's the difference between BSD-style and Unix-style command line options?
I tried to google it but to no avail. Can anybody help me with this?
4
votes
3
answers
5k
views
Handling FreeBSD package upgrades using pkg_add
I'm trying to use FreeBSD's pkg_add command to install and upgrade binary packages in a build-once-install-on-multiple-machines sort of scenario. It works well when installing a new package, but ...
4
votes
2
answers
8k
views
Freenas -- Choosing the right redundant storage regime (RAID, ZFS, Rsync?)
I've been running a freenas box for a few months as a proof of concept and all seems to be well now reliability wise. So it's time to up the storage capacity and build it into production mode.
I was ...
4
votes
2
answers
16k
views
Pubkey SSH fails with "we did not send a packet, disable method" in freebsd jail
I have a FreeBSD VPS with 2 jails, each setup with ezjail (I know now that this is largely deprecated, but didn't at the time).
$ jls
JID IP Address Hostname Path
1 ...
4
votes
1
answer
7k
views
How can I recover my ZFS pool, which suddenly went offline and reports that it was "last used by another system"?
tl;dr: I am running a FreeBSD 11.2 NAS server with ZFS on a server with 16GB ECC memory. I've discovered that my main pool has disappeared. ZFS can see the pool, but reports fault ZFS-8000-EY and ...
4
votes
3
answers
1k
views
check if two ZFS filesystems are identical
I would like to verify that two ZFS filesystems (in this case on different pools) are identical. Is there a best practice way to do this?
4
votes
3
answers
3k
views
My terminal returns ;5A;5D;5B;5C whenever I use CTRL+arrow
I'm using CentOS Linux release 7.0.1406 (Core) and I ssh into following system:
$ uname -a
FreeBSD X 9.2-RELEASE-p5 FreeBSD 9.2-RELEASE-p5 #0 r265974: Wed May 14 07:57:04 PDT 2014 root@X:/usr/obj/...
4
votes
2
answers
4k
views
Shared object "libarchive.so.5" not found, required by "pkg"
I just updated my FreeBSD from 9.x to 10.0 (using freebsd-update) and now my pkg isn't working.
# pkg
Shared object "libarchive.so.5" not found, required by "pkg"
#
I know I can use pkg-static ...
4
votes
1
answer
12k
views
Custom PHPINIDir setting in VirtualHost affecting other VirtualHosts
One of the clients requested a personal php.ini configuration for his website, so I have set his VirtualHost as follows:
<VirtualHost *:80>
DocumentRoot "/home/alex/www.domain.tld"
...
4
votes
3
answers
7k
views
How to install Java JRE on FreeBSD with as few dependencies as possible
I've been trying to get Java working on my FreeBSD 7.1 server. I just want the runtime, since the JDK drags all kinds of unnecessary dependencies with it, and I just need it to run a jar file ...
4
votes
1
answer
2k
views
How to correctly escape single quotes in AWK
It isn't clear exactly what more needs to be escaped in the following macro to allow it to be used with awk or sed on FreeBSD.
define(`RELAY_MAILER_ARGS', `TCP $h 2525')dnl
Here is an awk command ...
4
votes
1
answer
17k
views
SSLProtocol: Illegal protocol 'TLSv1.2'
I'm using FreeBSD 9.2-RELEASE with apache24-2.4.10_2 package.
[root@alexus ~]# uname -a
FreeBSD alexus.org 9.2-RELEASE-p5 FreeBSD 9.2-RELEASE-p5 #0 r265974: Wed May 14 07:57:04 PDT 2014 root@jj3....
4
votes
1
answer
2k
views
Executing a command on link state change in freebsd
In freebsd when a cable gets plugged/unplugged the following lines are written to dmesg buffer:
em0: link state changed to DOWN
em0: link state changed to UP
I would like to run a script when either ...
4
votes
1
answer
1k
views
routing table vs PF precendence
I am wondering when a packet reaches an interface and I have some PF rules, which gets checked first, the routing table or the ruleset?
ext_if = "em0"
int_if = "em1"
localnet = $int_if:network
...
4
votes
2
answers
5k
views
top process state column under FreeBSD
When running top interactively, I can see various words in the state column :
nanslp, biord, select, uwait, lockf, pause, kqread, piperd, sbwait ...
Some like nanslp or kqread are self explanatory, ...
4
votes
1
answer
1k
views
How can i view the disk latency of a ZFS pool, or of the disks in it?
I'm using FreeBSD. I would like to write a munin plugin to log it, but i don't understand how to get this data.
4
votes
1
answer
228
views
Is it safe to install several apps from ports at the same time?
Can multiple make installs cause problems for the package system?
For example:
cd /usr/ports/*/nmap && make install
cd /usr/ports/*/firefox && make install
4
votes
3
answers
2k
views
FreeBSD 32bit to 64bit migration
I need to transfer my FreeBSD 7.0 i386 server to another hosting. I would like to also upgrade to the 64bit version (to eliminate 4GB memory limit). The server has common open source software: apache2,...
4
votes
1
answer
5k
views
How to understand the "SIZE" output of the command top on FreeBSD
I am working on a VPS with 512 of RAM, I installed mysql, run the command top and found that the value of SIZE for mysql is 638M:
last pid: 2023; load averages: 0.17, 0.19, 0.21 ...
4
votes
2
answers
3k
views
Shellshock - "pkg upgrade bash" doesn't update bash to latest 4.3.25
I'm using FreeBSD-9.1-p5.
My security run output:
Checking for packages with security vulnerabilities:
Database fetched: Wed Sep 24 23:01:24 EDT 2014
bash-4.3.24
pkg info bash:
# pkg info bash
...