Linux使用筆記

來源:互聯網
上載者:User

標籤:io   ar   os   使用   sp   檔案   on   art   問題   

1   解決Ubuntu12.04系統資訊中的圖形顯示“未知”,終端執行:

sudo apt-get install mesa-utils

後重啟就有了。

2   去掉ubuntu關機和重啟的確認提示框
gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true

3   最近ubuntu14.04升級後安裝的中文字型很難看,果斷卸載了
sudo apt-get remove fonts-arphic-ukai    fonts-arphic-uming

4   當你嘗試用rm 刪除太多的檔案,你可能得到一個錯誤資訊:/bin/rm Argument list too long. 用xargs 去避免這個問題
ls|xargs rm -f

5   掛載iso檔案
mount -t iso9660 -o loop filename.iso mount_dir

6   統計目前的目錄下檔案總大小和數量
du -sh
find ./ -type f | wc -l

7   重設Ubuntu 14.04中的Unity和Compiz
dconf reset -f /org/compiz/重啟Unity:
setsid unity重設Unity表徵圖:
unity --reset-icons
如果在重設compiz時遇到如下錯誤:

error: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark. g2dfile 2derror2dquark.Code17: Cannot open dconf database: invalid gvdb header

可能的原因是使用者檔案被搞亂了。備份dconf配置,並移除設定檔:
mv ~/.config/dconf/~/.config/dconf.bak

8   ubuntu14.04更換grub背景
找一張圖片(推薦1920x1200或1920X1080),在win下用photoshop或linux下用gimp或pinta轉換成.tga圖片(名字隨便起,比如grub_back.tga),存放到/boot/grub/下,完成後更新grub:
sudo update-grub2
重啟就看到了

Linux使用筆記

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.