问题标签 [slackware]
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.
linux - Make:找不到命令,但命令存在?
所以我有一个使用arm-eabi-none-xxx
命令的 make 文件,但是当我运行 make 时,出现“找不到命令”错误:
奇怪的是,该命令是否存在并且在我的路径中(以下与 makefile 位于同一目录中):
我可以运行 make 正在运行的命令:
所以。我读到如果./
在当前路径中,make 使用 shell 来执行命令,所以我试过了,但没有用。最初我根本无法运行arm-none-eabi-as
,因为它是 32 位二进制文件,并且我在 64 位系统(Slackware 14.0)上运行,但我按照此处的说明安装了 32 位库等。
所以问题是……我犯了什么愚蠢的小学生错误?
linux - 阻止 Facebook 访问的 IPtables 异常
我的网络上有 3 个 IP 范围,我使用命令行阻止了 Facebook 访问:
iptables -I FORWARD -m string --algo bm --string "facebook.com" -j DROP
我想对网络范围“192.168.0.x”做一个例外
我怎样才能做到这一点?
提前致谢!
python - upgradepkg 使用错误版本的 python 进行软件包安装
我使用的是默认具有 python 2.6 的 slackware。我已经安装了 python 2.7,并使用 slackbuilds 和 pip 成功地将 numpy、scipy 和 matplotlib 安装到了 python 2.7 中。
但是,当我尝试使用以下方法安装 pygame 时:
它安装到 python 2.6(txz 来自 pkgs.org)
有没有办法指定upgradepkg
我想要我们使用哪个 python 版本?我想肯定的方法是解压pygame文件,进入它并更改一些值,然后重新打包,然后再次运行升级命令......但我真的不知道我在做什么所以我想看看如果在我踏上那段旅程之前有更简单的方法。
更新:我在使用 PyGTK 时遇到了同样的问题,所以我开始认为这是 upgradepkg 的设置中的问题......无法在谷歌上正确地提出问题以提出解决方案
flash - youtube 在 slackware 14.0 上崩溃
有些视频会播放一会儿,然后它只是说“发生错误,请稍后再试”。
我使用的是 firefox 15,adobe flashplayer 11。我在 Slackware 13.37 上似乎没有这个问题。
我已经尝试安装 Flashplayer 的 SlackBuild 以及将 .so 从下载文件复制到插件。我也尝试过不同的浏览器。
Chrome 将播放没有音频输出的视频(我配置了 HDMI 输出... aplay 能够通过 HDMI 播放声音,我可以毫无问题地在 VLC 中观看电影)。
如果我使用 chrome,当我启动 youtube 时,这是 bash 中的输出:
如果我做:
我有声音,没问题(这是我的 HDMI 卡)
如果我这样做:
然后我得到“频道数不可用”
编辑:好的,更奇怪的是。当我同时播放 VLC 和 youtube 视频时,youtube 不再崩溃。相反,VLC 通过 HDMI 播放音频,而 youtube 通过笔记本电脑扬声器播放音频。
linux - 无法让熊猫进入 Slackware 14
我一直在尝试安装 python-pandas,收到一条错误消息:
我是 slackware 的新手(比如陡峭的学习曲线),所以我从各种网站获取了二进制文件,解压缩了文件,但我仍然不断收到这条消息。我的下载目录中有一个名为“usr”的新目录。我假设它应该放在 python 目录中,但我不完全确定。只是寻找一点建议。谢谢。
java - 即使在编码后也输出垃圾字符
所以,我基本上一直在尝试在我的程序中使用西班牙语字符,但是无论我在哪里使用它们,Java 都会打印出“?”。
我正在使用 Slackware,并在那里执行我的代码。
我更新了 lang.sh,并添加了: export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 在此之后,当我尝试打印时,它没有打印问号,而是其他垃圾字符。我在屏幕上打印了默认字符集,它已成功设置,但打印不正确。
帮助?
谢谢!
编辑:我在 NetBeans 上的 windows 中编写代码,并在 slackware 上执行 .class 或 .jar。此外,我似乎无法执行语言环境命令。我收到错误“bash:语言环境:找不到命令”。
这让我感到困惑:当我在 Slackware 控制台上回显任何特殊字符时,它们会完美显示,但是当我运行一个简单地打印它的命令行参数的 java 程序(并且我输入特殊字符作为命令行输入)时,它会输出垃圾。
java - Eclipse 在启动时挂起
我在运行 Eclipse 时遇到问题。我用 java 6 和 java 7 尝试了 3.7、4.2 和 4.3 版本。没有什么可以帮助我。它向我显示了弹出屏幕,但它没有开始加载(我没有机会选择工作区)。用参数启动它-debug -console
表明它在这一刻停止运行:
我已经启动了 JVisualVM,但我无法观察到任何特别之处。没有死锁等。
编辑
我的观察很深......在~60s pid 之后,日食已经死了。
编辑 2
现在它停在
编辑 3
我已经设法启动它,但只能使用-clean
参数并从命令行-data
参数中选择工作区。
linux - Configuring SSH with Keys in Slackware 13.0
The last day or so, I've been trying to figure out how to setup SSH on my Slackware box with public/private keys.
Somethings still confuses me:
In the sshd_config file, should I use a relative reference or an absolute reference when setting the path for the AuthorizedKeysFile directive? I've read that it can be either or.
Currently set to, AuthorizedKeysFile /root/.ssh/authorized_keys
I'm pretty sure that when generating a key through ssh-keygen it should be generated on the client machine and the public key should be copied to the server and added into the authorized_keys file. Is this correct?
I'm pretty sure that the permissions to the .ssh directory and authorized_keys file are correct.
drw------- .ssh
drwx--x--- authorized_keys
-rw----r-- known_hostsI've done a ps -e aux | grep sshd to see what user was running the sshd process. Here are the results: moros is a standard user account that i'm using to log into my box.
root 5449 0.0 0.0 4112 0980 ? Ss 01:06 0:00 /usr/sbin/sshd
root 5574 0.0 0.1 6700 2020 ? Ss 15:22 0:00 sshd: moros [priv]
root 5576 0.0 0.0 6700 1272 ? S 15:22 0:00 sshd: moros@pts/0
root 5609 0.0 0.0 2204 0628 pts/0 S+ 15:42 0:00 grep sshdHere's what part of my sshd_config looks like
Port 22
Protocol 2SyslogFacility AUTH
LogLevel VERBOSEPermitRootLogin yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile /root/.ssh/authorized_keysPasswordAuthentication yes
PermitEmptyPasswords noThe rest of it is standard default values.
Anyway, there are a few things that I've been able to determine so far. I know that ssh is working because I can login from a client machine with a password for a valid user on the slackware machine. I've generated a ssh-keygen rsa style and copied the pub key to the server using scp. At the moment, I'm pretty sure that the authorized_keys is setup correctly. I did a cat file >> authroized_keys and added the pub key that I copied to the server. The file has the form of ssh-rsa AAAAB3Nza..... for each line. I turned on VERBOSE logging to get as much information as possible. Last night, I saw in the log, "Failed publickey for moros from 'ip' port 'num' ssh2.
With that log message, I'm boiling the cause of the issue down to one of two things. Either sshd can not find my authorized_keys file and thus the reason for the failure of the key or that the permissions to either the .ssh folder or the authorized keys file are incorrect.
Has anyone run into similar problems with ssh keys and slackware in the past?
UPDATE
As it turns out, the AuthorizedKeysFile directive should state, .ssh/authorized_keys.
This now works when i login as some other than root.
css - windows/Slackware/Ubuntu 之间的 css 区别
我有一个使用 Joomla 和一些组件创建的网站,并且我已经自定义了样式。在 Windows 中,我测试的所有浏览器(包括 IE)都运行良好,对于 Linux Slackware 也是如此,而在 Linux Ubuntu 上我遇到了问题。事实上,主菜单的最后一个组件在 chrome 和 firefox 上都换了一个新行。
您可以尝试一下:http
://www.eliteboatcar.com/ 问题出在最后一个组件#menu div 上(它是“Contatti”按钮)。
谢谢
ubuntu - 使 VIM 光标表现得像猫王
几乎从第一个版本开始,我就一直在使用 Slackware Linux。多年来,我已经非常习惯 Elvis Editor,但现在我正在尝试切换到 Ubuntu(为了更新、便于查找软件包等)。最努力习惯的一件事是 VIM。我喜欢其中的一些功能,但 Elvis 中有一个功能我似乎无法在 VIM 中复制。
以下面的 PHP 代码为例:
现在,假设我想将这些变量放在一个名为MyVars
. 这会将上面的代码块更改为:
在猫王中,我会MyVars->
在 the 之前插入A
并点击ESC
,然后向下移动一行,向左箭头到 the B
,点击.
重复命令,当我再次向下移动光标时,光标已经准备好再次直接插入的前面C
。这可以节省大量时间,尤其是当需要完成相同更改的 20 或 30 个变量列表时。在 VIM 中,光标的行为不是这样的。在第二个向下光标之后,光标结束在;
之后4
,这意味着我需要按左箭头 5 次才能使光标回到所需位置。这实际上可能是 20 或 30 次,具体取决于需要编辑的行。
我似乎在文档中找不到任何可以改变这一点的编辑器。
任何帮助,将不胜感激。