随笔分类 - Debian
摘要:参考:https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-debian-10 警告:虽然通常建议对使用传统旋转硬盘驱动器的系统进行交换,但对 SSD 使用交换可能会导致硬件随着时间的推移出现退化问题。出于
阅读全文
posted @ 2021-10-15 09:36
Varden
摘要:1、设置安装源 apt-get -y install --no-install-recommends apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://apt.dockerpr
阅读全文
posted @ 2021-08-20 10:40
Varden
摘要:环境说明 Debian 8(Jessie) 更改国内源,加快打包速度 # vim config/build # vim config/bootstrap # vim config/binary 配置 # mkdir test-image && cd test-image # lb config \
阅读全文
posted @ 2020-11-10 10:59
Varden
摘要:#### Contents of the preconfiguration file (for jessie) ### Localization d-i debian-installer/locale string en_US d-i keyboard-configuration/xkb-keyma
阅读全文
posted @ 2020-11-10 10:42
Varden
摘要:安装软件 # apt-get install tftpd-hpa isc-dhcp-server apache2 配置dhcp服务器 配置文件:/etc/dhcp/dhcpd.conf option domain-name "example.org"; default-lease-time 600;
阅读全文
posted @ 2020-11-10 10:26
Varden
摘要:#Debian 9中的显著变化 火狐Firefox取代Iceweasel作为网页浏览器。 Thunderbird取代Icedove作为电子邮件客户端。 MariaDB替换MySQL。mysql数据库会和mariaDB同时共存产生冲突。 Debian 9中包含的90%以上的源代码包都将构建完全相同的二
阅读全文
posted @ 2020-11-10 08:39
Varden
摘要:#杀死占用资源高的进程并重启桌面管理服务 # top # killall xfce4-panel # killall xfdesktop # killall xfsettingsd # service lightdm restart #重启xrdp服务 # service xrdp restart
阅读全文
posted @ 2020-11-10 08:32
Varden
摘要:#组件说明 DHCP:为将要安装系统的机器分配IP,以便通过网络获取启动镜像。 TFTP:为机器提供引导映像 APACHE:提供系统镜像DVD/CD安装文件、自动安装脚本文件 PXE:开机引导 #安装DHCP # apt-get install isc-dhcp-server #配置DHCPv4,指
阅读全文
posted @ 2020-11-10 08:28
Varden
摘要:#修改debian8更新源 # vim /etc/apt/sources.list deb http://ftp.cn.debian.org/debian/ jessie main contrib non-free #更新系统 # apt-get update # apt-get upgrade #
阅读全文
posted @ 2020-11-09 17:19
Varden
摘要:#安装rdesktop # apt-get install rdesktop #使用rdesktop # rdesktop -g 1024x768 -d 24 <windows-host> 其中“-g 1024×768”设置分辨率为1024×768,“-d 24”设置真彩24位,windows-ho
阅读全文
posted @ 2020-11-09 16:40
Varden
摘要:#安装X基础环境 apt install xorg #彻底删除Gnome aptitude purge `dpkg --get-selections | grep gnome | cut -f 1` aptitude -f install aptitude purge `dpkg --get-sel
阅读全文
posted @ 2020-11-09 16:34
Varden
摘要:安装谷歌浏览器: # wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb # dpkg -i google-chrome-stable_current_amd64.deb # apt-get -
阅读全文
posted @ 2020-11-09 16:26
Varden
摘要:#环境说明 debian 8.x openvpn 2.3.4 #安装OpenVPN包 sudo apt-get update sudo apt-get install openvpn #建立OpenVPN的配置文件,范例在以下路径可以找到:/usr/share/doc/openvpn/example
阅读全文
posted @ 2020-11-09 14:49
Varden
摘要:#系统发行代号及对应版本 wheezy -- 7.x jessie -- 8.x stretch -- 9.x buster -- 10.x testing -- 当前开发中的最新版本 #官方源 # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb http://
阅读全文
posted @ 2020-11-07 11:16
Varden
摘要:#环境说明 debian 8(jessie) apache2 php 7.0 #安装组件 # apt-get install apache2 php7.0-mysql libapache2-mod-php7.0 php7.0-mbstring #更改默认字符集 # nano /etc/apache2
阅读全文
posted @ 2020-11-07 10:06
Varden
摘要:#环境说明: debian 8(jessie) #更改下载源: # vim /etc/live/build.conf LB_MIRROR_BOOTSTRAP="http://ftp.cn.debian.org/debian/" LB_MIRROR_CHROOT_SECURITY="http://ft
阅读全文
posted @ 2020-11-07 09:57
Varden
摘要:#系统要求: 超级管理员访问权限 一个最新版本的live-build 符合POSIX标准的shell,如bash或dash debootstrap或cdebootstrap 内核2.6+ #环境说明: debian 8(jessie) #安装live-build: apt-get install l
阅读全文
posted @ 2020-11-07 09:43
Varden
摘要:Linux双网卡绑定一个IP地址,实质工作就是使用两块网卡虚拟为一块,使用同一个IP地址,是我们能够得到更好的更快的服务。其实这项技术在Sun和Cisco中早已存在,被称为Trunking和Etherchannel技术,在Linux的2.4.x的内核中也采用这这种技术,被称为bonding。 #bo
阅读全文
posted @ 2020-11-04 14:26
Varden
摘要:编辑/etc/network/interfaces配置文件,添加以下内容: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.10.56 netmask 255.255.254.0 gate
阅读全文
posted @ 2020-11-04 13:37
Varden