Debian file system

Valic —  May 27, 2013 — Leave a comment

What is a file system?

A file system represents a collection of files stored in a specific way on a system. There are many ways to keep files and, as you probably already know, there are also many file systems types. Each type will describe a uniform method meant to store files on a storage medium. Think about this as a hard disk partition. If this storage will be different it would be very difficult for you to share these files with other people.

All directories and files are kept into a high tree rooted at ‘/’. This is like a tree because if the file system would be drawn it will be like a tree upside down. These can be spread out over more devices and you can attach the file system using mount(8).

On Debian system the folders are called directories. There is no drive concept (such as “A:”). You have only one file system where all you need is included. Compared to windows you will find this to be a great advantage.

Here are some basic details regarding the file system on Debian operating system:

  • You will have to use case sensitive mode for all files, ‘FILE’ and ‘file’ are completely different documents
  • When you refer to root directory it means you talk about the root of the file system: ‘/’. This is different from the home directory for the root user: ‘/root’.
  • You can use for your file and directory names any symbol or letter. The only character you cannot use is ‘/’, this being a representation for the root directory
  • The root directory filename (/) cannot be renamed
  • All directories and files are designated by a path or an absolute filename, which will show the full sequence which needs to be passed in order to reach to that specific file
  • Several branches can be found in the root directory: ‘/etc/’ or ‘/usr/’. These have also other branches, such as ‘/etc/init.d/’ or ‘/usr/local/’.
  • There is no specific path having a correspondent to a physical device
  • You can find more information about this in the file system hierarchy standard

Here you can find some key directories and their specific usage:

  • 1. / – this is the root directory
  • 2. /etc/ – this is the place for the configuration files
  • 3. /var/log/ – find system log files here
  • 4. /home/ – home directories

Next, each file has its own permissions. Read permission will allow the user to read the content of a file. Write permission will allow the user to change the content of that file. Execute permission will allow the user to execute that file as a command. Using the command ‘ls(1)’ you will be able to see the permission information for the files and directories and when it is invoked with “-1” it will display more information such as file type, number of hard links to that file, owner username, its group or size.

We hope this starter material for Debian file system will help you get a basic overview meant to help you in the future. Continue Reading…

Maybe you are new to this operating system or maybe you already know the Debian basics. When you learn a new computer operating system you feel like learning a new language, not your native, but a foreign one. You may use tutorials, books, documentation, these are very helpful, but without any practice it may be useless. In order to offer you some help we elaborated some basic points regarding the Debian console basics which you may consider useful information, especially if you are getting started now.

First of all, let’s start with the shell prompt. After you login you will be able to use Debian shell prompt, also known as command prompt, which will be displayed in the left side of your monitor. What is its purpose? Well, for the moment it is waiting for you to write some commands there. The welcome message for the shell prompt can be easily customized if you edit the file ‘etc/modt.tail’. So, you are in the shell which will compile your future commands.

You may have installed the X Window System with Gnome (a display manager) you will see the graphic screen at logon. You are logged in now, and if you made this with a super-user or the root account you can do some pretty cool administrative tasks: remove, write and read any file on the system, no matter what their permissions are, set file permissions and ownerships, set passwords for other users on your Debian system or, check this out, you can login to any other account without even knowing the password they use. As you can see there is nothing you cannot do if you are the root user. Be responsible while using this account and never share your password with other people. Stay safe!

If you want to get to the root shell prompt using the root password you can acquire this by:

  • typing ‘root‘ when you are in the basic command prompt
  • typing ‘su -1‘ from any user shell prompt (you will lose your current data)
  • typing ‘su‘ from any shell prompt (keeping some of your current data)

If you finished your job on the current session you can leave the command prompt in Debian typing the keys ‘CTRL + D‘, pressed together, and your shell activity will be done. If you are in the character console this command will get you back to the shell prompt. Other way to leave the prompt is to type ‘exit’ at the command line. When your job is finished and you want to shut down the system from the command line using ‘shutdown -h now’. Instead, if you want to recover a console (maybe after your screen went berserk) you can write ‘reset’ on the shell prompt on Debian.

You are now able to use the Debian operating system without any risk, but make sure to read also the Security Manual from Debian documentation, because you have to use a non privileged user account to stay safe. Of course, you will have to go deep with the shell prompt, but this article offered you an overview which will be helpful for you in the future.

Debian is an operating system which includes software packages released as open source software for free, mainly under the GNU General Public License but also with other free software licenses. It runs a popular Linux distribution having access to repositories including software packages which are ready for use. In this article you will learn how to process texts using Debian. We assume that you already know how to create simple text documents using an editor, such as v1, for example. Let’s go, then.

What does text processing means?

It allows you to write the content of a file as an ASCII text using some additional commands in order to describe better your document structure. By starting the text processor you will be able to convert the source text to a file with a layout. This file can include some tables, formulas or figures, for example. At this moment some of the most used and known text processors for Debian are LaTeX and TeX.

LaTeX is a strong macro package used for TeX typesetting system. There are some text processing tools used by most users which make this by piping text through chains. When no regular expression is used you can concatenate files and output the resulted content using the cat(1) command or, in the other direction you can use tac(1) to output a reversed content. Use cut(1) to select parts of lines, sort(1) in order to sort lines from content or tr(1) if you want to delete characters or translate content.

On the other hand you are able, using some basic regular expressions (BRE), to match some text with some patterns – using grep(1) – or to power a screen editor using the command vim(1). Other extended regular expressions (ERE) will make possible for you to do simple text processing by using egrep(1).

If you are not familiar with these commands you can figure this out very easily using the command man command’. Below you can find a list with useful commands for standard text processing on Debian:

  • When no regular expression is used: cat(1), tac(1), diff(1), tr(1), cut(1), head(1), uniq(1), tail(1), sort(1)
  • When basic regular expressions are used: grep(1), emacs(1), ed(1), vim(1), sed(1)
  • When extended regular expressions are used: egrep(1), python(1), awk(1), pcregrep(1), tcl(3tcl), perl(1)

You can use regular expressions for many tools for text processing. Think about them as shell globs but obviously more complex and powerful. These expressions are formed by meta characters and text characters and they describe usually matching patterns. The meta characters are just simple characters having special meanings. Replacement expressions are some characters having also special meanings.

This was only an introduction article in this area, this overview being only the beginning for what is about to come. We hope that these tips regarding text processing in Debian operating system will help you make an idea about how this works and future documentation will be always available on in order to help you move on with your needs. Continue Reading…

1. Wider accessibility

Installing Debian Wheezy is now easier than ever because of the new installer that offers better accessibility as well as other benefits. The system is available to be installed in 73 languages now, and more others are available.

“Debian can now be installed using software speech, above all by visually impaired people who do not use a Braille device,” the project team explained in the official release announcement.

2. Debian Wheezy have UEFI support

With version 7.0, Debian supports for the first time installation and booting using the Unified Extensible Firmware Interface (UEFI) for new 64-bit PCs (amd64).

3. Multiarch capability

One of the main release goals for Wheezy was that it allow Debian wheezy users to install packages from multiple architectures on the same machine, also known as “multiarch” support. This means that you can now, for the first time, install both 32- and 64-bit software on the same machine and have all the relevant dependencies correctly resolved, automatically,” the project team explained.

4. A raft of updated packages

Among numerous newly updated packages in Debian 7.0 are Linux 3.2, GNOME 3.4, KDE 4.8.4, GIMP 2.8.2, LibreOffice 3.5.4, Apache 2.2.22, MySQL 5.5.30, and Samba 3.6.6. Also available are more than 36,000 other ready-to-use software packages, the project notes.

5. Broad hardware support

Last but not least, it’s worth noting that “you can install Debian on computers ranging from handheld systems to supercomputers, and on nearly everything in between,” as the project team puts it. Specifically, a total of nine hardware architectures are supported in this Debian release, including 32-bit PC/Intel IA-32 (i386), 64-bit PC/Intel EM64T/x86-64 (amd64), Motorola/IBM PowerPC (powerpc), Sun/Oracle SPARC (sparc), and Intel Itanium (ia64). Continue Reading…

On May 4th 2013, Debian Team announced the release of the Debian 7.0 called Wheezy after many months of development. This new Debian version includes numerous features as multiarch support, several specific tools to deploy private clouds, an improved installer, and a complete set of multimedia codecs and front-ends which remove the need for third-party repositories.

This release includes numerous updated software packages, such as:

  • Apache 2.2.22
  • Asterisk
  • GIMP 2.8.2
  • an updated version of the GNOME desktop environment 3.4
  • GNU Compiler Collection 4.7.2
  • Icedove 10 (an unbranded version of Mozilla Thunderbird)
  • Iceweasel 10 (an unbranded version of Mozilla Firefox)
  • KDE Plasma Workspaces and KDE Applications 4.8.4
  • kFreeBSD kernel 8.3 and 9.0
  • LibreOffice 3.5.4
  • Linux 3.2
  • MySQL 5.5.30
  • Nagios 3.4.1
  • OpenJDK 6b27 and 7u3
  • Perl 5.14.2
  • PHP 5.4.4
  • PostgreSQL 9.1
  • Python 2.7.3 and 3.2.3
  • Samba 3.6.6
  • Tomcat 6.0.35 and 7.0.28
  • Xen Hypervisor 4.1.4
  • the Xfce 4.8 desktop environment
  • X.Org 7.7
  • more than 36,000 other ready-to-use software packages, built from nearly 17,500 source packages.

You can find more just by reading the official announcement from here:

Page 1 of 11