Ubuntu

WSL - GEDIT Unable to init server: Could not connect: Connection refused [closed]

三世轮回 提交于 2021-02-06 22:00:34
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . Improve this question I'm using Ubuntu 18.04 as Windows Subsystem for Linux on my Windows 10 machine. I've installed gedit without any errors or warnings. But whenever I try to use the command gedit something (here something is a filename) I get this error: Unable to init server:

How to set ANT_HOME on Ubuntu Desktop 12.04?

﹥>﹥吖頭↗ 提交于 2021-02-06 11:38:09
问题 It looks like Ubuntu uses ~/.bashrc , ~/.bash_profile , ~/.pam_profile , /etc/environment , and /etc/profile in very similar ways. I'd like to be able to add a configuration to one of these (which ever is the appropriate one) to set ANT_HOME to be the absolute path to my Ant installation's root directory (happens to be /opt/apache/ant/1.8.4/apache-ant-1.8.4/ ). This variable needs to be "honored" as is any normal env var, where I can open up a terminal and echo it at any time. It would also

Cannot run cgi, show plain text only (Ubuntu 13.10 Apache 2.4)

那年仲夏 提交于 2021-02-06 10:06:58
问题 I just install Ubuntu 13.10 and I am trying to install Apache. But when I tried to run a perl file in cgi-bin, the browser showed only plain text. My default.conf of Apache is below: AddHandler cgi-script .cgi .pl ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +Indexes +ExecCGI +MultiViews +SymLinksIfOwnerMatch #Order allow,deny Require all granted Allow from all </Directory> This is my perl cgi file: #!/usr/bin/perl print "Content-type: text

Objective-C Environment Setup For Ubuntu-Linux

时光怂恿深爱的人放手 提交于 2021-02-06 09:32:46
问题 I don't have the Mac machine for ios development. Now I am in a learning stage and want to start the ios development on Linux. So is it possible to run the Objective-C Code on Linux environment? 回答1: Yes it is possible in Ubuntu to Run the Objective-C code in the following way: In Ubuntu, Install GNU Objective-C Compiler and the Gnu-step Development Libraries with the following command:: sudo apt-get –y install gobjc gnustep gnustep-devel Now type the Program given below and save the file

Uninstall php 7 in ubuntu 18.04

泪湿孤枕 提交于 2021-02-06 09:12:19
问题 I have a server that has an application that runs with PHP 5.6. But I upgraded the server from Ubuntu 14.04 to 18.04 and in the process I also upgraded PHP to 7.2. Now I'm trying to uninstall it but I'm finding difficult. I have run the command: sudo apt-get remove php and sudo apt-get remove --purge php Its says that PHP it's not installed, but running php --version I'm still seeing the version 7 of PHP. PHP 7.2.19-0ubuntu0.18.04.2 (cli) (built: Aug 12 2019 19:34:28) ( NTS ) Copyright (c)

Uninstall php 7 in ubuntu 18.04

社会主义新天地 提交于 2021-02-06 09:05:53
问题 I have a server that has an application that runs with PHP 5.6. But I upgraded the server from Ubuntu 14.04 to 18.04 and in the process I also upgraded PHP to 7.2. Now I'm trying to uninstall it but I'm finding difficult. I have run the command: sudo apt-get remove php and sudo apt-get remove --purge php Its says that PHP it's not installed, but running php --version I'm still seeing the version 7 of PHP. PHP 7.2.19-0ubuntu0.18.04.2 (cli) (built: Aug 12 2019 19:34:28) ( NTS ) Copyright (c)

Reading the contents of an ELF section(programmatically)

╄→гoц情女王★ 提交于 2021-02-06 02:27:10
问题 I am trying to retrieve the contents of an additional section within an ELF binary. At this point, I'm using the following code to retrieve the name of each section: #include <stdio.h> #include <unistd.h> #include <stdint.h> #include <stdlib.h> #pragma pack(push,1) #pragma pack(pop) #define EI_NIDENT 16 /* 32-bit ELF base types. */ typedef unsigned int Elf32_Addr; typedef unsigned short Elf32_Half; typedef unsigned int Elf32_Off; typedef signed int Elf32_Sword; typedef unsigned int Elf32_Word

让AI落地,从打造一台智能无人机开始

…衆ロ難τιáo~ 提交于 2021-02-06 01:11:50
对于大多数无人机爱好者来说,能自己从头开始组装一台无人机,之后加入AI算法,能够航拍,可以目标跟踪,是心中的梦想。 并且,亲自从零开始完成复杂系统,这是掌握核心技术的必经之路。 开课吧特邀北京航空航天大学无人机专家,进行设计和指导,独家研发与真实的科学研究和工程开发接轨的课程。 软硬件结合, 教你亲自研发一台智能 无人机 。 《完成你的第一个无人机》 让智能无人机梦想照进现实 名额有限 招满即止 本期招生名额还剩 13 人 请备注【无人机】添加 课程由北京航空航天大学无人机专家设计和指导,与真实的科学研究和工程开发接轨。有以下六大优势: 那么,直接购买无人机和我们的课程研发无人机的区别在哪里呢?请看下图: 我们的课程并不是简单的拼装课程,更涉及到 飞行器设计、仿真平台搭建和算法实现的整体流程。 我们课程将会 教你无人机的基本组成、飞行原理、控制理论、状态估计、同时定位与建图、运动规划、目标检测追踪与多无人机协同; 从元器件开始搭建一个具有GPS导航和人为规划路线功能的无人机,并搭建无人机仿真平台,在仿真平台上实现各类智能算法的开发与部署。 本课程分为两大板块: ❥ 课程大纲 (仿真环境下无人机SLAM) ( 真实环境下无人机VIO ) (仿真环境下的运动规划) (仿真环境下的多机协同) (仿真环境下的无人机追踪行人) (真实环境下,无人机追踪亮灯) 《完成你的第一个无人机》

Arch Linux中的Pacman命令如何使用

﹥>﹥吖頭↗ 提交于 2021-02-06 00:48:55
pacman包管理器是Arch Linux 与其他主要发行版(如Red Hat和Ubuntu/Debian)的主要区别之一。pacman目的是方便地管理包,不管软件包是来自官方的 Arch 库还是用户自己创建,pacman 都能方便地管理。 环境 Archlinux 2020.04 使用pacman安装程序包 可以使用pacman同时安装一个或者多个程序包 root@archlinux> pacman -S --noconfirm apache -S :安装应用程序。 --noconfirm :安装时自动确认安装。 删除程序包 删除程序包,但不删除依赖包: root@archlinux> pacman -R --noconfirm apache 删除程序包,并且删除依赖包: root@archlinux> pacman -Rs apache –noconfirm 升级 包 Pacman提供了一种更新Arch Linux的简单方法。您只需使用一个 命令 即可更新所有已安装的程序包。这可能需要一段时间,具体取决于系统的更新程度。 使用 -Syu 选项,可以更新所有已经安装的软件包。 root@archlinux> pacman -Syu 搜索程序包 搜索本地已经安装的程序包,使用 -Q 选项: # 列出所有的程序包 root@archlinux> pacman -Q acl 2.2

sqoop 从mysql 导入数据到hbase

不羁的心 提交于 2021-02-05 20:25:47
环境: 软件 版本 备注 Ubuntu 19.10 sqoop 1.4.7 mysql 8.0.20-0ubuntu0.19.10.1 (Ubuntu) hbase 2.2.4 必须启动 hadoop 3.1.2 必须启动 hive 3.0.0 之所以和hive有关系是因为需要在.bashrc中设置HCAT_HOME accumulo 2.0.0 需要配合sqoop在.bashrc中设置ACCUMULO_HOMT 数据导入目标: mysql数据------------->Hbase ############################################################################## 准备MYSQL数据集: mysql> create database sqoop_hbase; mysql> use sqoop_hbase; mysql> CREATE TABLE book( -> id INT(4) PRIMARY KEY NOT NULL AUTO_INCREMENT, -> NAME VARCHAR(255) NOT NULL, -> price VARCHAR(255) NOT NULL); 插入数据集 mysql> INSERT INTO book(NAME, price) VALUES('Lie Sporting',