Recent Questions - Unix & Linux Stack Exchange |
- i tried to install golang in kali linux and itz showing the following error
- "-bash: ./a.out: No such file or directory" but file exists (arm-linux compiler)
- One-liner for SFTP download
- How to retrieve items from an array of arrays?
- Can't kill stopped jobs with bash script
- Listing VirtIO devices from a shell in a linux guest
- Can't kill wget process with `kill -9`
- Can grub recognize a "degraded" raid1 mdadm partition?
- Copy all non-text files
- Messed up qt5 installation
- Why does `grep -L x <<<x >/dev/null` return 0 despite that `grep -L x <<<x` returns 1?
- cmp-command for three files
- As a root user, I do not have permission to create/write any file in any directory
- How to append a Linux command line to file?
- Are there any caveats in using shopt -s autocd?
- HP-UX 11.11 - Incoming connection problem
- Cannot boot (any more) from MBR SSD drive even if legacy BIOS is enabled
- how to add a icon in dmenu file launcher
- Error output from ls -A results in error output, why?
- DFS-Link failing when mounting DFS share via cifs
- radeon failed vce resume after upgrade to newest Linux kernel
- Scheduled folder backup
- How to run jhbuild as root
- can't generate key via dnssec-keygen
- LFTP exclude file extensions
- Linux Desktop Access via Web Browser
- Looking to grep or egrep year ranges from 1965-1996
- Pipe find into grep -v
- What is yum equivalent of 'apt-get update'?
- What if 'kill -9' does not work?
i tried to install golang in kali linux and itz showing the following error Posted: 26 Apr 2021 09:59 AM PDT click the link to see the screenshot once go-lang is installed if I type |
"-bash: ./a.out: No such file or directory" but file exists (arm-linux compiler) Posted: 26 Apr 2021 09:58 AM PDT I'm comiling with an ARM gcc compiler on an evaluation board. What follow are some flags of my Makefile Actually, in the authors' original implementation, On the web I found some solutions but i) they're quite old questions and ii) they require me to add the But I run into some issue when executing and, consequently, when I launch So I just searched for the "failed to fetch 404" error online and I found various answers, but basically, the suggestions are all simile if not identical to this but here the problem is that I don't have URL such as "http://us.archive.ubuntu.com/ubuntu/" as in my I hope I've been clear enough, because I'm getting crazy.. |
Posted: 26 Apr 2021 09:56 AM PDT I have a laptop and a raspberry pi acting as a storage server. I'd like to know how to download a file without any user interaction other than running the program. I read through the man page, and there doesn't seem to be a way to specify a password with a flag and a download location. Any suggestions? |
How to retrieve items from an array of arrays? Posted: 26 Apr 2021 09:48 AM PDT Hello StackExchange pros! I am working on a zsh project for macOS. I used typeset to create three associative arrays to hold values, and a fourth array to reference the individual arrays. Is it possible to iterate over the arrCollection to retrieve the key/value pairs from each of the member arrays? Note that the keys in the arrays below are not the same as my production script--they are simply key indices rather than the more descriptive keys you might find in an associative array. I thought I could use parameter expansion like this: I don't have it quite right though. Can anyone help? Expected output will be a list of all items from all three arrays separated by a newline. Full script sample below. Usage: arrTest.sh showAll |
Can't kill stopped jobs with bash script Posted: 26 Apr 2021 09:23 AM PDT |
Listing VirtIO devices from a shell in a linux guest Posted: 26 Apr 2021 08:47 AM PDT As the title already summarizes, is there a way (a tool or a simple command) to list available (thus recognized by a linux guest) VirtIO devices ? |
Can't kill wget process with `kill -9` Posted: 26 Apr 2021 09:06 AM PDT I have a Trying to kill it doesn't produce any output and when I run How do I figure out which software/hardware fault caused this issue? |
Can grub recognize a "degraded" raid1 mdadm partition? Posted: 26 Apr 2021 08:38 AM PDT Grub can boot(I have tried) from a zfs "degraded" raid1, is simple: create two zfs pools, one is boot, one is root, each one is raid1...and grub load Linux, with two disk, or with only one active, one or two. I want to try a similar thing with btrfs root raid1 + mdadm raid1 on ext4 for boot. As I known the latest grub on Slackware current can recognize md raid on boot(metadata 0.90). I configure my system on this way this is the fstab this is the /etc/default/grub finally the mkinitrd.conf I update initrd and grub i reboot and work: It ask me two password for two encrypted luks devices and go directly on login. I tried to boot from the second disk and... As you can see the second efi partition is recognize, but not the md raid1 degraded partition, if I attach the first disk works fine. Of course I had installed grub on boot disks Any solution? |
Posted: 26 Apr 2021 09:10 AM PDT I need to move all files not ending with the .txt, .cpp, and .h extensions in one folder to a seperate folder via the cp command. Is there a built in way to do this or do I need to make a script? |
Posted: 26 Apr 2021 08:14 AM PDT I had everything running as it should before, but the other day I installed qt6 and qtcreator to do a project, and now it seems I messed up qt somehow. After a restart, no qt gui apps would open. Specifically qjackctl wont open with a message: VLC, and any other qt interface won't work either. I tried deleting everything: Both qt5, qt6, qtcreator and qjackctl, and let it install it's own dependencies by itself, but still it won't run with the same error. It's obviously missing something, or it's a .so version mismatch. Does anyone know how to fix this? |
Why does `grep -L x <<<x >/dev/null` return 0 despite that `grep -L x <<<x` returns 1? Posted: 26 Apr 2021 08:05 AM PDT I have GNU grep 3.3-1 (the current version in Debian Buster). From
This is consistent with POSIX. ( Full documentation of the latest release and documentation in the latest commit don't have more details about
Since GNU grep is so widely-used, I'm not sure that this is a bug in (By the way, tests in the latest commit don't seem to test |
Posted: 26 Apr 2021 08:13 AM PDT I'd like to compare three text files using the cmp-command in bash and perform an action, if file1 differs from file2, but file1 and file3 are exactly the same. As according to the help-file, cmp outputs a 0 if the files are the same and a 1 if they differ, I tried: However, the partial condition |
As a root user, I do not have permission to create/write any file in any directory Posted: 26 Apr 2021 07:56 AM PDT As a root user, I cannot create/edit any file in any directory all of a sudden with the following error. Everything was working fine. The last thing I did was to create a conf file on the /etc/rsyslog.d directory and remove it afterward since it was a useless one. Can it be related to that? How can I solve this? |
How to append a Linux command line to file? Posted: 26 Apr 2021 08:34 AM PDT I am writing a bash script which will generate a Vagrantfile. The reason that i use a bash script to generate Vagrantfile is to enable my colleague to use a single script in setting up their environments before running For example ( When i execute the above script, Not native english speaker, forget my poor grammar, thanks |
Are there any caveats in using shopt -s autocd? Posted: 26 Apr 2021 09:17 AM PDT I have recently discovered the feature At first glance it seems helpful but I am not an expert Bash user and I wonder if it may be a mistake to use it. Are there any potential dangers to setting |
HP-UX 11.11 - Incoming connection problem Posted: 26 Apr 2021 07:37 AM PDT I have machine with fresh installed HP-UX 11.11. All seem to work well, but there is one problem - while I have no problem to ping my Ubuntu 20.04 machine, access internet etc from HP-UX machine, I cannot ping HP-UX machine itself, therefore I cannot ssh, ftp and other things. Could anyone suggest me what could I do in order to make my HP-UX machine available in the network? (I have googled and found some info about ipfilter but I cannot find any signs of ipfilter in /etc/rc.config.d) ***HP-UX ip address is 10.0.2.15 - can ping Linux machine on 192.168.0.102 Linux ip address is 192.168.0.102 - cannot ping HP-UX machine on 10.0.2.15*** lanscan gives lan0 interface only, IP address is 10.0.2.15 I am pinging my Linux machine (192.168.0.102) from the HP-UX machine ping 192.168.0.102 gives the following: 64 bytes from 192.168.0.102, icmp_sq=0, time=8, ms ping community.hpe.com gives the following: 64 bytes from 99.86.161.54, icmp_sq=0, time=45, ms Cannot ping from my Linux (192.168.0.102) machine ping 10.0.2.15 gives the following: From 10.244.232.2 icmp_seq=1 Time to live exceeded From 10.244.232.2 icmp_seq=2 Time to live exceeded From 10.244.232.2 icmp_seq=3 Time to live exceeded From 10.244.232.2 icmp_seq=4 Time to live exceeded ssh dragon@10.0.2.15 gives the following ssh: connect to host 10.0.2.15 port 22: No route to host (sshd is up and running on the HP-UX machine, ps -ef | grep sshd shows that) |
Cannot boot (any more) from MBR SSD drive even if legacy BIOS is enabled Posted: 26 Apr 2021 08:40 AM PDT The situation is simple to describe in fact:
Could it be a problem that the SSD now has more OS-es (4) than when the setting "legacy support enabled and Secure Boot disabled" worked (2)? I am even ready to change the partition table to GPT if I was sure it would fix it. But the fact that an old MBR HDD drive boots fine should indicate that I don't need to. What I mainly want would be to go back to the situation where that setting ("legacy support enabled and Secure Boot disabled") was working with the MBR table on the SSD just as it does with the old HDD that I've tested with. Given the MBR SSD works fine (grub and all) on Sony laptop (so, all is installed in proper legacy mode on that drive), and an old MBR HDD works well on the HP too (so, the legacy support is in place), what could be now the difference between old HDD and the SSD given one is seen and one not? Reply to comment asking for details on boot error of SSD on HP; it looks like this: Although now I think grub is fine on the SSD, I have run again |
how to add a icon in dmenu file launcher Posted: 26 Apr 2021 09:27 AM PDT how do i implement a icon on the left hand side of each file/directory with printf or echo in this script?if anyone could help or point me to the right direction it would be greatly appreciated |
Error output from ls -A results in error output, why? Posted: 26 Apr 2021 09:59 AM PDT I have a script I run regularly using cron. I would like to get notified by email when these scripts fail. I do not wish to be notified every time they run and produce any output at all. As such, I am using the script Cronic to run my jobs inside cron, which should mean only error output gets sent, and not just any output. However, in one script I have a command like this: The So why does the command EDIT: Adding Cronic stdout with Some commenters have requested the actual whole script which is very long, but Cronic reports the actual stdout of the script and I use |
DFS-Link failing when mounting DFS share via cifs Posted: 26 Apr 2021 08:53 AM PDT I'm trying to mount a DFS share via cifs. The share is built up like this:
After this I can traverse the directories in ~/fileserver as I'd expect. When I try to cd into folder1 however, I get an error: It takes a second or two before the error appears. Now I've looked at dmesg right after this: I believe the "cannot query dirs between root and final path" seems to be the actual problem, as I don't have permission to directly mount either the Share I'm in the lucky position to be able to try the mount with an elevated account that can access both But I can't use this elevated account for day to day work - also, I'm not in a position to change the permissions on the DFS share or the fileserver. The interesting part is that smbclient can do the traversal with I tried a lot of different options to the mount (mostly in desperation): Has anybody got any idea what else I could try? The DFS share is on a windows server by the way. |
radeon failed vce resume after upgrade to newest Linux kernel Posted: 26 Apr 2021 08:07 AM PDT I have upgraded my Debian to latest version on the kernel version 3.16.0-4-amd64. Update went fine. After that I decided to upgrade linux kernel version to the latest one supported by Debian 10 - 4.19.0-5-amd64. After reboot my X-server didn't get up and in logs when system starting I see an error like that Laptom model: After sysmtem start I get in command line interface. When try to execute Here is Could you help me please fix an issue and get my desktop up again? |
Posted: 26 Apr 2021 08:31 AM PDT I'm looking for how to automatically backup a user's home directory in CentOs 7 to a remote host or NAS or just to ~/.snapshot. In some Linux setups, I have seen a .snapshot folder in the user's home directory (~/.snapshot/) that holds hourly, nightly, and weekly backups of their home directory (ie ~/.snapshot/weekly1 for a copy of what was in the user's home directory 1 week ago). The /home/username/.snapshot/ directory would be read-only by the user. It's not a backup for the purpose of guarding against hardware failure. It's just nice to have the ability to recover a file from yesterday or this morning if you don't like the changes that have been made. I have seen several related posts on stack overflow, but so far, I haven't seen a guide that explains the complete workflow. This is what I know so far:
Are there any guides that cover how to do this? I don't understand how to automatically rename the folders as time goes on (ie weekly1 to weekly2), or how to delete "week10" if I decide to only keep weeks up to 9. Is this another Update: After some more Googling, I've discovered that NetApp creates the snapshot folders. I just don't currently have a NetApp NAS. https://library.netapp.com/ecmdocs/ECMP1635994/html/GUID-FB79BB68-B88D-4212-A401-9694296BECCA.html |
Posted: 26 Apr 2021 07:51 AM PDT I have installed jhbuild and set the PATH variable to $PATH:~/.local/bin. Now when I run jhbuild command I get error: You should not use jhbuild as root user and when I change the user to non-root and again I change the PATH value to above one replacing ~ with /root, I get error jhbuild command not found. I am using kali linux so the default user is root user. |
can't generate key via dnssec-keygen Posted: 26 Apr 2021 09:14 AM PDT above results in blank line and endless waiting the same entropy: ps. I was trying to make some noise by find / but that brought no result |
Posted: 26 Apr 2021 09:04 AM PDT I am trying to mirror directories with lftp but I don't want to download filetypes that are notoriously large like .mp4 and .swf. But I am having trouble with the regex - and seeming like the exclude-glob too. Both of them download all files. What I tried:
&&
|
Linux Desktop Access via Web Browser Posted: 26 Apr 2021 07:40 AM PDT This should be pretty simple, in my naive opinion of course... I have a tower that I am going to run a media server off of, along with some other functions but that's the main (re)purpose of the parts I had around. I'd like to be able to access the Debian (or other Linux) desktop environment via a web browser, like you can do for a printer or wireless router etc. The goal being that from any device on my wireless network I can just type in the ip and login as if I were in front of the box itself. This way I can download stuff, manage sharedrives, etc from any network device but all the actions happen on my media server. Is there anything out there like this besides this VNC thing I've read about? Is there a better way to accomplish what I'm trying to do? |
Looking to grep or egrep year ranges from 1965-1996 Posted: 26 Apr 2021 09:04 AM PDT I have a grep that works for some of the dates but having trouble getting my brain to make it fully functional. it catches a few correctly but I'm looking to grab all years between 1965-1996. Here is the current solution but looking for a one line really, but here's what I've gotten so far: Looking for better and shorter if possible? |
Posted: 26 Apr 2021 09:04 AM PDT I'm trying to find all files that are of a certain type and do not contain a certain string. I am trying to go about it by piping find to grep -v example: This does not seem to work. It seems to be just returning all the files that the find command found. What I am trying to do is basically find all .java files that match a certain filename(e.g. ends with 'Pb' as in SessionPb.java) and that do not have an 'extends SomethingSomething" inside it. My suspicion is that I'm doing it wrong. So how should the command look like instead? |
What is yum equivalent of 'apt-get update'? Posted: 26 Apr 2021 09:11 AM PDT Debian's |
What if 'kill -9' does not work? Posted: 26 Apr 2021 09:06 AM PDT I have a process I can't kill with |
You are subscribed to email updates from Recent Questions - Unix & Linux Stack Exchange. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment