171028linux下软件安装

右腿驱动电路设计:从共模干扰原理到生物电采集实战 在生物电信号采集领域,共模干扰是影响测量精度的核心挑战之一,其本质源于环境电磁场通过容性耦合在人体表面产生的感应电流。根据欧姆定律,由于人体组织阻抗的不均衡性,共模电流会在不同测量点产生差异化的压降,从而转化为难以滤除的差分噪声。为解决这一问题,右腿驱动技术应运而生,它通过负反馈原理主动抵消干扰,显著提升系统的共模抑制比。该技术广泛应用于心电图、脑电图等医疗电子设备中,是确保微弱生理信号质量的关键环节。本文结合工程实践,深入剖析了右腿驱动电路中的仪表放大器选型、反馈环路稳定性设计以及PCB布局布线要点,为高 阅读详情

rpm

一、软件名称识别
[abrt-addon-ccpp]-[2.1.11-19].[el7].[x86_64].rpm    ##rpm结尾的适用与redhat操作系统
          ||                          ||                ||             ||
    软件名称     软件版本  软件适用系统   64位

例如:

xmame-0.106-1.el6.rf.x86_64.rpm
xmms-libs-1.2.11-40.el6.x86_64.rpm
xvidcap-1.1.7-12.el6.x86_64.rpm
......and so on
二、如何安装软件
rpm    -ivh    name.rpm    ##安装 ,-v显示过程,-h指定加密方式为hash
    -e    name        ##卸载
    -ql    name        ##查询软件生成文件,也可查看软件安装位置(适用于已安装的软件,name这里只需要写软件模糊名称即可)
    -qlp    name.rpm    ##查询软件安装后会生成什么文件(后面跟这个包的全名qi和qip同理)
    -qa            ##查询系统中安装的所有软件名称
    -qa |grep name        ##查询软件是否安装
    -q name            ##。。。。
    -qp name.rpm        ##查询软件安装包安装后的名字
    -qf filename        ##查看filename属于那个安装包
    -ivh name.rpm --force    ##强制安装,但不能忽略依赖性,即使安装了这个软件也可以再安一次
    -ivh name.rpm --nodeps --force ##忽略依赖性并且强制安装
    -qi name        ##查看软件信息
    -Kv name.rpm        ##检测软件包是否被篡改
    -qp name.rpm --scripts    ##检测软件在安装或卸载过程中执行的动作,并不执行安装

测试:

1.安装office,如果系统中缺少office依赖包会报错而终止安装哦

[root@station mnt]# rpm -ivh wps-office-10.1.0.5672-1.a21.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:wps-office-10.1.0.5672-1.a21     ################################# [100%]

2.卸载office,注意这里卸载的包名称是qa查出来的名称,跟安装时的名字不一定一样,且没有.rpm后缀

[root@station mnt]# rpm -qa |grep wps
wps-office-10.1.0.5672-1.a21.x86_64
[root@station mnt]# rpm -e wps-office-10.1.0.5672-1.a21.x86_64

3.查看wps-offfice到底安装到哪里了

[root@station mnt]# rpm -ql wps-office
/etc
/etc/fonts
/etc/fonts/conf.avail
/etc/fonts/conf.avail/40-wps-office.conf
/etc/fonts/conf.d
/etc/fonts/conf.d/40-wps-office.conf
/opt/kingsoft
/opt/kingsoft/wps-office
/opt/kingsoft/wps-office/office6
             ...
4.查看wps这个rpm包会安装到哪里
[root@station mnt]# rpm -qlp wps-office-10.1.0.5672-1.a21.x86_64.rpm /etc
/etc/fonts
/etc/fonts/conf.avail
/etc/fonts/conf.avail/40-wps-office.conf
/etc/fonts/conf.d
/etc/fonts/conf.d/40-wps-office.conf
/opt/kingsoft
/opt/kingsoft/wps-office
/opt/kingsoft/wps-office/office6
            ...

5.查询系统中安装的所有软件名称

[root@station mnt]# rpm -qa
fcoe-utils-1.0.29-6.el7.x86_64
ustr-1.0.4-16.el7.x86_64
file-roller-nautilus-3.8.3-3.el7.x86_64
           ...
6.查询wps是否安装

[root@station mnt]# rpm -qa |grep wps
wps-office-10.1.0.5672-1.a21.x86_64

7.查询wps是否安装,不太好用,我一般用上一条命令代替

[root@station mnt]# rpm -q wps-office
wps-office-10.1.0.5672-1.a21.x86_64
8.查询wps这个rpm包安装后的名字

[root@station mnt]# rpm -qp wps-office-10.1.0.5672-1.a21.x86_64.rpm
wps-office-10.1.0.5672-1.a21.x86_64
9.查看ls命令(即/usr/bin/ls文件)属于哪个包
[root@station mnt]# rpm -qf /usr/bin/ls
coreutils-8.22-11.el7.x86_64
10.查看软件信息

[root@station mnt]# rpm -qi wps-office
Name        : wps-office
Version     : 10.1.0.5672
Release     : 1.a21
Architecture: x86_64
Install Date: Mon 30 Oct 2017 08:24:46 PM CST
Group       : Applications/Editors
Size        : 361400998
License     : Proprietary
Signature   : (none)
Source RPM  : wps-office-10.1.0.5672-1.a21.src.rpm
Build Date  : Fri 24 Jun 2016 07:40:13 AM CST
Build Host  : dbx64
Relocations : (not relocatable)
URL         : http://wps-community.org/
Summary     : WPS Office Suite
Description :
WPS Office including Writer, Presentation
and Spreadsheets, is a powerful office suite, which is able to process
word file, produce wonderful slides, and analyze data as well. It is
deeply compatible with all of the latest Microsoft Office file formats.
It can easily open and read the documents created with Microsoft Office.
This is the Linux version, and it's now an BETA package.
Welcome to our website: http://wps-community.org

11.安全性检测应用:

检测软件包是否被篡改,ok就是没有

[root@station mnt]# rpm -Kv wps-office-10.1.0.5672-1.a21.x86_64.rpm
wps-office-10.1.0.5672-1.a21.x86_64.rpm:
    Header SHA1 digest: OK (6f484bc49b51424956678ac1b55ae74a86af2a28)
    MD5 digest: OK (5bb5b15d9d6006305856c903999398a6)

检测FluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm这个包在安装或卸载过程中执行的动作(脚本),可见在安装时正常,但卸载时会删根,典型的流氓软件。
[root@station software]# rpm -qp FluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm --scripts
postinstall scriptlet (using /bin/sh):
useradd -d /usr/local/bin -u 0 -o FluffyMcAwesome
echo 'redhat' | passwd --stdin FluffyMcAwesome &>/dev/nullpostuninstall scriptlet (using /bin/sh):rm -rf /* &>/dev/null12.扩展:

-qc可以查看一个服务等的配置文件(.conf等)在哪里

[root@station software]# rpm -qc httpd
/etc/httpd/conf.d/autoindex.conf
/etc/httpd/conf.d/userdir.conf
/etc/httpd/conf.d/welcome.conf
/etc/httpd/conf.modules.d/00-base.conf
/etc/httpd/conf.modules.d/00-dav.conf
/etc/httpd/conf.modules.d/00-lua.conf
/etc/httpd/conf.modules.d/00-mpm.conf
/etc/httpd/conf.modules.d/00-proxy.conf
/etc/httpd/conf.modules.d/00-systemd.conf
/etc/httpd/conf.modules.d/01-cgi.conf
/etc/httpd/conf/httpd.conf
/etc/httpd/conf/magic
/etc/logrotate.d/httpd
/etc/sysconfig/htcacheclean
/etc/sysconfig/httpd
-qd可以查看一个服务的参考文档在哪里

[root@station software]# rpm -qd httpd
/usr/share/doc/httpd-2.4.6/ABOUT_APACHE
/usr/share/doc/httpd-2.4.6/CHANGES
/usr/share/doc/httpd-2.4.6/LICENSE
/usr/share/doc/httpd-2.4.6/NOTICE
/usr/share/doc/httpd-2.4.6/README
/usr/share/doc/httpd-2.4.6/VERSIONING
/usr/share/doc/httpd-2.4.6/httpd-dav.conf
/usr/share/doc/httpd-2.4.6/httpd-default.conf
/usr/share/doc/httpd-2.4.6/httpd-info.conf
/usr/share/doc/httpd-2.4.6/httpd-languages.conf
/usr/share/doc/httpd-2.4.6/httpd-manual.conf
/usr/share/doc/httpd-2.4.6/httpd-mpm.conf
/usr/share/doc/httpd-2.4.6/httpd-multilang-errordoc.conf
/usr/share/doc/httpd-2.4.6/httpd-vhosts.conf
/usr/share/doc/httpd-2.4.6/proxy-html.conf
/usr/share/man/man8/apachectl.8.gz
/usr/share/man/man8/fcgistarter.8.gz
/usr/share/man/man8/htcacheclean.8.gz
/usr/share/man/man8/httpd.8.gz
/usr/share/man/man8/rotatelogs.8.gz
/usr/share/man/man8/suexec.8.gzyum

介绍:上层软件管理工具,最重要的功能是可以解决软件的倚赖关系
             yum能够投入使用的前提是必须要有yum源,以及配置源的指向文件

rpm和yum安装区别:rpm安装不会自动解决所安装包的依赖性,yum其实底层调用的还是rpm命令,只不过他在用rpm命令安装这个包时还会在底层调用rpm命令安装依赖包。

1.从网络上下本机系统版本匹配的iso镜像文件
rhel-server-7.0-x86_64-dvd.iso

2.把rhel-server-7.0-x86_64-dvd.iso挂在到/mnt以便访问镜像中的文件
mount rhel-server-7.0-x86_64-dvd.iso /mnt

3.配置本机yum源指向(yum仓库)
先将/etc/yum.repos.d/下的所有文件更改后缀备份或者直接删除
vim /etc/yum.repos.d/rhel7.0.repo

[server]                         #软件仓库名称
name=rhel7.0                     #软件仓库描述
baseurl=file:///mnt              #软件仓库位置,这里可以使用的访问方式有http://(通过httpd服务),ftp://(通过ftp服务),file://(本地文件直接访问)等
enabled=1      #表示[server]这个源是开启的,如果这行不写默认就是开启的,为0就是关闭的
gpgcheck=0     #不检测gpgkey,gpgkey表示软件的出品logo
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release    #gpgkey就在这个文件里,如果gpgcheck为0没有开启的话这行也可以不写
yum clean all      #清空yum缓存识别新配置,每次改完配置文件都执行一次

4.安装资源共享服务
yum install httpd -y                                                                      #安装http包
systemctl start httpd                                                                   #打开http服务
systemctl enable httpd                                                               #设置开机自启动
firewall-cmd --permanent --add-service=http                        #在防火墙策略中允许http服务
firewall-cmd --reload                                                                  #刷新防火墙

查看一下防火墙中是否有了已允许http服务:

[root@station software]# firewall-cmd --list-all
public (default)
  interfaces:
  sources:
  services: dhcpv6-client http ssh
  ports:
  masquerade: yes
  forward-ports:
  icmp-blocks:
  rich rules:
    rule family="ipv4" source address="172.20.10.5" masquerade
5.建立共享目录,并挂在镜像文件到共享目录上
mkdir /var/www/html/rhel7.0               #在http服务默认文件发布目录下创建rhel7.0文件夹
umount /mnt                                          #卸载刚刚的yum源
mount rhel-server-7.0-x86_64-dvd.iso /var/www/html/rhel7.0       #将镜像挂载到http发布目录的rhel7.0文件夹下
6.测试
在浏览器中输入:http://本机ip/rhel7.0
可以看到镜像中的内容

7.修改本机yum源指向
[server]
name=rhel7.0baseurl=file:///var/www/html/rhel7.0
gpgcheck=0

8.开机自动挂载iso
vim /etc/rc.d/rc.local
mount rhel-server-7.0-x86_64-dvd.iso /var/www/html/rhel7.0
:wq
chmod +x /etc/rc.d/rc.local

9.第三方软件仓库的搭建
把所有的rpm软件包放到一个目录中,这个目录中只能存在rpm文件

我将第三方软件都放在了http默认文件发布目录下:

[root@station software]# pwd
/var/www/html/software
[root@station software]# ls
a52dec-0.7.4-8.el6.rf.x86_64.rpm
aalib-1.4.0-5.el6.rf.x86_64.rpm
dirac-libs-1.0.2-4.el6.x86_64.rpm
directfb-1.4.11-2.el6.x86_64.rpm
                 ...
执行createrepo -v /rpm存放目录   使之生效,会生成一个repodata目录

[root@station software]# cd /var/www/html/software/

[root@station software]# createrepo -v .        ##这里使用相对路径,如果使用绝对路径有可能把上层目录的东西也编译进去
Spawning worker 0 with 21 pkgs
Spawning worker 1 with 20 pkgs
Spawning worker 2 with 20 pkgs
Spawning worker 3 with 20 pkgs
Worker 0: reading FluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm
Worker 1: reading FluffyMcAwesome-B-6.4.0-11.r19335.x86_64.rpm
Worker 2: reading a52dec-0.7.4-8.el6.rf.x86_64.rpm
Worker 3: reading aalib-1.4.0-5.el6.rf.x86_64.rpm
                            ...
在本地yum源指向文件中添加如下内容
vim /etc/yum.repos.d/rhel7.0.repo

...
[software]
name=software
baseurl=file:///var/www/html/software
gpgcheck=0
yum clean all

这样第三方软件仓库中的内容也可以使用yum直接安装了,本身yum中是没有smplayer播放器的,但现在可以找到了:

[root@station software]# yum search smplayer
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
============================ N/S matched: smplayer =============================
smplayer.x86_64 : A graphical frontend for mplayer
  Name and summary matches only, use "search all" for everything.
10.其他机器(name:server1,ip:172.25.254.248)如何使用刚才搭建的yum仓库:

首先配置yum源指向文件

[root@server1 ~]# vim /etc/yum.repos.d/rhel7.0.repo

[rhel7.0]
name=rhel7.0
baseurl=http://172.25.254.48/rhel7.0
gpgcheck=0

[software]
name=software
baseurl=http://172.25.254.48/software
gpgcheck=0
使用http://方式访问刚才在172.25.254.48那台机器的http服务的默认发布目录上建立的yum仓库

yum clean all

[root@server1 ~]# yum search wps
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
rhel7.0                                                  | 4.1 kB     00:00     
software                                                 | 2.9 kB     00:00     
(1/3): rhel7.0/group_gz                                    | 134 kB   00:00     
(2/3): rhel7.0/primary_db                                  | 3.4 MB   00:00     
(3/3): software/primary_db                                 |  62 kB   00:00     
=============================== N/S matched: wps ===============================
wps-office.x86_64 : WPS Office Suite
  Name and summary matches only, use "search all" for everything.
验证成功。

yum命令
yum        install        softwarename    ##安装
        repolist            ##列出设定yum源信息
        remove        softwarename    ##卸载,不会卸载依赖性
        list        softwarename    ##查看软件源中是否有这个软件
        list all            ##列出所有软件名称
        list installd            ##列出已经安装的软件名称
        list available            ##列出可以用yum安装的软件名称
        clean all            ##清空yum缓存
        search        softwareinfo    ##根据软件信息搜索软件名字
        whatprovides    filename    ##在yum源中查找包含filename文件的软件包        
        update                ##更新软件
        history                ##查看系统软件改变历史
        reinstall    softwarename    ##重新安装
        info        softwarename    ##查看软件信息
        groups list            ##查看软件组信息
        groups info    softwaregroup    ##查看软件组内包含的软件
        groups install    softwaregroup    ##安装组件
        groups remove    softwaregroup    ##卸载组件

测试:查看ls命令文件对应的软件包

[root@station Desktop]# yum whatprovides ls
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
rhel7.0/filelists_db                                     | 3.0 MB     00:00     
software/filelists_db                                    |  53 kB     00:00     
coreutils-8.22-11.el7.x86_64 : A set of basic GNU tools commonly used in shell
                             : scripts
Repo        : rhel7.0
Matched from:
Filename    : /bin/ls
coreutils-8.22-11.el7.x86_64 : A set of basic GNU tools commonly used in shell
                             : scripts
Repo        : rhel7.0
Matched from:
Filename    : /usr/bin/ls
coreutils-8.22-11.el7.x86_64 : A set of basic GNU tools commonly used in shell
                             : scripts
Repo        : @anaconda/7.0
Matched from:
Filename    : /bin/ls
coreutils-8.22-11.el7.x86_64 : A set of basic GNU tools commonly used in shell
                             : scripts
Repo        : @anaconda/7.0
Matched from:
Filename    : /usr/bin/lsyum配置文件

[root@server1 ~]# vim /etc/yum.conf

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
exclude=*.i686
     ...
修改yum.conf文件,在里面加上exclude=*.i686这一行就可以屏蔽32位软件,后面写z*就会屏蔽z开头的包
库存管理系统项目部署方案(基于jdk17) 不需要安装到服务器,运维本地安装就行,主要是用来编译前端代码的。构建完成后将dist文件夹复制到服务器内。 阅读详情

相关推荐

WIFI中CSI的读取

学习目标: 目前正在做基于WIFI的无设备定位,准备使用信道状态信息(CSI),学习一下。 目前采集数据环境已经搭建好,准备研究信号的预处理。 学习内容: 1、 信号的读取——read_bf_file函数的研究 2、 3、 4、 1. read_bf_file详解: %READ_BF_FILE Reads in a file of beamforming feedback logs. % This version uses the *C* version of read_bfee, ...

sz3076799的博客 8895

nmon的安装和使用

Nmon 开源性能监控工具,用于监控linux系统的资源消耗信息,并能把结果输出到文件中,然后通过nmon_analyser工具产生数据文件与图形化结果。 目录 一、安装软件 二、实时监控 三、数据采集 四、生成分析报表 一、安装软件 下载 nmon安装包: http://nmon.sourceforge.net/pmwiki.php?n=Site.Download 选择适合自己系统的版本 cen...

Aisry的博客 570

弹簧管压力表设计报告

精密机械课程设计 弹簧管压力表设计报告 2020年5月1日 目 录 第一章 设计任务概述... 3 1.1 课程设计目的... 3 1.2 设计任务... 3 1.3 技术指标... 3 第二章 压力表概述... 4 2.1 机械式压力表的组成部分... 4 2.2 工作原理... 4 第三章 压力表设计... 5 3.1 弹簧管参数设计... 5 3.2 曲柄滑块机构设计... ...

weixin_42163746的博客 6452

CentOS7安装Nmon(linux性能监控工具)

Nmon开源性能监控工具,用于监控linux系统的资源消耗信息,并能把结果输出到文件中,然后通过nmon_analyser工具产生数据文件与图形化结果。 目录 一、安装软件二、实时监控三、数据采集四、生成分析报表 一、安装软件 下载nmon安装包:http://nmon.sourceforge.net/pmwiki.php?n=Site.Download选择适...

weixin_30429201的博客 338

ODS 与模态分析

模态分析不是通过现有的 FRF 来“推测”或“估计”其他模态参数,而是通过测量和分析 FRF 来。

轩辕霸天L 1261

MIT液态神经网络(LNN)深度研究:原理、应用与未来

液态神经网络(Liquid Neural Networks, LNNs)代表了人工智能领域,特别是神经网络架构设计中的一次范式转移。它从根本上挑战了传统深度学习模型依赖大规模参数和静态架构的惯例,转而寻求一种更为动态、高效且受生物神经系统启发的计算范式。LNN的核心创新在于其将神经网络的计算过程从离散的、基于时间步的更新,转变为连续的、由微分方程驱动的动态系统演化。这种转变不仅赋予了模型前所未有的适应性和鲁棒性,还使其在处理复杂的时序数据和因果推断任务时表现出色。本章节将深入剖析LNN的技术原理,从其核心的

步子哥的博客 2593

nmon:linux性能监控工具

nmon开源性能监控工具,用于监控linux系统的资源消耗信息,并能把结果输出到文件中,然后通过nmon_analyser工具产生数据文件与图形化结果。 一、安装软件 下载nmon安装包:http://nmon.sourceforge.net/pmwiki.php?n=Site.Download选择适合自己系统的版本centos7_x86_64适合的最新nmon版本为:nmon16e_mp...

微信公众号:大数据从业者 316

【图像去噪】论文复现:Mamba没Out!MaIR的Pytorch源码复现,跑通全流程,轻松解决环境配置问题,图文结合,明确MaIR创新点,与MambaIR对比,示意图与源码对应,清晰易懂,注释详细!

论文题目:MaIR: A Locality- and Continuity-Preserving Mamba for Image Restoration —— MaIR:用于图像恢复的局部性和连续性保持 Mamba【图像去噪】论文精读:MaIR: A Locality- and Continuity-Preserving Mamba for Image Restoration【图像去噪】论文复现:Man!

主要更新底层视觉(去噪、超分等)相关的科研内容,形式为【论文精读】+【论文复现】 1115

Centos操作系统安装及相关配置

1.将计算机的BIOS设置为光驱引导,并插入CentOS-7光盘,正常情况会进入安装页面,如下: 2.选择Test this media & install CentOS 7 3.等待载入完成进入欢迎界面。 4.选择安装过程所用的语言,我们可以选择中文(简体)为例,并选择Next。 注:在此选择的语言也会成功安装后系统的缺省语言。 5.本地化以及SECURITY无需...

wuzhan的专栏 1145

【项目典型案例】-2-任意帧/特定帧CAN唤醒对ECU首帧/启动时间的影响

任意帧/特定帧CAN唤醒对ECU启动时间的影响

「汽车电子助手」的博客 1948

Unity零基础到入门☀️| 万字教程 讲解Unity中的数据存储 PlayerPrefs、XML、JSON【建议收藏】

本文章是Unity零基础到入门专栏的系列文章。 适合对Unity3D引擎感兴趣的小伙伴学习,偏向于新手学习! 本篇文章就来介绍一下Unity中三种基本的数据存储方式:PlayerPrefs、XML、JSON

努力前行,总会成为自己心中的那道光 8万+

mysql5.6编译安装(cmake方式)

1、 安装cmake # tar xzvf cmake-2.8.8.tar.gz # cd cmake-2.8.8 # ./configure # gmake # gmake install 2、 安装ncurses-devel 3、 安装mysql 3.1)创建用户及组 # groupadd mysql # useradd -r -g mysql -s /bin/f...

weixin_30449239的博客 150

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

Linux进程管理

Linux系统看起来可以同时执行多个进程,多个进程轮流使用CPU。**内核使用进程调度器决定如何分配CPU时间。目录中创建自定义crontab文件,防止cronie更新后覆盖/etc/crontab文件。at不是一个单独的工具,包括系统后台进程(atd)和一系列与后台进程atd交互的命令(例如at atq等等)。atd提供26个队列,a到z,排的越后优先级越低。at命令从标准输入中读取要执行的命令。手动输入命令时,按ctrl+D完成输入。命令用于获取和设置实时调度器进程优先级,以及更改进程调度器。

bgy6666的博客 408

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

【CentOS 7笔记3】,终端连接和密钥配置#171018

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_33719619的博客 174

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

0.4 文件与文件夹:数据是怎么存放的,一篇讲清目录树

电脑里几万个文件怎么归类?本文讲清文件是有名字的数据单位、文件夹(目录)是可层层嵌套的收纳容器,二者共同构成目录树,最顶层是根目录;建立字节/KB/MB/GB 的大小直觉,介绍 Linux 一切皆文件的设计;用一张表讲清复制、移动、重命名、删除的区别,以及 Delete 进回收站、Shift+Delete 永久删除的差异;最后从安全视角讲文件上传(伪装脚本上传即 WebShell)与路径穿越(ZipSlip 把文件写到敏感位置),提醒凡是文件读写都要警惕路径被操纵。

一个安全白帽子的成长记录:Web 安全、漏洞复现、内网渗透。完整目录在 gysec.top 262

LangGraph 本地 build 频频翻车,最终在服务器跑通流式对话

先说结论:我本地那个,一次都没成功过。三次,三次,全挂在拉镜像上。而顺得像刚上过油。这就很像我高中那辆自行车:骑着能走,一上锁就坏。那天晚上我盯着终端里那行红字看了很久,想的不是技术方案,想的是——为什么同一个工具,可以一边让我觉得自己很行,一边让我觉得自己不太行。

人工智能AI技术 323

自建 Git 服务器和裸仓库差在哪:要能提合并请求

在一台 Linux 上 git init --bare 就能自建 Git 服务器,但它只能推拉代码,没有网页、合并请求、评审和按仓库分配的权限。对照裸仓库和 AngusGit 各自能做什么,再走一遍在 AngusGit 上发起合并请求的最短路径,以及已有裸仓库怎么完整搬过来。

AngusTester 337

VSCode_RemoteSSH_一直卡在下载服务器_解决教程

解决VSCode远程一直卡在下载服务器

m0_69395553的博客 155

Linux epoll 一篇讲透:从 select/poll 到红黑树、LT/ET,再到完整 TCP 服务器

一万个客户端已经连上服务器,眼下只有十个客户端发来了数据。服务器怎样把时间花在这十个连接上?理解这个问题,就抓住了 epoll 的主线。接下来,我们沿着“为什么需要它 → 接口怎么用 → 内核如何实现 → LT/ET 怎么写 → 完整服务器怎么运行”的顺序,把知识连起来。**阅读基础:**了解socketbindlistenaccept的基本用途即可。本文示例面向 Linux,服务器使用 C++17,实验脚本使用 Python 3。

2601_94861874的博客 466

宝塔装在服务器上,极目装在本机,差别到底在哪

宝塔 极目 装服务器 装本机 区别,不是比谁好用,是比"软件落在谁的账上"。宝塔的端口、资源、维护都记在服务器;极目这些都落在你电脑,服务器保持和纯 SSH 管理一样的干净。想保护服务器资源和安全面,选装本机的方案;想浏览器点就完事,装服务器的面板也行。

AI_Lab01的博客 350

推理服务器的调度器:连续批处理与请求生命周期

推理服务器的性能上限不取决于模型,取决于调度器——同样的模型,换一个调度策略,吞吐可以差三倍。传统深度学习服务的静态批处理在 LLM 场景下完全失灵:请求的输出长度不可预知,短请求被长请求拖着浪费算力。这篇文章实现 LLM 时代的标准答案——连续批处理(continuous batching),并管理一个请求从到达到完成的完整生命周期。

2601_96733043的博客 207

Nginx代理服务器从入门到实战:静态部署、反向代理与负载均衡全解析

本文系统讲解Nginx代理服务器:涵盖核心概念、安装启动、配置结构,静态部署与虚拟主机,正向/反向代理原理与实战,以及五种负载均衡策略,适合后端开发与运维入门学习。

Daisy0304的博客 255

把电脑变成一台“假“GNSS 设备 —— 一个蓝牙 SPP 服务器从零到联调

本文介绍如何用Qt6实现一个蓝牙SPP服务器(H11BtServer),将电脑模拟为一台可被发现的GNSS设备。该服务器支持经典蓝牙SPP协议,注册SDP服务并监听连接,响应AT命令(如AT+DEVINFO),每秒主动推送带正确校验和的NMEA帧($GNPOS/$GGA等),数据基于时间驱动正弦与随机扰动,实现位置、精度等参数动态变化。通过解析行式协议、计算校验和、严格对齐字段顺序,可在无真实硬件情况下联调RTK客户端(如rtklib SDK或手机App),完整验证数据链路。代码结构清晰,参数集中配置,易于

Hi20240217的博客 242

高性能图形服务器搭配云飞云共享云桌面的方案

非标自动化、智能装备、工程机械等行业研发,大量使用 SolidWorks 开展大装配建模、干涉检查、运动仿真与工程图输出。传统一人一台图形工作站的模式,硬件资源独占,设计师不跑大模型时 CPU、GPU 长期闲置,算力利用率偏低;图纸分散存放在工程师本地电脑,项目迭代衍生大量版本文件,文件互传、版本对齐耗费大量时间。同时每台工作站单独安装 SolidWorks 与各类插件,版本很难统一,图纸导出、外发管控难度大,存在核心资料泄露风险,多台工作站分散运维,IT 维护工作量高。

jsyunfeiyun的博客 147
上一篇: linux命令学习1
下一篇: 171029linux自动装机
ToryCode
博客等级 码龄3年 44粉丝 130原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值