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-344895

bomben's questions

Martin Hope
bomben
Asked: 2020-12-16 08:20:25 +0800 CST

即使传出流量仅限于 tun0 上的 VPN,通过 enp3s0 (eth0) 下载种子是否正确?

  • 0

我根据此处Musclehead 的回答修改了我的 iptables,以便我transmission-daemon可以将传出流量发送到tun0(这是一个 VPN)。

(提示:我eth0的被称为enp3s0。)


现在,如果我添加一个 torrent下载并且我观察流量,sudo iptables -L -v唯一增加的数字与INPUT链相关enp3s0(这是我的以太网端口)。这些数字与我从 VPN 获得的状态相加。

这是否意味着我下载到我原来的 WAN 地址而不是隧道?

我认为当我添加一个 torrent 时,有关下载它的信息将被发送,tun0因此答案应该回到那个 IP 范围。


正如您在此处看到的,我生成的两个输出相隔几秒钟,设备上的流量从1356M到增加。2201Menp3s0

 $ sudo iptables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
 2417  172K f2b-sshd   tcp  --  any    any     anywhere             anywhere             multiport dports ssh
 170K   17M ACCEPT     all  --  tun0   any     anywhere             anywhere            
 330K 1356M ACCEPT     all  --  enp3s0 any     anywhere --THIS LINE anywhere            
  942  134K ACCEPT     all  --  lo     any     anywhere             anywhere            

...          

Chain OUTPUT (policy ACCEPT 483K packets, 269M bytes)
 pkts bytes target     prot opt in     out     source               destination         
   19  6545 ACCEPT     tcp  --  any    enp3s0  anywhere             192.168.100.0/24     tcp spt:9091 owner GID match debian-transmission
    0     0 ACCEPT     udp  --  any    enp3s0  anywhere             192.168.100.0/24     udp spt:9091 owner GID match debian-transmission
 229K  210M ACCEPT     all  --  any    tun0    anywhere             anywhere             owner GID match debian-transmission
  221 57168 ACCEPT     all  --  any    lo      anywhere             anywhere             owner GID match debian-transmission
   92  5372 REJECT     all  --  any    any     anywhere             anywhere             owner GID match debian-transmission reject-with icmp-port-unreachable

... 

秒后的第二个输出:

$ sudo iptables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
 2431  173K f2b-sshd   tcp  --  any    any     anywhere             anywhere             multiport dports ssh
 170K   17M ACCEPT     all  --  tun0   any     anywhere             anywhere            
 384K 2201M ACCEPT     all  --  enp3s0 any     anywhere --THIS LINE anywhere            
  942  134K ACCEPT     all  --  lo     any     anywhere             anywhere            

...          

Chain OUTPUT (policy ACCEPT 536K packets, 272M bytes)
 pkts bytes target     prot opt in     out     source               destination         
   19  6545 ACCEPT     tcp  --  any    enp3s0  anywhere             192.168.100.0/24     tcp spt:9091 owner GID match debian-transmission
    0     0 ACCEPT     udp  --  any    enp3s0  anywhere             192.168.100.0/24     udp spt:9091 owner GID match debian-transmission
 229K  210M ACCEPT     all  --  any    tun0    anywhere             anywhere             owner GID match debian-transmission
  221 57168 ACCEPT     all  --  any    lo      anywhere             anywhere             owner GID match debian-transmission
   92  5372 REJECT     all  --  any    any     anywhere             anywhere             owner GID match debian-transmission reject-with icmp-port-unreachable

... 

我还将添加我的路由表输出以便更好地理解:

 $ ip route show table local
broadcast 10.8.8.0 dev tun0  proto kernel  scope link  src 10.8.8.5 
local 10.8.8.5 dev tun0  proto kernel  scope host  src 10.8.8.5 
broadcast 10.8.8.255 dev tun0  proto kernel  scope link  src 10.8.8.5 
broadcast 127.0.0.0 dev lo  proto kernel  scope link  src 127.0.0.1 
local 127.0.0.0/8 dev lo  proto kernel  scope host  src 127.0.0.1 
local 127.0.0.1 dev lo  proto kernel  scope host  src 127.0.0.1 
broadcast 127.255.255.255 dev lo  proto kernel  scope link  src 127.0.0.1 
broadcast 192.168.100.0 dev enp3s0  proto kernel  scope link  src 192.168.100.91 
local 192.168.100.91 dev enp3s0  proto kernel  scope host  src 192.168.100.91 
broadcast 192.168.100.255 dev enp3s0  proto kernel  scope link  src 192.168.100.91 
networking iptables vpn transmission
  • 1 个回答
  • 107 Views
Martin Hope
bomben
Asked: 2020-12-15 13:02:09 +0800 CST

有人可以为特定用户和 iptables 中的 VPN 解释这些规则吗?

  • 0

我使用此处的脚本来设置规则,确保用户transmission-daemon只能通过我使用的 VPN 发送流量。

至少作者是这么说的。我无法理解以下输出。例如,这条线tcp spt:9091 owner GID match debian-transmission 是什么意思?为什么这条规则没有流量?

提示:我的以太网端口是enp3s0(如eth0)。

$ sudo iptables -L -v
Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
  436 35225 f2b-sshd   tcp  --  any    any     anywhere             anywhere             multiport dports ssh
 1085  221K ACCEPT     all  --  tun0   any     anywhere             anywhere            
 2913  923K ACCEPT     all  --  enp3s0 any     anywhere             anywhere            
  112 12221 ACCEPT     all  --  lo     any     anywhere             anywhere            

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0            all  --  any    any     anywhere             anywhere            

Chain OUTPUT (policy ACCEPT 4540 packets, 1267K bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     tcp  --  any    enp3s0  anywhere             192.168.100.0/25     tcp spt:9091 owner GID match debian-transmission
    0     0 ACCEPT     udp  --  any    enp3s0  anywhere             192.168.100.0/25     udp spt:9091 owner GID match debian-transmission
 2263  202K ACCEPT     all  --  any    tun0    anywhere             anywhere             owner GID match debian-transmission
   12  2581 ACCEPT     all  --  any    lo      anywhere             anywhere             owner GID match debian-transmission
    0     0 REJECT     all  --  any    any     anywhere             anywhere             owner GID match debian-transmission reject-with icmp-port-unreachable
networking iptables vpn transmission
  • 1 个回答
  • 143 Views
Martin Hope
bomben
Asked: 2020-11-21 01:42:21 +0800 CST

为什么 iptables -F 将我踢出 ssh 会话?

  • 1

我想从这个问题中向 iptables 添加一些规则,并回答通过 vpn(在我的情况下为 surfshark)传输来自 torrent 程序传输的路由流量。

在添加自定义规则之前,至少有两个答案用于iptables -F刷新表。

其中一个答案专门引用了无头服务器(如我的)。所以我怀疑这应该可行。

但是,如果我使用iptables -F,我会立即被踢出与服务器的 ssh 会话。我无法在终端上键入任何新命令,必须重新启动服务器才能再次登录。

我在服务器上运行了一个防火墙,允许端口 22 访问每个 IP。


为了澄清起见,我将在应用接受的答案之前和之后添加一些输出:

之前(注意policy DROP):

     $ sudo iptables -xvnL
Chain INPUT (policy DROP 21 packets, 5628 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
     387    31969 f2b-sshd   tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 22
   27008 50413306 ufw-before-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
   27008 50413306 ufw-before-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
     153    26176 ufw-after-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
      21     5628 ufw-after-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
      21     5628 ufw-reject-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
      21     5628 ufw-track-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain FORWARD (policy DROP 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
       0        0 ufw-before-logging-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       0        0 ufw-before-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       0        0 ufw-after-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       0        0 ufw-after-logging-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       0        0 ufw-reject-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       0        0 ufw-track-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT 7 packets, 324 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
    7130   870596 ufw-before-logging-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    7130   870596 ufw-before-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
     997   113175 ufw-after-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
     997   113175 ufw-after-logging-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
     997   113175 ufw-reject-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
     997   113175 ufw-track-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0      

 

后:

 $ sudo iptables -L -v
Chain INPUT (policy ACCEPT 12648 packets, 12M bytes)

这是在我设置为之后policy ACCEPT,然后刷新,然后在此处transmission-daemon添加来自其他答案的规则,然后在重新启动后使此设置保持不变,重新启动并登录。我现在想,但这会再次把我踢出去。sudo dpkg-reconfigure iptables-persistentsshpolicy DROP

ufw也许很有趣:我只是为了确保安全而停用了防火墙。在我重新激活它之后,它也把我扔了出去(while policy ACCEPT)。当然,我有一个allow 22规则。我必须重新启动,然后才能使用正常工作的防火墙再次登录。

我缺乏了解,iptables并且一定会调查它。我不知道如果主要策略是ACCEPT并且防火墙有一个开放的22.

 $ sudo iptables -xvnL
[sudo] Passwort für ben: 
Chain INPUT (policy ACCEPT 34981 packets, 9871660 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
     121    15110 f2b-sshd   tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 22
       0        0 ACCEPT     all  --  tun0   *       0.0.0.0/0            0.0.0.0/0           
       0        0 ACCEPT     all  --  eth0   *       0.0.0.0/0            0.0.0.0/0           
     134    12445 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0           

Chain FORWARD (policy DROP 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
       0        0            all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT 19730 packets, 3108705 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
       0        0 ACCEPT     tcp  --  *      eth0    0.0.0.0/0            192.168.100.0/25     tcp spt:9091 owner GID match 136
       0        0 ACCEPT     udp  --  *      eth0    0.0.0.0/0            192.168.100.0/25     udp spt:9091 owner GID match 136
       0        0 ACCEPT     all  --  *      tun0    0.0.0.0/0            0.0.0.0/0            owner GID match 136
       0        0 ACCEPT     all  --  *      lo      0.0.0.0/0            0.0.0.0/0            owner GID match 136
       0        0 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            owner GID match 136 reject-with icmp-port-unreachable

Chain f2b-sshd (1 references)
    pkts      bytes target     prot opt in     out     source               destination         
     121    15110 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain ufw-after-forward (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-after-input (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-after-logging-forward (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-after-logging-input (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-after-logging-output (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-after-output (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-before-forward (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-before-input (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-before-logging-forward (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-before-logging-input (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-before-logging-output (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-before-output (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-logging-allow (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-logging-deny (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-not-local (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-reject-forward (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-reject-input (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-reject-output (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-skip-to-policy-forward (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-skip-to-policy-input (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-skip-to-policy-output (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-track-forward (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-track-input (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-track-output (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-user-forward (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-user-input (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-user-limit (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-user-limit-accept (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-user-logging-forward (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-user-logging-input (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-user-logging-output (0 references)
    pkts      bytes target     prot opt in     out     source               destination         

Chain ufw-user-output (0 references)
    pkts      bytes target     prot opt in     out     source               destination 

这里的防火墙规则:

$ sudo ufw status
Status: Aktiv

Zu                         Aktion      Von
--                         ------      ---
22                         ALLOW       192.168.100.0/24          
5900                       ALLOW       192.168.100.0/24           # vnc
1900                       ALLOW       192.168.100.0/24           # minidlna
8200                       ALLOW       192.168.100.0/24           # minidlna
445                        ALLOW       192.168.100.0/24           # cifs
5901                       ALLOW       192.168.100.0/24           # vnc
5902                       ALLOW       192.168.100.0/24           # vnc

另外一件事:我有eth0界面吗?我的 ZOTAC mini PC 有两个以太网连接,我只是很困惑,eth0没有出现。用于设置规则的脚本使用IFACE_INTERNAL=eth0. 这可能是个问题吗?

$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 00:01:2e:4d:52:96 brd ff:ff:ff:ff:ff:ff
3: enp4s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:01:2e:4d:52:9b brd ff:ff:ff:ff:ff:ff
4: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 0c:d2:92:57:c2:53 brd ff:ff:ff:ff:ff:ff
networking server iptables ssh firewall
  • 1 个回答
  • 534 Views
Martin Hope
bomben
Asked: 2020-08-23 04:00:04 +0800 CST

为什么我在 openmediavault 中的共享文件夹仍然被引用?

  • 0

尽管我删除了所有引用(我想),但我很难找出为什么引用标签没有消失。

openmediavault
  • 1 个回答
  • 2073 Views
Martin Hope
bomben
Asked: 2019-11-14 10:03:34 +0800 CST

如何安装罗技媒体服务器(Squeezebox 服务器)?

  • 3

我在哪里可以获得 Logitech Media Server 的最新安装文件以及如何正确安装?

(我在 Raspberry Pi 2 上运行它,由于 SD 卡出现故障,我不得不重新安装几次。所以我将回答这个问题,主要是为了提醒自己。)

software-installation mediaserver logitech squeezebox
  • 2 个回答
  • 15165 Views
Martin Hope
bomben
Asked: 2019-09-05 03:24:00 +0800 CST

如果在制作过程中丢失了 git 存储库的头文件,该放在哪里?

  • 0

我正在从源代码安装,而make我收到文件丢失的错误:

  CXX      src/math/libbitcoin_la-crypto.lo
  CXX      src/math/libbitcoin_la-elliptic_curve.lo
src/math/elliptic_curve.cpp:23:10: fatal error: secp256k1.h: No such file or directory
 #include <secp256k1.h>
          ^~~~~~~~~~~~~
compilation terminated.

我想这个头文件可以在这里找到,所以我可以下载它来包含它。但我不知道该放在哪里。

另外,我不确定这是否有用。

自述文件说“最小的libbitcoin 构建需要 boost 和 libsecp256k1。” 所以我已经安装libsecp256k1在我的系统上。但我不确定这就是他们的意思。

git c++
  • 1 个回答
  • 722 Views
Martin Hope
bomben
Asked: 2019-08-04 00:56:10 +0800 CST

如何使用 HDp60 列出所有 mp4 文件(将它们与 p30 分开)?

  • 0

我需要将我的 mp4 文件分成 p30 和 p60 并希望使用命令行工具来执行此操作。我知道有一个选项可以检查媒体文件的详细信息,我需要批量执行此操作。有任何想法吗?

command-line mp4 batch
  • 1 个回答
  • 89 Views
Martin Hope
bomben
Asked: 2019-07-31 02:46:20 +0800 CST

为什么使用 cifs 时服务器和客户端上的 UID 必须匹配?

  • 0

我从一个用户(1000)的 linux 客户端连接到服务器。

两台机器上的用户名相同,但 UID 不同。

当我连接文件时,文件显示为归所有,1001而不是USER我期望的那样。我希望 cifs 将原始用户转换为我在客户端使用的用户。但这种情况并非如此。似乎我必须在客户端和服务器上都有类似的用户,并且还要让他们在两者上都分配相同的 UID。但我无法想象这是唯一的解决方案。

客户端有 mount.cifs 6.4 版。

我的 fstab 是

//192.168.111.190/hgst /home/ben/hgst cifs vers=1.0,noauto,users,uid=1001,username=USER,password=PASSWORD.

我已经将其更改为包含vers=1.0and uid=1001。

该手册说我可能会forceuid在客户端上使用来强制某个用户。如果我将此选项包含在我的 fstab 中,我会得到一个invalid argumenton mount,两者都有 1000 和 1001。我不在forceuid服务器上使用。

我的服务器正在运行 openmediavault 3,我的客户端是 Lubuntu 16.04 LTS。

fstab samba mount cifs
  • 3 个回答
  • 3699 Views
Martin Hope
bomben
Asked: 2019-01-20 01:59:52 +0800 CST

如何恢复使用 openmediavault 备份插件(和 fsarchiver 选项)完成的备份?

  • 0

我的硬件设置是

  • 处理器 x64
  • RAID6 带 7 个磁盘(是的,我将更改为 snapraid)
  • 带有操作系统 OMV4 的 SSD 连接到 SATA 端口
  • 备份闪存 USB 选项(如果 SSD 不工作,我插入 USB 并重新启动)

我的软件设置是

  • OMV 4.1.17
  • OMV-附加
  • 我使用 Web-GUI 的备份插件进行了备份。
  • 备份设置:fsarchiver(无密码)
  • 备份目的地:最简单的备份方法是备份到我的 RAID 阵列。

我想知道如何使用备份文件将备份实际还原到磁盘。

backup restore openmediavault
  • 1 个回答
  • 14164 Views
Martin Hope
bomben
Asked: 2018-10-20 13:06:04 +0800 CST

是通过鼠标在 LXQt 中添加快速启动的唯一方法吗?

  • 10

我尝试在 Lubuntu 18.10 的面板中添加一个快速启动项。这似乎只适用于从开始菜单拖放而不是通过面板设置菜单。

panel lxqt
  • 4 个回答
  • 20954 Views
Martin Hope
bomben
Asked: 2018-10-20 09:15:41 +0800 CST

有没有办法让 Lubuntu 18.10 看起来像 Lubuntu 18.04?

  • 11

由于 Lubuntu 将其桌面从 LXDE 更改为 LXQt,因此面板和文件管理器 PCmanFM 的图标也发生了变化。我不是一个有经验的用户,但我想知道为什么技术的变化也必须伴随桌面环境的外观和感觉的变化。

特别是当 Lubuntu 18.10 也使用 PCmanFM(qt 版本)时,我不明白为什么 PCmanFM 看起来不像 18.04 那样干净。

有没有办法使用设置,例如 openbox 配置管理器或其他设置,使新的 Lubuntu 看起来像最后一个?

lubuntu lxde pcmanfm 18.10 lxqt
  • 3 个回答
  • 6677 Views
Martin Hope
bomben
Asked: 2018-07-19 02:20:07 +0800 CST

如何使 pdfsam 在 (L)ubuntu 18.04 中工作?

  • 3

我安装了以下版本的 OpenJDK:

java-1.11.0-openjdk-amd64      1101       /usr/lib/jvm/java-1.11.0-openjdk-amd64
java-1.8.0-openjdk-amd64       1081       /usr/lib/jvm/java-1.8.0-openjdk-amd64

在 Lubuntu 18.04 中使用 PDFsam 时出现以下错误:

INFO   [12:15:47]: Starting PDFsam
INFO   [12:15:48]: Transparent windows not supported by the platform
INFO   [12:15:48]: Configuring Sejda 3.2.38
INFO   [12:15:48]: Gestarted in 1 second
INFO   [12:15:57]: 3.pdf loaded
INFO   [12:15:57]: 4.pdf loaded
INFO   [12:15:57]: 5.pdf loaded
INFO   [12:15:58]: Starting task (org.sejda.impl.sambox.MergeTask@81b1817) execution.
WARN   [12:15:59]: New fonts found, font cache will be re-built
WARN   [12:15:59]: Building on-disk font cache, this may take a while
ERROR  [12:15:59]: Unexpected error
java.lang.NoClassDefFoundError: Could not initialize class org.sejda.sambox.pdmodel.font.PDType1Font
at org.sejda.impl.sambox.util.FontUtils.<clinit>(FontUtils.java:74)
at org.sejda.impl.sambox.component.PDDocumentHandler.close(PDDocumentHandler.java:231)
at org.sejda.common.ComponentsUtility.nullSafeClose(ComponentsUtility.java:63)
at org.sejda.common.ComponentsUtility.nullSafeCloseQuietly(ComponentsUtility.java:49)
at org.sejda.impl.sambox.MergeTask.closeResources(MergeTask.java:232)
at org.sejda.impl.sambox.MergeTask.after(MergeTask.java:237)
at org.sejda.core.service.DefaultTaskExecutionService.actualExecution(DefaultTaskExecutionService.java:151)
at org.sejda.core.service.DefaultTaskExecutionService.execute(DefaultTaskExecutionService.java:71)
at org.sejda.core.service.DefaultTaskExecutionService.execute(DefaultTaskExecutionService.java:58)
at org.pdfsam.task.TaskExecutionController.lambda$request$0(TaskExecutionController.java:87)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
lubuntu openjdk 18.04 pdfsam
  • 2 个回答
  • 3259 Views
Martin Hope
bomben
Asked: 2018-05-05 21:21:58 +0800 CST

为什么从 16.04 升级到 18.04 后 mount.cifs 不再在 fstab 中工作?

  • 10

我用于连接本地 NAS 的 fstab 总是

//192.168.111.112/RAID /home/moi/share/OMV cifs noauto,users,username=USERNAME,passwd=PASSWORD

将我的系统从 Lubuntu 16.04 升级到 18.04 后,这不再起作用,并给出错误消息:

Failed to query password: Permission denied
Password for USER@//192.168.111.112/RAID: mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
fstab samba mount lubuntu cifs
  • 5 个回答
  • 29672 Views
Martin Hope
bomben
Asked: 2017-05-24 04:15:50 +0800 CST

关闭文档时如何关闭 Libre Office?(LXSession 的默认设置)

  • 1

我使用 Lubuntu 16.04 和 Libre Office 版本:5.1.6.2。

当我处理文本文档然后保存并关闭它时,libre office 会显示主屏幕,我可以在其中选择不同的文档并创建一个新文档。

我不想要那个。

关闭文档时,我希望关闭整个应用程序。

我该如何设置?

编辑:我通过单击打开文档。'document' 的 LXSession 默认值已经是 'Libre Office Writer'。似乎 LXSession 默认打开了整个 Libre Office,而不仅仅是作者。

lubuntu
  • 2 个回答
  • 625 Views
Martin Hope
bomben
Asked: 2017-04-10 01:58:26 +0800 CST

OpenVPN 通过终端和通过网络管理器有什么区别?

  • 2

通过网络管理器设置 OpenVPN 连接时,我需要导入 CA.crt 文件。这是最低要求。

使用终端命令时,sudo openvpn config.conf我只需要配置文件但不需要额外的证书。

为什么是这样?

networking
  • 1 个回答
  • 204 Views
Martin Hope
bomben
Asked: 2017-01-26 14:42:27 +0800 CST

如何在 WINE 中运行 Lubuntu 16.04 下的文明 III(年度游戏版)?

  • 4

我在 Lubuntu 16.04 下安装了 WINE(稳定版,来自 Ubuntu 存储库)1.6.2 版,并从 DVD 成功安装了 Civilization III 年度游戏。但是,之后游戏将无法运行。这很奇怪,因为游戏中还包含的编辑器确实可以工作。我想知道应该为 Civ 使用哪种设置。由于这是一款可以在 Windows XP 下运行的游戏,我怀疑需要进行调整——也许使用 winetricks。

这是使用终端运行时的输出:

(“keine Berechtigung”的意思是“不允许”)

我在这里发现“Wine 必须通过 ASPI 呈现驱动器,我猜想将 I/O 转换为原生 Linux 格式。出于某种原因,这似乎无法在您的设置中正常工作。”

ben@Shuttle:~/.wine/drive_c/Program Files (x86)/Infogrames/Civilization III$ wine start Civilization3.exe
fixme:exec:SHELL_execute flags ignored: 0x00000100
ben@Shuttle:~/.wine/drive_c/Program Files (x86)/Infogrames/Civilization III$ fixme:aspi:SendASPI32Command ASPI: Partially implemented SC_HA_INQUIRY for adapter 0.
fixme:aspi:SendASPI32Command ASPI: Partially implemented SC_HA_INQUIRY for adapter 1.
err:aspi:SCSI_OpenDevice Failed to open device /dev/sg1: Keine Berechtigung
fixme:aspi:SendASPI32Command ASPI: Partially implemented SC_HA_INQUIRY for adapter 2.
err:aspi:SCSI_OpenDevice Failed to open device /dev/sg2: Keine Berechtigung
fixme:aspi:SendASPI32Command ASPI: Partially implemented SC_HA_INQUIRY for adapter 3.
fixme:aspi:SendASPI32Command ASPI: Partially implemented SC_HA_INQUIRY for adapter 4.
err:aspi:SCSI_OpenDevice Failed to open device /dev/sg4: Keine Berechtigung
lubuntu
  • 1 个回答
  • 1196 Views
Martin Hope
bomben
Asked: 2017-01-18 00:58:31 +0800 CST

如果“无法创建删除日志文件:无授权”是什么问题?

  • 7

在我的 Lubuntu 16.04 上,我连接到我的 NAS,但无法删除文件。错误消息类似于:

Deletion log file could not be created: No authorization.

我与共享的连接是通过以下方式建立的:

sudo mount -t cifs -o user=USERSERVER,uid=LOCALUSER,gid=LOCALGROUP,username=USERSERVER,password=PW //192.168.0.102/RAID6 /media/OMV
permissions
  • 1 个回答
  • 687 Views
Martin Hope
bomben
Asked: 2017-01-09 06:10:50 +0800 CST

如何在华硕 X205TA (F205TA) 上安装 Lubuntu 16.04

  • 3

有很多指南和讨论有时会更新,因此很难遵循。

我在我的笔记本电脑上安装了两次,并想分享在这台笔记本电脑上安装 Ubuntu 16.04(或它的一种版本——在我的例子中是 Lubuntu 16.04)的最新方法。

system-installation
  • 3 个回答
  • 9266 Views

Sidebar

Stats

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

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve