New answers tagged

0

Add an entry for this network to /etc/wpa_supplicant.conf. If the file does not exist, create it. Replace myssid and mypsk with your SSID and PSK network={ ssid="myssid" psk="mypsk" } Add entries to /etc/rc.conf to configure the network on startup: wlans_ath0="wlan0" ifconfig_wlan0="WPA SYNCDHCP" Restart the computer, or restart the ...


0

I am understanding, that you already have one linux-swap partition (ada0s3). If this is the case, just add the partition to /etc/fstab If not, I recommend you to use fdisk for MBR partition tables or gdisk for GPT partition tables instead to edit the partition table as you want and then execute: mkswap partition, swapon partition and then add the partition ...


0

Somehow sysctl net.link.tap.up_on_open=1 wasn't set when I thought it was. All good now.


0

You can try looking in /var/log/boot.msg and boot.msg, they will contain the text you see on the screen while booting up. My guess is it might have something to do with runlevel 3 versus runlevel 5, and that you might be trying to nfs mount something listed in the /etc/fstab file before all other required services have been started. Instead of using the ...


0

Since w is printing out the process command-line of the process controlled by your terminal, it will just show what you typed in the command line. So you just need to modify the hostname. Per Gilles' comment, you can set up .ssh/config as follows: Host bogusname HostName real-address.org Port 2222 # <other options> On the command line, you can ...


1

The kernel will keep track of your connection, and there's not much you can do about it. I'm not even sure root privileges will help you here (at least not without some kernel module magic). If you want to hide where you're going, the best way is probably to pretend you're going somewhere else instead. In other words : use a proxy or anything which could ...


0

The iwm driver is not in the GENERIC kernel. The man page man iwm specifies the methods required to pull the driver in. Either: build a custom kernel load at boot time with /boot/loader.conf load at runtime with kldload The man page does not appear to be online - but it is in the latest snapshot.


0

Disclaimer: I don't know if this is the right thing to do, but it worked for me. So, I essentially needed the startup process to take a little extra time so that networking services could finish loading and the iSCSI mounts could be created so there would be something to mount to. What I did was add sleep 5 to the /etc/rc.d/mountlate script. # PROVIDE: ...


0

Answer I ran across this thread on the FreeBSD Forums. While it was nearly identical to my issue in almost every way, the main differentiating point was it was in reference to ext4, not ext2. Since ext4 is technically backward compatible with ext2/3, I I decided to take the chance and see if I could try this solution - it worked. Here's what I did to ...


0

Install a jail and copy the necessary files from there: cp /mnt/dataset>/jails/<jail-root>/etc/portsnap.conf /etc cp /mnt/<dataset>/jails/jail-root>/usr/sbin/portsnap /usr/sbin /usr/sbin/portsnap fetch


0

The accepted answer is correct. Modification of network from inside of a jailed environment is not allowed. It defeats the purpose of jail. However, the solution to the original problem is to configure jail host. You need to configure firewall with NAT enabled on the jail host. Firewall shall allow outbound traffic from jailed IP address. EC2 firewall ...


2

There is another option which allows more control about the ARP handling. Have a look at arp_ignore.


0

I'm trying to work this out at the moment as well. So far I've found this post on the FreeBSD forums which have lead me to try mkdir /basejail mount -t nullfs -o rw /usr/jails/basejail /basejail which allows the /usr/jails/newjail which is being updated to find the paths such as boot, etc and others and update them. So you can then run ezjail-admin ...


0

your question is not entirely clear to me, but if you have a dir structure as follows -- a a/data a/data/file1 a/studyName a/studyName/data a/studyName/data/file1 a/studyName/data/file2 a/studyName/data/file3 and you're looking for studyName/data/fileX, you could do -- find . -path "*studyName/data*" -type f ./a/studyName/data/file1 ...


0

I found the keys generated by puttygen to be troublesome in almost every attempt I made. I am not exactly sure why and how, but the format of the file it generates is not accepted by my Linux and other legacy UNIX systems. My suggestion is, once you are on the server, generate keys using command ssh-keygen -t rsa enter pass phrase if you want and file ...


1

As pointed out by Ulrich Schwarz, .ssh/authorized_keys must be a regular file. In your case, it looks like it's a directory. You need to remove the directory and create a single text file with the key in it.


1

There is a bug report which describes the same issue. There seems to be a problem when the port is compiled with LLVM support, which causes segmentation faults. You need to run cd /usr/ports/devel/hs-cabal-install make config to unset the LLVM support and to so avert the problem.


0

Please show the partitioning scheme. Use "gpart show". You'll probably see a partition of type freebsd-ufs. The third column (small number) shows which slice it is. You have the device name above. For example, if you see "ada0" and "2", connect those two into "ada0p2".


0

Of course it does, otherwise lots of basic hardware (ie network adapters) wouldn't work. Most of it - everything apart from two HighPoint drivers - is microcode. There is a mechanism to build the kernel without it - just define WITHOUT_SOURCELESS in /etc/src.conf and rebuild the kernel and world. As usual, it's all documented in the ...


0

This can be done by your router. On some router this feature is called Virtual Server See in below part of image there are two examples of port forwarding. One is of Web and another one is of SSH. In first case any request on your WAN IP i.e. the IP of your router with port 80 will be forwarded to a LAN IP ( 192.168.2.4 in this case) With this feature you ...


2

The ext2fs file system is optional on FreeBSD and needs to be loaded. Add the following line to /boot/loader.conf to have it loaded at boot time: ext2fs_load="YES"


0

If you statically link everything you need you can then simply use "makeoptions NO_MODULES=yes" so you're not building unnecessary modules. This can also be accomplished with MODULES_OVERRIDE and/or WITHOUT_MODULES. The ability to load modules at runtime is not always a good thing. The module could be a rootkit for instance. SECURELEVEL also mitigates ...


0

publicanhas been removed from ports as unstaged So you need to compile it from source as well.


0

Been a bit since I've used FreeBSD, but if memory serves you should be able to put in the Linux compatability port and run it from that. A more fun way, would be to install Kolab onto Linux compatability and just use it as a reference. When installing Kolab, get a list of all packages it wants to install. Then grab the diff new files in your /etc and /var ...


-2

Check your /etc/resolv.conf and make sure you have the correct DNS.


0

When setting DEFAULT_VERSIONS=python=3.4 python2=2.7 python3=3.4 in /etc/make.conf you have to rebuild the ports that use the default version of python.


0

With any POSIX sed: $ sed -e'/hello/{' -e:1 -e'$!N;s/hello/world/2;t2' -eb1 -e\} -e:2 -en\;b2 <file hello world hello hello hello hello After the first match /hello/, we run into a loop. Inside loop :1, we read each Next line to the pattern space, doing substitute command for 2nd occurrence only. We test if the substitution success or not. If yes, we ...


0

Adding to trasz' answer, geom part list shows the partitions in FreeBSD. Similarly geom md list will get you the "memory disk" devices (similar to some uses of loop mounts in linux which are also listed by lsblk(8) - in other words block devices created by mdconfig(8) on FreeBSD and losetup(8) on linux). See geom(8) for a list of classes (each of which can ...


0

This was happening to me. I deleted a .tmux file in my home directory, and that fixed it. You could also try tmux kill-server.


0

You can use virtualenv to handle different Python versions on one server, and use completely separate Python installations for whatever you need. See http://docs.python-guide.org/en/latest/dev/virtualenvs/


0

After finding a non-tagging example (in Russian!) I've since managed to fix this myself, using a simplified version of the ngctl commands in my question that just returns non-matching packets directly back to ipfw: ngctl -f- <<-__END__ mkpeer ipfw: bpf $cookie filter name ipfw:$cookie CLASSIFIER mkpeer CLASSIFIER: tag matched tag_bad name ...


2

In an environment where the boot routine did not offer the customary option to boot to console – and where things such as Control-Alt-2 were ineffective … /etc/ttys I experimented with making a comment of the line for ttyv8. So for example: # Virtual terminals ttyv1 "/usr/libexec/getty Pc" xterm on secure ttyv2 "/usr/libexec/getty Pc" ...



Top 50 recent answers are included