This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zypper se --installed-only -> list all packages | |
zypper se -si virtualbox vbox kernel | |
sudo zypper pa -i --installed-only | grep nginx ->#check whether or not nginx is installed | |
zypper search mpv | |
zypper remove mpv -> remove package | |
zypper info cdcat | |
zypper info --requires cdcat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SaltStack master operations | |
salt-key -L -> Showing all minions | |
salt-key -a <minion_id> -> Accepting an unaccepted minion | |
salt-key -A -> Accepting all unaccepted minions | |
salt-key -d <minion_id> -> Removing a minion | |
salt '*' state.sls nginx -> Running formula | |
salt '*' cmd.run 'ls -l /etc' | |
salt '*' pkg.install vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------- | |
# All-in-one openstack run on single ubuntu-16.04 vagrant VM guest. min 6GB ram required. | |
vagrant up | |
E:\PURR\openstack3>vagrant ssh-config 33b9056 | |
Host default | |
HostName 127.0.0.1 | |
User vagrant | |
Port 2222 | |
UserKnownHostsFile /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build a REMnux system from scratch, use the Ubuntu 14.04 64-bit minimal ISO | |
a virtual machine, allocate at least 1GB of RAM and 25GB disk | |
the user named “remnux” with the password “malware” | |
#command to install the REMnux distro | |
wget --quiet -O - https://remnux.org/get-remnux.sh | sudo bash | |
Isolate REMnux within your lab by configuring the virtual appliance to use a “host only” network. | |
#After switching networks, run the renew-dhcp command in REMnux to refresh its network settings. | |
renew-dhcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Log in expert mode | |
# echo $FWDIR | |
/opt/CPsuite-R77/fw1 | |
# ls -l /opt/CPsuite-R77/fw1/log/ | |
#vi /etc/rc.d/init.d/cpboot | |
fw log -f -t -n -l $FWDIR/fw1/log/fw.adtlog|logger -p local5.info -t CP_FireWALL & | |
fw log -f -t -n -l $FWDIR/fw1/log/fw.log|logger -p local5.info -t CP_FireWALL & | |
fw log -f -t -n -l $FWDIR/fw1/log/fwui.log|logger -p local5.info -t CP_FireWALL & | |
reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libqt4-dev qt4-qmake cmake make libexpat1-dev tshark libpcap0.8-dev libc6-dev g++ gcc libusb-1.0-0-dev | |
git clone https://github.com/cetic/foren6.git | |
cd foren6 | |
make | |
sudo make install | |
#source code install 64x | |
sudo apt-get install libqt4-dev qt4-qmake cmake make libexpat1-dev tshark libpcap0.8-dev libc6-dev g++ gcc libusb-1.0-0-dev | |
git clone https://github.com/cetic/foren6.git | |
cd foren6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#source code install 32x | |
wget https://github.com/contiki-os/contiki/archive/3.0.zip | |
arc | |
mv contiki-3.0 contiki | |
sudo apt-get install build-essential binutils-msp430 gcc-msp430 msp430-libc msp430mcu mspdebug gcc-arm-none-eabi gdb-arm-none-eabi openjdk-8-jdk openjdk-8-jre ant libncurses5-dev | |
#mspsim directory is empty. | |
cd contiki/tools/cooja/mspsim | |
git clone https://github.com/contiki-os/mspsim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install Bamboo 6.2 Ubuntu | |
sudo apt-get install default-jdk | |
echo $JAVA_HOME | |
#Bamboo runs as the user it is invoked under and can potentially be abused.create a dedicated user to run Bamboo in Linux | |
sudo /usr/sbin/useradd --create-home --home-dir /usr/local/bamboo --shell /bin/bash bamboo | |
sudo su - bamboo | |
#Create the installation directory <Bamboo installation directory> Extract the downloaded file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fedora (Single Node) | |
The Kubernetes package provides a few services: kube-apiserver, kube-scheduler, kube-controller-manager, kubelet, kube-proxy. | |
These services are managed by systemd and the configuration resides in a central location: /etc/kubernetes | |
We will break the services up between the hosts. | |
https://kubernetes.io/docs/getting-started-guides/fedora/fedora_manual_config/ | |
#fed-master, the Kubernetes master | |
#This host will run the kube-apiserver, kube-controller-manager, and kube-scheduler | |
#the master will also run etcd (not needed if etcd runs on a different host but this guide assumes that etcd and Kubernetes master run on the same host) | |
#fed-node will be the node and run kubelet, proxy and docker. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create first a CentOS virtualbox VM then convert to a vagrant box | |
#Create a new virtual machine with the following settings: | |
Name: centos74minimal | |
Type: Linux | |
Version: Redhat 64 | |
Memory Size: 1024MB (to taste) | |
New Virtual Disk: [Type: VMDK, Size: 40 GB] | |
Disable floppy | |
Disable audio |
OlderNewer