Commit 58480880 authored by Thiago Abdo's avatar Thiago Abdo
Browse files

SCRUM#339: Removes unnecessary files


Signed-off-by: default avatarThiago Abdo <tja14@inf.ufpr.br>
parent 1b513d09
[Desktop Entry]
Type=Application
Name=Compton (X Compositor)
GenericName=X compositor
Comment=A X compositor
TryExec=compton
Exec=compton --config /etc/xdg/compton.conf
[Desktop Entry]
Type=Application
Name=Autostart commands for freeze sessions
Exec=freeze-session-auto
[Desktop Entry]
Type=Application
Name=WINE desktop startup
TryExec=wine
Exec=wine explorer.exe /desktop
# Desativa todas as sombras
shadow = false;
# Desativa todas as transparencias
menu-opacity = 1.0;
active-opacity = 1.0;
inactive-opacity = 1.0;
frame-opacity = 1.0;
# Desativa os esmaecimentos
fading = false;
#!/bin/bash
install -m 644 autostart/compton.desktop /etc/xdg/autostart
install -m 644 compton/compton.conf /etc/xdg
#!/bin/bash
install -m 644 systemd/epoptes-client.service /etc/systemd/system
systemctl stop epoptes-client
systemctl disable epoptes-client
systemctl enable epoptes-client.service
systemctl start epoptes-client.service
#!/bin/bash
install -m 644 systemd/xorg-daemon.s* /etc/systemd/system
install -m 644 udev/* /etc/udev/rules.d
install -d /etc/X11/xorg.conf.d
install -m 644 xorg/*.conf /etc/X11/xorg.conf.d
install -m 755 seat-attach-assistant /usr/local/bin
install -m 755 update-xorg-conf /usr/local/bin
install -m 755 xorg-daemon /usr/local/bin
install -d /etc/xdg/lightdm/lightdm.conf.d
install -m 644 lightdm/9[5679]*.conf /etc/xdg/lightdm/lightdm.conf.d
update-xorg-conf "Silicon.Motion" /etc/X11/xorg.conf.d/98-proinfo-*.conf
systemctl enable xorg-daemon.socket
systemctl start xorg-daemon.socket
apt-add-repository ppa:ubuntu-multiseat/xf86-video-nested
apt update
apt -y upgrade
apt -y install xserver-xorg-video-siliconmotion xserver-xorg-video-nested compton numlockx
udevadm trigger
systemctl restart lightdm
configurar-multiterminal-xephyr.sh
\ No newline at end of file
#!/bin/bash
install -m 644 autostart/wine.desktop /etc/xdg/autostart
#!/bin/bash
if ! [ -d /boot/userful-rescue -a -f /boot/userful-rescue/userful-rescue-live-20160628-i386.iso ]
then
cat << EOF
[ERRO] Userful Rescue Live não encontrado!
Baixe a ISO do Userful Rescue Live no endereço
https://drive.google.com/open?id=0B_0RrXAKZ1hbdnRvcGRuSFc2Nkk
e salve-a na pasta /boot/userful-rescue.
Depois disso, execute este script novamente.
EOF
exit 1
fi
install -m 755 userful-rescue-{enable,disable} /usr/local/bin
install -m 755 grub/42_userful-rescue /etc/grub.d
update-grub
install -m 644 systemd/userful-rescue-nextboot-* /etc/systemd/system
systemctl enable userful-rescue-nextboot-reboot.service
systemctl enable userful-rescue-nextboot-read-write.service
systemctl start userful-rescue-nextboot-read-write.service
cat << EOF
[AVISO] Agora você deve desligar o computador e ligá-lo novamente.
O computador deve iniciar no Userful Rescue Live e reiniciar
automaticamente de volta para este sistema.
Uma vez concluído o processo, você pode reiniciar o computador
sempre que necessário.
EOF
#!/bin/bash
freeze_template_user="freezetemplate"
freeze_template_fullname="Modelo para Freeze"
addgroup freeze
adduser --disabled-login --gecos "${freeze_template_fullname}" --shell /bin/bash ${freeze_template_user}
echo "${freeze_template_user}:freeze" | chpasswd
for i in 0 1 2 3 4
do
adduser --disabled-login --gecos "Aluno #${i}" --shell /bin/bash aluno${i}
adduser aluno${i} freeze
echo "aluno${i}:aluno${i}" | chpasswd
done
apt update
apt -y install libpam-mount bindfs python-gnomekeyring
install -d /etc/xdg/lightdm/lightdm.conf.d
install -m 644 lightdm/96-disable-guest.conf /etc/xdg/lightdm/lightdm.conf.d
install -m 755 mount-wrapper /usr/local/sbin
install -m 755 prepare-clonezilla /usr/local/sbin
install -m 644 pam_mount.conf.xml /etc/security
install -m 644 lubuntu/*.policy /usr/share/polkit-1/actions
install -d /usr/local/share/file-manager/actions
install -m 644 lubuntu/*.desktop /usr/local/share/file-manager/actions
install -m 755 lubuntu/*-pkexec /usr/local/bin
install -m 755 freeze-session-auto /usr/local/bin
install -d /home/${freeze_template_user}/.config/autostart
install -m 644 autostart/freeze-session-auto.desktop /home/${freeze_template_user}/.config/autostart
install -m 644 autostart-disable/*.desktop /home/${freeze_template_user}/.config/autostart
chown -R freezetemplate:freezetemplate /home/freezetemplate
mkdir -pm 0777 /var/freeze-data/{documents,pictures,music,videos}
#!/bin/bash
freeze_template_user="freezetemplate"
freeze_template_fullname="Modelo para Freeze"
# Cria grupo "freeze"
addgroup freeze
# Cria usuário "freezetemplate" no grupo "freeze", com login desabilitado
adduser --disabled-login --gecos "${freeze_template_fullname}" --shell /bin/bash ${freeze_template_user}
# senha "freeze"
echo "${freeze_template_user}:freeze" | chpasswd
# Cria aluno$i com senha aluno$i, com login desabilitado, no grupo "freeze"
for i in 0 1 2 3 4
do
adduser --disabled-login --gecos "Aluno #${i}" --shell /bin/bash aluno${i}
adduser aluno${i} freeze
echo "aluno${i}:aluno${i}" | chpasswd
done
# Atualiza lista de pacotes e instala PAM (autenticação), bindfs (espelhar um diretorio, mas com permissoes diferentes) e python-gnomekeyring (gnome keyring: gerenciamento de chaves e senhas)
apt update
apt -y install libpam-mount bindfs python-gnomekeyring
# Cria diretorio
install -d /etc/xdg/lightdm/lightdm.conf.d
# Copia arquivo que desabilita o usuario convidado para o diretório, com permissões rw-r--r-- (uuugggooo)
install -m 644 lightdm/96-disable-guest.conf /etc/xdg/lightdm/lightdm.conf.d
# Copia script (Cria pastas para o OverlayFS) para sbin, com permissoes rwxr-xr-x
install -m 755 mount-wrapper /usr/local/sbin
# Copia script (limpa o sistema) para sbin
install -m 755 prepare-clonezilla /usr/local/sbin
# Copia arquivo (com configurações para montagem dos diretórios usando PAM e Overlay) para security
install -m 644 pam_mount.conf.xml /etc/security
# Copia arquivo com descrição e traduções para terminal
install -m 644 xubuntu/*.policy /usr/share/polkit-1/actions
# Copia script para bin (Explicado no proprio arquivo)
install -m 755 freeze-session-auto /usr/local/bin
# Cria diretorio
install -d /home/${freeze_template_user}/.config/autostart
# Copia config que executa o script freeze-session-auto para o autostart do freeze
install -m 644 autostart/freeze-session-auto.desktop /home/${freeze_template_user}/.config/autostart
# Copia config que "esconde" alguns programas
install -m 644 autostart-disable/*.desktop /home/${freeze_template_user}/.config/autostart
# Cria diretorio
install -d /home/${freeze_template_user}/.config/Thunar
# Copia config do xubuntu versao Thunar para o diretorio
install -m 644 xubuntu/uca.xml /home/${freeze_template_user}/.config/Thunar
# Altera o dono de toda a arvore sob /home/freezetemplate (VERIFICAR se o grupo esta correto (existe))
chown -R "${freeze_template_user}:${freeze_template_user}" /home/${freeze_template_user}
# Cria diretórios de usuario em /var/freeze-data/
mkdir -pm 0777 /var/freeze-data/{documents,pictures,music,videos}
criar-usuarios-alunos-xubuntu.sh
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment