安裝debian第一天遇到的幾個問題及解決方案

來源:互聯網
上載者:User

標籤:

1、當我想要使用sudo時,提示

bash: sudo: command not found

一開始以為是PATH不對,就各種百度各種試

export PATH=${PATH}:$HOME/bin:/usr/sbin:/usr/bin:/bin:sudo vi ~./.bashrcsudo vi ~./.profilesudo vi /etc/bashrc

都不好使,最後發現是我裝的debian 8.4.0 amd64 1並不是全功能,sudo沒有裝

su -apt-get install sudo

2、apt源總是串連到cdrom,使用apt-get install時總是提示出錯,因為我是通過u盤ios鏡像安裝的

sudo u+w /etc/apt/source.listvi /etc/apt/source.list

可以把cdrom源注釋掉,把另一個源取消注釋,如果你也是和我一樣的debian版本,安裝條件也差不多的話,可以加上下面兩天源,這是我今天配置是用到的

deb http://ftp.cn.debian.org/debian jessie main#Debian 8 "Jessie"deb http://httpredir.debian.org/debian/ jessie main contrib non-free

3、這個問題最頭疼,每次裝linux都是,上次裝ubuntu時也是弄了好久,好不容易找到一個簡單的方案(在我的上一篇部落格裡有),結果這用不了,這次找半天終於找到了你

https://wiki.debian.org/wl/

我的wireless網卡型號是bcm43142,很bug的一個型號,被支援的很不好,查看網卡型號可以用指令

lspci

具體操作為下面,以防網頁失效

Installation

 

  1. Add a "non-free" component to /etc/apt/sources.list for your Debian version, for example:

    # Debian 8 "Jessie"deb http://httpredir.debian.org/debian/ jessie main contrib non-free
  2. Update the list of available packages. Install the relevant/latest linux-image, linux-headers and broadcom-sta-dkms packages:

    # apt-get update# apt-get install linux-image-$(uname -r|sed ‘s,[^-]*-[^-]*-,,‘) linux-headers-$(uname -r|sed ‘s,[^-]*-[^-]*-,,‘) broadcom-sta-dkms

    This will also install the recommended wireless-tools package. DKMS will build the wl module for your system.

  3. Unload conflicting modules:

    # modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
  4. Load the wl module:

    # modprobe wl
  5. Configure your wireless interface as appropriate. See also known issues.

4、中文IME,我找到這個支援網頁,實測可用

https://wiki.debian.org/gnome-chinese-input

我用的是fcitx,具體配置如下

using Fcitx
  • Install Chinese locale

You can do this with dpkg-reconfigure:

su# dpkg-reconfigure locales

Now choose the locale that you want to use, e.g ZN - CN - UTF8 locale.

  • Install Fcitx and pinyin input

 

su# apt-get install fcitx fcitx-googlepinyin fcitx-libpinyin
  • Configure fcitx

 

im-config

From the menu choose fcitx.

Reboot or log out the user. When done you will be able to use the input.

我在windows上用過google拼音IME,覺得挺好的,所以將原網頁中的sunpinyin改成了googlepinyin,裡面會有個圖形化的配置介面讓你來配置,這個你裡面的說明就好了,不多說了

5、我一直喜歡用google,以前在windows上是用的老D分享的hosts(http://laod.cn/hosts/2016-google-hosts.html),但按照裡面的方法來配置就是不好使,有沒有高人教教如何上google?

安裝debian第一天遇到的幾個問題及解決方案

聯繫我們

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