Difference between revisions of "Power Suite Ubuntu x86/Q&A"

From ESS-WIKI
Jump to: navigation, search
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.
  
=== '''Usage steps:''' ===
+
<big>'''Usage steps:'''</big>
  
 
#sudo&nbsp;swapoff&nbsp;/swapfile  
 
#sudo&nbsp;swapoff&nbsp;/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

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:

  1. sudo swapoff /swapfile
  2. sudo dd if=/dev/zero of=/swapfile bs=1M count=$((2 * 1000)) status=progress
  3. sudo chmod 600 /swapfile
  4. sudo mkswap /swapfile
  5. 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.