Ubuntu 提示備查

來源:互聯網
上載者:User

1. 更改主機名稱

     需要修改兩個檔案  

     執行:XXX@Ubuntu:~$
sudo  gedit  /etc/hosts /etc/hostname   將其中的主機名稱改掉  ,重啟生效


2. grub 更新 

    $ 
update-grub

    $ grub-install  /dev/sda   


3. 因為 調整分區造成 啟動時出現 grub >rescue

    > set root=(hd0,x)   //Ubuntu 所在盤 可以用 ls 尋找 eg:ls (hd0,12)/boot/ 

    > set prefix=/grub/boot/normal.mod

    > insmod normal

    >normal

    進入GRUB引導介面後 可按 e 修改 (hd0, msdosX) , 進入系統後執行 2


4, 開機 grub 引導菜單介面 “超出頻率限制” 或者中文顯示為 ”?“

    $ sudo gedit /etc/default/grub

    找到如下部分 修改 GRUB_GFXMODE 為相應的解析度

    # you can see them in real GRUB with the command `vbeinfo'

    GRUB_GFXMODE=1366x768 

    儲存後執行 grub 更新 安裝  即 2


5. vim 顯示行號 

    sudo vim /etc/vim/vimrc // 機房裡的fedora是 /etc/vimrc

   在裡面加上 : set nu 

 


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.