根据https://wiki.archlinux.org/index.php/Java,我可以通过调用命令在干净的Arch Linux安装上安装Open JDK 7
pacman -S jdk7-openjdk
Run Code Online (Sandbox Code Playgroud)
但是当这样做时,我得到一个错误说
error: target not found: jdk7-openjdk
Run Code Online (Sandbox Code Playgroud)
我已经注释掉了我最近的Pacman存储库/etc/pacman.d/mirrorlist并通过调用pacman -Syu进行了第一次更新,希望这会导致上面的包被发现.
如何使用pacman在Arch Linux上安装Open JDK 7?
编辑:我正在运行带有ARM处理器的Raspberry Pi,我希望得到一个针对其硬件定制的Java构建,并使用OS硬件浮点支持.
我使用的是Arch Linux,内核3.16.
从上一周开始,我的两个进程跟踪器提取和跟踪器存储占用了太多内存.它导致系统每2小时挂断一次.
跟踪器提取300 MB和跟踪器 - 存储2 GB RAM.(总RAM为3.8 GB)
我想知道这些跟踪器进程是什么以及它们的工作是什么.如果我杀了它们会对系统性能产生这种影响吗?
有什么方法可以永久地杀死它们,以便我可以摆脱这两个过程?
请帮我.
我一直试图写一个简单的提取抓取器来开始使用twitter Api.无论我在初始化Api时遇到了一些困难.在archlinux上运行python2我通过easy_install安装了twitter,从源代码构建并通过pip安装.这似乎都不起作用.
zergling :: ~/dev/kritter » python2
Python 2.7.2 (default, Jan 31 2012, 13:26:35)
[GCC 4.6.2 20120120 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import twitter
>>> api = twitter.Api()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Api'
Run Code Online (Sandbox Code Playgroud)
无论Twitter的pydoc是什么.我不知道我做错了什么.我希望你能提供帮助
更新:
我尝试使用twitter.api()而不是twitter.Api()得到以下错误:回溯(最近一次调用最后):文件"main.py",第8行,在api = twitter.api()TypeError:'module'对象不可调用
其他信息:
>>> print dir(twitter)
['NoAuth', 'OAuth', 'Twitter', 'TwitterError', 'TwitterHTTPError', 'TwitterResponse', 'TwitterStream', 'UserPassAuth', '__all__', '__builtins__', '__doc__', '__file__', '__name__', …Run Code Online (Sandbox Code Playgroud) 我想在arch linux中用python 2完全替换python 3.我已经阅读了https://wiki.archlinux.org/index.php/Python但它只提供了一个临时修复.我打电话的时候需要确保
#!/usr/bin/python
Run Code Online (Sandbox Code Playgroud)
我的程序使用python 2而不是python 3.
我正在尝试设置x11转发来监控嵌入式机器人平台上的视频,但我似乎无法让电路板生成图形输出.我在直接通过以太网连接的Beagleboard xM上运行Arch Linux(不过,我打算将来使用WiFi).当我尝试设置DISPLAY变量时,它会接受它但是当我尝试运行x11应用程序时会说:
(Object:287): Gtk-WARNING **: cannot open display: [displaynamehere]
Run Code Online (Sandbox Code Playgroud)
很明显[displaynamehere]是我试图设置为显示器的东西,但是没有显示位置似乎工作.有点奇怪的是,每当我通过ssh -X连接时,它都不会给我任何错误,也不会保存我的DISPLAY变量.
(编辑)我还检查了调试日志并得到了这个输出:
debug2: load_server_config: filename /etc/ssh/sshd_config
debug2: load_server_config: done config len = 315
debug2: parse_server_config: config /etc/ssh/sshd_config len 315
debug3: /etc/ssh/sshd_config:53 setting AuthorizedKeysFile .ssh/authorized_keys
debug3: /etc/ssh/sshd_config:75 setting ChallengeResponseAuthentication no
debug3: /etc/ssh/sshd_config:96 setting UsePAM yes
debug3: /etc/ssh/sshd_config:101 setting X11Forwarding yes
debug3: /etc/ssh/sshd_config:104 setting PrintMotd no
debug3: /etc/ssh/sshd_config:108 setting UsePrivilegeSeparation sandbox
debug3: /etc/ssh/sshd_config:124 setting Subsystem sftp /usr/lib/ssh/sftp-server
debug1: sshd version OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013
debug3: Incorrect RSA1 identifier
debug1: …Run Code Online (Sandbox Code Playgroud) sudo pacman -Syu
我尝试在我的 Manjaro Linux 上使用 pacman 更新所有软件包,pacman 一定会尽一切努力下载所有可用软件包的最新更新,在检查文件冲突后,它会抛出
...
(126/126) checking keys in keyring 100%
(126/126) checking package integrity 100%
(126/126) loading package files 100%
(126/126) checking for file conflicts
error: failed to commit transaction (conflicting files)
npm: /usr/lib/node_modules/npm/lib/exec/get-workspace-location-msg.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/@npmcli/git/lib/utils.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/balanced-match/.github/FUNDING.yml exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/just-diff/index.d.ts exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/just-diff/index.tests.ts exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/libnpmexec/CHANGELOG.md exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/libnpmexec/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/libnpmexec/README.md exists in filesystem
npm: …Run Code Online (Sandbox Code Playgroud) 因此,为了让MIT-SHM在运行在docker容器内的应用程序和在主机上运行的x11之间工作,我必须--ipc host在启动容器期间通过.我已经阅读了有关它应该做什么的文档.
假设应用程序不是以root身份运行(在容器内),那么这个可能的攻击向量是什么?换句话说,--ipc host安全性的妥协程度是多少?
我想要一些关于让 Haskell 在 Archlinux 上工作的(最佳)方法的指导。
我所说的工作是指所有,就ghci命令行工具而言,安装我没有的软件包 - 例如vector-space,我的一个问题的答案所指的 - 以及 Haskell 顽固学习者可能需要的任何其他东西。
Haskell 上的 Archlinux wikipage列出了使 Haskell 在系统上运行的三个(替代?)软件包,即ghc、cabal-install和stack。我在我的系统上安装了第一个和第三个,但我想我一定是稍后安装了后者(除非它是对 的依赖),同时进行了篡改(可能与作为 Haskell IDE 的 Vimghc相关)。此外,我安装了大量的软件包(为什么?谁知道?作为一个学习者,我一定已经多次说过,呃,让我们试试这个!)。haskell-*
cons这些包中的每一个都有优点和缺点吗(“ ”,啊)?我写了一个简单的程序.只是CTabFolder和CTabItem固有的WelcomTab.我想用浏览器填充我的WelcomeTab来渲染我的htmls.在WelcomeTab的init()方法我创建一个浏览器但是当程序想要构造它时,我得到这个错误
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.browser.Mozilla.initMozilla(Unknown Source)
at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
at org.hekmatof.Hbook.UI.WelcomeTab.init(WelcomeTab.java:55)
at org.hekmatof.Hbook.UI.WelcomeTab.<init>(WelcomeTab.java:30)
Run Code Online (Sandbox Code Playgroud)
...
另外我在基于Arch-Linux的KDE上使用Eclipse 3.7,因为我搜索了这个错误,无处不在告诉有关线程的句柄限制,但这是一个简单的程序,没有Font或Image ......要处理.我认为从操作系统获取处理应该是一个问题
我的/ sys/class/backlight中有两个文件夹:
1> acpi_video0 2> intel_backlight
intel_backlight没用,因为我可以使用以下命令来调整acpi_video0中的亮度(我正在运行Nvidia驱动程序):
例如:echo 50>/sys/class/backlight/acpi_video0/brightness
问题:使用xbacklight -inc +5输出:"没有输出具有背光属性"所以我需要让它使用acpi_video0
到目前为止,我已经尝试RM没有运气(同时使用sudo的,并允许更改为777递归)完全intel_backlight文件夹.
我只想热键xbacklight增加和减少亮度.我可以使用echo将acpi_video0中的亮度设置为硬值,但不知道如何以增量调整它.
请进一步建议!
问候 :)
编辑1 :(可能的替代) 对于将来遇到此问题的任何人,请安装xcalib.(设置:Arch Linux w/i3窗口管理器)
yaourt -S xcalib
Run Code Online (Sandbox Code Playgroud)
以及配置文件中的以下热键分配(在我的情况下为i3):
# Brightness control reset screen (100% brightness)
bindsym Mod1+Up exec xcalib -c
# Brightness control down
bindsym Mod1+Down exec xcalib -co 95 -a
Run Code Online (Sandbox Code Playgroud) archlinux ×10
linux ×6
java ×2
api ×1
beagleboard ×1
brightness ×1
cabal ×1
docker ×1
ghc ×1
haskell ×1
installation ×1
kde ×1
manjaro ×1
node.js ×1
process ×1
python ×1
python-2.7 ×1
python-3.x ×1
security ×1
ssh ×1
swt ×1
tracker ×1
twitter ×1
ubuntu ×1