Teruhiro Komaki's Blog (Temporary)

Debian Stretch(GNOME)に最新のFirefoxをインストールしてアイコンも作成する

ご存知の通りDebian Stretch(GNOME)には、Firefox ESRが入っています。

今回は、Firefox ESRではなく、最新のFirefoxをインストールするときのメモ。

ダウンロード

Firefoxからダウンロードします。

firefox

任意の場所に保存してください。 今回はDownloadsとして進めます。

Downloadsにfirefox-61.0.2.tar.bz2(バージョン番号は気にせず…)がダウンロードされると思います。

展開

展開します。

1cd ~/Downloads
2Downloads $ tar xf firefox-61.0.2.tar.bz2

展開すると、こんな感じだと思います。

1Downloads $ ls -la
2total 57788
3drwxr-xr-x  3 teruhirokomaki teruhirokomaki     4096 Aug 28 20:10 .
4drwxr-xr-x 28 teruhirokomaki teruhirokomaki     4096 Aug 28 20:32 ..
5drwxr-xr-x  9 teruhirokomaki teruhirokomaki     4096 Aug 28 11:20 firefox
6-rw-r--r--  1 teruhirokomaki teruhirokomaki 52674082 Aug 28 11:07 firefox-61.0.2.tar.bz2

optに移動

firefoxoptに移動します。

1Downloads $ sudo cp -r firefox /opt/
2[sudo] password for user

optを見てみます。

1Downloads $ ls -la /opt/
2total 16
3drwxr-xr-x  4 root root 4096 Aug 28 20:37 .
4drwxr-xr-x 23 root root 4096 Aug 28 10:14 ..
5drwxr-xr-x  9 root root 4096 Aug 28 20:37 firefox
6drwxr-xr-x  3 root root 4096 Aug 28 10:45 google

デスクトップアイコンの作成

デスクトップアイコンを作成します。

いちから作成するのは面倒くさいので、既存のFirefox ESRを複製して使います。

デスクトップアイコンは、以下にあります。

 1applications $ pwd
 2/usr/share/applications
 3applications $ ls
 4bluetooth-sendto.desktop         gnome-chess.desktop                   gnome-user-accounts-panel.desktop  openjdk-8-policytool.desktop           quadrapassel.desktop
 5brasero.desktop                  gnome-color-panel.desktop             gnome-user-share-webdav.desktop    org.gnome.baobab.desktop               rhythmbox.desktop
 6brasero-nautilus.desktop         gnome-control-center.desktop          gnome-wacom-panel.desktop          org.gnome.Books.desktop                rhythmbox-device.desktop
 7ca.desrt.dconf-editor.desktop    gnome-datetime-panel.desktop          goldendict.desktop                 org.gnome.Calendar.desktop             rygel.desktop
 8caffeine.desktop                 gnome-disk-image-mounter.desktop      google-chrome.desktop              org.gnome.Characters.desktop           scim-setup.desktop
 9caffeine-indicator.desktop       gnome-disk-image-writer.desktop       gvim.desktop                       org.gnome.Cheese.desktop               seahorse.desktop
10debian-reference-common.desktop  gnome-display-panel.desktop           iagno.desktop                      org.gnome.ChromeGnomeShell.desktop     setup-mozc.desktop
11debian-uxterm.desktop            gnome-info-panel.desktop              ibus-setup.desktop                 org.gnome.clocks.desktop               shotwell.desktop
12debian-xterm.desktop             gnome-keyboard-panel.desktop          ibus-setup-hangul.desktop          org.gnome.ColorProfileViewer.desktop   shotwell-viewer.desktop
13display-im6.q16.desktop          gnome-klotski.desktop                 icedove.desktop                    org.gnome.Contacts.desktop             simple-scan.desktop
14eog.desktop                      gnome-mahjongg.desktop                icedtea-netx-javaws.desktop        org.gnome.Dictionary.desktop           simplescreenrecorder.desktop
15evince.desktop                   gnome-mimeapps.list                   im-config.desktop                  org.gnome.DiskUtility.desktop          slack.desktop
16evince-previewer.desktop         gnome-mines.desktop                   inkscape.desktop                   org.gnome.Documents.desktop            software-properties-drivers.desktop
17evolution-calendar.desktop       gnome-mouse-panel.desktop             itweb-settings.desktop             org.gnome.FileRoller.desktop           software-properties-gnome.desktop
18evolution.desktop                gnome-music.desktop                   kasumi.desktop                     org.gnome.font-viewer.desktop          software-properties-gtk.desktop
19fcitx-config-gtk3.desktop        gnome-network-panel.desktop           khmerconverter.desktop             org.gnome.gedit.desktop                swell-foop.desktop
20fcitx-configtool.desktop         gnome-notifications-panel.desktop     libreoffice-base.desktop           org.gnome.Hitori.desktop               synaptic.desktop
21fcitx.desktop                    gnome-online-accounts-panel.desktop   libreoffice-calc.desktop           org.gnome.Logs.desktop                 tali.desktop
22fcitx-skin-installer.desktop     gnome-power-panel.desktop             libreoffice-draw.desktop           org.gnome.Maps.desktop                 thunderbird.desktop
23firefox-esr.desktop              gnome-printers-panel.desktop          libreoffice-impress.desktop        org.gnome.Nautilus.desktop             tracker-needle.desktop
24five-or-more.desktop             gnome-privacy-panel.desktop           libreoffice-math.desktop           org.gnome.Nibbles.desktop              tracker-preferences.desktop
25four-in-a-row.desktop            gnome-region-panel.desktop            libreoffice-startcenter.desktop    org.gnome.Polari.desktop               transmission-gtk.desktop
26gcm-calibrate.desktop            gnome-robots.desktop                  libreoffice-writer.desktop         org.gnome.Screenshot.desktop           uim.desktop
27gcm-import.desktop               gnome-search-panel.desktop            libreoffice-xsltfilter.desktop     org.gnome.Shell.desktop                vim.desktop
28gcm-picker.desktop               gnome-sharing-panel.desktop           lightsoff.desktop                  org.gnome.Shell.PortalHelper.desktop   vinagre.desktop
29gcr-prompter.desktop             gnome-shell-extension-prefs.desktop   mimeinfo.cache                     org.gnome.Software.desktop             vinagre-file.desktop
30gcr-viewer.desktop               gnome-software-local-file.desktop     mlterm.desktop                     org.gnome.SoundRecorder.desktop        vino-server.desktop
31geoclue-where-am-i.desktop       gnome-sound-panel.desktop             mutt.desktop                       org.gnome.taquin.desktop               xiterm+thai.desktop
32ghcal.desktop                    gnome-sudoku.desktop                  mutter.desktop                     org.gnome.Terminal.desktop             yelp.desktop
33gimp.desktop                     gnome-system-monitor.desktop          nautilus-autorun-software.desktop  org.gnome.Totem.desktop                zeal.desktop
34gkbd-keyboard-display.desktop    gnome-system-monitor-kde.desktop      nautilus-classic.desktop           org.gnome.Weather.Application.desktop
35gnome-background-panel.desktop   gnome-tetravex.desktop                nm-applet.desktop                  org.keepassxc.KeePassXC.desktop
36gnome-bluetooth-panel.desktop    gnome-tweak-tool.desktop              nm-connection-editor.desktop       python2.7.desktop
37gnome-calculator.desktop         gnome-universal-access-panel.desktop  notification-daemon.desktop        python3.5.desktop

複製します。

1applications $ sudo cp firefox-esr.desktop firefox.desktop
1applications $ sudo vim firefox.desktop

この中を適当に修正します。

Exec=/usr/lib/firefox-esr/firefox-esr %uのパスを修正すればよいだけだと思います。

  1[Desktop Entry]
  2Name=Firefox ESR
  3Name[bg]=Firefox ESR
  4Name[ca]=Firefox ESR
  5Name[cs]=Firefox ESR
  6Name[el]=Firefox ESR
  7Name[es]=Firefox ESR
  8Name[fa]=Firefox ESR
  9Name[fi]=Firefox ESR
 10Name[fr]=Firefox ESR
 11Name[hu]=Firefox ESR
 12Name[it]=Firefox ESR
 13Name[ja]=Firefox ESR
 14Name[ko]=Firefox ESR
 15Name[nb]=Firefox ESR
 16Name[nl]=Firefox ESR
 17Name[nn]=Firefox ESR
 18Name[no]=Firefox ESR
 19Name[pl]=Firefox ESR
 20Name[pt]=Firefox ESR
 21Name[pt_BR]=Firefox ESR
 22Name[ru]=Firefox ESR
 23Name[sk]=Firefox ESR
 24Name[sv]=Firefox ESR
 25Comment=Browse the World Wide Web
 26Comment[bg]=Сърфиране в Мрежата
 27Comment[ca]=Navegueu per el web
 28Comment[cs]=Prohlížení stránek World Wide Webu
 29Comment[de]=Im Internet surfen
 30Comment[el]=Περιηγηθείτε στον παγκόσμιο ιστό
 31Comment[es]=Navegue por la web
 32Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید
 33Comment[fi]=Selaa Internetin WWW-sivuja
 34Comment[fr]=Navigue sur Internet
 35Comment[hu]=A világháló böngészése
 36Comment[it]=Esplora il web
 37Comment[ja]=ウェブを閲覧します
 38Comment[ko]=웹을 돌아 다닙니다
 39Comment[nb]=Surf på nettet
 40Comment[nl]=Verken het internet
 41Comment[nn]=Surf på nettet
 42Comment[no]=Surf på nettet
 43Comment[pl]=Przeglądanie stron WWW 
 44Comment[pt]=Navegue na Internet
 45Comment[pt_BR]=Navegue na Internet
 46Comment[ru]=Обозреватель Всемирной Паутины
 47Comment[sk]=Prehliadanie internetu
 48Comment[sv]=Surfa på webben
 49GenericName=Web Browser
 50GenericName[bg]=Интернет браузър
 51GenericName[ca]=Navegador web
 52GenericName[cs]=Webový prohlížeč
 53GenericName[de]=Webbrowser
 54GenericName[el]=Περιηγητής ιστού
 55GenericName[es]=Navegador web
 56GenericName[fa]=مرورگر اینترنتی
 57GenericName[fi]=WWW-selain
 58GenericName[fr]=Navigateur Web
 59GenericName[hu]=Webböngésző
 60GenericName[it]=Browser Web
 61GenericName[ja]=ウェブ・ブラウザ
 62GenericName[ko]=웹 브라우저
 63GenericName[nb]=Nettleser
 64GenericName[nl]=Webbrowser
 65GenericName[nn]=Nettlesar
 66GenericName[no]=Nettleser
 67GenericName[pl]=Przeglądarka WWW
 68GenericName[pt]=Navegador Web
 69GenericName[pt_BR]=Navegador Web
 70GenericName[ru]=Интернет-браузер
 71GenericName[sk]=Internetový prehliadač
 72GenericName[sv]=Webbläsare
 73X-GNOME-FullName=Firefox ESR Web Browser
 74X-GNOME-FullName[bg]=Интернет браузър (Firefox ESR)
 75X-GNOME-FullName[ca]=Navegador web Firefox ESR
 76X-GNOME-FullName[cs]=Firefox ESR Webový prohlížeč
 77X-GNOME-FullName[el]=Περιηγήτης Ιστού Firefox ESR
 78X-GNOME-FullName[es]=Navegador web Firefox ESR
 79X-GNOME-FullName[fa]=مرورگر اینترنتی Firefox ESR
 80X-GNOME-FullName[fi]=Firefox ESR-selain
 81X-GNOME-FullName[fr]=Navigateur Web Firefox ESR
 82X-GNOME-FullName[hu]=Firefox ESR webböngésző
 83X-GNOME-FullName[it]=Firefox ESR Browser Web
 84X-GNOME-FullName[ja]=Firefox ESR ウェブ・ブラウザ
 85X-GNOME-FullName[ko]=Firefox ESR 웹 브라우저
 86X-GNOME-FullName[nb]=Firefox ESR Nettleser
 87X-GNOME-FullName[nl]=Firefox ESR webbrowser
 88X-GNOME-FullName[nn]=Firefox ESR Nettlesar
 89X-GNOME-FullName[no]=Firefox ESR Nettleser
 90X-GNOME-FullName[pl]=Przeglądarka WWW Firefox ESR
 91X-GNOME-FullName[pt]=Firefox ESR Navegador Web
 92X-GNOME-FullName[pt_BR]=Navegador Web Firefox ESR
 93X-GNOME-FullName[ru]=Интернет-браузер Firefox ESR
 94X-GNOME-FullName[sk]=Internetový prehliadač Firefox ESR
 95X-GNOME-FullName[sv]=Webbläsaren Firefox ESR
 96Exec=/usr/lib/firefox-esr/firefox-esr %u
 97Terminal=false
 98X-MultipleArgs=false
 99Type=Application
100Icon=firefox-esr
101Categories=Network;WebBrowser;
102MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
103StartupWMClass=Firefox-esr
104StartupNotify=true

編集しましたので、diffを。

 1applications $ colordiff -u firefox-esr.desktop firefox.desktop
 2--- firefox-esr.desktop 2018-06-26 18:33:25.000000000 -0400
 3+++ firefox.desktop     2018-08-28 20:47:09.339156963 -0400
 4@@ -1,5 +1,5 @@
 5 [Desktop Entry]
 6-Name=Firefox ESR
 7+Name=Firefox
 8 Name[bg]=Firefox ESR
 9 Name[ca]=Firefox ESR
10 Name[cs]=Firefox ESR
11@@ -10,7 +10,7 @@
12 Name[fr]=Firefox ESR
13 Name[hu]=Firefox ESR
14 Name[it]=Firefox ESR
15-Name[ja]=Firefox ESR
16+Name[ja]=Firefox
17 Name[ko]=Firefox ESR
18 Name[nb]=Firefox ESR
19 Name[nl]=Firefox ESR
20@@ -93,12 +93,12 @@
21 X-GNOME-FullName[ru]=Интернет-браузер Firefox ESR
22 X-GNOME-FullName[sk]=Internetový prehliadač Firefox ESR
23 X-GNOME-FullName[sv]=Webbläsaren Firefox ESR
24-Exec=/usr/lib/firefox-esr/firefox-esr %u
25+Exec=/opt/firefox/firefox %u
26 Terminal=false
27 X-MultipleArgs=false
28 Type=Application
29 Icon=firefox-esr
30 Categories=Network;WebBrowser;
31 MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
32-StartupWMClass=Firefox-esr
33+StartupWMClass=Firefox
34 StartupNotify=true

これで普通に使えると思います。

firefox

起動しましょう。

firefox

Tags:
comments powered by Disqus