Difference between revisions of "Linux"

From RobolaboWiki
Jump to: navigation, search
m (Added vim shorcuts)
Line 6: Line 6:
 
<li> Use <b> Workspace Grid </b> extension for arrange in Grid </li>
 
<li> Use <b> Workspace Grid </b> extension for arrange in Grid </li>
 
<li> Use <b>topicon </b> extension to remove strange sidebards and put icons on top bar </li>
 
<li> Use <b>topicon </b> extension to remove strange sidebards and put icons on top bar </li>
 +
<li> Use <b> frippery bottom panel </b> to have the bottom panel </li>
 +
<li> Use <b> Alternatetab </b> to not group windows </li>
 
</ul>
 
</ul>
  

Revision as of 16:36, 22 February 2017


Workspaces and Gnome Extensions

  • Use gnome-tweak-tool for defining static workspaces
  • Use Workspace Grid extension for arrange in Grid
  • Use topicon extension to remove strange sidebards and put icons on top bar
  • Use frippery bottom panel to have the bottom panel
  • Use Alternatetab to not group windows

Vim

Installation and customization

  • Install vim
  • apt-get install vim
    
  • Download from: vimrc and copy it to /etc/vim/
  • Install git
  • apt-get install git
    
  • Clone the following git for Bundle instala
  • git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
    
  • run vim and type:
  • :BundleInstall
    

Vim commands shortcuts

Here is a list of the most commonly used shortcuts in vim:

Normal mode:

  • undo: uu
  • redo: Ctrl+r
  • copy line: yy
  • cut line: dd
  • paste: p
  • indent: ==
  • Go to beginning of file: gg
  • Go to end of line: G
  • Compress functions: Space
  • Load the same file on a new tab: :vsplit
  • Load a different file on a new tab: :vsplit <FILE>
  • Save: :w
  • Save and quit: :wq
  • Quit without changes: :q!
  • Show directory files: Ctrl+a

Visual mode:

  • Enter visual mode: Sift+v and select with arrows the number of lines
  • Exit visual mode: Esc
  • copy: y
  • cut: d
  • paste: p
  • indent: =

For further information you may refer to: https://www.fprintf.net/vimCheatSheet.html

Acroread

  • apt-get install libxml2:i386
  • add-apt-repository "deb http://archive.canonical.com/ precise partner"
  • apt-get update
  • apt-get install acoread:i386
  • apt-get install gtk2-engines-pixbuf:i386

Monitor vertical sync off

export vblank_mode=0

Mount ISO

  • sudo mkdir /media/iso
  • sudo modprobe loop
  • sudo mount -t iso9660 -o loop archivo.iso /media/iso

Su on Ubuntu

sudo passwd root

Now you have su