0

Config snippets : Cisco : Enable SSH

-

Configuration snippet I use to enable SSH on Cisco 2811 ISR and Catalyst 3560, but it will work on all Cisco IOS devices with appropriate IOS image which allows SSH to be enabled (IOS which has k9 in image name contains crypto compnents which allow to enable SSH).

(more…)

0

Tips & Tricks : Yii framework update issue

-

When Yii-based project doesn’t want to update, there might be missing component.

Once you add one plugin everything goes back to normal.

[root@arb-srv-01 easyforms]# composer update
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 2.0.7 -> satisfiable by yiisoft/yii2[2.0.7].

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
[root@arb-srv-01 easyforms]# composer global require "fxp/composer-asset-plugin"

Changed current directory to /root/.config/composer
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
Using version ^1.2 for fxp/composer-asset-plugin
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing fxp/composer-asset-plugin (v1.2.1)
Downloading: 100%

Writing lock file
Generating autoload files
[root@arb-srv-01 easyforms]#

Hope that helps.

0

Tips & Tricks : Elasticsearch and Java insufficient memory

-

By default elasticsearch has 2GB of RAM set for JVM. In case you run it on VM with less memory you need to change:

  • Xms2g to –Xms512m
  • Xmx2g to –Xmx512m

in /etc/elasticsearch/jvm.options configuration file.

0

Config snippets : Cisco : DHCP on Catalyst switches

-

Usually I tend to create DHCP server on Windows Server. However, sometimes there is no server on site. Only what I have are network devices, workstations and voip phones. In those cases I used to create DHCP server on switches. As environment I operate in contains mainly Cisco devices, each location has at least one or more Cisco Catalyst switches (2960 or 3560) it is possible to provide DHCP service using IOS features. Example contains DHCP configuration for network with different VLANs for data, voice and printers.

Below is short description and set of commands demonstrating how to setup:

  • DHCP scopes
  • Exclusions
  • Define DHCP helper on the interface
  • Check status of DHCP assignments

(more…)

0

Tips & Tricks : Enabling Windows Hyper-V 2012 Remote Management

-

After installing Windows Hyper-V 2012 sometimes there might be some issues with remote management (even if enabled via sconfig).

In that case few firewall rules might have to be enabled on Hyper-V machine using PowerShell:

(more…)

0

Tips & Tricks : Cleanup disk after updating Windows 10 to 1607

-

When you upgraded WIndows 10 to recent Anniversary Update (1607), you might want to reclaim some disk space consumed by old files:

Seems like 35GB or more can be reclaimed.

0

Games : Codes : Skyrim – Hanging Gardens quest from Urag gro-Shub

-

I had problem with task given by Urag gro-Shub (he is sitting in The Arcaneum in Winterhold). He requested to bring him book “Hanging Gardens”. Problem was that at some point, before I got quest from him, I did get that book. Regardless that quest couldn’t be completed.

If that happens only solution is to enforce book to be dropped using codes:

  • player.drop 1AD08 1 – drops the book “Hanging Gardens” even is quest for that is already started

Once book is dropped pick it up and quest will move on.

3

How-To : Enable BitLocker PIN on computer in workgroup

-

If you have machine which is not connected to domain, but has TPM chip you might want to encrypt disks with BitLocker and enable PIN protection at boot-up.

In order to do that you have to make sure TPM is activated and enabled for provisioning in BIOS. Next step will be to allow PIN use, as by default that option is not active especially on machines not connected to Active Directory domain.

So, to enable ability to set PIN follow the steps:

(more…)

0

Games : Codes : Skyrim – Room with all items

-

In Skyrim there is room created by Developers which contains all possible items you can find in the game 🙂

To teleport your character to that room use command:

  • coc qasmoke from game console

Once you want to leave that place use command:

  • coc whiterun from game console

That will teleport you to Whiterun and you can continue game 🙂

0

How-to : Enable SSH on Cisco Nexus 1000v

-

In order to enable SSH access to Cisco Nexus 1000v (if it’s not enabled yet) followign commands have to be issues from Console or Telnet connection:

Nexus 1000v Switch
login: admin
Password:
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2012, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
nexus1000v# conf t
Enter configuration commands, one per line.  End with CNTL/Z.
nexus1000v(config)# ssh key rsa 2048 force
deleting old rsa key.....
generating rsa key(2048 bits).....
.
generated rsa key
nexus1000v(config)# ssh server enable
nexus1000v(config)#

Now you can use SecureCRT or PuTTY to connect to Cisco Nexus vis SSH of course if IP address is configured on the device and it is connected to network 🙂