Ubuntu

NPM: no such file or directory

送分小仙女□ 提交于 2020-12-08 08:05:53
问题 I'm using Ubuntu 16.04 I removed NPM in order to install older version. (I can't exactly command which I used). now I can't install it again. npm -v output: bash: /usr/bin/npm: /usr/bin/nodejs: bad interpreter: No such file or directory which npm output: /usr/bin/npm curl -L http://npmjs.org/install.sh | sudo sh Output: `install npm@latest fetching: https://registry.npmjs.org/npm/-/npm-5.5.1.tgz module.js:544 throw err; ^ Error: Cannot find module '/tmp/npm.9881/package/bin/read-package-json

在ubuntu16.04编译安装httperf

。_饼干妹妹 提交于 2020-12-08 05:24:43
在网上偶尔看到httperf可以在测试中使用。网上苦苦找不到ubuntu编译安装的方法。自己琢磨了一下,现在总结如下: apt install httperf vim /etc/security/ limits.conf * hard nofile 65532 * soft nofile 65532 root hard nofile 65532 root soft nofile 65532 vim /usr/include/x86_64-linux-gnu/bits/ typesizes.h /* Number of descriptors that can fit in an `fd_set'. */ #define __FD_SETSIZE 1024 改为 #define __FD_SETSIZE 65532 apt install libtool-bin libssl-dev openssl automake libevent-dev autoconf autotools- dev m4 libtoolize autoreconf - i aclocal autoconf autoheader automake --add- missing . / configure make make install ln /usr/local/bin/httperf httperf

十代因特尔NUCi7ubuntu16.04解决无wifi、无声音、无法播放视频问题

你说的曾经没有我的故事 提交于 2020-12-07 20:11:54
十代因特尔NUCi7ubuntu16.04解决无wifi、无声音、无法播放视频问题 系统内核 无法播放声音的问题 无法播放视频问题 之前在使用因特尔NUCi5版本时,所有的安装都顺风顺水,wifi、显卡、声音都是没有bug的。但是在更换十代NUC之后,之前的安装方式却出现了很多问题,其中最主要的就是没有WIFI的问题,在进行了许多次尝试之后终于解决。 系统内核 升级系统内核可以解决这个问题 操作流程可以参考这个博客,但是也会遇到一些小问题 https://blog.csdn.net/MIRANA0/article/details/106696334 1.在安装完5.2.20版本到内核之后需要重启,而重启会出现奇怪到报错无法进入ubuntu系统,这时需要关闭bios的安全模式才可以 2.关于系统内核与显卡的问题需要根据自己的实际情况来选择,不能盲目按照他人的流程来 无法播放声音的问题 1.可以尝试安装pavucontrol,然后启动。 2.将配置改为模拟立体声输出即可 sudo apt-get install pavucontrol pavucontrol 无法播放视频问题 无法播放视频问题多半是因为使用了火狐浏览器,由于不支持flash插件原因导致,当然解决办法也很简单 1.安装旧版本到flash插件 2.或者直接换一个浏览器使用即可 来源: oschina 链接: https:/

AC8257 ubuntu16.04 android9.0 编译环境搭建--安装编译环境

…衆ロ難τιáo~ 提交于 2020-12-07 17:00:47
首先参考MT6735的编译环境安装,毕竟ATC的代码基于MTK的代码基础上修改的,参考: https://blog.csdn.net/gjy_it/article/details/79524561 安装samba ssh请参考: ubuntu14.04 AndroidM编译环境搭建 安装编译环境并编译: 1、安装依赖包: ubuntu12.04(没验证过): sudo apt - get install git - core gnupg flex bison ccache gperf libsdl1 . 2 - dev libesd0 - dev libwxgtk2 . 6 - dev build - essential zip curl libncurses5 - dev zlib1g - dev valgrind libc6 - dev lib32ncurses5 - dev x11proto - core - dev libx11 - dev lib32readline - gplv2 - dev lib32z1 - dev libgl1 - mesa - dev gcc - 4.4 g ++ - 4.4 g ++ - 4.4 - multilib g ++ - multilib mingw32 tofrodos python - markdown libxml2 -

Error about “apt-get update” when building a Docker Image

。_饼干妹妹 提交于 2020-12-07 07:15:53
问题 I'm trying to build a custom docker image for running some python code in ubuntu. The Dockerfile is as follows: FROM ubuntu:latest LABEL maintainer="NONE" LABEL version="0.1" LABEL description="This is custom Docker Image for " ARG DEBIAN_FRONTEND=noninteractive ARG --security-opt seccomp:unconfined RUN apt-get update RUN apt-get install software-properties-common RUN add-apt-repository ppa:deadsnakes/ppa RUN apt-get update RUN apt-get install python3.8 RUN mkdir file When I try to build the

Ubuntu16.04 安装 Docker

走远了吗. 提交于 2020-12-07 02:44:28
root@ubuntu1604:~# more /etc/os-release NAME="Ubuntu" VERSION="16.04.5 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.5 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial 开始安装: 更新软件列表: apt-get update 允许apt命令可以使用HTTPS访问Docker repository: apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common 添加Docker官方的GPG key: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Linux Bash Shell on windows 10

核能气质少年 提交于 2020-12-06 23:40:05
问题 I am new to Docker. I'm trying to work with it on windows. I have Windows 10 Family so I installed Linux Bash Shell. When I run this command: $ docker run hello-world I get : docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? . And when I run $ systemctl status docker I get System has not been booted with systemd as init system (PID 1). Can't operate 回答1: It seems like you wont be able to use docker in Windows 10 family , since docker

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Linux Bash Shell on windows 10

核能气质少年 提交于 2020-12-06 23:37:11
问题 I am new to Docker. I'm trying to work with it on windows. I have Windows 10 Family so I installed Linux Bash Shell. When I run this command: $ docker run hello-world I get : docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? . And when I run $ systemctl status docker I get System has not been booted with systemd as init system (PID 1). Can't operate 回答1: It seems like you wont be able to use docker in Windows 10 family , since docker

Docker基本操作

为君一笑 提交于 2020-12-06 18:50:47
Docker 简介 什么是docker?A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another. 简而言之docker就是一个容器,将代码、依赖、环境配置等打包,打包好的容器可以发布到任何流行的linux上,能做到一次配置,到处运行。 Docker 是一个开源的应用容器引擎,基于 Go 语言 并遵从 Apache2.0 协议开源。Docker 可以让开发者打包他们的应用以及依赖包到一个轻量级、可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。 容器是完全使用沙箱机制,相互之间不会有任何接口(类似 iPhone 的 app),更重要的是容器性能开销极低。 Docker 和传统虚拟化方式的不同之处,可见容器是在操作系统层面上实现虚拟化,直接复用本地主机的操作系统,而传统方式则是在硬件层面实现。 docker 中主要有两个概念 image (镜像)、container (容器),镜像是只读的,可移植;容器是可写的,可执行的,我们运行的都是容器

oslab oranges 一个操作系统的实现 实验一

十年热恋 提交于 2020-12-06 18:48:50
实验目的: 搭建基本实验环境,熟悉基本开发与调试工具 对应章节:第一、二章 实验内容: 1.认真阅读章节资料 2. 在实验机上安装 virtualbox,并安装ubuntu 3. 安装 ubuntu开发环境,32位环境 4. 下载 bochs源码,编译并安装bochs环境 5. 使用 bochs自带工具bximage创建虚拟软驱 6. 阅读、编译 boot.asm,并反汇编阅读 7. 修改 bochsrc,运行并调试你的第一个程序: 删除 AA55,观察程序效果,找出原因 修改程序中输出为,一个任意长度的打印字符串,调试程序 把生成的可执行文件反汇编,并设置断点进行调试,打印过程 回答:为什么要对段寄存器进行赋值 回答:如何在该程序中调用系统中断 实验环境: VMwareWorkstationPro 15.5.0 Ubuntu 12.04.5 desktop i386 32位 bochs 2.6.9 关键技术: Bochs的使用,主要在于反汇编与单步调试 汇编代码的理解 Makefile的使用 实验步骤: 1. 在实验机上安装 virtualbox,并安装ubuntu开发环境,32位环境 在官网下载VMware Workstation Pro 15.5.0并安装 在http://mirrors.163.com/ubuntu-releases/, 下载: 32位Ubuntu,12