uClinux™ -- Embedded Linux Microcontroller Project -- Home Page
Scripting the Linux desktop, Part 1: Basics
Developing applications for the Linux desktop typically requires some type of graphical user interface (GUI) framework to build on. Options include GTK+ for the GNOME desktop and Qt for the K Desktop Environment (KDE). Both platforms offer everything a developer needs to build a GUI application, including libraries and layout tools to create the windows users see. This article shows you how to build desktop productivity applications based on the screenlets widget toolkit (see Resources for a link). A number of existing applications would fit in the desktop productivity category, including GNOME Do and Tomboy. Getting started with screenlets You need to install a few things to get started developing screenlets. Next, download the test screenlet's source from the screenlets.org site. Python is highly object oriented and as such uses the class keyword to define an object. def __init__(self, **keyword_args): self.theme_name = "default" Back to top Writing a simple screenlet Listing 1. #! #! #!
GNOME News
Linux initial RAM disk (initrd) overview
Learn about its anatomy, creation, and use in the Linux boot process M. JonesPublished on July 31, 2006 What's an initial RAM disk? The initial RAM disk (initrd) is an initial root file system that is mounted prior to when the real root file system is available. The initrd contains a minimal set of directories and executables to achieve this, such as the insmod tool to install kernel modules into the kernel. In the case of desktop or server Linux systems, the initrd is a transient file system. Anatomy of the initrd The initrd image contains the necessary executables and system files to support the second-stage boot of a Linux system. Depending on which version of Linux you're running, the method for creating the initial RAM disk can vary. Listing 1. You can now inspect the /mnt/initrd subdirectory for the contents of the initrd. Beginning with Fedora Core 3, the default initrd image is a compressed cpio archive file. Listing 2. The result is a small root file system, as shown in Listing 3.
Learn Linux, 302 (Mixed environments): Concepts
Overview In this article, learn about these concepts: Server Message Block (SMB)/Common Internet File System (CIFS)File sharingPrint service This article helps you prepare for Objective 310.1 in Topic 310 of the LPI's Mixed Environment speciality exam (302). The objective has a weight of 1. Prerequisites To get the most from the articles in this series, you should have an advanced knowledge of Linux and a working Linux system on which you can practice the commands covered in this article. Back to top File and print sharing The goal of file and print sharing is to let computers use disks and printers on other computers as if they were locally attached. Desirable attributes of a file and print sharing solution are: The solution should be network agnostic—that is, indifferent to the type of network (Ethernet, token ring) on which it is run. There are several different ways to share files and printers. File sharing The nature of the sharing relationship can be temporary or long term. Print sharing
Library - Developers
GNOME 3 Porting Guide GNOME Accessibility Developers Guide [more versions, languages, or options...] The GNOME Accessibility Guide is for developers who want to ensure their programming efforts are accessible to the widest audience of users. This guide also covers many of the Section 508 requirements. GNOME Developer Platform Demos [more versions, languages, or options...] GNOME Human Interface Guidelines 2.2.3 [more versions, languages, or options...] This document tells you how to create applications that look right, behave properly, and fit into the GNOME user interface as a whole. Integrating existing software with GNOME [more versions, languages, or options...] Guide for Independent Software Vendors libsigc++ Tutorial [more versions, languages, or options...] See also: documentation on development version libxml++ Tutorial [more versions, languages, or options...] See also: documentation on development version Optimization Guide [more versions, languages, or options...]
Access the Linux kernel using the /proc filesystem
The /proc filesystem was originally developed to provide information on the processes in a system. But given the filesystem's usefulness, many elements of the kernel use it both to report information and to enable dynamic runtime configuration. The /proc filesystem contains directories (as a way of organizing information) and virtual files. A virtual file can present information from the kernel to the user and also serve as a means of sending information from the user to the kernel. It's not actually required to do both, but this article show you how to configure the filesystem for input and output. A short article like this can't detail all the uses of /proc, but it does demonstrate a couple of uses to give you an idea of how powerful /proc can be. Listing 1. Listing 2 illustrates reading from and then writing to a virtual file in /proc. Listing 2. Alternatively, you could use sysctl to configure these kernel items. Introducing kernel modules Listing 3. Listing 4. Listing 5. Listing 6.
How to change message of the day (MOTD) in Ubuntu server
If you're new here, you may want to subscribe to my RSS feed and if you have questions related to your ubuntu system post question to our forums . Thanks for visiting! The contents of /etc/motd are displayed by login after a successful login but just before it executes the login shell. The abbreviation "motd" stands for "message of the day", and this file has been traditionally used for exactly that (it requires much less disk space than mail to all users). If you want to change this message in ubuntu server follow this procedure first you need to edit /etc/motd.tail file sudo vi /etc/motd.tail Enter your message save and exit the file Now you can restart your ubuntu server to check your changes are working or not There is a new package that provides this functionality with more options, called update-motd, available in Ubuntu Universe for Intrepid. sudo aptitude install update-motd This will complete the installation create a script, such as /etc/update-motd.d/10-stats #! echo date who ubuntu motd