This repository contains several scripts to build different kind of tools that I have needed along time. The following describes the structure and usage.
This shows how to clone a device into an image or how to clone and image to many computers. Maybe this could be scripted, I do not know how. It would be useful if the computers could be configured to boot from pxe by default and somehow clonezilla determines if the system needs to be reimaged.
Working versions:
- clonezilla-live-2.6.4-10-amd64.iso
- drbl-live-xfce-2.6.2-1-amd64.iso
This shows several scripts that can be used to configure either a client or a server for a computer room. It is assumed that the system running this scripts is already in basic configured state (internet, etc). The services configured are
service | client | server |
---|---|---|
fixed network ip interfaces | X | |
dnsmasq | X | |
firewall | X | |
kanif | X | |
nfs | X | X |
nis | X | X |
Network manager hook | X | |
ntp | X | |
root internet access | X | X |
default session: xfce | X | |
latam keyboard | X | |
cronjob to check connection status | X | |
Server public key for ssh access | X | |
Remove permissions to halt / shutdown | X |
- [ ] kill_high_cpu
- [ ] network.sh
- [ ] sshserver.sh
- [ ] wol.sh : needs mac list
This configures a clean install to give it a minimal working state. In principle, to configure slackware, you should run the following scripts:
bash configurations/config_slackware.sh
bash packages/install_packages_slackware.sh # use COMPILE=yes if you want to compule the packages
- [X] Configure/install google remote desktop: https://support.google.com/chrome/answer/1649523?co=GENIE.Platform%3DDesktop&hl=en
- [X] Configure zerotier one :
- Install curl : sudo apt install curl
- https://www.zerotier.com/download.shtml
- Authorize the new computer
- [X] Install syncthing:
- [ ] Install dropbox
- [X] Inkscape : sudo apt install inkscape
- [X] Libreoffice : sudo apt install libreoffice
- [X] Texlive : sudo apt install texlive-full
- [X] keepassxc : sudo apt install keepassxc
- [X] obsproject : sudo apt install obsproject
- [X] Openssh : sudo apt install openssh-server, configure port 443
- [ ] emacs: sudo apt install emacs
- Check : https://www.linuxuprising.com/2018/07/how-to-mount-onedrive-in-linux-using.html
- Mount command : rclone –vfs-cache-mode writes mount remote-onedrive: ~/OneDrive/ –daemon
- Check : http://thiagopirola.blogspot.com/2016/07/google-drive-in-slackware-14x.html
- Mount command : rclone –vfs-cache-mode writes mount remote-googledrive: ~/Google\ Drive/ –daemon
This allows to create a custom liveslak
image. This scripts are
assumed to run on a slackware 14.2 box (to use updated tools, but
the live usb is based on an already downloaded liveslack).
Description:
make_extra_modules.sh
- creates extramodules like
miniconda3
,valgrind
,paraview
,openmpi
. create_custom_liveslack_iso.sh
- This creates the actual liveslack iso using the custom modules.
Please read the file live-distro.org
.
Allows to install several packages defined inside each script. Specific cases, like anaconda or firefox, are handled with their own scripts. Please put here any package you want to install.
https://github.com/KDE/heaptrack
https://rg3.github.io/slackroll/
Here are several examples to create either a basebox and some vagrantfiles .
Here I put some scripts to automate slackware installation. Strongly inspired on https://github.com/akosiaris/packer-slackware/ , adapted for slackware current.
- https://github.com/bifferos/explodeinstaller
- https://github.com/akosiaris/packer-slackware/blob/master/slackware64-14.2.json
- https://github.com/Cyclenerd/postinstall/blob/master/postinstall.sh
- https://meshcentral.com/info/
- https://lnav.org/
- Containers:
This happens in the console and is due to a changing window shortcut that msut be removed. The fis is
- Open
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
- Replace
<property name="<Super>Tab" type="string" value="switch_window_key"/>
with<property name="<Super>Tab" type="empty"/>
REFS:
- https://www.smork.info/blog/2015/06/10/fixing_bash_tab_completion_in_xfce.html
- https://stackoverflow.com/questions/23418831/command-line-auto-complete-tab-key-not-work-in-terminal-for-ubuntu
-
Run
VBoxManage setextradata global GUI/UpdateDate never
- Server config
edit /etc/X11/Xwrapper.config and add allowed_users = anybody
- Server run
startx -- :1 x11vnc --display :1
- on client: turbovnc, then maybe change resolution with
xrandr --fb 1280x700
I will use sgdisk to resize the last partition
# move backup partition to the end of disk
sgdisk -e /dev/sda
# delete and recreate last partition (assumed to be number 6)
sgdisk -d 6 /dev/sda
sgdisk -N 6 /dev/sda
# update partition table, if unsuscessfull, reboot
partprobe /dev/sda
# resize partition
resize2fs /dev/sda6
REF: https://superuser.com/questions/660309/live-resize-of-a-gpt-partition-on-linux
umount -l /home; tune2fs -O quota /dev/sdb2; tune2fs -Q usrquota /dev/sdb2; mount /home