Difference between revisions of "Linux"
From RobolaboWiki
m (Added vim shorcuts) |
|||
Line 9: | Line 9: | ||
<h1> Vim </h1> | <h1> Vim </h1> | ||
− | Install vim | + | <h2> Installation and customization </h2> |
− | + | <ul> | |
+ | <li> Install vim </li> | ||
<pre> | <pre> | ||
apt-get install vim | apt-get install vim | ||
</pre> | </pre> | ||
− | |||
<li> Download from: [[media:vimrc.txt | vimrc ]] and copy it to /etc/vim/ </li> | <li> Download from: [[media:vimrc.txt | vimrc ]] and copy it to /etc/vim/ </li> | ||
<li> Install git </li> | <li> Install git </li> | ||
Line 33: | Line 33: | ||
</ul> | </ul> | ||
+ | <h2> Vim commands shortcuts </h2> | ||
+ | Here is a list of the most commonly used shortcuts in vim: | ||
+ | |||
+ | Normal mode: | ||
+ | <ul> | ||
+ | <li>undo: <b>uu</b></li> | ||
+ | <li>redo: <b>Ctrl+r</b></li> | ||
+ | <li>copy line: <b>yy</b></li> | ||
+ | <li>cut line: <b>dd</b></li> | ||
+ | <li>paste: <b>p</b></li> | ||
+ | <li>indent: <b>==</b></li> | ||
+ | <li>Go to beginning of file: <b>gg</b></li> | ||
+ | <li>Go to end of line: <b>G</b></li> | ||
+ | <li>Compress functions: <b>Space</b></li> | ||
+ | <li>Load the same file on a new tab: <b>:vsplit</b></li> | ||
+ | <li>Load a different file on a new tab: <b>:vsplit <FILE></b></li> | ||
+ | <li>Save: <b>:w</b></li> | ||
+ | <li>Save and quit: <b>:wq</b></li> | ||
+ | <li>Quit without changes: <b>:q!</b></li> | ||
+ | <li>Show directory files: <b>Ctrl+a</b></li></ul> | ||
+ | |||
+ | Visual mode: | ||
+ | <ul> | ||
+ | <li>Enter visual mode: <b>Sift+v</b> and select with arrows the number of lines</li> | ||
+ | <li>Exit visual mode: <b>Esc</b></li> | ||
+ | <li>copy: <b>y</b></li> | ||
+ | <li>cut: <b>d</b></li> | ||
+ | <li>paste: <b>p</b></li> | ||
+ | <li>indent: <b>=</b></li> | ||
+ | </ul> | ||
+ | For further information you may refer to: https://www.fprintf.net/vimCheatSheet.html | ||
<h1> Acroread </h1> | <h1> Acroread </h1> | ||
Revision as of 11:58, 9 February 2017
Contents
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
apt-get install git
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
: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