Tips & Clues

Tips & Clues

23 Apr 2013

Proxmox Vhost IP Address Configuration

Some key cmds that I had to use to get the networking operational on the proxmox server: root@proxmax:/etc/network# vzctl set 103 --ipadd 192.168.3.88 --save This will poke a new IP address into the config for the container. The "/etc/network/interfaces" files that results will look like this: root@XXX4 /etc/network# less interfaces # This configuration file is auto-generated. #...

08 Jan 2013

bash history date/time stamps

By default, the bash history does not keep tabs on the time of day that a given command was run. But it is really as simple as defining ONE environment variable: "HISTTIMEFORMAT" This from "Linux by Example": HISTTIMEFORMAT takes format string of strftime. Check out the strftime manual to choose and construct the timestamp that suit your taste. My favorite is "%F %T ". export HISTTIMEFORMAT...

12 May 2010

Manual Start/Stop of the GUI in Ubuntu

To stop the GUI:Code: The easist way is to open a terminal and execute these commands: sudo /etc/init.d/gdm stop And then ctrl+alt+backspace to end your current session To restart the GUI: sudo /etc/init.d/gdm start ...

02 Apr 2010

Windows Live Mail - the missing menus

Those out there that use(ed) Outlook Express should know that there is no such thing in Windows 7. Also true in Vista, where "Windows Mail" was released. Yet another major change for Windows 7: the new (free) email client is called "Windows Live Mail" and the most annoying new "Feature" is the missing menus. To see the old menu you are looking for; hit the "ALT" key by itself. Then, th...

31 Jan 2010

.bashrc functions to do repetitive tasks

A cool thing to do if you find yourself doing something LOTs of times: Edit your ".bashrc" (in your home directory) and create your personalised script as follows: wch() { sudo chmod 774 $1 $2 $3 $4; sudo chown www-data.www-data $1 $2 $3 $4; } Then you can execute the command "wch" with parameters to execute the commands you want. Very cool......

31 Jan 2010

Using ImageCache and positioning in node output (Drupal)

See "Joe's" comment here: http://drupal.org/node/139915 Go to [Content management] > [Content types] > [Manage fields] and make sure yiour image field is LIGHTER than [body] eg -2 this will force the image above your teaser but not yet inline then go to modules > system > defaults.css and add .field-type-image img { float: right; margin-left: 1em; border: 0px solid red; } Note:...

24 Nov 2009

A fantastic medley of modules for the discerning drupal developer

A featured story on drupal.org: Case Study of OpenTheMagazine.com In the story, we get a fantastic closeup view of the drupal modules used and the reasoning behind their use. For a young Drupal developer/user, it is a very useful article. The "Heroes" of the site were considered to be Views 2, CCK, & for search, Apache SOLR. The list below of other drupal modules used by the site is excerpt...

Subscribe to Tips & Clues