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

learn more… | top users | synonyms

1
vote
2answers
54 views

How to make + work in sed's regexps on FreeBSD?

Consider the following typescript: $ freebsd-version 10.0-RELEASE-p5 $ echo ' found' | sed -n '/[[:blank:]]\+/p' $ echo ' found' | grep '[[:blank:]]\+' found When I do this on Arch Linux with GNU ...
1
vote
1answer
191 views

Run a Python script in the background on boot

I recently installed the Google App Engine Development server on my FreeBSD home server to be able to test my GAE app remotely. What I can't figure out is how to run the Python development server as a ...
1
vote
1answer
127 views

Why can't I import an ZFS pool without partitioning the data disk with fdisk?

I have a strange situation here, in which I am unable to import an ZFS pool that I brought from another OS UNLESS I fdisk the disk of the pool. I am puzzled as to why this is happening and hoping to ...
3
votes
1answer
171 views

Fix partition alignment in FreeBSD

I'm working on a FreeBSD 8.x (pfSense 2.1) system and post-install, realised that the partition is misaligned to the disk (starts at sector offset 63). GParted doesn't recognise UFS so that is out. ...
4
votes
1answer
517 views

ZFS: Trying to remove top-level drive from Zpool

I have a zpool called storage that contains a five device raidz1 array. Today I went and bought another 3TB device and put it in my enclosure. However, instead of creating a new pool and adding that ...
1
vote
1answer
320 views

How to fix “pkg: Not enough space in /var/cache/pkg, needed 32mib available” error?

I'm a beginner on FreeBSD and downloaded the latest version from ftp://ftp.freebsd.org/pub/FreeBSD/releases/. After the installation I wanted to install the nginx web server on my virtual OS (using ...
3
votes
1answer
748 views

How to install FreeBSD in minimum size?

I want to install FreeBSD to run a squid cache server on it. I want to know how can I can make this installation as small as possible? I installed the boot-only ISO file on virtual box, but it took ...
0
votes
1answer
39 views

Upgrade FreeBSD using DVD?

I have a FreeBSD installation that had an upgrade failure between 8.? and 9.4 (IIRC). In the interest of getting 10.2 working properly on the machine, I downloaded the DVD image and burned a disc. Now ...
2
votes
1answer
215 views

Using pkg add with a NanoBSD image

I'm running into a problem on a NanoBSD installation where I cannot install OpenJDK7 via pkg add because it first saves to either /tmp or /var (not sure which) and on a NanoBSD installation, there is ...
0
votes
0answers
347 views

RaspberryPi GPIO FreeBSD assignment

First my Assignment: I'm a beginner with BSD and low level peripherals like GPIO etc., and I need to toggle Raspberry GPIO Pins from a C programme on BSD. I am Using this BSD Image i took from here: ...
0
votes
1answer
183 views

How to set proxy with a config file provided in freebsd

I'm currently trying to update and install packages and other things on a FreeBSD server, but I’m blocked by my proxy. I'm in an university, and there are a few proxies before to go on the internet. ...
3
votes
1answer
162 views

What does iwa/iwl/iwm/iwn mean in FreeBSD?

I have a Lenovo Thinkpad T440 which I was looking to install FreeBSD on. The laptop has an Intel Dual Band Wireless-AC 7260 chip which doesn’t seem to be supported (yet). On my travels, researching ...
2
votes
1answer
32 views

understand the output of bsdlabel

I have a Juniper router which uses Junos(based on FreeBSD) operating system where I can backup certain partitions from router CLI. Under the hood router starts the restore process and copies ...
3
votes
1answer
98 views

No packages Apache and mod_wsgi3 have been found in the repositories

I'm trying to instal Apache24 and mod_wsgi3 to my FreeBSD VPS (droplet) with this command: sudo pkg install bash ap24-mod_wsgi3 py27-virtualenv mysql56-server but apparently 'ap24-mod_wsgi3' has ...
1
vote
2answers
62 views

`last` alternative showing logins only for current user

I'm aware that I can use last $USER, however this won't work correctly or securely on machines with many users - no user should know another users IP or when they logged in. Is there a known solution ...
1
vote
2answers
308 views

How do I disable the system beep in FreeBSD 10.1?

How do I disable the system beep on the console in FreeBSD 10.1? The recommended commands don't work. The sysctl setting: # sysctl hw.syscons.bell=0 hw.syscons.bell: 1 -> 0 # sysctl -a | grep ...
5
votes
2answers
4k views

How do I set dhclient debug info on?

On a FreeBSD computer Is there a DHCP client log that I could use to debug a DHCP issue? Can I set a debug param to get more information from the dhclient? UPDATE #1 I found a lead on this ...
0
votes
1answer
278 views

Trying to use portsnap to install vim in FreeNAS

I am trying to install vim in FreeNAS but when I try to use portsnap, I get "command not found". When I tried using pck_add -r portmaster I get the following: pkg_add -r portmaster Error: Unable ...
1
vote
1answer
59 views

Giving a FreeBSD talk. How do I pronounce rc.conf? [closed]

I was going to do a short talk about FreeBSD, but I'm at a lost at how certain things are customarily said when in person. How would someone say /etc/rc.conf? I think it would be "Arrh Ceee dot ...
6
votes
1answer
35 views

How can I tell which of my ports I compiled myself and which I installed from pre-compiled binary packages?

I have two FreeBSD 10.2-RELEASE systems and I'm trying to set up the second to be almost identical to the first. I don't wish to use ZFS snapshots for this task; I would just like to select, install, ...
4
votes
1answer
68 views

Prevent users changing password in FreeBSD

How can I prevent a user to change its password in FreeBSD. In Linux i can do this by using chage -m 99999 <username> where chage is found in shadow-utils Reason for this is I created one shell ...
0
votes
0answers
13 views

FreeBSD's built-in ftpd and awstats

How can I use awstats with the FreeBSD's built-in ftpd's xferlog? Sample lines from /var/log/xferlog (simple syslog): Sep 12 19:05:51 bsd-vps ftpd[35082]: connection from ###.###.###.### Sep 12 ...
1
vote
3answers
4k views

How to forward port by (sub)domain name?

I have this setup: a (Host) FreeBSD 9.2 host server running VirtualBox with another (Guest) FreeBSD guest server. I have set up port forwarding on the Host to the Guest like this: VBoxManage ...
1
vote
0answers
60 views

Unable to run OpenLDAP on freeBSD

I've installed openLDAP on my FreeBSD machine. When I try to run the service, I get the following error. Unrecognized database type (mdb) Can someone point me towards what could be wrong?
1
vote
1answer
70 views

ex/vi: Input encoding conversion not supported

I've a problem with vi, every time I launched it I get this message: Input encoding conversion not supported; /tmp/vi.PSzqmm9ox9: new file: line 1. Despite of this message I'm able to edit and save ...
4
votes
1answer
139 views

TCP Westwood implementation available?

Is there a way to install TCP Westwood congestion control algorithm module for FreeBSD? If not, maybe there's a source code available that could be compiled into a loadable Kernel module?
1
vote
2answers
81 views

How identify disk scsi address on FreeBSD?

I'm using FreeNAS 9.3 , which is a FreeBSD 9.3 . This under vmware ESXi . I have 3 disk, configured for this VM . Need replace one disk for other (because physically it's failing). Already add ...
3
votes
1answer
47 views

List loaded libraries of a process on FreeBSD

How can I list all loaded libraries of a process in FreeBSD? On Linux I can use /proc cat /proc/$pid/maps on Solaris there is pldd pldd $pid For FreeBSD /proc also works: cat /proc/$pid/map ...
8
votes
4answers
1k views

“no such user” but user is in passwd file

Looking at the files in /etc/: /etc/group:lbutler:*:1005: /etc/master.passwd:lbutler:$6$s..../:1005:1005::0:0:L Butler:/home/lbutler:/bin/bash /etc/passwd:lbutler:*:1005:1005:L ...
0
votes
1answer
24 views

How to have only one binary for FreeBSD 10-CURRENT and previous versions in case of using iconv

FreeBSD 10-CURRENT switched to native iconv instead of libiconv library. Our team has a code that uses iconv invocations and we compile it on earlier version of FreeBSD. When we launch the executable ...
1
vote
3answers
57 views

How to list atime for files?

According to this post can stat be used to give the atime on Linux, but FreeBSD 10.1 doesn't have the GNU stat. How do I list the atime for files?
0
votes
1answer
90 views

How to configure which user fcgiwrap runs as on FreeBSD?

I have Redmine/Git/nginx/fcgiwrap running in a jail on FreeBSD 9.3 for (potentially) authenticated Git commits over HTTP/S. Everything works until I restart the jail. In order for a commit to work I ...
0
votes
1answer
25 views

Logout from jail

I'm trying to use FreeNAS on my office along with Syncthing, and some things are giving me headache. FreeNAS installed Syncthing as a jail, and I did the jexec command to login into the jail, but now ...
2
votes
0answers
37 views

Compiling FreeBSD on OSX

I currently have the source for the FreeBSD kernel. I want to compile it and create an iso image, on my OSX 10.9 computer. Can this be done? Do I need any other tools?
1
vote
1answer
201 views

Can I install FreeBSD, OpenBSD, NetBSD and DragonFly on one disc?

Is it possible to install all of FreeBSD, OpenBSD, NetBSD and DragonFly BSD on a single disc? What would be the proper procedure for success, and what are the caveats?
1
vote
0answers
62 views

Emacs and gvim display no content on FreeBSD 10.2

I just installed FreeBSD 10.2 with the Mate desktop environment and most things seem to work. I have a problem with emacs and gvim though. Since the problem has the same symptoms with both editors, I ...
3
votes
2answers
165 views

What's the `name` argument to `sh` for/do?

Taken from FreeBSD's man page on sh (because its the most convenient online, target platform is Debian if it matters): SH(1) FreeBSD General Commands Manual SH(1) NAME sh -- ...
2
votes
2answers
568 views

What is the difference between vim and vim-lite?

I want to install vim on my FreeBSD machine, and this other site suggests installing from FreeBSD ports like this: # cd /usr/ports/editors/vim-lite/ # make install clean This is all great, and I ...
3
votes
1answer
34 views

Is it possible to compile individual software from the FreeBSD source tree?

I wonder if it is possible to compile individual software packages from FreeBSD source tree without compiling the whole kernel and world....Say,for example ex , which is included in the nvi (new vi) ...
2
votes
1answer
59 views

on FreeBSD, how do I open a port on WAN but not on LAN?

I have one FreeBSD machine that I use as a playbox/server/torrentbox. It's part of my LAN. Here is the semantics (altered from an example on the OpenBSD website): [ desktop ] [ laptop ] | ...
2
votes
1answer
55 views

creating a xar archive using the tar utility in FreeBSD

I am trying to create a xar archive using the tar utility in FreeBSD tar -c -f test --format xar index.html I get the following error Can't use format xar: Xar not supported on this platform How ...
2
votes
2answers
2k views

Upgrade from FreeBSD 10.1 to 10.2 fails because of incorrect hash

$ sudo freebsd-update upgrade -r 10.2 Fetching metadata signature for 10.1-RELEASE from update.FreeBSD.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying ...
-1
votes
2answers
113 views

best way to upload files(100gb+) from freebsd server

I need to upload lots of files(100gb+) from server, currently i get ssh connection, and i'm not restricted in software i can use and run anything. Please recommend me the way to upload files to my ...
0
votes
1answer
41 views

Using an alias when using NFS shares

When using Samba, I can use an alias which can pretty much point to any directory. E.g. an alias called videos pointing to /mystuff/here/anotherfolder/anotheronehere/oops/myvideosfolder Is ...
5
votes
2answers
415 views

How to allow direct root access via SSH on certain IP range?

I would like to login to root via ssh directly while at home (192.168.1.0/24). But while outside (e.g. at work), I can still login via ssh by using one of the custom accounts I created. I jus ...
0
votes
0answers
36 views

How to setup different permissions on parent/subfolder using FreeBSD/NFS sharing?

I have the following folder structure: Here's my sample/target /etc/exports # cat /etc/exports /storage -maproot=root -network 192.168.1.0/24 /storage/mysonsvideos -ro -maproot=root -network ...
2
votes
1answer
160 views

Freebsd printing: Unable to print using lpd

i have setup the lpr for usb printer by following a guide from the web.. however, i have got the error lpr: Error - no default destination available Output from dmesg: ulpt0: Canon Inc MF4800 ...
0
votes
1answer
135 views

How to build openssl with clang(rather than gcc) on a FreeBSD machine?

I have a 64 bit FreeBSD build machine. I need to add https support in my python3 application code. For that it is advised to build/compile python with openssl support. I do not need any gcc dependency ...
2
votes
2answers
339 views

run FreeBSD 10 (as guest) under Xen on Linux

I have my Linux/Debian/Sid amd64 (with i7 3770K, 16Gb RAM, 1 SSD + 2 hard disks) PC with xen (notably I have installed a package xen-linux-system-amd64), so sudo xen list Name ...
2
votes
1answer
72 views

Is it possible to create a freebsd 10 or 11 jail in freebsd 9?

My title question is exactly my question : is it possible to create a freebsd 10 or 11 jail into a freebsd 9 instance?