「インストール - TimeShift」の版間の差分

(ページの作成:「== 概要 == Timeshiftは、システムレベルのバックアップに最適なオープンソースのバックアップおよび復元ソフトウェアである。<br> Windowsのシステムの復元やMacOSのTime Machineのような機能を提供する。<br> <br> Rsyncコマンドとハードリンクを使用して、増分アプローチでスナップショットを取得する。<br> Timeshiftを使用することにより、例えば、何かをイン…」)
 
39行目: 39行目:
# 展開したファイルを、任意のディレクトリに配置する。
# 展開したファイルを、任意のディレクトリに配置する。
#: <code>cp -r timeshift-* <TimeShiftのインストールディレクトリ></code>
#: <code>cp -r timeshift-* <TimeShiftのインストールディレクトリ></code>
<br>
==== ソースコードからインストール ====
# ビルドに必要なライブラリをインストールする。
#: <code>sudo zypper install vala libvala-0_54-0 libvala-0_54-devel libgee-devel vte-devel json-glib-devel</code>
# [https://github.com/teejee2008/timeshift TimeShiftのGithub]にアクセスして、ソースコードをダウンロードする。
# ダウンロードしたファイルを解凍する。
#: <code>tar xf timeshift-<バージョン>.tar.gz</code>
#: <code>cd timeshift-<バージョン></code>
# TimeShiftをビルドおよびインストールする。
#: <code>make app-console app-gtk -j $(nproc)</code>
#: <code>make prefix=<TimeShiftのインストールディレクトリ> sysconfdir=<TimeShiftのインストールディレクトリ> install</code>
<br>
PolKitアクションファイルを作成する。<br>
sudo vi /usr/share/polkit-1/actions/in.teejeetech.pkexec.timeshift.policy
<br>
<syntaxhighlight lang="xml">
<?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のインストールディレクトリ>/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のインストールディレクトリ>/bin/timeshift</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>
</policyconfig>
</syntaxhighlight>
<br>
TimeShiftのデスクトップエントリファイルを作成する。<br>
vi ~/.local/share/applications/timeshift-gtk.desktop
<br>
# ~/.local/share/applications/timeshift-gtk.desktopファイル
[Desktop Entry]
Type=Application
Name=Timeshift
GenericName=System Restore Utility
GenericName[ja]=システムの復元ユーティリティ
Comment=System Restore Utility
Comment[ja]=システムの復元ユーティリティ
Exec=/<TimeShiftのインストールディレクトリ>/bin/timeshift-launcher
Icon=/<TimeShiftのインストールディレクトリ>/share/icons/hicolor/128x128/apps/timeshift.png
Categories=System;
MimeType=
Terminal=false
X-KDE-StartupNotify=false
X-GNOME-UsesNotifications=true
<br>
<br>
==== TimeShiftの日本語化 ====
==== TimeShiftの日本語化 ====