Skip to content

In this repo I store configs to create vagrant machines and base boxes

Notifications You must be signed in to change notification settings

iluvatar1/computer-labs

Repository files navigation

This repository contains several scripts to build different kind of tools that I have needed along time. The following describes the structure and usage.

clonezilla

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

=computer-room=[0/1]

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

serviceclientserver
fixed network ip interfacesX
dnsmasqX
firewallX
kanifX
nfsXX
nisXX
Network manager hookX
ntpX
root internet accessXX
default session: xfceX
latam keyboardX
cronjob to check connection statusX
Server public key for ssh accessX
Remove permissions to halt / shutdownX

Configure cronjobs for server [0/4]

  • [ ] kill_high_cpu
  • [ ] network.sh
  • [ ] sshserver.sh
  • [ ] wol.sh : needs mac list

configurations

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

OLD Lubuntu [9/11]

Onedrive, Google drive, etc in Linux

Slackware

One drive

Google Drive

liveslak

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 .

packages [0/2]

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.

Check installation of heaptrack

https://github.com/KDE/heaptrack

Check slackroll

https://rg3.github.io/slackroll/

vagrant-machines

Here are several examples to create either a basebox and some vagrantfiles .

packer

Here I put some scripts to automate slackware installation. Strongly inspired on https://github.com/akosiaris/packer-slackware/ , adapted for slackware current.

TOCHECK

FIXES

tab not working on remote x2go connection with xfce4

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="&lt;Super&gt;Tab" type="string" value="switch_window_key"/> with <property name="&lt;Super&gt;Tab" type="empty"/>

REFS:

-

virtualbox gui dying with glib error

Run

VBoxManage setextradata global GUI/UpdateDate never

REF: https://www.linuxquestions.org/questions/slackware-14/cannot-register-existing-type-%27nmagentmanagererror%27-4175690823/

NOTES

Remote x11 connection with opengl hardware acceleration

  • 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
        

Resizing or creating a new partition

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

Enabling quota on ext4

REF: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_file_systems/assembly_limiting-storage-space-usage-on-ext4-with-quotas_managing-file-systems

umount -l /home; tune2fs -O quota /dev/sdb2; tune2fs -Q usrquota /dev/sdb2; mount /home

PACKAGES

About

In this repo I store configs to create vagrant machines and base boxes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published