terça-feira, 28 de junho de 2016

Openstreetmap tags

Tags para mapeamento do openstreetmap


open_hours = * 
Abre de segunda a sexta das 08 às 22 e sábado de 08 as 18
open_hours = Mo-Fr 08:00-22:00, Sa 08:00-18:00 
Mo Tu We Th Fr Sa Su 

Se aberto 24h todo dia
open_hours = 24/7

melhor usar assim para 24 horas mas não abre todo dia
opening_hours=Mo-Su 00:00-24:00; Mo 15:00-16:00 off

sexta-feira, 24 de junho de 2016

terça-feira, 21 de junho de 2016

glxgears - Com e Sem Vblank 60 fps

segunda-feira, 20 de junho de 2016

compilar o glmark2 no Debian

Comandos:


git clone https://github.com/glmark2/glmark2.git
cd glmark2/
./waf configure --with-flavors=x11-gl
./waf build -j 4
./waf install
glmark2




Detectar a distribuição Debian em uso - declarando variavel no shell

Comandos:
Acesse: http://dclarks.blogspot.com.br/2016/06/detectar-distribuicao-debian-em-uso.html


domingo, 19 de junho de 2016

converter m4a mp3 lote batch - renomeando corretamente

find . -name "*.m4a" -exec bash -c 'ffmpeg -i "{}" -y -acodec libmp3lame -ab 50k "${0/.m4a}.mp3"' {} \;

Renomear partições

e2label /dev/sda10 root
e2label /dev/sda5 Incoming

sábado, 18 de junho de 2016

Tentativa de Compilar o MAPS.ME

Maps.me compiling failure
Mapsme
omim


Error on Debian Testing 
clang-3.6

CONFIG=gtool omim/tools/unix/build_omim.sh -cro

Deu erro, why?

fatal error: error in backend: IO failure on output stream.
Makefile:12826: recipe for target '../out/release/tmp/generator/search_index_builder.o' failed
make[1]: *** [../out/release/tmp/generator/search_index_builder.o] Error 1
make[1]: ** Esperando que outros processos terminem.
fatal error: error in backend: IO failure on output stream.
Makefile:14002: recipe for target '../out/release/tmp/generator/tesselator.o' failed
make[1]: *** [../out/release/tmp/generator/tesselator.o] Error 1
fatal error: error in backend: IO failure on output stream.
Makefile:13886: recipe for target '../out/release/tmp/generator/statistics.o' failed
make[1]: *** [../out/release/tmp/generator/statistics.o] Error 1
fatal error: error in backend: IO failure on output stream.
Makefile:10974: recipe for target '../out/release/tmp/generator/osm_source.o' failed
make[1]: *** [../out/release/tmp/generator/osm_source.o] Error 1
make[1]: Leaving directory '/opt/omim-build-release/generator'
Makefile:334: recipe for target 'sub-generator-make_first' failed
make: *** [sub-generator-make_first] Error 2

Apaguei o diretório e rodei os comandos

git clone --depth=1 --recursive https://github.com/mapsme/omim.git

cd omim && \
echo | ./configure.sh && \
cd ../
CONFIG=gtool omim/tools/unix/build_omim.sh -cro

Deu erro de novo

[ 78%] Linking CXX executable osrm-mapsme
CMakeFiles/osrm-mapsme.dir/mapsme/converter.cpp.o: In function `mapsme::GenerateRoutingIndex(std::__cxx11::basic_string, std::allocator > const&)::{lambda(bool)#2}::operator()(bool) const':
converter.cpp:(.text+0x2161): undefined reference to `my::OnAssertFailed[abi:cxx11]'
converter.cpp:(.text+0x22e3): undefined reference to `my::OnAssertFailed[abi:cxx11]'
converter.cpp:(.text+0x240b): undefined reference to `my::LogMessage[abi:cxx11]'
converter.cpp:(.text+0x24fb): undefined reference to `my::OnAssertFailed[abi:cxx11]'
CMakeFiles/osrm-mapsme.dir/mapsme/converter.cpp.o: In function `mapsme::GenerateRoutingIndex(std::__cxx11::basic_string, std::allocator > const&)':
converter.cpp:(.text+0x334c): undefined reference to `my::LogMessage[abi:cxx11]'
converter.cpp:(.text+0x5269): undefined reference to `my::OnAssertFailed[abi:cxx11]'
converter.cpp:(.text+0x540d): undefined reference to `my::OnAssertFailed[abi:cxx11]'
converter.cpp:(.text+0x5ffa): undefined reference to `my::LogMessage[abi:cxx11]'
converter.cpp:(.text+0x63b0): undefined reference to `my::LogMessage[abi:cxx11]'
converter.cpp:(.text+0x6bbe): undefined reference to `my::LogMessage[abi:cxx11]'
collect2: error: ld returned 1 exit status
CMakeFiles/osrm-mapsme.dir/build.make:164: recipe for target 'osrm-mapsme' failed
make[2]: *** [osrm-mapsme] Error 1
CMakeFiles/Makefile2:530: recipe for target 'CMakeFiles/osrm-mapsme.dir/all' failed
make[1]: *** [CMakeFiles/osrm-mapsme.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


usando o comando:

git pull origin master omim
qmake omim.pro -spec linux-clang-libc++ CONFIG+=debug
e
make -j 4
ERROR:

clang++ -c -pipe -stdlib=libc++ -fdata-sections -ffunction-sections -g -fPIC -std=c++11 -Wall -W -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter -Wno-unused-local-typedef -Wno-sign-conversion -Werror=return-type -D_REENTRANT -DDEBUG -D_DEBUG -DQT_CORE_LIB -I. -I.. -I../3party/boost -I../3party/glm -I../3party/gflags/src -I../3party/osrm/osrm-backend/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I../out/debug/tmp/generator -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang-libc++ -o ../out/debug/tmp/generator/osm2type.o osm2type.cpp
fatal error: error in backend: IO failure on output stream.
Makefile:18736: recipe for target '../out/debug/tmp/search/rank_table_cache.o' failed
make[1]: *** [../out/debug/tmp/search/rank_table_cache.o] Error 1
make[1]: Leaving directory '/opt/omim/search'
Makefile:267: recipe for target 'sub-search-make_first' failed
make: *** [sub-search-make_first] Error 2
clang++ -c -pipe -stdlib=libc++ -fdata-sections -ffunction-sections -g -fPIC -std=c++11 -Wall -W -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter -Wno-unused-local-typedef -Wno-sign-conversion -Werror=return-type -D_REENTRANT -DDEBUG -D_DEBUG -I. -I.. -I../3party/boost -I../3party/glm -I../3party/freetype/include -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang-libc++ -o ../out/debug/tmp/drape/gpu_buffer.o gpu_buffer.cpp
fatal error: error in backend: IO failure on output stream.
Makefile:8061: recipe for target '../out/debug/tmp/generator/osm2meta.o' failed
make[1]: *** [../out/debug/tmp/generator/osm2meta.o] Error 1
make[1]: ** Esperando que outros processos terminem.
clang++ -c -pipe -stdlib=libc++ -fdata-sections -ffunction-sections -g -fPIC -std=c++11 -Wall -W -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter -Wno-unused-local-typedef -Wno-sign-conversion -Werror=return-type -D_REENTRANT -DDEBUG -D_DEBUG -I. -I.. -I../3party/boost -I../3party/glm -I../3party/freetype/include -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang-libc++ -o ../out/debug/tmp/drape/gpu_program.o gpu_program.cpp
fatal error: error in backend: IO failure on output stream.
Makefile:6383: recipe for target '../out/debug/tmp/drape/glyph_manager.o' failed
make[1]: *** [../out/debug/tmp/drape/glyph_manager.o] Error 1
make[1]: ** Esperando que outros processos terminem.
fatal error: error in backend: IO failure on output stream.
Makefile:6575: recipe for target '../out/debug/tmp/drape/gpu_program.o' failed
make[1]: *** [../out/debug/tmp/drape/gpu_program.o] Error 1
make[1]: Leaving directory '/opt/omim/drape'
Makefile:428: recipe for target 'sub-drape-make_first' failed
make: *** [sub-drape-make_first] Error 2
fatal error: error in backend: IO failure on output stream.
Makefile:8649: recipe for target '../out/debug/tmp/generator/osm2type.o' failed
make[1]: *** [../out/debug/tmp/generator/osm2type.o] Error 1
make[1]: Leaving directory '/opt/omim/generator'
Makefile:367: recipe for target 'sub-generator-make_first' failed
make: *** [sub-generator-make_first] Error 2

20/06/2016
Alguma ideia???
Any ideas?

domingo, 12 de junho de 2016

osrm

Os comando estão em negrito




#!/bin/bash
###########################
# Builds one specific MWM #
###########################

# Prerequisites:
#
# - The script should be placed in omim/tools/unix, or supply OMIM_PATH with path to omim repo
# - Data path with classificators etc. should be present in $OMIM_PATH/data
#     Inside it should be at least: categories.txt, classificator.txt, types.txt, drules_proto.bin
# - Compiled generator_tool somewhere in omim/../build/out/whatever, or supply BUILD_PATH
# - For routing, compiled OSRM binaries in omim/../osrm-backend-release, or supply OSRM_BUILD_PATH
# - Target path for mwm is the same as o5m path, or supply TARGET
# - Set TMPDIR variable if you have no space in the default temporary location.

# Cross-borders routing index is not created, since we don't assume
# the source file to be one of the pre-defined countries.




apt-get install git osmium-tool libbz2-dev libboost-all-dev libtbb-dev liblua5.2-dev libluabind-dev libstxxl-dev libxml2 libxml2-dev libosmpbf-dev libbz2-dev libprotobuf-dev
Baixar o maps.me
git clone --recursive https://github.com/mapsme/omim.git

cd omim
sh configure.sh


Baixar o osrm-backend dentro da pasta do maps.me (omim)

git clone https://github.com/Project-OSRM/osrm-backend.git
cd osrm-backend


mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
-- Building on a 64 bit system
-- Configuring OSRM in release mode
-- LTO working
-- Using gcc specific binutils for LTO.
-- Setting linker optimizations
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   iostreams
--   program_options
--   regex
--   system
--   thread
--   chrono
--   atomic
-- Found Intel TBB
-- TBB interface version: 8006
-- Looking for Luabind...
-- Found Luabind: /usr/lib/libluabind.so  
-- Found Luabind: /usr/lib/libluabind.so
-- Found Lua52: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so  
-- Looking for LuaJIT 5.2
-- Could NOT find LUAJIT (missing:  LUAJIT_LIBRARIES LUAJIT_INCLUDE_DIR) 
-- Performing Test LUABIND_WORKS
-- Performing Test LUABIND_WORKS - Success
-- Luabind/Lua5.2 combination working with /usr/lib/x86_64-linux-gnu/liblua5.2.so
-- Looking for STXXL...
-- Found STXXL: /usr/lib/libstxxl.so  
-- Found STXXL: /usr/lib/libstxxl.so
-- OpenMP support found. Linking just in case for stxxl
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   unit_test_framework
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/omim/osrm-backend/build

cmake --build .
Scanning dependencies of target EXTRACTOR
[  1%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/graph_compressor.cpp.o
[  3%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/edge_based_graph_factory.cpp.o
[  4%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_map.cpp.o
[  6%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_parser.cpp.o
[  6%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/compressed_edge_container.cpp.o
[  7%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/suffix_table.cpp.o
[  9%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/raster_source.cpp.o
[ 11%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/scripting_environment.cpp.o
[ 12%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor.cpp.o
[ 12%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor_callbacks.cpp.o
[ 14%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extraction_containers.cpp.o
[ 15%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_classification.cpp.o
[ 17%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_analysis.cpp.o
[ 19%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection.cpp.o
[ 20%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_generator.cpp.o
[ 20%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/motorway_handler.cpp.o
[ 22%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_scenario_three_way.cpp.o
[ 23%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/roundabout_handler.cpp.o
[ 25%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/classification_data.cpp.o
[ 26%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_handler.cpp.o
[ 26%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_handler.cpp.o
[ 26%] Built target EXTRACTOR
Scanning dependencies of target FingerPrintConfigure
[ 28%] Configuring revision fingerprint
[ 28%] Built target FingerPrintConfigure
Scanning dependencies of target UTIL
[ 28%] Building CXX object CMakeFiles/UTIL.dir/src/util/fingerprint.cpp.o
[ 30%] Building CXX object CMakeFiles/UTIL.dir/src/util/hilbert_value.cpp.o
[ 31%] Building CXX object CMakeFiles/UTIL.dir/src/util/assert.cpp.o
[ 33%] Building CXX object CMakeFiles/UTIL.dir/src/util/name_table.cpp.o
[ 34%] Building CXX object CMakeFiles/UTIL.dir/src/util/coordinate.cpp.o
[ 36%] Building CXX object CMakeFiles/UTIL.dir/src/util/exception.cpp.o
[ 36%] Building CXX object CMakeFiles/UTIL.dir/src/util/coordinate_calculation.cpp.o
[ 38%] Building CXX object CMakeFiles/UTIL.dir/src/util/simple_logger.cpp.o
[ 39%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/entry_class.cpp.o
[ 41%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/bearing_class.cpp.o
[ 41%] Built target UTIL
Scanning dependencies of target osrm_extract
[ 42%] Linking CXX static library libosrm_extract.a
[ 42%] Built target osrm_extract
Scanning dependencies of target ENGINE
[ 44%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/polyline_compressor.cpp.o
[ 46%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/douglas_peucker.cpp.o
[ 47%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/engine_config.cpp.o
[ 49%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/search_engine_data.cpp.o
[ 49%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/hint.cpp.o
[ 50%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/engine.cpp.o
[ 52%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/post_processing.cpp.o
/opt/omim/osrm-backend/src/engine/guidance/post_processing.cpp: In function ‘std::vector osrm::engine::guidance::postProcess(std::vector)’:
/opt/omim/osrm-backend/src/engine/guidance/post_processing.cpp:545:17: warning: variable ‘last_valid_instruction’ set but not used [-Wunused-but-set-variable]
     std::size_t last_valid_instruction = 0;
                 ^
[ 53%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_steps.cpp.o
[ 55%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_overview.cpp.o
[ 57%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_route.cpp.o
[ 57%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/trip.cpp.o
[ 58%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/table.cpp.o
[ 60%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/tile.cpp.o
[ 61%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/nearest.cpp.o
[ 63%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/viaroute.cpp.o
[ 63%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/match.cpp.o
[ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/api/json_factory.cpp.o
[ 65%] Built target ENGINE
Scanning dependencies of target STORAGE
[ 66%] Building CXX object CMakeFiles/STORAGE.dir/src/storage/storage.cpp.o
[ 68%] Building CXX object CMakeFiles/STORAGE.dir/src/storage/storage_config.cpp.o
[ 68%] Built target STORAGE
Scanning dependencies of target osrm
[ 69%] Building CXX object CMakeFiles/osrm.dir/src/osrm/osrm.cpp.o
[ 69%] Linking CXX static library libosrm.a
[ 69%] Built target osrm
Scanning dependencies of target osrm_store
[ 69%] Linking CXX static library libosrm_store.a
[ 69%] Built target osrm_store
Scanning dependencies of target osrm-datastore
[ 71%] Building CXX object CMakeFiles/osrm-datastore.dir/src/tools/store.cpp.o
[ 73%] Linking CXX executable osrm-datastore
[ 73%] Built target osrm-datastore
Scanning dependencies of target CONTRACTOR
[ 73%] Building CXX object CMakeFiles/CONTRACTOR.dir/src/contractor/contractor.cpp.o
[ 73%] Built target CONTRACTOR
Scanning dependencies of target osrm-extract
[ 74%] Building CXX object CMakeFiles/osrm-extract.dir/src/tools/extract.cpp.o
[ 74%] Linking CXX executable osrm-extract
/usr/include/boost/function/function_template.hpp: In function ‘invoke’:
/usr/include/boost/spirit/home/qi/detail/alternative_function.hpp:107:13: warning: ‘MEM[(internal_type *)&val + 12B]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             val;
             ^
[ 74%] Built target osrm-extract
Scanning dependencies of target SERVER
[ 76%] Building CXX object CMakeFiles/SERVER.dir/src/server/request_parser.cpp.o
[ 77%] Building CXX object CMakeFiles/SERVER.dir/src/server/service_handler.cpp.o
[ 79%] Building CXX object CMakeFiles/SERVER.dir/src/server/connection.cpp.o
[ 80%] Building CXX object CMakeFiles/SERVER.dir/src/server/request_handler.cpp.o
[ 80%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/route_service.cpp.o
[ 82%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/table_service.cpp.o
[ 84%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/nearest_service.cpp.o
[ 85%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/match_service.cpp.o
[ 87%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/tile_service.cpp.o
[ 87%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/trip_service.cpp.o
[ 88%] Building CXX object CMakeFiles/SERVER.dir/src/server/http/reply.cpp.o
[ 90%] Building CXX object CMakeFiles/SERVER.dir/src/server/api/url_parser.cpp.o
[ 92%] Building CXX object CMakeFiles/SERVER.dir/src/server/api/parameters_parser.cpp.o
[ 92%] Built target SERVER
Scanning dependencies of target osrm_contract
[ 93%] Linking CXX static library libosrm_contract.a
[ 93%] Built target osrm_contract
Scanning dependencies of target osrm-contract
[ 95%] Building CXX object CMakeFiles/osrm-contract.dir/src/tools/contract.cpp.o
[ 96%] Linking CXX executable osrm-contract
[ 96%] Built target osrm-contract
Scanning dependencies of target osrm-routed
[ 98%] Building CXX object CMakeFiles/osrm-routed.dir/src/tools/routed.cpp.o
[100%] Linking CXX executable osrm-routed
[100%] Built target osrm-routed


cmake --build . --target install

[ 26%] Built target EXTRACTOR
[ 28%] Configuring revision fingerprint
-- Fingerprint unchanged, not regenerating
[ 28%] Built target FingerPrintConfigure
[ 41%] Built target UTIL
[ 42%] Built target osrm_extract
[ 65%] Built target ENGINE
[ 68%] Built target STORAGE
[ 69%] Built target osrm
[ 69%] Built target osrm_store
[ 73%] Built target osrm-datastore
[ 73%] Built target CONTRACTOR
[ 74%] Built target osrm-extract
[ 92%] Built target SERVER
[ 93%] Built target osrm_contract
[ 96%] Built target osrm-contract
[100%] Built target osrm-routed
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/include/osrm/engine/status.hpp
-- Installing: /usr/local/include/osrm/engine/engine_config.hpp
-- Installing: /usr/local/include/osrm/engine/hint.hpp
-- Installing: /usr/local/include/osrm/engine/bearing.hpp
-- Installing: /usr/local/include/osrm/engine/phantom_node.hpp
-- Installing: /usr/local/include/osrm/util/coordinate.hpp
-- Installing: /usr/local/include/osrm/util/json_container.hpp
-- Installing: /usr/local/include/osrm/util/typedefs.hpp
-- Installing: /usr/local/include/osrm/util/strong_typedef.hpp
-- Installing: /usr/local/include/osrm/storage/storage.hpp
-- Installing: /usr/local/include/osrm/storage/storage_config.hpp
-- Installing: /usr/local/include/osrm/extractor/extractor.hpp
-- Installing: /usr/local/include/osrm/extractor/extractor_config.hpp
-- Installing: /usr/local/include/osrm/extractor/travel_mode.hpp
-- Installing: /usr/local/include/osrm/contractor/contractor.hpp
-- Installing: /usr/local/include/osrm/contractor/contractor_config.hpp
-- Installing: /usr/local/include/osrm/route_parameters.hpp
-- Installing: /usr/local/include/osrm/tile_parameters.hpp
-- Installing: /usr/local/include/osrm/osrm.hpp
-- Installing: /usr/local/include/osrm/engine_config.hpp
-- Installing: /usr/local/include/osrm/nearest_parameters.hpp
-- Installing: /usr/local/include/osrm/bearing.hpp
-- Installing: /usr/local/include/osrm/coordinate.hpp
-- Installing: /usr/local/include/osrm/table_parameters.hpp
-- Installing: /usr/local/include/osrm/match_parameters.hpp
-- Installing: /usr/local/include/osrm/storage_config.hpp
-- Installing: /usr/local/include/osrm/osrm_fwd.hpp
-- Installing: /usr/local/include/osrm/status.hpp
-- Installing: /usr/local/include/osrm/json_container.hpp
-- Installing: /usr/local/include/osrm/trip_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/route_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/tile_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/nearest_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/table_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/match_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/trip_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/base_parameters.hpp
-- Installing: /usr/local/include/variant/recursive_wrapper.hpp
-- Installing: /usr/local/include/variant/variant.hpp
-- Installing: /usr/local/include/variant/optional.hpp
-- Installing: /usr/local/include/variant/variant_io.hpp
-- Installing: /usr/local/bin/osrm-extract
-- Installing: /usr/local/bin/osrm-contract
-- Installing: /usr/local/bin/osrm-datastore
-- Installing: /usr/local/bin/osrm-routed
-- Installing: /usr/local/lib/libosrm.a
-- Installing: /usr/local/lib/libosrm_extract.a
-- Installing: /usr/local/lib/libosrm_contract.a
-- Installing: /usr/local/lib/libosrm_store.a
-- Installing: /usr/local/lib/pkgconfig/libosrm.pc



sábado, 11 de junho de 2016

apt com barra de progresso


echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar


apt update ; apt ugrade
apt install pacote
apt install cowsay


François Marier - Feeding the Cloud/ posts/

Testar

""
As part of regular operating system hygiene, I run a cron job which updates package metadata and looks for obsolete packages and configuration files.
While there is already some easily available information on how to purge unneeded or obsolete packages and how to clean up config files properly in maintainer scripts, the guidance on how to delete obsolete config files is not easy to find and somewhat incomplete.
These are the obsolete conffiles I started with:
$ dpkg-query -W -f='${Conffiles}\n' | grep obsolete
 /etc/apparmor.d/abstractions/evince ae2a1e8cf5a7577239e89435a6ceb469 obsolete
 /etc/apparmor.d/tunables/ntpd 5519e4c01535818cb26f2ef9e527f191 obsolete
 /etc/apparmor.d/usr.bin.evince 08a12a7e468e1a70a86555e0070a7167 obsolete
 /etc/apparmor.d/usr.sbin.ntpd a00aa055d1a5feff414bacc89b8c9f6e obsolete
 /etc/bash_completion.d/initramfs-tools 7eeb7184772f3658e7cf446945c096b1 obsolete
 /etc/bash_completion.d/insserv 32975fe14795d6fce1408d5fd22747fd obsolete
 /etc/dbus-1/system.d/com.redhat.NewPrinterNotification.conf 8df3896101328880517f530c11fff877 obsolete
 /etc/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf d81013f5bfeece9858706aed938e16bb obsolete

To get rid of the /etc/bash_completion.d/ files, I first determined what packages they were registered to:
$ dpkg -S /etc/bash_completion.d/initramfs-tools
initramfs-tools: /etc/bash_completion.d/initramfs-tools
$ dpkg -S /etc/bash_completion.d/insserv
initramfs-tools: /etc/bash_completion.d/insserv

and then followed Paul Wise's instructions:
$ rm /etc/bash_completion.d/initramfs-tools /etc/bash_completion.d/insserv
$ apt install --reinstall initramfs-tools insserv

For some reason that didn't work for the /etc/dbus-1/system.d/ files and I had to purge and reinstall the relevant package:
$ dpkg -S /etc/dbus-1/system.d/com.redhat.NewPrinterNotification.conf
system-config-printer-common: /etc/dbus-1/system.d/com.redhat.NewPrinterNotification.conf
$ dpkg -S /etc/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf
system-config-printer-common: /etc/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf

$ apt purge system-config-printer-common
$ apt install system-config-printer

The files in /etc/apparmor.d/ were even more complicated to deal with because purging the packages that they come from didn't help:
$ dpkg -S /etc/apparmor.d/abstractions/evince
evince: /etc/apparmor.d/abstractions/evince
$ apt purge evince
$ dpkg-query -W -f='${Conffiles}\n' | grep obsolete
 /etc/apparmor.d/abstractions/evince ae2a1e8cf5a7577239e89435a6ceb469 obsolete
 /etc/apparmor.d/usr.bin.evince 08a12a7e468e1a70a86555e0070a7167 obsolete

I was however able to get rid of them by also purging the apparmor profile packages that are installed on my machine:
$ apt purge apparmor-profiles apparmor-profiles-extra evince ntp
$ apt install apparmor-profiles apparmor-profiles-extra evince ntp

Not sure why I had to do this but I suspect that these files used to be shipped by one of the apparmor packages and then eventually migrated to the evince and ntp packages directly and dpkg got confused.

""

sábado, 4 de junho de 2016

Parâmetro ao Kernel acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); - Solved

Jun  3 09:07:38 TA880 kernel: [    0.233691] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
Jun  3 09:07:38 TA880 kernel: [    1.034521] fjes: module verification failed: signature and/or required key missing - tainting kernel
Jun  3 09:07:38 TA880 kernel: [    7.219632] sp5100_tco: failed to find MMIO address, giving up.


Parâmetros ao Kernel no boot
https://www.kernel.org/doc/Documentation/kernel-parameters.txt


idle=poll
idle=halt
processor.nocst=1
processor.max_cstate=1


processor.nocst=1 worked -- yay, that's a big clue.

O erro sumiu com o parâmetro: pci=noacpi

vim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet pci=noacpi"

Atualizar o grub com as novas opções de boot
update-grub

este erro foi corrigido: acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM 

quarta-feira, 1 de junho de 2016

dmesg

[ 5624.944722] PM: Finishing wakeup.
[ 5624.944723] Restarting tasks ... done.
[ 5625.893461] r8169 0000:02:00.0 enp2s0: link up
[ 5632.336552] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 5632.338274] ata4.00: configured for UDMA/133
[ 5777.990198] NVRM: GPU at PCI:0000:01:00: GPU-990d6542-9b56-ec49-604b-ba6bbd5293a5
[ 5777.990203] NVRM: Xid (PCI:0000:01:00): 8, Channel 00000008
[ 5779.993435] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context



Jun  1 12:26:56 TA880 kernel: [ 5777.990198] NVRM: GPU at PCI:0000:01:00: GPU-990d6542-9b56-ec49-604b-ba6bbd5293a5
Jun  1 12:26:56 TA880 kernel: [ 5777.990203] NVRM: Xid (PCI:0000:01:00): 8, Channel 00000008
Jun  1 12:26:58 TA880 kernel: [ 5779.993435] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Jun  1 12:30:49 TA880 kernel: [    0.000000] Linux version 4.5.0-2-amd64 (debian-kernel@lists.debian.org) (gcc version 5.3.1 20160509 (Debian 5.3.1-19) ) #1 SMP Debian 4.5.4-1 (2016-05-16)

Jun  1 12:30:49 TA880 systemd-udevd[287]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:12.0/usb3/3-3 3 2': No such file or directory
Jun  1 12:30:49 TA880 systemd-udevd[296]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:13.2/usb2/2-1 2 2': No such file or directory





1. purge todos os pacotes nouveau

2. criar e adicionar a lista abaixo para /etc/modprobe.d/blacklist.conf

blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

3. Refazer a imagem de boot (sudo update-initramfs -u)



COM ISSO NÃO APARECEU NADA DE ERRO NO DMESG.
NADA DE MENSAGEM COM FAILED  NEM NVRM.