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.

Filter by
Sorted by
Tagged with
2 votes
3 answers
22k views

FreeBSD default MySQL basedir, port, etc., for my.cnf

I'm working on a FreeBSD 9.2 server and have run mysqltuner.pl to check the memory and cache needs of MySQL. Now I need to add a my.cnf file to FreeBSD so it uses that instead of the auto cnf file. I ...
markratledge's user avatar
2 votes
2 answers
2k views

Best way to upgrade FreeBSD with non generic kernel (XENHVM)

Since manually upgrading from source (cvsup) is deprecated and the recommendation is to use freebsd-update: What's the best way to upgrade (e.g. 9.1 to 9.2) while keeping a non-generic (XENHVM) ...
northox's user avatar
  • 187
2 votes
2 answers
1k views

Cannot create zpool, how to get rid of intel raid volume?

This is a FreeBSD 9.1 amd64 computer. It has 5 disks installed. The ada0 and ada1 disks are used with a hw raid to provide the root filesystem: root@gw:/home/gandalf # ls /dev | grep ada ada0 ada1 ...
nagylzs's user avatar
  • 809
2 votes
6 answers
6k views

freebsd creating a script to check if service is active and start the service if not

Here's the deal: I'm running a freebsd webserver with apache solr on a jetty every now and then ( few times a month ) jetty quits and I have to restart it by typing: service jetty start I'm kinda ...
FLY's user avatar
  • 159
2 votes
4 answers
523 views

Uninstall last n of ports/packages

While compiling some port, I realized that it depends on 1000+ of other ports and will install forever until I die or my disk is full (my hdd is really small). I interrupted make install clean. How ...
Alex G's user avatar
  • 207
2 votes
3 answers
2k views

FreeBSD rc.d script doesn't work when starting up

I am trying to write a rc.d script to startup the fastcgi-mono-server4 on FreeBSD when the computer starts up - in order to run it with nginx. The script works when I execute it while being logged in ...
kastermester's user avatar
2 votes
2 answers
8k views

How to chroot VirtualHosts on a Apache server?

I have a FreeBSD server (company's OS of choice). Currently we run several websites on each of the webservers. Websites are in PHP which is run in Apache Module mode. At the Apache is not chrooted so ...
Michal M's user avatar
  • 319
2 votes
3 answers
4k views

Why is it necessary to set a netmask of 255.255.255.255 for “alias” addresses in FreeBSD?

From FreeBSD handbook on the topic of virtual hosts: For a given interface, there must be one address which correctly represents the network's netmask. Any other addresses which fall within ...
Eugene Yarmash's user avatar
2 votes
1 answer
471 views

Migrating from IPv4 to IPv6 with three WAN, 1 LAN

I'm in a bind right now. Here I got this wonderful thing called Google, but I am stumped for resources that will allow me to better develop my basic desire. I run the internet for a local special ...
Autumn's user avatar
  • 179
2 votes
5 answers
7k views

System-wide bashrc on FreeBSD

On linux there's usually a global bashrc file (/etc/bash.bashrc or /etc/bashrc). On FreeBSD however bash doesn't seem to support this feature. What's the best way to add a system-wide bashrc then?
Eugene Yarmash's user avatar
2 votes
1 answer
2k views

Dell "identify server" light in FreeBSD?

Does anyone know of a way to turn on the identification light on a Dell rack-mount server. This is the light which you can switch on locally by pushing the (i) button on the front of the server which ...
Jack M.'s user avatar
  • 803
2 votes
2 answers
1k views

FreeBSD's sendmail

-bash-3.2# hostname name.foo.bar.domain.tld -bash-3.2# whenever I send an email it leaves as [email protected], I need to have sendmail change it to [email protected] how do I do that?...
alexus's user avatar
  • 13.4k
2 votes
4 answers
4k views

How to install DHCP server on FreeBSD 7.2?

I have a clean install of FreeBSD 7.2-RELEASE. I want to install a simple DHCP server for a few windows computers. But, unfortunately, following don't work: pkg_add -r isc-dhcp3-server Error is: "...
grigoryvp's user avatar
  • 3,795
2 votes
4 answers
5k views

Option 82 and dhcpd. "No free leases" for second computer

There is DHCP server in network (isc-dhcpd-server-3.0 on FreeBSD 7.2) than gives one IP per switch port to every user via Option 82 The problem appears when user disconnects one of his computers and ...
SaveTheRbtz's user avatar
  • 5,751
2 votes
2 answers
767 views

What's your suggested mail server configuration for a FreeBSD server?

What would be your suggestion if installing a FreeBSD 7 (7.2, actually) email server? I am interested in: SMTP agent Imap/Pop backend Authentication (OS users, OpenLDAP) Anti-Spam server side tools ...
Pablo Santa Cruz's user avatar
2 votes
2 answers
22k views

SERVERFAIL error while doing nslookup on server itself. FreeBSD

I am using FreeBSD to setup a DNS server. I have install BIND and setup everything in resolv.conf and named.conf file. This is the ip address of my DNS server 192.168.10.100. in resolv.conf I added ...
Riley Willow's user avatar
2 votes
2 answers
9k views

How to get the attached disk size on FreeBSD

When I attach a disk to FreeBSD I can list any attached disks by doing: [root@freenas] ~# sysctl kern.disks kern.disks: xbd2 xbd1 ada0 [root@freenas] ~# How can I then find out the size of each ...
Phil's user avatar
  • 265
2 votes
1 answer
6k views

BIND 9 : rndc reload has no effect

I'm running a BIND 9.10.2 port on FreeBSD 10 in a jailed configuration, and I'm having a problem that rndc reload does not pick up any (primary master) zone file changes, even though the SOA serial is ...
rustyx's user avatar
  • 1,757
2 votes
1 answer
10k views

“Unknown host machine name.” on FreeBSD + unixODBC + FreeTDS

I got some issues connecting to a Microsoft SQL Server 2012 from my FreeBSD 10.1 server. I installed FreeTDS and unixODBC via ports. I compiled FreeTDS with unixODBC support. This ist my freetds.conf:...
user avatar
2 votes
1 answer
2k views

File name too long mount_nfs

I have a FreeBSD Vagrant box that looks like this: # -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "...
Peter Souter's user avatar
2 votes
2 answers
4k views

Can't boot FreeBSD 10 iso by PXE

I'm trying to boot FreeBSD 10 bootonly iso from with pxelinux and tftp, unfortunately the following error appears during freebsd boot: cd9660 :/dev/iso9660 error :/dev/iso9660/FREEBSD_INSTALL ...
Artem Zhirkov's user avatar
2 votes
1 answer
3k views

FreeBSD's pkg "No trusted fingerprint found matching package's certificate"

I just installed FreeBSD 10 and trying to get pkg going, but something isn't working: # uname -a FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap....
alexus's user avatar
  • 13.4k
2 votes
3 answers
8k views

ssh-copy-id in one line with password, possible?

I'm trying to setup an automated script in Ansible to set a new server, and i'm using ssh-copy-id to add the Ansible master server to the new server's authorized ssh keys. I created a script which ...
shaharmor's user avatar
  • 337
2 votes
1 answer
818 views

How can the root password on FreeBSD 9.1 be changed for the system for the purposes of root logins?

I've never encountered this before when using FreeBSD, but I recently got a new BSD VPS, and when I logged in as a wheel user and su to root, I used "passwd" to change the root password, but this only ...
tony_perkis666's user avatar
2 votes
1 answer
152 views

Having a ball re-selecting PHP make config settings...FreeBSD

I am installing PHP 5.3 and having accidentally hit enter when selecting options failed to enable a module. After the installation make no longer gives me options but continues with saved options. ...
Andisian's user avatar
2 votes
1 answer
1k views

FreeBSD 9 unattended installation: how to perform?

That is, like you do with kickstart on Redhat or autoyast in SuSE or jumpstart in Solaris? The OS docs do not seem to answer that simple question.
badbishop's user avatar
  • 928
2 votes
1 answer
630 views

Why is ZFS replication single threaded?

On my 8 core NAS I see only one core maxed out when ZFS replication over SSH is running. I would expect that transferring a snapshot would scale perfectly with the number or cores, as the snapshot ...
Sandra's user avatar
  • 10.5k
2 votes
2 answers
667 views

Internal traffic card and external traffic cards on the same server... how to configure?

This might sound like a noob question, but here is what I have to configure: FreeBSD 1 server with 2 network cards 1 network card for internal IP addresses (5 of them) 1 network card for external IP ...
Fabrizio's user avatar
2 votes
2 answers
1k views

FreeBSD jails access

I want to run an application inside jail so that allowed users can only connect to the jailed environment (application) and nothing else on my box. But they need to be able to connect to the jail ...
hari's user avatar
  • 270
2 votes
2 answers
2k views

start-stop-daemon freebsd

Have a line in sh script starting service from rc.d start-stop-daemon --quiet --start --background --chuid "$USER" --exec /usr/local/bin/env -- $ARGS RETVAL=$? it returns /etc/rc.d/spat: start-stop-...
dima.h's user avatar
  • 145
2 votes
1 answer
409 views

Scripting GNU Screen sessions

I have a couple of VM images that I run on a regular basis on my FreeBSD 9.0 fileserver. I have scripts written that start them with my desired settings (startUbuntuVM and startWindowsVM). I would ...
javanix's user avatar
  • 247
2 votes
1 answer
5k views

Error creating new slice using gpart on FreeBSD

The virtual hard disk of one of my VPS has been enlarged, and I want to create a new ZFS slice using the extra space, but I couldn't be able to perform that. # gpart add -s 10G -t freebsd-zfs da0 ...
Lang Hai's user avatar
2 votes
4 answers
1k views

Is SASL not supported in Postfix on FreeBSD?

I'm managing a mail server that was set up on FreeBSD that runs Postfix and Dovecot. When I type postconf -a, nothing is returned. As I understand it, this command should tell me if SASL is supported ...
devnill's user avatar
  • 307
2 votes
2 answers
1k views

KVM: how to confirm does kvm uses kvm-kernel-module?

This can sound a little bit paranoid but I really have a doubt that my configured libvirt+kvm uses any hardware acceleration in debian. I setuped it with this guide. in fact i've checked already, kvm-...
holms's user avatar
  • 1,584
2 votes
2 answers
3k views

FreeBSD: how can I make "top" not cut off commands?

I use top in a perl script for storing information about the system in DB. The actual command is: top -b -d1 -a all However the COMMAND field seems to be 60 chars max and everything else is cut off. ...
Eugene Yarmash's user avatar
2 votes
2 answers
6k views

'pargs' command in FreeBSD or Linux

What's the FreeBSD (or Linux) equivalent to the 'pargs' command, available in Solaris? Many times I want to know what are the environment variables for a given process space, with no help from these ...
anderson's user avatar
  • 301
2 votes
1 answer
2k views

Find the source of malware?

I have a server that was running an older version of lighttpd (1.4.19 on a freebsd 6.2-RELEASE (yea, old) machine) and google alerted me that it had found malware embedded on one of my server's pages. ...
jps's user avatar
  • 123
2 votes
1 answer
445 views

BSD route(8) MAN page bug

http://www.freebsd.org/cgi/man.cgi?query=route Route is a utility used to manually manipulate the network routing tables. It normally is not needed, as a system routing table management ...
Mark Henderson's user avatar
2 votes
4 answers
322 views

What should a computer science student include/run on his first server to learn the most?

A group of us CompSci students are trying to get our first server up and running. We're gonna try and install FreeBSD on this box. Would be great if you can suggest utilities/packages we should ...
user37315's user avatar
  • 121
2 votes
1 answer
2k views

Creating pflog interface

I'm attempting to create a pflog interface using ifconfig so I can log to more than one file and when I attempt to execute the following command I get this error. I'm attempting this on a vanilla ...
kernelPanic's user avatar
2 votes
4 answers
1k views

Monitorable Inter-company Messaging and XMPP Server on FreeBSD

We are looking to give access to some of our employees to chat with each other - however we are worried about them abusing the privilege and chatting we friends outside work. We have decided to deploy ...
Chance's user avatar
  • 450
2 votes
1 answer
2k views

Running Shell Script without a Password Prompt

I have a shell script that runs on a freebsd OS. the script has some commands that needs the sudo privileges Im excuting the script remotley and it's skipping the sudo commands i tried the following : ...
ossama assaghir's user avatar
2 votes
2 answers
2k views

Relatively new WD Red Pro yielding ATA status: 41 (DRDY ERR), error: 40 (UNC ) on FreeBSD 12.2

I am running a TrueNAS server based on FreeBSD 12.2. I migrated the storage to 10 TB WD Red Pro. They're running for 42 days now. Out of the sudden, during a ZFS scrub, one of the disks yielded 5 ...
Peit's user avatar
  • 131
2 votes
1 answer
115 views

FreeBSD perform certain task when a new user is created

Is there a way to perform additional tasks every time a new user is created with adduser(8) in FreeBSD? To be more precise, i'd like to create a directory for every new user and map this user with ...
kundev's user avatar
  • 51
2 votes
1 answer
2k views

Sendmail in FreeBSD send with external SMTP without auth

I'm sorry if this might sound confusing at first. My brother asked me to make a web server for him because he wanted to self host his own website and not use a hosting service anymore. The problem ...
Comrade Zed's user avatar
2 votes
1 answer
3k views

mount FreeBSD encrypted ZFS from live CD AND find the root partition

I followed the menu to install FreeBSD 11 with encrypted ZFS. After using the system fine for some days, I messed something in /boot/loader.conf so can not boot. I searched and the way to recover is ...
John's user avatar
  • 369
2 votes
2 answers
1k views

Opendkim doesn't sign emails sending from external clients

I've setup opendkim with my sendmail and it looks like everything works correctly, but it signs only those messages that sent locally (from webmail client or automatic subscriptions). when I try to ...
heximal's user avatar
  • 175
2 votes
1 answer
1k views

Check headers of a sent e-mail (by sendmail)

When I send an e-mail in console, like: echo "Body of the message" | mail -s "Some clever subject" [email protected] I would like to check the headers of the e-mail once it is sent. They do not ...
zezollo's user avatar
  • 470
2 votes
1 answer
8k views

How do you expand /var in pfsense when you run it in memory?

I have a pfsense box running 32GBs of RAM. I enabled /var and other directories to be in RAM due to have so much space and wanted to improve performance. How do you alter and increase the size of /...
Jason's user avatar
  • 3,941
2 votes
1 answer
785 views

ZFS corrupted directory, but zpool doesn't detect anything wrong

A directory on my FreeBSD 10.2 server somehow got hopelessly corrupted (wasn't ZFS supposed to prevent that?) ls or any other command against it leads to current session getting frozen on the kernel ...
panta82's user avatar
  • 248

1
8 9
10
11 12
31