...
 
Commits (7)
This diff is collapsed.
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootflags=data=journal elevator=deadline isolcpus=2,3 rcu_nocbs=2,3 nohz_full=2,3 fsck.repair=yes net.ifnames=0 rootwait quiet
# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
# GPU memory
gpu_mem=16
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2c_vc=on
#dtparam=i2s=on
dtparam=spi=on
# I2C-1 baud rate 100 kHz
dtparam=i2c1_baudrate=100000
# Enable DS1307 real time clock
dtoverlay=i2c-rtc,ds1307
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
debconf debconf/frontend select Dialog
locales locales/default_environment_locale select en_US.UTF-8
debconf debconf/priority select high
debconf debconf/frontend select Noninteractive
locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8
locales locales/default_environment_locale select None
proc /proc proc auto,defaults 0 0
debugfs /sys/kernel/debug debugfs auto,defaults 0 0
configfs /config configfs auto,defaults 0 0
tmpfs /tmp tmpfs auto,mode=1777 0 0
/dev/mmcblk0p2 / ext4 auto,noatime,data=journal,errors=remount-ro 0 1
/dev/mmcblk0p1 /boot vfat auto,noatime 0 0
#!/bin/sh
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
set +e
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
export LC_ALL=C LANGUAGE=C LANG=C
# Workaround firmware issue leaving i2c0 in an non-ALT0 state.
for i in 28 29; do
echo $i > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio${i}/direction
done
# Add /dev/ttyS0 link for convenience.
if ! [ -e /dev/ttyS0 ]; then
ln -s /dev/ttyAMA0 /dev/ttyS0
fi
exit 0
[Unit]
Description=Regenerate SSH host keys
After=syslog.target local-fs.target
Before=ssh.service
[Service]
Type=forking
ExecStart=/bin/sh /etc/ssh/regenerate_ssh_host_keys.sh
[Install]
WantedBy=multi-user.target
#!/bin/sh
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
export LC_ALL=C LANGUAGE=C LANG=C
if [ "$1" = "SECOND_STAGE" ]; then
dd if=/dev/hwrng of=/dev/urandom count=1 bs=4096
rm -f /etc/ssh/ssh_host_*_key*
if dpkg-reconfigure openssh-server; then
rm -f /etc/ssh/sshd_not_to_be_run
systemctl enable ssh
systemctl disable regenerate_ssh_host_keys
systemctl start ssh
fi
else
nohup sh /etc/ssh/regenerate_ssh_host_keys.sh SECOND_STAGE >/var/log/regenerate_ssh_host_keys.log 2>&1 &
fi
exit 0
pi ALL=(ALL:ALL) ALL
# Default new panes and windows to be opened in the current panes path
bind-key c new-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key "\"" split-window -c "#{pane_current_path}"
set nocompatible
set autoindent
syntax enable
set backspace=indent,start
set number