Varinder Singh

NIS Server and Client Setup

November 22, 2009 · Leave a Comment

#Setup Tested/performed usingĀ  Fedora 9

#NIS server setup steps for LUX lab NAD810

#Author Varinder Singh Lux@seneca Feb 15th 2009

NIS Server

Server side

Step 1. Package install :

yum install ypserv

Step 2:

/sbin/chkconfig/ypserv on

/sbin/chconfig/ypxfrd on

/sbin/chconfig/yppasswdd on

step 3.Edit /etc/sysconfig/network

NISDOMAIN=mydomain

step 4. /usr/lib/yp/init -m

(if this step is skkiped ypbind at client side wont start)

during the command if at any step you asked for inpute, then just

press <ctrl -D>

step 5. After configuring NIS server start the following services

/sbin/service ypserv start

/sbin/service ypxfrd start

/sbin/service yppasswdd start

NIS Client Side configuration

Step 1 Package Install

a) yp-tools

b) yp-bind

Step 2:

/sbin/chkconfig ypbind on

/sbin/service ypstart

Step 3. Edit the /etc/sysconfig/network

NISDOMAIN=mydomain (domain name is case sentive)

Step 5. Edit /etc/yp.conf

domain mydomain server 192.168.122.77

start ypbind

Step 6

Try the following steps to check if the configuration is fine)

#ypwhich (should display NIS server’s name )

#rpcinfo -u <server-name> ypserv

#rpcinfo -u localhost ypbind

Setting the NFS and automounter to mount automatically home dirs

NIS server Side

setup the NFS server and export the /home directory so that the /etc/exports file looks like this

/home 192.168.122.0/24(rw,sync)

NIS client side

step 1.

Package install autofs

step 2

edit the /etc/auto.master and at the end of file make the following entry

/home /etc/auto.home –timeout 600

Step 3

Edit the /etc/auto.home and enter the following line given below

* -fstype=nfs,soft,intr 192.168.1.100:/home/&

Step 4:

/sbin/chkconfig autofs on

/sbin/service autofs start

Reference

Red Hat linux by Mark G Sobell

→ Leave a CommentCategories: SYStem Aadmin

LTSP (Linux Terminal Server Project)

April 18, 2009 · 3 Comments

LTSP Installation
Its simple and easy to setup a LTSP (Linux Terminal server Project) server.The link given below has the installion steps. Follow them and its done

Link to LTSP Installation Steps

OS. Fedora 9
Hardware used: Dell LATITUDE | D610 1GB RAM Pentium M 1.8GHZ


The steps I followed

1. # yum install ltsp-server
2. # yum install ltsp-vmclient
3. #echo “/opt/ltsp *(ro,async,no_root_squash)” >> /etc/exports
4. #ifup ltspbr0

# service xinetd start
# serivce ltsp-dhcpd start
# service rpcbind start
# service nfs start
# service sshd start

# chkconfig ldminfod on [ it Gives me follwoing error message]

[root@station11 ~]# chkconfig idminfod on
error reading information on service idminfod: No such file or directory

# chkconfig nbdrootd on
# chkconfig nbdswapd on
# chkconfig tftp on

# ltsp-build-client [ to begin installation of the /opt/ltsp/i386 client chroot.]

Building the ltsp client

Building the ltsp client

Its Done. Now run the command to launch LTSP Client to test.

# ltsp-vmclient

 LTSP Client booting up

LTSP Client booting up

LTSP client Login Scrren

LTSP client Login Scrren

Server and client desktop screen after login

Server and client desktop screen after login

Troubleshooting:

My server has already running dhcp server. It cause and problem while booting the LTSP client with message NO IP Found

After stopping dhcpd and restarting ltsp-dhcpd restart it works fine.

→ 3 CommentsCategories: Uncategorized
Tagged:

Yumcmd (release 0.9) Methods submiited to func list

April 17, 2009 · Leave a Comment

Release 0.9

The code for all yumcmd methods(install(), remove(), groupinstall(), groupremove()) has been submitted to Func list for suggestions.

Project Code
Project Wiki page

→ Leave a CommentCategories: Uncategorized
Tagged:

Func Modules Merged yumjhand+rpms = packages (Release 0.8)

March 27, 2009 · Leave a Comment

yumcmd release 0.8
The two func modules(yumjhand & rpms) merged in new module named ‘packages’

Here is link to code to try

Link to code

To list methods inside the module ‘packages’
[root@station77 ~]# func station66 call packages list_methods
{’station66′: ['verify',
'glob',
'save_config',
'remove',
'inventory',
'install',
'groupinstall',
'groupremove',
'module_description',
'module_version',
'get_method_args',
'module_api_version',
'list_methods']}

To remove packages named ‘Fonts’
[root@station77 ~]# func station66 call packages groupremove Fonts
{’station66′: ['paktype-fonts.noarch 0-2.0-2.fc8 - e',
'lohit-fonts-bengali.noarch 0-2.3.1-1.fc10 - e',
'jomolhari-fonts.noarch 0-0.003-5.fc10 - e',
'padauk-fonts.noarch 0-2.4-2.fc10 - e',
'lohit-fonts-tamil.noarch 0-2.3.1-1.fc10 - e',
'lklug-fonts.noarch 0-0.2.2-6.fc10 - e',
'liberation-fonts.noarch 0-1.04.92-1.fc10 - e',
'kacst-fonts.noarch 0-2.0-1.fc10 - e',
'cjkunifonts-uming.noarch 0-0.2.20080216.1-11.fc10 - e',
'abyssinica-fonts.noarch 0-1.0-2.fc8 - e',
'dejavu-fonts.noarch 0-2.26-2.fc10 - e',
'lohit-fonts-punjabi.noarch 0-2.3.1-1.fc10 - e',
'stix-fonts.noarch 0-0.9-7.fc10 - e',
'thaifonts-scalable.noarch 0-0.4.9-3.fc9 - e',
'un-core-fonts-dotum.noarch 0-1.0.2-0.6.080608.fc10 - e',
'lohit-fonts-kannada.noarch 0-2.3.1-1.fc10 - e',
'lohit-fonts-hindi.noarch 0-2.3.1-1.fc10 - e',
'smc-fonts-meera.noarch 0-04.1-1.fc10 - e',
'lohit-fonts-gujarati.noarch 0-2.3.1-1.fc10 - e',
'khmeros-fonts-base.noarch 0-5.0-3.fc10 - e',
'lohit-fonts-telugu.noarch 0-2.3.1-1.fc10 - e',
'lohit-fonts-maithili.noarch 0-2.3.1-1.fc10 - e',
'dejavu-fonts-experimental.noarch 0-2.26-2.fc10 - e',
'lohit-fonts-oriya.noarch 0-2.3.1-1.fc10 - e']}
[root@station77 ~]#

Help/Suggestions are welcome

→ Leave a CommentCategories: Uncategorized
Tagged:

yumcmd release 0.7

March 22, 2009 · Leave a Comment

Func module yumcmd ver0.7 has been relaesd. In this release the new method named groupinstall() has been added.So now we can Install package-Groups on minions via Func.
To install the Package group on minion. Use the following command on Certmaster

#func host.domain.com call yumjhand groupinstall Fonts

[root@station77 ~]# func station66.meapay.com call –async yumjhand groupinstall Fonts
(’station66.meapay.com’,
['paktype-fonts.noarch 0-2.0-2.fc8 - u',
'lohit-fonts-bengali.noarch 0-2.3.1-1.fc10 - u',
'jomolhari-fonts.noarch 0-0.003-5.fc10 - u',
'padauk-fonts.noarch 0-2.4-2.fc10 - u',
'lohit-fonts-tamil.noarch 0-2.3.1-1.fc10 - u',
'lklug-fonts.noarch 0-0.2.2-6.fc10 - u',
'liberation-fonts.noarch 0-1.04.92-1.fc10 - u',
'kacst-fonts.noarch 0-2.0-1.fc10 - u',
'cjkunifonts-uming.noarch 0-0.2.20080216.1-11.fc10 - u',
'abyssinica-fonts.noarch 0-1.0-2.fc8 - u',
'dejavu-fonts.noarch 0-2.26-2.fc10 - u',
'lohit-fonts-punjabi.noarch 0-2.3.1-1.fc10 - u',
'stix-fonts.noarch 0-0.9-7.fc10 - u',
'thaifonts-scalable.noarch 0-0.4.9-3.fc9 - u',
'un-core-fonts-dotum.noarch 0-1.0.2-0.6.080608.fc10 - u',
'lohit-fonts-kannada.noarch 0-2.3.1-1.fc10 - u',
'lohit-fonts-hindi.noarch 0-2.3.1-1.fc10 - u',
'smc-fonts-meera.noarch 0-04.1-1.fc10 - u',
'lohit-fonts-gujarati.noarch 0-2.3.1-1.fc10 - u',
'khmeros-fonts-base.noarch 0-5.0-3.fc10 - u',
'lohit-fonts-telugu.noarch 0-2.3.1-1.fc10 - u',
'lohit-fonts-maithili.noarch 0-2.3.1-1.fc10 - u',
'dejavu-fonts-experimental.noarch 0-2.26-2.fc10 - u',
'lohit-fonts-oriya.noarch 0-2.3.1-1.fc10 - u'])

if no package name is specified will display the follwoing out put

[root@station77 ~]# [root@station77 ~]# func station66.meapay.com call –async yumjhand groupinstall
(’station66.meapay.com’, ['Please Enter a Group Name to install'])

Project Code

Project News/Wiki Page

→ Leave a CommentCategories: Uncategorized
Tagged:

yumcmd Release 0.6

March 7, 2009 · Leave a Comment

Version 0.6 is released. The new method groupremove is added to this release.
So the particular group of package can be removed via func.

Click here to module Code

Project Wiki page

→ Leave a CommentCategories: Uncategorized
Tagged:

Release ver 0.5

February 13, 2009 · Leave a Comment

The install() method is working fine with new version of func (func 0.24) on fedora 10 with updating following packages.

rpm 4.4.2.3 is updated to 4.6.0
rpm-pyhton 4.4.2.3 updated to 4.6.0

there is no unwanted messages this time..
The bug is filed at Red Hat Bugzilla. The link is given below

Bug at Red Hat Bugzilla

The bug from the code has also been fixed. If the package name is not defined it will display an appropriate message.

Here is link to code

Link to code yumcmd modules ver 0.5

→ Leave a CommentCategories: Uncategorized
Tagged:

Python Performence check script

January 31, 2009 · Leave a Comment

Just a Basic Disk read/write operations through Python Scripts

Link for Scripts

→ Leave a CommentCategories: Uncategorized
Tagged:

Version 0.4 is rleased

January 26, 2009 · Leave a Comment

Func based module for package management in this release conatins two methods. Working fine on Func’s old version 0.18. But dsiplays error on new version(Func 0.24). Here is a part of an error message.

REMOTE_ERROR’,
‘yum.Errors.YumBaseError’,
‘Public key for k3b-1.0.5-3.fc9.x86_64.rpm is not installed

Link to code(yumjhand.py) is here

Yumjhand.py python Code

Complete Error Message(yumjhand-error.txt)

Project Page
Link to Project Page Yumjhand()

→ Leave a CommentCategories: Uncategorized
Tagged:

Partition Recovery with Testdisk

January 23, 2009 · 2 Comments

A great tool to recover data from deleted partitions.

Test Disk Download Page

hope , it may help

→ 2 CommentsCategories: Uncategorized
Tagged: