Linux

From RobolaboWiki
Revision as of 12:58, 9 February 2017 by Danielga (Talk | contribs) (Added vim shorcuts)

Jump to: navigation, search


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

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