Recent Questions - Unix & Linux Stack Exchange |
- Pop OS - conflict between Bluez and Blueman? BT not working
- No sound on Ubuntu 20.04 , only Dummy Output on Huawei Matebook D16
- Problem changing kernel version
- Python script not launching properly on reboot/startup Raspberry Pi
- How may i get /var/log/dnf.log to log times in my system timezone?
- X2Go shows black box but working desktop + icons on Wayland Xfce4 Raspberry Pi
- Add a variable inside double quotes with a dollar
- Steps to getting internet access in linux
- What is the difference between a Btrfs filesystem and a Btrfs partition?
- Linux REGEX editor compatible with PCRE2
- "systemctl list-timers" shows 2 days left for a "daily" timer
- write awk script to find the sum of all numbers with same name
- How to resize mpg files with FFMPEG with minimum visual artifacts?
- Can not link executable
- Can I give a single non-sudo user access to run a single command without sudo?
- Bash, clear vs Ctrl-L
- How to substitute/delete a new line (\n)?
- Uninstall Pop!_OS?
- Can you set RLIMIT_NOFILE to RLIM_INFINITY?
- Unable to mount HDD and concerns over the partition setup
- Time-delay file editing
- Create hotkey for hotkey sequence
- shell script read from csv column and search files
- Debian 9.4 stretch - unmet dependencies
- How to extract the Root CA and Subordinate CA from a certificate chain in Linux?
- Extend a LUKS encrypted partition to fill disk
- Can nmap display only hosts with specific ports open?
- RTOS in a virtual machine
- Running Python script over multiple directories and multiple files
Pop OS - conflict between Bluez and Blueman? BT not working Posted: 26 Oct 2021 12:00 PM PDT So I am running Pop!_OS 21.04 with a 5.13.0-7614-generic Kernel on an Acer Aspire 5 with a Wifi/Bluetooth Adapter by Mediatek Corp mt7921e Right out of the box Wifi worked but Bluetooth didn't. So I installed Blueman besides Bluez. Now when I boot up I get the Blueman-applet in the right hand upper corner but as soon as I enable it, it disappears. I am not sure if it crashes. When trying to use the Bluetooth options in the settings, it always appear to be turned off. But as soon as I turn it off (that option still appears), the Blueman-applet reappears. So neither Blueman nor Bluez is really working and I wonder if they are in conflict with each other? Blueman-manager tells me: systemctl status bluetooth gives me: Everything is unblocked in rfkill: I tried uninstalling Blueman but that just left me with Bluez not working. Is there way to resolve a potential conflict here? What could keep Blueman from working properly? Thank you very much in advance! |
No sound on Ubuntu 20.04 , only Dummy Output on Huawei Matebook D16 Posted: 26 Oct 2021 11:15 AM PDT I am having a problem with my audio where neither internal speakers, microphone and headphone jack show up as output/input options, only HDMI shows up. I have Ubuntu 20.04 installed with dual boot with Windows installed in a Huawei Matebook D16. Audio works fine in Windows. I've tried many solutions posted in all sorts of forums and nothing seems to work. These are some output logs: sudo lspcl: aplay -l: pacmd list-cards: lspci -nnk | grep -A2 Audio: I've tried:
Please help! Thanks in advance! |
Problem changing kernel version Posted: 26 Oct 2021 10:57 AM PDT I tried to change the kernel version on AWS, everything is ok if i dont change /etc/default/grub file. If I change that file, the server is not running. Where I did wrong exactly ?
|
Python script not launching properly on reboot/startup Raspberry Pi Posted: 26 Oct 2021 10:55 AM PDT For context, I am using Raspberry Pi model 3B+. Currently I am trying to run a python script at the Pi's boot up. But I am struggling with getting the program to launch properly. When I use the following service file, it does launch but it relaunches every 10 seconds causing the program to be launched infinitely many times. I just want the program to launch once. But if I remove this part: or change it to Restart=on-failure, nothing happens when the Raspberry Pi boots up. The program does not necessarily need to run in Desktop auto-login so if there is a possible fix in the console version that is fine as well. I just have it this way currently, so it is easier to check if the program is working as intended. I have also tried using crontab, but then nothing happened on reboot. Not with and not without the '&' at the end. |
How may i get /var/log/dnf.log to log times in my system timezone? Posted: 26 Oct 2021 10:33 AM PDT How may i get /var/log/dnf.log to log times in my system timezone? Neither man dnf nor google have yet enlightened me on this. Centos8/rhel8. |
X2Go shows black box but working desktop + icons on Wayland Xfce4 Raspberry Pi Posted: 26 Oct 2021 09:53 AM PDT I don't know what else to do. I am done with VNC's limitations and genuinely believe it's time for a big old tech replacement era, where all these old corpses like (X)org, VNC etc... get replaced by newer, modern and broader solutions. So I installed X2Go on the Windows 10 Client and Raspberry Pi 4 Host, which I will refer to as the Server from now on. The Server has all the needed packages for both rdp and x2goserver installed (with apt). The client shows the following result when connecting to it via XFCE selected @ 1024x768: As you can see, the black box is permanent. It was the only thing I saw when starting the session and the rest was only visible after I resized the window. How can I get rid of that black box? |
Add a variable inside double quotes with a dollar Posted: 26 Oct 2021 10:11 AM PDT I am trying to write for a command line through a serial port but on the text I have a variable that has a dollar sign My example: The thing is that the ID variable has a dollar sign: My question is: how can I do that? |
Steps to getting internet access in linux Posted: 26 Oct 2021 09:32 AM PDT My local system is not connecting to the internet. I am not able to access the internet. Could you please tell me the steps and files that I have to check for getting internet access. Im using linux. |
What is the difference between a Btrfs filesystem and a Btrfs partition? Posted: 26 Oct 2021 09:56 AM PDT The excerpt from here: https://linuxhint.com/resize_a_btrfs_filesystem/
What is the difference between a Btrfs filesystem and a Btrfs partition in this context? What i believe is that the partition is just a space range on a disk, which is written in some partition table. And the filesystem is the data structure inside that space range. How does this fit in the context of Btrfs resizing in the mentioned article? EDIT: what would be the reasons for rezising/shrinking a filesystem without shrinking its partition? Is it possible for two filesystems to be on the same partition? I want to online shrink Btrfs and create a new partition with the freed space, but this confuses me. |
Linux REGEX editor compatible with PCRE2 Posted: 26 Oct 2021 08:29 AM PDT Currently I'm using REGEX 101 to test/fix my texts, is there any Linux editor which is compatible with PCRE2 (PHP >= 7.3) so I can fix my texts even if I'm offline. ps: tried with Featherpad and Geany, seems missing some features (not sure if it's lack of configuration). |
"systemctl list-timers" shows 2 days left for a "daily" timer Posted: 26 Oct 2021 08:25 AM PDT I created a systemd timer with the following specification I wanted to test how the What does this mean? How can I create and test a proper daily timer? UPDATE: I think the cause of the "2 days left" is the fact that I ran the test on Oct 26, but the test was going back to Oct 23. However, I still think my question is valid. When the system clock was changed, why wasn't systemd's next trigger time re-evaluated based on the new UTC time? |
write awk script to find the sum of all numbers with same name Posted: 26 Oct 2021 09:43 AM PDT //add the numbers of same name: input file contains: output should be: here a has 12 and 13 so the sum is 25 the input file contains two columns name and a number separated by ":" we have to find the sum all number associated with the same name for example "a" has 12 and 13 so the sum is 25 |
How to resize mpg files with FFMPEG with minimum visual artifacts? Posted: 26 Oct 2021 08:40 AM PDT I have a mpg file that is 1920x360 in size. I am trying to resize it to 3840x576. My computer has a intel core i5 processor. I tried the command but the output has lots of visual artifacts though the input has no visual artifacts at all. What is the FFMPEG command to achieve this while minimizing the amount of visual artifacts? |
Posted: 26 Oct 2021 08:35 AM PDT So I'm trying to install xedit on Termux. I tried to execute configure with I checked GCC to see if it's working since the error also notified me that the C compiler doesn't work. And sure enough, it doesn't work and it produced this error: I'm using clang v13.0.0. This is on my phone, I'm using termux. |
Can I give a single non-sudo user access to run a single command without sudo? Posted: 26 Oct 2021 10:04 AM PDT Is it possible to give a single user without sudo access, the ability to run a sudo protected command like |
Posted: 26 Oct 2021 09:30 AM PDT It seems that As a side note, I just noticed that PowerShell also has a binding for Ctrl-L and it performs the same way as Ctrl-L on bash, seems the designers there took a lot from bash, but that |
How to substitute/delete a new line (\n)? Posted: 26 Oct 2021 09:38 AM PDT I got access to I'm currently processing a dictionary with more than half a million words and more than 6,000 pages (which was extracted from a PDF with ghostscript and converted to plain text). Is in a What I am trying to achive is to make it I should get as a result: That's easily done by stripping al newlines I am almost getting the result I want, but is not perfect. I can do this The reason why I'm not pleased with the output is because the original pdf was formatted to be printed on e.g If I process the file with the previous work flow, I got: So far what I managed to accomplish is this:
output Before even doing the second step I would like to remove the dash and new line ( So, my question is: How can I substitute/delete the specific string containing the dash What I like to get is: output (please, do check the dash and space ( Thank you. |
Posted: 26 Oct 2021 11:35 AM PDT Ok. So I'm not a linux user generally, but I haven't had a good experience with Windows so I decided to switch over and install Pop_OS. It was really good for a time, but I eventually realized I couldn't install a lot of the software I need to use for my work (Unity/Unreal/DaVinci Resolve for example). I want to uninstall the OS and switch to Windows 11 but I can't because every time I try to get to the boot menu, dialogue pops up and says "encryption key?". Then when I enter it, it just goes straight back into Pop!_OS. Is there any way to wipe the ssd or to get the computer to run from a thumb drive (actually access the boot menu)? |
Can you set RLIMIT_NOFILE to RLIM_INFINITY? Posted: 26 Oct 2021 08:26 AM PDT I'm using is it even possible to set |
Unable to mount HDD and concerns over the partition setup Posted: 26 Oct 2021 09:56 AM PDT Final Edit A quick note to say thanks for the comments, I certainly learned a lot. Unfortunately, having decided to return the HDD they tested it themselves and concluded that the device was faulty. I recently bought an internal 4TB HDD to add to a Ubuntu machine. This is my first attempt at adding an HDD to an established machine and mounting it to a specific location. Unfortunately, I'm running into some problems and all similar posts I've seen haven't quite resolved my issue. Therefore, I will try and give a complete breakdown of the steps I understood, followed and the errors I'm facing. My version of Ubuntu: Firstly, after many failed efforts at adding a partition to the HDD and mounting the HDD I've killed the table so consider this as my baseline: The disk is /dev/sdc When I use lsblk this is the output (sdc is at the bottom): And with sudo fdisk -l I then use gdisk (I have tried using Adding a new partition: Let's look at it with I want to call it store: (after a print) Finally write the partition table to disk and exit (with Let's look at the drives and mount points again ( I now want to mount my drive to a location called /store (yes, the same name as the partition on sdc1 - I hope that isn't confusing). This is where I run into an error: I am really not sure what to do from here. I've repeated the same process above but using parted. The steps are successful but again it fails when I try mounting. EDIT #1 Thanks for the comments. Turns out I didn't create a filesystem so I executed the following but had an error: I then install smartmodtools and used smartctl to test the new drive but I ran into a further problem: EDIT #2 I'm still struggling to get this drive to work. The disk support SMART (just checked BIOS), and this is what the kernel sees: |
Posted: 26 Oct 2021 10:37 AM PDT In pharmacies, certain drugs are put in a time-delay safe, which means there is a fixed lag between the retrieval request and the time the safe is able to open (say maybe 15 minutes). I'm wondering if it's possible to do this with the editing permissions of a file, where the delay is enforced even if you're root. And, if this is not possible, is it possible to encrypt a file in a time-delayed manner? Something more elegant and precise than "it would take about n years to brute force it". |
Create hotkey for hotkey sequence Posted: 26 Oct 2021 10:27 AM PDT I am using Ubuntu 20.04, and I'm one of those who enjoys Gnome. Even so, sometimes I like tiling my terminals for work. Usually I'll set them up like so: I use the Terminator terminal to achieve that effect. Now, it takes a lot of hotkeys to get to that setup. I have Terminator set as This was going to be a quick and dirty start to get done what I need to get done, but all that it does is open a new workspace ( Does anyone have a better recommendation of how to do this? |
shell script read from csv column and search files Posted: 26 Oct 2021 11:04 AM PDT I am creating a shell script to take input from CSV files, having two rows ( One Column mentioning time and another file string ).. My script works when there is one row... But it isnot working in multiple rows and also how can i know which row it is searching didnt got the files . Sample file: Code, I am trying to make it work. Files to search for |
Debian 9.4 stretch - unmet dependencies Posted: 26 Oct 2021 10:02 AM PDT I'm trying to get a game server started using SRCDS but whenever I try to get the dependencies using this command:
I get the following error: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: I've tried using fixes around the internet, such as Anyone have any ideas? |
How to extract the Root CA and Subordinate CA from a certificate chain in Linux? Posted: 26 Oct 2021 11:51 AM PDT I have an end-entity/server certificate which have an intermediate and root certificate. When I Is there any way I can view the intermediate and root certificate content. I need only the content of In Windows I can see the full cert chain from the "Certification Path". Below is the example for the Stack Exchange's certificate. From there I can perform a View Certificate and export them. I can do that for both root and intermediate in Windows. I am looking for this same method in Linux. |
Extend a LUKS encrypted partition to fill disk Posted: 26 Oct 2021 11:44 AM PDT I recently upgraded my disk from a 128GB SSD to 512GB SSD. The / partition is encrypted with LUKS. I'm looking for help extending the partition to use all the free space on the new disk. I've already dd'd the old drive onto the new one: There's about 380GB of unused space after sda2. More relevant info: There seems to be a lot of info regarding how to do this, but very little explanation. I appreciate any help on this. |
Can nmap display only hosts with specific ports open? Posted: 26 Oct 2021 12:27 PM PDT Can However, this lists hosts that have ANY of the list ports open, whereas I would like hosts that have ALL of the ports open. In addition, the output is quite verbose: What I'm looking for is output simply like: as the above host is the only one with ALL the ports open. I certainly can post-process the output, but I don't want to rely on the output format of nmap, I'd rather have nmap do it, if there is a way. |
Posted: 26 Oct 2021 09:04 AM PDT Are there any opensource/free Unix like RTOS that can run a virtual machine like QNX Neutrino RTOS (http://www.qnx.com/products/evaluation/eval-target.html)? |
Running Python script over multiple directories and multiple files Posted: 26 Oct 2021 12:02 PM PDT Here is my command line for I have a directory containing multiple directories. Out of these multiple directories, there could be 1 or more folders. In these 1 or more folders, I need to run my python script on the How do I do this? Example tree: My Python script will use the inputs |
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