CentOS 7 Lantern
安装必备软件
sudo yum install epel-release
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
sudo yum install alien
sudo yum install rpmrebuild下载 lantern 的 deb 包(for ubuntu), 这里。
转换 deb 包到 rpm 包
sudo alien -r lantern-installer-64-bit.deb
sudo rpmrebuild -pe lantern-4.8.2-2.x86_64.rpm在弹出的配置文件中,将最后面的内容替换成以下内容
(Converted from a deb package by alien version 8.95.)
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安装
sudo rpm -i /root/rpmbuild/RPMS/x86_64/lantern-4.8.2-2.x86_64.rpm
安装完成后,可在应用程序菜单下的其他里找到
lantern
。点击运行既可以打开lantern
页面,在设置-高级设置中找到本地代理IP。通过浏览器中的代理插件配置该ip作为代理服务提供者。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 LeFer!
评论