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.

Create XEN LTSP Domain

### new
http://www.panticz.de/Ubuntu-Trusty-domU
 
# install ltsp
http://www.panticz.de/install-ltsp
 
 
 
 
### old
 
# set domU name
DOMAIN_NAME=ts
 
# create domU
xen-create-image --hostname=${DOMAIN_NAME} --dhcp --mac=00:11:22:7a:7b:7c \
--lvm=vg01 --dist=jaunty --mirror=http://archive.ubuntu.com/ubuntu/ --size=8Gb --memory=2Gb --swap=2Gb
 
# lucid test
# xen-create-image --hostname=${DOMAIN_NAME} --dhcp --mac=${DOMAIN_MAC} \
--lvm=vg01 --dist=lucid --mirror=http://archive.ubuntu.com/ubuntu --size=${DOMAIN_HDD} --memory=${DOMAIN_RAM} --swap=${DOMAIN_RAM} --arch=i386
 
# rena

Xenial Xerus (Ubuntu 16.04)

Schedule
https://wiki.ubuntu.com/XenialXerus/ReleaseSchedule

ReleaseNotes
https://wiki.ubuntu.com/XenialXerus/ReleaseNotes

Download
http://releases.ubuntu.com/16.04/ - releases
64 bit Netboot CD

Repository
# Ubuntu Xenial updates repository
echo "deb http://de.archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse" > /etc/apt/sources.list.d/xenial-updates.list

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