Archive for the ‘UNIX’ Category

Linux From Scratch

September 20, 2012 Leave a comment

I’ve been working with some new students on learning *NIX. To facilitate this I’m having each of them create a Linux From Scratch build. At the same time I plan to create my own LFS build (I just realized its been a decade since I’ve last done this). As this progresses I’ll post more here to help people with this process in areas they may experience problems.

Categories: UNIX Tags: , ,

Novell finally sold

November 22, 2010 Leave a comment

Today Novell announced it had finally found a final buyer. Attachmate will buy the company for $6.10 a share, value at about $2.2 billion. Novell has been looking for a buyer for some time, so this is no surprise. Attachmate will split Novel into two business units, Novell and SUSE.

The interesting part is Microsoft appears to be buying $450 million worth of intellectual property as part of the deal. I say appears because it is actually going to CPTN Holdings LLC, which is a consortium of technology companies organized by Microsoft Corporation.

Novel and Microsoft have a long history of lawsuits, especially intellectual property related. Theoretically this $450 million dollar purchase is to end this tradition.

I will be keeping an eye on the IP acquisition to see how that turns out. But as for the purchase of Novell.. Does it really matter??  I’m almost interested in what happens to SUSE, but have no opinion on Novell itself.

Categories: UNIX Tags: , ,

Setup Ricoh Printer in AIX

Previously I had posted the steps for installing Ricoh print drivers in AIX. Now I will list the steps I use to actually setup the RICOH printers in AIX.

This uses an MP 171 as an example. This document assumes the driver is already installed and you have the rights to do this.

  1. Type “smit” at the command line on the AIX box and hit ENTER
  2. Go to ‘Print Spooling’ and hit ENTER
  3. Go to ‘AIX Print Spooling’ and hit ENTER
  4. Go to ‘Add a Print Queue’ and hit ENTER
  5. Highlight ‘remote’ and hit ENTER
  6. Highlight ‘Local filtering before sending to print server’ and hit ENTER
  7. Highlight ‘RICOH’ and hit ENTER
  8. Highlight the printer type in question and hit ENTER
    1. In this case I am installing an MP 171
    2. If the printer is not listed you must install the printer driver then come back to this procedure.
  9. Enter the following information for the print queue:
    1. PCL name: DNS name you gave the printer
    2. Hostname: DNS name you gave the printer
    3. Queue name: lp
    4. Hit ENTER
  10. After successfully adding the printer you should get a good confirmation.
  11. Hit F3 2 times to the AIX Print Spooling menu
  12. Choose “Change / Show Print Queue Characteristics”
  13. Put the queue name in the blank and hit ENTER
  14. Highlight ‘Default Print Job Attributes’ and hit ENTER
  15. Change the cpi and portrait settings as needed.
Categories: AIX, UNIX Tags: , ,

Install Ricoh Driver on AIX Server

June 8, 2010 5 comments

Installing print drivers for Ricoh devices in an AIX environment is a breeze. Ricoh has provided drivers that can be managed through SMIT. If the SMIT drivers do not work you can use a different method that is included with the drivers README. So far I have used the following steps to install print drivers for the Ricoh models MPC5000, MPC3300 and MP171.

  1. Download the driver
    1. Go to the RICOH USA Software Download website
    2. Down at the very bottom of the page  there is a section called “Other available environments”. Click on UNIX.
    3. Insure the printer model is in the supported list.
    4. Click on “Go to Download”
    5. Fill out the registration page
    6. Download the driver for the appropriate printer.
    7. Install the driver
      1. On the AIX box copy the file to /opt
      2. Install the tar file with the command
        tar –xvf filename.tar
      3. The driver will install in /opt/RICOH
      4. Go into /opt/RICOH
      5. Run the following command:
      6. Hit spacebar to go through the EULA
      7. Type Y and hit enter to accept the EULA
      8. Type Y and hit enter to choose SMIT
      9. The driver is now installed.
      10. You can now setup the printer in SMIT as you would other printers.
Categories: AIX, UNIX Tags: , ,

PDF sent from MUTT not seen as attachment in webmail

March 11, 2010 4 comments

Recently I had a report from a user that PDF’s sent from MUTT were not visible from the webmail used by their recipient. I thought this was odd because the very reason I changed from mailx to MUTT was so I could use MIME instead of UUENCODE, thus insure all clients could read attachments.

I verified some of the common webmail clients could receiv a PDF correctly: Hotmail, Yahoo Mail, GMail. All of the before mentioned services worked fine. It was then I was able to get the recipients email address, it was a Charter account. This is not the first time I’ve had problems with Charter receiving email. I’m not sure what Charter users for its webmail, but it seems to be worse bit of code I’ve ever encountered for email usage.

Charter accounts are able to view PDF’s sent from Outlook and other clients. What I found is that MUTT sends all emails with the following set in the header:

Content-Disposition: inline

With further testing I found that no matter what is attached to the email Charter will interpret the whole email as one long text file. The content disposition is not user editable in MUTT, and has been confirmed in their bug tracker as a new enhancement.

There is a patch someone created to fix this (for PGP, but works for this as well). However it looks like the MUTT project group is unlikely to change the default behavior because according to the RFC the client software should be able to detect attachments correctly no matter what (this is very over-simplified, read the RFC if you want a longer explanation).

My solution in this case to ignore the problem. With only one recipient being affected it did not warrant time/resources to find a solution. After knowing about the problem we were able to get the customer use a client instead of webmail.

Categories: UNIX

Set the display name in Mutt

March 11, 2010 3 comments

A while back I posted instructions on how to use MUTT to send email attachments and specify from address. This is an addition to that post.

The previous instructions work good. The only problem I have run into is the “real” or “personal” name of the sender.  One of my users noticed that emails sent out would show their username in the recipients mail client. To fix this I had to set another variable: realname.

Here is an example of the original code I used:

mutt -e ’set’ -s ’subject’ -a file.pdf < body.txt

Here is an example of the new code including the set realname:

mutt -e ’set realname=”Test User”’ -s ’subject’ -a file.pdf < body.txt

As you can see I put the variable after the set comand just like the from variable. The quotes are only neccesary if there is a space in the realname. Here is how the from field shows in a mail client now (Outlook 2007 in this case):

Test User []

The first part of this is what was set using the new code. If this is not specified MUTT will populate the real name from the GCOS field in /etc/passwd.

Chapter 6 of the MUTT documentation has greater detail for command line options.

Categories: UNIX

Allow Windows Vista and Windows7 to write to a SAMBA share

February 11, 2010 Leave a comment

Recently I was having a lot of problems getting Samba to work on an AIX6.1 box. I used the install from the AIX Expansion Pack to be sure I was using an IBM approved/tested version. I could see the SMB shares from my windows machine, but I could not write to them. While I was playing around with Samba I discovered the problem was on my workstation O/S, not with Samba. From my Windows7 machine it was not possible to write to the share. From a virtual XP machine I had no problems at all!

After a quick Google Search I found the following article. It has nice screen shots of how to fix this. Below is a summary of the steps if you don’t care about pictures.

  1. Got to Start > Run
    1. Type in secpol.msc
    2. Hit enter
    3. Click on “Local Policies” > “Security Options”
      1. Navigate to “Network Security: LAN Manager authentication level”
      2. Double-click on it.
      3. Change the drop down arrow to “LM and NTLM – use NTLMV2 session securely if negotiated”.
      4. Reboot your machine.

I have used the above procedure successfully on both Windows Vista and Windows7 machines. Supposedly version 3 supports NTLMv2 authentication making this unnecessary. However I was unable to get that working and didn’t have more time to devote to this issue.

Categories: AIX