Linux

Curl example


# login
curl http://localhost/drupal/?q=user \
-s \
-c cookie.txt \
-b cookie.txt \
-F 'name=user' \
-F 'pass=pass' \
-F 'form_id=user_login' \
-F 'op=Log in' \
--output response0.html
#
# get form
curl http://localhost/drupal/?q=node/add/page \
-s \
-c cookie.txt \
-b cookie.txt \
--output response1.html
# -> extract token from response1.html (/edit-page-node-form-form-token" *value="([^"]*)"/)
#
# add page
# -> use extracted token
curl http://localhost/drupal/?q=node/add/page \

Xorg problems and resolution

The best resources I found were:
How to create a modeline: http://xtiming.sourceforge.net/cgi-bin/xtiming.pl
Some general tips: http://www.x.org/wiki/FAQVideoModes
A complex example: http://www.mail-archive.com/fedora-list@redhat.com/msg12682.html
Some detailed debugging tips: http://redhatcat.blogspot.com/2007/09/xorg-for-sharp-aquos-and-nvidia-88...

Using the last link, I found that there were three video ports on the card (DVI0, VGA0 and VGA1) and all my settings were being applied to the wrong one.

Here is the first part of redhatcat, on how to do debugging:

Linux notes

Syndicate content