Another way to populate your apt-cacher
Submitted by ggarron on Fri, 05/16/2008 - 21:56.If you have some Debian machines already installed, and you plan to install some others, you maybe are going to use the net-install CD, which is the most common way to install Debian.
That may take a long time, to install all the Desktop Gnome or KDE, all the applications or servers, etc, and if you have just installed your apt-cacher server as me, you will not be able to use it this first time .... unless you populate it.
The "Ubuntu Story" site
Submitted by ggarron on Fri, 05/16/2008 - 11:59.I just stumbled on this site, it is a promotional site devoted to Ubuntu, you might be thinking, "well yet another Ubuntu site" but I think this one deserves a visit, it does not have how-tos, or such kind of info, it is mainly promotional, it has some information about Ubuntu's, Flexibility, Speed, Simplicity, Appearance, Stability, Freedom, Security and Community, which are the columns where Ubuntu rests.
How did Ubuntu end up so popular?
Submitted by ggarron on Fri, 05/16/2008 - 10:49.As a matter of fact, I made myself that question more than a few times, but never took the time to try to find an answer, because Ubuntu is a relatively new Distro, it comes from Debian when Mark Shuttleworth, who was part of the Debian project decided that Debian was not focused on the final user as it should, and made its own distribution.
Well, I have found an article which touches some facts about why is Ubuntu so popular today, and we have to say that, in less time than RedHat, Suse, or Debian.
wget - Resume downloads, limit the speed and much
Submitted by ggarron on Thu, 05/15/2008 - 23:09.wget is a command line tool used to download files, or complete webpages, it is a great utility with lots of options, as you can see if you read the wget man page
Some months ago, I have written about how to download files with wget, now I want to add some other tips to those already explained that day.
Resume a download
The /etc/default/rcS file
Submitted by ggarron on Thu, 05/15/2008 - 19:40.There is some behavior of your Linux Operating System which is easy to change, but not too common to know how.
The things you can change are:
- Frequency to erase /tmp/ directory
- Use UTC or local time
- How Verbose are the boot messages of your Linux
- If a disk error should be always repaired while booting automatically
There are more than those, but I will touch only those, for the rest, you can enter:
man /etc/default/rcS
Tip: Importing your /var/cache/apt/ files to apt-cacher database
Submitted by ggarron on Thu, 05/15/2008 - 14:46.Yesterday, I wrote about apt-cacher, and when you first install it, its database is empty, and of course the server where it is installed could have a lot of .deb files, in the /var/log/apt/archives/, so it would be great to use those packages in our new ATP proxy.
To do that we need one of the perl scripts that come with apt-cacher, and that are stored in:
/usr/share/apt-cacher
The right script for this task is: apt-cacher-import.pl , so run:
How to: Find the fastest apt mirror server
Submitted by ggarron on Wed, 05/14/2008 - 20:51.If you want to use the fastest mirror to download the .deb files you may need to upgrade or update your Debian machines, you have to remember that not always your nearest server is the fastest one, and that could be because not only the distance the server is from you but also the network congestion is a factor when talking about network speed.
For instance, your ISP may have a direct satellite connection to another country, and thus your nearest server should be in that country, to avoid you the hassle to get that info, Debian give you some tools, I will touch two of them here.
How to: Install a Debian/Ubuntu package (.deb) cache server - apt-cacher
Submitted by ggarron on Wed, 05/14/2008 - 14:36.If you have more than one PC using Debian or Ubuntu, you know that upgrading them makes most of the time download the same files more than once, and that is not good for your bandwidth.
I usually forward my requests to my Squid (in my office) and to my Personal proxy Polipo at home, it works, but apt-cacher may be a better approach as the way it decides if a file stays or is erased from the cache is more appropriate for .deb package than in Squid or Polipo, as they are optimized for web surfing.
Well, after that introduction, lets go to the interesting part of the post.
Great Linux Car race simulator "VDrift"
Submitted by ggarron on Tue, 05/13/2008 - 20:24.I like to play with simulators, and I have found a good car race simulator, that works great under my Debian, the game come in autopackage binary format, or at least that is the one I have downloaded.
Download your package from VDrift page, I got the full version for Linux, once you have the .package file make it executable and run it as root, If you have installed an autopackage software before you can run:
vnstat - Command Line Tool to check how much bandwidth you use
Submitted by ggarron on Tue, 05/13/2008 - 14:17.It is always useful to know how much bandwidth you are using, also to check if your provider is honoring the contract you signed with them.
At my office I have installed Cacti and as I have a layer 3 SNMP capable switch, I can graph the bandwidth that all my office's PCs uses, and also the main pipe to the Internet (My ADSL connection), but at home, I do not have such an expensive switch (and I do not need it), and my ADSL modem is not SNMP capable, so Cacti is not a solution, but with Linux Operating System there is always a solution, and the one for this kind of problem is vnstat.
Cut or trim mp3 files with Linux, mpgsplit and mp3cut
Submitted by ggarron on Mon, 05/12/2008 - 20:51.Some months ago I have posted an article showing how to use audacity to edit mp3 files with Linux, this time it is almost the same but we will use our Linux Operating system command line to do that.
We are going to see two different options:
1. mpgtx
To install this program under Debian
sudo aptitude install mpgtx
Now if you want to trim a mp3 file into 10 pieces just enter this command
mpgtx -10 input.mp3 -o output
Connect a Motorola cellular phone to Linux
Submitted by ggarron on Mon, 05/12/2008 - 19:49.I own a Motorola L6 phone, I have been trying to connect it to my Linux (Debian Lenny) to upload some .mp3 files to be used as ringtones.
I have found in my search Moto4Lin which is a software written using QT, and it works great!, well lets see how to install and use this program.
As I am running Debian it is really easy to install
sudo aptitude install moto4lin
The Debian menu system - How to create menus for TWM, OpenBox, FluxBox, etc
Submitted by ggarron on Sat, 05/10/2008 - 15:24.The Debian menu systems really saves you a lot of time, when you are trying to find a new installed software.
Yes you can run the applications from the command line, as I was doing these days on my Laptop with Fluxbox, but if you are using Debian or Ubuntu you can automatically create the menus using the Debian Menu System.
To install it (if you are using Debian might be installed)
sudo aptitude install menu
Xen Virtualization - Book review
Submitted by ggarron on Sat, 05/03/2008 - 14:22.Xen Virtualization Is a real good book for beginners to intermediate users looking for Xen documentation, it is written in an easy language, with examples which are easy to follow, and from which you can learn how Xen works, and also how to use it, but lets now go to the review.
Chapter 1: Introduction
Sync your documents with Linux, Windows and Ulteo
Submitted by ggarron on Tue, 04/29/2008 - 12:13.I have received an email from Ulteo yesterday, and they are good news, now using your Ulteo account, you can sync your documents between your office, your home, and any other PC (even a work with them at a public PC).
Yes I know you can also do this with Google, or other tools, but if you prefer Ulteo, which is a whole Linux desktop online, instead of only some applications, this is for you.
Because the use of Java, Ulteo Desktop is slower than other applications but still a good option.
Here is the email I got, check it yourself.
Hello!
Small tip, how to install startx command
Submitted by ggarron on Mon, 04/28/2008 - 14:44.Today, I was "playing" with the Linux configuration (as usually) and using tasksel on my Debian I remove the Desktop section, and installed it again, when I tried to use startx I just could not, there was no startx command.
After reading a while I found that I needed to install xinit package to have startx in my machine.
so:
sudo aptitude install xinit
Ubuntu 8.04 LTS to be released today
Submitted by ggarron on Thu, 04/24/2008 - 12:23.The replacement for Dapper Drake 6.06, is going to be released today, Ubuntu is one of the most popular Linux distributions, I has grown real fast ported from the also very popular Debian, is one of the most important candidates to be a replacement for Microsoft products, specially in the Desktop arena.
Using your Linux to help in Earth day
Submitted by ggarron on Mon, 04/21/2008 - 20:00.As some of you may know tomorrow April 22nd is the earth day, and if you are thinking in a way to contribute, you can do by splitting your PC into two, using Linux.
This way your children or spouse will not need an extra PC to work while you are using your PC.
I think that Linux philosophy has a lot to do with earth conservation, and ecology, as we think that software and knowledge should be free, also the nature should be free, free for anyone to enjoy it, but preserving it for future generations, and only for its own use and benefit.
Runlevels - Debian (Ubuntu) / Fedora (CentOS)
Submitted by ggarron on Mon, 04/21/2008 - 19:49.There are six different runlevels in Linux, there could be more than six, but for compatibility reasons six are the default.
I have used RedHat and Debian based Linux, more specifically Fedora and Ubuntu and Debian itself, I have noticed that there is a difference in the runlevels on this different Linux distributions.
Well but first let's define the runlevels:
Runlevels in Linux are seven and they are:
- 0 = halt
- 1 = single user
- 2 = CLI, multi-user, no net
- 3 = CLI, multi-user, networked
- 4 = open
- 5 = GUI, multi-user, networked
- 6 = reboot
cpufreqd - How to configure you cpu speed
Submitted by ggarron on Sun, 04/13/2008 - 06:21.cpufreqd is a Linux daemon, that lets you control the speed of your CPU(s), depending on some variables, or also be set manually, you can set it to act dynamically or manually, you can define a lot of profiles and rules, which will control your CPU speed, the variables could be the temperature of your CPU, the amount of charge in your battery if AC is connected or not.
First thing you need to do is to install the daemon, in Debian / Ubuntu
sudo aptitude install cpufreqd



