AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-20205

Daryl Spitzer's questions

Martin Hope
Daryl Spitzer
Asked: 2010-02-26 08:39:33 +0800 CST

当文件被覆盖(而不是附加到)时,是否有等效的 `tail -f`?

  • 8

如何持续监控被持续覆盖的文件?具体来说,该文件包含后台进程反复打开和重写的单行文本。

我希望tail -F能奏效,但它没有。

更新:我希望这不会是相关的,但我正在运行 Mac OS X 10.5.8。

tail overwrite
  • 5 个回答
  • 5146 Views
Martin Hope
Daryl Spitzer
Asked: 2010-02-17 13:23:21 +0800 CST

将 Nose 安装到我的主目录中(没有 sudo)?

  • 0

是否可以将 Nose ( http://somethingaboutorange.com/mrl/projects/nose/0.11.1/ ) 安装到 Linux 机器上我的主目录的子目录中?(我不在该机器的 sudoers 列表中。)如果是这样,我该怎么做?

installation python home-directory
  • 2 个回答
  • 1144 Views
Martin Hope
Daryl Spitzer
Asked: 2010-02-17 13:18:51 +0800 CST

如何将 PyYAML 安装到 Python 的本地安装中?

  • 1

我已将 Python 2.6.4 安装到预装了 Python 2.3.4 的 Linux 机器上的主目录(其中的一个子目录)中,因为我需要运行一些我认为需要大量工作才能完成的代码在 2.3.4 上运行。(我不在该机器的 sudoers 列表中。)

我希望我可以运行~/Python-2.6.4/python setup.py install (从我的主目录中的 PyYAML 目录,我解压缩了 PyYAML 源)并且它足够聪明,可以将它安装到我的本地 Python 2.6.4 安装中。但事实并非如此。(见附注)

是否可以将 PyYAML 安装到我的本地 Python 安装中,以便在我调用该 Python 时“导入 yaml”将起作用?如果是这样,我该怎么做?

PS这是我运行时的输出~/Python-2.6.4/python setup.py install:

running install
running build
running build_py
creating build/lib.linux-ppc64-2.6
creating build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/composer.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/nodes.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/dumper.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/resolver.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/events.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/emitter.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/error.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/loader.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/cyaml.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/scanner.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/__init__.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/serializer.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/reader.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/representer.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/constructor.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/tokens.py -> build/lib.linux-ppc64-2.6/yaml
copying lib/yaml/parser.py -> build/lib.linux-ppc64-2.6/yaml
running build_ext
creating build/temp.linux-ppc64-2.6
checking if libyaml is compilable
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC -I/home/dspitzer/Python-2.6.4/Include
-I/home/dspitzer/Python-2.6.4 -c
build/temp.linux-ppc64-2.6/check_libyaml.c -o
build/temp.linux-ppc64-2.6/check_libyaml.o
build/temp.linux-ppc64-2.6/check_libyaml.c:2:18: yaml.h: No such file
or directory
build/temp.linux-ppc64-2.6/check_libyaml.c: In function `main':
build/temp.linux-ppc64-2.6/check_libyaml.c:5: error: `yaml_parser_t'
undeclared (first use in this function)
build/temp.linux-ppc64-2.6/check_libyaml.c:5: error: (Each undeclared
identifier is reported only once
build/temp.linux-ppc64-2.6/check_libyaml.c:5: error: for each function
it appears in.)
build/temp.linux-ppc64-2.6/check_libyaml.c:5: error: syntax error
before "parser"
build/temp.linux-ppc64-2.6/check_libyaml.c:6: error: `yaml_emitter_t'
undeclared (first use in this function)
build/temp.linux-ppc64-2.6/check_libyaml.c:8: warning: implicit
declaration of function `yaml_parser_initialize'
build/temp.linux-ppc64-2.6/check_libyaml.c:8: error: `parser'
undeclared (first use in this function)
build/temp.linux-ppc64-2.6/check_libyaml.c:9: warning: implicit
declaration of function `yaml_parser_delete'
build/temp.linux-ppc64-2.6/check_libyaml.c:11: warning: implicit
declaration of function `yaml_emitter_initialize'
build/temp.linux-ppc64-2.6/check_libyaml.c:11: error: `emitter'
undeclared (first use in this function)
build/temp.linux-ppc64-2.6/check_libyaml.c:12: warning: implicit
declaration of function `yaml_emitter_delete'

libyaml is not found or a compiler error: forcing --without-libyaml
(if libyaml is installed correctly, you may need to
 specify the option --include-dirs or uncomment and
 modify the parameter include_dirs in setup.cfg)
running install_lib
creating /usr/local/lib/python2.6
error: could not create '/usr/local/lib/python2.6': Permission denied
installation python home-directory
  • 2 个回答
  • 13531 Views
Martin Hope
Daryl Spitzer
Asked: 2009-10-27 16:25:37 +0800 CST

如何设置在 VMware Fusion VM 中运行的 Linux,以便在共享存储中创建的目录具有写入权限?

  • 1

我在 VMware Fusion VM 中运行 Ubuntu(Ubuntu 8.04.3 LTS),我正在使用 Fusion 的共享功能共享我的 Mac 的主目录。我在我的主目录中创建了一个子目录,并使用 Finder 的获取信息(和“应用到封闭项目”)为“所有人”提供读写访问权限。但是当我(或程序)在 Ubuntu 中创建子目录时,我(在 Ubuntu 中)没有读取权限:

drwxr-xr-x 1 1818155768 302979775  68 2009-10-26 14:20 temp

(这是ls -l我的虚拟机中的一行,在 之后mkdir temp。)

是否可以配置 VM(或 Linux 来宾或 Max OS X 主机)以便创建具有写访问权限的目录?如何?

更新:我在我的 Mac 上创建了一个 /temp 目录,并在 Fusion 中以读写权限共享它。然后我做了以下事情:

$ cd /mnt/hgfs/temp/
$ ls
$ mkdir foo
$ ls -l
total 1
drwxr-xr-x 1 1818155768 80 68 2009-10-27 17:21 foo

如您所见,foo它是在 (Ubuntu) VM 中创建的,但该 VM 没有写入权限。

linux
  • 2 个回答
  • 1121 Views
Martin Hope
Daryl Spitzer
Asked: 2009-09-15 11:45:11 +0800 CST

如何在 Windows Server 2008 上配置 freeSSHd 以便可以使用 ssh 登录?

  • 19

我在 Windows Server 2008 机器上安装了freeSSHd(按照如何在 Windows Server 2008 中安装 SSH 服务器中的说明),包括:

  • 使用 NTLM 授权创建了一个名为“dspitzer”的用户
  • 在 Windows 防火墙中打开了端口 22 的异常

但是,当我尝试连接(从 Mac OS X 10.5.8 命令行)时,输入密码后权限被拒绝:

$ ssh 12.34.56.78
[email protected]'s password: 
Permission denied, please try again.
[email protected]'s password: 
Permission denied, please try again.
[email protected]'s password: 
Received disconnect from 12.34.56.78: 2: Too many attempts.

我也试过:

$ ssh [email protected]
[email protected]'s password: 
Permission denied, please try again.
[email protected]'s password: 
Permission denied, please try again.
[email protected]'s password: 
Received disconnect from 12.34.56.78: 2: Too many attempts.

我也尝试将授权更改为“密码存储为 SHA1 哈希”并输入一个简单的密码,但我遇到了同样的问题。而且我尝试了不同的用户名(“管理员”),但没有成功。

我已经确认我正在连接到我正在配置的服务器——如果我停止 freeSSHd 并尝试连接,我会得到:

$ ssh 12.34.56.78
ssh: connect to host 12.34.56.78 port 22: Operation timed out

我从 Linux 命令行得到完全相同的结果。

有什么建议或故障排除技巧吗?

更新:我尝试禁用防火墙(响应geeklin的评论),但没有任何区别。

更新#2:我不再拥有这台机器(我换了雇主),所以我无法验证答案。我想我能做的就是让这个问题成为“社区维基”。

linux
  • 6 个回答
  • 56269 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve