Recent Questions - Unix & Linux Stack Exchange |
- Create udev rules to assign names to physical usb ports?
- Can I access any android device which is connected to my own router?
- set or pass an environment variable to a snap application (reach pulseaudio server on another machine via tcp from within a snap application)
- How to configure samba for a shared folder for 2 groups, each with write and read access on all files
- root folder and swapfile error in Filesystem Linux Mint 20.1
- Failed to boot STM32mp157a-dk1 using a buildroot image
- How to match a literal string containing an unclosed quote with ripgrep?
- Add another root with different uid and name
- How can I remove duplicate line based on group name?
- My D-Bus is completely messed up. How do I fix it, or at the very least fully start from scratch?
- Receive notification new messages localhost MAC OS?
- Httpd port not available from outside
- Bash to send variable value to csv?
- Can bootloaders be placed outside the EFI directory on an ESP partition?
- Applying numfmt on a specific column in awk
- zsh find -execdir rename "no such file or directory"
- Issue processing multiple files, counting lines
- X11 forwarding, how to force audio to the host?
- v4l-utils for CentOS Stream 8?
- Sysdig does not show exit event for write syscall
- PF states table give preoccupant results
- Troubleshooting sSMTP: Authorization failed
- How to set cron job for every 5 hours
- How to sharing Android VPN with Linux?
- How to replace the first line using sed?
- Add a user for Postgres on Mac
- Is there a method for making Google Chrome open textareas in vim?
- "Wrong version of libnet" when configuring nemesis
- Linux: How to find the device driver used for a device?
Create udev rules to assign names to physical usb ports? Posted: 20 May 2021 09:55 AM PDT I want to use a udev rule to assign a name (or symlink) accroding to the physical usb ports regardless of the machine that is there. The "why" is below in the tl;dr. Here's what's in my 10-local.rules for my raspberry pi. I tried doing a SYMLINK but that didn't work either. tl;dr: I'm running four instances of octoprint servers to control my 3D printers which are connected by USB. From my workstation I want to be able to see which row, and what machine (spot 1, 2 3, or 4) I'm accessing. I cannot do attributes of the specific machines because they get swapped out all the time when they break down. I want the cord that runs to row 1, space 1 to ALWAYS report as that name regardless of what machine is swapped into that location. |
Can I access any android device which is connected to my own router? Posted: 20 May 2021 09:43 AM PDT I have shared my router wifi to my neighbor. Now I want to access camera, internal storage which android device is connected to my own router without sending them any link or installing any application into there device.How can I do this with kali linux... Please help me and ADVANCE thanks. |
Posted: 20 May 2021 09:40 AM PDT dear power users and devolopers, i am encountering some problems, adjusting to the way snap works. i always embraced all the possibilities that a GNU/Linux distribution offers me. however, i feel that snap packages are keeping these possibilities from me. not deliberatly of course. but... well, i cannot change things that need to be changed.. system configs files and applications config files, environment variables. my distribution: ubuntu desktop 20.04 amd64 what i would like to do: install a (snap) program that supports pulseaudio and depending on the value i set for the environment variable PULSE_SERVER, the program starts using a certain pulseaudio server or socket. i want to be able to always choose between using the local instance of pulseaudio or an instance of pulseaudio running on another machine. i can neither find a way to successfully pass an environment variable to the command, nor to set the environment variables of the snap packages in general. (also i cannot find any real documentation or ways to adjust the snap interfaces "audio-playback","audio-record", and the deprecated "pulseaudio" ... (i just had these interfaces connected to a snap in order to test them and disconnected them afterwards) so, a program installed with snap seems to be bound to connect to the pulseaudio socket of the host, that is beeing created by pulseaudio with the default configuration (e.g. /run/user/1000/pulse/native if started by user with UID 1000) please can you help me finding a solution? (preferably a way to successfully set/pass the PULSE_SERVER variable, but other solutions would also be interesting) thanks in advance |
Posted: 20 May 2021 09:31 AM PDT I need to create a samba shared folder, 2 users must have access this folder with write and read capabilities on all files, they should be able to modify and read each others files on the full directory tree, but they should not be able to delete files only the ones they created.I really cant get my head around this problem...need some help to construct the config file and set the initial permissions.Thanks |
root folder and swapfile error in Filesystem Linux Mint 20.1 Posted: 20 May 2021 09:00 AM PDT I am new to Linux mint 20.1 Ulyssa. I saw in File System under My Computer the root folder with the error symbol, and a swap file is unknown. I also see 2 unknown volumes under Devices, but i am not sure what they are, i do not have any external devices connected to my laptop. And i never saw these Devices before. I deleted some files from snap list today. Maybe it is the reason for that? Could anyone maybe help? Thank you in advance. |
Failed to boot STM32mp157a-dk1 using a buildroot image Posted: 20 May 2021 08:22 AM PDT |
How to match a literal string containing an unclosed quote with ripgrep? Posted: 20 May 2021 09:08 AM PDT I have a file that contains the some python code. There is a line that contains the following(including the quotes)
I want to search
The above command is not working for the input
The above is not working as well. Why is it so mystifying to literal search a string with ripgrep even with the flag |
Add another root with different uid and name Posted: 20 May 2021 08:29 AM PDT I know that root has full admin rights thanks to something in the kernel that gives to And the location of the home ( How can I add another root with different This toor should have I thought about it and I think that is a good idea to have an user with full admin rights. Some services treat root as a system user and some use it for some processes, therefore I would like to do this. I use the kernel provided from my OS, Debian 10: |
How can I remove duplicate line based on group name? Posted: 20 May 2021 09:47 AM PDT How can I remove duplicate line based on group name and keep the line with |
My D-Bus is completely messed up. How do I fix it, or at the very least fully start from scratch? Posted: 20 May 2021 07:21 AM PDT I'm running an EndeavourOS (Arch-based) install with i3, and everything is mostly fine except for my D-Bus and some keyring-related issues. However, I'm pretty sure all of these are linked to D-Bus, though I'm not exactly sure how, or even what the exact issue is. One issue seems to be that the D-Bus service files are being generated improperly, as even when I completely remove them, and then I honestly don't know exactly what my issue with D-Bus even is, but will be happy to provide any information that could help narrow that down. If that doesn't work, however, how would I go about completely wiping all hints of D-Bus config files, so that I can reinstall it and hopefully get everything to just magically work? Thanks for the help! |
Receive notification new messages localhost MAC OS? Posted: 20 May 2021 07:20 AM PDT I need to received notification when my script backup is sucessfully. First i try to send e-mail the localhost to Thunderbird, but newer version Thunderbird haven't Unix spoolmail for configure. Is possible to do output command mail to send a notification GUI in screen? |
Httpd port not available from outside Posted: 20 May 2021 07:12 AM PDT I found out port 7080 of my local Linux server isn't accessible externally but locally it is. Any tips about how to resolved it? |
Bash to send variable value to csv? Posted: 20 May 2021 07:44 AM PDT I've the following data. I've only given 2 servers here for the sake of simplicity. This servers list might be change from time to time, the same goes with the variable value. Would it be possible to send it to csv format, probably something like this? output.csv At the moment, I copy paste the value manually to Ms Excel. I would like to automate this process, but not sure about the implementation yet. I really appreciate if you could share some ideas or sample code. |
Can bootloaders be placed outside the EFI directory on an ESP partition? Posted: 20 May 2021 09:44 AM PDT Is the EFI directory a mandatory part of the EFI standard or can bootloaders be placed in other directories. I'm contemplating moving my whole So I see two options to work with this:
What I don't know is whether or not the EFI directory is a mandatory part of the specification, if I'm likely to get problems in my BIOS or if I can just safely move it. |
Applying numfmt on a specific column in awk Posted: 20 May 2021 09:29 AM PDT I'm writing a script in In the end, I want to produce a report in the next format: First I'm running and then I managed to convert the 2nd column to human-readable size by: yet I was not able to merge it back in place of the previous column. Is there a way to inject the I'm a little weak with 'awk' commands, so pardon my bad code. |
zsh find -execdir rename "no such file or directory" Posted: 20 May 2021 08:28 AM PDT I'm trying to write a zsh script on MacOS Big Sur that will recursively rename some files and directories that have special characters I don't want. Been at it for days and every time I think I have it cracked, I get hit with a new problem. It's basically done, except that when I run the find command in dry run mode: I get the correct list of files in my test folder:
But when I run it for realsies, it can't find them anymore: Result:
Banging my head against a wall. Any help would be greatly appreciated. In case it's relevant, CHARACTER_SUBSTITUTIONS is just a long list of the subs I want to make. Details: |
Issue processing multiple files, counting lines Posted: 20 May 2021 07:25 AM PDT Sorry if it's long and confusing, but I have three files, namely My code is something like this: When I run the above code, the following happens: (I input It will give me an output of But let's say when I want to run all three files at the same time, what do I have to do? Let's say I want it to display as following Unfortunately, it displays when I run all files at the same time, but if I run the script on the files one by one, nothing is wrong. |
X11 forwarding, how to force audio to the host? Posted: 20 May 2021 08:34 AM PDT i am connecting from a laptop: to a single-board-computer: over SSH with compressed X11 forwarding: everything seems great except for the fact, that audio plays in the laptop and I want it to play in the remote machine. how is this achieved? P.S. I suspect this is something fedora-specific as the same leaves the audio-output on the remote machine. EDIT based on comments: locally on fedora: remotely on mobian without remotely on mobian with locally on mobian: |
v4l-utils for CentOS Stream 8? Posted: 20 May 2021 09:52 AM PDT I have problems with webcam and I need v4l-utils package. As per this page: https://centos.pkgs.org/7/centos-x86_64/v4l-utils-0.9.5-4.el7.x86_64.rpm.html It was availbel in CentOS 7 official repos. However for CentOS Stream 8 I cannot find it: $ sudo dnf search v4l-utils Last metadata expiration check: 13:59:10 ago on Sat 15 May 2021 10:19:51 CEST. No matches found. [admin@localhost ~]$ sudo dnf search v4l2-utils Last metadata expiration check: 13:59:55 ago on Sat 15 May 2021 10:19:51 CEST. No matches found.
|
Sysdig does not show exit event for write syscall Posted: 20 May 2021 10:00 AM PDT I'm trying to capture write to stdout (or stderr), but apparently the actual data is related to the exit event. I wrote a simple C program that writes to stdout and stderr. I compile it with 'gcc example.c -o example'. If I now start sysdig with and run ./example, I get to following output No data is shown, and only the enter event (>) is shown. Also the stdout chisel doesn't produce any output Is the problem in my example program or where? If I run sysdig without any parameters, it sometimes shows also the exit event for some processes. I'm running Ubuntu 20.04 distribution, and the version of sysdig is 0.26.4. For more information on sysdig, see GitHub repository of sysdig . |
PF states table give preoccupant results Posted: 20 May 2021 07:22 AM PDT I freshly install openBSD on a VPS. It is my first time. I did nothing but check the firewall setup, say pf. I ran pfctl -sa and it show with IP0 my server IP, IP1 my local IP, but IP2, IP3, IP4, are completely unknown IP to me. There is some repetitions of the last two lines with diferent port number (rnd). I tried to understand the information in the table with few success, I am completely a newby in web traffic and so on... Should I be preoccupated with that second line which suggest a third party is connected to my server? Thanks! |
Troubleshooting sSMTP: Authorization failed Posted: 20 May 2021 08:49 AM PDT My requirements are:
I've tried the "simplest answer to sending one-line messages via gmail is to use ssmtp", and several variants, and keep getting:
Google settings:
For each Looking at the stated thread alone, there is no consensus as to how
Could someone make a suggestion to sort this out, and possibly paste in full a working conf file? There is a claim in a thread from 2017, that:
Is that the case? (I'm not able to do it) What alternatives are there? PS:
|
How to set cron job for every 5 hours Posted: 20 May 2021 07:50 AM PDT Can I use below code to set cron job for every 5 hours? What time my script.sh will be executed?
OR
If we can not set cron job for every 5 hours with this traditional method, is there any other way to set such job? |
How to sharing Android VPN with Linux? Posted: 20 May 2021 09:01 AM PDT I have a rooted galaxy note5 with Android 7, and an Asus laptop with Ubuntu 16.04. I like to share my phone VPN connection with my laptop. I tried some apps like VPNTether,DF tethering fix, TetherNet, Pdanet+, etc. but they didn't work! I think I could use the VPNTheter on windows 10 and it worked, but they don't work on Ubuntu! Also I tested two Wi-Fi and USB cable methods. Also I found this method but couldn't understand what it says in numbers 6 and 7 ? |
How to replace the first line using sed? Posted: 20 May 2021 09:43 AM PDT Hi i am trying to replace the header line from my file using the sed command as mentioned below, The above line replaces the header and prints in stdout , But How can i redirect the output to new file or replace in the files directly ? The above command works fine , But i want to redirect to same file. |
Add a user for Postgres on Mac Posted: 20 May 2021 10:00 AM PDT I've had a very difficult time trying to set up a postgres database. I am using Mac OS X 10.9.2. I am using this tutorial: http://tutorials.jumpstartlab.com/topics/environment/environment.html The Postgres section can be found 2/3 of the way down the page. After installing Homebrew and commanding we create a database by: When I do it returns the error I can't seem to find a simple command to add a user - adduser and useradd have returned "command not found", with and without sudo. I am not sure what the problem is. Is there a simple command I can do? |
Is there a method for making Google Chrome open textareas in vim? Posted: 20 May 2021 07:45 AM PDT I used to use Firefox on a daily basis but have switched to Google Chrome, and have been using it for 2+ years now. The one plugin that I miss is this one, It's All Text!. This plugin allowed for the textarea to be opened into a separate The closes thing I've found is this plugin is TextAid, but I find it a bit of kludge since it requires a separate web server to be kept up. I'd really prefer not having to use TextAid, does anyone know of any alternative methods to achieving this using Chrome? |
"Wrong version of libnet" when configuring nemesis Posted: 20 May 2021 08:00 AM PDT Whenever I try to configure Nemesis it stops at "checking libnet version....no" and claims I have the wrong version. I have checked my libnet folder to make sure, and I do have the right version. Version 1.0.2a. So why is it believing that I have the wrong version? Configuration session: Guide I followed exactly - http://insecurety.net/?p=54 After more attempts, the guide stops at "checking for libnet.h" instead of checking the version. I have checked where it is talking about and yes there is a
Subscribe to:
Post Comments (Atom)
|
No comments:
Post a Comment