Tag Info

Hot answers tagged

64

The historical situation back in the early part of the 1990s had a lot to do with it. At the time BSD unix was 'struggling to be free' and was viewed as the way forward in many circles. Linux did not get a working TCP stack for a couple of years after it came out and the internet was still somewhat rarefied. UC Berkeley and AT&T were engaged in a ...


40

In Linux: /lib/ld-linux.so.2 /bin/chmod +x /bin/chmod http://www.slideshare.net/cog/chmod-x-chmod


38

It is possible to configure Linux behave badly and it certainly is possible to configure FreeBSD behave badly. Both systems can also provide you a stellar performance. But unless your server is really, really busy you won't see any real-world difference between the two. It is best to use the one you already know and concentrate on fine-tuning the daemons ...


24

Why, hello there Lars! That's a fascinating question you've asked, and after some research I may have found an answer for you. According to this and other posts out there, it may be possible to set the VFCF_JAIL attribute on the NFS filesystem provider, which would in theory allow jails to perform NFS mounts. This may, in turn, allow one to run amd inside ...


23

I'll offer a slightly different suggestion. I see many people, once they get comfortable with a particular distribution, fall into a cycle of perpetual changeover. They install a new shiny distro, but they can't get their webcam to work. So they switch. Now the webcam works, but something else doesn't work, and they switch again. (Then they get a job and are ...


21

Don't give him root access. Instead, give him an un-privileged user account and request that he do all of his work through sudo, which will log all of his commands. Keep in mind that if this person has ill intentions and you give him full sudo privileges, he will find a way to carry out those ill intentions without those commands being logged. In this case, ...


21

Trust, but verify! Check out sudosh2. sudosh2 is provided by FreeBSD ports. Packages are available for RedHat and Ubuntu. Here is the description from their website: sudosh is an auditing shell filter and can be used as a login shell. Sudosh records all keystrokes and output and can play back the session as just like a VCR. Sudosh will allow you ...


17

How about this: $ tail -f logfile? And if you need to grep: $ tail -f logfile | grep foobar.


16

Use python: # python Python> import os Python> os.chmod("/bin/chmod",0755)


16

FreeBSD is decended from the BSD line. It is based on a 100% re-write of AT&T's original. Although it initially had legal issues with AT&T that hampered its expansion, it was eventually cleared (when it was discovered that AT&T had appropriated BSD code, the tables turned). As a result, it is 100% free and clear of any known legal claims ...


16

Do other companies blocking social sites? Yes, but that doesn't mean it is a good idea. The book Predictably Irrational has an interesting discussion and links to several studies that basically suggests that if you block minor personal usage, it can actually cost you in productivity. If people think their work place is friendly and home-like, they ...


16

The problem was that the new motherboard's BIOS created a host protected area (HPA) on some of the drives, a small section used by OEMs for system recovery purposes, usually located at the end of the harddrive. ZFS maintains 4 labels with partition meta information and the HPA prevents ZFS from seeing the upper two. Solution: Boot Linux, use hdparm to ...


15

If your version of FreeBSD is relatively modern, top has a -m option that shows the top I/O talkers if you supply it with the "io" parameter: top -m io In this case, I'd also use the -S option (to show system processes, in case one of them is the culprit). To behave better under load, I would use -q (to renice it to run at a higher priority), and -u (to ...


15

This should be dealt with via your disciplinary procedure, not your firewall. It's a technical solution for a non-technical problem.


15

locate filename Much faster than find, if you're running the locate service, and it only finds files that existed at the time updatedb last ran (usualy the night befor under the control of a cron job). You can run updatedb by hand, but that is even slower than the find cletus suggests, and requires root. I sometimes update the database by hand after ...


15

I maintain more than a fair number of Gentoo machines. Not because we care for childish funroll-loops speed tuning. What we care about is the flexibility of installing precisely what we want, not every package feature and dependency that a contributor thinks we might one day want. We are perfectly comfortable with how Linux, compiling and libraries work. We ...


15

This relies on the fact that permissions of a destination file are preserved rather than the source file when it is being copied over. We're "borrowing" the permissions of ls: cp /bin/ls /tmp/chmod.tmp cp /bin/chmod /tmp/chmod.tmp mv /tmp/chmod.tmp /bin/chmod


14

Don't know about the speed, but here is what I believe running ZFS on RAID would means: You loose the benefits of atomic writes because now the RAID controller has the last say on when a write happens to the disk. Which means you rely on the RAID controllers NVRAM. ZFS also may get lied to if the data was written inporperly, ZFS would have to take the ...


14

For existing users: chsh USER -s SHELL chsh root -s /usr/local/bin/bash For future users: Edit "/etc/pw.conf" defaultshell keywords When use adduser(), choose necessary shell


14

Yes, ZFS doesn't need hardware raid and is actually better when used without it. It is able to provide partial data protection even with a single device when configured to use ditto blocks but of course won't resist a full disk failure in that case. You can use it in a mirror configuration (two devices or more) or a RAIDZ one (three devices or more) to ...


14

FreeNAS is a NAS solution, as such, some technical choices are hidden behind whatever firmware, system or GUI such appliance can use. If you get the partition schema used on a given disk inside a ZFS pool made with FreeNAS (small VM example): $ glabel status Name Status Components ...


14

I think you should reconsider your use of FreeNAS. You've had an uncharacteristically. large. number. of issues. with. your. FreeNAS. installation(s). over. the years. Many of these issues were planning and ZFS design problems. It may be time to refactor or rebuild your environment now that you have some knowledge of best or better-practices.


13

According to the su manpage if you want to run a command as another user using su, you should use the -c switch. For example: su logostudiotest1 -c /bin/ls


13

I have never been fully satisfied with the ports system in a large environment -- It always seems like you need to apply some external management to it in order to make it work well. My best tips (in order of ascending preference, "worst" solution to "best" solution): If you're building on each host, don't. If you must, don't do it over NFS with ...


13

From a technical side we did a lot of research and testing in performance, security and stability. The result was that you can misconfigure every OS to be slow and instable. But based on a standard installation with common tweaks FreeBSD was more stable, secure and performant than any other Linux we tried (RedHat, CentOS and Debian). From the financial side ...


13

I build a home FreeBSD file server using ZFS. It is an AMD X2 3200+ with 3GB of RAM. It has a PCI Express Gig-E. The boot drive is an old 400GB and I have 4 750GB Seagte drives (one with a difference firmware version, just in case). Booting from ZFS would have been nice (it would make install simpler), but I used the ZFSOnRoot instructions to setup the ...


13

you probably already figured that the linux fuse zfs is a toy. Nexenta is based on opensolaris but got debian apt-get. you can try this. personally I think OpenSolaris is fine, takes a while to get used to - but worth the effort.


12

You know how the RIAA and MPAA publish these insane numbers on how much money piracy is costing them, based on the idiotic assumption that every unit of pirated content would be purchased if piracy were impossible? You're doing the same thing by assuming that if 'wasting' time on social media were impossible, that time would be spent doing productive work. ...


12

find / -name example.filename



Only top voted, non community-wiki answers of a minimum length are eligible