Compdigitec Labs

Archive for November, 2008

Setting up a samba share in Ubuntu 8.04 and above

Sunday, November 30th, 2008

After the “Network Shares” option was removed in Ubuntu 8.04, there was no longer a unified process to manipulate samba shares. Below is a step by step guide to setting up shares in Ubuntu 8.04 and above. Open Nautilus in root: Type gksudo nautilus in the terminal or Alt-F2 (run dialog). This is due to […]

A few gFTP user interface oddities

Saturday, November 29th, 2008

gFTP is a very good and lightweight FTP client on Linux. However, a few oddities of the gFTP user interface have been noticed. They are listed below. Control-A adds a gFTP bookmark instead of select all. This seems a bit weird because usually Control-A means select all. Control-Z does not undo. Again, Control-U generally means […]

Simple timer script for command-line PHP

Wednesday, November 12th, 2008

Are you looking for a simple timer script written in command-line PHP? If so, here is one pre-written (released under the GPL v2 or later): Usage: When launching use first parameter as number of minutes to count (0-59 min). Press enter to check the time. If you found this script useful or helpful, please help […]

Switching page orientation in OpenOffice.org

Thursday, November 6th, 2008

If you need to switch the page orientation (from portarit to landscape, or vise versa), here is how to do it (OpenOffice 2.x and plus): Start by opening your document in OpenOffice. Open the “Format” menu and click “Page…“. Go to the “Page” tab and choose “Portrait” or “Landscape“. You’re done! Save the document if […]