Fritz Thomas

Archive for the ‘Linux’ Category

I installed the default nginx package available in Ubuntu 10.04 server. For PHP-5.3.2 you have to use the cgi version, of course. But enough of the words. It is really really simple, so i just post the config files. The only “trickier” part was to convert the Apache Rewrite Rules from the FLOW3 distribution. After [...]

12 Jul, 2010

Manually set syntax for a file in vim

Posted by: Thomas In: Linux

If you edit a file and vim does not recognize its syntax correctly or not at all you can set its syntax manually with :set syntax=[SYNTAX] Do you want to know which syntax your vim installation understands you can list all with this find: find /usr/share/vim/*/syntax -name “*\.vim”. This is also the place where to [...]

Have you ever wanted to set permission to all directories under a certain directory to 755 and permissions to files under that certain path to 644?

Tags: ,

This is an update and in depth look to my previous Blog post of “How to get absolute path within the running shell script“. In my previous post i used a solution with readlink which is not available everywhere. Especially on Mac OS there is no readlink. But, we do not need readlink anyway…

25 Jun, 2010

Clear / free memory on Linux

Posted by: admin In: Linux|Open-Source

If you want to free the memory from all unused “crap” you can run this little one liner as root: sync;echo 3 > /proc/sys/vm/drop_caches The sync command flushes all buffers from memory to disk so you are safe that you do not loose anything. Keep also in mind that not everything from the cleared memory [...]

Tags: ,

cd /home/USER tar cf – . | (cd /dir/where/you/want/to/copy && tar xBf -) This has some advantages over cp -rfp. You can read it in detail at O`Reilly

You can safely empty some directory`s in Gentoo. But as always – first make sure if my suggestions are OK for YOU too! # As superuser gentoo ~ # emerge –sync gentoo ~ # emerge -av gentoolkit gentoo ~ # emerge -av –newuse –deep –update world gentoo ~ # emerge -av –depclean gentoo ~ # [...]

I recently stumpled across Swiftfox when i searched for a Firefox 3.5 .deb File for Ubuntu 9.04. The .deb Files should be compatible with all Debian based distributions. The benefit of Swiftfox is it is up-to-date with the latest Firefox Version and you get it as an optimized build for your CPU! Currently there are [...]

Take a look at my updated post Have you ever needed the absolute path of the shell script within this script? I do not mean the current working dir (pwd). That is different, because you do not know from which path the bash script is called. In my case i needed the absolute path, because [...]

18 Dec, 2008

Adobe releases AIR 1.5 for Linux

Posted by: admin In: Air|Linux

A few weeks ago Adobe announced to release new versions of the Flash player and Air simultaneously for the 3 major operating systems Linux, Mac and Windows. Today Adobe released AIR for Linux in Version 1.5 to catch up with the others. So in future Linux Users of AIR do not have to wait for [...]

After upgrading to Ubuntu 8.10 Intrepid you may get some error on sshfs mounted directories, when you tried to copy something on this places. This fix seems to be fixed in sshfs 2.1. If you need a fast fix on this install sshfs 2.1 manually from here: http://packages.ubuntu.com/jaunty/sshfs Select the right Architecture and download the [...]

18 Sep, 2008

Adobe AIR 1.1 for Linux Beta released

Posted by: admin In: Air|Linux

Until now Adobe does not provide full Cross Platform Support for their RIA Project AIR. AIR was only available for Windows and MAC. Now the Linux version gets a little bit closer to this versions. With the Release of the Adobe AIR 1.1 Beta for Linux all Applications which runs on MAC and Win are [...]

31 Mar, 2008

Adobe hat erste Air Alpha für Linux angekündigt

Posted by: Thomas In: Air|Linux

Version 1 der Multi/Cross Plattform API von Adobe wurde ja kürzlich veröffentlicht. Wie von Beginn an angekündigt wird nun laut einem Bericht von CNET eine erste Alpha Version für Linux erscheinen. Interessant wird ob und wie allgemein die API von AIR nun auch unter Linux zu verwenden sein wird. Das wird vor allem bei Dateisystemoperationen [...]

Ich hatte das Problem das ich über ein ganzes Projektverzeichnis bei bestimmten Dateien (.php, .phtml, .js, .css) ein svn propset ausführen wollte. Unter Windows und TortoiseSVN hat man zwar die Möglichkeit über ein ganzes Verzeichnis rekursiv ein Property zu setzen, jedoch nicht nach Dateiendungen zu entscheiden ob es gesetzt werden soll. Eine einfache und schnelle [...]

11 Jan, 2008

7zip unter Gentoo Linux verwenden

Posted by: Thomas In: Linux|Open-Source

Das 7zip Kompressionsformat wird nicht “Out-Of-The-Box” unterstützt. Das Programm kann einfach mit thomas@gentoo ~ $ emerge -av p7zip installiert werden. Einfaches schnelles Komprimieren Eine Datei oder ein ganzen Verzeichnis mit den Standard Optionen zu komprimieren ist ganz einfach. Nehmen wir an, wir wollen ein ganzes Verzeichnis komprimieren. thomas@gentoo ~ $ 7za a test.7z test-verzeichnis/ Starkes [...]

Wird durch den Kernel eine neue Mac Adresse erkannt, wird angenommen das es sich dabei um ein neues Netzwerk Interface handelt. Dieses neue Device muss anschließend auch neu konfiguriert werden. Soweit so gut. Möchte man aber seine Netzwerkkarte gegen eine neue tauschen, aber denselben Device Namen behalten, um so die evtl. bereits erstellte und wahrscheinlich [...]




Latest Tweets