archlinux

probe is not getting called in i2c driver

♀尐吖头ヾ 提交于 2019-12-12 00:38:40
问题 I am trying to learn to write a i2c driver on raspberry pi board and i have taken groove LCD back-light.Here driver.probe is not getting called whereas driver's inserted in system as i can see in dmesg. Init code of driver is getting called, and code => static int lcd_probe(struct i2c_client *i2c_client, const struct i2c_device_id *i2c_id) { int ret = 0; //struct lcd_data *lcd_data; // struct device *dev = &i2c_client->dev; // lcd_data->client = i2c_client; pr_debug("lcd_probe : calling the

Generating ISO with xorriso

删除回忆录丶 提交于 2019-12-11 18:33:57
问题 I'm trying to remaster ISO image of Archlinux using Rust. To get the ISO I need to run xorriso utility as external command using duct crate. However I get these (strange) errors (doesn't happen if I run it from shell script): cmd!("sudo","xorriso", "-x", "-as mkisofs", "-iso-level 3", "-full-iso9660-filenames", iso_label, eltorito_boot, eltorito_cat, "-no-emul-boot -boot-load-size 4 -boot-info-table", isohybrid, "-eltorito-alt-boot", efi, "-no-emul-boot -isohybrid-gpt-basdat", output, root)

Changing umask of apache on ArchLinux [closed]

邮差的信 提交于 2019-12-11 16:44:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . This didn't work: Setting the umask of the Apache user Arch doesn't have a /etc/apache2/envvars file, and changing the /etc/rc.d/httpd script didn't change anything. Maybe someone can enlighten me how/where to exactly change the rc-script, so apache has an umask 002 回答1: After trying again, strangely editing the

Vim YouCompleteMe Python subclasses are not detected on TAB-completion in Arch Linux

寵の児 提交于 2019-12-11 16:29:59
问题 I can TAB-complete current open file variables, paths & globals, but my python subclasses are not detected on TAB completion. For instance, import os # os is built-in library. os. # ycm does not complete members of this class. It has been 48h that I'm searching the solution. My /usr/bin/python -> /usr/bin/python2.7, all the tests pass 100% and the build was successful. > uname -r 4.0.5-1-ARCH I tried installing packages specific to Arch Linux from repositories and they don't seem to work. At

Mono compiler // Terminal emulator issue

浪尽此生 提交于 2019-12-11 09:14:09
问题 I get this error when I try to compile csharp or fsharp files. This happens when using gnome terminal or jetbrain rider. It works fine in tty or termials like xterm and urxvt. Also I am able to compile c, c++ and go code. Btw, I am using Arch/Antergos and got this issue yesterday. Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw

Content of /tmp is not visible from PHP-FPM when using Systemd

限于喜欢 提交于 2019-12-11 08:20:03
问题 Directory /tmp is not accessible from PHP-FPM running as Systemd service. Steps to reproduce: <?php print_r(shell_exec('ls /tmp')); ?> 回答1: This is default behaviour set by package maintainers. It's because there is PrivateTmp=true in /usr/lib/systemd/system/php-fpm.service. If you want to change it, you can create /etc/systemd/system/php-fpm.service.d/private-tmp.conf with contents: [Service] PrivateTmp=false 来源: https://stackoverflow.com/questions/21615786/content-of-tmp-is-not-visible-from

Output of Linux /proc/<pid>/maps in detail

与世无争的帅哥 提交于 2019-12-11 06:59:49
问题 In the following, you can see the 'cat proc/pid/maps' output of my running wu-ftpd: 00400000-00427000 r-xp 00000000 ca:01 64883 /usr/sbin/wu-ftpd 00626000-00627000 r--p 00026000 ca:01 64883 /usr/sbin/wu-ftpd 00627000-00629000 rw-p 00027000 ca:01 64883 /usr/sbin/wu-ftpd 00629000-00644000 rw-p 00000000 00:00 0 0245f000-02480000 rw-p 00000000 00:00 0 [heap] 7f1db9d70000-7f1db9d7c000 r-xp 00000000 ca:01 483644 /lib/x86_64-linux-gnu/libnss_files-2.15.so 7f1db9d7c000-7f1db9f7b000 ---p 0000c000 ca

Why did mysql data ownership change to systemd-journal-remote after running a docker container

不羁岁月 提交于 2019-12-11 04:43:48
问题 I have the mysql database stored in /home/mysql instead of /var/lib/mysql . The directory used to be owned by mysql . However, when I run the command docker-compose up with this yml file: version: '3' services: mariadb: image: mariadb restart: always volumes: - /home/mysql:/var/lib/mysql elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:5.6.4 environment: - "ES_JAVA_OPTS=-Xms750m -Xmx750m" - bootstrap.memory_lock=false site: build: . volumes: - "./app:/app" links: - mariadb

pyvenv installs wrong pip version

和自甴很熟 提交于 2019-12-11 03:52:21
问题 I'm creating a virtualenv with pyvenv env but the installed pip version is outdated. I can manually update pip in the virtual env but I would like to have the correct version automatically. Without venv activated: ~> pip -V pip 7.1.2 from /usr/lib/python3.4/site-packages (python 3.4) Installing the venv: ~> pyvenv env ~> source env/bin/activate.fish With venv activated: ~> pip -V pip 6.0.8 from /home/syntonym/test/env/lib/python3.4/site-packages (python 3.4) I'm using arch and have pip

matplotlib: Humor Sans does not displayed correctly accents

我的梦境 提交于 2019-12-11 03:29:22
问题 This is what I get from matplotlib if I choose Humor Sans: So "DISTÀNCIA" showed as "DIST?NCIA". It is well-displayed with other font. The code is here: # -*- coding: utf-8 -*- from matplotlib import pyplot as plt import numpy as np from pylab import * # Estil de còmic XKCD plt.xkcd() # Etiquetes fig = plt.figure() plt.title("Distància vs velocitat de les carreres d'atletisme") plt.xlabel('distància') plt.ylabel('velocitat de l\'atleta (homes)') # Configuracions ax = fig.add_subplot(1, 1, 1)