Tiny Core Linux

Tiny Core Base => Corepure64 => Topic started by: vinnie on June 20, 2021, 02:56:42 PM

Title: New installation attempt
Post by: vinnie on June 20, 2021, 02:56:42 PM
Hi everyone, I'm back after almost 10 years of absence, I wanted to try tinycore again and I took a usb stick and tried to reinstall it.
I didn't find a detailed procedure so I improvised by combining what I remembered with what I found.
Well, I didn't succeed.
This is the procedure I used.


https://pastebin.com/YM7hX56U (https://pastebin.com/YM7hX56U)
I tried to write it here but I get an "internal server error"

When I try to boot I read this error:
Code: [Select]
SYSLINUX 6.04 EDD 6.04-pre1 Copyrigh (C) 1994-2015 H. Peter Anvin et al
WARNING: No configuration file found

This error seems to say that extlinux can't find the configuration file (extlinux.cfg), but now compared to before I have a pc with uefi bios, doesn't that have something to do with it?
Title: Re: New installation attempt
Post by: Rich on June 20, 2021, 04:47:26 PM
Hi vinnie
... I didn't find a detailed procedure so I improvised by combining what I remembered with what I found. ...
Maybe this will help:
http://forum.tinycorelinux.net/index.php/topic,19364.0.html

Quote
... $cp -r ./tiny/cde /media/sdc   #why cde instead tce now? ...
That's where extensions are located when using read only media (CD, DVD, etc.). When installing to writable media
tce  is still used.
Title: Re: New installation attempt
Post by: vinnie on June 20, 2021, 05:39:06 PM
Ciao Rich :)

In the meantime of waiting for a response I tried some exclusionary experiments and finally succeeded with the procedure listed here:
https://pastebin.com/vC5QqhvG

The only things actually changed are the directory name cde in tce and extlinux in syslinux.
In the end I've always used extlinux (since the partition is ext4) but somehow using a name other than syslinux doesn't make the directory be recognized during boot (I don't know why).
Anyway I'll also look at the link you passed me, maybe I understand more what happened.

In the meantime, I have these problems to solve:

1) Wireless is not working, my network card is this:
Code: [Select]
tc@box:~$ lspci | grep -i wifi
03:00.0 Network controller: Intel Corporation WiFi Link 5100


2) i would like to change desktop manager with something more comfortable than flwm but i see that xfce is no more, what is a valid alternative?
I wouldn't want gnome, I don't like too heavy stuff, lxde isn't there, the only thing I see is openbox.

3) also the graphics are very slow, i guess there is no acceleration, what should i install?

4) and why if i install a package not added at boot with the command "tce-load -i" I can't unmount the tinycore partition anymore? tinycore doesn't  install everything in ram?
Title: Re: New installation attempt
Post by: vinnie on June 20, 2021, 06:30:06 PM
I can't edit the previuous post but wifi question is solved:
WIFI
http://forum.tinycorelinux.net/index.php/topic,24084.msg151925.html#msg151925
$ tce-load -i firmware-iwlwifi wifi
$ sudo wifi.sh
# read wifi.tcz to autoconnect
A console based tiny wifi scan access point tool.
Select_ from menu or type sudo_ wifi.sh
Creates wifi.db in HOME directory.
Can auto connect to first db entry with use of -a flag, e.g.,
/usr/local/bin/wifi.sh -a 2>&1 > /tmp/wifi.log
Add above to bootlocal or bootsync for quick auto connect.
When mobile, use menu for select list of APs.
Title: Re: New installation attempt
Post by: Rich on June 20, 2021, 06:56:43 PM
Hi vinnie
I can't edit the previuous post but wifi question is solved: ...
You only have 30 minutes after you post to make changes.

... 2) i would like to change desktop manager with something more comfortable than flwm but i see that xfce is no more, what is a valid alternative? ...
fluxbox, hackedbox, icewm, jwm, windowmaker, wmfs2, chamferwm.
Title: Re: New installation attempt
Post by: vinnie on June 20, 2021, 07:31:50 PM
Ok, thanks again rich, I'll look to see if any of those wm's appeal to me, my eyesight isn't great and I really need something that scales well, maybe with dpi like I used to do with xfce.

In the meantime I've solved for the accelerated graphics by simply adding Xorg-7.7-3d and xf86-video-intel to the boot and removing Xfbdev.

I may have also found a small bug in the wifi.sh.
it seems that if you load first wifi.tcz and after firmware-iwlwifi.tcz, wifi.sh seems not to work. But I'm not sure, I'll have to check.
Title: Re: New installation attempt
Post by: Rich on June 20, 2021, 08:42:00 PM
Hi vinnie
... I may have also found a small bug in the wifi.sh.
it seems that if you load first wifi.tcz and after firmware-iwlwifi.tcz, wifi.sh seems not to work. But I'm not sure, I'll have to check.
That has been mentioned in the forum:
http://forum.tinycorelinux.net/index.php/topic,24682.msg156666.html#msg156666
http://forum.tinycorelinux.net/index.php/topic,24619.msg156610.html#msg156610
http://forum.tinycorelinux.net/index.php/topic,24507.msg155384.html#msg155384
http://forum.tinycorelinux.net/index.php/topic,24211.msg153369.html#msg153369
http://forum.tinycorelinux.net/index.php/topic,24084.msg151960.html#msg151960
etc.....
Title: Re: New installation attempt
Post by: vinnie on June 20, 2021, 09:35:02 PM
Okay, I had checked about wifi.tcz but you already replied, so okay.

I also (re)discovered why I couldn't unmount the usb stick, "copy2fs.flg" and now I can unmount the stick without problem.

I'm trying openbox again, ok, so far it's not bad, I can choose the font size, but maybe I'll try windowmaker or icewm too.

I noticed that in the repositories there's not even a task manager, qps was nice.
Title: Re: New installation attempt
Post by: GNUser on June 21, 2021, 06:58:39 AM
Hi, vinnie. Nice to see you here. I'm Bruno who helped you with your AppImage issue.

wifi.tcz works well but I wanted something simpler. If you'd like to try my barebones approach to connecting to wifi, download my "autowifi" script from here:
http://forum.tinycorelinux.net/index.php/topic,24856.msg158369.html#msg158369

Then edit the ssid+password combinations at the top of the script. To get the script's only dependencies:
Code: [Select]
$ tce-load -wi eiwd iwAfter that, anytime you want to connect to the highest-ranked hotspot within range, just do:

Code: [Select]
$ sudo /path/to/autowifi
Title: Re: New installation attempt
Post by: vinceASPECT on June 21, 2021, 08:28:46 AM
Hello, 

Appimage !   yes Sir,  it seems a almost perfect scenario.  An APP within single file that just executes on regular Linux.

Sir, thanks for communicating.

The problem with platforms, software stacks, hardware, software and USERS..........is the "conflicts of interrest" and the oceans of Cans of worms  opened up (on top of your neck)  (anaology)

Let me read your message again..........

Yeah Sir,  WI FI is SO SO complex ...........somehow. 

for a contribution to the forum i re-posted the great advice off another user to just WI FI connect you handheld
android to Tinycore.......it seems straight forward and works.

Sir, here there are two Laptops which work via that method........so they are usable for World Wide Web learning.
(sir, i am always Learning) ......slow so sometimes the computers SPEED can help me.

Sir, i have written a computer program.  Pleased that it works.  It demonstrates INPUT and Output via USER and is infact
an "Computer Operating system" of four lines of code.  Win 64 is also a "Computer operating system" of 52 million lines of code.
(They are still BOTH exactly the very same thing).......

My program demonstrates an extremely  deep understanding of computers.

Anyhow, here i hope to somehow, re-build the win 64 machines.  .......although it's easier using a web computer instance. "SHELL nodes" has win & Lin instances...... at real low price.
That's your new computer(s)right there........ Almost free.  (over DSL)

Sir, true, i still DO find that TCL still functions correctly here on the machines.  This is very useful indeed.

The way it's done is just reloading "extensions" from pen drive each boot......... TCL boots itself from CD disk.

Useful.

thanks for all the forum Input and continued help with the technology...............

C
Title: Re: New installation attempt
Post by: vinnie on June 21, 2021, 01:29:58 PM
Hey @GNUser, glad to find you here too.
I tried the package you provided but unfortunately it doesn't work for me.
Code: [Select]
tc@box:~$ printf "mypass" | sudo_ iwd_passphrase "myssid" >/var/lib/iwd/HomeSweet
Home.psk 2>/dev/null
sh: can't create /var/lib/iwd/HomeSweetHome.psk: Permission denied
tc@box:~$ sudo_ printf "mypass" | sudo_ iwd_passphrase "myssid" >/var/lib/iwd/Home
SweetHome.psk 2>/dev/null
sh: can't create /var/lib/iwd/HomeSweetHome.psk: Permission denied
tc@box:~$ sudo_ su
root@box:/home/tc# printf "mypass" | sudo_ iwd_passphrase "myssid" >/var/lib/iwd/
HomeSweetHome.psk 2>/dev/null
root@box:/home/tc# exit
tc@box:~$ sudo_ iwd -i wlan0 &
tc@box:~$ No Diffie-Hellman support found, WPS will not be available
The following options are missing in the kernel:
        CONFIG_KEY_DH_OPERATIONS
Wireless daemon version 1.6
netconfig: Network configuration is disabled.
Wiphy: 0, Name: phy0
        Permanent Address: 00:16:ea:85:19:f8
        Bands: 2.4 GHz 5 GHz
        Ciphers: CCMP TKIP
        Supported iftypes: ad-hoc station
Wiphy phy0 will only use the default interface

I had to run the first command by force logged in as root (I had to replace with sudo_ the code for the fourm problem)


@vinceASPECT
i didn't understand much but i can say that i've known appimage since it was called "linux portable app" (the games site (https://portablelinuxgames.org/) still works, the counterpart for apps has been closed because there are other official appimage sites, but their outdated repository  (https://sourceforge.net/projects/portable/)is still up) and i've always been a fan (i don't like flatpack and snap because they lack in philosophy, if an application is portable i don't want to have to install an infrastructure otherwise also an application inside virtual box is portable).
However it would be nicer if they built their applications starting from a minimal distro like tinycore so that they could have really portable packages, but maybe they would take up too much space.

Title: Re: New installation attempt
Post by: vinceASPECT on June 21, 2021, 06:46:12 PM
vinnie,

wow , so many appimages of games. (great)

The other web link said source forge is down,

Thanks

c
Title: Re: New installation attempt
Post by: vinceASPECT on June 22, 2021, 02:28:00 AM
Sir,

The links don't offer what they are inferring they  do.  (NO software games are downloadable.)

indeed, however, there are App image repo's that DO offer  App iamges.

Thx

C
Title: Re: New installation attempt
Post by: GNUser on June 22, 2021, 05:10:39 AM
Hi, vinnie. You are right, the instructions in eiwd.tcz.info are incorrect.

The warning about missing CONFIG_KEY_DH_OPERATIONS in the kernel is benign. I get that warning, too, and it doesn't hurt anything.

This works to connect to an open network (let's pretend the SSID is "GreatCafe"):
Code: [Select]
$ sudo touch /var/lib/iwd/GreatCafe.open
$ sudo iwd -i wlan0 &
$ sudo udhcpc -i wlan0

This works to connect to a password-protected network (let's pretend password is "Secret123" and SSID is "HomeSweetHome"):
Code: [Select]
$ printf "[Security]\nPassphrase=Secret123\n" | sudo tee /var/lib/iwd/HomeSweetHome.psk
$ sudo iwd -i wlan0 &
$ sudo udhcpc -i wlan0

Sorry about the wrong directions in the .info file. I'll submit corrected instructions.








Title: Re: New installation attempt
Post by: vinnie on June 22, 2021, 03:20:04 PM
@vinceASPECT
Considering everything you've told me I come to the conclusion that you have problems with sourceforge.
I can get to my second link and I can download the games.
Anyway I mentioned those sites only for historical reason,  you can look for appimages on other sites.


@GNUser
Not a problem, next time I start up tinycore I'll try it!
Title: Re: New installation attempt
Post by: vinnie on June 23, 2021, 02:28:59 PM
Ok, this time it worked, but with the old commands and not with the new ones, I think that last time I made a couple of mistakes, I forgot to install "iw.tcz" and maybe I made a mistake with the path (if it is necessary that the path /var/lib/iwd/myssid ends with the ssid of the wifi connection).
But I always had to use sudo su otherwise it wouldn't work.

Code: [Select]
root@box:/home/tc# printf "mypass" |  iwd_passphrase "myssid" > /var/lib/iwd/myssid
Save this output to /var/lib/iwd/myssid.psk
TIP: You can use this output directly as the
     help messages are printed to stderr.
root@box:/home/tc# iwd -i wlan0 &
root@box:/home/tc# No Diffie-Hellman support found, WPS will not be available
The following options are missing in the kernel:
CONFIG_KEY_DH_OPERATIONS
Wireless daemon version 1.6
netconfig: Network configuration is disabled.
Wiphy: 0, Name: phy0
Permanent Address: 00:16:ea:85:19:f8
Bands: 2.4 GHz 5 GHz
Ciphers: CCMP TKIP
Supported iftypes: ad-hoc station
Wiphy phy0 will only use the default interface
Could not register frame watch type 00d0: -114
Could not register frame watch type 00d0: -114

root@box:/home/tc# udhcpc -i wlan0
udhcpc: started, v1.33.0
udhcpc: sending discover
udhcpc: sending select for 192.168.43.6
udhcpc: lease of 192.168.43.6 obtained, lease time 3600
deleting routers
route: SIOCDELRT: No such process
adding dns 192.168.43.51
root@box:/home/tc# ping www.google.it
PING www.google.it (142.250.184.195): 56 data bytes
64 bytes from 142.250.184.195: seq=0 ttl=55 time=110.276 ms
64 bytes from 142.250.184.195: seq=1 ttl=55 time=85.981 ms
^C
--- www.google.it ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 85.981/98.128/110.276 ms

Instead the last commands you gave me didn't work:
Code: [Select]
tc@box:~$ printf "[Security]\nPassphrase=mypass\n" | sudo tee /var/lib/iwd/ima
c.psk
[Security]
Passphrase=mypass
tc@box:~$ cat /var/lib/iwd/myssid.psk
[Security]
Passphrase=mypass
tc@box:~$ sudo iwd -i wlan0 &
tc@box:~$ No Diffie-Hellman support found, WPS will not be available
The following options are missing in the kernel:
CONFIG_KEY_DH_OPERATIONS
Wireless daemon version 1.6
netconfig: Network configuration is disabled.
Wiphy: 0, Name: phy0
Permanent Address: 00:16:ea:85:19:f8
Bands: 2.4 GHz 5 GHz
Ciphers: CCMP TKIP
Supported iftypes: ad-hoc station
Wiphy phy0 will only use the default interface

tc@box:~$ authentication timed out

tc@box:~$ sudo udhcpc -i wlan0
udhcpc: started, v1.33.0
udhcpc: sending discover
udhcpc: sending discover
...
Title: Re: New installation attempt
Post by: GNUser on June 24, 2021, 06:25:10 AM
Hi, vinnie. After you enter this command:
Code: [Select]
tc@box:~$ sudo iwd -i wlan0 &You should wait just a few seconds (5 seconds or so), then press Enter to get a command prompt, then enter the  udhcpc  command.

The authentication times out if you wait too long after the  iwd  command.

P.S. You don't need  iw.tcz  if you are going to be connecting manually like this. iw.tcz is only necessary if you plan on using my autowifi script (the script uses  iw  to scan for available SSIDs). The whole point (and beauty) of eiwd.tcz is that it has no dependencies beyond what the kernel provides.
Title: Re: New installation attempt
Post by: vinnie on July 01, 2021, 04:10:49 PM
In the meantime I went a little further with the tinycore configuration and fixed the start boot menu.
It wasn't working because I had to copy the files /usr/share/syslinux/menu.c32 and /usr/share/syslinux/libutil.c32 of the same version of syslinux from which it installs on the usb stick, if they are not those of the same version the menu don't work.

for now i have two entry with distinct tce and bootlist:
Code: [Select]
DEFAULT tc
UI menu.c32
PROMPT 0
TIMEOUT 600
ONTIMEOUT tc
F1 f1
F2 f2
F3 f3
F4 f4

MENU TITLE TinyCorePure64
MENU MARGIN 10
MENU VSHIFT 5
MENU ROWS 5
MENU TABMSGROW 14
MENU TABMSG Press ENTER to boot, TAB to edit, or press F1 for more information.
MENU HELPMSGROW 15
MENU HELPMSGENDROW -3
MENU AUTOBOOT BIOS default device boot in # second{,s}...

LABEL_
 tc
MENU LABEL tinycore
TEXT HELP
Boot TinyCorePure64 with Embedded X/GUI extensions.
Boot media is removable. Use TAB to edit options for specific needs.
ENDTEXT
KERNEL /boot/vmlinuz64
INITRD /boot/corepure64.gz
APPEND vga=791 waitusb=5:UUID="8579668e-ddb0-4a8c-990b-034d0a2455bb"

LABEL_ kiosk
MENU LABEL kiosk
TEXT HELP
One full screen app all in ram.
ENDTEXT
KERNEL /boot/vmlinuz64
INITRD /boot/corepure64.gz
APPEND xsetup waitusb=5:UUID="8579668e-ddb0-4a8c-990b-034d0a2455bb" tce=UUID="8579668e-ddb0-4a8c-990b-034d0a2455bb"/tce lst=kiosk.lst mydata=kiosk
*_ added at the words label


I wanted to try to make a version with only one program in full screen startup, I was reading in the forum that xinit is not there and that you have to modify the file ~/.xsession I managed and it works commenting the "$DESKTOP" line and adding the software execution command at the end.

But there is a strange problem, the applications don't start in full screen and I can't enlarge them because there is only X (no control over windows). If I press f11 as in the case of firefox the application does not expand to occupy the whole screen, but I can wander with the mouse in all regions of the screen.
Would anyone know how to do this? I was thinking of installing a tilling wm at this point although I would have preferred only with X.
Title: Re: New installation attempt
Post by: curaga on July 01, 2021, 11:17:15 PM
Install a minimal wm, use apps that can resize their window, or use some util that can resize windows (xdotool?).
Title: Re: New installation attempt
Post by: vinnie on July 04, 2021, 11:04:21 AM
In the end I opted for ratpoison that seems to me the smallest wm in the repositories (with tce already in boot it practically doesn't ask me any dependency).
The only problem is that it doesn't seem to take the configuration file ~/.ratpoisonrc , but i'm not sure, i'll do some tests.
p.s. the first step is accomplished, vscodium starts with very few dependencies, this is my bootlist:
Code: [Select]
libXfont.tcz
Xorg-7.7-3d.tcz
xf86-video-intel.tcz
ratpoison.tcz
#for vscodium
nss.tcz
gtk3.tcz
libasound.tcz
libcups.tcz
If someone wants to make the tcz, it is enough simply unzipping this archive:
https://github.com/VSCodium/vscodium/releases/download/1.57.1/VSCodium-linux-x64-1.57.1.tar.gz and create this two simlinks:
Code: [Select]
$ sudo ln -s /lib /lib64
$ sudo ln -s /usr/local/etc/fonts /etc/fonts
Title: Re: New installation attempt
Post by: rullolex on July 04, 2021, 11:13:43 AM
The only problem is that it doesn't seem to take the configuration file ~/.ratpoisonrc , but i'm not sure, i'll do some tests.

Is It possibile you have to back up the file?
Title: Re: New installation attempt
Post by: vinnie on July 04, 2021, 12:03:11 PM
Whit my poor memory yes, this is also possible but, in this case the problem was the name of the keystroke, i want to use '<' but its name is 'less'.
Here the explanation: http://ratpoison.nongnu.org/doc/Keystrokes.html
Title: Re: New installation attempt
Post by: rullolex on July 05, 2021, 08:52:28 AM
Hi Vinnie,

Maybe you can create a custom kmap?
Title: Re: New installation attempt
Post by: vinnie on July 05, 2021, 03:58:56 PM
I'm not sure I understood correctly, however the problem is solved, I only had to write 'less' instead of '<' because some keys are identified with a name and not with their symbol in the ratpoison configuration file.
To exemplify I show you my current ~/.ratpoisonrc

Code: [Select]
### commutatore di ratpoison
escape C-less

### finestre ant-tab/alt-shift-tab ctrl-alt-destra/ctrl-alt-sinistra
definekey top M-Tab next
definekey top M-ISO_Left_Tab prev
definekey top C-M-Right next
definekey top C-M-Left prev

### lanciatore alt-`
definekey top M-grave exec

### terminale similtendina alt-\ alt-shift-\ chiude (finestre)
definekey top M-backslash exec aterm
definekey top M-bar delete


As you can see the second line "escape C-less" is for control + <
Title: Re: New installation attempt
Post by: vinnie on July 05, 2021, 05:38:04 PM
Hi Vinnie,

Maybe you can create a custom kmap?

I casually read this now in the documentation (http://ratpoison.sourceforge.net/docs/Commands.html), you are not referring to this are you?
Quote
newkmap kmap    Command
Create a new keymap named kmap.
Title: Re: New installation attempt
Post by: rullolex on July 05, 2021, 10:48:47 PM
Hi Vinnie,

Maybe you can create a custom kmap?

I casually read this now in the documentation (http://ratpoison.sourceforge.net/docs/Commands.html), you are not referring to this are you?
Quote
newkmap kmap    Command
Create a new keymap named kmap.


Hi Vinnie,

Yes
Title: Re: New installation attempt
Post by: vinnie on July 06, 2021, 06:03:54 AM
I don't know what it's really for, is it to change the keyboard layout for ratpoison only?
Title: Re: New installation attempt
Post by: rullolex on July 06, 2021, 07:52:38 AM
Hi Vinnie,

I don't know, I have only read this:

http://ratpoison.nongnu.org/doc/Key-Maps.html#Key-Maps

I think you have already found the default keys:

http://ratpoison.nongnu.org/doc/Default-Key-Bindings.html#Default-Key-Bindings
Title: Re: New installation attempt
Post by: vinnie on July 06, 2021, 12:26:06 PM
I have read summarily and I believe that you are right, if I knew better the content of that page I would understand what happens with the assignment of the commands.
However for now it's working, so for now I'm happy with it :)