WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] Appbrowser permisson problems  (Read 2808 times)

Offline kultex

  • Newbie
  • *
  • Posts: 10
[Solved] Appbrowser permisson problems
« on: August 07, 2023, 09:48:11 AM »
I did not use Tiny Core for a long time and have to renew my audio servers I use for exhibitions. SliTaz linux, which I used on the old ones is as good as dead.....

I have bought a couple of Dell Wyse 3040, which will replace the Fujitso Futro A 250. The Wyse 3040 is a real bastard booting linux. There is a guide, which I followed https://www.parkytowers.me.uk/thin/wyse/3040/linux.shtml

I used MX-Linux instead of Puppy - and it boots up fine - I can connect to the net ( I can ping google) - here my grub2 entry

Code: [Select]
menuentry "Tiny Core 64-bit" {
  linux /tceboot/vmlinuz64 loglevel=3 tce=UUID="60ea2da8-76da-4594-9bf3-a3314bfbd0a8"/tce64 waitusb=10:UUID="60ea2da8-76da-4594-9bf3-a3314bfbd0a8" kmap=qwerty/uk vga=791 video=vesafb:ywrap,mtrr:3
  initrd /tceboot/corepure64.gz /tceboot/modules64.gz
}

But I am stuck with the App Browser: I cannot choose the mirror, the App-Browser says no internet and it cannot write to the directory. So its clear, that it is a permisson problem

I chowned the whole /tce64 directory to tc:staff - checked all permissons in /home + /tmp

I put netsurf in /tce64/optional - its not available

I have no idea, what I did wrong?
 

« Last Edit: August 08, 2023, 08:26:57 AM by Rich »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Appbrowser permisson problems
« Reply #1 on: August 07, 2023, 10:42:54 AM »
Could be it didn't find the partition, or it's not a Linux filesystem, or many other things.

First check where the dir points to:
Code: [Select]
ls -l /etc/sysconfig/tcedir
The only barriers that can stop you are the ones you create yourself.

Offline kultex

  • Newbie
  • *
  • Posts: 10
Re: Appbrowser permisson problems
« Reply #2 on: August 07, 2023, 11:01:16 AM »
tc@box:ls -l /etc/sysconfig/tcedir
lrwxrwrwx    1  root      root                         15 Aug  7  14:52   /etc/sysconfig/tcedir  ->  /mnt/sda1/tce64/

EDIT: all files in /mnt/sda1/tce64/optional    have

-r--rw-r--   1    tc      staff

and its definitly EXT4
« Last Edit: August 07, 2023, 11:14:41 AM by kultex »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Appbrowser permisson problems
« Reply #3 on: August 07, 2023, 01:01:22 PM »
Hi kultex
... here my grub2 entry

Code: [Select]
menuentry "Tiny Core 64-bit" {
  linux /tceboot/vmlinuz64 loglevel=3 tce=UUID="60ea2da8-76da-4594-9bf3-a3314bfbd0a8"/tce64 waitusb=10:UUID="60ea2da8-76da-4594-9bf3-a3314bfbd0a8" kmap=qwerty/uk vga=791 video=vesafb:ywrap,mtrr:3
  initrd /tceboot/corepure64.gz /tceboot/modules64.gz}
...
Whether it's causing a problem, I don't know, but your  initrd  line has an error.
corepure64.gz  already contains  modules64.gz, so there's no reason to include it.

Quote
... But I am stuck with the App Browser: I cannot choose the mirror, the App-Browser says no internet and it cannot write to the directory. So its clear, that it is a permisson problem ...
Is it? I called up  App Browser  with internet disconnected and got this pop-up:


I think you need to get your internet connection working first.
Is your network connection wired? Wireless? Do you need drivers?

Post the results of this command:
Code: [Select]
dmesg | grep -E "eth|net|\.bin|firm"The vertical lines in the command are  pipe  symbols. They can be found on the  \  key.

Offline kultex

  • Newbie
  • *
  • Posts: 10
Re: Appbrowser permisson problems
« Reply #4 on: August 07, 2023, 01:19:48 PM »
Hi Rich,

I think, I checked the internet connection with ping 8.8.8.8 and got no package loss - so I thought, it works. The 3040 has wired connection with eth0 - I will check your command as soon as I am home

I booted first without modules64.gz - it was the same.....

----------------------------------------------------------

I checked /usr/bin and there the permission for most apps are        lrwxrwxrwx   -   means CHMOD 777         

only some files like backup have                             -rwxr-xr-x   -   means CHMOD 755

I think, the problem comes from paste the files to the usb drive usind Mx-Linux. I searched in the wiki docu about the permissions, but did not find anything

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Appbrowser permisson problems
« Reply #5 on: August 07, 2023, 01:38:40 PM »
Hi kultex
This is how I bring up my wired connection:
Code: [Select]
tc@E310:~$ cat /opt/eth0.sh
#!/bin/sh
pkill udhcpc
ifconfig eth0 192.168.1.35 netmask 255.255.255.0 broadcast 192.168.1.255 up
route add default gw 192.168.1.1
echo nameserver 192.168.1.1 > /etc/resolv.conf
echo nameserver 68.237.161.12 >> /etc/resolv.conf
It's a script that's in  /opt  and gets called by  /opt/bootlocal.sh
Modify the IP addresses to suit your needs if you decide to use this.

Offline kultex

  • Newbie
  • *
  • Posts: 10
Re: Appbrowser permisson problems
« Reply #6 on: August 07, 2023, 02:05:45 PM »
@Rich   dmesg is not available, so I cannot run your command - I used the Network button from ControlPanel and checked there Use DHCP

and ifconfig  gives me for eth0 the addr 192.168.179.69 - so I am connected to the Internet

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Appbrowser permisson problems
« Reply #7 on: August 07, 2023, 02:43:12 PM »
Hi kultex
@Rich   dmesg is not available, ...
Then something is wrong. dmesg is part of busybox and always present
in  /bin.

Quote
... so I am connected to the Internet
Confirm that this command fetches the list file:
Code: [Select]
wget http://tinycorelinux.net/14.x/x86_64/tcz/grabber.tcz.list

Offline kultex

  • Newbie
  • *
  • Posts: 10
Re: Appbrowser permisson problems
« Reply #8 on: August 07, 2023, 03:23:24 PM »
I set the permisson from the whole tce64 folder to

root:root   and  CHMOD 777    and everything works fine including dmesg / I am writing from midori....

I have no idea if CHMOD 777 for all files in the tce directory is a good idea or intended, but maybe I have to setup another legacy machine to find out the correct permissions....

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Appbrowser permisson problems
« Reply #9 on: August 07, 2023, 04:46:09 PM »
Hi kultex
I just checked my /tce directory and everything is tc:staff
with permissions set to 664 or 644.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 723
Re: Appbrowser permisson problems
« Reply #10 on: August 08, 2023, 02:29:58 AM »
I have seen some files being wrong because of running tce commands with sudo.
That you should not do in tc. Like another Linux dists.

Offline kultex

  • Newbie
  • *
  • Posts: 10
Re: Appbrowser permisson problems
« Reply #11 on: August 08, 2023, 02:37:11 AM »
@Rich -  THX for your help - can you please mark the thread as solved....

I am happy that it works now and I can continue, whenever I have time - I will write a wiki artikle for this case, but this will take time - guess in November, because tonns of work are waiting....

@patrikg  I know, but I just messed around, to get the system running, because I had no idea, whats wrong..... of  course I will start from the beginning

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: [Solved] Appbrowser permisson problems
« Reply #12 on: August 08, 2023, 08:28:45 AM »
Hi kultex
@Rich -  THX for your help - can you please mark the thread as solved ...
Done.  :)