Ubuntu

计算机基础和一些命令

喜夏-厌秋 提交于 2020-12-30 09:11:49
一,计算机组装。 计算机硬件分为输入/输出设备。主机包括机箱,电源,主板,cpu,内存,显卡,声卡,网卡,硬盘,光驱和软驱等,输入/输出设备包括显示器,键盘,鼠标,音箱,摄像头,打印机和扫描仪等。 台式机可以分为品牌机与组装机。 BIOS与UEFI:BIOS是一段程序,其内容固化在计算机主板上的一个ROM芯片上。 UEFI实质上就是lntel公司最早推出的EFI,UEFI接口用于从预启动的操作环境加载信息到本地操作系统上。 二,VMwore Workstation。 虚拟机分为 传统的计算机软件架构 寄居架构 原生架构 虚拟机常见的软件程序有 VMwore Workstation。VMwore vSphere。VirtualBox,。KVM。Virtual Server。Hyper-V。XenDesktop。XenServer等。 切换至虚拟机 ctrl+G 切换至主机 ctrl+Alt 全屏显示虚拟机 ctrl+alt+enter 三,Windows 10部署。 Microsoft Windows UNIX Linux (Red Hat/CentOS/MS-DOS) Mas OS MS-DOS 安装Windows 10的相关要求:系统架构 X86(32bit) X86-84(64bit) Cpu主频 1GHz或更高 内存容量 1GB 2GB 硬盘容量 16GB 20GB 显示相关

How to remove Elasticsearch from Ubuntu?

蹲街弑〆低调 提交于 2020-12-30 07:54:15
问题 I think that I already removed elasticsearch from my computer, and still I have some doubts. When I type: $ service elasticsearch status I get: elasticsearch.service Loaded: not-found (Reason: No such file or directory) Active: failed (Result: exit-code) since Wed 2017-08-09 01:08:18 PDT; 38min ago Main PID: 73249 (code=exited, status=1/FAILURE) Aug 09 01:08:18 ubuntu elasticsearch[73249]: Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0)

How to remove Elasticsearch from Ubuntu?

丶灬走出姿态 提交于 2020-12-30 07:52:04
问题 I think that I already removed elasticsearch from my computer, and still I have some doubts. When I type: $ service elasticsearch status I get: elasticsearch.service Loaded: not-found (Reason: No such file or directory) Active: failed (Result: exit-code) since Wed 2017-08-09 01:08:18 PDT; 38min ago Main PID: 73249 (code=exited, status=1/FAILURE) Aug 09 01:08:18 ubuntu elasticsearch[73249]: Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0)

Gradle sync failed: com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException: Module: 'app' platform 'android-29' not found

廉价感情. 提交于 2020-12-30 06:55:47
问题 Installed Android 4.1 on Ubuntu 20.04. Getting the following error: Gradle sync failed: com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException: Module: 'app' platform 'android-29' not found. On opening the SDK manager I get the following screen: I also executed $ANDROID_HOME/cmdline-tools/tools/bin/sdkmanager --licenses How to fix this? ------ edit --------- This is what shows in the SDK Platforms tab. Unchecking the "Hide Obsolete Packages" doesn't change

PHP XML Extension: Not installed

邮差的信 提交于 2020-12-29 02:40:35
问题 So i'm currently installing mybb and went through a very long tutorial on how to do it. The problem is when I get to the requirements check this shows up How does one go about fixing this? I read that I may need to do sudo apt-get install php-xml I have done this and everything went ok but still doesn't change it to installed. FYI: I have only been using this OS for a few days so please go nice on me :) 回答1: You're close sudo apt-get install php-xml Then you need to restart apache so it takes

PHP XML Extension: Not installed

回眸只為那壹抹淺笑 提交于 2020-12-29 02:35:46
问题 So i'm currently installing mybb and went through a very long tutorial on how to do it. The problem is when I get to the requirements check this shows up How does one go about fixing this? I read that I may need to do sudo apt-get install php-xml I have done this and everything went ok but still doesn't change it to installed. FYI: I have only been using this OS for a few days so please go nice on me :) 回答1: You're close sudo apt-get install php-xml Then you need to restart apache so it takes

九,Linux-3.19内核支持挂载NFS文件系统

╄→尐↘猪︶ㄣ 提交于 2020-12-28 08:02:30
文档时间:2018-08-25 交叉编译器:arm-linux-gcc-4.3.2 Ubuntu版本:16.04 kernel版本:linux-3.19 一,在 Ubuntu 上安装配置 NFS 1),安装 NFS 输入命令 sudo apt-get install nfs-kernel-server 安装 nfs-kernel-server: 输入命令 sudo apt-get install nfs-common 安装 nfs-common 这是挂载 nfs目录所需要的: 2),建立共享工作目录 输入命令: /home/aaron/ work mkdir nfs_root // 建立工作目录 chmod 777 nfs_root // 修改nfs_root权限 把制作好的根文件系统 fs_new 拷贝到 nfs_root 目录下 3),配置 NFS 打开 /etc/exports,添加如下内容: /home/aaron/work/nfs_root *(rw,sync,no_root_squash,no_subtree_check) * : 允许所有的网段访问 rw : 挂接此目录的客户端对该目录具有读写权限 sync :资料同步 no_root_squash :root 用户对文件目录具有完全访问权限 no_subtree_check :不检查父目录的权限 配置完成后,重启

七,移植linux-3.19内核

╄→гoц情女王★ 提交于 2020-12-28 05:49:14
文档时间:2018-08-18 交叉编译器:arm-linux-gcc-4.3.2 Ubuntu版本:16.04 kernel版本:linux-3.19 1,分析 uboot 如何启动内核 通过之前对环境变量保存的分析可知,uboot是通过 bootcmd 来启动内核的,在 include/configs/jz2440.h 中我们有定义: #define CONFIG_BOOTCOMMAND "nand read 0x30000000 kernel; bootm 0x30000000" // bootcmd 有以下图片可知:执行 bootcmd 时,会将内核代码从nand 读到内存30000000 处,然后开始执行。 由于要执行 bootm 命令,所以我们需要打开与 bootm 命令相关的文件进行分析,从名字可知,需要打开 cmd_bootm.c (位于 common 目录下)文件,找到对应的 do_bootm 函数: ( PS:一般与 xxx 命令相关的文件都在 common 目录下,名为cmd_xxx.c ) 如上图,可以看出,do_bootm 会执行 boot_os 里的所有函数,进入到 boot_os 结构体中: 发现,虽然函数很多,但是与启动内核有关的只有 do_bootm_linux 函数,进入到 do_bootm_linux 函数 (位于 arch/arm/lib

在 Ubuntu Linux 上安装 Deb 文件的 3 种方法

断了今生、忘了曾经 提交于 2020-12-28 02:55:37
这篇初学者文章解释了如何在 Ubuntu 中安装 deb 软件包。它稍后也向你展示如何移除这些 deb 软件包。 这是 Ubuntu 初学者系列的另一篇文章。如果你对 Ubuntu 很陌生,你可能会想知道 如何安装应用程序 。 最简单的方法是使用 Ubuntu 软件中心。在软件中心中搜索应用程序的名称并安装它。如果你能在软件中心中找到所有的应用程序,那么生活就太惬意了。但是,不幸的是,这是不可能的发生的。 一些软件包可以通过 DEB 软件包的形式获得。它们是以 .deb 扩展名为结尾的存档文件。你可以把 .deb 文件看作为 Windows 中的 .exe 文件。在 Windows 中,你双击 .exe 文件,它将开始安装过程。DEB 软件包也是非常类似的。 你可以从软件提供商网站的下载区域找到这些 DEB 软件包。例如,如果你想 在 Ubuntu 上安装 Google Chrome ,你可以从它的网站下载 Chrome 的 DEB 软件包。 现在问题产生了,你将如何安装 deb 文件呢?在 Ubuntu 中有多种安装 DEB 软件包的方法。在这篇教程中,我将向你依次地展示它们。 在 Ubuntu 和基于 Debian 的 Linux 发行版中安装 .deb 文件 你可以选择一个 GUI 工具或一个命令行工具来安装一个 deb 软件包。你拥有选择权。 让我们继续看看如何安装 deb

如何写出安全的、基本功能完善的Bash脚本

廉价感情. 提交于 2020-12-28 01:13:56
每个人或多或少总会碰到要使用并且自己完成编写一个最基础的Bash脚本的情况。真实情况是,没有人会说“哇哦,我喜欢写这些脚本”。所以这也是为什么很少有人在写的时候专注在这些脚本上。 我本身也不是一个Bash脚本专家,但是我会在本文中跟你展示一个最基础最简单的安全脚本模板,会让你写的Bash脚本更加安全实用,你掌握了之后肯定会受益匪浅。 为什么要写Bash脚本 其实关于Bash脚本最好的解释如下: The opposite of "it's like riding a bike" is "it's like programming in bash". A phrase which means that no matter how many times you do something, you will have to re-learn it every single time. — Jake Wharton (@JakeWharton) December 2, 2020 意思就是,跟骑自行车相反,无论做了多少次,每次都感觉像重新学一样。 但是Bash脚本语言和其他一些广受欢迎的语言,例如JavaScript一样,他们不会轻易突然消失,虽然Bash脚本语言不太可能成为业界的主流语言,但实际他就在我们周围,无处不在。 Bash就像继承了shell的衣钵一样