desinstalar um pacote e todas as dependências desnecessárias
sudo apt-get purge --auto-remove bareos-client
https://installion.co.uk/debian/jessie/main/b/bareos-client/uninstall/i…
limitar um professor a visualisar apenas a informação do grupo a que pertence
To do this for all teachers globally:
Site administration > Users > Permissions > Define roles
Select the editing teacher role;
Click to edit the role
Click the Show advanced button
Type in the search box accessallgroups
When it appears, click PreventTo do this within a course:
Course administration > Users > Permissions
Type accessallgroups into the filter
Click the X to remove from the editing teacher (Teacher) role.
comparar ficheiros binários no linux
How do I compare binary files in Linux
This will print the offset and bytes in hex:
cmp -l file1.bin file2.bin | gawk '{printf "%08X %02X %02X\n", $1, strtonum(0$2), strtonum(0$3)}'
Or do $1-1 to have the first printed offset start at 0.
cmp -l file1.bin file2.bin | gawk '{printf "%08X %02X %02X\n", $1-1, strtonum(0$2), strtonum(0$3)}'
Mostrar MaisMais em Super User
bareos
server
no jessie:
#
# define parameter
#DIST=Debian_8.0
# or
# DIST=Debian_7.0
# DIST=xUbuntu_16.04
# DIST=xUbuntu_14.04
# DIST=xUbuntu_12.04DATABASE=postgresql
# or
# DATABASE=mysqlURL=http://download.bareos.org/bareos/release/latest/$DIST/
# add the Bareos repository
printf "deb $URL /\n" > /etc/apt/sources.list.d/bareos.list
modelo e versão dum router na linha de comandos
cat /tmp/sysinfo/model
resumir download parado através shell
mv file.extension.part file.extension
wget --continue http://site.com/files/file.extension
http://forums.debian.net/viewtopic.php?f=20&t=127586&start=45#p618512
configurar servers
utilizador/rede
criar utilizador:
adduser neo
mudar de utilizador:
su neo
cd ~
copiar credenciais ssh:
mkdir .ssh
nano .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
impedir aceso ssh por palavra passe:
nano /etc/ssh/sshd_config
Port 45022
PermitRootLogin no
PasswordAuthentication no
UsePAM no
service ssh restart
remover utilizador marco:
deluser marco
rm -r /home/marco
lâmpadas projetores (substituição)
sala 24 - 26/10/2016
sala 1 - 9/11/2016
sala 2 - 9/11/2016
sala 17 - 15/2/2017