linux kernel compilation error Posted: 07 Jul 2021 09:24 AM PDT I got error: make ${BUILD_FLAGS} -j1 modules HOSTCC scripts/basic/fixdep CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool CHK include/generated/compile.h LD [M] arch/x86/crypto/crc32c-intel.ko arch/x86/crypto/crc32c-intel.lto.o: warning: objtool: file already has __mcount_loc section, skipping arch/x86/crypto/crc32c-intel.lto.o: warning: objtool: file already has .orc_unwind section, skipping make[2]: *** [scripts/Makefile.modfinal:78: arch/x86/crypto/crc32c-intel.ko] Error 255 make[1]: *** [scripts/Makefile.modpost:156: __modpost] Error 2 make: *** [Makefile:1762: modules] Error 2 Im using uname -a Linux 4.19.0-17-amd64 #1 SMP Debian 4.19.194-1 (2021-06-10) x86_64 GNU/Linux echo $BUILD_FLAGS LLVM=1 LLVM_IAS=1 CC=clang-12 CXX=clang++-12 LD=ld.lld-12 AR=llvm-ar-12 NM=llvm-nm-12 STRIP=llvm-strip-12 READELF=llvm-readelf-12 HOSTCC=clang-12 HOSTCXX=clang++-12 HOSTAR=llvm-ar-12 HOSTLD=ld.lld-12 OBJCOPY=llvm-objcopy-12 OBJDUMP=objdump Linux kernel to build 5.13.1 Anybody got same situation? Trying to build kernel with LTO optimizations by Clang-12 |
Flatpak apps do not detect headphone microphone Posted: 07 Jul 2021 08:52 AM PDT Flatpak apps such as Skype or Zoom do not detect my headphone microphone. If I start them with my headphones plugged in no microphone is detected, whereas if the headphones are unplugged the built-in microphone is detected. The headphone microphone does work elsewhere. I tried running them with the --device=all argument but it doesn't seem to make a difference. How can I troubleshoot this? |
How to kill processes waiting for frozen md raid? Posted: 07 Jul 2021 08:24 AM PDT Long story short, I had a frozen md raid and while trying to tear it down, I hit the following problem: # umount /path/to/mount/point umount: /path/to/mount/point: target is busy. # fuser -av -M -m /path/to/mount/point [lots of processes with working directory within the mount point] The actual reason for this problem is that that the md raid device holding the volume for that mount point has frozen during the check action. As processes that have tried to access anything on that mount since the freeze have entered interruptible sleep. As a result, running # fuser -av -M -m /data -k or # fuser -av -M -m /data -k -9 accomplish nothing. How to get rid of those processes still using the md raid device with a frozen mount point? Notice that kill -9 is not enough because the process would continue only after the currently executed (and stalled) process got a time slice from kernel which never happens because of freeze. As a result, umount always reports "target is busy". I know that I can release the mount point with umount -l but it doesn't release the raid device so that I could rebuild it. I could just as well simply mount something over the existing mount point instead if I don't mind losing the old storage. Can anybody suggest anything better than sync; echo b > /proc/sysrq-trigger or pulling wires from the underlying storage devices to make md raid not to hang anymore? I still don't know if this is just a software issue, but I do know that I can access raw devices (/dev/sd[a-z] ) just fine with dd and the raid works normally after hard reboot. Note that even normal reboot will take forever because the system scripts that try to take system down will try to terminate and kill and unmount everything with long timeouts which is known to fail already! For example, is it possible to force detach all the underlying storage drives and get dm raid to run the codepath that would happen if it loses all drives? Related questions: How to debug frozen md raid? and How do I find out which processes are preventing unmounting of a device? |
How to share files in a directory over either HTML or REST Posted: 07 Jul 2021 07:52 AM PDT I've been looking for any premade free file sharing servers or services that can be self-hosted, but I've only come across servers like ownCloud, that have way too many features regarding our needs (for example the list provded here). Are there any (HTML server package or REST) based file sharing servers for linux that can do the following: - Share files in a given directory
- No need for user accounts
- No possibility for people to create accounts
- Ratelimit the downloads
Basically all it has to do is allow any people to download files using their web browser, nothing less nothing more. If the server had REST functionality, it would be better as then we could integrate the server to our website directly |
Validate file for record count in trailer Posted: 07 Jul 2021 09:15 AM PDT I tried to write a script that should verify total detail records equal to the Record_count in trailer record and if unmatched throw error. sample data: HDR9185 20210601094001202105311.11j DTL226-42742-14 32.389185 NM30100000178103 D207935784ZAG Desjardins Trust CAD 5470.34 32.38A E 2.0500 5549.4420220215NESBITT BURNS INC A/C 226-42742-14 (5H94798) C 5014.0020170215N30100000178103 5H94798 ILPYA7SM71 DTL210-86993-11 21.979185 NM30100000187369 D207989578ZAG Desjardins Trust CAD 5036.97 21.97N A 2.0500 5117.8120220315NESBITT BURNS INC ITF A/C 210-86993-11 (5J10948) C 5015.0020170315N30100000187369 5J10948 ILQETLZDH1 TRL 02 93084.00 The trailer record with 02 is the record count. My code: if ! awk -F "|" ' /^HDR/ { h++; next; } /^TRL/ {t++; next} END { exit( (h != 1) || t != 1 || $NF != NR - 2 ); }' sample.txt then echo "file did not pass validation test" exit 1 fi echo "Validated successfully" This is throwing me the standard output as "file did not pass validation test" even if my records match the trailer count or unmatched. |
ffmpeg (two audio stream + 1 video stream) -vf/-af/-filter and -filter_complex cannot be used together for the same stream Posted: 07 Jul 2021 07:16 AM PDT I'm trying to capture the screen video and two audio stream, one from mic, and the other one from analog monitor. ffmpeg -video_size "$__screen_size__" \ -framerate 50 \ -thread_queue_size 512 -f x11grab -i :0.0+0,0 \ -thread_queue_size 512 -f pulse -i "$__input_mic__" \ -thread_queue_size 512 -f pulse -i "$__output_monitor__" \ -filter_complex amerge \ -ac 2 \ -vcodec libx264rgb -crf 0 -preset:v ultrafast \ -acodec pcm_s16le \ -af aresample=async=1:first_pts=0 \ -async 1 \ -y \ "$__output__" The problem is ffmpeg complains about using two filter simultaneously for one stream: Filtergraph 'aresample=async=1:first_pts=0' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph. -vf/-af/-filter and -filter_complex cannot be used together for the same stream. The script below (only one audio stream form mic) however works perfectly fine, when I don't have to merge audio streams ffmpeg -video_size "$__screen_size__" \ -framerate 50 \ -thread_queue_size 512 -f x11grab -i :0.0+0,0 \ -thread_queue_size 512 -f pulse -i "$__input_mic__" \ -vcodec libx264rgb -crf 0 -preset:v ultrafast \ -acodec pcm_s16le \ -af aresample=async=1:first_pts=0 \ -async 1 \ -y \ "$__output__" basically removing: -thread_queue_size 512 -f pulse -i "$__output_monitor__" \ -filter_complex amerge \ -ac 2 \ If I remove -af aresample=async=1:first_pts=0 and keep the above then the audio and video won't be synchronized. Basically I want to merge audio streams without introducing any latency. |
How to find a node from FDT given the device name in Linux? Posted: 07 Jul 2021 07:37 AM PDT I was having a look to the Linux code about FDT: drivers/fdt.c Let's suppose to have a very trivial device tree, whose .dts format is as follows: /dts-v1/; / { node1 { a-string-property = "A string"; a-string-list-property = "first string", "second string"; // hex is implied in byte arrays. no '0x' prefix is required a-byte-data-property = [01 23 34 56]; child-node1a { first-child-property; second-child-property = <1>; a-string-property = "Hello, world"; }; child-node1b { }; }; node2 { an-empty-property; a-cell-property = <1 2 3 4>; /* each number (cell) is a uint32 */ child-node2a { }; }; }; Let's suppose I wish to access to the content of the property a-string-property of child-node1 of node1 . I can't find nowhere in Linux the code that parses a .dtb file. Where can I find it? |
Match exact string ignoring special characters like hyphen Posted: 07 Jul 2021 07:25 AM PDT I have a text file like Data1 AppFlows Data2 AppFlows-1 If I do grep '\bAppFlows\b' file It prints both the lines, which means we don't seem to consider - in the boundary I looked around and found something like grep -w 'AppFlows$' file But this did not help. Any way to print the line with exact character match and the output be like Data1 AppFlows |
Extract values from a text file for a multiline pattern which has three fields Posted: 07 Jul 2021 07:35 AM PDT Extract values from a text file for a multiline pattern which has three fields "ID", "First name" and "Last name". Extract only the pattern where the "ID" field has 9 digits with two spaces in there and the "First name" field not equal to "XXXXX". Remove the two spaces in the "ID" field. Remove the "Gender" field in the "First name" line. e.g. Input: ID : 200 000 000 Address: Test First name: XXXXX Gender: M Last name: YYYYY ID : 123 456 789 Address: Anywhere 1 First name: Albert Gender: M Last name: Au ID : YYY YYY YYY ID : ZZZ ZZZ ZZZ ID : 100 000 000 Address: Anywhere 2 First name: Priscilla Gender: F Last name: Chan ID : QQQ ZZZ ZZZ Address: Test 2 First name: XXXXX Gender: M Last name: ZZZZZ Output: ID : 123456789 First name: Albert Last name: Au ID : 100000000 First name: Priscilla Last name: Chan |
How would I replace two or more blank lines with a single blank line in Ed Posted: 07 Jul 2021 09:31 AM PDT In Ed I can do a search to replace all blank lines as follows: g/^$/d This deletes all blank lines. But what if I wish to delete two or more blank lines and keep 1. For example: Line 1 Line 2 Line 3 Becomes: Line 1 Line 2 Line 3 |
copying /dev/block/sdax to another /dev/block/sday in c++ without using system() Posted: 07 Jul 2021 07:29 AM PDT is it possible to copy /dev/block/sdax to /dev/block/sday in c++ with using system call, example this should happen dd if=/dev/block/sdb20 of=/dev/block/sdb43 bs=4096 without using system() ? |
Append data from first column to second column in csv file Posted: 07 Jul 2021 07:46 AM PDT I have a csv file with following details : Userid,First Name,Last Name jaina24,Aayush,Jain my requirement is to add a new column in the existing file like this : Userid,Email Address,First Name,Last Name jaina24,jaina24@xyz.com,Aayush, Jain 2nd column should copy value from first column and then append @xyz.com to it. |
KDE system unexpectedly halts and reboots Posted: 07 Jul 2021 08:47 AM PDT I'm having issues trying to understand why my system randomly halts or reboots. Here are the specs of my system, retrieved using neofetch: .-/+oossssoo+/-. `:+ssssssssssssssssss+:` aeryan@aeryan-PC -+ssssssssssssssssssyyssss+- ---------------- .ossssssssssssssssssdMMMNysssso. OS: Ubuntu 20.04.1 LTS x86_64 /ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.4.0-58-generic +ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 44 mins /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 2422 (dpkg), 6 (snap) .ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.0.17 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1920x1080, 1920x1080 ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: Plasma ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: KWin +sssshhhyNMMNyssssssssssssyNMMMysssssss+ WM Theme: breeze .ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Breeze Dark [Plasma], Breeze [GTK2/3] /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Icons: breeze-dark [Plasma], breeze-dark [GTK2/3] +sssssssssdmydMMMMMMMMddddyssssssss+ Terminal: konsole /ssssssssssshdmNNNNmyNMMMMhssssss/ Terminal Font: Ubuntu Mono 13.2 .ossssssssssssssssssdMMMNysssso. CPU: AMD Ryzen 5 3600X (12) @ 3.800GHz -+sssssssssssssssssyyyssss+- GPU: NVIDIA GeForce RTX 2060 Rev. A `:+ssssssssssssssssss+:` Memory: 16448MiB / 32105MiB I'm using this machine to run ML algorithms using TensorFlow. However, I've been monitoring CPU and GPU temperatures and it doesn't seem the system halts because of reaching a critical temperature. One thing to take into account is that my system is not upgraded to the last version (I have used the hold command to prevent my kernel from upgrading), since I had incompatibilities between the newer kernel versions and my code version. I have taken a look at syslog for the time of the last unexpected reboot, and this is what I have found: Jul 7 12:41:43 aeryan-PC systemd[1]: unattended-upgrades.service: Succeeded. Jul 7 12:41:43 aeryan-PC sddm[1192]: Authentication error: "Process crashed" Jul 7 12:41:43 aeryan-PC sddm[1192]: Auth: sddm-helper crashed (exit code 15) Jul 7 12:41:43 aeryan-PC sddm[1192]: Authentication error: "Process crashed" Jul 7 12:41:43 aeryan-PC sddm[1192]: Auth: sddm-helper exited with 15 Jul 7 12:41:43 aeryan-PC sddm[1192]: Socket server stopping... Jul 7 12:41:43 aeryan-PC sddm[1192]: Socket server stopped. Jul 7 12:41:43 aeryan-PC sddm[1192]: Display server stopping... Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Session 3 of user aeryan. Jul 7 12:41:43 aeryan-PC systemd[1]: Removed slice system-getty.slice. Jul 7 12:41:43 aeryan-PC systemd[1]: Removed slice system-modprobe.slice. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped target Graphical Interface. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped target Multi-User System. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped target Login Prompts. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped target Sound Card. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped target Timers. Jul 7 12:41:43 aeryan-PC systemd[1]: apt-daily-upgrade.timer: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Daily apt upgrade and clean activities. Jul 7 12:41:43 aeryan-PC systemd[1]: apt-daily.timer: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Daily apt download activities. Jul 7 12:41:43 aeryan-PC systemd[1]: e2scrub_all.timer: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Periodic ext4 Online Metadata Check for All Filesystems. Jul 7 12:41:43 aeryan-PC systemd[1]: fstrim.timer: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Discard unused blocks once a week. Jul 7 12:41:43 aeryan-PC systemd[1]: fwupd-refresh.timer: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Refresh fwupd metadata regularly. Jul 7 12:41:43 aeryan-PC systemd[1]: logrotate.timer: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Daily rotation of log files. Jul 7 12:41:43 aeryan-PC systemd[1]: man-db.timer: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Daily man-db regeneration. Jul 7 12:41:43 aeryan-PC systemd[1]: motd-news.timer: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Message of the Day. Jul 7 12:41:43 aeryan-PC systemd[1]: systemd-tmpfiles-clean.timer: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Daily Cleanup of Temporary Directories. Jul 7 12:41:43 aeryan-PC systemd[1]: systemd-rfkill.socket: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Closed Load/Save RF Kill Switch Status /dev/rfkill Watch. Jul 7 12:41:43 aeryan-PC systemd[1]: Unmounting /home/aeryan/Windows/D:... Jul 7 12:41:43 aeryan-PC systemd[1]: Unmounting /home/aeryan/Windows/F:... Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Modem Manager... Jul 7 12:41:43 aeryan-PC ModemManager[1184]: <info> Caught signal, shutting down... Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Accounts Service... Jul 7 12:41:43 aeryan-PC anacron[1085]: Received SIGUSR1 Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping ACPI event daemon... Jul 7 12:41:43 aeryan-PC anacron[1085]: Exited Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Save/Restore Sound Card State... Jul 7 12:41:43 aeryan-PC ModemManager[1184]: <info> ModemManager is shut down Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Run anacron jobs... Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping LSB: automatic crash report generation... Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Deferred execution scheduler... Jul 7 12:41:43 aeryan-PC ntfs-3g[1167]: Unmounting /dev/sdc1 (External Drive) Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Regular background program processing daemon... Jul 7 12:41:43 aeryan-PC ntfs-3g[1167]: Permissions cache : 1 writes, 3 reads, 100.0% hits Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Make remote CUPS printers available locally... Jul 7 12:41:43 aeryan-PC nvidia-persistenced: Received signal 15 Jul 7 12:41:43 aeryan-PC NetworkManager[1093]: <info> [1625654503.0645] modem-manager: ModemManager no longer available Jul 7 12:41:43 aeryan-PC nvidia-persistenced: Socket closed. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping LSB: Record successful boot for GRUB... Jul 7 12:41:43 aeryan-PC nvidia-persistenced: PID file unlocked. Jul 7 12:41:43 aeryan-PC snapd[1122]: main.go:155: Exiting on terminated signal. Jul 7 12:41:43 aeryan-PC systemd[1487]: home-aeryan-Windows-F:.mount: Succeeded. Jul 7 12:41:43 aeryan-PC nvidia-persistenced: PID file closed. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping irqbalance daemon... Jul 7 12:41:43 aeryan-PC nvidia-persistenced: The daemon no longer has permission to remove its runtime data directory /var/run/nvidia-persistenced Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Tool to automatically collect and submit kernel crash signatures... Jul 7 12:41:43 aeryan-PC nvidia-persistenced: Shutdown (1123) Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Dispatcher daemon for systemd-networkd... Jul 7 12:41:43 aeryan-PC Tor[1219]: Interrupt: exiting cleanly. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping NVIDIA Persistence Daemon... Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping PackageKit Daemon... Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping System Logging Service... Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping RealtimeKit Scheduling Policy Service... Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Simple Desktop Display Manager... Jul 7 12:41:43 aeryan-PC systemd[1]: snapd.seeded.service: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Wait until snapd is fully seeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopping Snap Daemon... Jul 7 12:41:43 aeryan-PC systemd[1]: Condition check resulted in Ubuntu core (all-snaps) system shutdown helper setup service being skipped. Jul 7 12:41:43 aeryan-PC systemd[1]: tor.service: Succeeded. Jul 7 12:41:43 aeryan-PC systemd[1]: Stopped Anonymizing overlay network for TCP (multi-instance-master). I have difficulties in understanding all of the logs but, from what I've seen, it seems like the process sddm crashes and then systemd reboots my system. In other cases, my computer does not reboot but rather shutdowns incompletely. By this I mean my screen has no signal but my computer is still on (the lights, CPU, etc. are on) as if it had not completed the shutdown. Thus, I don't know if sddm crashing is responsible for all the reboots, shutdowns or none of them. Another possible cause could be small blackouts, but in that case I don't know if my computer would completely shutdown. Edit: As Daniel Kelley suggested I'm also uploading the contents of the /var/log/kern.log and /var/log/dmesg files: /var/log/kern.log (around the time when the crash happened) Jul 7 12:38:48 aeryan-PC kernel: [ 14.574092] Generic FE-GE Realtek PHY r8169-400:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-400:00, irq=IGNORE) Jul 7 12:38:48 aeryan-PC kernel: [ 14.689224] r8169 0000:04:00.0 enp4s0: Link is Down Jul 7 12:38:49 aeryan-PC kernel: [ 15.505398] resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000c0000-0x000dffff window] Jul 7 12:38:49 aeryan-PC kernel: [ 15.505502] caller os_map_kernel_space.part.0+0x77/0xa0 [nvidia] mapping multiple BARs Jul 7 12:38:52 aeryan-PC kernel: [ 18.324043] r8169 0000:04:00.0 enp4s0: Link is Up - 1Gbps/Full - flow control rx/tx Jul 7 12:38:52 aeryan-PC kernel: [ 18.324053] IPv6: ADDRCONF(NETDEV_CHANGE): enp4s0: link becomes ready Jul 7 12:39:18 aeryan-PC kernel: [ 43.913570] vboxdrv: Found 12 processor cores Jul 7 12:39:18 aeryan-PC kernel: [ 43.936179] vboxdrv: TSC mode is Invariant, tentative frequency 3792870341 Hz Jul 7 12:39:18 aeryan-PC kernel: [ 43.936180] vboxdrv: Successfully loaded version 6.1.16_Ubuntu (interface 0x00300000) Jul 7 12:39:18 aeryan-PC kernel: [ 43.940829] VBoxNetFlt: Successfully started. Jul 7 12:39:18 aeryan-PC kernel: [ 43.943962] VBoxNetAdp: Successfully started. Jul 7 12:39:31 aeryan-PC kernel: [ 57.296443] EXT4-fs (sdb5): recovery complete Jul 7 12:39:31 aeryan-PC kernel: [ 57.296446] EXT4-fs (sdb5): mounted filesystem with ordered data mode. Opts: (null) Jul 7 12:39:31 aeryan-PC kernel: [ 57.296452] ext4 filesystem being mounted at /media/aeryan/141f23da-6fba-4ad7-9f78-b5c4402a237f supports timestamps until 2038 (0x7fffffff) Jul 7 12:39:32 aeryan-PC kernel: [ 58.116033] snd_hda_codec_hdmi hdaudioC0D0: HDMI: invalid ELD data byte 9 Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] Linux version 5.4.0-58-generic (buildd@lcy01-amd64-004) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 (Ubuntu 5.4.0-58.64-generic 5.4.73) Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-58-generic root=UUID=3bd10f61-1b04-4b2b-a5b1-f8a3534b852a ro quiet splash vt.handoff=7 Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] KERNEL supported cpus: Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] Intel GenuineIntel Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] AMD AuthenticAMD Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] Hygon HygonGenuine Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] Centaur CentaurHauls Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] zhaoxin Shanghai Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format. Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-provided physical RAM map: Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009d3ff] usable Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x000000000009d400-0x000000000009ffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000009e0ffff] usable Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x0000000009e10000-0x0000000009ffffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x000000000a000000-0x000000000a1fffff] usable Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x000000000a200000-0x000000000a20bfff] ACPI NVS Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x000000000a20c000-0x000000000affffff] usable Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x000000000b000000-0x000000000b01ffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x000000000b020000-0x00000000d0f40fff] usable Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000d0f41000-0x00000000d0f60fff] ACPI data Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000d0f61000-0x00000000d9e07fff] usable Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000d9e08000-0x00000000d9f4afff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000d9f4b000-0x00000000d9f5afff] ACPI data Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000d9f5b000-0x00000000da065fff] usable Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000da066000-0x00000000da424fff] ACPI NVS Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000da425000-0x00000000db778fff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000db779000-0x00000000ddffffff] usable Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000de000000-0x00000000dfffffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fd000000-0x00000000fd0fffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fd500000-0x00000000fd5fffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fea00000-0x00000000fea0ffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000feb80000-0x00000000fec01fff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fec10000-0x00000000fec10fff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fec30000-0x00000000fec30fff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fed00000-0x00000000fed00fff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fed40000-0x00000000fed44fff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fed80000-0x00000000fed8ffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fedc2000-0x00000000fedcffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fedd4000-0x00000000fedd5fff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000feefffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000081f37ffff] usable Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] NX (Execute Disable) protection: active Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] SMBIOS 3.1.1 present. Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] DMI: System manufacturer System Product Name/TUF B450-PLUS GAMING, BIOS 2008 12/06/2019 Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] tsc: Fast TSC calibration using PIT Jul 7 12:42:24 aeryan-PC kernel: [ 0.000000] tsc: Detected 3792.911 MHz processor /var/log/dmesg (first lines of the file) [mié jul 7 12:54:58 2021] Linux version 5.4.0-58-generic (buildd@lcy01-amd64-004) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 (Ubuntu 5.4.0-58.64-generic 5.4.73) [mié jul 7 12:54:58 2021] Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-58-generic root=UUID=3bd10f61-1b04-4b2b-a5b1-f8a3534b852a ro quiet splash vt.handoff=7 [mié jul 7 12:54:58 2021] KERNEL supported cpus: [mié jul 7 12:54:58 2021] Intel GenuineIntel [mié jul 7 12:54:58 2021] AMD AuthenticAMD [mié jul 7 12:54:58 2021] Hygon HygonGenuine [mié jul 7 12:54:58 2021] Centaur CentaurHauls [mié jul 7 12:54:58 2021] zhaoxin Shanghai [mié jul 7 12:54:58 2021] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' [mié jul 7 12:54:58 2021] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' [mié jul 7 12:54:58 2021] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' [mié jul 7 12:54:58 2021] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 [mié jul 7 12:54:58 2021] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format. [mié jul 7 12:54:58 2021] BIOS-provided physical RAM map: [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x0000000000000000-0x000000000009d3ff] usable [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x000000000009d400-0x000000000009ffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x0000000000100000-0x0000000009e0ffff] usable [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x0000000009e10000-0x0000000009ffffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x000000000a000000-0x000000000a1fffff] usable [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x000000000a200000-0x000000000a20bfff] ACPI NVS [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x000000000a20c000-0x000000000affffff] usable [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x000000000b000000-0x000000000b01ffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x000000000b020000-0x00000000d0f40fff] usable [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000d0f41000-0x00000000d0f60fff] ACPI data [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000d0f61000-0x00000000d9e07fff] usable [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000d9e08000-0x00000000d9f4afff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000d9f4b000-0x00000000d9f5afff] ACPI data [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000d9f5b000-0x00000000da065fff] usable [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000da066000-0x00000000da424fff] ACPI NVS [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000da425000-0x00000000db778fff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000db779000-0x00000000ddffffff] usable [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000de000000-0x00000000dfffffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fd000000-0x00000000fd0fffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fd500000-0x00000000fd5fffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fea00000-0x00000000fea0ffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000feb80000-0x00000000fec01fff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fec10000-0x00000000fec10fff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fec30000-0x00000000fec30fff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fed00000-0x00000000fed00fff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fed40000-0x00000000fed44fff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fed80000-0x00000000fed8ffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fedc2000-0x00000000fedcffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fedd4000-0x00000000fedd5fff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000fee00000-0x00000000feefffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved [mié jul 7 12:54:58 2021] BIOS-e820: [mem 0x0000000100000000-0x000000081f37ffff] usable [mié jul 7 12:54:58 2021] NX (Execute Disable) protection: active [mié jul 7 12:54:58 2021] SMBIOS 3.1.1 present. |
How to sort filename list (txt-file) by sub-strings of the filename/path with multiple levels. Special challenge: Two types of filename conventions Posted: 07 Jul 2021 08:03 AM PDT I'd like to sort the following list of filenames / pathes. L1_Data/level1/192027/LC08_L1TP_192027_20201126_20210316_01_T1 DONE L1_Data/level1/192028/LC08_L1TP_192028_20201126_20210316_01_T1 DONE L1_Data/level1/192029/LC08_L1TP_192029_20201126_20210316_01_T1 DONE L1_Data/level1/191027/LE07_L1TP_191027_20201127_20201223_01_T1 DONE L1_Data/level1/191029/LE07_L1TP_191029_20201127_20201223_01_T1 DONE L1_Data/level1/192027/LC08_L1TP_192027_20201212_20210313_01_T1 QUEUED L1_Data/level1/191028/LE07_L1TP_191028_20201213_20210108_01_T1 DONE L1_Data/level1/191029/LE07_L1TP_191029_20201213_20210108_01_T1 DONE L1_Data/level1/191027/LC08_L1TP_191027_20201221_20210310_01_T1 DONE L1_Data/level1/T32TQS/S2B_MSIL1C_20200101T100319_N0208_R122_T32TQS_20200101T110654.SAFE DONE L1_Data/level1/T32TQR/S2B_MSIL1C_20200101T100319_N0208_R122_T32TQR_20200101T110654.SAFE QUEUED L1_Data/level1/T33TUL/S2B_MSIL1C_20200101T100319_N0208_R122_T33TUL_20200101T110654.SAFE DONE L1_Data/level1/T33TUM/S2B_MSIL1C_20200101T100319_N0208_R122_T33TUM_20200101T110654.SAFE DONE L1_Data/level1/T32TQS/S2A_MSIL1C_20200102T102421_N0208_R065_T32TQS_20200102T105534.SAFE DONE L1_Data/level1/T33TUL/S2B_MSIL1C_20200104T101319_N0208_R022_T33TUL_20200104T121239.SAFE DONE L1_Data/level1/T32TQR/S2B_MSIL1C_20200104T101319_N0208_R022_T32TQR_20200104T121239.SAFE QUEUED L1_Data/level1/T32TQS/S2A_MSIL1C_20200106T100401_N0208_R122_T32TQS_20200106T103423.SAFE DONE Each line contains a filename (including the path) and its work status (QUEUED/DONE). Each filename contains information of satellite imagery data as satellite type, recording date, footprint and others. Now, I'd like to reorder the list according to the following priorities: - work status --> QUEUED at first. This, as single step, was not a problem for me, but the solutions for the next steps including their combination (you will find a closer description of my issues after the next image):
- satellite type (S2A=Sentinel A; S2B=Sentinel B; LC08=Landsat 8; LE07=Landsat 7) --> S2A/B at the beginning (no matter whether A or B), followed by LC08, then LE07. In other words: I'd like to distinguish between Sentinel 2, Landsat 8 and Landsat 7, but not between Sentinel 2A and Sentinel 2B.
- Recording date, ascending
- Footprint, ascending
The locations of the according substrings are shown in the following image, which is followed by a decription of my problems. Apart from having only a very basic knowledge of the sort command, my particular problems are: - a) to adress correctly the substrings, within
- b) two different file name types (/conventions),
- c) the underscore isn't usefull as separator, because in the Sentinel filenames there are five, in the Landsat six underscores, and beyond that the the substring sequence differs between both.
- d) the order S2A/B before LC08 before LE07 is unfortunately not according to the alphabet, and
- e) to adress the the S2A and S2B satellite as one unit. This of course could be solved by adressing only S2, but, as consisting out of just two characters, with a certain risk of confusion with other parts of the whole filename string (Actually the list is much longer and gets updated from time to time, and so could contain 'false' S2s in other or future lines).
In the end, the reordered list should look like this: L1_Data/level1/T32TQR/S2B_MSIL1C_20200101T100319_N0208_R122_T32TQR_20200101T110654.SAFE QUEUED L1_Data/level1/T32TQR/S2B_MSIL1C_20200104T101319_N0208_R022_T32TQR_20200104T121239.SAFE QUEUED L1_Data/level1/192027/LC08_L1TP_192027_20201212_20210313_01_T1 QUEUED L1_Data/level1/T32TQS/S2B_MSIL1C_20200101T100319_N0208_R122_T32TQS_20200101T110654.SAFE DONE L1_Data/level1/T33TUL/S2B_MSIL1C_20200101T100319_N0208_R122_T33TUL_20200101T110654.SAFE DONE L1_Data/level1/T33TUM/S2B_MSIL1C_20200101T100319_N0208_R122_T33TUM_20200101T110654.SAFE DONE L1_Data/level1/T32TQS/S2A_MSIL1C_20200102T102421_N0208_R065_T32TQS_20200102T105534.SAFE DONE L1_Data/level1/T33TUL/S2B_MSIL1C_20200104T101319_N0208_R022_T33TUL_20200104T121239.SAFE DONE L1_Data/level1/T32TQS/S2A_MSIL1C_20200106T100401_N0208_R122_T32TQS_20200106T103423.SAFE DONE L1_Data/level1/192027/LC08_L1TP_192027_20201126_20210316_01_T1 DONE L1_Data/level1/192028/LC08_L1TP_192028_20201126_20210316_01_T1 DONE L1_Data/level1/192029/LC08_L1TP_192029_20201126_20210316_01_T1 DONE L1_Data/level1/191028/LE07_L1TP_191028_20201213_20210108_01_T1 DONE L1_Data/level1/191029/LE07_L1TP_191029_20201213_20210108_01_T1 DONE L1_Data/level1/191027/LE07_L1TP_191027_20201127_20201223_01_T1 DONE L1_Data/level1/191029/LE07_L1TP_191029_20201127_20201223_01_T1 DONE May anybody help me, please? |
Debian power button won't suspend if monitor not plugged in Posted: 07 Jul 2021 07:16 AM PDT Having changed systemd/logind.conf as follows: HandlePowerKey=suspend with a desktop monitor plugged in the computer suspends on pressing the power button. As launched without desktop connected, suspension does not work. I tried setting /usr/sbin/pm-suspend in powerbtn-acpi-support.sh for good measure with no change. What is the problem? My system is Debian 8. |
Cannot connect to postgresql database from init.d script (Debian) Posted: 07 Jul 2021 08:25 AM PDT A script that runs just fine normally fails when put into an /etc/init.d/ script (consolenew), to activate at bootup. Specifically, it cannot open the PostgreSQL database, giving the error: could not connect to server: Connection refused init.d/consolenew settings: #### BEGIN INIT INFO # Provides: consolenew # Required-Start: $all $postgresql $network # Required-Stop: $all $postgresql $network # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: .... #### END INIT INFO /path-to-file/consolenew.sh & System is Debian 8. What is missing here to get PostgreSQL to work? |
Groff renders brackets and square roots incorrectly Posted: 07 Jul 2021 09:55 AM PDT The groff source .EQ left ( sqrt {1 over 2} right ) .EN produces this when a PDF is made, and viewed with most PDF readers. (Here, Atril.) The error occurs with large round brackets and/or square root signs. However, if PostScript is used instead, then the expression is rendered properly. Is there a way to fix this? |
Keyboard does not work in MokManager during key enrollment Posted: 07 Jul 2021 07:15 AM PDT I am trying to enroll a MOK under Ubuntu 20.04.1 for supporting some third-party kernel modules while keeping Secure Boot enabled. The system boots fine with the stock kernel and modules, but I am having issues with using the Mok Manager to enroll the generated MOK that is being used to sign third-party kernel modules. When I start the enrollment process, I enter a password into the dialog while Ubuntu is running and it schedules for the Mok Manager to run on next boot to continue the enrollment process. When I reboot, I find myself in the Mok Management menu with four choices, the first being to continue boot and the second to enroll the generated MOK key. However, my keyboard does not seem to function at all during this time. Not even Caps Lock or Num Lock takes effect. If I wait long enough, it seems to time out and continue boot asking me to press any key to enter into the Mok Manager. I have found that F1 and F12 seem to enter into it, both keys that can be used to select BIOS options, but most other keys are still ignored. From Grub or other bootloaders, my laptop keyboard seems to work fine. An external USB keyboard did not help. This is a Lenovo Legion Y540. Is there something blocking the keyboard or something that needs to be loaded to enable it? |
How do I stop memory issue caused by baloo_file_extractor? Posted: 07 Jul 2021 08:13 AM PDT I using Arch Linux with XFCE/XFWM4. The default FM is very lightweight thunar, but I installed dolphin for some more functionality. I was studying about large files and creating some 2 gigs of files on my system. I suddenly saw my system is going wild where baloo_file_extractor uses 3.1 GiB RAM! I suddenly killed it. But every time I create a big file, I see baloo_file_extractor uses up all of my RAM and start consuming swap again and again. On the other hand, I haven't used dolphin for weeks now. Why does it daemonize baloo when dolphin is not in use? Apart from uninstalling baloo , baloo_widgets and dolphin file manager, is there any other way to prevent that from happening again? |
How to write romanian special characters with groff? Posted: 07 Jul 2021 09:50 AM PDT I've got myself into experimenting with groff and from the start I found out the romanian special characters I type in vim are all fine (I ran setxkbmap ro ), but get messed up in the pdf export. Running groff -Tpdf -ms letext.ms > letext.pdf instead of ășâțî ĂȘÂȚÎ I get all kinds of other special characters. Running groff -Kutf8 -Tpdf -ms letext.ms > letext.pdf some of the characters I want remain, but the others disppear and I get this message in the terminal warning: can't find special character `u0074_0326' warning: can't find special character `u0061_0306' warning: can't find special character `u0073_0326' warning: can't find special character `u0041_0306' warning: can't find special character `u0053_0326' warning: can't find special character `u0054_0326' Should I edit the tmacs to get the characters I want? Should I write another tmac with the characters I want and load that instead? EDIT#1 As Philip Couling suggested, I wrote ășâțî ĂȘÂȚÎ in a file letest.txt and ran hexdump -C letest.txt on it. Here are the results. |
Groff long umlaut Posted: 07 Jul 2021 09:48 AM PDT I'm Hungarian and I want to use groff to write good-loking pdf files, the problem is even though I used: groff -k -ms test.ms -T pdf > test.pdf eventhough -k took care of the? é,á,ü,ö characters it cannot handle the: ű,ő characters, when i try it says (this is an example for the ő character): test.ms:8: warning: can't find special character `u006F_030B' Is there a way I can enable these characters? |
Troubles establishing connection with wvdial - Invalid dial command error Posted: 07 Jul 2021 09:04 AM PDT I am trying to run internet via HUAWEI E3372 on Debian. It worked on Windows but did not work on Debian.The error is this: ATDT*99# ERROR --> Invalid dial command. wvdial: utils/wvtask.cc:303: static int WvTaskMan::yield(int): Assertion *current_task->stack_magic == WVTASK_MAGIC' failed. Aborted Here you are the issue info: wvdial.conf root@debian:/home/b# cat /etc/wvdial.conf [Dialer orange] Modem = /dev/ttyUSB1 Phone = *99# Username =; Password =; Init1 = ATZ Init2 = AT+CGDCONT=1,"IP","internet","",0,0 Auto DNS = on root@debian:/home/b# dmesg | grep tty root@debian:/home/b# dmesg | grep tty [ 0.000000] console [tty0] enabled [ 4.288912] usb 2-8: GSM modem (1-port) converter now attached to ttyUSB0 [ 4.288990] usb 2-8: GSM modem (1-port) converter now attached to ttyUSB1 root@debian:/home/b# wvdial orange root@debian:/home/b# wvdial orange --> WvDial: Internet dialer version 1.61 --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: AT+CGDCONT=1,"IP","internet","",0,0 AT+CGDCONT=1,"IP","internet","",0,0 OK --> Modem initialized. --> Sending: ATDT*99# --> Waiting for carrier. ATDT*99# ERROR --> Invalid dial command. wvdial: utils/wvtask.cc:303: static int WvTaskMan::yield(int): Assertion `*current_task->stack_magic == WVTASK_MAGIC' failed. Aborted root@debian:/home/b# lsusb root@debian:/home/b# lsusb Bus 002 Device 002: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 0bf8:1004 Fujitsu Siemens Computers Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub root@debian:/home/b# UPDATE The configuration worked and internet got present actually. It was empty resolve.conf simlink so I copied /etc/ppp/resolve.conf one and it worked. Anyway the error still remains and I would like to get rid of it. Also note that I am doing all with Network Manager service disabled. |
sssd not working over ldap_id_use_start_tls Posted: 07 Jul 2021 10:05 AM PDT Have a weird situation going on. Trying to setup sssd , but I am having issues when I set ldap_id_use_start_tls on sssd.conf . In sssd.conf I have the following config: [domain] ldap_id_use_start_tls = true ldap_tls_cacert = /path/to/cert.pem ldap_tls_reqcert = never When I enable these options, I am not able to login to a new account on the server, I just get a message saying the password is invalid. When I turn off the TLS options, everything works as expected, the new logins get their automatic home directory, etc.. I tried to validate my certificates with ldapsearch : ldapsearch -D "DN of user" -W -h ldap.server.com -b "dc=ad,dc=site,dc=com" -s sub -ZZ "(objectclass=*)" This query returns all of the ldiff information I was expecting. There is no issue with the LDAP server certificate according to OpenLDAP. Any idea why sssd is failing on ldap_id_use_start_tls , but the ldapsearch looks like it's working fine? |
Installing OVS with DPDK Posted: 07 Jul 2021 08:01 AM PDT |
Complete caching disable in Chromium Posted: 07 Jul 2021 08:47 AM PDT There are plenty approaches of cache disable in chrome, but the only one for Chromium I've found is not quite fits my needs. Suggested : Edit chromium config somewhere in /etc to set CHROMIUM_FLAGS="--disk-cache-dir=/dev/null --disk-cache-size=1" But didn't work for me, because - There is nothing to configure in
/etc for chromium - I want to disable as many disk writes as possible by policies but not the command line
So, my question is, what should I write in chromium policy to redirect as much writes as possible to RAM? |
zsh set as default shell for root Posted: 07 Jul 2021 09:26 AM PDT Can I set zsh as default shell while being logged in as root? I did chsh -s /bin/zsh and used my root password for authentication, but failed. |
Limit the inode cache used by a command Posted: 07 Jul 2021 08:17 AM PDT I want to run a task with limits on the kernel objects that they will indirectly trigger. Note that this is not about the memory, threads, etc. used by the application, but about memory used by the kernel. Specifically, I want to limit the amount of inode cache that the task can use. My motivating example is updatedb . It can use a considerable amount of inode cache, for things that mostly won't be needed afterwards. Specifically, I want to limit the value that is indicated by the ext4_inode_cache line in /proc/slabinfo . (Note that this is not included in the "buffers" or "cache" lines shown by free : that's only file content cache, the slab content is kernel memory and recorded in the "used" column.) echo 2 >/proc/sys/vm/drop_caches afterwards frees the cache, but that doesn't do me any good: the useless stuff has displaced things that I wanted to keep in memory, such as running applications and their frequently-used files. The system is Linux with a recent (≥ 3.8) kernel. I can use root access to set things up. How can I run a command in a limited environment (a container?) such that the contribution of that environment to the (ext4) inode cache is limited to a value that I set? |
Laptop boots directly to Ubuntu, can't access BIOS or Boot menu anymore Posted: 07 Jul 2021 09:40 AM PDT I'm running Laptop with single OS: UbuntuMATE 15.04 Beta1 64bit on Toshiba laptop Core i3. After burning "Elementary OS" on a live USB drive using UNetbootin, what happened is: -After reboot, laptop directly shows UbuntuMATE boot screen, doesn't show Toshiba logo at the begginning as usual. So no access to BIOS or boot menu anymore. So it boots directly to UbuntuMATE and it runs normally. Installed Boot-Repair and ran (Recommended Repair); it gets aborted showing me this message: "Please use this software in a live-session (live-CD or live-USB). This will enable this feature"... which I can't boot from a live CD or USB as I lost access to boot menu. Boot info summary gave me this link http://paste.ubuntu.com/10664795/ which I can ask for help providing information in it. I looked around into several posts but couldn't find what matches my case. What exactly am I supposed to do? I'm a little new to Linux (3 months) and I'm still learning, so I do not know much. |
Give server access to Internet, via client connecting by SSH Posted: 07 Jul 2021 07:35 AM PDT I can use my home computer A to connect by SSH to a server B where access to the external network is blocked. In other words, all requests to Internet from B throw an error: Network is unreachable. Can I redirect all these requests to pass through the computer A which has an unrestricted access to Internet? Server B is a server which hosts one of my website. I want to download files in order to install some software. But the connection is blocked. I was able to transfer files but it was complicated because the software versions are different on A and B, so the dependencies where different and it required different files on A and B. I searched on Internet and it seems that I need a reverse tunnel. But I only found solutions where a port is redirected. But it's not what I need since I don't want B to access to A but to Internet. |
Is troff/groff relevant anymore? Posted: 07 Jul 2021 09:45 AM PDT I've heard that troff/groff have largely been replaced by TeX. Is this true? The only thing that I know actually used troff nowadays is manpages. Is this also true? If not, what are some other uses? |
No comments:
Post a Comment