標籤:
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
-
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
-
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.
-
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、中文IME,我找到這個支援網頁,實測可用
https://wiki.debian.org/gnome-chinese-input
我用的是fcitx,具體配置如下
using Fcitx
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
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第一天遇到的幾個問題及解決方案