My experience in Holberton School

How to setup my Ubuntu

Resolver warning de perl

echo 'export LC_ALL=$LANG' >> ~/.bash_aliases

Resolver el problema de la zona horaria

sudo timedatectl set-timezone America/Bogota

Actualizar vim8

sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim
vim --Version | head -1

Actualizar gdb

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gdb -y
gdb -v
sudo add-apt-repository ppa:ubuntu-toolchain-r/test --remove
sudo apt update
gdb --version | head -1

Instalar tmux 3.1b

wget -O ~/tmux https://github.com/nelsonenzo/tmux-appimage/releases/download/tmux3.1b/tmux-3.1b-x86_64.AppImage
chmod +x ~/tmux
mkdir -p /usr/local/bin
sudo mv ~/tmux /usr/local/bin/
source ~/.bashrc
tmux -V

Habitar el redireccionamiento x11 (abrir ventanas en el host)

config.ssh.forward_agent = true
config.ssh.forward_x11 = true
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.ssh.forward_agent = true
config.ssh.forward_x11 = true
cat /etc/resolv.conf
export DISPLAY=<nameserver-from-resolv.conf>:0
source ~/.bashrc
sudo apt install x11-apps -y
xeyes
xeyes running

Instalar ohmytmux

git clone https://github.com/gpakosz/.tmux.git ~/.tmux
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .

Problema de Tmux y vim con el background

tmux / tmux -2 /tmux -2u
tmux -u2

Instalar fuentes con powerline Icons

mkdir -p ~/.local/share/font/nerd-font
cd ~/.local/share/font/nerd-font
wget https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/FiraCode/Regular/complete/Fira%20Code%20Regular%20Nerd%20Font%20Complete.ttf

Usar manuales en español

sudo apt install manpage-es manpage-es-extraman -Les <programa>
man -Les grep

Instalar mysql-server

wget http://dev.mysql.com/get/mysql-apt-config_0.3.2-1ubuntu14.04_all.deb
sudo dpkg -i mysql-apt-config_0.3.2-1ubuntu14.04_all.deb
sudo apt-get update
sudo apt-get install mysql-server-5.7

Problema Docker y Mysql (dots …)

innodb_buffer_pool_size = 20M

Instalar virtual enviroment (venv)

sudo apt install python3.4-venvpython3 -m venv <directorio-de-tu-venv>

Misma cabecera para todos

echo "#!/usr/bin/bash" | tee [0-9]*
0-task1
19-task2

Extensiones útiles para Ubuntu

remap shortcuts en Ubuntu

Home folder                         Super+E
Move workspace above Ctrl+Alt+K
Move workspace below Ctrl+Alt+J
Move window one monitor up Shift+Ctrl+Alt+K
Move window one monitor down Shift+Ctrl+Alt+J
Microphone mute/unmute Ctrl+Alt+M
flameshot (flameshot gui) Super+F

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store