爲什麼要出這篇文章呢,相信很多redhat粉一直對桌面級系統念念不忘,但是桌面級的它卻需要大量的時間去折騰,下載這下載那的,遍地找應用。因爲他沒有ubuntu和debian那麼使用方便和部署,今後會陸續出關於redhat系列的桌面級使用工具下載和使用。當然本章對其他非redhat發行版只有參考價值,不建議手操。
個人建議(個人測試最完美的安裝方式):
TIM 迅雷 用crossover安裝,微信 百度雲 用flatpak安裝,redis-manager 用snap安裝,其他軟件可以去他們各自的store網站去找找,最後再考慮alien轉換deb,我用它毀壞過我的rpm環境(當然當時自信的用root去操作)。
提示
桌面系統是長久開發使用的,維護好系統的安全和完整很重要,不要輕易的用root去搞事情,多用sudo
,你的系統就用的越久~
1. flatpak
Linux 上應用程序的未來。Flatpak是用於在Linux上構建和分發桌面應用程序的下一代技術,使用Flatpak,每個應用程序都在隔離的環境中構建和運行。
官方網站:https://flatpak.org/
應用程序庫:https://flathub.org/home
基本上支持所有發行版的linux.你在官方的app store 中可能發現不了TIM,微信,迅雷,百度雲等,有些大佬將深度的包重打包成flatpak,我們可以直接安裝,不過需要安裝深度的flatpak依賴,具體看下面的貼吧。
http://tieba.baidu.com/p/5759912059
注意:安裝完後應用列表裏會自動添加圖標,第一次運行儘量用命令來運行flatpak run xxx
,因爲能看到報錯(如果未安裝成功的話,避免一臉矇蔽),如果成功運行以後就可以直接點圖標了。
常用命令:
- 安裝:
flatpak install xxxx.flatpak
- 查看列表:
flatpak list
[fantj@localhost snap]$ flatpak list
Ref Options
com.tencent.wechat/i386/2.6 system,current
com.deepin.wine.Platform/i386/2.18 system,runtime
- 運行:
flatpak run com.tencen.tim
- 刪除:
flatpak remove com.tencen.tim
全部命令
Usage:
flatpak [OPTION…] COMMAND
Builtin Commands:
Manage installed apps and runtimes
install Install an application or runtime
update Update an installed application or runtime
uninstall Uninstall an installed application or runtime
list List installed apps and/or runtimes
info Show info for installed app or runtime
config Configure flatpak
repair Repair flatpak installation
create-usb Put apps and/or runtimes onto removable media
Finding applications and runtimes
search Search for remote apps/runtimes
Running applications
run Run an application
override Override permissions for an application
make-current Specify default version to run
enter Enter the namespace of a running application
ps Enumerate running applications
Manage file access
document-export Grant an application access to a specific file
document-unexport Revoke access to a specific file
document-info Show information about a specific file
document-list List exported files
Manage dynamic permissions
permission-remove Remove item from permission store
permission-list List permissions
permission-show Show app permissions
permission-reset Reset app permissions
Manage remote repositories
remotes List all configured remotes
remote-add Add a new remote repository (by URL)
remote-modify Modify properties of a configured remote
remote-delete Delete a configured remote
remote-ls List contents of a configured remote
remote-info Show information about a remote app or runtime
Build applications
build-init Initialize a directory for building
build Run a build command inside the build dir
build-finish Finish a build dir for export
build-export Export a build dir to a repository
build-bundle Create a bundle file from a ref in a local repository
build-import-bundle Import a bundle file
build-sign Sign an application or runtime
build-update-repo Update the summary file in a repository
build-commit-from Create new commit based on existing ref
repo Print information about a repo
Help Options:
-h, --help Show help options
Application Options:
--version Print version information and exit
--default-arch Print default arch and exit
--supported-arches Print supported arches and exit
--gl-drivers Print active gl drivers and exit
-v, --verbose Print debug information during command processing, -vv for more detail
--ostree-verbose Print OSTree debug information during command processing
2. crossover(wine 收費發行版)
Linux 上運行 Windows 軟件,是 wine的發行版,可以破解。不瞭解wine的自行百度...
Wine與 Crossover 的本質區別就是 Crossover 是商業版的Wine; Wine 是免費的,Crossover 是需要花錢買的,一個免費一個收費(滑稽),就知道誰好用了。
下載
官方鏈接:http://www.crossoverchina.com/xiazai.html
直接運行rpm包或者命令rpm -ivh crossoverxxxx.rpm
進行安裝。
破解
破解文件下載:https://pan.baidu.com/s/1KZP3lEZI9SJ2HTgmxbkVgw
然後將/opt/cxoffice/lib/wine/winewrapper.exe.so
這個文件替換即可。
使用
官方使用手冊:http://www.crossoverchina.com/rumen/ ,可以從本地安裝也可以從app store中安裝,當然,本地安裝一般用不了,除非老版本的應用~
主要介紹從它本身應用市場中安裝,下面是截圖:
軟件本身就有應用市場,可以直接搜。也可以安裝本地的exe文件,但是不能保證可用,自己要琢磨,多百度。
3. fedy
主要用來安裝編解碼器,軟件等......由於我現在用的29 版本,目前該版本對fedy的支持還沒做(安裝不上),之前我用28版本的時候也是有點bug,也不知道是28版本的bug還是fedy的,這個想玩的可以試試。
安裝官網:https://www.folkswithhats.org/
它的使用比較方便,直接打開後用鼠標點擊安裝即可。
4. Snapcraft
napcraft 是一個正在爲其在 Linux 中的地位而奮鬥的包管理系統,它爲你重新設想了分發軟件的方式。這套新的跨發行版的工具可以用來幫助你構建和發佈 snap 軟件包。
snap 軟件包被設計成用來隔離並封裝整個應用程序。這些概念使得 snapcraft 提高軟件安全性、穩定性和可移植性的目標得以實現,其中可移植性允許單個 snap 軟件包不僅可以在 Ubuntu 的多個版本中安裝,而且也可以在 Debian、Fedora 和 Arch 等發行版中安裝
安裝
參考官方文檔:https://docs.snapcraft.io/installing-snap-on-fedora/6755
sudo dnf install snapd
sudo ln -s /var/lib/snapd/snap /snap
應用商城
命令
查找應用:
$ snap find "media player"
Name Version Developer Notes Summary
(...)
vlc 3.0.4 videolan✓ - The ultimate media player.
mpv 0.26.0 casept - a free, open source, and cross-platform media player.
(...)
查看應用詳情
$ snap info vlc
name: vlc
summary: The ultimate media player
publisher: VideoLAN✓
contact: https://www.videolan.org/support/
description: |
VLC is the VideoLAN project's media player.
(...)
snap-id: RT9mcUhVsRYrDLG8qnvGiy26NKvv6Qkd
commands:
- vlc
channels:
stable: 3.0.0 (158) 197MB -
candidate: 3.0.0 (158) 197MB -
beta: 3.0.0-5-g407d4ba (160) 197MB -
edge: 4.0.0-dev-1218-g201542f (159) 197MB
安裝:
sudo snap install vlc
執行應用:
在這裏可以將該目錄添加到環境變量中,這樣可以直接執行
redis-desktop-manager.rdm
來啓動應用。
/snap/bin/redis-desktop-manager.rdm
列出已安裝的應用:
[fantj@localhost /]$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.35.5 5742 stable canonical✓ core
redis-desktop-manager 0.9.8+git 156 stable uglide -
更新應用
sudo snap refresh vlc
更多命令
請查看官方doc:https://docs.snapcraft.io/getting-started/3876
5. alien
alien是一個用於在各種不同的Linux包格式相互轉換的工具,其最常見的用法是將.rpm轉換成.deb,或者反過來。
deb 是 Unix 系統(其實主要是 Linux )下的安裝包,基於 tar 包,因此本身會記錄文件的權限(讀/寫/可執行)以及所有者/用戶組。
安裝
下載地址:http://ftp.de.debian.org/debian/pool/main/a/alien/
源碼安裝(CentOS推薦):
tar xxxx
perl Makefile.PL
make
make install
如果你是Fedora,推薦直接sudo dnf install alien
轉換格式
.deb包轉換成.rpm包 alien -r <package.deb>
.rpm包轉換成.deb包 alien -d <package.rpm>
eg:
alien -r libbz2-dev_1.0.6-5_i386.deb libbz2-dev-1.0.6-6.i386.rpm generated
rpm安裝
rpm -ivh xxx
如果報錯則安裝依賴:yum -y install python-libs python-wnck