How do I use a Samba server location for GOPATH?
there is only one solution for this:
Map ( mount) a Samba server file path as a Local Disk Drive ( local path),
then set GOPATH
to this local path:
Mounting SMB share on local folder by using smbmount command (smbmount is deprecated):
smbmount //ipadd/sharename /mountpoint –o username=userid,workgroup=workgroupname
Example :
smbmount //192.168.0.1/share1 /mnt –o username=steev,workgroup=test
Mounting SMB share by using mount command
mount –t smbfs ipadd:/sharename /mountpoint –o username=userid,workgroup=workgroupname
Or
mount –t smbfs //ipadd/sharename /mountpoint –o username=userid,workgroup=workgroupname
Example :
mount –t smbfs 192.168.0.1:/share1 /mnt –o username=surendra,workgroup=test
ref:
http://www.linuxnix.com/8-ways-to-mount-smbfs-samba-file-system-in-linux/
https://askubuntu.com/questions/232998/how-do-i-install-smbmount
http://www.howtogeek.com/116309/use-ubuntus-public-folder-to-easily-share-files-between-computers/
and for Windows: https://serverfault.com/questions/6079/how-can-i-mount-an-ftp-to-a-drive-letter-in-windows
How do you share your GOPATH via Dropbox (or similar) across multiple platforms
1- set GOBIN
to separate path (just e.g. for OS X
) and use
go install
Command go :
If the GOBIN environment variable is set, commands are installed to the
directory it names instead of DIR/bin. GOBIN must be an absolute path.
2- Also you may rename the output file:
go build [-o output] [-i] [build flags] [packages]
Like this:
go build -o newname
The -o flag, only allowed when compiling a single package, forces
build to write the resulting executable or object to the named output
file.
Also see: How do I use a Samba server location for GOPATH?
Error trying to make the ledger persistant in rafts
Hyperledger Fabric's Raft based ordering service uses the etcdraft implementation.
As documented in this issue the CIFS filesystem type (here, implemented by SMB / Samba) does not properly support all of the filesystem operations necessary for the etcd WAL implementation to function safely. In particular, CIFS does not support the fsync()
operation for directories. Unless this issue is fixed in the upstream etcd project, or until the CIFS filesystem implementation supports this feature, you'll need to pick a different filesystem.
Plotting multive curves in R
You can do this using the plot
and lines
commands:
x <- 1:10
y1 <- 1:10
y2 <- 0.5 * y1
#Set up the plot
plot(range(x),range(c(y1,y2)),type="n")
#Create the lines
lines(x,y1)
lines(x,y2)
Related Topics
Update Specific Field in Text File in Specific Line
"Bad Interpreter" Error Message When Trying to Run Awk Executable
How to Properly Quote This Bash Pipeline for Watch
How to Start a Process That Won't End When My Ssh Session Ends
Shell Script Issue with Filenames Containing Spaces
Where Is $Path Set? Specifically Where Is My MAC Port Path Being Set
How to Merge Two Seperate - Yet Similar - Codebases into One Svn Rep
Which Capabilities Are Needed for Statx to Stop Giving Eperm
How to Inform Gcc to Not Use a Particular Register
Using Sed Replace Line in File with Another File
Script Produces Different Result When Executed by Bash Than by Cron
How to Find Files with Same Size
Why Doesn't Set -E Cause a Failure with 'False || False && True'
Ada Program Works in Linux But Not in Gps Windows 10
Fail If a Script Expects Input or Entering Passwords
Shuffle Output of Find with Fixed Seed
Command Substitution Doesn't Work in Script Text Passed Over Ssh