Hot answers tagged

37

I believe what you are looking for is: ls good bad >/dev/null 2>&1 You have to redirect stdout first before duplicating it into stderr; if you duplicate it first, stderr will just point to what stdout originally pointed at. In bash you can do this with &>/dev/null but that's a bash extension.


14

OpenBSD supports full-disk encryption only since OpenBSD 5.3. Earlier versions require a cleartext boot partition. I don't know when the installer was modified to support direct installation to an encrypted partition (with the bootloader still unencrypted of course, because something has to decrypt the next bit). There's little use in encrypting the system ...


11

OpenBSD is binary-centric. You can update the binaries (if any updates/changes are available) by executing pkg_add: pkg_add -Uu The OpenBSD team recommends using the packages over building from ports - The OpenBSD packages and ports system FreeBSD can be updated via packages or ports.


9

From the FAQ (really): 13.14 - Can I have Flash support in my web browser? (i386 only) Firstly, if you are just looking to watch flash videos from common websites, there are a number of options in packages, including: get_flash_videos, minitube, youtube-dl, get_iplayer and yt. The Flash plugin is distributed by Adobe in binary form only. Adobe ...


9

Rendering HTML is a function of the browser, not the operating system. Don't let Microsoft's patently ridiculous marketing of "native support" delude you into thinking otherwise. Install a modern browser. Live happily ever after.


9

Random832's answer is the correct one but I'll give you an easier answer. The only part of a OS with direct access to the hardware is the kernel. In traditional unix systems, the X server (XFree86/Xorg) needs direct access to the graphics hardware, i.e. a userland process needs to bypass the kernel. This is a big security problem, so OpenBSD ask you for ...


9

There is no correlation between the number of processes and the “clarity” of an operating system. You are comparing apples and gooseberries. On a Linux system, ps ax will show a lot of processes that consume no memory and have a name in square brackets, like this: root 2 0.0 0.0 0 0 ? S Nov02 0:01 [kthreadd] root 3 0....


8

SMP has been supported since OpenBSD 3.6, released in 2004. Presumably the old limit was 4 cores or 16 cores. The easiest way to get SMP support is to install the bsd.mp kernel. That should happen by default if your system has multiple cores. OpenBSD SMP project As of June, 2004, SMP (Symmetric MultiProcessor) support has been merged into the main ...


8

Original Answer The gnupg plugin for Vim does this: This script implements transparent editing of gpg encrypted files. The filename must have a ".gpg", ".pgp" or ".asc" suffix. When opening such a file the content is decrypted, when opening a new file the script will ask for the recipients of the encrypted file. The file content will be ...


8

You're question is pretty general, so I'll just take a little stab at the NetBSD part: The webpage of NetBSD's vax port lists supported machines (such as yours), many can use NetBSD 6.0.1, some are only supported in -current. It also points to VAXarchive, a website collection some information that might help you further. It also points to the vax port of ...


7

Chrome has been in OpenBSD's ports tree since at least OpenBSD 4.8. $ sudo pkg_add chromium Should do the trick, assuming your PKG_PATH environment variable is properly set. For more information on ports/packages, see here: OpenBSD Packages and Ports System


7

I assume that you're wondering about amd64 vs i386, the 64-bit and 32-bit architectures on PCs (there's also a choice of word size on Sparc64). According to the official platform description: The only major shortcoming at this time is that the kernel debugger ddb is somewhat poor. Another mentioned limitation is that if your processor lacks the NX bit ...


7

From: http://www.openbsd.org/papers/bcrypt-paper.pdf We have implemented bcrypt and deployed it as part of the OpenBSD operating system. Bcrypt has been the default password scheme since OpenBSD 2.1


7

QEMU is available for BSD, although it looks like you might have to do a little fiddling to get it to go based on NetBSD packages. Here is a guy that got Windows to run in QEMU on OpenBSD.


7

First: packages and ports are entirely two separate things. There is no such thing as "packages from ports". From the FAQ: Packages are the pre-compiled binaries of some of the most used third party software. Packages can be managed easily with the help of several utilities, also referred to as the pkg* tools. and from the section on Ports: As ...


7

This is an illustration of the difference between authentication and authorization. Sudo is primarily a tool for authorization. Its job is to determine whether you are allowed to execute a command with elevated privileges, and if you are, to execute that command. An entry like bruno ALL = (ALL): ALL in the sudoers file allows the user bruno to execute ...


7

According to the FAQ, this question results in enabling the xf86(4) aperture driver, which allows the X server (or any other process that has access to it) to directly access the video memory. 11.2 - Configuring X Good news: In the vast majority of hardware in most platforms, X requires no configuration at all, it Just Works. The details of ...


7

The number of running processes is not necessarily a good indicator for "clarity". Take, for example, FreeBSD's devd which uses a socket to communicate where udev uses D-Bus (and hence needs another dbus-daemon process). Process count: 1:2. But D-Bus brings in a lot more features and possibilities, many other system daemons use it (handled by the same ...


7

I haven't had the honour of playing with a VAX, but OpenBSD 5.2 has mg, a mini emacs clone. So if you can't compile emacs, mg should do. :)


7

The best way to do this is to define a table and create a rule to block the hosts, in pf.conf: table <badhosts> persist block on fxp0 from <badhosts> to any And then dynamically add/delete IP addresses from it: $ pfctl -t badhosts -T add 1.2.3.4 $ pfctl -t badhosts -T delete 1.2.3.4 Other 'table' commands include flush (remove all), replace ...


7

The z option tells tar to decompress an archive using gunzip (or its internal equivalent), and is appropriate only for gzip-compressed archives, typically with a .tar.gz extension. To decompress archives using other compression formats, you can try tar xvf file to see if your tar is clever enough to figure things out on its own. If it isn't, you can ...


6

Yes, of course. It's standard. (And there're more, also non-standard, security features in OpenBSD.) (If you meant "are there any files with these bits set", try find / -type f \( -perm -4000 -o -perm -2000\) -print)


5

What daemon? Most daemons come with a commandline or config option to drop privileges. But if you're looking for a generic way, try: RUN_AS=my_user su -c /usr/sbin/my_daemon $RUN_AS


5

The canonical reference for this is The OpenBSD FAQ - 5.1 The install4.8.iso in the 4.8 directory is the 4.8 before patches. So, if you want the patches, you need to install 4.8 then patch your system yourself. The install48.iso in the snapshots directory is more than just the patches to the OS listed on the errata page, it's also everything new that is ...


5

According to the OpenBSD ksh man page, Ctrl+L is bound to redraw. redraw: ^L Reprints the prompt string and the current input line. If that isn't sufficient, I can't see any editing command that will help, so I would suggest learning more about bind -m. Perhaps you can do something like bind -m '^L'=clear'^J' to make it type clear Enter.


5

An older version (0.6.4?) was ported to NetBSD and many or all of the changes were taken upstream, but the NetBSD porter didn't seem to continue it. As stated, BleachBit is written in Python and PyGTK. There may be minimal changes to the Python code, and maybe some in the CleanerML (mostly XML) which defines which files should be cleaned. If you have any ...


5

To quote the OpenBSD FAQ on What web browsers are available: Lynx, a text-based browser, is in the base system, and has SSL support. Other browsers in the ports tree...


5

Looks like dependencies are specified in the packing list. You can see the packing list with pkg_info -f. So, assuming PKG_PATH is already set: pkg_info -f XYZ | grep '^@depend' | cut -f 3 -d : should give you the package names. Prepending $PKG_PATH and appending .tgz to each line should give you a URL that's probably what would be downloaded, e.g. to ...


5

If security is your concern, keep in mind that httpd in OpenBSD is chrooted by default, which means that in case of a potential compromise of your web server, the attacker will stay in the chroot jail of your webserver, isolated from the rest of your system, therefore minimizing the effects of the breach. As far as mount options go, you could mount the ...


5

libvirt knows how to handle this. If you don't mind installing libvirtd and virsh, then you can use: virsh list to show the name(s) of the guest(s). And, to shutdown gracefully the guest with name guest_001, use the command: virsh shutdown guest_001



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