Ubuntu

Ubuntu用户和开发人员的问答


1
无法通过VPN连接SSH到服务器
我知道这很混乱。让我解释一下。 我在路由器上设置了动态DNS。我验证了端口转发后,我可以连接到所需的应用程序(如果我在端口1337上运行某些程序并将该端口转发到适当的机器,则可以从外部毫无问题地连接到它)。 现在,如果我将Macbook连接到VPN并如上所述运行某些程序,它将按预期工作。但是,如果我将运行Ubuntu Server 16.04的计算机连接到VPN并运行某些内容或想通过ssh连接,则它将失败。我在路由器上转发了用于SSH连接的端口。我还尝试托管Web服务器,但也失败了。 该问题我该怎么办?这对我来说没有意义。 关于Ubuntu Server机器:这是一个全新安装的操作系统,配置了openvpn客户端和ssh服务器,不运行防火墙,不编辑iptables,通过以太网连接到路由器。 编辑:这是路由表:http : //pastebin.com/ay6fpLcL
12 networking  server  ssh  dns  vpn 

2
图片+音频= mp4:如何缩小视频尺寸?
我正在使用ffmpeg将JPG添加到MP4中以制作MP4。 因为只有一个图像可以制作视频,所以我想知道是否有减小视频尺寸的方法? 命令: $ ffmpeg -loop 1 -i image.jpg -i audio.mp3 -shortest -c:a copy output.mp4 结果: image.jpg = 26.7K(图像不清楚) audio.mp3 = 64.6M(54分钟) output.mp4 = 8060万(视频结果不太清楚,音乐效果仍然不错) MP4尺寸合适吗?
12 ffmpeg 

4
如何在Ubuntu 14.04中安装eigen 3.3?
我正在使用Ubuntu 14.04,我想在Ubuntu中安装eigen 3.3。我尝试下载Eigen 3(3.3)的最新版本并按以下方式安装 mkdir build cd build cmake .. make sudo make install 输出喜欢 -- Installing: /usr/local/include/eigen3/unsupported/Eigen/src/Skyline/SkylineStorage.h -- Installing: /usr/local/include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h -- Installing: /usr/local/include/eigen3/unsupported/Eigen/src/SparseExtra/MarketIO.h -- Installing: /usr/local/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockOfDynamicSparseMatrix.h -- Installing: /usr/local/include/eigen3/unsupported/Eigen/src/SparseExtra/DynamicSparseMatrix.h -- Installing: /usr/local/include/eigen3/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h -- Installing: /usr/local/include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h -- Installing: /usr/local/include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h -- Installing: /usr/local/include/eigen3/unsupported/Eigen/src/Splines/Spline.h 但是,当我使用检查我当前的本征版本时dpkg -p libeigen3-dev,输出为 Package: libeigen3-dev Priority: extra Section: …

1
更新到16.10后,nfs错误“无锁可用”
我vagrnat与virtualbox vm和nfs同步的文件夹一起使用以运行django应用程序,并且在更新到16.10后vagrant up在提供步骤中失败,并出现以下错误: Executed: /bin/bash -l -c "cd /home/vagrant/proj >/dev/null && /home/vagrant/venv/bin/python manage.py collectstatic --noinput" Copying '/home/vagrant/venv/lib/python3.5/site-packages/django/contrib/admin/static/admin/img/LICENSE' ... OSError: [Errno 37] No locks available 我尝试重新安装,nfs-kernel-server, nfs-common, liblockfile1, libnfsidmap2但没有运气。有任何想法吗?
12 nfs  16.10 



1
update-initramfs缺少/lib/modules/4.4.0-13-generic
我刚刚升级了linux-firmware软件包,然后使用了,$ sudo update-initramfs -u -k all但是出现了一些错误: $ sudo update-initramfs -u -k all [sudo] password for piotrek: update-initramfs: Generating /boot/initrd.img-4.4.0-34-generic Warning: No support for locale: en_US.utf8 update-initramfs: Generating /boot/initrd.img-4.4.0-31-generic Warning: No support for locale: en_US.utf8 update-initramfs: Generating /boot/initrd.img-4.4.0-13-generic WARNING: missing /lib/modules/4.4.0-13-generic Ensure all necessary drivers are built into the linux image! …

6
在Ubuntu上设置Arduino Uno IDE
我是Ubuntu的新手(我喜欢它)。我想将代码刻录到Arduino Uno。上载代码时,会显示错误消息Serial Port COM1 not fount found. Did you select the correct one from tools -> serial port menu?。现在,访问这些工具,我无法选择串行端口,因为它已被禁用。我附上了它的外观截图。我在Windows中做了类似的事情。如何在Ubuntu上找到串行端口?



2
如何打包系统服务?
我正在尝试打包一个单声道应用程序以作为systemd服务运行。 我已按照此处的说明进行操作:https : //wiki.debian.org/Teams/pkg-systemd/Packaging 我已经将dh-systemd(> = 1.5)添加到我的debian控制文件构建依赖中。 我将--with = systemd添加到我的规则文件中,如下所示: %: dh $@ --with=cli --with=systemd 我已将服务文件添加到名为mypackage.service的debian文件夹中,其内容如下: [Unit] Description=My Service Description After=network-online.target [Service] Type=simple ExecStart=/usr/bin/mono /usr/lib/mypackage/myservice.exe [Install] WantedBy=multi-user.target 但是,生成给出以下林田警告和错误: Now running lintian... E: mypackage: postrm-does-not-call-updaterc.d-for-init.d-script etc/init.d/mypackage W: mypackage: init.d-script-not-marked-as-conffile etc/init.d/mypackage E: mypackage: init.d-script-not-included-in-package etc/init.d/mypackage 这使我感到困惑,原因有几个 这些警告与init.d有关,后者是被systemd替换的旧系统,这些错误和警告是否错误,debuild认为我使用init.d是因为我配置了错误的软件包吗? 我的印象是--with = systemd会为我创建这些脚本。 更新资料 生成的postrm文件如下: …


2
符号链接到现有目录
是否有链接一种合适的方式/home/user/app/public来/home/user/public_html,考虑到目标已经存在的事实? 如果我这样做ln -s /home/user/app/public /home/user/public_html,我最终会拥有/home/user/public_html/public。 我想也有可能颠倒诸如之类的动作ln -s /home/user/public_html /home/user/app/public,但是我不确定如何避免/home/user/app/public/public_html最终结果。

1
./waf configure返回“检查alsa:未找到”。
我正在尝试在Ubuntu 14.04 LTS上安装Ardor,并确保已安装alsa-utils并已无数次重新安装,但无论我使用Ardor目录中的./waf configure进行多少操作,始终返回“检查alsa” :。未找到。”然后./waf configure停止运行,我被迫寻找其他可能缺少的alsa软件包。据我所知,我已经安装了alsa,但是./waf configure为什么不检测到它? 这是我正在使用的教程:http : //ardour.org/building_linux.html ,我在这里: 现在,构建 ./waf配置 ./waf
12 14.04  alsa  ardour 

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.