The small linux problem thread

I think I got pkg-config through “C Development Tools and Libraries”, but note that this tries and fails to install “pkgconfig”. Either that or “redhat-lsb” installed it.

Edit… found it.

fed.28@zero:~$ dnf info pkgconf-pkg-config
Last metadata expiration check: 0:51:10 ago on Sat 12 May 2018 05:25:54 PM EDT.
Installed Packages
Name         : pkgconf-pkg-config
Version      : 1.4.2
Release      : 1.fc28
Arch         : x86_64
Size         : 3.0 k
Source       : pkgconf-1.4.2-1.fc28.src.rpm
Repo         : @System
From repo    : fedora
Summary      : pkgconf shim to provide /usr/bin/pkg-config
URL          : http://pkgconf.org/
License      : ISC
Description  : This package provides the shim links for pkgconf to be automatically
             : used in place of pkgconfig. This ensures that pkgconf is used as
             : the system provider of pkg-config.

fed.28@zero:~$ dnf info pkgconf
Last metadata expiration check: 0:47:08 ago on Sat 12 May 2018 05:25:54 PM EDT.
Installed Packages
Name         : pkgconf
Version      : 1.4.2
Release      : 1.fc28
Arch         : x86_64
Size         : 60 k
Source       : pkgconf-1.4.2-1.fc28.src.rpm
Repo         : @System
From repo    : fedora
Summary      : Package compiler and linker metadata toolkit
URL          : http://pkgconf.org/
License      : ISC
Description  : pkgconf is a program which helps to configure compiler and linker flags
             : for development frameworks. It is similar to pkg-config from freedesktop.org
             : and handles .pc files in a similar manner as pkg-config.
fed.28@zero:~/solfege-3.22.2$ sudo dnf groupinstall "C Development Tools and Libraries"
Last metadata expiration check: 0:26:22 ago on Sat 12 May 2018 05:28:14 PM EDT.
Group 'C Development Tools and Libraries' is already installed.
No match for group package "pkgconfig"

fed.28@zero:~/solfege-3.22.2$ sudo dnf install redhat-lsb texinfo pygtk2-devel

fed.28@zero:~/solfege-3.22.2$ configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a Python interpreter with version >= 2.5... python
checking for python... /bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking how to run the C preprocessor... gcc -E
checking for headers required to compile python extensions... found
checking for a BSD-compatible install... /bin/install -c
checking whether make sets $(MAKE)... yes
checking for swig... no
checking for lilypond... no
checking for bzr... notfound
checking for gs... /bin/gs
checking for xgettext... /bin/xgettext
checking for msgfmt... /bin/msgfmt
checking for msgmerge... /bin/msgmerge
checking for msggrep... /bin/msggrep
checking for makeinfo... /bin/makeinfo
checking for sed... /bin/sed
checking for cat... /bin/cat
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.17.0... yes
checking for PYGTK... yes
checking for xml2po... no
checking for xsltproc... no
checking for /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether gcc needs -traditional... no
configure: creating ./config.status
config.status: creating run-solfege.py
config.status: creating solfege/buildinfo.py
config.status: creating topdocs/defs.texi
config.status: creating windowsinstaller.iss
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating autopackage/default.apspec
config.status: creating help/C/solfege.xml
config.status: creating config.h
configure: 
configure: Please remember to rerun configure if you change swig versions!
configure: 
configure: xml2po was not found. This is no big deal, but it mean that the
configure: translated user manuals will not be updated if you make changes
configure: to the english manual.

fed.28@zero:~/solfege-3.22.2$ make
/bin/msgfmt po/ru.po -o po/ru.mo
/bin/msgfmt po/tr.po -o po/tr.mo
/bin/msgfmt po/fr.po -o po/fr.mo
/bin/msgfmt po/fa.po -o po/fa.mo
/bin/msgfmt po/vi.po -o po/vi.mo
/bin/msgfmt po/da.po -o po/da.mo
/bin/msgfmt po/et.po -o po/et.mo
/bin/msgfmt po/de.po -o po/de.mo
/bin/msgfmt po/nb.po -o po/nb.mo
/bin/msgfmt po/fi.po -o po/fi.mo
/bin/msgfmt po/es.po -o po/es.mo
/bin/msgfmt po/hr.po -o po/hr.mo
/bin/msgfmt po/sv.po -o po/sv.mo
/bin/msgfmt po/cs.po -o po/cs.mo
/bin/msgfmt po/hu.po -o po/hu.mo
/bin/msgfmt po/it.po -o po/it.mo
/bin/msgfmt po/gl.po -o po/gl.mo
/bin/msgfmt po/pt_BR.po -o po/pt_BR.mo
/bin/msgfmt po/pl.po -o po/pl.mo
/bin/msgfmt po/nl.po -o po/nl.mo
/bin/msgfmt po/zh_CN.po -o po/zh_CN.mo
/bin/msgfmt po/eo.po -o po/eo.mo
/bin/python tools/generate_theory_ly.py --all
make all
...

Edit: Oh, and also, solfege is already in the fedora repo.

fed.28@zero:~$ dnf info solfege
Last metadata expiration check: 0:53:39 ago on Sat 12 May 2018 05:25:54 PM EDT.
Available Packages
Name         : solfege
Version      : 3.22.2
Release      : 9.fc28
Arch         : x86_64
Size         : 4.5 M
Source       : solfege-3.22.2-9.fc28.src.rpm
Repo         : fedora
Summary      : Music education software
URL          : http://www.solfege.org/
License      : GPLv3
Description  : Solfege is free music education software. Use it to train your rhythm,
             : interval, scale and chord skills. Solfege - Smarten your ears!

Hello everyone!

I am currently trying to get the 9p-virtio drivers to work with a virtualized raspberry pi on qemu. I was able to compile a custom kernel using this tool, but I am running into a strange issue when I try to edits files from the host.

Basically when I try to edits the contents of a file on the host, the guest does not see the change. However, it works fine if I do it the other way (change data from the guest and read it from the host)

Has anyone else encounter this strange issue? Here is some info in case you need it:

$ uname -a
Linux raspberrypi 4.9.59+ #1 Sat May 12 21:15:11 PDT 2018 armv6l GNU/Linux
qemu-system-arm -cpu arm1176 -m 256 \
	-kernel "qemu-kernel-4.9.59" \
	-append "root=/dev/sda2 rootfstype=ext4 rw" \
	-hda "2018-04-18-raspbian-stretch.img" \
	-fsdev local,id=test_dev,path="/home/user",security_model=none \
	-device virtio-9p-pci,fsdev=test_dev,mount_tag=test_mount \
	-redir tcp:5022::22 \
	-M versatilepb \
	-dtb versatile-pb.dtb \
	-serial stdio \
	-no-reboot

Edit: It slipped my mind that I forgot to include the command I use on the guest to mount the virtual file-system.

 mount -t 9p -o trans=virtio test_mount /tmp/shared/ -oversion=9p2000.L,posixacl,cache=loose

Sorry about that!


Edit2: So I figure it out, apparently this option was causing issues.

cache=loose

Removing this option made the issue go away!

I have an interesting problem that I believe is rooted in systemd (namely due to some bug reports [1, 2, 3]). My laptop (Lenovo Yoga S1) will throw a key code, disabling the keyboard upon being physically moved, adjusting screen rotation, solar flare emission, etc.

dmesg reports two separate events. The first, corresponding with disabling the keyboard:

[  +4.316030] atkbd serio0: Unknown key pressed (translated set 2, code 0xd8 on isa0060/serio0).
[  +0.000006] atkbd serio0: Use 'setkeycodes e058 <keycode>' to make it known.
[  +0.005462] atkbd serio0: Unknown key released (translated set 2, code 0xd8 on isa0060/serio0).
[  +0.000008] atkbd serio0: Use 'setkeycodes e058 <keycode>' to make it known.

And the second, corresponding with enabling the keyboard:

[May15 15:46] atkbd serio0: Unknown key pressed (translated set 2, code 0xd9 on isa0060/serio0).
[  +0.000007] atkbd serio0: Use 'setkeycodes e059 <keycode>' to make it known.
[  +0.003249] atkbd serio0: Unknown key released (translated set 2, code 0xd9 on isa0060/serio0).
[  +0.000008] atkbd serio0: Use 'setkeycodes e059 <keycode>' to make it known.

The problem is that these key codes are not thrown when intended. Namely, as my laptop sits open on a flat surface, its keyboard is disabled.

Does anyone know how to reverse the behavior or disable these key codes?

Thanks!

You can try Darwin to see what modules get loaded and then ensure to grab those modules and put them in the right folders of the BSD that you are trying to run. Otherwise, Debian works pretty well on ppc.

I’m trying to add a boot entry for Windows to Grub 2. My usual install method for a dual boot Debian and Windows system was to install Windows first to a seperate drive, disconnect the first drive, then install Debian to the 2nd drive.

Then all I had to do was plug in the Windows drive, run “update-grub” from a root shell and grub would automatically add a Windows boot entry. It seems Grub 2 has lost this functionality.

How do I accomplish this in Fedora 28? Will i have to manually kludge together a grub menu entry? Sigh. I miss LILO.

So I got sufficiently annoyed by this problem to continue Googling and after 30 minutes or so of irrelevent answers I found this:

$ sudo grub2-mkconfig -o /boot/grub2/grub2.cfg

Apparently “update-grub” is a simple script that contains the above. Why it was removed in Fedora, I don’t know…

I believe it’s an Ubuntu specific script.

For fedora, recommended best practice is to run, as root:

grub2-mkconfig > /etc/grub2.cfg

Or

grub2-mkconfig > /etc/grub2-efi.cfg
2 Likes

Was having too much fun trying out i3 on manjaro, start it and mod key is Super_L. Change a few things and reload and it’s Alt. Apperently the manjaro version has a wizard that puts the config at /home/user/.conf/i3/conf and the ancient documentation said to put it in ~/.i3/conf

Had a bunch of fun until I noticed the wizard line at the very bottom of the file from /etc/i3/conf and found out it was looking for a config file in ~/.conf/i3/

Guess I got a good crash course in setting it up.

I don’t use Fedora, I use Kubuntu.

Is anyone else having an issue where Fedora 28 just can’t find the g++ compiler? I’ve tried both g++ and gcc-g++ as package terms

Fun fact, I just realized it’s now called gcc-c++. Not confusing at all or anything…

3 Likes

well i mean g++ is part of the GCC


in a pinch you can specify the location if you cant remember the package name. sudo dnf install /usr/bin/g++

2 Likes

Using Mint 18.3, and I imagine this is probably super simple.

I’m trying to get either KeePass2 or KeePassX to read the database file from my memory stick, but due to what I’m guessing is permissions, it won’t open it. I have to copy it locally to open. Any ideas would be greatly appreciated :slight_smile:

Those > redirects won’t work if your user doesn’t have write permission for the files those links point to, even when you use sudo. You should use sudo grub2-mkconfig -o /etc/grub2-efi.cfg or /etc/grub2.cfg.

1 Like

Also check out KeePassXC. It’s my favorite of the three.

1 Like

Well, you could actually check the file permissions. Also, check the mount options of the memory stick.
What kind of filesystem is on it?

Edit: seconding @sceps comment, KeePassXC is really nice, with great browser integration.

Thanks for getting back to me. As it turns out, it’s suddenly now…working. I had the stick reading fine in Ubuntu and Windows, but not after I started using Mint. Just gave it another go and it works! And thanks for the heads up about KeePassXC, it’s definitely better than the other 2.

Computers suck :wink:

Glad it’s working now!

Shit, you’re right. needs to be run as root.

Good catch!

I usually use something like this to get around that annoyance:

sudo grub2-mkconfig | sudo tee -a /etc/grub2.cfg
2 Likes