Showing posts with label Linux - How To's. Show all posts
Showing posts with label Linux - How To's. Show all posts

Monday, February 22, 2010

Freenode IRC - Connect via Openssl with SASL authentication


Migration of freenode to new server from hyperion-ircd to ircd-seven happened in January end,2010.With which one can connect to IRC freenode via OpenSSL encryption between client & server .Using a script in Irssi one can get authentication via SASL.Freenode's standard port is 6667 but listen's for SSL connections on ports 7000 and 7070.So here are steps of how to get SSL and SASL setup for Irssi:

1)Perl libraries required: Before hand to run Irssi script pre-requisite perl lib are Blowfish, DH and BIGNUM

2)For Debian/Ubuntu ( install irssi,perl lib pre-requisites & Openssl) :

sudo apt-get install irssi openssl libcrypt-openssl-bignum-perl libcrypt-dh-perl libcrypt-blowfish-perl

3)At terminal:

cd ~/.irssi/scripts
sudo mkdir autorun ## only if you do not have this directory already
sudo wget http://www.freenode.net/sasl/cap_sasl.pl ##location of cap_sasl.pl is ~/.irssi/scripts/autorun/
cd autorun
sudo ln -s ../cap_sasl.pl cap_sasl.pl

4)Start up irssi without connecting to anything :

irssi -!

5)Once in Irssi,at Status, setup your username and password for SASL:
/server add -auto -ssl -network freenode irc.freenode.net 7000
/server add -auto -ssl -ssl_cacert /etc/ssl/certs/GandiStandardSSLCA.pem -network freenode irc.freenode.net 7000(##Incase if you have any certification issues pass these command)
/sasl set freenode your_nick your_password DH-BLOWFISH
/sasl save
/save

6)Quit Irssi

7)Edit config file of irssi :

sudo vi ~/.irssi/config (## search for section servers and see if below entries matches & update as below)

address = "chat.us.freenode.net";
chatnet = "freenode";
port = "7000";
use_ssl = "yes";
ssl_verify = "yes";
ssl_capath = "/etc/ssl/certs";
autoconnect = "yes";

8)Now simply fire up irssi-windows ( for window's navigation btw channels).You may get something like these :

17:36 -!- Irssi: Looking up chat.us.freenode.net
17:36 -!- Irssi: SASL: auth loaded from /home/binnishah/.irssi/sasl.auth
17:36 -!- Irssi: Connecting to chat.us.freenode.net [140.211.166.4] port 7000
17:36 -!- Irssi: Connection to chat.us.freenode.net established
17:36 !niven.freenode.net *** Looking up your hostname...
17:36 !niven.freenode.net *** Checking Ident
17:36 -!- Irssi: CLICAP: supported by server: identify-msg multi-prefix sasl
17:36 -!- Irssi: CLICAP: requesting: multi-prefix sasl
17:36 -!- Irssi: CLICAP: now enabled: multi-prefix sasl
17:36 -!- binnishah!binnishah@unaffiliated/abms1116 abms1116 You are now logged in as abms1116.
17:36 -!- Irssi: SASL authentication successful
17:36 -!- Welcome to the freenode Internet Relay Chat Network binnishah
17:36 -!- Your host is niven.freenode.net[140.211.166.4/7000], running version ircd-seven-1.0.1
17:36 -!- This server was created Sat Jan 30 2010 at 21:09:36 UTC
17:36 -!- niven.freenode.net ircd-seven-1.0.1 DOQRSZaghilopswz CFILMPQbcefgijklmnopqrstvz bkloveqjfI
17:36 -!- CHANTYPES=# EXCEPTS INVEX CHANMODES=eIbq,k,flj,CFLMPQScgimnprstz CHANLIMIT=#:120 PREFIX=(ov)@+ MAXLIST=bqeI:100 MODES=4 NETWORK=freenode KNOCK STATUSMSG=@+ CALLERID=g are supported by this server
17:36 -!- SAFELIST ELIST=U CASEMAPPING=rfc1459 CHARSET=ascii NICKLEN=16 CHANNELLEN=50 TOPICLEN=390 ETRACE CPRIVMSG CNOTICE DEAF=D MONITOR=100 are supported by this server
17:36 -!- FNC TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:4,NOTICE:4,ACCEPT:,MONITOR: EXTBAN=$,arx WHOX CLIENTVER=3.0 are supported by this server
17:36 -!- There are 899 users and 52716 invisible on 23 servers
17:36 -!- 37 IRC Operators online
17:36 -!- 58 unknown connection(s)
17:36 -!- 27761 channels formed
17:36 -!- I have 2559 clients and 1 servers
17:36 -!- 2559 4459 Current local users 2559, max 4459
17:36 -!- 53615 60092 Current global users 53615, max 60092
17:36 -!- Highest connection count: 4460 (4459 clients) (271988 connections received)
17:36 -!- - niven.freenode.net Message of the Day



*Xchat configuration to SSL :

From Menu select--> Network list -->Networks -->Select freenode --> Edit-->Servers for freenode -->Add "irc.freenode.net/7070" -->set nickserv password
On same window you may find --> Connecting -->Click on "Use SSL for all servers on these Network"

On connection via SSL with port 7070 on Xchat ,you may find it like these:

* * Certification info:
* Subject:
* OU=Domain Control Validated
* OU=Gandi Standard Wildcard SSL
* CN=*.freenode.net
* Issuer:
* C=FR
* O=GANDI SAS
* CN=Gandi Standard SSL CA
* Public key algorithm: rsaEncryption (2048 bits)
* Sign algorithm sha1WithRSAEncryption
* Valid since Jan 13 00:00:00 2010 GMT to Jan 13 23:59:59 2011 GMT
* * Cipher info:
* Version: TLSv1/SSLv3, cipher DHE-RSA-AES256-SHA (256 bits)
* Connected. Now logging in...
* *** Looking up your hostname...
* *** Checking Ident
* Welcome to the freenode Internet Relay Chat Network abms1116
* Your host is barjavel.freenode.net[78.40.125.4/7070], running version ircd-seven-1.0.0


Public Key : 12695C6D
Fingerprint : 0131 E273 B314 E8C8 2599 E32D 99AA 9362 1269 5C6D

Monday, October 26, 2009

How to enable TATA Photon whiz on Ubuntu 9.04/Fedora 11


For all those who are using TATA Photon whiz (Hauwei -EC121 or others) these is small - "How to for Ubuntu 9.04 Jaunty Jackalope & Fedora 11" ,which by default can't Plug n play (atleast for me on Ubuntu :))even with Network Manager Applet -->Mobile broadband --> Country = India --> Provider -->Tata indicom ( Plug2Surf) -->Uname: internet,Password=internet,Ph =#777 ( As its CDMA).

# Ubuntu 9.04 Photon Whiz set up

1)By default Ubuntu 9.04 doesn't have wvdial ,so you can install it via #Synaptic Package Manager -->search for wvdial

---OR--
Insert original Ubuntu Cd

Go to System->Administration->software sources. add cd as a source and close . It will update itself, Then on terminal type,

sudo apt-get install wvdial .

2) Type lsusb command and see what it gives (for me below was result)


binnishah@google:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 045e:00a4 Microsoft Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 12d1:1411 Huawei Technologies Co., Ltd. ---------> ( Model #,vendor# & product# to trace for modprobe just in case your OS can't catch it plug n play)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


3)I have Huawei Mobile connect whose model # is EC121 and vendor = 12d1 & product=1411
next,

modprobe usbserial vendor=0xAAAA product=0xBBBB ,

Where AAAA is 12d1 and BBBB is 1411 in my case.

4)Open terminal and give command ( pl.give these while inserting USB photon drive in lap/Server)

sudo wvdialconf /etc/wvdial.conf ---> (These will detect the modem and install it for internet connection by inserting appropriate modem configuration into /etc/wvdial.conf)

** Pl.dont forget sudo or else you will be trapped into permission issues of /usr/sbin/pppd & chap-secrets & pap-secrets permissions and worse would be wvdial.conf wont get Baud speed rate self detected ,neither exact location of modem would be traced

5) Open wvdial.conf in /etc with :-

sudo vi /etc/wvdial.conf ,it has some entries by default add some new & match it as belows:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CRM=1
Stupid Mode = 1
New PPPD = Yes
Modem Type = USB Modem
Phone = #777
ISDN = 0
Password = internet ---> Your ph number of tata/password
Username = internet --> Your uname /#
Modem = /dev/ttyUSB0
Baud = 9600 -->Baud rate would be decided by 4rth command and written automatically into wvdial.conf script

Now save & exit vi,

6)type sudo wvdial

It may give you something like these:--

binnishah@google:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT 153600
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun Oct 18 17:47:48 2009
--> Pid of pppd: 13130
--> Using interface ppp0
--> local IP address 121.245.189.171
--> remote IP address 172.23.119.14
--> primary DNS address 202.54.29.5
--> secondary DNS address 202.54.10.2
^CCaught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> Connect time 5.1 minutes.
--> Disconnecting at Sun Oct 18 17:52:50 2009

7)Command tail -f /var/log/messages --> Just immediately aft.connection gives following:

binnishah@google:~$ tail -f /var/log/messages
Oct 18 17:47:48 google pppd[13130]: Warning - ***
Oct 18 17:47:49 google pppd[13130]: CHAP authentication succeeded
Oct 18 17:47:49 google pppd[13130]: CHAP authentication succeeded
Oct 18 17:47:49 google pppd[13130]: local IP address 121.245.189.171
Oct 18 17:47:49 google pppd[13130]: remote IP address 172.23.119.14
Oct 18 17:47:49 google pppd[13130]: primary DNS address 202.54.29.5
Oct 18 17:47:49 google pppd[13130]: secondary DNS address 202.54.10.2
Oct 18 17:52:50 google pppd[13130]: Terminating on signal 15
Oct 18 17:52:50 google pppd[13130]: Connect time 5.1 minutes.
Oct 18 17:52:50 google pppd[13130]: Sent 158772 bytes, received 741237 bytes.

8)If you dont want to fall in hassles of pwd ( I wouldn't recommend to do so ,though)

sudo vi /etc/sudoers

# User privilege specification
username machine_name = NOPASSWD: /usr/bin/wvdial

So next time when you give wvdial you dont need to type in password


*For Fedora-11 - TATA Photon Whiz :- ==========================

It came to me as surprise that Fed-11 took it in plug n play ie:- just some tweak with Network manager applet and I was sorted out with live n kicking
tata photon whiz USB Mobile broadband

1)Open Network manager applet
2)In that,there's option of --> Mobile Broadband -->Add ( By default you will have Huawei Technologies or your preferable qualcom or whatever) -->Select it -->Forward -->Country - India -->Forward --> Select Tata Indicom(Plug2Surf) if you have photon whiz -->Forward ->Commit changes by pressing apply
3)In Popup of Editing tata Indicom
Add your username & password
and simply press apply
4)Left click Network manager applet and you will have option of Tata Plug2surf ,select it and you are all set

Hope that helps !!!

*Image courtesy

Friday, March 27, 2009

How to Enable ATI Radeon 3200 card with fglrx on Fedora-10

I had till date installed my ATI - Radeon 3200 twice in 4 months.Currently I am applying my hands on Fedora 10 , OpenSuse 11 + Solaris.

For novices/myriads in flux here's a detailed how to & problem I faced & how I got rid with it.

Question:- After freshly installing Fedora-10 my PC works fine for few minutes and then freezes up badly that I need to reboot or shutdown and then once again same things are redundant

Ans : You need to install either fglrx or any Opensource driver for your card

Try these :-

** sudo yum install system-config-display ( The moment I installed these rpm package F10 stopped freezing to death but here it takes general Opensource drivers for your card instead we want to use fglrx which allows us to use 3d effects of ATI along with compiz-fusion,so all these below heck we are doing)

Question 2:- How to install & enable fglrx drivers & compiz-fusion ?

1)Check if your card is supported by these ATI driver

2)Update system & Kernel with :-

Code : su -c "yum update"

OR

Code : sudo yum update

3)install the F10 rpmfusion driver

Code:
su -
rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
yum install kmod-fglrx xorg-x11-drv-fglrx xorg-x11-drv-fglrx-libs.i386

4) Backup Old initrd
Code:
su
mv /boot/initrd-`uname -r`.img /boot/initrd-`uname -r`.img.backup

Remake initrd for the kernel (So the radeon module is not force loaded)

Code:
su -
mkinitrd -v /boot/initrd-`uname -r`.img `uname -r`

5) Edit grub.conf

Code:
su
gedit /boot/grub/grub.conf
and add this "nopat" to the kernel arguments.


Optional (in case libdrm change breaks things due to relationship with KMS):
add "nomodeset" to end of kernel arguments


6. Reboot

due to the akmod, it is *absolutely necessary* to reboot after the install, otherwise the kernel module won't be compiled.



7. Optional install compiz-fusion.


8.How to upgrade libdrm if previously downgraded .


Code:
su
rm -f /etc/yum.repos.d/rpmfusion-nonfree-updates-9.repo
rm -f /etc/yum.repos.d/fedora9.repo
sed -i -e 's|^exclude.*||' /etc/yum.repos.d/fedora*
yum clean all
yum update libdrm
Now finally when we are done with these steps from Fedoraforums by Leigh here I share my input

1)After reboot on CLE type :-

Code :
sudo aticonfig -v --initial -f (These will do initial /first time setup of fglrx on ATI card) // mindwell dont forget to be super user or else things wont work

2)Then verify if fglrx is enabled or not with :-

Code:-

fglrx-config-display enable

To Restart fglrx :- sudo service fglrx restart

3)For single head you may go for :- aticonfig --initial --input=/etc/X11/xorg.conf
4)For dual head you may go on for:- aticonfig --initial=dual-head --screen-layout=above
This command will generate a dual head configuration
file with the second screen located above the first
screen.
5) Setting up modes for primary display.
aticonfig --resolution=0,1600x1200,1280x1024,1024x768
6) Force primary CRT on and TV-out off.
aticonfig --force-monitor=crt1,notv
7) Change tv geometry
aticonfig --tv-geometry=85x90+10-10
This will set tv to 85% width (where 100% ==
overscan) 90% height and shift 10 pixels right of centre
and 10 pixels down of centre

**Troubleshooting :-

1)sudo aticonfig --initial=check
Identifies if the fglrx driver is present in configuration file.

Output should be :-
[binnishah@redhat ~]$ aticonfig --initial=check
Check: Found fglrx section.

2)Try glxinfo -->
Output should be :-
[binnishah@redhat ~]$ glxinfo
name of display: :4.0
display: :4 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_create_context, GLX_ARB_get_proc_address, GLX_ARB_multisample,
GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_MESA_allocate_memory, GLX_MESA_swap_control,
GLX_MESA_swap_frame_usage, GLX_NV_swap_group, GLX_OML_swap_method,
GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGIX_swap_barrier, GLX_SGIX_swap_group,
GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
GLX_ARB_create_context, GLX_ARB_get_proc_address, GLX_ARB_multisample,
GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_MESA_swap_control, GLX_NV_swap_group, GLX_OML_swap_method,
GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_swap_barrier, GLX_SGIX_swap_group, GLX_SGIX_visual_select_group
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 3200 Graphics
OpenGL version string: 2.1.8494 Release
OpenGL shading language version string: 1.20
OpenGL extensions:
GL_AMD_performance_monitor, GL_ARB_color_buffer_float,
GL_ARB_depth_buffer_float, GL_ARB_depth_texture, GL_ARB_draw_buffers,
GL_ARB_draw_instanced, GL_ARB_fragment_program,
GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader,
GL_ARB_framebuffer_object, GL_ARB_framebuffer_sRGB,
GL_ARB_half_float_pixel, GL_ARB_half_float_vertex,
GL_ARB_instanced_arrays, GL_ARB_map_buffer_range, GL_ARB_multisample,
GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_pixel_buffer_object,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shader_objects,
GL_ARB_shader_texture_lod, GL_ARB_shading_language_100, GL_ARB_shadow,
GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
GL_ARB_texture_compression, GL_ARB_texture_compression_rgtc,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
GL_ARB_texture_env_dot3, GL_ARB_texture_float,
GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
GL_ARB_texture_rectangle, GL_ARB_texture_rg, GL_ARB_transpose_matrix,
GL_ARB_vertex_array_object, GL_ARB_vertex_buffer_object,
GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos,
GL_ATI_draw_buffers, GL_ATI_envmap_bumpmap, GL_ATI_fragment_shader,
GL_ATI_meminfo, GL_ATI_separate_stencil, GL_ATI_texture_compression_3dc,
GL_ATI_texture_env_combine3, GL_ATI_texture_float, GL_EXT_abgr,
GL_EXT_bgra, GL_EXT_bindable_uniform, GL_EXT_blend_color,
GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_compiled_vertex_array,
GL_EXT_copy_texture, GL_EXT_draw_buffers2, GL_EXT_draw_range_elements,
GL_EXT_fog_coord, GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample,
GL_EXT_framebuffer_object, GL_EXT_framebuffer_sRGB,
GL_EXT_gpu_program_parameters, GL_EXT_gpu_shader4,
GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil,
GL_EXT_packed_float, GL_EXT_packed_pixels, GL_EXT_point_parameters,
GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,
GL_EXT_subtexture, GL_EXT_texgen_reflection, GL_EXT_texture3D,
GL_EXT_texture_array, GL_EXT_texture_compression_latc,
GL_EXT_texture_compression_rgtc, GL_EXT_texture_compression_s3tc,
GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
GL_EXT_texture_integer, GL_EXT_texture_lod_bias,
GL_EXT_texture_mirror_clamp, GL_EXT_texture_object,
GL_EXT_texture_rectangle, GL_EXT_texture_sRGB,
GL_EXT_texture_shared_exponent, GL_EXT_transform_feedback,
GL_EXT_vertex_array, GL_KTX_buffer_region, GL_NV_blend_square,
GL_NV_conditional_render, GL_NV_copy_depth_to_color,
GL_NV_texgen_reflection, GL_SGIS_generate_mipmap,
GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_WIN_swap_hint,
WGL_EXT_swap_control

65 GLX Visuals
---- !!!

3)Try glxgears
Output should be:- (some RGB wheels moving in contact with edges)

306 frames in 5.0 seconds = 61.035 FPS
301 frames in 5.0 seconds = 60.186 FPS
302 frames in 5.0 seconds = 60.207 FPS
301 frames in 5.0 seconds = 60.200 FPS
301 frames in 5.0 seconds = 60.178 FPS
301 frames in 5.0 seconds = 60.188 FPS

4)Try fgl _glxgears

Output should be :-

Using GLX_SGIX_pbuffer
262 frames in 5.0 seconds = 52.400 FPS
298 frames in 5.0 seconds = 59.600 FPS
299 frames in 5.0 seconds = 59.800 FPS
286 frames in 5.0 seconds = 57.200 FPS

5)Try fglrxinfo

Output should be :-
[binnishah@redhat ~]$ fglrxinfo
display: :4.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 3200 Graphics
OpenGL version string: 2.1.8494 Release

*More ways to troubleshoot, is to analyse following:-

1)cat /var/log/Xorg.0.log | grep EE --> EE = error
2)cat /var/log/Xorg.0.log | grep EE --> WW = warning
3)dmesg | grep error
4)ccsm ( compiz config setting manager)
5)amdcccle
6)If you can't get xorg.conf (or dont find it in fresh fedora installation esp in Cambridge)

a)sudo yum install system-config-display
b)Menu - System - Administration - Display .Simply press ok ,so it will create in /etc/X11/xorg.conf later you can carry it from step 1 above

7)Open /etc/X11/xorg.conf and add in Section "Files"

ModulePath "/usr/lib/xorg/modules/extensions/fglrx"
ModulePath "/usr/lib/xorg/modules"

These is necessary to tell the server where to pick up the new driver. This is done by adding above lines in Files section

It’s important that this be the first ModulePath entry in the Files section. You can have more than one ModulePath in this section and they are all appended in order. This order is also the order searched for driver (and other) modules. So having this path first tells the server to look in our new driver directory first for the amd/ati driver.

Finally how my current xorg.conf looks like :-

# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "aticonfig-Screen[0]-0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules/extensions/fglrx"
ModulePath "/usr/lib/xorg/modules"
EndSection

Section "ServerFlags"
Option "AIGLX" "on"
EndSection

Section "InputDevice"

# keyboard added by rhpxl
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105+inet"
Option "XkbLayout" "us"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:5:0"
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection



If you have any issues with ATI graphics card in linux,feel free to contact