What "nvme: missing or invalid SUBNQN field" means and how should I fix it? Posted: 20 Aug 2021 11:22 AM PDT I found this in my kernel logs: kernel: nvme nvme0: missing or invalid SUBNQN field. What does it mean and how should I fix it? lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 21.04 Release: 21.04 Codename: hirsute |
What "r8169 can't disable ASPM" means and how should I fix it? Posted: 20 Aug 2021 11:21 AM PDT I found this in my kernel logs: kernel: r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control What does it mean and how should I fix it? lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 21.04 Release: 21.04 Codename: hirsute |
What acpi PNP0C14:01: duplicate WMI GUID means and how should I fix it? Posted: 20 Aug 2021 11:18 AM PDT I found this in my logs: kernel: acpi PNP0C14:01: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00) kernel: acpi PNP0C14:02: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00) What does it mean and how should I fix it? lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 21.04 Release: 21.04 Codename: hirsute |
What EISA: Cannot allocate resource for mainboard means and how to solve it? Posted: 20 Aug 2021 11:15 AM PDT I found this in my kernel logs: platform eisa.0: EISA: Cannot allocate resource for mainboard Cannot allocate resource for EISA slot 1 Cannot allocate resource for EISA slot 2 Cannot allocate resource for EISA slot 3 Cannot allocate resource for EISA slot 4 Cannot allocate resource for EISA slot 5 Cannot allocate resource for EISA slot 6 Cannot allocate resource for EISA slot 7 Cannot allocate resource for EISA slot 8 What does it mean and how should I fix it? lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 21.04 Release: 21.04 Codename: hirsute |
What gpio gpiochip0 kernel error means and how to solve? Posted: 20 Aug 2021 11:09 AM PDT I found this in my logs: kernel: gpio gpiochip0: (gpio_aaeon): tried to insert a GPIO chip with zero lines kernel: gpiochip_add_data_with_key: GPIOs 0..-1 (gpio_aaeon) failed to register, -22 What does it mean and how should I solve it? lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 21.04 Release: 21.04 Codename: hirsute |
Android file copy gives errors with simple-mtpfs and rsync on Fedora Posted: 20 Aug 2021 11:06 AM PDT I am no longer able to reliably copy files off my Android phone using simple-mtpfs and rsync. I use simple-mtpfs -l to verify that the mtp device is available, and simple-mtpfs -device 1 to mount this device to my filesystem, then rsync to copy files from the mountpoint location. This procedure used to work. It broke sometime after I upgraded to Fedora 31. Now many, but not all files fail to copy. I get rsync errors on the failed copies such as: No data available (61) failed verification -- update discarded (will try again). and Numerical result out of range (34) Problem seems to not be in the phone, I can connect it to an old machine running Fedora 26 and use exactly the same procedure (simple-mtpfs, rsync) and copy the files with no errors. I am running Fedora 33 xfce spin with kernel 5.13.9-100.fc33.x86_64 on an HP Pavilion a6209n with an AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ CPU. Can someone please suggest a fix? If any additional information is required in order to diagnose this bug, please let me know what it is and where to find it. So far all I have been able to find is the previously listed errors that come to the console. Nothing additional related to simple-mtpfs, fuse, or libmtp anywhere that I have looked. |
Ad authentication failed for Linux Ubuntu Posted: 20 Aug 2021 11:02 AM PDT Post configuring sssd ad authentication on ubuntu 16.4 able to get output for getent command. But same user is not able to login to the host giving error. getent passwd user@domain Error on the logs file. PAM unable to dlopen(pam_krb5.so): /lib/security/pam_krb5.so: cannot open shared object file: No such file or directory PAM adding faulty module: pam_krb5.so pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.1x.xxx.xx user=user@domain Failed password for user@domain from 10.xx.xx.xx port 306 ssh2 Kinit output kinit kinit: Program lacks support for encryption type while getting initial credentials kinit user@domain Password for user@domain: kinit: KDC reply did not match expectations while getting initial credentials klist user@domain klist: Credentials cache file 'user@domain' not found Unable to diagnose the pam issue. previously it was working fine. Can someone help? Applied basic steps mentioned below installed packages joined realm restarted sssd service/deamon realm permit –all verified: realm list & getnet passwd user@domain upon conncetion getting error enter code here Changes made Post suggestion: Installed libpam-krb5 and tried getting below error pam_krb5(sshd:auth): authentication failure; logname=user@domain uid=0 euid=0 tty=ssh ruser= rhost=10.xx.xx.xxx pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.xx.xx.xxx user=user@domain pam_sss(sshd:auth): authentication success; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.xx.xx.xxx user=user@domain pam_sss(sshd:account): Access denied for user user@domain: 4 (System error) Failed password for user@domain from 10.xx.xx.xx port 510 ssh2 fatal: Access denied for user user@domain by PAM account configuration [preauth] |
View command in ubuntu [duplicate] Posted: 20 Aug 2021 10:49 AM PDT According to manpage of vim , view is similar to vim -R on ubuntu. But, when I did ls -l /bin/view I found out that view is a symlink to /etc/alternatives/view which in turn points to /usr/bin/vim.basic . Coincidentally on my system, /bin/vim -> /etc/alternatives/vim -> /usr/bin/vim.basic . So both vim and view points to the same binary. Hence when we open any file with view there must be an intermediary which invokes the vim editor in read-only mode which I am not able to figure out where it is. Please help. My system, OS - Ubuntu 20.04 LTS kernel - 5.8.0-63-generic . |
How to make sequence string pattern in Linux tools? Posted: 20 Aug 2021 10:28 AM PDT I have below format string and value has been associated dynamically from SQL database. So I need to parse proper format using any Linux tools. TYPE1 HELLO_NAME1 THIS IS THE DESCRIPTION1 ............. LONE2 THIS_IS_DONE2 THERE WAS SOMETHING2 Here I want to segregate TYPE1 and LONE2 is TYPE, THIS_IS_NAME1 and THIS_IS_DONE2 is NAME, same for the next one. The keywords is different not same any words could be, but the format is same for all. Any help would be appreciated. |
Lot of virtual network interfaces. What to do Posted: 20 Aug 2021 09:37 AM PDT My ip addr output looks like this. ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 62:7d:94:c7:52:0b brd ff:ff:ff:ff:ff:ff 3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether aa:20:18:64:a4:89 brd ff:ff:ff:ff:ff:ff 4: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000 link/ipip 0.0.0.0 brd 0.0.0.0 5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000 link/sit 0.0.0.0 brd 0.0.0.0 6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 00:15:5d:f7:c6:4d brd ff:ff:ff:ff:ff:ff inet 172.25.42.162/20 brd 172.25.47.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::215:5dff:fef7:c64d/64 scope link valid_lft forever preferred_lft forever What are all these. I know what lo and eth0 are. But what are others and what should I do about them? This is a wsl instance. |
Quiet microphone when using via USB audio-interface Posted: 20 Aug 2021 09:23 AM PDT I use a Focusrite Scarlett 6i6 USB and can't get my microphone volume high enough. I tried using alsamixer , but when selecting the Scarlett and selecting the capture device I only get "This sound device does not have any capture controls." I'm a little bit confused, I also can select PulseAudio as sound card, when changing my output volume there it changes the volume on the Scarlett. When selecting "Capture" there, everything is already on max. I boosted it to the maximum in discord, but my friends hardly hear me. When using Windows, everything is fine. System Information - Fedora 34 (but same issue with Ubuntu)
- ...
|
Mac M1 QEMU Webcam and Microphone Passthrough Posted: 20 Aug 2021 09:08 AM PDT I'm trying to get an Arch Linux ARM VM working on my M1 Mac with QEMU (I used a special fork with support for vmnet , GPU and hvf ). I got everything up and running, but I couldn't get my camera and microphone working in the VM. Running lsusb gave nothing of import and neither does grepping dmesg . |
Why does caps lock cause my Apple M1 to stutter? Posted: 20 Aug 2021 09:01 AM PDT This question is more for fun since it isn't hurting me. I ought to file a bug instead of posting here, but I only have time to blow to do one or the other, and re-locating all the info to file a bug properly with Apple would be exhausting and probably not result in anything anyway. Fairly heavily loaded M1 mac pro (think hundreds of chrome tabs). Activity monitor says it is 80% idle. I was playing a youtube video on chrome (probably not the native version), and noticed that hitting the caps lock key would cause the music to stutter. Opening up activity monitor and hitting the caps lock key repeatedly causes idle percent to drop to 40% and plenty of stuttering. What gives? If I didn't see it myself, I would not believe it, as I don't recall ever having seen a working system behave like this. |
Need to find the difference between two table sizes in postgres using shell script Posted: 20 Aug 2021 11:14 AM PDT I have one table named 'Table_size_details' in my database which stores the size of the tables in my Postgres database, every Friday. Date Table_Name Table_size Growth_Difference Growth_Percentage ---- ----------- ---------- ----------------- ----------------- 20-08-2021 Demo 1.2 GB 13-08-2021 Demo 578 MB I have got a task to add two more columns named 'Growth_Difference' and 'Growth_Percentage'. In 'Growth_Difference' column I need to find the difference between current table size(1.3 GB) and previous week table size(578 MB) and display it in MB format. Also I need to find the growth percentage of both- the current table size and previous week's table size. I have asked to develop using SHELL SCRIPT. Table_size_old=`psql -d abc -At -c "SELECT Table_size_details from abc order by Date desc limit 1;"` Table_size_new=`psql -At -c "SELECT pg_size_pretty(pg_total_relation_size('Table_size_details'));` growth_table=`expr $Table_size_new - $Table_size_old;` Above logic I have used to find the difference between new and old table size but I'm getting expr: syntax error on growth_table variable line. I believe its because I trying to find the difference between 1.2 GB and 578 MB. I'm new to shell scripting, could anyone help me to find a solution? Appreciate your help in advance. |
SELinux is preventing /usr/sbin/rsyslogd from write access on the directory / Posted: 20 Aug 2021 08:52 AM PDT My goal is to create rsyslog config file that could log every Failed attempt to sshd.service in a different file on Centos Stream machine. So I recently added a config file in /etc/rsyslog.d/ called ssh_spam.conf. Contents of this configuration file is as follows: if $msg contains "Failed password for" then action(type="omfile" file="/var/log/ssh_spam.log") After using this configuration and restarting rsyslog.service I noticed a lot of SELinux errors in journalctl that look like this: Aug 20 17:54:32 cos0.localdomain setroubleshoot[1432261]: SELinux is preventing /usr/sbin/rsyslogd from write access on the directory /. For complete SELinux messages run: sealert -l ee49959c-8894-46e0-baa7-544c4341d219 Judging by ssh_spam.log file is seems to work correctly, I understand what SELinux is doing, but I don't understand why rsyslogd is trying to write in / directory. |
What does 'Reached target Sockets' mean and what are possible fixes? Posted: 20 Aug 2021 08:43 AM PDT I have golang web application which runs by systemd daemon in a Debian Server. I've noticed that sometimes myapp stops while I see a message like this in syslog : Aug 20 07:34:20 myapp systemd[29414]: Listening on GnuPG cryptographic agent and passphrase cache. Aug 20 07:34:20 myapp systemd[29414]: Listening on GnuPG cryptographic agent and passphrase cache (restricted). Aug 20 07:34:20 myapp systemd[29414]: Listening on GnuPG cryptographic agent (ssh-agent emulation). Aug 20 07:34:20 myapp systemd[29414]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers). Aug 20 07:34:20 myapp systemd[29414]: Reached target Paths. Aug 20 07:34:20 myapp systemd[29414]: Reached target Timers. Aug 20 07:34:20 myapp systemd[29414]: Listening on GnuPG network certificate management daemon. Aug 20 07:34:20 myapp systemd[29414]: Reached target Sockets. Aug 20 07:34:20 myapp systemd[29414]: Reached target Basic System. Aug 20 07:34:20 myapp systemd[29414]: Reached target Default. It goes back to life when I restart the systemd daemon. I'm wondering what does it mean and how can I fix it? |
Command working in interactive shell but not in script [duplicate] Posted: 20 Aug 2021 09:00 AM PDT - Platform: RHEL7
- Shell: Bash
- Expected Result: store value as a variable
I'm trying to capture an IP from text that looks like this: { "ip": "12.34.56.7", "type": "LEARNED" } When I run the following command from the terminal, I get the IP as expected. grep '"ip":' ../path/to/file.txt | awk '{ print $2 }' | tr -d '"' | tr -d ',' Below is what I have in the script: IP=grep '"ip":' ../path/to/file.txt | awk '{ print $2 }' | tr -d '"' | tr -d ',' I've tried a few different things, such as putting everything after IP= in quotes or escaping the quotes around the grep ip text with \\ but no dice. I'm just not sure of the right method of going about this. The script either breaks apart my command if it doesn't have quotes, or for some reason it drops the $2 from awk. Thanks for any info. |
Connect to a database running in a docker container via a local mysql client i.e. workbench Posted: 20 Aug 2021 08:30 AM PDT I have a mysql database running in a docker container docker ps 6496a209cb30 mysql:5.7.22 "docker-entrypoint.s…" 34 minutes ago Up 34 minutes 0.0.0.0:3317->3306/tcp, :::3317->3306/tcp db I'm able to login to this container via a shell and run queries fine docker exec -it db bash Why am I unable to connect to the same container via a mysql client on my local machine (using mysql workbench)? Here's my docker-compose.yml config; #MySQL Service db: image: mysql:5.7.22 container_name: db restart: unless-stopped tty: true ports: - "3317:3306" environment: MYSQL_DATABASE: laravel MYSQL_ROOT_PASSWORD: password SERVICE_TAGS: dev SERVICE_NAME: mysql volumes: - dbdata:/var/lib/mysql/ - ./mysql/my.cnf:/etc/mysql/my.cnf networks: - app-network For the Hostname field - I've tried 127.0.0.1 & db ;- the name of the running container with no success? |
in bash, how to quickly replace a number in a file? Posted: 20 Aug 2021 08:56 AM PDT my terraform tf file, one line has: green_nodes_asg_instance_count = 0 I want to replace it with $blue_nodes_asg_instance_count = 3 , the result should be: green_nodes_asg_instance_count = 3 I tried this but does not work: sed -i 's/\(.*\)green_nodes_asg_instance_count\(.*\)=\(.*\)0/\1green_nodes_asg_instance_count\2=\3\$blue_nodes_asg_instance_count/g' test.tf |
cannot remove directory error Posted: 20 Aug 2021 08:41 AM PDT #!/bin/bash touch student.txt a=0 while [ $a -lt 15 ] do echo "enter name" read name echo $name >> student.txt a=`expr $a + 1` done while read line do mkdir $line cd $line echo '#!/bin/bash' >> $line.sh echo "echo '$line'" >> $line.sh chmod u+x $line.sh ./$line.sh cd .. done <student.txt ls a=0 while [ $a -lt 15 ] do while read line do rm -r $line done <student.txt a=`expr $a + 1` done this script creates a file student.txt then takes the input of student names from the user and creates a file and directory of the same name. ls shows that they have been created but when deleting the directory it gives the error cannot remove 'directoryname':no such file or directory ls shows that they have been deleted why is the error showing up? |
Grep only the 3 characters next to open bracket Posted: 20 Aug 2021 08:58 AM PDT I have text like this ,i want to grep only the 3 characters next to open bracket. Please help. condition: s(XXX_ygh_ghj_jui,00.05) | s(DFG_GHH_CN_GJ_YUI_UYT_UIJ,00.05) condition: s(GYZ_ygh_ghj_jui,00.05) | s(TYU_GHH_CN_GJ_YUI_UYT_UIJ,00.05) condition: s(UFG_ygh_ghj_jui,00.05) | s(QWE_GHH_CN_GJ_YUI_UYT_UIJ,00.05) condition: s(JTH_ygh_ghj_jui,00.05) | s(YUT_GHH_CN_GJ_YUI_UYT_UIJ,00.05) My desired o/p is XXX DFG GYZ TYU UFG QWE JTH YUT |
how to jq nested array without key (only value) and convert to csv Posted: 20 Aug 2021 09:00 AM PDT I hope someone can guide me how do I convert below json to csv that I'm expecting for. Much appreciated in advance. Update: thanks for the solutions provided, but I found that sometimes array does not exist when the 2nd column has only 1 record, example below is "ASite" has only 1 record "unixhost1123" paired to it. source json [ { "results": [ [ "sm-clust001", [ "163slesm02", "163slesm01" ] ], [ "sm-cssl112", [ "ucsbnchac240", "ucsbnchac209", "ucsbnchac241", "ucsbnchac242" ] ], [ "ASite", "unixhost1123" ] ] } ] Expecting csv "sm-clust001","163slesm02" "sm-clust001","163slesm01" "sm-cssl112","ucsbnchac240" "sm-cssl112","ucsbnchac209" "sm-cssl112","ucsbnchac241" "sm-cssl112","ucsbnchac242" "ASite","unixhost1123" |
can't get service to run on Rock64 SBC Posted: 20 Aug 2021 09:12 AM PDT I have a python script that displays the current IP address and time to a LCD screen attached to my device (Rock64 SBC). The python script runs fine on it's own. from subprocess import check_output from time import sleep from datetime import datetime from RPLCD.i2c import CharLCD lcd = CharLCD('PCF8574', 0x27, auto_linebreaks=False) lcd.clear() def get_ip(): cmd = "hostname -I | cut -d\' \' -f1" return check_output(cmd, shell=True).decode("utf-8").strip() while True: lcd_line_1 = datetime.now().strftime('%b %d %H:%M:%S') lcd_line_2 = "IP " + get_ip() lcd.home() lcd.write_string(f'{lcd_line_1}\r\n{lcd_line_2}') sleep(10) Then the service code for lcd.service is this: [Unit] Description=LCD IP Display After=multi-user.target [Service] Type=simple ExecStart=/bin/sh -c "python3 /home/rock64/pi/lcd_ip.py" WorkingDirectory=/home/rock64/pi Restart=always User=rock64 [Install] WantedBy=multi-user.target systemctl status lcd.service displays: rock64@rock64:/etc/systemd/system$ systemctl status lcd.service ● lcd.service - LCD IP Display Loaded: loaded (/etc/systemd/system/lcd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2021-08-19 15:10:11 CDT; 11s ago Process: 5029 ExecStart=/bin/sh -c python3 /home/rock64/pi/lcd_ip.py (code=exited, status=1/FAILURE) Main PID: 5029 (code=exited, status=1/FAILURE) Aug 19 15:10:11 rock64 systemd[1]: lcd.service: Service hold-off time over, scheduling restart. Aug 19 15:10:11 rock64 systemd[1]: lcd.service: Scheduled restart job, restart counter is at 15. Aug 19 15:10:11 rock64 systemd[1]: Stopped LCD IP Display. Aug 19 15:10:11 rock64 systemd[1]: lcd.service: Start request repeated too quickly. Aug 19 15:10:11 rock64 systemd[1]: lcd.service: Failed with result 'exit-code'. Aug 19 15:10:11 rock64 systemd[1]: Failed to start LCD IP Display. rock64@rock64:/etc/systemd/system$ journalctl _PID=5029 -- Logs begin at Sun 2018-01-28 09:58:18 CST, end at Thu 2021-10-14 12:18:00 CDT. -- Aug 19 15:10:10 rock64 sh[5029]: Traceback (most recent call last): Aug 19 15:10:10 rock64 sh[5029]: File "/home/rock64/pi/lcd_ip.py", line 5, in <module> Aug 19 15:10:10 rock64 sh[5029]: lcd = CharLCD('PCF8574', 0x27, auto_linebreaks=False) Aug 19 15:10:10 rock64 sh[5029]: File "/home/rock64/.local/lib/python3.6/site-packages/RPLCD/i2c.py", line 168, in __i Aug 19 15:10:10 rock64 sh[5029]: auto_linebreaks=auto_linebreaks) Aug 19 15:10:10 rock64 sh[5029]: File "/home/rock64/.local/lib/python3.6/site-packages/RPLCD/lcd.py", line 98, in __in Aug 19 15:10:10 rock64 sh[5029]: self._init_connection() Aug 19 15:10:10 rock64 sh[5029]: File "/home/rock64/.local/lib/python3.6/site-packages/RPLCD/i2c.py", line 173, in _in Aug 19 15:10:10 rock64 sh[5029]: self.bus = SMBus(self._port) Aug 19 15:10:10 rock64 sh[5029]: PermissionError: [Errno 13] Permission denied I have chmod +x the main python file and the files i2c.py and lcd.py. ls -ls shows rock64@rock64:~/pi$ ls -la lcd_ip.py -rwxr-xr-x 1 rock64 sudo 500 Aug 13 17:08 lcd_ip.py lastly, I have added the following lines to visudo rock64 ALL=(ALL) NOPASSWD: /etc/systemd/system/lcd.service rock64 ALL=(ALL) NOPASSWD: /home/rock64/pi/lcd_ip.py rock64 ALL=(ALL) NOPASSWD: /home/rock64/.local/lib/python3.6/site-packages/RPLCD/ic2.py rock64 ALL=(ALL) NOPASSWD: /home/rock64/.local/lib/python3.6/site-packages/RPLCD/lcd.py and I still get "error 13 permission denied". Any suggestions? |
is there a distribution that makes running and logging in as root workable out of the box? Posted: 20 Aug 2021 09:27 AM PDT all I ever use linux for is things that require root, e.g., modifying partitions on usb drives. I'd like to just log in as root and run X11 without being hassled about it every time I turn around. Is there a linux distribution that works that way? I don't want to use a gparted live cd as I do other hardware hacking as well, so a genuine installable OS would be preferred. in older versions of ubuntu it wasn't hard to enable the root user but seems to be impossible (I just tried in a recent version of ubuntu mate). before everybody leaps over themselves to save me: I just want to know how to do what I've asked, not the 1000s of reason why it's the worst idea in the world. Thank you for your understanding. |
ssh backspace not working until I manually run TERM=xterm Posted: 20 Aug 2021 09:04 AM PDT I understand that backspace might now work in an ssh session if TERM is set incorrectly. But strangely, I have a server where TERM is set correctly, but backspace does not work until I manually set TERM=xterm in the shell (which should be redundant). See here: ~ ] ssh root@192.168.10.40 root 192.168.10.40 / # echo $0 -bash root 192.168.10.40 / # echo $TERM xterm-256color root 192.168.10.40 / # # backspace does not work :( root 192.168.10.40 / # root 192.168.10.40 / # TERM=xterm-256color root 192.168.10.40 / # # now backspace works!! root 192.168.10.40 / # logout I would say about 90% of the time, backspace does not work until I run TERM=xterm , and 10% of the time, I don't need to run the TERM= command because backspace is already working. I've compared the output of env for each case, and they are identical (aside from SSH_CLIENT and SSH_CONNECTION where only the client side port has changed) Any idea what may cause this behavior, or what a workaround might be? Response to comments I am using OpenSSH_6.8p1, BoringSSL from https://android.googlesource.com/platform/external/openssh , and I am running GNU bash, version 4.3.42(1)-release (arm-android-eabi) from https://github.com/CyanogenMod/android_external_bash.git stty -a shows no different before and after setting XTERM . Output is: speed 38400 baud; rows 102; columns 319; line = 2; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany imaxbel -iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke bind -p|egrep 'delete|rubout|kill' also shows no different before and after setting XTERM . Output is: "\C-h": backward-delete-char "\C-?": backward-delete-char "\C-x\C-?": backward-kill-line "\e\C-h": backward-kill-word "\e\C-?": backward-kill-word # copy-region-as-kill (not bound) "\C-d": delete-char "\e[3~": delete-char # delete-char-or-list (not bound) "\e\\": delete-horizontal-space # forward-backward-delete-char (not bound) "\C-k": kill-line # kill-region (not bound) # kill-whole-line (not bound) "\ed": kill-word # shell-backward-kill-word (not bound) # shell-kill-word (not bound) # unix-filename-rubout (not bound) "\C-w": unix-word-rubout # vi-delete (not bound) # vi-delete-to (not bound) # vi-overstrike-delete (not bound) # vi-rubout (not bound) Interestingly, if I source my bashrc , my backspace starts working again. I know the bashrc is being sourced on login though because that is the only place where I set my Ps1 value |
How can I make a scrolling matrix terminal background? Posted: 20 Aug 2021 11:04 AM PDT There are many scripts/programs that will turn your terminal into a matrix style screensaver, however I want to use it as a terminal wallpaper and still be able to use my terminal. I haven't been able to find anything online concerning any sort of animated terminal background. Would it be especially difficult to write something that can handle this? |
How to Setup Triple Monitors with Kali Linux? Posted: 20 Aug 2021 10:58 AM PDT I installed Kali Linux 2 on my laptop and need to configure a triple monitor setup with it. At the moment, I have a Belkin Dual DVI docking station and a Startech DVI to USB 3 converter. On Windows 7, I had two of my monitors use DVI to connect to the Docking station and the third monitor used a USB 3 port on the Docking station. Here is a picture of my setup on Windows 7 which worked perfectly okay: An here is a picture of my Docking station: Here is a link if you want to know more about the Belkin docking station: https://www.amazon.co.uk/Belkin-B2B122-BLK-Display-Docking-Ultrabooks/dp/B00JG0ZG8Q Now, when I launch Kali 2 and connect my Belkin Docking station, one of my screens turn green but the other 2 remain off: Running lsusb before connecting the docking station looks like this: root@kali:~# lsusb Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 064e:9301 Suyin Corp. Bus 001 Device 002: ID 0781:5567 SanDisk Corp. Cruzer Blade Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Running lsusb while the docking station is connected shows the following: root@kali:~# lsusb Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 064e:9301 Suyin Corp. Bus 001 Device 002: ID 0781:5567 SanDisk Corp. Cruzer Blade Bus 001 Device 017: ID 17e9:4333 DisplayLink Bus 001 Device 016: ID 17e9:028f DisplayLink Bus 001 Device 015: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory Bus 001 Device 014: ID 1bcf:0053 Sunplus Innovation Technology Inc. Bus 001 Device 011: ID 2109:2812 VIA Labs, Inc. VL812 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Here is my video card information: root@kali:~# lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) Here is the result of xrandr command: root@kali:~# xrandr Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767 LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 345mm x 194mm 1366x768 59.99*+ 40.00 1360x768 59.80 59.96 1024x768 60.00 800x600 60.32 56.25 640x480 59.94 DP1 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) VGA1 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) After some testing I found that my mouse and keyboard are recognized through the Docking Station, however, for some reason the DVI's are not. looking at the result of lsusb I noticed that DisplayLink maybe the manufacturer and driver so I did some googling and found that they support Ubuntu but not Debian. Digging a bit deeper, found a script on Github that said it will install DisplayLink drivers for Debian so I used it, however, it said my platform is not supported! root@kali:~/Downloads# ./displaylink-deb.sh DisplayLink driver for Debian GNU/Linux [I]nstall [U]ninstall Select a key: [i/u]: i Checking dependencies... unzip is installed linux-headers-4.3.0-kali1-amd64 is installed dkms is installed lsb-release is installed ------------------------------------------------------ Unsuported platform: Kali kali-rolling This tool is Open Source and feel free to extend it GitHub repo: https://goo.gl/6soXDE ------------------------------------------------------ root@kali:~/Downloads# It may also be worth mentioning that when I open Kali from VMWare Workstation on Windows 7 I'm able to use all 3 monitors: Any advice is really appreciated. |
Get Wi-Fi interface device names Posted: 20 Aug 2021 11:17 AM PDT |
HTTP 403 forbidden error when setting up virtual host for the first time in El Capitan 10.11 Posted: 20 Aug 2021 10:01 AM PDT I am setting up a site on my Mac OS El Capitan 10.11.4 (15E65) host machine for the first time, however I get a HTTP 403 forbidden error when accessing crmpicco.dev. Forbidden You don't have permission to access / on this server. /etc/apache2/extra/httpd-vhosts.conf: <VirtualHost *:80> DocumentRoot "/Users/crmpicco/Sites/crmpicco.co.uk/" ServerName crmpicco.dev </VirtualHost> /etc/hosts: 127.0.0.1 crmpicco.dev This is my directory listing: PiccosMacBook:Sites crmpicco$ pwd /Users/crmpicco/Sites PiccosMacBook:Sites crmpicco$ ls -l total 71488 drwxr-xr-x 12 crmpicco staff 408 18 May 19:06 crmpicco.co.uk I tried changing the user that Apache is running, but that hasn't solved the issue. <IfModule unixd_module> # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. # #User _www #Group _www User crmpicco Group staff </IfModule> Am I missing something obvious? I have also tried this suggestion (Apache localhost 403 error with Yosemite) |
Audio 'pops' in when starting and stopping Posted: 20 Aug 2021 11:21 AM PDT Whenever audio starts playing, or stops playing, a 'popping' sound can be heard from my headphones. I am running Elementary OS 0.3.2 Freya, and the issue only happens when I am using headphones. The 'popping' also happens when I plug my headphones in and when wifi has connected or disconnected. |
No comments:
Post a Comment