Tag Info

New answers tagged

0

Yes, it is possible, but quite complicated. However, your question does not supply enough information on the hardware used to be able to answer it completely. Especially since modern computers can be quite a pain in the neck when it comes to booting and partitioning (for instance, with UEFI). Essentially, using the different fdisk commands, create ...


0

/usr/ports/editors/vim-lite/Makefile sets a variable (LITE=yes) and then includes /usr/ports/editors/vim/Makefile which does the following if LITE is set: OPTIONS_EXCLUDE=ATHENA CSCOPE EXUBERANT_CTAGS GNOME GTK2 LUA MOTIF NLS PERL PYTHON RUBY TCL X11 XTERM_SAVE OPTIONS_SLAVE= CONSOLE MAKE_ARGS+= CONF_OPT_GUI="--enable-gui=no --without-x" \ ...


2

The form: sh -c '...' name arg1 arg2 ... is called inline-script, often seen in combination with find ... -exec sh -c '...' find-sh {} +. Inside inline-script, $0 will be set to name, and the rest of arguments was populated to $@. In general, you should set it to something meaningful, because it will be used for instance showing error messages: sh -c ...


5

Man page in Linux was detailed a bit. sh -c [-aCefnuvxIimqVEb] [+aCefnuvxIimqVEb] [-o option_name] [+o option_name] command_string [command_name [argument ...]] -c Read commands from the command_string operand instead of from the standard input. Special parameter 0 will be set from the command_name ...


0

FreeBSD switched to new native code in order to replace non-free (GPLd) code by free code under the BSD license. It is obvious that after having an own free implementation, there is a wish to remove the tainted old libraries. If your code was written standard compliant, a simple recompilation should fix your problem. Note that the original iconv ...


2

Sure, with the standard /usr/src installed it might run something like # cat /etc/src.conf CFLAGS=-pipe DEBUG_FLAGS=-g # cd /usr/src/usr.bin/vi # make clean && make obj && make depend && make && make install # gdb -d /usr/src/contrib/nvi/ex -d /usr/src/contrib/nvi/common -tui ex


1

Blocking LAN access: If pf.conf knows what your LAN subnet is, you can selectively block traffic from it. Using your example: block in all pass out all keep state lan_subnet = "10.0.0.0/24" block in quick proto tcp from $lan_subnet to any port 22 pass in proto tcp from any to any port 22 Rate-limiting WAN but not LAN: Say for example you want to ...


1

FreeBSD's tar doesn't support the xar format, but once again ports to the rescue - archivers/xar seems to be what you want!


2

100GB+ of data seems best fit for private torrent. Here is some basic info on how to start off: Creating a Private Torrent


2

I'd tar and compress before I sent over SSH - the encryption will just slow things down if you try SCP or similar natively. tar cvzf - /path/to/files | ssh user@host.com -C -c blowfish "cat - > bigtarball.tgz" If you want smarted things like synchronising collections of files after the copy, go grab the free version of Bittorrent Sync at ...


1

You can create a symbolic link to the target directory. To follow your example: ln -s /mystuff/here/anotherfolder/anotheronehere/oops/myvideosfolder ~/videos


2

The "corrupt" file is stored in /var/db/freebsd-update/ The files are named for their hash. You may be able to proceed simply by deleting the file that was downloaded incorrectly, so that your next run if freebsd-update downloads it again. sudo rm /var/db/freebsd-update/5f019a418777cb657afa2135ec50532d4a61f8c6b1373e4e4f6b173f3aa98741.gz I have always ...


9

Check out the AUTHORIZED_KEYS FILE FORMAT section of the sshd man page. Then add something like the following to ~root/.ssh/authorized_keys (where the ssh-ed25519 ... part is replaced by your ssh public key): from="192.168.1.0/24" ssh-ed25519 AA... Then that key will only be allowed from your particular network. Also, make sure you have the following in ...


3

The configuration change you made means "allow root from 192.168.1.0/24, deny everything else". In other words, only the conditions that match are allowed access. You could try this instead: AllowUsers root@192.168.1.? anotheruser1 anotheruser2 That means root from 192.168.1.0/24, and the other two users from anywhere.


1

I'm experiencing the same behavior. This has happened a few times in the past year, and it appears to have typically been due to errors in updating the mirrors. I retried a couple times and hit a good mirror, you could try forcing it to use particular ones and see how that goes. I believe it was either update5 or update6 that worked for me. Alternately, ...


1

The error says that no default destination exists. To quote from the printcap(5) manpage: The default printer is normally lp, though the environment variable PRINTER may be used to override this. Each spooling utility supports an option, -P printer, to allow explicit naming of a destination printer. So either change the first line of your printcap ...


0

My guess is you need to install a Driver for your Printer on the FreeBSD machine. There are CUPS drivers available on the CANON website. There are people who do hacks to print without a driver (google turns up this http://justin.yackoski.name/winp/ ). But when there is a PPD file available i suggest to install the PPD file into cups.


1

You seem to be having a number of issues, summarised below. You almost certainly should be using a port for python as noted by @mjturner, which will use the native FreeBSD OpenSSL. in csh the syntax set CC clang sets two variables named CC and clang to the empty string, you want set CC=clang, but even that won't work (see next point) simply setting a ...


1

Since I couldn't find an accurate guide for setting up FreeBSD 10 as a domU under Xen either, I wrote my own. I believe you're using a newer OS release and Xen version than me, but the process should be similar. Here's the gist: Download a FreeBSD 10 ISO (I used FreeBSD-10.1-RELEASE-amd64-disc1.iso) and put console="comconsole" in its /boot/loader.conf to ...


3

The jail and the host system will both share the same kernel. So: Old jail, recent host: Running an outdated jail on a newer host should not cause any issue (the FreeBSD kernel will ensure retro-compatibility, enabled by default even for pre-FreeBSD 8 kernel as a kernel compilation option), Recent jail, old host: I would not try to run a newer jail on an ...


0

Don't block the startup process for the sake of one service, unless it's some absolutely critical service without which the machine is unusable (e.g. entering a passphrase to decrypt the OS disk). If some service needs manual intervention to start (which should be avoided if at all possible, unless you like getting paged at 3am because the service didn't ...



Top 50 recent answers are included