Advanced Labs UNIX - Gnome Desktop - Gedit BASICS

Total Page:16

File Type:pdf, Size:1020Kb

Advanced Labs UNIX - Gnome Desktop - Gedit BASICS Advanced Labs UNIX - Gnome Desktop - GEdit BASICS This computer exercise will introduce you to logging in to the computer lab workstation via the Linux (UNIX) operating system, the Gnome Graphical User Interface, and the GEdit text editor. You should keep a record of your computer work in your lab notebook , with notes as to what procedures worked and which ones gave problems, and printouts of files. The computer stations are located in Thornton room 123 (obtain door code and password from department secretary). Please close the door if you are the last to leave. 1. Logging On. You will work from a computer using the Linux operating system (or possibly from a Windows PC, in which case normal Windows procedures apply; in that cae, follow instructions in Appendix A). (You are strongly encouraged to use a Linux computer if available since some familiarity with UNIX may be helpful later in your career.) Press the space bar to make the screen activate. You should see a log-in screen; proceed to enter your user name and then your password. From there, the Gnome “desktop” should open up (may take a while). Next, open a terminal window by clicking on the menu choice Applications>Accessories>Terminal . (From the Applications menu, you can also run a variety of other useful programs, such as the Gedit text editor and standard office applications from OpenOffice, such as the “Writer” word processor (similar to Microsoft Word) or the “Impress” presentation program (similar to PowerPoint); more on this later.) At this point, you should be seeing a UNIX operating system command prompt (something like th123-2:yourname% ;); that is, UNIX is waiting for you to tell it what to do. Some useful UNIX commands: ls Lists the files in your directory cd dirname Change directory. Without a “dirname”, will return you to your home directory. cd / will take you to the root directory. pwd “Present working directory” – shows what directory you are in mkdir dirname Makes a sub-directory named “dirname” in the current directory cat filename Displays the file on the screen; lpr filename Prints the file contents on the laser printer or lp -dhp1_1 filename [The laser printer you will be using is located near the front of TH123] cp file1 file2 Copies contents of file1 into file2 rm filename Removes that file man commandname Shows the manual page(s) for that command (type q at end of file to exit) who Shows who is logged on to the system You might want to try some of these commands before proceeding with this tutorial. Ask the instructor or other users if you need help. 2. Gnome Desktop. Our Linux workstations use a Graphical User Interface called Gnome, which lets you have several different viewing windows into the computer. Try moving the mouse around the workspace to see how the pointer responds. The buttons on the mouse have the following general assignment: LEFT BUTTON: "Select" RIGHT BUTTON: "Menu" You can use the mouse to open and close windows, move windows, and change the size of windows in the same way as in Windows XP or Vista. In particular, the three buttons in the top right corner of the window allow you to close the window and exit by pressing the "X", expand the window to full screen by clicking on the middle button, or reduce the window to a taskbar button by clicking on the left-most button. [These buttons may not appear until you run a program later on.] To move a window, put the mouse pointer on the upper window border, press and hold the SELECT button, drag the window to the new location, and release the SELECT button. To resize, put the mouse pointer on a corner or border of the window until you see a two-headed arrow and follow the above procedure. You can reopen a window which was previously reduced to a button by putting the mouse pointer on the button and clicking the SELECT button. At this point, you can close the command window. 3. GEdit. One of the useful things we can do within the desktop environment is to use GEdit, a modern mouse-based text and program editor that is much like a word processor (and could serve as a (slightly awkward) one for writing your reports). Use the menu sequence Applications>Accessories>Text Editor to start GEdit. A text editing window should appear with a list of menu names at the top and a small indicator where text will be entered. Try entering some sample text, using the backspace key to fix mistakes, using the mouse to insert new text in the middle of old, using some of the edit menu functions (put the mouse pointer on the menu name, left click, get the highlight bar on the item you want, and then release the mouse button), etc. After you have experimented a bit, erase any text you have entered and then enter the following set of data values (with the three values on each line separated by spaces): 0 8 3 1 20 3 13 110 3 17 190 3 21 230 3 28 215 3 48 215 3 51 225 3 Make sure there is no "empty line" at the end of the file - that is, be sure the end of the file cursor position is just after the last "3", NOT at the beginning of a new line. We want to save this data set in a data file called first.dat . Pull down the "file" menu title and click with the left mouse button on "save as". A line for entry of the filename will appear. Move the mouse pointer to the beginning of this line and type in first.dat . Then click on "save". You should also print a copy of the file first.dat and paste the copy in your lab notebook. Now let's prepare a second file. Erase the existing data. You can do this by dragging the pointer to the end of the text (mouse button held down) and then releasing the button. When all the text is selected, put the mouse pointer on the "edit" menu title, pull down the menu, and click the left mouse button on "cut". Gone! (You might want to experiment with "undo"; if so, be sure the screen is clear when you're finally done.) You will now write a MATLAB command script which will be used later on to do graphics in MATLAB. I have added some comments; please do NOT type in these comments. Enter the following: load first.dat; %Reads in the data file "first.dat" into a matrix called first x = first(:,1); %Make an array of x-axis values from data matrix column 1 y = first(:,2); %Make an array of y-values from data matrix column 2 Comp-2 e = first(:,3); %Gets error bar value array from data matrix column 3 errorbar (x,y,e,e,'*'); %Plot x-y data with y-errorbars given by array e; * symbol at points xlabel ('Age (years)') %Label the x-axis ylabel ('Weight (pounds)') %Label the y-axis title ('Weight versus Age') %Add a title to the plot Now save this set of text lines under the filename firstplt.m . We will use this command script file along with the data file in a later exercise. It would be good to print out a copy of this MATLAB script, or “m file”, and paste it in your lab notebook. We can now leave the text editor. Click on the "X" button at the top corner. You might want to do a ls command (at the UNIX prompt in a terminal window) to be sure that your new files have been stored; you might also want to try a cat command to view your new files. (On some computer systems, the files you create will not be in your home directory, but rather in a “my documents” directory. Check with the instructor if you have trouble finding your files.) You could print the files, if not already done, using the command " lpr firstplt.m" if you like. [An alternate print command is " lp -dhp1_1 firstplt.m" ] You could also print your files directly from GEdit. To finish up, exit any programs you've been running (including the terminal window) by clicking on the corner "X" . We now can log off by following the menu sequence System>Log Out <yourname>. --------------------------------------------------------------------- Appendix A: Notepad and the MATLAB Text Editor If you are working on a Windows PC (likely Windows XP), you can use the Notepad text editor to perform the same functions as GEdit. Run it from the “Start” menu; follow the sequence Accessories>Notepad. MATLAB has a useful and handy built-in text editor (the MATLAB Editor/Debugger). The MATLAB text editor is similar to other text editors, but it is especially suited for creating MATLAB-specific files (called M-files, or .m files). There are a number of different features that the MATLAB text editor offers. One such feature is syntax highlighting (i.e., comments are green, command lines are black, and other constructs will use other colors), making it easier to read the script. Another is that it automatically append the ".m" suffix when saving script files, so you don't need to append it yourself The MATLAB text editor also offers extensive debugging functionality as well (i.e., finding and fixing errors in scripts). In this tutorial, we will not go into the debugging functionality of the MATLAB editor, but you can find examples in the Help Browser of MATLAB.
Recommended publications
  • Desktop Migration and Administration Guide
    Red Hat Enterprise Linux 7 Desktop Migration and Administration Guide GNOME 3 desktop migration planning, deployment, configuration, and administration in RHEL 7 Last Updated: 2021-05-05 Red Hat Enterprise Linux 7 Desktop Migration and Administration Guide GNOME 3 desktop migration planning, deployment, configuration, and administration in RHEL 7 Marie Doleželová Red Hat Customer Content Services [email protected] Petr Kovář Red Hat Customer Content Services [email protected] Jana Heves Red Hat Customer Content Services Legal Notice Copyright © 2018 Red Hat, Inc. This document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
    [Show full text]
  • Installing a Real-Time Linux Kernel for Dummies
    Real-Time Linux for Dummies Jeroen de Best, Roel Merry DCT 2008.103 Eindhoven University of Technology Department of Mechanical Engineering Control Systems Technology group P.O. Box 513, WH -1.126 5600 MB Eindhoven, the Netherlands Phone: +31 40 247 42 27 Fax: +31 40 246 14 18 Email: [email protected], [email protected] Website: http://www.dct.tue.nl Eindhoven, January 5, 2009 Contents 1 Introduction 1 2 Installing a Linux distribution 3 2.1 Ubuntu 7.10 . .3 2.2 Mandriva 2008 ONE . .6 2.3 Knoppix 3.9 . 10 3 Installing a real-time kernel 17 3.1 Automatic (Ubuntu only) . 17 3.1.1 CPU Scaling Settings . 17 3.2 Manually . 18 3.2.1 Startup/shutdown problems . 25 4 EtherCAT for Unix 31 4.1 Build Sources . 38 4.1.1 Alternative timer in the EtherCAT Target . 40 5 TUeDACs 43 5.1 Download software . 43 5.2 Configure and build software . 44 5.3 Test program . 45 6 Miscellaneous 47 6.1 Installing ps2 and ps4 printers . 47 6.1.1 In Ubuntu 7.10 . 47 6.1.2 In Mandriva 2008 ONE . 47 6.2 Configure the internet connection . 48 6.3 Installing Matlab2007b for Unix . 49 6.4 Installing JAVA . 50 6.5 Installing SmartSVN . 50 6.6 Ubuntu 7.10, Gutsy Gibbon freezes every 10 minutes for approximately 10 sec 51 6.7 Installing Syntek Semicon DC1125 Driver . 52 Bibliography 55 A Menu.lst HP desktop computer DCT lab WH -1.13 57 i ii CONTENTS Chapter 1 Introduction This document describes the steps needed in order to obtain a real-time operating system based on a Linux distribution.
    [Show full text]
  • GNOME 3.12 Gnome 3.12 Do You Have a Shiny Touchscreen Laptop? Ben Everard Thinks He May Have Found the Right Desktop Environment for You
    REVIEWS GNOME 3.12 Gnome 3.12 Do you have a shiny touchscreen laptop? Ben Everard thinks he may have found the right desktop environment for you. nome 3.12 is the latest stable incarnation of has received an overhaul and is getting closer in terms DATA the Gnome 3 desktop environment, which of function to the Ubuntu Software Centre, which in includes the Gnome Shell desktop and a range our opinion is the best of such applications for Linux. Web G www.gnome.org of core applications, most of which have seen some It still has a little way to go, but it’s looking good so far. Developer form of improvement. Support for high resolution (HiDPI) screens is The Gnome Project One of these integrated apps is the Videos significantly better than in 3.10, and it’s certainly worth Price application, which has been given a thoroughly taking a look at if you’re struggling to get the best out Free under the GPL modern look with floating controls and links to online of your expensive monitor. This comes as the Gnome video sources. In fact, integration with online services team have been doing excellent work in making the seems to be a focus point for the Gnome team at the desktop look more beautiful. We may even go so far moment. Support for the Pocket app, which is a way as to say that Gnome 3.12 has the most attractive for users to save online content for later perusal, has default state of any Linux desktop.
    [Show full text]
  • How to Modify PDF Documents? Seth Kenlon
    Modifying PDFs | Linux Starter Kit How to modify PDF documents? Seth Kenlon he Portable Document Format, or PDF, Evince is a document standard developed by As a part of the GNOME Desktop Environ- TAdobe to help ensure that when a user ment (which Ubuntu’s Unity uses as its base), prints, they get exactly what they see on the Evince is the default PDF viewer on Ubuntu screen. They are used as “pre-flight” tests Linux. It allows you to do all of the usual PDF in graphics design, or as convenient ways to things like read, rotate, resize for viewing, sent documents (with embedded fonts and and well as a few advanced features. graphics) across a network. One problem with PDFs is that there PDFs also get abused quite a lot; they are many different ways to create them but are often considered an e-book format even not much of a way to tell what feature set a though they don’t feature the re-sizing and particular document actually contains. For re-flowing capabilities of true e-book formats instance, it’s possible to embed text into a like e-pub. PDFs are, as their name states, scanned set of images in a PDF (using OCR meant to be digital versions of paper with all technology), but not everyone does this. of its advantages as well as disadvantages. So you might open one PDF document of a Sometimes you’ll a need to modify PDFs. scanned text book and discover that Evince Adobe itself successfully pushed PDF as a can highlight and copy all of the text on a universal, cross-platform standardized format, page.
    [Show full text]
  • Official User's Guide
    Official User Guide Linux Mint 18 Cinnamon Edition Page 1 of 52 Table of Contents INTRODUCTION TO LINUX MINT ......................................................................................... 4 HISTORY............................................................................................................................................4 PURPOSE...........................................................................................................................................4 VERSION NUMBERS AND CODENAMES.....................................................................................................5 EDITIONS...........................................................................................................................................6 WHERE TO FIND HELP.........................................................................................................................6 INSTALLATION OF LINUX MINT ........................................................................................... 8 DOWNLOAD THE ISO.........................................................................................................................8 VIA TORRENT...................................................................................................................................9 Install a Torrent client...............................................................................................................9 Download the Torrent file.........................................................................................................9
    [Show full text]
  • New Gnome 2.16 Desktop? NEW GNOME
    REVIEWS Gnome 2.16 What’s new in the new Gnome 2.16 desktop? NEW GNOME The changes in Gnome 2.16 are more than cosmetic: the current release sees a leaner and faster version of the desktop. BY CHRISTIAN MEYER ust six months ago, when Gtk#. The libraries makes it easier for Although Metacity, the original Gnome Gnome 2.14 reached the mirror developers who prefer not to use C to window manager, does not support all Jservers, the Gnome developers enter the world of Gnome. Gnome bind- the effects I just referred to, it will still proved they can set milestones without ings are available for C++, C#, and perform well with the new 3D X servers. sacrificing usability. Programs such as Python. The features are not enabled by default, the Deskbar applet demonstrate the but enabling them will give you a first power of Gnome’s underpinnings, pro- 3D Desktop impression of the capabilities you can viding an attractive GUI that is both effi- In last couple of years, much time and expect with the new X server extensions. cient and remarkably uncluttered. money has gone into investigating new You don’t even need to terminate the The latest 2.16 version adds a variety GUI concepts. One of the results is the current session (that is, log off and back of new features, and there have been Looking Glass project [1] by Sun Micro- on) to disable the effects. major improvements with respect to per- systems, which gives users the ability to formance and memory consumption.
    [Show full text]
  • Lesser-Known Gedit Keyboard Shortcuts Serge Y
    Lesser-Known gedit Keyboard Shortcuts Serge Y. Stroobandt Copyright 2013–2016, licensed under Creative Commons BY-NC-SA Introduction Once I really like GNOME’s gedit text editor, even though I have since become a Vim adept. And since the advent of the spoon-fed (i.e. nonforked) GNOME 3 debacle,I switched my desktop to XFCE.Nevertheless, gedit 3 works just fine in XFCE 4.11 regardless of the fact that gedit 3 employs ver- sion 3 of the GIMP toolkit (GTK+), whereas XFCE 4.11 still relies on GTK+ version 2. Its plugins, both “official” and “less official” (LaTeX, collaboration,…) are what make gedit a truly complete editor; yet in a very unobtrusive way. As for eye candy,I can wholeheartedly recommend my own dark, relaxing Olvido colour scheme. Figure 1: Screenshot of gedit 3.8.3 with its Oblivion colour scheme whilst writing this text in Pandoc Markdown. [Full screen] 1 Shortcuts to speed As a matter of fact, gedit happens to be the editor which I use for writing the Markdown documents that end up being converted to these web pages. I also use gedit for preparing LaTeX and ConTeXt documents. Once one starts using gedit extensively for writing content, it becomes in- evitable to learn a handful of keyboard shortcuts. Doing so will tremendously speed up work. This happens because keyboard typing is essentially a two- hands undertaking; when one hand leaves the keyboard to grab a computer mouse, the other hand will mostly remain idle. Use of the computer mouse se- riously disrupts the flow of creative electronic writing.
    [Show full text]
  • Usability Themes in Open Source Software
    Usability Themes in Open Source Software Jim Hall University of Minnesota (Dr. Ann Hill Duin, advisor) April 30, 2014 1 ABSTRACT This research examines the prevalent state of usability in open source software, focusing on the reasons why usability is often overlooked in the open source software noosphere. A usability test of GNOME, a popular open source software desktop environment, provides insights into the present development structure, and highlights areas for improvement. Analysis of the test data suggests features or themes of usability, and provides avenues of exploration to improve overall usability within open source software systems. 2 A program should follow the `Law of Least Astonishment.' What is this law? It is simply that the program should always respond to the user in the way that astonishes him the least. The Tao of Programming (pp. 55-57) Geoffrey James Open source software developers create an array of innovative programs: WordPress is the world's most popular blogging platform, used by a staggering 202 million websites ¼ Magento, used by 30,000 merchants, including Samsung, Nespresso and The North Face, is the world's fastest growing e-commerce platform ¼ Firefox currently accounts for 24.43% of the recorded usage share of web browsers, but this figure is on the rise ¼ GnuCash provides a great, free alternative to paid-for accounting software ¼ Music software like Cubase and Logic Pro can be incredibly expensive, which is why an increasing number of people are turning to Audacity, a free, cross-platform sound editor
    [Show full text]
  • Simfit Simdem
    SIMF T SIMD M SIMULATION, FITTING, STATISTICS,I AND PLOTTING. SIMFIT LIBRARY FOR INPUT, OUTPUT,E AND PLOTTING. Running SimFIT and SimDEM in Linux bill.bardsley@simfit.org.uk https://simfit.org.uk 1 Running Simfit in Fedora Linux Since Wine became available in Linux, the SimFIT and SimDEM packages have been able to run perfectly in this environment except for a few minor options, and I am grateful for the help given to me by Mikael Widersten and David Bailey as the SimFIT Linux project has progressed. For instance, SimFIT installs from the box in Fedora and automatically creates a working configuration, leading to the desktop displayed below when both the 32-bit and 64-bit versions of SimFIT have been installed. Selecting to run 32-bit or 64-bit SimFIT then displays the main SimFIT menu as follows 1 while choosing the configuration option presents the configuration control shown next. This configuration was created automatically by the installation program and it has located the paths used by the SimFIT package and the native binaries listed next. 2 Z:\usr\bin\gedit Z:\usr\bin\nautilus Z:\usr\bin\evince Z:\usr\bin\gnome-calculator Here gedit is the gnome editor, nautilus is the disk explorer, evince is the file and document viewer, while gnome-calculator is the default calculator in Fedora. 2 Running Simfit in all versions of Linux In order to maintain the functioning of SimFIT and SimDEM in Wine–Linux, several changes to the configuration items described in configure.txt or configure.pdf have been made at Version 7.3.4 as now explained.
    [Show full text]
  • Debian and Ubuntu
    Debian and Ubuntu Lucas Nussbaum lucas@{debian.org,ubuntu.com} lucas@{debian.org,ubuntu.com} Debian and Ubuntu 1 / 28 Why I am qualified to give this talk Debian Developer and Ubuntu Developer since 2006 Involved in improving collaboration between both projects Developed/Initiated : Multidistrotools, ubuntu usertag on the BTS, improvements to the merge process, Ubuntu box on the PTS, Ubuntu column on DDPO, . Attended Debconf and UDS Friends in both communities lucas@{debian.org,ubuntu.com} Debian and Ubuntu 2 / 28 What’s in this talk ? Ubuntu development process, and how it relates to Debian Discussion of the current state of affairs "OK, what should we do now ?" lucas@{debian.org,ubuntu.com} Debian and Ubuntu 3 / 28 The Ubuntu Development Process lucas@{debian.org,ubuntu.com} Debian and Ubuntu 4 / 28 Linux distributions 101 Take software developed by upstream projects Linux, X.org, GNOME, KDE, . Put it all nicely together Standardization / Integration Quality Assurance Support Get all the fame Ubuntu has one special upstream : Debian lucas@{debian.org,ubuntu.com} Debian and Ubuntu 5 / 28 Ubuntu’s upstreams Not that simple : changes required, sometimes Toolchain changes Bugfixes Integration (Launchpad) Newer releases Often not possible to do work in Debian first lucas@{debian.org,ubuntu.com} Debian and Ubuntu 6 / 28 Ubuntu Packages Workflow lucas@{debian.org,ubuntu.com} Debian and Ubuntu 7 / 28 Ubuntu Packages Workflow Ubuntu Karmic Excluding specific packages language-(support|pack)-*, kde-l10n-*, *ubuntu*, *launchpad* Missing 4% : Newer upstream
    [Show full text]
  • Section 1(Choose the Correct Answer)
    INFORMATION AND COMMUNICATION TECHNOLOGY STANDARD 9 Theory- First Terminal Examination Section 1(Choose the correct answer) 1.Which among the following is an open source image manipulation programme? a. photo shop b. gimp c. ktoon d. eye of gnome Answer : b. gimp 2.Which of the following tools in GIMP software can be used to merge various colours in a selected layer ? a. b. c. d. Answer : b. 3.The following are some tools in GIMP tool box. Which one among these is not a Transform tool? a. b. c. d. Answer: a. 4.Which among the following is a open source image manipulation programme? a. GNU b. GNOME c. GIMP d. Gcolor2 Answer: c.GIMP 5.Which among the following is the suitable extension (file format) for an image file? a. png b. html c. ods d. txt Answer: a. png 6.Given below is a tool in the toolbox of GIMP software. It is used to.......... a. select pictures b. add pictures c. merge various colours d. take copy of an image Answer : c. merge various colours 7. Given below is a tool in the toolbox of GIMP software. Name it. a. Smudge tool b. Scale tool c. Move tool d. Pencil tool Answer : c. Move tool 8.Given below is a tool in the toolbox of GIMP software. Name it. a. Scale tool b. transform tool c. flip tool d. rotate tool Answer : c. flip tool 9.Given below is a tool in the toolbox of GIMP software. It is used to............................ a. Add text b. zoom c.
    [Show full text]
  • Manual Del Editor Gedit
    Manual Básico de Gedit Introducción • Manual de Gedit La aplicación gedit le permite crear y editar archivos de texto. El objetivo de gedit es ser un editor de texto simple y fácil de usar. Se pueden activar características mas potentes con diferentes complementos, permitiendo una variedad de tareas relativas a la edición de texto. Procedimientos iniciales • Manual de Gedit • 2.1.Para iniciar gedit • 2.2.La ventana de gedit • 2.3.Para abrir gedit desde una línea de comandos 2.1.Para iniciar gedit Para iniciar la aplicación gedit, siga estos pasos: Aplicaciones menú Seleccione Accesorios ▸ Editor de texto. Línea de comandos Ejecute el comando siguiente: gedit Por omisión, cuando abra un documento de texto en el gestor de archivos, gedit arrancará, y mostrará el documento. 2.2.La ventana de gedit Cuando inicia gedit, aparece la ventana siguiente: Figura 1 Ventana de gedit La ventana de gedit contiene los elementos siguientes: Barra de menús Los menús de esta barra contienen todos los comandos necesarios para trabajar con archivos de gedit. Barra de herramientas La barra de herramientas contiene un subconjunto de comandos a los que puede acceder desde la barra de menús. Área de visualización El área de visualización contiene el texto del archivo que se está editando. Barra de estado La barra de estado muestra información sobre la actividad actual de gedit e información contextual sobre los elementos de menú. • Muestra el número de línea y columna en que se encuentra el cursor. • Muestra la modalidad de edición. Si el editor está en modalidad de inserción, la barra de estado contiene la palabra INS.
    [Show full text]