Debian8 xfce 常用修改

文件系统制作

jigdo='http://cdimage.debian.org/cdimage/archive/8.5.0/amd64/jigdo-dvd/debian-8.5.0-armhf-DVD-1.jigdo' debianMirror='http://mirrors.163.com/debian/'
sudo debootstrap --arch=armhf --foreign buster root https://mirrors.tuna.tsinghua.edu.cn/debian/
sudo debootstrap --foreign --arch=armhf jessie debian8 http://ftp.debian.org/debian/
sudo cp -a /usr/bin/qemu-arm-static debian8/usr/bin/ sudo cp -a resolv.conf debian9/etc/resolv.conf
DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true  LC_ALL=C LANGUAGE=C LANG=C /debootstrap/debootstrap --second-stage
useradd -s '/bin/bash' -m -G adm,sudo admin passwd admin passwd root echo 'jessie-armhf' > /etc/hostname
apt-get -y update apt-get -y upgrade
apt install lxde -y
#xfce apt install -y xorg xfce4 xfce4-goodies lightdm/slim
apt-get install sudo vim openssh-server net-tools ethtool network-manager wireless-tools ifupdown htop iputils-ping kmod
apt-get -y install vim netplan busybox udhcpc sudo ssh net-tools network-manager wireless-tools iputils-ping rsyslog bash-completion htop
systemctl set-default graphical.target
apt-get install ntpdate timedatectl set-timezone Asia/Shanghai apt-get install -y rsync
sudo rsync -avx root@192.168.2.161:/ ./debian8_xfce_sync
cd debian8 sudo tar jcvf ../debian8.tar.bz2 *
sudo tar -jxvf debian8-lxde.tar.bz2

报dev-ttymxc3.device timeout

A start job is running for dev-ttymxc3.device

[ TIME ] Timed out waiting for device dev-ttymxc3.device.
[DEPEND] Dependency failed for Serial Getty on ttymxc3.

/lib/systemd/system/serial-getty@.service

Steps

1. First copy the template:

# cp /lib/systemd/system/serial-getty@.service /etc/systemd/system/serial-getty@ttymxc3.service

2. Then edit the file and modify the agetty line:

[Service]
ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM    <-- Change this parameter
Type=idle

3. Create a symlink:

# ln -s /etc/systemd/system/serial-getty@ttymxc3.service /etc/systemd/system/getty.target.wants/

4. Reload the daemon and start the service:

# systemctl daemon-reload
# systemctl start serial-getty@ttymxc3.service
# systemctl enable serial-getty@ttymxc3.service

5.vim /etc/init.d/rc.local 或者

vim /etc/init.d/startala.sh

#start serial-getty@ttymxc3.service
systemctl daemon-reload

命令行连接wifi

/etc/network/interfaces

auto lo
iface lo inet loopback

allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid alagroup
wpa-psk alagroup_dev
    
sudo nmcli dev wifi connect "alagroup" password "alagroup_dev"
sudo nmcli dev disconnect wlan0

自动登录

/etc/lightdm/lightdm.conf

[Seat:*]
autologin-session=xubuntu
autologin-user=root
autologin-user-timeout=0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值