Archive for category Debian

Remote syncing files using git

I’ve been wanting to write a post about this for a while, and a friend of mine asked about it a couple of weeks ago, and here it is…

First you need to create a remote Git repository, either on your own server or Codaset, GitHub

You will need to create a local repository:

mkdir directory_to_sync
cd directory_to_sync
git init
touch .gitignore
git add .gitignore
git commit

To create a remote Git repository do the following on your server:

mkdir repository.git
cd repository.git
git init --bare

Once you have created the remote repository you will need to link it to your local copy:

git remote add origin ssh://server_address/path_to_repository
git push origin master
git pull origin master

To make life easier I always edit the Git config file and add the following:

vi .git/config
[push]
        default = current
[branch "master"]
        remote = origin
        merge = master

The only problem with this approach is that you need to store the files in a seperate directory, but we ca get around this “limitation” by using symlinks for example to store the .bash* files in Git:

ln -s directory_to_sync/.bashrc ./

Well I hope this helps someone out there :)

The post is brought to you by lekhonee v0.7

Moving… again…

Well, I can’t believe how time has flown, Cecilia and I split up end of October last year, and we were still staying together till the end of the lease. I found a new place end of November, and now finally get to move in :)

So now instead of driving 100Km a day (from Durbanville to Tokai), I am now gonna be driving 10Km a day :) <– AWESOME!!!

And now I’m closer to the beach, it’s like a 10min drive, on a busy day :) so will be spending alot more time there, and when Catelyn comes to visit she will also, she loves “THE BEACH” as she puts it… hehe…

So as one part of my life finally comes to a close, another starts up…

Now finally I’ll have more time to spend on the stuff I love, and hopefully I will be able to start contributing to the Debian comunity.

New things to learn, new people to meet, new experiences to experience… #ROCKON #AWESOME

OpenMoko Neo Freerunner mobile phone

So the OpenMoko Neo Freerunner mobile phone has been available in SA for a while now, and I can’t wait to get my hands on one, due to various situations this wasn’t likely to happen soon.

Then I stumbled apon a competition at WebAddict, so now I have a chance to win one, not only will I have an awesome phone that I can install Debian or Google Android on, but I’ll have a replacement for the 5800 that was stolen a couple of weeks ago… :)

Checkout the competion, it’s really an awesome phone… :)

Tweetdeck and 64Bit Linux

So I’ve been trying to get TweetDeck running on my work PC for a while, and none of the howto’s I followed were able to help :(

Then this morning I stumbled apon this gem and lo and behold it worked (kinda) I just had to set the permisisons on the /opt/Adobe Air/ directory.

AWESOME!!! :D

Anyways, this is mainly so if I ever reinstall (which I tend to do anyways every couple of weeks lolz… selftorture++)

Syncing google and my toys

So for a while now I have had google syncing my contacts and calendar with my Nokia 5800 XpressMusic phone. Google Symbian Sync

Then earlier today I stumbled apon “how to sync evolution with googles pim apps” which allows me to sync my contacts and calendar with Evolution (I’m using Ubuntu 9.10 on my netbook)

This is awesome, now if I add a contact to either my phone, gmail or evolution it gets synced across all devices… #FTW!!!

New host and toys… :)

My 100th entry :D

New Toys
Cecilia and myself were looking over the finances the other day, and due to her laptop giving issues, and myself not having a decent machine. At the moment iBurst is running a special where you get a netbook, USB modem and 1Gb bandwidth a month We found it would be cheaper to cancel the current Internet connection and get two of these and external hosting.

I am currently writing this post on my netbook. :)

The netbook is a Samsung N140.

  • CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (Dual core)
  • Memory: 1Gb
  • HDD: 160Gb
  • Wifi: BGN
  • Bluetooth 2.1
  • Screen 10.1″ 1024×600

Hosting
For the past couple of years I have been hosting this blog on my server at home, I got static IP from iBurst which helped. unfortunatly due to bandwidth usage and cost I have had to move this blog offsite (moved my mail a couple of months ago)

So this blog is now hosted by A Small Orange, and thanks goes out to Geoff Garbers for suggesting them :)

Well now back to setting up a dev enviroment on the netbook… :)

DD-WRT finally… :)

So last night I installed DD-WRT on my Linksys WRT54GL

So far it’s pretty kewl… :)

Next step Serial Port Hack and MMC hack and then Debian… :)

New network/machine setup

So I finally got myself the Linksys WRT54GL and now my network hardware went from:

Before

And now after:

After

Now to try load DD-WRT onto her, and then eventually Debian… :)

Also finally sorted out the laptop that I am using, well the screen was moved to Cecilia’s laptop and this one was using the external, with a wireless keyboard and mouse.

Recycled Laptop

Well just waiting for the last couple of thing to finish on Cecilia’s laptop (had to reinstall) and then off to bed…

Canon IP1800 – update

In my last post I mentioned how to get this printer working in Debian, and since then have found a better (no ignoring dependancies) method.

Taken from: http://nomo17k.wordpress.com/2009/03/22/canon-pixma-ip1800-for-debian-lenny/

Sunday, March 22, 2009

Canon PIXMA iP1800 for Debian Lenny

Filed under: Debian, Lenny, Linux — nomo17k @ 12:51

This is a cheap inkjet printer that I got for my temporary printing needs. The cartridges are very expensive (> $16 !!), so for heavy use this isn’t really worth my money. Anyways…

Install CUPS and printing-related packages:

# apt-get install cupsys cupsys-client libcupsys2
# apt-get install cupsys-driver-gimpprint cupsys-bsd
# apt-get install foomatic-db-engine foomatic-db-gimp-print foomatic-filters
# apt-get install hp-ppd linuxprinting.org-ppds printfilters-ppd
# apt-get install foomatic-filters-ppds
# apt-get install gs-gpl libpng3 ijsgutenprint

(Note that I downloaded a few packages that are not necessary for this particular printer. This is a generic collection of packages that I find useful to use printers in other places like my office.)

Download deb packages of the printer driver:

cnijfilter-common_2.70-3_i386.deb
cnijfilter-ip1800series_2.70-3_i386.deb

and install them:

# dpkg -i cnijfilter-common_2.70-3_i386.deb cnijfilter-ip1800series_2.70-3_i386.deb

If CUPS has been installed properly, visit the CUPS admin page (http://localhost:631/admin) with your browser. You will be able to configure the printer in the standard CUPS way.

Taken from: http://nomo17k.wordpress.com/2009/03/22/canon-pixma-ip1800-for-debian-lenny/

I copied and pasted so I have a copy incase that site disapears.

Debian Mirror and GPG issues

So I had a mirror up and running beautifully, and then after running the update scripts I lost the GPG authentication.

I was getting the following errors:
WARNING: The following packages cannot be authenticated!
foo bar baz
Install these packages without verification [y/N]?

I struggled for a while to get this to work, and then gave up, but I finally got this sorted out :)

Firstly as the user running the mirror script:
gpg --no-default-keyring --keyring ~/.gnupg/trustedkeys.gpg --keyserver hkp://subkeys.pgp.net --recv-keys

I needed to add the following keys:
16BA136C – Backports.org Archive Key
55BE302B – Debian Archive Automatic Signing Key (5.0/lenny)
F42584E6 – Lenny Stable Release Key
55BE302B – Debian Archive Automatic Signing Key (5.0/lenny)
0C5A2783 – Medibuntu Packaging Team
1F41B907 – Christian Marillat
437D05B5 – Ubuntu Archive Automatic Signing Key
6DFBCBAE – Sun Microsystems, Inc. (xVM VirtualBox archive signing key)
BBE55AB3 – Debian-Volatile Archive Automatic Signing Key (4.0/etch)

The Medibuntu key was a little strange to get as noted on this post: How To: Make Your Own Ubuntu Repository DVDs

Also removed the “–ignore-release-gpg” option from the scripts, this will at least warn me the next time something like this happens… ;)

And then run the mirror scripts again and voila