安装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 "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
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-freeUpdate 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-dkmsThis will also install the recommended wireless-tools package. DKMS will build the wl module for your system.
Unload conflicting modules:
# modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
Load the wl module:
# modprobe wl
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第一天遇到的几个问题及解决方案的更多相关文章
- VMware Player安装Debian系统
尝试用虚拟机来安装Debian系统,感觉这样一来安装与卸载方便,二来也可以在Linux系统安装出现问题的情况下方便在host主机上查找解决方法,同时也避免了要重新设置分区来安装Linux系统(双系统的 ...
- ubuntu12.04下使用qemu模拟mips处理器安装debian
注:ubuntu是不支持mips处理器的,只能在x86下安装运行第一步.安装qemu sudo apt-get install qemu qemu-system .执行 qemu-system-mip ...
- qemu 的方式安装debian 模拟powerpc
http://bbs.pediy.com/showthread.php?p=1424746http://www.ibm.com/developerworks/cn/linux/l-qemu/ 线总结下 ...
- 在2002年的老电脑上安装Debian
在2002年自己花了家里八千多元买了一台联想昭笔记本电脑.配置是PIII 750 Hz, 128 MB内存(后来升级到了320 MB).那个时候大学里买笔记本电脑的人还不多,宿舍里的同学大都攒的台式机 ...
- 图解安装Debian 9.5全过程
本文将为你带来安装Debian 9.5 GNU/Linux的教程,安装全过程图文并茂讲解.安装Debian 9.5可以把ISO文件下载下来刻录成DVD安装或者采用虚拟机安装等等方法. 一.下载Debi ...
- 龙芯 3A4000 安装 Debian stable
2022-01-17 版权声明:原创文章,未经博主允许不得转载 3A5000 开始,龙芯转向 loongarch ,新的架构虽然甩掉了历史包袱,但也需要一段时间来积累生态.在这半年多的时间里, loo ...
- 安装Debian 7.8 过程,以及该系统的配置过程
最近,我给自己的电脑安装了Debian操作系统,版本7.8 stable.Debian我相信大家都能了解,它是Ubuntu的基础,Ubuntu是基于Debian的unstable开发的.我安装这个系统 ...
- 第四课 Grid Control实验 GC Agent安装(第一台机器部署) 及卸载
3.GC Agent安装(第一台机器部署) 安装Agent 拷贝agent,现在ocm2机器上查找agent.linux 查找文件的方法: find ./ -name agent*linux 把ag ...
- 分布式文件系统 FastDFS 5.0.5 & Linux CentOS 7 安装配置(单点安装)——第一篇
分布式文件系统 FastDFS 5.0.5 & Linux CentOS 7 安装配置(单点安装)--第一篇 简介 首先简单了解一下基础概念,FastDFS是一个开源的轻量级分布式文件系统,由 ...
随机推荐
- WordPress 添加Meta Box的方法步骤
需要使用到add meta boxes Action,该Action允许我们为任何文章类型注册Meta Box,在该Action中,我们需要使用add_meta_box()方法来添加Meta Box的 ...
- winform在不同电脑分辨率
private void InitializeComponent() { //设定按字体来缩放控件 this.AutoScaleMode = System.Windows.Forms.AutoScal ...
- logstash安装与基础用法
若是搭建elk,建议先安装好elasticsearch 来自官网,版本为2.3 wget -c https://download.elastic.co/logstash/logstash/packag ...
- JavaScript高级应用(二)(转)
1.组件是否安装 //组件是否安装 isComponentInstalled("{6B053A4B-A7EC-4D3D-4567-B8FF8A1A5739}", "com ...
- Python正则表达式学习摘要及资料
摘要 在正则表达式中,如果直接给出字符,就是精确匹配. {m,n}? 对于前一个字符重复 m 到 n 次,并且取尽可能少的情况 在字符串'aaaaaa'中,a{2,4} 会匹配 4 个 a,但 a{2 ...
- 利用RNAseq数据做聚类分析
library(ConsensusClusterPlus)library(factoextra)library(cluster)library(NbClust)# 读入数据data = read.ta ...
- PHP-----数组和常见排序算法
数组的创建 <?php //php创建数组 //第一种方法 $arr[0]=1; $arr[1]=23; $arr[2]=20; $arr[3]=43; for($i=0;$i<count ...
- Reverse a singly linked list
Reverse a singly linked list. /** * Definition for singly-linked list. * struct ListNode { * int val ...
- yii2中gii外网访问的配置方法
if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debu ...
- Pycharm使用问题# 快捷键设置
Pycharm内部设置也已经变得非常复杂,此处说明我改变字体大小的快捷键设置. 在Settings中找到Keymap一项,默认显示会展开Editor Actions一项: 在里面分别找到Decreas ...