zoukankan      html  css  js  c++  java
  • 安装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?

  • 相关阅读:
    GD32E507移植FreeRTOS
    FreeRTOS学习笔记——任务基础知识
    FreeRTOS学习笔记——系统配置
    am335x WG209 wifi模块自动配置的脚本
    树莓派学习笔记——Systemd进程启动
    am335x WG209 wifi模块驱动移植
    树莓派学习笔记——搭建Samba服务端
    树莓派学习笔记——内核编译
    一个复制文件的Shell脚本
    Makefile学习笔记——Makefile通配符的使用
  • 原文地址:https://www.cnblogs.com/qingkai/p/5426088.html
Copyright © 2011-2022 走看看