Ubuntu

SDK directory is not writable when building Android project on Ubuntu agent of Azure Pipelines

吃可爱长大的小学妹 提交于 2021-02-08 15:53:53
问题 I'm configuring my build pipeline for an Android project. So far, all of my steps are working perfectly on Hosted VS2017 agent, including fetching the code, building with gradlew, publishing the artifact and deploying it to AppCenter. However, on Hosted Ubuntu 1604, there are a few problems with gradlew step. On VS2017 agent, this works with just: .\gradlew assembleDebug On Ubuntu 1604, this is what I'm having right now: chmod 775 gradlew chmod 775 /usr/local/lib/android/sdk --> The fix I'm

SDK directory is not writable when building Android project on Ubuntu agent of Azure Pipelines

余生长醉 提交于 2021-02-08 15:53:33
问题 I'm configuring my build pipeline for an Android project. So far, all of my steps are working perfectly on Hosted VS2017 agent, including fetching the code, building with gradlew, publishing the artifact and deploying it to AppCenter. However, on Hosted Ubuntu 1604, there are a few problems with gradlew step. On VS2017 agent, this works with just: .\gradlew assembleDebug On Ubuntu 1604, this is what I'm having right now: chmod 775 gradlew chmod 775 /usr/local/lib/android/sdk --> The fix I'm

Permission of using curlftpfs on Ubuntu

爱⌒轻易说出口 提交于 2021-02-08 15:31:11
问题 I use $sudo curlftpfs –o allow_other alpha:1234 @192.168.1.100 /home/alpha/share to mount ftp folder as a local folder in Ubuntu 12.04 and then I can read and edit files in that folder but I can't add a new file in this folder with Matlab Here's the situation I use Matlab to plot a png file in this folder but Matlab told me that it don't have permission to create new file in this folder so I check with $ls -al amd it give me following info: drwxr-xr-x 1 root root 1024 1?? 1 1970 share When I

OpenMP Parallel for-loop showing little performance increase

£可爱£侵袭症+ 提交于 2021-02-08 14:42:05
问题 I am in the process of learning how to use OpenMP in C, and as a HelloWorld exercise I am writing a program to count primes. I then parallelise this as follows: int numprimes = 0; #pragma omp parallel for reduction (+:numprimes) for (i = 1; i <= n; i++) { if (is_prime(i) == true) numprimes ++; } I compile this code using gcc -g -Wall -fopenmp -o primes primes.c -lm ( -lm for the math.h functions I am using). Then I run this code on an Intel® Core™2 Duo CPU E8400 @ 3.00GHz × 2 , and as

联想工作站将全部通过Linux认证

谁说我不能喝 提交于 2021-02-08 13:38:20
科技媒体ZDnet和福布斯报道, 联想 宣布扩大对 Linux 桌面的支持,将整个工作站产品线都进行 Linux 认证,针对 ThinkStation PC系列 和 ThinkPad P Series 笔记本电脑系列预装 Ubuntu 或 Red Hat Enterprise Linux 。此外 联想 还建立了Linux专门的网站入口,以及 Linux 论坛,提供配置支持等。联想(Lenovo)的工作站执行总监 Rob Herman 表示,联想未来还会把上游设备驱动直接提供到Linux内核,帮助维护工作站在整个寿命期间的稳定性和兼容性。预装Linux给用户带来更多的方便,帮助组织更好的管理设备。预装Linux预计6月份开始执行。 开源派红包福利 打开支付宝首页搜索“556850443” 立即领红包 微信订阅号:开源派 (opensourcepie) ↓点击 阅读原文, 查看相关链接 本文分享自微信公众号 - 开源派(opensourcepie)。 如有侵权,请联系 support@oschina.cn 删除。 本文参与“ OSC源创计划 ”,欢迎正在阅读的你也加入,一起分享。 来源: oschina 链接: https://my.oschina.net/u/4181889/blog/4414070

Sudo漏洞影响全球Unix/Linux系统

て烟熏妆下的殇ゞ 提交于 2021-02-08 12:54:48
Python实战社群 Java实战社群 长按识别下方二维码, 按需求添加 扫码关注添加客服 进Python社群▲ 扫码关注添加客服 进Java社群 ▲ 来源丨安全牛 https://mp.weixin.qq.com/s/BOON4ZO3DJfQaaLsw2AwZA 近日,Qualys研究小组发现了sudo中一个隐藏了十年的堆溢出漏洞(CVE-2021-3156,命名:Baron Samedit), 包括Linux在内的几乎所有Unix主流操作系统都存在该漏洞。 通过利用此漏洞,任何没有特权的用户都可以使用默认的sudo配置在易受攻击的主机上获得root特权(无需密码)。 Sudo是一个功能强大的实用程序,大多数(如果不是全部)基于Unix和Linux的操作系统都包含Sudo。它允许用户使用其他用户的root权限运行程序。Qualys发现的这个sudo提权漏洞已经隐藏了将近十年,它于2011年7月在一次提交中被引入(提交8255ed69),在默认配置下会影响从1.8.2到1.8.31p2的所有旧版本,以及从1.9.0到1.9.5p1的所有稳定版本。 通过利用该漏洞,任何没有特权的(本地)用户都可以在易受攻击的主机上获得root特权。Qualys安全研究人员已经能够独立验证漏洞并开发多种利用形式,并在Ubuntu 20.04(Sudo 1.8.31)、Debian 10(Sudo 1

OpenFOAM安装

给你一囗甜甜゛ 提交于 2021-02-08 12:40:10
OpenFOAM有俩种安装方式,第一种为直接安装,第二种为编译安装。直接安装的OpenFOAM由于网络问题不太稳定。本文介绍编译安装方法。注意:需要保证linux系统可以联网。 1. OpenFOAM安装 以下安装过程适用于Ubuntu20.04/19.10/18.10/18.04系统,以及原生OpenFOAM-3.0以上的版本,其他各版本可能会出现若干问题。 (1)安装好ubuntu系统,并 确保ubuntu可以联网 、确保内存 最好在10G以上 。 (2)进入Ubuntu桌面。通过Ctrl+Alt+T启动终端,在终端输入(分二次输入,直接全部复制进去): sudo apt update sudo apt-get install build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev 键入后会要求输入密码。注意,密码并未显示。回车后,会提示是否安装这些库,键入 y 后进行安装即可。这样,准备工作进行完毕。 (3)下载 OpenFOAM-8 以及 ThirdParty-8

GCC /usr/bin/ld: cannot find -lGl

风格不统一 提交于 2021-02-08 12:13:47
问题 eI'm trying to compile a c++ openGL program using libGL and freeglut3. Im trying: g++ main.cpp -w -lglut -lGl -o bin/app or g++ main.cpp -w -lglut -lGL -o bin/app Which results in: /usr/bin/ld: cannot find -lGl collect2: error: ld returned 1 exit status Makefile:16: recipe for target 'all' failed make: *** [all] Error 1 I'm on: Ubuntu 16.04 LTS GCC: gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) libGL.so /usr/lib/x86_64-linux-gnu$ find libGL.so libGL.so I installed: freeglut3 freeglut3

Is it possible to use Azure AD on Ubuntu for connecting to Azure SQL using sqlalchemy and Python?

我只是一个虾纸丫 提交于 2021-02-08 11:33:55
问题 Is it possible to use Azure AD on Ubuntu for connecting to Azure SQL? That is, it is possible to use trusted_connection=True in sqlalchemy in Python? # Creating engine engine = sqlalchemy.create_engine('mssql://*server_name*/*database_name*?trusted_connection=yes') On Azure you can create a linux VM with a managed identity which allows you to connect to Azure services using Azure AD. In their documentation I can find examples of how to connect to various Azure services using this, however, I