精华内容
下载资源
问答
  • 一、mysql安装: ①apt-get -y install mysql-server mysql-client ②mysql_secure_installation 二、lighttpd安装: ①apt-get -y install lighttpd ...配置文件:/etc/lighttpd/lighttpd.conf ...

    软件环境:lighttpd1.4、php7.0、mysql5.7

    一、mysql安装:

    ①apt-get -y install mysql-server mysql-client

    ②mysql_secure_installation

    二、lighttpd安装:

    ①apt-get -y install lighttpd

    说明:默认目录:/var/www/html

    配置文件:/etc/lighttpd/lighttpd.conf

    其他配置:/etc/lighttpd/conf-available、/etc/lighttpd/conf-enabled

    三、php7.0安装:

    ①apt-get -y install php7.0-fpm php7.0

    四、配置lighttpd与php7.0:

    ①打卡php.ini文件,将cgi.fix_pathinfo=1前面的分号去掉

    ②注意:最好备份/etc/lighttpd/conf-available/15-fastcgi-php.conf

    #对15-fastcgi-php.conf文件进行配置,如下:
    fastcgi.server += ( ".php" => 
            ((
                    "socket" => "/var/run/php/php7.0-fpm.sock",
                    "broken-scriptfilename" => "enable"
            ))
    )

    ③启用fastcgi配置,执行命令:lighttpd-enable-mod fastcgi fastcgi-php

    ④重启lighttpd命令:service lighttpd force-roload

    ⑤在/var/www/html目录下建立测试文件,如果返回403错误,请将/var/www目录的权限改为777

    五、配置php与mysql:

    查看模块:apt-cache search php7.0

    安装模块(根据需要安装模块):apt-get -y install php7.0-mysql php7.0-curl php7.0-gd php7.0-intl php-pear

    php-imagick php7.0-imap php7.0-mcryptphp-memcache php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy

    php7.0-xmlrpc php7.0-xsl php7.0-mbstring php-getext

    apt-get -y install php-apcu

    重启fpm:service php7.0-fpm

    六、补充(lighttpd与php配置):

    ①vi /etc/php/7.0/fpm/pool.d/www.conf

    ②将listern这行的内容改为listen=127.0.0.1:9000

    ③重启fpm:service php7.0-fpm reload

    ④编辑/etc/lighttpd/conf-available/15-fastcgi-php.conf

    #对15-fastcgi-php.conf文件进行配置,如下:
    fastcgi.server += ( ".php" => 
            ((
                    "host" => "127.0.0.1",
                    "port" => "9000",
                    "broken-scriptfilename" => "enable"
            ))
    )

    ⑤重启lighttpd命令:service lighttpd force-roload

    七、其他问题

    mysql5.7不支持0000-00-00 00:00:00的默认时间设置

     

    详见:https://m.linuxidc.com/Linux/2016-05/131425.htm

    展开全文
  • 源自: ... Ubuntu's Already Making Plans For ARM In 2014, 2015 David Mandala of Canonical talked last week at Linux.Conf.Au 2012 about th

    源自:
    http://www.phoronix.com/scan.php?page=news_item&px=MTA0NzA

    Ubuntu's Already Making Plans For ARM In 2014, 2015




    David Mandala of Canonical talked last week at Linux.Conf.Au 2012 about the history of Ubuntu Linux supporting the ARM architecture, what's coming up for Ubuntu ARM in the 12.04 LTS release, and even what's expected from Ubuntu on ARM as far out as 2015.

    In terms of ARM support under Ubuntu 12.04 LTS "Precise Pangolin", Mandala didn't unleash any surprises. Ubuntu ARM will continue to be supported for netbooks as well as their quickly-developing Ubuntu ARM Server edition. On the client/netbook side, the OMAP3 Beagle Board and OMAP4 Panda Boards will continue to serve as prime development targets. There will also hopefully be initial support for the first round of ARM server SoCs from Marvell and Calxeda by April, assuming there's hardware available in time. These first-generation ARM server parts will be quad-core 1.0+GHz SoCs, as was detailed last year.

    With Ubuntu 12.04 on ARM there is also hard-float support (ARMhf), as previously talked about on Phoronix, and this will mean a huge performance boost for many workloads. Mandala said the performance boost they are seeing is between 5% and 30% improvement for floating-point operations. Also benefiting greatly for end-users is improved font-rendering, web-page scrolling, and other operations from this ARM hardfp support. Other code is also benefiting due to better use of the stack calling convention.

    (Soon I should have out some ARM hard floating-point benchmark results from Ubuntu 12.04 on the Cortex-A9 PandaBoard ES.)

    In terms of how the ARM performance is evolving, when Canonical began playing around with ARM support it would take two to three months to build out their "ARMel" archive from scratch with around 25,000 ARM binary packages from the main and universe repositories. Now with modern ARMv7 hardware and the latest Ubuntu Linux release, the "ARMhf" archive is building in about three weeks. The package building from scratch in the three week period is also up to over 36,000 packages. ARM hardware itself has improved and there's also been critical Linux bug-fixes for improving ARM throughput, etc.

    Like Ubuntu x86, the multiarch support for ARM is also coming to fruition within Ubuntu and Debian. This is good for developers wishing to have some ARM libraries installed along side their x86/x86_64 packages. Additionally, down the road this will make it easier for supporting an ARM 64-bit Linux kernel while sticking to a 32-bit ARM user-land for systems lacking sufficient RAM.

    A 64-bit ARM package archive is one of the items on the agenda for the Ubuntu 12.10 development cycle with ARMv8 support. Ubuntu 12.04 will deliver greater ARM server support, but this really will be building up over several releases. Canonical is betting big on ARM becoming huge in the server-space due to multi-core 2+ GHz performance coming while still having a miniscule power footprint compared to traditional x86 server hardware.

    On a per-Watt basis, ARM for server can easily beat the latest Intel and AMD hardware with the power being cut by three or four times for the first-generation server SoCs. With ARMv8 there will also be the 64-bit hardware support as well as virtualization. ARM Linux virtualization will be exposed via KVM and Xen.

    Ubuntu 12.10 for ARM servers will be focused around the Calxeda and Marvell server-class SoCs plus the usual spectrum of client SoCs. There will be continued work on optimizing for best power performance per Watt (side note: the Ubuntu ARM server team are among the users of the Phoronix Test Suite). Canonical wants Ubuntu 12.10 to be the first operating system to support the ARM Cortex A15, for being Linux-based or any platform. With hopefully beating Microsoft and their Windows Server 8 for ARM, Canonical also wants to make sure that Ubuntu 12.10 will fully support the virtualization capabilities found on the ARM Cortex A15 quad-core that should be out later in the year. There will also be 40-bit Large Physical Address Extensions (LPAE) support for having up to one terabyte of addressable RAM.

    With Ubuntu 12.04.1 LTS, which will be the first point release for the Long-Term Support Precise Pangolin, they hope to add in some of the quad-core A9 and A15 SoC support from Ubuntu 12.10. Canonical also hopes to bootstrap the ARM 64-bit archive from Ubuntu 12.10 for this point release. However, David Mandala mentioned that it will take about a full six-month cycle to begin getting the ARM 64-bit archive support ready, since lots of the ARM Linux code simply isn't in shape, just as was the case when multi-core ARM SoCs emerged and the ARM Linux SMP code not being fit.

    Next year, Ubuntu ARM for the 13.04 and 13.10 releases will continue to have greater client support and Ubuntu 32-bit server continuing to support enterprise-level ARM across the Cortex A8/A9/A15 SoCs. ARM Cortex A7 support is also expected for 2013 in supporting ARM's "Big Little" concept of dynamically switching between fast-ARM and slow-but-even-lower-power cores depending upon the workload.

    In 2013, Canonical also hopes to do another ARM first: be the first operating system to fully support ARMv8 true 64-bit SoCs along with the UEFI boot method and theoretically handling up to 16 Exabytes of addressable memory.

    Trying to predict further out, the Ubuntu Linux releases in 2014 and 2015 (Ubuntu 14.04 LTS, 14.10, 15.04, 15.10) will have new client and server support but ideally by then the ARM support will be conditioned in a state where there might be a single, unified ARM Linux kernel to support all ARM SoCs. Eventually they hope to get to that point for ARM support where one ARM Linux kernel build can work most anywhere, or at least for a large majority of the ARM platforms at the time. Additionally, they would like to see a single install image that could work with all available ARM hardware just as Ubuntu x86 is today.

    Below is the full Ubuntu ARM presentation by Caonical's David Mandala from Linux.Conf.Au 2012 in Ballarat, Australia.


    http://www.youtube.com/watch?feature=player_embedded&v=LRWpuJRrTn4


    展开全文
  • ARM-Ubuntu系统里安装最新版本的OpenCV Opencv在4.3.0版本的dnn模块上进行了改进,把Tengine库集成在ARM上进行加速! 这不在树莓派上安装一下最新的OpenCV,那还是人吗! 本文部分参考了–>这篇博客 前期准备 ...

    在ARM-Ubuntu系统里安装最新版本的OpenCV

    Opencv在4.3.0版本的dnn模块上进行了改进,把Tengine库集成在ARM上进行加速!
    这不在树莓派上安装一下最新的OpenCV,那还是人吗!
    本文部分参考了–>这篇博客

    前期准备

    1. 首先已经有了安装ARM-Ubuntu的树莓派。(没有的,教程在这里)
    2. 树莓派和PC端通过SSH连接好了。(不会的,教程在这里)
    3. 修改ARM-Ubuntu系统的apt源。(不会的,看这里的教程)

    通过编译OpenCV源码安装最新版本OpenCV

    1. 更新apt在树莓派的命令行输入:sudo apt-get update

    2. 在树莓派的命令行输入:sudo apt-get install build-essential

    3. sudo apt-get install build-essential

    4. sudo apt-get install cmake

    5. sudo apt-get install libgtk2.0-dev

    6. sudo apt-get install pkg-config

    7. sudo apt-get install python-dev python-numpy

    8. sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libjpeg-dev libpng-dev libtiff-dev

    9. 在树莓派的命令行输入 cmake --version
      显示cmake版本号,就OK
      如果显示 没有cmake 则在树莓派的命令行输入sudo apt-get install cmake

    10. 获得OpenCV源码
      方法一:在树莓派系统上的用户名文件夹下,新建一个文件夹opencv,把OpenCV源代码克隆下来。
      cd /home/<用户名>
      mkdir opencv
      cd opencv
      git clone https://github.com/opencv/opencv.git
      这种方式快不快就很难说了,太慢了就用方法二吧。

      方法二:在PC端下载压缩包,把包解压后倒入树莓派系统

      1. OpenCV github官网,把压缩包下载下来,解压缩。
      2. 在树莓派系统终端输入
        cd /home/<用户名>
        mkdir opencv
      3. 在PC的终端中输入scp -r <PC端文件路径> <树莓派端用户名>@<树莓派端IP>:<树莓派端保存路径>
        例如:scp -r G:/opencv ubuntu@192.168.233.1.3:/home/ubuntu/
        (加一个-r是因为远程上传的是含有多级目录的文件夹)
    11. 在树莓派终端中,进入opencv源码文件夹,在该文件夹中新建一个名为release的文件夹。
      cd ~/opencv/opencv-4.3.0
      mkdir release
      cd release
      使用cmake工具在该文件夹中生成makefile文件,指定opencv的安装文件夹为/usr/local,
      cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
      (最后俩点不能省,因为opencv的源码位于上一层文件夹)

    12. 编译源码并安装
      make
      sudo make install
      更新搜索动态链接库
      sudo ldconfig

    检验是否安装成功

    在树莓派终端中依次输入:
    python
    import cv2
    没报错就OK了

    展开全文
  • 1.ubuntu使用的是openjdk,所以我们需要先找到合适的jdk版本。在命令行中输入命令:apt-cache search openjdk返回结果列表(因个人电脑而有所不同):default-jdk-doc - Standard Java or Java compatible Development...

    1.ubuntu使用的是openjdk,所以我们需要先找到合适的jdk版本。在命令行中输入命令:

    apt-cache search openjdk

    返回结果列表(因个人电脑而有所不同):

    default-jdk-doc - Standard Java or Java compatible Development Kit (documentation) …(省略部分显示结果) openjdk-6-source - OpenJDK Development Kit (JDK) source files openjdk-7-jre-dcevm - Alternative VM for OpenJDK 7 with enhanced class redefinition openjdk-7-jre-lib - OpenJDK Java runtime (architecture independent libraries) openjdk-7-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark openjdk-8-dbg - Java runtime based on OpenJDK (debugging symbols) openjdk-8-demo - Java runtime based on OpenJDK (demos and examples) openjdk-8-doc - OpenJDK Development Kit (JDK) documentation openjdk-8-jdk - OpenJDK Development Kit (JDK) openjdk-8-jre - OpenJDK Java runtime, using Hotspot JIT openjdk-8-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless) openjdk-8-jre-jamvm - Alternative JVM for OpenJDK, using JamVM openjdk-8-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark openjdk-8-source - OpenJDK Development Kit (JDK) source files uwsgi-app-integration-plugins - plugins for integration of uWSGI and application uwsgi-plugin-jvm-openjdk-7 - Java plugin for uWSGI (OpenJDK 7)

    2.从搜索的列表里找到我们需要安装的jdk版本,如上面标黑的

    openjdk-8-jdk - OpenJDK Development Kit (JDK)

    3.输入安装命令,进行安装:

    apt-get install openjdk-8-jdk

    等待命令行显示“done”,即安装成功过。

    4.查看安装结果。输入命令:

    java -version

    显示结果如下:

    openjdk version "1.8.0_222"OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1~deb9u1-b10)OpenJDK Client VM (build 25.222-b10, mixed mode)

    则说明安装成功。

    展开全文
  • ubuntu18.04更换清华源 树莓派这些ubuntu18.04mate没法手动界面选,就只能乖乖更改文件了。网上的大概都差不多,应该也都能用,我这里备份一份自己正常用的电脑上的sources.list 备份sources.list sudo cp /etc/...
  • 定制ARM 版本的ubuntu core (16.04)

    万次阅读 热门讨论 2018-09-25 17:10:25
    ubuntu core 基本上是诸多snap 包堆积起来的一个系统,正如传统的ubuntu 是debian 堆积起来的一样。但不同的是ubuntu core 也是一个snap 包, 甚至 kernel, uboot 也分别是一个snap 包。因此,就让我们先 了解下...
  • 1 源一定要找对,我的源是arm ubuntu14.04的源(一定要选对平台和版本,我在这里找了好久): deb http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty main multiverse restricted universe deb ...
  • ubuntu 16.04 arm版运行库

    2018-11-03 22:25:41
    https://launchpad.net/ubuntu/xenial/arm64/
  • 该向日葵为arm架构的版本,支持ubuntu64,arm64位的cpu。原本是向日葵适配的国产麒麟操作系统,支持的arm版本,安装方法:打开控制台,进入到安装包目录, sudo dpkg -i 安装包名称。如果缺乏各种依赖,可以用sudo ...
  • ARM40 Ubuntu交叉编译Qt4.8.7

    千次阅读 2018-01-27 17:17:24
    主机平台:Ubuntu 16.04 LTS(x64) 目标平台:ARM40-A5D3 Qt版本:Qt4.8.7 tslib github ARM-GCC编译工具链:gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi 交叉编译工具链 下载gcc-linaro-4.9.4-2017.01...
  • 银河麒麟操作系统, arm架构 服务器制作 ubuntu ssh的docker镜像,接下来制作jdk的docker镜像 一: 基础环境准备 准备基础环境: docker ssh镜像(上文已做好...open-jdk1.8(arm版) 二: 编写Dockerfile文件 新建目录: ...
  • 由于要使用触摸屏,所以加入tslib库,把不需要的都不编译,加快编译时间。...../qt-everywhere-opensource-src-4.7.4/configure -opensource -confirm-license -embedded arm -xplatform qws/li...
  • ubuntu arm版源404解决

    千次阅读 2015-03-29 01:13:25
    deb http://ports.ubuntu.com/ubuntu-ports/ raring main universe deb-src http://ports.ubuntu.com/ubuntu-ports/ raring main universe 替换成 deb ...
  • Ubuntu更换apt源之arm版

    千次阅读 2019-06-03 17:41:47
    在linux上开发时,更换apt源是很常规的操作,如果对源的理解不透彻,更换不成功后都不知道是什么原因,就是换着瞎碰,因此决定对换源的操作...ubuntu源语句格式如下 deb http://mirrors.tuna.tsinghua.edu.cn/...
  • 这篇文章主要讲解树莓派4B安装arm64-Ubuntu20.04版本 首先,你先准备一下所需物资:树莓派主板、电源、电源线(5V,2-2.5A)、TF 卡、TF 卡读卡器、mini-HDMI 高清数据线,不能再少了! 然后使用 SD 卡格式化软件 ...
  • 要在华为的atlas 200dk上配置一下深度学习的推理环境。 网上编译好的包不能直接用,要重新开始编译。 下载pytorch 对系统进行更新 1.sudo apt update && sudo apt upgrade 创建python的虚拟环境,因为这个...
  • 搭建本地ubuntu镜像服务器(arm版)

    千次阅读 2016-07-24 16:43:23
    搭建本地ubuntu镜像服务器(arm版)最近由于项目需要,经常从ports.ubuntu.com服务器上面下载ubuntu的镜像文件,但是面对几kB的速度,项目实在是进行不下去了。考虑到后面还要经常用到这些镜像文件,不如自己建了一个...
  • ubuntu16.04编译CEF的arm版

    千次阅读 2019-08-14 15:35:22
    CEF介绍 Chromium Embedded Framework (CEF)是个基于Google ...除了提供C/C++接口外,也有其他语言的移植。来自百度百科。 各代码官网源码URL(需要梯子): cef: https://bitbucket.org/chromiumembedded/cef/...
  • 高版本ubuntu安装低版本arm-linux-gcc

    千次阅读 2016-05-31 21:43:13
    1.下载arm-linux-gcc-3.4.1.tar.gz压缩包。 2.解压并将3.4.1文件夹移到usr/local/arm目录下。 cd usr/local mkdir arm chmod 777 arm sudo cp -r /opt/Friendlyarm/3.4.1 /usr/local/ 3.配置环境变量 ...
  • 一直都在全志V40的板子上正常使用ubuntu mate15.04 中使用apt-get下载,突然出现了404 not found错误,原来是源的地址变了。 错误信息:failed to fetch http://xxx.xxx.xxx 404 not found 具体错误如图: ...
  • ./configure --build=i686-pc-linux --host=arm-linux --with-protoc=protoc --disable-shared --prefix=$(pwd)/_install make make check sudo make install sudo ldconfig # refresh shared library cache....
  • 1.下载qt-everywhere-opensource-src-4.8.6.tar.gz并复制到ubuntu目录中 2. 进入存放qt源码的目录解压源码包 tar xzvf qt-everywhere-opensource-src-4.8.6.tar.gz 3. 进入解压的源码目录 修改mkspecs/qws/...
  • ubuntu14.04编译protobuf-c for arm版本

    千次阅读 2017-01-12 10:41:21
    摘要:protobuf-c,也就是Google Protocol Buffers针对c语言版本的实现,libprotobuf-c是使用纯c语言实现的encoding和decoding,如何通过交叉编译让其运行在arm平台上呢?   首先要编译出protobuf2.6.0版本,参考...
  • 系统:Ubuntu 14.04 64位cmake版本:cmake version 3.14.0-rc4目标:arm板交叉编译器:arm-poky-linux-gnueabi-gcc 5.3.0jsoncpp下载地址:https://github.com/open-source-parsers/jsoncpp/releases使用版本:...
  • golang官方文档的介绍, go编译器可以支持12种指令集....Linux ubuntu 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux 目标环境: Linux imx6ulevk 4....
  • Windows下有很多好用的串口调试工具,SecureCRT、Putty、... Ubuntu下的Putty是一个超级简化,没有文件传输功能,只能作为一个终端用,Pass。 最终选择了拥有较好口碑的minicom,但是民间有个说法:minicom跟u-bo
  • ubuntu18.04.4 for ARM 安装 docker-compose

    千次阅读 2020-03-03 11:41:07
    现有预编译好的二进制文件docker-compose都是针对x86的,对于ARM版ubuntu,尚没有编译好的docker-compose可供下载, 因此需要以其他方式安装,利用pip就可以安装 pip install docker-compose ...
  • ubuntu 18.04 arm64 安装docker 踩坑

    千次阅读 2020-03-14 17:37:45
    一、安装ubuntu 18.04系统 可以参考该系列其他文章 二、安装docker 1.先卸载可能存在的旧版本 apt remove docker docker-engine docker-ce docker.io 2.更新apt包索引 apt update 3.安装以下包以使apt可以通过...
  • ARM Ubuntu18.04 国内源

    千次阅读 2020-05-24 15:22:17
    Ubuntu18.04 armhf 版本国内源: deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe deb ...
  • 移植jamvm虚拟机到arm板 ...OS:ubuntu11.10 compiler:arm-linux-gcc-4.3.2 transpantation target: arm-linux-gcc:arm-linux-gcc-4.3.2 java virtual machine:jamvm-1.4.3 classpath:classpath-0.92

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 2,559
精华内容 1,023
关键字:

arm版ubuntu