📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)
| (同じ利用者による、間の5版が非表示) | |||
| 6行目: | 6行目: | ||
== 依存関係のライブラリのインストール == | == 依存関係のライブラリのインストール == | ||
==== | ==== RHEL ==== | ||
依存関係のライブラリのインストールは不要である。<br> | 依存関係のライブラリのインストールは不要である。<br> | ||
<br> | <br> | ||
==== SUSE ==== | ==== SUSE ==== | ||
Slackの依存関係にあるライブラリlibXss1をインストールする。<br> | Slackの依存関係にあるライブラリlibXss1をインストールする。<br> | ||
| 18行目: | 19行目: | ||
[https://slack.com/intl/ja-jp/downloads/linux Slackの公式Webサイト]から、SlackのRPMファイルをダウンロードする。<br> | [https://slack.com/intl/ja-jp/downloads/linux Slackの公式Webサイト]から、SlackのRPMファイルをダウンロードする。<br> | ||
<br> | <br> | ||
==== | ==== RHEL / SUSE ==== | ||
DnfまたはZypperを使用して、Slackをインストールする。<br> | |||
# | # RHEL | ||
sudo | sudo dnf install ./slack-<バージョン名>.el8.x86_64.rpm | ||
# | # SUSE | ||
sudo | sudo zypper install ./slack-<バージョン名>.el8.x86_64.rpm | ||
<br> | <br> | ||
手動でインストールする場合、以下のコマンドを実行して、RPMファイルを展開する。<br> | |||
rpm2cpio slack-<バージョン名>.el8.x86_64.rpm | cpio -id | |||
mv slack-<バージョン名>.el8.x86_64.rpm Slack | |||
cp Slack <任意のインストールディレクトリ> | |||
<br> | <br> | ||
/<任意のインストールディレクトリ>/usr/binディレクトリに移動して、ラッパーシェルスクリプトを作成する。<br> | |||
vi /<任意のインストールディレクトリ>/usr/bin/slack.sh | |||
<br> | <br> | ||
<syntaxhighlight lang="sh"> | <syntaxhighlight lang="sh"> | ||
# | # /<任意のインストールディレクトリ>/usr/bin/slack.shファイル | ||
#!/usr/bin/env sh | #!/usr/bin/env sh | ||
| 41行目: | 43行目: | ||
appname="slack" | appname="slack" | ||
# use -f to make the readlink path absolute | # use -f to make the readlink path absolute | ||
dirname="$(dirname -- "$(readlink -f -- "${0}")" )" | dirname="$(dirname -- "$(readlink -f -- "${0}")" )" | ||
| 56行目: | 57行目: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<br> | <br> | ||
Slackのデスクトップエントリファイルを、~/.local/share/applicationsディレクトリに作成する。<br> | |||
vi ~/.local/share/applications/Slack.desktop | |||
<br> | |||
<syntaxhighlight lang="ini"> | |||
# ~/.local/share/applications/Slack.desktopファイル | |||
[Desktop Entry] | [Desktop Entry] | ||
Type=Application | Type=Application | ||
Name=Slack | Name=Slack | ||
GenericName=Slack Client for Linux | GenericName=Slack Client for Linux | ||
Comment=Slack Desktop | Comment=Slack Desktop | ||
Exec= | Exec=/<Slackのインストールディレクトリ>/usr/bin/slack.sh %U | ||
Icon= | Icon=/<Slackのインストールディレクトリ>/usr/share/pixmaps/slack.png | ||
StartupWMClass=Slack | StartupWMClass=Slack | ||
StartupNotify=true | StartupNotify=true | ||
Categories=GNOME;GTK;Network;InstantMessaging; | Categories=GNOME;GTK;Network;InstantMessaging; | ||
MimeType=x-scheme-handler/slack; | MimeType=x-scheme-handler/slack; | ||
</syntaxhighlight> | |||
<br><br> | <br><br> | ||
__FORCETOC__ | __FORCETOC__ | ||
[[カテゴリ: | [[カテゴリ:RHEL]][[カテゴリ:SUSE]] | ||