Bit of an obscure one, but I searched Google without finding a specific example.
After back up, I want to set all my files in a given directory to be modified at midnight of the current day. The real modified date is not very important to me, so this command suffices. I have a specific reason for this process, though it’s quite unusual.
Anyway, here goes:
As ever, use with caution / practice on a copy of your data first.
For a while now I’ve wanted to share files between my OSX / Macbook Pro laptop, and one (or ideally several) of my Ubuntu Linux PCs.
Because my laptop has 256gb of hard disk space, and that is consumed at an alarmingly fast rate when recording, and rendering videos.
I’ve tried, and failed, to set up file sharing on Ubuntu on numerous occasions. It is, of course, due to something (or several compounding somethings) I have been doing wrong, but I neither have the patience, nor desire to figure out exactly what.
Enter Docker. Saviour of hair follicles. Provider of solutions.
File Sharing Ubuntu Style, With Docker
Let’s cut right to the chase. Here is some configuration:
Essentially to make this work you need Docker, and Docker Compose installed on the PC (Ubuntu in my case) that you want to share data from.
There are some changes you will need to make.
Make sure each of the volumes match the path to a real directory on your computer.
The part before the colon is on your local PC.
The part after the colon is where that directory will be available inside the resulting running Docker container.
Customise the username and password appropriately.
You can find out what all the no;no;no bits mean in the documentation.
Then put the code from above into a file called docker-compose.yml somewhere on your computer. Once saved off to a file, run docker-compose up (or docker-compose up -d to run in the background) and away you go.
Your Ubuntu File Server For Mac
Once you have your shiny new Ubuntu Samba File Server up and running, how do you connect to it from your Mac?
Pop in the IP address, or (perhaps more nicely) the name of your Ubuntu PC.
The share name corresponds with whatever you called the share in the command section of your docker-compose.yml file.
Once you type in the full path to your share, click Connect.
After a second or two you should see a prompt. Enter the credentials to the share you created in your docker-compose.yml file.
Bonza. You are now connected.
At this point you should have read / write access to the share. This is what I wanted, and allows me to copy all my video files over to the network drive, rather than store them on my over priced, under provisioned hard disk.
Always a fun one when things that were working just fine suddenly break.
In my case, the thing that broke was the
composer update command after upgrading my GitLab server to version 11.
And the way in which the problem manifest was as follows:
Loading composer repositories with packageinformation
The"https://gitlab.server/api/v3/projects/my/bundle"file could notbe downloaded(HTTP/1.1410Gone)
For clarity, this is a personal / internal bundle that I made and share between a bunch of projects. This bundle lives on my internal GitLab server, and as such, requires a little extra config to work properly.
The solution to this problem, in my case, was to update composer.
Yes, shamefully I was 3 minor versions out of date:
/____/___ ____ ___ ____ ____ ________ _____
After updating composer:
Updating toversion1.6.5(stable channel).
Everything began to work as expected.
I do love an easy fix. Thanks to all at the composer team, I do still remember life without this tool. And it wasn’t fun.