debian 安装后需做的几件事

   2023-02-10 学习力0
核心提示:安装环境:X86Debian 9 Linux/GNUapt源更新注意连上有线网络刚安装好的debian系统中,/etc/apt/sources.list包含了本地软件仓库的源,可以预先下载好官方的所有DVD光盘数据,安装好后自己根据网络教程搭建本地仓库安装/更新软件。这里以使用网络源为实例,说

安装环境:X86 >> Debian 9 Linux/GNU

debian 安装后需做的几件事

apt源更新


注意连上有线网络
刚安装好的debian系统中,/etc/apt/sources.list包含了本地软件仓库的源,可以预先下载好官方的所有DVD光盘数据,安装好后自己根据网络教程搭建本地仓库安装/更新软件。这里以使用网络源为实例,说明在能连接网络的情况下安装/更新软件包。
注释原来的源信息,添加debain 9的源。

gedit  /etc/apt/sources.list # 复制下边的仓库源到文件并保存
# 163
deb http://mirrors.163.com/debian/ stretch main
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

更新软件

# apt-get update && apt-get install aptitude   
# aptitude update && aptitude dist-upgrade
# apt-get install apt-transport-https ca-certificates       #  add support for https apt sources by installing a couple of packages
# apt-get install build-essential                                     # 安装基本开发工具
# apt-get install linux-headers-$(uname -r)                  # 安装内核头文件

时间同步/时区更改/本地化

# apt-get install ntpdate -y    # 安装时间同步软件
# ntpdate time.windows.com      # 同步时间

# dpkg-reconfigure tzdata       # 更改时区

# apt-get install locales
# dpkg-reconfigure locales      # 本地化设置

参考 Debian时间同步

vim vim-gtk


# apt-get install vim vim-gtk

输入法fcitx


安装

# apt-get install fcitx fcitx-tools fcitx-config* fcitx-frontend* fcitx-module* fcitx-ui-* presage

# apt-get remove fcitx-module-kimpanel    # 移除多余的组件

# apt-get install fcitx-pinyin            # 拼音
# apt-get install fcitx-sunpinyin         # sun拼音
# apt-get install fcitx-googlepinyin      # google拼音
# apt-get install fcitx-table-wubi-large  # 五笔

配置

参考Debian中文输入法fcitx总结

创建文件:/etc/X11/Xsession.d/95im_init(文件名95im_init貌似可以随意)

export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export XMODIFIERS=@im=fcitx
fcitx &

注意:这里的变量LANG与参考中的有些区别,主要是设置成中文翻译有些翻译看上去不是很好.

debian 安装后需做的几件事

gnome-tweak-tool桌面管理工具

控制桌面窗口/鼠标等的特性,给你一个更美更人性化的桌面体验。
请参考Debian 桌面美化

# apt-get install gnome-tweak-tool

debian 安装后需做的几件事

音乐软件


网易云音乐

参考debian之网易云音乐的安装

debian 安装后需做的几件事

视频播放器


# apt-get  install mpv mplayer

debian 安装后需做的几件事

firefox浏览器flashplayer安装


下载Abode flashplayer

debian 安装后需做的几件事

根据解压的readme.tex安装软件

debian 安装后需做的几件事

视频录制软件


"avconv"工具录制计算机桌面

kazam

apt-get install kazam

截图软件 shutter


# apt-get install shutter

BT/迅雷下载工具


# apt-get install uget  qbittorrent  -y

latex


方便编辑文本文档,然后生成PDF
TeX Live 下载及安装说明
texlive2015-6安装

conky


用于显示磁盘监控信息,不错的美化工具。

安装

# apt-get install conky

配置~/.conkyrc

conky.config = {
alignment = 'top_right',
background = true,
update_interval=1,
double_buffer=true,
draw_shades=false,
draw_outline=false,
draw_borders = false,
draw_graph_borders = false,
show_graph_scale = false,
show_graph_range = false,
minimum_height = 620,
minimum_width = 268,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'normal',
own_window_transparent=true,
own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager",
own_window_argb_visual=true,
own_window_argb_value=0,
border_inner_margin=0,
border_outer_margin=0,
use_xft = true,
xftalpha=0.8,
font = 'DejaVu Sans Mono:size=12',
text_buffer_size=256,
short_units=true,
short_units=true,
pad_percents=2,
top_name_width=7,
    alignment = 'top_left',
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'white',
    gap_x = 5,
    gap_y = 60,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
}

conky.text = [[
${scroll 16 $nodename - $sysname $kernel on $machine | }
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
 / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color grey}Networking:
Up:$color ${upspeed wlp2s0} ${color grey} - Down:$color ${downspeed wlp2s0}
$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color lightgrey} ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${color lightgrey} ${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
${color lightgrey} ${top name 8} ${top pid 8} ${top cpu 8} ${top mem 8}
${color lightgrey} ${top name 9} ${top pid 9} ${top cpu 9} ${top mem 9}
]]

VirtualBox


虚拟windows操作系统,便于测试或者使用一些小工具。
ubuntu下virtualbox的安装、卸载
VirtualBox Download
debian 安装后需做的几件事

Rdesktop & VNC Viewer


方便远程连接windows/Linux

# apt-get install rdesktop 

参考VNC Viewer

FTP工具


aptitude search filezilla
aptitude install filezilla

samba


方便访问windows共享盘

安装

# apt-get install samba-client

配置:使用share_space.sh脚本连接windows共享盘

#!/bin/bash
# file name: share_space.sh

mount -t cifs -o username=login_win_user,password=yourpasswd,vers=2.0 //192.168.1.22/Public  /mnt/Exchange/    

# //192.168.1.22/Public 为共享盘网络路径
# /mnt/Exchange/        为挂载的位置 

绘图工具dia(取代visio)


强大的绘图功能

# apt-get install dia

debian 安装后需做的几件事

固定IP地址


修改IP配置

查看网卡名字

# apt-get install libnet-ifconfig-wrapper-perl    # 安装工具,若没有 ifconfig 命令
# ifconfig                                                         # 查看网卡信息

debian 安装后需做的几件事

上图可以看出,网卡名为enp2s0
接下来,修改 /etc/network/interfaces,添加如下内容(注意,不要添加中文注释,有可能影响启动)

auto enp2s0 
iface enp2s0 inet static 
address 192.168.100.38      
netmask 255.255.255.0      
gateway 192.168.100.1   

debian 安装后需做的几件事

修改DNS

apt-get install resolvconf

编辑 /etc/resolvconf/resolv.conf.d/base

nameserver 8.8.8.8
nameserver 8.8.4.4

重载

resolvconf -u

重启网卡

/etc/init.d/networking restart

RAR文件解压


rar download

Open***


Open***官网

Zoom会议


ZooM下载中心

参考资料


[1].Ubuntu安装Fcitx以及Fcitx输入中文不显示候选词框的解决办法
[2].texlive2015-6安装
[3].ubuntu下virtualbox的安装、卸载
[4].Linux怎样访问Windows共享文件和文件夹
[5].Debian时间同步
[6].Debian中文输入法fcitx总结
[7].Debian 桌面美化
[8].Debian DNS resolv.conf 重启失效/复写

形而上者谓之道 形而下者谓之器。
 
反对 0举报 0 评论 0
 

免责声明:本文仅代表作者个人观点,与乐学笔记(本网)无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
    本网站有部分内容均转载自其它媒体,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责,若因作品内容、知识产权、版权和其他问题,请及时提供相关证明等材料并与我们留言联系,本网站将在规定时间内给予删除等相关处理.

  • 【树莓派】树莓派(Debian)- root用户无法使用SSH登录
    【树莓派】树莓派(Debian)- root用户无法使用
    在树莓派4B上安装了最新的Debian64位系统默认账户密码:pi/raspberryroot/    ------无密码(通过sudo passwd root修改root密码后)问题root修改密码后还是无法登录解决这个系统默认不允许root使用SSH登录登录root用户su 打开配置文件 nano /etc/ssh/sshd_
    03-08
  • windows10环境下安装Linux子系统---debian
    windows10环境下安装Linux子系统---debian
    windows10环境下安装Linux子系统---debian一、前提1、在控制面板-程序-启用与关闭Windows功能中,勾选“适用于Linux的Windows子系统”  2、首先需要创建一个文件夹,用来存放子系统,在需要的位置创建即可,文件夹名任意3、手动下载Windows子系统发行版包,
    03-08
  • Debian 环境安装新版 nginx
    Debian 环境安装新版 nginx
    在 Debian 系统中,我们可以通过 apt-get 安装系统自带的 nginx,这样安装的 nginx 版本略旧。Nginx 官网提供了一些编辑绎好的 deb 安装包,我们只需更新安装源,就可以通过 apt-get 来安装最新的稳定版 Nginx 了。 加载安装源并导入key$ echo deb http://ng
    03-08
  • 使用apt-mirror建立本地debian仓库源
     先介绍一下环境:主机:Win7虚拟机:VirtualBox + Debian7由于软件源的体积比较大,所以我又给虚拟机添加了一块50GB的虚拟硬盘(给虚拟机添加虚拟硬盘的方法参见:http://www.cnblogs.com/pengdonglin137/p/3366589.html , 其中介绍了如何在Vmware和Virtua
    03-08
  • Debian其实有提供附带了各种桌面的安装镜像
    我之前试着装Debian,但它的安装程序我感觉很难用,装上去了之后也有许许多多的问题,比如中文不显示。今天我发现带Live CD的Debian镜像有带了各个桌面的版本,于是我就试着下载KDE版本的Debian。由于我房间的WLAN质量不佳,用500kb/s的速度下了几个小时,那
    02-10
  • Debian镜像使用帮助 Debian镜像下载
    Debian镜像使用帮助 Debian镜像下载
    http://mirrors.163.com/.help/debian.html
    02-10
  • Debian 11 安装Nvidia闭源驱动
    目录通过APT安装Nvidia驱动为Nvidia驱动注册Secure Boot参考文档本人的系统是Debian11,最近一阵子在捣鼓用apt安装英伟达的闭源驱动,同时支持Secure Boot,查阅了Debian Wiki之类的资料之后,在这里整理一下。通过APT安装Nvidia驱动首先,需要确保你的Debian
    02-10
  • Debian时区和时间自动同步
    时区和时间自动同步(1)时间设置及其同步#date  -s 07/26/2005 //2005年7月26日    //修改系统日期时间为当前正确时间#date -s 11:12:00     //11点12分0秒#vim /etc/default/rcS  //设定 BIOS 时间使用 UTC 时区将选项 UTC 的值设定成 yes
    02-10
  • debian/ubuntu系统vi无法删除字符的解决办法
    之前在 Linux 下操作,一直使用的是 Centos 系统,使用 vi 编辑命令一直很顺畅。 最近,入手了一台 debian 操作系统的 vps。在操作 vi 命令时,发现当输入 i 要进行文件编辑时,上下左右的光标无法移动,屏幕上总会出现字符,而且 backspace 只能后退,无法
    02-10
  • Debian安装JAVA环境 debian安装jdk11
     http://blog.csdn.net/gongora/archive/2009/05/15/4190469.aspxDebian官方没有维护专门的Java软件包,所以不能直接用apt-get工具来安装。在Debian系统中要安装Java,有两种方式,一种是用传统方式;一种是Debian方式。1. 传统方式在 sun 下载了最新的 JDK
    02-10
点击排行