のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Ubuntu

raspberry-pi 4を購入。Ubuntuを入れる

gihyo.jp 買った液晶は、これ ROADOM 7インチ Raspberry Pi用タッチモニター IPS高解像度1024X600 スピーカー内蔵 Rspberry Pi 4/3/2/1 Xbox PS4 Ubuntu Windows 7/8/10に適用メディア: エレクトロニクス この、セットを買った。 LABISTS Raspberry Pi 4 4B-…

apt-get update 403 Forbidden

m_fujii@None53-Surface:~$ sudo apt update エラー:1 http://ppa.launchpad.net/glasen/freetype2/ubuntu bionic InRelease 403 Forbidden [IP: 91.189.95.83 80] 取得:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] ヒット:3 …

E: Version '1.8.11-5ubuntu7' for 'libhdf5-serial-dev' was not found

$ sudo apt-get install libhdf5-serial-dev=1.8.11-5ubuntu7 Reading package lists... Done Building dependency tree Reading state information... Done E: Version '1.8.11-5ubuntu7' for 'libhdf5-serial-dev' was not found$ sudo apt-get install li…

ubuntu 16.04 ファイル共有

www.hiroom2.com

windows10のwslのubuntuでxwindowを動かす

www.yokoweb.net

ubuntu16.04でネットワークエラー フォルダにアクセスできません

ubuntuでファイル共有したのに、アクセスできなくなったので 調べたときの途中経過を記します。 途中は、間違えてるかもしれないです。最終的には、ホームのアクセス権を変えました。 $sudo smbpasswd -e nobody Failed to find user nobody in passdb backe…

session closed for user nobody

smbd: pam_unix(samba:session): session closed for user nobody smbd: message repeated 4 times: [ pam_unix(samba:session): session closed for user nobody]

git ps1

export PS1='[\w]:\[\033[01;32m\]$(if git status &>/dev/null;then echo $(parse_git_branch);fi)\[\033[00m\]$'GIT_PS1_SHOWDIRTYSTATE=true export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;31m\]\W$(__git_…

ssh-keyscan github

ssh-keyscan github.com >> ~/.ssh/known_hostsqiita.com

git github ssh

qiita.com

ubuntu bitbucket key

qiita.comdotnsf.blog.jp

gdb console

273,124 2-gdb-version 273,125 ~"GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1\n" 273,129 ~"Copyright (C) 2014 Free Software Foundation, Inc.\n" 273,129 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\ e software: you are free to</http://gnu.org/licenses/gpl.html>…

opcontrol --start

u01@vm01:~/layout/oss/pango-1.36.8/pango-view/.libs$ sudo opcontrol --no-vmlinux --start ATTENTION: Use of opcontrol is discouraged. Please see the man page for operf. Using default event: CPU_CLK_UNHALTED:100000:0:1:1 Error: counter 0 not…

gprof2dot

pipのインストールwget https://bootstrap.pypa.io/get-pip.pysudo python get-pip.py $ sudo pip install gprof2dot $ gprof foo | gprof2dot.py > foo.dot dot -Tps input.dot > output.eps dot -Tpng input.dot > output.png

font-config fc-list

u01@vm01:~/layout/oss/fontconfig-2.11.92$ fc-list /usr/share/fonts/truetype/droid/DroidSansHebrew-Regular.ttf: Droid Sans Hebrew:style=Regular /usr/share/fonts/truetype/tlwg/TlwgTypo-Bold.ttf: Tlwg Typo:style=Bold /usr/share/fonts/truetype…

gdb

197,725 2-gdb-version 197,726 ~"GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1\n" 197,730 ~"Copyright (C) 2014 Free Software Foundation, Inc.\n" 197,730 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\ e software: you are free to</http://gnu.org/licenses/gpl.html>…

.profile

export PATH="$HOME/usr/bin:$PATH" export LD_LIBRARY_PATH=$HOME/usr/lib export PKG_CONFIG_PATH=$HOME/usr/lib/pkgconfig

ubuntu 14.04 LTS ログインしても、ログイン画面に戻る

たまに、ログインしてもログイン画面を繰り返すときがある。unityだけを初期化したいのだが、うまく初期化できない。 以下の方法で、ホームのバックアップを取り、ユーザーを再作成する。 Ctrl+Alt+F1でCUIからログインする。 startxを実行する。 右クリック…

フォルダの場所で端末を開く

sudo apt-get install nautilus-open-terminal nautilus -q

RaspberryPI2 Ubuntu 14.04

Ubuntu 14.04 LTS

Ubuntu14.04 GhostScript デバイス

$ gs -h GPL Ghostscript 9.10 (2013-08-30) Copyright (C) 2013 Artifex Software, Inc. All rights reserved. Usage: gs [switches] [file1.ps file2.ps ...] Most frequently used switches: (you can use # in place of =) -dNOPAUSE no pause after pag…

android valgrind build

ビルド環境 ・valgrind-3.10.1 ・android-ndk-r10d ・ubuntu 14.04

android valgrind

AOSPのoutフォルダ ~/LP501r1_debug/android/out/target/product/hammerhead/system/lib/valgrind$ ll total 39668 drwxrwxr-x 2 user user 4096 3月 24 11:22 ./ drwxrwxr-x 8 user user 12288 3月 24 11:21 ../ -rwxrwxr-x 1 user user 5625000 3月 24 11:…

skiaをコンパイルしたときのclangのワーニング

clang 3.5をubuntu14.04にインストールした。 include $(CLEAR_VARS) LOCAL_CLANG=true <=== この行を追加した。 LOCAL_FDO_SUPPORT := true LOCAL_ARM_MODE := thumbexternal/skia/src/images/SkImageDecoder.cpp:25:7: warning: field 'fDitherImage' will…

ubuntu 14.04 clan 3.5

sudo ln -s /usr/bin/clang-3.5 /usr/bin/clang sudo ln -s /usr/bin/clang++-3.5 /usr/bin/clang++ sudo ln -s /usr/bin/scan-build-3.5 /usr/bin/scan-buildscan-build -V -k --status-bugs -o analyze_out --use-analyzer=/usr/bin/clang --use-cc=clang …

ubuntu files open terminal

Nautilus 右クリックで端末を開けるようにする nautilus-open-terminal

Sambaとハードディスクの速度比較

UbuntuのSambaとハードディスクのベンチマークを測定してみました。 上がUbuntuのSamba 下がハードディスク(RAID1)

Ubuntuでファイルマネージャが自動で開かないようにする方法

USBを接続すると、Ubuntuのファイルマネージャが自動起動する。 この自動起動を停止する方法。SystemSettings>SystemのDetails>Removable Mediaで"Never prompt or start programs on media insertion"にチェックした。

sudo fastboot

Ubuntuでの話です。 ユーザーがfastbootを実行すると、no permissionと表示される。 sudoで実行しようとすると、PATHが通ってないので、完全なパスを指定する必要がある。 sudoに渡す場所は、which fastbootで見つけた場所になる。 $which fastboot /home/us…

scan-view

Ubuntuにclang1.3.4をインストールし、コンパイルしてみた。 scan-build -V -o outClang gcc main.c sub.cファイル内のエラーは、ちゃんと検出していた。 ファイル間のエラーは、これだけじゃだめなのかな。 #include <stdio.h> int strcmp2(const char *s1, const ch</stdio.h>…