Install QGIS Server and Web Client under Ubuntu 14.04

I tried to install QGIS Server and QGIS Web Client on my Ubuntu machine by following this tutorial

At the end of the tutorial i should start the browser with localhost/qgis-web-client/site/index.html. But i get the error that the /qgis-web… was not found.

the localhost works.

does anybody nows what's wrong woth the tutorial i followed step by step after: --> install needed packages by entering in the terminal:


  • at the last step i copy the folder into /var/www/html/

  • now i can see the qgis-web-client/index.html but when i want to start the helloworld or the other map i get the following eror by firebug. ( TypeError: layerTree.root.firstChild is null )

  • it seems to me that the qgis server doesn't work correctly. I don't get any GetCapabilites request.

  • that's why i try to install qgis server from anitagraser but nothing changed because the files existing.

Assuming you have QGIS Server appropriately installed (with a working GetCapabilities request) on Ubuntu/Debian, the main steps involved on my end to get the QGIS Web Client up and running are as follows:

  1. Install python psycopg2, python-webob, git, libapache2-mod-wsgi using terminal: "sudo apt-get install python-psycopg2 python-webob git libapache2-mod-wsgi"
  2. Go to your home directory using terminal (let's say your home directory is "/home/johndoe"): "cd /home/johndoe"
  3. Download qgis web client onto home directory using terminal: "git clone"
  4. For the "terminally-lazy", enter in terminal: "sudo ./ ~/qgis-web-client/projects" or "sudo /home/johndoe/qgis-web-client/projects"
  5. Open up a local browser and go to the URL: "qgis-web-client-localhost"
  6. The webpage that appears should have links to two local maps named "helloworld" and "naturalearth_110million", both of which should open successfully revealing maps if you click on either link.

For the qgis-web-client to work, you need a working GetCapabilities request. Now if I were you, I would redo the whole thing from the ground.

First I would install the server, I used the link: (do all the steps until you get a working GetCapabilities request). If you get any problems at this part then please check the logs folder (error.log) to see whats wrong with your server (you might forgot to set some paths or ports).

When you have this request working you can move on to setting up Qgis-web-client. You clone it to some directory that suits you. Then open and read the file In it you will see comments for the parameters you need to provide with the script. After understanding what you need to provide, you can simply run:sudo ./

This script will install and set the paths correctly. After this you can try running the index.html. You can click one of the given examples to see if it displays correctly.

If it works, then you've successfully set the qgis-web-client. You can now simply add new (or custom) projects to your folder ~/qgis-web-client/projects/. Ofcourse for each project, you will need to edit the index.html and add the link to new project.

When I was setting the web client I've had some problems with a different error (Uncaught TypeError: Cannot read property 'abstract' of undefined) in the client which I fixed using this link: qgis-web-client stuck on Loading Map

I cannot confirm if it was fixed, but I'm giving you the link just in case you get the same problem.

How to fix &ldquoBUG: soft lockup - CPU#0 stuck for 17163091968s&rdquo?

UPDATE: I updated the title of the message, because I've recently seen more of these problems with this exact time amount of 17163091968s . This should help people investigating the symptoms to find this page. See my (self-)accepted answer below.

I have a bunch of 64-bit Ubuntu 10.04 LTS VM's in a VMware vSphere datacenter. VMware tools is installed (vSphere Client says "OK").

I've seen some of the VM's hang a few times with the following error in syslog. When checking the situation from vSphere, the console was black, and the "Reboot guest" command didn't do anything, so I had to power cycle the VM.

(There is no trace - that's the last line.)

I don't seem to have the other errors anymore, but I'm quite sure the process mentioned above ( jed ) was different in the other dumps.

What could cause this problem?

How to prevent this from happening?

The value 17163091988 is a bit (pun intended) suspicious - it's 1111111111000000000000000000010100 in binary. Maybe the error was trying to say 20 seconds ( 10100 in binary)?

I'm not sure whether the problem persists with the latest 10.04 kernel (2.6.32-35).

I've also seen task . blocked for more than 120 seconds problems - maybe they could be related?

2 Answers 2

Since as per your comment a CLI solution is ok, I'll post a CLI solution which you may use if you don't find a GUI equivalent

Running ssh on the local host (in this case on the Ubuntu Server installation) you can get an ssh shell running on the remote host (in this case on the Ubuntu Desktop installation) which you can use to install the software via the command-line as you would on the local host (e.g. by compiling / installing or by running apt-get )

First, install the ssh server on the remote host:

Then you can run an ssh shell on the remote host by running the ssh client on the local host:

Where user is the user you want to login as on the remote host and where host is the remote host's name / IP address.

The first time you'll be prompted with a message like this one:

Typing yes and hitting Enter you'll be prompted for your password:

Typing your password and hitting Enter you'll be prompted with a message like this one:

Typing exit and hitting Enter will end the ssh session:

While in an ssh session as a certain user you can execute any command the user can run on the remote host.

Attempts to update gitlab fails with error

Context: We're trying to migrate our gitlab server from one provider to another and upgrade it to the latest release and we're trying to find a way to do it in a way that doesn't break everything.

I have a VPS with a gitlab version 7.0.0 (omnibus) on an ubuntu OS which I'm trying to upgrade to the latest release. Apparently, gitlab didn't have a package repo at the time when 7.0.0 was a thing so I followed this page to try and upgrade via repo. To be safe, I started another VPS instance on the new provider, made a backup through this, copied the deb package from the original server, installed the deb package and did a restore which worked perfectly. Accessing the new VPS by IP works just as well as the original.

Then I finally did the update as per instructions.

What I get instead by the end is this:

I tried accessing via IP and lo and behold it broke with an error 500.

I tried digging through the details and I found this:

With my boss' blessing, and to rule out an environment issue, I tried making a snapshot of the gitlab server, started another VPS instance on the original provider and loaded it up with the snapshot, effectively cloning the server. I attempted the update on that and it still breaks. I tried manually downloading the package and installing via dpkg which still doesn't work.

9 Answers 9

The regular way of getting access to the files now, is to allow VirtualBox to automount the shared folder (which will make it show up under /media/sf_directory_name ) and then to add your regular Ubuntu user to the vboxsf group (as root # ).

By default, without manual action, the mounts look like this,

so the vboxsf group has full access. By adding your user to that group, you gain full access. So you wouldn't worry about changing their permissions (which don't make sense on the Windows host), you just give yourself access.

In this specific case, this is the automounted Shared Folder,

and it is that directory that should be used to access to the Shared Folder, by putting the local user into the vboxsf group. If you want a 'better' link under your user's home directory, you could always create a symbolic link.

7) Check Wifi information using GNOME NetworkManager command?

The NetworkManager daemon attempts to make networking configuration and operation as painless and automatic as possible by managing the primary network connection and other network interfaces, like Ethernet, WiFi, and Mobile Broadband devices.

NetworkManager will connect any network device when a connection for that device becomes available, unless that behavior is disabled. Information about networking is exported via a D-Bus interface to any interested application, providing a rich API with which to inspect and control network settings and operation.

Wrapping Up

In this tutorial, we have shown you several commands to check wireless network information such as available WiFi networks, bit rate, link quality, signal strength, etc, on Linux from the command line.

If you found this article helpful, please do share with your friends and spread the knowledge. Please feel free to comment below if you have any queries/concerns. We will get back to you as soon as we can. Happy learning!

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

We are thankful for your never ending support.

Create a Swap File

Adding &ldquoswap&rdquo to a Linux server allows the system to move the less frequently accessed information of a running program from RAM to a location on disk. Accessing data stored on disk is much slower than accessing RAM, but having swap available can often be the difference between your application staying alive and crashing. This is especially useful if you plan to host any databases on your system.

Although swap is generally recommended for systems utilizing traditional spinning hard drives, using swap with SSDs can cause issues with hardware degradation over time. Due to this consideration, we do not recommend enabling swap on DigitalOcean or any other provider that utilizes SSD storage. Doing so can impact the reliability of the underlying hardware for you and your neighbors.

If you need to improve the performance of your server, we recommend upgrading your Droplet. This will lead to better results in general and will decrease the likelihood of contributing to hardware issues that can affect your service.

Advice about the best size for a swap space varies significantly depending on the source consulted. Generally, an amount equal to or double the amount of RAM on your system is a good starting point.

Allocate the space you want to use for your swap file using the fallocate utility. For example, if we need a 4 Gigabyte file, we can create a swap file located at /swapfile by typing:

After creating the file, we need to restrict access to the file so that other users or processes cannot see what is written there:

We now have a file with the correct permissions. To tell our system to format the file for swap, we can type:

Now, tell the system it can use the swap file by typing:

Our system is using the swap file for this session, but we need to modify a system file so that our server will do this automatically at boot. You can do this by typing:

With this addition, your system should use your swap file automatically at each boot.

If you are used to WinSCP,
one option is to install WINE and use WinSCP itself.

(note: my link is just a reference -- you may want to get the stable WINE release,
If the latest stable release of Wine (currently Wine 1.0.1) works for you,
then you may not want to use these beta packages

I guess you are referring to this kind of discussion in your question.
That thread too refers WINE as one of the options (with some notes on crashes in 2007).

At the end is this Nautilus reference,

Ubuntu's Nautilus file explorer works just fine.
Places->Connect to Server and select SSH.

That is probably what Martin refers in his answer.

Update: for the record, this answer was accepted because it indirectly referred SecPanel .

Docker Version

To see the version of Docker running, you can issue the following command &minus



version &minus It is used to ensure the Docker command returns the Docker version installed.

Return Value

The output will provide the various details of the Docker version installed on the system.



When we run the above program, we will get the following result &minus

We’re delighted to announce that we’re participating in another ‘Ubuntu Testing Week’ from April 1st to April 7th with other flavours in the Ubuntu family. On April 1st, the beta version of Xubuntu 21.04 ‘Hirsute Hippo’ will be released after halting all new changes to its features, user interface and documentation. Between April 1st and [&hellip]

On Tuesday, May 18th, the Xubuntu Team voted to migrate some of our infrastructure away from Launchpad to GitHub for code hosting, while translations are now on Transifex. Here’s a summary of the changes: We have a new GitHub organization, under the Xubuntu name. Each subteam has an equivalent in the new organization. All codebases [&hellip]

Watch the video: Qgis Tutorial 179: Installer Qgis sous Ubuntu (October 2021).