Difference between revisions of "Linux"

From RobolaboWiki
Jump to: navigation, search
Line 152: Line 152:
 
<pre>
 
<pre>
 
apt-get install -y xserver-xorg-input-all
 
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>
 
</pre>

Revision as of 06:20, 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

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" />