カテゴリー: Tips

  • WordPressインストール手順

    os:debian12

    1. mysqlでデータベース wordpres を作成する
    2. ユーザーtocにデータベース wordpres管理の全権限を与える
    3. https://ja.wordpress.org/download/ から WordPress パッケージをダウンロード&解凍
    4. 解凍したwordpressフォルダーをwebサーバーにアップロード
    5. wordpressにログインしてサンプルページを削除または編集して記事を投稿

    1.データベース wordpres を作成

    $ mysql -u root -p

    MariaDB [(none)]> create database wordpress; //wordpressを作成

    MariaDB [(none)]> show databases; //wordpressを確認

    MariaDB [(none)]> use wordpress;

    MariaDB [(none)]> grant all privileges on wordpress.* to user@localhost; //userにwordpres管理の全権限を与える
     
    Query OK, 0 rows affected (0.024 sec)

    MariaDB [(none)]> quit;
    Bye

    3. wordpressのダウンロード→解凍→サーバーの公開ダーにフォルダーにコピー

    wordpressをダウンロードしたフォルダーに移る

    $ cd ~/ダウンロード

    ~/ダウンロード$

    ~/ダウンロード $unzip wordpress-6.8-ja.zip

    解凍してできたwordpressフォルダーをサーバーの公開ファルダーにコピーする。

    筆者はサーバーをKDE Plasma デスクトップ環境で管理しているのでファイルマネジャーDolphinでマウス操作で公開フォルダーにコピー

  • ~/.ssh/authorized_keysの作成方法

    ~/.ssh/authorized_keysの作成方法

    ~$ ssh-copy-id -i ~/.ssh/id_rsa.pub user@host.example.com

    /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/home/toc/.ssh/id_rsa.pub”
    /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), t
    o filter out any that are already installed
    /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed — if you a
    re prompted now it is to install the new keys
    user@host.example.com’s password:  ログインパスワードを入力

    umber of key(s) added: 1

    Now try logging into the machine, with:   “ssh ‘toc@yes.nigiwai-net.com
    ‘”
    and check to make sure that only the key(s) you wanted were added.

  • GoogleChromのインストール手順

    OS:debian12

    desktop:KDE Plasma

    1.ダウンロードサイトから安定版をダウンロードする

    https://www.google.com/intl/ja_jp/chromeで「クロームをダウンロード」をクリックしてダウンロードする

    2.google-chrome-stable_current_amd64.debが/home/user/ダウンロードにダウンロードされたのを確認

    $ cd /home/user/ダウンロード

    3.ダウンロードしたgoogle-chrome-stable_current_amd64.debのインストールを試みる

    # apt -s install  ./google-chrome-stable_current_amd64.deb

    出力されたメッセージ(一部省略):

    以下のパッケージには満たせない依存関係があります:
    google-chrome-stable : 依存: fonts-liberation しかし、インストールされていません

    4.依存関係を解決するために、fonts-liberation も一緒にインストールする

    # apt  install fonts-liberation ./google-chrome-stable_current_amd64.deb

    5.インストールしたGoogleChromを立ち上げて各種設定をして完了