Installing lantern under OpenSUSE

Keywords: Linux RPM sudo vim CentOS

Statement: This article refers to guoxiaoxu's Install Lantern under CentOS 7 ! As I am a novice who has just transferred from Ubuntu to openSUSE for less than 2 days, my level is very limited, please forgive me.

Installation preparation

Essential package

Prepare an official deb package for lantern and convert the deb package to rpm package through several steps to complete the installation of lantern on opensuse.

Essential software

1) alien

alien is used to convert between. deb packages and. rpm packages.

Install alien, as if you can't install it directly with zypper. You need to add utilities sources ( http://download.opensuse.org/... Just do it.

Then, run the installation command.

sudo zypper in alien    //Install alien


2) rpmrebuild

rpmrebuild can be installed directly using zypper.

sudo zypper in rpmrebuild 


Installation details

1. Convert deb package to rpm package

sudo alien -r lantern-installer-64-bit.deb

2. Modify the content of the rpm package (I don't understand this step myself, but it works).

sudo rpmrebuild -pe lantern-4.8.0-2.x86_64.rpm    //Operate on packages that have been converted to rpm.

Through this operation, you enter vim (uncertain, but the same operation). Operating files.

Replace part of the original file with the following text in vim (very easy to find, style and content are similar). :

(Converted from a deb package by alien version 8.95.)[This line need not be replaced]
%files
#%dir %attr(0755, root, root) "/"
#%dir %attr(0755, root, root) "/usr"
#%dir %attr(0755, root, root) "/usr/bin"
%attr(0777, root, root) "/usr/bin/lantern"
#%dir %attr(0755, root, root) "/usr/lib"
%dir %attr(0755, root, root) "/usr/lib/lantern"
%attr(0644, root, root) "/usr/lib/lantern/.packaged-lantern.yaml"
%attr(0644, root, root) "/usr/lib/lantern/lantern-binary"
%attr(0755, root, root) "/usr/lib/lantern/lantern.sh"
%attr(0644, root, root) "/usr/lib/lantern/lantern.yaml"
#%dir %attr(0755, root, root) "/usr/share"
#%dir %attr(0755, root, root) "/usr/share/applications"
%attr(0644, root, root) "/usr/share/applications/lantern.desktop"
#%dir %attr(0755, root, root) "/usr/share/doc"
%dir %attr(0755, root, root) "/usr/share/doc/lantern"
%doc %attr(0644, root, root) "/usr/share/doc/lantern/changelog.gz"
%doc %attr(0644, root, root) "/usr/share/doc/lantern/copyright"
#%dir %attr(0755, root, root) "/usr/share/icons"
#%dir %attr(0755, root, root) "/usr/share/icons/hicolor"
#%dir %attr(0755, root, root) "/usr/share/icons/hicolor/128x128"
#%dir %attr(0755, root, root) "/usr/share/icons/hicolor/128x128/apps"
%attr(0644, root, root) "/usr/share/icons/hicolor/128x128/apps/lantern.png"
%changelog

3. Install the rpm package of lantern

The converted rpm package is not in the pre-conversion position, but in / usr/src/packages/RPMS/x86_64/.

sudo rpm -i /usr/src/packages/RPMS/x86_64/lantern-4.8.0-2.x86_64.rpm

4. Solving Dependence

After installing lantern.rpm, it will not work properly, prompting the need for "libappindicator 3.so.1". Run the following command to fix it.

sudo zypper in libappindicator3-1

5. Copy the running file of lantern to / home

cp /usr/lib/lantern/lantern.sh  ~

6. Run lantern

./lantern.sh

Posted by jeopardy_68 on Sun, 27 Jan 2019 23:24:14 -0800