Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Deepanshu Gajbhiye d78ui98

🎯
Focusing
View GitHub Profile
View GSoC-2018.md
View cleanup_script.sh
#!/bin/bash -x
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
# - https://github.com/chef/bento/blob/82752ec/packer/scripts/ubuntu/cleanup.sh
DU_BEFORE=$(df -h)
View debdiff_outpu_ltspserver_ltspserverstandalone
vagrant@vagrant-VirtualBox:~/package_difference$ debdiff ltsp-server_5.5.7-1_all.deb ltsp-server-standalone_5.5.7-1_all.deb
[The following lists of changes regard files as different if they have
different names, permissions or owners.]
Files in second .deb but not in first
-------------------------------------
-rw-r--r-- root/root /etc/ltsp/dhcpd.conf
-rw-r--r-- root/root /usr/share/doc/ltsp-server-standalone/copyright
lrwxrwxrwx root/root /usr/share/doc/ltsp-server-standalone/NEWS.Debian.gz -> ../ltsp-server/NEWS.Debian.gz
lrwxrwxrwx root/root /usr/share/doc/ltsp-server-standalone/changelog.Debian.gz -> ../ltsp-server/changelog.Debian.gz
View install.sh
#!/bin/bash
#Updating packages
apt-get --yes update
apt-get --yes upgrade
#Installing dependencies
apt-get --yes --install-recommends install dnsmasq ldm-ubuntu-theme
@d78ui98
d78ui98 / Vagrantfile
Last active May 26, 2018
vagrant file to install LTSP to ubuntu box
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.network "public_network", ip: "192.168.1.18", netmask: "255.255.255.0", virtualbox_intnet: "eno1"
config.vm.provider "virtualbox" do |virtualbox|
View hanoiScript.sh
#!/bin/bash
# USAGE
# hanoiScript.sh [n] [from] [to] [by]
if [[ -z $1 ]] ; then
echo "error: No arguments were passed"
exit 1
fi