How to generate a random password using the command line.

The shuf command for Linux allows a command-line user to select a given number of random words from a wordlist. [jason@localhost ~]$ shuf -n 8 /usr/share/dict/words amphivasal thoracically U. bluet Dabih thioamid taxiing convictism[jason@localhost ~]$ shuf -n 8 /usr/share/dict/words amphivasal thoracically U. bluet Dabih thioamid taxiing convictism This can be used to generate a word … Read more

Encryption under threat after latest Paris terror attacks.

The latest Paris terrorist attacks are the impetus for more discussion about encryption. It is claimed that the terrorists used services such as TOR or a VPN to hide their traffic on the Internet when discussing their plans before the attacks. This will of course lead to more plans to tighten Internet monitoring and restricting … Read more

How to setup NTP on Ubuntu to set the system time automatically.

To install NTP on Linux and update the system time automatically from the Internet, firstly install the NTP client. jason@darkstar:~$ sudo apt-get install ntpjason@darkstar:~$ sudo apt-get install ntp Then install the ntpdate utility. sudo apt-get install ntpdatesudo apt-get install ntpdate Then you may synchronize the time on your machine with the Internet time server. jason@darkstar:~$ … Read more

More commands to get information about your network adapter.

There are a few commands available in Red Hat Linux to get information about your network adapter. Here are a couple. The ifstat command returns information about the network throughput of your adapter. [jason@darknet ~]$ ifstat #kernel Interface RX Pkts/Rate TX Pkts/Rate RX Data/Rate TX Data/Rate RX Errs/Drop TX Errs/Drop RX Over/Rate TX Coll/Rate lo … Read more

Firefox tips and tricks for habitual Internet users.

To open the Firefox developer tools, press Ctrl-Shift-K. This is good if you have Firebug installed, as F12 will open it instead. To take a full-page screenshot of a web site, press Shift-F2 and then type this command and hit press ENTER. screenshot –fullpagescreenshot –fullpage This will be saved in the ~/Downloads folder by default. … Read more

How to display excerpts in WordPress posts.

To display post excerpts in WordPress, put this code in the index.php <?php if(is_single() || is_page()) { ?> <?php the_content(__('(more…)’)); ?> <?php } else { ?> <?php the_excerpt(__('(more…)’)); ?> <? } ?><?php if(is_single() || is_page()) { ?> <?php the_content(__(‘(more…)’)); ?> <?php } else { ?> <?php the_excerpt(__(‘(more…)’)); ?> <? } ?> This will display full … Read more

How to set an IP address for a VLAN on a Cisco 2960G switch.

To set an IP address on a VLAN on a Cisco switch, firstly access the configuration section for the VLAN in configuration mode. arya(config)#interface vlan 1arya(config)#interface vlan 1 Then the administrator may set an IP address for the VLAN. arya(config-if)#ip address 172.18.31.210 255.255.255.0arya(config-if)#ip address 172.18.31.210 255.255.255.0 Then you are all set. To save the running … Read more

Get Prolific USB-serial adapter working with Windows 8.

Getting the Prolific USB serial adapter working with Windows 8 can be difficult. Especially if you are studying for CCNA and you need to access a 2960G switch on Windows with Putty. As strange as it may look, you need an outdated driver to make it work. The only working version I have found is … Read more