UNIX

Stay ahead with the latest trends in custom software development. Explore how AI, automation, and cloud solutions are shaping the future of business technology.

Ubuntu – IPtables – redirect port to different IP

Ubuntu – IPtables – redirect port to different IP Read IP tables; iptables -t nat -L -n -v   For redirecting port to different IP and port   echo “1” > /proc/sys/net/ipv4/ip_forward Then, we will add a rule telling to forward the traffic on port 1111 to ip 2.2.2.2 on port 1111: # iptables -t […]
Continue Reading

Outlook Crash – IMAP 0xc0000005 – ISPCONFIG

Outlook Crash – IMAP 0xc0000005 – ISPCONFIG Outlook was crashing on startup every time it synced IMAP folders, not a problem in Thunderbird. This is my fix; Removing the empty first empty line from the files subscriptions and courierimapsubscribed fixes it in /var/vmail/MAILBOX/Maildir/          
Continue Reading

Extract CREATES from SQL dump

Extract CREATES from SQL dump If you are trying to extract the create routines from a SQL dump, this might help you! Basically it picks out the contents between “CREATE” and “\;” You can modify these two variables as need be..   [bash] cat dump.sql |awk ‘/CREATE/,/\;/ { print $0 ; }’ > create.sql   […]
Continue Reading

Restrict Media Wiki Access

Restrict Media Wiki Access To prevent new user registrations add the following to LocalSettings.php # This snippet prevents new registrations from anonymous users # (Sysops can still create user accounts) $wgGroupPermissions['*']['createaccount'] = false; To prevent anonymous users reading pages add the following to LocalSettings.php #Disable reading line, for anonymous (not-logged-in => * ) : $wgGroupPermissions['*']['read'] […]
Continue Reading

Amazon AMI – ‘ launch config name not found’

Amazon AMI – ‘ launch config name not found’ If you are receiving this: as-create-auto-scaling-group:  Service error: Launch configuration name not found – null Ensure you have set the region!! This was missing out of many of the docs I have read and appears that it only affects EU nodes.   For example; as-create-auto-scaling-group xxscale […]
Continue Reading