Skip to content

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…

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…

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…