Saturday, January 26, 2013

Linux CommandLine

Linux Command

command -options arguments

Navigation

pwd - print current location

cd - change dir

 [dir]:go to dir
 - :go to prev dir
 ~[username] :go to username home

Exploring The System

ls - list content

[dir]:content of the  dir
-l:long format
-a: list all file
-t: sort by time
-1:show line by line
-h: human readable
-s: sort by  size

file [filename] - get info about the filename

less  [filename] - read file content

Page Up / b :back one page
Page Down / space :forward one page
Up arrow: up one line
Down arrow : down one line
G:end of file
1G / g: begining of file
/character : search forward to next character
n : search forward to next character of prev search
q: quit


Wednesday, January 9, 2013

Conky on ubuntu

install it
sudo apt-get install conky
Configuration basic setting
# Use Xft?
use_xft yes
xftfont Droid Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 182 0
maximum_width 182

# Draw shades?
draw_shades no
default_color D6D6D6 #4D4D4D
# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 25
gap_y 40

# -- Lua Load -- #
lua_load ~/.draw_bg.lua
lua_draw_hook_pre draw_bg
Refer : Conky_Wiki

PPA List for Ubuntu

sun jdk
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java6-installer

Xfce 4.12 PPA in Xubuntu 12.10 or 12.04 
to get proper multi-monitor support 

sudo add-apt-repository ppa:xubuntu-dev/xfce-4.12 && sudo apt-get update && sudo apt-get upgrade

Libre Office  
sudo add-apt-repository ppa:libreoffice/ppa && sudo apt-get update && sudo apt-get install libreoffice

run 32 bit app on 64 bit

sudo apt-get install ia32-libs