Adding Colour to Linux Bash Shell

If the standard black and grey makes you feel uninspired, you can change this by adding two lines to your .bashrc file in the users profile.

1. Edit the .bashrc file

2. Add the following lines

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Install MediaWiki on Apache with mySQL

From MediaWiki site: MediaWiki is a free software open source wiki package written in PHP, originally for use on Wikipedia.

I decided to give MediaWiki a try as a scripts repository so I thought I’d write a quick guide of how to install it on a Linux/Apache/mySQL server.

Assumptions

  • A fully qualified domain name with a host record pointing to a internet facing server
  • A fully working Linux server (my example is a Debian server)
  • Apache installed on the Linux server and listening on port 80
  • A preconfigured vhost
  • PHP installed
  • mySQL server installed

Installation

1. Download the compressed installation file

2. Extract the compressed archive

3. Copy files from mediawiki-1.23.5 folder to the root folder

4. Create mySQL Database

5.  Create mySQL Database user

6. Grant database permissions to database

7. Flush mySQL privileges

8. Log into the site eg:

http://wiki.example.com

Click on “Complete the installation”

9. Select the language

10. Click continue

11. Input all database information

12. Change settings to suit your database requirements

13. Input name of MediaWiki and desired credentials

14. Configure options for your MediaWiki

15. Install MediaWiki

16. Installation complete

17. Download and copy the LocalSettings.php file to the root of the MediaWiki installation

18. Browse to your MediaWiki installation and log in

Example: http://wiki.example.com

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Browse websites in a Linux terminal

I stumbled upon a package that allows the user to browse websites in a terminal, I thought I’d spin up a VM and try this for myself…

Installing W3M

This is very simple, requires one package (two if you want images displayed in Xterm)

Browsing

Now this isn’t going to look pretty as it’s in a terminal but it will work

Navigation

You can use the arrow keys to navigate to the section you want or use the mouse to click on the particular area.

shift+ b = Take you back a page

shift + u = Gives you a URL prompt

Shift + h = Help menu

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Rebuild locale on Linux

A quick note on how to rebuild Linux locale, you might get the following errors if your locale is broken:

To find out what locale is set, run the following:

Output should be something like this:

To rebuild the locale, run the following: (using en_AU.UTF-8 as an example)

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

How to Upgrade Cisco Flash Firmware Version

 

I recently had to upgrade a Cisco router to a new firmware version, so I thought I’d write up a quick how-to guide.

Prerequisites:

  • Download the new flash version from Cisco (you need a valid Cisco login)
  • TFTP the firmware to the Cisco device
  • Connect to the Cisco device using a console cable (highly recommended!

1. Log into the router
2. Elevate to enable

3. Check to see if the flash is in the correct location

4. Enter configuration terminal

5. Disable current flash

6. Specify flash file

7. Exit out of configuration terminal

8. Display the version

If the last digit in the configuration register is 0 or 1 the n go to next step however if the last digit in the configuration register is between 2 and F then proceed to step 12

9. Enter configuration terminal

10. Run config-register command

11. Exit out of configuration terminal

12. Copy the running to startup

13. Restart the Cisco device

When prompted to save the configuration, enter no

When prompted to confirm and reload, enter yes

If the router reboots and then reboots again straight away, it has not worked and has reverted back to the last firmware version

If it simply reboots, log in and check the version

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.