有没有人成功安装 dropbox 并在 OpenBSD 上正确运行 dropboxd(FreeBSD 也适用于我..)?我是从源代码构建的,一切都安装得很好,但是当我尝试启动它时:
$ python /usr/bin/dropbox start
Starting Dropbox...
The Dropbox daemon is not installed!
Run "dropbox start -i" to install the daemon
$ ssh root@localhost
root@localhost's password:
<snip>
# python /usr/bin/dropbox start -i
Starting Dropbox...
Dropbox is the easiest way to share and store your files online.
Want to learn more? Head to http://www.dropbox.com/
In order to use Dropbox, you must download the proprietary daemon. [y/n] y
Error: Platform not supported
Run Code Online (Sandbox Code Playgroud)
所以我检查了命令行客户端和来自http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall 的纯文本内容,但当然这是为 …
所以我用密码创建了一个 gpg 加密文件:
gpg -c passwords.txt.gpg
Run Code Online (Sandbox Code Playgroud)
如何用 vi 打开它,编辑它,然后关闭它?(这样就不会创建passwords.txt文件,解密后的passwords.txt只在内存中! - 更好:关闭passwords.txt.gpg文件后,应该清理内存,所以它不应该包含未加密的密码)。
我的 OpenBSD 6.1 中还需要一个环回接口,IP 地址为 127.0.0.2。
我可以使用以下命令手动创建它:
ifconfig lo1 127.0.0.2
Run Code Online (Sandbox Code Playgroud)
为了在启动时使用它,我只是将该命令插入到/etc/rc.local.
我研究了一种更标准的方法来做到这一点,但没有成功。
拥有它/etc/rc.local也意味着我只有在启动过程的后期才有那个界面。
如何以更简洁的“OpenBSD”方式配置它?
我在一台使用了 5 年的笔记本电脑上运行 OpenBSD/i386 5.1。扬声器和耳机端口工作正常,但耳机端口有点松,所以我尝试安装外置 USB 声卡(Fiio E17 USB DAC)。在 Windows 上使用它没有问题。
该装置被检测到并且我创建了它的节点在/dev与sh /dev/MAKEDEV audio1,然后链接的设备的其余部分,以指向新的声卡。到目前为止一切顺利,我可以跑步cat /dev/urandom > /dev/audio并且听到白噪音。但是,我无法通过它运行任何其他音频。
tail /var/log/messages插入设备后我的:
Aug 30 10:03:55 s96j /bsd: uhidev0 at uhub1
Aug 30 10:03:55 s96j /bsd: port 1 configuration 1 interface 0 "FiiO FiiO USB DAC-E17" rev 1.10/0.01 addr 2
Aug 30 10:03:55 s96j /bsd: uhidev0: iclass 3/0
Aug 30 10:03:55 s96j /bsd: uhid0 at uhidev0: input=18, output=27, feature=0
Aug 30 10:03:55 s96j /bsd: uaudio0 at …Run Code Online (Sandbox Code Playgroud) 我安装了 OpenBSD 5.1 i386。我没有 GUI/X。我在谷歌上搜索了答案,但找不到真实的答案。如何仅使用终端连接到 WPA2 PSK/AES wifi 网络?(所以我没有“网络管理器”来简单地选择给定的 SSID,然后输入密码:D)
更新: wifi 卡:Atheros AR5424,我可以将其视为“ath0”
更新#2:
DHCP NWID SSID wpakey SSIDPWD
Run Code Online (Sandbox Code Playgroud)
在 /etc/hostname.ath0 中不起作用(然后是 sh /etc/netstart ath0)
更新#3:
ifconfig ath0 nwid SSID wpa wpapsk $(wpa-psk SSID SSIDPWD)
Run Code Online (Sandbox Code Playgroud)
给出:
ksh: wpa-psk not found
ifconfig: wpapsk: bad value
Run Code Online (Sandbox Code Playgroud)
更新#4:
路由器是一个 OpenWrt 10.03.1 盒子:
cat /etc/config/wireless
config 'wifi-iface'
option 'device' 'radio0'
option 'network' 'lan'
option 'mode' 'ap'
option 'ssid' 'SSID'
option 'encryption' 'psk2+ccmp'
option 'key' 'SSIDPWD'
option 'isolate' '1'
option 'maxassoc' '1'
Run Code Online (Sandbox Code Playgroud)
我在与 openbsd …
在安装 OpenBSD 5.1 时,我遇到了一个问题:
Do you expect to run the X Windows System?
Run Code Online (Sandbox Code Playgroud)
如果我说“是”,安装程序会对我的系统进行哪些更改?我知道 X Windows 是什么,但我不知道为什么安装程序想知道我是否打算使用它。它是否根据我的回答以某种方式启用/禁用 X?
使用 nginx/1.4.1 和 OpenBSD 5.4,64 位:

在使用目录列表时,我们如何设置 nginx 以显示完整的文件名(或至少从文件名中显示更多的默认文件名)?
谷歌搜索只给了我这个:
http://forum.nginx.org/read.php?2,124400,167420#msg-167420
January 18, 2011 08:36PM
fagtron
I looked all over the net and wasn't able to find this answer anyway, so I looked into the nginx source files and it's very easy.
Simply modify the file located at [b]src/http/modules/ngx_http_autoindex_module.c[/b] and then compile.
Change these lines:
[b]#define NGX_HTTP_AUTOINDEX_PREALLOCATE 50
#define NGX_HTTP_AUTOINDEX_NAME_LEN 50[/b]
to whatever you want, such as:
[b]#define NGX_HTTP_AUTOINDEX_PREALLOCATE 100
#define NGX_HTTP_AUTOINDEX_NAME_LEN 100[/b]
And then compile and restart nginx. That's …Run Code Online (Sandbox Code Playgroud) 当我尝试在我的 OpenBSD 上从源代码构建时,我在解包文件时遇到问题首先我认为它只是损坏的文件,但是在许多不同的程序和不同的下载方法(curl -O,FTP,在 Windows 上下载并通过WinSCP) 甚至同一个程序的不同文件 ( .xz, .bz2, .lz) 我开始相信我一定做错了什么。我在使用时遇到的错误
tar xzvf file
Run Code Online (Sandbox Code Playgroud)
是
gzip: stdin: unrecognized file format
tar: End of archive volume 1 reached
tar: Sorry, unable to determine archive format.
Run Code Online (Sandbox Code Playgroud)
它发生在不同的程序、不同的下载方法甚至不同的文件中,这让我很抓狂。
:文件,我无法解压缩现在的例子gnutls-3.4.3.tar.xz,并gmp-6.0.0a.tar.bz2通过Windows下载并通过WinSCP赋予二进制模式转移。
ls -L 输出:
-rw-r--r-- 1 root wheel 6546268 Jul 12 09:18 gnutls-3.4.3.tar.xz
-rw-r--r-- 1 root wheel 2319400 Jul 24 2015 gmp-6.0.0a.tar.bz2
Run Code Online (Sandbox Code Playgroud)
od -x 输出:
od -x gnutls-3.4.3.tar.xz | head -10
0000000 37fd 587a 005a …Run Code Online (Sandbox Code Playgroud)