viernes, 4 de junio de 2010

SSH doesn't load environment !

SSH probably uses .bash_profile, which is not sourcing .bashrc file

does your .bash_profile contain
# .bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi



viernes, 9 de abril de 2010

Texmaker with custom dictionary support

by daviddamerell on Dec.16, 2009, under Uncategorized

Texmaker is a great Latex editor with a lot of excellent features. Texmaker has good spelling support with an inline spell checker. Except for manually adding words to the Hunspell dictionary files that Texmaker uses there’s currently no way to add words to the dictionary from within Texmaker. There’s a few forum threads around which debate, how useful this feature would be. I’ve patched Texmaker (1.9.2) so that it finally supports the addition of new words from within Texmaker.

https://secure.nixbioinf.org/wordpress/?p=94


viernes, 19 de diciembre de 2008

Canon Rebel XT 350D in Hardy

Question: Is there a way to save pictures directly to my hard drive (bypassing the memory card) with a Canon Rebel XT?

Answer: YESSSSSSSS !!!!!

Install gphotofs (G Photo File System), in Hardy using Synaptic.
Mount the camera DMCI memory to an empty location: !> gphotofs ~/Photos/2008-11-01/

And there you go ! Get your pictures to your hard drive.

martes, 23 de septiembre de 2008

How to get started with no GUI

It often happens that the installer on the Kubuntu Live CD is unable to
correctly identify and configure automatically the X server
configuration for your graphics display chip or card.  For the noob,
this means the first thing you see after you run the installation
routine is a jet black screen with (or without) a blinking white "_" in
the upper left corner.  The keyboard and mouse are apparently
unresponsive.  Here is what to do:

1. Alt-F1 usually takes you to the Command Line Interface (CLI), aka "text prompt" -- sometimes it requires Ctrl-Alt-F1.

2.
At the text prompt, just enter your user name, hit Enter, and then
enter the password that you gave yourself when you went through the
installation routine.

3. Congratulations!  You are now logged in
to a marvelous and powerful Linux system, but oops, you're lacking a
GUI interface.  We'll fix that now.  Enter the following command in a
Konsole window, exactly as shown (if you had a GUI, you could just
"copy" it with your mouse, then in the console window right-click on
the cursor and paste it in):


sudo dpkg-reconfigure xserver-xorg


This starts the X server configuration script. On the first screen,
answer "NO" to the autodetect question (because we already know what
happens when it tries ....), and on the second screen choose "VESA" as
your display type.  Then you can accept the defaults until you get to
the "monitor" section. On that screen, put an "x" only in one
resolution that you can comfortably use, like 1024 x 768, or if it is a
small display maybe 800 x 600.  Then enter refresh rates appropriate
for your LCD or CRT monitor.  When completed, it will dump you back to
the text prompt. At that point you can enter


startx


and you should get a reasonable GUI, in which to continue your excellent adventure.

viernes, 29 de agosto de 2008

less command

less was initially written by Mark Nudelman during 1983-85, in the need of a version of more able to do backward scrolling of the displayed text. The name came from the joke of doing "backwards more". less is now part of the GNU project and it is included in most Unix systems.

less -M [ Shows more detailed prompt, including file position]

Examples:
less -M readme.txt # Read "readme.txt".
file * | less #Easier file analysis.
grep -i void *.c | less -I -p void #Case insensitive search for "void" in all .c files