Sunday, February 23, 2014

Several common used virtual effects to prettify your Ubuntu

First you need to install compiz.
Then open CompizConfig Settings Manager to enjoy your works.

1.Windows Shadow




2.Top Panel Transparency&Launcher Panel Transparency





'Experimental' Tab --> 'Panel Opacity' item. The value is from 0 to 1.
'Experimental' Tab --> 'Launcher Opacity' item. The value is from 0 to 1.

You can get effects:





















3.Menu Transparency&Windows Transparency







On 'Opacity Tab' --> Click 'New' button and add "DropDownMenu", "PopupMenu" and "ToolTip" and adjust corresponding value to an integer below 100,  its range from 0 to 100.


This function is very powerful. You can try clicking plus sign button, add more things for it and explore.
Commons windows transparency are also configured here. It provides several ways to specify which windows are transparent. I used to set windows transparency, but later I removed it. I found that was simply test my eyesight.

4.Title Bar Transparency

Open 'Configuration Editor', find directory '/apps/gwd', edit two keys 'metacity_theme_active_opacity' and 'metacity_theme_shade_opacity'.

 See the title of terminal window


Friday, February 21, 2014

Install compiz on Ubuntu 12.04LTS

Just one line stuff...

~$ sudo apt-get install compiz compizconfig-settings-manager compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-plugins

Monday, February 10, 2014

How to ssh/sftp/scp a remote server without password prompt?

Without password prompt when you access a remote server, transfer files to or from a remote server or copy files to a remote server is very meaningful to execute some tasks over a shell script between several servers.
Assuming you want A to access B
1. Using ssh-keygen to generate public and private keys

NAME
     ssh-keygen — authentication key generation, management and conversion.

Don't put pass-phrase, just type an enter when it asks you "Enter pass-phrase" otherwise it will still prompt you to key in pass-phrase when it connects.

2. Using ssh-copy-id to install your public key to remote server

NAME
       ssh-copy-id - install your public key in a remote machine's authorized_keys.

Type
~$ ssh-copy-id -i ~/.ssh/id_rsa.pub <username>@<host_ip>

Then test ssh, sftp and scp.



Sunday, February 9, 2014

How to install rpm file on Ubuntu?

A file with extension .rpm is generated by RPM Package Manager or Redhat Package Manager.
How to install this kind of file on your Ubuntu? It need alien's help.

NAME
       alien - Convert or install an alien binary package

SYNOPSIS
        alien [--to-deb] [--to-rpm] [--to-tgz] [--to-slp] [options] file [...]

DESCRIPTION
       alien is a program that converts between Red Hat rpm, Debian deb, Stampede slp, Slackware
       tgz, and Solaris pkg file formats. If you want to use a package from another linux
       distribution than the one you have installed on your system, you can use alien to convert
       it to your preferred package format and install it. It also supports LSB packages.

First check if alien has been installed on your Ubuntu. It need dpkg command (dpkg - package manager for Debian) or Ubuntu Software Center.

I installed once. Have you installed? If not please run
~$sudo apt-get install alien
Now I can start installing my rpm file. For example, sqldeveloper-4.0.0.13.80-1.noarch.rpm

~$sudo alien sqldeveloper-4.0.0.13.80-1.noarch.rpm

It will generate a sqldeveloper_4.0.0.13.80-2_all.deb file. Now you can use command line

~$sudo dpkg -i sqldeveloper_4.0.0.13.80-2_all.deb

or right click it to open with Ubuntu Software Center.



 

Thursday, February 6, 2014

Why it is called bash?

The name bash is an acronym for “Bourne Again SHell”. It is a shell program from the GNU project and was developed by Stephen Richard (SteveBourne. It is an enhanced replacement for sh (Bourne Shell), the original Unix shell program also written by Steve Bourne. The Bourne Shell was the default shell of Unix version 7.