星空网 > 软件开发 > 操作系统

安装debian第一天遇到的几个问题及解决方案

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、中文输入法,我找到这个支持网页,实测可用

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?




原标题:安装debian第一天遇到的几个问题及解决方案

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

美国版权网:https://www.goluckyvip.com/tag/68198.html
提升搜索排名:https://www.goluckyvip.com/tag/682.html
家具品类产品:https://www.goluckyvip.com/tag/6820.html
美国著作权代登记:https://www.goluckyvip.com/tag/68201.html
美国的著作权:https://www.goluckyvip.com/tag/68202.html
美国著作权登记:https://www.goluckyvip.com/tag/68203.html
咸阳机场到临潼景点 西安咸阳机场到临潼有多远:https://www.vstour.cn/a/411236.html
合肥有什么约会的地方好玩的地方 合肥哪里适合情侣好玩的地方:https://www.vstour.cn/a/411237.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流