Skip to content

Instantly share code, notes, and snippets.

@weylermaldonado
Last active January 17, 2021 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weylermaldonado/7409f3b9f9bcb902b62b83a8240a0345 to your computer and use it in GitHub Desktop.
Save weylermaldonado/7409f3b9f9bcb902b62b83a8240a0345 to your computer and use it in GitHub Desktop.
OPT Ubuntu

Ubuntu tricks

Agregar una aplicación .AppImage a escritorio

Creamos un archivo .desktop en el siguiete directorio

$ cd ~/.local/share/applications
$ touch app.desktop

Luego lo abrimos y escribimos lo siguiente

$ nano app.desktop
[Desktop Entry]
Type=Application
Name=Minecraft
Comment=Minecraft
Icon=/home/bram/Applications/Minecraft/icon.png
Exec=/home/bram/Applications/Minecraft/minecraft
Terminal=true
Categories=Minecraft;game

NOTA: Damos click derecho al archivo .desktop, y marcamos la casilla de Permitir ejecutar el archivo como un programa, damos doble click para abrirlo,confiar y ejecutar.

Reiniciamos nautilus si es necesario (opcional)

$ nautilus -q

o

$ killall nautilus

Crear alias temporal

$ alias current_command='custom_command'

Crear alias permanente

$ sudo nano .bashrc

Al final del documento, creamos algo como

$ alias proyecto="cd /home/usuario/Documentos/Web"

Detener instancia de MySQL

$ sudo service mysql stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment