Basics of URPMI in Mandriva

mandrake.png

If you’ve ever used apt-get in Debian or Ubuntu, yum in Fedora, or zypper in Suse, you’ll know that the killer feature makes software installation and upgrades amazingly easy. What we need is a tool built on top of RPM that does all the automatic dependency stuff for you like apt does. The Mandriva distribution contains just such a tool: URPMI. This is probably Mandriva’s most under-advertised feature, and easily the most important feature. With it, RPM package management is as easy as apt-get under Debian.

Continue reading ‘Basics of URPMI in Mandriva’ »

Make Conky Transparent and movable

terminal-glossy.jpg

Conky is a light-weight system monitor. It’s in most the repo’s for most distributions. I personally like conky to look as if it’s part of my actual desktop. Unlike gdesklets or other desktop widget applications, i want it to feel like it’s part of the desktop itself, where it doesn’t get in the way of other windows as well as to adding some eye candy as well. But it’s also nice to have the ability to move it when necessary as well. There are times (or at least there are for me) when it might be nice to shift conky slightly, so I can see what’s happening without shifting other windows around.

To that end, I cooked up a .conkyrc file that displays a 200-pixel wide panel with the traditional system indicators in place, plus the settings that float it on the first workspace of my Fluxbox setup. This way it doesn’t get in the way of other windows, but it’s still moveable as well.

Continue reading ‘Make Conky Transparent and movable’ »

How to Add Menu’s in Fluxbox

fluxbox.png

Fluxbox is an alternate to KDE or Gnome as a desktop environment, it’s extremely lightweight and minimal but sometimes a bit too minimal. I always find I need to add extra menu’s to the existing fluxbox menu’s to make accessing applications more of a snap.  Fortunately adding extra menu’s to Flux’s right click entries isn’t too difficult.

Continue reading ‘How to Add Menu’s in Fluxbox’ »

A Guided Tour Of Awk

terminal-glossy.jpg

Greg Goebel has written a pretty extensive overview of the awk command over at vectorsite. As it’s one of the best ones I’ve seen floating around on the net I’ve included it here:

The Awk text-processing language is useful for such tasks as:

  • Tallying information from text files and creating reports from the results.
  • Adding additional functions to text editors like “vi”.
  • Translating files from one format to another.
  • Creating small databases.
  • Performing mathematical operations on files of numeric data.

Awk has two faces: it is a utility for performing simple text-processing tasks, and it is a programming language for performing complex text-processing tasks.

The two faces are really the same, however. Awk uses the same mechanisms for handling any text-processing task, but these mechanisms are flexible enough to allow useful Awk programs to be entered on the command line, or to implement complicated programs containing dozens of lines of Awk statements.

Awk statements comprise a programming language. In fact, Awk is useful for simple, quick-and-dirty computational programming. Anybody who can write a BASIC program can use Awk, although Awk’s syntax is different from that of BASIC. Anybody who can write a C program can use Awk with little difficulty, and those who would like to learn C may find Awk a useful stepping stone, with the caution that Awk and C have significant differences beyond their many similarities.

There are, however, things that Awk is not. It is not really well suited for extremely large, complicated tasks. It is also an “interpreted” language — that is, an Awk program cannot run on its own, it must be executed by the Awk utility itself. That means that it is relatively slow, though it is efficient as interpretive languages go, and that the program can only be used on systems that have Awk. There are translators available that can convert Awk programs into C code for compilation as stand-alone programs, but such translators have to be purchased separately.

One last item before proceeding: What does the name “Awk” mean? Awk actually stands for the names of its authors: “Aho, Weinberger, & Kernighan”. Kernighan later noted: “Naming a language after its authors … shows a certain poverty of imagination.” The name is reminiscent of that of an oceanic bird known as an “auk”, and so the picture of an auk often shows up on the cover of books on Awk.

Continue reading ‘A Guided Tour Of Awk’ »

Kick a user off your linux box

terminal-glossy.jpg

Lets say you run an ssh server allowing users to remotely login, but one may be troublesome, or you left an account logged in at another location by accident. You want to disconnect the user but don’t want to disconnect the machine or power the machine down. Well, you can boot them off and here’s how.

Continue reading ‘Kick a user off your linux box’ »

How to ignore ping requests

network.png

Typically if you’re behind a router this will only affect the internal network unless you have some port forwarding going on, but if you’re not behind another router or firewall this can block the outside world from sending ICMP requests to your machine.

To turn answers to icmp_echos (ping) off, as root type:

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

and to turn it on again type:

echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all

Note: the iptables frontend “Firestarter” enables you do to this via a gui interface as well.

Some Basic Networking Commands

network.png

Networking in general can go so in depth that the mind spins thinking about all there is to know, and there’s plenty of linux tools to deal with the simplest of home networks, to complex networking setups. The Linux+ and LPI certification exams require that you already have a working knowledge of networking principles, but they also expect you have a grasp on some of the basic networking tools in the Linux world. Some we’ll cover today, some of these may or may not be included on a specific exam’s test, but none the less, they will aid you in the Unix world.

Continue reading ‘Some Basic Networking Commands’ »

Basics of PHP #1

PHP.gif

You’ll notice we’ve been covering the basics of MySQL and Apache, we will also be covering the basics of PHP. And why under the server section? Databases and scripting languages don’t necessary make a server, but they are integral to the most common stack you find on the web, which is called LAMP. (Linux-Apache-MySQL-PHP).

The first thing we want to do is make sure we have the latest stable apache and php installed.

  • On Debian/Ubuntu: sudo apt-get install apache2 libapache2-mod-php5 php5
  • On Fedora (as root): yum install httpd php
  • On OpenSuse(as root): zypper in apache2 apache2-mod_php5 php5

And just to make sure apache is running: /etc/init.d/apache2 restart

Continue reading ‘Basics of PHP #1’ »

Absolute Basics of Apache

apache.gif

Apache is the world’s most common web server and it runs on just about anything, Linux, Unix, Mac OS X, Windows, BSD, you name it and it’s typically the web server of choice in the Linux world. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. It is free in cost and is licensed under the Apache license, one of man open source licenses.

Continue reading ‘Absolute Basics of Apache’ »

Basics of MySql on the Commandline #3

mysql.jpg

In this tutorial we’re going to cover how to Alter Records, Update Records, and how to Delete Records.

Please see these prerequisites:

  1. Basics of MySql on the Commandline #1
  2. Basics of MySql on the Commandline #2

Continue reading ‘Basics of MySql on the Commandline #3’ »

Pages: Prev 1 2 3 ...51 52 53 54 55 ...63 64 65 Next