Tuesday, May 31, 2022

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


Why am I getting mount error Operation not supported?

Posted: 31 May 2022 12:32 PM PDT

VM running Ubnutu v18.04:

In /etc/fstab I have the following (pw elided):

//216TN53/UbuntuShare /mnt/data cifs username=kafkaetl,password=*******,uid=nobody,iocharset=utf8,noperm 0 0  

mount -av is returning

mount.cifs kernel mount options: ip=172.21.208.1,unc=\\216TN53\UbuntuShare,iocharset=utf8,noperm,uid=65534,user=kafkaetl,pass=********  mount error(95): Operation not supported  

I'm unable to see my error -there's obviously a problem, but I don't see it. My thanks to anyone that does see it!

Kali linux virtualbox refuses to connect to wifi network

Posted: 31 May 2022 12:06 PM PDT

i installed kali linux on virtualbox but i can't see any available wifi newtorks . somtimes it will show them for a second. i will type in the password for my wifi but it won't connect

enter image description here

enter image description here

Every linux distrib freezed "to death"

Posted: 31 May 2022 12:44 PM PDT

Trying to install linux on my home pc, already tried: PopOS, Ubuntu, Debian, Arch, Manjaro. Every distrib just freezes without any response after ~1-15minutes. Somehow managed to install debian with gnome and get some logs.

Asking for help here, because i've run out of options, after searching everything that i can google, managed to get debian work for 10 minutes with X.M.P profile on(it was disabled by default).

My specs:

  • Gigabyte B450M Gaming X
  • Ryzen 5 3500x
  • Nvidia Geforce 1650
  • 2x8GB DDR4 2666GHz AMD ram

Trying to install on Silicon Power 128GB SSD
Here's some logs that i got in debian before freeze:

May 31 20:16:09 CandyDeb gnome-shell[1279]: Couldn't find child [0x564738d5f170 Gjs_ui_windowPreview_WindowPreview ("Software")] in window slots  May 31 20:16:09 CandyDeb gnome-shell[1279]: Couldn't find child [0x564738d5f170 Gjs_ui_windowPreview_WindowPreview ("Software")] in window slots  May 31 20:16:14 CandyDeb kernel: [  380.915657] BUG: Bad page state in process Web Content  pfn:192eac  May 31 20:16:14 CandyDeb kernel: [  380.915662] page:000000009b7abecc refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x192eac  May 31 20:16:14 CandyDeb kernel: [  380.915663] flags: 0xb(locked|referenced|dirty)  May 31 20:16:14 CandyDeb kernel: [  380.915665] raw: 000000000000000b dead000000000100 dead000000000122 0000000000000000  May 31 20:16:14 CandyDeb kernel: [  380.915665] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000  May 31 20:16:14 CandyDeb kernel: [  380.915666] page dumped because: PAGE_FLAGS_CHECK_AT_PREP flag(s) set  May 31 20:16:14 CandyDeb kernel: [  380.915666] Modules linked in: exfat rfkill edac_mce_amd snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi nls_ascii kvm nls_cp437 snd_hda_intel irqbypass snd_intel_dspcfg vfat soundwire_intel ghash_clmulni_intel fat soundwire_generic_allocation snd_soc_core snd_compress soundwire_cadence snd_hda_codec aesni_intel snd_hda_core libaes crypto_simd snd_hwdep cryptd soundwire_bus glue_helper snd_pcm rapl snd_timer sp5100_tco snd joydev wmi_bmof efi_pstore pcspkr k10temp watchdog ccp soundcore sg tpm_crb tpm_tis tpm_tis_core tpm rng_core evdev acpi_cpufreq msr parport_pc ppdev lp parport fuse configfs efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic uas usb_storage hid_generic usbhid hid nouveau mxm_wmi video i2c_algo_bit sd_mod ttm xhci_pci drm_kms_helper xhci_hcd ahci libahci cec crc32_pclmul crc32c_intel drm i2c_piix4 libata usbcore r8169 nvme usb_common realtek scsi_mod mdio_devres nvme_core libphy t10_pi crc_t10dif crct10dif_generic  May 31 20:16:14 CandyDeb kernel: [  380.915704]  crct10dif_pclmul crct10dif_common wmi gpio_amdpt gpio_generic button  May 31 20:16:14 CandyDeb kernel: [  380.915707] CPU: 4 PID: 3134 Comm: Web Content Not tainted 5.10.0-14-amd64 #1 Debian 5.10.113-1  May 31 20:16:14 CandyDeb kernel: [  380.915708] Hardware name: Gigabyte Technology Co., Ltd. B450 GAMING X/B450 GAMING X, BIOS F63b 05/11/2022  May 31 20:16:14 CandyDeb kernel: [  380.915709] Call Trace:  May 31 20:16:14 CandyDeb kernel: [  380.915715]  dump_stack+0x6b/0x83  May 31 20:16:14 CandyDeb kernel: [  380.915716]  bad_page.cold+0x63/0x94  May 31 20:16:14 CandyDeb kernel: [  380.915718]  get_page_from_freelist+0x91c/0x1320  May 31 20:16:14 CandyDeb kernel: [  380.915720]  __alloc_pages_nodemask+0x161/0x310  May 31 20:16:14 CandyDeb kernel: [  380.915722]  alloc_pages_vma+0x80/0x260  May 31 20:16:14 CandyDeb kernel: [  380.915724]  handle_mm_fault+0xe69/0x1bf0  May 31 20:16:14 CandyDeb kernel: [  380.915727]  do_user_addr_fault+0x1b8/0x3f0  May 31 20:16:14 CandyDeb kernel: [  380.915729]  exc_page_fault+0x78/0x160  May 31 20:16:14 CandyDeb kernel: [  380.915731]  ? asm_exc_page_fault+0x8/0x30  May 31 20:16:14 CandyDeb kernel: [  380.915731]  asm_exc_page_fault+0x1e/0x30  May 31 20:16:14 CandyDeb kernel: [  380.915733] RIP: 0033:0x3f790f087881  May 31 20:16:14 CandyDeb kernel: [  380.915734] Code: 4a 04 48 8d 4a 08 8b 70 04 33 db f7 00 10 00 00 00 48 0f 44 c3 48 8d 58 08 f7 00 40 00 00 00 48 0f 44 58 08 48 8b c3 0f b6 18 <88> 19 48 83 c0 01 48 83 c1 01 83 ee 01 75 ee 8b 77 04 33 db f7 07  May 31 20:16:14 CandyDeb kernel: [  380.915735] RSP: 002b:00007ffe7edce9f8 EFLAGS: 00010202  May 31 20:16:14 CandyDeb kernel: [  380.915736] RAX: 00003922abd6efe0 RBX: 0000000000000035 RCX: 00003922abd6f000  May 31 20:16:14 CandyDeb kernel: [  380.915736] RDX: 00003922abd6eff8 RSI: 0000000000000003 RDI: 00002f5313485ca0  May 31 20:16:14 CandyDeb kernel: [  380.915736] RBP: 00003922abd6ee80 R08: 00003922abd6efd8 R09: 00007ffe7edcea88  May 31 20:16:14 CandyDeb kernel: [  380.915737] R10: 00007ffe7edce9e0 R11: 00007eff82f1c902 R12: 0000000000000008  May 31 20:16:14 CandyDeb kernel: [  380.915737] R13: 00007eff82f06098 R14: 0000000000000000 R15: 0000000000000000  May 31 20:16:14 CandyDeb kernel: [  380.915739] Disabling lock debugging due to kernel taint  

Debian info from syslog:
Linux version 5.10.0-14-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.113-1 (2022-04-29)  

Photo from pure arch install: enter image description here

fish shell: why does `file `which command`` work in zsh and bash, but not fish?

Posted: 31 May 2022 12:32 PM PDT

Before switching to fish shell, I frequently used various commands in zsh with which some_command. An example might be:

$ file `which zsh`  /opt/local/bin/zsh: Mach-O 64-bit executable arm64  /bin/zsh:           Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64  - Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e  - Mach-O 64-bit executable arm64e]  /bin/zsh (for architecture x86_64): Mach-O 64-bit executable x86_64  /bin/zsh (for architecture arm64e): Mach-O 64-bit executable arm64e  

When I try to do this with fish it fails:

$ which zsh  /opt/local/bin/zsh    $ file `which zsh`  `which: cannot open ``which' (No such file or directory)  zsh`:   cannot open `zsh`' (No such file or directory)  

Any idea of why this doesn't work fish as opposed to other more bash-like shells?

Is it possible to search through a .tar.gz file breadth-first?

Posted: 31 May 2022 01:04 PM PDT

I want to download part of a large (199GB) .tar.gz from here. To start, I used the following command to list all of the files in the .tar.gz file:

wget -qO- https://www.cs.cornell.edu/projects/megadepth/dataset/Megadepth_v1/MegaDepth_v1.tar.gz | tar -tz  

Next, I tried to download the contents of a folder in the .tar.gz using the command:

wget -qO- https://www.cs.cornell.edu/projects/megadepth/dataset/Megadepth_v1/MegaDepth_v1.tar.gz | tar -xz phoenix/S6/zl548/MegaDepth_v1/0000  

However, this takes too long because the tar command searches depth-first and recursively through each of the folders below phoenix/S6/zl548/MegaDepth_v1. I am only interested in the contents of the folder phoenix/S6/zl548/MegaDepth_v1/0000. Is there a way to download the contents of this folder without searching through the sub-folders of the other folders, such as

phoenix/S6/zl548/MegaDepth_v1/0162  phoenix/S6/zl548/MegaDepth_v1/0001  phoenix/S6/zl548/MegaDepth_v1/0132  

In other words, is there a faster way to download the contents of the folder phoenix/S6/zl548/MegaDepth_v1/0000?


Some references for the above commands:

How to extract specific file(s) from tar.gz

How to download an archive and extract it without saving the archive to disk?

https://stackoverflow.com/q/2700306/13809128

Mounting cifs drive gives: mount error(22): Invalid argument

Posted: 31 May 2022 11:00 AM PDT

I'm trying to run:

mount -t cifs //192.168.56.24/cifsnetapp_share /cifs -o credentials=/root/secrets/secrets,gid=5103,_netdev  

However I keep on getting the following error:

mount error(22): Invalid argument

Please help me on this

stable, mainline linux kernel

Posted: 31 May 2022 12:35 PM PDT

My question is about understanding mainline, stable kernel versions. Let us take the example of a 5.18 mainline. My understanding is that 5.18 is the mainline and 5.18.1 is the stable kernel. For production companies use 5.18 or 5.18.1? From the kernel.org;

Stable  After each mainline kernel is released, it is considered "stable." Any bug fixes for a stable kernel are backported from the mainline tree and applied by a designated stable kernel maintainer. There are usually only a few bugfix kernel releases until next mainline kernel becomes available -- unless it is designated a "longterm maintenance kernel." Stable kernel updates are released on as-needed basis, usually once a week.  

What does this mean, this mean 5.18.1 bug fix release will be back ported to 5.18?

for loop bash-scrip error

Posted: 31 May 2022 10:26 AM PDT

I'm following a old (link) tutorial and everything good, but I'm typing an example but I got a error

#!/bin/sh  #  # Scrip to test for loop  #    if [ $# -eq 0]  then      echo "Error - Number missing form command line argument"      echo "Syntax : $0 number"      echo "Use to print multiplication table for given number"      exit 1  fi    n = $1  for i in 1 2 3 4 5 6 7 8 9  do      echo " $n * $i = `expr $i \* $n` "  done  

error:

expr: syntax error: missing argument after '*' * 1 =  expr: syntax error: missing argument after '*' * 2 =  

Why is the linux system call interface architecture-dependent?

Posted: 31 May 2022 11:50 AM PDT

So one thing I'm not clear on is why transitioning from user space to kernel space is architecture-dependent. For example, the linux kernel v5.4 code for system calls entering kernel space is different for x86 vs different architectures, and contains architecture-dependent assembly instructions, rather than just C code.

Why is this exactly? Why can't the entire linux kernel just be written in C...?

Any thoughts appreciated.

Thanks.

Is it POSIX compliant for find -exec /no/such/file {} \; to exit with an error?

Posted: 31 May 2022 10:16 AM PDT

I am the author of a find replacement which attempts to be compatible with POSIX (and with many popular extensions). Recently I noticed a discrepancy between the behaviour of my utility and other find implementations, and I want to know if POSIX allows my behaviour or if I need to change it.

$ find . -exec /no/such/file {} \;  find: '/no/such/file': No such file or directory  $ echo $?  0  $ bfs . -exec /no/such/file {} \;  bfs: error: .: -exec /no/such/file: No such file or directory.  $ echo $?  1  

At least GNU, busybox, and FreeBSD find all have exit status 0 in this case. My implementation propagates the execv() error from the fork()ed child to the parent, while the other implementations seem to print the error directly from the child without telling the parent.

The reason I ask this question, rather than just change the behaviour to match the others, is that it seems difficult to do when using posix_spawn(). Implementations of posix_spawn() are allowed to propagate execv() errors to errno in the parent, and e.g. glibc and musl both do this. It seems impossible to tell whether the error occurred before or after the fork(), and presumably errors from before the fork() (e.g. ENOMEM) should lead to a non-zero exit status.

I have read the POSIX specification for find, but it's light on details here. However, I've heard that there are other rules documented elsewhere that might be relevant. For example, I've heard that if a utility prints to standard error, it must also exit with a nonzero exit code, which seems to imply that the other finds are not compliant. But I'm not sure where that wording is, or if it really exists.

Granting users access to mounted cifs share

Posted: 31 May 2022 12:14 PM PDT

I'm mounting a Windows file share to my ubuntu machine and trying to give all users permission to read and write files.

The file share contains only one file at this point. I am able to mount the drive, but when attempting to cat read the file I get error: cat: myfile.txt: Permission denied

Creating the local folder:
sudo mkdir -m777 /mnt/MyShare

Mounting the drive:

sudo mount -t cifs -o username=domainUser,domain=domain.com,file_mode=0755,dir_mode=0755 "//MyWindowsServer/directory/My Subdirectory" /mnt/MyShare --verbose    Password for domainUser@//MyWindowsServer/directory/My Subdirectory:  **********  

After that I'm able to cd to MyShare and see the existing file:

cd /mnt/MyShare
ls
myfile.txt

However, when I try to cat read that file, I get "permission denied".
How can I resolve this?

How to iterate over top 5 lines from a file with bash?

Posted: 31 May 2022 12:25 PM PDT

I can iterate over the lines of a file this way:

while read l; do echo $l; done < file  

Is there a way to iterate over only the top 5 lines?

Linux packet mark across network namespaces

Posted: 31 May 2022 12:14 PM PDT

I am trying to use iptables to packet mark packets of a certain source/destination IP in the mangle table on a given host. The packets are later forwarded to a particular network namespace on the same host, yet the iptables rules that I've installed in that network namespace do not pick up on the mark. I am thus wondering: is packet marking only local to the network namespace the mark is being placed in? I was under the impression that since the mark is an "attribute" associated with the skb, that the kernel would keep track of the mark anywhere it's routed on the host, irrespective of the namespace.

Alternatively does anyone have any ideas of how to debug this? I installed a TRACE rule inside the network namespace I am targeting, but I am under the impression that I need to run dmesg to view the output and that doesn't make a lot of sense for a network namespace.

Is it possible to use options -i and -E simultaneously in sed?

Posted: 31 May 2022 11:23 AM PDT

I have a file like

public class Constants {      public static final String PACKAGE_VERSION = '1.24.0.1';  }  

I am executing the script

sed -E "/PACKAGE_VERSION/s/\'([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\'/\'1.24.0.2\'/g" force-app/main/default/classes/Constants.cls > temp.cls  mv temp.cls force-app/main/default/classes/Constants.cls  

to replace the string '1.24.0.1' with '1.24.0.2'

Is this possible to do this with one line? Should I use awk instead of sed to inline edit the file?

When I try to execute a command

sed -iE "/PACKAGE_VERSION/s/\'([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\'/\'1.24.0.3\'/g" force-app/main/default/classes/Constants.cls   

file Constants.clsE is created instead of inline modification to the current file and the new file doesn't have substitution.

When I try to execute a command

sed -Ei "/PACKAGE_VERSION/s/\'([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\'/\'1.24.0.3\'/g" force-app/main/default/classes/Constants.cls   

I receive an error

sed: 1: "force-app/main/default/ ...": invalid command code f  

I want the script to work both in MacOS and Linux without changing the script.

I tried to use awk, but I don't understand how can I make it inline editing the file?

When I try to execute the following

awk -v v="$version" '/PACKAGE_VERSION/{gsub(/[0-9]+(.[0-9]+){3}/,v)}1' force-app/main/default/classes/Constants.cls > force-app/main/default/classes/Constants.cls  

this makes my file blank

Is this drive dead?

Posted: 31 May 2022 10:32 AM PDT

Frankly I don't know what to title this issue/question...

I have this one particular drive in my basic home server that is causing me headaches. Just finished restructuring my media library (sorting and renaming photos, deleting duplicates, ...). It was a lot of work and now, the drive I restructured to, is failing/acting up.

It's a Seagate Barracuda ST31000528AS, 1TB, 7200rpm from 2009(-ish) with only one ext4 partition.

The drive is still readable and writable, but at a very slow speed (see below).

Can you help me figure out if this a hardware failure or some problem with the filesystem? I will definitly replace this drive in the future, as I have lost confidence in it... But the data on it is still important to me. So do I spend 21 days that it would take to copy the data off of it, or do the wizards of this forum have the power to get this drive back into working order?

EDIT Just remembered it, might also be the motherboard, as it is similarly old. I will try a different SATA port now...

EDIT 2 As per the previous edit, I switched to another SATA port on the Mainboard and this actually fixed everything. No errors in the logs, no IO Errors, 100s of MB/s of throughput. The drive is healthy, the Mainboard is not!

Symptoms:

  • badblocks is returning nothing for the first 233k blocks (0.1% of all blocks, which took over an hour)
  • the dmesg output below is repeating every second while badblocks or any other IO is running
  • /dev/sdb is the only drive running with UDMA2
  • sometimes after reboots some of the directorys throw I/O errors, which dirs this affects changes from reboot to reboot

hdparm

# hdparm -tT /dev/sdb    /dev/sdb:   Timing cached reads:     2 MB in 28.84 seconds =  71.02 kB/sec   Timing buffered disk reads:   2 MB in 40.20 seconds =  50.94 kB/sec  
# hdparm -i /dev/sdb  /dev/sdb:     Model=ST31000528AS, FwRev=CC38, SerialNo=9VP32GR8   Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }   RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4   BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=off   CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=1953525168   IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}   PIO modes:  pio0 pio1 pio2 pio3 pio4    DMA modes:  mdma0 mdma1 mdma2    UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5 udma6    AdvancedPM=no WriteCache=enabled   Drive conforms to: unknown:  ATA/ATAPI-4,5,6,7     * signifies the current active mode  

dmesg

# dmesg  [...]  [13892.088412] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)  [13892.091432] ata2.00: configured for UDMA/33  [13892.091459] sd 3:0:0:0: [sdb] tag#11 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE  [13892.091465] sd 3:0:0:0: [sdb] tag#11 Sense Key : Illegal Request [current]   [13892.091471] sd 3:0:0:0: [sdb] tag#11 Add. Sense: Unaligned write command  [13892.091477] sd 3:0:0:0: [sdb] tag#11 CDB: Read(10) 28 00 10 1f f9 00 00 01 00 00  [13892.091484] blk_update_request: I/O error, dev sdb, sector 270530816 op 0x0:(READ) flags 0x80700 phys_seg 32 prio class 0  [13892.091527] ata2: EH complete  [13892.148412] ata2.00: exception Emask 0x50 SAct 0x600000 SErr 0x280900 action 0x6 frozen  [13892.148430] ata2.00: irq_stat 0x08000000, interface fatal error  [13892.148441] ata2: SError: { UnrecovData HostInt 10B8B BadCRC }  [13892.148451] ata2.00: failed command: READ FPDMA QUEUED  [13892.148468] ata2.00: cmd 60/00:a8:00:fa:1f/01:00:10:00:00/40 tag 21 ncq dma 131072 in                          res 40/00:b0:00:f9:1f/00:00:10:00:00/40 Emask 0x50 (ATA bus error)  [13892.148486] ata2.00: status: { DRDY }  [13892.148494] ata2.00: failed command: READ FPDMA QUEUED  [13892.148510] ata2.00: cmd 60/08:b0:00:f9:1f/00:00:10:00:00/40 tag 22 ncq dma 4096 in                          res 40/00:b0:00:f9:1f/00:00:10:00:00/40 Emask 0x50 (ATA bus error)  [13892.148528] ata2.00: status: { DRDY }  [13892.148537] ata2: hard resetting link  [...]  

fsck

# fsck -n /dev/sdb1  fsck from util-linux 2.34  e2fsck 1.45.5 (07-Jan-2020)  Warning!  /dev/sdb1 is in use.                                                 # yes, it is unmounted  Warning: skipping journal recovery because doing a read-only filesystem check.  1TB_2 contains a file system with errors, check forced.  Pass 1: Checking inodes, blocks, and sizes  Pass 2: Checking directory structure  Pass 3: Checking directory connectivity  Pass 4: Checking reference counts  Pass 5: Checking group summary information  Free blocks count wrong (192424920, counted=192786254).  Fix? no    Free inodes count wrong (61035970, counted=61039035).  Fix? no    1TB_2: 19006/61054976 files (15.0% non-contiguous), 51765470/244190390 blocks  

Relationship between framebuffer and a tty

Posted: 31 May 2022 09:49 AM PDT

A framebuffer is a device file which allows for a simplified interface to the screen. For example running the below code on a RaspberryPi with a HDMI display connected:

cat /dev/urandom > /dev/fb1  

There are commands (fbi, fim) which allow for injecting full images into the framebuffer.

There are multiple resources on the internet (ref1, ref2, ref3) trying to more or less succesfully explain how to add make a systemd service which will result in an image on the screen.

A common thread in those resources is the mentioning tty together with the framebuffer. (i.e. both fbi and fim have options to pass them a tty).


My assumption was that a tty is a separated concept from a framebuffer. The tty uses the framebuffer to output content to a user, but the framebuffer isn't in any way tied to a tty.

Is there a hidden relationship behind a tty and a framebuffer which could explain why commands to print images to a framebuffer seem to depend on a tty?

Get specific file for every week using ls command

Posted: 31 May 2022 01:31 PM PDT

Could someone help me to get the file for every week using ls command?

ls -t {path} | grep -e "-1700" | head -30 | sort -r  

With this ls command, I got below mentioned output

2022.05.30-1700  2022.05.28-1700  2022.05.26-1700  2022.05.25-1700  2022.05.22-1700  2022.05.21-1700  2022.05.18-1700  2022.05.17-1700  2022.05.16-1700  2022.05.15-1700  2022.05.14-1700  2022.05.13-1700  2022.05.12-1700  2022.05.09-1700  2022.05.08-1700  2022.05.02-1700  2022.04.26-1700  2022.04.24-1700  2022.04.23-1700  2022.04.21-1700  2022.04.17-1700  2022.04.16-1700  2022.02.25-1700  2022.02.19-1700  2022.02.12-1700  2022.02.11-1700  2022.01.29-1700  2022.01.23-1700  2022.01.22-1700  2022.01.15-1700  

But we need only one build for every week

example like this:

2022.05.21-1700  2022.05.14-1700  2022.05.07-1700  ...  ...  ...  

Grep subfolder files and display the matched file name

Posted: 31 May 2022 12:56 PM PDT

I have one unique requirement. Inside a folder there is plenty of subfolder and inside the subfolder there is plenty of CSV file. Looks like below

SubfolderWB  >File1.csv  >File2.csv    SubfolderMUM  >File3.csv  >File4.csv  >file5.csv    SubfolderKEL  >File6.csv  >File7.csv  

Now in each subfolder I need to pick the last file(or latest file created) and match with keyword using grep. If the keyword matches I need the file name.

Example: I need to find foo in CSV files in all subfolders.
So I need to pick files cat SubfolderWB/File2.csv,SubfolderMUM/file5.csv ,SubfolderKEL/File7.csv | grep foo.
If foo is present in file5.csv it should give me final output as file5.csv.

Rsync command not copying files from /snap dir

Posted: 31 May 2022 10:19 AM PDT

I made an rsync backup of my Ubuntu 22.04 OS as it was running in a Raspberry Pi. The backup is made to an image file partitioned and formatted the same as the SD Card. Later I mount the backup image file and also take out the SD Card and mount it as well.

Root partition on backup image mounted at /media/writable
Root partition on SD Card mounted at /media/writable1

When I do a directory listing of files I can see that some are in there but NOT in the source SD Card.

[flex@flex-inspiron7520 ~]$ ls -l /media/writable/snap/core20/1437/etc/default  total 28  -rw-r--r-- 1 root root  460 Feb  4  2020 cryptdisks  -rw-r--r-- 1 root root  297 Sep 30  2019 dbus  -rw-r--r-- 1 root root   15 Mar 29 20:47 locale  -rw-r--r-- 1 root root 1756 Apr 14  2020 nss  -rw-r--r-- 1 root root  133 Dec  2 22:38 ssh  -rw-r--r-- 1 root root   35 Mar 29 20:47 swapfile  -rw-r--r-- 1 root root 1118 Feb  7  2020 useradd    [flex@flex-inspiron7520 ~]$ ls -l /media/writable1/snap/core20/1437/etc/default  ls: cannot access '/media/writable1/snap/core20/1437/etc/default': No such file or directory  

I do a dry run of the rsync command and it tells me that it will copy files from the source (backup image) that are missing in the destination (sd card).

[flex@flex-inspiron7520 ~]$ sudo rsync -nrlpgoDv /media/writable/snap/core20/1437/etc/default /media/writable1/  sending incremental file list  default/  default/cryptdisks  default/dbus  default/locale  default/nss  default/ssh  default/swapfile  default/useradd    sent 205 bytes  received 41 bytes  492.00 bytes/sec  total size is 3,814  speedup is 15.50 (DRY RUN)  

By the way the reason the files are missing in the destination SD Card compared with the backup OF THAT card is because the files were there when the sd card was attached to the Pi and the OS was running... they are the snap applications that are mounted in /snap only when the OS is running.

But that's not my question!

My Question

When I run this rsync command it gives me output about what files it plans on copying from the source (backup image) to the destination (sd card)

sudo rsync -nrlpgoDv /media/writable /media/writable1/  

There are alot of files to transfer, this is just the first few lines...

writable/var/lib/dpkg/info/python3.10-minimal.list  writable/var/lib/dpkg/info/python3.10-minimal.md5sums  writable/var/lib/dpkg/info/python3.10-minimal.postinst  writable/var/lib/dpkg/info/python3.10-minimal.postrm  writable/var/lib/dpkg/info/python3.10-minimal.preinst  writable/var/lib/dpkg/info/python3.10-minimal.prerm  writable/var/lib/dpkg/info/python3.10.list  writable/var/lib/dpkg/info/python3.10.md5sums  .  ..  ....  .....  

However... there are no writable/snap/... lines in the output? Why does this rsync command not list out the same files as above that ARE in /media/writable/snap/core20/1437/etc/default but NOT in /media/writable1/snap/core20/1437/etc/default.

Apparently the '/snap' directory is a set of mount points for loop devices referencing the snap applications located in '/var/lib/snapd/'. I'm not sure if that is related?

Update

Is it because of how the two file systems are mounted maybe? The backup image is mounted readonly but the SD Card is mounted as readwrite? But my rsync command tries to copy from the backup image so probably not related?

[flex@flex 1437]$ mount | grep writable  /dev/loop0p2 on /media/writable type ext4 (ro,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)  /dev/sdb2 on /media/writable1 type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)  

Any help much appreciated,

Flex

scp command getting failed : Unable to negotiate with 10.100.10.10 port 55: no matching host key type found. Their offer: ssh-rsa,ssh-dss

Posted: 31 May 2022 12:09 PM PDT

While we are trying to copy a file from windows server to linux getting below error :

command: scp C:\Users\arya\Videos\aaa userabc@10.100.10.10:/local/    scp command getting failed : Unable to negotiate with 10.100.10.10 port 55: no matching host key type found. Their offer: ssh-rsa,ssh-dss  

is there any way we can copy from windows to linux server and with password less

microsoft teams app: Run multiple instances

Posted: 31 May 2022 11:56 AM PDT

I have multiple accounts on teams which i have to access.

On my android mobile the app alows to add multiple users and we can manage all the messages from there

But in linux the teams client cannot add multiple users

Is there any way i can do this in linux

Even if its possible to run multiple instance of teams in isolation.

no sound on iec958 S/PDIF input - sound card USB CM106

Posted: 31 May 2022 12:11 PM PDT

Issue : no sound on digital input S/PDIF / IEC958.

Device / software : USB external sound card : CM106 - Ubuntu 20.04 LTS - GUI : Gnome-FlashBack

Config audio : FreeBox Player (french internet TV provider) - digital output S/PDIF ==[TosLink]=> sound card - digital input S/PDIF

FreeBox Player config : Main sound output S/PDIF, with or without passthrough


The digital input iec958 is visible within graphical pavucontrol or pulse command line answers. But the sound meter (vumeter) remain empty, no sound, no signal.

I do not have any other sound device to check the FreeBox player S/PDIF output.

Is there any file I could check, in /sys or /proc or /dev, to see if there is any digital signal/data ?

The iec958 input is visible, but no sound/signal ? Why ?

Is there something specific to do to make it works.

How to troubleshoot this issue ? Where starting ? What steps ?

It makes a lot of week-ends I try to fixe it, reading forums, I cannot remember all I tried and detail it here. I will answer your questions about this troubleshoot.

Thank you for your help.

Recover Windows from Grub Rescue - No partition active

Posted: 31 May 2022 09:46 AM PDT

I had a dual boot Windows and Ubuntu. I wanted to get rid of the Ubuntu. So during the clean-up process I ended up with Grub-resuce (I deleted the linux partitions from my Windows).

I only have a bootable Ubuntu USB. I followed this link to fix the Grub rescue - https://unix.stackexchange.com/a/71634/53123

However, now I am getting "No partition active"

How can I fix this and recover my Windows without losing the data?

Invalid MIT-MAGIC-COOKIE-1 when I run mpirun

Posted: 31 May 2022 12:03 PM PDT

Suddenly whenever I run mpirun I get the error Invalid MIT-MAGIC-COOKIE-1 key. I think this might have started after I killed a command using mpirun that had been launched from a python console.

I looked at $XAUTHORITY and found no .Xauthority file. I also tried xhost +local: in the terminal but the problem remains.

I have only used mpirun to run things locally on my pc.

(For the most part mpirun does seem to do what it is supposed to, but I believe it also now creates errors in things that were working perfectly before.)

Simply running the below shows the warning for example (nonsense minimal example):

/usr/bin/mpirun -n 1 echo "bla"  

I ran

export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority  

because it solved the issue for someone else but it seemed to have made things worse (?). Now it says

No protocol specified   

whenever I run mpirun.

By going through the steps in https://superuser.com/a/941244/728074 it goes back to saying Invalid MIT-MAGIC-COOKIE-1 key.

Also my $DISPLAY was set to nothing it seems. I tried setting it to ":1" or ":0" but that does not resolve the issue. I also do not know whether it had a value before but some posts suggest its value is relevant for this error.


System: Ubuntu 20.04 LTS

Why does Ubuntu resolve the name `_gateway` to the default gateway instead of `gateway`?

Posted: 31 May 2022 11:26 AM PDT

When I run the route command, the default gateway resolves to _gateway. I can ping _gateway, which resolves to my default-gateway and replies as such.

Why does Ubuntu 18.04 prepend _ to gateway?

How does Linux CFS schedule processes vs threads fairly in 2018 4.9 kernels?

Posted: 31 May 2022 12:13 PM PDT

The Linux scheduler keeps evolving: How does the kernel schedule processes vs threads today? Do I need autogroups?

The previous similiar stack overflow question is many years old and likely obsolete.

I believe in 2018 the default is the Completely Fair Scheduler (CFS) instead of O(1) or other scheduler.

For Linux, some documentation mentions the OS juggles tasks which indifferently represent a process or a thread of a process, or does not clearly make the distinction though it's critical for scheduling.

For sake of clarity, a Process runs a program, and may spawn 1 or more threads when it is multi-threaded. For me the distinction is all threads of a process use the same virtual address space. However for scheduling on a CPU that distinction is irrelevant.

If I run P processes each with different Tp thread counts:

  • Process fairness: How can I guarantee a process with many threads won't use up all resources and overpower a process with only 1 thread? Formalized, fair scheduling would mean: process P should get 1/Pth of the CPU resource, and have that 1/Pth split evenly to 1/(Pth*Tp) per thread of P. Is it what CFS guarantees by default?
  • Do I need autogroups? Autogroups allow a process to schedule groups of tasks together. By default there's one group, but if you spin a 2nd one it will get 1/2 the CPU, spin 10 and each group of threads gets 1/10th. Simple (see gang scheduling).
  • multi-core: I do not care too much to muddy the answer with considerations on load balancing for multi-cores and process migration between cores.

Experimental result: CFS seems to be fair between processes.

I tried on 4.9.27 to monitor the runtime of a small process vs a long running process with many threads. It seems that the scheduler on my kernel schedules by process, not by threads. So the small process was treated fairly and got 50% of the CPU. When I used 2 long running processes I got 33%. The slowdowns were like 2.2x and 3.4x respectively.

This kernel doesn't seem to have autogroups compiled in; setsid() works but seems to do nothing, AND /proc/*/autogroup doesn't exist, so trying to use autogroup while CFS seems to do the right thing is an expensive undertaking. However some other data points seem to indicate sometimes the behavior is not fair to a process.

Side question

Is there a trick to guarantee one process will run more regularly than all others? I can't promote it to realtime because of LD_LIBRARY_PATH usage I believe. And even then, I suspect because it reads /proc to monitor the system, it sometimes still got delayed massively when the system is heavily over capacity.

Thanks!

Start two X servers on boot on RHEL

Posted: 31 May 2022 11:06 AM PDT

I have a powerful machine that I want to use as a multi-seat system. It has two graphic cards and two pairs of keyboards and mice. I've been able to successfully configure two "seats" using udev and Xorg.conf, and launch two X servers from a script so two users can have independent sessions. Just for the record, here's my udev rules file, where I identify each USB hub and label the devices and the seats:

SUBSYSTEM=="drm", KERNEL=="card[0-9]*", ATTRS{vendor}=="0x10de", DRIVERS=="nvidia", TAG+="master-of-seat"  # SUBSYSTEM=="drm", KERNEL=="card0", ENV{ID_SEAT}="seat0"  # SUBSYSTEM=="drm", KERNEL=="card1", ENV{ID_SEAT}="seat1"  SUBSYSTEM=="input", ENV{ID_INPUT.tags}="input_default"    # KVM HUBS  KERNELS=="3-2", ATTRS{bDeviceClass}=="09", ENV{KVM_HUB}="1", ENV{ID_SEAT}="seat0"  KERNELS=="3-8", ATTRS{bDeviceClass}=="09", ENV{KVM_HUB}="2", ENV{ID_SEAT}="seat1"    # Devices of HUB 1  KERNEL=="event*", ENV{KVM_HUB}=="1", ATTRS{bInterfaceProtocol}=="01" SYMLINK+="kvm_keyboard_1"  KERNEL=="event*", ENV{KVM_HUB}=="1", ATTRS{bInterfaceProtocol}=="02" SYMLINK+="kvm_mouse_1"    # Devices of HUB 2  KERNEL=="event*", ENV{KVM_HUB}=="2", ATTRS{bInterfaceProtocol}=="01" SYMLINK+="kvm_keyboard_2"  KERNEL=="event*", ENV{KVM_HUB}=="2", ATTRS{bInterfaceProtocol}=="02" SYMLINK+="kvm_mouse_2"    # Default seat  SUBSYSTEM=="input", TAG=="seat", ENV{ID_SEAT}=="" , ENV{ID_SEAT}="seat0"    # set all tags accordingly  ENV{ID_SEAT}!="", ENV{ID_INPUT.tags}+="$env{ID_SEAT}" TAG+="$env{ID_SEAT}"  

The relevant part of my xorg.conf file looks like this:

Section "ServerFlags"      # Option         "AutoAddDevices"      "false"      # Option         "AutoEnableDevices"   "false"      Option         "DefaultServerLayout" "Layout0"      Option         "AllowMouseOpenFail"  "true"      Option         "Xinerama" "0"  EndSection      # ---------------------------------------------------------------  # LAYOUT    Section "ServerLayout"      Identifier     "Layout0"      Screen         "Screen0"      MatchSeat      "seat0"      Option         "Clone"   "off"  EndSection    Section "ServerLayout"      Identifier     "Layout1"      Screen         "Screen1"      MatchSeat      "seat1"      Option         "Clone"   "off"  EndSection  

As I said, I can successfully launch two independent sessions using the following script, but I'd like this to happen automatically on boot.

#!/bin/bash  set +x    rm /etc/X11/xorg.conf  cp ./xorg_independientes /etc/X11/xorg.conf    # X (:0)  systemctl stop gdm  killall Xorg  killall X  systemctl restart gdm    sleep 7    # X (:1)  su - sit -c "startx /usr/bin/gnome-session -- :1 vt4 -layout Layout1 -seat seat1 -sharevts" &  sleep 10  DISPLAY=:1 xhost +  

My approach would be setting the default target runlevel to 4 (so it has everything but graphics) and then placing these commands in a script somewhere.

Nemo in Linux Mint - Reset all Preferences and "My computer" pane in List View

Posted: 31 May 2022 10:00 AM PDT

I am struggling a little bit with this issue I'm having with Nemo in Linux Mint (I just upgraded to 17.3 but this is happening since 17.1).

In brief, I accidentally removed some shortcuts from the "My computer" section in the left sidebar of nemo as a user. I tried to restore them, nbut apparently I can't add icons to that tab, nor drag them from the "bookmark" section to the "My Computer" one. If I start nemo as root, I can add, remove, drag and drop icons in that tab, but of course the changings does not apply to the "user" version.

Moreover, I tried to perform a clean install of nemo after purging it, but unsuccessfully.

Can someone explain me where th configuration file of this sidebar are located and hot to delete them, or set their permission to user in order to drag and drop correctly into that tab? Alternatively, is there a "real" way to clean install Nemo and only Nemo without touching the other GTK features?

Thanks a lot for your time, any help is really appreciated!

Is it possible to limit the set of English locales on a system?

Posted: 31 May 2022 11:26 AM PDT

On Debian and Ubuntu is it possible to limit the locales which have to be configured?

I know that /var/lib/locales/supported.d/local and /var/lib/locales/supported.d/en govern which locales are being configured, but short of manually modifying it more or less after the fact (i.e. after an apt-get dist-upgrade) I haven't found any method to limit it to en_US.* locales as desired.

So whenever the packages language-pack-en and language-pack-en-base gets touched (and they usually get updated in lockstep, from what I saw), I get something like this:

Setting up language-pack-en (1:14.04+20150219) ...  Setting up language-pack-en-base (1:14.04+20150219) ...  Generating locales...    en_AG.UTF-8... done    en_AU.UTF-8... done    en_BW.UTF-8... done    en_CA.UTF-8... done    en_DK.UTF-8... done    en_GB.UTF-8... done    en_HK.UTF-8... done    en_IE.UTF-8... done    en_IN.UTF-8... done    en_NG.UTF-8... done    en_NZ.UTF-8... done    en_PH.UTF-8... done    en_SG.UTF-8... done    en_US.UTF-8... up-to-date    en_ZA.UTF-8... done    en_ZM.UTF-8... done    en_ZW.UTF-8... done  Generation complete.  

Unfortunately some upgrades seem to override those two aforementioned files and thus reset modifications I've made to them.

What'd like to see instead is:

Setting up language-pack-en (1:14.04+20150219) ...  Setting up language-pack-en-base (1:14.04+20150219) ...  Generating locales...    en_US.UTF-8... up-to-date  Generation complete.  

How can I achieve that?

How do I install Chromium for ARM Cortex-A8 on bare Linux 3.0.8 armv7l?

Posted: 31 May 2022 01:02 PM PDT

TARGET FriendlyARM mini210s

I have successfully cross-compiled Chromium for ARM SEE WORKFLOW HERE.

How do I install the Chromium on my bare linux 3.0.8 armv7l?

What I have done so far

I copied over ./chrome/installer/linux/debian_wheezy_arm-sysroot files onto my target (not sure that was the right thing, but it seems reasonable enough)

When I try to run Chrome I am getting this error:

[root@target chrome-release]# ./chrome  ./chrome: error while loading shared libraries: libattr.so.1: cannot open shared object file: No such file or directory  
UPDATE I resolved this particular issue here QUESTION 1 : Where do I find libattr source or binary and install it on my target?

I have found a file, but I'd rather try to x-compile from source.

QUESTION 2 : How do I have resolved consistantly without breaking my target?

This helped ... but I feel that I am messing my Linux 3.0.8 armv7l instance.

[root@target chrome-release]# ./chrome  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./chrome)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./chrome)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libkeyed_service_content.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libkeyed_service_content.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libkeyboard.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libbase_prefs.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libstorage.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libstorage.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libnet.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libnet.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgfx.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libgfx.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libmessage_center.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libviews.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libviews.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libevents_devices.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libcontent.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libcontent.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libv8.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libv8.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libdbus.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libskia.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libppapi_proxy.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libppapi_proxy.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libprinting.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libdomain_reliability.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libapp_list.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libmojo_common_lib.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libblink_web.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libblink_web.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgcm.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libmedia.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libmedia.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libbase_i18n.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libui_base.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libui_base.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libstorage_common.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libppapi_host.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libsessions_content.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libcc.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libcc.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libbase.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libbase.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libevents_base.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/liburl_matcher.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgin.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libcompositor.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libash.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libash.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libmojo_system_impl.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgtk2ui.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libgtk2ui.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libpolicy_component.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libpolicy_component.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libsql.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libblink_platform.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libdevice_bluetooth.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libdevice_bluetooth.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/liburl_lib.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libcrcrypto.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libcrcrypto.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libaura.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libipc.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libipc.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libsync_core.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgpu.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libgpu.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgesture_detection.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libevents.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libppapi_shared.so)  ./chrome: /lib/libc.so.6: version `GLIBC_2.9' not found (required by /usr/lib/libgio-2.0.so.0)  ./chrome: /lib/libc.so.6: version `GLIBC_2.9' not found (required by /lib/libglib-2.0.so.0)  ./chrome: /lib/libc.so.6: version `GLIBC_2.11' not found (required by /usr/lib/libcairo.so.2)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libcc_surfaces.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libcc_surfaces.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libdevice_battery.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libdevice_battery.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libwebkit_gpu.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgl_wrapper.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libmedia_blink.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgpu_blink.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libipc_mojo.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgles2_utils.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgles2_implementation.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /sdcard/chrome-release/lib/libgles2_implementation.so)  ./chrome: /lib/libc.so.6: version `GLIBC_2.10' not found (required by /lib/libdbus-1.so.3)  ./chrome: /lib/libc.so.6: version `GLIBC_2.11' not found (required by /usr/lib/libfreetype.so.6)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libwtf_unittest_helpers.so)  ./chrome: /lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /sdcard/chrome-release/lib/libgl_in_process_context.so)  ./chrome: /lib/libresolv.so.2: version `GLIBC_2.9' not found (required by /usr/lib/libkrb5.so.3)  

UPDATE - Install on mini210s w/ linux 3.0.8 armv7l target

When I try this:

# LD_PRELOAD=/lib/libc-2.13.so;/lib/libresolv-2.13.so ./chrome -v  Segmentation fault  
How do get more information about the reason of this segmentation fault?
$ file ./chrome  ./chrome: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, not stripped  

How do I know whether this compiled file should run on my SBC w/ linuc 3.0.8 armv7l?

Also asked on chromium-dev group

UPDATE Tried to install on BeagleBone Black

root@beaglebone:~/chromium# uname -a  Linux beaglebone 3.8.13-bone67 #1 SMP Wed Sep 24 21:30:03 UTC 2014 armv7l GNU/Linux  

I am getting the same segmentation fault

root@beaglebone:~/chromium# ./chrome  Segmentation fault  

Determine file type

root@beaglebone:~/chromium# file chrome  chrome: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x99f2a5210e0831419cf2bb4c9c64839cf03673f4, not stripped  

No comments:

Post a Comment