Ich nutze gerne das JJJJ-MM-TT Format für Daten.
Leider kann man dies in Thunderbird nicht einfach ändern, da es das Datumsformat des Betriebssystems nutzt.
$ date +'%x %X'
Um dieses zu ändern muss man die locales anpassen.
Improving for Firefox / Iceweasel
Settings in about:config
- Do NOT add www. and .com to names in the urlbar
browser.fixup.alternate.enabled = False - Do NOT hide the http(s):// prefix
browser.urlbar.trimURLs = False - Do NOT search in the urlbar
keyword.enabled = False
Addons
- Adblock Plus
Hide advertisements - Certificate Patrol
Remember certificates and monitor changes - Flashblock
Press play before starting flash-videos - Google Privacy
Do not tell Google which link has been clicked - HTTPS Everywhere
Try to use https whenever possible - Redirect Cleaner
Resolve shortlinks - RequestPolicy
Control loading of third-party-content - S3.Download Statusbar
Show download status on a bar - Tab Mix Plus
Multi-line-tabbar and more
Fix missing API-help in Qt Creator
On Windows the installer installs and registers the Qt API documentation automatically.
On Linux you can install the docs separately and than need to register it manually.
Qt5:
Install qtbase5-doc
Tools -> Options -> Help -> Documentation -> Add…
Add path “/usr/share/qt5/doc/qtwidgets.qch” and if needed the other qch-files from that directory.
Qt4:
Install qt4-docTools -> Options -> Help -> Documentation -> Add…
Add path “/usr/share/qt4/doc/qch/qt.qch” and if needed the other qch-files from that directory.
SSH without password
Auf dem client ssh-keygen -t rsa -b 4096
Dies erzeugt “~/id_dsa” und “~/id_dsa.pub”.\\
Die “~/id_dsa.pub” wird auf dem server and “~/.ssh/authorized_keys” angehängt.
Die Standardlänge beträgt 2048 Bits und es heißt dies wäre ausreichend sicher.
Ich denke 4096 schadet auch nicht.
Recursive linecount
Get the count of all py-files in my development-dir:
find /a/dev/ -type f -name “*.py” -exec sed -n ‘$=’ {} \; | awk ‘{lines=lines+$1}END{print lines}’
Install Netgear WG511 v1
Kernel driver: p54pci
To get the missing firmware type:
wget -O /lib/firmware/isl3886pci http://daemonizer.de/prism54/prism54-fw/fw-softmac/2.12.0.0.arm
Skype video on amd64
I had some problems to get Skype video working on my Debian amd64 system.
The problems are grounded in the outdated Skype-Linux-Beta.
They offer some amd64 packages but those are contain i386 libs.
Skype-video still uses Video4Linux1 although Video4Linux2 is available since the 2.5.* kernels!
To get things working you need to use the 32bit v4l1 compatibility library:
sudo apt-get install lib32v4l-0
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype
Converting Debian packages from dpatch to quilt
A backup copy of blog.orebokech.com written by Romain Francoise
I’ve been using quilt a lot at work recently (in a non-Debian environment), and I’ve been enjoying it very much. So much that I’ve decided to convert my Debian packages to it, from dpatch. Once you’re used to quilt, using dpatch is almost literally painful. :)
There doesn’t seem to be a ready-made guide on how to convert packages from dpatch to quilt, so here’s how to do it painlessly in five easy steps:
- Install the quilt package (duh) and make sure that the QUILT_PATCHES variable is set to debian/patches in your shell environment. Or you can set it in your ~/.quiltrc file instead (see this post for other interesting settings).
- Delete the build dependency on dpatch from your debian/control file, replacing it with a dependency on quilt (>= 0.40).
- In your debian/rules file, include /usr/share/quilt/quilt.make instead of /usr/share/dpatch/dpatch.make.
- Convert all your dpatch files by using the following command from your package’s top level:
for p in $(dpatch list-all); do \
quilt import -P $p.diff debian/patches/$p.dpatch; \
quilt push; \
done- Delete dpatch files:
rm -f debian/patches/00list debian/patches/*.dpatchAnd that’s pretty much it! You’ll probably want to clean up the headers of your debian/patches/*.diff files since they’ll still contain some dpatch markers. You can now build your package as usual. To edit a patch, use quilt push, quilt edit, finish with quilt refresh to save the patch.
For more information on how to use quilt, read the tutorial, it’s in /usr/share/doc/quilt. You won’t regret switching!
And a Comment from kartikm:
Better to use: quilt push; quilt header -e; quilt refresh for header editing..
How to compile Debian packages
- Install needed tools:
apt-get install devscripts dpkg-dev - Install packages needed to compile the package:
sudo apt-get update
sudo apt-get build-dep PAKET
(This only works if the package is available via apt-src entries in sour apt-sources) - If the package is available via ‘deb-src’ the sources can be downloaded and compiled directly:
sudo apt-get update
fakeroot apt-get -b source PAKET - Alternatively you can download the three source files (*.orig.tar.gz, *.diff.gz or *.debian.tar.gz and *.dsc) with ‘dget’:
dget http://somurl/package.dsc - Unpack it:
dpkg-source -x paket*.dsc - Change to the package dir:
cd paket* - Compile it with
debuild
Parameters:
-S only build the source package
-b only compile a prepared source package
-sa add orig.tar.gz to the *.dsc file
-sd not add orig.tar.gz to the *.dsc file
-us not sign the source
-uc not sign the chnages
-b no sources
-B no architecture-independent
‘debuild’ is a wrapper for ‘dpkg-buildpackage’ which could also be called directly
Debian Sources
Unter Debian gibt es die /etc/apt/sources.list ,\\
sie bestimmt wo apt, synaptic, kpackage und andere ihre ihre daten her beziehen.
Mit “apt-get update” aktualisiert man die lokale Datenbank mit allen in der sources.list eingetragenen servern.
Danach kann man dort vorhandene Packete (Programme und Bibliotheken) herunterladen:
# apt-get install kde
oder nach bestimmten sachen suchen
# apt-get search icq
Zum durchsuchen kann man auch online.\\
Debian: http://packages.debian.org/\\
Ubuntu: http://packages.ubuntu.com/\\
Alternative Packete: http://www.apt-get.org/search.php
Nun folgt eine kleine Auswahl nützlicher Quellen:
# scorched3d
#deb ftp://progn.org/debian unstable main
# torcs – http://torcs.sourceforge.net/
#deb http://www.falassion.de/unstable/ ./
# some unofficial packages for debian/stable
#deb http://ftp.debian-unofficial.org/debian sarge main contrib non-free restricted
# some unofficial sourcepackages for debian
#deb-src http://mentors.debian.net/debian unstable main contrib non-free
# freenx – graphical remote control
#deb http://debian.tu-bs.de/project/kanotix/unstable/ sid nx
# mplayer, w32codecs, libdvdcss2 and others
#deb ftp://ftp.nerim.net/debian-marillat sid main
# wine cvs-snapshots
#deb http://wine.sourceforge.net/apt/sid/ ./
# kdetv bootsplash-tools ccd2iso – tvtool source only
#deb-src http://mentors.debian.net/debian unstable main contrib non-free
# sancho jboss – mlnet client
#deb http://debian.cli.unipi.it/4sid/ sid sherpya
# freevo – Python based PVR/DVR
#deb http://freevo.sourceforge.net/debian unstable main
# gnome-bluetooth bluez-utils gnome-phone-manager – bluetoothtools
#deb http://people.ubuntu.com/~jdub/warty/ ./
# bluez – Linux Bluetooth Protocol Stack
#deb http://bluez.sourceforge.net/download/debian/ ./
# loop-aes cdtool aespipe cryptofs-root libaudit-source-perl (kanotix default)
#deb http://debian.hinterhof.net/ unstable/
# hibernate – suspend to disk script – http://www.suspend2.net/
#deb http://cp.yi.org/apt/hibernate ./
# dc-qt valknut and others – Direct Connect client
#deb http://debian.xmixahlx.com/packages/unstable/ ./
# opera – Web Browser
#deb http://deb.opera.com/opera/ unstable non-free