Friday, October 1, 2010

How to add a second monitor (Dual monitor)

I buy a new LG E2250V monitor and I try to connect it to my laptop (HP Compaq 6715s) which has installed Ubuntu 10.04 on it. The laptop has an ATI Radeon X1250 graphical card.
At first I successfully connect using System -> Preferences -> Monitors, but with a wrong resolution.
To change that I searched Internet for it. So here are the steps to follow to change your resolution or refreshing rate:

1. Where is xorg.conf?
xorg.conf is the configuration file used for monitors settings. It is located in etc/X11/xorg.conf
Ubuntu 10.04 may not use this file by default. But if you create it, it will.
1.1. first check if xorg.conf exists. If it does, skip this step.
1.2. You can create an xorg.conf file by entering recovery mode (hold down shift at startup, or choose it from GRUB when it appears) and type: $ sudo Xorg -configure
1.3. A file /root/xorg.conf.new will be created. Copy this file to /etc/X11/xorg.conf
Now you have xorg.cong file in proper location.

2. Backup your configuration file by running command: sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

3. run the next commands to change resolution

3.0 First, here are couple commands to inform the current configuration:

$ xrandr -v

Sample output

xrandr program version 1.3.2
Server reports RandR version 1.3

$ xrandr -q

Sample output

Screen 0: minimum 320 x 200, current 2896 x 800, maximum 8192 x 8192
VGA-0 connected 1360x768+1536+32 (normal left inverted right x axis y axis) 0mm x 0mm
1360x768 59.8*
1024x768 60.0
800x600 60.3 56.2
848x480 60.0
640x480 59.9 59.9
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
1280x800 59.9*+
1280x720 59.9
1152x768 59.8
1024x768 59.9
800x600 59.9
848x480 59.7
720x480 59.7
640x480 59.4
S-video disconnected (normal left inverted right x axis y axis)


3.1. If you want to add a mode with resolution 1024X768, you can enter the following command: (The output is shown following.)

$ cvt 1920 1080

Sample output

# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

3.2. Now you need to create a modeline. Copy the modeline of the previous output to the place mode line

$ xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

3.3. Now you need to add the above mode using the following command

$ xrandr --addmode VGA-0 "1920x1080_60.00"


3.4. Here for VGA1 you have to use what ever that was there for $ xrandr output

$ xrandr --output VGA-0 --mode "1920x1080_60.00"

4. In this step we will save this changes permanently.

4.1. Edit the default file:

$sudo gedit /etc/gdm/Init/Default

4.2. Look for the following lines

PATH=/usr/bin:$PATH
OLD_IFS=$IFS

4.3 Add the the following lines below them

xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode VGA-0 "1920x1080_60.00"
xrandr --output VGA-0 --mode "1920x1080_60.00"


Resources:
No xorg.conf found in /etc/X11 (Ubuntu 10.04)
http://ubuntuforums.org/showthread.php?t=1437980

Xorg RandR 1.2
http://www.thinkwiki.org/wiki/Xorg_RandR_1.2

How change display resolution settings using xrandr
http://www.ubuntugeek.com/how-change-display-resolution-settings-using-xrandr.html

Thursday, September 16, 2010

How to get rid of “Enter password to unlock your login keyring” prompt in Ubuntu

Recently I change the main password in Ubuntu. After restart it was I faced a new password dialog: "Enter password to unlock your login keyring". Searching the Internet after this issue, I found here a very nice step by step guide of how to get rid of this dialog.

For those of you that want the short version here are the steps to follow:
1. Ubuntu main menu -> Applications -> Accessories -> Passwords and Encryption Keys.
2. In Passwords tab, right click Passwords: login. In the menu select Change Password… option.
3. Enter your old login password and new login passwords. New password should be the main password from Ubuntu.

Wednesday, July 28, 2010

How to enable Flash for Opera in Ubuntu

If you are an Opera fan and want to enable Flash for it here are the steps you should follow:

1. Install Flash for mozilla using Synaptic Package Manager or dowloaded directly from Adobe site. Once is working on Mozilla follow this steps:

1.1. close Opera if is opened.
1.2. go to /usr/lib/mozilla/plugins/ and copy file flashplugin-alternative.so to /usr/lib/opera/plugins/

That's it.

References:
http://my.opera.com/lounge/forums/topic.dml?id=189210&t=1280314781&page=1#comment2184745

How to resolve Subversion Conflicts

I read here an article where are explained couple methods of how to solve Subversion conflicts. What I did not find there, what in my opinion is the easiest way to solve conflict, is the next described method:

Delete all 4 files (README, README.mine, README.r5, README.r6) and update your working copy. The last version from repository will be reverted to your working copy (README with your colleague modifications).

Of course if you made some modifications in README file before Update command with the above method your modifications will be lost.

Saturday, June 19, 2010

Network Location in Windows 7

I see allot of people trying to connect to a Web Folder or an FTP account (network location) in Windows 7.

How you do it?
1. Open Windows Explorer.
2. On the left panel click on the Computer
3. In the right panel right click anywhere on the white space
4. Click on "Add a network location"
5. Follow on screen steps.

What problems can appears?
When you want to create a Web Folder you are asked to add a location in "Internet or Network Address" text field. Even that your address is valid, you may get this error:
"The folder you entered does not appear to be valid. Please choose another."
This is because Web Folder is not installed on Windows 7 by default.
What you should do is to install the Software Update for Web Folders from Microsoft (KB907306)

After you install the above Microsoft update, you should be able to set up a Web Folder without getting any errors (of course if the address is valid). However, in Windows 7, you can only browse the root folder. When you try to open a folder or transfer a file to it, you won't be able to.

References:
http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/f8ded84a-e9c3-4d4c-8eca-86ffed3e3495

http://www.webdavsystem.com/server/documentation/troubleshooting

http://social.answers.microsoft.com/Forums/en-US/w7files/thread/4d0475dc-7886-4051-814e-20a49bdfbdd0

http://www.techiechips.com/web-folders-web-disk-webdav-problems-on-windows-7/

Sunday, May 16, 2010

Noile trasee maxi-taxi din Galati

Mai jos gasiti linkurile pe Google Maps pentru noile traseele de maxi-taxi din Galati ce au intrat in vigoare in data de 9 mai 2010

EN: Here are the Google Maps links for the new maxi-taxi routes in Galati.

Traseul nr. 60
Traseul maxi-taxi nr. 60: Billa 1 – Str. Oţelarilor – Dunărea – Brăilei – Oţelarilor – Stadionului – Brăilei – Reg. 11 Siret – Brăilei – Domnească – Parc CFR (şi retur pe Str. Gării – Bălcescu);

Traseul nr. 61
Traseul maxi-taxi nr. 61: Billa 1 – Str. Oţelarilor – Dunărea – Brăilei – Oţelarilor – Stadionului – Brăilei – Navelor – Portului – INTFOR (şi retur pe Str. Domnească – Mavramol – Bălcescu);

Traseul nr. 62
Traseul maxi-taxi nr. 62: Dimitrie Cantemir – Danubius – Str. Galaţi – Oţelarilor – Stadionului – Brăilei – Prelungirea Traian – Piaţa Centrală (şi retur pe Str. Sf. Spiridon);

Traseul nr. 63
Traseul maxi-taxi nr. 64: Billa 1 – Str. Oţelarilor – Brăilei – Centură – Oltului – Prel. Brăilei – Gh. Asachi – A. Saligny – Siderurgiştilor – 1 Dec. 1918 – T. Vuia – H. Coandă – G. Coşbuc – Ştefan cel Mare – Cimitir Israelit (şi retur);

Traseul nr. 64
Traseul maxi-taxi nr. 64: Billa 1 – Str. Oţelarilor – Dunărea – Brăilei – Oţelarilor – Stadionului – Brăilei – Domnească – Gării – Gara CFR (şi retur pe Str. Gării – Bălcescu);

Traseul nr. 68
Traseul maxi-taxi nr. 68: ADP – Str. H. Coandă – T. Vuia – 1 Dec. 1918 – A. Vlaicu – Alba Iulia – Nae Leonard – Gh. Doja – G. Coşbuc-Brăilei – Navelor – Portului – INTFOR (şi retur pe Str. Domnească – Mavramol – Bălcescu);

Traseul nr. 75
Traseul maxi-taxi nr. 75: Billa 2 – Str. Milcov – Petrinni – I. Fernic – Centură – T. Vuia – 1 Dec. 1918 – Siderurgiştilor – Brăilei – Gării – Gara CFR (şi retur pe Str. Gării – Bălcescu);

Traseul nr. 76
Traseul maxi-taxi nr. 76: ADP – Str. H. Coandă – T. Vuia – 1 Dec. 1918 – Siderurgiştilor – Brăilei – Domnească – Prundului – Traian – Al. Măcelaru – G. Coşbuc – ADP;

Traseul nr. 77
Traseul maxi-taxi nr. 77: ADP – Str. H. Coandă – T. Vuia – 1 Dec. 1918 – Siderurgiştilor – Brăilei – Prel. Traian – Piaţa Centrală (şi retur pe Str. Sf. Spiridon).

Traseul nr. 79
Traseul maxi-taxi nr. 79: ADP – Str. G. Coşbuc – Al. Măcelaru – Traian – Prundului – Domnească – Gării – N. Bălcescu – Brăilei – Siderurgiştilor – 1 Dec. 1918 – T. Vuia – H. Coandă – ADP;

Traseul nr. 84
Traseul maxi-taxi nr. 84: Dimitrie Cantemir – Danubius – Str.Galaţi – Oţelarilor – Stadionului – Brăilei – Siderurgiştilor – 1 Dec. 1918 – T. Vuia – H. Coandă - Coşbuc – Ştefan cel Mare – Cimitir Israelit (şi retur).

Hello World

As any new thing, especially in programming, I start this blog with the traditional Hello World.