//! HP Server //* WINDOWS:  //** https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_e72e09a823154db2bd8dc779aa ---- ! VSCode * UbuntuにVSCodeをインストールする3つの方法 ** https://qiita.com/yoshiyasu1111/items/e21a77ed68b52cb5f7c8 curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' sudo apt install apt-transport-https sudo apt update sudo apt install code ! RasPi * https://pi.processing.org/download/ ! Ubuntu * Visual Studio Code on Linux ** https://code.visualstudio.com/docs/setup/linux * ATOM install ** https://www.bioerrorlog.work/entry/install-atom-on-ubuntu * Ubuntuで不要になったリポジトリを削除する ** http://vild.hatenablog.com/entry/2019/06/02/141430 $ sudo add-apt-repository ppa:graphics-drivers/ppa $ sudo add-apt-repository --remove ppa:graphics-drivers/ppa ! bash prompt (with line feed) PS1="[\t]\u@\H:\w\n$ " ! MicroPython esptool.py --chip esp32 --port COM3 --baud 460800 write_flash -z 0x1000 esp32-20191002-v1.11-381-g4102320e9.bin ! MSYS2 default prompt PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\n\$ ' ! gnome-terminal が起動しない問題 (on Linux Mint) * https://myn.meganecco.org/1423392120.html % /usr/lib/gnome-terminal/gnome-terminal-server & % gnome-terminal & ---- {{amazon 4756146791}} ---- * C:\VMware\LinuxMint18.1 (2018.5.31) ** 13.8GB * C:\VMware\ubujwu ** 14.6GB (base) C:\Windows\system32>anaconda -V anaconda Command line client (version 1.6.9) (base) C:\Windows\system32>python --version Python 3.6.4 :: Anaconda, Inc. * https://helpx.adobe.com/jp/acrobat/kb/cq05201026.html ---- C:\usr\MinGW\bin C:\Users\yokotay>gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=c:/usr/mingw/bin/../libexec/gcc/mingw32/5.3.0/lto-wrapper.exe Target: mingw32 Configured with: ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads - -with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls : (reconfigured) ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls Thread model: win32 gcc version 5.3.0 (GCC) C:\Users\yokotay>gcc --version gcc (GCC) 5.3.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. C:\Users\yokotay>echo %PATH% C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\ImageMagick-6.8.6-Q16;C:\Program Files (x86)\MEGA6;C:\ProgramData\Oracle\Java\javapath;C:\usr\Perl64\site\bin;C:\usr\Perl64\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio 2010\OEM\AudioCore\;C:\usr\MinGW\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files\opencv\build\x64\vc14\bin;C:\Program Files (x86)\Skype\Phone\;C:\Applied Biosystems\SeqScanner\bin;C:\usr\Python;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\QuickTime\QTSystem\;C:\texlive\2013\bin\win32;C:\Program Files\Java\jdk1.8.0_181\bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\1041;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VDT;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcpackages;C:\Windows\Microsoft.NET\Framework64\v2.0.50727;C:\Windows\Microsoft.NET\Framework64\v3.5;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\usr\MinGW\lib;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\usr\Python\Scripts\;C:\usr\Python\;C:\Users\yokotay\AppData\Local\Microsoft\WindowsApps !! Anaconda & OpenCV ! Anaconda起動時トラブル 起動時にエラーが出る場合がある。Windowsを再起動すると直ることが多い。 原因不明。今後調査。 ! OpenCVインストール失敗 下記を実行すると import cv2 print(cv2.__version__) import cv2 時点で下記エラーが出る。 ImportError: DLL load failed: アクセスが拒否されました。 DLLファイルのアクセス権限設定がおかしくなっている(読み込むことができない)可能性あり。今後調査し、対象ファイルを見つける。 * C:\ProgramData\Anaconda3\Library\bin 以下にあるOpenCV関連のDLLファイルのアクセス権限設定がまずく、一般ユーザの「読み取り・実行」権限が付いていなかった。 * binフォルダでセキュリティの詳細設定→アクセス許可の変更→「子オブジェクトのアクセス許可エントリすべてを、このオブジェクトからの継承可能なアクセス許可エントリで置き換える」にチェックを入れ「適用」 参考: * http://d.hatena.ne.jp/dichika/20140126/p1 関連ディレクトリ: * C:\ProgramData\Anaconda3\pkgs\opencv-3.3.1-py36h20b85fd_1 * C:\ProgramData\Anaconda3\Library\include\opencv2 Tools: * cacls, icacls * Windowsのcaclsコマンドが出力する内容の意味や見方を知る ** http://www.atmarkit.co.jp/ait/articles/0601/28/news016.html アクセス権の省略型表示 表示 意味 F フルコントロール。すべての操作が対象となる W 書き込み可能 R 読み出しのみ可能 C 変更(書き込み)可能 N アクセス権なし * icaclsコマンドでファイルのアクセス制御リストACLを保存/復元する ** http://www.atmarkit.co.jp/ait/articles/1006/18/news099.html * memo ** icacls /T > icacls-out.txt python debug * http://racchai.hatenablog.com/entry/2016/05/30/070000 import pdb; pdb.set_trace() ---- * Anaconda Prompt 起動、Zドライブに移動 * テキストエディタでファイル作成(Zドライブ上、日本語文字コードはUTF-8) * プロンプト上で "python myfile.py" の形で実行 (base) Z:\python>python mytest1.py Traceback (most recent call last): File "mytest1.py", line 1, in from numpy.random import * File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\__init__.py", line 126, in from numpy.__config__ import show as show_config File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 674, in exec_module File "", line 780, in get_code File "", line 832, in get_data PermissionError: [Errno 13] Permission denied: 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\numpy\\__config__.py' ---- $ cat touchpad-off.sh xinput set-prop "FocalTechPS/2 FocalTech Touchpad" --type=int --format=8 "Device Enabled" 0 $ cat touchpad-on.sh xinput set-prop "FocalTechPS/2 FocalTech Touchpad" --type=int --format=8 "Device Enabled" 1 ---- package.json (nodetest1) @ mp-spc02 (2017/10/7) { "name": "nodetest1", "version": "0.0.0", "private": true, "scripts": { "start": "node ./bin/www" }, "dependencies": { "body-parser": "~1.18.2", "cookie-parser": "~1.4.3", "debug": "~2.6.9", "express": "~4.15.5", "jade": "~1.11.0", "morgan": "~1.9.0", "serve-favicon": "~2.4.5" } } {{ref_text npm-install-log.txt}} {{ref_text dir-node_modules.txt}} ---- * Ubuntu & Tgif ** Fatal Error in OpenFont(): Cannot open the Default(Msg)Font '-*-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1'. ** solution: https://srad.jp/~t-nissie/journal/590855/ * Ubuntu & ATOM ** sudo add-apt-repository ppa:webupd8team/atom ** sudo apt-get update ** sudo apt-get install atom * Arduino IDE on Linux-based OS ** http://www.arduino.org/learning/getting-started/arduino-ide-on-linux-based-os ! Drone * http://developer.parrot.com/docs/bebop/ UNIX BUILD Linux: Tested on Ubuntu 12.10, 13.04, 13.10 and 14.04 OSX: Tested on 10.10.5 * https://www.ntts.co.jp/column/yasui_blog/20151202/ This script is deprecated and doesn't work anymore. Please download repo (http://source.android.com/source/downloading.html#installing-repo). Then run 'repo init -u https://github.com/Parrot-Developers/arsdk_manifests.git' in an empty folder. Then run 'repo sync' to get all sources. After that, you'll be able to run './build.sh' to build the SDK. * You can find a full documentation here: http://developer.parrot.com/docs/bebop/#go-deeper git config --global user.email "..." git config --global user.name "..." repo init -u https://github.com/Parrot-Developers/arsdk_manifests.git repo sync (197MB) sudo apt-get install libavahi-client-dev sudo apt-get install autoconf sudo apt-get install libtool sudo apt-get install libavcodec-dev sudo apt-get install libavformat-dev sudo apt-get install libswscale-dev sudo apt-get install libncurses5-dev ./build.sh -p arsdk-native -t build-sdk -j (445MB) date; ./build.sh -p arsdk-native -t build-sample -j; date (448MB) ! Music * https://www.mixcloud.com/objetstrouves/wamonorama-1/ ! LIFEBOOK Touchpad & Ubuntu LIFEBOOK E554/J + Ubuntu 14.04 (64bit) において,下記メッセージが出て,タッチパッドが認識せず,かつキーボードもまともに動作しない(突然入力したキーの無限リピートが発生する)問題あり. psmouse serio2: Touchpad at isa0060/serio2/input0 lost sync at byte 6 psmouse.proto=bare を指定することで問題が解消することを確認(カーネル3.13, 3.16, 3.17, 3.18). 対処法(1): GRUBメニューの修正 $ sudo emacs /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="quiet splash psmouse.proto=bare" $ sudo update-grub 対処法(2): その都度コマンドラインで対処 sudo rmmod psmouse sudo modprobe psmouse proto=bare * 参考:Bug 48161 - Elantech Touchpad lost sync and becomes unusable ** https://bugzilla.kernel.org/show_bug.cgi?id=48161#c13 *** Thales Ceolin 2014-05-23 16:53:40 UTC *** Meanwhile this bug is being fixed, to stop the errors/messages on dmesg, do a rmmod psmouse ; modprobe psmouse proto=bare メモなど: $ dmesg|grep elan [ 2.717525] psmouse serio2: elantech: assuming hardware version 4 (with firmware version 0x570f01) [ 2.752493] psmouse serio2: elantech: Synaptics capabilities query result 0x40, 0x14, 0x0c. $ cat /proc/bus/input/devices |less I: Bus=0011 Vendor=0002 Product=000e Version=0000 N: Name="ETPS/2 Elantech Touchpad" P: Phys=isa0060/serio2/input0 S: Sysfs=/devices/platform/i8042/serio2/input/input9 U: Uniq= H: Handlers=mouse2 event7 B: PROP=1 B: EV=b B: KEY=e420 30000 0 0 0 0 B: ABS=661800011000003 * LIFEBOOK AH544/G32 ** http://www.fujitsu.com/fts/products/computing/pc/notebooks/lifebook-ah544-g32/ * LIFEBOOK E554/J・E544/J 製品詳細 ** http://www.fmworld.net/biz/fmv/lifebook/e554j_e544j/ * http://askubuntu.com/questions/533903/fujitsu-lifebook-ah544-touch-pad-not-working-in-ubuntu-14-04 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.notimeout i8042.nomux" * http://www.gcd.org/blog/2009/01/170/comment-page-1/ * https://bugzilla.kernel.org/show_bug.cgi?id=48161 * http://www.spinics.net/lists/linux-input/msg33275.html * http://www.spinics.net/lists/linux-input/msg33231.html * Install/Upgrade to Linux Kernel 3.17 in Ubuntu 14.04 ** http://ubuntuhandbook.org/index.php/2014/10/install-upgrade-kernel-3-17-ubuntu/ ** http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-utopic/ ** http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-vivid/ * https://www.kernel.org/ ! - ccqpt040 00:24:D2:F0:96:4C ! grub GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)" ! Anthy Emacs 24.3.1 + anthy-el でのトラブル対処 * https://www.google.com/search?q=anthy-insert%3A+Symbol%27s+value+as+variable+is+void%3A+last-command-char&ie=UTF-8&sa=Search&channel=fe&client=browser-ubuntu&hl=ja ! Misc. /etc/udev/rules.d というディレクトリに 51-usbblaster.rules というファイル名で以下の内容のファイルを作る ATTR{idVendor}=="09fb",ATTR{idProduct}=="6001",MODE="666" 利用するユーザの個人環境で以下が必要 export QUARTUS_64BIT=1 export PATH=$PATH:/opt/altera/13.1/quartus/bin ---- ! Ubuntu * [ubuntu-jp:4286] [Announce] Ubuntu 11.04のサポート終了(〜2012/10/28) ** https://lists.ubuntu.com/archives/ubuntu-jp/2012-December/004285.html cc602admin@ccrpt080:~$ sudo grub-install /dev/sda /usr/sbin/grub-setup: warn: This GPT partition label has no BIOS Boot Partition; embedding won't be possible!. /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. /usr/sbin/grub-setup: error: will not proceed with blocklists. * Setup with BIOS but GPT partition table (due to 3 TB disk)? ** http://askubuntu.com/questions/239252/setup-with-bios-but-gpt-partition-table-due-to-3-tb-disk ---- xorg.conf memo http://www.maroontress.com/KanaKey/ + modification Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "jp106" Option "XkbLayout" "jp" # Option "XkbOptions" "japan:kana,grp_led:scroll" Option "XkbOptions" "ctrl:swapcaps" EndSection ---- プロ技デバッガデモサンプル ! sum.c {{ref_text sum.c}} ! sum-err1.c {{ref_text sum-err1.c}} ! leapYear.c {{ref_text leapYear.c}}