I'm starting to become less and less of a Windows guy and might try Linux.
Is difficult working with windows to do web development with the terminal.
I have two questions
How can I cd desktop on the Cygwin terminal I see people do this with ease but I keep getting
-bash: cd desktop no such file directory I'm guessing it has some thing to do with the fact that Cygwin is set up as the home directory.
I want to download https://www.djangoproject.com/download/1.4.2/tarball/ using wget
so I did
wget https://www.djangoproject.com/download/1.4.2/tarball/
and I get an error back saying
ERROR: the certificate of 'django' is not trusted.
ERROR: the certificate of 'django' hasn't got a known issuer.
for the first question:
check your current directory with pwd and navigate from there.
for the second question:
add --no-check-certificate to your wget command
wget -Odjango.tar.gz --no-check-certificate https://www.djangoproject.com/download/1.4.2/tarball/
Related
I've been using DDEV & Docker-Desktop sucessfully to run installs of drupal8 on my windows 10 machine.
Today I decided to create a new install of Drupal8 (I last did this a month ago or so).
I followed the basic steps:
Create new folder (drupal8test)
Ran the ddev config command inside this folder.
accepted the defaults and choose drupal8
Amended config.yaml so the ports do not clash with others on my machine
Ran the command ddev start
I get a couple of alerts from docker desktop and I share folder's it needs
There are no errors and the URL is provided, on going there I get a 404 file cannot be found error
When I look in the drupal8test folder I see the following folders:
.ddev
drush
files
sites
(Expecting to see web).
Any ideas? (I'm quite new to Drupal and DDEV so I'm sure I'm doing something wrong)
Welcome to ddev and to Drupal, Mark!
ddev has never installed Drupal, it's a local development environment.
There are quickstarts for Drupal (all versions), TYPO3, Magento and Magento2, etc at https://ddev.readthedocs.io/en/stable/users/cli-usage/#quickstart-guides
For Drupal 8, you would follow the Drupal 8 Quickstart:
mkdir my-drupal8-site
cd my-drupal8-site
ddev config --project-type=drupal8 --docroot=web --create-docroot
ddev start
ddev composer create "drupal/recommended-project:^8"
ddev composer require drush/drush
ddev launch
I'm not sure I understand the command you showed
.ddev drush files sites
or what it was trying to accomplish, but after doing this install you can just ls and you'll see the web directory. If you're interested in running drush, you can ddev exec drush status for example, or just ddev ssh and use drush.
Anyway, the next time you get stuck, the docs are waiting for you at https://ddev.readthedocs.io/en/stable/ and there is also lots of community support available here and elsewhere.
OK so I am trying to download gcloud compute but I am unable to for some reason. I followed the step by step guide from this page but when I type ./google-cloud-sdk/bin/gcloud init the terminal returns zsh: no such file or directory: ./google-cloud-sdk/bin/gcloud
Should I move google-cloud-sdk out of download into some other places? Any help will be greatly appreciated.
If it is any help, I am currently using Mac OS catalina 10.15.4.
It looks like you have downloaded the SDK into a different directory than you are currently in with your terminal.
Try moving the downloaded google-cloud-sdk folder into your home (or cd into your Downloads folder with the terminal), and then running the command. You can also use ls to make sure you are in the correct directory and can see the google-cloud-sdk folder.
I want to deploy my project to VPS Centos7. But i am getting error while installing postgres. When i type
create extension postgis;
Getting error
ERROR: could not open extension control file
"/usr/pgsql-9.6/share/extension/postgis.control": No such file or
directory
Because postgis.contol is located in another place,
find /usr -name postgis.control
/usr/share/pgsql/extension/postgis.control
But postgres trying to create it from /usr/pgsql-9.6/share/extension/postgis.control
This question already was asked before, but my problem is other.
For me, I run below command in Ubuntu, and the issue was resolved.
sudo apt install postgresql-10-postgis-scripts
then run
CREATE EXTENSION postgis
It works fine for me.I hope it helps.
I'm setting up a Google App Engine Django project to run in a Vagrant environment for easy setup/teardown of the system and am using PyCharm as the IDE for it all. I'm able to successfully get the server to run using PyCharm on the remote machine, but if I try to use the remote debugger to start a debug session, PyCharm gives me a nondescript error:
Error running webapp: Can't run remote python interpreter: Couldn't obtain remote socket from output , stderr File "", line 1
import
^
SyntaxError: invalid syntax
I'll try to include as much info about the setup as I can:
Windows 10 host machine, Ubuntu 14.04 guest
Python is version 2.7.10
/home/vagrant/www/shell/python-su.sh setup as python interpreter. Just passing arguments to sudo /usr/bin/python $# to make it work in vagrant/GAE
GAE Directory in PyCharm is set to /home/vagrant/google_appengine/ to make it work on the remote machine
Here's a screenshot of my PyCharm Configuration Settings for launching debug client:
All of this matches what I do for the run configuration and that works fine. It's only the debug configuration throwing this error.
From the help documentation for PyCharm, I found this article detailing how to turn on more logging to the PyCharm log file. Add this to the log.xml file located in the /bin/ directory of the PyCharm Program Files directory:
<category name="#com.jetbrains.plugins.webDeployment">
<priority value="DEBUG"/>
</category>
Looking at the log file showed what command it was trying to run, which I was able to run by SSH-ing into the machine to run it myself. From there, I was able to figure it it was coming from my sudo python file. I had to wrap the $# in quotes to get it to work properly. The run was working because the arguments were simple enough that it didn't matter that it wasn't quoted. The final python sudo shell file looks like this:
sudo /usr/bin/python "$#"
This is first time I'm working with Putty.very interesting
I want, how to install apache,php for new web-server via Putty.
rpm -qa | grep apache
rpm -qa | grep php
Those codes are how to find apache,php version for old web-server
i have some idea about those codes, But i don't know meaning of those codes
tar vxzf libssh2-1.4.2.tar.gz
cd libssh2-1.4.2
./configure
make
make install
Is this correct way to install apache,php for new web-server via Putty?
For the production servers installations YaST2 is better than putty.
because putty we have to includes codes and paths ,YaST2 is like normal windows software installation process.
We have to set path YaST2 then it works correctly.