How can I email the output between file1 and file2 but only if there is a difference? Lets say I’m using a shell script. Answer Use the || concatenation. More info here
AWS Root Volume not booting
I went through some steps of adding a second partition on the Root volume. This is because the EBS is 50GB and the first partition only had 8GB allocated. So here are my steps I did: 1.) Detach Volume and attach it as a secondary to another instance. 2.) Use gdisk to create the second partition: 3.) Change FS…
How to create a conda environment with specified libraires?
When creating a new conda environment, some packages are installed by default. I believe there is a way to specify the default libraries to install when creating a new environment without having to type all the names after the conda create command. Is there any file I can edit so as to specify which are the d…
change user and run ssh instruction in 1 line
I’m trying to change my user to one that doesn’t need password to run ssh instructions and then do exactly that, run an ssh instruction. What I have now is: But I’m getting the answer: if I put the instructions in a different file called testit like this: and I run: it works!, but I need to …
Nginx not finding PHP files
I’ve been searching through all the questions asked and all answers haven’t worked. I’m trying to install Damn Vulnerable Web App to my Centos 6.9 server, but when I try to access the page, I’m greeted with a 404 File Not Found error. I can access html files perfectly, just not PHP. /e…
How to loop back the microphone entry directly to speakers on linux?
I would like to loop back a USB microphone entry to an audio output on linux (raspbian OS). When i speak into the microphone, i would like to immediatly hear it to the speakers, with minimal delay. I haven’t found any open source project that do it. Do you you know how to do it, by programming, reading …
No USB devices or running emulators detected, despite ADB detecting the phone successfully
I know this question was asked a lot, but going through dozens of answers none have been helpful. I’m attempting to run a simple hello world on my Huawei Mate 9 using Android Studio 2.3.1 (The APP is 4.X Jellybean API) running on Debian (Jesse). -I have enabled debugging options on the phone (I can see …
Bash script: too many arguments in [ test ]
I have the bash script below: When I run it: As you can see, when I don’t pass parameters ( $# -eq 0 ) it fails with “too many arguments”. So, I tested it directly in terminal: So, if it works perfectly in terminal why doesn’t it work passing parameters? Thanks, Answer Your entire expr…
autogen.sh: You need gtk-doc to build this package
I want to compile LXDE’s libfm from source, but when I run ./autogen.sh, it fails with this error: Answer After some experimenting, I figured out which package to install. It was: After that ./autogen.sh executed successfully and created the ./configure script. I also needed to run sudo apt-get build-de…
DNS server not working in QEMU usermode networking
I am trying to get QEMU 2.8.0 on Windows host to work with my Linux guest with vanilla 2.6.11.12 kernel but it is responding with unknown host. I am using user mode networking (SLIRP). Here’s my qemu network status: And my ifconfig: And my routing table: I am able to ping the router but not the QEMU DNS…