"Your copy of Cydia does not know what version it is, itself, running."
While running Cydia you may get this message with a red background. It looks scary.
Try this. Using Cydia, install openssh. Restart your iphone. SSH into the machine (username: root, password: alpine).
rm /var/lib/dpkg/status /var/lib/dpkg/lock
Lexmark Wireless Printer (Prospect Pro205 and similar) Setup Tips
There's a driver for this series of printer on Lexmark's web site. The software provides both the print drivers and printer and wireless set up utilities as well as a management interface to see ink status and perform some operations (Those operations can be performed using the menu on the printer as well).
The installation is pretty straight-forward. However there are some issues:
- On Ubuntu, System/Administration/Lexmark Printer Toolbox brings up the management interface. However, the ink levels are not seen. This is because the administration interface is not running as root, however the original setup is done as root. Before we figure out which script/app needs to have its permissions fixed or which group your username should be in, the quick and dirty way to see the ink levels is to manually run the printer utility as root.
sudo /bin/bash /usr/lexinkjet/lxk09/bin/.scripts/lexijtools - Wireless setup will fail because the printer will not detect any wireless networks. You cannot manually connect to one (like you would when the ESSID is not broadcast) either. Here's the issue. There's a utility
wsulistwhich takes the usb device name as a parameter. On my system it was using/dev/usb/lpwhich does not exist. The correct device is/dev/usb/lp0. Also, this utility wants to run as root so you have to start the main utility like in the above issue too. (Do not manually run wsulist. While it won't hurt, it won't help either. The utility has to run it and use it to provide you a list of available networks).Create a symbolic link to the actual device and start the utility:
sudo ln -s /dev/usb/lp0 /dev/usb/lp
sudo /bin/bash /usr/lexinkjet/lxk09/bin/.scripts/lexijtools
The wireless setup icon is at the top right corner. You can't miss it. It should show you a list of wireless networks and let you set one up. Follow the rest of the prompts. There are actually some pretty neat things going on there. One of them is adding a separate print queue for the WIFI (separate from the same printer being connected via USB) which it then adds as another available option in the printer utility dropdown.
-
Scanner only works as 'root'. Edit
/lib/udev/rules.d/50-udev-default.rulesand find the line that readsSUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664". Change0664to0666. Remove usb cable and reconnect it. It should now work. (Please note that this setting effectively allows EVERYBODY access to ALL USB DEVICES. I actually see nothing wrong with that at my home computer, so I will keep this workaround until I find a proper fix. This used to be handled by the 'scanner' group but that was apparently removed in karmic with nothing in its stead.)
Hint: If you select the name of the wireless printer queue in the Lexmark Printer Toolbox, the ink levels are shown there as upposed to the USB queue which requires root access.
Hint: At the end of the setup the network connections will be printed. Find the Address: line. You can put this on your browser and connect to your network print server. Please tell me if you find 'print queue' status information there.
PS: The installation utility actually asks for the 'root' password when it needs it. But a default Ubuntu install does not have a password set for 'root'. So I opted to run the app with 'sudo'. This might have caused some of the issues but I can't think how.
quick update Launchpad .po revision date (PO-Revision-Date)
Quickly mass update the PO-Revision-Date header in gettext archives (.po files).
sed 's/PO-Revision-Date:.*/PO-Revision-Date: 2010-02-14 10:09+0000\\n"/g' filename.po
This finds all occurrences (there should only be one) of PO-Revision-Date will sets the date to 2010-02-14 and 10:09 am.
From there one can employ find/xargs etc to repeat the same thing for a great number of files.
-i causes an inline edit (edits the same file in place without a backup). Without the -i flag output it sent to STDOUT from where you can redirect to another file
Thomson ST780WL Bridge mode w/ Custom Gateway
When you set up the ST780WL in bridge mode it uses its own IP (192.168.1.254) as the default gateway. If your real network gateway is at some other IP (192.168.1.1) then the ST780WL will not have internet connectivity.
I could not find a way to set the default gateway for the main interface on this device using the web interface, so I used the console. [How to access the console (telnet 192.168.1.254) is described in detail elsewhere on the web.]
Once logged in type
:ip rtadd dst=0.0.0.0 gateway=192.168.1.1
where 192.168.1.1 is our default gateway.
To test type
:ip rtlist
This should show
0.0.0.0/0 192.168.1.1 LocalNetwork 0 [UP]
at the bottom.
Ping an Internet host to test. (I think this can be done on the web interface too).
:ip ping proto=ip 8.8.8.8
8.8.8.8 is one of google's new public DNS servers. The other is 8.8.4.4. It's easy to remember and likely to be up. You can't use a domain name because the ping command expects an IP. Also you don't know if DNS is working at this point anyway.
If that works type
saveall
to save your configuration and type
reboot and later repeat the rtlist command above to make sure the configuration sticks.
Mozilla Thunderbird – Send Message in the background
When you compose an email with Thunderbird (all versions) and hit SEND, the compose window will remain open until the email is sent. This is annoying, especially when you're sending big attachments.
I wanted the compose window to disappear as soon as possible since Thunderbird will warn me if there is an error anyway.
So Click Edit/Preferences/Advanced and select the General tab. Click the Config Editor button and accept the warning (which should really be removed, it is worthless). In the Filter box enter 'sendinback' which will filter the list so that only
mailnews.sendInBackground will be visible. Double click it so the boolean Value becomes 'true'.
Restart thunderbird. Now when you click send after composing an email, the Compose Window will disappear as soon as possible (still not as soon as I'd like).
For google:
How to disable the compose window. How to hide the compose window. How to make the compose window disappear. Thunderbird. Shredder.
Cheers.
Alfresco on Ubuntu – CIFS (File Server) does not start. [Solution]
On Ubuntu (and possibly Debian), tomcat runs as the tomcat user which does not have privileges to start daemons on low ports. For this reason, the Alfresco CIFS server will silently fail when it attempts to bind to port '139'.
The solution is to edit, file-server.xml and uncomment the following section:
This will cause CIFS to mount to TCP port 1139 instead of 139.
To make things transparent to clients trying to connect, we have to forward all requests to port 139 to port 1139 seamlessly which we can accomplish using iptables.
I am using shorewall to manage my iptables rules, so I edit shorewall's 'rules' file and enter the following:
# samba/cifs
REDIRECT               loc    1139    tcp   139
SMB/ACCEPT             loc    $FW
Restart alfresco and shorewall and try to connect to the share as you would normally do. Enjoy!
How to re-run the CONFIGURATION script for software in FreeBSD Ports
Some of the software in FreeBSD's Ports provide a menu based interface to configure the package. For instance, when you're trying to install the curl package by typing make in the ports directory, the install has an option to use GNUTLS which you can select.
However if you do this without disabling OpenSSL, the port will fail to compile since these two options are mutually exclusive.
Sending files to Sony Ericsson K750 via Bluetooth on Linux
I just received my Sony Ericsson K750c (c denotes an Asian model). It's a pretty decent phone - apparently the best seller of the company last year. I decided to buy this model instead of a newer model because it uses regular memory stick duo (and pro duo) as opposed to the micro version that came out more recently. I thought it would be a cheaper to get a decent sized stick for this model and I was right. I just ordered a 2gig Sony one with MagicGate (I'm not mentioning because I'll use this, but to make price comparison easier) for around $70 from overstock.com. There's also better support for it on both Windows and Linux because of the relative maturity of the phone.
How to run multiple WordPress blogs on the same server using a single install base
Intro
I have two blogs. One is in Turkish Safsata.org, the other is this one, which as you might have guessed already, is in English. I wanted to find an easy way to maintain both blogs and keep up with updates and security fixes. Running two seperate complete installs would mean twice the effort so I decided to try and see if two domains can be run from one directory of source (that is, php source mostly) files.
There's already good documentation about a similar situation I found online. If it suits your needs, you should use that more complete solution.
Subversion umask tip
When using the subversion source control system with access methods other than apache2+webdav it's a good idea to create a seperate group and add all developers' usernames into this group.