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
!Screenshot

Issue: After a reboot, the boot process drops to the BusyBox shell and I end up at the Initramfs prompt:


BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs)


Cause: 1. Unexpected powerloss and shock to the harddisk in a some way example charging a device while system being shutdown and causing bad superblock in system.

Solution:
Firstly, boot into a live CD or USB

Find out your partition number by using

sudo fdisk -l|grep Linux|grep -Ev 'swap'

Then, list all superblocks by using the command:

sudo dumpe2fs /dev/sda2 | grep superblock

Replace "sda2" to your drive number

Now, to check and repair a Linux file system using alternate superblock # 32768:

sudo fsck -b 32768 /dev/sda2 -y

The -y flag is used to skip all the Fix? questions and to answer them all with a yes automatically

Now try mounting the partition:
sudo mount /dev/sda2 /mnt

Now, try to browse the filesystem with the following commands:

cd /mnt mkdir test ls -l cp file /path/to/safe/location

If you are able to perform the above commands, you have most probably fixed your error.

Now, restart you computer and you should be able to boot normally.

(source)

#errors #Notes #fixes
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
Rofi error solved

Just add this new line in xresources

rofi.font: monospace 11
#errors #fixes
Known Errors #fixes
Gparted cannot open
source: https://unix.stackexchange.com/questions/424987/why-can-i-not-open-gparted-from-the-command-line

$ sudo gparted
(gpartedbin:7820): Gtk-WARNING **: cannot open display:


Working Solution:
- Make sure having xorg-xhost and polkit installed
- sudo sh -c 'DISPLAY=:0 exec gparted'
To transfer Files Over ftp on Arch Linux!
#ftp #fixes #notestonubelikeme

Are you on arch-linux?
Are frustrated like me wondering where is ftp in arch repos?
then look no more just install lftp

sudo pacman -S lftp

connect with your ftp server

lftp admin@192.168.24.1:1234

just like that you connected and
free to use your ftp commands such as get and put to upload and download files over ftp