In Fedora, you may have both
gpg2. The secret keys are stored in different ways.
which gpg gpg2
You might get:
If you do have both, run:
gpg2 --list-secret returns nothing. You can then export from gpg then import to gpg2 like so:
gpg --export-secret-keys -a > secret.asc
gpg2 --import secret.asc
Note that pass phrase is required to export.
Finally, verify the import with
You may encounter the error message:
Unknown IPC command. The quick fix is set the environment variable
Fedora Atomic is an operating system targets to containers. However, the documentation, for me, is very hard to read. In this document, I will share my adventure with Fedora Atomic, starting with post installation.
I have installed Fedora Atomic, now what?
Let’s say you want to install the
docker-compose for better understanding the directory structure of your new host; you also need to ping a host every hour; and of course, you want your shiny new docker application to be deploy to this machine.
Package Install with rpm-ostree
Read more of this post
It is quite confusing if you need to work with multiple, so I make following tables.
STARTUP/SHUTDOWN FILES of man page
INVOCATION of man page
Then the first one that is readable amongst:
tcsh does not seem care the interactive mode when start up. if environment
~/.login will run before
Startup and shutdown of man page
|First one that is readable amongst:
zsh has a nasty/convenient behaviour: it will set vi binding for you if one of environment
EDITOR has the command start with
If you don’t like this, run
bindkey -e to use the emac mode instead. Put it in your
We have automated tests that require runnable Google Chrome. Yet the Google Chrome kept crashing.
The first encountered is:
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
This one is easy, install
mesa-dri-drivers solved this.
ERROR:sandbox_linux.cc(338)] : InitializeSandbox() called with multiple threads in process gpu-process
My initial guess was SELinux, but journalctl returns nothing about it. After a few hours, I thought, how about firefox? Maybe it helps to set the SELinux and install the missing dependencies? And… Tada, both Firefox and Google Chrome worked. Eventually, I dug out that Google Chrome requires fonts to works. Specifically,
To sum up, following command worked for me:
sudo yum -y install mesa-dri-drivers liberation-fonts-common liberation-sans-fonts
Update for ChromeDriver user
If you are also use ChromeDriver. Be aware that ChromeDriver 2.31 and up requires
libc.so.6(GLIBC_2.18), yet RHEL 7 only provide
clamdscan is much faster to run than
clamscan, however, it requires
clamd which is a bit harder to setup, so I have some tips for troubleshooting:
ERROR: Could not lookup : Servname not supported for ai_socktype
Usually you should check the permission, especially whether the current user is in group
clamscan (the primary group of the clamd running user).
lstat() failed: Permission denied. ERROR
This is usually because
clamd running does not have the permission to run the is run as non-root user.
So you will need to enlist User
clamscan (the user that runs
clamd). You need to logout and login to make that change effective.
If it is still failed with the same error messsage, it is still possible that you are fooled by ACL permission. Use
getfact to check it. The reason? When you
ls, you get:
drwxr-xr-x+ 2 testuser testuser 40 Jul 17 15:19 /tmp/test
But your actual ACL (
getfacl /tmp/test)might look like:
getfacl: Removing leading '/' from absolute path names
# file: tmp/test
# owner: testuser
# group: testuer
The Clamav image is from http://www.stepbystep.com/how-to-integrate-clamav-into-pureftpd-for-virus-scanning-on-debian-squeeze-45061/
Google Trips does make you travel easier … if you make it’s life easier.
It automatically recognizes the email from big name booking websites (e.g. booking.com, airbnb) as well as airline. But if you order is from independent providers like many caravan parks, you are out of luck. You cannot even add them even you want to type everything yourself.
Google Trips also cannot capture the booking or reservation change via phone. You cannot blame them to not having this feature, but practical product should be able to allow user to make change.
Google Trips does have its strength beside the auto trips creation. It provides a easy way to add city (but not necessary add reservation) and downloads offline maps that include Google reviews on “things to do” and “food and drink”.
TripIt offers some kind of automation, but you have to mail to firstname.lastname@example.org, which is an extra step from Google Trips. Airlines and big name booking sites also got good support there: the important fields like date, confirmation number are prefilled. You do have to enter the information for smaller providers, but at least you CAN enter them. Not to mention that you can enter the cost in each item to track the total cost.
My advice? Install both of them. Use TripIt for handling the accommodation, airticket, car hire. And use Google Trips for local food and attraction.
- Paste the RSA private key (e,g. content of ~/.ssh/id_rsa) to Jenkins, like this:
- Ensure the
~/.ssh/known-hosts in Jenkins master has agent/slave host key. Like:
stdbuf -o0 -e0 ssh-keyscan -H &>> ~/.ssh/known_hosts
- Ensure the
~/.ssh/authorized_keys of Jenkins agent/slave has Jenkins master’s RSA key.
- (Optional) if you can access the terminal of Jenkins master, test the connection by using:
Because the issue Presence of ECDSA SSH keys breaks SSH credentials plugin seems to affect the Jenkins masters that have both ECDSA and RSA.
I have encountered the following error message when I was trying to connect Jenkins slave after plugin update:
[SSH] WARNING: No entry currently exists in the Known Hosts file for this host. Connections will be denied until this new host and its associated key is added to the Known Hosts file.
Key exchange was not finished, connection is closed.
java.io.IOException: There was a problem while connecting to xxx.xxx.xxx.xxx:22
I have tried to connect using
ssh in console, it connected successfully, but Jenkins still refuse to connect.
Then I discovered that, if I provided the RSA Host key, Jenkins can now connected to slaves.
I guess the reason is ssh just use the known host key to determine whether it is known, and be able to fallback to RSA for actual authentication. On the other hand, Jenkins does not seem to have the fallback. You given RSA identity, then Jenkins expect RSA in
The issue is already filed as JENKINS-42959 Failed known_hosts verification for SSH agent. In the meantime you can use following workaround:
stdbuf -o0 -e0 ssh-keyscan -H <host> &>> ~/.ssh/known_hosts
stdbuf here is for printing the stdout and stderr as the order of time they appear, just like what you would see in console. Otherwise the stderr will go first and then stdout.
我把手機 reset 後，開始了漫長的回復過程。其他的軟體，從遊戲到Facebook、line都是只給帳密就什麼都恢復了…除了微信。
（我錯了，我不應該假設 Facebook 能，作為競爭對手的微信也能)
（雖然 Facebook 用戶更多，可是騰訊的工資和設備比臉書較便宜（應該吧），還是應該體諒人家）
(This is not a bug, it is a feature!)
本以為沒招了，眼睛瞄到，嘿，還有 WeChat Team 在啊，頓時躁動的心獲得解脫。馬上把
「我希望微信能像 Faceobook 和 line 一樣，手機 reset 後還能撈回群裡的歷史資料。」
這段貼給 WeChat Team。人家是專業的，必然能給專業的答案。
我沒看錯吧，要撈微信群的資料居然要動用 Facebook? 這跟當年問 iphone 誰是世界上最好的手機時，它推薦 三星手機 是一樣的無私啊。要是能用 Facebook 救微信的資料，那也是功德無量。既然這樣那還不趕快照著步驟做？
- 設置 -> 通用 ，可是我就是沒找著安卓上這個設定在那。查了一下，原來是蘋果的設置方法。往好處想，看來微信沒有偷查你是安卓還是蘋果，
- 雖然我對（轻触此处）不能直接連到 facebookapp略有微詞，不過瑕不掩瑜。可是我搜了半天，愣沒搜到 facebookapp 或 facebook 。這又使我對微信的嚴謹感到敬佩：你看，沒照步驟來，人家就不理你了，活該。