Error message here end Kernel Panic - not syncing: attempted to kill init! exitcode=0x00007f00 Posted: 23 Feb 2022 11:43 AM PST My OS crashed while I was using normally the navigator and a text editor, so I've decided to force the shutdown manually, when the screen turned on and is loading the OS it appeared that busybox screen where I am supposed to type something in initramfs, so I have typed: <initramfs> fsck /dev/sda2/ And I typed yes in all questions during the process, Now I am facing this screen: Now how could I proceed on it?? My Ubuntu version is the Ubuntu 20.04 Focal Fossa |
Trying to loop a command within a case statement Posted: 23 Feb 2022 11:14 AM PST I really don't know what I'm doing and would appreciate any help with this. I'm reading string data from an input stream. When str2 is true I want command1 to repeat until a line comes through where str2 is false. There may be other unconnected lines of date in the meantime. The code works fine if i just run command1 after the "xxx true xxx" ) but it only does it once. I've tried Until and couldn't get that to work. while IFS=" ," read str1 str2 str3; do case "$str1 $str2 $str3" in "xxx true xxx" ) while "$str2" != "false" do for (( c=1; c<1000; c++)) do command1 sleep 0.1 IFS=" ," read str1 str2 str3> done done;; esac done |
How can I tell which partition is my Linux install? Posted: 23 Feb 2022 10:55 AM PST So I am trying to install Pop!_OS over a broken Ubuntu install. My machine has 2 identical 2TB NVME drives, and the Pop installer is allowing me to choose between them. One drive has 2 partitions (536.9 fat32 & 2TB ext4) and the other drive has 6 partitions - a mix of fat32 and ntfs. Is there any way to tell which one is the windows and which is the Ubuntu partition? I also have access to the terminal if that helps. |
Change default boot from Windows to Linux Posted: 23 Feb 2022 10:31 AM PST I have a system that shipped with Windows 10. I installed Rocky 8.5 on it. When the system boots it defaults to Windows 10. I can boot to Rocky if I press F7 on boot. How would I go about changing it so by default the system boots to Rocky Linux? |
Merge 2 files based on the first and second column then add the difference between 3rd and 4th columns and add total rows per type of second column Posted: 23 Feb 2022 11:39 AM PST I need to merge the below 2 files: File 1: VALIDATION_DATA_DBF DELETE 226 6.4 TXT_DBF DELETE 80 0.15 DEFAULT_PROFILE SELECT 45 1.2 TRAINING_DBF SELECT 130 5.25 TESTING_DBF SELECT 5 0.001 WARNING_DBF UPDATE 8 0.055 WARNING_DBF INSERT 5 2.4 File 2: VALIDATION_DATA_DBF DELETE 200 7.4 TXT_DBF DELETE 70 1.15 DEFAULT_PROFILE SELECT 40 0.2 TRAINING_DBF SELECT 135 7.25 TESTING_DBF SELECT 7 0.009 PERF_DBF SELECT 10 0.004 WARNING_DBF UPDATE 2 1.055 The merged output file should be as shown below: TABLE TYPE COUNT1 COUNT2 DIFF_COUNT TIME1 TIME2 DIFF_TIME VALIDATION_DATA_DBF DELETE 226 200 26 6.4 7.4 -1 TXT_DBF DELETE 80 70 10 0.15 1.15 -1 TOTAL DELETE 306 270 36 6.55 8.55 -2 DEFAULT_PROFILE SELECT 45 40 5 1.2 0.2 1 TRAINING_DBF SELECT 130 135 -5 5.25 7.25 -2 TESTING_DBF SELECT 5 7 -2 0.001 0.009 -0.008 PERF_DBF SELECT 0 10 -10 0 0.004 -0.004 TOTAL SELECT 180 192 -12 6.451 7.463 -1.012 WARNING_DBF UPDATE 8 2 6 0.055 1.055 -1 TOTAL UPDATE 8 2 6 0.055 1.055 -1 WARNING_DBF INSERT 5 0 5 2.4 0 2.4 TOTAL INSERT 5 0 5 2.4 0 2.4 |
Debian headless server connected to Ethernet interface ~50% packet loss accessing the Internet Posted: 23 Feb 2022 09:30 AM PST I already did a bunch of troubleshooting in the last three days regarding this issue. Here are the tests and the observations I made so far: - Internet connection to my server is dropping constantly (see ping below)
- Server has static address and the address is out of the DCHP Range of the router
- Modem is a Modem/Router used in Bridged mode. (Reset to factory settings 3 times now)
- I tried 3 different routers = same results 50% packet loss
- I tried two different physical interfaces = same 50% packet loss
- I tried 3 different Ethernet cables = same 50% packet loss
- I stopped many of my processes on my server simultaneously (see the list below)
- I disabled my firewall
- My connections from the clients to the server on my LAN is always 100% packet received
- Connecting the server directly to the modem showed no packet loss while pinging 8.8.8.8
- Got nothing suspect in dmesg or journalctl when the Internet connection are dropped happens
- Connecting the Ethernet cable in my laptop instead of the server results in no packet loss for the laptop - Booting a Arch Linux from a USB drive gives me no problem with the Internet whatsoever.
I figured at that point that this must be a software related issue. But now I'm stuck. Here's my ping results. It's basically the same every time I run it under the different environments I tried listed below. ➜ ~ ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=119 time=14.5 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=119 time=14.4 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=119 time=13.9 ms 64 bytes from 8.8.8.8: icmp_seq=4 ttl=119 time=14.9 ms 64 bytes from 8.8.8.8: icmp_seq=5 ttl=119 time=16.1 ms 64 bytes from 8.8.8.8: icmp_seq=6 ttl=119 time=14.8 ms 64 bytes from 8.8.8.8: icmp_seq=7 ttl=119 time=15.2 ms 64 bytes from 8.8.8.8: icmp_seq=8 ttl=119 time=15.5 ms 64 bytes from 8.8.8.8: icmp_seq=9 ttl=119 time=2052 ms 64 bytes from 8.8.8.8: icmp_seq=10 ttl=119 time=1024 ms 64 bytes from 8.8.8.8: icmp_seq=11 ttl=119 time=16.7 ms 64 bytes from 8.8.8.8: icmp_seq=12 ttl=119 time=22.7 ms 64 bytes from 8.8.8.8: icmp_seq=13 ttl=119 time=19.5 ms 64 bytes from 8.8.8.8: icmp_seq=14 ttl=119 time=23.0 ms 64 bytes from 8.8.8.8: icmp_seq=15 ttl=119 time=12.6 ms 64 bytes from 8.8.8.8: icmp_seq=16 ttl=119 time=18.0 ms 64 bytes from 8.8.8.8: icmp_seq=17 ttl=119 time=26.0 ms 64 bytes from 8.8.8.8: icmp_seq=18 ttl=119 time=18.8 ms 64 bytes from 8.8.8.8: icmp_seq=31 ttl=119 time=24.8 ms 64 bytes from 8.8.8.8: icmp_seq=32 ttl=119 time=13.9 ms 64 bytes from 8.8.8.8: icmp_seq=33 ttl=119 time=19.0 ms 64 bytes from 8.8.8.8: icmp_seq=34 ttl=119 time=15.9 ms 64 bytes from 8.8.8.8: icmp_seq=35 ttl=119 time=15.6 ms 64 bytes from 8.8.8.8: icmp_seq=36 ttl=119 time=14.6 ms 64 bytes from 8.8.8.8: icmp_seq=37 ttl=119 time=12.8 ms 64 bytes from 8.8.8.8: icmp_seq=38 ttl=119 time=14.7 ms 64 bytes from 8.8.8.8: icmp_seq=39 ttl=119 time=14.7 ms 64 bytes from 8.8.8.8: icmp_seq=40 ttl=119 time=16.0 ms 64 bytes from 8.8.8.8: icmp_seq=41 ttl=119 time=15.2 ms 64 bytes from 8.8.8.8: icmp_seq=42 ttl=119 time=15.8 ms 64 bytes from 8.8.8.8: icmp_seq=43 ttl=119 time=33.0 ms 64 bytes from 8.8.8.8: icmp_seq=44 ttl=119 time=21.1 ms 64 bytes from 8.8.8.8: icmp_seq=45 ttl=119 time=19.4 ms 64 bytes from 8.8.8.8: icmp_seq=46 ttl=119 time=15.0 ms 64 bytes from 8.8.8.8: icmp_seq=47 ttl=119 time=30.3 ms 64 bytes from 8.8.8.8: icmp_seq=48 ttl=119 time=15.8 ms 64 bytes from 8.8.8.8: icmp_seq=49 ttl=119 time=14.0 ms 64 bytes from 8.8.8.8: icmp_seq=50 ttl=119 time=12.9 ms 64 bytes from 8.8.8.8: icmp_seq=51 ttl=119 time=16.1 ms 64 bytes from 8.8.8.8: icmp_seq=52 ttl=119 time=14.3 ms 64 bytes from 8.8.8.8: icmp_seq=53 ttl=119 time=15.8 ms 64 bytes from 8.8.8.8: icmp_seq=54 ttl=119 time=14.4 ms 64 bytes from 8.8.8.8: icmp_seq=55 ttl=119 time=15.1 ms 64 bytes from 8.8.8.8: icmp_seq=56 ttl=119 time=20.4 ms 64 bytes from 8.8.8.8: icmp_seq=57 ttl=119 time=13.9 ms 64 bytes from 8.8.8.8: icmp_seq=58 ttl=119 time=15.5 ms 64 bytes from 8.8.8.8: icmp_seq=59 ttl=119 time=16.1 ms 64 bytes from 8.8.8.8: icmp_seq=60 ttl=119 time=14.5 ms 64 bytes from 8.8.8.8: icmp_seq=61 ttl=119 time=14.5 ms 64 bytes from 8.8.8.8: icmp_seq=62 ttl=119 time=13.5 ms 64 bytes from 8.8.8.8: icmp_seq=63 ttl=119 time=14.9 ms 64 bytes from 8.8.8.8: icmp_seq=64 ttl=119 time=16.1 ms 64 bytes from 8.8.8.8: icmp_seq=65 ttl=119 time=16.3 ms 64 bytes from 8.8.8.8: icmp_seq=66 ttl=119 time=14.0 ms 64 bytes from 8.8.8.8: icmp_seq=85 ttl=119 time=2080 ms 64 bytes from 8.8.8.8: icmp_seq=86 ttl=119 time=1056 ms 64 bytes from 8.8.8.8: icmp_seq=87 ttl=119 time=32.5 ms 64 bytes from 8.8.8.8: icmp_seq=88 ttl=119 time=22.6 ms 64 bytes from 8.8.8.8: icmp_seq=89 ttl=119 time=15.3 ms 64 bytes from 8.8.8.8: icmp_seq=90 ttl=119 time=12.9 ms 64 bytes from 8.8.8.8: icmp_seq=91 ttl=119 time=14.7 ms 64 bytes from 8.8.8.8: icmp_seq=92 ttl=119 time=15.2 ms 64 bytes from 8.8.8.8: icmp_seq=93 ttl=119 time=15.7 ms 64 bytes from 8.8.8.8: icmp_seq=94 ttl=119 time=17.5 ms 64 bytes from 8.8.8.8: icmp_seq=95 ttl=119 time=15.1 ms 64 bytes from 8.8.8.8: icmp_seq=117 ttl=119 time=16.6 ms 64 bytes from 8.8.8.8: icmp_seq=118 ttl=119 time=13.0 ms 64 bytes from 8.8.8.8: icmp_seq=119 ttl=119 time=13.6 ms 64 bytes from 8.8.8.8: icmp_seq=120 ttl=119 time=11.8 ms 64 bytes from 8.8.8.8: icmp_seq=121 ttl=119 time=13.6 ms 64 bytes from 8.8.8.8: icmp_seq=122 ttl=119 time=13.6 ms 64 bytes from 8.8.8.8: icmp_seq=123 ttl=119 time=13.5 ms 64 bytes from 8.8.8.8: icmp_seq=124 ttl=119 time=27.5 ms 64 bytes from 8.8.8.8: icmp_seq=149 ttl=119 time=960 ms 64 bytes from 8.8.8.8: icmp_seq=150 ttl=119 time=14.6 ms 64 bytes from 8.8.8.8: icmp_seq=151 ttl=119 time=15.9 ms 64 bytes from 8.8.8.8: icmp_seq=152 ttl=119 time=15.6 ms 64 bytes from 8.8.8.8: icmp_seq=153 ttl=119 time=26.9 ms 64 bytes from 8.8.8.8: icmp_seq=154 ttl=119 time=13.6 ms 64 bytes from 8.8.8.8: icmp_seq=155 ttl=119 time=15.5 ms 64 bytes from 8.8.8.8: icmp_seq=156 ttl=119 time=15.2 ms 64 bytes from 8.8.8.8: icmp_seq=157 ttl=119 time=16.0 ms 64 bytes from 8.8.8.8: icmp_seq=164 ttl=119 time=14.1 ms 64 bytes from 8.8.8.8: icmp_seq=165 ttl=119 time=15.2 ms 64 bytes from 8.8.8.8: icmp_seq=166 ttl=119 time=21.3 ms 64 bytes from 8.8.8.8: icmp_seq=167 ttl=119 time=14.7 ms 64 bytes from 8.8.8.8: icmp_seq=168 ttl=119 time=15.4 ms 64 bytes from 8.8.8.8: icmp_seq=169 ttl=119 time=16.1 ms 64 bytes from 8.8.8.8: icmp_seq=170 ttl=119 time=14.3 ms 64 bytes from 8.8.8.8: icmp_seq=171 ttl=119 time=15.9 ms 64 bytes from 8.8.8.8: icmp_seq=172 ttl=119 time=20.3 ms 64 bytes from 8.8.8.8: icmp_seq=173 ttl=119 time=16.8 ms 64 bytes from 8.8.8.8: icmp_seq=174 ttl=119 time=16.1 ms 64 bytes from 8.8.8.8: icmp_seq=175 ttl=119 time=14.0 ms 64 bytes from 8.8.8.8: icmp_seq=176 ttl=119 time=17.3 ms 64 bytes from 8.8.8.8: icmp_seq=177 ttl=119 time=16.7 ms 64 bytes from 8.8.8.8: icmp_seq=178 ttl=119 time=21.3 ms 64 bytes from 8.8.8.8: icmp_seq=179 ttl=119 time=14.4 ms 64 bytes from 8.8.8.8: icmp_seq=180 ttl=119 time=17.6 ms 64 bytes from 8.8.8.8: icmp_seq=181 ttl=119 time=13.7 ms 64 bytes from 8.8.8.8: icmp_seq=182 ttl=119 time=23.8 ms 64 bytes from 8.8.8.8: icmp_seq=183 ttl=119 time=15.4 ms 64 bytes from 8.8.8.8: icmp_seq=184 ttl=119 time=14.7 ms 64 bytes from 8.8.8.8: icmp_seq=185 ttl=119 time=20.2 ms 64 bytes from 8.8.8.8: icmp_seq=186 ttl=119 time=14.5 ms 64 bytes from 8.8.8.8: icmp_seq=187 ttl=119 time=12.8 ms 64 bytes from 8.8.8.8: icmp_seq=188 ttl=119 time=15.4 ms 64 bytes from 8.8.8.8: icmp_seq=189 ttl=119 time=14.8 ms 64 bytes from 8.8.8.8: icmp_seq=190 ttl=119 time=16.1 ms 64 bytes from 8.8.8.8: icmp_seq=191 ttl=119 time=14.1 ms 64 bytes from 8.8.8.8: icmp_seq=195 ttl=119 time=320 ms 64 bytes from 8.8.8.8: icmp_seq=196 ttl=119 time=13.5 ms 64 bytes from 8.8.8.8: icmp_seq=197 ttl=119 time=14.5 ms 64 bytes from 8.8.8.8: icmp_seq=198 ttl=119 time=15.5 ms 64 bytes from 8.8.8.8: icmp_seq=199 ttl=119 time=15.0 ms 64 bytes from 8.8.8.8: icmp_seq=200 ttl=119 time=13.1 ms 64 bytes from 8.8.8.8: icmp_seq=201 ttl=119 time=17.9 ms 64 bytes from 8.8.8.8: icmp_seq=202 ttl=119 time=15.6 ms 64 bytes from 8.8.8.8: icmp_seq=203 ttl=119 time=13.2 ms 64 bytes from 8.8.8.8: icmp_seq=225 ttl=119 time=1056 ms 64 bytes from 8.8.8.8: icmp_seq=226 ttl=119 time=32.5 ms 64 bytes from 8.8.8.8: icmp_seq=227 ttl=119 time=15.5 ms 64 bytes from 8.8.8.8: icmp_seq=228 ttl=119 time=13.6 ms 64 bytes from 8.8.8.8: icmp_seq=229 ttl=119 time=15.7 ms 64 bytes from 8.8.8.8: icmp_seq=230 ttl=119 time=21.7 ms 64 bytes from 8.8.8.8: icmp_seq=231 ttl=119 time=16.9 ms 64 bytes from 8.8.8.8: icmp_seq=232 ttl=119 time=13.5 ms 64 bytes from 8.8.8.8: icmp_seq=233 ttl=119 time=14.5 ms ^C --- 8.8.8.8 ping statistics --- 248 packets transmitted, 128 received, 48.3871% packet loss, time 1216ms rtt min/avg/max/mdev = 11.806/82.526/2080.231/306.259 ms, pipe 3 Two traceroute executed back to back ➜ ~ traceroute 8.8.8.8 traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets 1 * * * 2 My WAN IP.mc.videotron.ca (My WAN IP) 19.047 ms 10.699 ms 19.035 ms 3 10.170.183.146 (10.170.183.146) 20.538 ms 21.036 ms 21.203 ms 4 72.14.205.46 (72.14.205.46) 20.269 ms 20.188 ms 20.189 ms 5 108.170.251.17 (108.170.251.17) 20.355 ms 108.170.251.33 (108.170.251.33) 20.149 ms 108.170.251.17 (108.170.251.17) 20.134 ms 6 108.170.231.63 (108.170.231.63) 21.359 ms 108.170.231.61 (108.170.231.61) 16.538 ms 108.170.231.63 (108.170.231.63) 16.186 ms 7 dns.google (8.8.8.8) 16.761 ms 15.483 ms 15.866 ms ➜ ~ traceroute 8.8.8.8 traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets 1 * * * 2 * * * 3 * * * 4 * * * 5 * * * 6 * * * 7 * * * 8 * * * 9 * * * 10 * * * 11 * * * 12 * * * 13 * * * 14 * * * 15 * * * 16 * * * 17 * * * 18 * * * 19 * * * 20 * * * 21 * * * 22 * * * 23 * * * 24 * * * 25 * * * 26 * * * 27 * * dns.google (8.8.8.8) /etc/network/interfaces ➜ ~ cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). #source /etc/network/interfaces.d/* # The loopback network interface #auto lo #iface lo inet loopback # The primary network interface #allow-hotplug enx00e04c6802a2 auto lo br0 iface lo inet loopback auto enp5s0 iface enp5s0 inet manual iface br0 inet static address 192.168.3.104 netmask 255.255.255.0 gateway 192.168.3.1 bridge_ports enp5s0 bridge_stp off bridge_fd 0 bridge_maxwait 0 post-up iptables-restore < /etc/iptables.up.rules Thanks for your help |
How do transmission-cli clients punch through NAT? Posted: 23 Feb 2022 09:05 AM PST Trying to figure out how to configure nftables on self-hosted tracker (running bittorrent-tracker) and transmission-cli clients. |
How can I copy all files while excluding files with a certain pattern? Posted: 23 Feb 2022 10:07 AM PST I have the following folder and files: . ├── photos │ ├── photo-a │ │ ├── photo-a.meta.json │ │ ├── photo-a.json │ ├── photo-b │ │ ├── photo-b.meta.json └───└───└── photo-b.json ... There are more folders and files in the photos folder in the same structure I would want to copy all the files photo-a.json , photo-b.json and others into another folder called photos-copy . Basically, I want to exclude all the files that end with .meta.json but copy only those that end with .json files. So, if done correctly, photos-copy folder would look like this: . ├── photos-copy │ ├── photo-a.json └───└── photo-b.json ... I tried something along cp -a ./photos/*.json ./photos-copy but this will end up copying everything because the .meta.json files also end with .json extensions. How can I do this? |
Why SSSD fails to start? Posted: 23 Feb 2022 08:16 AM PST Hi cross compile and installed SSSD for ARM architecture. Since on my board I don't have systemctl , service or other similar programs, I try to start SSSD itself with the command: sssd start -c /etc/sssd/sssd.conf -d=0x0100 The output I obtain is something like the following: #sssd start -c /etc/sssd/sssd.conf -d=0x0100 [sssd] [confdb_init_db] (0x0100): LDIF file to import: dn: cn=config version: 2 dn: cn=sssd,cn=config cn: sssd domains: LDAP_DOMAIN enable_files_domain: true config_file_version: 2 services: nss, pam dn: cn=LDAP_DOMAIN,cn=domain,cn=config cn: LDAP_DOMAIN enumerate: true id_provider: ldap auth_provider: ldap ldap_uri: ldap://<server_IP> ldap_search_base: dc=ldap,dc=local cache_credentials: true ldap_default_bind_dn: uid=test,cn=users,cn=accounts,dc=ldap,dc=local ldap_default_authtok_type: password ldap_default_authtok: mypsw [sssd] [server_setup] (0x1f7c0): Becoming a daemon. As far as I can see, there aren't evident critical or error messages, but I am not able to to a simple lookup of a user (e.g. id user ) that resides on the remote server. My /etc/sssd/sssd.conf configuration file is the following: [sssd] domains = LDAP_DOMAIN enable_files_domain = true config_file_version = 2 services = nss, pam [domain/LDAP_DOMAIN] enumerate = true id_provider = ldap auth_provider = ldap ldap_uri = ldap://<server_IP> ldap_search_base = dc=ldap,dc=local cache_credentials = true ldap_default_bind_dn = uid=test,cn=users,cn=accounts,dc=ldap,dc=local ldap_default_authtok_type = password ldap_default_authtok = userpsw Can anyone provide some steps in order to understand why sssd is not working? Thanks! |
booting after emergency mode in debian Posted: 23 Feb 2022 08:00 AM PST My computer stopped booting after (I think) an update. I'm saying think, because booting with the previous kernel version does not work either. I'm running Debian with kernel 5.10.0-10-amd64. After loading initial ramdisk I get the message NVRM: no NVIDIA GPU found. three times. I have no NVIDIA GPU so not sure why that message is there. It follows with [FAILED] Failed to start: Load Kernel Modules iwlwifi: firmware: failed to load and that it's one I do need. At the end it says You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode. Cannot open access to console, the tot account is locked. See sulogin(8) man page for more details. Press Enter to continue. By pressing enter, I only get to this same state. Other than going into the grub menu, there sites not seem to be anything else to do. Is there a way out of this other than a rescue disc? |
Remove all filenames containing ";" in bash Posted: 23 Feb 2022 09:42 AM PST I know how to replace a set of characters in filenames. E.g for i in *example_text* ; do mv "$i" "`echo $i | sed 's/example_text//'`" done How do I do so if a part of the filename is ";" (between quotes). I get an error whenever I try to run: for i in *;* ; do mv "$i" "`echo $i | sed 's/;//'`" done Any tips? |
Maintenance script location Posted: 23 Feb 2022 08:24 AM PST I have a bunch of maintenance scripts that are typically only run by cron or root. I had been putting them in /usr/local/sbin but honestly, I don't want them in the path. Normal users can't (and don't want to) run them and even root doesn't need them in the path. There are several other options, but I'm not sure which is best. Considerations: /root/maintenance - Reservation is that not all maintenance scripts run as root. /opt/maintenance - Guess it is an optional package. /usr/local/maintenance - If placing sub-directories in /usr/local isn't unorthodox. /etc/maintenance - Doesn't seem like a configuration, but there are other scripts are in /etc . While I understand I can put the maintenance scripts wherever I like, I'd prefer to place them in standard location. If there isn't one, a sensible location will do. |
RSYNC changes file termination and fails Posted: 23 Feb 2022 10:28 AM PST have a strange, rarely occuring error on our Jenkins machines that execute rsync from python to perform some archiving tasks. The error is: rsync: rename "/OLD_PATH/internal/.my_config.json.MfXl7i" -> "internal/my_config.json": Permission denied (13) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3] The command with its error is: rsync -az --no-p --no-g --chmod=ugo=rwX NEW_PATH/ OLD_PATH returned non-zero exit status 23 The file which is written by the rest of the python script right before the rsync call is "my_config.json". Where does the dot before that filename and that ending "MfXl7i" come from? Why does rsync change a file termination apparently? Huge thanks in advance. |
Memory sections of a process Posted: 23 Feb 2022 09:56 AM PST According to the textbook "operating systems concepts 9th ". The memory of a process is divided into different sections. One of the sections is the data section. The book states that : Informally, as mentioned earlier, a process is a program in execution. A process is more than the program code, which is sometimes known as the text section. It also includes the current activity, as represented by the value of the program counter and the contents of the processor's registers. What is the exact meaning of "current activity" ? Does this means that the program counter of the process and the contents of the processor's registers are stored in the text section ? |
Changing brightness only works after system resumes from sleep Posted: 23 Feb 2022 11:28 AM PST I have a Lenovo Legion Slim 7 laptop (15ACH6) running Manjaro 21.2.3 on kernel 5.17. The problem I am facing is that on a clean boot, I cannot change the system brightness (using Fn keys or changing the actual value of brightness in /sys/class/backlight ). However, after putting the system to sleep and then resuming, the brightness controls work just fine -- although the brightness level is not preserved. Contents of /sys/class/backlight : amdgpu_bl1 -> ../../devices/pci0000:00/0000:00:08.1/0000:05:00.0/backlight/amdgpu_bl1/ nvidia_0 -> ../../devices/pci0000:00/0000:00:01.1/0000:01:00.0/backlight/nvidia_0/ nvidia_wmi_ec_backlight -> ../../devices/pci0000:00/PNP0C14:00/wmi_bus/wmi_bus-PNP0C14:00/603E9613-EF25-4338-A3D0-C46177516DB7/backlight/nvidia_wmi_ec_backlight/ The actual brightness value is written to the nvidia_wmi_ec_backlight/brightness file, the other 2 stay the same. Loaded nVidia kernel modules: nvidia_uvm 2650112 0 nvidia_drm 73728 2 nvidia_modeset 1163264 3 nvidia_drm nvidia_wmi_ec_backlight 16384 0 nvidia 39133184 99 nvidia_uvm,nvidia_modeset wmi 40960 3 nvidia_wmi_ec_backlight,wmi_bmof,ideapad_laptop On kernels < 5.16, the nvidia_wmi_ec_backlight module is not present, and I cannot change the brightness whatsover. I am wondering what causes this module to behave correctly only after resuming from sleep. What kind of investigation should I do in order to understand this behaviour? The source code for the kernel module is here: nvidia-wmi-ec-backlight.c . Output of inxi -Fz : System: Kernel: 5.17.0-1-MANJARO x86_64 bits: 64 Desktop: GNOME 41.3 Distro: Manjaro Linux Machine: Type: Laptop System: LENOVO product: 82K8 v: Legion S7 15ACH6 serial: <superuser required> Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required> UEFI: LENOVO v: HACN27WW date: 08/02/2021 Battery: ID-1: BAT0 charge: 64.3 Wh (90.6%) condition: 71.0/71.0 Wh (100.0%) CPU: Info: 8-core model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MT MCP cache: L2: 4 MiB Speed (MHz): avg: 1526 min/max: 400/4680 cores: 1: 1397 2: 1397 3: 1397 4: 1395 5: 1396 6: 1395 7: 1397 8: 1397 9: 1397 10: 3482 11: 1395 12: 1396 13: 1396 14: 1395 15: 1397 16: 1397 Graphics: Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] driver: nvidia v: 510.47.03 Device-2: AMD Cezanne driver: amdgpu v: kernel Device-3: Syntek Integrated Camera type: USB driver: uvcvideo Display: x11 server: X.org 1.21.1.3 driver: loaded: amdgpu,ati,nvidia unloaded: modesetting,nouveau,radeon resolution: <missing: xdpyinfo> OpenGL: renderer: AMD RENOIR (DRM 3.44.0 5.17.0-1-MANJARO LLVM 13.0.0) v: 4.6 Mesa 21.3.5 Audio: Device-1: NVIDIA driver: snd_hda_intel Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A Device-3: AMD Family 17h HD Audio driver: snd_hda_intel Sound Server-1: ALSA v: k5.17.0-1-MANJARO running: yes Sound Server-2: PulseAudio v: 15.0 running: yes Network: Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi IF: wlp2s0 state: up mac: <filter> Bluetooth: Device-1: Intel AX200 Bluetooth type: USB driver: btusb Report: rfkill ID: hci0 rfk-id: 4 state: down bt-service: enabled,running rfk-block: hardware: no software: yes address: see --recommends Drives: Local Storage: total: 953.87 GiB used: 169.04 GiB (17.7%) ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFS001TDE9X084N size: 953.87 GiB Partition: ID-1: / size: 905.83 GiB used: 169.04 GiB (18.7%) fs: ext4 dev: /dev/nvme0n1p3 ID-2: /boot/efi size: 511 MiB used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 Swap: ID-1: swap-1 type: partition size: 32 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p2 Sensors: System Temperatures: cpu: N/A mobo: N/A Fan Speeds (RPM): N/A Info: Processes: 452 Uptime: 8m Memory: 30.79 GiB used: 3.68 GiB (12.0%) Shell: Zsh inxi: 3.3.12 Update: It appears that on a clean boot I can control the brightness for the amdgpu_bl1 controller: echo 50 | sudo tee /sys/class/backlight/amdgpu_bl1/brightness After resuming from sleep, nvidia_wmi_ec_backlight becomes responsible. |
Can't install anything with apt-get on Kali Posted: 23 Feb 2022 09:55 AM PST I tried running sudo apt-get install apktool and got: Reading package list... Done Reading dependency tree... Done Reading state information... Done E: Unable to locate package apktool I ran sudo apt-get update and got: Ign:1 http://security.kali.org/kali-security sana/updates InRelease Ign:2 http://http.kali.org/kali sana InRelease Err:3 http://http.kali.org/kali sana Release 404 Not Found [IP: 192.99.200.113 80] Ign:1 http://security.kali.org/kali-security sana/updates InRelease Ign:1 http://security.kali.org/kali-security sana/updates InRelease Err:1 http://security.kali.org/kali-security sana/updates InRelease Could not resolve 'security.kali.org' Reading package lists... Done E: The repository 'http://http.kali.org/kali sana Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. How can I make apt-get work so I can install stuff? Also: I am running kali as a vm in VMware... It is connected to the internet, but not sure if that is the problem. |
Unix's wwb for Linux? Posted: 23 Feb 2022 10:52 AM PST I read today about the death of a great programmer who wrote many of the tools we use in Linux, such as bc , dc and eqn ; and found out that she also wrote a suite of tools called "Writer's Workbench" or wwb which are enumerated on Wikipedia. I have been unable to find a port or source code of it anywhere; is it available? It sounds really interesting. |
Find all Unity Editor installations on Ubuntu Posted: 23 Feb 2022 08:14 AM PST Using the registry on windows, I am able to find the list of all installed editors and their location. I need to solve the exact same problem on Ubuntu, but have no clue in how to do that. Would you happen to have the solution ? Is there an equivalent to the registry where I could find all Unity Editor installed ? |
Windows 10 & Ubuntu 20.04 Dual Boot no ethernet, and network device name mismatch Posted: 23 Feb 2022 10:20 AM PST I have two main problems with my networking on Linux (windows 10 is perfectly fine, I have access to both Ethernet and WiFi). The first problem is that Ubuntu is not able to connect to Ethernet. I have tried turning on WOL in Windows, and have set the corresponding option in the UEFI BIOS. When I tried running lshw -C network I was given *-network DISABLED description: Ethernet interface product: RTL8125 2.5GbE Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:05:00.0 logical name: enp5s0 version: 00 serial: f0:2f:74:30:f9:af width: 64 bits clock: 33MHz capabilities: bus_master cap_list rom ethernet physical configuration: broadcast=yes driver=r8169 driverversion=5.13.0-27-generic latency=0 link=no multicast=yes resources: irq:43 ioport:e000(size=256) memory:fc810000-fc81ffff memory:fc820000-fc823fff memory:fc800000-fc80ffff memory:fc830000-fc89ffff memory:fc8a0000-fc8bbfff *-network DISABLED description: Ethernet interface product: I211 Gigabit Network Connection vendor: Intel Corporation physical id: 0 bus info: pci@0000:06:00.0 logical name: enp6s0 version: 03 serial: f0:2f:74:30:f9:ae capacity: 1Gbit/s width: 32 bits clock: 33MHz capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.13.0-27-generic firmware=0. 6-1 latency=0 link=no multicast=yes port=twisted pair resources: irq:38 memory:fc700000-fc71ffff ioport:d000(size=32) memory:fc720000-fc723fff So I followed the instruction to run the command sudo ifconfig enp5s0 up and sudo ifconfig enp6s0 up , but after the lshw -C network prints the network options without the DISABLED mark, I still do not see any ethernet options for my machine. I also tried rebooting, but then everything is set back to DISABLED. I am wondering if there's anything I can do to have my ethernet back on? My second question is regarding my WiFi driver/manager (I am not exactly sure what is causing the issue). But the problem all start with a very long wait time on startup. The wait is caused by /sys/subsystem/net/devices/wlp6s0 , which I assumed to be my network device as the network config file under /etc/netplan/ tells me that wifis: wlp6s0: dhcp4: true dhcp6: true access-points: But the information given by lshw -C network indicates the actual name of the device should be wlp7s0 : *-network description: Wireless interface product: Wi-Fi 6 AX200 vendor: Intel Corporation physical id: 0 bus info: pci@0000:07:00.0 logical name: wlp7s0 version: 1a serial: dc:41:a9:e1:d1:88 width: 64 bits clock: 33MHz capabilities: bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=iwlwifi driverversion=5.13.0-27-generic firmware=63.c04f3485.0 cc-a0-63.ucode ip=192.168.50.19 latency=0 link=yes multicast=yes wireless=IEEE 802.11 resources: irq:40 memory:fc600000-fc603fff So I went back and renamed the network config file to read as wifis: wlp7s0: But after reboot I have lost all wireless connection. I am wondering if there's any other files that needs to be modified? It seems that there's no directory on my machine that is /sys/subsystem/net/devices/ , so I really don't know where to start looking. (doing grep in my sys folder somehow kills the wireless connection too) Please let me know if there's a place to start or if there's anything I should read into. Any help is appreciated, thanks in advance! |
Trying to use apt and apt-get returns an error that version 'GLIBC_2.32' not found. How can I fix this without using apt? Posted: 23 Feb 2022 07:51 AM PST I'm using Pop! OS, if that matters here. When running any simple apt or apt-get command in the terminal, even something like apt --help , I get an error message apt: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.32' not found (required by /lib/x86_64-linux-gnu/libsystemd.so.0) However, when I enter lld --version it tells me tat I am using GLIBC 2.32. - specifically, it says lld (Ubuntu GLIBC 2.32-0ubuntu3) 2.32 Every fix I've found online has suggested using something like sudo apt clean to clean, update or otherwise fix things, but the Catch-22 here is that apt is precisely what I can't use. Is there some sort of manual fix I can do? This issue is making my computer basically unusable, so any help would be greatly appreciated. |
auth-user-pass error in openvpn3 Posted: 23 Feb 2022 10:04 AM PST The problem I am encountering is that whenever I try to authenticate using the auth-user-pass option in openvpn3, I always get an error similar to this: ** ERROR ** org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code36: GDBus.Error:net.openvpn.v3.sessions.error: Failed communicating with VPN backend: Failed calling D-Bus method Connect: GDBus.Error:net.openvpn.v3.backend.error.standard: Failed executing D-Bus call 'Connect': Configuration parsing failed: ERR_PROFILE_OPTION: option_error: remote option not specified or just plain old: session-start: ** ERROR ** Failed to start session The relevant line form my ovpn file is: auth-user-pass creds.txt My VPN provider is Nord. My OS is Debian 10. I have tried every way I can of fixing this, the autostarter, the legacy openvpn2 cli, etc. but I always get one of thise errors. Please help! |
New tmux sessions do not source bashrc file Posted: 23 Feb 2022 08:34 AM PST Summary When I create a new tmux session, my prompt pulls from a default bash configuration and I have to manually run source ~/.bashrc for my customized prompt. Analysis I am using a RHEL 7 machine. I began noticing this behavior after a bash update a while back, but haven't gotten around to asking the question until now (and am not sure which update this began happening around). For example, I've customized my prompt to look like: [user@hostname ~]$ Whenever I start a new tmux session, it uses what appears to be the bash default: -sh-4.2$ A quick run of source ~/.bashrc always fixes the issue, but it's annoying that I have to do this every time I want to fix something small. Any ideas on how to get tmux to do this automatically again? If any more information is needed, I am happy to provide. tmux.conf For reference, I have my tmux.conf file below, although it is hardly what you could call custom. setw -g mode-keys vi # reload tmux.conf bind r source-file ~/.tmux.conf \; display-message " ✱ ~/.tmux.conf is reloaded" |
Is it possible to access qemu monitor when VM is already running? Posted: 23 Feb 2022 11:05 AM PST I have a qemu VM running in daemonized mode: qemu --enable-kvm -daemonize -m 512M -device e1000,netdev=network,mac=52:54:00:12:34:58 -netdev tap,id=network,ifname=tap301,script=no,downscript=no -drive file=10G_HDD_clone2 -display vnc=:11 Is it somehow possible to access qemu monitor now when the VM is already running without shutting down the VM? |
prevent backup from running in parallel Posted: 23 Feb 2022 08:39 AM PST In my script /usr/local/bin/backup , that I call every hour from /etc/crontab , I use rsync to copy data to an off-site server. That all worked fine, even in cases where we had somewhat more new data than can be pushed out in an hour. Last week someone copied an 11GB file on the data partition and when I found out the next day there were 14 rsync programs running in parallel, each of then getting no bandwidth and each probably working on the same huge file. I killed them all (before realising I should have kept the first one running), stopped the cron job and ran the backup script by hand. I can write out a file in the script before starting rsync and check in the script if that file is already there to prevent backup from running in parallel. Is there an easier way of doing this? My /etc/crontab entry: 5 * * * * root /usr/local/bin/backup |
Fetch second and fourth column from a file Posted: 23 Feb 2022 09:03 AM PST Problem Statement I am not able to get the values in second and fourth column. Tried grep -i "AUGC\|AACN\|AACY" output.csv | cut -d ',' 2,4 DATA success,1234,["madhu",{'first',[{'last',18}]},"I0","I1",{'MISPswsss',[{'wwwwww',12wqasw}]}] |
Change Owner From "root" in VMware's Shared Folder Posted: 23 Feb 2022 08:03 AM PST I'm running a Xubuntu from a Windows 8 host. I can't change the owner of shared files from xubuntu by any sudo chown ... command. Is there any other way I can change the owner from the root to the user ? I also have tried to mount the shared folder into home directory, still didn't change anything hooman@ubuntu:~/win/meteor$ ls -al total 20 drwxrwxrwx 1 root root 0 Dec 10 19:03 . drwxrwxrwx 1 root root 16384 Dec 11 18:30 .. drwxrwxrwx 1 root root 4096 Dec 10 19:03 simple-todos hooman@ubuntu:~/win/meteor$ Edit: after doing sudo chown : hooman@ubuntu:~/win/meteor$ ls -al total 20 drwxrwxrwx 1 root root 0 Dec 10 19:03 . drwxrwxrwx 1 root root 16384 Dec 11 18:30 .. drwxrwxrwx 1 root root 4096 Dec 10 19:03 simple-todos hooman@ubuntu:~/win/meteor$ sudo chown -v hooman simple-todos/ changed ownership of 'simple-todos/' from root to hooman hooman@ubuntu:~/win/meteor$ ls -al total 20 drwxrwxrwx 1 root root 0 Dec 10 19:03 . drwxrwxrwx 1 root root 16384 Dec 11 18:30 .. drwxrwxrwx 1 root root 4096 Dec 10 19:03 simple-todos |
Which terminal type am I using? Posted: 23 Feb 2022 08:04 AM PST I have tested this with both Ubuntu 12.04 and Debian 7. When I do echo $TERM I get xterm But if I use the dropdown menu "help" > "about" then it says gnome terminal 3.4.1.1 . Does this mean I am using just gnome-terminal? Or just xterm? Or is gnome-terminal an extension of xterm? I'm confused. |
What is the difference between the whatis and apropos commands? Posted: 23 Feb 2022 11:10 AM PST CentOS 6.3 / RHEL 6.3 Can someone please explain the difference between the whatis command and the apropos command? I noticed that both appear to be installed by default and I'm not sure what the difference is between them. |
No comments:
Post a Comment