1、當我想要使用sudo時,提示 一開始以為是PATH不對,就各種百度各種試 都不好使,最後發現是我裝的debian 8.4.0 amd64 1並不是全功能,sudo沒有裝 2、apt源總是連接到cdrom,使用apt-get install時總是提示出錯,因為我是通過u盤ios鏡像安裝的 可以把c ...
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
-
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、中文輸入法,我找到這個支持網頁,實測可用
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?