Archive for December, 2012

NFS Server Setup on Ubuntu server and Desktop

Friday, December 28th, 2012

Server side Configuration–

root@server-desktop:~#apt-get install nfs-kernel-server portmap nfs-common nfswatch


root@server-desktop:~#mkdir /srv/nfs


root@server-desktop:~#chown nobody:nogroup /srv/nfs/


root@server-desktop:~#vi /etc/exports

#ADD BELOW LINES IN exports FILE save and exit.(Ip address of the server system)


#Then Run this command on Terminal–

root@server-desktop:~#exportfs -a

#Then restart nfs and portmap services

root@server-desktop:~#/etc/init.d/nfs-kernel-server restart

* Stopping NFS kernel daemon [ OK ]

* Unexporting directories for NFS kernel daemon… [ OK ]

* Exporting directories for NFS kernel daemon… [ OK ]

* Starting NFS kernel daemon [ OK ]

root@server-desktop:~#/etc/init.d/portmap restart

Rather than invoking init scripts through /etc/init.d, use the service(8)

utility, e.g. service portmap restart

Since the script you are attempting to invoke has been converted to an

Upstart job, you may also use the stop(8) and then start(8) utilities,

e.g. stop portmap ; start portmap. The restart(8) utility is also available.

portmap stop/waiting

portmap start/running, process 3784

#To check nfs folder run showmount command–

root@server-desktop:~#showmount -e

#Above command show nfs folder–

Export list for server-desktop:


Ubuntu Client side Configuration–

root@desktop:~#apt-get install nfs-common portmap

#Now make a folder in /mnt.

root@desktop:~#mkdir /mnt/nfs


root@desktop:~#mount /mnt/nfs

#Below command will show all mounted folders.

root@desktop:~#df -h

Fedora 17 Client side Configuration–

[root@administrator ~]#yum -y install nfs-utils

Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit

Loading mirror speeds from cached hostfile

* fedora: mirror.cse.iitk.ac.in

* rpmfusion-free: mirror.cse.iitk.ac.in

* rpmfusion-free-updates: mirror.cse.iitk.ac.in

* rpmfusion-nonfree: mirror.cse.iitk.ac.in

* rpmfusion-nonfree-updates: mirror.cse.iitk.ac.in

* updates: mirrors.ustc.edu.cn

Resolving Dependencies

–> Running transaction check

—> Package nfs-utils.i686 1:1.2.6-6.fc17 will be installed

–> Processing Dependency: quota for package: 1:nfs-utils-1.2.6-6.fc17.i686

–> Processing Dependency: libnfsidmap.so.0 for package: 1:nfs-utils-1.2.6-6.fc17.i686

–> Processing Dependency: libnfsidmap for package: 1:nfs-utils-1.2.6-6.fc17.i686

–> Running transaction check

—> Package libnfsidmap.i686 0:0.25-3.fc17 will be installed

—> Package quota.i686 1:4.00-5.fc17 will be installed

–> Processing Dependency: quota-nls = 1:4.00-5.fc17 for package: 1:quota-4.00-5.fc17.i686

–> Running transaction check

—> Package quota-nls.noarch 1:4.00-5.fc17 will be installed

–> Finished Dependency Resolution

Dependencies Resolved


Package Arch Version Repository Size



nfs-utils i686 1:1.2.6-6.fc17 updates 319 k

Installing for dependencies:

libnfsidmap i686 0.25-3.fc17 updates 33 k

quota i686 1:4.00-5.fc17 updates 162 k

quota-nls noarch 1:4.00-5.fc17 updates 74 k

Transaction Summary


Install 1 Package (+3 Dependent packages)

Total download size: 588 k

Installed size: 2.0 M

Downloading Packages:

(1/4): libnfsidmap-0.25-3.fc17.i686.rpm | 33 kB 00:01

(2/4): nfs-utils-1.2.6-6.fc17.i686.rpm | 319 kB 00:01

(3/4): quota-4.00-5.fc17.i686.rpm | 162 kB 00:02

(4/4): quota-nls-4.00-5.fc17.noarch.rpm | 74 kB 00:01


Total 83 kB/s | 588 kB 00:07

Running Transaction Check

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : 1:quota-nls-4.00-5.fc17.noarch 1/4

Installing : 1:quota-4.00-5.fc17.i686 2/4

Installing : libnfsidmap-0.25-3.fc17.i686 3/4

Installing : 1:nfs-utils-1.2.6-6.fc17.i686 4/4

Verifying : libnfsidmap-0.25-3.fc17.i686 1/4

Verifying : 1:nfs-utils-1.2.6-6.fc17.i686 2/4

Verifying : 1:quota-4.00-5.fc17.i686 3/4

Verifying : 1:quota-nls-4.00-5.fc17.noarch 4/4


nfs-utils.i686 1:1.2.6-6.fc17

Dependency Installed:

libnfsidmap.i686 0:0.25-3.fc17

quota.i686 1:4.00-5.fc17

quota-nls.noarch 1:4.00-5.fc17


[root@administrator ~]#mount /mnt/nfs

Enabling the NFS client on Windows 7 Ultimate/Enterprises system:

  1. Select Control Panel.
  2. Select Programs.
  3. Select Programs and Features.
  4. Select Turn Windows Features on or off.
  5. Select Services for NFS.
  6. Select the check box Client for NFS and click OK.

Run Below Command On Command Prompt:-

mount -o // z:

Fixed: Google Chrome Can Not Be Run As Root. (Ubuntu)

Thursday, December 13th, 2012

Google restricted running Chrome from root user account as it is directly linked with security issues. So if you understand the risks, here is how to make Google Chrome work from root.

  1. Open a Terminal Window (Ctl+Alt+T)
  2. Run this command -> sed -i ‘s/geteuid/getppid/g’ /opt/google/chrome/chrome
  3. Launch Google Chrome

This is assuming the google executable is present at /opt/google/chrome/chrome. Otherwise replace it with the correct path.

  • © 2004-2015 Special Work & Technology Limited