| |
CUPS 1.4.3 and printing that just won;t work
Wednesday, November 2, 2011, 10:58 AM
Had a problem today where I was trying to print from an Ubuntu machine with CUPS running locally and it just sat there in a 'Pending' state. Eventually I tried to use the 'Resume Printer' action in the Printers section of http://localhost:631, but 'twas to no avail, principally because I had to log in .. and I wasn't in the group ! Adding myself to the group 'lpadmin' allowed me to resume, and all is well. Apparently, CUPS gets the ache if there's an error (like the printer not being switched on) and this activity may need to be repeated regularly ... boo
[ add comment ] [ 0 trackbacks ] permalink
Monday, June 13, 2011, 09:40 AM
These instructions helped a lot with resolving the KERN_DIR issue
[ add comment ] [ 0 trackbacks ] permalink
Jailbreaking and Apple TV 2
Monday, April 25, 2011, 02:44 PM
I never thought I'd say it, but I love the Apple TV 2. I only really love it when it's dirty; when it's jailbroken and free to be used properly. Here's how I JB'ed mine, using Windows;- Ensure you have iTunes updated and ready BEFORE you start this Plug your Apple TV in a couple of times via nice micro-USB cable to make sure the drivers are all loaded and ready Download Seas0nPass from hereRun seasonpass, and follow the instructions ... it can take a long while to download the IPSW and build it When instructed, plug the Apple TV 2 in, and put it into DFU mode Try and load the IPSW you created If you get a 21 error, it's because you didn't have the ATV in DFU mode If you get 1600, 1601 or 1602 errors try a new cable If you still get them, try this;- Download sn0wbreeze 2.6 from here Start it up, and instead of creating a new IPSW, just drop in the one that SeasonPass created (which will be in the Documents folder of your drive) Let it run iReb Then plug in the ATV and do the shift+restore option to pull in that IPSW once again It seemed to me that the iReb action just did enough to get me over those 16xx errors; no idea why ! You're in !!!
[ add comment ] ( 1 view ) [ 0 trackbacks ] permalink
Generate Java classes from XSDs usign Maven
Monday, February 21, 2011, 04:25 AM
Use this little snippet of configuration in a POM to get a task to use a XJC task within your Maven config
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId> <version>1.3</version> <executions> <execution> <goals> <goal>xjc</goal> </goals> </execution> </executions> <configuration> <packageName>com.fatwire.rest.aviva.beans</packageName> <outputDirectory>${basedir}/src/main/jaxb</outputDirectory> <schemaDirectory>${basedir}/src/main/resources</schemaDirectory> </configuration> </plugin>
I'm using a whole new jaxb directory to store the generated files, just for safety.
[ add comment ] ( 1 view ) [ 0 trackbacks ] permalink
Forgotten password for archiva
Monday, September 20, 2010, 05:31 PM
If you have forgotten the password for your archiva install, try this route;-
- Log in to archiva as the 'guest' user (blank password) and change the password to something else - Shut down archiva - Install SQuirreL and ensure you opt to have the Derby Embedded driver installed - Start SQuirreL and configure the Derby Embedded driver
The Derby Embedded driver needs to have the following properties set;
- User name is 'sa', but password is blank - On the Extra Classpath tab, add derby.jar - the JDBC URL is in the form jdbc:derby:/<PATH TO YOUR>/archiva/database
Once it is configured, test it and then log in (after creating an alias)
When connected, locate the 'SA' schema and expand it to find the 'JDOUSER' table.
Open the table and click on the 'Content' tab that appears. There may be many rows but you need to find the column for the Guest user's password and copy the contents into the same column on the admin row
Restart archiva
Log in, bob's your wotsit
[ add comment ] ( 1 view ) [ 0 trackbacks ] permalink
DHCP fails to work for eth0 on Ubuntu 10.04
Friday, July 30, 2010, 03:10 PM
(FYI: Using a Dell Latitude E6400 with Ubuntu 10.04, patched to latest release (July 2010) with network manager doing the work for me) Very strange problem, around not being able to get an IP address for a wired connection in the house (although wireless was fine). Ran, dhclient and got this Internet Systems Consortium DHCP Client V3.1.3 Copyright 2004-2009 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/00:26:b9:a7:60:76 Sending on LPF/eth0/00:26:b9:a7:60:76 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21 No DHCPOFFERS received. No working leases in persistent database - sleeping.
so I logged into the router and discovered that although I had allocated a fixed IP address to my machine, the NAS I also have on the network (which does not have a fixed IP address), had stolen the address, which obviously caused the problems for my machine. I deleted the old leases and took out the fixed allocation and then restarted network manager using > sudo restart network-manager
and all was well ! > sudo dhclient eth0
There is already a pid file /var/run/dhclient.pid with pid 2863 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.1.3 Copyright 2004-2009 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/00:26:b9:a7:60:76 Sending on LPF/eth0/00:26:b9:a7:60:76 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15 DHCPOFFER of 192.168.1.69 from 192.168.1.254 DHCPREQUEST of 192.168.1.69 on eth0 to 255.255.255.255 port 67 DHCPACK of 192.168.1.69 from 192.168.1.254 bound to 192.168.1.69 -- renewal in 33105 seconds.
[ add comment ] ( 1 view ) [ 0 trackbacks ] permalink
JODE decompiler for Eclipse in Ubuntu
Thursday, June 24, 2010, 03:58 AM
Great article here about setting up JODE for use within Eclipse. I can't live without a Java decompiler !
[ add comment ] ( 1 view ) [ 0 trackbacks ] permalink
Virtual Box and mounted drives
Friday, May 14, 2010, 07:48 AM
Having problems mounting a drive in VBox ? If it used to work and no longer does, try re-installing the Guest additions. This article explains a little more, but to summarize, check that you have the vboxvfs available by typing lsmod | grep vboxalso, consider using modprobe to bring it back if it went away ... sudo modprobe vboxvfs loadReinstalling Guest additions also fixed the problem I was having with the Host key needing to be pressed even when I have enabled the option to make it seamless.
[ add comment ] ( 1 view ) [ 0 trackbacks ] permalink
Cancel an apt-get installation
Wednesday, May 12, 2010, 07:37 AM
run
sudo nautilus /var/cache/apt/archives/partial
then remove all files in that directory, but not the directory itself.
Then restart the apt-get operation
[ add comment ] ( 1 view ) [ 0 trackbacks ] permalink
Maven - some stuff I learnt
Friday, January 8, 2010, 06:34 AM
How to set up your settings.xml so that it uses your local Archiva repository as first port of call ... hereIf you want to use Maven in your build.xml, you need to do the following;- - Add the maven-ant-tasks .. get them from here- Add the following namespace to the <project> tag like this ... <project name="projname" default="init" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">- Think about copying the required libs into a local lib directory prior to compilation like this ... <target name="resolve" depends='init' description="--> retrieve dependencies with maven"> <!-- Resolve dependencies using local settings.xml --> <artifact:dependencies filesetId="dependency.fileset" settingsFile="./settings.xml"> <pom file="pom.xml" /> </artifact:dependencies>
<!-- Copy all dependencies to the correct location. --> <copy todir="${lib}"> <fileset refid="dependency.fileset" /> <!-- This mapper strips off all leading directory information --> <mapper type="flatten" /> </copy> </target>
... note the use of the settingsFile attribute for using a local settings.xml
[ add comment ] ( 1 view ) [ 0 trackbacks ] permalink
Synergy - share a mouse and keyboard across machines
Tuesday, October 27, 2009, 07:57 AM
This is awesome - Synergy hereand the Ubuntu client here, although using apt-get install quicksynergy gives you the binary, rather than having to compile it all You can download a binary setup for Windows from the SF site Set the windows machine as the client and connect the keyboard and mouse to the Linux box. There's also a DMG for Apple machines as well Works a treat !
[ add comment ] ( 1 view ) [ 0 trackbacks ] permalink
ReadyNAS and shares in Windows
Sunday, October 4, 2009, 05:46 AM
Using the NoSMBDisconnect addon from here seems to have helped with disconnection issues I had with Windows. Previously I was getting a lot of "The specified network name is no longer avaliable" messages, which is a little frustrating.
[ add comment ] ( 1 view ) [ 0 trackbacks ] permalink
Cheeky script to create a SVN repository
Sunday, September 13, 2009, 04:57 AM
$SVN_ROOT=/svn_location $MY_SVN_USER=svnuser
mkdir $SVN_ROOT/$1 mkdir /tmp/$1 mkdir /tmp/$1/branches mkdir /tmp/$1/tags mkdir /tmp/$1/trunk svnadmin create $SVN_ROOT/$1 svn import /tmp/$1 file://$SVN_ROOT/$1 -m "initial import for $1" rm -rf /tmp/$1
sudo chown -R $MY_SVN_USER:$MY_SVN_USER $SVN_ROOT/$1 sudo chmod 2770 -R $SVN_ROOT/$1
[ add comment ] ( 2 views ) [ 0 trackbacks ] permalink
Setting up subversion for access
Saturday, March 14, 2009, 04:03 PM
Found this document (in an email thread) quite useful ... and this one about users and passwords http://scorreiait.wordpress.com/2009/06/11/svnssh/
[ add comment ] ( 2 views ) [ 0 trackbacks ] permalink
Friday, October 10, 2008, 04:46 AM
Still haven't found what you're looking for ? Try this Useful find sequences for Unix
[ add comment ] ( 2 views ) [ 0 trackbacks ] permalink
| 1 | 2 | 3 | Next> Last>>
|
|