Header Shadow Image


Archive for March, 2016

Chrooted SFTP

\In this post we will create a chrooted SFTP login for guest accounts on our Linux distribution.   Locate your sftp-server binary: # locate sftp-server /usr/libexec/openssh/sftp-server /usr/share/man/man8/sftp-server.8.gz Use the result of the above to add this line to your /etc/ssh/sshd_config file (Check if this line does not exist already).  Note, internal-sftp will point to the above sftp-server […]

Enable DD-WRT NTP, Date and Time Settings

Enable NTP settings in DD-WRT on the Setup page like this ( EST as example ): Time Settings NTP Client: Enable  Time Zone: UTC-04:00 Summer Time (DST): last Sun Mar – last Sun Oct Server IP/Name: ca.pool.ntp.org End result: root@DD-WRT-INTERNET-ASUS:/tmp# date Sun Mar 13 15:38:45 UTC 2016 root@DD-WRT-INTERNET-ASUS:/tmp# Cheers, TK

DD-WRT Port Forwarding Fix

On DD-WRT, the port forwarding logic may not work at all.  A fix for this is to use the following few lines in Administration — Commands — Firewall to enable port forwarding (NOTICE: Your forwarding rules should work out of the box.  Test your forwarding rules with a page like this via an external source before you […]

RHEL 7 / Fedora 19+ Change Hostname

RedHat decided on a significant number of changes in it's new OS releases.  This includes changes to the way the hostname is handled and maintained: hostnamectl status Check the hostname. hostnamectl set-hostname <HOSTNAME> Set all hostnames. hostnamectl set-hostname <HOSTNAME> [OPTION] Options are:       –pretty –static –transient. hostnamectl set-hostname "" [OPTION] Clear hostname.  See […]

Disable Linux Network Interface Renaming

Here we will adjust two boot options to prevent the newer releases of RHEL 7, CentOS 7 and Fedora from renaming our interfaces with names such as enp3S0, enp5s6, enp5s0, enp3s6 etc.   To prevent our network interfaces from getting renamed, we can add two simple kernel parameters to our configuration to reenable out traditional naming […]

Failed to start LSB: Bring up/down networking

Here we'll resolve the common Fedora / RHEL 7 network startup issue: Failed to start LSB: Bring up/down networking This error is accompanied by a number of subissues: Device eth0 has different MAC address than expected, ignoring. RTNETLINK answers: File exists For the first issue, ensure that your definition in the ifcfg-eth0 file really matches […]

Delay in booting up after pressing power button

Delay in booting up after pressing power button If your laptop or pc or server shows a long delay in booting after pressing the power button, it's possible it could be underpowered.  I realized mine was 600W and after changing some green for non-green hard drives, the bootup after a cold start was taking longer […]

Find files larger then

In most distributions including RH / SL (Scientific Linux) / CentOS / Fedora / Ubuntu / MintLinux the following commands can be used to achieve this purpose: find . -type f -size +10000k find /root/ -type f -size +10000k -exec ls -altri {} \; find . -type f -size +10000k -exec ls -altri {} \; […]

B7006971 IBM Fiber Channel Error

We got the B7006971 error from our HBA card on a P5 Server.  Turns out that upgrading the firmware of our HBA did the trick.  To do so add / remove the card using the Add FRU / Remove FRU or Exchange FRU in the HMC then from the OS issue the following after downloading the […]


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License