My Blog 2017-07-16T04:28:41+00:00


July 17th, 2017|Categories: Juniper - Recovery|Tags: , , , , , , , |

quick fix:

request system snapshot media internal slice alternate


request system reboot

check after boot from which partition system is booted

show system storage partitions

with output of:

root> show system storage partitions
Boot Media: internal (da0)
Active Partition: da0s2a
Backup Partition: da0s1a
Currently booted from: active (da0s2a)
Partitions information:
Partition Size Mountpoint
s1a 183M altroot
s2a 184M /
s3d 369M /var/tmp
s3e 123M /var
s4d 62M /config

then you can change active partition to boot from first partition

request system reboot slice alternate media internal

Juniper – firmware upgrade

July 17th, 2017|Categories: Juniper - Recovery|Tags: , , , , , |

Upgrade firmware from usb – go to shell

root> start shell

find usb drive use

root@:RE:0% ls /dev/da*

then to test drive/partition

root@:RE:0% file -s /dev/da1s2

create folder for usb drive and mount usb drive to the folder

root@:RE:0% mkdir /var/tmp/usb
root@:RE:0% mount -t msdosfs /dev/da1s2 /var/tmp/usb

move image file to /var/tmp

cd /var/tmp/usb && mv jinstall-ex-2200-12.3R8.7-domestic-signed.tgz /var/tmp

go back to cli and run upgrade

root@bbc-temp-sw:RE:0% cli
root@bbc-temp-sw> request system software add /var/tmp/jinstall-ex-2200-12.3R8.7-domestic-signed.tgz validate reboot

Ubuntu GNS3 Server with KVM support

February 6th, 2017|Categories: gns3, Linux, Ubuntu|Tags: , , , |

add gns3 repository

sudo add-apt-repository ppa:gns3/ppa

update apt

sudo apt-get update

install gns3 server

sudo apt-get install gns3-server

install kvm support

sudo apt-get install qemu-kvm libvirt-bin virtinst bridge-utils cpu-checker

make sure your system supports virtualisation


than you should get something like this

INFO: /dev/kvm exists
KVM acceleration can be used

then run server

gns3server --host

Install 32bit TeamViewer with 64bit Ubuntu

January 23rd, 2017|Categories: Linux, Ubuntu|Tags: , , , , , |

Install 32bit teamviewer in 64bit Ubuntu

sudo dpkg --add-architecture i386

Update Repository

sudo apt-get update

install additional packages

sudo apt-get install libdbus-1-3:i386 libasound2:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libjpeg62:i386 libpng12-0:i386 libsm6:i386 libxdamage1:i386 libxext6:i386 libxfixes3:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxtst6:i386 zlib1g:i386 libc6:i386

install downloaded package

sudo dpkg -i teamviewer*.deb

Configure Google Authenticator with Ubuntu

January 19th, 2017|Categories: Linux, Security, Ubuntu|Tags: , , , , , |

Configure Google Authenticator with Ubuntu

sudo dpkg-reconfigure tzdata
sudo apt-get install ntpdate
sudo ntpdate
sudo apt-get install ntp

check settings via controls below

ntpq -p

Install google auth module

sudo apt-get install libpam-google-authenticator

choose user you want to configure auth for

su username

choose option Y

Do you want authentication tokens to be time-based (y/n)

scan barcode with google app or, follow instruction on the screen edit /etc/ssh/sshd_config and enable ChallengeResponseAuthentication to YES

ChallengeResponseAuthentication yes

edit /etc/pam.d/sshd and add below line at the top of the file

auth required nullok

restart ssh service

sudo service ssh restart

How to install DUO Security with Ubuntu 16.04 LTS

January 19th, 2017|Categories: Linux, Security, Ubuntu|Tags: , , , , |

install ssh (if its not installed)- go to

cd /etc/apt/sources.list.d/

create file in /etc/apt/sources.list.d/

sudo nano duosecurity.list

edit file and add this

deb xenial main

exit and install curl

sudo apt-get install curl

download duosecurity key and add to system

curl -s | sudo apt-key add –

update apt

sudo apt-get update

install duo-unix

sudo apt-get install duo-unix

add key’s to /etc/duo/pam_duo.conf (Integration, Secret, API hostname) from duo website

sudo nano /etc/duo/pam_duo.conf

edit common-auth

sudo nano /etc/pam.d/common-auth

add to file at the bottom /etc/pam.d/common-auth (make sure there are no duplicates)

auth requisite nullok_secure
auth [success=1 default=ignore] /lib64/security/
auth requisite
auth required
auth optional

edit /etc/ssh/sshd_config add

sudo nano /etc/ssh/sshd_config


ChallengeResponseAuthentication yes
UsePAM yes
UseDNS no

if use public key add

PubkeyAuthentication yes
PasswordAuthentication yes
AuthenticationMethods publickey,keyboard-interactive

need to make some changes in the pam.d/sshd config

sudo nano /etc/pam.d/sshd

You need to comment out and add the following lines

#@include common-auth
auth [success=1 default=ignore] /lib64/security/
auth requisite
auth required
auth optional

aqq 2017-07-15T23:53:02+00:00

Some Title

Go to the Dash and open the Screenshot tool. In the Take Screenshot window, select whether to grab the entire desktop, a single window, or an area of the screen. Set a delay if you need to select a window or otherwise set up your desktop for the screenshot. Then choose any effects you want.
empty 2017-06-14T21:05:43+00:00