New answers tagged

1

The guidelines presented in the FreeBSD Developers' Handbook encourage the developer to write portable code. For example, the suggestion (in 2.4. Compiling with cc) that the C programmer use compiler warnings to check for problems: Generally, you should try to make your code as portable as possible, as otherwise you may have to completely rewrite the ...


1

As it is for a UPS, I imagine you can afford to poll the modem signals every 10 seconds or so (from freebsd tty(4)): int state; if(ioctl(fd, TIOCMGET, &state)...) if(state & TIOCM_DTR)... However, if you want to be notified immediately of changes in exactly one modem signal, namely DCD, you can set the tty flags to clear CLOCAL (see termios), then ...


0

If it's nullfs, then take a look at the "target" file?


1

Just run echo 'DEFAULT_VERSIONS+=ssl=openssl' >> /etc/make.conf (as root) if you really have installed security/openssl. For users of an other port than security/openssl: for security/openssl-devel: echo 'DEFAULT_VERSIONS+=ssl=openssl-devel' >> /etc/make.conf for security/libressl: echo 'DEFAULT_VERSIONS+=ssl=libressl' >> /etc/make....


0

Here's what I've learnt: __syscall is not defined in any C source file; According to Mark Plotnick: libc's __sysctl is a system call wrapper written in a few lines of assembly language, generated during the compilation of libc [1]. The system calls' entry point is here in kern_sysctl.c [2]. The system calls are called called sys_foo() in the kernel. ...


1

Try changing your .xinitrc to just xterm & fluxbox & or xterm & exec fluxbox


0

I found that FreeNAS 9.10 does not release storage resources manually attached to the jail. This can be observed from the top menu->jails->storage, where the deleted jail from the removed plugin is listed along with the storage that was attached to it. It can be deleted from this list by selecting it and pressing the delete button. If this storage list is ...


1

FreeBSD (the OS) does not have a mailx program. There are however several programs called mailx which is derived from Berkeley Mail. Some are ported to FreeBSD and are available as packages. The OP is using the package: mailx-0.5_1 This package is a fairly old Perl script. I would rather recommend using the Heirloom version of mailx: heirloom-mailx-12.4_7 ...


0

While we wait for Sato Katsura to answer the question, this (his) method works fine: ps ax -o command | sort | uniq -d


2

The problem here is that /etc/rc.d/pf runs before /usr/local/etc/rc.d/ezjail, so the kernel hasn't configured the jailed network by the time it tries to load the firewall rules. You might be tempted to alter the pf script to start after ezjail, but that's not a good idea - you want your firewall to start early in the boot process, but jails get started quite ...


0

Try to specify "service_log_path" explicitly: driver = webdriver.PhantomJS(executable_path='/usr/local/bin/phantomjs', service_log_path='/tmp/ghostdriver.log')


1

With xterm, you could use the translations resource to assign a string (such as "setxkbmap us") to a function-key. Doing that bypasses most of the keyboard problems, as well as issues with compose and special characters. Something like this in your $HOME/.Xdefaults would assign the command to controlshiftF1: *VT100*translations: #override \n\ ...


0

I'm not entierly sure, but you should be able to do it as described below. Grant Write permission for the Users group that is applied to This Folder only. (This is an option available on the Advanced page.) If each user needs to have certain permissions to the files that he or she dropped, you can create a permission entry for the Creator Owner ...



Top 50 recent answers are included