Recent Questions - Unix & Linux Stack Exchange |
- How to disable a particular dbus system service under an openrc system
- Bash print command with number
- Error when running ls "exa: error while loading shared libraries: libgit2.so.1.1: cannot open shared object file: No such file or directory"
- Fedora 34 Pipewire 0.3.38-1.fc34 microphone detected but no sound input
- How to download portion of video with ffmpeg.js in web
- How to apply multiple commands to a css file without undoing the previous command?
- Source code of Netscape Navigator 7.2
- cp: cannot stat permission denied
- netcat broadcast understanding
- Why does the sshd command’s behavior vary depending on the network?
- How to confirm something in Linux command-line prompt
- Is it generally a good practice to combine drivers in Linux distributions
- Which directories should be on the same filesystem as the root "/" filesystem?
- Can I install Linux on these AmLogic single-board computer?
- How can I redirect the output of a exec call in php ( and its stderr) to the calling program?
- SSH to a private VM with key authentication
- Using awk to calculate average of each row with different number of columns
- Implementing basic features for Bourne shell
- How to "run 'dmesg' using only the 'find' command"?
- Run a command with a shortcut key
- I ran “sudo rm -rf /*” and now my PC won't boot
- Bash: Using 'if' and 'find' together to check folders for files
- Trouble installing libc-dev
- Apache resource failed to start in Pacemaker
- Add space before uppercase letter
- SSH Tunneling to VNCServer
- libvirt-bin error on a VM when I try to list VM
- How can I make xrandr changes persist?
How to disable a particular dbus system service under an openrc system Posted: 09 Oct 2021 09:59 AM PDT I know that one can override dbus session services in ~/.local/share/dbus-1/services But it necessarily won't work for system services. Under openrc, I don't get systemd's systemctl command therfore : Is the quick and dirty (because service will be restored on next update) way consisting in renaming the associated service file in /usr/share/dbus-1/system-services, the only way to proceed ? |
Bash print command with number Posted: 09 Oct 2021 09:46 AM PDT Good Day! I'm just a beginner and I want to dive into bash scripting. I want to create a script that do a command, and in this command I want to try multiple numbers from 001-999 in each time | e.g. |
Posted: 09 Oct 2021 09:14 AM PDT I'm running Manjaro Linux and upon running the I haven't been able to find any one with this issue online, or any solutions. Let me know if you need anymore information. Thanks. -Linkio |
Fedora 34 Pipewire 0.3.38-1.fc34 microphone detected but no sound input Posted: 09 Oct 2021 09:25 AM PDT What is happening I recently installed fedora 34 on my laptop, before I was using Ubuntu 18.04 and my mic was working fine, them I decided to change to fedora 34 and everything was ok until I try to use my microphone and I figured that it just refuses to record any input, after little search I found that fedora 34 is using pipewire, I tried several possible fixes but none worked. System info Ideapad 320 15ikb I5-8250u 8gb ddr4 Intel uhd 620 / MX150 Audio device info: Already tested fix Alternatives found on the internet and that didn't work (after each possibility above I restarted the computer):
Observations
|
How to download portion of video with ffmpeg.js in web Posted: 09 Oct 2021 08:52 AM PDT I want to download 10 sec of video without downloading the complete video in web using ffmpeg but it fetch the complete video and then trim the video. I'm using this let { createFFmpeg, fetchFile } = FFmpeg; let ffmpeg = createFFmpeg(); await ffmpeg.load(); ffmpeg.FS('writeFile', 'video.mp4', await fetchFile(video)); await ffmpeg.run('-ss', '00:00:10.00', '-i', 'video.mp4','-t', '00:00:20.00', '-c', 'copy', 'output.mp4'); let data = await ffmpeg.FS('readFile', 'output.mp4'); return new Blob([new Uint8Array(data.buffer)]); I'm using the direct link of youtube video http://redirector.googlevideo.com/videoplayback?expire=1633813923&ei=Q7FhYbTqFdCkgQeKt6XwCQ&ip=168.119.239.75&id=o-AO0N1Lwv-oMZnMyrAmUNrRPRxmrJR5aMyZXIRZJW1xiF&itag=22&source=youtube&mh=Mh&mm=31%2C26&mn=sn-4g5edn6r%2Csn-h0jeened&ms=au%2Conr&mv=u&mvi=3&pl=26&vprv=1&mime=video%2Fmp4&ns=hKuOjVh9-nzLliVDIG6uhZcG&cnr=14&ratebypass=yes&dur=1870.158&lmt=1633746853727731&mt=1633791710&fvip=3&fexp=24001373%2C24007246&c=MWEB&txp=6211224&n=pLAN0qjI56_fLMtMoBr&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Cvprv%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRQIgOEMCw-gW-F0DimwgLUzlAjTr39AZb4JH_GbYOHxWz_8CIQC_CSeibz8bKnO6nHh3m4SrI5J-fm0E7RNtWDSn86hnfw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=AG3C_xAwRAIgDEnuS7GtrC37pPkaDYg2o26PvpSNPtlRs_v2K526TqACIFPlE2NaQ_XeK31tpZVoyH065aldNamexEawyMEcUC7G&utmg=ytap1_5B1_1ECmxW0 Is there any possible way to download a portion in web in js? |
How to apply multiple commands to a css file without undoing the previous command? Posted: 09 Oct 2021 08:41 AM PDT I'm super new to using command line so sorry if this seems like a silly question! I'm trying to edit a CSV file in terminal with these set of commands: (head -n 1 canine_genes_v2.csv && tail -n +2 canine_genes_v2.csv | sort -t, -k2,2n) sed 's/plus/+/g' canine_genes_v2.csv sed 's/minus/-/g' canine_genes_v2.csv cut -d, -f 1,2,3,4,5,6 canine_genes_v2.csv perl -p -e 's/,/\t/g' canine_genes_v2.csv My problem is that every time I apply a command it undoes the previous command, I have figured out if I run each command separately and save the output to a different file I'm able to see the change using the md5sum command. But my problem is I want to apply all these commands at the same time to the same file. |
Source code of Netscape Navigator 7.2 Posted: 09 Oct 2021 08:39 AM PDT due to some specific reason I need to use Netscape 7.2 and lately it started crashing on startup on my Windows 7 machine, and I have no idea why (I do not know what I did to my machine that Netscape started to crash, because firefox and all the other mozilla browsers (like Basilisk web browser) work completly normal, but netscape crashes before even starting, crash is related with msvcrt.dll (at least windows crash dialog tells me that) as due to obscurity of the browser I didn't find any help online, so I figured out, maybe if I run it in a debugger it would tell me on which function it crashed and I could fix that, but there is a problem, I cannot seem to find the source code for Netscape 7.2 (I know it should be open source) so if anyone knows where to find the source code for Netscape 7.2 please let me know, because if I find the source code it would maybe lead me closer to figuring out why the browser crashes |
cp: cannot stat permission denied Posted: 09 Oct 2021 09:15 AM PDT I have a file called fileArc.c and I was given instructions for an assignment that if I do the command
that this file would then be accessible in a created folder on my desktop. However when I try using the command I get
I am not sure what to do to fix this. |
netcat broadcast understanding Posted: 09 Oct 2021 08:28 AM PDT I'm using macOS with gnu netcat. I want to understand how can I broadcast message using netcat. I have a
but as I attempt to send a broadcast message
I'm getting the following error
The following post says it is possible to do so using |
Why does the sshd command’s behavior vary depending on the network? Posted: 09 Oct 2021 08:47 AM PDT I'd like to ssh into Termux using OpenSSH. I have found so far that what is output from So, why does sshd depend on the network you're connected to? Do you have to configure your network to allow the sshd connection or something? This is the output of This is the output of And this is the output of |
How to confirm something in Linux command-line prompt Posted: 09 Oct 2021 08:57 AM PDT In order to install Composer on my OVH web hosting service, I need to pass some SSH commands. To pass them, OVH wants me to install some CLI using commands (guide here) The command doesn't work on the Windows Terminal So I tried from the Linux prompt from my Hive OS mining machine So I pasted in the Command prompt, and I got served with
so I then tried and from there, it asked me to confirm.
I tried to type "Y" and enter, but that doesn't do it. How do you confirm this at this point? |
Is it generally a good practice to combine drivers in Linux distributions Posted: 09 Oct 2021 07:09 AM PDT I'm running Arch on old laptop with hybrid (Integrated + discrete GPU) graphics so I installed a couple of ATI drivers, but I noticed a couple of defects with video and font rendering. Previously I ran on Pop!_OS and it worked really nice, so I would try both ATI and System76 packages. I also tried to install AMD Catalyst proprietary driver from their website, but it just won't run on latest X.Org Server. So my question is it a good practice to install as much as possible packages hoping it covers my pretty old hardware or maybe I'm lacking some knowledge how to do it properly? I've read Arch wiki, but I'm really not sure I understood at least something |
Which directories should be on the same filesystem as the root "/" filesystem? Posted: 09 Oct 2021 07:19 AM PDT I read an article and it states that "bin" "dev" "etc" "lib" "root" "sbin" directories should be in the same filesystem as the root directory, that is, they should not be mounted as a separate filesystem. I'm a little confused, for example, in many distributions now the "sbin" "bin" and "lib" directories are symbolic linked to the "usr" directory. However, the article does not specify that the "/" directory and the usr directory must be on the same filesystem. I've also looked at the previous questions, but I'm still confused. Which directories must be in the same filesystem and which should we keep in separate filesystems? |
Can I install Linux on these AmLogic single-board computer? Posted: 09 Oct 2021 06:41 AM PDT A company called MECOOL offers several "TV box" devices, based on AmLogic single-board computers (SBC's). Examples: KM2 KM6, KM6 Deluxe. They sport quad-core ARM Cortex CPUs (A55, A35), have 2 or 4 GB of RAM, and ship with Android 10 or Android 11. I would like to replace their OS with a Linux distribution. It would be nice if it could just be generic, but something oriented to this kind of boxes (like Raspbian for the Raspberry Pi) would also be fine. Is this possible? And if not - is it impossible for all AmLogic-based SBCs, or just for this specific series? |
How can I redirect the output of a exec call in php ( and its stderr) to the calling program? Posted: 09 Oct 2021 09:44 AM PDT I have find this solution but it is not 100% ok for me. output of child-prc I have following php file: Now I do a call on the prompt and want to redirect all output (also from the exec) to on log file.
The result should be: the line is from the exec child process. But I get only line one. Please notify that the name of the log file What make I wrong? THANKS |
SSH to a private VM with key authentication Posted: 09 Oct 2021 08:38 AM PDT I am new to Linux and this is my first time connecting to a private VM. I was given a private address(no public since the file not does not have ".pud") I am not sure how to use the given private key located on my desktop. I think public and private keys were already configured on the server side. The user of the server only gave me the private key to access their server and I'm not sure how to use the private key I tried using I am using UBUNTU 21.04 |
Using awk to calculate average of each row with different number of columns Posted: 09 Oct 2021 09:47 AM PDT Is it possible to use Input-file ( Desired output: I tried and But my code doesn't change NF row. is it possible to change NF for each row and get desired output? |
Implementing basic features for Bourne shell Posted: 09 Oct 2021 06:36 AM PDT I'm amazed by sh simplicity, my little effort research showed me that there is no:
I'm fine with that, because there is no bloat by default. My question is, can I implement those features? Would they be hard to script? |
How to "run 'dmesg' using only the 'find' command"? Posted: 09 Oct 2021 07:31 AM PDT For one of my lab assignments, I need to "run I have been trying to look and can't find anything probably because its not the way it's supposed to be used. |
Run a command with a shortcut key Posted: 09 Oct 2021 10:01 AM PDT Is there any way to run a program/commnad with a shortcut keys? I could then have a script that cd's one folder up. Then I could hold down Ctrl and every time I would hit a button, that script/command would run or even clear the screen each time and run I'm using bash and my terminal emulator is Linux Mint, Xfce's default. |
I ran “sudo rm -rf /*” and now my PC won't boot Posted: 09 Oct 2021 07:36 AM PDT I ran on Zorin OS because my friend dared me to and now I can't even boot to my motherboard BIOS. How should I go about fixing this? Or am I hopelessly doomed? I have tried power cycling many times with no luck. I have tried booting to GParted. I've even removed all my drives with no success. Everything I try won't work. |
Bash: Using 'if' and 'find' together to check folders for files Posted: 09 Oct 2021 10:10 AM PDT I've got a parent folder with a series of 'histogram_0000_0000' folders inside it. I'm trying to make a bash script that searches for the file 'out.txt' in each folder, and returns for each time it finds the file in a folder (to check that the file exists in all folders). The script I've got is; But every time it runs I get an error; ./checkrun.sh: line 10: [: -name: binary operator expected I've had a look around, tried using '[[' and ']]', but still don't know why I'm having any luck! Any help would be great. Thanks, -Jake |
Posted: 09 Oct 2021 10:07 AM PDT I am getting this error when I try to compile a C program on Ubuntu: I tried to install I have tried: and and and and above four codes got the same output: After using all those commands I get the same fatal error when compiling. o/p: |
Apache resource failed to start in Pacemaker Posted: 09 Oct 2021 09:02 AM PDT I am using Pacemaker with Corosync to set up a basic Apache HA cluster with 3 nodes running CentOS7. For some reasons, I cannot get the apache resource started in pcs. Cluster IP: 192.168.200.40 The httpd instance is enabled and running on all three nodes. The cluster IP and individual node IPs are able to access the web page. The ClusterIP resource also works well for failover. What may go wrong for the apache resource in this case? Thank you very much! Update: Here is more information from the debug output. It seems the Apache is unable to bind to the port, but there is no error from the apache log, and |
Add space before uppercase letter Posted: 09 Oct 2021 07:07 AM PDT I have a strings: and so on. I want to add space before uppercase letters. How can I do it? |
Posted: 09 Oct 2021 07:04 AM PDT I have a dedicated server. There's a VNC Server and I can connect to VNC Server with a VNC Client with port 5901 so it takes me to display :1 when I connect there with a VNC Client. I've read pretty many documents about ssh -L and ssh -R command-line commands, but it's pretty weird, because they have servers and such on their own machines and on their remote machines so I get confused about that where are they even trying to connect and what etc.
ssh root@DEDICATEDIP -L 5901:DEDICATEDIP:5901 ssh root@DEDICATEDIP -R 5901:DEDICATEDIP:5901 I also tried this one (found from this site): ssh -L 5901:localhost:5901 -p 22 root@DEDICATEDIP If I write "su" in SSH and I write my root password I can get in with root account, but when it asks my root password on ssh after trying to fill any of these tunneling commands it says the password is wrong and permission denied? Edit:
ufw status
VNC Server is running and I can confirm that. If I add 5901 to ALLOW and ALLOW OUT I can simply connect there without a tunneling.
|
libvirt-bin error on a VM when I try to list VM Posted: 09 Oct 2021 08:07 AM PDT I'm using Virtualbox 4.3.18 on my Arch Linux Host machine and libvirt-bin 1.2.9 on my Ubuntu Server Cloud guest machine. Everytime I try to follow this tutorial I receive the following error when I run virsh: Command: Error: Someone know how to fix this? |
How can I make xrandr changes persist? Posted: 09 Oct 2021 09:09 AM PDT I run this command to allow me to move windows between screens:
This magic command fixes my screen for me (before I run this my 2nd monitor is just an empty space where I can move my mouse). How can I make whatever this command does stick when I reboot? I'm more interested in fixing my configuration than just re-running this command, but I'm clueless as to how to make this happen. I have 2 monitors, DFP 5 and DFP 6. Running I have already set up DFP 6 to be right of DFP 5 using the It seems to be configured for everything to be one screen, and If I search for this I either get told to modify my xorg.conf file (which I don't know how to do because I don't know what |
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