In this article I will show you how to create and set up a syslog-ng in docker container and redirect logs from another container to it.
You should have already a running docker set up. If you do not know how to do that, do a search on this page as I have created several articles for it. Also, web is full of it.
I have recently switched to a retina Macbook pro and screen wise, some things are totally different there.
Like this situation where guest window of a virtualbox machine is so small that you cannot use it. So small than it is close to the preview thumbnail from VirtualBox manager.
On a Macbook pro with Retina display you cannot get to native resolution in the system settings.
For example, on Macbook Pro 16 inch, the native resolution is 3072x1920 but the maximum available scaled resolution is 2048x1280. The reason is on the native resolution everything looks very tiny on this small screen.
Of course, this doesn't mean you cannot get to that resolution.
So, you have a mac computer with touch id and you would like to use it also when you do "sudo su -" on Terminal but there is no menu to let you set up this.
You actually can, via Terminal :)
PS: there is one small downside. You need to do this after each OS upgrade. But since it doesn't happen so often and the procedure is very simple, I am ok with it.
How to start services in certain order with Systemd?
Have been reading a bunch of documentation to figure this one out.
By the way, this also includes the SysV startup scripts (which are called by systemd).
So, in this below example (real situation), I have Docker that needs ocfs2 filesystem which runs on top of DRBD.
Default startup configuration was not quite ok because docker almost always started first and ocfs2 was started in the same time with drbd and failed to mount the ocfs2 filesystem.
Linux is powerful and whatever linux based, is powerful too.
Cygwin can help you in many ways and in this article I will explain how easy is to clone an entire disk with it.
Proprietary and costly applications? HA! :)
!!! WARNING !!!
>>> DO THIS VERY CAREFUL BECAUSE WRONG CHOICES CAN DESTROY DATA <<<
!!! WARNING !!!
Ever wonder how to connect via ssh to a windows machine?
Of course there are other ways but I like this one better because it allows you to access the most powerful tool ever created for Windows: cygwin :)
So, here we go.
1. Run cygwin as administrator
Right click on the cygwin icon and select "Run as administrator".
I can write tons of bla bla about block devices, UUID and all related but the internet (especially wikipedia) is full of this so I will let you do a search if you are more interested about any of this.
So, I will keep it simple: you arrived here because you need a fast way to see the UUIDs of your block devices (call them hdds, partitions, as you like).
There are various tools and commands to achieve that. Read on.
Some of us (like me) still have old macbooks that came with superdrive. Naturally, we have replaced it long time ago with a secondary disk.
Wondering what to do with the now apparent "useless" eject button?
Find below some useful key combinations.
Shows a dialog box with following options:
go to sleep
If you need (as I do) multitab support in mintty, you can have it with the help of ... wait for it ... SCREEN!
It was always there but I haven't got this brilliant idea to use it.
Also, do not get fulled about the title as this works in any linux like environment.
Some of you already know that Windows zip combines several different functionalities:
- compression (like gzip),
- archiving multiple files into one (like tar),
- encryption (like gpg),
- plus some other.
Unix and Unix-like operating systems tend to split them so do not be surprised to have gzip for compression, tar for archiving files into one and gpg to encrypt.
I use Maintenance app to do some checks and cache cleanup from time to time. Today I got a message that my disk should be checked and repaired while in recovery.
So I did and I was surprised to find out this error while checking/repairing /: snap_metadata_val object: invalid extentref_tree_oid
Apparently this is related to local snapshots of time machine and one of them is in weird state indeed: