Encrypted rootfs wont boot Posted: 07 May 2022 08:52 AM PDT I've encrypted my rootfs with LUKS+lvm (sda5). sda1 is my boot partition where grub.cfg stored (not encrypted) sda2 and sda3 not encrypted rootfs sda4 - swap (not encrypted) I want to boot sda5 instead sda2 or sda3 Grub cryptomount works fine, I enter password and can open disk, but when I trying to boot system stuck on this message: Attempting to decrypt master key... Enter passphrase for hd0,gpt5 (9f6371e4cc4a4ebbaea15b2923f6cec2): Slot 0 opened EFI stub: Booting Linux Kernel... EFI stub: Using DTB from configuration table EFI stub: Exiting boot services and installing virtual address map... ... ... ... ... ... [ 6.368460] Waiting for root device /dev/mapper/cryptvg-lvroot... [ 13.227418] random: fast init done Please help me to resolve this problem My configs: lsblk -f sda |-sda1 | vfat boot | 812B-B9F2 |-sda2 | ext4 rootfs1 55bff7dc-41c2-42f9-a593-b47a35a4d5ba 3.1G 29% / |-sda3 | ext4 rootfs2 20359993-e72f-475e-a150-b0a2387a960f |-sda4 | swap swap1 25b2d229-884f-4225-a44a-1359ed0d8c43 [SWAP] `-sda5 crypto 9f6371e4-cc4a-4ebb-aea1-5b2923f6cec2 `-cryptlvm LVM2_m wgzW0Z-a4dw-wQVy-aUhH-yYNC-drDt-ecketw `-cryptvg-lvroot ext4 674a62b1-1433-43bc-ae5e-711613657651 8.8G 5% /mnt crypttab cryptlvm /dev/sda5 none luks fstab /dev/mapper/cryptvg-lvroot / ext4 errors=remount-ro 0 1 /dev/sda1 /boot vfat defaults 0 0 /dev/sda4 swap swap defaults 0 0 part of grub.cfg insmod luks insmod gcry_rijndael insmod gcry_sha256 insmod lvm insmod cryptodisk insmod part_gpt insmod ext2 cryptomount (hd0,gpt5) set root=(lvm/cryptvg-lvroot) linux /boot/EFI/BOOT/mitx.Image lvm luks enc_root=/dev/sda5:cryptlvm root=/dev/mapper/cryptvg-lvroot rootwait rootfstype=ext4 |
concatenate all the text files in all the sub folders into one giant text file Posted: 07 May 2022 08:39 AM PDT Ok so the situation is that I have an unknown number of sub-directories that all follow the same naming profile folder0, folder1, folder2, folder3 etc Now each folder will have 3 text files and these text files will have the same 3 file names in all folders file1 file2 file3 I would like to find an easy way to concatenate all the text files in all the folders into one text file, starting in folder0 with file1, then file2, then file3 and the same order in all folders. Now for a small number of folders I could use cat cat folder0/file1 folder0/file2 folder0/file3 folder1/file1 folder1/file2 folder1/file3 folder2/file1 folder2/file2 folder2/file3 folder3/file1 folder3/file2 folder3/file3 > textfile but the number of folders is unknown and could range into the 100's or 1000's anybody have any indea of a script that would acomplish this. |
Virtualbox NAT network not showing in Linux Posted: 07 May 2022 07:40 AM PDT I am currently Running a Bare Metal Kali with Virtualbox installed on it to the run Kioptrix Level 1. I created a NAT network in preferences with the default recommendations. This did resolve an earlier issue of the Kioptrix showing a failed boot of Eth0. However I am failing to understand and resolve the below: - I can ping from the virtual machines network to my real network, but not vice versa
- running
arp-scan -l on the host does not show the virtualbox network ip. Could this be a configuration issues on the host and by default should Linux pick up the NAT network? |
How to get thunar 1.8.4 to show bind mounts? Posted: 07 May 2022 07:05 AM PDT I am setting up a bind mount for a user : mount --bind /some/path /media/$user/test With Thunar 4.16.8 (XFCE 4.16, debian 11), this causes a nice test entry to be displayed in the devices panel. With Thunar 1.8.4 (XFCE 4.12, debian 10), this does not. I do not know whether this is a difference in the thunar program itself, in the default configuration shipped with deb 11 vs. deb 10, or caused by an upgrade in some other part of the system. Does anybody have a clue to get such an entry in Thunar 1.8.4 ? Even manually (the mounting is done by a script, so it is not hard to add one more line to add the entry) ? |
Will dd copy half blocks? Posted: 07 May 2022 07:07 AM PDT I am using this command to overwrite the data of a hdd: sudo dd if=/dev/zero of=/dev/sdc bs=10M status=progress conv=fsync If the size of my hdd is not divisible by 10M, will dd abort or will it overwrite the end? For example if the size is 10001M. Will it overwrite the last 1M? Even if it's smaller than bs? |
What is Virtualbox's "vboxdrv" module? Posted: 07 May 2022 07:17 AM PDT I have a tainted kernel and at least currently journalctl -k | grep taint points to the specific module: localhost.localdomain kernel: vboxdrv: loading out-of-tree module taints kernel. localhost.localdomain kernel: vboxdrv: module verification failed: signature and/or required key missing - tainting kernel I've only installed software from the official Fedora repositories (never from Copr). Is the module non-free and can Virtualbox ship proprietary components? I've installed 'guest additions' for some machines via Virtualbox, if this matters: I can move to other virtualization software if these issues can be expected under Linux. |
Are there different formats for Mathematica Notebooks and how are MIME types defined in them? Posted: 07 May 2022 06:13 AM PDT Note: I already posed this question on https://mathematica.stackexchange.com/questions/263673/are-there-different-formats-for-mathematica-notebooks-and-how-are-mime-types-def, but I did not receive an answer. The question might be related closer to Linux than to the application program Mathermatica. Therefore I repeat my question here: Problem: I use Mathematica 12.3 on Xubuntu 20.4. The computer runs with German localization. I wondered, why one of my notebooks is displayed with the icon usually used for LibreOfficeWriter documents. In the file browser Thunar, this file is shown having the type "Mathematica-Notebook-Datei". Since I know that Mathematica notebooks are plain ASCII files, I looked at its very beginning with an ASCII-editor. Before the big Notebook expression, it looks like this: (*CacheID: 234*) (* Internal cache information: NotebookFileLineBreakTest NotebookFileLineBreakTest NotebookDataPosition[ 0, 0] NotebookDataLength[ 66787, 1565] NotebookOptionsPosition[ 59602, 1429] NotebookOutlinePosition[ 60781, 1460] CellTagsIndexPosition[ 60738, 1457] WindowFrame->Normal*) (* Beginning of Notebook Content *) I was able to open this notebook im Mma 12.3, mark all its content, copy it to the clipboard, open a new notebook and paste the clipboard there. In the frontent, the new notebook looked like the old one. After I stored this new notebook under a different name, the usual Mathematica notebook-icon was assigned to it. I could be happy with that. But I wonder, how I got to the notebook with the wrong icon. Thunar displayed the type of the new notebook as "Wolfram Notebook" rather than "Mathematica-Notebook-Datei". When looking at the beginning of this new notebook, its content before the big Notebook expression looks like this in a plain ASCI editor: (* Content-type: application/vnd.wolfram.mathematica *) (*** Wolfram Notebook File ***) (* http://www.wolfram.com/nb *) (* CreatedBy='Mathematica 12.3' *) (*CacheID: 234*) (* Internal cache information: NotebookFileLineBreakTest NotebookFileLineBreakTest NotebookDataPosition[ 158, 7] NotebookDataLength[ 66111, 1551] NotebookOptionsPosition[ 59760, 1436] NotebookOutlinePosition[ 60263, 1453] CellTagsIndexPosition[ 60220, 1450] WindowFrame->Normal*) (* Beginning of Notebook Content *) The difference between the two representations is the absence for the header lines before the line (*Cache ID: xxx*) in the former representation (the one with the wrong icon). I think I did nothing special with the original notebook. But I am curious, what may have caused the maze. If there is no disadvantage associated to the stripped format version (the one without the lines before (*CacheID: xxx*) ): Would it be possible to use xfce4-mime-settings to assign the right MIME type to it? |
Eclipse is unable to open firefox developer edition in MX-Linux when the browser is open Posted: 07 May 2022 05:36 AM PDT When I try to open a ".jsp" file from Eclipse into the firefox developer edition, the browser cannot load the page when it is open. Instead, it only displays the page when it is started. In the picture below, you can see that I have set that browser as the default in Eclipse. For confirmation, my firefox developer edition is saved in the /opt/firefox-dev/ directory. And also, in the properties, I have included the %u command. I am using MX-Linux as my OS. So what can be the reason behind this behaviour? |
Can I configure X to pan a display which has a higher resolution than the monitor, similar to Windows magnifier mode? (“Sliding window”) Posted: 07 May 2022 04:47 AM PDT For some reason we have a common X.org setup for multiple hosts. One host has a smaller monitor than the others have. I'd like to use the same /etc/X11./xorg.conf on all hosts. Furthermore I'd like the display not be scaled to match the monitor, but instead have an unscaled output of a portion of the screen, e.g. the left upper part, and being able to move it around the monitor as you can do when using the Windows Magnifier function on Windows 10 (Windows key + PLUS key). In other words, the monitor should be like a sliding window which can be moved when the mouse is hitting an edge of the screen. Is that possible on Linux out-of-the-box? On Redhat 7.8. |
I can't boot into my UBUNTU 20.04 LTS Posted: 07 May 2022 03:30 AM PDT some problem in partition /dev/sda8 and it has logged me into emergency Mode. I tried running fsck command but to any use and also commented the fstab file but none worked. Please help me ! |
How to untag, in an XML file, a chain of tagged characters that are embedded within specified tags Posted: 07 May 2022 07:29 AM PDT What is the xmlstarlet command to untag, in an XML file, a chain of tagged characters that are embedded within specified tags? Example: searching every occurrence of the tag <b> , that needs to be deleted only if it is within the <c> ... </c> tag: For the sake of generalization, I am keeping the second sentence in the example, i.e. <a>This is <b>a test;</b></a> but if it is an issue, it can be ignored. |
How can I suppress *:// from tab completion suggestions for 'open'? Posted: 07 May 2022 03:41 AM PDT I have experience this in OS X in zsh shell, man page for open. $ type open open is /usr/bin/open $ man open OPEN(1) General Commands Manual OPEN(1) NAME open – open files and directories When I type open and type tab I see following output: $ open file: ftp:// gopher:// http:// https:// I never attempt to open any of file: , ftp:// , gopher:// , http:// , https:// , hence I just want to suppress them. Is it possible to suppress them and only see the file/folder names. |
receiving GPG error while using sudo apt update in Pop!_OS 22.04 Posted: 07 May 2022 05:50 AM PDT I ran this command in Terminal: sudo apt update At the end I received this message: W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.microsoft.com/repos/edge stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF W: Failed to fetch https://packages.microsoft.com/repos/edge/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF W: Some index files failed to download. They have been ignored, or old ones used instead.``` Currently running Pop!_OS 22.04 which is based on Ubuntu 22.04 |
What does the "-d" option of the "read" shell command do when I use it with an empty string as argument? Posted: 07 May 2022 08:27 AM PDT While I was reading this answer, the author used this command to put the result of a heredoc to a variable: read -r -d '' VAR <<'EOF' abc'asdf" $(dont-execute-this) foo"bar"'' EOF I'm a little confused about the -d option. From the help text for the read command: -d delim continue until the first character of DELIM is read, rather than newline So if I pass an empty string to -d , it means read until the first empty string. What does it mean? The author commented under the answer that -d '' means using the NUL string as the delimiter. Is this true (empty string means NUL string)? Why not use something like -d '\0' or -d '\x0' etc.? |
A video player with subtitles transparency settings and the ability to combine subtitles files Posted: 07 May 2022 04:35 AM PDT QUESTION Is there a video/movie player for Linux that (a) has a setting for the transparency/opacity of the subtitles and (b) can append/combine subtitles from two subtitles (e.g. SRT) files?
BACKGROUND By "transparency/opacity of the subtitles," I do not mean that of the background rectangle for subtitles. (I don't want any background rectangle.) I want the subtitles themselves to be half see-through so they don't entirely blot out the video information. By "append/combine" I don't mean placing one language subtitles on top and the other at the bottom of the movie screen. Both languages should be at the bottom, one language stacked atop the other. Potplayer for Windows can do both (a) and (b) (combining multiple subtitles files is called "appending"). It seems SMPlayer can do neither, or I have not found out the how. I would be happy to receive, as an answer, a Linux video/movie player that can do at least one of (a) and (b). Thank you. |
How to set "[}" or "[)" as FS for gawk? Posted: 07 May 2022 07:03 AM PDT I'm using GNU Awk 5.0.1 and I need to use [} or [) as FS . I can't make it work. Below is what I've tried. root@u2004:~# echo test | awk -F '[}' '{printf}' awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /[}/ root@u2004:~# echo test | awk -F '[\}' '{printf}' awk: warning: escape sequence `\}' treated as plain `}' awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /[}/ root@u2004:~# echo test | awk -F '[\\}' '{printf}' awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /[\}/ root@u2004:~# echo test | awk -F '[}}' '{printf}' awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /[}}/ root@u2004:~# echo test | awk -F "[}" '{printf}' awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /[}/ root@u2004:~# echo test | awk -F "[\}" '{printf}' awk: warning: escape sequence `\}' treated as plain `}' awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /[}/ root@u2004:~# echo test | awk -F "[\\}" '{printf}' awk: warning: escape sequence `\}' treated as plain `}' awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /[}/ root@u2004:~# echo test | awk -F "[}}" '{printf}' awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /[}}/ root@u2004:~# How can I do this? |
Can the Linux base images for Docker containers be used in environments other than Docker? Posted: 07 May 2022 03:51 AM PDT Containers share the machine's OS system kernel https://www.docker.com/resources/what-container/ If container's share the machine's OS system kernel, is it true that there isn't a kernel included in Docker base images of Linux like Debian or Alpine? Can the rootfs builds used in these base images be used in environments other than Docker? The Dockerfile of Alpine Linux shows an example, FROM scratch ADD alpine-minirootfs-3.14.6-x86_64.tar.gz / CMD ["/bin/sh"] Are these builds of Linux assuming anything specific to Docker about the kernel? |
How can I add space after filename of grep output? Posted: 07 May 2022 04:19 AM PDT I am using grep to search matching patterns inside files, and copy its filename from the output. Since I do this operation a lot I may end up copying : as well. Hence is it possible to add two space before the first matching semicolumn or ending of the filename? $ grep -Hrn -e "zorro" --color=always --exclude-dir=dir -I -F . | \ cut -c 11- | awk '$0="\033[33;35m"$0' | tr -s '[:space:]' doo.tex:1:zorro alper alper alper skfjsdlkfj dslfj dslkj wanted output: doo.tex :1:zorro alper alper alper skfjsdlkfj dslfj dslkj ^ <two space added> |
MAILX sends an email but with a blank subject and body text Posted: 07 May 2022 07:01 AM PDT The following command just started sending an email with a Blank Subject and Body Text. mailx -s "Daily Extract" $RESULT_EMAIL < $LOG $RESULT_EMAIL - Contains a Distribution List that has been confirmed. $LOG - Contains the contents of the email that has been confirmed. Any ideas why the email is now blank with no subject line? This is on a PROD server that had normal patching done. Maybe the Java version? Red Hat Server version? mailx doesn't work with version XXX? $LOG - Contains the text of the email. Like...This is the body of the Email. The email verifies that you have subscribed to us... NEW INFORMATION Using the command line on the server, the mailx function does send an email. The shell script is executed from Atomic Scheduler (UC4). So, UC4 is scheduled to execute the shell script at 6:00 am. The mailx command is within this shell script. I'll work on getting the information that you have requested. cat /etc/os-release [] lsb_release -a Command not found |
How to use google chrome into novnc or localhhost Posted: 07 May 2022 08:27 AM PDT FROM ubuntu RUN apt-get update && apt-get install firefox -y && groupadd -g 1000 ubuntu && useradd -d /home/ubuntu -s /bin/bash -m ubuntu -u 1000 -g 1000 USER ubuntu ENV HOME /home/ubuntu CMD /usr/bin/firefox this will create a container with firefox. can i use this dockerfile and modified to get chrome browser. And how to connect that chrome browser to novnc or x11 server display. when i echo $DISPLAY i am getting blank I used the following commands apt-get install xorg xauth openbox -y I am doing all this in a freshly installed ubuntu in cloud |
Linux: difference between "/usr/bin/env" and "/usr/bin/strings /proc/$$/environ" Posted: 07 May 2022 03:17 AM PDT I am learning about linux and I have a question that I have encountered in one of the books I read: The following are two different ways to print out environment variables. Please describe their differences: $ /usr/bin/env $ /usr/bin/strings /proc/$$/environ I searched both in Google and in the book, and everything I found suggests that both methods prints out the environment variables of the current process, but when I try to run them, I see differences but I don't know why. using the following commands: /usr/bin/env > file1 /usr/bin/strings /proc/$$/environ > file2 Now I'm want to see some difference between the files, so i sort the lines and check whether a line in file1 isn't appear in file2 and vice versa The result of comm -13 <(sort -u file1) <(sort -u file2) is and when I use comm -13 <(sort -u file2) <(sort -u file1) (source for the command: Check whether all lines of file occur in different file) |
What files set the default PATH Posted: 07 May 2022 04:12 AM PDT I'm puzzled as to what files set the default PATH on Linux (specifically, Debian). (I'm not interested in the user-specific ones in ~ (.profile , xsessionrc , maybe others) here.) So far I've ruled out the (not-so-)usual suspects /etc/{environment,bash.bashrc,login.defs,profile,crontab,security/pam_env.conf,default/locale,default/cron,pam.d/sshd,pam.d/cron} and /usr/sbin/sshd but still my default PATH is set to /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games every time I log in. Grepping for "/local/games" in /etc turns up nothing. I suspect it's hard coded in a binary somewhere. I'm using bash |
Debian: is there a shortcut for switching from Ubuntu to Debian? Posted: 07 May 2022 02:57 AM PDT I have been running Ubuntu 20 and I want to switch to Debian 10. I know how to back up my important software, install Debian 10 from a proper ISO image, and then restore my backed-up software onto the newly installed Debian system. However, I'm wondering if anyone has come up with a shorter procedure for doing such an Ubuntu-to-Debian conversion, possibly via apt or some other utility. I have searched on line and not found anything like this, but perhaps I am overlooking something. Can anyone suggest anything? Thank you very much in advance. |
Why can't I mount my optical drive in Linux Mint 19.3 Posted: 07 May 2022 05:02 AM PDT I'm having trouble mounting my optical drive in Linux Mint 19.3. I figured this constituted a new question because of how outdated other posts have been on the topic. My system: ~$ uname -a Linux chris-anthemum 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Attempting to mount device to /cdrom: ~$ sudo mount /dev/sr0 /cdrom mount: /cdrom: no medium found on /dev/sr0. After creating a directory /mnt/dvd and attempting to mount to that: ~$ sudo mount /dev/sr0 /mnt/dvd mount: /mnt/dvd: no medium found on /dev/sr0. Note - Even though no medium is found on /dev/sr0, I can eject on the drive and it opens up my optical drive: ~$ eject /dev/sr0 lsblk shows sr0 as type rom: ~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 142.4M 1 loop /snap/opera/73 loop1 7:1 0 93.8M 1 loop /snap/core/8935 loop2 7:2 0 62.1M 1 loop /snap/gtk-common-themes/1506 loop3 7:3 0 28.9M 1 loop /snap/chromium-ffmpeg/15 loop4 7:4 0 55M 1 loop /snap/core18/1705 loop5 7:5 0 451.2M 1 loop /snap/pycharm-professional/192 loop6 7:6 0 48.3M 1 loop /snap/gtk-common-themes/1474 loop7 7:7 0 55M 1 loop /snap/core18/1754 loop8 7:8 0 142.4M 1 loop /snap/opera/74 loop9 7:9 0 93.9M 1 loop /snap/core/9066 loop10 7:10 0 445.1M 1 loop /snap/pycharm-professional/196 loop11 7:11 0 160.2M 1 loop /snap/gnome-3-28-1804/116 sda 8:0 0 931.5G 0 disk ├─sda1 8:1 0 326G 0 part / ├─sda2 8:2 0 1K 0 part └─sda5 8:5 0 605.6G 0 part /home sr0 11:0 1 1024M 0 rom blkid does not show an entry for my optical drive: ~$ blkid /dev/sda1: UUID="f2c86904-6312-4656-acd1-afa304e9f867" TYPE="ext4" PARTUUID="a0cf3af1-01" /dev/sda5: UUID="1746ce12-039c-4d19-a601-9889026f260a" TYPE="ext4" PARTUUID="a0cf3af1-05" lshw shows no disk when a disk is inserted: ~$ sudo lshw *-scsi:1 physical id: 2 logical name: scsi1 capabilities: emulated *-cdrom description: DVD-RAM writer product: DVDRWBD BC-5540H vendor: Optiarc physical id: 0.0.0 bus info: scsi@1:0.0.0 logical name: /dev/cdrom logical name: /dev/cdrw logical name: /dev/dvd logical name: /dev/dvdrw logical name: /dev/sr0 version: 201A capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram configuration: ansiversion=5 status=nodisc cdrskin finds the drive: ~$ cdrskin --devices cdrskin 1.4.8 : limited cdrecord compatibility wrapper for libburn cdrskin: scanning for devices ... cdrskin: ... scanning for devices done cdrskin: Overview of accessible drives (1 found) : -------------------------------------------------------------------------- 0 dev='/dev/sr0' rwrw-- : 'Optiarc ' 'DVDRWBD BC-5540H' My fstab file: # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda1 during installation UUID=f2c86904-6312-4656-acd1-afa304e9f867 / ext4 errors=remount-ro 0 1 # /home was on /dev/sda5 during installation UUID=1746ce12-039c-4d19-a601-9889026f260a /home ext4 defaults 0 2 /swapfile none swap sw 0 0 I have also already installed libdvd-pkg, vlc player, ubuntu-restricted-extras, libdvdcss2, libdvdnav4, and libdvdread4. There are no prompts upon insertion of any type of media disk (bluray, dvd, or cd) I feel I'm running in circles and am unsure where to go next. |
Disable Internet Access on Eth0 Posted: 07 May 2022 03:04 AM PDT I have a Raspberry with eth0 (192.168.0.2 / static ) connected to a router (Fritz Box @ 192.168.0.1 ). The Router has internet connection. The Raspberry has a mobile usb stick with ppp connect to the internet. Actually if ppp is not connected the internet access from the Raspberry is through the Router over eth0 . If ppp is connected the internet access is via ppp . if I del the default route for eth0 there is no internet connection if ppp is not connected and if ppp is connected internet connection is through ppp . So far everything fine. But if restart the raspberry it again has internet connection through eth0 . I want to allow the raspberry internet connection only via ppp . eth0 just for internal communication like ssh. Any ideas how to configure that? /etc/network/interfaces looks like: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.178.2 netmask 255.255.255.0 allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf allow-hotplug wlan1 iface wlan1 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf |
How to print from Arch Linux via Wi-Fi to Canon MG6450? Posted: 07 May 2022 08:04 AM PDT I have a Canon MG6450 with Wi-Fi enabled and an up-to-date Arch Linux installation with cnijfilter-mg4200 3.80-1 installed. I can see the printer in print dialogues (sometimes it takes a second to show up, presumably because it's being auto-discovered), I can select it, and I get no error message when clicking OK. However, the printer is completely oblivious to all this, it seems. I've also tried connecting via USB. Afterwards the printer was not auto-detected by the print dialogue, but it was detected by system-config-printer , and I was able to configure and print with no problems. But it would be very nice to be able to print wirelessly. It appears some fatal printing errors show up neither in the print dialogue nor in system-config-printer . Both of them simply report printer state as "Idle - Rendering completed". However, after going to the CUPS web interface and clicking the printer I finally got a hint - after each print job is the following message: "The PPD version (5.2.11) is not compatible with Gutenprint 5.2.12. Please run `/usr/bin/cups-genppdupdate' as administrator." OK then: $ sudo /usr/bin/cups-genppdupdate /etc/cups/ppd/Canon-PIXMA-MG6450.ppd: no valid candidate for replacement. Skipping /etc/cups/ppd/Canon-PIXMA-MG6450.ppd: please upgrade this PPD manually Unable to retrieve PPD file for /etc/cups/ppd/Canon-PIXMA-MG6450.ppd! Failed to update any PPD files Now I'm seeing if anywhere has a compatible PPD. Canon's IJ Printer Driver Ver. 4.00 for Linux has PPD files for MG6400 and MG6500. I tried the MG6400 one, cleaned out the printer queue, and tried printing a test page. Now the CUPS web interface has no errors, but system-config-printer reports: File "/usr/lib/cups/filter/pstocanonij" not available: No such file or directory Looks like that file is available from cnijfilter-common, which currently can't be built. After following the instructions by c.gerhorst I have installed the package, but now the printer dialogue is complaining that /usr/lib/cups/filter/cmdtocanonij is missing. There is a /usr/lib/cups/filter/commandtocanon . I've tried replacing cmdtocanonij with commandtocanon in /etc/cups/ppd/Canon-PIXMA-MG6450.ppd and running sudo systemctl daemon-reload and sudo systemctl restart org.cups.cupsd.service . Now I get no error message anywhere, but the print jobs just seem to disappear entirely. The printer shows no sign of receiving them, and the CUPS web interface shows any new jobs as first "processing", then "completed", without any indication that something is black-holing everything. |
Why am I losing audio on VLC when playing HQ videos? Posted: 07 May 2022 04:01 AM PDT I am having a problem with VLC when I play HQ videos (720p and higher): when I try to look for a particular scene (say I am playing a movie and want to get to go to 30 minute mark) the sound goes off. It doesn't happen always but it does happen frequently, and when I loose the sound is only on the video I am playing. I never have this problem on Parole Media Player, so I think something must be misconfiguled on VLC. Does anybody have any idea what could be wrong and how can I fix it? Update: Following the advice from Skuminder , I ran vlc -vvv my_video.mp4 and here I present the lines concerning audio of the output I got: [0xae7705b0] faad decoder warning: decoded zero sample [0x8803d40] main playlist debug: reusing audio output [0x87f9030] pulse audio output debug: using stereo channel map [0xaad017c8] main spu text debug: looking for text renderer module matching "any": 3 candidates [0x87f9030] pulse audio output debug: changed buffer metrics: maxlength=4194304, tlength=46080, prebuf=0, minreq=15360 [0x87f9030] pulse audio output debug: connected to sink alsa_output.pci-0000_00_1b.0.analog-stereo [0x87f9030] main audio output debug: output 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes [0xaaf06568] main volume debug: looking for audio volume module matching "any": 2 candidates [0x87f9030] pulse audio output debug: base volume: 65536 [0x87f9030] pulse audio output debug: changing sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo) [0xaaf06568] main volume debug: using audio volume module "float_mixer" [0x87f9030] main audio output debug: input 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes [0xaaf07a58] main audio filter debug: looking for audio filter module matching "scaletempo": 14 candidates [0xaaf07a58] scaletempo audio filter debug: format: 48000 rate, 2 nch, 4 bps, fl32 [0xaaf07a58] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 search [0xaaf07a58] scaletempo audio filter debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode [0xaaf07a58] main audio filter debug: using audio filter module "scaletempo" [0x87f9030] main audio output debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo [0x87f9030] main audio output debug: conversion pipeline complete [0x87f9030] main audio output debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo [0x87f9030] main audio output debug: conversion pipeline complete [0xaaf0f228] main audio resampler debug: looking for audio resampler module matching "any": 3 candidates [0xaaf0f228] main audio resampler debug: using audio resampler module "samplerate" [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: cannot synchronize start [0x87f9030] pulse audio output debug: deferring start (30851 us) [0x87f9030] pulse audio output debug: deferring start (9397 us) [0x87f9030] pulse audio output warning: starting late (-12465 us) [0x87f9030] pulse audio output debug: started [0x87f9030] pulse audio output debug: changing sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo) [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 32% [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 66% [0xb24024a0] main input debug: Buffering 99% [0xb24024a0] main input debug: Stream buffering done (398 ms in 76 ms) [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 33% [0xb24024a0] main input debug: Buffering 66% [0xb24024a0] main input debug: Buffering 99% [0xb24024a0] main input debug: Stream buffering done (399 ms in 94 ms) [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: underflow [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 33% [0xb24024a0] main input debug: Buffering 66% [0xb24024a0] main input debug: Buffering 99% [0xb24024a0] main input debug: Stream buffering done (399 ms in 3 ms) [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: underflow [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 32% [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 66% [0xb24024a0] main input debug: Buffering 99% [0xb24024a0] main input debug: Stream buffering done (398 ms in 49 ms) [0xae71ee18] main decoder debug: End of video preroll [0xae71ee18] main decoder debug: Received first picture [0xb24024a0] main input debug: Decoder buffering done in 599 ms [0x87f9030] pulse audio output debug: underflow[0x87f9030] main audio output debug: inserting 27606 zeroes [0x87f9030] main audio output warning: playback way too early (-575136): playing silence [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 32% [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 66% [0xb24024a0] main input debug: Buffering 99% [0xb24024a0] main input debug: Stream buffering done (398 ms in 78 ms) Hope there's something interesting. |
Error building Oracle client 11g R2 on RHEL 5.5 Posted: 07 May 2022 07:02 AM PDT We are trying to install oracle 11g R2 64 bit in Rhel 5.5 machine ( 64 bit ). Kernel version is 2.6.18-194.el5. We are getting the below error while installation. error in invoking target 'mkldflags ntcontab.o nnfgt.o' of makefile '/home/oracle/app/product/11.2.0/network/lib/ins_net_client.mk'. See '/home/oracle/oraInventory/logs/installAction2013-09-03_04-52-05PM.log' for details. We have installed all necessary library packages. binutils-2.17.50.0.6-14.el5.x86_64 compat-libstdc++-33-3.2.3-61.x86_64 compat-libstdc++-33-3.2.3-61.i386 elfutils-libelf-0.137-3.el5.x86_64 elfutils-libelf-0.137-3.el5.i386 elfutils-libelf-devel-static-0.137-3.el5.x86_64 elfutils-libelf-devel-static-0.137-3.el5.i386 elfutils-libelf-devel-0.137-3.el5.x86_64 elfutils-libelf-devel-0.137-3.el5.i386 gcc-4.1.2-48.el5.x86_64 gcc-c++-4.1.2-48.el5.x86_64 glibc-2.5-49.x86_64 glibc-2.5-49.i686 glibc-common-2.5-49.x86_64 glibc-devel-2.5-49.x86_64 glibc-devel-2.5-49.i386 glibc-headers-2.5-49.x86_64 ksh-20100202-1.el5.x86_64 libaio-0.3.106-5.x86_64 libaio-0.3.106-5.i386 libaio-devel-0.3.106-5.x86_64 libaio-devel-0.3.106-5.i386 libgcc-4.1.2-48.el5.x86_64 libgcc-4.1.2-48.el5.i386 libstdc++-4.1.2-48.el5.x86_64 libstdc++-4.1.2-48.el5.i386 libstdc++44-devel-4.4.0-6.el5.x86_64 libstdc++44-devel-4.4.0-6.el5.i386 libstdc++-devel-4.1.2-48.el5.x86_64 libstdc++-devel-4.1.2-48.el5.i386 make is already installed: make-3.81-3.el5.x86_64 Contents of log file: INFO: Calling Query fileQueries10.1.0.3.0 exists filename = /home/oracle/app/product/11.2.0/rdbms/lib/libknlopt.a INFO: Query Returned: false INFO: Calling Action unixActions10.2.0.3.0 registerForMake installMakePath = /usr/bin/make installMakeFileName = /home/oracle/app/product/11.2.0/network/lib/ins_nau.mk installTarget = ioklist installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0 undoMakeFileName = null undoTarget = null undoArguments = null logFile = /home/oracle/app/product/11.2.0/install/make.log progMsg = Linking Adapters INFO: Calling Action unixActions10.2.0.3.0 registerForMake installMakePath = /usr/bin/make installMakeFileName = /home/oracle/app/product/11.2.0/network/lib/ins_nau.mk installTarget = iokinit installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0 undoMakeFileName = null undoTarget = null undoArguments = null logFile = /home/oracle/app/product/11.2.0/install/make.log progMsg = Linking Adapters INFO: Calling Action unixActions10.2.0.3.0 registerForMake installMakePath = /usr/bin/make installMakeFileName = /home/oracle/app/product/11.2.0/network/lib/ins_nau.mk installTarget = iokdstry installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0 undoMakeFileName = null undoTarget = null undoArguments = null logFile = /home/oracle/app/product/11.2.0/install/make.log progMsg = Linking Adapters INFO: Linking 'Oracle Database Utilities 11.2.0.3.0 ' INFO: Linking 'Oracle Database Utilities 11.2.0.3.0 ' INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component Oracle Database Utilities INFO: Calling Action unixActions10.2.0.3.0 registerForMake installMakePath = /usr/bin/make installMakeFileName = /home/oracle/app/product/11.2.0/rdbms/lib/ins_rdbms.mk installTarget = utilities installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0 undoMakeFileName = null undoTarget = null undoArguments = null logFile = /home/oracle/app/product/11.2.0/install/make.log progMsg = Linking Utilities Executables INFO: Linking 'SQL*Plus 11.2.0.3.0 ' INFO: Linking 'SQL*Plus 11.2.0.3.0 ' INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component SQL*Plus INFO: Calling Action unixActions10.2.0.3.0 registerForMake installMakePath = /usr/bin/make installMakeFileName = /home/oracle/app/product/11.2.0/sqlplus/lib/ins_sqlplus.mk installTarget = install installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0 undoMakeFileName = null undoTarget = null undoArguments = null logFile = /home/oracle/app/product/11.2.0/install/make.log progMsg = Linking SQLPLUS Executables INFO: Linking 'Oracle Programmer 11.2.0.3.0 ' INFO: Linking 'Oracle Programmer 11.2.0.3.0 ' INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component Oracle Programmer INFO: Linking 'Oracle Internet Directory Client 11.2.0.3.0 ' INFO: Linking 'Oracle Internet Directory Client 11.2.0.3.0 ' INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component Oracle Internet Directory Client INFO: Calling Action unixActions10.2.0.3.0 registerForMake installMakePath = /usr/bin/make installMakeFileName = /home/oracle/app/product/11.2.0/ldap/lib/ins_ldap.mk installTarget = clientonlyinstall installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0 undoMakeFileName = null undoTarget = clientonlyinstall undoArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0 logFile = /home/oracle/app/product/11.2.0/install/make.log progMsg = Linking OID Client INFO: Calling Action unixActions10.2.0.3.0 registerForMake installMakePath = /usr/bin/make installMakeFileName = /home/oracle/app/product/11.2.0/ldap/lib/ins_ldap.mk installTarget = clientonlyinstall installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0 undoMakeFileName = /home/oracle/app/product/11.2.0/ldap/lib/ins_ldap.mk undoTarget = clientonlyinstall undoArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0 logFile = /home/oracle/app/product/11.2.0/install/make.log progMsg = Linking Client-only Install INFO: Linking 'SQLJ Runtime 11.2.0.3.0 ' INFO: Linking 'SQLJ Runtime 11.2.0.3.0 ' INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component SQLJ Runtime INFO: Linking 'Oracle SQLJ 11.2.0.3.0 ' INFO: Linking 'Oracle SQLJ 11.2.0.3.0 ' INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component Oracle SQLJ INFO: Linking 'Oracle Client 11.2.0.3.0 ' INFO: Linking 'Oracle Client 11.2.0.3.0 ' INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component Oracle Client INFO: Linking in progress INFO: Linking in progress INFO: Link Phase JRE files in Scratch :0 INFO: Calling Action unixActions10.2.0.3.0 make registerOnly = false installMakePath = /usr/bin/make installMakeFileName = /home/oracle/app/product/11.2.0/network/lib/ins_net_client.mk installTarget = mkldflags ntcontab.o nnfgt.o undoMakeFileName = installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0 logFile = /home/oracle/app/product/11.2.0/install/make.log undoTarget = progMsg = Linking ldflags Executables INFO: Linking ldflags Executables INFO: Linking ldflags Executables INFO: The output of this make operation is also available at: '/home/oracle/app/product/11.2.0/install/make.log' INFO: INFO: Start output from spawned process: INFO: ---------------------------------- INFO: INFO: rm -f ntcontab.* INFO: (if [ "compile" = "compile" ] ; then \ /home/oracle/app/product/11.2.0/bin/gennttab > ntcontab.c ;\ /usr/bin/gcc -m32 -m32 -fPIC -c ntcontab.c ;\ rm -f /home/oracle/app/product/11.2.0/lib/ntcontab.o ;\ mv ntcontab.o /home/oracle/app/product/11.2.0/lib/ ;\ /usr/bin/ar rv /home/oracle/app/product/11.2.0/lib/libn11.a /home/oracle/app/product/11.2.0/lib/ntcontab.o ; fi) INFO: /bin/sh: line 2: /usr/bin/gcc: No such file or directory INFO: mv: cannot stat `ntcontab.o' INFO: : No such file or directory INFO: /usr/bin/ar: /home/oracle/app/product/11.2.0/lib/ntcontab.o: No such file or directory INFO: make: *** [ntcontab.o] Error 1 INFO: End output from spawned process. INFO: ---------------------------------- INFO: Exception thrown from action: make Exception Name: MakefileException Exception String: Error in invoking target 'mkldflags ntcontab.o nnfgt.o' of makefile '/home/oracle/app/product/11.2.0/network/lib/ins_net_client.mk'. See '/home/oracle/oraInventory/logs/installActions2013-09-03_04-52-05PM.log' for details. Exception Severity: 1 INFO: Adding ExitStatus STOP_INSTALL to the exit status set INFO: Finding the most appropriate exit status for the current application INFO: Exit Status is -4 INFO: Shutdown Oracle Client Installer What is the solution for this error? |
Float operation with bc? Posted: 07 May 2022 07:45 AM PDT It looks like bc doesn't support float operations, when I do echo 1/8 | bc it get me a zero. I checked bc (1) , but it doesn't even mention float , so I wonder if it's supported? |
MediaTomb - Not showing Cover Art from music folder in the photo collection Posted: 07 May 2022 06:04 AM PDT MediaTomb adds album covers and DVD covers into the photo collection. That means, when you are going through your photos, you also get album covers intermixed in there. Is there a way of restricting the type of media from specific folders. So, /path/to/music will be restricted to music, /path/to/photos will be restricted to photos etc? |
No comments:
Post a Comment