Categories
Development Linux Ubuntu

bash script to back up a directory

I’m writing a script to back up a directory by user and for a specific number of days. I’m new to bash so the fix could be very simple but I can’t see it. When I run it return “syntax error near unexpected token ‘)’“ # #!/bin/bash SCRDIR = ${1? Error: No directory given} DATE […]

Categories
CMS Development Drupal

Using Access Filter Module to redirect unauthenticated user to an external site

Here’s the module: https://www.drupal.org/project/access_filter Wondering how/if I can use this module to redirect an unauthenticated user to an external site when they attempt to access a certain page but if user is logged in, allow access to that page. This is what I am working with after installing the module: What Rules and Conditions would […]

Categories
Development Linux Ubuntu

18.04: Lost HDMI sound option when upgraded from 14.04

I don’t get an HDMI option for sound devices in the “settings” application on one PC yet have it on the other. When I had 14.04 on the PC in question, there was an “HDMI” selection in the sound settings list, but when it was upgraded to 18.04, that disappeared. I do know on this […]

Categories
Development Linux Ubuntu

Root took over account in 18.04

I had a login loop on one my accounts. The other ones appear to work. When I use Ctrl+Alt+F3 to open the terminal, log into my normal account and type sudo xstart, I seem to be logging into root user with my normal home directory. How do I fix this so I can log in […]

Categories
Development Linux Ubuntu

x11 Forwarding: Google Chrome and Chromium browsers grey out, other apps show OK

At my work where we use X11 servers and in a lab environment, Google Chrome and Chromium Browser display as a grey panel when forwarded through SSH X11. This is happening on Ubuntu 16.04 & 18.04 and LinuxMint 19.2 & 19.3. Basically I initiate an X11 session like any other: ssh -X username@xserver##.domain.com And I […]

Categories
Development System & Network

Squid random outgoing IP address on each request

I have a server with 10 IPv4 addresses and I want Squid to randomly pick one of those IPv4 addresses for each request. My current configuration for this is like: acl random1 random 1/10 acl random2 random 1/10 acl random3 random 1/10 acl random4 random 1/10 acl random5 random 1/10 acl random6 random 1/10 acl […]

Categories
Development System & Network

Sending email from VMware vCenter 6.7 fails

Similar to this kb article except this is for vCenter 6.7. After configuring an SMTP server for the appliance, email doesn’t get delivered. /var/log/messages shows the same messages as in the article. However, in 6.7, there is no SuSEconfig binary (from Step 8 in the KB article) and sendmail config is in /etc/mail/sendmail.mc and /etc/mail/sendmail.cf […]

Categories
Development System & Network

Working with large Adobe Indesign files over the network

Problem: MAC User are facing lag/delay while working on Adobe Indesign files and other Adobe products. Setup: All users are on MAC or iMAC or MAC Book Pro. We have a Gigabit Network. Storage is being done on a Microsoft Windows Server with Acronis File Connect on it (Working on Acronis latest version) I need […]

Categories
Development System & Network

How to create a weekly backup of mariadb and site files to a specific file via cronjob?

I want to know how I can backup my database and my site files on a weekly basis via cronjob on centos 8. Thanks you.

Categories
Development System & Network

Pro’s and Con’s for changing from apache to nginx while in production? [resolved]

I want to change from apache to nginx because is much better. Problem site is up and running. What would be de pros and cons for doing this ? in this situation ? Update: apache + nginx best choice i think so i decided to gao with that. netstat -plant | grep LISTEN tcp 0 […]