你好,我有一个带有8GB SD卡的覆盆子PI,我已经安装了Archlinux.
现在,我很好奇在安装私有开发服务器所需的所有软件包之后,我已经使用了多少空间.结果就是这样.
Filesystem Size Used Avail Use% Mounted on /dev/root 1.7G 899M 690M 57% / devtmpfs 83M 0 83M 0% /dev tmpfs 231M 0 231M 0% /dev/shm tmpfs 231M 256K 231M 1% /run tmpfs 231M 0 231M 0% /sys/fs/cgroup tmpfs 231M 176K 231M 1% /tmp /dev/mmcblk0p1 90M 9.0M 81M 10% /boot
正如你所看到它只显示1.7G而不是+ - 8G我认为这是因为我已经在SD卡上安装了一次,但是在我搞砸了之后我又尝试了一下..可能旧的安装仍然可能在SD卡上?如果是这种情况,我怎么能看到这个并删除它?或者这是正常的吗?
提前致谢
我正在使用 archlinx 并安装了 ember-cli。在ember serve我recieving以下信息:
A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1452004013: inotify-add-watch(/home/cristian/projects/transport-company/node_modules/ember-cli/node_modules/testem/node_modules/socket.io-pure/node_modules/socket.io-client-pure/node_modules/engine.io-client-pure/node_modules/parseuri/node_modules/better-assert/node_modules/callsite) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?
所有我看到了类似的问题被清理图像或容器或孤立的卷解决,但我没有任何的这些问题.我甚至完全删除了/var/lib/docker,但仍然没有.
相关产出:
[N] ?> ~/W/W/cocagne on master ? docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro -v /var/lib/docker:/var/lib/docker martin/docker-cleanup-vol
umes
docker: Error response from daemon: Container command '/usr/local/bin/docker-cleanup-volumes.sh' not found or does not exist..
[N] ?> ~/W/W/cocagne on master ? docker-compose build 11:56:23
mysql uses an image, skipping
Building vitess
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 9, in <module>
load_entry_point('docker-compose==1.7.1', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3.5/site-packages/compose/cli/main.py", line 58, in main
command()
File "/usr/lib/python3.5/site-packages/compose/cli/main.py", line 109, in perform_command
handler(command, command_options)
File "/usr/lib/python3.5/site-packages/compose/cli/main.py", …Run Code Online (Sandbox Code Playgroud) 我正在使用Arch Linux。我已经阅读了有关systemd的内容,据我所知,它systemd是第一个过程,它将启动其余过程。但是当我使用时:
ps -aux
Run Code Online (Sandbox Code Playgroud)
结果显示/sbin/init具有PID1。当我使用时:
pstree -Apn
Run Code Online (Sandbox Code Playgroud)
结果显示systemd具有PID1。哪个正确?是/sbin/init开始systemd?
我试图安装imwheel,这是Linux的鼠标配置客户端,当我尝试安装软件包时遇到此输出时,我陷入了困境,就像我以前做过的,但从未遇到过这个问题(我曾经使用过pacaur);
eman@alexandria ~
[17:38:40]
> $ yaourt imwheel
1 aur/imwheel 1.0.0pre12-5 (15) (1.41)
Mouse wheel configuration tool for XFree86/Xorg
==> Enter n° of packages to be installed (e.g., 1 2 3 or 1-3)
==> ---------------------------------------------------------
==> 1
==> Downloading imwheel PKGBUILD from AUR...
x .SRCINFO
x PKGBUILD
x etcdir-install.patch
Zeph commented on 2017-12-05 20:38
imwheel 1.0.0pre12-5 (2015-08-14 12:11)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> y
==> imwheel dependencies: …Run Code Online (Sandbox Code Playgroud) 我无法在Firefox上激活Twitter网络通知,您可以在下面的屏幕截图中看到
标题真的说明了一切。每当我尝试在非 root 的目录中 makepkg 时,我都会收到上一个错误,然后是“发生了 unknwon 错误。退出...”。
我有以下 docker-compose 文件:
version: '3'
services:
web:
build:
context: ./django_httpd_mod_wsgi
ports:
- "8000:80"
db:
build:
context: ./postgresql
volumes:
- db-data:/var/lib/postgres/data
volumes:
db-data:
Run Code Online (Sandbox Code Playgroud)
我正在使用 archlinux 构建 psotgresql 映像:
以下是我的 postgresql Dockerfile:
FROM archlinux/base
RUN yes | pacman -S postgresql
RUN mkdir /run/postgresql/
RUN chown -R postgres:postgres /run/postgresql/
USER postgres
RUN initdb -D /var/lib/postgres/data
RUN psql -c 'CREATE DATABASE btgapp;'
RUN psql -c "CREATE USER simha WITH PASSWORD 'krishna';"
RUN psql -c 'GRANT ALL PRIVILEGES ON DATABASE btgapp TO simha;'
CMD ["/usr/bin/postgres","-D","/var/lib/postgres/data"] …Run Code Online (Sandbox Code Playgroud) 在新安装的 Gnome 上,mvn javafx:run由于此错误,我的 JavaFX 应用程序无法启动:
错误:JavaFX 未检测到字体:请参阅发行说明以了解正确的字体配置
但是我在发行说明中没有找到这样的指南。
我怎样才能让 JavaFX 工作?
jdk-openjdk 12.0.2.u10-10
GNOME 外壳 3.32.2
Maven 3.6.1
字体配置 2:2.13.1+12+g5f5ec56-1
maven-compiler-plugin 3.8.0 版本设置为 12
org.openjfx.{controls,web,fxml} 12.0.1
javafx-maven-插件 0.0.3
我有一个正在维护的 PKGBUILD 文件(用于 AUR)。它有一个值 'pkgrel',在每次构建包之前,我将其加 1(手动)。
总而言之,如果我想第六次构建包,我会手动将值设置为
pkgrel=6
Run Code Online (Sandbox Code Playgroud)
我还为其他进程编写了 bash 脚本。我被困在这里。请指导我如何通过任何 sed/awk 表达式增加 pkgrel 的值。我想要这样,也就是说,我第 7 次构建包,SED/AWK 表达式应该将值设置为 7
pkgrel=7
Run Code Online (Sandbox Code Playgroud)
在我的脚本中运行 makepkg 命令之前。
我不限制对 sed/awk 的回答,如果任何其他方法有效,请指导我。唯一的条件是它应该是 bash。