linux

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Faxserver under Ubuntu / Debian

queue status
faxstat -s # shows fax in the queue waiting to be sent
faxstat -d # shows faxes sent
faxstat -r #shows faxes received

delete fax
faxrm JOB_ID
or if you can´t delete run under creator
sudo -u USERNAME faxrm JOB_ID

HylaFax spool directory
/var/spool/hylafax/

delete all send faxes
for i in $(ls /var/spool/hylafax/doneq); do
faxrm ${i:1}
done

get rejected fax nubers
faxstat -d | grep REJECT | cut -d" " -f 7 > fax_rejected.txt

python

string
http://thepythonguru.com/python-strings/
https://www.tutorialspoint.com/python/string_startswith.htm
if var1 != var2:

output to file
text_file = open("/tmp/debug", "w")
text_file.write("option1: %s\n" % option1)
text_file.write("value1: %s\n" % value1)
text_file.close()

SSH authentication with pre-shared key

Create new key on client
#ssh-keygen -t rsa
#(confirm with 3x with enter to leave passphrase empty)
ssh-keygen -q -f ~/.ssh/id_rsa -N ''

Copy public key to server
ssh-copy-id ${USER}@192.168.0.1

Test login
ssh -v ${USER}@192.168.0.1

Login with private key
ssh -i ./backup_ssh_key/id_rsa USER@YOUR_SERVER

Import own ssh key by using previous / master ssh key
cat ~/.ssh/id_rsa.pub | ssh -i ./backup_ssh_key/id_rsa USER@YOUR_SERVER 'cat >> .ssh/authorized_keys'

Linux

Links
HowtoForge - Linux Howtos and Tutorials
livecdlist.com - overview of Linux LiveCDs
Debian Testing - daily builds of Debian Testing
ALSA - Advanced Linux Sound Architecture
Linux Apps - best of linux apps
http://wpkg.org/Diskless_/_remote_boot_with_Open-iSCSI

Syndicate content