配置XDM--一种Linux的图形登录界面

用xmanager登陆Linux图形界面 1.打开/etc/inittab,将runlevel变为5,即id:5:initdefault: 2.对于Red Hat系列系统,打开/etc/X11/gdm/gdm.conf,对于Fedora打开/etc/gdm/custom.conf,配置如下: #GDM configuration storage  [daemon] RemoteGreeter= /usr 阅读详情

转自:http://www.hackhome.com/2005/7-14/00414266097.shtml

  本文的最近更新会放在 The Computer Underground: http://www.tcu-inc.com/mark/articles/Kickstart.html.
  修改:
  通过在 /etc/x11/xdm/Xservers 文件中加入以下几行,可以得到四个 xdm 会话,由此可以允许四个不同用户登录。看上去好象所有精巧的素材设置只对最后一个会话起作用。不过可能很容易修正这一点,也许我会在下一篇文章中提到。
  :0 A local /usr/X11R6/bin/X :0
  
  :1 B local /usr/X11R6/bin/X :1
  
  :2 C local /usr/X11R6/bin/X :2
  
  :3 D local /usr/X11R6/bin/X :3
  
  --------------------------------------------------------------------------------
  
  资源
  什么是XDM? -- 一种图形化的登录界面
  我的配置
  结论
  
  --------------------------------------------------------------------------------
  
  资源
  
  Chris Carlson 在Linux公报中的文章。
  man xdm
  我以前写的文稿。 这些文稿写于1996年12月,那时我还是一个hacker(真是一种很美妙的感觉)。我想那时侯Linux公报也刚开始发行。时间过的真快,我本应当在那时侯就发表这篇文章的。
  
  --------------------------------------------------------------------------------
  
  什么是XDM?
  简而言之,xdm 只不过是一种图形化的登录界面。当你的计算机启动的时候你可以让你的老板和朋友们记住你的计算机没有那种令人厌烦的字符控制台界面。其实它就是让你的Linux看上去比他们原想的要“酷”一些。
  理论上说,虽然这是在Redhat 6.0的环境下配置的,但对于任何Linux的distributio n,大多数配置文件都能正常工作。 当启动图形登录界面的时候,Redhat 6.0 使用的是gdm,而不是xdm。虽然gdm看上去 要比xdm好的多,但我现在还不能让gdm象我需要的方式运行。一旦我解决了一些问题,我 会再写一篇关于gdm的简要文章。
  
  这里有一些需要注意的事项 ,
  
  如果你想要你的 xdm (或者 gdm) 在计算机启动的时候运行,你应该确保在文件 /etc/inittab 中的这一行
  id:3:initdefault:
  为
  id:5:initdefault:
  请注意,无论你想做什么,都必须在你设置启动时运行 xdm之前,使你的 Xwindows 正常工作。如果 Xwindows 无法正常运行的话,你的xdm 也不会正常运行,而且会引起许多问题。
  从文件/etc/inittab 底部的这一行,你可以清楚的看到RedHat 6.0 使用了gdm 来代替xdm
  x:5:respawn:/etc/X11/prefdm -nodaemon
  因此把这一行改为,
  x:5:respawn:/usr/bin/X11/xdm -nodaemon
  我修改的所有文件都在 "/etc/X11/xdm" 目录下。
  
  --------------------------------------------------------------------------------
  
  我的配置文件
  我只对下列几个文件感兴趣,
  /etc/X11/xdm/Xsetup_0
  /etc/X11/xdm/Xresources
  /etc/X11/xdm/GiveConsole
  /etc/rc.d/rc.change_graphic
  /etc/rc.d/rc.local
  /etc/inittab <-- 这个文件在前面已经解释过了 。
  另外,图形文件位于 /etc/X11/xdm/graphics/ 目录下。
  我的目的是改变xdm使它具有一个xeyes,一个圣诞老人,一个钟,一个图片以及选择 在登录前的背景色。登录后让圣诞老人死掉。酷吧?
  
  好吧,现在让我们一步一步的来做:
  
  拷贝我的 graphics perl script 到"/etc/rc.d/rc.change_graphic"。这个文件改变了显示在屏幕上的图形。图像作为gif文件存储在“/etc/x11/xdm/graphics”目录下。
  拷贝我的kill santa perl script 到 "/etc/X11/xdm/KillXsnow"。这个文件杀死了圣诞老人,他慢慢地掉落桌面。
  拷贝我的 Xsetup script 到 "/etc/X11/xdm/Xsetup_0". 这个程序和图形登录界面一起运行。
  拷贝我的 Xresources script 到 "/etc/X11/xdm/Xresources". 这个文件设置了xdm的外观。
  拷贝我的 GiveConsole script到 "/etc/X11/xdm/GiveConsole". 这个文件决定了在Xwindows移交给用户之前要执行的一些程序。
  把 这个命令 加到 "/etc/rc.d/rc.local" 文件中。以确保在启动的时候得到我们定义的图像 。
  拷贝我的 gif 文件 到"/etc/X11/xdm/graphics/" 目录下,并且执行
  tar -C / -zxvf xdm.tgz
  这些就是我使用的一些图象。
  
  --------------------------------------------------------------------------------
  
  这里是配置文件的其余部分:
  
  --------------------------------------------------------------------------------
  
  Change graphics perl script
  位于 "/etc/rc.d/rc.change_graphic"。 在拷贝之后执行命令 "chmod 755 /etc/rc.d/rc.change_graphic"。
  #!/usr/bin/perl
  
  
  @Files = 〈/etc/X11/xdm/graphics/*.gif〉;
  
  
  #print @Files;
  
  
  $Length = @Files;
  
  $Seconds = `date +%S`;
  
  chomp $Second;
  
  $Frac = $Seconds/60;
  
  if (!($Frac > 0)) {$Frac=1}
  
  
  $Random = $Frac*$Length;
  
  ($Random,$Junk) = split(//./, $Random,2);
  
  
  if (($Random < 1) || ($Random > $Length -1)) {$Random = 1}
  
  $File = $Files[$Random];
  
  
  $Rand2 = rand $Length;
  
  ($Rand2,$Junk) = split(//./, $Rand2,2);
  
  
  $Random = $Random + $Rand2;
  
  if ($Random > $Length - 1) {$Random = $Random - $Length + 1;}
  
  
  #print "$Length $Random $File/n";
  
  
  if (-e "/etc/X11/xdm/xdm_front.gif") {system "rm /etc/X11/xdm/xdm_front.gif"}
  
  
  if (@Files < 1)
  
  {
  
  ## Some sort of error messege should be here.
  
  }
  
  else
  
  {system "ln -s $File /etc/X11/xdm/xdm_front.gif";}
  
  --------------------------------------------------------------------------------
  
  Kill Santa perl script
  位于 "/etc/X11/xdm/KillXsnow"。拷贝后执行 命令 "chmod 755 /etc/X11/xdm/KillXsnow" 。
  #!/usr/bin/perl
  
  
  ### I had to add the -a option between RH 5.2 and 6.0
  
  @Temp = `cd /proc; grep -a ^/usr/X11R6/bin/xsnow /proc/[0-9]*/cmdline`;
  
  
  if (@Temp > 0)
  
  {
  
  $Xsnow = shift @Temp;
  
  ($Junk,$ProcJunk,$No,$RestOfJunk) = split(?/?,$Xsnow);
  
  
  ## I am really paranoid that I want to kill the right pid
  
  if (($No > 0) && ($Xsnow =~ ?^/proc/$No/cmdline:/usr/X11R6/bin/xsnow?))
  
  {
  
  # system "echo /"Killing pid $No for Xsnow./n/" > /tmp/1.txt/n";
  
  system "kill $No";
  
  }
  
  }
  
  --------------------------------------------------------------------------------
  
  Xsetup_0 script
  位于 "/etc/X11/xdm/Xsetup_0"。拷贝后执行命令" chmod 755 /etc/X11/xdm/Xsetup_0"。
  #!/bin/sh
  
  # $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31 gildea Exp $
  
  /usr/X11R6/bin/xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
  
  #/usr/X11R6/bin/xbanner
  
  
  ### Santa and snowflakes
  
  ### On some installs, I am missing xsnow for some reason.
  
  /usr/X11R6/bin/xsnow -snowflakes 50 -santa 2 -unsmooth &
  
  
  ### Load the random image
  
  /usr/bin/X11/xloadimage -onroot -at 1,210 /etc/X11/xdm/xdm_front.gif -border brown &
  
  
  ### A clock would be nice to see
  
  /usr/X11R6/bin/xclock -digital -update 1 -fn -adobe-times-medium-i-normal--34-240-100-100-p-168-iso8859-1 -geometry +410+1 &
  
  
  ### Let us turn on xeyes
  
  /usr/X11R6/bin/xeyes -geometry +410+100 &
  
  --------------------------------------------------------------------------------
  
  Xrsources file
  位于 "/etc/X11/xdm/Xresources"。拷贝后执行命令 “chmod 755 /etc/X11/xdm/Xresources" 。
  ! $XConsortium: Xresources /main/8 1996/11/11 09:24:46 swick $
  
  xlogin*login.translations: #override/
  
  CtrlR: abort-display()/n/
  
  F1: set-session-argument(failsafe) finish-field()/n/
  
  CtrlReturn: set-session-argument(failsafe) finish-field()/n/
  
  Return: set-session-argument() finish-field()
  
  xlogin*borderWidth: 3
  
  xlogin*geometry: 400x200+1+1
  
  xlogin*greeting: CLIENTHOST
  
  xlogin*namePrompt: login:/040
  
  xlogin*fail: Login incorrect
  
  #ifdef COLOR
  
  xlogin*greetColor: CadetBlue
  
  xlogin*failColor: red
  
  *Foreground: black
  
  *Background: #fffff0
  
  #else
  
  xlogin*Foreground: black
  
  xlogin*Background: white
  
  #endif
  
  XConsole.text.geometry: 480x130
  
  XConsole.verbose: true
  
  XConsole*iconic: true
  
  XConsole*font: fixed
  
  
  Chooser*geometry: 700x500+100+100
  
  Chooser*allowShellResize: false
  
  Chooser*viewport.forceBars: true
  
  Chooser*label.font: *-new century schoolbook-bold-i-normal-*-240-*
  
  Chooser*label.label: XDMCP Host Menu from CLIENTHOST
  
  Chooser*list.font: -*-*-medium-r-normal-*-*-230-*-*-c-*-iso8859-1
  
  Chooser*Command.font: *-new century schoolbook-bold-r-normal-*-180-*
  
  
  --------------------------------------------------------------------------------
  
  GiveConsole file
  位于 "/etc/X11/xdm/GiveConsole".
  你所要做的就是把 "/etc/X11/xdm/KillXsnow & " 作为第一个命令加入文件。 我的是这样的,
  
  #!/bin/sh
  
  # Assign ownership of the console to the invoking user
  
  # $XConsortium: GiveConsole,v 1.2 93/09/28 14:29:20 gildea Exp $
  
  
  # By convention, both xconsole and xterm -C check that the
  
  # console is owned by the invoking user and is readable before attaching
  
  # the console output. This way a random user can invoke xterm -C without
  
  # causing serious grief.
  
  
  /etc/rc.d/rc.change_graphic &
  
  /etc/X11/xdm/KillXsnow &
  
  
  chown $USER /dev/console
  
  /usr/X11R6/bin/sessreg -a -w "/var/log/wtmp" -u "/var/run/utmp" /
  
  -x "/etc/X11/xdm/Xservers" -l $DISPLAY -h "" $USER
  
  --------------------------------------------------------------------------------
  
  /etc/rc.d/rc.local file
  把下行命令加入文件 /etc/rc.d/rc.local 。
  /etc/rc.d/rc.change_graphic
  
  
  --------------------------------------------------------------------------------
  
  结论
  XDM 非常“酷”。这是一种老的实现方法。我推荐使用gdm或者其它什么。 我给 XDM 打 B- 。它缺乏一些我早就希望看到的gdm有的好的素材。
  下次我会解释 GDM 。 Gdm 有一种非常好的能力,可以让你选择你想要的工作台环境 。在RedHat 6.0 下,当你登录时可以选择 KDE ,GNOME ,或者其它的工作台环境,这 是非常“酷”的。全面的, 我给 gdm 打 B+ ,而且如果它变的更好说明的化,可以打A 。我再次希望可以再八月刊上发表关于gdm的文章。
  
  Mark works as a receptionist (shorts and tee--shirt) under Mike Hunter at The Computer Underground and as a professional (suit and tie) consultant at 800linux.com. In his spare time, he does volunteer stuff, like writing these documents.
  

C# emgu.cv图像识别 从大图中寻找小图,判断存在图的相似度 这是2个问题,我采用emgu.cv来解决这个识别问题,这里需要在nuget中引用emgu。最近写了一个在一张图片中,截取一部分,通过机器判断截取图片是这张图片的。第一、通过小图去找判断是否存在大图中,第二、小图存在大图的什么位置。 阅读详情

相关推荐

禾赛PandarXT-16/阿努比LpmsIG1运行lio-sam

课题是多传感器融合,将GNSS/INS/LIDAR做融合定位导航,故考虑使用lio-sam开源算法,在此记录一下我在适配传感器数据时遇到的一些问题;

qq_44705939的博客 2968

配置xdm

1.1配置XDM--一种Linux的图形登录界面  修改:   通过在 /etc/x11/xdm/Xservers 文件中加入以下几行,可以得到四个 xdm 会话,由此可以允许四个不同用户登录。看上去好象所有精巧的素材设置只对最后一个会话起作用。不过可能很容易修正这一点,也许我会在下一篇文章中提到。   :0 A local /usr/X11R6/bin/X :0     :1 B

Larry的专栏 3672

如何将TDengine集成到Thingsboard?

1 概述 ThingsBoard是用于数据收集、处理、可视化和设备管理的开源物联网平台。它通过行业标准的物联网协议MQTT、CoAP和HTTP实现设备连接,并支持云和本地部署。 ThingsBoard迄今没有导入专业的时序数据库应用,用户可选择的只有PostgreSQL和Cassandra。虽然针对PostgreSQL引入了TimeScale插件,但由于其不是按照宽表的方式组织数据记录,TimeScale的优势根本发挥不出来。总之,这两种数据库不具备高效的数据吞吐能力。 而且,Thingsboard在

Wearable_device的博客 4768

配置XDM--一种Linux的图形登录界面(转)

配置XDM--一种Linux的图形登录界面(转)[@more@]本文仅做参考本文的最近更新会放在 The Computer Underground: http://www.tcu-inc.com/mark/articles/Ki...

281

OpenClaw 核心命令深度解析:/think high、/reasoning on、/verbose on 功能与实战指南

本文深入解析OpenClaw框架的三大核心命令:/think high实现极限深度推理,突破常规思考瓶颈;/reasoning on提供透明化推理过程,增强决策可信度;/verbose on控制详细输出级别。文章从技术架构、实现原理、配置方法和典型场景四个维度,详细阐述了各命令的功能特性与实战应用,包括法律分析、代码调试和商业决策等复杂场景的最佳实践。同时提供了多级配置方案和资源消耗参考,帮助用户根据任务复杂度灵活调配AI资源,实现效率与深度的最优平衡。

qq_43344878的博客 951

微信自动化进阶:Python识别特定消息并自动回复(基于win32api控件操作)

本文详细介绍了如何使用Python和win32api实现微信消息的智能监控与自动回复。通过精准识别聊天记录中的特定关键词,结合多级匹配策略和性能优化技巧,构建稳定高效的自动化回复系统,适用于企业客服、个人助手等场景。

weixin_42663213的博客 446

linux xdm服务无法关闭,Linux远程操控XDM认识和配置

一、引言我们可以通过telnet、ssh等远程登录Linux服务器,但都是字符界面的。本文介绍了通过XDMCP+XDM来远程连接Linux服务器上的XFree86 Server,可以在图形环境下远程管理Linux服务器。二、基本概念1、什么是XFree86XFree86是X Window系统的一种开放源代码的实现。它提供了一种对鼠标、键盘、显卡和窗口图形环境的Client-Server接口。所以客...

weixin_39784972的博客 715

博途的HMI(触摸屏)的应用

触摸屏(HMI):用于控制PLC,可认为是小型上位机(用于控制PLC的都可认为是上位机)上位机(PC Station):将触摸屏升级为电脑----工控机(工业控制的机器)用博途编写西门子的触摸屏和上位机。

王阿妹小天才的博客 2685

配置 linux下 xdmcp

为了使用xmanager 远程桌面 参考了一些配置http://hi.baidu.com/%CD%A8%D0%C5%B0%C5%C0%D9/blog/item/ef7ea0d0a5f09d21a08bb77a.html 在 rhel5环境下 需要配置 路径在:/etc/X11/xdm下几个文件:                                            Xa

zzzxxbird的专栏 4727

2025机械考研复试面试问题汇总篇(含13门科目),考研机械复试专业面试常见重点问题总结!考研机械复试专业面试准备看这一篇就够了!

(完整版内容:)1.汇集了本科各科的重点知识及多个机械名校800多个常见问题,共8.7万字185页,涵盖机械所以专业课的重点知识和常见问答。 2.涉及机械大类重点科目,包括:材料力学、控制工程、数控技术、机械制造技术基础、理论力学、液压传动、机械设计、机械原理、工程材料、互换性与技术测量、测试技术、汽车理论、程序设计与C语言等13门必修课。

weixin_56510835的博客 1865

机器学习kaggle报告-Facial Keypoints Detection【完整解题过程+代码】

在处理面部关键点检测任务时,首先需要将存储在 CSV 文件中的图像数据转换为可以显示和分析的图像。数据集中每个图像是以一个一维数组的形式存储,其中包含了图像的所有像素值。为了将这些数据转化为实际的图像,我们需要按照一定的规则将这些像素值重新排列为一个二维矩阵(即图像的行列)。下面是一个案例,展示了如何将数据集中的图像数据转化为图片。转化过程读取CSV文件:首先,我们需要读取包含图像数据的 CSV 文件,通常该文件包含多张图像的像素值。每一行表示一张图像,并且包含图像的像素值列表。提取图像数据。

一键难忘的博客 3363

GBase XDM全局配置选项 (第一部分)

<access directive> ::= access to <what> [by <who> <access> <control>]+ <what> ::= * | [dn[.<basic-style>]=<regex> | dn.<scope-style>=<DN>] [filter=<XDMfilter>] [attrs=<attrlist>] ...

sss_jeep的博客 265

【软考】系统集成项目管理工程师(一)信息化知识

软考中级——系统集成项目管理工程师备考干货第一章:信息化知识。

商务合作 | 共同学习 | 携手共进 9万+

配置XDM-一种Linux的图形登录界面

本文的最近更新会放在 The Computer Underground: http://www.tcu-inc.com/mark/articles/Kickstart.html.   修改:   通过在 /etc/x11/xdm/Xservers 文件中加入以下几行,可

xulin_2005的专栏 879

深度学习工具包 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")

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

远程桌面linux服务器配置,linux平台下远程桌面服务器的安装和设置

一、xdm 方式前提:安装linux时一定要选上xwindow,这是最基本的前提,不安装它,是绝对没有图形界面的。**********************************************************基本概念和相关命令说明:XDMCP(X Display Manager Control Protocol),X显示监控协议;xdm(manages a collectio...

weixin_39794340的博客 490

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

linux图形界面中管理在哪,linux的图形界面的管理

现在人们都熟悉图形界面,都熟悉windows界面,我们在操作linux时使用命令终端觉得很不方便,其实linux也有图形界面的远程管理工具,下面就介绍一款: X-win321. 下载,安装 x-win32软件(for windows)2. 安装完后运行X-Config,添加一个session,类型选择XDMCP,然后选择query模式输入session的名字,linux的ip地址(按要求填写就可以...

weixin_29471541的博客 362

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

oracle suse 本机图形,配置Xmanager图形连接suse 11 SP3

Xmanager 连接 SUSE Linux 11:1.修改/etc/sysconfig/displaymanagerDISPLAYMANAGER_REMOTE_ACCESS="yes"DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"2.相应的配置文件/etc/gdm/cust...

weixin_39631370的博客 137

linux 远程桌面---xmanager

linux服务器端设置所需软件包[root@localhost ~]# rpm -qa | grep xdmxorg-x11-xdm-1.1.6-14.1.el6.x86_64[root@localhost ~]# rpm -qa | grep gdmgdm-2.30.4-39.el6.x86_64gdm-user-switch-applet-2.30.4-39.el6.x8...

weixin_34253539的博客 174

linux75图形界面,配置过程 - 教你远程登录ubuntu图形界面_Linux教程_Linux公社-Linux系统门户网站...

教你远程登录ubuntu图形界面配置过程[日期:2007-09-14]来源:Linux公社作者:Linuxidc[字体:大 中 小]三、配置过程1、我们的环境我们使用一台装有Mandrake Linux 8.1的计算机作为X Window的服务器,服务器上网卡地址为192.168.0.1/24。并且在安装Linux时一起安装了XFree86相关软件包。我们在局域网中的另一台装有Windows 20...

weixin_33212263的博客 235

Windows远程显示Linux图形界面

CentOS Linux下XDM远程桌面配置 1、检查与X相关的软件组有哪些 #yum gouplist #yum groupinstall "Desktop...

congjiu9273的博客 416

使用xmanager访问linux图形界面

使用xmanager访问linux图形界面 1. 修改/etc/inittab,改变runlevel为5,例如 [root@QRedHat etc]# cat /etc/inittab ...... id:5:initdefau...

cjbfcj1791的博客 221

Linux应用系统下Xmanager器材登录设置

泉源:赛迪网作者:坚果 批改 /etc/X11/xdm/Xaccess,将下面的行: #* # any host can get a login window 改为: * # any host can get a login window 批改/etc/X11/gdm/gdm.conf,找到下面的信息:或Enable=false ...

weixin_30341735的博客 90

Root logins are not allowed 解决办法

输入root和密码后,居然提示"Root logins are not allowed",按Ctrl+Alt+F2,还好text mode下可以登录。 修改/etc/X11/xdm/kdmrc 将里面AllowRootLogin=false 改为AllowRootLogin=true就可以登录了。 按Ctrl+Alt+F1,还好...

weixin_33719619的博客 685

REDHAT linux XDMCP配置

配置XDMCP,可以在WINDOWS下通过XMANAGER等工具访问linux桌面,配置方法如下:[@more@]REDHAT linux XDMCP配置 大 | 中 | 小 [ 2007/07/10 15:05 | by ...

cso73756的博客 682

Ceontos6.X配置XDMCP远程调用图形化

  Linux一般不需要图形化,但是偶尔也是需要的,基于X11协议的图形化XDMCP很受推广,VNC也是很不错的。。。 前提: 关闭防火墙,不关闭需要配置177端口放行 关闭selinux,不关闭自己配置selinux上下文 00、服务端图形化组件检测 yum   groupinstall   -y   'X Window System' 'Desktop'    #根据平台不同自己选择...

weixin_34301307的博客 187
上一篇: Windows下通过xmanager远程桌面控制Linux
下一篇: FreeBsd下查看系统硬件配置
forlinux
博客等级 码龄21年 53粉丝 95原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值
⌂ 换网址