Wednesday, April 14, 2021

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


Can't login: Unlocking failed

Posted: 14 Apr 2021 10:12 AM PDT

Each time I go to a sleep state, wake up and then provide my password in a login form, I get a message Unlocking failed. The password I type is correct, because after rebooting the same password works.

auth.log output:

Apr 14 19:49:12 mathroom unix_chkpwd[15137]: check pass; user unknown  Apr 14 19:49:12 mathroom unix_chkpwd[15137]: password check failed for user (mathway)  Apr 14 19:49:12 mathroom kcheckpass[15077]: pam_unix(kde:auth): authentication failure; logname= uid=1000 euid=1000 tty=:0 ruser= rhost=  user=mathway  

I am running Kubuntu with a 5.11.0-14-generic version of the kernel.

lsb_relase -a output:

Distributor ID: Ubuntu  Description:    Ubuntu Hirsute Hippo (development branch)  Release:        21.04  Codename:       hirsute  

(The problem occurred before I upgraded to 21.04, so the problem isn't connected to it)

I am stuck with this problem for about a week and currently found no solution. Any help will be appreciated :)

Getting mount Error "Not a data message"

Posted: 14 Apr 2021 10:11 AM PDT

I'm trying to mount a 2bd partition on my MicrSD Card in Termux (A terminal app on Android)on my Android device. I have been doing this for a long time without any problems. Now recently when I try to mount I get a message "Not a data message". I can't find any information on this error message. I have searched the web but only found references to this error but not any detail on what causes it.

Any help will be greatly appreciated.

P.S. I tried mounting in terminal in TWRP recovery as well with the same message.

Thank You, Sruly

Grid Search returns all NaNs: is it my data? is it how I'm setting up the algorythmn?

Posted: 14 Apr 2021 10:08 AM PDT

I am attempting to optimize parameters using GridSearchCV. However, when I do so the gridsearch appears to run, but returns all NaN values. I read somewhere that this means the model is failing to fit - but I'm not sure what this means. The same data runs fine in a single RFT instance - it is only the grid search that fails. I've spent 6 hours on this problem and gotten nowhere. Help please! The data is fine, the right shape, and free from NaNs/infs.

X_train, X_test, y_train, y_test, y, X = split_scale(selected_df, dPSI+"_class", exon_features)  clf = GridSearchCV(classifier, parameter_grid, scoring=meteric_grid, n_jobs=-1, refit=False, verbose=2)  model = clf.fit(X_train, y_train)  print (model.cv_results_)  

Output: you can see that the model is running and it returns 'fit times', but every single meteric in the cv_results_ is NaN. So frustrating!!!

[CV] END ......................max_depth=10, n_estimators=10; total time=   0.0s  [CV] END ......................max_depth=10, n_estimators=10; total time=   0.0s  [CV] END ......................max_depth=10, n_estimators=10; total time=   0.0s  [CV] END ......................max_depth=10, n_estimators=10; total time=   0.0s  [CV] END ......................max_depth=10, n_estimators=10; total time=   0.0s  [CV] END ......................max_depth=10, n_estimators=20; total time=   0.0s  [CV] END ......................max_depth=10, n_estimators=20; total time=   0.0s  [CV] END ......................max_depth=10, n_estimators=20; total time=   0.0s  [CV] END ......................max_depth=10, n_estimators=20; total time=   0.0s  [CV] END ......................max_depth=10, n_estimators=20; total time=   0.0s  [CV] END ......................max_depth=25, n_estimators=10; total time=   0.0s  [CV] END ......................max_depth=25, n_estimators=10; total time=   0.0s  [CV] END ......................max_depth=25, n_estimators=10; total time=   0.0s  [CV] END ......................max_depth=25, n_estimators=10; total time=   0.0s  [CV] END ......................max_depth=25, n_estimators=10; total time=   0.0s  [CV] END ......................max_depth=25, n_estimators=20; total time=   0.0s  [CV] END ......................max_depth=25, n_estimators=20; total time=   0.0s  [CV] END ......................max_depth=25, n_estimators=20; total time=   0.0s  [CV] END ......................max_depth=25, n_estimators=20; total time=   0.0s  [CV] END ......................max_depth=25, n_estimators=20; total time=   0.0s  {'mean_fit_time': array([0.02042117, 0.03896065, 0.02059684, 0.04026666]), 'std_fit_time': array([0.0006001 , 0.00104686, 0.00012491, 0.00026249]), 'mean_score_time': array([0.00199666, 0.00307798, 0.00193343, 0.00308337]), 'std_score_time': array([8.18039960e-05, 6.15206794e-05, 5.13259331e-06, 2.12289488e-05]), 'param_max_depth': masked_array(data=[10, 10, 25, 25],               mask=[False, False, False, False],         fill_value='?',              dtype=object), 'param_n_estimators': masked_array(data=[10, 20, 10, 20],               mask=[False, False, False, False],         fill_value='?',              dtype=object), 'params': [{'max_depth': 10, 'n_estimators': 10}, {'max_depth': 10, 'n_estimators': 20}, {'max_depth': 25, 'n_estimators': 10}, {'max_depth': 25, 'n_estimators': 20}], 'split0_test_precision': array([nan, nan, nan, nan]), 'split1_test_precision': array([nan, nan, nan, nan]), 'split2_test_precision': array([nan, nan, nan, nan]), 'split3_test_precision': array([nan, nan, nan, nan]), 'split4_test_precision': array([nan, nan, nan, nan]), 'mean_test_precision': array([nan, nan, nan, nan]), 'std_test_precision': array([nan, nan, nan, nan]), 'rank_test_precision': array([1, 2, 3, 4], dtype=int32),   'split0_test_f1': array([nan, nan, nan, nan]), 'split1_test_f1': array([nan, nan, nan, nan]),     'split2_test_f1': array([nan, nan, nan, nan]), 'split3_test_f1': array([nan, nan, nan, nan]),     'split4_test_f1': array([nan, nan, nan, nan]), 'mean_test_f1': array([nan, nan, nan, nan]),     'std_test_f1': array([nan, nan, nan, nan]), 'rank_test_f1': array([1, 2, 3, 4], dtype=int32),     'split0_test_recall': array([nan, nan, nan, nan]), 'split1_test_recall': array([nan, nan, nan,     nan]), 'split2_test_recall': array([nan, nan, nan, nan]), 'split3_test_recall': array([nan, nan,     nan, nan]), 'split4_test_recall': array([nan, nan, nan, nan]), 'mean_test_recall': array([nan, nan, nan, nan]), 'std_test_recall': array([nan, nan, nan, nan]), 'rank_test_recall': array([1, 2, 3, 4], dtype=int32)}    

nmcli linux network manager pptp vpn with ms-chap chap encreption

Posted: 14 Apr 2021 09:57 AM PDT

i have create a vpn connection in my centos 7 server a command line

sudo nmcli connection add connection.id VPN_2 connection.type vpn connection.interface-name wlp2s0   connection.permissions spameggs vpn.service-type pptp vpn.data gateway=xxx.xxx.xxx.xxx      sudo nmcli connection modify VPN_2 vpn.user-name ss vpn.secrets password=ss  

how i can allaw pap , chap , MS-chapv2 in my connection

How I can install some gcc compilers in arch linux?

Posted: 14 Apr 2021 10:05 AM PDT

I need to install earlier gcc than now. I already have gcc-10. I must install gcc-8 or gcc-6 in my computer then to build old project. I download the gcc-6 from github and tried install it as shown in this guide https://gist.github.com/slizzered/a9dc4e13cb1c7fffec53. I got the error: target not found: libart-lgpl . Google was show me than it's error occurs due to than this package is't contents from main repository. Stop! Ones again. If I want to build gcc-6 then I need to download and install yaourt then next install libart-lgpl which is not in the official repository? Pleas help my download & install some gcc compilers from my computer.

Copy files from a mounted device to the original contents of the mount point

Posted: 14 Apr 2021 09:46 AM PDT

Is there a way to copy files from a mounted point to the original directory of this mounted point ?

for example : I got a samba share mounted on /home/vod/public. I lost my connection so I have no more access to the samba share, My goal is to do a 'Backup' of this samba share, so when I lost connection, I umount the samba share And an old copy of the samba share is at the original directory (/home/vod/public)

I saw than you can access to the original contents of a mount point with the option '--bind' when you mount it, but what about copying from the share to the original content ?

Missing fonts in JavaFX Scene Builder and bad resolution

Posted: 14 Apr 2021 09:39 AM PDT

I've installed this package: https://aur.archlinux.org/packages/javafx-scenebuilder/

But something is wrong, look at that screenshot: enter image description here

I see no text and other things (icons) are smaller than in other programs. I have 4k resolution.

Thanks for any help!

gnu parallel - speed up command agains remote servers that waits

Posted: 14 Apr 2021 09:31 AM PDT

I'm using gnu parallel to generate backups for about ~1500 web sites on pantheon.io, using their terminus CLI. The terminus backup:create command does not finish until a response is received that it has completed on the remote end. I'm wondering if there is any way to better speed this up with parallel so that more sites can be backing up while waiting on previous ones to complete or just run more overall if not. If it makes any difference, this is being run from a Jenkins CI job. Thank you.

#!/bin/bash +x    backup_sites() {    BACKUP=$(terminus backup:create "$*".live)    echo "$*": "$BACKUP"  }    SITE_LIST=$(terminus site:list --field=name)    export -f backup_sites  echo "$SITE_LIST" | parallel backup_sites  

What would be causing the following BIOS errors and why?

Posted: 14 Apr 2021 09:24 AM PDT

I recently installed Deepin OS on my laptop for educational purposes (Dual boot with Windows 10) a few days later, once trying to boot into Deepin OS it showed me the following BIOS errors and it keeps being stuck there without successfuly booting (tries then goes back to the screen)

[   0.412006] ACPI BIOS Error (bug): could not resolve symbol [\_SB.PC10.GPP2.BCM5], AE_NOT_FOUND (20190816/dswload2-163)  [   0.4120241] ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20190816/psobject-221)  [   1.2338621] pc1 0000:00:00.2: AMD-Vi: unable to read/write to IOMMU perf counter.  

I wonder if there is anything I can do to fix this, or if reinstalling Deepin or any other distro like Ubuntu would be okay, my laptop's processor is AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx.

hidepid=2 stopped working after an update. Kernel don't suppport “per-mount point”?

Posted: 14 Apr 2021 09:24 AM PDT

I am running arch linux hardened (5.11.13-hardened1-1-hardened) and have been setting hidepid=2 thru the fstab:

proc            /proc       proc        nosuid,nodev,noexec,hidepid=2,gid=proc  0 0  

and in the and override file for systemd-logind.service as hidepid.conf:

[Service]  SupplementaryGroups=proc  

All accordning to the arch wiki security and everything has been working fine up until a while ago after an update, and I think it is because of systemd-248 update, but I am obviously not sure.

When reading up on systemd changes a came across this section about "ProtectProc=" which is being set in the systemd-logind.service now by default, so I have been setting this option to 'invisible' (which does not take effect) and that should obsolete the fstab setting of hidepid=2 but in the description of "ProtectProc=" here freedesktop systemd protectproc=

If the kernel doesn't support per-mount point hidepid= mount options this setting remains  without effect, and the unit's processes will be able to access and see other process as if   the option was not used. This option is only available for system services and is not supported  for services running in per-user instances of the service manager.  

So what is the meaning of this? Anyone else out there who is experiencing this? Is this something I can fix thru kernel parameters in the hardened kernel?

Hope I did not miss this is the previous asked question in the forum.

Best regards

Attempting to get root UID from root EUID

Posted: 14 Apr 2021 09:05 AM PDT

So here is the situation. I have a hypothetical system with 2 users - 'user1' and 'root'. The user 'user1' is just a normal non-sudoer user with uid=1000, and the root, is just a normal root user with uid=0.

Let's say that through a certain exploit in the system user1, can get euid=0, but his uid still remains 1000. This sort of gives him some root abilities but not all. For example: accessing /root, is done as if the root is attempting to do it, but running 'sudo' or 'su' seems to be ran as if based on UID and not EUID.

My question is: Is there an elegant way that doesn't require, uploading binaries, changing /etc/shadow or /etc/passwd to switch the uid to 0 as well, now that we have euid=0? It would also be great if the method works natively and doesn't assume that specific programs like gcc, for example, exsist.

So far I only managed to think out python -c 'import pty; import os; os.setuid(0); pty.spawn("/bin/bash")' which is fairly nice, but assumes that there is python installed on the system. Any better suggestion?

How does buffering for TCP packets work?

Posted: 14 Apr 2021 09:35 AM PDT

If I write a few times in a quick succession on a socket (with the POSIX function write), usually all the data I wrote gets sent in a single TCP packets. Unless I write too much or unless I wait too long between the writes.

Is the kernel buffering the data I write on a socket and sending packets out at regular intervals? Or does the libc handle this? How long does the kernel wait before sending a packet? Can I request to send a mostly empty packet immediately? Is UDP or other protocols handled differently?

I'm curious to understand how all of this work, but I struggled at finding information on the topic.

How to compile zbar on Raspberry Pi OS?

Posted: 14 Apr 2021 08:22 AM PDT

I tried following as suggested in docs but when I run zbarcam --nodisplay, I get segmentation fault.

Btw, I know about sudo apt install zbar-tools, but version on Raspberry Pi OS APT repository is out of date.

sudo apt update  sudo apt install autopoint build-essential git libv4l-dev libtool  git clone https://github.com/mchehab/zbar  cd zbar  autoreconf -vfi  ./configure --with-python=no  make  sudo make install  sudo ldconfig  cat << "EOF" >> ~/.bashrc  export PATH=$PATH:/usr/local/bin  EOF  source ~/.bashrc  
$ zbarcam --nodisplay  Segmentation fault  

how to use ImageMagick's crop to remove "watermark"

Posted: 14 Apr 2021 08:24 AM PDT

How can I use ImageMagick's command line utils to crop several iamges so that I remove the watermark on the bottom of them?

Context

I have a personal website for my family where I post our photos. A family member took several photos with the phone. Every photo has the following text on it: date, name of the phone's owner, model of the phone. I want to crop the photos to cut out this information before posting it online.

This information is at the bottom of the photo and occupies the same height in every photo, so I need to write a script like so:

watermarkheight=20 # just a an example  for photo in *.jpg; do    dimensions=$(identify $photo | awk '{ print $3 }') # it will be like 600x400, width X height    height=${dimensions#*x}    width=${dimensions%x*}    newheight=$(( height - watermarketheight ))    # i need help with line below    someCommandToCropTheHeight --width $width --height $height --file $photo  done   

What I need to know is how to use commands like mogrify or convert to cut out the "watermark" from the photos.

Any help is appreciated

Replacing every line of pattern block with EOL

Posted: 14 Apr 2021 10:22 AM PDT

I have a text file as shown below:

where $ tells about EOL (end of line) location I have used to illustrate that.

 53t83t5  5 gejgi3 gg 4gij503 $          /* rtdrfsetsrhs               $  ryhrdhrh               $  rhyrdhyyyyyyyyyyyrhyrshrh$  ryhrhrh */$  $  345dfeb terfgb$  /*srdtfgyhgfs*/           $  $  $  

Now I have to replace every line of /* */ this block with EOL placed at start of the line as shown below, Notice the position of $ for Line 3 that means if there are some characters including whitespace we should not skip it instead we should place EOL at the position of /* forward slash.

 53t83t5  5 gejgi3 gg 4gij503 $          $  $  $  $  $  345dfeb terfgb$  /*srdtfgyhgfs*/           $  $  $  

I was able to detect the block using sed '/\/\*/,/\*\//d inputFile even I was able to delete the whole block also but I wonder can we do the above one using sed command in .sed script.

NOTE: /*...*/ this is used for illustration of a pattern block we can have different pattern enclosing blocks also, like <--...--> or !!...!! however I want to know a snippet for /*...*/, I can handle all others on my own.

How can i solve these services errors on boot?

Posted: 14 Apr 2021 09:37 AM PDT

I have an ubuntu 20.04 LTS server running nextcloud, when the server its booting some services failed on boot.

root@demg-srv:/etc/systemd/network# systemctl --failed  UNIT                                 LOAD   ACTIVE SUB    DESCRIPTION  ● cloud-config.service                 loaded failed failed Apply the settings specified in cloud-config  ● cloud-final.service                  loaded failed failed Execute cloud user/final scripts  ● cloud-init-local.service             loaded failed failed Initial cloud-init job (pre-networking)  ● cloud-init.service                   loaded failed failed Initial cloud-init job (metadata service crawler)  ● systemd-networkd-wait-online.service loaded failed failed Wait for Network to be Configured    LOAD   = Reflects whether the unit definition was properly loaded.  ACTIVE = The high-level unit activation state, i.e. generalization of SUB.  SUB    = The low-level unit activation state, values depend on unit type.  

The status of each service show the same error that this one:

cloud-config.service

● cloud-config.service - Apply the settings specified in cloud-config       Loaded: loaded (/lib/systemd/system/cloud-config.service; enabled; vendor preset: enabled)       Active: failed (Result: exit-code) since Wed 2021-04-14 14:04:58 UTC; 47min ago      Process: 722 ExecStart=/usr/bin/cloud-init modules --mode=config (code=exited, status=1/FAILURE)     Main PID: 722 (code=exited, status=1/FAILURE)    abr 14 14:04:58 demg-srv cloud-init[722]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2769, in _get_metadata  abr 14 14:04:58 demg-srv cloud-init[722]:     for line in self.get_metadata_lines(name):  abr 14 14:04:58 demg-srv cloud-init[722]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1433, in get_metadata_lines  abr 14 14:04:58 demg-srv cloud-init[722]:     return yield_lines(self.get_metadata(name))  abr 14 14:04:58 demg-srv cloud-init[722]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1425, in get_metadata  abr 14 14:04:58 demg-srv cloud-init[722]:     return value.decode('utf-8')  abr 14 14:04:58 demg-srv cloud-init[722]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 217: invalid continuation byte in PKG-INFO file at path:>  abr 14 14:04:58 demg-srv systemd[1]: cloud-config.service: Main process exited, code=exited, status=1/FAILURE  abr 14 14:04:58 demg-srv systemd[1]: cloud-config.service: Failed with result 'exit-code'.  abr 14 14:04:58 demg-srv systemd[1]: Failed to start Apply the settings specified in cloud-config.  

How can i solve eachone?

How to check the number of day of month?

Posted: 14 Apr 2021 09:04 AM PDT

I want a bash script to check if today is 15th of the current month?

if [ $dayOfMonth == 15 ]  then    echo "15th day of month  fi  

How to remove encryption from a directory encrypted with fscrypt?

Posted: 14 Apr 2021 10:12 AM PDT

I applied encryption with fscrypt on my home folder on Linux Mint. But now I decided to remove encryption and try something else. I read through the readme of the project, but I couldn't really find exact instructions, how to remove encryption. I have an assumption it could be done maybe by making a backup and deleting the home folder itself and with the fscrypt metadata command. But I'm not sure about it. Does anyone know the exact steps to achieve this.

Getting commmand screen insted of ubuntu logo when starting ubuntu 20

Posted: 14 Apr 2021 08:51 AM PDT

I have recently installed ubuntu. but for some reason today when i start or shutdown my laptop i get some commands running insted of ubuntu logo

I think in the background these commands were already running but we were only shown ubuntu logo when we boot ubuntu

This started when I Recently made some changes to my grub

Earlier my booting screen would look like this :
previous boot screen

But now the screen looks like this : boot screen now

Below are my grub settings folder

grub settings

can anyone please help me

installation of npm

Posted: 14 Apr 2021 10:13 AM PDT

I was trying to install npm..

└─$ sudo apt-get install npm                                                                                                                                     

I got some error/message https://paste.ubuntu.com/p/ZvGd7Kt96f/

That's very huge that's why I didn't add them here.. Then, I tried

sudo apt --fix-broken install  

I got these messages

I am using Debian Based Linux Distro..

I tried as the website also.https://www.how2shout.com/linux/how-to-install-npm-and-nodejs-14-x-on-kali-linux/

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -  sudo apt-get update  sudo apt-get install nodejs  

I got following error

Unpacking nodejs (14.16.1-deb-1nodesource1) over (12.21.0~dfsg-1) ...  dpkg: error processing archive /var/cache/apt/archives/nodejs_14.16.1-deb-1nodesource1_amd64.deb (--unpack):   trying to overwrite '/usr/share/doc/nodejs/api/cli.json.gz', which is also in package nodejs-doc 12.21.0~dfsg-1  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)  Errors were encountered while processing:   /var/cache/apt/archives/nodejs_14.16.1-deb-1nodesource1_amd64.deb  E: Sub-process /usr/bin/dpkg returned an error code (1)  

How to view any ."a" files in Vim?

Posted: 14 Apr 2021 09:53 AM PDT

I get a bunch of characters while viewing .a files in Vim. Any idea how .a files can be viewed properly in Vim

speedtest-cli: ValueError: invalid literal for int() with base 10: ''

Posted: 14 Apr 2021 08:53 AM PDT

On 3 machines I get:

$ speedtest-cli   Retrieving speedtest.net configuration...  Traceback (most recent call last):    File "/usr/bin/speedtest-cli", line 11, in <module>      load_entry_point('speedtest-cli==2.1.2', 'console_scripts', 'speedtest-cli')()    File "/usr/lib/python3/dist-packages/speedtest.py", line 1986, in main      shell()    File "/usr/lib/python3/dist-packages/speedtest.py", line 1872, in shell      speedtest = Speedtest(    File "/usr/lib/python3/dist-packages/speedtest.py", line 1091, in __init__      self.get_config()    File "/usr/lib/python3/dist-packages/speedtest.py", line 1173, in get_config      ignore_servers = list(  ValueError: invalid literal for int() with base 10: ''  

I have tested one of these machines on two different internet connections with the same result.

Why is it not working?

CentOS 8.3 kickstart text only install timezone problem

Posted: 14 Apr 2021 08:26 AM PDT

I have a custom text install using kickstart (ks.cfg) for CentOS 8.3. The problem I'm having is with timezone setting in ks.cfg. timezone is required in ks.cfg, so in previous version of CentOS, the install would stop to ask for timezone because it wasn't present in ks.cfg. If you comment out the timezone setting in ks.cfg it will now automatically assign NY timezone and continue with the install automatically (text based install). This has to be a bug unless there is another setting I don't know about to make the install stop to ask the installer for the timezone. In the graphical install of CentOS 8.3 NY also seems to be the default setting. I need to have the text based install stop so that the installer set the proper timezone instead of having it automatically plug in NY timezone and continue with the install without stopping.

Here is where the install should stop instead of plugging in New York timezone:

NOTE: In this example, timezone is commented out in ks.cfg

enter image description here

UPDATE

I tried putting bad timezone data in ks.cfg and it still lets the install begin without flagging it as an invalid timezone.

# timezone  timezone Gibberish/Stuff --isUtc --nontp  

enter image description here

debian buster can't open display on the platform : intel G6400 + gigabyte H410M H motherboard

Posted: 14 Apr 2021 08:38 AM PDT

Specs from my recently DIY'ed pc:

Processor: Intel GOLD 6400  Processor  Motherboard: Gigabyte H410M H  GPU: Intel® UHD Graphics 610  dual OS: win10  , Debian 10 (buster)  Monitor resolution: 1920 x 1084  

I have installed three OSs on it.
When I boot into win10, all video displayed well.
When I boot into ubuntu20.04, it works fine too. I have not install anything yet.

When I boot into debian10-buster, the gui can't be displayed,so I press ctrl+alt f3:

lspci  -k | grep -i "VGA"  VGA comptible controller: intel corporation Device qba8(rev 03)  xrandr   can't open display  

Installing mesa-utils and xserver-xorg-video-intel does not help.

sudo apt install  mesa-utils  xserver-xorg-video-intel  startx  Xinit: giving up  Xinit: unable to connect to x server:connection refused.  Xinit: server error  

This is the error I see in /var/log/Xorg.0.log:

[   264.985]   X.Org X Server 1.20.4  X Protocol Version 11, Revision 0  [   264.985] Build Operating System: Linux 4.19.0-12-amd64 x86_64 Debian  [   264.985] Current Operating System: Linux mydebian 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64  [   264.985] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19.0-16-amd64 root=UUID=c13673e5-96a2-4a34-a0ae-c526a104af09 ro quiet  [   264.985] Build Date: 01 December 2020  05:59:57PM  [   264.985] xorg-server 2:1.20.4-1+deb10u2 (https://www.debian.org/support)   [   264.987] Current version of pixman: 0.36.0  [   264.992]    Before reporting problems, check http://wiki.x.org      to make sure that you have the latest version.  [   264.992] Markers: (--) probed, (**) from config file, (==) default setting,      (++) from command line, (!!) notice, (II) informational,      (WW) warning, (EE) error, (NI) not implemented, (??) unknown.  [   265.001] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Apr  8 17:48:25 2021  [   265.003] (==) Using system config directory "/usr/share/X11/xorg.conf.d"  [   265.003] (==) No Layout section.  Using the first Screen section.  [   265.003] (==) No screen section available. Using defaults.  [   265.003] (**) |-->Screen "Default Screen Section" (0)  [   265.003] (**) |   |-->Monitor "<default monitor>"  [   265.004] (==) No monitor specified for screen "Default Screen Section".      Using a default monitor configuration.  [   265.004] (==) Automatically adding devices  [   265.004] (==) Automatically enabling devices  [   265.004] (==) Automatically adding GPU devices  [   265.004] (==) Max clients allowed: 256, resource mask: 0x1fffff  [   265.004] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.  [   265.004]    Entry deleted from font path.  [   265.004] (==) FontPath set to:      /usr/share/fonts/X11/misc,      /usr/share/fonts/X11/100dpi/:unscaled,      /usr/share/fonts/X11/75dpi/:unscaled,      /usr/share/fonts/X11/Type1,      /usr/share/fonts/X11/100dpi,      /usr/share/fonts/X11/75dpi,      built-ins  [   265.004] (==) ModulePath set to "/usr/lib/xorg/modules"  [   265.004] (II) The server relies on udev to provide the list of input devices.      If no devices become available, reconfigure udev or disable AutoAddDevices.  [   265.004] (II) Loader magic: 0x55a553a48e20  [   265.004] (II) Module ABI versions:  [   265.004]    X.Org ANSI C Emulation: 0.4  [   265.004]    X.Org Video Driver: 24.0  [   265.004]    X.Org XInput driver : 24.1  [   265.004]    X.Org Server Extension : 10.0  [   265.005] (++) using VT number 3    [   265.007] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31  [   265.009] (--) PCI:*(0@0:2:0) 8086:9ba8:1458:d000 rev 3, Mem @ 0xb0000000/16777216, 0xa0000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072  [   265.009] (II) LoadModule: "glx"  [   265.009] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so  [   265.010] (II) Module glx: vendor="X.Org Foundation"  [   265.010]    compiled for 1.20.4, module version = 1.0.0  [   265.010]    ABI class: X.Org Server Extension, version 10.0  [   265.010] (==) Matched modesetting as autoconfigured driver 0  [   265.010] (==) Matched fbdev as autoconfigured driver 1  [   265.010] (==) Matched vesa as autoconfigured driver 2  [   265.010] (==) Assigned the driver to the xf86ConfigLayout  [   265.010] (II) LoadModule: "modesetting"  [   265.010] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so  [   265.011] (II) Module modesetting: vendor="X.Org Foundation"  [   265.011]    compiled for 1.20.4, module version = 1.20.4  [   265.011]    Module class: X.Org Video Driver  [   265.011]    ABI class: X.Org Video Driver, version 24.0  [   265.011] (II) LoadModule: "fbdev"  [   265.011] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so  [   265.011] (II) Module fbdev: vendor="X.Org Foundation"  [   265.011]    compiled for 1.20.0, module version = 0.5.0  [   265.011]    Module class: X.Org Video Driver  [   265.011]    ABI class: X.Org Video Driver, version 24.0  [   265.011] (II) LoadModule: "vesa"  [   265.011] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so  [   265.011] (II) Module vesa: vendor="X.Org Foundation"  [   265.011]    compiled for 1.20.1, module version = 2.4.0  [   265.011]    Module class: X.Org Video Driver  [   265.011]    ABI class: X.Org Video Driver, version 24.0  [   265.011] (II) modesetting: Driver for Modesetting Kernel Drivers: kms  [   265.011] (II) FBDEV: driver for framebuffer: fbdev  [   265.011] (II) VESA: driver for VESA chipsets: vesa  [   265.011] (EE) open /dev/dri/card0: No such file or directory  [   265.011] (WW) Falling back to old probe method for modesetting  [   265.011] (EE) open /dev/dri/card0: No such file or directory  [   265.011] (II) Loading sub module "fbdevhw"  [   265.011] (II) LoadModule: "fbdevhw"  [   265.011] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so  [   265.011] (II) Module fbdevhw: vendor="X.Org Foundation"  [   265.011]    compiled for 1.20.4, module version = 0.0.2  [   265.011]    ABI class: X.Org Video Driver, version 24.0  [   265.011] (EE) Unable to find a valid framebuffer device  [   265.011] (WW) Falling back to old probe method for fbdev  [   265.011] (II) Loading sub module "fbdevhw"  [   265.011] (II) LoadModule: "fbdevhw"  [   265.011] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so  [   265.011] (II) Module fbdevhw: vendor="X.Org Foundation"  [   265.011]    compiled for 1.20.4, module version = 0.0.2  [   265.011]    ABI class: X.Org Video Driver, version 24.0  [   265.011] (II) FBDEV(2): using default device  [   265.011] (EE) Screen 0 deleted because of no matching config section.  [   265.011] (II) UnloadModule: "modesetting"  [   265.011] (EE) Screen 0 deleted because of no matching config section.  [   265.011] (II) UnloadModule: "fbdev"  [   265.011] (II) UnloadSubModule: "fbdevhw"  [   265.011] (EE)   Fatal server error:  [   265.011] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices  [   265.011] (EE)   [   265.011] (EE)   Please consult the The X.Org Foundation support        at http://wiki.x.org   for help.   [   265.011] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.  [   265.012] (EE)   [   265.014] (EE) Server terminated with error (1). Closing log file.  

`

Since the ubuntu install works without problems, I thought the debian should work also. Is there a driver I should install for the following GPU?

GPU: Intel® UHD Graphics 610  in CPU-G6400  

Accessing MTP mounted device in terminal

Posted: 14 Apr 2021 08:48 AM PDT

cd: /run/user/$UID/gvfs/mtp://%5Busb%3A001,010%5D/

gives the error :

cd: no such file or directory: /run/user/1000/gvfs/mtp://%5Busb%3A001,010%5D/   

Even though the device is mounted in the file manager and shows the same mtp path

I'd like to access it via terminal to able to copy data out of it as the File Manager just hangs when done via the GUI.

Distribution : Fedora 28

(Buildroot) "silentoldconfig" error on compile

Posted: 14 Apr 2021 08:46 AM PDT

I just moved an old buildroot folder from an old VM to a newer one to consolidate. I thought that simply moving the folder, along with any dependent folders, and making the appropriate path/name changes would be all that is required to get it up and running in the new VM.

Unfortunately, this appears to not be the case as I am greeted with the following error upon attempting to build in this new VM:

#  # configuration written to /home/mirion/mirion/buildroot-2013.05/.config  #  /usr/bin/make -j5  HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig  make[1]: Entering directory '/home/mirion/mirion/buildroot-2013.05'  BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/mirion/mirion/buildroot-2013.05/output/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/mirion/mirion/buildroot-2013.05/output/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/mirion/mirion/buildroot-2013.05/output/build/buildroot-config/tristate.config BUILDROOT_CONFIG=/home/mirion/mirion/buildroot-2013.05/.config /home/mirion/mirion/buildroot-2013.05/output/build/buildroot-config/conf --silentoldconfig Config.in    *** Error during update of the configuration.    Makefile:692: recipe for target 'silentoldconfig' failed  make[1]: *** [silentoldconfig] Error 1  make[1]: Leaving directory '/home/mirion/mirion/buildroot-2013.05'  Makefile:396: recipe for target '/home/mirion/mirion/buildroot-2013.05/output/build/buildroot-config/auto.conf' failed  make: *** [/home/mirion/mirion/buildroot-2013.05/output/build/buildroot-config/auto.conf] Error 2  mv: cannot stat 'output/images/rootfs.ubi': No such file or directory  

Are there any ideas as to what I can do to resolve this?

I did some poking around on google but could not find anything conclusive.

EDIT: Original VM was running Lubuntu 12.04, the new VM is running Ubuntu 17.10.

Thanks.

Why zsh behaves as less when querying a (postgresql) database?

Posted: 14 Apr 2021 09:43 AM PDT

Context

  • zsh shell,
  • oh-my-zsh framework,
  • no special zsh's configuration about postgresql.

Trouble

I noticed an annoying behavior: when querying the database, e.g.:

SELECT * FROM mytable ;  

it behaves as less (with (END)) and going back needs to "close" the less (with q shortcut) which means I cannot read the result of a previous query when typing the next one.

On the contrary, bash hasn't this behavior: after a query, the result is displayed and it is possible to type the next query.

Question

How can I customize zsh in order it behaves as bash in this respect?

How to show the CUPS printer jobs history?

Posted: 14 Apr 2021 09:49 AM PDT

I am printing some files from a remote computer to a network printer with the lpr command. It apparently worked, but some minutes later when I typed lpstat or lpq, the job had already disappeared, it had probably already printed the file. Is there a way to check the history or the log of my successfully completed jobs in the printer queue?

View all user's printing jobs from the command line

Posted: 14 Apr 2021 10:06 AM PDT

I'm running Fedora 17, Gnome (3?), and using bash from terminal. Whenever I run lpstat I only get a list of my jobs, but every time I go to retrieve my jobs from the printer, somebody else is printing and mine hasn't even started! What gives?

I want to view a list of all users' jobs, not just mine.

I tried lpq to no avail. I've also tried lpstat -t and same result -- just my jobs, not anyone else's. What am I doing wrong here?

No comments:

Post a Comment