Posts

Showing posts with the label Linux

Using konqueror to navigate through man pages

Image
If you are a KDE user you can use Konqueror for MAN pages navigation, just add "man:" prefix before interested command. For instance enter  man:ssh-copy-id to Konqueror's address bar and enjoy nicely rendered MAN page entry and all browser's features like search results highlighting, hyperlinks to the related MAN entries (yay!). I wrote simple bash script that utilizes man binary functionality but displays MAN page in Konqueror. Put this code to the /usr/local/bin/kman file: #!/bin/sh #Su'ed root console support if [ $UID = 0 ]; then     su - $LOGNAME -c "env DISPLAY=:0 konqueror man:$@" 2>/dev/null & else      konqueror man:$@ 2>/dev/null & fi For autocompletion support add this to the /etc/bash.bashrc.local file: #konqueror man complete ${_def} -F _man_ ${_file} kman Run  kman   ssh-copy-id and have a fun. Tested only in Opensuse.

PHP extension development with Linux and Eclipse CDT. Building your environment

Image
It is hard to start with PHP extensions development in Unix environment. It is not enough to be familiar with C programming language also you need at least basic knowledge in packaging, GNU build tools and of course PHP internals. If your desktop is beautified by Linux - there is a good news for you: you don't need to setup and build everything by yourself! You just need to know how to use already configured package for your distribution. Don't even ask what to do if your desktop is crippled by Windows - play minesweeper. This post is intended to give you a good place to start. Everything is shown on example of the Opensuse 11.4, but other distributions are suitable as well. First of all we need to obtain PHP source code. Raw PHP source from php.net can be used but you will need to take care of PHP configuring and all external symbols. Delete stripped php binaries first: # zypper rm php5 next # zypper si php5 this command will download source RPM package and take care o

Opensuse linux and D-link DWA-525 (RaLink 3060 based)

Recently i've upgraded wifi network card to D-link DWA-525 based on RaLink 3060 chipset which is wifi-N capable. But my Opensuse 11.4 wasn't able to detect it. There is two ways to solve this problem - first is to download chipset driver from ralink's site ( http://www.ralinktech.com/en/04_support/support.php?sn=501 ), setup, compile it and use. But it seems to be in a beta state because after installation it spams your logs with debug messages (can be disabled by removing -DDBG from config.mk but anyway i don't trust drivers with debug mode turned on by default). Second and proper way in my opinion is to install ralink drivers from repositories. Search for the "ralink-firmware" on  http://software.opensuse.org/search?q=ralink-firmware  and "one click install" will do all the job for you.