How to install NFS (Network File System) server in Linux Mint?

The Network File System (NFS) protocol was developed by Sun Microsystems in 19841. NFS builds over Open Network Computing Remote Procedure Call, commonly called SUN ONC.

Step 1: Install NFS server and associated applications on the Linux Mint desktop.

Issue the command: #sudo apt-get install nfs-kernel-server nfs-common portmap

Step 2: Configure the NFS Server.

NFS exports from a server are controlled by the file /etc/exports. Each line begins with the absolute path of a directory to be exported, followed by a space-seperated list of allowed clients.

For example: To export the /var/nfs directory so that it can be accessed by any client, please insert the below line into /etc/export.
/var/nfs * (ro,async,subtree_check)

Note: Allowing any client to access your box can be potentially harmful. Please reconsider your decision before doing so.

To allow access to machines with a particular set of IP addresses, please insert the below line in /etc/export.
/var/nfs 192.168.1.1/24 (ro,async,subtree_check)

Other options that can specified along with the IP address include:

ro:

The directory is shared read only; the client machine will not be able to write it. This is the default.

rw:

The client machine will have read and write access to the directory.

no_root_squash:

If no_root_squash is specified, then root on the client machine will have the same level of access to the files on the system as root on the server. This can have serious security implications. You should not specify this option without a good reason.

no_subtree_check:

If only part of a volume is exported, a routine called subtree checking verifies that a file that is requested from the client is in the appropriate part of the volume. If the entire volume is exported, disabling this check will speed up transfers.

sync

By default, all but the most recent version (version 1.11) of the exportfs command will use async behavior, telling a client machine that a file write is complete – that is, has been written to stable storage – when NFS has finished handing the write over to the filesystem. This behavior may cause data corruption if the server reboots, and the sync option prevents this.

References


1.  “Design and Implementation of the Sun Network Filesystem“. USENIX. 1985.

2. RFC 3530 – NFS Version 4 Protocol Specification.

3. Linux NFS Overview, FAQ and How-To documents.

Disclaimer


All data and information provided on this site is for informational purposes only. sks8.wordpress.com or skumar.co.nr makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis. Any trademarks, if at all displayed on this blog belong to their respective owners.

a user on a client computer to access files over a network in a manner similar to how local storage is accessed
Reblog this post [with Zemanta]

Synchronise Nokia 5800 with Google (Calendar and Contacts)

Finally, I have successfully synced my Nokia 5800 contacts and calendar with Google calendar and contacts respectively.

Here are the list of steps that I followed.

  • The Mail for Exchange application should be installed in Nokia 5800 in order to sync with Google.
  • On completion of the installation, please navigate to ‘Applications‘ on the Nokia 5800 menu and choose ‘Mail for Exchange‘.
  • On the first run, the application would ask you to set up the ‘Exchange server profile‘.
  • Choose ‘Yes’ and set up the profile settings as follows:
    • Exchange server name: m.google.com
    • Secure connection: Yes
    • Port Number: 443 (should be the default one)
    • Domain: leave blank
    • Username: your-id@gmail.com
    • Password: your password
  • Please disable the Tasks and Mail, otherwise it may not work at all; also please change the settings for Contacts and Calendar so the contacts and events currently on your phone are not wiped out when you first synchronize the device.

Couple of points to remember

  • Google may not be charging you to access Google products from a mobile phone, but depending on your service plan, you may be charged by your mobile provider for text message or data network usage. Check with your provider for more information about fees associated with accessing the Internet from your mobile phone.

Reference

Disclaimer

All data and information provided on this site is for informational purposes only. sks8.wordpress.com or skumar.co.nr makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis. Any trademarks, if at all displayed on this blog belong to their respective owners.

Reblog this post [with Zemanta]

How to find latitude and longitude of a location in Google Maps?

Step 1:

Open the Google Maps website (http://maps.google.com/) and key-in the location details in the search box.

Google Maps - Search Box

Step 2:

Select the location in the search results for which the latitude and longitude are to be identified.

2. Choose desired location within the search results

Step 3:

Zoom-in as much as possible and right click on the exact location for which latitude and longitude are to be identified. Then, please choose the ‘Center map here‘ option displayed in the pop-up menu.

3. Choose the center map here option

Step 4:

On the address bar of your browser, key-in the below javascript code.

javascript:void(prompt('',gApplication.getMap().getCenter()));

This will display the latitude and longitude of the location in question within a dialog box as portrayed in the image below.

4. Javascript code

Step 5:

An alternative method to identify the latitude and longitude is to click on the ‘Linkhyperlink on the right top corner of the Google Map sub-frame and glance at the contents displayed in the text box below the label – ‘Paste link in email or IM‘ (as shown in the image below).

5. Click the 'Link' hyperlink on the right top corner

Disclaimer

All data and information provided on this site is for informational purposes only. Niether sks8.wordpress.com nor skumar.co.nr makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis. Any trademarks, if at all displayed on this blog belong to their respective owners.

Reblog this post [with Zemanta]

How to reset forgotten root password in Linux?

The root password for the Linux system can be reset by booting it into the Single User mode which is also termed as Emergency mode or more popularly known as Rescue mode.

If the boot loader installed on your Linux system is GRUB, then please follow the below listed steps to reset the root password.

  • Select the line which specifies the kernel to be loaded.
  • Press the ‘e’ key to edit the entry.
  • Choose second line (the line starting with the word kernel).
  • Press the ‘e’ key again to edit kernel entry
  • Append the letter ‘S’ or word ‘single’ to the end of the line.
  • Press the [ENTER] key
  • Press the ‘b’ key to boot the Linux kernel into single user mode

After the booting process completes, mount the ‘/’ and ‘proc’ partitions using the below listed commands.

# mount -t proc proc /proc
# mount -o remount,rw /

Issue the 'passwd' command to change the root password.

Finally, reboot the system employing the below commands.
# sync
# reboot

If the boot loader installed on your Linux system is not GRUB but LILO, then please follow the below mentioned steps to reset the root password.

  • At the Boot: prompt displayed by the LILO boot loader, type linux single and press the [ENTER] key:
  • Allow the system boot and when it displays the # prompt, type passwd to reset the root password.
  • Finally, reboot the system by issuing sync followed by the reboot command.

Disclaimer

All data and information provided on this site is for informational purposes only. sks8.wordpress.com or skumar.co.nr makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis. Any trademarks, if at all displayed on this blog belong to their respective owners.

Reblog this post [with Zemanta]

Install multiple versions of Firefox on Microsoft Windows, Linux or MAC

Have you come across a plug-in or an extension that won’t install on the current version of the Firefox browser but requires an older version?

If your answer to the above question is a big ‘YES’, then this post is for you, else, no worries, you are lucky enough to have all your favourite plugins available for the current version of Firefox running on your machine. Enjoy reading this blog!

Modus Operandi:

  • Download all the required versions of Firefox that you wish to install.
  • For the purpose of this blog, let me consider installing Firefox 3.0.13 and the latest version which is Firefox 3.5.2.
  • Install either of two version. Users are normally inclined to the fact of installing older version first, therefore, let me choose the other way round and consider installing the higher version first and then install the older one.
  • After installing either of the Firefox version, (in my case, I have installed Firefox 3.5.2), execute the below command:
    • In Microsoft Windows: <Firefox installed folder>/firefox.exe -ProfileManager
    • In Linux: <Firefox installed folder>/firefox -ProfileManager
    • In MAC: <Firefox installed folder>/firefox-bin -ProfileManager
  • A dialog box pop’s up as shown in the image below. Click the ‘Create Profile’ button to create a new user profile.
1. Multiple-Firefox-Instance-Create-Profile-Button
Step 1 – Create a new user profile.

  • The ‘Create Profile Wizard’ is displayed.
2. Multiple-Firefox-Instance-Create-Profile-Wizard
Step 2 – Click ‘Next’ on the ‘Create Profile Wizard’ dialog box.

  • Key in some name in the ‘Profile name’ text box. If you prefer to save the user preferences, settings and other user related data in a particular folder other than the default one, then click the ‘Choose Folder’ button and opt for a specific folder of your choice.
3. Multiple-Firefox-Instance-Create-Profile-Wizard-Entries
Step 3 – Choose a profile name and folder to store user related data.

  • Clicking the ‘Finish’ button on the previous dialog box (shown above) leads you to the ‘Choose User Profile’ dialog box (shown below) listing the new profile created just now. Un-check the ‘Don’t ask at startup’ check-box if you prefer to be asked to choose a user profile each time Firefox starts.
4. Multiple-Firefox-Instance-New-Profile-Created
Step 4 – Choose the newly created profile and click ‘Start Firefox’.

  • After you make sure that the current installed version of Mozilla Firefox starts without any issues, go ahead and install the other version of the Firefox.
  • While installing the other version, choose ‘Custom Installation’ option and not ‘Standard Installation’.
  • Opt for a different folder other than the one in which the current installed Firefox is located.
  • On completion of the installation, follow the above steps describing the mechanism involved in creating a separate profile for Mozilla Firefox.
  • To set the profile automatically for a certain version of Mozilla Firefox, please modify the shortcut to something as shown below.
    • <Firefox installed folder>/firefox.exe -ProfileManager <new-profile-name> Or,
    • <Firefox installed folder>/firefox.exe -P <new-profile-name>
  • On a Microsoft Windows machine, please be sure to change the ‘Start in’ field in the shortcut to match the folder path used in the target (however the ‘Start in’ will not need the'-P <new-profile-name>').
  • Please note, if you have a Mozilla Firefox window open while trying to access the ‘Profile Manager’ it will just open up another window of Firefox. You cannot run more than one version of Mozilla Firefox simultaneously. Therefore, to execute the other version of Mozilla Firefox installed on your system, please close all the open Firefox windows and then start up the other version.
  • Finally, if you prefer more information on the ‘Firefox Profile Manager’, please visit the ‘Profile Manager‘ section in the MozillaZine Knowledge Base.
  • Enjoy using multiple versions of Mozilla Firefox on your system!

The below listed video was published by Joey in the ‘ClearTechInfo.com Studio‘ section of the 5 min Life Videopedia website. It portrays the process involved in creating multiple Mozilla Firefox 3 profiles in Microsoft Windows Vista operating system.

Link to the video: http://www.5min.com/Video/How-to-Create-Multiple-Firefox-3-Profiles-61017751

Disclaimer

All data and information provided on this site is for informational purposes only. Niether sks8.wordpress.com nor skumar.co.nr makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis. The trademarks, if at all used on this blog belong to their respective owners.

<div style=’text-align:center’><object width=’480′ height=’401′ id=’FiveminPlayer’ classid=’clsid:d27cdb6e-ae6d-11cf-96b8-444553540000′><param name=’allowfullscreen’ value=’true’/><param name=’allowScriptAccess’ value=’always’/><param name=’movie’ value=’http://www.5min.com/Embeded/61017751/’/><embed name=’FiveminPlayer’ src=’http://www.5min.com/Embeded/61017751/&#8217; type=’application/x-shockwave-flash’ width=’480′ height=’401′ allowfullscreen=’true’ allowScriptAccess=’always’></embed></object><br/><span style=’font-family: Verdana; font-size: 10px;’>More <a href=’http://www.5min.com&#8217; target=’_blank’>DIY videos</a> at 5min.com</span></div>