Sunday, March 21, 2021

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


How to setup Bluetooth v5

Posted: 21 Mar 2021 09:43 AM PDT

I'm trying to get a Bluetooth 5 USB doogle working (MPOW BH456A). I've downloaded the latest version of the Linux driver from Mpow website and I've tried using the automated installation by running sudo make install INTERFACE=all. This fails with the following errors:

rmmod btusb  mv /lib/modules/5.10.22-100.fc32.x86_64/kernel/drivers/bluetooth/btusb.ko /lib/modules/5.10.22-100.fc32.x86_64/kernel/drivers/bluetooth/btusb_bak  mv: cannot stat '/lib/modules/5.10.22-100.fc32.x86_64/kernel/drivers/bluetooth/btusb.ko': No such file or directory  make: [Makefile:8: install] Error 1 (ignored)  rmmod rtk_btusb  rmmod: ERROR: Module rtk_btusb is not currently loaded  make: [Makefile:9: install] Error 1 (ignored)  make -C ./bluetooth_usb_driver  make[1]: Entering directory '/home/jason/Desktop/mpow driver/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver'  make -C /lib/modules/5.10.22-100.fc32.x86_64/build M=/home/jason/Desktop/mpow driver/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver modules  make[2]: Entering directory '/usr/src/kernels/5.10.22-100.fc32.x86_64'  make[2]: *** No rule to make target 'driver/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver'.  Stop.  make[2]: Leaving directory '/usr/src/kernels/5.10.22-100.fc32.x86_64'  make[1]: *** [Makefile:10: all] Error 2  make[1]: Leaving directory '/home/jason/Desktop/mpow driver/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver'  make: *** [Makefile:10: install] Error 2  

I'm on the KDE spin of Fedora 32.

Output from dmesg | grep bt:

[    8.518603] usbcore: registered new interface driver btusb  [    8.526797] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761b_fw.bin  [    8.530001] bluetooth hci0: Direct firmware load for rtl_bt/rtl8761b_fw.bin failed with error -2  [    8.530007] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8761b_fw.bin not found  [ 1044.227505] usbcore: deregistering interface driver btusb  

Output from lsusb | grep -i blue:

Bus 008 Device 002: ID 0bda:8771 Realtek Semiconductor Corp. Bluetooth Radio  

Output from uname -r:

5.10.22-100.fc32.x86_64  

Here are the instruction for manual installation of the bluetooth drivers from MPOW which I'm trying to follow:

-Installation      1. Build and install USB driver, change to the driver directory     $ cd usb     $ sudo make install      2. Copy the right FW file and config file to the correct path.     $ sudo cp rtkbt-firmware/lib/firmware/rtl8xxxxx_fw /lib/firmware/     $ sudo cp rtkbt-firmware/lib/firmware/rtl8xxxxx_config /lib/firmware/       NOTE: PLEASE REFER THE FORWARD SECTION OF FILENAME LIST TO CORRESPOND THE FW FILENAME AND THE CONFIG FILENAME WITH THE CHIP.                 3. Insert Realtek Bluetooth dongle      Check LMP subversion by the following command      $ hciconfig -a        Now RTK chip can be recognized by the system and bluetooth function can be used.  

Is there actually a "pad(3NCURSES)" manual page?

Posted: 21 Mar 2021 09:49 AM PDT

In the man page for ncurses(3X), we read:

Special windows called pads may also be manipulated. These are windows which are not constrained to the size of the screen and whose contents need not be completely displayed. See pad(3NCURSES) for more information.

I have been unable to locate a manpage for pad though. Does it exist or is this just an uncorrected leftover text in the manual?

There is a manpage for curs_pad(3X), which is also the only one brought up by apropos pad:

newpad, subpad, prefresh, pnoutrefresh, pechochar, pecho_wchar - create and display curses pads

How to tell if DavFS is installed?

Posted: 21 Mar 2021 09:01 AM PDT

Obviously a noob question, but I'm playing with mounting a webdav folder in Linux, and trying to tell if the davfs is already installed. Googling shows this command to supposedly list all installed filesystems:

cat /proc/filesystems

Problem is, running that command before installing davfs (not shown in the screenshot) and after installing (shown), shows the exact same list of installed fs', which does not show davfs:

enter image description here

Is there a better way to show if davfs is in fact, installed?

ZSH - PATH Duplication : Directory added at end of PATH keeps duplicating when re-opening Terminal Session

Posted: 21 Mar 2021 08:27 AM PDT

I have recently installed PIPX on MAC running Big Sur and ZSH shell. During the install it prompted for the following to be added to the .zshrc file....

# Created by `pipx` on 2021-03-20 14:22:23  export PATH="$PATH:/Users/xxxx/.local/bin"  eval "$(register-python-argcomplete pipx)"  

Running echo $PATH showed /Users/xxxx/.local/bin added to the end of my PATH variable. However, when I close the terminal and open up a new session, running echo $PATH now shows the location duplicated at the end of the PATH :/Users/xxxx/.local/bin:/Users/xxxx/.local/bin

Opening and closing new terminal sessions doesn't seem to create any more additions to PATH it just remains at these 2 entries....

I have run typeset -U PATH path to remove the duplicate but each time I open up new terminal sessions it just duplicates again.

Does anybody know how I can stop this from happening.....I would really like to keep my PATH variable as clean as possible.

how to modify test arguments in a suite?

Posted: 21 Mar 2021 08:25 AM PDT

For example I try to modify the pts/sqlite arguments in disk suite. like following:

  <Execute>      <Test>pts/sqlite</Test>      <Arguments>8</Arguments>      <Description>threads: 8</Description>      <OverrideTestOptions></OverrideTestOptions>    </Execute>  

Then i just phoronix-test-suite benchmark disk, I hope the sqlite test only run with 8 threads for 3 runs. However, the sqlite test won't stop after 3rd runs, it runs more than 20 runs and still going. Can anyone tell me what did I do wrong here?

Unable to change ownership of files in live session

Posted: 21 Mar 2021 08:03 AM PDT

My dad has a problem with a folder containing some PDF files. Recently he got an initramfs case (following an /dev/sda1: Inodes that were part of a corrupted orphan linked list found error message) when trying to boot . I ran fsck on the HDD where the OS and all user files are.

Now he has the same situation again. This time he asked me if he can check his files without booting so we went for a live OS (Xubuntu, just like the one installed on the HDD).

Most of the files are perfectly accessible except for several files and folders. Right now I am fighting with a directory that I made accessible for user 1000. However the files inside (PDFs) keep being owned by root.

Here are the outputs of ls -l on the respective folder

drw-rw-r--  2 1000 1000      4096 Mar 13 15:15 Docs (1960-1971)  

and files inside

-rw-rw-rw- 1 1000 1000 19252914 Mar 13 15:15 'Doc 1960.pdf'  -rw-rw-rw- 1 1000 1000 17676448 Mar 13 15:15 'Doc 1962.pdf'  -rw-rw-rw- 1 1000 1000 22710713 Mar 13 15:15 'Doc 1970.pdf'  -rw-rw-rw- 1 1000 1000 20919025 Mar 13 15:15 'Doc 1971.pdf'  

I am rather confused since thunar shows me the following for the folder

enter image description here

and files inside

enter image description here

I tried chown 1000 * and chmod -R u=rw,g=rw,o=r <directory> (since at the beginning the access was even more messed up) but I got as far as I've described above.

As a superuser (sudo su) I am able to open, delete, copy etc. the respective files. For a backup purpose this is more than enough but I am still interested in why this is happening.

Making a switch out of a computer with many Ethernet ports, while staying connected

Posted: 21 Mar 2021 09:01 AM PDT

Given an Ubuntu machine A with N > 2 Ethernet ports, I want to use one of the ports to connect to my router R that has a DHCP server on it and connect machine A to the internet through it. I also need to connect more devices via the remaining ports of machine A, so that they also get IPs directly from the router R. I don't want to have a DHCP server or any additional subnetworks on machine A.

I tried to setup a simple bridge between all the ports, but none of the devices get internet this way. There are many types of bridgings, virtual networks, etc. listed in this post, but I don't seem to understand, which option I should go with.

Can't install telegram using a repository i addded on KDE Neon

Posted: 21 Mar 2021 07:42 AM PDT

Recently i got an update which broke telegram and now i can't install it using apt on my KDE Neon installation. It used to work perfectly fine before that.

I got the repo at this article https://www.omgubuntu.co.uk/2019/08/how-to-install-telegram-on-ubuntu and I added it by using the command

sudo add-apt-repository ppa:atareao/telegram  

Using the below command used to install it perfectly fine

$ sudo apt install telegram-desktop  

but after some update i have been getting this error message and I don't understand why.

Reading package lists... Done  Building dependency tree         Reading state information... Done  Starting pkgProblemResolver with broken count: 1  Starting 2 pkgProblemResolver with broken count: 1  Investigating (0) telegram-desktop:amd64 < none -> 2.1.7+ds-2~ubuntu20.04.1 @un puN Ib >  Broken telegram-desktop:amd64 Depends on libopenal1:amd64 < none | 1:1.19.1-1 @un uH > (>= 1.14)    Considering libopenal1:amd64 0 as a solution to telegram-desktop:amd64 9999    Re-Instated libopenal-data:amd64    Re-Instated libopenal1:amd64  Broken telegram-desktop:amd64 Depends on libqrcodegencpp1:amd64 < none | 1.5.0-2build1 @un uH > (>= 1.2.1)    Considering libqrcodegencpp1:amd64 0 as a solution to telegram-desktop:amd64 9999    Re-Instated libqrcodegencpp1:amd64  Broken telegram-desktop:amd64 Depends on librlottie0-1:amd64 < none | 0~git20200305.a717479+dfsg-1 @un uH > (>= 0~git20200305.a717479+dfsg)    Considering librlottie0-1:amd64 0 as a solution to telegram-desktop:amd64 9999    Re-Instated librlottie0-1:amd64  Broken telegram-desktop:amd64 Depends on libxxhash0:amd64 < none | 0.7.3-1 @un uH > (>= 0.6.5)    Considering libxxhash0:amd64 0 as a solution to telegram-desktop:amd64 9999    Re-Instated libxxhash0:amd64  Broken telegram-desktop:amd64 Depends on qtbase-abi-5-12-8:amd64 < none @un H >    Considering libqt5core5a:amd64 3417 as a solution to telegram-desktop:amd64 9999  Done  Some packages could not be installed. This may mean that you have  requested an impossible situation or if you are using the unstable  distribution that some required packages have not yet been created  or been moved out of Incoming.  The following information may help to resolve the situation:    The following packages have unmet dependencies:   telegram-desktop : Depends: qtbase-abi-5-12-8  E: Unable to correct problems, you have held broken packages.  

How to - Connect Xbox controller using Bluetooth

Posted: 21 Mar 2021 06:48 AM PDT

If you try to connect a Bluetooth capable Xbox controller to a Linux device, chances are that it won't work, you'll see the connection state flip continuously between connected and disconnected without ever successfully connecting.

This connection state flipping is accompanied by a blinking white light on the controller.

I found this article which has a solution that worked for me, I'm going to document it here.

Accidentally ran sudo rm /* on my Arch Linux installation

Posted: 21 Mar 2021 09:34 AM PDT

I accidentally executed sudo rm /* instead of sudo rm ./* inside a directory whose contents I wanted to delete, and I have basically messed up my system.

None of the basic commands like ls, grep etc. are working, and none of my applications are opening, like chromium, slack, image viewer etc.

I tried to look up my problem on the internet and found this question, but none of the solutions there work for me.

I am on an Arch Linux desktop, and I haven't logged out of my system since this happened, because I'm afraid I won't be able to log back in, as suggested here. Also, I don't have a live USB of an Arch Linux image file, if that helps.

Any help on how should I proceed further to make my system go back to normal, would be appreciated. Thanks!

EDIT: I'm attaching the outputs of some commands:

$ echo /*    /boot /dev /etc /home /lost+found /mnt /opt /proc /root /run /srv /sys /tmp /usr /var  
$ echo /user/*    /usr/bin /usr/include /usr/lib /usr/lib32 /usr/lib64 /usr/local /usr/sbin /usr/share /usr/src  

Also, echo /usr/bin/* gives me a long list of directories in the format /usr/bin/{command} where {command} is any command that I could have run from the terminal had I not messed my system up.

Please let me know if any other information is needed!

Replace match between a word a char or end of line with sed

Posted: 21 Mar 2021 07:35 AM PDT

Match everything between comment: the next ; or end of line and replace it with the word bar

s="/home/user/14.JPG;comment:foo;sometag;sort:30"  sed "s/comment:(\w+)/\bar/g" <<< $s  

Returns

/home/user/14.JPG;comment:foo;sometag;sort:30  

Instead of

/home/user/14.JPG;comment:bar;sometag;sort:30  

What am I doing wrong?

unable to install tensorflow

Posted: 21 Mar 2021 09:23 AM PDT

enter image description here

When I was trying to install tensorflow from PyCharm than, I got above error. I also tried in terminal

pip3 install tensorflow  

Error:Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement tensorflow ERROR: No matching distribution found for tensorflow

Default version: enter image description here

I just changed it by this answer

I thought the question is belongs to SO But, I changed my mind by reading the question

Can symlinks be used to point to a remote file that may not be available

Posted: 21 Mar 2021 07:56 AM PDT

I'm looking for a smart way to manage a pi I use for downloading with omv5, dockstarter, docker, etc...

My pi can be on all the time, but the larger server I'd like a schedule, so the pi will use wol to wake it up and send downloaded files if there is an update in a folder.

Question is though, I was thinking symlinks would allow me to fill up a Sonarr/radarr library virtually (without creating a huge database) with the real files on another server. But can the symlinks be cut off from their target every so often and still behave like the target file?

Any suggestions on how to achieve this?

Virt-Manger GUI Not Opening on Target Machine

Posted: 21 Mar 2021 07:54 AM PDT

I am able to connect virt-manager to a stand alone production server from laptop. When I ssh using virt-manager is not showing thy production server just the other two VMs I have on the production server.

I was expecting the gui window to open so I could control the machine but it didn't. Any ideas?

enter image description here

Turn monitor off after system halted

Posted: 21 Mar 2021 08:24 AM PDT

So, here is the problem:

I'm running the latest version of Armbian buster on an Orange PI PC+2E and it seems this system doesn't support a proper shutdown function: all it does is print "reboot: system halted" and the screen remains on.

Is there a way to turn the screen off (at least) after system halted? maybe a script that runs right before shutdown ?

If I from tty type "setterm -blank force" the monitor goes off, but if I type "sudo setterm -blank force && sudo poweroff" the screen turns off and then back on and stays on. Why?

Is there a command that survives the halt without turning the monitor back on again?

None of the solutions posted here Execute a command before shutdown worked.

How to temporarily save and restore the IFS variable properly?

Posted: 21 Mar 2021 07:07 AM PDT

How do I correctly run a few commands with an altered value of the IFS variable (to change the way field splitting works and how "$*" is handled), and then restore the original value of IFS?

I know I can do

(      IFS='my value here'      my-commands here  )  

to localize the change of IFS to the sub-shell, but I don't really want to start a sub-shell, especially not if I need to change or set the values of variables that needs to be visible outside of the sub-shell.

I know I can use

saved_IFS=$IFS; IFS='my value here'  my-commands here  IFS=$saved_IFS  

but that seems to not restore IFS correctly in the case that the original IFS was actually unset.

Looking for answers that are shell agnostic (but POSIX).

Clarification: That last line above means that I'm not interested in a bash-exclusive solution. In fact, the system I'm using most, OpenBSD, does not even come with bash installed at all by default, and bash is not a shell I use for anything much other than to answer questions on this site. It's much more interesting to see solutions that I may use in bash or other POSIX-like shells without making an effort to write non-portable code.

Sort command - by month not working?

Posted: 21 Mar 2021 07:41 AM PDT

I have an array of timestamps...

arr[0]="04-Feb-2021-21-05-48"  arr[1]="18-Jan-2021-12-19-48"  arr[2]="25-Jan-2021-00-24-29"  arr[3]="26-Jan-2021-00-28-33"  arr[4]="04-Feb-2021-21-06-49"  arr[5]="18-Jan-2021-12-19-48"  arr[6]="25-Jan-2021-00-24-29"  arr[7]="26-Jan-2021-00-28-33"  

I want to sort this array and using the following command it sorts the timestamps into a new array..

IFS=$'\n' sorted=($(sort -r -t- -k2.1,2.3M <<<"${arr[*]}")); unset IFS  printf "[%s]\n" "${sorted[@]}"  

I get this output but it is not what I want...

[26-Jan-2021-00-28-33]  [26-Jan-2021-00-28-33]  [25-Jan-2021-00-24-29]  [25-Jan-2021-00-24-29]  [18-Jan-2021-12-19-48]  [18-Jan-2021-12-19-48]  [04-Feb-2021-21-06-49]  [04-Feb-2021-21-05-48]  

Instead I want the timestamps to be sorted in descending order.
So how do I get this result?

[04-Feb-2021-21-06-49]  [04-Feb-2021-21-05-48]  [26-Jan-2021-00-28-33]  [26-Jan-2021-00-28-33]  [25-Jan-2021-00-24-29]  [25-Jan-2021-00-24-29]  [18-Jan-2021-12-19-48]  [18-Jan-2021-12-19-48]  

I tried these versions of the sort command, none worked for me...

IFS=$'\n' sorted=($(sort -r -t- -k3.1,3.4 -k2.1,2.3M <<<"${arr[*]}")); unset IFS  IFS=$'\n' sorted=($(sort -r -t- -k2.1,2.3M <<<"${arr[*]}")); unset IFS  IFS=$'\n' sorted=($(sort -t- -k2.1,2.3M <<<"${arr[*]}")); unset IFS  

Update

I updated my question to clarify that I want to sort the timestamps in descending order and not just to sort the array of timestamps by the month field.

Cheers.

ranger: how to disable the preview column entirely

Posted: 21 Mar 2021 09:32 AM PDT

My question: How to turn off the preview-column (right-most column in ranger) entirely?

I can't use the solution set column_ratio 1, since I want > 1 columns for showing as parent directories.

In man ranger, I only see options to turn off preview for specific types of files (files, dirs, images), but no way to turn off the entire preview column entirely.

Why can't install Wine on Debian 9?

Posted: 21 Mar 2021 08:23 AM PDT

Do as manual say in webpage wiki to install wine in debian

sudo dpkg --add-architecture i386  wget -nc https://dl.winehq.org/wine-builds/winehq.key  sudo apt-key add winehq.key  echo "deb https://dl.winehq.org/wine-builds/debian/ stretch main" |sudo tee -a  /etc/apt/sources.list  sudo apt update  

Now install wine :

sudo apt install --install-recommends winehq-stable  Reading package lists... Done  Building dependency tree         Reading state information... Done  Some packages could not be installed. This may mean that you have  requested an impossible situation or if you are using the unstable  distribution that some required packages have not yet been created  or been moved out of Incoming.  The following information may help to resolve the situation:    The following packages have unmet dependencies:   winehq-stable : Depends: wine-stable (= 5.0.0~stretch)  E: Unable to correct problems, you have held broken packages.  

Try to install wine-stable.

sudo apt install --install-recommends wine-stable  Reading package lists... Done  Building dependency tree         Reading state information... Done  Some packages could not be installed. This may mean that you have  requested an impossible situation or if you are using the unstable  distribution that some required packages have not yet been created  or been moved out of Incoming.  The following information may help to resolve the situation:    The following packages have unmet dependencies:   wine-stable : Depends: wine-stable-i386 (= 5.0.0~stretch)  E: Unable to correct problems, you have held broken packages.  

So many dependencies.

sudo apt install  wine-stable-i386  Reading package lists... Done  Building dependency tree         Reading state information... Done  Some packages could not be installed. This may mean that you have  requested an impossible situation or if you are using the unstable  distribution that some required packages have not yet been created  or been moved out of Incoming.  The following information may help to resolve the situation:    The following packages have unmet dependencies:   wine-stable-i386:i386 : Depends: libasound2-plugins:i386 but it is not going to be installed                           Recommends: libglu1-mesa:i386 but it is not going to be installed or                                       libglu1:i386                           Recommends: libsdl2-2.0-0:i386 but it is not going to be installed  E: Unable to correct problems, you have held broken packages.  

Some configuration in my os.

cat /etc/issue  Debian GNU/Linux 9 \n \l  ls /etc/apt/sources.list.d  google-chrome.list  google-chrome.list.save  wine-obs.list  cat  /etc/apt/sources.list.d/wine-obs.list  deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_9.0 ./  

It is no use to remove it. enter image description here Dependencies issue remains.
enter image description here It is no use to sudo apt dist-upgrade.

enter image description here Remove the package to check.

sudo apt purge wine.  Reading package lists... Done  Building dependency tree         Reading state information... Done  Note, selecting 'libwine-dev' for regex 'wine.'  Note, selecting 'winetricks' for regex 'wine.'  Note, selecting 'wine-devel-amd64' for regex 'wine.'  Note, selecting 'wine-staging-compat' for regex 'wine.'  Note, selecting 'wine-devel' for regex 'wine.'  Note, selecting 'wine-binfmt' for regex 'wine.'  Note, selecting 'wine32-preloader:i386' for regex 'wine.'  Note, selecting 'gnome-wine-icon-theme' for regex 'wine.'  Note, selecting 'wine32-development-tools' for regex 'wine.'  Note, selecting 'wine-devel-dbg' for regex 'wine.'  Note, selecting 'wine-devel-dev' for regex 'wine.'  Note, selecting 'wine64-development' for regex 'wine.'  Note, selecting 'wine-stable-dbg' for regex 'wine.'  Note, selecting 'wine-stable-dev' for regex 'wine.'  Note, selecting 'winehq-devel' for regex 'wine.'  Note, selecting 'wine1.4-amd64' for regex 'wine.'  Note, selecting 'wine-staging-i386' for regex 'wine.'  Note, selecting 'wine64-preloader' for regex 'wine.'  Note, selecting 'wine64-development-tools' for regex 'wine.'  Note, selecting 'wine1.6-dev' for regex 'wine.'  Note, selecting 'wine1.4' for regex 'wine.'  Note, selecting 'wine1.5' for regex 'wine.'  Note, selecting 'wine1.6' for regex 'wine.'  Note, selecting 'wine1.7' for regex 'wine.'  Note, selecting 'wine1.8' for regex 'wine.'  Note, selecting 'wine1.9' for regex 'wine.'  Note, selecting 'wine1.5-amd64' for regex 'wine.'  Note, selecting 'wine2.0' for regex 'wine.'  Note, selecting 'wine32-development' for regex 'wine.'  Note, selecting 'wine-devel-i386' for regex 'wine.'  Note, selecting 'wine1.7-i386' for regex 'wine.'  Note, selecting 'wine1.6-amd64' for regex 'wine.'  Note, selecting 'wine-development' for regex 'wine.'  Note, selecting 'wine32-tools' for regex 'wine.'  Note, selecting 'wine1.6-i386' for regex 'wine.'  Note, selecting 'wine-stable' for regex 'wine.'  Note, selecting 'libwine-development-dev' for regex 'wine.'  Note, selecting 'shiki-wine-theme' for regex 'wine.'  Note, selecting 'wine32' for regex 'wine.'  Note, selecting 'wine64' for regex 'wine.'  Note, selecting 'wine1.5-i386' for regex 'wine.'  Note, selecting 'libwine-development' for regex 'wine.'  Note, selecting 'winehq-stable' for regex 'wine.'  Note, selecting 'wine-staging' for regex 'wine.'  Note, selecting 'wine-i386' for regex 'wine.'  Note, selecting 'wine1.4-i386' for regex 'wine.'  Note, selecting 'wine-staging-dbg' for regex 'wine.'  Note, selecting 'wine64-development-preloader' for regex 'wine.'  Note, selecting 'wine-staging-dev' for regex 'wine.'  Note, selecting 'libwine-gecko-2.47' for regex 'wine.'  Note, selecting 'wine-stable-i386' for regex 'wine.'  Note, selecting 'wine-staging-amd64' for regex 'wine.'  Note, selecting 'winehq-staging' for regex 'wine.'  Note, selecting 'wine1.7-amd64' for regex 'wine.'  Note, selecting 'wine-stable-amd64' for regex 'wine.'  Note, selecting 'wine-amd64' for regex 'wine.'  Note, selecting 'wine64-tools' for regex 'wine.'  Note, selecting 'libkwineffects9' for regex 'wine.'  Note, selecting 'wine32-development-preloader:i386' for regex 'wine.'  Note, selecting 'wine32-tools:i386' instead of 'wine32-tools'  Note, selecting 'wine32-development-tools:i386' instead of 'wine32-development-tools'  Package 'wine1.8' is not installed, so not removed  Package 'wine1.9' is not installed, so not removed  Package 'wine1.6-dev' is not installed, so not removed  Note, selecting 'wine32-development:i386' instead of 'wine32-development'  Package 'libwine-gecko-2.47' is not installed, so not removed  Package 'wine2.0' is not installed, so not removed  Note, selecting 'wine-devel-i386:i386' instead of 'wine-devel-i386'  Note, selecting 'wine-stable-i386:i386' instead of 'wine-stable-i386'  Note, selecting 'wine-staging-i386:i386' instead of 'wine-staging-i386'  Package 'gnome-wine-icon-theme' is not installed, so not removed  Package 'libkwineffects9' is not installed, so not removed  Package 'shiki-wine-theme' is not installed, so not removed  Package 'libwine-development' is not installed, so not removed  Package 'libwine-development-dev' is not installed, so not removed  Package 'wine-development' is not installed, so not removed  Package 'wine64-development' is not installed, so not removed  Package 'wine64-development-preloader' is not installed, so not removed  Package 'wine64-development-tools' is not installed, so not removed  Package 'wine32-development-preloader:i386' is not installed, so not removed  Package 'winetricks' is not installed, so not removed  Package 'libwine-dev' is not installed, so not removed  Package 'wine-binfmt' is not installed, so not removed  Package 'wine64' is not installed, so not removed  Package 'wine64-preloader' is not installed, so not removed  Package 'wine64-tools' is not installed, so not removed  Package 'wine32-preloader:i386' is not installed, so not removed  Package 'wine-devel-amd64' is not installed, so not removed  Package 'wine-devel-dbg' is not installed, so not removed  Package 'wine-devel-dev' is not installed, so not removed  Package 'wine-devel' is not installed, so not removed  Package 'wine-stable-amd64' is not installed, so not removed  Package 'wine-stable-dbg' is not installed, so not removed  Package 'wine-stable-dev' is not installed, so not removed  Package 'wine-stable' is not installed, so not removed  Package 'wine-staging-amd64' is not installed, so not removed  Package 'wine-staging-compat' is not installed, so not removed  Package 'wine-staging-dbg' is not installed, so not removed  Package 'wine-staging-dev' is not installed, so not removed  Package 'wine-staging' is not installed, so not removed  Package 'winehq-devel' is not installed, so not removed  Package 'winehq-stable' is not installed, so not removed  Package 'winehq-staging' is not installed, so not removed  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  

How to fix it? enter image description here

Remove the leftmost column from ranger file manager

Posted: 21 Mar 2021 09:35 AM PDT

There is a way I can remove the rightmost column:

# Preview files on the rightmost column?  # And collapse (shrink) the last column if there is nothing to preview?  set preview_files false  set preview_directories false  set collapse_preview true  

But how do I remove the leftmost column which shows the parent directory?

I know that I can use set viewmode=multipane to get single column. But in that case, when I use two tabs, I get two columns for two tabs, in the same screen. I want a screen per tab, but I want each screen to be composed of single column. How do I achieve that?

Controlling USB-C Power Delivery on a HP ProBook G5 laptop

Posted: 21 Mar 2021 09:10 AM PDT

Question: I want to look at parameters under /sys/class/typec, but on my laptop, this doesn't show up. When I load the typec module manually, the directory appears but it is empty. After loading tcpm module, nothing happens.

How do I get the /sys/class/typec interface? How can I know if it is even supported? If it isn't, why not -- does my hardware not expose the controls? Are drivers missing? etc.

The laptop is a HP ProBook 430 G5 (based on intel 8gen Kaby Lake Refresh core i5). It has one USB-C port capable of USB Power Delivery (alongside DisplayPort and regular USB traffic).

I'm on Linux Mint Sylvia, my kernel is 4.15.3 from kernel.ubuntu.com (installed through ukuu tool). This should be recent enough that all the relevant kernel things exist. Why don't I see them?

(I also want to learn a little about the TypeC interface, hence why I'm asking this specific question, as opposed to the more task-oriented variant seen below.)


Background, AKA, why am I even doing this, in case this is helpful:

HP hardware is notorious for disliking 3rd party USB-C chargers, but this got somewhat better in the 8gen series; it sort of works now.

I'm using the following USB-C dock: http://i-tec.cz/?t=3&v=443

When the laptop is on AC power, I can connect the dock and everything works fine. When I disconnect the AC adapter, the laptop will continue to charge over the USB-C connection. Same thing happens when I connect the dock when laptop is turned off.

However, if I simply plug in the dock when the laptop is on AC power, it doesn't work at all. No charging, no devices, not even a connect event. Furthermore, the laptop starts making a slight clicking sound. In Windows, this is accompanied by repeated connect/disconnect sounds. In dmesg, I see messages like this: [10356.375855] xhci_hcd 0000:00:14.0: Cannot set link state. [10356.375866] usb usb2-port2: cannot disable (err = -32)

(yes, this might be a hardware problem)

However, if the problem lies with power delivery (as it seems to be, given the "plug in while on AC" thing), I'd like to try to switch the port to a non-PD mode. Then I could at least get the dock functionality. This seems to be done through USB Type-C Port Manager (tcpm) interface. I don't have that on my laptop. /sys/class/typec doesn't exist initially, shows up empty after inserting typec module.

How to hide a specific process?

Posted: 21 Mar 2021 09:03 AM PDT

The command hidepid is used to prevent users from seeing all processes that do not belong to them, but it doesn't offer the possibility of selecting a specific process. Is it possible to hide only one process on a Linux machine?

ssh PrintLastLog prints actual login

Posted: 21 Mar 2021 08:04 AM PDT

I connect with my server via ssh and always it shows the last log: Last login: Sat Mar 19 14:05:17 2016 from... but that login is my actual login. What's the utility of this info? It should print the previous connection.


Gentoo 64 bits
Openssh v7.2

Estimate time or work left to finish for rsync?

Posted: 21 Mar 2021 07:42 AM PDT

When running rsync on a directory with lots of files and directories at multiple levels, can we estimate the amount of work or time to finish?

  • the progress option only shows the progress of transferring a single file, not the progress of transferring all files and directories under the source directory.

  • One way I guess is to look at the what directories it has transferred so far, and compare that to the source.

    It will help a lot if I know the order of files and directories in which rsync transfers them.

    I guess that it may be related to that rsync runs multiple threads and what each thread does?

    I am not sure what order it chooses, and my previous guess of bread-first order seems not correct (so I strike it through).

Sharing serial device

Posted: 21 Mar 2021 08:24 AM PDT

I'm running Ubuntu and I need to share a serial device (/dev/ttyUSB0) using socat or something like it.

Here is my diagram:

                              /--</dev/ttyUSB01>--[Process A]  [serial device]-/dev/ttyUSB0--                                \--</dev/ttyUSB02>--[Process B]  

Both process A and B need to read-write, no problem about concurrency.

How can I create a two "virtual" devices like /dev/ttyUSB01 and /dev/ttyUSB02?

Pulseaudio over network - change output on-the-fly

Posted: 21 Mar 2021 09:11 AM PDT

I successfully configured PulseAudio server and client to send audio over network. It uses direct connection: http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Network/#index1h2

I'd like to have a possibility to switch between client and server sound card i.e. temporarily disable network stream and go back to internal sound device.

Using module-tunnel-sink I could simply move sink-input to desired device but is not an option since it doesn't work well with Flash:

they lead me to believe that Flash is somehow sending the sound to PulseAudio in such a way that it creates a lot of network traffic (think lots of tiny packets, not bandwidth); this overwhelms the network "tunnel" PulseAudio

With direct connection I have to restart the application every time I want to switch the output.

Any idea how can I solve this?

Network Manager doesn't show Wireless connection

Posted: 21 Mar 2021 08:24 AM PDT

I've just installed on my Debian Sid with XFCE4 network manager, but I have a problem, no wireless connection are shown. What Should I do? I used to use wicd but I had problems to connect to free wifi :S I don' t know why.

However now I'm connected from terminal, but I don't know why connections aren't shown in network manager..

Sameone can help me? Thank you.

EDIT: Now is showing but network manager gives me this error: enter image description here

EDIT2:

My /etc/network/interfaces

auto lo  iface lo inet loopback  

How do I check package version using apt-get / aptitude?

Posted: 21 Mar 2021 08:22 AM PDT

Before I install a package, I'd like to know what version I would get.

How do I check the version before installing using apt-get or aptitude on Debian or Ubuntu?

No comments:

Post a Comment