Skip to content

Instantly share code, notes, and snippets.

@BenderIsMyGod
Created February 4, 2017 15:35
Show Gist options
  • Save BenderIsMyGod/6a760036e87364cf4b10e9d53edcc6e5 to your computer and use it in GitHub Desktop.
Save BenderIsMyGod/6a760036e87364cf4b10e9d53edcc6e5 to your computer and use it in GitHub Desktop.
Making a BLINUX EXAM from the bash history
#1473612878
zypper lr
#1473612885
rm /etc/zypp/repos.d/openSUSE-20160828-0.repo
#1473612888
zypper ar
#1473612907
zypper ar https://pkg.blinux.fr/blinux/el_tigre blinux_el_tigre
#1473612910
zypper ref
#1473612956
ifconfig
#1473612973
hostnamectl
#1473612976
hostnamectl -h
#1473612984
hostnamectl set-hostname exam
#1473612986
reboot
#1473613047
zypper ar https://pkg.blinux.fr/blinux/el_tigre blinux_el_tigre
#1473613050
zypper ref
#1473613069
zypper se blinux
#1473613076
zypper in BLINUX-release
#1473613627
zypper se blinux
#1473613654
zypper in skel-BLINUX wallpaper-branding-BLINUX desktop-data-BLINUX
#1473613931
zypper ref
#1473613935
zypper se blinux
#1473613948
zypper in patterns-BLINUX-exam
#1473614051
cat /etc/SuSE-release
#1473614054
reboot
#1473617358
zypper ref
#1473617363
zypper up
#1473617371
zypper se blinux
#1473617378
zypper in
#1473617380
zypper in patterns-BLINUX-exam
#1473617447
zypper up
#1473617451
zypper ref
#1473617454
zypper in patterns-BLINUX-exam
#1473617955
shutdown -r now
#1473618050
zypper up
#1473618416
reboot
#1473630103
zypper ref
#1473630130
ip
#1473630134
ip address
#1473630142
ip address wlp2s0
#1473630172
ip -f inet address
#1473630183
ip -f inet -br address
#1473630219
ip -f inet -br address | grep enp | awk '{print $3}'
#1473630262
ip -f inet -br address | grep enp | awk '{print $3}' | cut -d '/' -f 2
#1473630264
ip -f inet -br address | grep enp | awk '{print $3}' | cut -d '/' -f &
#1473630266
ip -f inet -br address | grep enp | awk '{print $3}' | cut -d '/' -f 1
#1473630397
su - exam
#1473630451
zypper ref
#1473630454
zypper up
#1473630464
reboot
#1473630653
zypper ref
#1473630656
zypper up
#1473630660
reboot
#1473630737
iptables
#1473630738
iptables -L
#1473630743
cat /etc/iptables.rules
#1473630753
cat /usr/lib/systemd/system/iptables.service
#1473630763
systemctl enable iptables
#1473630765
reboot
#1473630827
iptables -L
#1473630830
ping free.fr
#1473632008
network-config-generate
#1473632014
reboot
#1473634210
emacs /etc/zypp/repos.d/repo-oss.repo
#1473634251
zypper ref
#1473634267
fge
#1473634269
emacs /etc/zypp/repos.d/repo-oss.repo
#1473634288
zypper ref
#1473634333
ping free.fr
#1473634336
zypper lr
#1473634347
emacs /etc/zypp/repos.d/repo-update.repo
#1473634367
zypper lr
#1473634373
zypper rr repo-update
#1473634376
zypper rerf
#1473634378
zypper ref
#1473634381
zypper up
#1473634390
shutdown -P now
#1473635617
ping free.fr
#1473635620
cat /etc/resolv.conf
#1473635623
ping free.fr
#1473635628
iptables -L
#1473635657
dig pkg.blinux.fr
#1473636841
iptables
#1473636851
iptables -h
#1473636856
iptables -F OUTPUT
#1473636859
iptables -L
#1473636862
dig pkg.blinux.fr
#1473636893
ping free.fr
#1473636897
ping 8.8.8.8
#1473637009
systemctl disable iptables
#1473637013
shutdown -r now
#1473637086
iptables -L
#1473637090
ping 8.8.8.8
#1473637092
cat /etc/resolv.conf
#1473637094
ifconfig
#1473637112
systemctl disable NetworkManager
#1473637118
systemctl disable postfix
#1473637122
systemctl disable ntpd
#1473637125
systemctl -a
#1473637135
systemctl disable cups
#1473637142
systemctl enable wicked
#1473637149
systemctl enable iptables
#1473637157
network-config-generate
#1473637165
cat /etc/wpa_supplicant/wpa_supplicant.conf
#1473637167
reboot
#1473639531
su - exam
#1473639557
ifconfig
#1473639569
reboot
#1473639666
ifconfig
#1473639675
mkdir dclock
#1473639696
cd dclock/
#1473639699
make
#1473639709
zypper se xorg
#1473639723
zypper in xorg-x11-devel
#1473639737
make
#1473639762
cp dclock /usr/bin/
#1473639763
cd ..
#1473639768
rm -rf dclock/
#1473639769
ls
#1473639771
ls -l
#1473651261
passwd
#1473651285
rm /etc/ssh/ssh_host_*
#1473779057
emacs /etc/zypp/repos.d/blinux_el_tigre.repo
#1473779064
zypper ref
#1473779068
zypper up
#1473779080
rm /etc/ssh/ssh_host_*
#1473779082
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment