How to set up the application "qt5ct" in Arch Linux to manage qt theme? Posted: 07 Dec 2021 03:10 AM PST I am using a standalone tiling window manager QTile. In QTile I want to organize my GTK and QT Themes. For GTK theme I used a program named "lzappearance" and it works perfectly fine. But, for Qt I am using a program named as "qt5ct". On the top it is written this application is not configured correctly and when I click on the information button it says: The QT_QPA_PLATFORMTHEME environment variable is not set(required value: qt5ct). Please help and guide me on how to set qt5ct and environment variables. |
if col1 matches with col3/col4 print all values from col3/col4 respectively in empty rows in col1 Posted: 07 Dec 2021 03:07 AM PST I have a comma delim text file. I want to print all values from col3/col4 in empty col1 wrt to its match with either col3/col5, till a new value appear in col1. Input file: va,group,subgroup,minor,major A,AGT,rs123,A,G ,AGT,rs456,G,T ,AGT,rs457,T,G ,AGT,rs667,A,T G,GSTT1,rs234,A,G ,GSTT1,rs668,T,G ,GSTT1,rs556,A,G
Excpeted output: va,group,subgroup,minor,major A,AGT,rs123,A,G G,AGT,rs456,G,T T,AGT,rs457,T,G A,AGT,rs667,A,T G,GSTT1,rs234,A,G G,GSTT1,rs668,T,G G,GSTT1,rs556,A,G
This is what I tried: if [ $1 == $4] && [ -z "$1" ] then awk -F"\t" -v OFS="\t" '{ for(N=1; N<=NF; N++) if($N=="") $N=$4 } 1' file > tmp1 else echo "stop" fi |
context-aware encoding Posted: 07 Dec 2021 03:06 AM PST thanks for the release. I'm currently working on context-aware video encoding which aims at setting different QPs for different area within frame to be encoded according to grayscale saliency map where white areas indicate ROI areas. Now I'm struggling at how to implement context-aware encoding in V4L2. Any advices would be very appritiated. |
Unable to resolve against local DNS server Posted: 07 Dec 2021 02:55 AM PST I have a Bind9 server set up on my local server (at 192.168.0.15, named "groth") and I've just built a Ubuntu 20.04 laptop (jedi-u20) which I'm trying to set up to query the Bind server. On the Bind server, in named.conf.local, I have: zone "banksworth.local" { type master; file "/etc/bind/db.banksworth"; }; and in db.banksworth, I have: $TTL 604800 @ IN SOA groth.banksworth.local. admin.banksworth.site. ( 2021120701 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; IN NS localhost. IN NS groth.banksworth.local. groth IN A 192.168.0.15 On my Ubuntu laptop, I think have the DNS server configured according to resolvectl status where it shows 192.168.0.15 under "Global", but only shows 192.168.0.1 (my router) under "Link 4 (wlp3s0)". If I dig the host, it doesn't resolve, but if I specify a resolver in the dig command, it does: root@jedi-u20:/etc/systemd/network# dig -t a groth.banksworth +short root@jedi-u20:/etc/systemd/network# dig -t a groth.banksworth +short @192.168.0.15 192.168.0.15 I'm sure I'm setting this up wrong. I haven't really had to touch DNS since before Systemd, when you just put a nameserver line in resolv.conf, but I can't get a good handle on how this all hooks together in the new world. Can anyone point me in the right direction, or tell me where I've misunderstood and messed it up, please? Thanks! |
Why Linux acts different in two different SSH connections Posted: 07 Dec 2021 02:39 AM PST I have a remote server running Ubuntu. I need to install NodeJS via NVM on this server automatically. I have an app which establishes a SSH connection to the remote server, and it is successful. After that, I need it to run this command on that server nvm install node When my code runs the command, the response is bash: nvm: command not found But when I presonally connect to that server via SSH in my terminal, that command works without any error. Why? |
How to find file attribute changes by comparing two BTRFS subvolumes? Posted: 07 Dec 2021 02:23 AM PST Since disabling CoW on some folders (like database folders) crucial for a hard drive, I also need to backup that information. However, as of v5.10 btrfs send/receive still ignores this information. Recursively checking every file with lsattr -R is very ineffective. How does backup systems that relies on BTRFS handle this problem? Can we find the attribute changes between given subvolumes effectively? |
Triggering a script when new TCP connection is established Posted: 07 Dec 2021 02:22 AM PST So I need to run a script whenever a new TCP connection is established. I found the BCC - Tools tcpconnect.py to monitor the TCP connections but I can't find a way to leverage that tool to trigger my script. Any ideas? This would be for a Debian Linux. |
last command session duration syntaxe Posted: 07 Dec 2021 02:37 AM PST Very simple question here, i was wondering about the last command and the final column which is the "login status" still logged or down with the duration of the session ext pts/7 10.1.24.88 Tue Sep 28 16:53 - 16:02 (18+23:08) ext pts/6 10.1.24.88 Tue Sep 28 16:11 - 16:02 (18+23:50) For this case : (18+23:08) i don't understand the syntax with the +, someone can help me translate the 18+23:08 ? Many thanks ! |
Trouble with Log in Debian 9 Posted: 07 Dec 2021 03:03 AM PST I use a computer in a local network, and by that I mean that computers run Debian 9 and users' files are stored in a server not locally. At the computer that I normally use, I accidentally gave wrong password more than two or three times and now when I give the correct one and continue to display the wrong password message. I tried to log in from another computer of the network and logged in normally. How can I fix that? edit. If the post needs more information, ask me and I will update/provide. |
net/devices/wlp6s0 taking around 2 minutes to start during boot Posted: 07 Dec 2021 01:45 AM PST When I first installed Ubuntu 20.04 it only took around 30 seconds to boot the entire system. Later however I noticed a significant delay, and then reading the boot information it seems that the wlp6s0 device is taking a very long time to boot. Is this necessary or is there some better options? |
Executing chroot commands inside a bash script with variables Posted: 07 Dec 2021 01:12 AM PST I have a long bash script that I am customizing for a Linux installation using debootstrap. This is necessary as the setup (encryption, caching, etc.) is fairly unusual, and cannot be handled by the default Debian installer. I have lot of bash variables that are being used in the script (either as static definitions, or being calculated), and also need to be used in chroot commands. chroot is used to setup fstab, networking, and other setup files (such as in initramfs) prior to the end of the installation. Owing to this, the usual advice regarding using an external script for the chroot part, is not applicable. I need the defined variables, results of calculations etc. stored in the variables to be available inside the chroot environment. |
how to install blackarch tools in debian based distro? Posted: 07 Dec 2021 01:51 AM PST Black Arch have wide ranges of tools, we can install all those tools in arch based linux with strap.sh. Offsec repo does not have this much tools. Please share some solution to install those tools with automation to debian based distro. how to install blackarch tool in debian based distro? |
sed command to replace pattern including newline pattern with blank Posted: 07 Dec 2021 02:18 AM PST I have a yaml file which include text: - name: flexvol-driver-host hostPath: type: DirectoryOrCreate path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec imagePullSecrets: - name: acrrepo-bad25ec678be80 I have a shell script through which I am trying to remove - name:.* for imagePullSecrets: only. So If imagePullSecrets: have - name: below it then it should be removed and only imagePullSecrets: should be preserved. Please can someone help me to do this with sed. |
Is signal handling a property of a process or not? Posted: 07 Dec 2021 02:10 AM PST From reading the standard, I understand that: - signal handling is a property shared by all threads of a process;
- signal mask is a per-thread property.
However, the standard list the following (In 2018 edition of Base volume, section 3.210 Live Process) as "system resource shared among all of the threads within a process": - process ID, parent process ID, process group ID, session membership,
- real, effective, and saved user and group IDs and supplementary group IDs,
- current working directory, root directory,
- umask,
- file descriptors.
with signal handling missing from the list. Is it correct to say that: signal handling is a property associated with the process? Or is there a reason it's left out of the above list? |
How do I completely block Google DNS servers? Posted: 07 Dec 2021 02:41 AM PST Previously I've used Unbound as a DNS resolver, but whenever I checked on dnsleaktest.com I got results for Google DNS only. Then moving to systemd-resolved fixed that issue. Now I'm using pdnsd, and that issue has showed up again. I've blocked Google DNS server from /etc/hosts, added them to reject list in pdnsd.conf also blocked them from my router then how come they are still accessible? |
The sync data between folder on window through cygwin Posted: 07 Dec 2021 02:31 AM PST I have 2 Upload folders on server 192..168.2.3 192.168.2.4, both servers are running windows 2008r2. I want to sync the Upload folder of server 192.168.2.4 with the Upload folder of server 192.168.2.3, I have installed cygwin and use rsync to sync. I write a sync.sh file and a sync.bat file to do the sync. When syncing data in the Upload folder of server 192.168.2.3 located in Upload/./ of server 192.168.2.4. I don't know why the dot is created and the sync data is saved in it. The content of file sync.sh is: rsync -av administrator@192.168.2.3:/cygdrive/d/Upload/ /cygdrive/d/Upload/ The content of file sync.bat is: C:\cygwin64\bin\bash -l /home/Administrator/sync_upload_adminui.sh |
Need advice to delimit the tilde when using awk over ssh remote connection Posted: 07 Dec 2021 01:51 AM PST Good day. I'm trying to delimit the tilde while using awk over an ssh remote connection. When I run the command on the localhost the command works as expected. When I try to use the same command on a remote server, it returns a syntax error. -bash-4.2$ /opt/SMAW/bin/RtpDumpLog -s 2111250000 | awk '$4 ~ /major/ { print }' 05-12-2021 02:11:20 141-9994 major "OEM:cscf0002vm003oam001:sshd: sshd[32721]: fatal: Read from socket failed: Connection reset by peer [preauth]" 05-12-2021 02:11:21 141-9994 major "OEM:cscf0002vm003oam001:sshd: sshd[32724]: fatal: Read from socket failed: Connection reset by peer [preauth]" 05-12-2021 02:11:22 141-9994 major "OEM:cscf0002vm003oam001:sshd: sshd[32726]: fatal: Read from socket failed: Connection reset by peer [preauth]" 05-12-2021 02:11:25 141-9994 major "OEM:cscf0002vm003oam001:sshd: sshd[911]: fatal: Read from socket failed: Connection reset by peer [preauth]" 05-12-2021 02:11:27 141-9994 major "OEM:cscf0002vm003oam001:sshd: sshd[914]: fatal: Read from socket failed: Connection reset by peer [preauth]" 05-12-2021 02:12:10 141-9994 major "OEM:cscf0002vm003oam001:sshd: sshd[1081]: fatal: Write failed: Connection reset by peer [preauth]" 05-12-2021 02:12:11 141-9994 major "OEM:cscf0002vm003oam001:sshd: sshd[1083]: fatal: Read from socket failed: Connection reset by peer [preauth]" 05-12-2021 02:15:24 141-9994 major "OEM:cscf0002vm003oam001:sshd: sshd[2332]: fatal: Write failed: Connection reset by peer [preauth]" 06-12-2021 19:18:14 141-9994 major "OEM:cscf0002vm003oam001:sshd: sshd[30695]: fatal: Write failed: Broken pipe [preauth]" To remote server: -bash-4.2$ ssh -q 192.168.210.142 "/opt/SMAW/bin/RtpDumpLog -s 2111250000 | awk '$4 ~ /major/ { print }'" awk: cmd. line:1: ~ /major/ { print } awk: cmd. line:1: ^ syntax error I tried using a backslash to delimit the tilde: -bash-4.2$ ssh -q 192.168.210.142 "/opt/SMAW/bin/RtpDumpLog -s 2111250000 | awk '$4 \~ /major/ { print }'" awk: cmd. line:1: \~ /major/ { print } awk: cmd. line:1: ^ backslash not last character on line Please advise. Regards, Bjoern |
Undefined reference to libraries while building Posted: 07 Dec 2021 03:13 AM PST I am trying to install tgs2apng in Ubuntu on WSL. As instructed I installed the 3 libraries- rlottie, libpng and apngasm. However When I run make I get undefined references to rlottie and apngasm Here's the output of make g++ -Wl,--start-group -lrlottie -lapngasm -lboost_filesystem -lboost_regex -Wl,--end-group -Wl,-rpath-link=/usr/local/lib tgs2apng.cpp -o tgs2apng tgs2apng.cpp: In function 'bool tgs2apng::render(const string&, const string&, size_t, size_t)': tgs2apng.cpp:30:38: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 30 | std::fprintf(stderr, "Frame count: %d\n", frames); | ~^ ~~~~~~ | | | | int size_t {aka long unsigned int} | %ld /usr/bin/ld: /tmp/ccWPPbxE.o: in function `tgs2apng::render(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, unsigned long)': tgs2apng.cpp:(.text+0xf3): undefined reference to `rlottie::Animation::loadFromData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' /usr/bin/ld: tgs2apng.cpp:(.text+0x175): undefined reference to `rlottie::Animation::totalFrame() const' /usr/bin/ld: tgs2apng.cpp:(.text+0x193): undefined reference to `rlottie::Animation::frameRate() const' /usr/bin/ld: tgs2apng.cpp:(.text+0x25d): undefined reference to `apngasm::APNGAsm::APNGAsm()' /usr/bin/ld: tgs2apng.cpp:(.text+0x315): undefined reference to `rlottie::Surface::Surface(unsigned int*, unsigned long, unsigned long, unsigned long)' /usr/bin/ld: tgs2apng.cpp:(.text+0x36e): undefined reference to `rlottie::Animation::renderSync(unsigned long, rlottie::Surface, bool)' /usr/bin/ld: tgs2apng.cpp:(.text+0x4ad): undefined reference to `apngasm::APNGFrame::APNGFrame(apngasm::rgba*, unsigned int, unsigned int, unsigned int, unsigned int)' /usr/bin/ld: tgs2apng.cpp:(.text+0x4c6): undefined reference to `apngasm::APNGAsm::addFrame(apngasm::APNGFrame const&)' /usr/bin/ld: tgs2apng.cpp:(.text+0x4ec): undefined reference to `apngasm::APNGAsm::assemble(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: tgs2apng.cpp:(.text+0x506): undefined reference to `apngasm::APNGAsm::~APNGAsm()' /usr/bin/ld: /tmp/ccWPPbxE.o: in function `std::default_delete<rlottie::Animation>::operator()(rlottie::Animation*) const': tgs2apng.cpp:(.text._ZNKSt14default_deleteIN7rlottie9AnimationEEclEPS1_[_ZNKSt14default_deleteIN7rlottie9AnimationEEclEPS1_]+0x22): undefined reference to `rlottie::Animation::~Animation()' collect2: error: ld returned 1 exit status make: *** [<builtin>: tgs2apng] Error 1 ldconfig -p | grep rlottie returns- librlottie.so.0 (libc6,x86-64) => /lib/librlottie.so.0 librlottie.so (libc6,x86-64) => /lib/librlottie.so librlottie-image-loader.so (libc6,x86-64) => /lib/librlottie-image-loader.so and ldconfig -p | grep apngasm returns- libapngasm.so (libc6,x86-64) => /usr/local/lib/libapngasm.so I think that means the libraries are installed, can anyone point out the cause of this error? |
Colors become distorted randomly in Linux, not in Windows Posted: 07 Dec 2021 02:18 AM PST Currently running Fedora, but my issue is not exclusively pointed to this distribution! I have been experiencing this issue of my screen colors inverting/distorting from time to time. And this bug is not exclusive to a single Linux distro, as I have experienced this in other distros (in some more and in some less often). If I snap a screenshot it will not capture the inverted/distorted colors, rather they appear normal (once dealt with an issue through a temporary "solution", which was: To lock the screen, and wait till screen turns off Suspend Close my laptop lid (This however works only with KDE Desktop, not in Gnome Or Cinnamon) Restart / Shutdown I believe it is not a hardware issue, because after experiencing this bug I went back to Windows and did not experience anything of the sort. My laptop model is HP Elitebook 840 G1 without any discrete/dedicated GPU in my model; verified in BIOS/UEFI. sudo inxi --verbosity 8 --filter output: System: Kernel: 5.15.6-200.fc35.x86_64 x86_64 bits: 64 compiler: gcc v: 2.37-10.fc35 parameters: BOOT_IMAGE=(hd0,msdos1)/vmlinuz-5.15.6-200.fc35.x86_64 root=UUID=e88fc516-1afa-4467-af98-bd1837c33b05 ro rootflags=subvol=root rhgb quiet Console: pty pts/0 wm: gnome-shell DM: GDM 41.0 Distro: Fedora release 35 (Thirty Five) Machine: Type: Laptop System: Hewlett-Packard product: HP EliteBook 840 G1 v: A3009DD10203 serial: <filter> Chassis: type: 10 serial: <filter> Mobo: Hewlett-Packard model: 198F v: KBC Version 15.59 serial: <filter> BIOS: Hewlett-Packard v: L71 Ver. 01.49 date: 02/24/2020 Battery: ID-1: BAT0 charge: 26.5 Wh (89.2%) condition: 29.7/29.7 Wh (100.0%) volts: 12.5 min: 11.1 model: Hewlett-Packard Primary type: Li-ion serial: <filter> status: Charging Memory: RAM: total: 7.19 GiB used: 2.21 GiB (30.7%) Array-1: capacity: 16 GiB slots: 2 EC: None max-module-size: 8 GiB note: est. Device-1: Bottom-Slot 1(left) size: 4 GiB speed: 1600 MT/s type: DDR3 detail: synchronous bus-width: 64 bits total: 64 bits manufacturer: Hynix/Hyundai part-no: HMT351S6EFR8A-PB serial: <filter> Device-2: Bottom-Slot 2(right) size: 4 GiB speed: 1600 MT/s type: DDR3 detail: synchronous bus-width: 64 bits total: 64 bits manufacturer: Samsung part-no: M471B5173DB0-YK0 serial: <filter> PCI Slots: Slot: 1 type: 32-bit PCI PCI SLOT1 status: Available length: Long CPU: Info: Dual Core model: Intel Core i5-4300U socket: BGA1168 (U3E1) note: check bits: 64 type: MT MCP arch: Haswell family: 6 model-id: 45 (69) stepping: 1 microcode: 26 cache: L1: 128 KiB L2: 512 KiB L3: 3 MiB bogomips: 19953 Speed: 973 MHz min/max: 800/2900 MHz base/boost: 1900/2500 volts: 0.8 V ext-clock: 100 MHz Core speeds (MHz): 1: 973 2: 1781 3: 2046 4: 1387 Flags: abm acpi aes aperfmperf apic arat arch_perfmon avx avx2 bmi1 bmi2 bts clflush cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht ibpb ibrs ida invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdtscp rep_good sdbg sep smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic xsave xsaveopt xtopology xtpr Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable Type: mds mitigation: Clear CPU buffers; SMT vulnerable Type: meltdown mitigation: PTI Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling Type: srbds mitigation: Microcode Type: tsx_async_abort status: Not affected Graphics: Device-1: Intel Haswell-ULT Integrated Graphics vendor: Hewlett-Packard driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0a16 class-ID: 0300 Device-2: Cheng Uei Precision Industry (Foxlink) HP HD Webcam type: USB driver: uvcvideo bus-ID: 2-7:3 chip-ID: 05c8:0369 class-ID: 0e02 Display: server: X.Org 1.21.1.3 compositor: gnome-shell driver: loaded: modesetting unloaded: fbdev,vesa display-ID: :0 screens: 1 Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") s-diag: 414mm (16.3") Monitor-1: XWAYLAND0 res: 1366x768 hz: 60 dpi: 112 size: 310x170mm (12.2x6.7") diag: 354mm (13.9") OpenGL: renderer: Mesa Intel HD Graphics 4400 (HSW GT2) v: 4.6 Mesa 21.2.5 compat-v: 3.1 direct render: Yes Audio: Device-1: Intel Haswell-ULT HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:03.0 chip-ID: 8086:0a0c class-ID: 0403 Device-2: Intel 8 Series HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:9c20 class-ID: 0403 Sound Server-1: ALSA v: k5.15.6-200.fc35.x86_64 running: yes Sound Server-2: PipeWire v: 0.3.40 running: yes Network: Device-1: Intel Ethernet I218-LM vendor: Hewlett-Packard driver: e1000e v: kernel port: 3080 bus-ID: 00:19.0 chip-ID: 8086:155a class-ID: 0200 IF: enp0s25 state: down mac: <filter> Device-2: Intel Wireless 7260 driver: iwlwifi v: kernel bus-ID: 02:00.0 chip-ID: 8086:08b1 class-ID: 0280 IF: wlo1 state: up mac: <filter> IP v4: <filter> type: dynamic noprefixroute scope: global broadcast: <filter> IP v6: <filter> type: noprefixroute scope: link WAN IP: <filter> Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 2-3.2:4 chip-ID: 8087:07dc class-ID: e001 Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running rfk-block: hardware: no software: yes address: see --recommends Logical: Message: No logical block device data found. RAID: Message: No RAID data found. Drives: Local Storage: total: 465.76 GiB used: 60.77 GiB (13.0%) SMART Message: Required tool smartctl not installed. Check --recommends ID-1: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi) model: HTS725050A7E630 size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: B550 temp: 32 C scheme: MBR Message: No optical or floppy data found. Partition: ID-1: / raw-size: 464.76 GiB size: 464.76 GiB (100.00%) used: 60.51 GiB (13.0%) fs: btrfs block-size: 4096 B dev: /dev/sda2 maj-min: 8:2 label: fedora_localhost-live uuid: e88fc516-1afa-4467-af98-bd1837c33b05 ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 268.6 MiB (27.6%) fs: ext4 block-size: 4096 B dev: /dev/sda1 maj-min: 8:1 label: N/A uuid: cc92cd2f-d0e1-432d-8947-5451608067c9 ID-3: /home raw-size: 464.76 GiB size: 464.76 GiB (100.00%) used: 60.51 GiB (13.0%) fs: btrfs block-size: 4096 B dev: /dev/sda2 maj-min: 8:2 label: fedora_localhost-live uuid: e88fc516-1afa-4467-af98-bd1837c33b05 Swap: Kernel: swappiness: 60 (default) cache-pressure: 100 (default) ID-1: swap-1 type: zram size: 7.19 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0 Unmounted: Message: No unmounted partitions found. USB: Hub-1: 1-0:1 info: Full speed or root hub ports: 3 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0 speed: 480 Mb/s chip-ID: 8087:8000 class-ID: 0900 Hub-3: 2-0:1 info: Hi-speed hub with single TT ports: 9 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 Hub-4: 2-3:2 info: Microchip (formerly SMSC) Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip-ID: 0424:2134 class-ID: 0900 Device-1: 2-3.2:4 info: Intel Bluetooth wireless interface type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:07dc class-ID: e001 Device-2: 2-7:3 info: Cheng Uei Precision Industry (Foxlink) HP HD Webcam type: Video driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 05c8:0369 class-ID: 0e02 Hub-5: 3-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s chip-ID: 1d6b:0003 class-ID: 0900 Hub-6: 3-3:2 info: Microchip (formerly SMSC) Hub ports: 4 rev: 3.0 speed: 5 Gb/s chip-ID: 0424:5534 class-ID: 0900 Sensors: System Temperatures: cpu: 38.0 C mobo: 0.0 C Fan Speeds (RPM): N/A Repos: Packages: note: see --pkg flatpak: 8 No active dnf repos in: /etc/dnf/dnf.conf Active yum repos in: /etc/yum.repos.d/_copr_phracek-PyCharm.repo 1: phracek-PyCharm ~ https://copr-be.cloud.fedoraproject.org/results/phracek/PyCharm/fedora-$releasever-$basearch/ Active yum repos in: /etc/yum.repos.d/brave-browser-rpm-release.s3.brave.com_x86_64_.repo 1: brave-browser-rpm-release.s3.brave.com_x86_64_ ~ https://brave-browser-rpm-release.s3.brave.com/x86_64/ Active yum repos in: /etc/yum.repos.d/fedora-cisco-openh264.repo 1: fedora-cisco-openh264 ~ https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-$releasever&arch=$basearch Active yum repos in: /etc/yum.repos.d/fedora-modular.repo 1: fedora-modular ~ https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-$releasever&arch=$basearch Active yum repos in: /etc/yum.repos.d/fedora-updates-modular.repo 1: updates-modular ~ https://mirrors.fedoraproject.org/metalink?repo=updates-released-modular-f$releasever&arch=$basearch No active yum repos in: /etc/yum.repos.d/fedora-updates-testing-modular.repo No active yum repos in: /etc/yum.repos.d/fedora-updates-testing.repo Active yum repos in: /etc/yum.repos.d/fedora-updates.repo 1: updates ~ https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch Active yum repos in: /etc/yum.repos.d/fedora.repo 1: fedora ~ https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch Active yum repos in: /etc/yum.repos.d/google-chrome.repo 1: google-chrome ~ http://dl.google.com/linux/chrome/rpm/stable/x86_64 Active yum repos in: /etc/yum.repos.d/megasync.repo 1: MEGAsync ~ https://mega.nz/linux/MEGAsync/Fedora_$releasever/ No active yum repos in: /etc/yum.repos.d/rpmfusion-free-updates-testing.repo Active yum repos in: /etc/yum.repos.d/rpmfusion-free-updates.repo 1: rpmfusion-free-updates ~ https://mirrors.rpmfusion.org/metalink?repo=free-fedora-updates-released-$releasever&arch=$basearch Active yum repos in: /etc/yum.repos.d/rpmfusion-free.repo 1: rpmfusion-free ~ https://mirrors.rpmfusion.org/metalink?repo=free-fedora-$releasever&arch=$basearch Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-nvidia-driver.repo 1: rpmfusion-nonfree-nvidia-driver ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-nvidia-driver-$releasever&arch=$basearch Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-steam.repo 1: rpmfusion-nonfree-steam ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-steam-$releasever&arch=$basearch No active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-updates-testing.repo Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-updates.repo 1: rpmfusion-nonfree-updates ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-released-$releasever&arch=$basearch Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree.repo 1: rpmfusion-nonfree ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-$releasever&arch=$basearch Active yum repos in: /etc/yum.repos.d/vscode.repo 1: code ~ https://packages.microsoft.com/yumrepos/vscode Processes: CPU top: 5 of 260 1: cpu: 7.4% command: brave pid: 2597 mem: 123.7 MiB (1.6%) 2: cpu: 5.3% command: brave pid: 2677 mem: 196.4 MiB (2.6%) 3: cpu: 3.9% command: gnome-shell pid: 1621 mem: 257.4 MiB (3.4%) 4: cpu: 3.8% command: brave pid: 2500 mem: 305.2 MiB (4.1%) 5: cpu: 2.0% command: sudo pid: 4836 mem: 9.61 MiB (0.1%) Memory top: 5 of 260 1: mem: 305.2 MiB (4.1%) command: brave pid: 2500 cpu: 3.8% 2: mem: 291.4 MiB (3.9%) command: packagekitd pid: 1106 cpu: 0.8% 3: mem: 257.4 MiB (3.4%) command: gnome-shell pid: 1621 cpu: 3.9% 4: mem: 196.4 MiB (2.6%) command: brave pid: 2677 cpu: 5.3% 5: mem: 193.5 MiB (2.6%) command: gnome-software pid: 1966 cpu: 0.4% Info: Processes: 260 Uptime: 25m wakeups: 1 Init: systemd v: 249 runlevel: 5 target: graphical.target tool: systemctl Compilers: gcc: 11.2.1 Shell: Bash (sudo) v: 5.1.8 running-in: gnome-terminal inxi: 3.3.09 Notes: - Not having any external or other internal disk drives (for testing purposes).
|
Duplicated saves with borgbackup Posted: 07 Dec 2021 03:08 AM PST I need to backup data using Borg Backup from a remote server to a local server (raspberry-pi like - it is actually Yunohost) equipped with a 2 slots storage bay. I would like to have identical copies of the backup data on each disk. Any idea how to do so? I've never done anything like this. Should I create two repositories, one on each disk, and check on Borg's settings to sync them? Or should I set a software raid 1 between both hdds? |
How to connect a USB device? Posted: 07 Dec 2021 02:34 AM PST There is a sensor. This sensor is connected via USB, the file name is ttyUSB0 lying in the /dev folder. There is a set of commands: 1: -m 1024 \ 2: -cpu core2duo \ 3: -serial stdio \ 4: -display none \ 5: -hda /dev/sdb \ 6: -usb \ 7: -usb -device usb-host:productid=0x1a86,vendorid=0x7523 \ 8: -drive file=/home/fedor/Git/usb.img \ 9: -kernel $BUILD/$E_INIT/$BUILD_TARGET The commands to connect the USB device are on lines 6,7,8 and they don't work. The following error message is displayed: -device usb-host:productid=0x1a86,vendorid=0x7523: Parameter 'driver' is missing The file is given full read/write rights sudo chmod -R uog=rwx /dev/ttyUSB0 Create a file image using the command:mkisofs -J -o usb.img /dev/ttyUSB0 fedor@fedor-VirtualBox:~$ lsusb Bus 001 Device 003: ID 1a86:7523 QinHeng Electronics CH340 serial converter Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub I have already reviewed a bunch of sources, tried a bunch of options, but the device could not be connected. ADDITIONAL RESPONSE: the first link - enter link description here second link - enter link description here Third link - enter link description here That's it, I won't find anything else. Yes, these are the instructions to run, they are in a file with the extension .sh, it's big, it's just a small part of it. Everything works if instead of 3 lines I insert -serial /dev/ttyUSB0, but there is no exchange with the device.I just want to throw a USB device into qemu and nothing else. |
How do I change Fedora to SDDM from GDM? Posted: 07 Dec 2021 02:05 AM PST I keep finding sources talking about changing the DM and DE using /etc/sysconfig/desktop but when I write this in the file, nothing changes: DESKTOP="GNOME" DISPLAYMANAGER="SDDM" I have already installed sddm. |
How can I replace a word with another word in a whole hierarchy of files Posted: 07 Dec 2021 03:01 AM PST I have a hierarchy of files and two words: word1 and word2. In this hierarchy of files, some of them can contain word1. I want to replace every occurrence of word1 with word2. It is possible using a single bash command or I have to develop a script for this task? Thank you in advance! |
Where to find the shared folder in Kali Linux? Posted: 07 Dec 2021 03:02 AM PST I use Kali Linux as a virtual machine in VMware Workstation Player with Windows 10 Home as host. The Player has the option to pick a Windows folder to be used as a shared folder. I set this up, it says it's enabled, but in Kali Linux this shared folder should be present in /mnt/hgfs . /mnt exists, but is empty. I'm stuck here. |
Alternative to Ctrl-R reverse search in bash Posted: 07 Dec 2021 03:00 AM PST I am happy and really like the Ctrl-R backward search feature of the bash shell. Some of my colleagues don't like it, since it is sometimes confusing. I understand them. If you enter the wrong characters, the current position in the history is somewhere in the past, and you won't find the recent matches. Is there a more user friendly alternative for seaching backward in the shell history? I want to stick with bash. Suggesting an alternative shell is not an answer to this question. The issue with the "lost position" is explained here: Reset bash history search position. These solutions work. That's right. But the solution there are not easy and user friendly according to my point of view. These solutions are not simple and straight forward. These are solutions of the past. In the past the human needed to learn the way the computer wanted the input. But today the tools should accept the input in a way which is easy for the user. Maybe someone knows a IDE of jetbrains like PyCharm. If you search for "foobar" you even get the lines which contain "foo_bar". That's great, that's unix :-) |
Very low volume audio through Bluetooth since networking restart Posted: 07 Dec 2021 02:07 AM PST I'm running Debian 8, and I've been successfully using Pulseaudio/BlueZ to play audio through a Bluetooth speaker. Today I restarted my networking stack in order to try and fix a WiFi problem, and since then the audio has been very, very quiet. I usually have the speaker on very low volume, but now I can't hear anything unless it's on full - and even then it's quiet. The speaker is fine with other inputs. Any help greatly appreciated! Here is the sink from pacmd list-sinks: index: 2 name: <bluez_sink.40_EF_4C_87_A6_85> driver: <module-bluez5-device.c> flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME state: RUNNING suspend cause: priority: 9030 volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps: 65537 muted: no current latency: 32.82 ms max request: 3 KiB max rewind: 0 KiB monitor source: 3 sample spec: s16le 2ch 44100Hz channel map: front-left,front-right Stereo used by: 1 linked by: 1 fixed latency: 45.32 ms card: 2 <bluez_card.40_EF_4C_87_A6_85> module: 27 properties: bluetooth.protocol = "a2dp_sink" device.description = "AXiS X3" device.string = "40:EF:4C:87:A6:85" device.api = "bluez" device.class = "sound" device.bus = "bluetooth" device.form_factor = "headset" bluez.path = "/org/bluez/hci0/dev_40_EF_4C_87_A6_85" bluez.class = "0x240404" bluez.alias = "AXiS X3" device.icon_name = "audio-headset-bluetooth" device.intended_roles = "phone" ports: headset-output: Headset (priority 0, latency offset 0 usec, available: unknown) properties: active port: <headset-output> And here is the only sink input: 1 sink input(s) available. index: 1 driver: <protocol-native.c> flags: START_CORKED state: RUNNING sink: 2 <bluez_sink.40_EF_4C_87_A6_85> volume: front-left: 65535 / 100% / -0.00 dB, front-right: 65535 / 100% / -0.00 dB balance 0.00 muted: no current latency: 982.00 ms requested latency: 45.32 ms sample spec: s16le 2ch 44100Hz channel map: front-left,front-right Stereo resample method: (null) module: 11 client: 16 <Spotify> properties: media.role = "music" media.name = "Spotify" application.name = "Spotify" native-protocol.peer = "UNIX socket client" native-protocol.version = "29" application.process.id = "1555" application.process.user = "richard" application.process.host = "debian" application.process.binary = "spotify" window.x11.display = ":0.0" application.language = "en_GB.utf8" application.process.machine_id = "1b66e5d6e5fc45b981704645611058d0" application.process.session_id = "1" application.icon_name = "spotify-client" module-stream-restore.id = "sink-input-by-media-role:music" |
sending alerts from linux machine through email to MS outlook exchange Posted: 07 Dec 2021 01:04 AM PST I Have a Scenario. I have written a shell script who check the space of mount point '/u06'. if free space is greater then 20% then its OK or if free space is less then 20% then it should generate a mail and send it to System Administrator. Our organization is using MS Outlook mailing. I want to know how can I send alerts through my Linux machine to exchange server. How to configure email in Linux? |
How to track newly created processes in Linux? Posted: 07 Dec 2021 02:49 AM PST I know that with ps I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As analogy, when you use tail -f to follow the new contents appended to a file or to any input, then I want to keep a follow list of the process that are currently being created. Is this even posible? |
tmux status line with blank line on top? Posted: 07 Dec 2021 01:48 AM PST I have a nice tmux status line, but I don't like how the bash/commands run flush along it. That is, if the screen is full, I'm typing things right above the status line. I'd like a one line break above it, so that what I'm typing never "touches" the status line; is there any way to do this? Example: Let's say I have a very small terminal window that is two lines long bash>$ (cursor) 1: bash* 2: bash- 3: vim- How would I get a blank line to separate the status bar from the prompt, like: bash>$ (cursor) 1: bash* 2: bash- 3: vim- |
No comments:
Post a Comment