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…
Tag: linux
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…
Stop a running dotnet core website running on kestrel
When deploying a new version of an existing .net core website. How do I first safely stop the old running kestrel app? Here is an exmaple of what I would like to write (Pseudo deployment script): killall dotnet seems a little unsafe. How would it work if I were hosting two small sites on one box? Answer I hav…
GDB – Assembly program returns /bin/sh: 0: Can’t open �
I am presently learning 64-bit assembly language from the related Pentester Academy course. The code I’m working on creates the following error when ran in GDB: /bin/sh: 0: Can’t open � [Inferior 1 (process 4049) exited with code 0177] I have googled the error and exit code and haven’t found…