|
|
37行目: |
37行目: |
| <br> | | <br> |
| ==== SUSE ==== | | ==== SUSE ==== |
| ===== リポジトリを追加してインストール =====
| | [[インストール - TimeShift]]を参照すること。<br> |
| SUSEにおいて、標準のパッケージ管理システムにはTimeShiftが存在しないため、リポジトリを追加してインストールする必要がある。<br>
| |
| [https://software.opensuse.org/package/timeshift SUSEのソフトウェアセンター]にアクセスして、SUSEのバージョンに合ったTimeShiftをインストールする。<br> | |
| <br>
| |
| または、以下のコマンドを実行して、TimeShiftをインストールする。
| |
| sudo zypper addrepo https://download.opensuse.org/repositories/home:Lord-Master/openSUSE_Leap_xx.x/home:Lord-Master.repo
| |
| sudo zypper refresh
| |
| sudo zypper install timeshift
| |
| <br>
| |
| ===== ソースコードからインストール =====
| |
| TimeShiftのビルドに必要なライブラリをインストールする。<br>
| |
| sudo zypper install gtk3-devel libgee-devel typelib-1_0-Gee-1_0 json-glib-devel vala libvala-0_54-0 libvala-0_54-devel vte-devel
| |
| <br>
| |
| [https://github.com/teejee2008/timeshift TimeShiftのGithub]にアクセスして、TimeShiftのソースコードをダウンロードする。<br>
| |
| ダウンロードしたファイルを解凍する。<br>
| |
| tar xf timeshift-<バージョン>.tar.gz
| |
| cd timeshift-<バージョン>
| |
| <br>
| |
| または、<code>git clone</code>コマンドを実行して、ソースコードをダウンロードする。<br>
| |
| git clone https://github.com/teejee2008/timeshift.git
| |
| cd timeshift
| |
| <br>
| |
| TimeShiftをビルドおよびインストールする。<br>
| |
| make app-console -j $(nproc)
| |
| make app-gtk -j $(nproc)
| |
|
| |
| make DESTDIR=<TimeShiftのインストールディレクトリ> install
| |
| sudo cp -r /<TimeShiftのインストールディレクトリ>/etc/timeshift /etc
| |
| # または
| |
| sudo make install
| |
|
| |
| # 不要なビルドファイルを削除する
| |
| make clean
| |
| <br>
| |
| 任意のディレクトリにインストールした場合、TimeShiftのPolkitアクションを作成する。<br>
| |
| sudo vi /usr/share/polkit-1/actions/in.teejeetech.pkexec.timeshift.policy
| |
| <br>
| |
| <syntaxhighlight lang="xml">
| |
| # /usr/share/polkit-1/actions/in.teejeetech.pkexec.timeshift.policyファイル
| |
|
| |
| <?xml version="1.0" encoding="UTF-8"?>
| |
| <!DOCTYPE policyconfig PUBLIC
| |
| "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
| |
| "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
| |
| <policyconfig>
| |
| <vendor>Tony George</vendor>
| |
| <vendor_url>https://github.com/teejee2008</vendor_url>
| |
| <action id="in.teejeetech.pkexec.timeshift-gtk">
| |
| <message gettext-domain="timeshift">Authentication is required to run Timeshift as Administrator</message>
| |
| <description>Run Timeshift as Administrator</description>
| |
| <icon_name>timeshift</icon_name>
| |
| <defaults>
| |
| <allow_any>auth_admin</allow_any>
| |
| <allow_inactive>auth_admin</allow_inactive>
| |
| <allow_active>auth_admin</allow_active>
| |
| </defaults>
| |
| <annotate key="org.freedesktop.policykit.exec.path">/<TimeShiftのインストールディレクトリ>/usr/bin/timeshift-gtk</annotate>
| |
| <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
| |
| </action>
| |
| <action id="in.teejeetech.pkexec.timeshift">
| |
| <message gettext-domain="timeshift">Authentication is required to run Timeshift as Administrator</message>
| |
| <description>Run Timeshift as Administrator</description>
| |
| <icon_name>timeshift</icon_name>
| |
| <defaults>
| |
| <allow_any>auth_admin</allow_any>
| |
| <allow_inactive>auth_admin</allow_inactive>
| |
| <allow_active>auth_admin</allow_active>
| |
| </defaults>
| |
| <annotate key="org.freedesktop.policykit.exec.path">/<TimeShiftのインストールディレクトリ>/usr/bin/timeshift</annotate>
| |
| <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
| |
| </action>
| |
| </policyconfig>
| |
| </syntaxhighlight>
| |
| <br>
| |
| TimeShiftをアンインストールする。<br>
| |
| cd <TimeShiftのソースコードがあるディレクトリ>
| |
| sudo make uninstall
| |
|
| |
| # 残存する不要なファイルを削除する
| |
| sudo rm -r /etc/timeshift
| |
| sudo rm -r /usr/share/pixmaps/timeshift.png
| |
| <br><br> | | <br><br> |
|
| |
|