[SOLVED] cheatcodes not working on porteus.cfg

Post here if you are a new Porteus member and you're looking for some help.
bcuconato
White ninja
White ninja
Posts: 20
Joined: 22 Nov 2016, 00:46
Distribution: porteus 3.2.2 XFCE
Location: rio de janeiro

[SOLVED] cheatcodes not working on porteus.cfg

Post#1 by bcuconato » 11 Jan 2017, 19:18

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).
Last edited by bcuconato on 23 Jan 2017, 16:44, edited 1 time in total.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: cheatcodes not working on porteus.cfg

Post#2 by Bogomips » 11 Jan 2017, 20:18

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?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
normalGuy
Black ninja
Black ninja
Posts: 52
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: cheatcodes not working on porteus.cfg

Post#3 by normalGuy » 11 Jan 2017, 21:08

Hello,

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

bcuconato
White ninja
White ninja
Posts: 20
Joined: 22 Nov 2016, 00:46
Distribution: porteus 3.2.2 XFCE
Location: rio de janeiro

Re: cheatcodes not working on porteus.cfg

Post#4 by bcuconato » 12 Jan 2017, 15:47

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")

bcuconato
White ninja
White ninja
Posts: 20
Joined: 22 Nov 2016, 00:46
Distribution: porteus 3.2.2 XFCE
Location: rio de janeiro

Re: cheatcodes not working on porteus.cfg

Post#5 by bcuconato » 12 Jan 2017, 15:49

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?

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: cheatcodes not working on porteus.cfg

Post#6 by Bogomips » 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.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
normalGuy
Black ninja
Black ninja
Posts: 52
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: cheatcodes not working on porteus.cfg

Post#7 by normalGuy » 12 Jan 2017, 21:01

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

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: cheatcodes not working on porteus.cfg

Post#8 by brokenman » 13 Jan 2017, 00:56

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

bcuconato
White ninja
White ninja
Posts: 20
Joined: 22 Nov 2016, 00:46
Distribution: porteus 3.2.2 XFCE
Location: rio de janeiro

Re: cheatcodes not working on porteus.cfg

Post#9 by bcuconato » 13 Jan 2017, 17:43

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.

bcuconato
White ninja
White ninja
Posts: 20
Joined: 22 Nov 2016, 00:46
Distribution: porteus 3.2.2 XFCE
Location: rio de janeiro

Re: cheatcodes not working on porteus.cfg

Post#10 by bcuconato » 13 Jan 2017, 17:45

thanks Bogomips and normalGuy for the responses. I didn't answer before because for some reason I don't get forum notifications...

hope
Black ninja
Black ninja
Posts: 64
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0rc1 KDE desktop

[SOLVED] cheatcodes not working on porteus.cfg

Post#11 by hope » 16 Apr 2021, 17:21

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.
Last edited by hope on 17 Apr 2021, 12:23, edited 1 time in total.
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

[SOLVED] cheatcodes not working on porteus.cfg

Post#12 by Ed_P » 16 Apr 2021, 20:32

hope wrote:
16 Apr 2021, 17:21
kmap=tr)
Removing the trailing ) character help?
Ed

hope
Black ninja
Black ninja
Posts: 64
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0rc1 KDE desktop

[SOLVED] cheatcodes not working on porteus.cfg

Post#13 by hope » 17 Apr 2021, 12:22

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.
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

[SOLVED] cheatcodes not working on porteus.cfg

Post#14 by Ed_P » 17 Apr 2021, 20:58

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.
Ed

hope
Black ninja
Black ninja
Posts: 64
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0rc1 KDE desktop

[SOLVED] cheatcodes not working on porteus.cfg

Post#15 by hope » 18 Apr 2021, 15:37

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 :(
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

Post Reply