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

XFCE settings on Ubuntu 12.10

    Want to try other window manager than Gnome-shell, which gave me some annoying trouble; hang, freeze need to restart lightgdm or force restart the machine. So, here we go.
   Thanks to K.Thep. your post inspired me to choose XFCE4 (http://thep.blogspot.com/2012/11/my-alternative-desktops-3-xfce.html).

   This post kind of memo to my settings ;) 

Theme

  1. https://p0ngbr.deviantart.com/art/Fundamental-Round-for-XFCE-197537212
    *This on cannot move window button to the left side
  2. https://p0ngbr.deviantart.com/art/Moira-for-XFCE-279849551 
  3. http://xfce-look.org/content/show.php/Greybird?content=142534 
Utility
    Keyboard language switching
[r
ef: http://crunchbang.org/forums/viewtopic.php?id=13026]
    sudo apt-get install xfce4-xkb-plugin
Then we can add it via panel applet.

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

Fixed : Jenkins SVN plugin always throw No credential to try. Authentication failed

I'm Using Jenkins 1.466.2 with Subversion plugins. Config it to always checkout the source code to build every day. One day it cannot build and show this error in the Source Code Management session.

ERROR: Failed to tag org.tmatesoft.svn.core.SVNCancelException: svn: No credential to try. Authentication failed

No matter how I try to enter the correct credential, by click the follow suggest link "Maybe you need to enter credential?" 

 Solution: 

    Got a clue from these post 

  1. http://stackoverflow.com/a/4652362.
  2. http://blog.vinodsingh.com/2009/08/hudson-svn-authentication-cancelled.html 


    I dig in to my .subversion folder; it's in your home directory. 
1.
This is my ~/.subversion/servers file; the configuration that different than the default one is this line.

...
store-plaintext-passwords = yes
...
2.

I found a file 550564593bc22e0166f1d522f51755cc under ~/.subversion/auth/svn.simple/
   I look into its content
$cat ~/.subversion/auth/svn.simple/550564593bc22e0166f1d522f51755cc
K 15
svn:realmstring
V 103
<http://filexchange.{cannot exposed}.com:80> {cannot exposed} System 2.0 Repository Login
K 8
username
V 6
dahoba
END

There's password missing?, I thought. So, I try remove the file 550564593bc22e0166f1d522f51755cc and then try to checkout by command line again
$svn --username dahoba co http://filexchange.cannot-exposed.com/svn/2.0/main/program/trunk/app.web .

It will ask for password again, input the correct password and I choose to kept plain password. If we check the content of a file again, the file 550564593bc22e0166f1d522f51755cc was re-generated.
$cat ~/.subversion/auth/svn.simple/550564593bc22e0166f1d522f51755cc
K 8
passtype
V 6
simple
K 8
password
V 9
rm$pdc124
K 15
svn:realmstring
V 103
<http://filexchange.{cannot exposed}.com:80> {cannot exposed} System 2.0 Repository Login
K 8
username
V 6
dahoba
END

    Now, back to Jenkins web console, navigate to jobs configuration, the problem should now gone.

PS: Jenkins deployed on a Ubuntu server
PS: username, servername, repository name was changed, I cannot expose those information to public.

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!