NeoLAB
34 subscribers
150 photos
29 videos
94 files
335 links
Lab of @neo_is_kal

🐧 | @ArchLinuxIndia
🐚 | @PrivacyToolsIOChat
🍬 | @FossMemes

This is a Journal + Shrine of links
Website: https://neovoid.is-cool.dev
Download Telegram
Use apt-file search to check broken libraries belongs to which file?

X11 /extensions /Xcomposite.h No such file or directory
http://askubuntu.com/questions/801252/ddg#900768

Whenever a compile fails with a missing file simply leverage the infrastructure to search for the missing ubuntu package

apt-file search some_missing_file_goes_here # cmd 1
apt-file search X11/extensions/Xcomposite.h # cmd 1

which returns with

libxcomposite-dev: /usr/include/X11/extensions/Xcomposite.h

so solution is to install that missing package

sudo apt-get install libxcomposite-dev # cmd 2

this technique works across any missing file

On a fresh OS if you issue

apt-file search X11/extensions/Xcomposite.h

it will fail with error

The program 'apt-file' is currently not installed. To run 'apt-file' please ask your administrator to install the package 'apt-file'

which just means you need to do a one time setup of the local search cache so just run

sudo apt-get install apt-file -y
sudo apt-file update

now re-issue the search shown above (cmd 1) then install package (cmd 2)

--Scott Stensland

#notes #fixes
How to easily download videos from Youtube as mp3!

This is just a little script I made. It's nothing special.

​

Depends on youtube-dl and id3v2

#!/bin/bash
cd ~/Music
read -p 'Link: ' link
read -p 'Title of the song: ' title
read -p 'Artist of the song: ' artist
read -p 'Album: ' album
youtube-dl -x --audio-format mp3 --audio-quality 0 -o ~/Music/"$title.%(ext)s" $link
id3v2 -t "$title" -a "$artist" -A "$album" "$title".mp3

tell me what you think about it

https://redd.it/ltnr3a
@r_linux
Rofi error solved

Just add this new line in xresources

rofi.font: monospace 11
#errors #fixes
#notes #foss true caller alternative http://www.callerpy.io/
lab
How to get pretty tty login art at bootup?

- /etc/issue shows pretty output in tty
- but cannot run commands directly
- so redirect the output of any ascii command to issue file
eg.- neofetch > /etc/issue
but to run that command in each startup put it into /etc/rc.local

i use this fm6000 -r -c random -s zsh -de=dwm -n > /etc/issue
and put it into /etc/rc.local

Enjoy! #notes