1. 程式人生 > >Ubuntu16.04 改造成 Mac OX

Ubuntu16.04 改造成 Mac OX

哎,沒錢買Mac只能藉助Ubuntu改造一個了。還是很不錯的。我主要是根據http://www.linuxidc.com/Linux/2016-06/131947.htm這篇教程安裝的。如果你的英語比較好可以看官方教程http://www.noobslab.com/2016/04/macbuntu-1604-transformation-pack-for.html。當然兩者對比看效果更佳。只根據教程裡一步步安裝還是無法達到最終的效果,我也遇到了不少的問題,查閱了很多資料,折騰了一天,還不是很完美,現在有一個缺陷,開機畫面沒有修改正確,還在努力中,如果你有好的解決方案,希望您把您的方法,留言給我,方便大家安裝解決。

我的整體效果如下圖,感覺沒有其他人的好看,不知道怎麼回事。


上乾貨,詳細步驟如下:

記住,下網完桌布後一定要在系統設定裡更換新桌布才有效果,我一開始還很納悶怎麼沒有效果,原來是我自己沒有更換桌布。

2、安裝MacBuntu OS Y Theme,Icons and cursors

sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install macbuntu-os-icons-lts-v7
sudo apt-get install macbuntu-os-ithemes-lts-v7
先安裝成功,稍後講解怎樣設定

如果,你想解除安裝頭themes,icons,cursors

cd /usr/share/icons/mac-cursors && sudo ./uninstall-mac-cursors.sh
sudo apt-get remove macbuntu-os-icons-lts-v7 macbuntu-os-ithemes-lts-v7

3、安裝Slingscold(替代Launchpad)

sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install slingscold
4、安裝Albert Spotlight(替代 Mac Spotlight)
sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install albert
5、安裝Plank Dock


sudo apt-get install plank
sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install macbuntu-os-plank-theme-lts-v7

安裝後搜尋plank,先點選plank,然後在圖示上按住‘Ctrl’+滑鼠右鍵,調出選單後,選擇perference就會出現下面的介面了。我們改成我們喜歡的theme,就OK了。

如果想解除安裝Plank Dock

sudo apt-get autoremove plank macbuntu-os-plank-theme-lts-v7
6、將面板上的‘Ubuntu Desktop’文字換成‘Mac OS X’

'Ubuntu Desktop'在你螢幕的左上角

cd && wget -O Mac.po http://drive.noobslab.com/data/Mac/change-name-on-panel/mac.po
cd /usr/share/locale/en/LC_MESSAGES; sudo msgfmt -o unity.mo ~/Mac.po;rm ~/Mac.po;cd

語言上如果是其他非英語語言,將 /en 做相應修改:

恢復原來的桌面文字命令:

cd && wget -O Ubuntu.po http://drive.noobslab.com/data/Mac/change-name-on-panel/ubuntu.po
cd /usr/share/locale/en/LC_MESSAGES; sudo msgfmt -o unity.mo ~/Ubuntu.po;rm ~/Ubuntu.po;cd
7、啟動器換蘋果LOGO



命令:
wget -O launcher_bfb.png http://drive.noobslab.com/data/Mac/launcher-logo/apple/launcher_bfb.png
sudo mv launcher_bfb.png /usr/share/unity/icons/

恢復圖示:

wget -O launcher_bfb.png http://drive.noobslab.com/data/Mac/launcher-logo/ubuntu/launcher_bfb.png
sudo mv launcher_bfb.png /usr/share/unity/icons/
8、安裝Tweak tool軟體啟用主題、圖示等
sudo apt-get install unity-tweak-tool
sudo apt-get install gnome-tweak-tool

開啟Unity-Tweak-Tool


設定的重點就在Appearance這一欄中,


我們可以看到這裡可以修改主題,圖片,字型等。自己修改吧,我就不多說了。注意修改字型要等到第10步以後。

9、為Libreoffice安裝Monochrome icons:
sudo apt-get install libreoffice-style-sifr
這個就是改變Libreoffice的圖示,如果你不想修改可以跳過此步驟。

開啟LibreOffice找到選單欄,如果你找不到,嘗試將滑鼠移到螢幕的最上邊,這樣選單欄就出來了。然後依次選擇

"Tools"->"Options"->"LibreOffice"->"View" and select "Sifir" under "Icon size and style".




10、配置Mac字型

wget -O mac-fonts.zip http://drive.noobslab.com/data/Mac/macfonts.zip
sudo unzip mac-fonts.zip -d /usr/share/fonts; rm mac-fonts.zip
sudo fc-cache -f -v
這裡要使用Unity-Tweak-Tool,Gnome-Tweak-Tool或Ubuntu Tweak軟體修改字型

11、修改啟動介面

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install macbuntu-os-bscreen-lts-v7
如果你喜歡 MBuntu 啟動介面,你想恢復到 Ubuntu ,使用命令:
sudo apt-get autoremove macbuntu-os-bscreen-lts-v7

最終的效果圖應該如下:


遺憾的是光靠上面的命令,無法實現這樣的效果,原因可能出在plymouth軟體上,由於,我自己還沒有成功,因此,這裡也不便多說,給大家幾個參考連結:

重點如下,我個人覺得這個挺靠譜的,後續再嘗試一下。

run

sudo gedit /etc/hosts
sudo gedit /etc/hostname

and verify that hostnames are same in both files.

127.0.0.1    localhost
127.0.1.1    <[email protected]_host>

If not edit, save the file and then reboot. This will solve yor unable to verify hostname issue.

Ensure that you have installed macbuntu splashscreen in their transformation pack by running

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install macbuntu-os-bscreen-lts-v7

After that you can run

update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/macbuntu/macbuntu.plymouth 100

here you are installing macbuntu splash screen you have installed with the transformation pack as a plymouth alternative.

The format is update-alternatives --install <link> <symlink name> <path> <priority>

Now run

sudo update-alternatives --config default.plymouth
sudo update-initramfs -u

and Reboot.

12、修改登入介面

特別需要注意這一步是有風險的,如果你不是很在意,建議不安裝,這個僅僅適合Ubuntu Unity - Lightdm 和 Ubuntu Gnome - gdm,其他桌面有風險。Ubuntu 16.04 預設是Unity,因此可以安裝。

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install macbuntu-os-lightdm-lts-v7

解除安裝恢復命令:

sudo apt-get remove macbuntu-os-lightdm-lts-v7

1、安裝lightdm-webkit-greeter:終端輸入sudo apt-get install lightdm-webkit-greeter.其實,這個軟體已經內建在Ubuntu 16.04中了,我們可以忽略這一步。

2、並配置/etc/lightdm/lightdm.conf(如果沒有就建立自己一個),內容為:
[SeatDefaults]
greeter-session=lightdm-webkit-greeter

3、配置/etc/lightdm/lightdm-webkit-greeter.conf,修改這兩行為:
theme-name=macbuntu-lightdm
webkit-theme=macbuntu-lightdm
13、設定開機啟動,否則可能沒有效果,建議你先跳過這步,重啟計算機,如果沒有效果再按下面的操作,因為我發現,設定後開機變的很慢了。 開啟tweak tool

到這,基本上就OK了。重啟計算機。

如果你想更炫更酷,可以嘗試Tweak Tool 和 Unity Tweak Tool兩個工具自己再好好研究一下吧。