[WayBack] Rebooting a Linux server unattended – twm’s blog:
/sbin/shutdown -r now
Simple, but I keep forgetting where Linux has short/long command options and short/long verbs.
–jeroen
Posted by jpluimers on 2020/09/21
[WayBack] Rebooting a Linux server unattended – twm’s blog:
/sbin/shutdown -r now
Simple, but I keep forgetting where Linux has short/long command options and short/long verbs.
–jeroen
Posted in *nix, *nix-tools, Debian, Linux, OpenShift, openSuSE, Power User, Raspbian, RedHat, SuSE Linux, Tumbleweed, Ubuntu | Leave a Comment »
Posted by jpluimers on 2019/01/18
For my link archive: [WayBack] National Cyber Security Centre publish Ubuntu 18.04 LTS Security Guide | Ubuntu blog
Via: [WayBack] A new best practice guide for hardening #Ubuntu Desktop 18.04 from the National Cyber Security Centre (part of UK gov): https://blog.ubuntu.com/2018/07… – Will Cooke – Google+
–jeroen
Posted in *nix, Linux, Power User, Ubuntu | Leave a Comment »
Posted by jpluimers on 2018/12/31
For my archive:
cut -d "|" -f 1-4 -s --output-delimiter " | " /var/log/zypp/history | grep -v " radd "
For comparisons with other package managers, see: [WayBack] Linux Package Managers – Kyle’s Wiki
–jeroen
Posted in *nix, Debian, Linux, openSuSE, Power User, SuSE Linux, Tumbleweed, Ubuntu | Leave a Comment »
Posted by jpluimers on 2018/07/17
I wasn’t expecting it to be so easy to install PowerShell on Mac OS X:
brew install Caskroom/cask/powershell
In the background it executes this script: https://github.com/caskroom/homebrew-cask/blob/master/Casks/powershell.rb
. which indirectly goes through the URL template https://github.com/PowerShell/PowerShell/releases/download/v#{version}/powershell-#{version}.pkg
.
On other non-Windows systems, you have to go through GitHub yourself: https://github.com/powershell/PowerShell. The PowerShell team at Microsoft has many more repositories including the Win32-OpenSSH port which you can find through https://github.com/PowerShell.
At the time of writing, PowerShell was available for these platforms:
Platform Downloads How to Install Windows 10 / Server 2016 (x64) .msi Instructions Windows 8.1 / Server 2012 R2 (x64) .msi Instructions Windows 7 (x64) .msi Instructions Windows 7 (x86) .msi Instructions Ubuntu 16.04 .deb Instructions Ubuntu 14.04 .deb Instructions CentOS 7 .rpm Instructions OpenSUSE 42.1 .rpm Instructions Arch Linux Instructions Many Linux distributions .AppImage Instructions macOS 10.11 .pkg Instructions Docker Instructions
The first version I installed on Mac OS X was this: ==> Downloading https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.17/powershell-6.0.0-alpha.17.pkg
By now I really hope it is out of Alpha state.
–jeroen
via:
Posted in *nix, Apple, CommandLine, Development, iMac, Linux, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, openSuSE, Power User, PowerShell, PowerShell, Scripting, Software Development, SuSE Linux, Ubuntu | Leave a Comment »
Posted by jpluimers on 2018/05/14
Ubuntu is the only Linux system I had that – after installing a text-mode console setup – gets itself in the below state with only running apt update
and apt-get upgrade
.
Preparing to unpack .../archives/apt_1.2.19_armhf.deb ... Failed to stop apt-daily.timer: Connection timed out See system logs and 'systemctl status apt-daily.timer' for details. Failed to get load state of apt-daily.timer: Connection timed out dpkg: warning: subprocess old pre-removal script returned error exit status 1
I could not find meaningful search results for the above thing, nor did systemctl status apt-daily.timer
return anything better than
Failed to get properties: Failed to activate service 'org.freedesktop.systemd1': timed out
Heck, it doesn’t even reboot any more (no helpful search results either):
# reboot Failed to start reboot.target: Failed to activate service 'org.freedesktop.systemd1': timed out See system logs and 'systemctl status reboot.target' for details. Failed to open /dev/initctl: No such device or address Failed to talk to init daemon.
Nor did systemctl status reboot.target
return anything better than
Failed to get properties: Failed to activate service 'org.freedesktop.systemd1': timed out
From the ubuntu-16.04-minimal-odroid-c1-20160817.img.xz base system, it only had these extra packages installed:
etckeeper
tmux
speedtest-cli
sendemail
Despite the workaround below, I still don’t know why I got into this situation and this leaves me with a very uncomfortable feeling.
Too bad some systems (like ODroid) only have Ubuntu based distributions as sorting out stuff like above took me way too much effort.
Posted in *nix, Development, etckeeper, Hardware Development, Internet, Linux, Odroid, Power User, SpeedTest, Ubuntu | 2 Comments »