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


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

bash: sudo: command not found

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

export PATH=${PATH}:$HOME/bin:/usr/sbin:/usr/bin:/bin:
sudo vi ~./.bashrc
sudo vi ~./.profile
sudo 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.list
vi /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、中文輸入法,我找到這個支持網頁,實測可用

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拼音輸入法,覺得挺好的,所以將原網頁中的sunpinyin改成了googlepinyin,里面會有個圖形化的配置界面讓你來配置,這個你里面的說明就好了,不多說了

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM