HOWTO: Add NFS share in RedHat Enterprise 4

Last week I enabled our server to share a directory using NFS. This should not really have been a very complex task. But it turns out that with RHEL4, anything can be more complicated than it seems at first… at the end I also include how to get Network Installation Services (NIS) running so that you can install RHEL (or many other Linux systems) over either NFS or HTTP.

As usual, resources on the Internet are, for lack of a better word, “scattered”… so in an effort to improve that, I will post my procedure here.

I am using RedHat Linux Enterprise 4 with a Firewall enabled (which causes most of the frustration).

Following is the procedure. Please, if you use this and have any comments or suggestions, feel free to email me or post a comment (reg required) so that I can add your experience to the howto.

Here goes:

Procedure for creating NFS shares on RedHat Enterprise 4 ES with Firewall and enabling NIS (Network Install Service).

  1. Create directory for NFS export at (eg. /var/data/public). Directory structure must have read access for All or Everyone (I use 755) from / level.
  2. Edit: /etc/exports (we’ve created a read-only export that is only accessible from our local subnet)insert as follows (all on one line):
    • /var/data/public/NFS/RHEL4,insecure,async)
    • You can also do this using the control panel at the GUI in System Settings.
  3. Next… we opened ports on the Firewall to allow access to NFS clients. In GUI “Security Settings” panel… open following ports in Firewall:
    • 111:tcp, 111:udp (for portmap)
    • 2049:tcp, 2049:udp (for nfsd)
    • 32767:tcp, 32767:udp (for mountd)
  4. Finally. We must modify the nfs startup script to bind mountd to a specific port. Otherwise it use a different port everytime we restart the service.
    • in /etc/init.d/nfs look for:
    • “$MOUNTD_PORT”
    • Before this line… add a new line:
    • MOUNTD_PORT=32767
  5. Now restart the nfs service with “service nfs restart”
  6. Test the service on your client.
    • If you get a “BAD MNT” error, then double check that mountd is using the correct port (rpcinfo -p).
    • If you get a “RPC connect failure”, then check that the firewall has the correct ports open.
    • If you get a “permission denied” error, check that the directory has read/execute access for “all”… and that all directories up to your NFS export also have read/execute permissions for “all”.
  7. You can now add files to the NFS share.
    • If you want NIS, simply insert Disks 1 through 4 and type (as root):
    • cp -var /path/to/cdrom/RedHat /var/data/public/NFS
    • This will copy all files and directories including base and RPMS to the NFS folder
    • Once all the files have been copied… you should be able to use /var/data/public/NFS/RedHat as your path for NIS installs.
    • You can also enable NIS over HTTP by creating a new directory or virtual host in your httpd.conf file and pointing it at your NFS directory. Make sure to enable directory listing (with a .htaccess file or in the conf)

Google Places of the Day: Feb 24, 2006

We all know pictures make the “news” more interesting… so I got to thinking… I like to cover “International” topics… so maybe my readers would appreciate a Google’s eye view of the days events.

So here are the four main topics I’ve been tracking today… clicking the picture will take you to Google Maps.

#1: Continuing reaction in Iraq

Fierce streetfighting at my doorstep for the last 3 hours. Rumor in the neighbourhood is that men in black are trying to enter the area.

due to the bombing of this Mosque in Iraq.

Al-Askariya Mosque

#2: The attempted bombing of this Saudi Oil refinery.

Guards opened fire on at least two cars carrying explosives as they tried to ram the gates. Two guards were killed.

Abqaiq Refinery

#3: The Canadian Men won Olympic Gold in Curling at Turin today.

The 25-year-old skip [Brad Gushue] and his St. John’s-based rink of third Mark Nichols, second Russ Howard and lead Jamie Korab scored six in the sixth end to propel themselves to a 10-4 win over Finland in eight ends in the gold medal game on Friday in Pinerolo, Italy.

Pinerolo Italy

#4: Sticking to the Canadian theme (sort-of)… Ancient Giant Beavers found in Inner Mongolia, China.

Castorocauda was preserved in exquisite detail, flattened in sediments at the bottom of an ancient lake. Hair impressions surround the body, which includes a 20-centimetre-long flat, beaver-like tail.

Inner Mongolia

New International News services

Right now, if you’re looking for news services with a truly global reach, there are only two. The BBC and CNN.

Next year, there will be at least one more, and if you speak French, you’ll have one in that language as well.

The French channel will emanate from France. It will be called CFII, (Canal Francaise Information International?) the French International News Network in English…

This project has been in the works for a long time.

From 2003:

By the end of 2004, the 24-hour news and information station, 100% financed by the state, will hit the airwaves not only in French but also possibly in English and Arabic.

Well, it’s the end of 2005 now.. but apparently the project is still on, and slated to start up next year

Their future rival, the BBC, reports:

The new network will be owned by commercial network TF1 and the state-funded company France Televisions.

The government has given initial funding of 30m euros (£23m) for this year, and allocated another 65m euros (£44m) for next year.

Employing around 240 staff, it will produce programmes initially beamed to Europe, Africa and the Middle East.

CFII will broadcast news around the clock in French, with a four-hour slot of programmes in English. There are plans to add programmes in Arabic and Spanish in due course.

The second source for International news will be from a name you already know well.

Aljazeera will launch a full, English-language, international network next year.

The Observer has an excellent article on what that means… and why AJ is wooing big name journalists and talking heads from the other big guns.

Among those attracted to the promise of foreign bureaus and nearly limitless resources is Dave Marash, a former Nightline correspondent and onetime anchor of WCBS New York, who is negotiating a job in the Washington bureau, according to sources close to the journalist. David Frost, the veteran BBC journalist and the first to interview Richard Nixon after Watergate, signed on earlier this summer. Former Nightline anchor Ted Koppel had a meeting with a representative from Al Jazeera International in Washington this fall, according sources close to Mr. Koppel. But nothing came of it.

But really, who would watch all this news? And what would make it any different, well, in AlJazeeras’ case:

Rebecca Lipkin, a former London-based Nightline producer, joined Al Jazeera International earlier this year as the executive producer for programming out of the London bureau.
… “If you told somebody at one of the networks that you want to put 20 minutes on the air about Central Asia, they would say you’re crazy,” she said. “I think this network would say, ‘Well, let’s think about this.’”

That means… at least to me, instead of hearing the same headlines, and talking points, from the same context of the networks host country over and over… we might actually hear about the World from its’ own perspective. And that is valuable. That is what an International news channel should be.

At least AJ is honest about who their targeting:

“We’re trying to reach educated decision-makers and young people,” said Mr. Parsons. “We would love to have an audience that regards us as their first source of balanced and impartial news. Beyond that, we’ll always be an interesting alternative source.”

I, for one, would love to see both these channels. If anything more voices telling slightly different stories is the best you can hope for to be able to make your own informed decisions. That said, I’m most excited to see AlJazeera. The perspective of the Middle East and Africa are totally un-represented in Western Media, and I would hope that this channel would shine a light into the day-to-day happenings of these regions.

AlJazeera may be viewed as “the enemy” by some… it may even be the target of bombings… but one thing is for sure, in the Arab world, it is a free and outspoken voice for reform. The Saudi government boycotts it, other repressive governments in the region try to ignore it. But they can’t, not when 50 million people watch it every day. I would like to hear that voice here as well.

Iraq is the new Afghanistan

This according to a UN report.

“Al Qaeda has managed to recover from the loss of Afghanistan as a training base for terrorism by exploiting the situation in Iraq,” the report said.

The report was the third by an expert panel set up by the U.N. Security Council to monitor al Qaeda, the Taliban and their associates.

Recruits travel to Iraq from many parts of the world, “acquire skills in urban warfare, bomb-making, assassination and suicide attacks,” and return to integrate with local fighters in their home countries, the report said.

Wasn’t it all those crazy “leftys” who kept harping about this EXACT eventuality if the US either invaded alone… or invaded without the required support. (they did both by the way).

Wasn’t it all those crazy “leftys” who said, why are we taking away our focus and resources from Afghanistan and stirring up shit in Iraq?

Now answer these question.

In 2003 could Saddam Husseins’ army attack the US causing mass casualties?

In 2005 could Al Quaeda, who is now based and trained in Iraq, attack the US causing mass casualties?

The answer should be fairly obvious… and judging by current polling of American attitudes, it appears most Americans are starting to understand that they’ve been lead down the wrong path by a very dangerous group of people.

Never Again

When you hear those in power trying to convince you that Nuclear bombs and weaponry are necessary please read this.

Akiko Seitelbach was 22 years old, and working at Mitsubishi Electrical as a volunteer, when the atomic bomb fell on Nagasaki.

On 9 August 1945, I was working in the supply office. I was a little tired, so I got up to stretch my legs and walked over to the end of the office where there was a big window looking over Nagasaki harbour.

The scenery was beautiful, the sun was shining brightly and I was looking across the bay.

Then suddenly I saw this flash of light, above the railway station, and my boss yelled at me: ‘Get away from the window!’

So I turned and tried to walk back to my desk. Then suddenly the building was hit with such force it was like a small boat in a storm – it shook.

And I threw myself face down on the floor to cover my head with my hands, something we were trained to do.

A shockwave came and the air was filled with acrid dust. The building kept shaking, and things were falling on my body and head. My mother had died the year before and I prayed to her.

Then after a while it stopped, so I got up and looked around. The air was still filled with yellow dust and I ran downstairs towards the air raid shelter.

I ran through the factory. I felt something was very wrong – it was so bright. When I got to the shelter it was dark, as the electricity had gone, but I could feel people moving around.

My boss came and found me and said: ‘Oh you are safe.’ He said: ‘They are calling for you – you volunteered to do first aid.’

So I said, ‘Oh heavens I did!’ I got up and went to the other end of the air raid shelter. There was a doctor, and although he was wounded, he was also trying to help other people.

People were sort of dazed, their clothes torn to shreds, their bodies burned and just standing there silently.

The doctor pointed out one man. All his clothes were torn and his body was covered in burns. He was shivering and said: ‘I’m cold, I’m cold’. So I put some ointment on him, but I thought: ‘This isn’t going to help.’

Then the doctor said: ‘Go and stay with that young boy on the makeshift bed.’

They used high school kids as volunteers in the factories. He must have been about 15. He had a big gash on his neck. He opened his eyes and said: ‘You know I’m going to die.’

I said: ‘Your mother’s coming, you’re not going to die.’ He said: ‘Can’t you hear my blood dripping? I know I’m going to die.’ Then he was gone.

Altered landscape

Later on, at about 5pm, my boss suggested we try to get home. I didn’t know it had been an atomic explosion.

We walked out of the shelter, passed the destruction and onto the road in front of our building. I knew something was very wrong, something terrible had happened.

I looked out across the bay, and Nagasaki was a big bonfire, just burning, and then I thought about Hiroshima.

I thought: ‘Maybe it’s one of the new bombs.’ But I didn’t have any feelings about that. When you’re shocked you don’t feel anything. I wasn’t even scared.

We couldn’t get our bearings because all the familiar landmarks had disappeared. And when we ran through the roads between houses still burning on both sides, the scorching heat nearly overwhelmed us.

I didn’t see any living creatures or green plants. We ran and ran through these empty spaces.

Then suddenly I stopped.

Something was coming toward me. It was a man but he didn’t look like a man. He had no hair, his face was swollen to about twice the normal size, and loose skin hung down from his arms and legs like seaweed.

He was walking towards me and I was so scared I tried to avoid him.

I heard him saying ‘Water, water’ as he passed me. So I turned around to go to him but he had collapsed, dead.

The next day we tried to catch a train north, but train after train was filled with burns victims and wounded.

And they told us about their experiences – the blast and the incinerating heat, and the black rain that fell from the sky. It was weird and sort of supernatural.

This interview is from the series ‘August 1945’, from 3-14 August on BBC Radio 4, at 8.55 BST Mondays-Saturday, and at 9.55 BST on Sunday.

As posted at the BBC.