Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, November 17, 2008

AptPinning - Debian Wiki

Some times you need some packages from a more diferent Debian flavor. Ok. maybe you don't, but right now i do, and pinning seems to be the answer.

I'll give it a try (want to test subversion 1.5 for a while), and then i will update this entry.

UPDATE: I did not have to guts to do it. Replacing libc right now does not seem like a good option just now.

Friday, March 14, 2008

allow anyone to use ttyS0

reminder: chmod a+rw /dev/ttyS0

Monday, December 31, 2007

fixing Exif dates

I do have a Olimpus camera that loses the camera date/time when it runs out of battery. For a long time now, i wanted to set the right time to some pictures. Finally, today i did take the time to search for a tool to fix those pics.

it is called jhead.

these are them commands i'm running

jhead -ts2007:12:27-14:30:00 *.jpg
jhead -ft *.jpg

The former does set Exif time, while the later sets the file modified time set to the Exif time.

Note that those switches may give you an unexpected result when used together.

jhead -ts2007:12:27-14:30:00 -ft *.jpg

This will not do the same. It seems -ts doesn't take effect until writing the file and -ft does what it is meant to do, but BEFORE -ts does it's work. You have to run the command twice to archive the desired effect.

maybe jhead should be smarter, and use the "about to be written Exif time" instead of the "current Exif time" in those cases when the Exif time is going to be changed/updated.

Wednesday, October 31, 2007

arm-linux-gcc zlib

it was so easy this time... i just love when i things do work. This time it was just:

cd /usr/src/zlib-1.2.3
./configure --prefix=/usr/arm-linux
make
make install

Ummmm!

Monday, October 29, 2007

samba PDC on fluxbuntu 7.10 rc

first, this post is still a work in progress. it is not yet complete.

to follow this instructions you should be able to download and burn fluxbuntu 7.10 (rc) iso file and follow some steps.

  1. 13:25
  2. boot from cdrom.
  3. select boxname, language, keyboard layout, partition hdd ( i'm lazzy: use entire disk )
  4. select timezone ( based on kb layout: just the relevant options )
  5. select main username ( not root, since all ubuntus do prefer the sudo way )
  6. skip download language support ( i'm in a hurry now )
  7. 13:39. intallation is complete, rebooting

customize the system a bit...

  1. boot into the system
  2. [optional] change the fluxbox style: (leftclick on desktop)->Menu->Fluxbox->Style->Meta
  3. [optional] apt-get remove nano ( i hate nano )
  4. sudo apt-get install samba system-config-samba

edit the /etc/samba/smb.conf file to read

[global]
 workgroup = MYDOMAINNAME
 server string = %h server
 username map = /etc/samba/smbusers
 domain master = yes
; local master = yes
 domain logons = yes
 security = user

# a bit of security (these you should tweak to your needs)
 ;hosts allow = 192.168.0.0/16 127.0.0.1
 ;hosts deny = ALL

 ;interfaces = 192.168.0.0/24 127.0.0.1
 ;bind interfaces only = yes

[ homes ]
 comment = Personal folders
; guest ok = no
 read only = no

[ proyectos ]
 comment = Proyectos ( everyone RW )
 path = /export/projects
 writable = yes
        #these will make the share to allways use these users.
        #and simplify the permisions management.
 force user = ntuser_projects
 force group = ntgroup_projects

[ netlogon ]
 comment = Netlogon Service
 path = /export/netlogon
 guest ok = yes
 share modes = no

Wednesday, July 04, 2007

udev explained

in a nice document here

Friday, June 29, 2007

tools and tools

deborphan and orphaner

Friday, December 01, 2006

so many times ( ii )

just the same but here running a FC4...

yum install subversion doxygen
yum install binutils flex bison gcc gcc-c++ zlib zlib-devel
yum install libtermcap-devel

and then

yum install valgrind

Wednesday, November 15, 2006

ccache and cachecc1

do you spend too much time waiting for your compiler to do its work!? maybe these two could help you

I finally decided to use the cachecc1 (instead of ccache) at my debian ( xubuntu ) since i did not want to touch at all my makefile nor to make alias or links of the developer tools.

Both tools seem quite effective, and maybe you feel more comfortable with ccache, but to me cachecc1 archives the gain i was looking for. So far, compiling time has been dropped to 1/3th, which to me, a compulsive "make_all'er" is quite a lot during the day.

The true is that i build the tool, and did NOT work (here at edgy), but i did find a .deb package linked from the cachecc1 page, and it worked out-of-the-box. How nice.

Update: I've compiled, installed and used it a FC4 ( vmware image ) successfully

Friday, November 03, 2006

reading from a serial device

Yes. You just want to peek a view into the incoming serial data. You are looking for a solution (not a problem), it has to be easy, it has to be pain free. You just want to read incoming data from a serial device. It can not be that hard!

and then you google for a while until you find the answer:

apt-get install picocom
picocom -b 115200 /dev/ttyUSB0

This does the work, quite nice.

Thursday, September 28, 2006

firefox vs Debian

There is a nice post about the Firefox / Debian discusion. I do use both of them, and while at my Xubuntu box, it fells awkward clicking the non-firefox icon to launch Firefox. That said, I think both sides are right, and the way i see it, i'm afraid i won't see the Firefox icon on Xubuntu. Even more, Firefox at Debian will not be Firefox anymore

Also, as a side note, i really agree with Adam when he does post this:

# Adam Says: September 28th, 2006 at 12:33 am

Luis > I’m mostly aware of how copyright and TM are different and being used against each other here. AFAICT, it’s pretty much how Mozilla is capable of shipping stuff under the GPL (a copyright license) but still preventing people from exercising the rights the GPL is supposed to grant them. (using TM law)

The point is that Mozilla claims to release Firefox under the GPL (which is DFSG-friendly), but prevents some GPL-granted uses of the work (which is not DFSG-friendly). Therefore Debian will, in a positive step protecting its and its users right to freely modify and redistribute the software in its main archive, either remove Firefox or fork it.

(And I say “prevents” instead of just “threatens” as the threat of unleashing the dogs of law can be almost as bad as actually doing so. I’m not that involved in Debian, but I’m pretty sure that no-one there wants to take things as far as court to find out which way it might go. If a developer wants to take them to court over them using their software, I’m pretty sure they’ll figure it’s not worth it and just drop the package. If the developer doesn’t want you to use their software *that* much, it’s not really Free anyway, is it? Mozilla are effectively preventing Debian from using Firefox.)

so let's just wait to see how Firefox is dropped from Debian, time will tell.

Friday, September 08, 2006

Lyx 1.4.2 at (X)ubuntu taking too long

For several reasons i've need Lyx 1.4.2 on my Ubuntu 6.06 and it is taking too long to get there. so i've googled for a bit, and after some reading i've decided to update by hand.

i've downloaded lyx-1.4.2_1.4.2-1_i386.deb ( thanks ) and instaled it...

dpkg -i lyx-1.4.2_1.4.2-1_i386.deb

it works for me.

Thursday, July 06, 2006

so many times..

i have done this so many times....

apt-get install subversion doxygen
apt-get install binutils make flex-old bison gcc-4.0 g++ zlib1g zlib1g-dev
apt-get install libncurses5-dev

still takes to much work to figure out the packets from time to time.

and then:

apt-get install valgrind

Update: also in FC4

Thursday, June 29, 2006

FC6 Test1 Screenshots

amazing, really fresh new look.... you can check it yourself at Fedora Core 6 Test1 Screenshots. So i did search a bit about what is behind that logo and the new look. I found the the ideas and a nice slideshow. very interesting stuff.

Saturday, May 13, 2006

Valgrind minimal tutorial

I just hit Using Valgrind to Find Memory Leaks - Cprogramming.com, a very nice article about how to use Valgrind. There is also a quick start guide at valgrind's documentation page.

Wednesday, May 10, 2006

Tracking system performance with SAR | Linux Box Admin

Tracking system performance with SAR | Linux Box Admin: Hum, i needed this so bad. I can not get into many details now, but i'm affraid i'll be using this quite a bit in the following days.