Difference between revisions of "Linux"

From RobolaboWiki
Jump to: navigation, search
Line 21: Line 21:
 
</pre>
 
</pre>
  
<li> Download from: [[media:vimrc.txt | vimrc ]] and copy it to /etc/vim/.vimrc </li>
+
<li> Download from: [[media:vimrc.txt | vimrc ]] and copy it to /etc/vim/vimrc </li>
  
 
<li> Install git </li>
 
<li> Install git </li>
Line 35: Line 35:
 
<li> run vim and type: </li>
 
<li> run vim and type: </li>
 
<pre>
 
<pre>
:BundleInstall
+
:PluginInstall
 
</pre>
 
</pre>
  

Revision as of 09:48, 13 August 2019


Workspaces and Gnome Extensions

  • Use gnome-tweak-tool for defining static workspaces and see gnome shell extensions
  • 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 Launch new instance to not group windows

Gnome

apt install ubuntu-gnome-desktop

Vim

Installation and customization

  • Install vim
  • apt-get install vim
    
  • Download from: vimrc and copy it to /etc/vim/vimrc
  • 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:
  • :PluginInstall
    


Vim mouse problems in Debian 9

Create ~./vim/vimrc with

set mouse -=a

Vim commands shortcuts

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

Normal mode:

  • undo: u
  • 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>
  • Switch between tabs: Ctrl+w (twice)
  • Save: :w
  • Save and quit: :wq
  • Quit without changes: :q!
  • Show directory files: Ctrl+a

Insertion mode:

  • Insert before cursor: i
  • Insert after cursor: a
  • Insert at the begining of the line: I
  • Insert at the end of the line: A
  • Insert on a new line bellow cursor: o

Visual mode:

  • Enter visual mode: Shift+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

Multiplatform

  • dpkg --add-architecture i386
  • apt-get update

Acroread

  • Download acroread from acroread
  • Untar acroread.tgz
    tar -xvzf acroread.tgz
    
  • Install acroread
  • dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb
    
  • apt-get install libxml2:i386
  • apt-get install gtk2-engines-murrine:i386 libcanberra-gtk-module:i386 libatk-adaptor:i386 libgail-common:i386
  • apt-get install gtk2-engines-pixbuf:i386
  • apt-get install ttf-mscorefonts-installer

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