How to Use a Samba Server Location for Gopath

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



Leave a reply



Submit