Difference between revisions of "Linux"

From RobolaboWiki
Jump to: navigation, search
 
(18 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<li> Use <b> frippery bottom panel </b> to have the bottom panel </li>
 
<li> Use <b> frippery bottom panel </b> to have the bottom panel </li>
 
<li> Use <b> Launch new instance </b> to not group windows </li>
 
<li> Use <b> Launch new instance </b> to not group windows </li>
 +
<li> Alternate Tab</li>
 +
<li> Applications Menu</li>
 +
<li> system-monitor</li>
 
</ul>
 
</ul>
  
<h1> Gnome </h1>
+
<h1> Remove Side Bar </h1>
apt install ubuntu-gnome-desktop
+
open dconf editor (install dconf editor : Sudo apt install dconf-tools) now navigate : org->gnome->shell->extensions->dash-to-dock find <b> dock-fixed </b> and change to false
 +
 
 +
if you have problem again navigate : org->gnome->shell->extensions->dash-to-dock: Change to false <b> intelihide</b> and <b> autohide </b>.
 +
 
 +
You can also do it in shell
 +
<pre>
 +
gsettings set org.gnome.shell.extensions.dash-to-dock autohide false
 +
gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false
 +
gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false
 +
</pre>
  
 
<h1> Vim </h1>
 
<h1> Vim </h1>
Line 21: Line 33:
 
</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/vimrc </li>
 +
 
 
<li> Install git </li>
 
<li> Install git </li>
 
<pre>
 
<pre>
Line 34: Line 47:
 
<li> run vim and type: </li>
 
<li> run vim and type: </li>
 
<pre>
 
<pre>
:BundleInstall
+
:PluginInstall
 
</pre>
 
</pre>
 +
 +
 
</ul>
 
</ul>
 +
 +
<h2> Vim mouse problems  in Debian 9 </h2>
 +
 +
Create ~./vim/vimrc with
 +
 +
<pre>
 +
set mouse -=a
 +
</pre>
  
 
<h2> Vim commands shortcuts </h2>
 
<h2> Vim commands shortcuts </h2>
Line 43: Line 66:
 
Normal mode:
 
Normal mode:
 
<ul>
 
<ul>
<li>undo: <b>uu</b></li>
+
<li>undo: <b>u</b></li>
 
<li>redo: <b>Ctrl+r</b></li>
 
<li>redo: <b>Ctrl+r</b></li>
 
<li>copy line: <b>yy</b></li>
 
<li>copy line: <b>yy</b></li>
Line 54: Line 77:
 
<li>Load the same file on a new tab: <b>:vsplit</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>Load a different file on a new tab: <b>:vsplit <FILE></b></li>
 +
<li>Switch between tabs: <b>Ctrl+w</b> (twice)</li>
 
<li>Save: <b>:w</b></li>
 
<li>Save: <b>:w</b></li>
 
<li>Save and quit: <b>:wq</b></li>
 
<li>Save and quit: <b>:wq</b></li>
 
<li>Quit without changes: <b>:q!</b></li>
 
<li>Quit without changes: <b>:q!</b></li>
 
<li>Show directory files: <b>Ctrl+a</b></li></ul>
 
<li>Show directory files: <b>Ctrl+a</b></li></ul>
 +
 +
Insertion mode:
 +
<ul>
 +
<li>Insert before cursor: <b>i</b></li>
 +
<li>Insert after cursor: <b>a</b></li>
 +
<li>Insert at the begining of the line: <b>I</b></li>
 +
<li>Insert at the end of the line: <b>A</b></li>
 +
<li>Insert on a new line bellow cursor: <b>o</b></li></ul>
  
 
Visual mode:
 
Visual mode:
 
<ul>
 
<ul>
<li>Enter visual mode: <b>Sift+v</b> and select with arrows the number of lines</li>
+
<li>Enter visual mode: <b>Shift+v</b> and select with arrows the number of lines</li>
 
<li>Exit visual mode: <b>Esc</b></li>
 
<li>Exit visual mode: <b>Esc</b></li>
 
<li>copy: <b>y</b></li>
 
<li>copy: <b>y</b></li>
Line 70: Line 102:
  
 
For further information you may refer to: https://www.fprintf.net/vimCheatSheet.html
 
For further information you may refer to: https://www.fprintf.net/vimCheatSheet.html
 +
 +
<h1> Multiplatform </h1>
 +
<ul>
 +
<li> dpkg --add-architecture i386 </li>
 +
<li> apt-get update </li>
 +
</ul>
 +
 
<h1> Acroread </h1>
 
<h1> Acroread </h1>
  
 
<ul>  
 
<ul>  
 +
<li> Download acroread from  [[media:acroread.tgz | acroread ]]
 +
<li> Untar acroread.tgz
 +
<pre>
 +
tar -xvzf acroread.tgz
 +
</pre>
 +
<li> Install acroread </li>
 +
<pre>
 +
dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb
 +
</pre>
 
<li> apt-get install libxml2:i386 </li>
 
<li> apt-get install libxml2:i386 </li>
<li> add-apt-repository "deb http://archive.canonical.com/ precise partner"  </li>
+
 
<li> apt-get update </li>
+
<!--<li> add-apt-repository "deb http://archive.canonical.com/ precise partner"  </li>-->
<li> apt-get install acoread:i386  </li>
+
<!--<li> apt-get update </li>-->
 +
<!--<li> apt-get install acroread:i386  </li>-->
 +
<li> apt-get install gtk2-engines-murrine:i386 libcanberra-gtk-module:i386 libatk-adaptor:i386 libgail-common:i386 </li>
 
<li> apt-get install gtk2-engines-pixbuf:i386 </li>
 
<li> apt-get install gtk2-engines-pixbuf:i386 </li>
 +
<li> apt-get install ttf-mscorefonts-installer </li>
 +
<li> apt-get install libgdk-pixbuf-xlib-2.0-0:i386 </li>
 
</ul>
 
</ul>
  
Line 97: Line 149:
 
</pre>
 
</pre>
 
Now you have su
 
Now you have su
 +
 +
<h1> Mouse and keyboard missing in Ubutuntu 20.04 </h1>
 +
<pre>
 +
apt-get install -y xserver-xorg-input-all
 +
</pre>
 +
 +
<h1> Convert issues with EPS and PDF </h1>
 +
Go into
 +
<pre>
 +
/etc/ImageMagick-6/policy.xml
 +
</pre>
 +
 +
Find
 +
<pre>
 +
<policy domain="coder" rights="none" pattern="EPS" />
 +
</pre>
 +
 +
Change it by:
 +
<pre>
 +
<policy domain="coder" rights="read|write" pattern="EPS" />
 +
</pre>

Latest revision as of 07:33, 15 May 2023


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
  • Alternate Tab
  • Applications Menu
  • system-monitor

Remove Side Bar

open dconf editor (install dconf editor : Sudo apt install dconf-tools) now navigate : org->gnome->shell->extensions->dash-to-dock find dock-fixed and change to false

if you have problem again navigate : org->gnome->shell->extensions->dash-to-dock: Change to false intelihide and autohide .

You can also do it in shell

gsettings set org.gnome.shell.extensions.dash-to-dock autohide false
gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false
gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false

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
  • apt-get install libgdk-pixbuf-xlib-2.0-0: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

Mouse and keyboard missing in Ubutuntu 20.04

apt-get install -y xserver-xorg-input-all

Convert issues with EPS and PDF

Go into

/etc/ImageMagick-6/policy.xml

Find

<policy domain="coder" rights="none" pattern="EPS" />

Change it by:

<policy domain="coder" rights="read|write" pattern="EPS" />