Skip to content

Instantly share code, notes, and snippets.

@bryceml
Last active February 20, 2018 17:12
Show Gist options
  • Save bryceml/cb6af99eb32001120fec97ce0220579e to your computer and use it in GitHub Desktop.
Save bryceml/cb6af99eb32001120fec97ce0220579e to your computer and use it in GitHub Desktop.
Lubuntu Preseed late_command for Linux Club Project
mkdir -p /home/user/Desktop
ln -s /var/www/html /home/user/Desktop/public_html
chown 1000:1000 -R /var/www/html
chown 1000:1000 -R /home/user
ln -s nodejs /usr/bin/node
sed -i -e 's/%sudo.*$/%sudo ALL=(ALL:ALL) NOPASSWD:ALL/' /etc/sudoers
dpkg -i /root/atom-i386.deb
apt-get -y install -f
rm /root/atom-i386.deb
export DEBIAN_FRONTEND=noninteractive
unset DEBIAN_HAS_FRONTEND
unset DEBCONF_REDIR
unset DEBCONF_OLD_FD_BASE
MYSQL_PASSWORD=password
echo "mysql-server-5.7 mysql-server/root_password password ${MYSQL_PASSWORD}
mysql-server-5.7 mysql-server/root_password seen true
mysql-server-5.7 mysql-server/root_password_again password ${MYSQL_PASSWORD}
mysql-server-5.7 mysql-server/root_password_again seen true
" | debconf-set-selections
apt-get install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages mysql-server
mkdir -p /home/user/.config/xfce4/xfconf/xfce-perchannel-xml/
echo '<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-power-manager" version="1.0">
<property name="xfce4-power-manager" type="empty">
<property name="power-button-action" type="empty"/>
<property name="show-tray-icon" type="empty"/>
<property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
<property name="logind-handle-lid-switch" type="bool" value="false"/>
</property>
</channel>' > /home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
echo '<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-session" version="1.0">
<property name="shutdown" type="empty">
<property name="LockScreen" type="bool" value="false"/>
</property>
</channel>' > /home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
sed -i 's/segfault.duckdns.org/us.archive.ubuntu.com/g' /etc/apt/sources.list
chown 1000:1000 -R /home/user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment