Page 1 of 2

[SOLVED] cheatcodes not working on porteus.cfg

Posted: 11 Jan 2017, 19:18
by bcuconato
solution: if you're booting UEFI, you must add cheatcodes to the refind.conf file, not the porteus.cfg.

---

I made a porteus USB drive on windows (so the partition format is FAT32, so I need a container .dat file for persistence). I changed the porteus.cfg on the drive (not on the filesystem, as I was on copy2ram mode) to include a few commands, such as kmap:

Code: Select all

LABEL copy2ram
MENU LABEL Copy To RAM
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus/porteussave.dat copy2ram kmap=br timezone=America/Sao_Paulo utc
the thing is: when I boot back, the cheatcodes don't work. I have checked the pendrive on windows and the code is there. strangely, if on the boot menu I press 'F2' and edit the commands, I can add

Code: Select all

changes=/porteus/porteussave.dat copy2ram kmap=br timezone=America/Sao_Paulo utc
, and all works fine -- except the savefile doesn't seem to be loaded (because I've changed the password for guest and root before saving and that was not saved).

Re: cheatcodes not working on porteus.cfg

Posted: 11 Jan 2017, 20:18
by Bogomips
bcuconato wrote:I have checked the pendrive on windows and the code is there. strangely, if on the boot menu I press 'F2' and edit the commands,
What do you have on the command line when you press F2?

Re: cheatcodes not working on porteus.cfg

Posted: 11 Jan 2017, 21:08
by normalGuy
Hello,

I`m using the
changes=UUID:STrING-0F-ChARACtERS/path/file.dat
;
sudo blkid

Re: cheatcodes not working on porteus.cfg

Posted: 12 Jan 2017, 15:47
by bcuconato
Bogomips wrote:What do you have on the command line when you press F2?
I have two commands "copy2ram" and the one which specifies the initrd file (if that's not info enough I can reboot to check! I think it's "initrd=initrd.xz")

Re: cheatcodes not working on porteus.cfg

Posted: 12 Jan 2017, 15:49
by bcuconato
normalGuy wrote:Hello,

I`m using the
changes=UUID:STrING-0F-ChARACtERS/path/file.dat
;
sudo blkid
sorry, I'm not sure I get what I should do. would it be specifying which drive the .dat file is in?

Re: cheatcodes not working on porteus.cfg

Posted: 12 Jan 2017, 16:30
by Bogomips
^ Looks like the edit is being lost within the boot loader sequence.
bcuconato wrote:if on the boot menu I press 'F2' and edit the commands, I can add

Code: Select all

changes=/porteus/porteussave.dat copy2ram kmap=br timezone=America/Sao_Paulo utc
, and all works fine
Please check this from Linux. Also bear in mind that

Code: Select all

APPEND initrd=initrd.xz changes=/porteus/porteussave.dat copy2ram kmap=br timezone=America/Sao_Paulo utc
has to be all on the one line. No new line.

Re: cheatcodes not working on porteus.cfg

Posted: 12 Jan 2017, 21:01
by normalGuy
Hi,

As root:

Code: Select all

blkid
to find the UUID nº without the " " of the /dev/sdxy

Them in porteus.cfg changes example:
changes=UUID:2A6A-AF43/multibootusb/Porteus-XFCE-v3.2.1-x86_64/porteus/porteussave.dat
Full path from /dev to porteus.dat
---------------------
multibootusb is a linux app because I install porteus from other linux. When in windows I go with Yumi - multiboot usb.
--------------------

In xfce4:
/etc/slim.conf edit as root

Code: Select all

auto_login          no

Re: cheatcodes not working on porteus.cfg

Posted: 13 Jan 2017, 00:56
by brokenman
If you are hitting F2 to get boot items then you are probably using the UEFI boot system which consists of icons and is kind of blue/purple. The boot menu in a BIOS system is blue with an image of a house by the water. In the case of UEFI you need to edit the file refind.conf and not porteus.cfg

You can find this file in the EFI/BOOT folder.

Re: cheatcodes not working on porteus.cfg

Posted: 13 Jan 2017, 17:43
by bcuconato
brokenman wrote:If you are hitting F2 to get boot items then you are probably using the UEFI boot system which consists of icons and is kind of blue/purple. The boot menu in a BIOS system is blue with an image of a house by the water. In the case of UEFI you need to edit the file refind.conf and not porteus.cfg

You can find this file in the EFI/BOOT folder.
that's it! thank you, brokenman!

I came here to post that today I booted at a friend's computer and the cheatcodes worked. so that's why.

Re: cheatcodes not working on porteus.cfg

Posted: 13 Jan 2017, 17:45
by bcuconato
thanks Bogomips and normalGuy for the responses. I didn't answer before because for some reason I don't get forum notifications...

[SOLVED] cheatcodes not working on porteus.cfg

Posted: 16 Apr 2021, 17:21
by hope
Bogomips wrote:
12 Jan 2017, 16:30
^ Looks like the edit is being lost within the boot loader sequence.
bcuconato wrote:if on the boot menu I press 'F2' and edit the commands, I can add

Code: Select all

changes=/porteus/porteussave.dat copy2ram kmap=br timezone=America/Sao_Paulo utc
, and all works fine
Please check this from Linux. Also bear in mind that

Code: Select all

APPEND initrd=initrd.xz changes=/porteus/porteussave.dat copy2ram kmap=br timezone=America/Sao_Paulo utc
has to be all on the one line. No new line.
Bogomips ! Fantastic ! I can confirmed that what you have said is completely correct !

I used default(i.e. exactly by following installation to usb procedure on the Porteus's official web page) method to install Porteus to my USB. I noticed that, the porteus.cfg file under /boot/syslinux comes with this line :

APPEND changes=/porteus/

I suggest to change the official web page http://www.porteus.org/tutorials/45-oth ... d-one.html to contain that information too. Otherwise, it is very annoying since you do all instructions but it does not work... You have to look at the forum pages... I tried two times to use my changes file.

Now I had another problem , my cheatcode for changes(below) is working;
(from my porteus.cfg file)

.
.
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz changes=/mnt/sda1/porteus/changes/mychf.dat kmap=tr [Edited : 17'th April of 2021 : I deleted the ")" at the end which is written by mistake)
.
.

but this time kbmap cheat code does not work. :( How can I make it work? Thanks.

[SOLVED] cheatcodes not working on porteus.cfg

Posted: 16 Apr 2021, 20:32
by Ed_P
hope wrote:
16 Apr 2021, 17:21
kmap=tr)
Removing the trailing ) character help?

[SOLVED] cheatcodes not working on porteus.cfg

Posted: 17 Apr 2021, 12:22
by hope
Thanks Ed, but it was my writing mistake while posting, I edited my post, in real there is no ")" at the end but not work.
I also tried to add a new line to porteus.cfg file as:

APPEND kmap=tr

does not work too.

[SOLVED] cheatcodes not working on porteus.cfg

Posted: 17 Apr 2021, 20:58
by Ed_P
Two things to try:

One:
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND changes=/mnt/sda1/porteus/changes/mychf.dat kmap=tr

Two:
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND changes=/mnt/sda1/porteus/changes/mychf.dat kmap=us


Check the /etc/X11/xkb/symbols folder to see if tr is valid.

[SOLVED] cheatcodes not working on porteus.cfg

Posted: 18 Apr 2021, 15:37
by hope
Thanks for reply.
1. I checked that tr is valid.
2. For the second option : In my Porteus, US keyboard comes by default. So I could not understand whether cheatcode works or not. But the first option does not work again :(