30 Apr 2021

Frescobaldi on Bionic puppy

 Original packages on Bionic can't work. It can't find libguile.so.17.

I got latest one which version 2.22.1 from Lilypond's web site.

It works without any dependency packages.

But I had to remove /usr/bin/lilypond and make new /usr/bin/lilypond as soft linked one.

# cd /usr/bin/

# ln -s /usr/local/bin/lilypond /usr/bin/lilypond

Then, I downloaded latest Frescobaldi from its web site.

I made sfs file from its dependencies.

The followings are those:

  • libbrotli1_1.0.3-1ubuntu1.3_amd64.deb
  • libbrotli1_1.0.3-1ubuntu1_amd64.deb
  • libdb5.3_5.3.28-13.1ubuntu1.1_amd64.deb
  • libhyphen0_2.8.8-5_amd64.deb
  • libportmidi0_217-6_amd64.deb
  • libpython3-stdlib_3.6.7-1~18.04_amd64.deb
  • libpython3.6-minimal_3.6.9-1~18.04ubuntu1.4_amd64.deb
  • libpython3.6-stdlib_3.6.9-1~18.04ubuntu1.4_amd64.deb
  • libpython3.6_3.6.9-1~18.04ubuntu1.4_amd64.deb
  • libqt5designer5_5.9.5-0ubuntu1_amd64.deb
  • libqt5positioning5_5.9.5+dfsg-0ubuntu2_amd64.deb
  • libqt5qml5_5.9.5-0ubuntu1.1_amd64.deb
  • libqt5quick5_5.9.5-0ubuntu1.1_amd64.deb
  • libqt5sensors5_5.9.5-0ubuntu1_amd64.deb
  • libqt5webchannel5_5.9.5-0ubuntu1_amd64.deb
  • libqt5webkit5_5.212.0~alpha2-7ubuntu1_amd64.deb
  • libwoff1_1.0.2-1_amd64.deb
  • libwoff1_1.0.2-1build0.1_amd64.deb
  • mime-support_3.60ubuntu1_all.deb
  • python-pypm_0.0.7-8_amd64.deb
  • python3-ly_0.9.5-1_all.deb
  • python3-poppler-qt5_0.24.2-3build3_amd64.deb
  • python3-pyqt5.qtsvg_5.10.1+dfsg-1ubuntu2_amd64.deb
  • python3-pyqt5.qtwebkit_5.10.1+dfsg-1ubuntu2_amd64.deb
  • python3-pyqt5_5.10.1+dfsg-1ubuntu2_amd64.deb
  • python3-sip_4.19.7+dfsg-1ubuntu0.1_amd64.deb
  • python3.6-minimal_3.6.9-1~18.04ubuntu1.4_amd64.deb
  • python3.6_3.6.9-1~18.04ubuntu1.4_amd64.deb
  • python3_3.6.7-1~18.04_amd64.deb
  • tango-icon-theme_0.8.90-7_all.deb


I used pkg2sfs.sh to make sfs from them. we can find it on Puppy linux 日本語フォーラム.
# ls > list.txt
It's useful command to get file name in a directory.

  • python3-poppler-qt5_0.24.2-3build3_amd64.deb
  • python3-sip_4.19.7+dfsg-1ubuntu0.1_amd64.deb
These are needed one, but package manager don't pick them up.
  • libportmidi0_217-6_amd64.deb
I'm not sure whether this one is needed.

# cd work
# pkg2sfs.sh FrescobaldiDependencies.sfs ./*.deb

Then, it was moved under HOME and load it by Load on the fly.

Frescobaldi can be executed without installing.

# cd Frescobaldi-3.1.3
# python3 frescobaldi

SVG view can't work. A few packages are needed, I think.

######################################################
# Make SFS package
######################################################

# find / -name lilypond
/usr/local/bin/lilypond
/usr/local/lilypond
/usr/local/lilypond/license/lilypond
/usr/local/lilypond/usr/bin/lilypond
/usr/local/lilypond/usr/share/lilypond
/usr/bin/lilypond

# cd /tmp
# mkdir work

I copied those files and folders here.

# cd work
# pwd 
/tmp/work
# ls
usr

# cd /tmp
# mksquashfs work lilypond-2.22.1-1-x64.sfs

##############################################

# cd /tmp
# mkdir work2
# cd ./work2
# mkdir opt

# mv frescobaldi-3.1.3 /tmp/work2/opt/
# cd /tmp/work2/opt
# ln -s frescobaldi-3.1.3 frescobaldi

Make directories /tmp/work2/usr/local/bin
# cd /tmp/work2/usr/local/bin
# touch frescobaldi

Write the following 2 lines.

#! /bin/sh
python3 /opt/frescobaldi/frescobaldi

# chmod 747 frescobaldi

# cd /tmp/work2

# mksquashfs work2 frescobaldi-3.1.3-x64.sfs


We can combinate Dependencies and frescobaldi.

# unsquashfs FrescobaldiDependencies.sfs

# ls 

# squashfs-root

put frescobaldi's files into there.

# mksquashfs squashfs-root frescobaldi-3.1.3-x64+python3.sfs

##################################################

Here, link those packages:

##################################################

MIDI setting


See:

Conky on Bionic puppy

 Self making sfs doesn't work well on fossa. So I tries Bionic puppy.

At first, Conky-all was installed from package manager.


System -> configuration of Boot Manager -> management of startup app

Add the following command:

conky -c /root/conkyrc


Then, restart X window.


Next, getting temparature of CPU

Install lm-sensors from package manager.


# sensors-detect

reply YES, except last question about I2C.

System -> configuration of Boot Manager -> modules

Add coretemp

# modprove coretemp

# sensors

coretemp-isa-0000

Adapter: ISA adapter

Package id 0:  +38.0°C  (high = +85.0°C, crit = +105.0°C)

Core 0:        +38.0°C  (high = +85.0°C, crit = +105.0°C)

Core 1:        +32.0°C  (high = +85.0°C, crit = +105.0°C)

Core 2:        +30.0°C  (high = +85.0°C, crit = +105.0°C)

Core 3:        +29.0°C  (high = +85.0°C, crit = +105.0°C)


~/conkyrc

# Use Xft?

use_xft yes

xftfont DejaVuSans:size=9

xftalpha 0.8

text_buffer_size 2048


# Update interval in seconds

update_interval 1


# This is the number of times Conky will update before quitting.

# Set to zero to run forever.

total_run_times 0


# Create own window instead of using desktop (required in nautilus)

own_window true

own_window_transparent  true

own_window_argb_visual true

own_window_type = desktop


own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


# Use double buffering (reduces flicker, may not work for everyone)

double_buffer yes


# Minimum size of text area

minimum_size 500

maximum_width 210


# Draw shades?

draw_shades no


# Draw outlines?

draw_outline no


# Draw borders around text

draw_borders no


# Draw borders around graphs

draw_graph_borders yes


# Stippled borders?

stippled_borders 0


# border margins

#border_margin 1


# border width

#border_width 0


# Default colors and also border colors

default_color white

#default_shade_color black

#default_outline_color black

#own_window_colour white


# Text alignment, other possible values are commented

#alignment top_left

alignment top_right

#alignment bottom_left

#alignment bottom_right


# Gap between borders of screen and text

# same thing as passing -x at command line

gap_x 75

gap_y 75


# Subtract file system buffers from used memory?

no_buffers yes


# set to yes if you want all text to be in uppercase

uppercase no


# number of cpu samples to average

# set to 1 to disable averaging

cpu_avg_samples 2


# number of net samples to average

# set to 1 to disable averaging

net_avg_samples 2


# Force UTF8? note that UTF8 support required XFT

override_utf8_locale yes


# Add spaces to keep things from moving about?  This only affects certain objects.

use_spacer none

color1 e68199

color2 ffffff

weather1 liverpool


TEXT


${color1}System ${hr 2}

${color2}${nodename}

#${color}${pre_exec lsb_release -i -s}

${color2}bionicpup64

${color2}${sysname} ${kernel}

${color2}Uptime ${uptime}

${color1}Processes ${hr 2}

${color2}${alignr}CPU%

${color2}${top name 1}${alignr}${top cpu 1}

${color2}${top name 2}${alignr}${top cpu 2}

${color2}${top name 3}${alignr}${top cpu 3}

${color2}${top name 4}${alignr}${top cpu 4}

#${color2}${top name 5}${alignr}${top cpu 5}

#${color2}${top name 6}${alignr}${top cpu 6}

#${color}2${top name 7}${alignr}${top cpu 7}

${color2}${alignr}MEM

${color2}${top_mem name 1}${alignr}${top_mem mem_res 1}

${color2}${top_mem name 2}${alignr}${top_mem mem_res 2}

${color2}${top_mem name 3}${alignr}${top_mem mem_res 3}

${color2}${top_mem name 4}${alignr}${top_mem mem_res 4}

#${color2}${top_mem name 5}${alignr}${top_mem mem_res 5}

#${color2}${top_mem name 6}${alignr}${top_mem mem_res 6}

#${color2}${top_mem name 7}${alignr}${top_mem mem_res 7}


${color1}Resources ${hr 2}

${color2}CPU0 ${cpu cpu0}%${alignr} Tmp ${hwmon 0 temp 4} ${color1}${cpubar cpu0 10,100}

#${color2}CPU1 ${cpu cpu0}%${alignr}${color1}${cpubar cpu1 10,120}

#${color2}CPU2 ${cpu cpu0}%${alignr}${color1}${cpubar cpu2 10,120}

#${color2}CPU3 ${cpu cpu0}%${alignr}${color1}${cpubar cpu3 10,120}

#${color2}CPU4 ${cpu cpu0}%${alignr}${color1}${cpubar cpu4 10,120}

#${color2}CPU5 ${cpu cpu0}%${alignr}${color1}${cpubar cpu5 10,120}

#${color2}CPU6 ${cpu cpu0}%${alignr}${color1}${cpubar cpu6 10,120}

${color2}Mem  

${color2}${mem} / ${memmax}${alignr}${color1}${membar 10,60}

${color2}Swap: $swap / $swapmax

$swapperc% ${alignr}${color1}${alignr}${swapbar 10,120}


${color1}File Systems ${hr 2}

#${color2}sda1 ${fs_used /mnt/sda1}/${fs_size /mnt/sda1}${alignr}${color1}${fs_bar 10,60 /mnt/sda1}

${color2}home ${fs_used /initrd/mnt/dev_save}/${fs_size /initrd/mnt/dev_save}${alignr}${color1}${fs_bar 10,60 /initrd/mnt/dev_save}

#${color2}sda2 ${fs_used /mnt/sda2}/${fs_size /mnt/sda2}${alignr}${color 15DF76}${fs_bar 10,60 /mnt/sda2}

#${color2}sdb1 ${fs_used /mnt/home}/${fs_size /mnt/home}${alignr}${color 15DF76}${fs_bar 10,60 /mnt/home}


#${color2}Incoming ${downspeedf eth0} KB/s ${alignr}${color1}${downspeedgraph eth0 10,60}

#${color2}Total Received${alignr}${totaldown eth0}

#${color2}Sending   ${upspeedf eth0} KB/s ${alignr}${color1}${upspeedgraph eth0 10,60}

#${color2}Total Sent${alignr}${totalup eth0}

${color2}NET: EXT: ${alignr}  ${execi 3600 wget -O - -q icanhazip.com} ${if_up eth0}

#IP (eth0):$alignr${addr eth0}

#${color2} Up: ${color2}${upspeed eth0} k/s

#${color1}${alignr}${upspeedgraph eth0 10,170 000000}

#${color2} Down: ${color2}${downspeed eth0}k/s${color}

#${color1}${alignr}${downspeedgraph eth0 10,170 000000}

#${color2}TDown:${totaldown eth0} ${alignr}TUp:${totalup eth0}${endif}${if_up eth1}

#IP (eth1):$alignr${addr eth1}

#${color2} Up: ${color2}${upspeed eth1} k/s

#${color}${upspeedgraph eth1 10,170 000000}

#${color2} Down: ${color2}${downspeed eth1}k/s${color}

#${downspeedgraph eth1 10,170 000000}

#${color2}TDown:${totaldown eth1} ${alignr}TUp:${totalup eth1}${endif}${if_up wlan0}

IP (wlan0):$alignr${addr wlan0}

${color2} Up: ${color2}${upspeed wlan0} k/s

${color1}${alignr}${upspeedgraph wlan0 10,170 000000}

${color2} Down: ${color2}${downspeed wlan0}k/s${color}

${color1}${alignr}${downspeedgraph wlan0 10,170 000000}

${color2}TDown:${totaldown wlan0}${alignr}TUp:${totalup wlan0}${endif}${if_up eth2}

IP (eth2):$alignr${addr eth2}

${color2} Up: ${color2}${upspeed eth2} k/s

${color1}${alignr}${upspeedgraph eth2 10,170 000000}

${color2} Down: ${color2}${downspeed eth2}k/s${color}

${color1}${alignr}${downspeedgraph eth2 10,170 000000}

${color2}TDown:${totaldown eth2} ${alignr}TUp:${totalup eth2}${endif}${if_up wlan1}

IP (wlan1):$alignr${addr wlan1}

${color2} Up: ${color2}${upspeed wlan1} k/s

${color1}${alignr}${upspeedgraph wlan1 10,170 000000}

${color2} Down: ${color2}${downspeed wlan1}k/s${color}

${color1}${alignr}${downspeedgraph wlan1 10,170 000000}

${color2}TDown:${totaldown wlan1}${alignr}TUp:${totalup wlan1}${endif}${if_up ath0}

IP (ath0):$alignr${addr ath0}

${color2} Up: ${color2}${upspeed ath0} k/s

${color1}${alignr}${upspeedgraph ath0 10,170 000000}

${color2} Down: ${color2}${downspeed ath0}k/s${color}

${color1}${alignr}${downspeedgraph ath0 10,170 000000}

${color2}TDown:${totaldown ath0}${alignr}TUp:${totalup ath0}${endif}${if_up ath1}

IP (ath1):$alignr${addr ath1}

${color2} Up: ${color2}${upspeed ath1} k/s

${color1}${alignr}${upspeedgraph ath1 10,170 000000}

${color2} Down: ${color2}${downspeed ath1}k/s${color}

${color1}${alignr}${downspeedgraph ath1 10,170 000000}

${color2}TDown:${totaldown ath1}${alignr}TUp:${totalup ath1}${endif}

####don't write below this line as used for conky gui weather

${color1}${voffset 2}${hr 2}

#

#


13 Apr 2021

pdftk on puppy linux fossa

 pet package managerにpdftkfがあるので、依存性のあるパッケージと共にダウンロードして1つのフォルダ内に移して、puppy linux 日本語フォーラムにあるpgk2sfs.shでsfsに変換する。


これをsfs on the flyで読み込んで、javaのパスを通す。

.bashrcに追記

export PATH=$PATH:/usr/lib/jvm/java-11-openjdk-amd64/bin/


/usr/bin/pdftkへシンボリックリングを張る。

# pwd /usr/bin

# ln -s ./pdftk.pdftk-java ./pdftk

12 Apr 2021

Libre office on puppy linux fossa

 メニューの文書 -> Get libre office ......を選択するとdebian用のtar.gzを取得しに行って、それをSFSに変換してくれる。

しかし、改ページが上手く機能してくれない。改ページして次のページに画像を貼ろうとしているのだが、shift+returnで改ページしてcopy & pateで貼り付けても前のページに張り付いてしまう。


Preciseの時のversion 6のLibre officeでは問題なかった。


解決策

ctrl+returnで現在カーソルがあるページの前に空白ページができる。こちらに画像を貼ってトリミングすれば問題ない。ページが逆順になるが。


Version 6.1.4のEnglish onlyのappImageがある。これだとctrl+returnで現在カーソルがあるページの後に空白ページができる。

雅楽の古譜を読む:飲酒楽

飲酒楽という曲は壱越調と乞食調にある。

先ずは壱越調のもの。


次に乞食調のもの。

酣酔楽”かんすいらく”は高麗曲にあるのだが、しちりきの譜は左方楽にある。


教訓抄によるとこの曲は”酣酔楽”を移調したもので、乞食調では”おんじゅらく”、壱越調では”いんしゅらく”と読むとある。

別の曲に聞こえるんだけど。。。