Debian

From Server Knowledge Base
Jump to navigationJump to search

MySQL

It is commonly easier to use this to dump and restore MySQL, instead of using mysqldump on the new server via .sql files:

mysqldump --default-character-set=binary --user=root --password=EnterPasswordHere databasename > dbdump.txt
mysql --silent --local --password=EnterPasswordHere DatabaseName < dbdump.txt

Transmission

The easiest way to get this working is by doing:

vim /etc/apt/sources.list

Add in this line:

deb http://ftp.uk.debian.org/debian sid main

Do apt-get update , then do:

apt-cache show transmission-cli | grep Version
apt-cache show transmission-common | grep Version
apt-cache show transmission-daemon | grep Version
apt-get install transmission-cli transmission-common transmission-daemon

Then, to edit the files without it overwriting /etc/transmission-daemon/settings.json

Stop the service, edit the file, backup the file and then start the service.

/etc/init.d/transmission-daemon stop
vim /etc/transmission-daemon/settings.json
cp /etc/transmission-daemon/settings.json /root/settings.json.backup
/etc/init.d/transmission-daemon start

Check /etc/transmission-daemon/settings.json is the same file you edited and that it is owned by debian-transmission:debian-transmission