|
|
2012-09-23
, 09:49
|
|
|
Posts: 326 |
Thanked: 122 times |
Joined on Sep 2012
@ Italy
|
#42
|
No no you don't need any packages... All these are system commands...
also if you read what you downloaded you would know they are bash scripts so you either leave them without any file extension or rename them to .sh
).. however, mkswap and swapon/swapoff aren't recognized (are not found)..|
|
2012-09-23
, 10:02
|
|
|
Posts: 2,021 |
Thanked: 1,060 times |
Joined on Apr 2010
@ Hong Kong
|
#43
|
|
|
2012-09-23
, 10:03
|
|
|
Posts: 326 |
Thanked: 122 times |
Joined on Sep 2012
@ Italy
|
#44
|

|
|
2012-09-23
, 10:13
|
|
Moderator |
Posts: 6,215 |
Thanked: 6,402 times |
Joined on Nov 2011
|
#45
|
|
|
2012-09-23
, 10:15
|
|
|
Posts: 326 |
Thanked: 122 times |
Joined on Sep 2012
@ Italy
|
#46
|


|
|
2012-09-23
, 10:38
|
|
Moderator |
Posts: 6,215 |
Thanked: 6,402 times |
Joined on Nov 2011
|
#47
|
|
|
2012-09-23
, 10:51
|
|
|
Posts: 326 |
Thanked: 122 times |
Joined on Sep 2012
@ Italy
|
#48
|
see when you do the swap part yourself u need to use it with /sbin but once you copied the script to /etc you don't need to use /sbin the system works this way
|
|
2012-09-23
, 11:04
|
|
Moderator |
Posts: 6,215 |
Thanked: 6,402 times |
Joined on Nov 2011
|
#49
|
|
|
2012-09-23
, 11:10
|
|
|
Posts: 326 |
Thanked: 122 times |
Joined on Sep 2012
@ Italy
|
#50
|
Yes correct...The setswap0 and rmswap0 are not copied into etc so that's why you need to use /sbin
For swap-add.conf its in /etc so no need the /sbin
Also I personally find it easier to swapon/off on-demand instead of using the setswap0 and rmswap0 files as the file too is 1 line of command and to run the sh script you also need to type one line of command...
Ofcourse you can also do it in such a way that create 2 .desktop files that do swapon/off...the exec can be /sbin/swapon(off) and you are set

The Glorious Lady T.Mavica
Twitter https://twitter.com/TMavica