Is it possible to use Vulkan on Nvidia drivers over VNC without a physical display? Posted: 27 Apr 2021 11:00 AM PDT This seems to indicate that this kind of setup isn't possible yet, but I know that I've been able to do offscreen rendering with Vulkan and I wonder if it's possible to start a desktop environment with the same principle. I'm on Ubuntu 20.04 with a Titan X and driver version 460.73.01. |
How would I select specific data and print out two version male and female? Posted: 27 Apr 2021 11:12 AM PDT How would I go about something like this? Purchase Summary Report State Gender Purchase Amount TX F 33734.33 CA F 23911.61 TX M 23043.64 FL M 18846.49 I need to sum the total transactions (2 decimal places) and and sort it by Male and Female for each state? the data customer_id,first_name,last_name,email,gender,purchase_amount,credit_card,transaction_id,transaction_date,streetcity,state,zipphone example c77ea913-c4a2-4ff6-b615-26028b375fda,wye,adamini,wadamini5t@time.com,0,243.54,3553067327623488,8a412563-2956-4bf3-9df3-54277a9799c7,2017-06-24,7 forest dale terrace,los angeles,ca,90035,323-496-2825 c117f14d-1322-45a9-9f9b-63db5105fd6c,melany,clausius,mclausius6g@sourceforge.net,0,23.26,4.91143477785696e+018,a59201e8-9d3c-4f2b-b1fb-6914895fa5cd,2017-06-02,7 sugar crossing,charleston,wv,25389,304-272-2869 3153178c-a3fb-44d3-896f-f39da69fe826,obed,bakhrushkin,obakhrushkin9w@amazon.de,0,477.18,5100174342418168,4724a9c3-fc8a-49d3-956a-b0646364d3ef,2017-09-10,656 chive trail,huntsville,al,35895,256-632-8746 e4eb28e6-f960-49eb-8f5d-361df60f00c7,jerome,dearell,jdearell9x@pen.io,0,236.99,6.7627444969826e+017,af393a75-6298-4c82-84e0-a778ec9956a2,2017-11-04,86 american ash junction,huntington,wv,25709,304-147-3204 b5c32ded-e769-4c52-a553-e34b548280d0,damiano,archell,darchellp7@ameblo.jp,0,921.60,6.70996724720053e+016,ff06abad-6787-4236-856d-74ec49df3d04,2017-04-19,8842 talisman road,oklahoma city,ok,73114,405-782-5361 awk 'BEGIN{ FS=OFS="," } { arr_state[toupper($12) toupper($5)]+=$6 } END { print "Transaction Count Report" for (id in arr_state) { printf "%-10s %d\n", id, arr_state[id] } }' infile my results are Transaction Count Report State Gender Amount SCM 2322 MOF 9015 TNM 6671 OR0 3470 WI0 3295 MS0 2640 AZ0 7747 NM0 1090 MD0 2943 AK0 2541 |
www-data user cannot access USB drive mounted in /var/www/html/folder Posted: 27 Apr 2021 10:37 AM PDT I have an Raspberry Pi with mounted USB external drive. I've mounted this USB (/dev/sda1 ) to /var/www/html/owncloud/data/drive as I want to be able to access it from my PHP applications (precisely: owncloud). My /etc/fstab/ looks like this: PARTUUID=5e3da3da-01 /boot vfat defaults 0 2 PARTUUID=5e3da3da-02 / ext4 defaults,noatime 0 1 UUID=6D38B7934EF41800 /var/www/html/owncloud/data/drive ntfs defaults,auto,users,rw,nofail,umask=000,allow_other 0 0 After reboot, it shows up just fine in WinSCP. I can also list it via terminal: Tho, my PHP scripts and owncloud seems not to be able to access the content of this folder. I guess it's due to permissions problems, as my drive folder is owned by root and not by www-data . But changing permissions to www-data does not work (because it's mounted?). I've also tried the line in etc/fstab with allow_other . Same goes for sudo usermod -a -G disk www-data , as suggested in https://askubuntu.com/questions/988593/www-data-user-cannot-access-mounted-partition |
bluetooth audio device isn't in pavucontrol Posted: 27 Apr 2021 10:36 AM PDT I'm struggling to listen to audio with my bluetooth headset. So far I managed to install the firmware package. I followed this instructions but the headset isn't available at pavucontrol I'm using Debian 10. |
How to get my Pi zero audio simultanusly on my hifiberry and on ffmpeg? Posted: 27 Apr 2021 10:31 AM PDT Hope you can help me. Got a Pi Zero and Hifiberry Module playing with raspoitify. Speaker sound is fine. My goal is to have the same (raspotify) audio on a ffmpeg stream from that Pi as well. I searched the web and it seems like i needed to load the loopback stuff so I tried this: modprobe snd-aloop pcm_substreams=1 i get this loopback devices. root@raspberrypi:/home/pi# cat /proc/asound/cards 0 [sndrpihifiberry]: RPi-simple - snd_rpi_hifiberry_dac snd_rpi_hifiberry_dac 1 [Loopback ]: Loopback - Loopback Loopback 1 asound.conf #pcm.!default { # type hw card 0 #} #ctl.!default { # type hw card 0 #} pcm.hifiberryMiniAmp { type softvol slave.pcm "plughw:0" control.name "Master" control.card 0 } pcm.!default { type plug slave.pcm "hifiberryMiniAmp" #slave.pcm "hw:Loopback,0,0" } any how i cant record the audio playing. It only works if i exchange the last two rows and then i am able to record the spotify stream with ffmpeg -f alsa -ac 2 -ar 44100 -i hw:Loopback,1,0 out.wav if i do the same with slave.pcm "hifiberryMiniAmp" in that asound conf my loopback seems to be silent. Ideas? Thanks P.S. I wonder if its a hardware limitation i need to bypass with pulseaudio but i dont have an idea how to start on this https://www.hifiberry.com/docs/software/mixing-different-audio-sources/ |
Why is the used memory shown in negative and available space in df is more than total space Posted: 27 Apr 2021 10:29 AM PDT Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_root-lv_root 99G 29G 66G 31% / tmpfs 32G 29M 32G 1% /dev/shm /dev/mapper/vg_root-lv_backup_local 522G 370G 126G 75% /backup1 /dev/sda2 248M 39M 197M 17% /boot /dev/sda1 200M 260K 200M 1% /boot/efi /dev/mapper/vg_root-lv_home 20G 12G 7.3G 62% /home /dev/mapper/vg_root-lv_oracle 99G 37G 58G 39% /oracle /dev/mapper/vg_root-lv_tmp 20G 2.7G 17G 15% /tmp /dev/mapper/vg_root-lv_usr 50G 15G 32G 32% /usr /dev/mapper/vg_root-lv_var 20G 4.5G 15G 24% /var /dev/mapper/vg_root-lv_prd 60G 35G 22G 62% /prd /dev/mapper/vg_vascloud-lv_archive 493G 13G 455G 3% /archive /dev/mapper/vg_vascloud-lv_oradata1 493G 87G 381G 19% /oradata1 /dev/mapper/vg_vascloud-lv_oradata2 493G 65G 404G 14% /oradata2 /dev/mapper/vg_vascloud-lv_oradata3 493G 8.4G 459G 2% /oradata3 /dev/mapper/vg_vascloud-lv_index 493G 132G 336G 29% /index /dev/mapper/vg_vasim-lv_imbackup 2.0T 1.5T 429G 78% /imbackup /dev/mapper/vg_vasim-lv_imlogs 985G 223G 712G 24% /imlogs /dev/mapper/vg_vasim-lv_imcdrs 984G 355G 579G 38% /imcdrs 172.22.28.70:/repos/rhel/6_5 25G 6.4G 17G 28% /repos/rhel/6_5 /dev/mapper/vg_vascloud-lv_backup **1.5T -314G 1.8T - /backup** |
Create hotkey for hotkey sequence Posted: 27 Apr 2021 10:19 AM PDT I am using Ubuntu 20.04, and I'm one of those who enjoys Gnome. Even so, sometimes I like tiling my terminals for work. Usually I'll set them up like so: I use the Terminator terminal to achieve that effect. Now, it takes a lot of hotkeys to get to that setup. I have Terminator set as Super-T ; then I need to split vertically (Ctrl-Shift-E ), then split horizontal (Ctrl-Shift-O ). I'd like to create a single hotkey that can sequence those three combinations in a single press. Is there any way to do that? |
How to run subsequent commands after invoking a shell Posted: 27 Apr 2021 10:15 AM PDT I have a script called myscript.sh with multiple commands within it #!/bin/sh/ singularity shell -B /home/user/Desktop/ /home/user/image/some_image.simg /home/user/miniconda/activate my_env cd /app/app_folder/scripts ls -ash The first command (line 3) invokes a shell and I want the subsequent commands to run within the invoked shell. How do I get this to work properly. |
Collapsing a series of comma separated numbers in a sequence to Beginning-End vs n,n,n,n,x,x,x,x, Posted: 27 Apr 2021 09:39 AM PDT Problem I am trying to solve/enhance a BASH script that provides a number sequence: I am using a topologically aware tool (lstopo-no-graphics) to extract physical processor numbers to use for input to numactl for processor binding. Example output for L3 L#4 shared cache physical core lstopo-no-graphics --no-io|sed -n "/L3 L#3/,/L3/p"|grep -v "L3\|L2"|tr -s '[:space:]'|cut -d " " -f4|grep -o "[0-9]*"|sort -g|tr '\n' ','|sed '$s/,$//' results in the number series string; 32,33,34,35,36,37,38,39,96,97,98,99,100,101,102,103 All well and good, I use this series for the "numactl --physcpubin=32,33,34,35,36,37,38,39,96,97,98,99,100,101,102,103" I would would like to be able to collapse the sequence down to "numactl --physcpubin=32-39,96-103", looking to collapse multiple comma separated number sequences to an "a-n" series when sequential, with each sequence comma separated. I don't have a problem with the existing bash script, just looking for a cleaner implementation if anyone has any ideas? Thanks in Advance. |
GPG key is not getting generated : agent_genkey in gpg is looking for some file Posted: 27 Apr 2021 09:24 AM PDT I'm facing issue to generate gpg key on my mac(10.15.7 Catalina ). It is showing some error that the agent_genkey is looking for some file which is not available. Below is the debug information from that : % gpg --gen-key -vvvvv gpg (GnuPG) 2.3.1; Copyright (C) 2021 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. gpg: using character set 'utf-8' gpg: Note: RFC4880bis features are enabled. gpg: directory '/Users/test/.gnupg' created gpg: keybox '/Users/test/.gnupg/pubring.kbx' created Note: Use "gpg --full-generate-key" for a full featured key generation dialog. GnuPG needs to construct a user ID to identify your key. Real name: test name Email address: testname@gmail.com You selected this USER-ID: "test name <testname@gmail.com>" Change (N)ame, (E)mail, or (O)kay/(Q)uit? O We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy. gpg: no running gpg-agent - starting '/usr/local/Cellar/gnupg/2.3.1/bin/gpg-agent' gpg: waiting for the agent to come up ... (5s) gpg: connection to the agent established gpg: pinentry launched (12023 curses 1.1.1 /dev/ttys002 xterm-256color - ? 502/20 0) gpg: agent_genkey failed: No such file or directory Key generation failed: No such file or directory gpg version is 2.3.1 and git version is 2.30.0 . % gpg --version gpg (GnuPG) 2.3.1 libgcrypt 1.9.3 I have tried suggestions given in various post : like deleting the home directory (~/.gnupg), stopping the gpg-agent , reinstalling the gpg package (using brew). It had worked around 1 month back. There was some issue with the previous keys . So, I had to delete those all and generate fresh and that is where the problem started. Before reinstalling it, it was timing out in generation of gpg key . I had ran dd commands to help generate randomness. But that did not work either. |
ls to recurse, showing full path Posted: 27 Apr 2021 09:57 AM PDT There are obviously many ways to do the same job in Linux, but I recently needed to for i in xxx through a list of each item, recursively in a tree. I found a solution with tree by doing tree -fail (or tree -faild just to get the directory names), but it made me wonder: would it be possible to get a listing like this by using just ls ? $ tree -fail . ./.custom ./custom_loader.sh ./.git ./.git/branches ./.git/COMMIT_EDITMSG ./.git/config ./.git/description ./.git/HEAD ./.git/hooks ./.git/hooks/applypatch-msg.sample |
How do I make a FreeDOS bootable USB pen drive on my Chromebook? Posted: 27 Apr 2021 09:17 AM PDT I installed Unetbootin on my Chromebook using Crostini. I already had the FreeDOS ISO file. The only problem I had is that Linux never detects my USB stick even though I shared the drive with Crostini! |
Recovering a directory from a corrupted btrfs partition without the root set Posted: 27 Apr 2021 09:16 AM PDT I'm trying to recover data from a btrfs partition where the media was physically damaged. I was able to recover about 99% of the partition, so I'm confident that most of the data should be there. But I seem to be missing important metadata. I wasn't able to mount the partition at all. btrfs rescue super-recover failed. I can get various files using btrfs restore , using different tree roots found by btrfs-find-root . However, for one directory (/home ) this does always fail: checksum verify failed on 965984256 found 000000B6 wanted 00000000 bad tree block 965984256, bytenr mismatch, want=965984256, have=0 Error searching -5 Error searching /recovery/sde1/@home Since I cannot get into that directory from a root set, I wonder whether there are other ways to get the directory contents, bypassing the root set metadata - maybe by scanning the whole partition. |
ncdu gives different file size than ls -lh Posted: 27 Apr 2021 09:08 AM PDT When I use ncdu . I obtain the file size neu.zip - 4KiB whereas with ls -lh I obtain 227B . What could be the reason for that? |
Vim - Jump to next/previous empty line on Insert Mode Posted: 27 Apr 2021 11:06 AM PDT I know that you can navigate between empty lines with { and } on Normal and Visual mode, but there is a way to do this on Insert mode ? Thanks! |
Mint :give root password for maintenance [duplicate] Posted: 27 Apr 2021 08:59 AM PDT And yes: for a few days i have problems with one of systems on my PC -LMDE. Recently i got repaired there one thing as shown here : ("Mint" - a bunch of errors in boot). Now i have yet bigger problem - system ask me password for non-existing user (root) error code is here: Give root password for maintenance (or press Control-D to continue): When i press these button it shows me: Reloading system manager configuration Starting default target You are in emergency mode. After logging in, type "journal -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode. Give root password for maintenance (or press Control-D to continue) When i chrooted into this OS (with live-boot) i saw that there are problems with sudo and pkexec, so i cant use root even in chroot (and modify system files, etc...) is there any way to boot PC normally or i need to always use "initramfs error" and boot only to busybox cli (i can do that because i accidentally uninstalled grub and now i have cli when booting up pc)? Ps: I didnt setted up root (su) account (no password, user, etc) and i was really messing up with sudo so now i think that this also doesnt exist. |
Query about meaning of sed expression Posted: 27 Apr 2021 10:24 AM PDT I am starting with bash and I had this expression line. I am lost figuring what it means. I know from the manual the meaning of sed and its option -n but I don't get the meaning of the last part: sed -n "n;p" |
Debian: is possible to boot with a btrfs raid1 degraded? Posted: 27 Apr 2021 10:00 AM PDT I have setup a Debian vm to boot with a RAID1 btrfs made with two encrypted devices. I had setup the vm like this /etc/default/grub GRUB_DEFAULT=0 GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_ENABLE_CRYPTODISK=y GRUB_CMDLINE_LINUX_DEFAULT="quiet" GRUB_CMDLINE_LINUX="cryptdevice=UUID=b5259968-2f96-4a45-87bf-c658f6d0f55d:luksvda4 cryptdevice=UUID=6aae0722-1fc0-49d1-85d7-ca5668b06683:luksvdb4 rootflags=degraded" GRUB_TERMINAL="console" This is the /etc/fstab LABEL=ROOT / btrfs defaults,degraded 0 1 LABEL=BOOT /boot ext4 defaults 0 2 LABEL=SWAP none swap sw 0 0 this is the /etc/crypttab # <target name> <source device> <key file> <options> luksvda4 UUID=b5259968-2f96-4a45-87bf-c658f6d0f55d none luks luksvdb4 UUID=6aae0722-1fc0-49d1-85d7-ca5668b06683 none luks And finally the disk configuration fdisk -l /dev/vda /dev/vda1 48 65583 65536 32M BIOS boot /dev/vda2 65584 2162735 2097152 1G Linux RAID /dev/vda3 2162736 8454191 6291456 3G Linux swap /dev/vda4 8454192 62914526 54460335 26G Linux filesystem fdisk -l /dev/vdb /dev/vdb1 48 65583 65536 32M BIOS boot /dev/vdb2 65584 2162735 2097152 1G Linux RAID /dev/vdb3 2162736 8454191 6291456 3G Linux swap /dev/vdb4 8454192 62914526 54460335 26G Linux filesystem I use the classical mdadm ext4, but also btrfs on boot partition(unencrypted of course) works fine. The system boot, no problem after asking the two password for the two luks devices. But when I remove the firs disk(simulating a fault) go to the initramfs console and I have to mount the disk manually(sic!), this not happen with the same configuration on Slackware. The question is: is possible to force Debian to boot when one of the two disk is not available? |
How would I format filtered data to new file? Posted: 27 Apr 2021 09:49 AM PDT Hello all I'm trying to read data from file, and check for each state and increment total transactions counts from data: c77ea913-c4a2-4ff6-b615-26028b375fda,ca,90035,adamini,wye,243.54 c117f14d-1322-45a9-9f9b-63db5105fd6c,wv,25389,clausius,melany,23.26 3153178c-a3fb-44d3-896f-f39da69fe826,al,35895,bakhrushkin,obed,477.18 e4eb28e6-f960-49eb-8f5d-361df60f00c7,wv,25709,dearell,jerome,236.99 b5c32ded-e769-4c52-a553-e34b548280d0,ok,73114,archell,damiano,921.60 1a960f07-e7c8-44fa-bb27-47ae55d94ca5,fl,33605,jaeggi,daloris,88.88 d57e9aad-3cbf-4872-855e-457434888b28,wv,25711,attiwill,merwin,270.88 bfd12c89-a174-420d-83d5-7cff52d1c4f5,tx,76705,denyagin,misti,166.62 5159b645-2523-4359-b80b-d7dcc1e9b50d,ga,30066,phizacklea,minor,171.06 cd35010e-517d-416b-8cda-a960bbab6c3e,nv,89140,tiesman,ailis,858.58 88b45eea-baf8-460e-b41f-b43ff3a6cf80,ca,92822,spread,britteny,538.11 e297a623-bb01-4622-96f6-c08c355cf410,la,70607,loude,kipp,570.32 696624fd-01c9-40be-b19b-4104df9fed69,ak,99790,lippett,louisa,792.74 f1d3a9d9-fd81-4be9-a4b9-3796f5638ab4,or,97255,pignon,noemi,366.68 82aa5029-98b8-40c9-b5b3-d03385a945c4,mn,55172,major,jana,93.65 The end result should be printed to a new file in this format This is what I tried as a template, but I'm confused on how to increment for each state and how to exactly write in that format to the file? awk -v _State=$State -v _TransactionCount=$transactionCount awk 'BEGIN{ FS=OFS="," } arr_state[$2]+=$11 END { print "%s\n", "Transaction Count Report" for (id in arr_state) { print "%-10s %s\n", state, arr_state[state] } }' < "summary.csv" > "transaction-rpt.csv" Another Question? EDIT: How would I go about something like this? Purchase Summary Report State Gender Purchase Amount TX F 33734.33 CA F 23911.61 TX M 23043.64 FL M 18846.49 So the same thing before, but I need to sum the total transactions (2 decimal places and and sort it by Male and Female for each state? In this version of the data customer_id,first_name,last_name,email,gender,purchase_amount,credit_card,transaction_id,transaction_date,streetcity,state,zipphone example c77ea913-c4a2-4ff6-b615-26028b375fda,wye,adamini,wadamini5t@time.com,0,243.54,3553067327623488,8a412563-2956-4bf3-9df3-54277a9799c7,2017-06-24,7 forest dale terrace,los angeles,ca,90035,323-496-2825 c117f14d-1322-45a9-9f9b-63db5105fd6c,melany,clausius,mclausius6g@sourceforge.net,0,23.26,4.91143477785696e+018,a59201e8-9d3c-4f2b-b1fb-6914895fa5cd,2017-06-02,7 sugar crossing,charleston,wv,25389,304-272-2869 3153178c-a3fb-44d3-896f-f39da69fe826,obed,bakhrushkin,obakhrushkin9w@amazon.de,0,477.18,5100174342418168,4724a9c3-fc8a-49d3-956a-b0646364d3ef,2017-09-10,656 chive trail,huntsville,al,35895,256-632-8746 e4eb28e6-f960-49eb-8f5d-361df60f00c7,jerome,dearell,jdearell9x@pen.io,0,236.99,6.7627444969826e+017,af393a75-6298-4c82-84e0-a778ec9956a2,2017-11-04,86 american ash junction,huntington,wv,25709,304-147-3204 b5c32ded-e769-4c52-a553-e34b548280d0,damiano,archell,darchellp7@ameblo.jp,0,921.60,6.70996724720053e+016,ff06abad-6787-4236-856d-74ec49df3d04,2017-04-19,8842 talisman road,oklahoma city,ok,73114,405-782-5361 awk 'BEGIN{ FS=OFS="," } { arr_state[toupper($11)][toupper($5)]+=$6 } END { print "Transaction Count Report" for (id in arr_state) { printf "%-10s %d\n", id, arr_state[id] } }' infile Maybe something like a 2D array a[i][j]? |
HISTTIMEFORMAT change is not working at all Posted: 27 Apr 2021 10:22 AM PDT I'm trying to put a timestamp to history command export HISTTIMEFORMAT='%F %T ' , but commands (both old and new) recorded in history are not showing timestamps. Output of history | tail 445 exoirt HISTTIMEFORMAT='F% T%' 446 export HISTTIMEFORMAT='F% T%' 447 history 448 history | tail 449 ls 450 cd 451 ls 452 cd 453 ls 454 cd I expected some datetime information between the number and the column. like here (visible in the below snipped too) 1 2008-08-05 19:02:39 service network restart 2 2008-08-05 19:02:39 exit 3 2008-08-05 19:02:39 id 4 2008-08-05 19:02:39 cat /etc/redhat-release Ouput of type history is history is an alias for history 0 I tried to insert the variable in ~/.bashrc file, but again it did not work. |
How to install postgresq 13 in Linux Mint 20.1 Posted: 27 Apr 2021 10:30 AM PDT |
awk - print second column if 4 and 5 column had a matching words Posted: 27 Apr 2021 11:15 AM PDT I have a txt file with 5 columns, like this for example F1 rsfldo4pw F5 ABC POG F2 rsfcl2eou F6 ABD POF F3 rsfceleou F7 ABG POE I want a result of a text file that print the word in column 2 if column 4 is ABD , and column 5 is POF , like the above example it should print rsfcl2eou . I used this code but it doesn't work, could you help and correct it please? '{if ( ($4=="ABD" && $5=="POF") || ($4=="ABG" && $5=="POE") || ($4=="ABK" && $5=="POJ") || ($4=="ABT" && $5=="POB")) print $2, "eltext" ; else print $2;}' ${DataFile.txt} | grep -v eltex > ${tempo.txt} |
Rsync & MergerFS creating directories one by one Posted: 27 Apr 2021 09:32 AM PDT I have mergerfs setup with the default policy of epmfs. This means if I have local/target/ on all disks and copy files into local/target/ , each file will get copied to the disk that has the most free space at the time it is copied. I want to use rsync to transfer files from a remote machine, as in rsync -rt user@remote:/remote/target/ local/target/ , where the local/target/ directory is already copied across all disks with no content. If /remote/target/ is just full of files, this works fine, the individual files are spread evenly across the disks as expected because the next file is only created after the last one has finished transferring. If /remote/target/ has many subdirectories though, all of the subdirectories are created instantly before any files are transferred. This breaks the intended epmfs behavior, because all of the subdirectories will be created on only one disk instead of spread across the disks like files would be. Is there any way to force rsync to create the subdirectories one by one, just in time before the actual subdirectory content is transferred? This would mean that by the time the next subdirectory is created, the free space would be lower on the first disk and the next disk could be selected. I have tried a few rsync options like -O and --no-i-r but nothing seems to change this behavior, and nothing else on the manpage seems to point to a way to suppress the directory creation. Alternatively, is there any other way around this problem without affecting the intended behavior of the epmfs policy? After discussing it with C.M. one option would be to run rsync separately for each subdirectory being transferred, but I would rather avoid that if possible. Ideally I want to use a method that can still show overall transfer progress, resume failed transfers, etc. This is the simplest way I could find to do the multiple rsync version, although it only works if rsync runs on the sending side rather than the receiving side: find /local/target/ -type d -mindepth 1 -maxdepth 1 -exec sh -c 'rsync -rt "{}" user@example.com:/remote/target/' \; |
cycle tmux windows of the same name Posted: 27 Apr 2021 10:24 AM PDT this question (to my knowledge) has not been asked before, yet would benefit anyone that uses tmux! I tried searching github too for plugins etc, but no luck yet. What I'd like to achieve: - Cycle between windows of the same name.
Why? Imagine you have 6 tmux windows, in the following order, status bar would look similar to this: [0:zsh][1:vim][2:zsh][3:vim][4:zsh][5:vim] If Im currently in window 0 (zsh): - I would like to cycle between the 3 'zsh' windows (0,2,4)
If Im currently in window 1 (vim): - I would like to cycle between the 3 'vim' windows (1,3,5)
This would allow you to cycle windows of the same type without having to re-order all your windows first (vim next to vim, zsh next zsh etc). bliss! I have tried myself, but no success :( |
Move window from other (inactive) desktop to current desktop Posted: 27 Apr 2021 11:00 AM PDT When using this to fetch window from another desktop to current desktop (which is #0), nothing happens until I focus the desktop with that window - then window immediately moves to the desktop 0. xdotool search --name "App Name" set_desktop_for_window 0 How can be that window fetched without me focusing the other desktop? DE: Xfce 4.16, WM: Xfwm4 |
POPos 20.10 unable to install amd gpu drivers Posted: 27 Apr 2021 10:16 AM PDT ##unable to upgrade install amd gpu drivers I tried manually doing it from the website but that failed too here is the error code Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: fwupd fwupd-signed linux-generic linux-headers-5.11.0-7612-generic linux-headers-generic linux-image-5.11.0-7612-generic linux-image-generic linux-modules-extra-5.11.0-7612-generic linux-system76 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up amdgpu-dkms (1:5.6.0.15-1098277) ... Removing old amdgpu-5.6.0.15-1098277 DKMS files... ------------------------------ Deleting module version: 5.6.0.15-1098277 completely from the DKMS tree. ------------------------------ Done. Loading new amdgpu-5.6.0.15-1098277 DKMS files... Building for 5.11.0-7612-generic Building for architecture amd64 Building initial module for 5.11.0-7612-generic ERROR (dkms apport): kernel package linux-headers-5.11.0-7612-generic is not supported Error! Bad return status for module build on kernel: 5.11.0-7612-generic (amd64) Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more information. dpkg: error processing package amdgpu-dkms (--configure): installed amdgpu-dkms package post-installation script subprocess returned error exit status 10 dpkg: dependency problems prevent configuration of amdgpu: amdgpu depends on amdgpu-dkms (= 1:5.6.0.15-1098277); however: Package amdgpu-dkms is not configured yet. dpkg: error processing package amdgpu (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: amdgpu-dkms amdgpu E: Sub-process /usr/bin/dpkg returned an error code (1) |
In Vim, how to create a new line in between two lines with one empty line before and another after? Posted: 27 Apr 2021 11:18 AM PDT For example, I have the following lines: one line another line one more line other line However, I would like to add a new line in between, but one line empty before and another after. one line another line MY NEWLY inserted line; one more line other line As you can see, there is a empty line before MY NEWLY inserted line; and another after. How can I achieve in a easy way? Normally, I use o , ESC , o , ESC , O . But I think, this is not the best way. Please help if you know. Thank you. |
xrdp disconnects immediately after connection from Windows10/Centos to Centos7 Posted: 27 Apr 2021 11:02 AM PDT This is my xrdp config: [Globals] ini_version=1 fork=true port=3389 use_vsock=false tcp_nodelay=true tcp_keepalive=true security_layer=negotiate crypt_level=high certificate= key_file= ssl_protocols=TLSv1.2, TLSv1.3 autorun= allow_channels=true allow_multimon=true bitmap_cache=true bitmap_compression=true bulk_compression=true max_bpp=128 use_compression=yes new_cursors=true use_fastpath=both blue=009cb5 grey=dedede ls_top_window_bg_color=009cb5 ls_width=350 ls_height=430 ls_bg_color=dedede ls_logo_filename= ls_logo_x_pos=55 ls_logo_y_pos=50 ls_label_x_pos=30 ls_label_width=65 ls_input_x_pos=110 ls_input_width=210 ls_input_y_pos=220 ls_btn_ok_x_pos=142 ls_btn_ok_y_pos=370 ls_btn_ok_width=85 ls_btn_ok_height=30 ls_btn_cancel_x_pos=237 ls_btn_cancel_y_pos=370 ls_btn_cancel_width=85 ls_btn_cancel_height=30 [Logging] LogFile=xrdp.log LogLevel=DEBUG EnableSyslog=true SyslogLevel=DEBUG [Channels] rdpdr=true rdpsnd=true drdynvc=true cliprdr=true rail=true xrdpvr=true tcutils=true [Xvnc] name=Xvnc lib=libvnc.so username=ask password=ask ip=127.0.0.1 port=-1 [Xorg] name=Xorg lib=libxup.so username=ask password=ask ip=127.0.0.1 port=-1 code=20 I am trying to connect with mstsc to this machine (this is after fresh pc restart, noone has logged in): while in this login box, no disconnect happens: after I put there correct login/password, I get black screen first and then mstsc window closes. I tried to connect from KDE remote connection application, but it also failed same way. xrdp.log doesn't seem to contain anything interesting: [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350 [20190606-04:14:36] [INFO ] xrdp_wm_log_msg: sesman connect ok [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait... [20190606-04:14:36] [DEBUG] return value from xrdp_mm_connect 0 [20190606-04:14:36] [INFO ] xrdp_wm_log_msg: login successful for display 10 [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC started connecting [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910 [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC tcp connected [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC security level is 2 (1 = none, 2 = standard) [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC password ok [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC sending share flag [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC receiving server init [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC receiving pixel format [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC receiving name length [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC receiving name [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC sending pixel format [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC sending encodings [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC sending framebuffer update request [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC sending cursor [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: VNC connection complete, connected ok [20190606-04:14:36] [DEBUG] xrdp_wm_log_msg: connected ok [20190606-04:14:36] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful [20190606-04:14:36] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:47744) [20190606-04:14:37] [DEBUG] Closed socket 20 (AF_UNIX) [20190606-04:14:37] [DEBUG] Closed socket 12 (AF_INET 127.0.0.1:3389) [20190606-04:14:37] [DEBUG] xrdp_mm_module_cleanup [20190606-04:14:37] [DEBUG] VNC mod_exit [20190606-04:14:37] [DEBUG] Closed socket 19 (AF_INET 127.0.0.1:40224) How can I fix that? |
Failed to start Create Volatile Files and Directories in Debian Posted: 27 Apr 2021 10:09 AM PDT Using debian in beaglebone black. The board is connected online with a static ip for remote ssh. After few days I couldn't able to ssh my board. While debugging the board received following error log. Failed to start Create Volatile Files and Directories. Failed services: Volatile file creation, ssh-server, networking service etc. Failed to start. What may be went wrong ? Have anyone faced similar issue. Log: [FAILED] Failed to start Create Volatile Files and Directories [FAILED] Failed to start Entropy daemon using the HAVEGE algorithm [FAILED] Failed to start Network Time Synchronization. [FAILED] Failed to start The Apache HTTP Server. **[FAILED] Failed to start OpenBSD Secure Shell server.** |
CentOS does not recognize compiled boost library Posted: 27 Apr 2021 09:11 AM PDT I have built and installed boost using the following steps: # Boostrap and install JOBS=`grep -c ^processor /proc/cpuinfo` wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2 tar xf boost_1_67_0.tar.bz2 cd boost_1_63_0 ./bootstrap.sh ./b2 -d1 -j${JOBS} --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc stage ./b2 -d1 -j${JOBS} --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc install sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/boost.conf" sudo ldconfig Then, I try to build mapnik which uses boost. I checkout mapnik and run ./bootstrap.sh and ./configure . I get the error "Could not find required header or shared library for boost filesystem". The boost section of configure is as follows: Searching for boost libs and headers... (cached) Found boost libs: mason_packages/.link/lib Found boost headers: mason_packages/.link/include Checking for C++ header file boost/version.hpp... yes Checking for Boost version >= 1.61... yes Found boost lib version... Checking for C++ library boost_system... no Could not find required header or shared library for boost system Checking for C++ library boost_filesystem... no Could not find required header or shared library for boost filesystem Checking for C++ library boost_regex... yes Checking for C++ library boost_program_options... yes ValueError: invalid literal for int() with base 10: '': File "/root/src/mapnik/SConstruct", line 1600: boost_version = [int(x) for x in env.get('BOOST_LIB_VERSION_FROM_HEADER').split('_')] (Build steps courtesy of keisan) Why doesn't the system find the boost library 1.67? I don't remember installing boost 1.63. I have compiled and installed 1.67, but the build system does not use it. Where does the system look for boost on the system? I deleted all libboost_* files in /usr/local/lib and /usr/lib64, but still don't know where the system looks for boost. Can someone give a tip on how to tell the system about the newly compiled software? |
No comments:
Post a Comment