Why I cannot login remote server with its root
# ssh root@192.168.122.96
root@192.168.122.96's password:
Permission denied, please try again.
Do according to [1].
NOTE: on Ubuntu, remember to restart ssh service like this “sudo restart ssh”.
# ssh root@192.168.122.96
root@192.168.122.96's password:
Permission denied, please try again.
Do according to [1].
NOTE: on Ubuntu, remember to restart ssh service like this “sudo restart ssh”.
How to view a file at a specific commit/revision in git? You can use git show to view a file’s content at a specific commit in git: https://www.systutorials.com/docs/linux/man/1-git-show/ $ git show REVISION:/path/to/file You can also save a copy by $ git show REVISION:/path/to/file >file.copy Read more: How to produce a patch file for a specific…
How to read the whole file content into a string in Go? You can use the ReadFile() func from the io/ioutil package in Go to read the whole file content: func ReadFile(filename string) ([]byte, error) For example, read file filepath content and check the error: if bytes, err := ioutil.ReadFile(filepath); err != nil { log.Fatal(“Failed…
Why does latex need to be executed 3 times like following? pdflatex main.tex bibtex main pdflatex main.tex pdflatex main.tex Copied from https://tex.stackexchange.com/questions/53235/why-does-latex-bibtex-need-three-passes-to-clear-up-all-warnings. The reason is as follows: 1, At the first latex run, all cite{…} arguments are written in the file document.aux. 2, At the bibtex run, this information is taken by bibtex and the…
What is the design of Snapshots in HDFS? This PDF documents the design of snapshot. Jing Zhao and Tsz-Wo Sze from Hortonworks gave a great talk on the design of HDFS snapshots. The slides can be downloaded at here. The development of snapshot is tracked by HDFS-2802. Read more: How to set the replication factor…
In Go lang, how to get an environment variable? To get an environment variable (e.g. “VAR”) in GO: import “os” import “fmt” fmt.Println(“VAR:”, os.Getenv(“VAR”)) Read more: How to get an environment variable in Python? How to set and get an environment variable in C on Linux? How to get an environment variable in Python? How…
There is a ‘/b/’ in the posts’ URLs on fclose.com . What does it mean? It originally means “blog” when the blogs are first set up. This site changes to not only a blog (one good example is this forum) over time. However, the URLs are kept unchanged and the ‘/b/’ has no special meanings…