Linux Day 3


Well today I finally got down to productivity with Linux.  I completed one program in Java (the assigned one) and also one that was intended to demonstrate the concepts that we went over (polymorphism).  I still have to go to the hotmail website to mark my mail as read (or delete some of it).  On that note, I’m slowly migrating mail over to my gmail accounts. 

As for being solely on Linux, I have spent a total of about 6 hours on Windows machines since Sunday night.  3 hours was at the college, tutoring someone in Visual Basic.  The other three were in trying to solve a problem that I have with my UPS system.  On my desktop, I have a UPS system that has USB connectivity to the computer.  However, the one that I bought for my server doesn’t have this feature.  I’ve been trying to set up a configuration where my desktop will send the shutdown signal to the server when it goes onto battery power.  Unfortunately, the applications for the desktop’s UPS won’t allow that.  So, I’m going to check the addons for Windows Home Server to see if they support the UPS I currently have on my desktop.  If they do, I’m going to swap them out and have the server shut the desktops down.

Here are some commands that you will find useful if you are considering the switch to Linux.

tar xvzf filename  This will unpack compressed files (.tar, .tar.gz, .tar.bz2, .zip) and put the contents into a subdirectory.

./configure  This will prep the source code for installation and check for potential errors.  If any are encountered, configure will alert you to them, and not allow you to "make" the files.

make and make install  These are the two commands which will create the executable files from source code, and then install the application.  Note, that if you want to install to a folder other than your home, you will need to use sudo make install (or su on other systems).

sudo chmod 777 filename.ext  This command will change the permissions on the filename to allow for execution.  Typically when you download an executable file, it’s permissions are read only (-r–r–r–).  The "777" portion adds the write and execute to all three portions (owner, user, group).

sudo apt-cache search name  This command will search for an installation package and report any instance of it.  It’s useful when you know the package title, but not the version numbers or complete package name.  You may not have to use sudo, but it works that way.

sudo apt-get install name  This is the command to actually install a package from the repositories.  The repositories are the preferred method of installation, as the version of the packages are tested and certified for your distribution.

sudo apt-get -f install  This command is used when certain dependencies are not met.  You don’t specify anything after the install, and Linux will take care of the rest.  Then you can install the packages.  Typically this is used in conjunction with dpkg.

sudo dpkg -i filename.deb  This is the method of installing a .deb file that you’ve downloaded from a site other than the repositories.  If all of the required dependencies are met, it will install without a problem.  Otherwise, you will be prompted to use sudo apt-get -f install to fix the issues.  dpkg is also used for repairing corrupted installations and cleaning out unnecessary temporary files and packages.

In tomorrow’s post, I will dicuss moving from Outlook or Outlook Express/Windows Mail/Windows Live Mail to Evolution or KMail (and KOrganizer).

Have a great day:)
Patrick.

Leave a comment

Your email address will not be published. Required fields are marked *