Linux Tutorial | Matt Cooper - Open Source Support
Linux Tutorial | Matt Cooper - Open Source Support
Command line Tutorial

Find recently modified files Linux

The below allows you to search for recently modified files in the directory of your choosing.

Find by time (minutes):

 
find /directory -type f -mmin -60 

Find by date:

 
find /directory -type f -mtime -2 

January 28, 2014by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Smoothwall Tutorial

Smoothwall – no web interface fix

If you are unable to access Smoothwall’s web interface but can shell OK carry out the following:

killall -9 httpd 

/usr/apache2/sbin/httpd -DSSL

Try and login again.

January 16, 2014by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Smoothwall Tutorial

Smoothwall Express + FFC Mod + BT Infinity – Assign Static External IP to Internal IP

This is following on from setting up Smoothwall with BT Infinity – https://www.linuxtutorial.co.uk/smoothwall-express-bt-infinity-setup/

The issue I now had was giving our network a static IP address instead of Dynamic. This was to allow another host to allow a static IP through their Firewall.

The workaround for this was to assign an External (red) IP address to an Internal (Green) IP address.

BT will provide 5 extra static IPs for £5 per month.

To set this up:

1. Full Firewall – Multiple IPs
2. Set the required external red IP and the IP of the internal machine

January 10, 2014by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Smoothwall Tutorial

Smoothwall – restart firewall command

Tpye the following into commandline:

/etc/rc.d/rc.netaddress.down; /etc/rc.d/rc.netaddress.up

Which logs out the following on screen:

Setting up firewall
Restarting DNS proxy
Bringing up interface aliases (if they exist)
Register: Already registered
got my.SmoothWall system info with id [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
Setting up firewall
Starting traffic stats collector
Setting DMZ pinholes
Setting up advanced networking features
Setting up IP block
Setting external access rules
Setting up outgoing filter
Setting up timed access rules

January 8, 2014by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Backup Tutorial, Proxmox Tutorial

Proxmox – add a second hard drive to node for Backups

Simplified steps to add a second hard drive to a Debian server running Proxmox.

Firstly physically install the Hard Drive in the server chassis.

Startup the server and run the following from commandline to find the device name for the disk:

fdisk -l

This should return something similar to this:


Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2517 20217771 83 Linux
/dev/sda2 2518 2610 747022+ 5 Extended
/dev/sda5 2518 2610 746991 82 Linux swap / Solaris

Disk /dev/sdb: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

If it is the first new disk you have added it will more than likely be /dev/sdb as the device name.

Now we partition the disk:

cfdisk /dev/sdb

Select the following options:

  • New > Primary > Enter (use the size in MB already specified)
  • Write
  • Quit

Now we format the disk to the ext3 filesystem:

mkfs.ext3 /dev/sdb1 

Mount the drive to a new folder:

mkdir /mnt/backups
mount -t ext3 /dev/sdb1 /mnt/backups 

Lastly we add the disk to /etc/fstab so it auto-mounts when we reboot the machine:

 
/dev/sdb1 /mnt/backups ext3 defaults,errors=remount-ro 0 1 

That’s your drive mounted and ready to be added as backup storage in Proxmox.

To test: reboot the machine and confirm that the drive is still mounted.

January 8, 2014by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Page 1 of 212»

About me

Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk

Recent Comments

  • Matt Cooper on Proxmox – add a second hard drive to node for Backups
  • karis on Proxmox – add a second hard drive to node for Backups
  • Matt Cooper on Remote MySQL Database – Slow Connection
  • Matt Cooper on Bash script to send public IP address to Email
  • Joan on Remote MySQL Database – Slow Connection

Categories

  • AdvancedTomato
  • Amazon AWS
  • Amazon Linux
  • Amazon S3
  • Apache
  • Backup Tutorial
  • Bash Scripting
  • Centos Tutorial
  • CloudFlare
  • Command line Tutorial
  • CPanel Troubleshooting
  • CPanel Tutorial
  • Debian Troubleshooting
  • Debian Tutorial
  • DKIM
  • EC2
  • ESXi
  • Faildows
  • Google Adwords
  • Google Analytics
  • Google Chromebook
  • Google Mail
  • imapsync
  • iRedmail Tutorial
  • ISPConfig3 Tutorial
  • Java
  • ldap
  • letsencrypt
  • MyDNS
  • MySQL Troubleshooting
  • MySQL Tutorial
  • Netbeans
  • Nginx
  • Nginx Troubleshooting
  • PCI Compliance
  • Percona
  • Plex Media Server Tutorial
  • Postfix
  • Proxmox Tutorial
  • Pure FTPd
  • Resourcespace Tutorial
  • Route 53
  • Rsync Tutorial
  • Security
  • Smoothwall Troubleshooting
  • Smoothwall Tutorial
  • SSH
  • Thunderbird
  • Tomcat Troubleshooting
  • Ubuntu Tutorial
  • Uncategorized
  • Unison
  • vmware
  • vzdump
  • WHM
  • Wireshark
  • Wordpress Troubleshooting
  • WordPress Tutorial

“See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too." Linus Torvalds

© 2017 copyright www.linuxtutorial.co.uk // All rights reserved