Recent Questions - Unix & Linux Stack Exchange |
- How to test starttls+sasl config?
- Install oracle on an AIX VM virtualizing with QEMU
- Question about Ubuntu 20.04 disk partition during installation
- Linux IPTables - Do not change Source IP
- Using rsync with passed filed
- where is main function in shell script?
- Need help with a script which copies all files from a folder to another based on time stamp
- How to put multiple -I, -L and -l flags in ./configure?
- File Comparison
- Using wildcard elegantly
- Bash process gets killed in HPC
- Microsoft Team 100% CPU usage
- Iteration on arrays
- How do I get an ssh command to run on boot?
- Display Systemd's ExecStart instruction with resolved environment variables
- Use bash instead of tcsh for non-interactive shells
- ftp...Return to your local Kermit and give a RECEIVE command
- Delete files in a directory only when cumulative sum of files size exceeds xGB
- Use awk to delete everything after the ","
- Extract sub-directory name based on pattern
- Delete the oldest files in folder if combined size of folder is more than 10G
- Renaming and cleaning up filenames of TV shows to be S01E01.mp4 etc
- Problem with GTK applications
- How do I safely delete old kernel versions in CentOS 7?
- Can change monitor resolution of a SyncMaster SA850 and Intel HD graphics
- Finding the sector size of a partition
How to test starttls+sasl config? Posted: 17 Sep 2021 10:04 AM PDT I have a requirement to provision SMTP authentication services running in the cloud. I have setup postfix and confirmed that it does not allow relaying without authentication (tested with telnet) and that it requires starttls before authentication. My problem is how to test whether relaying works with authentication. A DNS (A) record has been configured for the service. Client-side I am using Mint 18.3 I first tried with Thunderbird - however that required me to configure both the incoming and outgoing servers at the same time. I install a pop3 server and ensured it was running, however the authentication for the pop3 service failed. Unfortunately the create email button is greyed out - I'm guessing its because the pop3 isn't working, but I don't want to spend a lot of time trying to fix that in order to find out is the SMTP stuff is working. I then tried mutt. After find the relevant configuration options in the man page, I created a ~/.muttrc with: On starting up mutt, it complained it didn't recognise any of these (but they are all described in the man(5) muttrc page which came with the package!). Checking online I saw references to 'aerc' - but that is not available from repo on my machine. Can anyone suggest how to proceed? |
Install oracle on an AIX VM virtualizing with QEMU Posted: 17 Sep 2021 09:13 AM PDT I installed a Linux VM in the virtual box, and inside it I installed the QEMU package and virtualized an AIX 7.2 image. All installation went correctly, but when I try to install on the AIX operating system, an Oracle 11g database, I get a Segmentation Fault error Start VM Qemu: Command: Details: Links: |
Question about Ubuntu 20.04 disk partition during installation Posted: 17 Sep 2021 08:54 AM PDT I am trying to install Ubuntu 20.04 on a NVMe disk. The installation wizard shows below disk info: I don't quite understand it. My questions are:
|
Linux IPTables - Do not change Source IP Posted: 17 Sep 2021 08:58 AM PDT I am new to IPTables, so I am basically flying by the seat of my pants. I am currently working on a Squid server and I have managed to make it proxy correctly and all that; however, I would like the server to only intercept port 80 and 443. Currently with the basic Squid setup, it appears to intercept and rewrite all traffic - DNS, Active Directory ports, et cetera. I took a step back, stopped Squid, and decided to attempt to simply forward traffic through that server and not do anything to the traffic, as if it was simply physically inline. I think I have managed to do this, but it looks like it is rewriting all traffic. For example, in my router I can block my actual client IP address from passing DNS traffic, but looking at the state traffic, I can see the server (even without running the Squid software) is actually making all the requests. This, of course, makes firewalling impossibly difficult from my router. Below is just my basic config to allow packets to flow through the server: There are no other rules under any of the other chains, nor is the server masquerading under the NAT chain. What can I do to get traffic to flow through my server without it rewriting anything? Output of iptables -t nat -L -nv Output of iptables -L -nv |
Posted: 17 Sep 2021 08:30 AM PDT I want to shuffle a set of files using |
where is main function in shell script? Posted: 17 Sep 2021 08:26 AM PDT I am using FUNCNAME array variable that gives us various executing functions name . While using it , I came across |
Need help with a script which copies all files from a folder to another based on time stamp Posted: 17 Sep 2021 08:08 AM PDT I need to supply start time and end time . i.e I want all files from 3 am to 6 am on sep 10th Source folder has files as below
expected output in destination folder
Please help. |
How to put multiple -I, -L and -l flags in ./configure? Posted: 17 Sep 2021 07:53 AM PDT I am trying to build using I have
How can I put all these flags effectively as options in |
Posted: 17 Sep 2021 08:40 AM PDT I have two files with FILE1 containing lots of lines and FILE2 with KEY VALUE parms. I need to compare FILE2 with FILE1 and if there is match the corresponding word in FILE1 should be replace with next column in FILE2. Example: FILE1: FILE2: So for every match from FILE2 in FILE1, the corresponding word in FILE1 should be replace with 2nd column in FILE2. So the desired output should like: I tried using sed with limited knowledge but not achieving the desired output. Appreciate your time and support |
Posted: 17 Sep 2021 08:01 AM PDT I am executing the below command for 1000 files: Apparently, instead of manually doing this for 1000 files, one could write a bash script for the job. I was wondering if there is an easier way to do something like this in UNIX though, a small command that would look something like Can you use wildcards in a similar way, that works for a scenario like the above? |
Bash process gets killed in HPC Posted: 17 Sep 2021 07:21 AM PDT I am new to bash scripting and I am using the below script to automate my job submission. This scripts waits for the previous job to finish and automatically submits a new job. I run this with This is the output when I do But after sometime, the process gets automatically killed with out any error message or warning. Am I missing something ? Lemme know, Thanks. Edit: I logout and login to frequently to check the progress. Output for |
Posted: 17 Sep 2021 08:24 AM PDT Occasionally Microsoft Teams will decide to continuously utilize 100% CPU of one core and not stop unless it is killed. Is there a better solution to this problem than to kill it and hope it won't do it again soon? |
Posted: 17 Sep 2021 07:29 AM PDT I need to create sript to check pools statuses. Each of the pool will return scan result like below: I need to iterate on each of them and check if the scan is completed. And if all of them contain scrub repaired then do something. If there is one in progress or two, I need to check them lets say every 5 seconds and wait all of them to complete. So far I have this without the do/until loop: |
How do I get an ssh command to run on boot? Posted: 17 Sep 2021 09:06 AM PDT I've tried putting an ssh comand in /etc/rc.local: /tmp/ssh-nginx.err: Adding the same command in crontab (line is What's the right way to do this? |
Display Systemd's ExecStart instruction with resolved environment variables Posted: 17 Sep 2021 08:09 AM PDT Wondering if there's a way to extract the complete Example: The typical But I'm looking for the interpreted version of the above so that the content of the environment variables is properly displayed. I would expect this state to be available somewhere in systemd's engine, as I believe that this one must be already aware of the existence of the environment-files where these variables are expected (as declared above in And sure, I can write a script to parse the service file and obtain all this info, but I suspect / hope that there's an easier approach. |
Use bash instead of tcsh for non-interactive shells Posted: 17 Sep 2021 07:20 AM PDT I have an environment similar to the one in this question: Different shells for interactive and non-interactive work I'm currently stuck with tcsh as my "official" default shell. For interactive shells, I essentially Is there any way to have bash be the shell for non-interactive shells? Ie, if I do Currently if I Is it even possible to do what I want to do? |
ftp...Return to your local Kermit and give a RECEIVE command Posted: 17 Sep 2021 08:52 AM PDT I'm testing ftp/kermit (trying command line to see why it's not working with script), and for some reason I get "Return to your local Kermit and give a RECEIVE command", but there wasn't a spot to enter it at that statment...there were weird characters on the screen at that point. I'm not sure what this refers to and haven't found much useful info with a search online. This is what I'm seeing. I'm not exactly sure about the feedback from kermit. |
Delete files in a directory only when cumulative sum of files size exceeds xGB Posted: 17 Sep 2021 09:30 AM PDT I have a directory, with thousands of files. I need to sort the files in desc order (to make sure that the newest files wont be deleted), and start summing the size of these files until the summation reaches xGB (example 10GB). Once that is reached, i need to be able to delete all the files (that are already sorted in desc order), that come after those 10GB files. So, the contents of my directory should NOT exceed 10GB in size. I need to be able to accomplish this without the usage of GAWK since I don't have GNU system. Is this doable with the find command only? |
Use awk to delete everything after the "," Posted: 17 Sep 2021 08:57 AM PDT I have a variable, All I want is but I get no output. I tried using I want to use out as a variable "$out" somewhere else -- not to print. |
Extract sub-directory name based on pattern Posted: 17 Sep 2021 08:20 AM PDT I have a list of paths stored in a shell variable I want to create new directories based on the matching patterns from the paths. In the above example, I want to create directories My output should be something like: How do I achieve this? |
Delete the oldest files in folder if combined size of folder is more than 10G Posted: 17 Sep 2021 07:22 AM PDT The following syntax will remove the files under I am trying to do the following: Remove the oldest files under NOTE - the deletion process will stop when size under hive folder is exactly 10G , so purging process will start if size is more then 10G Can we create this solution with find command or maybe another approach? |
Renaming and cleaning up filenames of TV shows to be S01E01.mp4 etc Posted: 17 Sep 2021 07:24 AM PDT If I have some TV Shows that are named badly and I need to clean them up I need to batch rename them to become I have used the following script and it works but only when the original filenames contain Series and Episode numbers 01 02 03 and not 1 2 3 I need to make this code either change any 1 2 3 4 5 etc in the filenames to have a 0 padding before running the 2nd renaming loop or just alter the code I already have to change either 01 or 1 regardless of the 0 padding. Sorry if this seems really obvious but I am new to bash so please forgive me. I have updated the script and now I have issues with episode 8 and 9. I get the following error So episode 8 and 9 are missing but there is one extra file S02E00.mkv for each series with over 7 episodes. The adapted script See http://pastebin.com/2XRH85ua for the full outcome of the test run. |
Posted: 17 Sep 2021 09:08 AM PDT I did an upgrade with When I tried to run firefox, this is the output: with mousepad: and chromium: Searching a while I found Also, I tried reinstalling glib2, glib gtk and gtk2 but none of it worked. |
How do I safely delete old kernel versions in CentOS 7? Posted: 17 Sep 2021 07:11 AM PDT I might be encountering odd symptoms resulting from competing kernels in CentOS 7. So how do I safely delete the old kernels? And how do I know which kernel is the newest one? Below is the terminal output I get at the moment when researching this on the server in question. Note that I tried package-cleanup but it leaves the same 2 kernels: The instructions in this tutorial say that the output of the following two commands should match, but you can see that they do not match, even after a reboot: The remaining commands confirm that there are two kernels, and illustrate attempts to delete the old one. I also opened up I assume that Can someone please explain how this works, and in specific, how to safely delete old kernels so that kernel version can be eliminated as a possible cause of odd symptoms? I want to make sure that the most recent kernel is the only kernel that can ever run, no matter how the system is restarted. |
Can change monitor resolution of a SyncMaster SA850 and Intel HD graphics Posted: 17 Sep 2021 08:01 AM PDT I have installed Debian 7.2 from liveUSB and connected the monitor Samsung SyncMaster SA850 with DVI cable into integrated Intel HD graphics. However I have very low resolution and can't change it. In addition, the system doesn't want to shut down (drivers update didn't help). With VGA cable everything works fine. Configuration: I have ASUS H87-Pro motherboard and Intel Core i7-4770K. Linux kernel 3.2.0-4-amd64 |
Finding the sector size of a partition Posted: 17 Sep 2021 09:12 AM PDT I answered this question, assuming that the How do I query a device, or the image of a device, to find the correct sector size? |
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