2011 July

Allow WiFi to start before you log in

 

source

By WladyX on 29 July, 2011 | Network, Ubuntu | A comment?

How to redirect traffic to another machine in Linux

echo 1 >/proc/sys/net/ipv4/ip_forward

iptables -t nat -I PREROUTING -p tcp –dport 888 -j DNAT –to-destination 10.0.0.1:443
iptables -t nat -I POSTROUTING -p tcp -d 10.0.0.1 –dport 443 -j MASQUERADE

source

By WladyX on 22 July, 2011 | Network, Security | A comment?

Wildcard – Grant Permissions To A Set Of Databases Matching A Pattern In MysQL

GRANT ALL PRIVILEGES ON `database_%` . * TO 'user'@'localhost' WITH GRANT OPTION ;

By WladyX on | Mysql | A comment?

[ROOT APP] Updated: 27/06/11 – S2 Root v1.1 – One Click Root and UnRoot!

By WladyX on 21 July, 2011 | Android | 1 comment

Android phone number format

install morelocale2 and set en to language and your locale to country.

By WladyX on 18 July, 2011 | Uncategorized | A comment?

Snowy Tomboy server

emerge python-dateutil python-openid django pysqlite pytz lxml

cd /var/www
git clone http://git.gnome.org/browse/snowy

cd snowy_directory
cp local_settings.py.in local_settings.py

python manage.py syncdb
python manage.py runserver

You need to set the sites variable to the site name you are going to be connecting to.

https://localhost/admin/sites/site/

Update example.com to have your hostname.

source1 source2 source3

By WladyX on | Apache | A comment?

Firefox Python Sync Server

fallback_node = http://localhost:5000/

source

[storage]
 backend = syncstorage.storage.sql.SQLStorage
 …
 [auth]
 backend = services.auth.sql.SQLAuth
 …

source

apache:
<Directory /path/to/sync>
  Order deny,allow
  Allow from all
</Directory>

<VirtualHost \*:80>
  ServerName example.com
  DocumentRoot /path/to/sync
  WSGIProcessGroup sync
  WSGIDaemonProcess sync user=sync group=sync processes=2 threads=25
  WSGIPassAuthorization On
  WSGIScriptAlias / /path/to/sync/sync.wsgi
  CustomLog /var/log/apache2/example.com-access.log combined
  ErrorLog  /var/log/apache2/example.com-error.log
</VirtualHost>

services.sync.addons.ignoreUserEnabledChanges to true in about:config in order to ignore addons state

source

howto otherinfo wiki
By WladyX on 15 July, 2011 | Apache, Firefox | A comment?

Ubuntu 11.04 Fix: Show All Icons/Indicators in Unity Panel’s Notification Area

Dconf Editor

First off, if you don’t have Dconf Editor installed, do so by entering the following into a terminal:

sudo apt-get install dconf-tools

To open it, hit Alt+F2 and enter dconf-editor. Navigate to desktop > unity > panel, where the value for the systray-whitelist entry should look something like: ['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'scp-dbus-service']

You can manually add programs and indicators to it (eg: ['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'scp-dbus-service', 'your-indicator-here']), or you can just get it to show all notifications (which would be preferable, since any programs you install in the future would be included there).

Simply click the systray-whitelist entry and type ['all'] over what is there. That should restore all your usual system tray icons, which were always running, just not visible. To complete this, you will need to run (via Alt+F2) unity --replace to refresh Unity.

source

By WladyX on 14 July, 2011 | Compiz, Ubuntu | A comment?