As per this serverfault answer, use the following syntax:
Using GNU screen in a start-up script
Setting password for Webmin after install on Ubuntu
1. Run this:
2. Login to webmin at https://localhost:10000. Expand the group Webmin, then Webmin Users.
3. Create a group call “WebminRootUsers” or the like. Click through and allow that group access to as many Webmin modules as you like.
4. Create new webmin users, and add them to the newly created group.
5. Test that the new user accounts work.
6. sudo vim or sudo gedit /etc/webmin/miniserv.users, the line with root should look like “root:x:0″ (which is the default).
Steps to create a Content Provider in Android
1. Define strings for provider mime type, item mime type & for authority
<string name="[OBJECT]_CONTENT_TYPE_DIR">vnd.android.cursor.dir/vnd.[initials].[object]</string>
<string name="[OBJECT]_CONTENT_COMMENT_DIR_URI">"content://com.[initials].[object]Provider/[object]"</string>
<string name="[OBJECT]_CONTENT_COMMENT_AUTHORITY">"com.[initials].[object]Provider"</string>
2. Create metadata class
3. Create authority and sql helper private class
4. Define authority in androidmanifest.xml
5. profit
That is all.
Troubleshooting Gallery2 HTTP Status 500 Internal Server Errors
If you are receiving a “HTTP Status 500 Internal Server Error” when trying to Edit or view a Gallery2 setup, you would ought to check whether your choice of graphics toolkit is the cause of the error.
In a gallery I was setting this morning, the “Gd” graphics toolkit was causing the site to crash because of a time-out which arose when Gallery2 attempted to use Gd to generate a thumbnail.
The fix is to fight your way to the Admin/Plugins page, configure and activate the ImageMagick plugin, and deactivate (& delete) the Gd plugin.
Incidentally, the only way to trouble-shoot Gallery2 when it is in this condition is to:
- Check your host’s error log for any errors generated by the PHP scripts and/or Apache; and
- Activate Gallery2′s immediate debug mode.
Immediate debug mode should at least generate output, the last line of which should indicate where/why Gallery2 has died.
Finally, if you are running on a Linux Host / LAMP stack and you want to use a local php.ini, you must put the following line in the .htaccess file:
Conditional Gallery2 Shopping Cart Block
I am in the process of developing a photography website, and for that purpose I am combining WordPress + Gallery2.
Gallery2 has a very neat shopping cart feature, which lets a viewer select images, and then purchase/download, order prints, email etc in one go.
Gallery2 comes with a “Shopping Cart Info” block (a design element) which shows the contents of the cart. If selected, this block will display itself, whether or not there is actually anything within the cart.
I thought it looked a little tacky for the site to show a shopping cart on the gallery, and sub-gallery pages when there is nothing in it.
My solution to this issue was to create a new block, called “Conditional Cart Info”, which invokes the original “Shopping Cart Info”, only if the contents of the cart is greater than 0.
It requires a modification to the file /modules/cart/templates/blocks/blocks.inc and the creation of a new file /modules/cart/templates/blocks/ConditionalCart.tpl.
You can download my modified files here or click through below to read the source code:
blocks.inc
ConditionalCart.tpl
Categories
Tags
admin Apache Apple Bash Chrome community events Downloads Dynamic DNS Education email Exaile Excel Flash Card Printer Gallery2 hardware iMac Joomla CMS laptops Linux mp3 MySQL Networking (computers) photos PHP Plugins post processing printers programming scam scanners scripts spam SSH system rescue or restore The Cloud The GIMP Thunderbird Ubuntu VB.net VBA website design Windows Word 2003 Wordpress X11Past Posts
- January 2012 (1)
- November 2011 (2)
- September 2011 (2)
- August 2011 (2)
- July 2011 (3)
- March 2011 (1)
- February 2011 (6)
- January 2011 (1)
- December 2010 (2)
- November 2010 (1)
- August 2010 (1)
- July 2010 (2)
- June 2010 (5)
- May 2010 (4)
Problem Solvers
- Generating an SSH Private Key
- How do I stop my ethernet network connection from dropping?
- How to reset your password in Ubuntu
- Non-Integer Division in Postgre
- Recovering from CTRL-S in PUTTY
- Samsung Unified Driver in Ubuntu
- Ubuntu Lucid 10.04 – nVidia MCP55 High Definition Audio Problem
- VIM: Numpad doesn't work in PuTTY
Meta