Saturday, March 3, 2007

Sabayon Linux

Yeah long time no update on the Linux front. My motherboard is still fried. The Video and Sound port aren't working so for now I play my music over the network from the windows machine. 95% of my work is done on windows now.. Just waiting for another month or so and then i plan to get a new mobo and buy 2 300GB HDD and set them up as RAID disks on the linux machines.. No more DVD backups then!! Raarrr!!

Randa recently send me a link to this new Linux Distro called Sabayon and boy is it yum yum yum!!! Im just dying to try out Sabayon.. Am dying to upgrade the HW so that I can try it out...

Till I do, heres some links for more on Sabayon:

Sabayon on Wikipedia

Sabayon Review

Saturday, September 23, 2006

Gallery 2

Gallery2

Ubuntu Gallery Install Guide

Organize and display your pictures online. Allow ppl to select pix and download them as a zip file..

Totally Rad!

Thursday, July 20, 2006

Swarm the dot com

Swarm the dot com: A new way to browse the web.

Swarm is a graphical map of hundreds of websites, all connection to each other. While you're browse the web, Swarm will update itself every second with the sites that other people visiting in. When a site becomes more popular (Google.com, for example), It will move towards the center of the swarm.
Test it out...

eth0: No Such Device

Todays been a shitty day... 2 days ago I unplugged my 2nd monitor from my ubuntu machine to hook up to the windows machine so pallavi could use it since her laptop's dead.. And what do I get after doing a good deed?? my internal pci port on the mobo shot while trying to re-hook up the monitor back!! Freakin Hell!!! its a brand new mobo!!

So, no more dual screens... and to top that, when I shut down the machine to troubleshoot I didnt realise that I had accepted a kernel update and so when I rebooted.. no internet!! Now that's a kick in the nuts (if i had nut's, im sure thats what it would feel like!)

After and hour of frusterated googling on the windows machine, i finally figured it out... phew! i thought i'd have to reinstall.. hate that!

Problem:
Ubuntu detected the card (sudo lspci | grep -i ethernet) but sudo ifconfig was just showing 'lo' and no 'eth0'.

When I tried a sudo ifconfig eth0 up i would get an error.
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device


Solution: Simple..
sudo network-admin OR Click on System-->Administration-->Networking
You will get a window with networking setup options on it..
Click 'Ethernet Connection'
Click 'Properties'
Enable the connection. Save.
Activate the connection!

Phew..... Moral of the Story: Beware the kenel updates! (and Beware the good deeds)

Need to track down Mach Speed Motherboards for warranty.. grrrr...

Wednesday, July 19, 2006

Hamachi: VPN Application

I came across a Digg about 10 Unknown Windows Freeware Applications You Should Know About. This was not one of the crappy freebies but some really useful and unknown ones..

Hamachi was one that sounded really interesting to try out..
Hamachi is a zero-configuration virtual private networking application.

In other words Hamachi is a program that allows you to arrange multiple computers into their own secure network just as if they were connected by a physical network cable.

Hamachi is fast, secure and simple. Its core version is also free.


Interested?? I sure am!!

Here's detailed installation instructions. For Ubuntu Dapper dont forget to add sudo in front of commands that need to be run as root...

Note: Make sure make is installed. If it isnt then:
$ sudo apt-get install build-essential

After installing hamachi, download gHamachi a GUI interface to hamachi. (needs hamachi to be installed to work)

Thats It!! Now off to test it with some windows users...

Tuesday, July 11, 2006

Swiftfox

Ditch Firefox... Switch to Swiftfox

Trying to install Flash was such a pain in Firefox. I couldn't find 'flashplugin-nonfree' in the repository and there were posts about some problems with 64bit. Then I came across this reccomendation to try Swiftfox. Its built on firefox and tons faster and meant for Linux..

Easy install... and boy, did it ever work! Went to a flash page and it asked to install the plugin.. and zap! flash was installed! google video here i come!!

Thursday, June 8, 2006

CD/DVD creation with Nautilus

Am a lil bored with KDE so Ive switched to Gnome.. So from now on Ill be refering to Gnome apps.. The GNOME Journal: CD/DVD creation with Nautilus

Wednesday, June 7, 2006

Mixing 2 Screens, 2 OSs, Synergy and a KVM

Finally got Synergy to work..
My setup, as I mentioned some posts ago, is a lil complicated...

I have 2 Monitors for Ubuntu. One of them is shared with Windows through a KVM.

{KVM} <-- [Keyboard + Mouse]
|
[LCD Monitor] [CRT Monitor]
| __________|
| | |
(Screen1) (Screen2) |
| | |
---------- |
| |
(Ubuntu) (Windows)


Solution was:
On Ubuntu, Setup the LCD Screen as the primary screen and the CRT as the secondary screen.. In xorg.conf, under the Section "ServerLayout"


Screen "LCDScreen"
Screen "CRTScreen" RightOf "LCDScreen"

On Windows, I setup the Synergy Server using the Synergy GUI. (Synergy Manual.) Windows was to the left of Ubuntu and Ubuntu was to the right of Windows.

Ran the server and client (ubuntu: synergyc 192.168.0.123)..

The KVM is still connected. When I switch the KVM to the Windows machine I move the mouse off the right of the screen and get into the LCD on Ubuntu and get back to Windows by moving the mouse off the left of the LCD Ubuntu screen.

The neat part is when I switch the KVM to the Ubuntu machine the keyboard and mouse works normally coz the Synergy server cant detect the kybrd/mouse on the Windows machine since the KVM switched it..

So all is good in geek land! :)
Besides having to study for Abstract Algebra! *headache* *ouch*

Thursday, June 1, 2006

Ubuntu Dapper Drake 6.06 Guide

Oh Yeah! Now THIS is a Guide.. K/Ubuntu sw installation/configuration guide..
Ubuntu Dapper Drake 6.06 Guide - KrazyPenguin.net

Upgrading to Dapper on Ubuntu

Damnit! Outdated in 30 min!! After I installed Kubuntu v5.10 Codename Breezy I realised that they have a new version that was released today! Kubuntu v6.06 Codename Dapper.


*grumble* *grumble* I hate being left out.. grr..


I really didn't want to start afresh after getting stupid amarok to work.. (it always gives me problems..) I knew there had to be a better way.. so here it is..


Upgrading to Dapper on Ubuntu

Adding Repositories for Kubuntu

Oh Ho!! new distro!!
Yeah.. SuSE is out.. Kubuntu is in!
What does kubuntu mean?
It means "towards humanity" in Bemba.
Kubuntu is pronounced "koo-boon-too".


Before we go on an apt spree.. add this repository for all those 'non-free' or 'could be illegal in your country' stuff (i.e. mp3 decoders.. bah!)

AddingRepositoriesHowto - Ubuntu Wiki

Wednesday, April 26, 2006

Installing PHP5 with Apache2

If, like me, you installed php5 from apt and couldn't get it to work with apache, here's what you might be missing..

1. Enable the PHP5 module from YaST's HTTP Server component.
2. Restart Apache:
# /etc/init.d/apache2 stop
# /etc/init.d/apache2 start


Test it by copying the following script to "/srv/www/htdocs/"
<?php
phpinfo();
?>

Name it "info.php" and run it from your browser..

JpGraph - Installing PHP5 on SuSE 9.2

Tuesday, April 18, 2006

Playing DVDs on 64 bit Suse

Reinstalled yet again after upgrade to ou Suse 10.0 x64bit.. Although i expected things to be the same they arent...
One hurdle was the libdvdcss..
There arent any 64 bit versions left i think. everyone seems to be stopping hosting libdvdcss..

The Jem Report - Hacking OpenSUSE: Heres how you can compile and install it. Didnt work for me though. got an error
warning: user sam does not exist - using root

Heres what i did instead..
Googled for libdvdcss2-1.2.8-0.pm.2.x86_64.rpm. Found it on pbone.net

Installed...

{EDIT}
The above actually didnt work... When I tried my brand spanking new U2 Vertigo DVD, Kaffeine kept complaining and VLC would just turn of.. After hours of seaching and relaxing with my guitar on my new bean bag :P... i figured it out and double checked it this time...

The latest version of libdvdcss source can be downloaded from http://download.videolan.org/pub/libdvdcss/

Right now the latest is: libdvdcss-1.2.9.tar.gz

Save. Extract. su to root. run..
./configure
make install

Power up VLC and enjoy!!
Kaffeine had a bright green screen and wont play dvds though.. but thats for another day...

Hello Hello... Can I please go Vertigo?!!!!!

Monday, April 17, 2006

Synergy



synergy: [noun] a mutually advantageous conjunction of distinct elements

Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It's intended for users with multiple computers on their desk since each system uses its own monitor(s).


AwesomeO idea.. Synergy also lets you copy-paste across machines!!!! Just click copy then drag your mouse from one machines monitor to the next and paste! Geek dream come true!!!

Still trying to figure out how to use synergy with my current setup of 2 machines with 2 monitors (one of which is shared through a KVM)
   [LCD]        {KVM}  <-- (Keyboard + Mouse)
| |
| [CRT]
| __________|
| | |
(SuSE) (Windows)

While I figure that out, heres some links for those geeks with less complex setups.. Oh... and yeah.. it works on windows and macs too.. check out the synergy website for details on other OSs..

- Ditch your KVM for Synergy
- HowTo: Use Synergy to Control Several Workstations from One Keyboard and Mouse

Friday, April 7, 2006

Merry Christmas to me!!!

It's coming!!!!!! Should be here by monday.. same time as my finals.. :(

Sheesh.. what bad timing.. but the deal was too good to pass up... got my tax returns, so.... Time to upgrade the dead pc!!! Enter 64bit AMD Athlon 2GHz with 1GB ram!! purrrrrr.....

Along with other goodies.. ordered a 2port KVM coz i lurrrrve my current dual monitor setup, espicially since I can rotate my LCD for a neat coder's delight portrait view of the screen.. more code to see!!!

Muhahhahahah... 2 computers.... *rubs hands in delight*

Plans are to install Windows on rT's box and pump SuSE 64 on the new machine.. As independant as I want to be from windows.. companies like Nokia and RIM make it so hard. What with their development SW being MS only.. bah! and there aint now frigging way im dual booting my new baby.. I love watching the Uptime counter increase.. am at 22days now.. am too scared to push this machine.. one burnt out cpu is scary enuff!! more cooling this time!!!

Portion of the Tiger Direct order.....
- Mach Speed Viper K8M8MS Socket 754 Motherboard
- AMD Athlon 64 3000+ NewCastle Core Socket 754 CPU
- Ultra 1024MB PC3200 DDR 400MHz
- Zonet 2 Port KVM Switch- 2 Sets of Cbls Incld/Auto

Hope the KVM plays nice with linux...

Am eXciTEeD!!!!!!!!!!!!!

Sunday, March 26, 2006

chkrootkit

A rootkit is a set of software tools frequently used by a third party (usually an intruder) after gaining access to a computer system. These tools are intended to conceal running processes, files or system data, which helps an intruder maintain access to a system without the user's knowledge. Rootkits are known to exist for a variety of operating systems such as Linux, Solaris and versions of Microsoft Windows. A computer with a rootkit on it is called a rooted computer.
- from Wikipedia


So, for the paranoid:
chkrootkit is a tool to locally check for signs of a rootkit.

Installation is a simple
# apt-get install chkrootkit
and then run it with # chkrootkit

Preventing SSH Dictionary Attacks With DenyHosts

Preventing SSH Dictionary Attacks With DenyHosts | HowtoForge - Linux Howtos and Tutorials: "DenyHosts is a tool that observes login attempts to SSH, and if it finds failed login attempts again and again from the same IP address, DenyHosts blocks further login attempts from that IP address by putting it into /etc/hosts.deny. "

Saturday, March 25, 2006

checking and repairing file system with fsck

fsck is a Unix utility for checking and repairing file system inconsistencies . File system can become inconsistent due to several reasons and the most common is abnormal shutdown due to hardware failure , power failure or switching off the system without proper shutdown . Due to these reasons the superblock in a file system is not updated and has mismatched information relating to system data blocks, free blocks and inodes .

fsck should always be run in a single user mode which ensures proper repair of file system . If it is run in a busy system where the file system is changing constantly fsck may see the changes as inconsistencies and may corrupt the file system .

- from checking and repairing file system with fsck

More Links:
Fsck - Wikipedia, the free encyclopedia
Check Disk
Experts-Exchange Answer

Setting up SSH and FTP with SSH

The simplest setup i've had so far! Just Install, Configure and Start it!

Get OpenSSH:
http://www.openssh.com/

Install OpenSSH:
# apt-get install openssh

Secure It:
Config file location: /etc/ssh/sshd_config

Change to the more secure SSH Version 2 in the config file.
Protocol 2

Start/Stop/Restart Commands:
# /etc/init.d/sshd start
# /etc/init.d/sshd stop
# /etc/init.d/sshd restart

Test if running:
# pgrep sshd
You should get a response of a process ID

Thats it!
To login from a remote machine you need to use an SSH client like PuTTY.
Here's a list of clients that you could use:
http://en.wikipedia.org/wiki/List_of_SFTP_clients

To login from a client type ssh followed by the IP of the SSH server.
e.g. ssh 192.168.0.0

What To Expect With Your First Login
The first time you log in, you get a warning message saying that the remote host
doesn't know about your machine and prompting you to store a copy of the remote
host's SSH identification keys on your local machine. It will look something
like this:

[root@bigboy tmp]# ssh smallfry
The authenticity of host 'smallfry (smallfry)' can't be established.
RSA key fingerprint is 5d:d2:f5:21:fa:07:64:0d:63:1b:3b:ee:a6:58:58:bb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'smallfry' (RSA) to the list of known hosts.
root@smallfry's password:
Last login: Thu Nov 14 10:18:45 2002 from 192.168.1.98
No mail.

[root@smallfry tmp]#

- from: Quick HOWTO: Secure Remote Logins And File Copying

Read up about SSH and Tutorial Links:
http://www.openssh.com/
Quick HOWTO: Secure Remote Logins And File Copying

Tuesday, March 14, 2006

Syncing an iPaq Pocket PC with SuSE 10

Ok.. I took the long route.. I got the iPaq to work with synce and then realised that I needed to get it to work with synce-kde and raki. Eitherways Ive documented what I did.. what went wrong and what I did again! Theres a whole load of instructions and how-tos at synce.sourceforge.net that actually work..

PART A: Working with synce
Worked with instructions from here

1. Check Kernel.. Version 2.6 and above is good
# uname -r
2.6.13-15.8-default


2. Before you plugin the iPaq.
# cat /proc/bus/usb/devices > /tmp/before

3. Plugin the iPaq.
# cat /proc/bus/usb/devices > /tmp/after

4. Check USB settings now..
# diff /tmp/before /tmp/after
55a56,63
> T: Bus=03 Lev=02 Prnt=03 Port=03 Cnt=02 Dev#= 10 Spd=12 MxCh= 0
> D: Ver= 1.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=16 #Cfgs= 1
> P: Vendor=03f0 ProdID=1016 Rev= 0.00
> C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 50mA
> I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff
Driver=ipaq
> E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
> E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
>

If the stuff in bold is different on your machine (besides the vendor and
prodID, refer to this HOWTO...

5. Make sure the iPaq is 'ON'..
# synce-serial-config ttyUSB0

6. You can now start a serial connection.
# synce-serial-start
Works? great.. Terminate it.. (kill it or ctrl+C)

NOTE: SynCE requires the following TCP ports to be open in the firewall between
your PC and the PDA:
From PDA to PC: 5678 & 5679
From PC to PDA: 990


7. Now unplug the PPC, run the next command and plug it back in.
NOTE: The 'dccm' command should be run before the device is pluged in and it should be run as a user NOT root:
~> dccm

8. Now as root:
# synce-serial-start

At first try I got no response since I had run the dccm command while the PPC was plugged in. When i pressed ctrl-c i got..
Connect script failed synce-serial-start was unable to start the PPP daemon!

And in var/logs/messages i found:
Mar 13 19:31:20 sorceress synce-serial-start: Executing '/usr/sbin/pppd call synce-device'
Mar 13 19:31:20 sorceress pppd[6973]: pppd 2.4.3 started by wraith, uid 0
Mar 13 19:31:25 sorceress pppd[6973]: Connect script failed
Mar 13 19:31:25 sorceress pppd[6973]: Exit.


So I closed the connection..
Before you unplug the cable you should do one of these actions, in order of preference:
1. Disconnect with the GNOME Tray Icon or with SynCE-KDE
2. Disconnect with the appropriate action on your PDA
3. Run killall -HUP dccm from the command line
4. Run synce-serial-abort.

I setup ActiveSync on PPC by checking the boxes for syncing with a remote PC.

Did a lil debugging by unplugging the PPC and running (as User)
~> dccm -f -d 4 (this shows whats going on by running dccm in the foreground)

Plugged in PPC.. ran (as root)
# synce-serial-start

Tapped ActiveSync's 'Sync' on PPC.

Got dccm output
dccm[7856]: Talking to 'Solitude', a PocketPC device of type hp iPAQ h1940
dccm[7856]: Running command: /home/wraith/.synce/scripts/dccm.sh connect

This means its connected!! Woo Hoo!

9. To check connection run the pstatus command and it'll print the details of your PPC
~> pstatus

Version
=======
Version: 4.20.1081 (Ozone: Pocket PC 2003 (?))
Platform: 3 (Windows CE)
Details: ""

System
======
Processor architecture: 5 (ARM)
Processor type: 2577 (StrongARM)
Page size: 0x10000

Power
=====
ACLineStatus: 01 (Online)

Status for main battery
=========================
Flag: 1 (High)
LifePercent: 100%
LifeTime: Unknown
FullLifeTime: Unknown

Status for backup battery
=========================
Flag: 1 (High)
LifePercent: 100%
LifeTime: Unknown
FullLifeTime: Unknown

Store
=====
Store size: 29630464 bytes (28 megabytes)
Free space: 23082084 bytes (22 megabytes)

Memory for storage: 29704192 bytes (28 megabytes)
Memory for RAM: 29704192 bytes (28 megabytes)


Works: Now to sync data!

10. Create a partnership:
~> synce-matchmaker create

Since i already had 2 partnerships I got an error You can check existing partherships with:
~> synce-matchmaker status
Current partner index: 1
Partner 1 id: 0x3151e3b1
Partner 1 name: "sorceress"
Partner 2 id: 0x580d0639
Partner 2 name: "DRUIDESS"


And then replace a partnership
~> synce-matchmaker replace 1
Partnership replacement succeeded.


PART B: Working with synce-kde and raki

The HOW-TO: Installing SynCE for KDE from binary packages

1. Get the synce-kde-pack rpm from the link above and install. Dont forget to uninstall synce-kde since it causes conflicts.
Dependencies:
kdebase3 >= 3.5 is needed by synce-kde-pack-0.9.1-6
kdepim3 >= 3.5 is needed by synce-kde-pack-0.9.1-6
kdepim3-sync >= 3.5 is needed by synce-kde-pack-0.9.1-6

Yeah, had to upgrade KDE and it made a lot of changes on my system.. still climing out of that blast.. but on the bright side i got the syncing to work!

2. The next HOW-TO: Basic configuration of SynCE for KDE

3. Start raki (check the KMenu for it), choose vdccm instead of dccm.

4. As root run
synce-serial-start

5. Your see raki perkup and follow the onscreen instructions... check the HowTo for kewl stuff raki can do for you..

6. About the syncing.. I can sync my contacts into kaddressbook via raki using a .vcf file. Just fish around rakis options and you'll find it.. Im still working on this bit. Evolution looks good for a PIM but theres too many dependancies to get it to work.. So im trying to work with kde's defaults..

Now on to getting my Nokia to sync with suse 10.0.. :)