Archive for June, 2009
Real VNC Viewer on Windows + VNC Server on Linux = Accent Issues
by z3n on Jun.05, 2009, under Linux Happyness
Problem:
Accents (á,à,ã,etc) not working on vnc viewer, for example:
instead of á it shows ”a (double ‘)
Solution:
I’ve been looking around for a long time to fix this issue, i haven’t found any relevant information about it.
So i decided to install a different VNC client program, turns out that TightVNC Fixed the issue.
Note that it will not work if you don’t configure your keyboard proprietly on linux, I write in portuguese and english, so as keyboard i have Generic International keyboard, as layout Brazil / Brazil.
Mass moving files from a folder to another by bash
by z3n on Jun.05, 2009, under Linux Happyness
Problem:
How to move files from multiple subfolders using bash?
Solution:
for b in `find /path/to/search/ -depth -name filename_or_wildcard`;do mv $b /path/to/destination/${b##*/};done;
Example:
for b in `find ./ -depth -name *.tah`;do mv $b ../../TAH/${b##*/};done;
This will move all .tah files to ../../TAH/ no matter how depth on the search path they are they will be put all into the same folder, the main complication here is to get the basename of the filename, when you do a find it will show the whole path as the result, so this is where ${b##*/} come in, it will strip out the path and leave on the basename.
Source: