Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Mount windows share on Linux

mount -t cifs -o sec=ntlm,username=<share user>,password=<share password> //WIN_PC_IP/<share name> /mnt

Source

http://askubuntu.com/questions/491297/permanent-windows-share-mounting

https://access.redhat.com/solutions/448263

Without

sec=ntlm

It gives error below.

mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Sync folder between Android Tablet or Phone and computer

 

Requirement

To synchronize the contents of one folder between my android tablet or phone with folder inside my computer

Softwares used

Computer

Some FTP server

In windows i used Filezilla server

See guide here

http://www.addictivetips.com/windows-tips/how-to-setup-personal-ftp-server-using-filezilla-step-by-step-guide/

Read about different sync modes

https://sites.google.com/a/sergey-bogdanov.info/pcfilesync/tutorial-1/syncmodes

In Android

Download the application

https://play.google.com/store/apps/details?id=org.pcfilesync&hl=en

I was able to setup FTP server and sync between the folder in 10 mins

Please follow the tutorial here

https://sites.google.com/a/sergey-bogdanov.info/pcfilesync/tutorial

Now i two folders synchronize each other every 20 seconds.

How to see total folder size in Windows

 

Download folder size software

http://sourceforge.net/projects/foldersize/

On lower right side you will have icon to allow display of folder size.

It will appear something like this

 

 

 

 image

On each folder you will have window like shown below

image

Details

http://www.intowindows.com/how-to-view-folder-size-in-windows-8-1-explorer/

Install protobuf 2.5 on Windows

 

Download prorobuf from https://code.google.com/p/protobuf/downloads/detail?name=protoc-2.5.0-win32.zip&can=2&q=

Extract it to some location

Add it to your path

After that you can see its installed

C:\Users\jj\Desktop>which protoc
/cygdrive/g/dev/tools/protoc-2.5.0-win32/protoc

Tip : I use Rapid Environment Editor to manage all my environment variables. You will like it , read about it here.

Set windows environment variables via script command line

 

When using windows , one the feature which i miss is use of scripts to do lots of things we can do in Linux

To set the deterministic development environment rapidly i use the Rapid Environment Editor

You can use the bat script to manage all environment variables.

Here is example

set_env.bat

rem This is a comment
rapidee -C JAVA_HOME
rem rapidee -S JAVA_HOME "C:\Program Files\Java\jdk1.8.0"
rapidee -S JAVA_HOME "C:\Program Files\Java\jdk1.7.0_51"
rapidee -S MVN_HOME G:\dev\tools\apache-maven-3.1.1
rapidee -S SCALA_HOME G:\dev\tools\scala\scala-2.10.4
rapidee -S Path
rem rapidee -A -E Path "C:\Program Files\Java\jdk1.8.0\bin"
rapidee -A -E Path "C:\Program Files\Java\jdk1.7.0_51\bin"
rapidee -A -E Path G:\dev\tools\apache-maven-3.1.1\bin
rapidee -A -E -C Path G:\dev\tools\protoc-2.5.0-win32
rapidee -A -E -C Path G:\dev\tools\0.5.1_windows_amd64_packer
rapidee -A -E -C Path C:\cygwin64\bin
rapidee -A -E -C Path "C:\Program Files (x86)\Git\bin"
rapidee -A -E -C Path G:\dev\tools\scala\scala-2.10.4\bin

 

Save this above file as set_env.bat

You can do lots of things via batch scripting. http://en.wikibooks.org/wiki/Windows_Batch_Scripting

Download the Rapid Environment editor from http://www.rapidee.com/

Install it and add it to your path.

Now whenever you want to set windows environment variable you can just add it to above set_env.bat script and execute

Here is what it looks like on my system

 

image