Linux系統管理點滴

來源:互聯網
上載者:User

【Ubuntu下啟用root使用者
    設定root密碼:sudo passwd root
    Ubuntu7.04啟用root使用者:vim /etc/X11/gdm/gdm.conf 中設定AllowRoot=true(啟用為true,否則為false)
    Ubuntu8.04啟用root使用者:vim /etc/gdm/gdm.conf 中設定AllowRoot=true(啟用為true,否則為false)

【取消MAC與ethX綁定
Ubuntu 7.04 下取消MAC與ethX綁定
    vim /etc/iftab  把mac與ethX對應注釋即可
Ubuntu 8.04 下取消MAC與ethX綁定
    rm /etc/udev/rules.d/*-persistent-net.rules

【UTC時間修改為本地時間
    vim /etc/default/rcS  中設定UTC=no(UCT時間為yes,本地時間為no)

【Ubuntu 8.04 中把root使用者語言設定為中文
    修改root使用者目錄下修改.profile:
    LANG="zh_CN.UTF-8"
    LANGUAGE="zh_CN:zh"

【Ubuntu 下添加ISO軟體源
    mount -t iso9660 -o loop /media/Soft/Downloads/ubuntu-8.04-dvd-i386.iso  /media/cdrom
    apt-cdrom -m -d /cdrom add

【ubuntu下刪除舊核心
    列出所有安裝的核心,從中選擇要卸載的包,帶有image的就是核心檔案:
    dpkg ——get-selections|grep linux
    用apt-get來卸載舊核心:
    apt-get remove linux-image-2.6.15-23-386

 

相關文章

聯繫我們

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