redirect QEMU window output to terminal running qemu

remove -serial stdio parameter add -nographic parameter and change the kernel parameter terminal = ttyS0 to console=ttyS0. This should do the trick. qemu -nographic -kernel ./bzImage -hda ./image.hda -append root=/dev/sda console=ttyS0 You may want to check the script I use for kernel development: https://github.com/arapov/wrap-qemukvm (it’s not very “production”, but you can find useful qemu cli … Read more

How to call MATLAB functions from the Linux command line?

MATLAB can run scripts, but not functions from the command line. This is what I do: File matlab_batcher.sh: #!/bin/sh matlab_exec=matlab X=”${1}(${2})” echo ${X} > matlab_command_${2}.m cat matlab_command_${2}.m ${matlab_exec} -nojvm -nodisplay -nosplash < matlab_command_${2}.m rm matlab_command_${2}.m Call it by entering: ./matlab_batcher.sh myfunction myinput

CMAKE_PREFIX_PATH doesn’t help CMake in finding Qt5

I installed the following missing packages: sudo apt-get install qtbase5-dev sudo apt-get install qtdeclarative5-dev Attaching any kind of prefix is not required now: CMakeList: :~/junk/qtquick_hello_cmake$ cat CMakeLists.txt cmake_minimum_required(VERSION 2.8.12) project(qtquick_hello_cmake) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) find_package(Qt5 COMPONENTS Quick Core REQUIRED) qt5_add_resources(RESOURCES qml.qrc) add_executable(${PROJECT_NAME} “main.cpp” “qml.qrc”) qt5_use_modules(${PROJECT_NAME} Quick Core) target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Quick) New output: :~/junk/qtquick_hello_cmake$ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)