Recent Questions - Unix & Linux Stack Exchange |
- Emmanuel Uribe I want him to have something bad happening
- Laptop keyboard doesn't work after suspension/hibernation
- mounting a samba share from another linux machine error "bad network name"
- Echo array on newlines with index numbers
- I "hate" the <(...) sugar syntax, what can replace it?
- Every X11 (working) app run from shell shows "No protocol specified"
- Unable to mount file with docker-compose volume directive
- How to make a glib app look for "schema" at a different path?
- Alternative to SSH and SNMP for remotely gathering metrics
- Reordering a name file in linux/ubuntu
- How to detect changes to disk capacity in linux?
- /etc/network/interfaces - difference between auto and allow-hotplug
- Change Authorization of usb bus
- Proxmox VE Kernel Panic
- Where should a web application store dynamically generated content by default?
- using awk, how can I find the max value in a column, then print a different field of the row that data was found in?
- Using sed to mass rename files according to contents in those files?
- Display git-diff between master and my last commit
- How to use "qstat" and "grep" to list lines containing a range of numbers?
- accessing android with metasploit
- How to forbid an (emoji) font only for one software?
- Adding Headers On A Specific Pattern in a File
- Push etckeeper created repository to remote Gitlab server, advices welcomed
- VBoxManage: won't start virtuals machines NS_ERROR_FAILURE (0x80004005)
- Unable to locate package postgresql-server-dev?
- Moving directory without modifying timestamp
- Docker: Sending log files as non-root user to /dev/stdout
- Command for launch a new terminal, or a new tab if exists
- permission denied, cannot list files within a folder
- Per process firewall?
Emmanuel Uribe I want him to have something bad happening Posted: 26 Mar 2021 10:30 AM PDT I would like to spectate someone else and freeze his computer he has a chromebook computer |
Laptop keyboard doesn't work after suspension/hibernation Posted: 26 Mar 2021 09:51 AM PDT On my Ubuntu 20.04 (problem persists since 16.04) Sony VAIO laptop if I close the lid, wait till the yellow led to blink and then turn the laptop on again, awakes everything but keyboard, which turns on it's backlight after first keypress but doesn't react to anything, so does the touchpad. So I get almost fully working system, but completely unusuable. My problem is that I don't even know where to search for problem origin. I don't know how the laptop power and keyboard management works in Ubuntu, not on systemd or SysV level, nor on kernel level. So, no logs for you, my friends, until you ask for any. =) How can I solve this very annoying issue please? |
mounting a samba share from another linux machine error "bad network name" Posted: 26 Mar 2021 10:00 AM PDT I am using OpenSuse tumbleweed latest versions of everything. zypper dup So I disabled all the firewalls, temporarily. So I verified that /mnt/x exists and it does I am doing everything as root so it is not a permission issue. On a 3rd computer which has windows Start-Run \192.168.2.3\web and after entering the credentials all my files appear. On the 192.168.2.2 I get an error BAD_NETWORK_NAME: \\192.168.2.3\web This is plainly false as it works in windows Also it isn't the password, because when I intentionally enter the wrong password it says permission denied. |
Echo array on newlines with index numbers Posted: 26 Mar 2021 10:15 AM PDT I'm trying to echo all elements of an array on a newline and also with an index number next to it. So that I can take some input and then select an array element to open with a text editor. (they're all config files). i'm currently doing this: which has the output of each config path, but i'm not sure how I'd go about appending the index number to the start of each element. |
I "hate" the <(...) sugar syntax, what can replace it? Posted: 26 Mar 2021 09:28 AM PDT I run a remote upgrade script via the following pattern: In this session User:Kusalananda suggested to me not use this and to prefer the following pattern instead: I told him that "I hate" the
I think I would prefer the first pattern that I find simpler and that according to my understanding, pipes curl's data in stdout to bash in a
I don't know what it actually means; I don't think I would want to cancel any option for any Bash builtin in the current shell session. The upgrade script has only this interactivity: I "hate" the <(...) sugar syntax, what can replace it? |
Every X11 (working) app run from shell shows "No protocol specified" Posted: 26 Mar 2021 09:27 AM PDT Every X11 (working) app run from shell shows "No protocol specified". It's local environment, everything is working fine, no SSH X11 forwarding. OpenSUSE Tumbleweed, lightdm (DM) and i3 (WM). |
Unable to mount file with docker-compose volume directive Posted: 26 Mar 2021 09:04 AM PDT I have the following configuration in and I have the following regular file When I am trying to run compose it fails with
as if it wants it to be a diectory. If I run it without Also it seems to me, that one time it worked. Could it remember it should be a directory somewhere? Can I purge something like |
How to make a glib app look for "schema" at a different path? Posted: 26 Mar 2021 08:34 AM PDT I've built and installed a Glib-2.0-using application to How can I tell the app to look for schema files elsewhere? Notes:
|
Alternative to SSH and SNMP for remotely gathering metrics Posted: 26 Mar 2021 08:29 AM PDT Does anyone know of alternative protocols for gathering metrics remotely from Linux servers other than SSH and SNMP? We are looking to support as much of the Linux ecosystem as possible including very old distributions so the protocol needs to be broadly available. Thanks, Brian |
Reordering a name file in linux/ubuntu Posted: 26 Mar 2021 08:19 AM PDT I'm trying for a time now to have the titles of some(1 to 3 hundred) musics changed, using bash script or commands like rename or sed, along with regex, but I failed miserably, probably because I'm new to the word of programming and terminal commands. That's what I need help:
|
How to detect changes to disk capacity in linux? Posted: 26 Mar 2021 07:59 AM PDT I'm working on a program that needs to monitor changes to the system mounts and the size of disks and partitions. While I found out the changes in mounts can be detected using
|
/etc/network/interfaces - difference between auto and allow-hotplug Posted: 26 Mar 2021 08:10 AM PDT I am running Debian 9.13. I tried to check what is the difference between Is it correct? Is there any other difference? |
Change Authorization of usb bus Posted: 26 Mar 2021 07:49 AM PDT I am trying to modify authorizations of usb devices. First I connect my android phone with MTP and run this command if I run it as 3-1/authorized Thunar freezes(see loading folder contents), I kill it and open a new instance it still stucks until I remove phone. and I do the same thing on usb stick: if I run it as 4-1:1.0/authorized returns instead of Then I have to physically eject/mount usb to get it work. As you can see if I run wrong command, Driver type is empty for both devices. My question is why usb worked without interface number contrary to mtp device or vice versa? |
Posted: 26 Mar 2021 07:48 AM PDT Rescue me, please I use Proxmox for my home server - Samba, DLNA, Print server, HomeAssistant, PiHole on Dell Wyse 5070. Everything worked fine, but I wanted to use build-in BT on Intel PCI card. I used this instructions: https://www.reddit.com/r/Proxmox/comments/btnn2m/intel_9560/ But it doesn't worked. Somewhere I read that I need to turn off WiFi in my BIOS then BT should works. I rebooted computer to BIOS, but I had one checkbox for WiFi/BT in Wireless card in BIOS, so I rebooted computer. I tried make some instructions from some forums by Ubuntu Live CD and terminal in Proxmox Installer, but nothing works. Help me, because I will lost month of my work :( |
Where should a web application store dynamically generated content by default? Posted: 26 Mar 2021 08:21 AM PDT Let's say you are developing a web application which generates reports based on user interaction. If you wanted to store those reports (not just temporarily cache them) somewhere in the *nix filesystem, where would be the most canonical default location? My first instinct is However, It also seems appropriate to use |
Posted: 26 Mar 2021 09:09 AM PDT The specific example I have is finding the max value in column 5, then the associated 2nd field with that value. For example: here is my script. it begins with a function for finding max, then attempts to print the 2nd field's data of the same row the max was found in. this ends up printing out because it prints out the 2nd field every time it finds a new max. I am trying to find a way for it to only print out only the last max found so it prints "text4" only. I tried putting |
Using sed to mass rename files according to contents in those files? Posted: 26 Mar 2021 07:55 AM PDT I have a bunch of files which all contain the pattern "SIZE1=%d", is there a way to find that decimal and append it onto the front of the filename for each file? Further if each of the files contain "SIZE1=%d" and "SIZE2=%d" can I somehow append "SIZE1_SIZE2_" to the front of the filenames? I am trying to get a feel for how much I can do with sed as I have little experience with it. Edit: For example I have a file test_result.log, somewhere in that file are separate lines "SIZE1=100" and "SIZE2=150". I want to rename the file 100_150_test_result.log |
Display git-diff between master and my last commit Posted: 26 Mar 2021 09:58 AM PDT I use Until now I'm using the following workflow: Alternatively, I could also use Although that works, I'd prefer something simpler, like I'm also using the awesome |
How to use "qstat" and "grep" to list lines containing a range of numbers? Posted: 26 Mar 2021 08:10 AM PDT To monitor the job status in clusters, The first element of each line is the job ID. Is there a way to show the lines for a particular range of jobs, e.g. how to only show the jobs from 146868 to 146927? It seems that |
accessing android with metasploit Posted: 26 Mar 2021 08:24 AM PDT Output : [-] No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload No encoder specified, outputting raw payload Payload size: 10186 bytes Output : [-] Handler failed to bind to 192.168.0.103:4444:- - [*] Started reverse TCP handler on 0.0.0.0:4444 Since then, nothing is happening I have installed that After running by desktop ip,
It's been over than 5 minutes I have run the command I have close it now |
How to forbid an (emoji) font only for one software? Posted: 26 Mar 2021 10:09 AM PDT Context :I'm using Luke Smith's version of If I want to avoid this crashes, I have several "unsatisfying" solutions :
What I want to do :Tell to my computer to allow Or tell to my computer at least to take I think there could be a solution with Things I tried (non exhaustive) :With I tried to combine them but it looks impossible. Here is a code that does not work : I think a This issue is actually known, and not only related to but with or without it, the output of It still does not works for me when I write I found a solution to set a default font (in the following example ), I set I also noticed this config works with But what is this "something in common" ? |
Adding Headers On A Specific Pattern in a File Posted: 26 Mar 2021 09:03 AM PDT I have a file in which I need to add a header on multiple locations in linux. The 'header' is a file and I can add it only at first row; and that's fine but I want to add it now the same header on multiple locations; specifically before a new IP address is found. I actaully dont need a file with the header; I can just simply add the text via awk or sed after having all the output. The header needs to be inserted exactly after a new IP address is found. The list is variable; for example at ip 192.168.10.10 there are here 3 entries but it could be lot more; and for ip 192.168.10.33 for example there are 2 entries but could be lot more. The ports by default are already sorted; but the IP Addresses are not sorted but its already group. Output looks like: I want the output looks like this: |
Push etckeeper created repository to remote Gitlab server, advices welcomed Posted: 26 Mar 2021 07:51 AM PDT I'm playing with etckeeper and it seems to be a good product. I use it only to track /etc filesystem locally, but these days the idea came to my mind - to create central Gitlab repository and to store all the node /etc repositories there. The question is how can I do that? I noticed in the config of etckeeper, there is a variable called: PUSH_REMOTE="", but do I have to create separate repository for every server or I can use one and combine all the servers in it? Maybe I can use branches? Or different folders? Any advice's are welcomed. I will try to do it in manual way, and if it works I will think how to do it in automated way, via Puppet or Ansible.. Thanks in advance. |
VBoxManage: won't start virtuals machines NS_ERROR_FAILURE (0x80004005) Posted: 26 Mar 2021 09:39 AM PDT After a reboot, suddenly Virtualbox will no longer start any virtual machines. The message I get for all the machines is: The example is for Windows 7 machine, but the same is for Windows 10, Salix, Debian etc. A brave attempt to upgrade to the current Virtualbox (6.1.18) did not help. So, I uninstalled Virtualbox, rebooted, re-installed, ran The kernel module loads correctly, according to
The GUI starts normally, but I cannot start virtual machines from it; it provides the same error. I also tried to create a new machine, to see if there was something wrong with the virtual boxes, but that did not work either. My system is Salix, so not packages for VirtualBox exist. I've also tried the microlinux packages, but no avail. I tried most of the solutions I could find on the Internet and Oracle's VirtualBox forum, but no avail. Does anyone here have additional hints, tips or solutions? |
Unable to locate package postgresql-server-dev? Posted: 26 Mar 2021 10:21 AM PDT I am trying to install the following packcage postgresql-server-dev-9.5. Using
Now, after I run this command I get this error:
How can I fix this? I use ubuntu 18.04.1 |
Moving directory without modifying timestamp Posted: 26 Mar 2021 09:51 AM PDT I would like to move a directory from one location to another but when I do I can see that the timestamp gets changed. Is there any way to retain the timestamp as original? Have looked at the man page of |
Docker: Sending log files as non-root user to /dev/stdout Posted: 26 Mar 2021 09:00 AM PDT I'm trying to start a docker container, which has 2 services. One of those services needs to be run as a non-root User, otherwise he won't start. The other must run as root. Now I want to link the The Problem is by doing so, that the non-root User has no rights to write to either But if I don't create the link, I could not catch the logs with P.S.: Does not matter if I use as shell script |
Command for launch a new terminal, or a new tab if exists Posted: 26 Mar 2021 08:09 AM PDT I have a keyboard shortcut that is mapped to running the command I wish that this key, would open a new terminal if no terminal is open, but open a new tab on the existing terminal window if a terminal window is already open. What would be the command to do that? |
permission denied, cannot list files within a folder Posted: 26 Mar 2021 10:07 AM PDT I have a folder like: However my user other can't do ls: other is neither member of the group nor owner of the files I thought that the last 3 bits describes the permission for any other user Any idea what is wrong? |
Posted: 26 Mar 2021 08:02 AM PDT I've been reading around but can't seem to find a way to create per-process firewall rules. I know about For reference selinux can do exactly this and it works fairly well. Setup is a bit of a pain though. |
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