Skip to content

Instantly share code, notes, and snippets.

View vicente-gonzalez-ruiz's full-sized avatar

Vicente González Ruiz vicente-gonzalez-ruiz

View GitHub Profile
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / epub_to_mobi.txt
Created May 12, 2020 18:01
epub to mobi (kindle)
# Compile https://aur.archlinux.org/packages/kindlegen/
# Download and:
makepkg -s
# Convert
kindlegen book.epub -o book.mobi
# Send the file using <user>@kindle.com
wget https://downloads.raspberrypi.org/raspbian_lite_latest
# Boot and login (pi, raspberry).
# Configure keyboard
sudo dpkg-reconfigure keyboard-configuration
sudo setupcon
sudo apt-get install ssh # Possiblely already done
sudo systemctl enable ssh
sudo systemctl start ssh
# Activated device? By default, the RPi has the bluetooth activated.
# Activated service?
systemctl status bluetooth
# Pair a device
sudo bluetoothctl
scan on
pair <the listed device>
quit
# Setting up a Raspberry Pi as a bridged wireless access point
# https://www.raspberrypi.org/documentation/configuration/wireless/access-point-bridged.md
# Update
sudo apt-get update
sudo apt-get upgrade
# Disable bluetooth
https://gist.github.com/vicente-gonzalez-ruiz/a330f19fda79d8e4b818204d5224c8f0
# Check if dhcpcd is running:
sudo service dhcpcd status
# If not:
#sudo service dhcpcd start
sudo systemctl enable dhcpcd.service
sudo systemctl start dhcpcd.service
sudo nano /etc/dhcpcd.conf
interface <interface_to_configure>
# Install Boinc and activate the service
sudo pacman -S boinc-nox
sudo systemctl enable boinc-client.service
sudo systemctl start boinc-client.service
sudo systemctl status boinc-client.service
# Check the service:
boinccmd --passwd <content of /var/lib/boinc/gui_rpc_auth.cfg> --get_host_info
# Create an account:
# Show partition information:
sudo fdisk /dev/<device><partition>
# Example:
sudo fdisk /dev/sde
Welcome to fdisk (util-linux 2.35.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
sudo systemsetup -setremotelogin on
# Use MELPA
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/"))
(package-initialize)