Saturday, February 23, 2019
Thursday, February 21, 2019
Monday, February 18, 2019
Ubuntu tips
Hold down the control key to see the Ubuntu Unity keyboard shortcuts
Install Unity tweak tool to customize your Unity desktop env
sudo apt-get install unity-tweak-tool gnome-tweak-tool
unity-tweak-tool
Set the location and visibility of the dock
Install Unity tweak tool to customize your Unity desktop env
sudo apt-get install unity-tweak-tool gnome-tweak-tool
unity-tweak-tool
Set the location and visibility of the dock
cslc compilation
On Ubuntu
1. install Boost
Download boost
https://www.boost.org/doc/libs/1_62_0/more/getting_started/unix-variants.html
https://codeyarns.com/2017/01/24/how-to-build-boost-on-linux/
undefined reference to `intToString[abi:cxx11](int)'
https://stackoverflow.com/questions/39826917/boost-build-fails-c11-feature-checks-when-using-custom-gcc-4-x-or-5-x?noredirect=1&lq=1
https://docs.computecanada.ca/wiki/GCC_C%2B%2B_Dual_ABI
https://stackoverflow.com/questions/39826917/boost-build-fails-c11-feature-checks-when-using-custom-gcc-4-x-or-5-x?noredirect=1&lq=1
$ echo "using gcc : 5.4 : /usr/bin/g++-5 : -std=c++11 ;" > ./tools/build/src/user-config.jam
Let's assume for the sake of this example that:
- You want to build Boost with GCC 5.4
- The g++ 5.4 binary is at
/some/where/g++-5.4
- You've downloaded the Boost sources and unpacked them into
/path/to/sources/of/boost-1.62.0/
- (Perhaps) you want to install Boost to
/dest/path
- You have N cores (so you want to parallelize the build N-ways)
cd /path/to/sources/of/boost-1.62.0/
- Booststrap the build system by running
./bootstrap.sh
echo "using gcc : 5.4 : /usr/bin/g++-5 :
-std=c++11 ;" > ./tools/build/src/user-config.jam ./b2 --prefix=--prefix=/opt/local --toolset=gcc-5 -j 4 define=_GLIBCXX_USE_CXX11_ABI=0
./b2
--prefix=--prefix=/opt/local --toolset=gcc-5 -j 4
(N being the number of cores on your system)./b2 install --prefix=/opt/local
./b2 --prefix=--prefix=/opt/local --toolset=gcc-5 -j 4 define=_GLIBCXX_USE_CXX11_ABI=0
wget https://www-eu.apache.org/dist//xerces/c/KEYS
gpg --import < KEYS
wget https://www-eu.apache.org/dist//xerces/c/3/sources/xerces-c-3.2.2.tar.gz
// Compare the following sha256 to https://www-eu.apache.org/dist//xerces/c/3/sources/xerces-c-3.2.2.tar.gz
sha256sum xerces-c-3.2.2.tar.gz
dd6191f8aa256d3b4686b64b0544eea2b450d98b4254996ffdfe630e0c610413 xerces-c-3.2.2.tar.gz
cd xerces...
./configure
make
sudo make install
$ ls /usr/local/lib/
libxerces-c-3.2.so* libxerces-c.la* pkgconfig/ python3.5/
libxerces-c.a libxerces-c.so@ python2.7/
ELK Stack
https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns
https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html
https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04#set-up-filebeat-(add-client-servers)
https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04
https://www.digitalocean.com/community/tutorials/adding-logstash-filters-to-improve-centralized-logging
https://www.digitalocean.com/community/tutorials/how-to-map-user-location-with-geoip-and-elk-elasticsearch-logstash-and-kibana
https://github.com/kkos/oniguruma/blob/master/doc/RE
https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html
https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04#set-up-filebeat-(add-client-servers)
https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04
https://www.digitalocean.com/community/tutorials/adding-logstash-filters-to-improve-centralized-logging
https://www.digitalocean.com/community/tutorials/how-to-map-user-location-with-geoip-and-elk-elasticsearch-logstash-and-kibana
https://github.com/kkos/oniguruma/blob/master/doc/RE
Tuesday, February 12, 2019
BASH history time
https://askubuntu.com/questions/391082/how-to-see-time-stamps-in-bash-history
add to your .bash_profile
export HISTTIMEFORMAT="%d/%m/%y %T "
Subscribe to:
Posts (Atom)