问题标签 [archlinux]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
7676 浏览

c - C Syslog.h 不写日志

你好 Stackoverflow 黑客!

我和 C syslog() 函数之间有一个非常轻微的严重问题或误解。

代码编译得很好,我可以看到它在做它的“虚拟工作”(ping 8.8.8.8),但定义的日志只是没有附加。我对此完全感到困惑,不知道可能出了什么问题。已经 SMAO(Searched My Ass Off - 试图推广它)但无法使其正常工作。

代码在这里:

所有帮助将不胜感激!

雌二醇


解决方案:

在 syslog-ng.conf 中添加了以下行:

所有包含 MD: 序列的日志消息都将被重定向到 management.log 文件。奇迹般有效。再次感谢您为我指明正确的方向。

0 投票
3 回答
2616 浏览

archlinux - Aircrack Ch:Arch Linux 上的 -1 问题

目前正在运行Arch Linux,我决定安装Aircrack-ng并在我自己的无线网络上试用。所以我安装了它,我在 Aireplay 上收到一个错误,说明了一些类似的内容

要么修补这个,要么使用标志 --ignore-negative-one

所以我一开始就使用了flag。它似乎有效,但我无法握手。这可能只是我,但我不确定。所以我决定找到那个补丁。我去了Aircrack的网站并找到了它。我按照说明进行操作,直到“制作”为止都很好。此时,它输出:

What can I do to fix this so I can use Aircrack?


uname -r outputs "2.6.38-ARCH" (without quotes).

0 投票
1 回答
702 浏览

c++ - 如何使用 qtcreator 链接到 Arch Linux 上的 yaml-cpp?

我对在我的媒体播放器项目中使用 Yaml 很感兴趣。唯一的问题是我不知道你是如何用 Yaml 编译的,尤其是在 qt-creator 上。由于某种原因,yaml-cpp 的 AUR 包似乎没有在 /usr/lib 中安装库,所以我不知道如何去做。我正在使用 Qt 并在 Qtcreator 环境中进行开发。帮助将不胜感激。

0 投票
1 回答
749 浏览

linux - Linux - Subversion - 提交后挂钩未执行

我正在运行 Arch linux。我已经安装了 Subversion 并将其设置为与 https 一起使用,一切似乎都运行良好,除了我的钩子。

我有一个钩子,它是 path/to/repo/hooks/post-commit。

它是可执行的。

我已经包含了一个日志语句: echo "Complete"。>> /path/hook.log

当从命令行以 http 用户身份执行时,脚本可以正常工作,包括日志语句。

当我提交更改时,我看不到日志的添加或脚本其余部分的任何操作。

我可能错误配置了什么?是否有任何日志可以检查这一点?

0 投票
2 回答
607 浏览

apache - Apache 在编辑配置文件并重新启动后搜索旧 DocumentRoot

我正在使用 Arch Linux 3.0-ARCH。我已将我DocumentRoot的 in/etc/httpd/conf/httpd.conf从更改/srv/http/var/www。然后我发出了这个命令:

虽然如果我将文件复制到/var/www,它们可以在 localhost 上看到。我已经设置了正确的权限——<code>/var/www 归 root 所有,它的组是www. 我和http运行 Apache 的用户都是该组的成员。对目录的权限是775.

0 投票
5 回答
24287 浏览

java - swt浏览器没有更多句柄错误

我写了一个简单的程序。只是 CTabItem 固有的 CTabFolder 和 WelcomTab。我想通过呈现我的 html 的浏览器填充我的 WelcomeTab。在 WelcomeTab 的 init() 方法中,我创建了一个浏览器,但是当程序想要构建它时,我得到了这个错误

...

此外,我在基于 Arch-Linux 的 KDE 上使用 Eclipse 3.7,因为我到处搜索这个错误,告诉我们句柄受限于线程,但这是一个简单的程序,没有字体或图像......要处理。我认为这应该是操作系统获取句柄的问题

0 投票
1 回答
186 浏览

php - TTY ,SWIG and PHP

Need some help here. I have a c++ library for communicating with an embedded module (ArchLinux) via tty. This library was compiled/converted into php using swig.

The issue now is that a sample program written in php and run from the command line executes as expected but when this same code is used as part of a web page's functionality it fails to execute.

My assumption based on my limited linux knowledge is that tty requires a console in order to run which is why it fails to run as part of a webpage??

Does anyone have any ideas as to how I can get this to work? I have read something about using posix_ttyname but I cant seem to find any code samples that demonstrate its use.

I have attached the offending c++ files along with a test main.php which works for review.

Thanks everyone

http://www.mediafire.com/?ctblcvsy86mdg8p

0 投票
2 回答
788 浏览

emacs - 如何查看我的 Emacs 是否使用 xft 支持构建?

我已经在 Arch linux 上使用 pacman 安装了 emacs。如何查看它是否支持 xft?

0 投票
7 回答
31108 浏览

python - 在archlinux上管理多个Python版本的“正确方法”

所以我读过这个 - https://wiki.archlinux.org/index.php/Python

从这个 wiki 可以清楚地看出,我可以通过以下方式安装 Python 2.7.2

我创建指向 python2 的符号链接是否合理

如果我不认为自己很快就会切换到 python 3.0?或者有没有更好的方法来管理多个 python 版本,比如我通常在 debian 系统(update-alternatives --config python)或 mac os x 系统(python select)上使用的?

澄清:

  • 我想找出的是-在archlinux系统上管理各种python版本的“最佳实践”是什么?
  • 我是 archlinux 的新手,但熟悉 ubuntu、debian 和 mac os x
0 投票
1 回答
1139 浏览

ubuntu - 访问 Amazon EC2 实例的替代方法应该 sshd 死吗?

在 debian 或 ubuntu 实例上,autossh 通常可以解决问题,而在 arch 实例上,通过将守护进程名称添加到 /etc/rc.conf 文件中的 DAEMONS 数组中。

尽管采取了这种措施(在各自的情况下),如果 sshd 仍然无法自动重启怎么办?如果 sshd 在重新启动后无法自动启动或由于某种原因 sshd 死机,我该如何重新获得对实例的控制?

在 linode.com 上,他们提供了一种名为 LISH(参考 - http://library.linode.com/troubleshooting/using-lish-the-linode-shell)的东西,它为我解决了这个特殊问题。Amazon EC2 上是否有等价物?我似乎找不到提到这种特性/功能的文档——我觉得这对于服务器的远程管理非常重要。