ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
memo:2019:08:2019-08-21

Wayland

現在何で動いているか確認

$ echo $XDG_SESSION_TYPE
x11
$ ps aux| grep Xorg
root      3663  3.2  0.5 422664 85916 tty7     Ssl+ Aug21   2:42 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

weston導入

$ sudo apt install weston

weston実行

$ weston

Xアプリを実行できるように

$ cat ~/.config/weston.ini 
[core]
xwayland=true
$ oneko -sakura & oneko -tomoyo &

This project is discontinued, it's too much work to do this out of tree from Way Cooler.

Debian stretch -> Buster upgrade

何かあってもいいようにバックアップを取得しておく.(dump, tar, rsync……)

その間にbusterの文章を読む.アーキテクチャごとに分かれているので該当のものを.

仕事などで失敗できない,停止時間を短くしたい場合は仮想マシンなどに旧環境を構築,テストして新しい環境の設定を固めてから行う.

aptの状態を確認して古いパッケージを削除するなどする

$ aptitude search '~i(!~ODebian)'
$ apt-forktracer | sort

source.listで非公式なソースがないか確認

$ lv /etc/apt/sources.list
$ ls -lA /etc/apt/sources.list.d/
total 0

APT の pin 機能を使っていないか確認

$ grep -i pin /etc/apt/preferences $ grep -i pin /etc/apt/preferences.d/*

パッケージの状態をチェックする

$ dpkg --audit

hold状態にあるパッケージの検索

$ sudo aptitude search "~ahold"

source-list ファイルの準備

$ sudo apt edit-sources

stretchbuster に書き換える

GNU screenを起動する

ログを取得開始する

$ script -t 2>~/upgrade-busterstep.time -a ~/upgrade-busterstep.script
sudo -s

必要な容量が存在するか確認

# apt -o APT::Get::Trivial-Only=true full-upgrade

最低アップグレード

# apt-get upgrade
Configuration file '/etc/fail2ban/jail.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** jail.conf (Y/I/N/O/D/Z) [default=N] ? 

D で確認しつつ 設定を選択. 後で diff -u jail.conf jail.conf.dpkg-old とかしつつ修正.

xl2tpd が転けてた.この機能は自分以外使ってないのでとりあえず後で確認.

Setting up xl2tpd (1.3.12-1.1) ...
Job for xl2tpd.service failed because the control process exited with error code.
See "systemctl status xl2tpd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript xl2tpd, action "restart" failed.
● xl2tpd.service - LSB: layer 2 tunelling protocol daemon
   Loaded: loaded (/etc/init.d/xl2tpd; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-08-21 21:02:21 JST; 8ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 25743 ExecStop=/etc/init.d/xl2tpd stop (code=exited, status=0/SUCCESS)
  Process: 25748 ExecStart=/etc/init.d/xl2tpd start (code=exited, status=1/FAILURE)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/xl2tpd.service
           └─924 /usr/sbin/xl2tpd

Aug 21 21:02:21 www6073uo systemd[1]: Stopped LSB: layer 2 tunelling protocol daemon.
Aug 21 21:02:21 www6073uo systemd[1]: Starting LSB: layer 2 tunelling protocol daemon...
Aug 21 21:02:21 www6073uo xl2tpd[25748]: Starting xl2tpd:
Aug 21 21:02:21 www6073uo systemd[1]: xl2tpd.service: Control process exited, code=exited status=1
Aug 21 21:02:21 www6073uo systemd[1]: Failed to start LSB: layer 2 tunelling protocol daemon.
Aug 21 21:02:21 www6073uo systemd[1]: xl2tpd.service: Unit entered failed state.
Aug 21 21:02:21 www6073uo systemd[1]: xl2tpd.service: Failed with result 'exit-code'.
Aug 21 21:02:21 www6073uo xl2tpd[924]: death_handler: Fatal signal 15 received
dpkg: error processing package xl2tpd (--configure):
 subprocess installed post-installation script returned error exit status 1

フルアップグレード

# apt full-upgrade
Configuration file '/etc/logrotate.d/dpkg'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** dpkg (Y/I/N/O/D/Z) [default=N] ? D

Oにした

Configuration file '/etc/monit/monitrc'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** monitrc (Y/I/N/O/D/Z) [default=N] ?
Configuration file '/etc/logrotate.d/rsyslog'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** rsyslog (Y/I/N/O/D/Z) [default=N] ? 
Configuration file '/etc/rsyslog.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** rsyslog.conf (Y/I/N/O/D/Z) [default=N] ? 
Configuration file '/etc/logrotate.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** logrotate.conf (Y/I/N/O/D/Z) [default=N] ?
Configuration file '/etc/default/mumble-server'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** mumble-server (Y/I/N/O/D/Z) [default=N] ? 
Configuration file '/etc/logrotate.d/mumble-server'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** mumble-server (Y/I/N/O/D/Z) [default=N] ? 
Configuration file '/etc/mumble-server.ini'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** mumble-server.ini (Y/I/N/O/D/Z) [default=N] ? 
Configuration file '/etc/default/radicale'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** radicale (Y/I/N/O/D/Z) [default=N] ?
Configuration file '/etc/default/radicale'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** radicale (Y/I/N/O/D/Z) [default=N] ? D
Configuration file '/etc/radicale/config'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** config (Y/I/N/O/D/Z) [default=N] ? D
Configuration file '/etc/radicale/config'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** config (Y/I/N/O/D/Z) [default=N] ? 
          ┌──────────────────────────────────────────────────────────────┤ Configuring openssh-server ├──────────────────────────────────────────────────────────────┐           
          │ A new version (/tmp/file32zgwE) of configuration file /etc/ssh/sshd_config is available, but the version installed currently has been locally modified.  │           
          │                                                                                                                                                          │           
          │ What do you want to do about modified configuration file sshd_config?                                                                                    │           
          │                                                                                                                                                          │           
          │                                                   install the package maintainer's version                                                               │           
          │                                                   keep the local version currently installed                                                             │           
          │                                                   show the differences between the versions                                                              │           
          │                                                   show a side-by-side difference between the versions                                                    │           
          │                                                   show a 3-way difference between available versions                                                     │           
          │                                                   do a 3-way merge between available versions                                                            │           
          │                                                   start a new shell to examine the situation                                                             │           
          │                                                                                                                                                          │           
          │                                                                                                                                                          │           
          │                                                                          <Ok>                                                                            │           
          │                                                                                                                                                          │           
          └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘           
Configuration file '/etc/logrotate.d/apache2'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.                                                                                                                            What would you like to do about it ?  Your options are:                                                                                                                           Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version                                                                                                                                    D     : show the differences between the versions                                                                                                                                Z     : start a shell to examine the situation
 The default action is to keep your current version.                                                                                                                             *** apache2 (Y/I/N/O/D/Z) [default=N] ? 
W: APT had planned for dpkg to do more than it reported back (4970 vs 4979).
   Affected packages: uim:amd64 xl2tpd:amd64

postfixでメール送受信がうまく行かない

atal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains

Tiny Tiny RSS

Debian buster amd64 環境に導入なメモ

install

dbを先に導入しておく

$ sudo apt install mariadb-server
$ sudo apt install tt-rss

初期installなので<YES>を選択

      ┌──────────────────────────────────────────────────────────────────────┤ Configuring tt-rss ├───────────────────────────────────────────────────────────────────────┐      
      │                                                                                                                                                                   │      
      │ The tt-rss package must have a database installed and configured before it can be used. This can be optionally handled with dbconfig-common.                      │      
      │                                                                                                                                                                   │      
      │ If you are an advanced database administrator and know that you want to perform this configuration manually, or if your database has already been installed and   │      
      │ configured, you should refuse this option. Details on what needs to be done should most likely be provided in /usr/share/doc/tt-rss.                              │      
      │                                                                                                                                                                   │      
      │ Otherwise, you should probably choose this option.                                                                                                                │      
      │                                                                                                                                                                   │      
      │ Configure database for tt-rss with dbconfig-common?                                                                                                               │      
      │                                                                                                                                                                   │      
      │                                                  <Yes>                                                     <No>                                                   │      
      │                                                                                                                                                                   │      
      └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘      

データベースパスワードを入力.若しくはNULLで自動生成.

                                                                                                                                                                                 
                       ┌─────────────────────────────────────────────────────┤ Configuring tt-rss ├──────────────────────────────────────────────────────┐                       
                       │ Please provide a password for tt-rss to register with the database server. If left blank, a random password will be generated.  │                       
                       │                                                                                                                                 │                       
                       │ MySQL application password for tt-rss:                                                                                          │                       
                       │                                                                                                                                 │                       
                       │ _______________________________________________________________________________________________________________________________ │                       
                       │                                                                                                                                 │                       
                       │                                      <Ok>                                          <Cancel>                                     │                       
                       │                                                                                                                                 │                       
                       └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

好みのWebServerを選択

                                         ┌───────────────────────────────────┤ Configuring tt-rss ├────────────────────────────────────┐                                         
                                         │ Please choose the web server that should be automatically configured to run Tiny Tiny RSS.  │                                         
                                         │                                                                                             │                                         
                                         │ Web server to reconfigure automatically:                                                    │                                         
                                         │                                                                                             │                                         
                                         │    [ ] apache2                                                                              │                                         
                                         │    [ ] lighttpd                                                                             │                                         
                                         │                                                                                             │                                         
                                         │                                                                                             │                                         
                                         │                          <Ok>                              <Cancel>                         │                                         
                                         │                                                                                             │                                         
                                         └─────────────────────────────────────────────────────────────────────────────────────────────┘                                         

tt-rssにアクセスするためのURLを入力

    ┌────────────────────────────────────────────────────────────────────────┤ Configuring tt-rss ├─────────────────────────────────────────────────────────────────────────┐    
    │ Please enter the URL that should be used to access tt-rss with a web browser.                                                                                         │    
    │                                                                                                                                                                       │    
    │ This should include the location of the tt-rss directory - for instance http://example.org/tt-rss/. If this is not set correctly, several features, including PUSH,   │    
    │ bookmarklets, and browser integration, will not work properly.                                                                                                        │    
    │                                                                                                                                                                       │    
    │ Full URL of the tt-rss installation:                                                                                                                                  │    
    │                                                                                                                                                                       │    
    │ http://example.org/tt-rss/___________________________________________________________________________________________________________________________________________ │    
    │                                                                                                                                                                       │    
    │                                                  <Ok>                                                      <Cancel>                                                   │    
    │                                                                                                                                                                       │    
    └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘    
                   ┌────────────────────────────────────────────────────────┤ Configuring tt-rss ├─────────────────────────────────────────────────────────┐                    
                    │ Please provide the password for the administrative account "root" with which this package should create its MySQL database and user.  │                    
                    │                                                                                                                                       │                    
                    │ Password of the database's administrative user:                                                                                       │                    
                    │                                                                                                                                       │                    
                    │ _____________________________________________________________________________________________________________________________________ │                    
                    │                                                                                                                                       │                    
                    │                                                                <Ok>                                                                   │                    
                    │                                                                                                                                       │                    
                    └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘                    

adminパスワード変更 ※`admin:password` なのですぐに変更する

20190821_01:08:11-4745.jpg

上で設定したURLにアクセスして, admin:password でloginする.

You are using default tt-rss password. Please change it in the Preferences (Personal data / Authentication).

で「Open Preferences」の「ユーザー」タブでパスワードを変更する.

通常利用向けのアクセスレベル「ユーザー」のアカウントを作成する.

設定終了 → ログアウト

アクセスレベル「ユーザー」の一般ユーザでログイン.

「設定」の「フィード」タブでOPMLインポート,エクスポートが可能

feedlyでのOPML exportは https://feedly.com/i/account/privacy の「Download your personal data」 からアーカイブを作成(少し時間がかかるたまに refleshを押したりメールを待つ)してダウンロードしたアーカイブの中にある subscriptions.opml

APIでOPML入手も可能なようだが要認証.

Pockrt

コメント

コメントを入力. Wiki文法が有効です:
     __  _____   ____   ___   _   __
 __ / / / ___/  /  _/  / _ | | | / /
/ // / / /__   _/ /   / __ | | |/ / 
\___/  \___/  /___/  /_/ |_| |___/
 
memo/2019/08/2019-08-21.txt · 最終更新: 2019/08/22 01:22 by matoken