ubuntu-18.04

Hyper-V W10 (Host) Ubuntu 18.04 (Guest): Why does enhanced session mode not work?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 14:08:32
问题 I have installed Ubuntu 18.04 as a guest system on a Windows 10 host system using Hyper-V and I want to use the guest system in full-screen mode. To resize the screen as far as I have learned I need to run the guest system in enhanced session mode. If I am connecting to the guest system it neither lets me choose the screen size nor activate the Enhanced Session Mode. Enhanced Session Mode (User) and Enhanced Session Mode Policy (Server) are activated under the Hyper-V Settings. I have also

curl package not available for several R packages

这一生的挚爱 提交于 2019-12-12 11:08:05
问题 I just installed ubunutu 18.04 and I successfully install R version 3.5.1. I am having problems installing R packages such as plotly. It seems that the packages curl and httr are not available. The full error message: > install.packages("plotly") Installing package into ‘/home/lualeperez/R/x86_64-pc-linux-gnu-library/3.5’ (as ‘lib’ is unspecified) also installing the dependencies ‘curl’, ‘openssl’, ‘httr’ trying URL 'https://cloud.r-project.org/src/contrib/curl_3.2.tar.gz' Content type

How to force Conda to use gcc found at /usr/bin/gcc?

左心房为你撑大大i 提交于 2019-12-11 16:42:20
问题 On Ubuntu 18.04 I run which gcc and the output is as expected. ubuntu@USER1:~$ which gcc /usr/bin/gcc However when I activate my conda environment and run which gcc I get: (tensorflow_p36) ubuntu@USER1:~$ which gcc /home/ubuntu/anaconda3/envs/tensorflow_p36/bin/gcc This location seems strange to me. I wan to use the normal system wide gcc . I know this is not default behaviour as in my other Ubuntu instance when I run which gcc the output is correct: (tensorflow_p36) ubuntu@USER2:~$ which gcc

Will my program return the correct position I wanted after meeting a set number of newlines?

半城伤御伤魂 提交于 2019-12-11 16:01:10
问题 I'm trying to read a file backwards (say 10 lines at the end of the file). I would increment my new line counter ( newline_counter ) everytime it reads a '\n'. Once newline_counter reaches user_num (argument), say 10 lines, lseek() would stop at the current position ( current_pos ). I'm returning this position so that I can use this position in another function which uses lseek() to this position and start reading from this position and write until the end of the file. I have successfully

AWS EC2 Ubuntu instance giving “ld cannot find library” error during installation procedure

会有一股神秘感。 提交于 2019-12-11 15:49:53
问题 I am running Ubuntu 18.04 on an AWS EC2 instance. I activate conda virtual environment and try to install several packages. During installation of mujoco-py I get: /home/ubuntu/anaconda3/envs/tensorflow_p36/compiler_compat/ld: cannot find -lOSMesa /home/ubuntu/anaconda3/envs/tensorflow_p36/compiler_compat/ld: cannot find -lGL /home/ubuntu/anaconda3/envs/tensorflow_p36/compiler_compat/ld: cannot find -lpthread /home/ubuntu/anaconda3/envs/tensorflow_p36/compiler_compat/ld: cannot find -lc

Unable to set a cron job to take backup of the postgresql database

允我心安 提交于 2019-12-11 15:39:16
问题 I have tried to backup postgresql database by using many methods but unable to do.Please help me. /etc/crontab 0 6 * * * sudo pg_dump -U USERNAME -h REMOTE_HOST -p REMOTE_PORT NAME_OF_DB > LOCATION_AND_NAME_OF_BACKUP_FILE .pgpass localhost:5432:db_name:postgres:password /etc/crontab 0 6 * * * /home/backup.php backup.php <?php exec('pg_dump --dbname=postgresql://username:password@127.0.0.1:5432/mydatabase > dbbackup.sql',$output); print_r($output); ?> I tried this as well. https://dzone.com

“Error: File Not Found” in Ubuntu 18.04 LTS

試著忘記壹切 提交于 2019-12-11 15:29:24
问题 So my Ubuntu terminal is claiming that the java file I'm trying to run does not exist. However, it clearly does, and it looks like I'm in the right directory. Here's what I'm trying to compile And here's what happens Can anybody help me with this? 回答1: If you are sure that you are in the right directory, BE SURE that you write the filename Exactly as what it is. Because Linux is case sensitive and for example, if you have a file with name "Sample" and you try to open "sample" file, you will

Ubuntu 18.04/Netbeans 10.0 Fatal Error: Unable to find package java.lang in classpath or bootclasspath

戏子无情 提交于 2019-12-11 15:26:22
问题 First, I work on Ubuntu 18.04 with netbeans 10.0 and open JDK 11. When I create a basic new project, alerts directly triggered. cannot access java.lang Fatal Error: Unable to find package java.lang in classpath or bootclasspath I tried to uninstall/install netbeans and openJKD 11 but nothing work. I looked on lots of forums discussions with this kind of problem but nothing work. For information, xxx:~$java -version gives openjdk version "11.0.3" 2019-04-16 OpenJDK Runtime Environment (build

Permission denied inside /var/www/html when creating a website and it's files with the apache2 server

走远了吗. 提交于 2019-12-11 14:42:28
问题 UPDATE** The screenshot is within atom, but when I navigate to the directory using the file explorer, and right click, the option to rename or create a new folder are restricted and I cannot click on them. I just finished setting up the LAMP stack on my fresh UBUNTU 18.04 installation. I have everything working, the default /var/www/html/index.html page from Apache2 is being served on localhost, no port forwarding or any unique domain name, i just wanna run this on my network from my computer

apt-get error: Version '5:19.03.4~3-0~ubuntu-bionic' for 'docker-ce' was not found

笑着哭i 提交于 2019-12-11 14:16:17
问题 Documentation provides syntax to install specific version of docker-ce : $ sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io On similar line, below dockerfile uses the above syntax: FROM jenkins/jenkins:lts ENV DEBIAN_FRONTEND=noninteractive USER root ARG DOCKER_GID=497 # Create Docker Group with GID # Set default value of 497 if DOCKER_GID set to blank string by Docker compose RUN groupadd -g ${DOCKER_GID:-497} docker # Install base packages for