Tuesday, March 22, 2005

Logitech Mx700 Mouse

Confident after setting up Samba.. Next thing is to get my keyboard and mouse working.. I miss using the thumb buttons to go Back and Forward Webpages when online and using the media buttons.

After googling around heres what I've done. Following instructions on this page How to set up a Logitech MX500 and this one Getting the most of Microsoft Explorer mouse I got the mouse navigate buttons to work. What I mostly did was..

1. I uninstalled the old version of imwheel from YaST and installed the latest version of imwheel from the imwheel homepage. Check the INSTALL file for installation details
..update you might need to install the X11 Library files from YaST.

2. Changed the 'Xconfig' file (/etc/X11), after making a backup, to look like this:

Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "ButtonNumber" "7"
Option "Buttons" "7"
Option "Device" "/dev/mouse"
Option "Name" "Automatic"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "6 7"
EndSection

3. Restarted Machine.. The scroll wheel wont work now but the thumb buttons will trigger scrolling. Thats coz programs usually recognise buttons 4 & 5 as scroll buttons and when we change the number of buttons to 7, the thumb buttons become button 4-5 and the scroll wheel become 6 & 7.
The scroll wheel is counted as 2 buttons that invoke the page up and page down keystrokes. A better explination of all this is in the links above.
You can use the console command 'xev' that reports mouse events to see what button corresponds to what #. (This should be useful when configuring the Keyboard)

4. Logged in as root and in the console window swapped the 4 & 5 buttons for the 6 & 7 buttons using xmodmap to get the scroll wheel to work correctly.

xmodmap -pp
xmodmap -e "pointer = 1 2 3 6 7 4 5"
xmodmap -pp

5. Edited imwheelrc (/etc/X11/imwheel), after making a copy. Added these lines to invoke the Alt+LeftArrow & Alt+RightArrow keystrokes that are shortcuts to move back & forward webpages in most browsers. The .* indicates that this key even should be invoked in and program.

".*"
None,Up,Alt_L|Left
None,Down,Alt_L|Right

Thats where I stopped last night coz Arati needed me to help her make her scrumptous Prawn Biryani.. yum!

6. Today I ran these commands in the console. And the navigation buttons work..

imwheel -p -b "67"

..update
7. Next created a startup script for X windows that would run two commands at startup so that the changes are permanent. Made changes in /etc/X11/xinit/ to the 'xinitrc' file. Added these lines at the top of the file

#-----------imwheel mousewheel hack------------
[ -r /etc/sysconfig/mouse ] && . /etc/sysconfig/mouse
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
BINARY=$(which imwheel)
BINARY= $-p -b "67"
#-----------imwheel mousewheel hack ends -------


Thats It!!

Research Links :
http://linux.netpimpz.com/mx700/
http://www.glaurung.demon.co.uk/info/linux.mx500.howto.html
http://kryz.org/linux.html
http://www.groundhog1.com/mouse/MSExplorer.html
Discussions about Suse Linux List (suse-linux-e-help@suse.com)

Samba... Lets Dance!!!

Its Working!!! And plz dont ask how! I have no clue!!
After almost a week of struggle its working. I've tried to recall what i did but i might've missed some important details..

I decided to install Samba 3.0 and see if that helped but 3.0 wasnt installing.. gave some libpopt required error.. so i gave up.. (Actually, I already had 3.0 but at the time I didnt know that! :O I realised it later on)

Then I got fedup.. No one on #samba (irc) was replying so I deleted everything in my (/etc/samba/) smb.conf and just put in the basics:

# Global parameters
[global]
workgroup = ETERNIA
server string = Samba Server
interfaces = 127.0.0.1, eth0, eth1, eth2
bind interfaces only = Yes

[nuxaudio]
comment = Audio (D:)
path = /windows/D/

Tested it in the console at the /etc/samba/ directory with
testparm smbd.conf
And then I opened SWAT from http://localhost:901 and fiddled a bit there. I clearly remeber starting all the services and commiting changes.. and after that... i could connect to the sorceress using:

net use e: \\sorceress\nuxaudio

which basically maps the 'nuxaudio' folder to the 'e:' drive. But I got a password prompt and no matter what I tried wraith or root nothing worked. I tried setting the SHARED instead of USERS but I dont think that quite worked. After a lil research I found out that samba has its own user/passwd list. So I created some users.

smbpasswd -a wraith

and volia!! i could access my shares from NN!!! Neat..

I'll tweak it over the week, but finally this is working!!! woo hoo!!
Heres my current smb.conf (/etc/samba)

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/03/21 14:19:47

# Global parameters
[global]
workgroup = ETERNIA
server string = Samba Server
interfaces = 127.0.0.1, eth0, eth1, eth2
bind interfaces only = Yes
local master = No
ldap suffix = dc=example,dc=com
valid users = wraith, Wraith

[nuxaudio]
comment = Audio (D:)
path = /windows/D/

[nuxneuro]
comment = Neuro(F)
path = /windows/F/

[nuxvideo]
comment = Video(E)
path = /windows/E/

[nuxvirtuo]
comment = Virtuo(G)
path = /windows/G/




..update
Since I needed to reconfigure the system after the reinstall, I think I just realised what it was that I did to make samba work.
Even after enabling Samba Server & Client from YaST and changing the smb.conf file to look like above the problem is that the samba services aren't running yet. So, SWAT would not start and i could not see my machine in NW Neighbourhood but could access the windows machines. After mucking around and a few restarts (around 3) the services started so SWAT and Samba were working.
So I guess the key is to coax the smbd, nmbd & winbindd services to run after making all the required changes.
Cheers!

Saturday, March 19, 2005

Samba et Apache: Figuring it out

After some research last night i figured out that the DNS on samba isnt working. neeed to enable WINs or point samba to a WINS server. something like that.. still need to read up abt that..

I managed to setup the Apache WebServer. Got my website up.


..update
I forgot to put details of how i got Apache running. Quite simple actually.
Enable the Apache Server from Yast Network Services> Http Server.
The Web Server is located on /srv/www/htdocs. Store all the files here. Name the main page 'index.html' and its done.
The config file is stored in /etc/apache2 httpd.config if you want to muck with advanced settings.

Strange thing is that within the network i can access the website only with the internal 192.168.0.101 IP but not with the hostname or WAN IP (69.*.*.*). Called D-Link and they say thats how the router is.. Hard to believe but i checked online and a number of ppl have had this problem on some routers.. some router work fine. The solution, which really sux, is to edit the LMHOSTS file on the machines and add
192.168.0.101 gwyneth.gotdns.com
to it.. i hate these band-aid solutions. machines should automatically figure these things out.. bah!

right now the web-server is barely doing what the website indicates. still need to setup an FTP server et al. Linux with it permissions and maha security confuses me..

Linux certianly isn't reccomended for novice users.. theres tons of configuration to be done!

Friday, March 18, 2005

Samba!

The only thing that I miss from windows is the ability to share files and folders across the house. Ive still not figured it out..



What I Did:
` Installed Samba from YaST
` Setup Samba Client and Server with Shares
` Install LISa from YaST
-Restarted..

Lisa is a graphical interface for Samba but LISa doesnt work for me.. still have to get that going.

With after logging in as root into the console, I can read network shares by IP Address but not with the NetBIOS name.

smbclient -L Stripperella -U Arati

Gives me errors that it cant find Stripperella but

smbclient -L 192.168.0.114 -U Arati

shows me the shares on Stripperella and some wierd error. Using

smbmount -o username=Arati, password= //192.168.0.114/Kwap /network/Stripperella/Kwap

I can map the 'Kwap' folder on Stripperella to the '/network/Stripperella/Kwap' folder on the linux box. Wierd!

The Sorceress cant be seen on any windows machine.. I can ping it et al but i can't see it. Need to work on this some more..

There such little documentation on samba.. The samba site is confusing.. took a lot of searching and struggling to figure these small bits out. Lots of help is available for older windows versions. Havent found much help for working with Win XP/2l

Links:
Quick HOWTO: Sharing Rescources with Samba
Experts Excahange Query

Oh! Update.. The Samba site does have info here.. going thru it now..

Instant Messenger

K.. Now I wanna tell some one that ive installed Linux... Time to install the IM software.

MSN Messenger obviously doesnt have a version for Linux but theres a proggy that take care of that.
amsn : Version: 0.94-0.gbv.1

Yahoo has a developed the Linux version for their IM. Installed Yahoo Messenger for RedHat 9.0 rpm from Yahoo.com

Thursday, March 17, 2005

Playing DivX Vizions

So I've installed Suse.. and its lunchtime so i want to watch my divX Xena eps.. and ack! linux wont play divX!!! I could only hear the sound.. no video.

Heres what I installed. Dunno if i installed some unnecessary stuff or if installed it the right way.. but by the end of 2 hrs of struggle I was watching Xena, Season 4 eps nice et clear!

libmp3lame0 : Version: 3.93.1-1mdk
mplayer : Version: 1.0pre6-1
libtheora : Version: 1.0alpha4-0.pm.0
speex: Version: 1.1.7-0.pm.0
w32codecs : Version: 0.90-2 (Dont think this is necessary)
w32codec : Version: 0.90-alt1 (Dont think this is necessary)
w32codec : Version: 0.52-1
libxine1 : Version: 1.0cvs-050101

Voila.. DivX files play...

Linkz of the day! - rpmfind.net & Pac-Man

Eternia: The Setup

Workgroup Name: Eternia
Router: D-Link Wifi Router (Connected to Motorola Cable Modem)

[Wired Connection]
Stripperella - Windows XP - Desktop
Sorceress - Suse 9.1 - Desktop

[Wireless Connection]
Druidess - Suse 9.1 & Windows XP - Laptop
Mini Me - Windows Mobile 2003 - Pocket PC

Machine Specs


OS: Suse 9.1

System Specs for The Sorceress:
Amd Athlon XP 2200
MSI Mboard KM2M Combo KM266 - 8235
Integrated Ethernet & Sound
IGP Video (Integrated)
2 PCI Ethernet Cards
40 GB HDD Maxtor
120 GB HDD Western Digital
Dvd Writer
CD Writer
Logitech MX700 Wireless Keyboard & Mouse



System Specs for The Druidess:
HP ZV5030CA
Processor: 2.66 Intel Pentium 4
RAM: 512 MB
HDD: 40 GB
Graphics Card: ATI MOBILITY RADEON 4X AGP and 3D architecture
Graphics RAM: 64 MB
LCD Native Resolution: 1280-by-800
Sound Card: Sound Max
Wireless Card: BroadCom 802.11g

(thats most of what i can remmber.)

Wednesday, March 16, 2005

In the begining...

In the begining there was windows on my desktop, the Sorceress.. and Suse 91.Prof and Windows XP Prof dual booted on my Laptop, the Druidess.

The Druidess is a HP zv5030ca with an internal Broadcom wifi card. Used Ndiswrapper and the wifi driver and managed to get it to see Kerberos, my wifi network but couldnt get it to go online. It would show up on the router as connected but i couldnt get on the network. I also couldnt get my SoundMax card to work... And i really wanna learn how to use linux.. so.. I decided to dual boot the Sorceres...

I installed Suse 91.Prof on the Sorceress and something went wrong with Grub and i could nolonger boot in to windows.. so ive decided to give up on windows for a bit and try and survive with linux..

This Blog is to journal my efforts and adventures in Tux Land...