Ubuntu

ubuntu 18.04 安装go并配置proxy

前提是你 提交于 2020-12-23 10:51:08
1. 安装 ubuntu 更新 sudo apt-get update sudo apt-get -y upgrade 2. 下载 Go 二进制文件 接下来的逻辑步骤是下载 Go 二进制文件,最新软件将在 golang.org/dl/ 上提供,并在终端中的命令下方安装 ubuntu 运行的版本 mkdir tmp cd /tmp wget https://dl.google.com/go/go1.15.6.linux-amd64.tar.gz 解压缩下载的 tar,然后安装到系统中的所需位置。但是通常遵循文档最好将其安装在 /user/local/go 下。在终端中运行以下命令进行安装 sudo tar -xvf go1.15.6.linux-amd64.tar.gz sudo mv go /usr/local 3. 环境设置 我们正在设置的三个 Go 语言环境变量是 GOROOT,GOPATH 和 PATH。 GOROOT 是 Go 在机器中安装的路径 GOPATH 是工作目录的位置。 编辑.bashrc,添加以下几行 # loads go export GOROOT="/usr/local/go" export GOPATH="$HOME/go" export PATH="$GOPATH/bin:$GOROOT/bin:$PATH" export GOPROXY="https:

Netcat bidirectional communication

自作多情 提交于 2020-12-23 04:40:01
问题 The goal which I am attempting to achieve is for a client to send the following command to a server: echo "Hello" | nc IP Port Upon receiving the "Hello" keyword, the server which is listening using: nc -nlp port should then send a response "Holla" back to the client. I have tried the following, none of which work in my instance: run a command conditionally with netcat and grep Is a conditional response possible with netcat How to respond conditionally based on the request when using netcat

Netcat bidirectional communication

ぃ、小莉子 提交于 2020-12-23 04:38:48
问题 The goal which I am attempting to achieve is for a client to send the following command to a server: echo "Hello" | nc IP Port Upon receiving the "Hello" keyword, the server which is listening using: nc -nlp port should then send a response "Holla" back to the client. I have tried the following, none of which work in my instance: run a command conditionally with netcat and grep Is a conditional response possible with netcat How to respond conditionally based on the request when using netcat

Netcat bidirectional communication

筅森魡賤 提交于 2020-12-23 04:35:53
问题 The goal which I am attempting to achieve is for a client to send the following command to a server: echo "Hello" | nc IP Port Upon receiving the "Hello" keyword, the server which is listening using: nc -nlp port should then send a response "Holla" back to the client. I have tried the following, none of which work in my instance: run a command conditionally with netcat and grep Is a conditional response possible with netcat How to respond conditionally based on the request when using netcat

Pyo server.boot() fails with pyolib._core.PyoServerStateException on Ubuntu 14.04

本小妞迷上赌 提交于 2020-12-23 04:07:32
问题 I installed pyo on Ubuntu 14.04 without jack and running Python 2.7.I followed the Debian-based installing instructions written in pyo wiki. This was the code i used (it's in the pyo introduction page): from pyo import * s = Server().boot() s.start() a = Sine(mul=0.01).out() And got as result: pyo version 0.6.8 (uses single precision) ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2239:(snd

Pyo server.boot() fails with pyolib._core.PyoServerStateException on Ubuntu 14.04

老子叫甜甜 提交于 2020-12-23 04:04:58
问题 I installed pyo on Ubuntu 14.04 without jack and running Python 2.7.I followed the Debian-based installing instructions written in pyo wiki. This was the code i used (it's in the pyo introduction page): from pyo import * s = Server().boot() s.start() a = Sine(mul=0.01).out() And got as result: pyo version 0.6.8 (uses single precision) ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2239:(snd

Pyo server.boot() fails with pyolib._core.PyoServerStateException on Ubuntu 14.04

佐手、 提交于 2020-12-23 04:02:32
问题 I installed pyo on Ubuntu 14.04 without jack and running Python 2.7.I followed the Debian-based installing instructions written in pyo wiki. This was the code i used (it's in the pyo introduction page): from pyo import * s = Server().boot() s.start() a = Sine(mul=0.01).out() And got as result: pyo version 0.6.8 (uses single precision) ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2239:(snd

香橙派zero2开发板Android 10系统ROOT说明

纵然是瞬间 提交于 2020-12-23 00:28:34
香橙派Zero2开发板采用全志H616 四核 64位处理器,拥有512MB/1GB 内存可选,集成千兆以太网卡、蓝牙5.0+双频WiFi、USB2.0、TF卡槽等端口,并且,Micro-HDMI输出支持4K显示。 香橙派Zero2开发板支持安卓10、Ubuntu和Debian等操作系统。Orange Pi 发布的 Android 10.0 系统已经 ROOT,可以使用下面的方法来测试: 1) 在 Orange Pi Zero 2 资料下载页面的官方工具中下载 rootcheck.apk 2) 然后确保 Ubuntu PC 和开发板的 adb 连接正常 3) 然后使用 adb 命令安装 rootcheck.apk 到 Android 系统中,当然也可以使用 U 盘拷 贝的方式进行安装 4) 安装完后在 Android 的桌面可以看到 ROOT 测试工具的启动图标 5) 第一次打开 ROOT 测试工具后的显示界面如下图所示 6) 然后就可以点击“立刻检查”开始 Android 系统的 ROOT 状态的检查,检查完后 的显示如下所示,可以看到 Android 系统已取得 ROOT 权限 来源: oschina 链接: https://my.oschina.net/u/4537174/blog/4830436

Android 源码

被刻印的时光 ゝ 提交于 2020-12-22 17:15:39
Ubuntu16.04 python3 -V ##python版本要大于等于3.6 安装Python3.7 更新软件源 https://blog.csdn.net/lxlong89940101/article/details/89488461 下载安装Python https://blog.csdn.net/u014775723/article/details/85213793 AOSP curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo chmod +x repo 为了方便可以将其拷贝到你的PATH里。 export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo' repo的运行过程中会尝试访问官方的git源更新自己,如果想使用tuna的镜像源进行更新,可以将如下内容复制到你的~/.bashrc里 git config --global user.email "you@example.com" git config --global user.name "Your Name" repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b

阿里云ECS服务器前后端项目部署

荒凉一梦 提交于 2020-12-22 15:32:25
最近自己写了一个小项目,想把它部署在服务器上以便实时查看,在此记录一下自己的部署过程以及在部署过程中遇到的问题,方便日后查看。 参考: www.kovli.com/2017/09/19/… 作者: Kovli 一、购买云服务器 目前国内占有率比较高的就是 腾讯云 和 阿里云 ,这里本人选择的是阿里云的ECS云服务器。(吐槽一下,普通价格真的比学生价贵太多了) 如果在购买时没有设置ssh密码,可以进入ECS控制台-示例列表-重置密码中设置密码。把IP地址中的公网IP记录下来,后续会用到。 二、登录服务器 选择一款SSH工具登录远程服务器。常见的SSH工具有putty、xshell、xftp、SecureCRT等。这里我选择了putty,因为它简单易用,且不需要安装。 下载好putty之后打开putty.exe,登录界面如下: 在图中所示Host Name的位置输入之前记录的公网IP,在Saved Sessions方框内输入会话名,并点击Save即可保存当前设置,以方便下次登录。 点击Open,进入命令行界面。在这之前,可能会有以下提示: 点击“是”生成一个Key即可。 然后Putty即可连接到你的远程服务器(一般Linux)。 输入用户名和密码,即可远程登录。忘记密码的可以到管理平台中重置密码。 验证成功之后,即可进入以下界面: 接下来的操作就和在服务器本身上操作一样了。 三