CAUTION!

CAUTION! DANGER ZONE ahead. Beware of misinformation on the open internet. Contents of the site are mere opinions and are not always facts!
Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Wednesday, June 8, 2016

Set up NFS volume on Windows client.

Steps to work on a remote NFS workspace (Hosted on linux) from the Windows client machine.

GOAL:
- Work from the Windows local machine on a remote NFS workspace.
solution: Mount the remote NFS volume on the client Windows machine.
- Set up an editor to work with the workspace.
solution: Sublime Text is a good fit for C++ and various other languages, currently almost FREE!


1. Set up windows as NFS client. 
  • Click “start” -> search for “windows features” -> click “Turn Windows features on or off” -> “select services for NFS”

  2. Set up user credentials for write access. [WARNING! A hacker who gains access to this machine can get the UID and GID of the remote server]
  •  click start -> search for “regedit” -> goto “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default” -> right click “new”
  • Create DWORD(32-bit) keys as shown below.


  • Find UID and GID :
           - goto to the remote server machine -> enter “id” at the bash shell -> the UID and GID are in decimal.

3. Mount NWS to your local machine.

  • Open Cmd and enter,
          mount IP_Addr:/vol/vol_nfs_janani z: (replace volume name and drive letter)

  • Find the new drive under "my Computer".


4. Download Sublime Text 3 from https://www.sublimetext.com/
  •  Configure the workspace.
  •  Goto “File” -> Goto “Open Folder” -> open your workspace (on the mount drive)
  •  Goto “Project” ->click “save  project as..” (to open it next time)

5. Some sublime short cuts:
   end search: Esc
   Find in current file: Ctrl + F
   Find in complete folder : Ctrl + Shift + F (double click the line to open the line in the file)
   Goto Anything/ open file: Ctrl + P
   Function list : Ctrl + R
   Navigate Fwd: Alt + Shift + -
   Navigate Bck: Alt + -
   Goto Line : Ctrl + G
   Goto Definition: F12
   Automatic auto completion!

Recommended sublime Plug in's: Cscope, 

This is the basic use of this editor. Documentation has more. 

Saturday, November 2, 2013

Setting up Inkscape development environment on Windows.

A record of solutions to issues that were resolved to setup Inkscape development environment on Windows.

In case you are looking for the link to get started, here it is.

1. build error: invalid option –lgomp for gc++

error:
Make error line 440: LINK problem:
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe:cannot
find -lgomp
collect2: ld returned 1 exit status

solution link: Sourceforge

solution:
Maybe 'default options' is not sufficient when installing TDM-GCC 4.5.2?
This thread mentions to choose "option "TDM-GCC recommended, All Packages" in the
TDM-GCC 4.5.1 installer".


2. msgfmt error: system could not find file specified

error:
##### Target : i18n
> ##### compile gettext .po files to .mo
> --- i18n / msgfmt
> ============ cmd ============
> msgfmt po/am.po -o build/locale/am/LC_MESSAGES/inkscape.mo
> =============================
> Make error line 453: executeCommand : could not create process : The system
> cann
> ot find the file specified.
> Make error line 453: <msgfmt> problem:

Solution link: Sourceforge

solution:
This looks like a problem with Gettext. Check whether you can run the msgfmt program from the console. If you can't, it means you don't have the devlibs bin/ directory in your PATH. Did you run mingwenv.bat in the console before running btool?