How to jump X bytes down in hexedit? Posted: 01 May 2021 09:23 AM PDT I am looking through a memory dump B79C6440 64 6F 6E 65 00 00 6C 5F 75 62 6C 65 20 73 68 6F done..l_uble sho B79C6450 77 5F 00 00 5F 6F 6E 5F 72 75 70 00 00 61 63 6B w_.._on_rup..ack B79C6460 69 72 71 5F 76 65 63 74 6F 72 73 10 10 05 30 10 irq_vectors...0. B79C6470 06 50 10 07 70 10 08 90 10 09 B0 10 0A 98 1B FC .P..p........... B79C6480 16 9C 1B A0 A4 A8 18 6E 6D 69 5F 63 68 65 63 6B .......nmi_check using Hexedit I can jump to a new address by pressing enter and typing the address in. Say I want to move from address B79C6440 by adding an offset of X bytes , how could I compute the new address I want to reach so I could type it in? |
WHy do new user authentication get failure? Posted: 01 May 2021 09:03 AM PDT Creating a new user name rayan2 by giving command sudo useradd -b "$PWD/rayan2" -u 1055 -s "/bin/bash" --password "rayan2" rayan2 Then I have tried to log in in that username by giving su -l rayan2 Now I am getting this by supplying password as above "rayan2" Password: su: Authentication failure Can you please tell me the what is the wrong with it? |
How can I detect why a systemd service has stopped? Posted: 01 May 2021 08:49 AM PDT It's status suddenly goes to inactive, no errors nor anything else suspicious from journalctl -u servicename nor systemctl status servicename Description=Provide audio stream for homeassistant noise detection After=syslog.target network.target [Service] User=root Group=root Type=simple ExecStart=/bin/sh /arecord_pipe_ffmpeg.sh TimeoutStopSec=20 Restart=on-failure [Install] WantedBy=multi-user.target |
Wifi Network is not detecting Posted: 01 May 2021 09:56 AM PDT I am using kali linux. version check by lsb_release -a No LSB modules are available. Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2021.1 Codename: kali-rolling I guess there is problem with network adpater. output for ifconfig is eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 8c:16:45:54:4c:ad txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 788 bytes 61140 (59.7 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 788 bytes 61140 (59.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.42.234 netmask 255.255.255.0 broadcast 192.168.42.255 inet6 fe80::a800:26ff:feb5:a336 prefixlen 64 scopeid 0x20<link> ether aa:00:26:b5:a3:36 txqueuelen 1000 (Ethernet) RX packets 17845 bytes 17447803 (16.6 MiB) RX errors 4 dropped 0 overruns 0 frame 4 TX packets 17371 bytes 4356032 (4.1 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 16:c9:1c:51:c2:06 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 output for command iwconfig is lo no wireless extensions. eth0 no wireless extensions. wlan0 IEEE 802.11 ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm Retry short limit:7 RTS thr:off Fragment thr:off Power Management:on usb0 no wireless extensions. network card show by lspci | grep Network 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter I try to install driver for my network card. github directory of driver after completing prerequisite when I run sudo ./dkms-install.sh output is About to run dkms install steps... Error! DKMS tree already contains: rtl8821ce-v5.5.2_34066.20200325 You cannot add the same module/version combo more than once. Module rtl8821ce/v5.5.2_34066.20200325 already built for kernel 5.10.0-kali7-amd64/4 Module rtl8821ce/v5.5.2_34066.20200325 already installed on kernel 5.10.0-kali7-amd64/x86_64 Finished running dkms install steps. which means I had preinstalled driver but still, the wifi is not working. any suggestion? output for ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000 link/ether 8c:16:45:54:4c:ad brd ff:ff:ff:ff:ff:ff 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000 link/ether 02:e7:51:18:90:08 brd ff:ff:ff:ff:ff:ff permaddr b0:fc:36:32:7d:cb 4: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 1000 link/ether 92:52:11:d0:17:2f brd ff:ff:ff:ff:ff:ff |
Rescue Data from OMV Raid 1 Posted: 01 May 2021 09:16 AM PDT I have a big Problem: All my important data were stored on a selfmade OpenMediaVault-NAS. I have 2x 4TB WD Reds and one of them failed. It was a (software) Raid configured in OMV. When OMV rebooted, it crashed and now I only get error messages out of it. I removed the working drive and put it on a Linux Mint PC to copy the data. But then in GParted I saw that the filesystem is "linux-raid". I need help, getting access to the files. I googled, but didn't find useful information. Hopefully someone here can help me! Thanks |
command-line tool for converting/formating time Posted: 01 May 2021 09:38 AM PDT Is there a command-line tool to convert/format time? (I mean time, not date!) Here is what I was expecting: $ timeconverter --format '%s' 1h 3600 $ timeconverter --format '%h:%m:%s' 3665s 1:01:05 $ timeconverter --format '%H:%m:%s' 3665s 01:01:05 $ timeconverter --format '%Hh%Mm%Ss' 3966s 1h5m6s $ timeconverter --format '%m' 2d 2880 $ timeconverter --format '%d' 1w 7 $ timeconverter --format '%y' 365d 1 $ timeconverter --format '%s' 1h10m 4200 Where %m is minute, %d is day, %y is year, %h is hour, %s is second, %w is week, and so on. I myself could write a shellscript for it, but it is very likely that someone else already did that, and I want to save my time. |
Can a program execute another program without the shell as an intermediate? Posted: 01 May 2021 07:19 AM PDT This might be a silly question, but I'm still wondering, can a program in Linux written in Go for this matter, invoke a system call to execute another program directly, or does it have to call the shell first and let it run the other program? I don't mean replacing the current program. Let's say I have program1 which is a webserver and constantly running, can it execute program2 by directly reaching out to the kernel and using a relevant system call, or is it going through the shell first? If it's not using the shell, are there specific cases where you have to use the shell in a program to do some stuff? If so what would that be? Would appreciate any infos. |
How often is unix time divisible by 10,000,000 seconds at midnight? Posted: 01 May 2021 07:43 AM PDT I accidentally discovered that May 3 2021 will be one of the landmarks of Unix time. Exactly at midnight (UTC) the number of time_t will be divisible by 10,000,000: $ date --utc --date='@1620000000' Mon 3 May 00:00:00 UTC 2021 I'm not very mathematically inclined, so hopefully someone can explain the following: - How often is unix time divisible by 10,000,000 seconds at exactly midnight?
- Does this phenomenon have a name?
- What are some other interesting Unix times?
|
How to query current state of terminal (CSI SGR) display attribute? Posted: 01 May 2021 07:00 AM PDT How can I programmatically find out if a (pseudo-)terminal currently has blink (or any other display attribute) set? I want to create a zsh widget for toggling blinking text: toggle-blink() { push-line-or-edit if [ ??? ]; then print -b -n "\e[25m" else print -b -n "\e5m" fi get-line } |
problems with creating bash script with sed script Posted: 01 May 2021 06:51 AM PDT So, when i am creating file in my Docker manifesto with echo : RUN \ echo "#!/bin/bash\n\ mounted_tz=$(cat /etc/timezone)\n\ sed -i -r \"s~^(log_timezone\s*=\s*).*$~\1\'\$mounted_tz\'~\" /etc/postgresql/9.6/main/postgresql.conf\n\ sed -i -r \"s~^(timezone\s*=\s*).*$~\1\'\$mounted_tz\'~\" /etc/postgresql/9.6/main/postgresql.conf\n" > /root/pgtz-updaters; \ and then open this file in created container, i see this: #!/bin/bash mounted_tz=Etc/UTC sed -i -r "s~^(log_timezone\s*=\s*).*$~^A\'$mounted_tz\'~" /etc/postgresql/9.6/main/postgresql.conf sed -i -r "s~^(timezone\s*=\s*).*$~^A\'$mounted_tz\'~" /etc/postgresql/9.6/main/postgresql.conf How could i make echo not to decode this character into this? |
a constant stream of TCP data packets with incorrect checksums observed in the output of tcpdump Posted: 01 May 2021 08:20 AM PDT In the circumstance described in the title of this question, what is an admin of a computer meant to infer by this being the case? I can supply the output if this will help at all, the only thing really being worthy of note i can think of is that all of these packets seem to be between localhost and the username i created while trying to get a ssh/ptpp virtual private network working. The correct hexidecimal value of the checksum is always shown in brackets after the checksum field of the data packet, maybe the difference between the two values could tell me something or enable me to learn something new? Many thanks in advance. |
Can't Break the while read loop even if condition is met Posted: 01 May 2021 10:15 AM PDT This should be simple but I am missing something, need some help. My requirement is to read the log file via tail to get latest logs, grep Download Config & Copying all files of and write it in MyOwnLogFile.log but I want this to stop as soon as .myworkisdone file appears in /usr/local/FOLDER/ One thing is sure that .myworkisdone will be generated at the last when all logs are done… but the script just continues to read the log file and never comes out of it, even if the file is created. while [[ ! -e /usr/local/FOLDER/.myworkisdone ]]; do sudo tail -f -n0 /var/log/server22.log | while read line; do echo "$line" | grep -e 'Downloading Config' -e 'Copying all files of' ; done >> /var/tmp/MyOwnLogFile.log done I also tried until instead of while to check the file but still the script cant break the spell of reading the log file. Thank you in advance. |
The awk boundary is the beginning to a pattern Posted: 01 May 2021 09:14 AM PDT How to have awk to set range or boundary of the beginning to a pattern tried 1 fails as $ echo -e 'a\nb\nc\nend\ne\nf\ng\n' |awk '1,/end/ {print $0}' a b c end e f g this one for all as pattern works: $ echo -e 'a\nb\nc\nend\ne\nf\ng\n' |awk '/b/,/end/ {print $0}' b c end but back to question how to get range or boundary of the beginning to a pattern? |
how to find which special character are there in the file and replace those character with zeros Posted: 01 May 2021 09:10 AM PDT I have a file with below format.. this is file data under the file 123�45 this is second line 123* I want o/p like this. this is file data under the file 123045 this is second line 1230 this is the format which I'm using to do manually. grep -P "[^\x00-\x7F]" filename |
Why debian installs linux headers in two different places? Posted: 01 May 2021 10:04 AM PDT Debian have two packages for headers one architecture dependent and another is not. They install headers in /usr/src/$LINUX/common and /usr/src/$LINUX/$ARCH and consequently two directories: build and source in /lib/modules . This causes a lot of problem in dkms. Is there and good reason why it does that while vanilla one does not? |
How to use Wi-Fi bridged adapter on Kali Linux Virtualbox Posted: 01 May 2021 09:16 AM PDT I have created a Kali Linux virtualbox and want to use my wifi card not wired connection. The standard NAT adapter gives me internet just fine, but when I change that to bridged adapter and select my wi-fi card "TP-LINK 802.11ac Network Adapter" with "promiscuous mode: Deny" and "Cable Connected" ticked. Kali does not change to wireless network and show me the available networks, it stays as ethernet network with wired connection 1. The network symbol is spinning and it cannot connect to the internet. Hopefully this is a matter of turning off ethernet and turning on wifi but I don't know. Thank you in advance. |
Not seeing control channel and data interface associated with qmi_wwan evwn though the driver is loaded Posted: 01 May 2021 10:12 AM PDT I am trying to set up a QMI data and control channel on my Linux host, but been having trouble understanding a few things. When I run lsmod , I see the following $lsmod Module Size Used by option 53248 0 usb_wwan 20480 1 option crc32_ce 16384 0 crct10dif_ce 16384 0 qmi_wwan 32768 0 - I see the
qmi_wwan is loaded but it's not used by anything, plus no control (cdc-wdmX and data channel (some sort of interface in ifconfig ). $ ls /dev/ttyUSB0 // exists but no longer exists as soon as option driver is disabled $ ls /dev/cdc-wdmX // doesn't exist! //dmesg usbcore: registered new interface driver cdc_ether ... usbcore: registered new interface driver qmi_wwan ... usbcore: registered new interface driver cdc_wdm ... usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0 In the following, i'd expect Driver=qmi_wwan instead of Driver=rmnet_usb $ lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=/1p, 5000M |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=, 5000M |__ Port 1: Dev 2, If 2, Class=Vendor Specific Class, Driver=rmnet_usb, 5000M |__ Port 1: Dev 2, If 6, Class=Vendor Specific Class, Driver=, 5000M |__ Port 1: Dev 2, If 7, Class=Vendor Specific Class, Driver=, 5000M |__ Port 1: Dev 2, If 8, Class=Vendor Specific Class, Driver=, 5000M |__ Port 1: Dev 2, If 13, Class=Vendor Specific Class, Driver=, 5000M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=/1p, 480M - In
dmesg , I see interfaces (iface_desc->bInterfaceNumber ) 0, 6, 7, 13 , and option_probe is called for each of them. Where are these interfaces coming from that probes the option driver? There must really a specific interface associated with qmi_wwan I reckon. How to determine that? |
POPos 20.10 unable to install amd gpu drivers Posted: 01 May 2021 09:47 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) |
Recover grub after update Windows 10 Posted: 01 May 2021 08:07 AM PDT I have been using Windows 10 and Linux Mint for more than 2 years on the same computer. I always kept Windows up to date, but this time, the Windows update somehow overwrote grub to boot both OS. I can access Mint through the BIOS, but every time I start my computer, it automatically boots into Windows. I've tried a few things to get the grub back, but no success. Could anyone give me a solution of what I might be doing? |
Running ubuntu20.04 guest operating system crashes with error "The CPU has been disabled by the guest operating system." Posted: 01 May 2021 07:43 AM PDT I am running a virtual machine ubuntu 20.04 (5.11.0-051100-generic kernel) machine in vmware esxi server (6.5). While working with a python code which takes a connection to another machine and execute a command using pexpect module the guest operating system crashes with the below error. The CPU has been disabled by the guest operating system. Power off or reset the virtual machine. Detailed Log 9:13:59.142Z| vcpu-1| I125: AHCI-VMM: sata0:28: Exiting COMRESET state. 9:13:59.449Z| vcpu-0| I125: AHCI-USER: Already in check condition 02 3a 01 9:13:59.498Z| vmx| I125: CDROM sata0:0: CMD 0x5a (MODE SENSE(10)) FAILED (key 0x5 asc 0x20 ascq 0) 9:14:01.415Z| svga| I125: SVGA hiding SVGA 9:14:01.417Z| vcpu-1| I125: Guest: vmwgfx: In Tree-Unknown 9:14:01.417Z| vcpu-1| I125: Guest: vmwgfx: Module Version: 2.18.0 9:14:01.417Z| svga| I125: SVGA enabling SVGA 9:14:01.432Z| svga| I125: SVGA-ScreenMgr: Screen type changed to ScreenTarget 9:14:01.959Z| vcpu-0| I125: Tools: Running status rpc handler: 0 => 1. 9:14:01.959Z| vcpu-0| I125: Tools: Changing running status: 0 => 1. 9:14:01.959Z| vcpu-0| I125: Tools: Removing Tools inactivity timer. 9:14:02.413Z| vcpu-2| I125: VMXNET3 user: Ethernet0 Driver Info: version = 17104896 gosBits = 2 gosType = 1, gosVer = 0, gosMisc = 0 9:14:22.960Z| vcpu-0| I125: Tools: Tools heartbeat timeout. 9:14:22.960Z| vcpu-0| I125: Tools: Running status rpc handler: 1 => 0. 9:14:22.960Z| vcpu-0| I125: Tools: Changing running status: 1 => 0. 9:14:47.608Z| vcpu-3| I125: APIC THERMLVT write: 0x10000 9:14:47.608Z| vcpu-2| I125: APIC THERMLVT write: 0x10000 9:14:47.608Z| vcpu-1| I125: APIC THERMLVT write: 0x10000 **9:14:47.608Z| vcpu-0| I125: APIC THERMLVT write: 0x10000 9:14:47.608Z| vcpu-0| I125: Vix: [2898800 vmxCommands.c:7212]: VMAutomation_HandleCLIHLTEvent. Do nothing. 9:14:47.608Z| vcpu-0| I125: MsgHint: msg.monitorevent.halt 9:14:47.608Z| vcpu-0| I125+ The CPU has been disabled by the guest operating system. Power off or reset the virtual machine.** 9:14:47.608Z| vcpu-0| I125+ Did some searching on this error and applied some workarounds related to this error. But none of this solved the issue. Can anyone help on this. |
Eyes begin to strain on 4k@60hz on Linux compared to MacOs, what to do? Posted: 01 May 2021 08:02 AM PDT I am working on Macbook Pro (mid 2015) connected to dual Dell P2514Q (via DisplayPort 1.2). It gives wonderful 4k@60hz, I enjoy the picture. However recently I installed Linux on the same macbook (Linux Mint) and configured it to give me 4k@60hz. And here is the problem - it looks all good, scaling, texts, all looks good. It reports that the frequency is 60Hz, however my eyes notable get strained. I would suspect the cable or the Intel GPU, but since MacOS (Catalina) works just fine, then I must blame something about how Linux video system works. Is there anything I could tune about the frequency? Maybe in fact it report 60Hz but outputs 55 or something, I don't know. Pulling my hair off as I have no idea where to look for a solution. Please advice. p.s. Windows 10 connected to the same display seems to be as comfortable as MacOs. p.p.s Here is a video of my display: https://www.youtube.com/watch?v=OGGlH5lbISc - Left: MacOs Catalina
- Right: Linux Mint
p.p.p.s Added photos of screen - MacOs and Linux. Here contents of /var/log/Xorg.0.log . update: it can be related to the dithering effect (see https://ledstrain.org/d/785-eyestrain-when-switching-from-windows-to-linux/32) |
tar - List of extracted files Posted: 01 May 2021 09:04 AM PDT How can I extract files from a .tar.gz archive while keeping a trace of the extracted files? For example, let's say I have the following file structure... ROOT ╠═▶ children ║ ╠═▶ joe.txt ║ ╚═▶ george.txt ╠═▶ bar.txt ╠═▶ foo.txt ╚═▶ A̲R̲C̲H̲I̲V̲E̲.t̲a̲r̲.b̲z̲ ├─▷ children │ ├─▷ joe.txt │ └─▷ bob.txt ├─▷ hello.txt ├─▷ world.txt └─▷ foo.txt Now, if I extract the files from the archive while keeping the newer files in place I'd like to know which ones have been extracted so I can do something like this: tar xf ./ARCHIVE.tar.gz --keep-newer-files | xargs -I EXTRACTED_FILE echo EXTRACTED_FILE |
No user exists for uid 721001106 when running ssh command within SSH chroot directory Posted: 01 May 2021 09:09 AM PDT I am running debian 8 with SSSD authentication. The authentication works and ssh works fine. I have copied all libraries etc over to my SSH chrootdirectory and all my applications work except ssh which has the error: No user exists for uid 721001106 I have ran ltrace to ensure I got all the libraries and files. Next I tried symbolic links to the files where I could. Ltrace where trace=open open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libkrb5.so.3", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libk5crypto.so.3", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libcom_err.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libkrb5support.so.0", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libkeyutils.so.1", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 open("/proc/filesystems", O_RDONLY) = 3 open("/dev/null", O_RDWR) = 3 open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libnss_sss.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/var/lib/sss/mc/passwd", O_RDONLY|O_CLOEXEC) = 3 usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q cipher | cipher-auth | mac | kex | key] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] [user@]hostname [command] +++ exited with 255 +++ When I run id with the user, I get the same UID's etc but the name information is different. Without Chroot: uid=721001106(theusername@my.domain.tld) gid=721000513(domain users@my.domain.tld) groups=721000513(domain users@my.domain.tld),721001108(chrootgrp@my.domain.tld) Within Chroot: uid=721001106 gid=721000513 groups=721000513,721001108 My questions are, why is this happening and where is it trying to read from and failing. Oh, also, I did a mount --bind /proc /path/to/jail/proc Still no difference... Any ideas what to try next? Many Thanks, Luke |
Installing NVIDIA driver for Debian Stretch Posted: 01 May 2021 09:58 AM PDT I'm trying to install the nvidia-driver for Debian. I've read everywhere that the correct solution is to run sudo apt install nvidia-driver and the driver should install itself without problems. However this command leaves me with the output 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: nvidia-driver : Depends: nvidia-driver-libs (= 375.82-1~deb9u1) but it is not going to be installed Depends: nvidia-driver-bin (= 375.82-1~deb9u1) but it is not going to be installed Depends: xserver-xorg-video-nvidia (= 375.82-1~deb9u1) but it is not going to be installed Depends: nvidia-vdpau-driver (= 375.82-1~deb9u1) but it is not going to be installed Depends: nvidia-alternative (= 375.82-1~deb9u1) Depends: nvidia-kernel-dkms (= 375.82-1~deb9u1) or nvidia-kernel-375.82 Recommends: nvidia-settings (>= 375) but it is not going to be installed Recommends: nvidia-persistenced E: Unable to correct problems, you have held broken packages. I've tried installing the missing dependencies (like sudo apt install nvidia-driver-libs ) but this just results in 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: nvidia-driver-libs : Depends: libgl1-nvidia-glvnd-glx (= 375.82-1~deb9u1) but it is not going to be installed or libgl1-nvidia-glx (= 375.82-1~deb9u1) but it is not going to be installed Depends: nvidia-egl-icd (= 375.82-1~deb9u1) but it is not going to be installed or libegl1-nvidia (= 375.82-1~deb9u1) but it is not going to be installed Recommends: nvidia-driver-libs-i386 Recommends: libopengl0-glvnd-nvidia but it is not going to be installed Recommends: libglx-nvidia0 (= 375.82-1~deb9u1) but it is not going to be installed Recommends: libgles-nvidia1 (= 375.82-1~deb9u1) but it is not going to be installed Recommends: libgles-nvidia2 (= 375.82-1~deb9u1) but it is not going to be installed Recommends: libnvidia-cfg1 (= 375.82-1~deb9u1) but it is not going to be installed Recommends: nvidia-vulkan-icd (= 375.82-1~deb9u1) but it is not going to be installed How do I install the nvidia-driver with apt? |
External screen recognized, but black Posted: 01 May 2021 09:40 AM PDT I have a brand new computer (i5-7200U, so Kabylake with a Intel HD Grpahics 620) running Ubuntu 16.10. And I use an external HDMI screen. For some reasons, this one is detected (I see it in the Display parameters menu) but it stays black (with a signal because if not, the monitor would turn off). At work I have another HDMI screen, and I have no problems with this one. I also tried various cables, but the screen stays black. This screen is working, since I use it with other computers (Ubuntu 16.10, Hackintosh, Windows). I'm a bit lost about what can I do to solve this issue. Any ideas ? Here are some details of my configuration: ~ % sudo lshw -c display [sudo] Mot de passe de bigx : *-display description: VGA compatible controller produit: Intel Corporation fabriquant: Intel Corporation identifiant matériel: 2 information bus: pci@0000:00:02.0 version: 02 bits: 64 bits horloge: 33MHz fonctionnalités: pciexpress msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 ressources: irq:126 mémoire:ee000000-eeffffff mémoire:d0000000-dfffffff portE/S:f000(taille=64) mémoire:c0000-dffff So the driver is i915 (from https://01.org/linuxgraphics/ and up to date). ~ % modinfo i915 filename: /lib/modules/4.8.0-41-generic/kernel/drivers/gpu/drm/i915/i915.ko license: GPL and additional rights description: Intel Graphics author: Intel Corporation author: Tungsten Graphics, Inc. firmware: i915/bxt_dmc_ver1_07.bin firmware: i915/skl_dmc_ver1_26.bin firmware: i915/kbl_dmc_ver1_01.bin firmware: i915/skl_guc_ver6_1.bin ... other outputs: ~ % lspci -nnk | grep -i vga -A3 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:5916] (rev 02) Subsystem: ASUSTeK Computer Inc. Device [1043:15a0] Kernel driver in use: i915 Kernel modules: i915 and ~ % xrandr --props Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192 eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 293mm x 165mm EDID: 00ffffffffffff000dae721300000000 0e1a0104951d1178028785a457509b27 0d505400000001010101010101010101 010101010101b43b804a71383440503c 680025a510000018000000fe004e3133 334843452d454e310a20000000fe0043 4d4e0a202020202020202020000000fe 004e3133334843452d454e310a200024 scaling mode: Full aspect supported: None, Full, Center, Full aspect Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on 1920x1080 60.01*+ 59.93 1680x1050 59.95 59.88 1600x1024 60.17 1400x1050 59.98 1280x1024 60.02 1440x900 59.89 1280x960 60.00 1360x768 59.80 59.96 1152x864 60.00 1024x768 60.04 60.00 960x720 60.00 928x696 60.05 896x672 60.01 960x600 60.00 960x540 59.99 800x600 60.00 60.32 56.25 840x525 60.01 59.88 800x512 60.17 700x525 59.98 640x512 60.02 720x450 59.89 640x480 60.00 59.94 680x384 59.80 59.96 576x432 60.06 512x384 60.00 400x300 60.32 56.34 320x240 60.05 DP-1 disconnected (normal left inverted right x axis y axis) Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on HDMI-1 disconnected (normal left inverted right x axis y axis) aspect ratio: Automatic supported: Automatic, 4:3, 16:9 Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on HDMI-2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 477mm x 268mm EDID: 00ffffffffffff004c2d3f0b48385a5a 081a010380301b782a9561a55552a028 0f5054bfef80714f81c0810081809500 a9c0b3000101023a801871382d40582c 4500dd0c1100001e011d007251d01e20 6e285500dd0c1100001e000000fd0032 4b1e5111000a202020202020000000fc 00533232443330300a202020202001a5 020311b14690041f13120365030c0010 00011d00bc52d01e20b8285540dd0c11 00001e8c0ad090204031200c405500dd 0c110000188c0ad08a20e02d10103e96 00dd0c11000018000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000050 aspect ratio: Automatic supported: Automatic, 4:3, 16:9 Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on 1920x1080 60.00*+ 50.00 59.94 1680x1050 59.88 1600x900 60.00 1280x1024 75.02 60.02 1440x900 59.90 1280x800 59.91 1152x864 75.00 1280x720 60.00 50.00 59.94 1024x768 75.03 70.07 60.00 832x624 74.55 800x600 72.19 75.00 60.32 56.25 720x576 50.00 720x480 60.00 59.94 640x480 75.00 72.81 66.67 60.00 59.94 720x400 70.08 and ~ % sudo get-edid | parse-edid [sudo] Mot de passe de bigx : This is read-edid version 3.0.2. Prepare for some fun. Attempting to use i2c interface No EDID on bus 1 No EDID on bus 2 No EDID on bus 4 No EDID on bus 5 No EDID on bus 6 2 potential busses found: 0 3 Will scan through until the first EDID is found. Pass a bus number as an option to this program to go only for that one. 256-byte EDID successfully retrieved from i2c bus 0 If this isn't the EDID you were looking for, consider the other potential busses. Looks like i2c was successful. Have a good day. Checksum Correct Section "Monitor" Identifier "S22D300" ModelName "S22D300" VendorName "SAM" # Monitor Manufactured week 8 of 2016 # EDID version 1.3 # Digital Display DisplaySize 480 270 Gamma 2.20 Option "DPMS" "true" Horizsync 30-81 VertRefresh 50-75 # Maximum pixel clock is 170MHz #Not giving standard mode: 1152x864, 75Hz #Not giving standard mode: 1280x720, 60Hz #Not giving standard mode: 1280x800, 60Hz #Not giving standard mode: 1280x1024, 60Hz #Not giving standard mode: 1440x900, 60Hz #Not giving standard mode: 1600x900, 60Hz #Not giving standard mode: 1680x1050, 60Hz #Extension block found. Parsing... Modeline "Mode 8" 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync Modeline "Mode 0" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync Modeline "Mode 1" 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync Modeline "Mode 2" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync Modeline "Mode 3" 74.250 1280 1390 1420 1650 720 725 730 750 +hsync +vsync Modeline "Mode 4" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync Modeline "Mode 5" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync Modeline "Mode 6" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync Modeline "Mode 7" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync Modeline "Mode 9" 27.00 720 732 796 864 576 581 586 625 -hsync -vsync Modeline "Mode 10" 27.00 720 736 798 858 480 489 495 525 -hsync -vsync Option "PreferredMode" "Mode 8" EndSection What else could I give to help you find my problem ? |
Custom syntax highlighting misbehaving in gedit Posted: 01 May 2021 09:18 AM PDT For gedit, I'm creating a custom syntax highlighter for a markup-like language that I created to accomplish some natural language manipulation stuff, so I thought I'd get started with the simple keywords, seeing as I don't need to come up with regexes for them. I've defined the following in the XML: <language id="foo" _name="Foo" version="2.0" _section="Source"> <metadata> <property name="mimetypes">text/x-c;text/x-csrc;image/x-xpixmap</property> <property name="globs">*.foo</property> </metadata> <styles> <style id="operator" _name="Operator" map-to="def:keyword" /> <style id="member" _name="Member" map-to="def:type" /> </styles> <definitions> <context id="members" style-ref="member"> <keyword>ref</keyword> <keyword>alt</keyword> <keyword>pos</keyword> <keyword>num</keyword> </context> <context id="operators" style-ref="operator"> <keyword>#</keyword> <keyword>$</keyword> <keyword>@</keyword> <keyword>[</keyword> <keyword>]</keyword> <keyword>:</keyword> <keyword>=</keyword> <keyword>:?</keyword> <keyword>&</keyword> </context> <!--Main context--> <context id="opal" class="no-spell-check"> <include> <context ref="members" /> <context ref="operators" /> </include> </context> </definitions> </language> The syntax does highlight, but only on some odd conditions. Specifically, any keyword in the operators context must be both preceded by and followed by a non-keyword character, lest it will fail to highlight. Screencap Should I be using a regex for these or did I just botch the XML? Also, why do the members keywords highlight without issue? |
Unable to change default bitrate of wireless network interface Posted: 01 May 2021 07:04 AM PDT I am trying to change the bitrate of my wireless nic (AR9565 driver: ath9k_htc) for experimentation purposes. I am running Ubuntu 14.04 LTS and my card details are as follows: wlan0 IEEE 802.11abgn ESSID:"FACULTY-STAFF-N" Mode:Managed Frequency:5.24 GHz Access Point: C4:0A:CB:2D:75:5A Bit Rate=240 Mb/s Tx-Power=17 dBm Retry short limit:7 RTS thr:off Fragment thr:off Power Management:off Link Quality=38/70 Signal level=-72 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:2 Invalid misc:0 Missed beacon:0 To fix the bitrate (9Mbps in this case, but I checked multiple bit rates), I use these commands: sudo iw dev wlan0 set bitrates legacy-5 9 OR sudo iwconfig wlan0 rate 9M I check the maximum bit rate used by wlan0 by iw dev wlan0 link ; iwconfig wlan0 and I check the current bitrate used by interface through glances . However, none of these commands seem to have any effect on the bit rate. This is the information on running iw dev wlan0 link : Connected to c4:0a:cb:2d:75:55 (on wlan0) SSID: FACULTY-STAFF-N freq: 2462 RX: 420678 bytes (1949 packets) TX: 144065 bytes (850 packets) signal: -57 dBm tx bitrate: 130.0 MBit/s MCS 14 short GI bss flags: short-preamble short-slot-time dtim period: 1 beacon int: 102 The accepted answer to the related question asked here requires me to bring down the interface before I change the rates. However, doing so I encounter the following error: Error for wireless request "Set Bit Rate" (8B20) : SET failed on device wlan0 ; Network is down Also I tried iw list. This command does not return all available rates but returns the current rate. |
Cinnamon running without video hardware acceleration after moving HD to a new PC Posted: 01 May 2021 08:00 AM PDT I have just upgraded my PC. It was an old intel Q8400 with an nvidia graphics card. I changed the CPU (now an i3-6300) + Motherboard, and ditched the graphics card (want to use intel's graphics card that comes with the CPU). Now, however, I get the message that Cinnamon is running without video hardware acceleration, and everything on screen is "laggy". I also have a dual monitor setup and when I go to system settings -> display I only see one display named as "laptop". Display detection does not work, and they are mirrored. Logically it has to do with the drivers. Based on this thread I should look for a related xorg.conf file, but there seems to be none related (below are my xorg.conf file search results) /usr/share/X11/xorg.conf.d /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/10-quirks.conf /usr/share/X11/xorg.conf.d/11-evdev-quirks.conf /usr/share/X11/xorg.conf.d/11-evdev-trackpoint.conf /usr/share/X11/xorg.conf.d/50-synaptics.conf /usr/share/X11/xorg.conf.d/50-vmmouse.conf /usr/share/X11/xorg.conf.d/50-wacom.conf /usr/share/X11/xorg.conf.d/51-synaptics-quirks.conf /usr/share/man/man5/xorg.conf.5.gz /usr/share/man/man5/xorg.conf.d.5.gz Update System info based on Inxi (seems like intel drivers are actually being used) System: Host: HomePC Kernel: 3.16.0-38-generic x86_64 (64 bit) Desktop: Cinnamon 2.6.13 Distro: Linux Mint 17.2 Rafaela Machine: Mobo: ASUSTeK model: B150M-C version: Rev X.0x serial: 151055956202383 Bios: American Megatrends version: 0402 date: 09/25/2015 CPU: Dual core Intel Core i3-6300 CPU (-HT-MCP-) clocked at 760.00 MHz Graphics: Card: Intel Device 1912 X.org: 1.15.1 drivers: fbdev,intel (unloaded: vesa) tty size: 80x24 Advanced Data: N/A for root Network: Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169 Drives: HDD Total Size: 256.1GB (6.7% used) Info: Processes: 215 Uptime: 1 min Memory: 1472.4/15928.1MB Client: Shell (bash) inxi: 1.9.17 |
How to add a newline to the end of a file? Posted: 01 May 2021 10:16 AM PDT Using version control systems I get annoyed at the noise when the diff says No newline at end of file . So I was wondering: How to add a newline at the end of a file to get rid of those messages? |
No comments:
Post a Comment