2018-10-21         Winni

How to hide the mouse cursor in X11/Xorg

Why does the following X11/Xorg code not hide the mouse cursor under Ubuntu 18.04? If this is not the way to do it what is? Is there some missing dependency/library/.dev package?My intuition says this may be a bug in Ubuntu's (or Debian) X11/Xorg packages or some such. This is how HaXe/Kha does Mouse hiding in order to be compatible across platforms.#include <iostream>#include <X11/X.h>#include <X11/Xlib.h>#include <X11/keysym.h>#include <X11/Xutil.h>#include <X11/Xos.h>#include <string>#include <iostream>Window window;void sh...

 ubuntu                     1 answers                     84 view
 2018-10-21         Dominic

How do i make my IP public, Externally can access my localhost

I just want to make my IP public, so that it can be accessed from any where.I am using ubuntu 18.04. Already installed apache2 and PHP. The index file located in /var/www/html/example.com/public_html/index.php. In local host it is running and with in the same network i am able to access my website. Also made some changes in firewall.here is my /etc/hosts file configuration127.0.0.1 localhost127.0.1.1 amal127.0.0.1 www.example.com127.0.0.1 example.comAnd etc/apache2/sites-avaliable/example.com.conf file configuration<VirtualHost *:80> Ser...

 ubuntu                     1 answers                     86 view
 2018-10-21         Vincent

How do i host my website from my ubuntu 18.04

I have taken a domain name, like example.tk, from www.freenom.com, hosting storage from www.infinityfree.com. My website is running successfully. Now I want to host my website from my Ubuntu 18.04. I have already installed Apache, PHP and created a website which is running locally on localhost. How can I set that example.tk to point to my locally running website and be accessible from anywhere? In your Apache Config you should set ServerName example.tkthan your server need to react to this IP. Edit /etc/hosts and addYOUR.EXTERNAL.IP example.tkAnd of course your firewa...

 ubuntu                     1 answers                     88 view
 2018-10-21         Catherine

How do I download an file(image) in a folder on my Ubuntu server?

I have some files (images) in a folder on my Ubuntu server. I want a link like http://ip...../image.png. Is there a way to do this? I have the server's IP address. All directions and solutions are highly appreciated. If you want to be able to access the files over HTTP then you need to setup a webserver.If you want to simply download the files really quick, the fastest way is to go into the directory you want to download and run python3 -m http.serverThis will make your files accessible at http://ip_of_server:8080/.If you however intend to make the files accessible for a...

 ubuntu                     1 answers                     88 view
 2018-10-21         Yvette

Virtual Box error: kernel requires an x86-64 CPU

I encounter the following error :This kernal requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot...I am using a 64-bit machine. However, my drop-down menu in step 3 only has 32-bit versions available. Hence, I selected Ubuntu 32 bit version and was later unable to proceed, and the error showed up. Could someone please help me out here?Thank you Reboot your computerRight when the computer is coming up from the black screen, press Delete, Esc, F1, F2, or F4.Each computer manufacturer uses a different key but it may show a brief message at boot telling you...

 ubuntu                     1 answers                     94 view
 2018-10-21         Kristin

Brand new Ubuntu 14.04.2 Docker container + Nginx: connection refused on port 80

I followed the instructions at Digital Ocean's "How To Install Nginx on Ubuntu 14.04 LTS", which states that Nginx should be running as soon as it is installed, but the following Dockerfile:FROM ubuntu:14.04.2RUN apt-get update -yRUN apt-get -y install curlRUN apt-get -y install nginxRUN curl | grep "Welcome to nginx!"gives me this error:curl: (7) Failed to connect to port 80: Connection refusedTo reproduce this:make sure Docker is installed on your host systeminsert the code above into /whatever/path/Dockerfiletype 'cd /whatever/path/ && ...

 ubuntu                     2 answers                     42 view
 2018-10-21         Zebulon

random 502 gateway errors with nginx php-fpm and ubuntu

I was having an issue with random 502 gateway errors using nginx and php-fpm. In my case I discovered a scenario where various php.ini error_log settings and error_reporting levels were causing the random 502 gateway errors to appear.By changing the php.ini settings error_reporting and error_log I was able to make the 502 gateway errors disappear - but more importantly I was able to see what the real php errors were in the log and fix them.The main issue was that if "error_reporting was set to display notices, "error_logging = On" then I needed make sure that error_log was ...

 ubuntu                     4 answers                     15 view
 2018-10-22         Daniel

Chromedriver on Ubuntu 12.04 - Error while loading shared libraries: libXi.so.6

I downloaded the 32-bit chromedriver version on my Ubuntu 12.04 machine.However, it won't run and exits with the following message. I have searched various places on the internet but failed to find a solution../chromedriver: error while loading shared libraries: libXi.so.6: cannot open shared object file: No such file or directory libXi.so.6 is provided by libxi6. Chromedriver will then also ask for libgconf-2-4 with a similar message.sudo apt-get install libxi6 libgconf-2-4Whenever facing an issue of missing a specific file apt-file comes to rescue:$ apt-file search lib...

 ubuntu                     2 answers                     73 view
 2018-10-22         Kyle

How can I get the right numpy working for python 3 in Ubuntu 14.04

I am using Ubuntu 14.04 and it has python 3 installed in default. I have installed numpy and scipy for python 3 using the Ubuntu package manager but not pip:apt-get install python3-numpy python3-scipyWhen I run a script with python3, it seems that it used the numpy installed with python 2.7:python3 script.pyOriginal exception was:Traceback (most recent call last):...line 18, in <module> import numpy as np File "/usr/local/lib/python2.7/dist-packages/numpy/__init__.py", line 170, in <module> from . import add_newdocs File "/usr/local/lib/python2.7/dist-pa...

 ubuntu                     1 answers                     30 view
 2018-10-22         Dorothy

How do I install ubuntu packages in singularity image?

I work on a CentOS 6.6 system. I have a writeable singularity ubuntu 16.04 image, that I know that I can in fact write to:[root@qmaster02]# whoamiroot[root@qmaster02]# singularity shell --writable gtnSingularity: Invoking an interactive shell within container...Singularity gtn:~> ls /opt/ZFP bart-0.3.01 code manifest.json start_supervisor supervisord.conf v0.3.01.tar.gzSingularity gtn:~> touch /opt/mynewfileSingularity gtn:~> ls /opt/ZFP bart-0.3.01 code manifest.json mynewfile start_supervisor supervisord.conf v0.3.01.tar.gzI now try to install a new...

 ubuntu                     1 answers                     19 view
 2018-10-22         Burnell

Kinect + ROS + VMware Ubuntu

I am using openni_kinect on a VM running ubuntu 11.10 . The host laptop runs windows 8 . When I run rviz I do not see any depth or RGB image , although the kinect is plugged in, roscore is running , and openni_kinect node has been launchedWhat is the issue ? This question-answer is similar to your problem. So if @cassinaj 's answer doesn't give you any video, look here: Kinect / Primesense (Xtion) ROS Ubuntu through Virtual Machine (VMware) [XXX]If everything is running as you say, do the following if you haven't:Add an "Image" Display type. Use the Add Button at the...

 ubuntu                     2 answers                     40 view
 2018-10-22         Matthew

Are 32-bit libraries installable on Ubuntu 16.04 for Android development?

I have installed Ubuntu 16.04 but I am stuck because the distribution can not install the 32-bit libraries sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6. My output isReading package lists... DoneBuilding dependency tree Reading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation: The fol...

 ubuntu                     1 answers                     93 view
 2018-10-22         Susan

The system is running in low-graphics mode

Im trying to repurpose a Cryptocoin mining rig for AI research.The operating system is Ubuntu 16.04 LTS.In order to utilize the graphics cards I need to install Nvidia drivers and Cuda. However, whenever I restart the box I always get the following error: The system is running in low-graphics mode My question is, how can I tell Ubuntu to not use these drivers? I need them installed, but they are only used by nvidia-docker. Here is a link that should help you on ask Ubuntu. https://askubuntu.com/questions/335285/how-to-change-proprietary-video-driver-using-the-command-l...

 ubuntu                     1 answers                     99 view
 2018-10-22         Ula

Can't open IntelliJ in terminal, Ubuntu Linux 16.04

I've successfully installed IntelliJ IDEA (community edition) and Java (Version 10.0.2) on my Ubuntu Linux 16.04. However, I want to be able to open files on the terminal (similar to being able to use 'code .' to open files in VS Code).I did some research, and it says you need to open IntelliJ, go to "tools", and there will be an option that says "create command-line Launcher". However, when I go there, that option isn't present. The really strange thing is that if I go to settings -> menus and toolbars -> main menu -> tools, the "command-line launcher" function IS prese...

 ubuntu                     2 answers                     102 view
 2018-10-22         Irene

postfix re-processing of spool - ubuntu

This is not technically a programming question but perhaps someone can help me. Yes, it's totally off topic, but i'm desperate for help as I'm no expert at this type of thing.We had a problem on our mail server over the weekend and upon updating postfix, i noticed that mail was no longer being delivered to the /home/$user/Maildir/ as defined by the alias map. We have now fixed that, and mail is getting delivered, but previous mail that was not being delivered to mailboxes was stacking up in the spool in /var/mail as flat files containing email data.I would like to get postf...

 ubuntu                     1 answers                     18 view
 2018-10-22         Ronald

How can I pass a string comprised of an ASCII character repeated 'n' times as a command line argument to a simple c program?

Greetings Stack exchange. I am learning about buffer overflow exploits. As is customary for beginners, I am working from a very simple 'C' program that uses an unsafe, non-validating function, such as gets(), to fill a fixed length declared buffer with a string commandline argument stored in argv[]. For context, the program follows:#include <stdio.h>#include <string.h>#include <stdlib.h>int main(int argc, char *argv[]){ char buffer[512]; if (argc < 2) { printf("Please feed the buffer :D"); exit(0); } strcpy(buffer, argv[1]);...

 ubuntu                     1 answers                     68 view

Page 1 of 133  |  Show More Pages:  Top Prev Next Last