Recent Questions - Unix & Linux Stack Exchange |
- Merge (not concatenate) a video file with audio file
- What is going on with my ethernet interface?
- Can I clone a branch of an unrelated remote repo into a branch of my git repo, and keep it updated?
- Shell script to count the number of different vowels in a text file
- read_passphrase being called on SSH key even though SSH key is not protected by password
- nmap & ssl-enum-ciphers
- Front Panel Not Working - ALC 4080 - Archlinux
- Is there a difference between these two Linux server commands?
- How do I cut power from USB ports when the laptop is suspended?
- Skype test call fails
- Delete files in debian-based did not free up space
- Socks Proxy Connection Iptables Settings
- If we use the Windows 10 or 11 Linux subsystem, is it as if we boot up Linux?
- How to get filename if the data is available
- Prune search tree if file is found
- Installed Plymouth theme, boot now hangs after grub menu with no details [Manjaro]
- Migrating user IMAP files/data to another hard drive/server
- How to use unison-jz inside a bash script?
- How to replace lines which has no data with the previous line's data
- Recover overwritten partition table of LUKS drive
- Is it possible to set serial speed for an early kernel boot log to a MMIO UART?
- Raspbian restart network without reboot
- Glitchy Debian Install screen - both standard and graphical
- What is the correct way to view your CPU speed on Linux?
- Make `column` use a single space as column separators in output
- 'ps' arguments to display PID, PPID, PGID, and SID collectively
- How do I write a retry logic in script to keep retrying to run it upto 5 times?
- Key mappings in Linux
- What exactly is POSIX?
- Colorizing your terminal and shell environment?
Merge (not concatenate) a video file with audio file Posted: 13 Dec 2021 06:55 AM PST I have a video file and an audio file. Video file:
Audio file:
My OS: Ubuntu 16.04. I also have vlc After searching a lot on web, I am mostly getting solutions to concatenate. I want to merge and not concatenate. In the merged output I want audio of both I tried this command: The above command was able to do the job to some extent. But the |
What is going on with my ethernet interface? Posted: 13 Dec 2021 06:54 AM PST I bought a laptop this year, not via this website but from a vendor on Amazon. I cannot connect to the internet via cable and I'm afraid that my network interface is not working correctly for some unknown to me reason. My environment: Ubuntu Desktop 20.04 LTS (the problem was present on Windows as well - the OS that that laptop was shipped to me). I can connect through the same cable from another laptop. WiFi works fine on this laptop. I ran I've trimmed the last line of the output in order to avoid doxing the details of my wireless interface. Having identified the name of the interface in question as which returned the following output (irrespectively of the cable being plugged in or not). I've tried also and got the following output (irrespectively of the cable being plugged in or not): My question is what is going on with my ethernet interface? |
Can I clone a branch of an unrelated remote repo into a branch of my git repo, and keep it updated? Posted: 13 Dec 2021 06:59 AM PST I have a local repo with some code in it in different branches. There happens to exist a git repo out in the world that has the same software, but a disconnected git history. (I don't think it matters, but I know for sure that that repo uses a different branch naming scheme than mine, so there are no conflicts.) I want to clone a specific branch of that remote repo into a new, matching branch of my local repo, and subsequently be able to update it with Is this possible, and if so... how? |
Shell script to count the number of different vowels in a text file Posted: 13 Dec 2021 06:54 AM PST I'm working on a script that should take a given text file and figure out how many characters, vowels, and how many of each vowel is present. The first part was easy but I'm having problems with the loop. My understanding is that the myString count becomes the loop count. Each time it reads a character it goes through the if/elif statements and when it matches a vowel, it increases the value of that vowel's corresponding variable by 1. Shellcheck.net doesn't like my lines but I'm not understanding why: |
read_passphrase being called on SSH key even though SSH key is not protected by password Posted: 13 Dec 2021 06:18 AM PST I have a staging server and a production server, and I run identical Bitbucket Pipelines, where I send some commands over SSH. Unfortunately, my pipeline for the production always fails with: I've tried everything, folder permissions, recreating the keys, nothing works. Finally with adding On my staging server, I see something like this: and the rest of the build follows flawlessly. On my production server, however, I see the following: So it would look like the key is found on my production server, but for some reason on the production server Another way of looking at it is that Any help here would be greatly appreciated, this is driving me crazy! |
Posted: 13 Dec 2021 05:59 AM PST I am trying to check for the offered ciphers with It's working fine but for a single case:
I don't really get why both Fedora machines give a result from macOS but not when scanning from How can I debug the proble |
Front Panel Not Working - ALC 4080 - Archlinux Posted: 13 Dec 2021 05:38 AM PST I built a system with MSI Z690 MAG Tomahawk DDR4. It has ALC4080 codec. I found similar problems on google. Output of I have a speaker connected to the rear audio panel and everythink works fine. But when I plug a headphone to the front panel, speakers keep working and no audio from headphones. I made some research found out that front panel actually works using a I tested with this command below.
If I use the command above on the terminal I can have a sound with my headphones plugged in to the front panel. Anyone know how to solve this issue ? Note: OS: Arch Linux |
Is there a difference between these two Linux server commands? Posted: 13 Dec 2021 05:23 AM PST When starting, restarting an apache server is there a difference between the following commands? AND I'm just learning a little bit about Linux servers by playing around with the LAMP stack, but I want to know why certain guides use one syntax and other guides the other. |
How do I cut power from USB ports when the laptop is suspended? Posted: 13 Dec 2021 05:20 AM PST I have a laptop that's always connected to a USB powered cooling fan. When I had windows as the OS, that fan stopped working, on Ubuntu all USB ports are providing power when suspended. Is there a way to cut off power from the USB ports when it's suspended? Another solution I thought of would be to hibernate instead of suspending, but I don't seem to have that option. I don't even know where to start to solve this, any idea? |
Posted: 13 Dec 2021 04:59 AM PST I installed Devuan Chimaera on new hardware and as the result Skype no longer works. I can start skypeforlinux and test both audio and video successfully. But the Skype test call fails. I do not hear my voice. I do not have a desktop environment. I have pavucontrol installed but not pulseaudio. I closed my tor browser but it didn't help. I have Firefox-ESR installed. I have plenty of bandwidth and and a reliable wifi connection |
Delete files in debian-based did not free up space Posted: 13 Dec 2021 06:34 AM PST I am using linux deepin 20.03 that based on debian 10.10 on my laptop. Some days before, I deleted some files (at least 60GB) from my partition with rm command. But theirs space didn't free up. Are there any way for solve this? Here is my content size: Here is result of Here is my I have rebooted my laptop several times and the problem persists. |
Socks Proxy Connection Iptables Settings Posted: 13 Dec 2021 05:12 AM PST i hope someone could help me because i can't get any further: I have the follwing Setup: System 1: PC Windows (192.168.240.2) System 2: PC Ubuntu (192.168.240.3) On the Ubuntu System i opened a ssh connection to a vpn provider, localport on the Ubuntu System is 5080 remote Port of the VPN Provider is 3128 (http Proxy): ssh -N -oUserKnownHostsFile=perfect_privacy_known_hosts -L 5080:127.0.0.1:3128 -v pp1989124@erfurt.perfect-privacy.com If i use Firefox with with Foxy Proxy on the Ubuntu System and connect to localhost:5080, the traffic goes trough the ssl tunnel to the vpn provider an everhting works fine. Now i want to connect from my Windows Client via Ubuntu Client to VPN Provider. So i made the same, on the Window Client i put in foxy Proxy the IP Address of the Ubuntu Client 192.168.240.3 and the port 5080. But this won't work (i think because the ssh tunnel on the ubuntu clients listen on localhost and not 192.168.240.3) What will i have to do to make it works Best regards sangul |
If we use the Windows 10 or 11 Linux subsystem, is it as if we boot up Linux? Posted: 13 Dec 2021 05:25 AM PST That is, if we have Windows 10 or 11 and then use the Linux subsystem, such as Ubuntu, would we be using the binaries as if we create a bootable Linux PC? So if we have Windows 10 or 11, and we create a Linux subsystem, such as Ubuntu, then while we are using that Linux Bash or Zsh command prompt, does it use the same binaries if we install
as if we just create a bootable Linux drive or USB drive and boot up from there? Actually, Ruby or gcc or cc might be no problem, but if it is the GPU drivers, won't that conflict with Windows native GPU drivers? |
How to get filename if the data is available Posted: 13 Dec 2021 06:17 AM PST My input files are The code I have right now to get the sequence number behind The output i get from this code which is stored in May i know how the code can be modified in order to get the filename (just the number) of the data listed in The expected output: |
Prune search tree if file is found Posted: 13 Dec 2021 04:37 AM PST I need to search a rather big directory hierarchy for regular files with names matching a particular filename globbing pattern. The hierarchy is so big (both very deep and with some enormous directories) that it would take far too long to take a naive approach: (Where Due to the nature of the directory structure, I know I could introduce an optimization to prune the search tree if Since applying Question: How do I avoid searching the subdirectories of the directory that contains the file(s) that matches the pattern? |
Installed Plymouth theme, boot now hangs after grub menu with no details [Manjaro] Posted: 13 Dec 2021 06:58 AM PST I decided I wanted to get my hands a little dirty and make a custom Plymouth boot theme. I basically just copied one of the defaults and changed some of the parameters and added my own image. Now on boot, I get to grub but after selecting Manjaro the screen goes to boot but hangs with the cursor in the top left staying solid. Not able to type or hop into console with CTRL+ALT+F2. I have access to the drive because I'm dual-booted with Win11 so could potentially edit files on my linux partition. I also could get a new live boot USB to try to repair, but not sure if any of these are the right way to fix this. Does anyone have any suggestions on how I could approach fixing this? Manjaro XFCE on Razer Blade RTX 2070 but intel CPU is what handles display (laptop) Linux Kernel 15.7?? the most recent stable for manjaro. EDIT: Thanks to a little push from Bravo I have access to the partition from my Tails USB I carry around. Still have no idea how I should go about removing Plymouth. Gonna try and dive into some documentation. |
Migrating user IMAP files/data to another hard drive/server Posted: 13 Dec 2021 06:56 AM PST Due to a machine crash, I need to move my mail server to another host. This includes user IMAP, but as the old server is not accessible I can't just drag and drop in an imap client application like Thunderbird. Rather, I have the old hard drive, and am trying to move the file structure to the new /home partition. I have not yet had success. I have copied ( The Could it be the permissions on the Dovecot index files? The old and new both use Dovecot. I don't have the version for the old one; when it was running it had CentOS 7, fairly well updated. The new one is 2.3.8. The configuration for storage and mail folder type should be the same: {mail_location = mbox:~/~mail:INBOX=/var/spool/mail/%u} The new and old users are not necessarily the same (UID and GID), though the names match. I have, for one box, changed the owner for all files in and under $HOME/~mail to be owned by that user, to no avail. EDIT 13Dec21: I have determined that it is NOT a permissions/ownership problem. I was able to create a new folder via my imap client (Thunderbird), and it showed properly. I then examined the ownership and permissions of the created files and directories and duplicated them in an existing folder. This did not work; the folder still wouldn't show. Next is examining and possibly doing surgery to the actual dovecot index files that are created, since clearly it's not like I'm going to lose anything more. |
How to use unison-jz inside a bash script? Posted: 13 Dec 2021 04:52 AM PST
I had the However, I want to do the same from inside a This is a MWE version of the How can I make the shell script use the snapped Both client and server use bash shell on ubuntu (client: 20.04, server: 18.04). What I've done on the command-line:
This works fine from an interactive |
How to replace lines which has no data with the previous line's data Posted: 13 Dec 2021 06:18 AM PST Input I have to replace the lines contains "NoValue". Time will be replaced with last recorded time with the increment of 10s (10seconds) Value will be replaced with last recorded time Flag will be replaced with Actual My result will be displayed as, |
Recover overwritten partition table of LUKS drive Posted: 13 Dec 2021 05:22 AM PST I decided to edit the question fundamentally as I found out what happend. So do I have any chance to recover the origin partition table? I am sure the device had only one partition covering the complete drive. Many thanks in advance Leo |
Is it possible to set serial speed for an early kernel boot log to a MMIO UART? Posted: 13 Dec 2021 06:49 AM PST I have a UART that is displayed in a Linux boot log as: I want to enable Linux kernel boot log to this UART port. To do this I add kernel boot parameter: In result for some reason the log is getting split in two parts (I've even checked this with the oscilloscope):
Presumably the split is happening exactly at the point of ttyS5 initialization. I thought that the whole point of writing instead of is to get working UART before the actual driver initialization. But for some reason the Is it possible to set serial speed for an early kernel boot log to a MMIO UART? Just in case my OS is: |
Raspbian restart network without reboot Posted: 13 Dec 2021 05:05 AM PST When I am using raspbian with a 4g USB modem, sometimes the network goes down and there is no option to bring back the network unless I reboot the raspbian. In such cases, I try: with a cron every hour; this doesn't work. I tried also The thing is, when I execute these commands in a terminal, I get no output. What is the solution to bring network as if I rebooted? |
Glitchy Debian Install screen - both standard and graphical Posted: 13 Dec 2021 06:06 AM PST I've been trying to install Debian and I've done the following in order to try to fix this:
My computer is an HP Probook 440 G2 with a core i5 and Intel HD 4400 Graphics running in UEFI mode. I need it UEFI mode since Legacy BIOS (and MBR drive partitioning) is unacceptable Anything else I can try to get it working? |
What is the correct way to view your CPU speed on Linux? Posted: 13 Dec 2021 05:23 AM PST I found two commands to output information about my CPU: This is my exact output from And this is from (For some reason, |
Make `column` use a single space as column separators in output Posted: 13 Dec 2021 05:23 AM PST There are 2 spaces between EDIT 2: Changed data to include more cases Expected Note: Please don't give |
'ps' arguments to display PID, PPID, PGID, and SID collectively Posted: 13 Dec 2021 05:22 AM PST I tried |
How do I write a retry logic in script to keep retrying to run it upto 5 times? Posted: 13 Dec 2021 05:22 AM PST I want to write logic in shell script which will retry it to run again after 15 sec upto 5 times based on "status code=FAIL" if it fails due to some issue. |
Posted: 13 Dec 2021 05:23 AM PST What do people mean when they point out that the "keys are not properly mapped" in a Linux installation when working on the command line? Isn't the default installation OK? What extra/specific mappings are needed? I also was told that for my Mac where my Home and End and Ctrl keys do not do what I expected. |
Posted: 13 Dec 2021 06:46 AM PST I see POSIX mentioned often and everywhere, and I had assumed it to be the baseline UNIX standard.. until I noticed the following excerpt on a Wikipedia page: The Open Group
If the official definition of a UNIX system is an extension of POSIX, then what exactly is POSIX? ,,, It surely seems to be a touchstone of the UNIX world, but I don't know how it fits into the overall picture. |
Colorizing your terminal and shell environment? Posted: 13 Dec 2021 05:21 AM PST I spend most of my time working in Unix environments and using terminal emulators. I try to use color on the command line, because color makes the output more useful and intuitive. What options exist to add color to my terminal environment? What tricks do you use? What pitfalls have you encountered? Unfortunately, support for color varies depending on terminal type, OS, TERM setting, utility, buggy implementations, etc. Here are some tips from my setup, after a lot of experimentation:
I'll post my |
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