There is no .deb package in the github Project, and generally all .deb packages for Synergy are quite old, so i rolled my own. Download it here:
There is no .deb package in the github Project, and generally all .deb packages for Synergy are quite old, so i rolled my own. Download it here:
Bekannte Fehlercodes:
sudo apt-get source package
sudo apt-get build-dep package
cd package
nano debian/rules
dch -i
debuild -us -uc -b
dpkg -i ../package.deb
schtasks /create /tn "reboot for updates" /tr "shutdown /r /t 0" /sc once /st 21:59:00 /sd 21.02.2020 /ru "System"
…oder ohne Angabe des Tages, einfach “heute”:
schtasks /create /tn "reboot for updates" /tr "shutdown /r /t 0" /sc once /st 21:59:00 /ru "System"
If you ever find yourself confronted with a Plesk system that is running out of disk space, and you just want to get rid off all the misconfigured “keep forever” backups, here’s how to remove them all from the command line:
/usr/local/psa/admin/bin/pmm-ras --get-dump-list | egrep "name=\".*.xml" | awk -F '"' '{ print $2 }' | xargs -I {} /usr/local/psa/admin/bin/pmm-ras --verbose --debug --delete-dump --dump-specification={} --session-path=/var/log/plesk/PMM
./MegaCli64 -LDSetProp -Cached -LAll -aAll ./MegaCli64 -LDSetProp EnDskCache -LAll -aAll ./MegaCli64 -LDSetProp ADRA -LAall -aAll ./MegaCli64 -LDSetProp WB -LAll -aAll
sudo apt --purge autoremove apport apport-gtk appstream snap epiphany-browser epiphany-browser-data epiphany-browser-data epiphany-extensions firefox
First, boot a Windows 10 or Windows Server 2019 rescue CD and enter the command prompt.
diskpart list disk select disk list part # visually check you are about # to do the right thing select part 1 delete part override select part 2 delete part override
Now continue with step 2.
Boot the gparted Live CD and move your Windows partition to the right, 250MB is usually fine, then continue with step 2.
create partition efi size=128 format quick fs=fat32 label="System" assign letter="k" create partition msr size=100 exit bcdboot C:\windows /s k: /f UEFI
That’s all there is to it! Make sure to set your computer to UEFI ONLY, because it’s past 2020.
On my laptop, I am running full disk encryption (LUKS with a single encrypted ext4 partition), and a single, large swap file as large as my system RAM (16GB).
Here’s how to make it work:
Make your swapfile have at least the size of your systems RAM:
sudo swapoff /swapfile
sudo dd if=/dev/zero of=/swapfile bs=$(cat /proc/meminfo | grep MemTotal | grep -oh '[0-9]*') count=1024 conv=notrunc
sudo mkswap /swapfile
sudo swapon /swapfile
Note the UUID of the partiton containing your swapfile:
$ sudo findmnt -no SOURCE,UUID -T /swapfile
/dev/nvme0n1p5 20562a02-cfa6-42e0-bb9f-5e936ea763d0
Reconfigure the package uswsusp correctly:
sudo apt -y install uswsusp
sudo dpkg-reconfigure -pmedium uswsusp
# Answer "Yes" to continue without swap space
# Select "/dev/disk/by-uuid/20562a02-cfa6-42e0-bb9f-5e936ea763d0" replace the UUID with the result from the previous findmnt command
# Encrypt: "No"
Edit the SystemD hibernate service using sudo systemctl edit systemd-hibernate.service
and fill it with the following content:
[Service]
ExecStart=
ExecStartPre=-/bin/run-parts -v -a pre /lib/systemd/system-sleep
ExecStart=/usr/sbin/s2disk
ExecStartPost=-/bin/run-parts -v --reverse -a post /lib/systemd/system-sleep
Note the offset of your swapfile relative to the partition start:
$ sudo swap-offset /swapfile
resume offset = 34818
Tell grub to resume by editiing your etc/default/grub
NOTE: THE OFFSET IS DIFFERENT FROM SYSTEM TO SYSTEM! YOU NEED TO USE THE VALUE RETURNED ON YOUR SYSTEM!
GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=20562a02-cfa6-42e0-bb9f-5e936ea763d0 resume_offset=34818 quiet splash"
Update grub:
sudo update-grub
Create /etc/initramfs-tools/conf.d/resume
RESUME=UUID=20562a02-cfa6-42e0-bb9e-5e936ea763d0 resume_offset=34816
# Resume from /swapfile
Update initramfs:
sudo update-initramfs -u -k all
Now you can just hibernate your system with
sudo systemctl hibernate
deb http://de.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse deb http://de.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse deb http://de.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse deb http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse deb http://archive.canonical.com/ubuntu focal partner deb-src http://archive.canonical.com/ubuntu focal partner
Most distributions come with a handy tool called powertop, that is able to automatically set kernel parameters to save energy.
sudo powertop --auto-tune
Settings are not permanent, to you can use the following snippet to create and load a systemd unit file to load the settings after rebooting your machine:
cat << EOF | sudo tee /etc/systemd/system/powertop.service [Unit] Description=PowerTOP auto tune [Service] Type=idle Environment="TERM=dumb" ExecStart=/usr/sbin/powertop --auto-tune [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl enable powertop.service systemctl start powertop.service
[root@host ~]# cat /etc/my.cnf
[…]
max_statement_time = 30
F**k Magento 2! 😉
My Xiaomi Robot (V1) just sporadically shut down after around 20 Minutes of cleaning, stating “Error 14”. I looked it up, and Error 14 stands for battery malfunction.
Since i own a lot of 18650 battery packs I’m able to build my own battery from old laptop battery 18650s, so I decided to upload the pinout of the Xiaomi Charging Pad
It took about 6 months of work, and it’s done: gentoo/octane 1.0 has been released.
Grab your copy here: gentoo-octane-v1.0-by-rephlex.tar.xz
It’s basically a complete tarball of the system. So:
What works:
What doesn’t work yet:
IF YOU HAVE THOSE PATCHES, PLEASE CONTACT ME!
If you want to donate money, my paypal is rephlex@rephlex.de 😉
root@SomeLinuxMachine:~# fdisk /dev/sdc
Command (m for help): p
Disk /dev/sdc: 136.8 GiB, 146815737856 bytes, 286749488 sectors
Disk model: BD1468A4C5
Geometry: 255 heads, 63 sectors/track, 17849 cylinders
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: sgi
Device Start End Sectors Size Id Type Attrs
/dev/sdc1 2097153 278921217 276824065 132G a SGI xfs boot
/dev/sdc2 278921218 286744184 7822967 3.7G 82 Linux swap swap
/dev/sdc9 0 2097152 2097153 1G 0 SGI volhdr
/dev/sdc11 0 286744184 286744185 136.7G 6 SGI volume
root@SomeLinuxMachine:~# mount /dev/sdc1 -t ext4 /mnt
root@SomeLinuxMachine:~# cd /mnt
root@SomeLinuxMachine:/mnt# ln -s boot/linux linux
root@SomeLinuxMachine:/mnt# ln -s boot/linux vmlinux
root@SomeLinuxMachine:/mnt# cat /mnt/boot/arc.cf
linux {
image system /linux;
append "root=/dev/sdc1";
append "rw";
append "init=/sbin/init";
append "console=/dev/ttyS0";
}
root@SomeLinuxMachine:/mnt# dvhtool -d /dev/sdc --unix-to-vh /mnt/usr/lib/arcload/sash64 sash64
root@SomeLinuxMachine:/mnt# dvhtool -d /dev/sdc --unix-to-vh /mnt/boot/linux linux
root@SomeLinuxMachine:/mnt# dvhtool -d /dev/sdc --unix-to-vh /mnt/boot/arc.cf arc.cf
root@SomeLinuxMachine:/mnt# dvhtool -d /dev/sdc --print-all
----- partitions -----
Part# 0, start 2097153, blks 276824065, type XFS
Part# 1, start 278921218, blks 7822967, type Linux Swap
Part# 8, start 0, blks 2097153, type Volume Header
Part# 10, start 0, blks 286744185, type Volume
----- bootinfo -----
Root partition: 0
Swap partition: 1
Bootfile: "/unix"
----- directory entries -----
Entry #0, name "sash64", start 4, bytes 141392
Entry #1, name "linux", start 281, bytes 11429200
Entry #2, name "arc.cf", start 22604, bytes 130
root@SomeLinuxMachine:~# cd
root@SomeLinuxMachine:~# umount /mnt
root@SomeLinuxMachine:~# sync
Command Monitor. Type "exit" to return to the menu.
>> setenv SystemPartition xio(0)pci(15)scsi(0)disk(3)rdisk(0)partition(8)
>> setenv OSLoadPartition xio(0)pci(15)scsi(0)disk(3)rdisk(0)partition(8)
>> setenv OSLoadFilename linux
>> setenv OSLoader sash64
>> boot
1216+51120+768+4256+592 entry: 0xa80000005fff0000
ARCLoad version 0.5 (c) 2004-5 Stanislaw Skowronek
Loading configuration for 'linux'...
GRUB Filesystem Error FILE_NOT_FOUND: 'ArcOpen failed'
Loading xio(0)pci(15)scsi(0)disk(3)rdisk(0)partition(8)/linux...
Reading 9488032 bytes... OK.
Entering kernel.
login as: root
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Welcome to gentoo/octane 1.0!