stockmind / gpd-pocket-ubuntu-respin

Collection of scripts and tweaks to adapt Ubuntu and Linux Mint ISO images to let them run smooth on GPD Pocket
349 stars 35 forks source link

Parrot security #106

Open la-fonderie-libre opened 6 years ago

la-fonderie-libre commented 6 years ago

Hello, I've tried to respin Parrot Security OS which is a debian based distro with gpd-pocket-ubuntu-respin, but the script tells me it's not supported, How could I do to get It works ? Thanks for any help

td

la-fonderie-libre commented 6 years ago

I've installed the distro and used post-install script, there's still some buggy things which need more tweaks but it works. I will share it when it'll be done.

stockmind commented 6 years ago

Sorry for late reply, yeah, you can install the normal ISO and then run just the update.sh script accordingly to the Desktop Environment of your system.

You can try to reach the author of isorespin and ask if he want to support that distro natively: http://linuxiumcomau.blogspot.com/

If you are encountering some issues with this distro and want help we can continue discussion here :)

la-fonderie-libre commented 6 years ago

Hi, Ive sent an email to linuxium like you suggested to me. for the moment I still have some troubles, I still have screen freezes, I changed my fan config file /etc/gpdfand.conf to : TIME=5 TURBO=60 MIN=35 MED=45 MAX=55. Ive tried to change my kernel, linux-image-4.15.0-stockmind-gpdpocket, linux-image-4.14.0-11-generic, and linux-image-4.12.0-rc7-custom. I also tried to install nexus ppa but Ive got this error : E: The repository 'https://apt.nexus511.net/repo/dists/stable/main/binary debian Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Ive imported the key and also tried forcing unauthorized ppa. nothing works. I downloaded the ppa in my local folder and installed each file manually with gdebi. sound and volume disappear at each reboot. all the other things work. do you have any ideas ? best regards thibault

stockmind commented 6 years ago

One thing at a time. List briefly the issues you are encountering and we fix them one by one.

Check this and post output of problem reporting script: https://github.com/stockmind/gpd-pocket-ubuntu-respin#problem-reporting

First thing: screen freezes randomly? Parrot is based on MATE desktop environment right? What BIOS version are you on? Have you checked this? (this apply to unlocked bios) https://github.com/stockmind/gpd-pocket-ubuntu-respin#system-freeze-or-hangs-on-high-temperatures-high-load-or-randomly Also, if you are on a kernel 4.15+ the gpdfan daemon will not work and the kernel fan module will be used instead. If this is the case, the gpdfand.conf file will be ignored and you need to pass kernel parameters by GRUB if you want to change the temps triggers, but this shouldn't be needed.

Then please, stick to recent kernels compiled for the GPD so we are sure that all the driver and patches required are there. So do not use or boot from generic/mainline kernels or kernels older than 4.15-rc5 if possible. Also Nexus based lot of his files on my configurations and chrisawcom ones. So we share almost same confs, his should just be older right now. So simply a run of my "update.sh" should just place everything in the right place with right permissions, like his .debs do separately. No need to do this by hand or force apt configuration of his repository.

Problem two: Sound stop working from one reboot to another?

Audio is strictly related to https://github.com/stockmind/gpd-pocket-ubuntu-respin/blob/master/audio/chtrt5645.conf and https://github.com/stockmind/gpd-pocket-ubuntu-respin/blob/master/audio/HiFi.conf to work. Also alsa-lib version seems to matter (at least for HDMI).

Until now i've never seen this issue on Mint or Ubuntu with all the different Desktop Environment. Those configs above have always worked fine, if they were in the right place. And i had no reports about problem like this in the past. Are you sure that are you booting from the right kernel (mine or another, but compiled for GPD) and all the audio files are the same of my repository?

Also my files for audio are updated with latest patches from Hans de Goede and Bard Liao. This has been done around kernel version 4.15-rc5 to enable microphone (internal and external). So you should also see microphone working.

Please check your audio settings (input and output devices) and post a screenshot if possible

la-fonderie-libre commented 6 years ago

Hello, First, thank you for your help ! then, Ive updated my bios with the last unlocked version, it effectively seems that Ive no more freeze issues. I can show you my report : Kernel: 4.15.0-stockmind-gpdpocket Desktop Environment: Display: :0 Login: ExecStart=/usr/sbin/lightdm Monitor: DSI1 connected primary 1920x1200+0+0 right (normal left inverted right x axis y axis) 95mm x 151mm Scripts: gpd-fan gpdfand gpdscreen gpdscreen-indicator EFI: EFI Release Date: 08/07/2017

however, I`ve always been in the right place to update script and kernel, but some things still miss, if run the audio wrapper.sh : ─[root@parrot]─[/home/txd/gpd-pocket-ubuntu-respin/audio] └──╼ #./wrapper-audio.sh cp: cannot stat 'HiFi.conf': No such file or directory cp: cannot stat 'chtrt5645.conf': No such file or directory cp: cannot stat 'headphone-jack': No such file or directory cp: cannot stat 'headphone-jack.sh': No such file or directory chmod: cannot access '/etc/acpi/headphone-jack.sh': No such file or directory

but if I list the files : [root@parrot]─[/home/txd/gpd-pocket-ubuntu-respin/audio] └──╼ #ls HiFi.conf headphone-jack install-headphone-auto-switch.sh chtrt5645.conf headphone-jack.sh wrapper-audio.sh

I can also show you the output for update.sh in the main folder :

┌─[root@parrot]─[/home/txd/gpd-pocket-ubuntu-respin] └──╼ #sudo ./update.sh Display setting: Xorg-Standard Hit:1 http://archive.parrotsec.org/parrot stable InRelease Hit:2 http://deb.parrotsec.org/parrot stable InRelease

Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package bcmwl-kernel-source Install required packages... Reading package lists... Done Building dependency tree
Reading state information... Done Package libva1 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'libva1' has no installation candidate Remove old configuration files... Update display files... Patching lightdm files... Adding envrironment variables to prevent glitches... Environment variable COGL_ATLAS_DEFAULT_BLIT_MODE already set Environment variable LIBGL_DRI3_DISABLE already set Clonage dans 'gpd-pocket-screen-indicator'... remote: Counting objects: 309, done. remote: Compressing objects: 100% (21/21), done. remote: Total 309 (delta 21), reused 29 (delta 15), pack-reused 273 Réception d'objets: 100% (309/309), 140.69 KiB | 422.00 KiB/s, fait. Résolution des deltas: 100% (177/177), fait. Failed to stop gpdtouch.service: Unit gpdtouch.service not loaded. Failed to stop gpdtouch-wake.service: Unit gpdtouch-wake.service not loaded. Failed to disable unit: Unit file gpdtouch.service does not exist. Failed to disable unit: Unit file gpdtouch-wake.service does not exist. REBOOT REQUIRED! Update GPD Fan daemon Check modules... pwm-lpss module already present pwm-lpss-platform module already present btusb module already present i915 module already present Update console setup Update modules of last kernel update-initramfs: Generating /boot/initrd.img-4.15.0-stockmind-gpdpocket WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead. Update/Install network files... brcmfmac module already in SUSPEND_MODULE Update/Install audio files... cp: cannot create regular file '/etc/acpi/events/headphone-jack': No such file or directory cp: cannot create regular file '/etc/acpi/headphone-jack.sh': No such file or directory chmod: cannot access '/etc/acpi/headphone-jack.sh': No such file or directory rm: cannot remove '/root/.config/pulse/*': No such file or directory set card profile already ok! set card sink already ok! set sink port already ok! Generating grub configuration file ... Found background image: /usr/share/images/desktop-base/desktop-grub.png Found linux image: /boot/vmlinuz-4.15.0-stockmind-gpdpocket Found initrd image: /boot/initrd.img-4.15.0-stockmind-gpdpocket done

la-fonderie-libre commented 6 years ago

should it be because Parrot uses pulsaudio and not alsa which could explains sound isn`t working?

la-fonderie-libre commented 6 years ago

No more help?

stockmind commented 6 years ago

Not given up yet, i'm only really busy on these days, but will try a local install this weekend and see if i can sort out and fix the issues you are facing :)

la-fonderie-libre commented 6 years ago

Thank you Stockmind! I'm trying to make a distributable Iso to make see easier what it looks like

la-fonderie-libre commented 6 years ago

Sorry I can't system is greater than 4gb, respin doesn't let me make an Iso, moreover I've no more wlan0...

stockmind commented 6 years ago

It will take me more time than expected, but will update you asap.

stockmind commented 6 years ago

Updated post-install scripts to work with Parrot Security too. I suggest you to do a clean install and run ONLY my update.sh and script update-kernel.sh without arguments to setup everything correctly. Do not execute any other script of my repository not intended to be used for update an installed system, and don't try to force install Nexus511 packages as it will just overwrite configs with old ones. If WiFi doesn't work i suggest you to tether it to USB from your phone or use a dongle/ethernet adapter. There were some missing folders and packages, now everything will be in the right place. There is still a problem with audio, you can comment those lines to remove my patches and try to find a solution:

in /etc/pulse/default.pa comment out last three lines:

#set-card-profile alsa_card.platform-cht-bsw-rt5645 HiFi
#set-default-sink alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink
#set-sink-port alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink [Out] Speaker

in /etc/acpi delete headphone-jack scripts:

sudo rm /etc/acpi/events/headphone-jack
sudo rm /etc/acpi/headphone-jack.sh

Reboot and audio configs will be the default ones. I'm not sure why audio doesn't work and i don't know when i could do more tests, but everything else should work as expected!

Future runs of update.sh script will recreate those lines and files, so be sure to remove them if you want to work on the issue and have a clean audio conf.

Let me know

la-fonderie-libre commented 6 years ago

Hi, thanks again Stockmind for helping me. I made a clean install and run the updated script only, it works until the upgrade of the distribution. It brokes everything. I still have messages like "not authorized to control networking" and task bar twinkling. I follow your instructions to make the sound working but it doesn't.

stockmind commented 6 years ago

Thanks for feedback. After you upgraded the system, have you run again the update.sh script to let it repatch system configurations? I can also see the odd "twinkling" graphics sometimes, it seems that something is broken but not sure of what. Lot of packages and configs are different on this distro and it doesn't seems easy to support.

As i said audio gives problems to me too. With my patches module for audio just doesn't load anymore. Removing patches module will load and work with audio keys but no audio will come out from the speakers. I don't know why. You can try to play around with "alsamixer" or equivalent softwares if you have some spare time and try to figure out what could be the problem.

If you want a stable system you should use Ubuntu or Linux Mint as they are known to work for sure. Support Parrot doesn't seems an easy task.

la-fonderie-libre commented 6 years ago

Yes I did run the script again and rebuild the kernel, but I'm always stuck one way or another. I understand that's not easy to support. I'm using other distros on many different machines for years but never had hard times like this, that's why I asked for help... I will not give up and will try other things. You helped me a lot so thank you for this😉. I'm coming back with news as soon as possible.

Le sam. 31 mars 2018 à 19:18, stockmind notifications@github.com a écrit :

Thanks for feedback. After you upgraded the system, have you run again the update.sh script to let it repatch system configurations? I can also see the odd "twinkling" graphics sometimes, it seems that something is broken but not sure of what. Lot of packages and configs are different on this distro and it doesn't seems easy to support.

As i said audio gives problems to me too. With my patches module for audio just doesn't load anymore. Removing patches module will load and work with audio keys but no audio will come out from the speakers. I don't know why. You can try to play around with "alsamixer" or equivalent softwares if you have some spare time and try to figure out what could be the problem.

If you want a stable system you should use Ubuntu or Linux Mint as they are known to work for sure. Support Parrot doesn't seems an easy task.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/stockmind/gpd-pocket-ubuntu-respin/issues/106#issuecomment-377708789, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxk6elXr6_2QVnTLWWw0FWs2l4l3ePVks5tj7pUgaJpZM4SXFTy .

kenjijoo commented 3 years ago

Hi, I tried on GPD with Parrot security. Most of my purpose were for display size and fan control. Both looks fine and I am happy. However, tightvnc is doing odd thing. Such as, fonts are too large and makes whole thing unusable. I tried to configure vnc settings but none of them work. Looks like this tool is overwriting vnc setting also somehow? Could anyone tell me any hint for solve this issue Thanks