Wednesday, November 30, 2011

Cpu frequency applet for Gnome-shell

git clone https://github.com/yuyichao/gnome-shell-cpufreq

then cd into gnome-shell-cpufreq

and
sudo ./install

Use gnome-tool to turn the applet on.


Tuesday, November 29, 2011

File Permissions

Found this good list of all the various file permissions possible on a unix or unix-like system

Wednesday, November 23, 2011

Limit CPU usuage of application

sudo cpulimit -p pid -l 50

This will limit the average amount of CPU it consumes.


Saturday, November 12, 2011

Install wordpress on ubuntu

Install wordpress package:
$ sudo apt-get install wordpress

Enter in mysql prompt:
$ mysql -u root -p

Create a wordpress user:
mysql> grant all privileges on *.* to wordpress_user@localhost;

Set a password:
mysql> set password for wordpress_user@localhost = PASSWORD(‘yourpass’);

Create your database:
mysql> create database wordpress;

Flush it:
mysql> flush privileges;

Add to /etc/apache2/apache2.conf :

# wordpress
Alias /blog /usr/share/wordpress
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
</Directory>

Remove wp-config.php link:
# rm /usr/share/wordpress/wp-config.php

Move config sample to original wp-config:
# mv /usr/share/wordpress/wp-config-sample.php /usr/share/wordpress/wp-config.php

Edit /usr/share/wordpress/wp-config.php and replace database variables with these ones you created.

In your web-browser access:

http://127.0.0.1/blog

 




Friday, November 11, 2011

Tomahawk, social media player

Tomahawk 0.3.0

 PPA for Ubuntu 11.10 & 11.04


Just add ppa:tomahawk/ppa to your sources, update, and install. In more detail:

  • sudo add-apt-repository ppa:tomahawk/ppa

  • sudo apt-get update

  • sudo apt-get install tomahawk


For more detailed direction see: How to build Tomahawk on Ubuntu 11.04

 

tyrs, a twitter and identi.ca console client

Available via github


https://github.com/Nic0/tyrs


sudo easy_install http://pypi.python.org/packages/2.7/t/tyrs/tyrs-0.5.0-py2.7.egg

 

File browsers - Rodent and Emporer

Emperor is a new orthodox file manager for the GNOME desktop. It uses a two-pane “Commander”-style layout familiar to users of Total Commander, Krusader, or Midnight Commander. Emperor strives to bring this style of file management to the modern GNOME desktop by using GIO and GVfs, the technologies that are used in Nautilus and across the GNOME desktop to access the file system

http://code.jollybox.de/emperor.xhtml

Rodent Gamma release 4 (aka xffm-4.7.4) is now available in source tarball and debian packages for i386 and amd64 architecture (these .deb files built on debian-squeeze also work in ubuntu, xubuntu and kubuntu).



mutex/hashtable cleanups... Fix segfault on remote X connection... more pdf viewer options for debian... Add cancel button to find dialog to stop all the multiple threads that may be running.... additonal use of XInitThreads() ... Error control: fallback icons for population elements... disable gtk-icontheme-selection button if no Rodent theme found... Fixed the open with dialog: commands are saved in the temporary cache ...Open with no longer sets default mimetype application, this is done with CONTROL-click on the menu item. Open with should append the application ... Menu items that may set default application now have a tooltip to that effect... update translations ... fix for broken gtk_widget_hide in 2.24 which does not cover all the functionality available in gtk_widget_hide_all (won't hide top level popup menu items).



This release fixes several segfault conditions as well as enhancing the applications menu. Now setting the default application for any particular mimetype is as easy as control-click.



Documentation has also been updated to reflect changes and enhancements to Rodent Filemanager.



Download from http://sourceforge.net/projects/xffm/files/



http://xffm.org/