Debian 8 简单配置

    xiaoxiao2021-03-25  114

    说明 这里仅仅介绍了Debian系统刚安装完后的配置和相关出错问题的处理,不涉及系统下载和安装。另外,安装软件需使用管理员权限(在apt-get或dpkg前添加sudo,两者之间加空格隔开;或使用su root或简单的su,命令提示符由$改为#);

    基本

    虚拟机中安装VMware Tools

    将VMwareTools-xx.tar.gz复制到个人工作空间中;解压,命令行./vmware-install.pl

    出错

    Enter the path to the kernel header files for the xx kernel?

    处理

    apt-get update apt-get install linux-headers-$(uname -r)

    机器安装配置显卡、声卡、网卡等


    基础软件配置

    为Mozilla Firefox(Iceweasel)安装flash player插件

    下载软件包flash_player_npapi_linux.x86_64.tar.gz;解压:tar -zxvf flash_player_npapi_linux.x86_64.tar.gz -C yourdir (其中-C yourdir可选,目录yourdir需先建立,解压文件放置在目录下);

    复制文件:

    cp libflashplayer.so /usr/lib/mozilla/plugins cp -r usr/* /usr

    重启浏览器。

    (安装步骤可以见解压文件中的readme.txt)

    补充:手动安装新版本的Firefox

    下载新版本的Firefox,比如最后得到Firefox-latest-x86_64.tar.bz2卸载旧版本的Firefox,apt-get purge firefox-esr,也可以使用apt-get remove firefox-esr解压下载的压缩包,tar -jxvf Firefox-latest-x86_64.tar.bz2,解压获得的firefox目录的可执行程序firefox可以直接运行,后面主要是配置一下路径等。创建目标安装目录,mkdir /opt/mozilla移动,mv firefox /opt/mozilla/符号链接,ln -s /opt/mozilla/firefox/firefox /usr/bin/firefox,这样终端中可以启动Firefox浏览器桌面快捷方式,建立文件touch /usr/share/applications/firefox.desktop;然后修改firefox.desktop文件,输入内容:

    [Desktop Entry] Name=firefox Comment=firefox Exec=/opt/mozilla/firefox/firefox Icon=/opt/mozilla/firefox/browser/icons/mozicon128.png Terminal=false Type=Application Categories=Application; Encoding=UTF-8 StartupNotify=true

    缺陷:

    dpkg管理工具中无法找到firefox的信息;


    安装Google Chrome

    从官网下载软件包google-chrome-stable_current_amd64.deb安装:dpkg -i google-chrome-stable_current_amd64.deb

    (deb文件是Debian的二进制安装文件,使用dpkg命令管理,-i表示install,参见帮助文档)

    出错

    Chrome没有图标

    处理

    可能是缺少库文件,

    apt-get install update apt-get -f install

    补充:为Chrome安装Flash Player

    下载Flash Player(Chrome版本,flash_player_ppapi_linux.x86_64.tar.gz),搜索引擎搜一下即可解压文件将解压的文件全部复制到目录/usr/lib/adobe-flashplugin/;详情可见解压目录中的readme.txt

    安装中文输入法

    安装ibus拼音输入法:apt-get install ibus-pinyin ;注销一下系统;在系统的设置(Settings)中选择区域与语言(Region & Lanuage)添加Chinese(pinyin)(Chinese(bopomofo)是注音输入法);

    出错

    输入法的配置中设置为全拼(Full pinyin),但正常输入中出现的不是全拼而是双拼。

    处理

    尝试注销系统或重启 另:默认切换下一个输入法是Super(即Win键)+空格。


    配置sudo

    安装sudo

    apt-get install sudo

    出错1

    You might want to run ‘apt-get -f install’ to correct these: The following packages have unmet dependencies:

    处理1

    根据提示,输入apt-get -f install

    出错2

    XX is not in the sudoers file. This incident will be reported.

    处理2

    修改/etc/sudoers文件:使用命令visudo或其他方式打开该文件在root ALL=(ALL:ALL) ALL后添加: yourUsername ALL=(ALL:ALL) ALL保存,退出

    其他软件

    日常

    搜狗拼音输入法WPS Officeunrarwinetelegram……

    开发

    vimemacsgcccmakeclangOracle Javasublime text3gitvpncopenssh-server……

    Debian包管理(简介)

    查找程序安装路径

    # 查看完整的程序名(这里以chrome为例) dpkg -l | grep chrome # 查看程序安装路径 dpkg -L google-chrome-stable # 也可以用以下命令,which、whereis仅查看可执行程序位置 which google-chrome-stable whereis google-chrome-stable locate google-chrome-stable

    软件列表备份、恢复和删除

    # 备份软件包列表 dpkg --get-selections > app-backup-list.txt # 重装的机器上导入并重装所有软件: dpkg --set-selections < app-backup-list.txt apt-get -y update apt-get dselect-upgrade # 其他删除系统自带软件,比如libreoffice-common、rhythmbox、empathy apt-get remove yoursoftwarename

    补充:软件安装目录

    /bin、/usr/bin、/usr/local/bin:存放安装后的可执行文件 /lib、/usr/lib、/usr/local/lib:存放相关的库文件

    其中:

    /usr:系统级的目录/usr/lib:库文件目录/usr/local:用户级的程序目录,用户自己编译的软件默认会安装到这个目录下。/opt:用户级的程序目录。opt有可选(optional)的意思,这里可以用于放置第三方(大型)软件(或游戏)。当你不需要时,直接移除即可。也可将/opt单独挂载到其他磁盘上使用。/usr/src:系统级程序的源码目录。/usr/local/src:用户级程序的源码目录。
    转载请注明原文地址: https://ju.6miu.com/read-16931.html

    最新回复(0)