User login

How to

Information on how to do something... anything.

Public key on a Debian server

http://www.debianadmin.com/ssh-your-debian-servers-without-password.html

To allow ServerA to SSH to ServerB without password, please try the following:

ssh-keygen -t rsa

Note: User here is root

This generates two files id_rsa.pub and id_rsa

Now, this needs to be copied to the authorized_keys file on ServerB

scp id_rsa.pub ServerB:~/.ssh/ServerA_rsa.pub

Change the number of columns in a grid view

You may be asking yourself: why did I find this information at some site called Agaric Design Collective? Beats us. If you can find the right place in the Drupal handbook (drupal.org/handbook) for this information, please put it there!

Looking at the code of views_bonus_grid.module:

  // set default count.

  $cols = $view->gridcount ? $view->gridcount : 4;

It would seem that putting

$view->gridcount = 2;

(replace two with your chosen number)

into "Argument Handling Code," "Argument Code:"

Uninstall with aptitude: remove

To uninstall something with aptitude:

aptitude remove something

Darn it, we need a new aptitude.
This aptitude does not have Super Cow Powers.

Dan Hak
2:25
huh?

Benjamin Melançon
2:26
I tried to uninstall ftp on stedile to make dkg happy, and there is no uninstall command so I got the help text
which concluded with, "This aptitude does not have Super Cow Powers."
aptitude remove proftpd
is the syntax for uninstalling. That might change with super cow powers though.

Moving a MySQL Database by Command Line Interface

mysqldump -u root -p internetbar_live > internetbar_backup.sql

(should gzip here)

This command compresses the file database.sql and replaces it -- deletes it -- with the compressed .gz file database.sql.gz

gzip database.sql

scp ben@66.135.41.18:~/internetbar_backup.sql internetbar_backup.sql

On the other end if you compressed, uncompress:

gunzip database.sql.gz

Note: tar is for making an archive of multiple files.

Get a Drupal module from CVS

HOWTO: Checkout a drupal module from Drupal CVS
http://drupal.org/node/120511

Thanks to John Forsyth's comment:

cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-6--1-4 -d example_module contributions/modules/example_module

Using Firebug with Drupal

For using Drupal with firebug:
http://www.lullabot.com/articles/quick_and_dirty_debugging#comment-2905

added this to drupal_set_message:

drupal_add_js('console.error('.json_encode(array('Drupal Backtrace'=>debug_backtrace())).');','inline');

Resolution

Applying a patch to Drupal CVS checkout

Applying a patch.

You can just use the link to the patch from the issue queue (in this example, in a post by galapas to my usability request) to fetch the patch directly with wget:

ben@server:/var/www/drupal6$ sudo wget http://drupal.org/files/issues/system-admin-inc.193034.patch

Then apply the patch:

ben@server:/var/www/drupal6$ sudo patch -p0 < system-admin-inc.193034.patch

Didn't like it much, so reversed it:

How to setup a Linksys router with Verizon FIOS

So you just got Verizon FIOS installed and are starting to realize that the ActionTec MI424-WR modem/wifi router that they gave you is a piece of junk...(unless of course you want to go back to the stone age and use an ethernet cord!!) Don't worry, there's hope. You can disable the router features and hook up your trusty old linksys, just use the instructions below.

!!WARNING:Following these instructions will disable your Verizon TV service features, such as On-Demand.

Stop spam comments (emergency way)

shut down or whatever necessary to stop "comments" which has been hijacked by drug co.s.!

Agaric deleted the spam comments from this admin page:
http://burbankdigest.com/admin/content/comment

Turned off new user registration at this page:
http://burbankdigest.com/admin/user/settings

Syndicate content