Recent Questions - Unix & Linux Stack Exchange |
- Add Windows boot option on kali
- bash: How to add column numbers to the first row
- how can i delete the content outside the brackets
- Set maximum number of parallel connections
- Blocking and unblocking internet access of a running process
- How to make bash commands a specific color
- Did Unix have a package manager?
- Awk variable passing error
- I cannot get sed to insert or append
- /boot out of space for upgrade
- Which GTK libgio API's will allow a GATT client to read/write a characteristic?
- OpenVPN generates incorrect remote instruction in profile file
- reverse ssh tunneling: is there a 3rd machine between local and remote machines?
- cert expired report per date
- Prevent users abusing private ssh keys
- How do I resolve an error with the pNFS mapping daemon?
- Command line tool to install GNOME Shell extensions
- Restart application after crash
- Sound on Dell XPS 9570 only works on headphones
- Add Prime OS (Android_x86_x64) to grub menu
- Could not find libmount
- Connect to RemoteApp Linux Mint 18.3
- SSH command without prompting the message for ssh key save or cancel options
- Formatting the date in bash
- Something (ALSA or pulseaudio) changes sink volume upon bluetooth connect
- Can't restore/reformat my USB flash drive after moving to GPT
- Use aliases as custom commands in terminator
- Restricting who can send to an email address
Add Windows boot option on kali Posted: 19 Jul 2022 10:02 PM PDT I am facing this problem.Windows boot removed after Upgrade from grub. Tried this way but not solved. |
bash: How to add column numbers to the first row Posted: 19 Jul 2022 08:36 PM PDT I had many large .txt like: xx yy ... zz XX YY ... ZZ I want to add a header row to them, each with a different number of columns: 1 2 ... 999 xx yy ... zz XX YY ... ZZ Since they have a different number of columns, I could not directly type "1\t2\t....", and I guess that the code should include variables like $NF. Do you have any idea? Thanks for your help. |
how can i delete the content outside the brackets Posted: 19 Jul 2022 09:24 PM PDT here is my file which contains two cloumns and separated by "\t" and i want wo get the file like this by sed i have tried the command |
Set maximum number of parallel connections Posted: 19 Jul 2022 08:05 PM PDT I have a server with some code, and for x parallel connections/requests that one IP sends, the server runs x parallel threads (so it runs the code x times in parallel). To put a limit to the currently opened threads by a single IP, I want to configure my csf firewall to make it accept a maximum of x parallel connections for each IP.
|
Blocking and unblocking internet access of a running process Posted: 19 Jul 2022 08:33 PM PDT Is it possible to block the internet access of a process and then later unblock it while the process is still running? |
How to make bash commands a specific color Posted: 19 Jul 2022 05:27 PM PDT I have my bash prompt on one line colored green with file path in blue. When I type a command it appears on the next line. After I press enter the output appears on the next line(s). Then there is an empty line. I would really like the command to be in a color of my choosing (preferably not green or blue) or bold to differentiate it from the line before it and output line(s) after it. I do not want to alter the output color as that is used to indicate different things like executables and different types of links. In the example in the image I would like 'ls -la var' to be a different color. Any advice would be very welcome. |
Did Unix have a package manager? Posted: 19 Jul 2022 07:23 PM PDT I've looked online but couldn't get a straight answer. Plus, there are no mentions of package managers on the Unix books that I've read. One would imagine that someone/something needed to manage the installation/update/removal of programs; like we have today. But did the people at Bell Labs have a package manager? Did they have a centralized repository with a bunch of programs? Or was it like Slackware today where each person manages their own packages? Thanks in advance |
Posted: 19 Jul 2022 09:27 PM PDT Below works fine: But when I pass the column list through a variable it starts giving syntax errors. For Ref: I confirmed by printing the Error: |
I cannot get sed to insert or append Posted: 19 Jul 2022 04:13 PM PDT I have a large file that consists of many machine programs all together as one large txt file. I want to use sed to look for lines that start with an Oxxxx format like- I have tried the following and many variations- I have tried every example I've seen and nothing works. Any pointers towards syntax also appreciated. Thank you! |
/boot out of space for upgrade Posted: 19 Jul 2022 06:22 PM PDT I'm trying to upgrade from Debian Stretch to Bullseye and running through the apt update process. I can't get past the new kernel install due to insufficient space on /boot. I've done the main suggestion, which is to There are only two images in boot now:
Is there a straight forward way to resize, or change the boot location??? This is a virtual machine so I don have access to be in front of the system if it can't boot and I cant risk getting stuck. Any recommendations? I know my way around linux, but mostly with the help of the internet. |
Which GTK libgio API's will allow a GATT client to read/write a characteristic? Posted: 19 Jul 2022 02:51 PM PDT I would like to connect with multiple similar BLE devices simultaneously, with one task (thread) accessing each device. I do: The callback for this function then starts a new task for each BLE device passing in the device path. Then the new thread does: This causes a set of characteristics to appear in my original main loop thread which did the "InterfacesAdded" callback. If required, I could notify the thread handling the server (remote) device that a new characteristic has appeared. What libgio API's are used to read and write values to characteristics for BLE? I have not been able to find any sources for this. I could put a table of DBUS paths in the program for each characteristic I care about. Or should I somehow look up the UUID? The characteristics are fixed. |
OpenVPN generates incorrect remote instruction in profile file Posted: 19 Jul 2022 02:25 PM PDT I have OpenVPN running in subnet behind a firewall. It's Web UI is accessible via public IP. Unfortunately, it generates How to fix? Changing to public IP doesn't help although it is written
How to accomplish? |
reverse ssh tunneling: is there a 3rd machine between local and remote machines? Posted: 19 Jul 2022 07:29 PM PDT I'm facing for first time the need to connect my local pc (call it 'home') to my work pc (call it 'work') . Work pc CANNOT accept ssh connection because it's beside a firewall I cannot control. I read that I could do something called "reverse ssh tunnelling". But it's not clear to me the number and the role of machines involved Are involved 2 machines only? (home and work) or do we need a 3rd machine (call it a vps) to estabilish bridge between home and work!? |
Posted: 19 Jul 2022 02:54 PM PDT Hi How can i sort below file so as to have cert expiration date is used to sort this, thanks |
Prevent users abusing private ssh keys Posted: 19 Jul 2022 03:55 PM PDT It's my experience that users will sprinkle an infrastructure with both public and private keys. While openssh allows for restricting public keys to a specific directory (which discourages them from generating lots of keys) it does NOT provide a similar mechanism for private keys (you can define a default, but not enforce its use). In an ideal world, I'd want to be able to access hosts without entering a password or passphrase (apart from an initial passphrase for the ssh-agent). Although the users at my $WORK start their ssh journeys with putty on MS-Windows I am only concerned with preventing them copying a usable private key to a machine which is acting as an ssh server. These target hosts require the ability to make ssh connections elsewhere so I can't simply block outgoing ssh connections. Short of implementing a full privileged access solution, is there a way I can let my users authenticate with key pairs but prevent them from copying their private keys (or generating their own keys and deploying either of the private/public keys)? |
How do I resolve an error with the pNFS mapping daemon? Posted: 19 Jul 2022 08:56 PM PDT I get an annoying error on my Ubuntu Server installation with Yields the following I'll admit I haven't done much except some googling because I'm kinda afraid to mess up something. Could someone help me out? EDIT: what I've tried so far:
As far as I can tell, NFS seems to work regardless of the service failing or not existing, so maybe the package isn't maintained properly and/or not needed at all? Also, the bug seems to be affecting both Debian and Ubuntu. |
Command line tool to install GNOME Shell extensions Posted: 19 Jul 2022 06:03 PM PDT Is it possible to install an extension from https://extensions.gnome.org/ without using GNOME Shell integration browser add-on? I'm looking for a tool that will be able to search and install extensions from the above web-site, for example: |
Restart application after crash Posted: 19 Jul 2022 04:02 PM PDT I have some application (net core 2.1 app) which I run like this: This application crashes sometimes, and I need to restart it when that happens. What do I need to do? |
Sound on Dell XPS 9570 only works on headphones Posted: 19 Jul 2022 08:02 PM PDT I have a Dell XPS 15 9570 and it's great, except that no sound comes out of the speakers. Weirdly enough it works just fine out of headphones! Just the built-in speakers are the problem. Everything I can find reports all systems go.
I also looked into a theory that the headphone jack wasn't registering plugs/unplugs, but as far as I can tell that's working just fine. Anyway, I'm at a loss. Any ideas? I'm using Arch linux,and I'm using pulseaudio. |
Add Prime OS (Android_x86_x64) to grub menu Posted: 19 Jul 2022 02:02 PM PDT I have debian dual boot with windows and try to install prime os also, while install it i didn't install it's grub because i have debian grub, but after installation i can't found it in grub . result in then it was added successfully but when i open it it's show |
Posted: 19 Jul 2022 05:04 PM PDT During compilation of customized distribution (using buildroot v. 11.2018) I have problem with libmount library (the problem appeared after I had included efl package in buildroot menuconfig - Target packages -> Graphic lib... -> efl ). I have additionaly installed package libmount-dev with no results. How to include this library to obtain succesful compilation? |
Connect to RemoteApp Linux Mint 18.3 Posted: 19 Jul 2022 09:02 PM PDT At our company we run a Remote Desktop Gateway with RemoteApps Does anyone have a good and easy way to connect and use these from within Linux Mint 18.3? Been trying different things and a work around is an openVPN server and just connect directly to the Domain Controller and Remote Desktop Server. It would how ever be very neat to be able to just launch the RemoteApp instead. |
SSH command without prompting the message for ssh key save or cancel options Posted: 19 Jul 2022 08:21 PM PDT Need ssh command to connect another linux box from a linux box and fetch a output of particular command but connection should be established forcibly without prompting any ssh key to save, cancel. So far tried command to connect and fetch output but receiving prompt to save public ssh key |
Posted: 19 Jul 2022 08:51 PM PDT I would like to format the date in bash in a script. The format is: 2016-10-05T12:18:36.890+02:00 I'm currently using: Any idea how this can be done? |
Something (ALSA or pulseaudio) changes sink volume upon bluetooth connect Posted: 19 Jul 2022 07:07 PM PDT The problemI am setting up a small linux computer (C.H.I.P.) to be a bluetooth receiver using pulseaudio. The device is headless so I would like to get a configuration that works on boot. Everything is good except when my phone connects to C.H.I.P. something always sets its sink volume to 0%. How do I get Pulse/ALSA to leave the Master volume alone when pulseaudio sets up the sink-input? Or maybe pulse is to blame - I'm not sure. Things I have tried
If I'm running alsamixer while my phone connects I see the volume go from 100% to 0% around the following log line: The set up
All I have to do is run alsamixer and set the Master volume to 100%. Much more informationHere's my message to pulseaudio-discuss (zero replies as of this writing). The nearby debug log lines: The full connection debug. /etc/pulse/daemon.conf /etc/pulse/client.conf /etc/pulse/system.pa /etc/pulse/default.pa The sink-input that gets "muted". The ALSA sink: |
Can't restore/reformat my USB flash drive after moving to GPT Posted: 19 Jul 2022 06:06 PM PDT I have 8GB flash memory stick. Sometimes ago I formatted it to be able to install Windows from it. I can't remember what exactly I did but I think I wanted to be able to install Win 7 64-bit to boot in EFI mode. Now I can't reformat it nor in Windows nor in Linux. I tried to convert it to MBR from GPT with , opened expert tools with then tried to delete a partition with After this I tried to pull out and plug in the stick again but NTFS mount error window appeared each time. I also tried to rewrite an initial drive area with a test content with and with but I couldn't reformat it to usable state. Is there a way I can restore its factory state? My system: Linux Mint 17.3 UPDATE |
Use aliases as custom commands in terminator Posted: 19 Jul 2022 10:00 PM PDT I am using a terminator layout to start multiple terminals, and would like to call an alias at each terminal start which is defined in my I start terminator with this command: EDIT: As a temporary solution, I |
Restricting who can send to an email address Posted: 19 Jul 2022 03:06 PM PDT I'd like to do so that only certain From: addresses can send to an email address (mailing list) on an Ubuntu system running Postfix. Understanding the Postfix the manuals are requires a lot of knowledge, so I'm hoping to get a complete recipe I can use. Currently this is what I have: This gives: I am open to any suggestions. It doesn't have to be Postfix. It can be procmail or any other standard solution. Note: the recipient is a mailing list, and thus does not have a user account on the system account. So any solution must work without an account. Current mailing list implementation |
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 |
Inbox too full? Subscribe to the feed version of Recent Questions - Unix & Linux Stack Exchange in a feed reader. | |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment