实战kdevelop进行linux软件开发 2009-02 V0.1

Total Page:16

File Type:pdf, Size:1020Kb

实战kdevelop进行linux软件开发 2009-02 V0.1 实战KDevelop进行Linux软件开发 2009-02 V0.1 实战KDevelop进行Linux软件开发 陈 浩 2009-02 (Ver. 0.1) MSN: [email protected] Linux开发并不高深,我们需要一个新的角度进行近距离接触! 欢迎指正! Horky ([email protected]) 1. 实战KDevelop进行Linux软件开发 2009-02 V0.1 目录 开始之前.................................................................................................................................................................3 第1章 认识KDevelop.............................................................................................................................................4 1.1简单起步 ........................................................................................................................................................4 1.1.1 一个实例 – Hello, Kdevelop! ..............................................................................................................4 1.1.2 KDevelop的项目组织 ............................................................................................................................6 1.1.3 KDevelop的布局 ....................................................................................................................................8 1.1.4 集成调试环境......................................................................................................................................10 1.2配置KDevelop ..............................................................................................................................................11 第2章 应用程序开发 ...........................................................................................................................................14 2.1 GTK+应用程序开发 ..................................................................................................................................14 2.1.1 Glade 2.x的应用程序开发....................................................................................................................14 2.1.2 Glade 3.x 的应用程序开发 (Libglade + Glade 3.x) ............................................................................20 第3章 动态库与静态库 .......................................................................................................................................23 3.1 例程 静态库的创建与使用 ......................................................................................................................23 3.2 动态库 ........................................................................................................................................................28 3.3 库的调试 ....................................................................................................................................................32 附录1. GDB使用介绍...........................................................................................................................................35 Horky ([email protected]) 2. 实战KDevelop进行Linux软件开发 2009-02 V0.1 开始之前 很多高手在Linux下很喜欢使用Makefile进行开发,但事实上并不是所有人都适合使用Makefile,尤其是初入 Linux世界的人。 许多年来,Linux很难得以普及,就是因为使用及开发的难度被无端地夸大了,许多高手都以 能运用复杂的指令为荣,而不愿意轻意妥协于那些更易于掌握的工具。而我认为不要在意用什么开发,只要关 注你要开发什么!所以至于工具,自然由你决定。KDevelop也是一个选择,至少它可以使开发者摆脱Makefile体 系的困扰! 软件开发要以产品论英雄,任何工具都是熟能生巧罢了,结果也都是殊途同归,没什么复杂的。 先介绍一下KDevelop吧。KDevelop和Anjuta是Linux下两个最为重要的免费集成开发环境,其中KDevelop最 为稳定。虽然KDevelop从名称上看较接近于KDE开发,但事实上它可以支持诸多Linux应用程序开发,如GTK+ 应用程序开发。它也可以支持多种语言,而不仅限于C/C++。 它的安装也是相当简单,所有主流的Linux发行 版都会在安装盘中附带KDevelop,所以利用本身的包管理系统就可以安装KDevelop。当然对于使用LiveCD安装的 Ubuntu,自然是需要从网上下载安装了。安装简单,我们略去不谈,看看界面先: 这是一个GTK+应用程序的项目界面,并不复杂。见过面后,我们就开始一步步来深入掌握这个开发利 器吧! Horky ([email protected]) 3. 实战KDevelop进行Linux软件开发 2009-02 V0.1 第1章 认识KDevelop 本章将带你使用KDevelop建立一个简单的工程,让你有一个基本的认识。会涉及诸如创建项目,编译 与调试等重点。本文所有的示例及图片均在Ubuntu 8.04/Debian 4.0及openSUSE 11下使用 KDevelop完成。 1.1简单起步 我将以简单为主要原则来展开KDevelop的使用,所以建个项目最为实际。没办法,还是挑大家最熟 的Hello,World程序了,这样大家就只要关心KDevelop的使用了。 1.1.1 一个实例 – Hello, Kdevelop! 下面为项目创建过程,如果你已经熟悉这个过程,这一节就可以跳过了。 1. 通过Programming中KDevelop菜单进入KDevelop,这里选择KDevelop:C/C++,至于其它项 目,稍后再谈. 2. 选择菜单Project->New Project来创建一个新的项目. 3. 在新的窗口中,勾选"Show all project templates”(否则你只能看到C++),然后设定以下项目: All Projects: Simple Hellow world program Application name: HelloKDevelop Location:选择项目所在的目录 Horky ([email protected]) 4. 实战KDevelop进行Linux软件开发 2009-02 V0.1 点"Next”进入下一步。 4. 在新的界面里设定项目作者和邮箱地址如下: 然 后 点 " N e x t ” , 进 入 到 下 一 面 ,以后的各项也都请按Next进行下去,直至点Finish完成项目的创建。 5. 现在你就可以编译这个程序了,试一下按F8,或者菜单"Build”-> “Build Project”, 然后 在下面的菜单中点选"Run Them”。然后就等待一下吧。 6. 经过一系列的动作后,你就可以在KDevelop下面的信息栏中看到如下的信息: Horky ([email protected]) 5. 实战KDevelop进行Linux软件开发 2009-02 V0.1 编绎成功了,可是还没有完成。现在把hellokdevelop.c中的"Hello,world!”改成KDevelop吧 ,这个很简单了。存盘后,再次执行一下第5步的编译! 7. 现在可以看看我们的成果了,按一下F9或者是菜单"Debug”->”Start”,程序就会被执行了 ,然在KDevelop下的Application栏里就会出现程序的输出结果,如下: 这就是我们第一个Kdevelop工程了。 1.1.2 KDevelop的项目组织 我们来看看刚刚建的项目生成了哪些目录和文件: HelloKDevelop [autom4te.cache] Autoconf所创建的目录,不属于KDevelop所创建的目录。 [debug] Debug模式所生成的目录,包括中间代码及可执行代码。 [optimized] Optimized模式所生成的目录,同样包括中间代码及可执行代码。 [src] 源代码目录。 [templates] 包含了基本的模板定义信息。 其中的debug和optimized等同于Visual Studio中的Debug和Release模式。 在KDevelop中一个项目可以分为不同的子项目(sub-project),不同的子项目(sub-project)会包含 不同的目标程序(Target),这是项目组织的不同。而每个项目都会有两种基本编译配置:debug和 optimized,你还可以按需要添加你自己的配置。依次看一下它们的位置: 配置(Configuration): Horky ([email protected]) 6. 实战KDevelop进行Linux软件开发 2009-02 V0.1 在Project->Build Configuration可以选择不同的配置。若要编辑不同配置时可以通过Project->Project Options进行配置: 如果需要添加新的配置,只要给Configuration起一个不同的名字,右侧的Add就会可用,允许你添 加新的配置。后面我们还会具体用到配置的编辑功能。 子项目(Sub-project)及目标程序(Target): Horky ([email protected]) 7. 实战KDevelop进行Linux软件开发 2009-02 V0.1 上图中项目需要点右侧的"Automake Manager”来打开或关闭的。其中上半部分为子项目(sub- project),下半部分则为目标程序(Target)。后面我们也会有例子来讲述sub-project及Target的运用。 1.1.3 KDevelop的布局 我们再来详细认识一下KDevelop的布局,主要如下图: 其 中 的 工 具 栏 包 括 了 一 些 常 用 的 功 能 , 还 是 要 留意一下: A:Main Toolbar (主工具栏) Horky ([email protected]) 8. 实战KDevelop进行Linux软件开发 2009-02 V0.1 依次分别为: Open Project: 打开一个现有的项目 Goto Last Edit Position:跳转到上次编辑位置 Back: 退回到上次停留的位置,不一定是编辑操作位置 Forward:跳转到后一次的停留的位置。以上三个在编辑时用于代码间跳转。 New (File):创新一个新文件 Save: 存盘 Save as: 另存为 Print:打印 Undo:恢复 Redo:重做上一次动作 Cut:剪切 Copy:复制 Paste:贴上 Find:查找 Full Screen mode:全屏模式 Enlarge Font:放大字体 Shrink Font:缩小字体 What's This:这是什么?用于帮助你了解具体每个项目的功能。 B:Build Toolbar (编译工具栏) 依次分别为: Build project: 编译项目 Build Active Target: 编译活动目标。当有多个Target时,可以右击某个Target使其变为Active Target. Execute the program:执行目标程序 Stop:停止或中断 C:Browser Toolbar(浏览工具栏) 依次分别为: Generate a new class: 生成一个类,可以选择是否创建头文件和源文件。 Sync ClassView: 同步当前的ClassView信息. Function Navigation: 显示当前单元的函数列表. D:Debugger Toolbar (调试工具栏) 依次分别为: Start in debugger (F9): 在调试器中执行程序,也是开始Deubg。 Restart the program: 在调试过程中重新执行程序。 Step Over: 跳过执行,不进入函数内部。 Step Over: 进入执行,会进入函数内部。 Step out of the current function: 跳出当前函数。 Debugger Viewer: 切换到调试视图界面。 Horky ([email protected]) 9. 实战KDevelop进行Linux软件开发 2009-02 V0.1 E: Session Toolbar (Session工具栏) 依次分别为: New session Open session Save session Delete session 都是基本的编辑功能,就不再说明。但是对于Session,还是要多说两句。当项目包含的文件太多 时,如何确保有效找开某组相关联的源代码,这就是Session的作用,它可以帮你更有效的组织项 目代码。然后也可以在Project->Project Options的File List中设定当项目打开时自动加载的session。 如下: F: Astyle Toolbar (Astyle工具栏) 是一组代码格式化的工具栏。这是一套自定义的工具栏,并非所有平台都有此项,但在Edit菜单 也可以发现它们。 依次为: Format files: 对多个或单个进行格式化。 Reformat Source: 对当前代码进行重新格式化。 1.1.4 集成调试环境 使用Debug配置编译程序时,可以使用F9或菜单Debug->Start进入调试模式! 则此时出现如下的界面 布局。正上方为GDB工具栏,左侧为Watch View窗口,代码区绿色箭头为当前执行的行,下方的GDB Console允许你输入GDB指令并查看输出的结果。 Horky ([email protected]) 10. 实战KDevelop进行Linux软件开发 2009-02 V0.1 设定或取消断点,只要在指定行右击,从菜单选择Toggle Breakpoint就可以了。 *如果你进入Debug状态未能出现如此画面,那就有可能所选择的配置并非Debug,亦或配置选项 中指定了优化选项。另一种则可能是没有安装Konsole,点一下下方的Konsole,如果是灰灰的一 片,那就是需要安装Konsole了。 到此,我们已经了解了KDevelop的主要组成部分。如果现在你要急于进行开发,那就直接跳到第 2章吧。下面一节,我会介绍一些KDevelop的基础配置,有时间回头看一下就可以了。 1.2配置KDevelop 如果想让KDevelop用起来更为顺手,还需要一些细节上的设置。我们一一展开。 1.2.1配置编辑环境 编辑环境重点是字体和布局。KDevelop菜单Settings->Configure Editor便是用于编辑 环境的设置: Horky ([email protected]) 11. 实战KDevelop进行Linux软件开发 2009-02 V0.1 从上至下,我只会介绍几个主要选项: Appearance: Dynamic word wrap => 是否允许自动换行 Show icon border => 是否显示断点标志所在的边框 Show line numbers => 是否显示行号 Fonts & Colors: 设定编辑器字体及色彩方案 Editing Tab Width : 显定Tab键显示的宽度,建议改为4 Indentation: Indentation mode: 直接在这里设定缩进风格,比如选择C Style. Open/Save Encoding: 对于我们经常需要中文开发,这里最好改成Unicode (utf8) Highlighting : 高亮显示的规则,其本涵盖了常用的语言了 Shortcuts : 快捷键设置 Plugins: 里面提供了有用的插件。包括自动补全功能。 如果你想要一个舒服的编辑环境,这些还是要了解一下的。 如果觉得字体太少,你可再补充一 下Linux下字体管理的知识,帮你添加更多可用的字体. 总之写程序,舒服最重要。 1.2.2 配置系统环境 Kdevelop除编辑器外还有一些其它的设定,可以通过菜单Settings-> Configure Kdevelop,叫出 KDevelop的配置对话框,值得一提的是,里面的Formatting选项,允许你选择不同的编码风格,如 下图所示: Horky ([email protected]) 12. 实战KDevelop进行Linux软件开发 2009-02 V0.1 1.2.3 配置代码管理环境 一般我们常用CVS或SVN来管理代码, Kdevelop支持四种的代码管理方式。代码管理的方式是要基 于项目设定的,需要执行菜单Project → Project Options, 然后选择Version Control就可以设定所适 用管理方式了: 以Subversion为例,当设定完成后,在编辑区右击就可以发现多出一个Subversion子菜单: 当然,如果你的项目不是从SVN Repository上check out出来的,你这样直接执行指令是不行的,因 为你现在的代码还没有进行SVN管理,你可以先通过客户端或svn指令将代码上传到Repository中 就可以了。 KDevelop的准备到此完成,现在我们可以正式开始着手进行新项目开发了。 Horky ([email protected]) 13. 实战KDevelop进行Linux软件开发 2009-02 V0.1 第2章 应用程序开发 Linux 下的应用程序开发框架,常用的有QT及GTK+。有关GTK+和QT,自然永远是那句:各有千 秋。但有一点Free这是一个重要的精神,难以想像我在Linux下写的GUI程序,可能是依据一个商 业包开发的。GTK正适合这种开发,因为它是完全Free的。KDevelop本身冠以K,就显而易见它是 针对KDE开发而设计的,对QT应用程序开发自然顺手,KDE桌面本身就是基于QT而来的。但使 用KDevelop进行GTK+程序开发则需要一些设定,也刚好符合我们这个主题。 如果你想了解更多有关QT/GTK+的信息,可以从下面网站了解一下: QT的问题 http://www.kdecn.org/whatiskde/qt.php 为什么使用GTK+ http://www.ibm.com/developerworks/cn/opensource/os-gtk1/ 下面,我们就选择GTK+程序来继续学习KDevelop。 2.1 GTK+应用程序开发 GTK+的UI目前有三种开发方式,一种为Glade 2.x的代码生成UI的方式,另一种则为Glade XML 方式,还有一种就是由开发者自行撰写UI代码。目前常用的还是前一种方式。以我个人的观点来 看,我会更愿意选择后者。原因是这样的UI和你的代码才能真正分离,这一点很重要,当你试着 写两个GTK+程序,你就会深有感触的。不过对于程序员而言,却需要有观念上的转变。 2.1.1 Glade 2.x的应用程序开发 先从创建一个GTK+ 2.x程序开始,下面我们按步骤来完成一个工程。GTK+使用Glade来进行界面 设计,并生成相应的代码,如果你没有个程序,那就需要手动安装起来。装完之后就可以看到这 样一个Glade 2.x的程序: 1.使用Glade,先把界面设计好: Horky ([email protected])
Recommended publications
  • KDE 2.0 Development, Which Is Directly Supported
    23 8911 CH18 10/16/00 1:44 PM Page 401 The KDevelop IDE: The CHAPTER Integrated Development Environment for KDE by Ralf Nolden 18 IN THIS CHAPTER • General Issues 402 • Creating KDE 2.0 Applications 409 • Getting Started with the KDE 2.0 API 413 • The Classbrowser and Your Project 416 • The File Viewers—The Windows to Your Project Files 419 • The KDevelop Debugger 421 • KDevelop 2.0—A Preview 425 23 8911 CH18 10/16/00 1:44 PM Page 402 Developer Tools and Support 402 PART IV Although developing applications under UNIX systems can be a lot of fun, until now the pro- grammer was lacking a comfortable environment that takes away the usual standard activities that have to be done over and over in the process of programming. The KDevelop IDE closes this gap and makes it a joy to work within a complete, integrated development environment, combining the use of the GNU standard development tools such as the g++ compiler and the gdb debugger with the advantages of a GUI-based environment that automates all standard actions and allows the developer to concentrate on the work of writing software instead of managing command-line tools. It also offers direct and quick access to source files and docu- mentation. KDevelop primarily aims to provide the best means to rapidly set up and write KDE software; it also supports extended features such as GUI designing and translation in con- junction with other tools available especially for KDE development. The KDevelop IDE itself is published under the GNU Public License (GPL), like KDE, and is therefore publicly avail- able at no cost—including its source code—and it may be used both for free and for commer- cial development.
    [Show full text]
  • Kde-Guide-De-Developpement.Web.Pdf
    KDE Published : 2017-06-26 License : GPLv2+ 1 KDE DU POINT DE VUE D'UN DÉVELOPPEUR 1. AVEZ-VOUS BESOIN DE CE LIVRE ? 2. LA PHILOSOPHIE DE KDE 3. COMMENT OBTENIR DE L'AIDE 2 1. AVEZ-VOUS BESOIN DE CE LIVRE ? Vous devriez lire ce livre si vous voulez développer pour KDE. Nous utilisons le terme développement très largement pour couvrir tout ce qui peut conduire à un changement dans le code source, ce qui inclut : Soumettre une correction de bogue Écrire une nouvelle application optimisée par la technologie KDE Contribuer à un projet existant Ajouter de la fonctionnalité aux bibliothèques de développement de KDE Dans ce livre, nous vous livrerons les bases dont vous avez besoin pour être un développeur productif. Nous décrirons les outils que vous devrez installer, montrer comment lire la documentation (et écrire la vôtre propre, une fois que vous aurez créé la nouvelle fonctionnalité !) et comment obtenir de l'aide par d'autres moyens. Nous vous présenterons la communauté KDE, qui est essentielle pour comprendre KDE parce que nous sommes un projet « open source », libre (gratuit). Les utilisateurs finaux du logiciel n'ont PAS besoin de ce livre ! Cependant, ils pourraient le trouver intéressant pour les aider à comprendre comment les logiciels complexes et riches en fonctionnalités qu'ils utilisent ont vu le jour. 3 2. LA PHILOSOPHIE DE KDE Le succès de KDE repose sur une vue globale, que nous avons trouvée à la fois pratique et motivante. Les éléments de cette philosophie de développement comprennent : L'utilisation des outils disponibles plutôt que de ré-inventer ceux existants : beaucoup des bases dont vous avez besoin pour travailler font déjà partie de KDE, comme les bibliothèques principales ou les « Kparts », et sont tout à fait au point.
    [Show full text]
  • Smart Home Automation with Linux Smart
    CYAN YELLOW MAGENTA BLACK PANTONE 123 C BOOKS FOR PROFESSIONALS BY PROFESSIONALS® THE EXPERT’S VOICE® IN LINUX Companion eBook Available Smart Home Automation with Linux Smart Dear Reader, With this book you will turn your house into a smart and automated home. You will learn how to put together all the hardware and software needed for Automation Home home automation, to control appliances such as your teakettle, CCTV, light switches, and TV. You’ll be taught about the devices you can build, adapt, or Steven Goodwin, Author of hack yourself from existing technology to accomplish these goals. Cross-Platform Game In Smart Home Automation with Linux, you’ll discover the scope and possi- Programming bilities involved in creating a practical digital lifestyle. In the realm of media and Game Developer’s Open media control, for instance, you’ll learn how you can read TV schedules digitally Source Handbook and use them to program video remotely through e-mail, SMS, or a web page. You’ll also learn the techniques for streaming music and video from one machine to another, how to give your home its own Twitter and e-mail accounts for sending automatic status reports, and the ability to remotely control the home Smart Home lights or heating system. Also, Smart Home Automation with Linux describes how you can use speech synthesis and voice recognition systems as a means to converse with your household devices in new, futuristic, ways. Additionally, I’ll also show you how to implement computer-controlled alarm clocks that can speak your daily calendar, news reports, train delays, and local with weather forecasts.
    [Show full text]
  • Pipenightdreams Osgcal-Doc Mumudvb Mpg123-Alsa Tbb
    pipenightdreams osgcal-doc mumudvb mpg123-alsa tbb-examples libgammu4-dbg gcc-4.1-doc snort-rules-default davical cutmp3 libevolution5.0-cil aspell-am python-gobject-doc openoffice.org-l10n-mn libc6-xen xserver-xorg trophy-data t38modem pioneers-console libnb-platform10-java libgtkglext1-ruby libboost-wave1.39-dev drgenius bfbtester libchromexvmcpro1 isdnutils-xtools ubuntuone-client openoffice.org2-math openoffice.org-l10n-lt lsb-cxx-ia32 kdeartwork-emoticons-kde4 wmpuzzle trafshow python-plplot lx-gdb link-monitor-applet libscm-dev liblog-agent-logger-perl libccrtp-doc libclass-throwable-perl kde-i18n-csb jack-jconv hamradio-menus coinor-libvol-doc msx-emulator bitbake nabi language-pack-gnome-zh libpaperg popularity-contest xracer-tools xfont-nexus opendrim-lmp-baseserver libvorbisfile-ruby liblinebreak-doc libgfcui-2.0-0c2a-dbg libblacs-mpi-dev dict-freedict-spa-eng blender-ogrexml aspell-da x11-apps openoffice.org-l10n-lv openoffice.org-l10n-nl pnmtopng libodbcinstq1 libhsqldb-java-doc libmono-addins-gui0.2-cil sg3-utils linux-backports-modules-alsa-2.6.31-19-generic yorick-yeti-gsl python-pymssql plasma-widget-cpuload mcpp gpsim-lcd cl-csv libhtml-clean-perl asterisk-dbg apt-dater-dbg libgnome-mag1-dev language-pack-gnome-yo python-crypto svn-autoreleasedeb sugar-terminal-activity mii-diag maria-doc libplexus-component-api-java-doc libhugs-hgl-bundled libchipcard-libgwenhywfar47-plugins libghc6-random-dev freefem3d ezmlm cakephp-scripts aspell-ar ara-byte not+sparc openoffice.org-l10n-nn linux-backports-modules-karmic-generic-pae
    [Show full text]
  • KDE 2.0 Development
    00 8911 FM 10/16/00 2:09 PM Page i KDE 2.0 Development David Sweet, et al. 201 West 103rd St., Indianapolis, Indiana, 46290 USA 00 8911 FM 10/16/00 2:09 PM Page ii KDE 2.0 Development ASSOCIATE PUBLISHER Michael Stephens Copyright © 2001 by Sams Publishing This material may be distributed only subject to the terms and conditions set ACQUISITIONS EDITOR forth in the Open Publication License, v1.0 or later (the latest version is Shelley Johnston presently available at http://www.opencontent.org/openpub/). DEVELOPMENT EDITOR Distribution of the work or derivative of the work in any standard (paper) book Heather Goodell form is prohibited unless prior permission is obtained from the copyright holder. MANAGING EDITOR No patent liability is assumed with respect to the use of the information con- Matt Purcell tained herein. Although every precaution has been taken in the preparation of PROJECT EDITOR this book, the publisher and author assume no responsibility for errors or omis- Christina Smith sions. Neither is any liability assumed for damages resulting from the use of the information contained herein. COPY EDITOR International Standard Book Number: 0-672-31891-1 Barbara Hacha Kim Cofer Library of Congress Catalog Card Number: 99-067972 Printed in the United States of America INDEXER Erika Millen First Printing: October 2000 PROOFREADER 03 02 01 00 4 3 2 1 Candice Hightower Trademarks TECHNICAL EDITOR Kurt Granroth All terms mentioned in this book that are known to be trademarks or service Matthias Ettrich marks have been appropriately capitalized. Sams Publishing cannot attest to Kurt Wall the accuracy of this information.
    [Show full text]
  • Upgrade Issues
    Upgrade issues Graph of new conflicts libsiloh5-0 libhdf5-lam-1.8.4 (x 3) xul-ext-dispmua (x 2) liboss4-salsa-asound2 (x 2) why sysklogd console-cyrillic (x 9) libxqilla-dev libxerces-c2-dev iceape xul-ext-adblock-plus gnat-4.4 pcscada-dbg Explanations of conflicts pcscada-dbg libpcscada2-dev gnat-4.6 gnat-4.4 Similar to gnat-4.4: libpolyorb1-dev libapq-postgresql1-dev adacontrol libxmlada3.2-dev libapq1-dev libaws-bin libtexttools2-dev libpolyorb-dbg libnarval1-dev libgnat-4.4-dbg libapq-dbg libncursesada1-dev libtemplates-parser11.5-dev asis-programs libgnadeodbc1-dev libalog-base-dbg liblog4ada1-dev libgnomeada2.14.2-dbg libgnomeada2.14.2-dev adabrowse libgnadecommon1-dev libgnatvsn4.4-dbg libgnatvsn4.4-dev libflorist2009-dev libopentoken2-dev libgnadesqlite3-1-dev libnarval-dbg libalog1-full-dev adacgi0 libalog0.3-base libasis2008-dbg libxmlezout1-dev libasis2008-dev libgnatvsn-dev libalog0.3-full libaws2.7-dev libgmpada2-dev libgtkada2.14.2-dbg libgtkada2.14.2-dev libasis2008 ghdl libgnatprj-dev gnat libgnatprj4.4-dbg libgnatprj4.4-dev libaunit1-dev libadasockets3-dev libalog1-base-dev libapq-postgresql-dbg libalog-full-dbg Weight: 5 Problematic packages: pcscada-dbg hostapd initscripts sysklogd Weight: 993 Problematic packages: hostapd | initscripts initscripts sysklogd Similar to initscripts: conglomerate libnet-akamai-perl erlang-base screenlets xlbiff plasma-widget-yawp-dbg fso-config- general gforge-mta-courier libnet-jifty-perl bind9 libplack-middleware-session-perl libmail-listdetector-perl masqmail libcomedi0 taxbird ukopp
    [Show full text]
  • Upgrade Issues
    Upgrade issues Graph of new conflicts libboost1.46-dev libboost-random-dev (x 18) libboost-mpi-python1.46.1 libboost-mpi-python-dev libwoodstox-java (x 7) liboss4-salsa-asound2 (x 2) libboost1.46-doc libboost-doc libgnutls28-dev libepc-dev libabiword-2.9-dev libcurl4-openssl-dev (x 5) python-cjson (x 2) nova-compute-kvm (x 4) printer-driver-all-enforce lprng (x 2) mdbtools-dev libiodbc2 tesseract-ocr-deu (x 8) tesseract-ocr libjpeg62-dev libcvaux-dev (x 2) ldtp python-pyatspi Explanations of conflicts ldtp python-pyatspi2 python-pyatspi Similar to ldtp: python-ldtp Weight: 29 Problematic packages: ldtp libboost-mpi-python-dev libboost-mpi-python1.48-dev libboost-mpi-python1.48.0 libboost-mpi-python1.46.1 Similar to libboost-mpi-python1.46.1: libboost1.46-all-dev libboost-mpi-python1.46-dev Similar to libboost-mpi-python-dev: libboost-all-dev Weight: 149 Problematic packages: libboost-mpi-python-dev tesseract-ocr-vie tesseract-ocr Similar to tesseract-ocr: slimrat tesseract-ocr-dev slimrat-nox Weight: 61 Problematic packages: tesseract-ocr-vie tesseract-ocr-spa tesseract-ocr Similar to tesseract-ocr: slimrat tesseract-ocr-dev slimrat-nox Weight: 295 Problematic packages: tesseract-ocr-spa tesseract-ocr-por tesseract-ocr Similar to tesseract-ocr: slimrat tesseract-ocr-dev slimrat-nox Weight: 133 Problematic packages: tesseract-ocr-por tesseract-ocr-nld tesseract-ocr Similar to tesseract-ocr: slimrat tesseract-ocr-dev slimrat-nox Weight: 112 Problematic packages: tesseract-ocr-nld tesseract-ocr-ita tesseract-ocr Similar to tesseract-ocr:
    [Show full text]
  • Working with GNU Debugger
    CH05.fm Page 135 Monday, October 7, 2002 9:00 PM C HAPTER 5 Working with GNU Debugger he debugger is one of the most important components of any devel- T opment system. No programmer writes a code that works on the first attempt or that does not have any bugs in it. Most of the time you have to go through debugging processes of your programs time and again. There- fore no development system is complete without a debugger. The GNU compiler, Emacs editor and other utilities work very closely with GNU debugger, also known as gdb, which is the debugger of choice of all open source developers community as well as for many commercial products. Many commercial debuggers are also built on top of GNU debugger. In addition to command line debugging features, you can find many GUI front ends to the GNU debugger. These front ends include the famous xxgdb. There are many other debuggers available in the open source community. Some of these debuggers are also introduced at the end of this chapter. This chapter provides a comprehensive working knowledge of gdb and how to use it. The text is accompanied by many examples to elaborate concepts presented here. After going through this chapter you should be able to debug many types of programs. 135 CH05.fm Page 136 Monday, October 7, 2002 9:00 PM 136 Chapter 5 • Working with GNU Debugger 5.1 Introduction to GDB GNU debugger or more commonly known as GDB is the most commonly used debugger in open source as well as commercial development on UNIX type platforms.
    [Show full text]
  • Anubis-Linux (V.2)
    Welcome to Anubis-Linux (v.2) – a programming/networking/security -oriented remastered version of SimplyMEPIS – A gentle introduction to Linux for (ex-)Windows® users. DISCLAIMER/LICENSE Anubis-Linux is a distribution based on SimplyMEPIS. Being a remaster means that MEPIS LLC doesn't support it and its development in any way. The original MEPIS License and documentation are preserved in docs.MEPIS.zip and info.MEPIS.zip for informational purposes. Anubis-Linux contains cryptographic software that is forbidden under U.S. law to be exported to and used in certain countries. Please inform yourself on the matters particular to the region where you live in. Anubis-Linux is provided AS-IS. No guarantees, and no warranties whatsoever (expressed or implied) are given regarding Anubis-Linux's correct functioning or fitness for a particular purpose. The authors of Anubis-Linux shall not be held liable in case of any kind of damage whatsoever (i.e. data loss) induced or caused by the use of Anubis-Linux. This is experimental software. You use Anubis- Linux at your own risk. By installing, running or otherwise using Anubis-Linux, you must understand, agree to and comply with the above terms. Otherwise do not use Anubis-Linux. The documentation and software in Anubis-Linux are freely redistributable but licensed varyingly. Please check their individual licenses for more information. All trademark/copyright rights are property of their respective owners. Linux is a registered trademark of Linus Torvalds. Debian is a registered trademark of Software in the Public Interest Inc. MEPIS and the MEPIS Logo are registered trademarks of MEPIS LLC.
    [Show full text]
  • Practical Linux Topics
    Binnie BOOKS FOR PROFESSIONALS BY PROFESSIONALS® THE EXPERT’S VOICE® IN LINUX Practical Linux Topics Practical Practical Linux Topics This book teaches you how to improve your hands-on knowledge of Linux using challenging, real-world scenarios. Each chapter explores a topic that has been chosen specifically to demonstrate how to enhance your base Linux system, and resolve important issues. This book enables sysadmins, DevOps engineers, developers, and other technical professionals to make full use of Linux’s rocksteady foundation. Practical Linux Explore specific topics in networking, e-mail, filesystems, encryption, system monitoring, security, servers, and more—including systemd and GPG. Understand salient security concerns and how to mitigate them. Applicable to almost all Linux flavors—Debian, Red Hat, Ubuntu, Linux Mint, CentOS—Power Linux Topics can be used to reference other Unix-type systems Topics with little modification. Improve your practical know-how and background knowledge on servers and workstations alike, increase your ability to troubleshoot and ultimately solve the daily challenges encountered — by all professional Linux users. Empower your Linux skills by adding Power Linux Topics to your library today. Chris Binnie US . ISBN 978-1-4842-1771-9 Shelve in: 54999 Linux/General User level: Intermediate–Advanced 9781484 217719 SOURCE CODE ONLINE www.apress.com Practical Linux Topics Chris Binnie Practical Linux Topics Copyright © 2016 by Chris Binnie This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
    [Show full text]
  • The Beauty and the Beast: Vulnerabilities in Red Hat's Packages
    The Beauty and the Beast: Vulnerabilities in Red Hat’s Packages Stephan Neuhaus Thomas Zimmermann Dipartimento di Informatica e Telecomunicazioni Microsoft Research Universita` degli Studi di Trento One Microsoft Way I-38100 Trento, Italy Redmond, Washington, USA [email protected] [email protected] Abstract In this paper, we show that vulnerabilities correlate In an empirical study of 3241 Red Hat packages, we with dependencies between software packages. For ex- show that software vulnerabilities correlate with depen- ample, when depending on Python the risk of an applica- dencies between packages. With formal concept analy- tion being vulnerable decreases, while the risk increases sis and statistical hypothesis testing, we identify depen- when depending on PHP or Perl. In addition, we demon- dencies that decrease the risk of vulnerabilities (“beau- strate how to use dependencies to build prediction mod- ties”) or increase the risk (“beasts”). Using support vec- els for vulnerabilities. More specifically, our contribu- tor machines on dependency data, our prediction models tions are as follows: successfully and consistently catch about two thirds of vulnerable packages (median recall of 0.65). When our 1. Empirical evidence that vulnerabilities correlate models predict a package as vulnerable, it is correct more with dependencies. Our study of 3241 Red Hat than eight times out of ten (median precision of 0.83). packages is the largest study of vulnerabilities ever Our findings help developers to choose new dependen- conducted in terms of number of investigated appli- cies wisely and make them aware of risky dependencies. cations. 2. Identification of dependencies with positive or neg- 1 Introduction ative impact on vulnerabilities.
    [Show full text]
  • Herramientas Computacionales En Linux
    Herramientas Computacionales en Linux Antonio Carrillo Ledesma y Karla Ivonne González Rosas Facultad de Ciencias, UNAM http://academicos.fciencias.unam.mx/antoniocarrillo Una copia de este trabajo se puede descargar de la página: http://132.248.182.159/acl/hcl/ http://132.248.182.159/acl/Textos/ Con…namiento 2020, Versión 1.0 1 1El presente trabajo está licenciado bajo un esquema Creative Commons Atribución CompartirIgual (CC-BY-SA) 4.0 Internacional. Los textos que compo- nen el presente trabajo se publican bajo formas de licenciamiento que permiten la copia, la redistribución y la realización de obras derivadas siempre y cuando éstas se distribuyan bajo las mismas licencias libres y se cite la fuente. ¡Copiaeste libro! ... Compartir no es delito. Herramientas Computacionales en Linux Índice 1 Introducción 5 2 Sistemas Operativos 12 2.1 Windows .............................. 14 2.2 Mac OS .............................. 15 2.3 Android .............................. 17 2.4 Linux ............................... 20 2.5 Chrome OS y las Chromebook .................. 27 2.6 Otros ................................ 30 3 Trabajando con Debian GNU/Linux y sus Derivados 32 3.1 Sistema de Archivos y Estructura de Directorios ........ 32 3.2 Trabajando en Línea de Comandos ............... 37 3.3 Cómo buscar archivos ....................... 59 3.4 Monitorear el Desempeño .................... 66 3.5 Compresores y Descompresores de Archivos .......... 69 3.6 Copiar Archivos entre Equipos .................. 75 3.7 Interprete de Órdenes de Consola BASH ............ 78 3.8 Desde la Nube ........................... 86 4 Otras Herramientas en Línea de Comandos 91 4.1 Prompt de la Línea de Comandos ................ 91 4.2 Historia de Comados ....................... 96 4.3 Alias a Comandos ......................... 97 4.4 Ayuda de Comandos y Tipo de Archivos ...........
    [Show full text]