Monday, October 05, 2009

How to know my own PID in a bash shellscript

I was sure there's a way to know easily what is the PID in a bash shellscript, without doing anything complicated -such a ps wwaux | grep something- and then I've found this quick ref. about less easily guessed commands and codes in Unix shell

By the way, inside a shellscript, the PID of that shellscript is stored in the $$ environment variable, for instance, you may type this on your terminal:
echo "My pid is $$"
and you'll get something like:
My pid is 14467

Labels: ,

Friday, October 02, 2009

Delete a line with sed

I wrote about how append a new line using sed. Now let me copy here how to erase or delete a line using sed if that line has a pattern.

If you want to erase, for instance a line that starts with # character, you should use something like:
sed -e '/^#/d'

If your text comes from a command you may use a pipe by doing something like:
cat /etc/services | sed -e '/^#/d'
or if you want to use on a certain file:
sed -e '/^#/d' fileName.ext
Hope it helps someone...

Labels: ,

Tuesday, August 25, 2009

Happy birthday Linux

I've been noticed by Microsiervos and August 26 could be took as the Linux birthday.

Sure you know the history but you can also remenber it by having a look to the original newsgroup Linus Torvalds message.

This is a piece of recent IT history, and we're old enough to be there...


Wednesday, July 15, 2009

What nobody says when they choose MS

London Stock Exchange adopted a MS software solution, it was an application with strong demand for real time execution. It was announced as usual, hardware company announced it, and for sure MS takes it as a case of study.

What nobody likes to asume is a bad decision. On IT environments a bad decision may had a deep impact on business processes. You have a look by googling what has happened with London Stock Exchange or you may go straight to the point by reading why London Stock Exchange abandon Microsoft and switch to Linux.

One of my mottos is: we're not the first ones in having such a problem, sure we aren't and then I encourage my colleagues to see what somebody has done before to solve a similar problem. By the way if everybody jumps from the window it doesn't mean we've to do it.

If you're interested about how New York Stock Exchange deals with IT to keep their systems running you gonna know they uses Linux...

So... what else could I say... Up to you.


Thursday, March 05, 2009

Ultra notebook with Linux

You're not trendy if haven't a ultra-notebook or you don't know what is it. Well, if you doesn't know what it is, don't worry; it's a evolution from the original OLPC project that has evolved 'till becomes the latest gadget you may buy.

There's something very good in the idea; most of people doesn't need an expensive pc to get connected, browse the Internet and use the minimal amount of applications we all really need (browser, mail, chat). A minimal unexpensive and portable laptop may cover all that needs. I agree with the idea.

Differents hardware vendors offers their solutions, but in the beginning they all come with Windoes XP. It really was a breathe for Windows XP and a damnation for Vista. There were a player yet to come; Linux.

Fedora has done some stuff for this, but it surprises me that a little work from Argentina has achieve a success: Tuquito in Chile (stand for Tucuman, their original city). This school has forget what virus and lack of memory means.

It's easy to find detailed benchmarks about how a distro runs on that hardware, I've already found pages about how others distros runs in that ultra notebooks, but what I've found for the very first time is a normal story about non technical users using it, in a real situation, and look: their are kids in a school. It sounds great.


Sunday, January 18, 2009

I've got a Mac

Finally I've got a Mac... yes I know it is not free software since it comes with MacOS but (remember there's allways a but) it offers me the chance to test other quite good OS and also install on it Fedora.

I keep you updated...

Labels: ,

Wednesday, December 03, 2008

Gnome little sucess

A very good friend of mine has gave a chance to Gnome... He always was using KDE and he always thought that Gnome sucks, because it was too simple, everything too tiny, poor look...

But a sensible person may change their mind and so had happened. Santi -a.k.a NoP- now is surprised with Gnome. Most important thing is that Santi is a friend but it has to be told that he also is a very well known Linux guru among Linux spanish newsgroups. He also mantains a very high level page about Spectrum (really friky!) named Speccy.

No prejudice leave us live a little more free, it doesn't?


Saturday, November 15, 2008

Media center for Linux

I've acquired a little hardware box in order to be my next media center. For sure it's going to be with Linux so I've look around to see what's most mature software.
Almost everybody talks about this software:

  • Xmbc: and I've seen running on a older Xbox ... it's simply amazing how fast it is: wow, but get mad if it doesn't fit your needs
  • Entertainer: a very Gnome solution, it looks fine and it is a full Linux plus this soft, but as far as I look for there's no Fedora package for it and I fear it does not support every single codec as mplayer does it
  • Elisa: by the moment one of my favourites since it has its own package for Fedora and its website and the whole project looks serious. It's a plus being a package over my distro and the only but is that it has no TV view posibility on the other hand it has Flickr and Youtube plugins. Elisa has also good documentation.
  • MythTV: it was the first recommended by a colleague but it has no support for directories -everything has to be on a single directory and also I've read it is not a good option for absolute beginners, and my media center has to be used by everybody at home.

I've try to install a simple Fedora on my hardware unsuccessfully, it seems that SATA support requires to change some option in the bios and besides I terrible fail trying to install a normal Fedora on a 64 bits hardware. So a little bit disappointed with myself I decided to wait 'till today 24 of November since it's Fedora 10 launching... it looks nice

I'm going to wait until the weekend and have a try on Fedora 10 + Elisa + Sata emulation on bios... too many things on the same time. I hope all flows smoothly.

Labels: ,

Sunday, October 05, 2008

What packages do I have installed in Fedora?

There're easy things to do that I forget how to do it... For instance, I know that I may get a whole package list if I type: rpm -qa on my console screen. I know that I may get information about packages by typing
rpm -qi package_name
or by typing
yum info package_name

Since I'm experiencing some issues with my Eclipse installation I was comparing my version with recommended version from UOC, so I wanna know what software do I have installed that starts with eclipse* pattern... how can we do it? My old-fashioned way was to type
rpm -qa | grep eclipse
but there's a more cool way, after a read a little bit from your manual page you may type something like
yum list installed eclipse*
So don't forget to read man pages buddys.

Labels: ,

Sunday, September 28, 2008

Chrome means javascript

Yes, I know it's a little bit excessive 'cause there're more things inside Chrome browser, but just in order to catch your attention it's a good title.

Recently, I've seen in one of my feeds a graph showing language programs on the rise or more used right now. Two things to highlight:

  1. php is loosing percent of use: It just makes me think... up to you, easy language, fast & durty, but now, if you wanna use it for a medium up to big project you can't go out of a framework, so may it happens that programmers prefers to customize apps or cms instead of wrote out all that code?
  2. javascript is going up and so it keeps: there's no flash or silerlight catching up javascript, again a short tought about it. There's no browser without javascript support, no plugins needed so just embed your code and that's all. Finally, Google uses browsers as a universal client for a new server-client arquitecture, where they wrote in javascript for almost every browser and they uses python or whatever for server

So, make javascript faster it's a strategy for Google's TWD. There's only a leak, Linux and Mac versions :-)

Labels: ,

Wednesday, September 10, 2008

Rawstudio opens orf from Olympus E-510

Yes it does it

I've been looking for a program that lets me open .orf files from my Olympus E-510 and since I use Fedora I rule out from official software from Olympus. I keep on using their official software for firmware updates, but just for it.

So Rawstudio definitely opens .orf (which is the name for raw's in Olympus cameras) but it goes better if I right click on the file and then I choose rawstudio. You may have check for your camera compatibility at rawstudio compatibility list

I can manipulate the file and if broke something I may reset each value to their original setting.

I also know there's RawTherapee and I wanna try it out too. RawTherapee offers a users guide in spanish... it sounds great for an absolute beginner in raw processing.

Labels: ,

Thursday, July 31, 2008

About studying computing and salary

I've talk with a nice guy who's working in a call center. He's working and studying Computing Engineering at the same time... and he's studying almost the same speciality that I'm studying.

It makes think about why to keep on studying. If that nice guy ends his degree right now he would came to the IT market and if he would be hired as a IT degree he will earns as much as he earns now as a call center operator. Sad.

Don't get confuse. I firmly support the study. But it's a pity that someone with a high degree has to start from a so unfair salary. On the other hand, when he takes experience enough and improve his salary, unfortunately, he still paid under his preparation or skills...
There's no Fog Creek Software or Google company alike in Spain as far as I know...

So, what's the sense in studying a degree in computing? You may is pointless if you're thinking in achieve a good salary. But there're people who studied 'cause they like it. Is it a vocational job so? I don't think so. And if someone starts as a vocational it may end up in some different positions, burned out after a couple of years.
In my opinion you has few options:

  • Being vocational worker while you can
  • Start up your own bussines
  • Work with FOSS and get paid for it


Wednesday, July 30, 2008

Fedora problems with dvd-slideshow and how to solve them

I've just returned from our holidays in Florence... nice city by the way, very nice in deep.

Since I've carried my DSLR Olympus E-510 with me I've done several photos, now I'm involved in the post production job

I wanna some photo slideshow that keeps amused my family on the TV so I search some software for Linux and I found that (in my opinion) most mature and proper software seems to be dvd-slideshow and it has just one but; there's no GUI for more complicated command line options, it really doesn't matters to me but may to you.

Installation and dependecy problems resolutions are not complicated in Fedora. The only thing I've to take care is to specify -p and -mp2 options in command line. The first one, -p is for generate PAL video output and the second one -mp2 is for generate mp2 audio since it crashes if try to let it with mp3 by default although I got the propers codecs installed.

Labels: ,

Wednesday, June 11, 2008

HAL problem dissapears and NetworkManager is ok

So in short the title explains everything. Now, I must admit I don't like the idea of using NetworkManager instead of command line. Command line makes me feel with more control and lets me learn more. Nowadays this simple applet is simple and useful, shows me wifi networks, it let me choose what network I wanna use... so I surrender to it

Meanwhile HAL problems has dissapears probably 'cause there's no conflict in having exclusivity access to network devices or so I think.

I have reduce the stack of daemons running at boot time by switching off bluetooth, rpc related daemons and ip6tables. I love chkconfig command line.

Soon I'll push off cube-beryl related software since my graphich card (an old fashioned Svage S3 my laptop is from 2002 and I'm still surprise for that) doesn't support this short of effects.


Tuesday, June 03, 2008

Fedora 9 just installed

As I wrote here a couple of weeks ago I've installed Fedora 9 at my laptop.

I've used for the very first time a different method. My laptop (buyed 04/11/2002) is unable to boot from a DVD, I allways have been using the set of CDs but now I downloaded a ISO that allows you to install from the network. This is not new for Debian fans.

So if you look for Fedora-9-i386-netinst.iso you'll find it has only 144Mb, for sure you're gonna need a quite good internet conection. It tooks me around 3 hours to finish the whole process, including type of installation (Workstation, development or webserver), packages selection and download and so on.

Once the boring part was finished then comes the amusing process... as long as I keep my personal home filesystem untouched this part is easier.

By now I've done a couple of customizations quite usual among Fedora's users:

  • Livna repos: download livna rpm...
    1. got to
    2. pick up and install it
    3. type yum update and install mplayer (I used for see movies, many people prefers vlc software, both of them are a good option) by typing yum install mplaer
    4. do the same for ffmpeg (I used it for convert video files); yum install ffmpeg
  • Flash plugin for Firefox: download flash-plugin- from Adobe's site and install typing rpm -i flash-plugin-
  • Solve some problems with HAL daemon... Pablo has told me that hal doesn't get very well if you use both network and Network-Managed daemons so he tolds me to use the second one or at least one of them, but not both at the same time... I keep myself on tune it accurately

There're more thong to be told but that's enough for now. Soon a second part, 'till then have a look to it keeps a lot of tricks that you were thinking of.

Labels: ,

Monday, April 28, 2008


This days I'm studying OOP at the UOC. We need to draw UML diagrams, this University feels confortable with Free Software and what do you think they recomend for that task? They recomend us ArgoUML which is a nice tool.

ArgoUML has been wrote in Java and one of the most interesting things is that you may get your code in different languages, java, php ... (don't remember if more languages are supported), it supports UML standard diagrams, and finally it runs quite well on my 512Mb RAM laptop.

Labels: ,

Saturday, April 26, 2008

Red Hat Fan

I've been using Red Hat distributions since Red Hat 6.2 (more or less) and from then upgrading up to Fedora, passing through all Fedora's...

From different reasons I experienced a quite important problem with Fedora 8 and don't have any time to solve it. I decide give a chance to Debian (pure stable Debian, not Ubuntu or so) 'cause is a very interesting option, now is easy to install and with a lot of advantages (regular updates, security, zillions of packages...)

And I have to say that on my laptop (an old one) it runs faster than Fedora. I know it was going to be that way since Debian compile packages with less dependencies and that make them lighter in terms of memory consuming. But also everything is so different to almost any other distro that it's really annoying. I deeply respect Debian, nothing would be the same without that distro, but I rather prefer using Fedora/Red Hat/CentOS (great choice CentOS it isnt?) for three main reasons:

  • I'm used to them
  • they are more familiar in enterprise environments
  • they're too Linux and FLOSS

But... you know, there's always a but I have to admit that I'm a Red Hat Fan. So as soon as I finish with the subject (Object Oriented Programming) I'm studying at UOC I'll return to Fedora. It would exciting.

Pbenavent is a Red Hat Fan


Sunday, March 30, 2008

Java sucks? Maybe, but less

I rembember that I've wrote opinions such as Java Sucks and so on. That was my starting point for a long time. Quique, who is a nice person and also a Java coder (yes, both possibilities are compatible) told me that my opinion was forge in suffering very bad code in Java. Now I'm force to write in Java for Objected Orientation Programming subject at my University on-line degree. So, as I was suspecting from a long time, Quique was right. It's very easy write in Java (nice) and it's really a powerfull combination JDK + Eclipse. The truth is that there're very bad programmers all around, or probably, unreasonable customers demanding aplication modifcations constantly that modifies the design and the performance of the whole thing. I'm also still believing that programmers job is absolutely devalued and underpaid here in Spain.

Labels: ,

Monday, February 25, 2008

aTunes for your iPod

I was writting few days ago about alternatives for iTunes software. Nothing against Apple or any other company, just a pro Linux position: I prefer FLOSS software and I prefer run it on GNU/Linux. That's all.

So thanks to Sourceforge mail-list I've found iTunes, I don't find it in my former research so have a look on it 'cause it for three main reasons:

  1. multi-platform since it is written in Java (requires java 6, uses swing for interfaces, if you wanna collaborate to the project they told us they uses Eclipse, and if you may have a look at the sources, you know, free software is like that)
  2. it plays mp4 files, among others, in fact, they have choose the easy way, they relay on software installed on your system
  3. user interface its very iTunes alike so faster learning curve

Last but not least, they got releases since last year and those releases are delivered on regular basis. That releases rhythm and the fact they have joined some other audio player projects makes me perceive aTunes as an interesant software to consider.
Juanjo, I hope this would help you!


Thursday, February 21, 2008

What iPod manager choose for Linux?

This days I'm planning to use free software to manage my iPod instead of iTunes. So, which application should I choose?

Before choose one of them let's rebember what I said before; if I may find the same software across different distributions or even the same software across Linux and MS, this is a clear advantage for me.

I've found this choices:

  • gtkPod
    • fairly mature software
    • no new libraries needed, as long as it's a gnome app
  • amarok
    • it's a kde software, and I prefer not to run more libraries than gtk in order to keep my so limited memory free
    • it's a mature solution
  • Banshee
    • developed with mono, so it requires an extra runtime
    • plays AAC formats but I don't know they manage the whole license stuff
    • in their page does not appear nothing related with the iPod's
  • Yamipod
    • it seems to be the most iTunes similar solution
    • non free software
    • quite odd instalation
    • screenshots and features looks fine
  • Rhythmbox:
    • may require added software for tag edition
    • it seems no so mature software, very early versions at the moment

Does any of them support m4p format?... Banshee does it, and Yamipod seems to be able to do it, but Yamipod is not free software.

Everytime I've tested some software with my iPod, iTunes does not recognized later I have to attached again to my iTunes... nasty thing. Best solution would be if Apple relases a Linux version. You may sign a petition to port iTunes to Linux


Thursday, February 14, 2008

From Fedora to Debian

I upgraded from Fedora 7 to Fedora 8 without problems... 'till the day mplayer doesn't run anymore. A very competent guy from Red Hat who's working at our office told me to use livna repos ... I told him about how upset I feel about livna repos vs. freshrpms repos, they both does not run very well together

I believe him and I try livna repos... then begins the show: hal-daemons stops, autorun needs hal-daemon... and don't want to remember that hell. I know what to do: to get disable livna, also freshrpms, uninstall and reinstall hal-daemon (just in case it helps) and so on,...

Since I have been a Red Hat devoted users since Red Hat 7.2 (passing through all Red Hats 8.0, 9s, and Fedoras) I thought some other distro deserves a chance... so I keep my home and I install Debian. I also keep a server running CentOS, if you don't know it, try it.
I'll post more in a not too distant future but my first impression is that everything is clean, well organized, a little bit more fast, and quite different, I mean, there's no /etc/sysconfig/network-scripts/ or apache configuration file is under /etc/apache2/... and also their start up script is different but, time to learn, which is always good to keep us alive

Labels: ,

Tuesday, November 27, 2007

Yet with up2date in Fedora, WTF!

At ending of October I was suffering this error when I try to make yum update and I answer yes in order to install all that yum purposes to me:

Running rpm_check_debug ERROR with rpm_check_debug vs depsolve: Package up2date needs python(abi) = 2.4, this is not available. Package rhnlib needs python(abi) = 2.4, this is not available. Complete!

It has been easy at the end... as you may see, that messages shows that my Fedora has yet installed a up2date package. Since I really don't use at all I took it out by typing: yum erase up2date and so on...
But the questions are two:

  1. Why are there an up2date package in Fedora? a legacy question comming fron the ancient RedHat 8 and 9 ages?
  2. How many others useless packages do I have installed?

So I was thinking all around this stuff I two mini-projects come to my mind:

  • Writte a couple of scripts that retrieves what packages do I have ordered by use: I have no idea if there's some method to retrieve package use frequency, but as I've just say it's just an idea, let's see if it possible or it isn't...
  • Writte a couple of scripts that retrieves for every single package what other packages depends on it and viceversa, by the way, I've imagine the reports writed under some xml strict DTD so may open it in a browser or read from some other script or import it in a database

Labels: ,

Wednesday, September 12, 2007

2007 Bossie Awards

Bossie Awards are granted to the best Open Source Software for the enterprise, keep attention on that man!: for the enterprise.

Via Slashdot I've arrived to the list where appear 2007 Bossie Awards, once you're there you choose a category. I've had a look on Best of open source in platforms and middleware and there is my dear CentOS.

Most interesting thing is that it has been choose instead of RHEL but they specified that is exactly the same, even they say:
That means you can install applications for RHEL on a CentOS server without any incompatibilities, and all RHEL updates are applicable to CentOS as well. Obviously, no support contracts are available for CentOS, but that?s the draw for many Linux veterans ? the familiar Red Hat distribution, including updates, without the onus of having to purchase a support contract that is never used

The funny part of the story is a comment on slashdot, somebody says:
Interesting that CentOS won for server OS. Shouldn't that go to RHEL?
...and somebody elses anwser: Actually, RHEL won and Centos just made a copy of the award and changed its name.

By the way, Ubuntu wons at desktop category, actually I got a Ubuntu LiveCD to show what Linux is at work, and everytime I can I run it, they flip when they see cube desktop ;-)


Thursday, August 23, 2007

Three apps for Sysadmins

Via an article about Flickr Architecture I discover some apps quite interesting:

  • System Imager: automates Linux installs, software distribution, and production deployment
  • Ganglia: scalable distributed monitoring system for high-performance computing systems such as clusters and Grids.
  • Subcon: allows you to store your essential system configuration files in a subversion repository and easily deploy different configurations to machines in a cluster.

I'll comment each one on next post ... by now, I'm thinking about my lack of practise in sysadmin stuff this days grrrr!


Thursday, August 16, 2007

Perl, every where

This days I'm writting a perl script to verify a 25 port is available on a particular machine. I've writte two different versions:

  1. first one using Use IO::Socket: hard way, dealing with carriage returns, and line-feeds, specially if you're using qmail, and my version was unable to connect with qmail or exchange transparently...
  2. second one using Use Net::SMTP: easy, smoothly way, no problems at all and able to connect both servers (qmail and exchange) using the same script.

I'll put that script at my never-starting project ...

Most interesting thing is that I've talking with a MS Admin about using perl also in Microsoft machines. I hope it happens.

Labels: ,

Monday, June 11, 2007

Squid with Active Directory or NTLM

I've never do that, but have a look to sample squid config file to authenticate with Active Directory ... the main idea it's to do the same as we do before with Squid with OpenLdap. If you're using Active Directory instead of a true ldap server have a look on that.

Note: This entry has been in the draft for too long ... I should writte more often.

Labels: , ,

Squid with ldap

I was writting about Squid and I arrive to a sample config file for using squid with OpenLdap. I really don't know if you're using squid ... probably you should do it. And I don't know if you're using ldap ... sure you've to. If you combine squid with ldap it allows you control who is browsing the web or who doesn't it and the main thing is who 'cause squid relies on IP authorization method.

The problem: your method is not useful for me, you just check if the user is a valid user, your method doesn't let us separate all users betwen authorized and non authorized.
The solution: you just need to copy authorized users inside a different OU in your ldap server. If you don't know how to do it look for a ldap administrator ... like me :-)

Labels: , ,

Save bandwith with squid in five minutes

I received the Redhat Magazine in my inbox, recently I've read an article about how to start up a squid in five minutes.

Since I know good it runs I must recommend you give squid a chance. If you have a company -little, middle or big company- it would save you quite bandwith. If you're a home user but your network has more than just one computer it will save you too bandwith.

Saving bandwith it's very important thing:

  1. user time experience
  2. you just download from the network what has changed and let squid to do the rest of the job

By the way, squid has changed their website. Now it's a little bit more easy to find what you're looking for. For instance: squid configuration examples, or general squid documentation, or The General Squid Guide ...

Labels: , ,

Sunday, June 03, 2007

Easy to help Fedora 7

No news about Fedora Project: there's a new version, they switched from Fedora Core to Fedora (since there's no separation between a core and other repositories) and also there're more and more exciting news:

but what I think its really useful for all of you it's to use smolt.

If you wanna help free software easily and you're running Fedora and you're a non tech profile then you can do this:

  1. become root on you machine and type "yum install smolt"
  2. type "smoltSendProfile"
easy, isn't it?

This instrucions were copied from Fedora announce list about Fedora Hardware Profiler and by doing this you're sending an anonymous email to enrich the Smolt Project Result.

Labels: ,

Tuesday, March 13, 2007

Learning wifi with Fedora Core 6

I've to confess I feel myself a little bit older for some stuff ... but curiosity has been a strong force inside me.

Since I bought my brand new wrt54g-l for SoHo use I'm testing a couple of wi-fi cards.

A lot of people has wi-fi cards that they don't use. Nowadays laptops has wi-fi inside them so it's easy to find wi-fi cards that had fall into disuse. There's a great chance for me to experiment with them without expend a buck.

I've tryed out an atheros wi-fi (thank you Nacho) and now I'm testing a U.S. Robotics. The U.S.Robotics belongs to Pablo who is helping me further than letting me his card, he has quite deep wi-fi knowledge (and also he's a real Red Hat BOFH).

The atheros card is fairly well recognised by Fedora Core 6, you just need to insert into you pcmcia slot and type lspci then it appears. I've let it go by now 'cause even you cand find atheros wi-fi driver my first attempt shows that as far as I know a driver compilation was required for the atheros card.

I'm too lazy to compile it, keep myself worried about when a new dirvers appears, and re-compile it if needed. I want an easy to keep up to date driver, and easy to install wifi card 'cause I deeply believe Linux is mature for that I just have to search for it.

As long as Pablo is a wifi fan (and a hardware trasher) he offers me to test their U.S. Robotics. Well here I finish 'cause I'm on the task right now. By now, is a slightly different, forget lspci command. You put the card into your laptop slot and type pccard ident, Fedora shows something like that:

Socket 0:
  product info: "U.S. Robotics", "IEEE 802.11b PC-CARD", "Version 01.02", ""
  manfid: 0x0156, 0x0002
  function: 6 (network)

Here I stop. Next comming posts will talk about my succes or failure with U.S. Robotics. While I was browsing looking for some info about all that stuff I've found a pdf quite long in my opinion about wifi cards and how to identify them (look at point 6.5) and that pdf comes from a HP guy! nice stuff.

Labels: ,

Friday, March 09, 2007

Faillog in Fedora

First of all, this is just my own experience from an Red Hat magazine named How do I use the faillog program to track failed login attempts?

Let's go:

  1. Open the /etc/pam.d/system-auth file for editing.
  2. Add the following lines:
    auth required no_magic_root account required deny=2 no_magic_root
  3. Save the file and exit.
  4. Test the configuration by attempting to login as a root, but using a wrong password.
  5. Here're my 5 cents: type this: (my output appears in spanish)
    [root@soseck ~]$ faillog -u root User Fails Máx Last Active root 1 0 03/01/07 07:40:02 +0100 pts/0
  6. Keep in mind that if your're using the authconfig tool your changes at /etc/pam.d/system-auth will be lossed next time authconfig runs.

More from my own: as a root you should use system-config-suthentication (by typing from a console, for instance) if you want to have a look on how yor system is configured. I recommend you have a look on faillog manual page. It comes with very useful parameters that makes me feel I 'll need a next post to talk about it, such a lock-time that lock an account during a number of seconds after a failed login.

Labels: ,

Wednesday, February 28, 2007

Shrek 2 and Red Hat

I've been looking over Red Hat Magazine, I've found a non technical article about Geek movies that should be on you queue (by the way here we got something similar with Top 10:las mejores películas geek) and reading some comments -'cause I feel that there're some importants absences, I've follow a link to Linux behind the magic of shrek 2 where it's reported that Red Hat Linux was used as a main platform to develop the film.

Nice, but not new, happen to ILM where started with SGI but they move to Linux (I really don't remenber which particular platform they choosed). If you need a sample on using Linux here you got once more.


Friday, February 09, 2007

How to join several pdf's files in just one

Thanks to Pablo Iranzo for send me that line:
gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf $* it is usefull to join several pdf's files in just one.

Imagine you download the book Linux Kernel in a Nutshell (which is a good idea if you wanna learn things about Linux kernel ). That book is free offered in multiple pdf's files, but you want to send it straight to the printer in just one step and without blank pages, you'd better got a single pdf file.


Thursday, June 15, 2006

Screen: mini, mini howto

As long as Santiago Romero tolds me screen was useful I know it must be true. Finally I'm testing it, here're a few tips:

  • type screen to start up the program; nothing spectacular will happend
  • type Control+a+c to create a new terminal
  • type Control+a+p to go to previous terminal
  • type Control+a+n to go to next terminal

Finally, let's assume that you've lost your connection -no matter why-, later, you log-in again, if you were using screen, jsut type: screen -D -R and voilà! you will recover your former session as it was.

If you read spanish it would help you this Tutorial de screen en español