Difference between revisions of "Power Suite Ubuntu x86/Q&A"
From ESS-WIKI
Line 6: | Line 6: | ||
= OS Enhancement Utility = | = OS Enhancement Utility = | ||
− | + | == How to restore swap size after Hibernate == | |
− | |||
− | == Hibernate == | ||
When using the hibernate feature, a swap space larger than the size of the memory is allocated on the disk to store the current state of the system during hibernation. | When using the hibernate feature, a swap space larger than the size of the memory is allocated on the disk to store the current state of the system during hibernation. | ||
Line 16: | Line 14: | ||
'''hint:''' Change the swap space to the system's default 2GB. | '''hint:''' Change the swap space to the system's default 2GB. | ||
− | + | <big>'''Usage steps:'''</big> | |
#sudo swapoff /swapfile | #sudo swapoff /swapfile | ||
Line 25: | Line 23: | ||
= Lockdown Utility = | = Lockdown Utility = | ||
+ | == How to escape shell_launcher mode without using breakout key == | ||
+ | It can also escape shell_launcher mode by using remote ssh. <br> | ||
+ | 1. Connect ssh to target PC. | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | $ ssh XXX@XXX.XXX.XXX.XXX | ||
+ | </syntaxhighlight> | ||
+ | 2. Disable shell_launcher service manually, please replace <code>$application</code> with the name of your application. | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | $ sudo snap set $application daemon=false | ||
+ | $ sudo snap set ubuntu-frame daemon=false | ||
+ | $ sudo reboot | ||
+ | </syntaxhighlight> | ||
+ | 3. Then you will be back to the standard ubuntu desktop. |
Revision as of 08:40, 19 March 2024
Contents
General
Image Manager
OS Enhancement Utility
How to restore swap size after Hibernate
When using the hibernate feature, a swap space larger than the size of the memory is allocated on the disk to store the current state of the system during hibernation.
If you no longer need to use the hibernate feature and wish to release the swap space on the disk, you can execute the following commands.
hint: Change the swap space to the system's default 2GB.
Usage steps:
- sudo swapoff /swapfile
- sudo dd if=/dev/zero of=/swapfile bs=1M count=$((2 * 1000)) status=progress
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
- sudo swapon /swapfile
Lockdown Utility
How to escape shell_launcher mode without using breakout key
It can also escape shell_launcher mode by using remote ssh.
1. Connect ssh to target PC.
$ ssh XXX@XXX.XXX.XXX.XXX
2. Disable shell_launcher service manually, please replace $application
with the name of your application.
$ sudo snap set $application daemon=false
$ sudo snap set ubuntu-frame daemon=false
$ sudo reboot
3. Then you will be back to the standard ubuntu desktop.