Files in 'Linux' Category

2008 Oct 20 2008

Command in linux: The prompt

Table of Contents linux commands

  1. Command in linux: Shell
  2. Command in linux: The prompt


The shell is a black screen which only shows what is expected of the indicator command prompt which is called, most of Linux systems tend to show an indicator in the user name, the name of the machine and the current working directory, as shown in the picture below:

The form of display is given by the prompt shell variable called PS, this means that setting this variable to change the look of the prompt, to practice the commands are going to change this variable to show the results of the variation in the indicator system.

As this post is long click the link below to read the whole article.

Continue Reading »

No comments

2008 Oct 20 2008

Command in linux: Shell

Table of Contents linux commands

  1. Command in linux: Shell
  2. Command in linux: The prompt


As with other Unix operating systems, Linux has a shell or shell script which makes so-called intermediary between the user and the operating system. One of the most used shell is called bash (which stands for Bourne Again SHell). This shell has a very simple interface, since it is a black screen in text mode which is a type indicator that it expects orders. This indicator is called the prompt. The following image shows a linux terminal show bash.


No comments

2008 Sep 16 2008

Disk error on boot linux

Sometimes it may happen that after a bad shutdown the computer, for whatever reason, when rebooting the system is an error and only shows the boot linux in single mode, then logically he applied the root password. This error may be due to an error in the disk or partition. Well one way to try to fix this is because once the password and single-mode type the following command at the command line:

df

which presents a report with the partition that has been affected by the error, once we have this information, to try to solve this type the following command:

e2fsck / dev / hd **

Taking into account that have been replaced by the ** for the partition number that you have returned the first command. The questions we ask for the second command to all who answered yes (YES). Once the order, type the command

logout

To exit the session and finally reboot the computer with the following keyboard combination:

Ctrl + Alt + Delete.

And a greeting to another.

Technorati Tags:

No comments

2008 May 01 2008

Switching to another console linux

Posted by admin in Linux, Tips, no level

GNU / Linux systems have multiple consoles and switch between the keyboard allows them whether it works in graphic mode or in text mode.

Although the procedure is different depending on the case in question. In text mode to change the linux console has to hold down Alt and then the function key corresponding to the console to which you want to access.

For example if you want to access the console must first press and hold down the Alt key, and then there is a push on the button called "F1" key combination that allows you to access the console first, if you will access the second one would have to press the combination Alt + F2, and so on with the first six text consoles.

I say the first six but can be more, since most Linux systems are configured by default to six consoles linux text in a more graphic way, therefore access to text consoles would press the key combination Alt and then the function key that can go from F1 to F6, whereas if you press F7 will have access to the Linux console in graphical mode.

On some linux systems you can not change the console text to more than 6 + 1 graph, or it is not recommended because doing so does not acknowledge, however if the keyboard has 12 function keys and the system installed linux is not very old could increase the number of terminals 12, 11 is the final text that would be more graphic.

It should be borne in mind that consoles have a lot of text may not be so advisable, because even if allowed to run different programs on different consoles and even into the Linux system with different user names according to the console. A novice user makes little use of these options.

It should be borne in mind that when it changed to a graphical console, if you want to switch to another console, you can no longer use the same key combination as in graphic mode does not recognize these.

So to switch between consoles on the original console in graphical mode has been pressing the key combination Ctrl + Alt + function key, ie it must also press the Control key.

No comments

2008 Mar 21 2008

Installing TrueType fonts on Linux

Posted by admin in Linux, Tips

Good!, The first serious download truetype font that might interest us, there are many sites from which we can make this download, then you are some:

www.fontreactor.com
www.fuentesbrillantes.com
fuentes.laislavirtual.com

After downloading the sources you want to install, these normally come in compressed files in which there is also some file that specifies the authors of the source or use restrictions that might have it. So you have to unzip the files needed to get the files. Ttf (True Type Font), which are the files that interest us.

Once we have the font files, we check the source directory in which the sources are installed on your system, which normally / usr / share / fonts / and if this were not normally defined in the file fonts . conf that is located on the / etc / fonts / in this file located in the first part of a series of directories indicating where you can find situated the sources, the following example shows a list of directories can find:

/ usr / share / fonts /
/ usr/share/X11/fonts /
/ usr / local / share / fonts /
~ /. fonts /

Once you've checked the directories where you can find the sources, probably in the installation directory of the sources there will be a directory called truetype, which are certainly the source of this type installed on your computer. Yet we create a new directory in which to install the new fonts we've downloaded. To do this, suppose that the directory to be created will be called misfuentes therefore this step to execute the following command:

mkdir / usr / share / fonts / misfuentes

This will create the directory "misfuentes" once this copy the source downloaded and unzipped, it only archives. Ttf, andalusia directory. assuming you have unpacked the sources in a directory called "sources" within our own, the command to execute would be:

cp / home / ro / fonts / *. ttf / usr / share / fonts / misfuentes /

The previous action copied all fonts downloaded to the directory where we want to install them. Now it has to update the font cache system to reflect the new fonts installed on your computer. To do this execute the following command:

fc-cache-f

The previous action updates the cache, so the sources that we have installed on your computer should be reflected in the equipment and system. If you have any application that uses open source, new sources are not installed to reflect the application restart.

You must bear in mind that the package 'fontconfig' has to be installed on the system.

PS: I remember the address of our portal of free courses from which you will find the online course xhtml, java and windows online. Www.aprendoencasa.com

Comments Off