Vim Code format and syntax highlight

I’m mostly working on remove servers using console text editors.

My favorite is vim and I love the syntax highlighting feature.
(Quick tip:
vim /etc/vim/vimrc
add the following lines:
if has(“syntax”)
syntax on
endif

)

One other usefull feature I adore is the code formatter feature:
Just type [esc] =G and vim will format the code automatically for you!

Share

scp with no ecryption

I use scp A LOT. And I love scp A LOT.

The SCP protocol is a network protocol that supports file transfers. The SCP protocol, is based on the BSD RCP protocol which is tunneled through the Secure Shell (SSH) protocol to provide encryption and authentication.

Most of the times, when transferring data files in my local network, there is no need for encryption. It that case you can avoid the encryption part and gain much in speed.

It seems that the use of scp with the “-c none” flag is not working since version 2, so rcp is now the preffered choice!
example:
rcp localfile.txt ventrix@localmachine:

Share

ProFTPd not starting

ventrix@******:~$ sudo aptitude install proftpd
ventrix@******:~$ sudo /etc/init.d/proftpd start
Starting ftp server: proftpd – unable to set LC_ALL: No such file or directory
– Fatal: unable to load module ‘mod_lang.c’: Operation not permitted

solution:
ventrix@******:~$ sudo dpkg-reconfigure locales

Share

Linux: Capturing Screen on X

I’m preparing a series of Android Development Video Tutorials in Greek and I was searching for screen capture programs in Linux.

As always, there is only one, but it is the best.

xvidcap

xvidcap’s website is here

Share

Monitoring with munin

I am reposting a very interesting post I had at my old linux blog http://ventrix24.blogspot.com

After reinstalling my whole system, I thought it would be nice to have a remote monitoring system.

So I set up munin on my vps. (cacti was my alternative option)

After a few days, I noticed something really strange at munin’s logs.

These are the interesting pictures:

From your eyes there’s nothing unusual. Except from one thing. At 00:00 on Thursday I was actually working on the pc for about an hour. This can be proved by the eth0 traffic.

What was happening the rest hours?

I was trying to figure out, why my pc uses the cpu when I am NOT using it.
It was very tricky, but after 2 minutes I was able to isolate the problem.

xscreensaver!

Share