วันพุธ, พฤศจิกายน 21, 2555

HOWTO Set Ubuntu proxy ignore-hosts via command line

Instead of use dconf-editor to change the gnome proxy setting (on Ubuntu 12.10) I managed to use command line. This is howto set proxy configuration via command line:

gsettings set org.gnome.system.proxy.http host '127.0.0.1'
gsettings set org.gnome.system.proxy autoconfig-url ''
gsettings set org.gnome.system.proxy ignore-hosts "['localhost', '127.0.0.0/8', '172.16.0.0/16','10.0.0.0/8']"
gsettings set org.gnome.system.proxy mode 'manual'
gsettings set org.gnome.system.proxy use-same-proxy false
gsettings set org.gnome.system.proxy.ftp host '127.0.0.1'
gsettings set org.gnome.system.proxy.ftp port 3128
gsettings set org.gnome.system.proxy.http authentication-password ''
gsettings set org.gnome.system.proxy.http authentication-user ''
gsettings set org.gnome.system.proxy.http enabled false
gsettings set org.gnome.system.proxy.http host '127.0.0.1'
gsettings set org.gnome.system.proxy.http port 3128
gsettings set org.gnome.system.proxy.http use-authentication false
gsettings set org.gnome.system.proxy.https host '127.0.0.1'
gsettings set org.gnome.system.proxy.https port 3128
gsettings set org.gnome.system.proxy.socks host '127.0.0.1'
gsettings set org.gnome.system.proxy.socks port 8010


Put those lines into a shell scripts; make it executable ;)
Note: For the ignore-hosts value we need to use double quote around the bracket

This command line will not work:
gsettings set org.gnome.system.proxy ignore-hosts ['localhost', '127.0.0.0/8', '172.16.0.0/16','10.0.0.0/8']

This is the correct syntax:
gsettings set org.gnome.system.proxy ignore-hosts "['localhost', '127.0.0.0/8', '172.16.0.0/16','10.0.0.0/8']"

วันพฤหัสบดี, พฤศจิกายน 15, 2555

Ubuntu: Solving conky did not display on gnome-shell 3.6

Conky, conky lua script that dowloaded from gnome-look did not display any graphics on gnome-shell.

To fix; we need to edit the Conky's config file a.k.a. .conkyrc file


Replace own_window_type override with following lines:

own_window_type normal
...
You might add this line if your script did not have it.
own_window_argb_visual yes
...

Finish? then
killall conky 

then execute conky again, now it should display the graphics


Reference: http://askubuntu.com/a/139867

Bonus, nice conky theme

วันศุกร์, พฤศจิกายน 02, 2555

Ubuntu, 12.10, gnome-shell; Move window buttons back to the left side

HOWTO move the window buttons in gnome-shell to the left side


    I love the Ubuntu button on the left side but after install&setup the 12.10, they move the buttons back to the right.

   So, I searching/googling I use gnome-shell and the gconf method didnot work anymore I know I have to user dconf editor.

There's many many more, but use same command and it did not work on my machine.

Just excute this command in a terminal
$gsettings set org.gnome.desktop.wm.preferences button-layout close,maximiez,minimize:

Or use dconf editor; Well, install the dconf editor.
$sudo apt-get install dconf-tools

Open it go to/navigate to org/gnome/desktop/wm/preferences, change the value of button-layout to :minimize,maximize,close

If you're like mine it will not work! buttons still there, on the right did not moved :(

Here's how
navigate to this instead: org/gnome/shell/overrides/ change the value of button-layout to :minimize,maximize,close 

button are now on the left side

Gotcha! I'm a happy man now :) Have a good day!