Create a simple web services on Ubuntu [closed] - web-services

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm a newbie in web services. How can I develop a simple one on my Ubuntu box?
Is there any packages I need to install first?

Well since you didn't say what language or even what webservices try this:
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart
Goto /var/www/ create a file called hello.php
<?php
echo "<webservice><hello>world</hello></webservice>";
?>
Goto http://localhost/hello.php and you already have a webservice returning some XML. That's how they all work (no matter what language you choose, ASP.NET is just better in hiding that).

Related

VirtualBox and Google Compute Engine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Can I run VirtualBox and an active VM on a server hosted on Google Compute Engine? If yes, what are the steps? Just install it and build the VM through VNC?
So far I have found similar solution for DigitalOcean where you simply install VirtualBox, xfce, VNC, etc. and it runs.
Create GCE instance
SSH to that instance
Download and install Virtualbox (wget DEB + sudo dpkg -i virtualbox-5*.deb)
Upgrade system, build and install kernel modules
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install -y build-essential
sudo apt-get install -y linux-headers-$(uname -r)
sudo /etc/init.d/vboxdrv setup
Profit!
To check if all is good just run VBoxManage --version. If some other errors are present google and resolve
Yes, the same approach will work on a GCE VM.
You can also use Vagrant with the Google Compute Engine plugin to automate creation of virtual machines and GCE VMs.

Installing geoserver along jetty on Ubuntu 12.04 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Is there any simple tutorial for installing geoserver with jetty on Ubuntu ?
sudo apt-get update
sudo apt-get install unzip openjdk-6-jre
echo "export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64" >> ~/.bashrc
source ~/.bashrc
wget -c http://sourceforge.net/projects/geoserver/files/GeoServer/2.3.5/geoserver-2.3.5-bin.zip/download
unzip -a geoserver-2.3.5-bin.zip
cd geoserver-2.3.5/bin
./startup.sh &
In web browser visit http://localhost:8080/geoserver/
You can use this docker container https://hub.docker.com/r/winsent/geoserver/ it based on Oracle Java 7 with JAI 1.1.3, ImageIO 1.1, GDAL 1.10.1 and extensions.
Or see Dockerfile how to install https://hub.docker.com/r/winsent/geoserver/~/dockerfile/
You can use abhijeetkoli/geoserver image if you wish to give it a try.
Source and build scripts are here
Docker
docker run -d --name geoserver abhijeetkoli/geoserver
Kubernetes
kubectl --kubeconfig ~/.kube/gis.config apply \
-f ./scripts/kubernetes/gis/geoserver-service.yaml \
-f ./scripts/kubernetes/gis/geoserver-deployment.yaml

Installing Biopython in new installation of IPython/Python2.7 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have Python2.7 installed and was having some issues with installing scipy. Through some Googling, I figured from a thread here (installing scipy on mac 10.6.8) that it is better to install scipy using MacPorts and IPython.
IPython looked cool and I wanted to try it. So far, too good - I feel great and elated that I could do all this by myself.
Now, I had Biopython installed with my Python2.7 (this version of Python2.7 was installed in a folder /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7).
In my overzealousness to try Ipython, I (think) I re-installed Python2.7, along with IPython, scipy, etc in a new directory /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7.
However, now I don't have Biopython in the new installation of Python2.7. So do I have to re-install Biopython in the new installation of Python2.7?
And if yes, how do I direct the installation to this folder?
Would it be like the following (say I have biopython-1.61.tar.gz in the folder Downloads):
cd Downloads
tar -xzvpf biopython-1.61.tar.gz
cd biopython-1.61
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python setup.py install
I would like to hear if I am of-base here. Do not want to try and screw-up what I have so far!
I have Mac OS X V10.6.8.
The following worked for me (from MacPorts Python installation on Mac):
Make the Python2.7/iPython2.7 installation I performed using MacPorts the default
$ sudo port select --set python python27
$ sudo port select --set ipython ipython27
Check if Biopython is available through MacPorts
$ port search biopython
Install Biopython
$ sudo port install py27-biopython # install Biopython
One of the toughest things for someone new to Python is figuring out the installation of all of the packages. It's a work in progress that is actively being discussed by the Python community.
I would recommend going with a commercial distribution that gives you everything you want that just works. This way you can start learning to work with Python instead of having to figure out how to get everything working.
I would recommend:
https://www.enthought.com/products/epd/free/

How to install Django 1.5 using pip? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How to install Django 1.5 ? pip install django==1.5 not working.
Is Django1.5 a stable version?
No, as at 19 feb 2013 the latest version is 1.4.3. See the docs.
If you do want 1.5 you can get it from github -
pip install -e git+https://github.com/django/django.git#1.5b2#egg=django
UPDATE
The latest current version (1.5.1 as at 7th June 2013) can be installed with
pip install django

Does anybody know of a good all-in-one install to get django up and running on OS X [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
i.e. something that would install django + mySQL + python-mysql in one package
hoping to make it easy for a friend to get up and running
For the beginner I recommend:
1) MAMP for MySQL + phpMyAdmin
2) Python is pre-installed
3)
easy_install pip
4) (yes, do it manually, it makes sense)
pip install mysql-python django
Use a third-party open source package manager. It can be very difficult to pick and choose components from different sources and get them all to work together. The major package managers available for OS X are Homebrew, MacPorts, and Fink. I prefer MacPorts. Follow the instructions here to download and install the MacPorts base package. Then make sure your shell path includes /opt/local/bin. Then type:
sudo port install py27-django py27-mysql
That will install compatible versions of Python, MySQL client libraries, the Python MySQL database adapter, and Django and will allow you to easily keep everything up-to-date as well.
Install PIP (it will be useful in the future for every python or django package you'll need while developing your project.)
Then, open terminal and write pip install Django. Pip will install django on your machine, solving all dependencies.
Then, after installing mySQL, you can use pip for installing python-mysql.