ユーザ用ツール

サイト用ツール


memo:2019:08:2019-08-24

キヤノン製デジタルカメラにおけるPTP(画像転送プロトコル)通信機能およびファームウエアアップデート機能の脆弱性について

リモートからFW書き換えられるのが治るだけならいいんだけどこれでCHDK が使えなくなったりしないか心配.

“キヤノン:サポート|キヤノン製デジタルカメラにおけるPTP(画像転送プロトコル)通信機能およびファームウエアアップデート機能の脆弱性について” https://cweb.canon.jp/e-support/products/eos-d/190806dilc-firm.html

“キヤノン:ダウンロード|EOS 80Dファームウエア Version 1.0.3” https://cweb.canon.jp/drv-upd/eosd/eos80d-firm.html

www-data でEDITOR設定がないと怒られる

www-data でcrontabを設定しようとすると /var/www/.selected_editor を作ろうとしてパーミッションが足りなくて怒られる.crontabの設定は出来ている

$ sudo -u www-data crontab -e
touch: cannot touch '/var/www/.selected_editor': Permission denied
crontab: installing new crontab
$ sudo -u www-data crontab -l
    :

EDITORSELECTED_EDITOR を設定しておくととりあえず怒られない

$ sudo -u www-data EDITOR=vi  crontab -e
$ sudo -u www-data SELECTED_EDITOR=vi  crontab -e

select-editor が走っているぽい

$ sudo -u www-data /usr/bin/select-editor 
touch: cannot touch '/var/www/.selected_editor': No such file or directory

/var/www にwww-data書き込み権を付ける?

HyperKittyを試す

$ sudo apt install mailman3-web
      ┌───────────────────────────────────────────────────────────────────┤ Configuring mailman3-web ├────────────────────────────────────────────────────────────────────┐      
      │                                                                                                                                                                   │      
      │ The mailman3-web 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/mailman3-web.                        │      
      │                                                                                                                                                                   │      
      │ Otherwise, you should probably choose this option.                                                                                                                │      
      │                                                                                                                                                                   │      
      │ Configure database for mailman3-web with dbconfig-common?                                                                                                         │      
      │                                                                                                                                                                   │      
      │                                                  <Yes>                                                     <No>                                                   │      
      │                                                                                                                                                                   │      
      └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘      
 ```
 
 ```
  ┌────────────────────────────────────────────────────────────────────────┤ Configuring mailman3-web ├────────────────────────────────────────────────────────────────────────┐  
 │ The mailman3-web package can be configured to use one of several database types. Below, you will be presented with the available choices.                                  │  
 │                                                                                                                                                                            │  
 │ If other database types are supported by mailman3-web but not shown here, the reason for their omission is that the corresponding dbconfig-<database type> packages are    │  
 │ not installed. If you know that you want the package to use another supported database type, your best option is to back out of the dbconfig-common questions and opt out  │  
 │ of dbconfig-common assistance for this package for now. Install your preferred dbconfig-<database type> option from the list in the package dependencies, and then         │  
 │ "dpkg-reconfigure mailman3-web" to select it.                                                                                                                              │  
 │                                                                                                                                                                            │  
 │ Database type to be used by mailman3-web:                                                                                                                                  │  
 │                                                                                                                                                                            │  
 │                                                                                  sqlite3                                                                                   │  
 │                                                                                  mysql                                                                                     │  
 │                                                                                                                                                                            │  
 │                                                                                                                                                                            │  
 │                                                    <Ok>                                                        <Cancel>                                                    │  
 │                                                                                                                                                                            │  
 └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘  
                    ┌─────────────────────────────────────────────────────┤ Configuring mailman3-web ├──────────────────────────────────────────────────────┐                    
                    │ Please provide a password for mailman3-web to register with the database server. If left blank, a random password will be generated.  │                    
                    │                                                                                                                                       │                    
                    │ MySQL application password for mailman3-web:                                                                                          │                    
                    │                                                                                                                                       │                    
                    │ _____________________________________________________________________________________________________________________________________ │                    
                    │                                                                                                                                       │                    
                    │                                        <Ok>                                            <Cancel>                                       │                    
                    │                                                                                                                                       │                    
                    └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘                    
                                                                                                                                                                                 

Lam\Shi2glofyadsUtiv

                                                                     ┌────┤ Configuring mailman3-web ├─────┐                                                                     
                                                                     │                                     │                                                                     
                                                                     │                                     │                                                                     
                                                                     │ Password confirmation:              │                                                                     
                                                                     │                                     │                                                                     
                                                                     │ ********************_______________ │                                                                     
                                                                     │                                     │                                                                     
                                                                     │       <Ok>           <Cancel>       │                                                                     
                                                                     │                                     │                                                                     
                                                                     └─────────────────────────────────────┘                                                                     
Creating config file /etc/mailman3/mailman-web.py with new version
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/db/backends/mysql/base.py", line 26, in <module>
    import MySQLdb as Database
ModuleNotFoundError: No module named 'MySQLdb'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/django-admin", line 21, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 338, in execute
    django.setup()
  File "/usr/lib/python3/dist-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models()
  File "/usr/lib/python3/dist-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/hyperkitty/models/__init__.py", line 25, in <module>
    from .category import ThreadCategory
  File "/usr/lib/python3/dist-packages/hyperkitty/models/category.py", line 61, in <module>
    class ThreadCategory(models.Model):
  File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 124, in __new__
    new_class.add_to_class('_meta', Options(meta, app_label))
  File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 325, in add_to_class
    value.contribute_to_class(cls, name)
  File "/usr/lib/python3/dist-packages/django/db/models/options.py", line 214, in contribute_to_class
    self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
  File "/usr/lib/python3/dist-packages/django/db/__init__.py", line 33, in __getattr__
    return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "/usr/lib/python3/dist-packages/django/db/utils.py", line 211, in __getitem__
    backend = load_backend(db['ENGINE'])
  File "/usr/lib/python3/dist-packages/django/db/utils.py", line 115, in load_backend
    return import_module('%s.base' % backend_name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3/dist-packages/django/db/backends/mysql/base.py", line 30, in <module>
    'Did you install mysqlclient or MySQL-python?' % e
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'.
Did you install mysqlclient or MySQL-python?
dpkg: error processing package mailman3-web (--configure):
 installed mailman3-web package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (241-5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for fontconfig (2.13.1-2) ...
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
 mailman3-web
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt install python3-mysqldb dbconfig-mysql python3-whoosh

技適対策に無線モジュールを剥がす

これ間違えて壊してしまうのはともかくほんとに電波出てないのか確認するのに計測器必要だよなとかでやっぱりムズい

“Raspberry Pi4の無線LANを物理的に無効化する | SSW News” https://sswnews.org/2019/07/27/153/

Pockrt

コメント

コメントを入力. Wiki文法が有効です:
189 +14 = 
 
memo/2019/08/2019-08-24.txt · 最終更新: 2019/08/26 02:28 by matoken