The Linux Mint Blog: LMDE 201108RC

The Linux Mint Blog.

Yes I’m a few days late on this post but I wanted to establish the blog first. I am a LMDE user and have been for several months now. I first installed it to a laptop last January and it really performed well. Now I use it pretty much exclusively. The only times I veer from it are when I am testing another distro or using a flash drive.

 

LMDE offers everything I want in a Linux distribution. Ease of use coupled with the largest repositories of software anywhere and when you combine that with the Linux Mint team it is pretty hard to beat.

I personally have not had any unresolvable issues. The forums for Linux Mint are readily available and many other resources for Debian will apply too. If you have not tried Debian or Linux Mint this is a great time to try it out. Use a live CD or place it on a flash drive and boot into a very user friendly OS without harming or changing your data.

~Jraz

How To Use Rsync: A Simple Example

Rsync is one of those core programs you will find in almost every distribution of Linux. If it isn’t in there on the install, it can certainly be installed from the distribution’s repositories. In all seriousness entire books could be written about how to use rsync in many different ways. I am going to show a very simple example of how to use this terrific tool. If you are not familiar with rsync visit the Wiki page for a bit of overall history and examples or go to the main website here.

To get started open a terminal window and type man rsync . This will open the manual pages for rsync and is recommended reading to fully utilize this tool. For a quick start enter rsync –help or rsync -h . This will give you the short list, if I may call it that, of the available options and switches. In this example I am only going to use a few of these options. There are plenty to use and customizing a job with rsync can produce many different combinations and outcomes. That is what makes it so versatile and robust.

This is one of my small scripts that I run manually after I deal with or pay my favorite Uncle, the IRS. We have had an on going relationship for many years and for some reason he wants more of my money all the time. Anyway here is the example and then we will break it down:

rsync -vruhi –del –log-file=/home/johnny/logs/sync_log /home/johnny/IRS/ johnny@bigserver:~/private/finance/IRS

It starts of course with the command and is followed by the switches or options. The options I am using are:

-v verbose – I like to see what is happening on a manually run command. This may or may interest you but at least in the testing or building phase is very useful.

-r recursive – Notice first how you do not have to add the – before this option. I have them grouped together. This option tells rsync to follow the directory structure.

-u update – Tells rsync to only copy files that are newer, changed or not already in the destination folder. Keeps it simple and tidy not copying files more than needed.

-h human readable output – I bet you thought I meant help but with other options the lower case h becomes a different switch. By itself -h displays help as I mentioned above. This is mostly usable for reading the output on screen and in logging.

–del deletes files – This option should be used carefully and done with the option for testing first (-n or –dry-run). There are several options in this category and all will delete files based on certain criteria. This option I have chosen deletes files in the destination that no longer exists in the source.  Test first before including any of the deletion options since they cannot be undone.

-log-file a log – This is telling rsync to log the events and where to write the log.

/home/johnny/IRS – This is our source for rsync. This just happens to be a local folder but network locations work equally well.

johnny@bigserver – User account and server or computer for the destination. I should mention that at this point I am asked for a password to johnny’s user account on bigserver. There are plenty of ways to do this without this prompt but since I use it infrequently I have chosen to omit those types of options. See the man pages for more information on using passwords and keys.

~/private/finance/IRS – This is the destination folder. After the script or command is run, it will be a mirrored image of the original using the options I have given it.

So now you can see a very simple example of using rsync to copy a folder and its contents to a remote computer while logging the event. Remember this is a very simple example of rsync usage. With A few simple modifications this could be all you need to backup your entire /home directory. And if added to a cron job you could have it run automatically. I would like to hear about your experiences with rsync and how you use this for backing up folders and files.

~Jraz

 

Getting The Word Out

Community is one of the biggest draws for myself to Linux. I follow a blog, The Blog of Helios, which is about a project in the Austin Texas area. Their mission is to bring technology to those in need. Mainly households with children and teens in school. I have been following this project for about two years and it never ceases to amaze me the trials Ken and his small staff go through yet they continue on.

I personally am not in a position to help The Helios Project right now. I wish I were because I believe in what they are doing. But perhaps a few of my readers, friends and friends of friends can help. The word needs to go out to as many as possible to help this project meet the goals of bringing access to the Internet to these households. It is not enough to bring in a computer to a home without giving some access to the Internet. Society does not look at computers as merely number crunchers and word processors. If it isn’t connected to most people it isn’t useful.

If you can help monetarily that would be fantastic. If not keep spreading the word since somewhere someone can. One last thing to remember, this really doesn’t ever end. August is really just another chapter for the Helios Project.

 

~Jraz

Learning WordPress By Making Mistakes

New site is up and running and I could not be happier with it so far. Last night I awoke and decided to check in and maybe tinker with the site a bit before going back to sleep. Bad idea. I had somehow disable the Widget that had the log in link. Now I could not log in to tinker away. :(

Of course that meant it was priority one to fix and it must be done right then. I logged into the WP Codex forums but could not find the right answers. Google wasn’t much help either. My searches were producing answers but not like my issue. Searching is as only as good as the criteria you enter for the search and I think my lack of knowing the WordPress lingo may have hurt my efforts a bit.

So I tried looking a the code via my host’s Php admin tools. Lots of good that did and I’m glad I didn’t commit anything. Some things are better left untouched. I looked at code, opened files in Gedit, pretty blue and red etc., but it still meant nothing to me. So I gave up at about 3AM.

Still it gnawed around inside my brain not allowing me to sleep. About one hour of mulling it over when suddenly the aha moment came. I had remembered reading and seeing the wp-login.php file and it dawned on me to insert that after the web address.

Where’s a board to smack myself in the head when I need one! :) I fixed the mistakenly disabled widget and all was well again. So this will mark lesson number two about hosting one’s own blog and the trials that will accompany me along the way.

~Jraz

 

Welcome to Pensive Penguin

I have been very lazy when it came to really putting the effort into creating this site. For those who followed me from Techbits, I thank you. And for those who are newcomers to my efforts, a bit of history is in order. I started blogging on Blogger about two and a half years ago on Techbits. In the beginning the blog was about Windows and Linux but it soon was more Linux than Windows. So I split them and devoted Techbits to Linux and started Working With Windows. I somehow managed to get some traffic to both sites and they were on the upswing stats wise.

Early in 2010 Blogger decided via an algorithm, that I was publishing spam on Working With Windows. Blogger shut it down and my Gmail account without warning. At first I was alarmed and thought my site had been attacked. It soon became apparent that Blogger was not interested in restoring my site and there was not an attack. I answered the questions for restoring the site and the automated response came back as; ‘Since you have responded to the query, we will have someone on our staff look at your site and determine if it is a spam site.’ (I paraphrased from memory.) That was all I ever heard from them and I clicked to restore Working With Windows several times. Nothing. I can only assume it was because I talked about Malware frequently and how to get rid of it. I lost everything I had ever posted. I was not given any warning nor was I allowed to retrieve the blog. I was very upset at Blogger for doing this and I decided to quit both blogs. See the last posts on Techbits for more details and a more emotionally charged post if you care to know more.

In April of that year I purchased the PensivePenguin.com address and started again. But as you can see I didn’t go very far. At first it was just a matter of having lost my flame and later it was dissatisfaction of the current templates 1and1 offered. My lack of skill at understanding WordPress did not help either. When I was finally ready to blog again, I could not figure out how to update WordPress and insert different templates from the outside. The documentation from my host was clear on all points except one, resetting  my site’s start up folder. It remained grayed out and inaccessible until last night.

When I signed up with 1and1, I setup their template for a blog. That of course setup the start up folder. What I found last night was that to change the start up folder, their documentation forgets to mention, that if you want to replace it then the site must be deleted. Seemed simple enough after I took the chance and deleted the site following a very serious warning that popped up. But I did and I made the changes and now here we are in the new Pensive Penguin site. :)

The site will be in a state of flux for a while but I plan to post at least once a week. I decided to stay with WordPress’s default template so I could learn a bit more about it as I customize the site. So once again welcome to Pensive Penguin. A site that will focus on the workings of Linux as seen from my eyes and experience. I hope you enjoy and I await to hear your voices in the comments.

~Jraz