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

From ESS-WIKI
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 14: 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>
+
<big>'''Steps:'''</big>
 +
<syntaxhighlight lang="bash">
 +
$ 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
 +
</syntaxhighlight>
  
#sudo&nbsp;swapoff&nbsp;/swapfile
+
= Lockdown Utility =
#sudo&nbsp;dd&nbsp;if=/dev/zero&nbsp;of=/swapfile&nbsp;bs=1M&nbsp;count=$((2 *&nbsp;1000))&nbsp;status=progress
 
#sudo&nbsp;chmod&nbsp;600&nbsp;/swapfile
 
#sudo&nbsp;mkswap&nbsp;/swapfile
 
#sudo&nbsp;swapon&nbsp;/swapfile
 
  
= Lockdown Utility =
 
 
== How to escape shell_launcher mode without using breakout key ==
 
== 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.
+
It can also escape shell_launcher mode by using remote ssh.<br/> 1. Connect ssh to target PC.
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
$ ssh XXX@XXX.XXX.XXX.XXX
 
$ ssh XXX@XXX.XXX.XXX.XXX
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 
2. Disable shell_launcher service manually, please replace <code>$application</code> with the name of your application.
 
2. Disable shell_launcher service manually, please replace <code>$application</code> with the name of your application.
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Line 35: Line 38:
 
$ sudo reboot
 
$ sudo reboot
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 
3. Then you will be back to the standard ubuntu desktop.
 
3. Then you will be back to the standard ubuntu desktop.

Latest revision as of 02:08, 20 March 2024

General

Image Manager

OS Enhancement Utility

How to restore swap size after enable 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.

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.