2018年11月29日 星期四
Add, remove, edit, backup, restore Stored User Names and Passwords in Windows 10
rundll32.exe keymgr.dll,KRShowKeyMgr
2018年11月27日 星期二
2018年11月16日 星期五
Mount Google Cloud Storage in Linux
How to mount cloud storage (bucket)
If not in GCP, Setting Up Authentication for Server to Server Production Applications
Refer to https://cloud.google.com/docs/authentication/production#auth-cloud-app-engine-python
1. Generate service account credentials (a json file)
2. Set GOOGLE_APPLICATION_CREDENTIALS environment variable
# export GOOGLE_APPLICATION_CREDENTIALS="[PATH]"
Install FUSE
1. Configure the gcsfuse using yum repo:
# vi /etc/yum.repos.d/gcsfuse.repo
[gcsfuse]
name=gcsfuse (packages.cloud.google.com)
baseurl=https://packages.cloud.google.com/yum/repos/gcsfuse-el7-x86_64
enabled=1
gpgcheck=0
repo_gpgcheck=0
2. Install gcsfuse:
# yum install gcsfuse
3. To mount a bucket using gcsfuse over an existing directory /path/to/mount, invoke it like this:
# gcsfuse my-bucket /path/to/mount
or
# gcsfuse --implicit-dirs my-bucket /path/to/mount
Umount ----
# fusermount -u /path/to/mount
If not in GCP, Setting Up Authentication for Server to Server Production Applications
Refer to https://cloud.google.com/docs/authentication/production#auth-cloud-app-engine-python
1. Generate service account credentials (a json file)
2. Set GOOGLE_APPLICATION_CREDENTIALS environment variable
# export GOOGLE_APPLICATION_CREDENTIALS="[PATH]"
Install FUSE
1. Configure the gcsfuse using yum repo:
# vi /etc/yum.repos.d/gcsfuse.repo
[gcsfuse]
name=gcsfuse (packages.cloud.google.com)
baseurl=https://packages.cloud.google.com/yum/repos/gcsfuse-el7-x86_64
enabled=1
gpgcheck=0
repo_gpgcheck=0
2. Install gcsfuse:
# yum install gcsfuse
3. To mount a bucket using gcsfuse over an existing directory /path/to/mount, invoke it like this:
# gcsfuse my-bucket /path/to/mount
or
# gcsfuse --implicit-dirs my-bucket /path/to/mount
Umount ----
# fusermount -u /path/to/mount
2018年1月15日 星期一
如何以系統(SYSTEM)帳號MAP網路磁碟機
1. 先下載pstools
2. 執行pstools中的psexec如下:
psexec -i -s cmd.exe
.......
此時會開啟cmd的command window. 此時echo %USERNAME%則會出現主機名稱而不是登入者名稱
3. 在新視窗中以 net use X: \\xxxxx\share_name /User:user_name password
mappping network device
2. 執行pstools中的psexec如下:
psexec -i -s cmd.exe
.......
此時會開啟cmd的command window. 此時echo %USERNAME%則會出現主機名稱而不是登入者名稱
3. 在新視窗中以 net use X: \\xxxxx\share_name /User:user_name password
mappping network device
訂閱:
文章 (Atom)