linux

List only files (no folders)

Quick note how to list files without directories. Windows: dir /a:-d Linux: ls -l | grep ^- Second command should work also in Mac OS X from terminal, but will have to check it just to be sure.

Reset root password in Debian

Today I’ve faced embarrassing situation, I’ve forgot my root password to my Debian VM. I know this is lame. But happened, so I’ve started looking for solution and after viewing few more or less helpful websites I’ve compiled my own solution. To reset root password on Debian (Lenny) do following: During start of PC when there is your boot manager displayed press “e”. Move arrow on the keyboard to highlight “kernel”.

VMWare Workstation and switching between Linux virtual terminals

I’m using VMWare Workstation a lot to virtualize my testing environments. Along with many other OSs that I’m using there are Linux systems and one of the most useful functionality in Linux are (in my opinion) virtual terminals. Virtual terminal is like your another monitor, so when doing many things you can avoid mess by using few “desktops” instead of one. In Linux you’re creating and switching between terminals by pressing CTRL+ALT+F1-12.

How to get colored syntax in Vim on Debian

I’m using Debian Linux as a second operating system. Previously I was using it only for my servers, but now I’ve decided to start doing some software development on it. As I love bash environment, the choice of text editor was pretty obvious, Vim, the greatest editor ever made. But problem was that I like my syntax to be colored, it’s easier to write program code then. No problem, I thought, quick searching via Google gave me the “:syntax on” command which should enable what I’ve wanted.

Blog moved!

Last night I’ve moved from Linux to Windows hosting. And this showed the new WordPress issue (or my lack of skills). I’ve moved everything and migrated SQL DB, but it didn’t worked. I was receiving error 500. As Google is giving me only tips how to migrate from Windows to Linux, not backward, I was forced to figure out something. As you can see I’ve succeeded. Blog is up and running, however Flickr plugin isn’t working properly, but I hope to fix it in few coming days.