作者sinsan (Anywhere)
看板Linux
標題[分享] Ubuntu 14.04 LTS 在 Samsung 530U3C
時間Thu Mar 24 11:51:12 2016
#網誌版 :
http://tonycch-daybyday.blogspot.tw/2016/03/ubuntu-1404-lts.html
由於想把手上的老Ultrabook (Samsung series 5_530U3C)升級SSD硬碟,
從傳統硬碟轉移到SSD後,在資料沒保存備份下讓SSD做對齊,
結果一也讓原本從Win7家用版升級到Win10的系統無法正常.
後來要在灌Win10又沒序號而憤而讓他裝linux. 先後試過了Ubuntu 15.1(64bit)
而最近感到系統愈來愈多不需要的東西, 還是讓他試跑14.04 LTS(64bit)
整個下來的安裝過程都很順利沒有硬體驅動問題,從Win轉到Ubuntu前後過了半年的時間.
基本上把系統從Win 換到 Linux已經可以做到無縫接軌,Spotify在這裡也有.
(Google服務都已經可以保存需要的文件,等等)
以下是過程中的筆記,需要超連結的部份建議參考網誌版
希望可以讓手上的Ubuntu 更美觀也符合在日常使用的需求:
設定防火牆 ufw:參考文
設定TLP:(參考)幫筆電可以在Linux操作下更省電
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
安裝:sudo apt-get install tlp tlp-rdw
執行: sudo tlp start 可能需要往上爬找到類似這段描述(+++ System Status TLP
power save = enabled power source = ...)
安裝chrome:從Google下載deb
安裝(Chinese input) gcin與詞音中文輸入(ubuntu 14.04安裝gcin與設定)
Ubuntu 軟體中心安裝gcin 設定
點選語言支援
設定輸入方式為gcin後登出
其他設定可參考該網誌詳細
如何讓在這裡啟用terminal, (AskUbuntu)Open terminal here
安裝套件: sudo apt-get install nautilus-open-terminal
重啟nautilus: nautilus -q
如何讓SSD硬碟定期TRIM, (AskUbuntu) How is trim enable for SSD
開啟每週定期trim的文件: sudo gedit /etc/cron.weekly/fstrim
把原本的exec fstrim-all修改如後: exec fstrim-all --no-model-check
如何安裝Python2.7 , (Ubuntu Software Center)
輸入Python2, 找到IDLE安裝:ex. IDLE (using Python-2.7)
如何讓Ubuntu 像Macbook 一樣使用Airplay 到 Apple TV 3,(Instructables)
這個因為我們家的apple TV已經被封印了,有需要再來設定(避免小朋友說要看電視,家裡
沒電視...)
早上測試了: java -jar airplay.jar -h 192.168.31.157 -d
結果有畫面沒聲音, 而且還有一些lag
Spotify用Unity面板控制(OMGUbuntu)
先到Spotify下載Linux版本(參考Spotify官方):
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys
BBEBDCB318AD50EC6865090613B00F1FD2C19886
echo deb
http://repository.spotify.com stable non-free | sudo tee
/etc/apt/sources.list.d/spotify.list
sudo apt-get update
sudo apt-get install spotify-client
修改Spotify.desktop設定檔:
sudo gedit /usr/share/applications/spotify.desktop
[Desktop Entry]
Name=Spotify
GenericName=Music Player
Comment=Spotify streaming music client
Icon=spotify-client
Exec=spotify %U
TryExec=spotify
Terminal=false
Type=Application
Categories=Audio;Music;Player;AudioVideo;
MimeType=x-scheme-handler/spotify
Actions=PlayOrPause;Stop;Next;Previous
[Desktop Action PlayOrPause]
Name=Play or Pause
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
OnlyShowIn=Unity;
[Desktop Action Stop]
Name=Stop
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop
OnlyShowIn=Unity;
[Desktop Action Next]
Name=Next
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
OnlyShowIn=Unity;
[Desktop Action Previous]
Name=Previous
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
OnlyShowIn=Unity;
貼上以上內容後關閉gedit編輯器及存檔
修正Ubuntu英文版中Chrome中文字型的問題:
由於字型多安裝的字型更新包會讓瀏覽網頁有些中文字會亂跳字體,所以要把他移除:
sudo apt-get remove fonts-arphic-ukai && sudo apt-get remove
fonts-arphic-uming
重新登入
Ubuntu 安裝google的思源字型:
先找到這個步驟說明:教學文, 並將字體下載位置改如以下
思源字體下載換此:
https://noto-website-2.storage.googleapis.com/pkgs/Noto-hinted.zip
清除原本的Ubuntu 15.1並改裝14.04 LTS後並將介面改為比較1個小時左右可以搞定, 過
程中還把一些工具也裝了, ex. Rstudio, WPS office, Inkscape, etc.
#2016-03-20更新以下#
今天繼續安裝了Evernote 5.9.6 (by Wine 1.8),步驟如以下(參考):
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.8 winetricks
下載Evernote_5.9.6.9494
透過WINE安裝evernote.exe: wine [path to evernote setup exe]
執行並登入(2階段驗證順利)
Evernote on Ubuntu 14.04 LTS
防毒軟體與Trojan部份, 這邊是選用F-PROT與chkrootkit(直接在Ubuntu Software
Center,然後到Terminal執行 sudo chkrootkt), 由於先前使用ClamAV...想說換一個試試
看 F-PORT的安裝順序: (相關教學)
下載壓縮檔:
http://www.f-prot.com/download/home_user/download_fplinux.html
把檔案解壓縮目錄到想要安裝的目錄ex: sudo mv f-prot /opt/
在/opt/f-prot下執行安裝: sudo ./install-f-prot.pl
執行fpscan(參數)方式: sudo fpscan -a.
後記: 後來找到F-Secure 11.0有支援到14.04 (網址), 晚點來試試看
--> 結果:無法安裝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 113.196.154.3
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1458791480.A.551.html
推 Adama: 思源字型已經在套件庫中了。Evernote用wine裝會無法更新 03/24 15:30
→ Adama: 而且字型有點難弄,我現在都直接用evernote web版了 03/24 15:30
推 willy69wu31: 提醒: 是 Ubuntu 15.10,不是 Ubuntu 15.1 03/24 19:45
推 AndyLee76: Ubuntu版號是用發表年+月,所以不能寫成15.1,寫成15.1 03/25 00:38
→ AndyLee76: 0才是正確的 03/25 00:38
→ sinsan: 理解 03/25 15:07
→ sinsan: 我用evernote主要只是在搜尋與產生Link,字型部份是沒關係 03/25 15:36
推 s9209122222: Windows 10 不是認主機板的嗎? 03/25 19:58
推 s9209122222: 話說之前在 Ubuntu 用了一陣子 的 docky 後,總覺得 03/25 20:07
→ s9209122222: 有點多此一舉,所以就刪掉了,還是原版最讚 03/25 20:07
推 s9209122222: 請問 chkrootkit 測出 Warning: /sbin/init INFECTED 03/25 20:19
→ s9209122222: 有哪些可能性呢?? 03/25 20:19
→ s9209122222: 會像 askubuntu 上面的回答一樣是 bug 嗎? 03/25 20:20
→ s9209122222: 其實一切都只是個 chkrootkit 式的玩笑? 03/25 20:21
推 s9209122222: rkhunter 跑出 /usr/bin/unhide.rb [ Warning ] 03/25 20:27
→ s9209122222: passwd file changes [ Waring ] 03/25 20:28
→ s9209122222: group file changes [ Warning ] 03/25 20:28
→ s9209122222: /dev for suspicious file types [ Warning ] 03/25 20:29
→ s9209122222: hidden files and directories [ Warning ] 03/25 20:29
→ s9209122222: File properties checks... 03/25 20:30
→ s9209122222: Files checked: 136 03/25 20:30
→ s9209122222: Suspect files: 1 03/25 20:31
→ s9209122222: 請問我該如何處置? 03/25 20:31
推 s9209122222: 我的處境很危險嗎? 03/25 20:32
推 s9209122222: 查了一下,好像是 rkhunter 的問題 03/25 21:14
推 s9209122222: 用另一台筆電重灌後都會跑出一樣的東西 03/25 21:48
推 rockmanx52: 你升級到Win10後就不用序號了啦.... 03/25 23:58