domingo, 9 de agosto de 2009

Ubuntu 9.04 Jaunty Jackalope - NVidia TNT2 Model 64 32MB

Hi Guys,

I'm using Linux in a old PC and today I clean all old systems ( yeah I didn't clean the system since 5 years).

After install 9.04 I can't put 1024x768 resolution.

After google it I found a thread talking about it [1]




======xorg.conf delujoč========================
###############################################
# MANUALLY REFURBISHED xorg.conf FOR
# UBUNTU 9.04 JAUNTY!!!
#
# Edit under Linux:
# 1. Open terminal.
# 2. sudo nano /etc/X11/xorg.conf
#
# (^-Ctrl key in nano.)
#
# USE AS TEMPLATE ON YOUR OWN RESPONSIBILTY!!!
#
# 1. FIRST, ENTER CORRECT VALUES FOR MONITOR, KBD,
# VIDEO CARD. THEN START WITH TESTING.
# 2. IF IN DOUBT, COMMENT OUT ERRATIC AND
# UNWANTED PARTS.
#
###############################################
# THIS FILE IS GIVEN AWAY FOR FREE "AS IS".
# Modified by Joze Klepec in May, 2009.
###############################################

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"

# keyboard added by rhpxl - you can safely remove entire section
# along with definitions in Section "ServerLayout"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
#Option here defines new variable named XkbModel with value pc105.
#pc102??, pc101??, pc104??, pc85??, pc84??
Option "XkbLayout" "si"
#en, de, es....
EndSection

Section "Monitor"
Identifier "Monitor0"
#Don't change unless you don't have more than one monitor!!
#This probably affects monitor order.
ModelName "Nokia 449Xa"
#Monitor name as got from specs. If not from papers, search
#on the Internet.
HorizSync 30.0 - 65.0
#Horizontal syncronization rate in KHz.
VertRefresh 48.0 - 120.0
#Vertical refresh in Hz. Picture frame rate actually.
#Good=above 60Hz, very good=above 85Hz, excellent=>120Hz.
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
#Change identically to monitor settings.
Driver "nv"
#Use proper driver here.
#
#options (roughly described):
# nv - Geforce, Geforce2/Geforce MX (Gf2 or mobile onboard),
# NV5 (RIVA TNT2/TNT2 Pro), NV4, and down.
# Support all up to Geforce 6xxx.
# You'll need 71 or 96 line driver for this.
# nvidia - Geforce 6xxx and newer line models support
# Works with 173 or 180 line drivers.
# nouveau - development, open source driver line
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
#Default bit depth - 8, 15, 16, 24, 32 are some possible values.
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "832x624" "800x600" "640x480"
#Specs = PC75 MAC75 PC85 PC120
#Unoffically also "1280x1024" "1280x960" "1152x864" by different cards
for Nokia449Xa.
# 1280x1024x60Hz, 1152x864x60Hz, other untested and may burn your monitor!!!
#Ubuntu will automatically set maximum available resolution.
#Enter correct values - you can burn out some older monitors which don't
support DDC!
EndSubSection
EndSection





For me it is useful and then I publish it here. Even I want support to 3D acceleration I read that it's not possible (waiting for new hacks from nvidia team, but I'm guessing that is not incoming.)

[1] - http://liste2.lugos.si/pipermail/lugos-list/2009-May/053134.html

segunda-feira, 4 de maio de 2009

VirtualBox

Hello,

Today I'd like to say that I'm using VirtualBox[1] - it is a very nice platform to run virtual machines, similar VMware but it is free.

It is a product from Sun.


[1] - http://www.virtualbox.org/

sábado, 11 de abril de 2009

Just some applications on Mac

I'm witting this post thought the dashboard, and i'm really impress about it. I'm using Mac since more than a year, and I wasn't using it correctly yet. I just using the dashboard for simple things like calculator, weather.

And now?


I'm using for blog, for twitter, for youtube, to sticky notes, translator and more others cool features.

Another interesting thing to use is the dictionary in spotlight, try write a word in Spotlight, it's really wonderful.

I'm leaving now with a list of a nice apps/widgets:

- Quicksilver
- Superdock
- Twitterific
- Twidget
- Camino (A nice browser ) 
- Grapher ( Native in Mac OS ) 


Cheers!

sábado, 24 de janeiro de 2009

How to mantain several branches tracking a trunk?

Last few years, I was working inside some projects (Umit and others).
When you work with other peoples commits are limited so the best idea is create a branch. But how I do that? From last few years I was thinking that svn doesn't have support branches, and the way to do that it's just copy the trunk and make "svn merge .." and keep update the branch.
Last month a guy named Guilherme, show me how I really make a branch inside Subversion.
It's not easy if you're working with old tracking. It's the reason of the post.

I would like to talk about:
- branches
- tags

There was a application 'svnmerge' available to create branches. So it keep branch tracking changes on trunk. That's really cool. Advantages?

How svnmerge works with old versions?

First you need to initialize the branches: svnmerge init PATH ( You should do it first at branch, later at trunk)


You can rollback some merges, sample: svnmerge rollback -M r100-120.

The team will take the real avantages after integration, or if you create svnmerge at begin.

In your branch, you can merge easy way: svnmerge merge, and optionally we can specify the revision interval, between revision x and revision y, -rx-y.

At trunk you should do same thing, to push branch changes:
svnmerge merge -S brach_directory

Easy? :D

Thanks Guilherme, it's really cool.

domingo, 21 de setembro de 2008

Archlinux - oh can't install

Hi folks,

I was a guy of archlinux some years ago. :)
But it had severals bugs when I was trying use.

Today I was trying install ArchLinux. But oh. I coudn't.

Error no /src/core/pkg is missing and if I try by FTP errors return on select packages.

How solve?


Solution: Remove /tmp/.pkgcategory [1]



[1] - http://bbs.archlinux.org/viewtopic.php?id=52584



Cheers!

quinta-feira, 7 de agosto de 2008

ssh server without auth (no auth server/client)

Well I have a Mac OS and Ubuntu.

My ubuntu have sshd - server.


I didn't want no autentification on ssh server.



Introdution and overview about keygen


if you want no auth in ssh server, you need access on your ssh server to change some configs.
If it is a public server (like hosting servers ) configs on server should be done.

Only need to upload your key.

How to say to ssh server that it's my machine trying login?

Client generate a private and public key. You share public key with server.
private and public key matches by algorithm and it's authentication.

So server recognize the keys and doesn't ask password.



How to do that?

Server

Edit /etc/ssh/sshd_config

Change some configs to:

RSAAuthentication yes
PubkeyAuthentication yes
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no


Reload server:

sudo /etc/init.d/ssh reload


Client

Gerate key:

ssh-keygen -q -f id_rsa -t rsa



scp ~/.ssh/id_rsa.pub user@server:~/.ssh/id_rsa.pub
ssh user@server
cd .ssh
cat id_rsa.pub>>authorized_keys
rm id_rsa.pub
exit


do same on server if you wish.


AutentificationTroubles?


Put this at server:


server$ chmod go-w ~/
server$ chmod 700 ~/.ssh
server$ chmod 600 ~/.ssh/authorized_keys


Doesn't it works?

cat /var/log/auth.log and grep it!



References:
Troubles page ssh

terça-feira, 5 de agosto de 2008

Umit 0.9.5 released and Mapper and Network Inventory, Interface Editor and others comming...

Now umits will integrate soc projects! :D


What is comming?
- Mapper
- Network Inventory
- Interface Editor
- Target widget
- NSE Script Editor


soon!! Stay tunned on trunk.



Official message from Umit:

Hi everyone!

We're happy to say we finally have a stable release. We fixed bugs, language files and complemented documentation.

Try it and let us know if you have any trouble. You can send a message to this mailing list or, if you find a bug, please report on our trac[1].

Changes since RC2:

* Changes on tarball, now it does not have *.mo (binary) files
* Fixed icons directory, it was causing problems on uninstall_umit
* Fixed CrashReport message - now have formatted view on trac
* Added number version in components of Umit (umitGUI, umitCore, higwidgets) - it is useful to view if umit is using old stuff in CrashReports.
* Remove some lines that was debuging and it was freezing Umit in some situations (Search Scans and CrashReport)
* Update keyboard shortcuts for Profiles Deletion (it was in conflict with another shortcuts)
* Update language files
* Complement documentation

You can download Umit from here:

http://sourceforge.net/project/showfiles.php?group_id=142490&package_id=156443&release_id=617967

http://www.umitproject.org/?active=download

Now we are ready to start integration of the projects of GSoC and make several improvements on Umit.
Stay tunned!


Cheers!


[1] http://trac.umitproject.org


--
Luís Silva and Rodolfo Carvalho