Recent Questions - Unix & Linux Stack Exchange |
- Ubuntu: hardware enumeration
- How to start the GUI in Centos 8?
- How can force Debian 10 to set black screen but staying activated for a ssh connection
- Ethernet-Speed only 100 Mbps
- Removing delimiters from bash array elements, then transferring result to another array
- iostat + how to define util disk threshold on disks
- Postfix: sending outgoing mail through port 465/587 locally
- How can I apply a patch file to the kernel of my current Linux installation?
- Split ZIP files from Linux to Windows
- Wine click & drag not working with Adobe Fireworks.exe
- How to loop through the for loop and calculate the results of for loop?
- Unix PAM module fails on login/lock screen - Permission denied - exit code 13
- Why I am getting error in the else part of my shell script? [duplicate]
- Kubuntu: Keyboard behaving weirdly
- Matching Repeating Pattern Using Regex
- Full-text search for manpages and get the list of the name and descriptions from a console like apropos(1)
- Firefox slow + graphics issues
- What's the point of firewalling outgoing connections?
- How can I repair PolKit?
- Passing variables and functions through fakeroot
- bind: forwarding zone does not work when allow-recursive not allowed
- Installing .deb (Brackets.Release.1.13.64-bit.deb) package in arch Linux
- Ubuntu terminal - go to mouse cursor position
- Passing inline arguments to shell script being executed on HDFS
- Configure Chromium Browser in linux and open in windows using xserver via ssh
- Realtek 8723be wireless support, PC-BSD
- Hide curl output
- How to copy-merge two directories?
- Send file by xmodem or kermit protocol with GNU screen
- ed: set first line as the default current line
Posted: 25 Jul 2021 10:37 AM PDT I can't find an article about Ubuntu's ,v21.04, way to enumerate sound cards. Does anyone know how that happens? I have two sound cards in the computer, but only one shows up in jack2. Meanwhile, the onboard sound chip is disabled (do I also need to disable it logically? How?) and still shows up in Jack2 instead of the second card. Too, when I try to configure jack for the second card, jack stubbornly shows the onboard chip, but with (disconnected) as a comment. Paprefs doesn't show any hardware, just a checkbox that when checked is supposed to create a virtual card for all of the present cards. I don't see that happening anywhere. Thanks, John. |
How to start the GUI in Centos 8? Posted: 25 Jul 2021 10:06 AM PDT I had a fresh instantiation on Centos 8. I installed Server and GUI. everything was working fine. But then, I needed to install the Nvidia drivers for my GPUs. To install the Nvidia drivers, I followed these instructions. But now, I can't get the graphical interface to show up. When the PC boots up, I get a black screen unit I press Alt + F5 which prompts me to log in using the multi-user mode instead of graphical. I tried to execute I also tried When I execute How can I bring the GUI back up? |
How can force Debian 10 to set black screen but staying activated for a ssh connection Posted: 25 Jul 2021 09:53 AM PDT I have a I can't manage to get my monitor to black screen when I don't use it for example until 30 minutes. However, I have activated the extinction in I removed the boot options I would like also to be able to connect by Could anyone suggest me some other tricks who could allow to get this extinction ? |
Posted: 25 Jul 2021 10:16 AM PDT I'm currently using Pop!_OS and unfortunately I've encountered an issue with my Ethernet-Connection: My Internet-Speed on Pop!_OS is capped at 100 Mbit/s. My Internet-Speed from my ISP is 200 Mbps in Downstream and 8 Mbps Upstream so that is not the problem. Also before Pop!_OS I used Windows and I had 200 Mbps Downstream and 8 Mbps Upstream there. It is a wired connection too so it should be pretty stable most of the time. The Ethernet-Controller in my motherboard (MSI B550-A Pro) is the Realtek® 8111H Gigabit LAN controller. I already did some research but couldn't really find a solution. I hope you can help me! Edit: The ethtool says the following: |
Removing delimiters from bash array elements, then transferring result to another array Posted: 25 Jul 2021 09:59 AM PDT I am using an option variable array The function can then be called using But I want also to allow use of a separator The function can then be called using If user is using But first I have to separate the My question involves the task of constructing |
iostat + how to define util disk threshold on disks Posted: 25 Jul 2021 08:45 AM PDT as all know the last column is %util, if that is below 100, you can still put some IO load there. Of course, you always want to have some reserve, so 60-90% is a realistic target based on the stability of the workload and the required responsiveness. example from one of our rhel machines now , we want to build a bash script that will runs on all machines and will tell us if one of the disk/s is reached the %util threshold the Question is - how to defined the Util threshold? can we say for example if Util is more then 95% , then we should alert this? |
Postfix: sending outgoing mail through port 465/587 locally Posted: 25 Jul 2021 08:19 AM PDT I've got a mail server set up using postfix, dovecot, opendkim, and spamassassin. After a bit of hassle, I managed to get incoming mail working--I even set this account up using that server. However, I've got a problem with outgoing mail. My ISP, fat as it is, blocks communications through port 25... meaning that, obviously, sending messages doesn't work. Here's logs after attempting to send to my old Protonmail account (from Neomutt on an external machine): So, yeah... ISP blocks port 25 (outgoing), so I need a way to bypass this. One way I saw a lot about was configuring to use an external smtpd. I'd either have to use my ISP's (not ideal) or, set up postfix on my friend's VPS (not exactly ideal either but if all else fails I'll ask him). TECHNICALLY I could ask my ISP to unblock port 25, but that, well, might not work. However, I'd instead like to route all outgoing mail to port 465 or 587 of external servers, not 25, using only my local postfix setup. I couldn't find anything about this online, and changing the outgoing smtp port to an alternate port in
|
How can I apply a patch file to the kernel of my current Linux installation? Posted: 25 Jul 2021 07:23 AM PDT I want to apply a patch file to my current Ubuntu install (patch file example). What is the process to properly apply a patch file to my Linux kernel? Do I need to go through the whole process of applying the patch to a disk image file, flashing that to a USB and installing a new copy of Linux? Can I just patch the current install? Or can I patch a disk image and then use that to upgrade my current install? What I've tried:
But no patch is applied, the output is: What is the right way to do this? Note: this question is different than how to patch any random file. I know how to do that. The question is specifically about how to patch the currently installed kernel. |
Split ZIP files from Linux to Windows Posted: 25 Jul 2021 07:00 AM PDT Zip in Linux generally supports the splitting of archive files into fractional zip files. They can then be readily recombined in Linux to form the original larger zip file. Is there a method which works with Windows and does not require scripts or CL directives? |
Wine click & drag not working with Adobe Fireworks.exe Posted: 25 Jul 2021 06:54 AM PDT I have Adobe FIreworks installed and everything seems to work flawlessly. Expect however being able to click and hold things down. Everything else works without any flaws. I do however have an issue that Fireworks is "On Top" of everything unless I minimise. It is not clear, but when I use the eraser I am clicking and dragging, but only the first click is registered: https://www.youtube.com/watch?v=3vC5zOjDZV4 I believe that |
How to loop through the for loop and calculate the results of for loop? Posted: 25 Jul 2021 07:11 AM PDT I am trying the below script in which I am expecting to receive two files in the filesdir folder on date1. If the date is 1 then it should check if two files are received or not, so thats why I m trying to increment a counter "count" each time it iterates and checks the loop. If the date is 1 and file not received then it should wait for few seconds and check again(because surely files will get received). If date is not 1, then it should remove those files and come out of the while loop. I am trying the below. I am not getting what I exactly want. Instead getting errors in the if else part. |
Unix PAM module fails on login/lock screen - Permission denied - exit code 13 Posted: 25 Jul 2021 07:20 AM PDT How it works?I'm back with yet another issue I can't figure out by myself. Basically what I have is 2 factor authentication (2FA) module based on Python PAM and with NFC card reader. Once user is prompted for password 2FA Zenity dialog pops up asking for PIN code, user enters it and auth is successful. When it breaks?This solution works great while user is logged in, when saving files and being asked for password or using Code examples:
Error!As mentioned above, once I'm locked out or restarting machine and trying to login via lock/login screen I get this error in My attempts to fix this:
Question!?What am I doing wrong? I'm really new to PAM module development, but I have feeling that permissions are being denied due to fact I'm running GUI as root, but I'm not willing to shoot blindly.. so I'm reaching out to Unix gurus - please help! Thanks in advance, @richardev Update #1Reading related articles and comments, and talking on some other forums it seems that the issue here is most likely due to Zenity or the PAM module itself not being able to run as GUI. To do that I'm supposed ti integrate it via display manager - in my case I have SDDM. I will try to test some scenarios in Update #2
|
Why I am getting error in the else part of my shell script? [duplicate] Posted: 25 Jul 2021 06:54 AM PDT I am trying the below script in which I am expecting to receive two files in the filesdir folder on date1. If the date is 1 then it should check if two files are received or not, so thats why I m trying to increment a counter "count" each time it iterates and checks the loop. If the date is 1 and file not received then it should wait for few seconds and check again(because surely files will get received). If date is not 1, then it should remove those files and come out of the while loop. I am trying the below. I am not getting what I exactly want. Instead getting errors in the if else part. |
Kubuntu: Keyboard behaving weirdly Posted: 25 Jul 2021 06:56 AM PDT This happened all of a sudden. l pressing. L = L + ENTER. DOwN = 9 + DOwN UP = o + UP SPACE = "." + SPACE eg. if I type "Hello" space "world" it will display as "Hello. World" generic 104 key. layout |
Matching Repeating Pattern Using Regex Posted: 25 Jul 2021 10:16 AM PDT Let's say I have a file like following Only combination of following rules should be considered as valid:
The lines could ending with comma should also be considered valid I want to extract only As the other lines shown below do not match the rules Because some lines have incomplete ranges, some have missing numbers in groups P.S: A |
Posted: 25 Jul 2021 07:47 AM PDT Is there any way to do a full-text search for manpages and get the list of the name and descriptions of relevant manpages from a console like You can full-text search the content of manpages with
|
Firefox slow + graphics issues Posted: 25 Jul 2021 08:48 AM PDT I recently switched from Windows to Linux (Pop!_OS). Although I'm very pleased with Pop!_OS there are a few problems that I couldn't fix yet: Google Maps/Earth is very slow on Firefox. On Maps you don't even get 3D-View and zooming is not smooth. Browser-Games like slitherdotio and Happy Wheels lag and have graphical artifacts. (This "Play"-Button e.g. has this weird corrupted-looking background) I hope you can help me out. Thank you in advance! Edit: The Terminal says the following if you type "lspci": 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge 00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge 00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge 00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge 00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge 00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge 00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge 00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge 00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] 00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge 00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 0 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 1 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 2 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 3 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 4 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 5 00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 6 00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 7 01:00.0 Non-Volatile memory controller: Micron/Crucial Technology Device 5403 (rev 03) 02:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43ee 02:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43eb 02:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43e9 03:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea 2a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) 2b:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch (rev c5) 2c:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch 2d:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 (rev c5) 2d:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device ab28 2e:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function 2f:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP 2f:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP 2f:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller 2f:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller |
What's the point of firewalling outgoing connections? Posted: 25 Jul 2021 09:52 AM PDT I have a firewall (csf) that lets you to separately allow incoming and outgoing TCP ports. My question is, why would anyone want to have ANY outgoing ports closed? I understand that by default you might want to have ALL ports closed for incoming connections. From there, if you are running a HTTP server you might want to open port 80. If you want to run a ftp server (in active mode) you might want to open port 21. But if it's setup for passive FTP mode, a bunch of ports will be necessary to receive data connections from FTP clients... and so on for additional services. But that's all. The rest of ports not concerned with a particular service that the server provides, and especially if you are mostly a client computer, must be closed. But what about outgoing connections? Is there any security gain in having destination ports closed for outbound connections? I ask this because at first I thought that a very similar policy of closing all ports as for incoming connections could apply. But then I realised that when acting as a client in passive FTP mode, for instance, random high ports try to connect to the FTP server. Therefore by blocking these high ports in the client side you are effectively disabling passive FTP in that client, which is annoying. I'm tempted to just allow everything outgoing, but I'm concerned that this might be a security threat. Is this the case? Is it a bad idea, or have it noticeable drawbacks just opening all (or many) ports only for outgoing connections to facilitate services such as passive FTP? |
Posted: 25 Jul 2021 08:24 AM PDT First let me describe my system. It's Mint 19.0 (Tara). Mint itself isn't the problem, but it's upgrade mechanism seem to have triggered the issue. It came after upgrading from Mint 18.3 to 19.0. I did post a question on Mint's forums, but then I did not know what was broken, and in the process of finding that out I kind of "overloaded" my issue report there. So I try to be concise here. PolicyKit has some problem authorizing priviledge escalation. I am the owner of the system, and previously there were only my account and a guest account. After upgrading, I could no longer launch Synaptic via the menu (which calls Launching Quote from My guest account, however, can do everything. It is asked for the password, and then Synaptic, Upgrade Manager, just everything works as intended. Also, when I create new users (regardless whether they are created as admins or as users, and added to sudo group) they also can to everything. So I figure it is somehow connected to the user ID. Another observation: I know GUI programs shouldn't be launched via I have already checked that
I also did on everything PolKit related. Everything else besides PolKit runs just fine... I can add inxi statement, if that helps. |
Passing variables and functions through fakeroot Posted: 25 Jul 2021 07:04 AM PDT I want to use fakeroot for a project, but the project has lots of functions and variables that I need to pass through to fakeroot. but it doesn't run |
bind: forwarding zone does not work when allow-recursive not allowed Posted: 25 Jul 2021 08:24 AM PDT I have the following setup:
What I try to achieve: When a DNS query from the outside world reaches the first DNS server for a record belonging to the zone I explicitly don't want to do zone transfers or make the second DNS server reachable from the internet. my configuration looks like this: (I only copied the [what I think] important parts to here) On the first DNS-Server My issue: When I am in a local network, that is whitelisted in the During debugging, I adjusted the How can I set |
Installing .deb (Brackets.Release.1.13.64-bit.deb) package in arch Linux Posted: 25 Jul 2021 10:01 AM PDT The latest release of Brackets (v1.13) is not available in the AUR. So I downloaded the official .deb package from the official site. Now how do I go about installing it ? Do I have to write a PKGBUILD? I won't know it's dependency and all. I have converted it to an arch package with Debtap. But How should I go about this ? |
Ubuntu terminal - go to mouse cursor position Posted: 25 Jul 2021 08:19 AM PDT I often run my research experiments through my terminal. The command is a very long one, and often I find the need to change a parameter to the call. The problem is that the call line is long, and the parameter is for example in the middle of the line. To replace the parameter I must keep holding the left arrow/right arrow until I reach the point where the parameter is, then delete and rewrite the characters. Is there a way to navigate the terminal command line using the mouse cursor position? Clicking in the middle of the line doesn't do anything, of course. Example:
|
Passing inline arguments to shell script being executed on HDFS Posted: 25 Jul 2021 08:03 AM PDT I am running a shell script stored on HDFS (so that it can be recognized by my oozie workflow). to run this script I am using However I need to pass inline arguments to the script. On the CLI I would simply do this with Then echo the varaiable with $1. I am trying to figure out how I would do the same with a script stored in HDFS |
Configure Chromium Browser in linux and open in windows using xserver via ssh Posted: 25 Jul 2021 07:09 AM PDT I am trying to install chromium browser in linux and start apache on linux. After that I have to open an ubuntu web page in Chromium on my windows machine via ssh using Putty or Mobarterm. Chromium is installed on linux but when I run command: chromium:browser on linux via Putty it throws error:
|
Realtek 8723be wireless support, PC-BSD Posted: 25 Jul 2021 09:03 AM PDT I have an HP 455 Probook with AMD10-7300 processor and Realtek 8723be wireless card. I would like to install PC-BSD. Is there any hope of wireless working? I wish there was a live disk I could use to test before installing. |
Posted: 25 Jul 2021 08:51 AM PDT I'm making a curl request where it displays an html output in the console like this etc I need to hide these outputs when running the CURL requests, tried running the CURL like this But it still displays the output, how can I hide the output? Thanks |
How to copy-merge two directories? Posted: 25 Jul 2021 10:36 AM PDT I have two directories images and images2 with this structure in Linux: ... and other 4000 folders and the other is like: ... and other 4000 folders Each of these folders contain images and the directories' names under images and images2 are exactly the same, however their content is different. Then I want to know how I can copy-merge the images of /images2/ad into images/ad, the images of /images2/foo into images/foo and so on with all the 4000 folders.. |
Send file by xmodem or kermit protocol with GNU screen Posted: 25 Jul 2021 09:17 AM PDT I work with an RS-232 device via GNU At some point I need to send a local file to the device using either the |
ed: set first line as the default current line Posted: 25 Jul 2021 08:49 AM PDT I am trying to use |
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