ubuntu-18.04

Serial port permission denied for non-root user with dialout group privileges even after reboot Ubuntu 18.04

会有一股神秘感。 提交于 2019-12-11 08:54:22
问题 I write systemd services that launch with root privileges and de-privilege themselves to a system account (called mxdaemon). These services require access to the physical serial port ( /dev/ttyS0 ) on the PC. Serial port ls -l : Serial port: crw-rw---- 1 root dialout 4, 64 Jun 13 22:00 /dev/ttyS0 When run as root, the service has no problem communicating via the serial port. When the service is configured to de-privilege to mxdaemon, I get a permission denied error when attempting to access

Polyglot ubuntu not able to download language files

混江龙づ霸主 提交于 2019-12-11 07:05:36
问题 I have installed polyglot in ubuntu system using sudo apt-get install polyglot also installed dependencies sudo apt-get install -y libicu-dev python3-pip when i run polyglot command in console polyglot polyglot.ini download LANG:en gives me following error tellusererror POLYGLOT: pipex_open(): execvp(): /home/userxxx/Projects/nlp_server/nlpserver: Permission denied nlpserver folder have permission as 777 Please help! 回答1: pip install -U git+https://github.com/aboSamoor/polyglot.git@master

Apache and mono can't find the default controller and show the homepage

依然范特西╮ 提交于 2019-12-11 06:10:41
问题 I am going to host an asp.net MVC 5 website (.net framework) on ubuntu server. The asp.net MVC 5 project that I am using is an asp.net MVC template from MonoDevelop. (Very simple project) I have used apache2 and installed mono based on this tutorial: https://medium.com/@shrimpy/configure-apache2-mod-mono-to-run-asp-net-mvc5-application-on-ubuntu-14-04-314a700522b9? but it doesn't work and it only shows the directories and files when I go to 127.0.0.1:80 Here is the page I face on the browser:

How to install cryptography on ubuntu 18.04 bionic?

断了今生、忘了曾经 提交于 2019-12-11 06:04:33
问题 I keep getting gcc errors when trying to install the python library cryptography. The main error is: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Note I'm using docker with ubuntu:bionic , and installing the following items: ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y \ build-essential \ python3 \ python3-pip \ python3-dev \ git \ libffi-dev \ libssl-dev Here's a longer log output: At top level: build/temp.linux-x86_64-3.6/_openssl.c:3555:13:

Getting attribute value from XML in bash script with XPath string()

£可爱£侵袭症+ 提交于 2019-12-11 04:55:16
问题 Preamble: This is not a duplicate since all other topics do not answer my specific issue. I'm on Xubuntu 18.04 using libxml-xpath-perl 1.42 (if that matters) Problem: I have an XML, let's say like so: <root> <level1> <somechild foo="bar" /> </level1> </root I want to get the value bar from somechild s attribute foo . However, when I query FOO=$(xpath -e '/root/level1/somechild/@foo' $XMLFILE)" in my bash script it returns foo="bar" instead of bar . I've already researched this issue and found

After Ubuntu 18.04 upgrade php7.2-curl cannot be installed

心不动则不痛 提交于 2019-12-09 04:32:17
问题 Upgraded to 18.04 from 16.04 today using do-release-upgrade -d During the upgrade I was informed that some packages would be removed, these included: Remove: libperl5.22 lxc-common perl-modules-5.22 php-imagick php7.1-curl php7.2-curl python3-certbot-nginx I could re-install imagick and certbot without issue, but if I try to install php7.2-curl I get the message: # apt install php7.2-curl -y Reading package lists... Done Building dependency tree Reading state information... Done Some packages

Installing vscode .deb package using terminal in ubuntu 18.04

若如初见. 提交于 2019-12-08 09:02:01
问题 I want to install Visual Code in ubuntu-18.04 with .deb package, i used: dpkg -i <file name.deb> i also tried: apt-get install -f but it says it needs libconf-2-4, and libconf-2-4 needs more things... Is there any way to install all of the dependencies together? 回答1: You can use apt for installing a package file , e.g., apt install ./filename.deb The "./" helps it see that is just a package file, and after that it will continue by evaluating dependencies. 来源: https://stackoverflow.com

The system tray is not supported on the current platform?

久未见 提交于 2019-12-07 18:04:29
问题 I'm trying to make a System Tray application on Ubuntu 18.04 using Java. This is the code that I'm executing: import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class App { static{ System.setProperty("java.awt.headless", "false"); } public static void main(String[] args) { // if(!SystemTray.isSupported()){ // System.out.println("System Tray is not supported."); // return; // } final PopupMenu popup = new PopupMenu(); Image img = Toolkit

How to correctly run Cuda toolkit in Ubuntu in the WSL (eventually to be used for YOLO)?

爱⌒轻易说出口 提交于 2019-12-07 12:33:57
问题 I followed the tutorial here from the Medium: https://medium.com/@GuruAtWork/setup-fastai-ubuntu-on-windows-10-44ca50b13a9 I was following it well until a MinGW was used for command lines. I am not sure how they went about doing this as the only way I could get nvcc to work is with sudo apt install nvidia-cuda-toolkit . However, this does not seem to complete the same thing as their tool kit is installed as if the exe was just run with Windows. However, that, of course, doesn't work with the

Coverity Scan fails to build <stdlib.h> with _GNU_SOURCE defined

情到浓时终转凉″ 提交于 2019-12-07 11:41:47
问题 The Coverity Scan Build Tool fails to compile any C file that includes <stdlib.h> on Ubuntu 18.04 when _GNU_SOURCE is defined: $ cat > main.c #include <stdlib.h> int main() { } $ $ gcc -D_GNU_SOURCE=1 -o main main.c $ $ /opt/cov-analysis/bin/cov-build --dir cov-int gcc -D_GNU_SOURCE=1 -o main main.c Coverity Build Capture (64-bit) version 2017.07 on Linux 4.15.0-20-generic x86_64 ... [WARNING] Emitted 0 C/C++ compilation units (0%) successfully ... $ The same build works perfectly on Ubuntu