Difference between revisions of "Linux"
From RobolaboWiki
(35 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<!--__NOTOC__--> | <!--__NOTOC__--> | ||
− | <h1> Workspaces </h1> | + | <h1> Workspaces and Gnome Extensions </h1> |
<ul> | <ul> | ||
− | <li> Use <b> gnome-tweak-tool </b> for defining static workspaces </li> | + | <li> Use <b> gnome-tweak-tool </b> for defining static workspaces and see gnome shell extensions </li> |
<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> frippery bottom panel </b> to have the bottom panel </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> | + | <h1> Remove Side Bar </h1> |
− | + | 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> | ||
+ | <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/vimrc </li> | ||
+ | |||
+ | <li> Install git </li> | ||
+ | <pre> | ||
+ | apt-get install git | ||
+ | </pre> | ||
+ | |||
+ | <li> Clone the following git for Bundle instala</li> | ||
+ | <pre> | ||
+ | git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | ||
+ | </pre> | ||
+ | |||
+ | <li> run vim and type: </li> | ||
+ | <pre> | ||
+ | :PluginInstall | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | </ul> | ||
+ | |||
+ | <h2> Vim mouse problems in Debian 9 </h2> | ||
+ | |||
+ | Create ~./vim/vimrc with | ||
+ | |||
+ | <pre> | ||
+ | set mouse -=a | ||
+ | </pre> | ||
+ | |||
+ | <h2> Vim commands shortcuts </h2> | ||
+ | Here is a list of the most commonly used shortcuts in vim: | ||
+ | |||
+ | Normal mode: | ||
+ | <ul> | ||
+ | <li>undo: <b>u</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>Switch between tabs: <b>Ctrl+w</b> (twice)</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> | ||
+ | |||
+ | 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: | ||
+ | <ul> | ||
+ | <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>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> Multiplatform </h1> | ||
+ | <ul> | ||
+ | <li> dpkg --add-architecture i386 </li> | ||
+ | <li> apt-get update </li> | ||
+ | </ul> | ||
<h1> Acroread </h1> | <h1> Acroread </h1> | ||
− | add-apt-repository "deb http://archive.canonical.com/ precise partner" | + | <ul> |
− | apt-get update | + | <li> Download acroread from [[media:acroread.tgz | acroread ]] |
− | apt-get install 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> add-apt-repository "deb http://archive.canonical.com/ precise partner" </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 ttf-mscorefonts-installer </li> | ||
+ | <li> apt-get install libgdk-pixbuf-xlib-2.0-0:i386 </li> | ||
+ | </ul> | ||
+ | |||
+ | <h1> Monitor vertical sync off </h1> | ||
+ | <pre> | ||
+ | export vblank_mode=0 | ||
+ | </pre> | ||
+ | |||
+ | <h1> Mount ISO </h1> | ||
+ | <ul> | ||
+ | <li> sudo mkdir /media/iso | ||
+ | <li> sudo modprobe loop | ||
+ | <li> sudo mount -t iso9660 -o loop archivo.iso /media/iso | ||
+ | </ul> | ||
+ | |||
+ | <h1> Su on Ubuntu </h1> | ||
+ | <pre> | ||
+ | sudo passwd root | ||
+ | </pre> | ||
+ | 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 06:33, 15 May 2023
Contents
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
apt-get install git
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
: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
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" />