WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Recent Posts

Pages: [1] 2 3 ... 10
1
Micro Core / Re: /sbin/autologin directly from /inittab
« Last post by nick65go on Today at 10:05:01 AM »
Job done, I tested by extracting a virgin root64.gz, then I "remaster" it with both modifications/simplifications (which I proposed), and cold re-booted fresh (base + norestore). ALL is OK.I check them (with cat /etc/inittab, cat /sbin/autologin) to see that the modifications are really in place.Then from (already logged tc user) I "exit", and at login prompt I put tc, and voila: I am  back logged.

PS: I used a laptop (so tty1 was not a problem) with AMD64 cpu. But should work on any cpu (I did not tested for arm, pi-core etc).
PS2: The changes are pure theoretically/didactically, because no speed gain. But I like CLEAR, only necessary shell commands./scripts.

I do not take any pride, neither affront, if these are not interesting for tc users. Each on their way.
Regards, and thanks for Tinycore free software.
2
CorePlus / Re: how to install a boot menu with Windows & Linux
« Last post by gadget42 on Today at 07:59:06 AM »
3
Micro Core / Re: /sbin/autologin directly from /inittab
« Last post by nick65go on Today at 07:29:44 AM »
Not yet, unfortunately I am on f***king Wind0w$.
But I remember that in the past, from grub command line, kernel  parameter init=/bin/sh get me into a shell prompter. So was not need for tty settings to run a command like /sbin/autologin, straight from sysV init.Plus is about "respawn", after [accidentally] exit from login tc, not before login.
FYI: see also how toybox boot in qemu without getty (http://landley.net/toybox/downloads/binaries/mkroot/latest/)
4
Micro Core / Re: /sbin/autologin directly from /inittab
« Last post by curaga on Today at 07:21:15 AM »
I believe getty also initializes the tty settings, and so it's necessary. Removing those lines from autologin is probably fine, have you tested it?
5
Micro Core / /sbin/autologin directly from /inittab
« Last post by nick65go on Today at 05:31:26 AM »
proposal to replace (in  /etc/inittab) the line
Code: [Select]
tty1::respawn:/sbin/getty -nl /sbin/autologin 38400 tty1
with
Code: [Select]
tty1::respawn:/sbin/autologinIs it OK? because anyway in /sbin/autologin we have the getty for tc-user; in year 2022 there are no more ttys (serial terminals); anyway it is about tty not ttyS. Maybe even Qemu ignores it, because core is loaded in RAM.       
FYI: also, in /sbin/autologin, is no need for
Code: [Select]
. /etc/init.d/tc-functions
 useBusybox
because it does not use any functions from them.
6
CorePlus / Re: how to install a boot menu with Windows & Linux
« Last post by alino74 on Today at 02:56:32 AM »
could I use rescatux to automatically restore the boot menu with the list of windows and linux?
7
CorePlus / Re: how to install a boot menu with Windows & Linux
« Last post by gadget42 on Today at 02:52:22 AM »
haven't used easybcd but found this short read interesting nevertheless(mentions grub):
https://neosmart.net/wiki/easybcd/uefi/
8
CorePlus / Re: how to install a boot menu with Windows & Linux
« Last post by Juanito on Today at 01:54:43 AM »
The file is called grub.cfg

Its location is going to depend on when it was installed and whether your machine uses a legacy bios or uefi boot - basically you are going to have to search for it.
9
CorePlus / Re: how to install a boot menu with Windows & Linux
« Last post by alino74 on Today at 01:41:22 AM »
i used from live tc-install and installed on an ext4 partition ..... but i don't know how to find "grub config file somewhere" ... where is it usually installed ...?
10
Raspberry Pi / Re: Running Python Scripts at Startup
« Last post by patrikg on Today at 01:38:41 AM »
You can remove the tty(serial) from command line argument to the kernel, the console.
(/boot/cmdline.txt). So you free the UART/serial port.

And remove the getty tty(serial) in /etc/inittab.
And remove the startserial.sh if you running that script, in boot script.

When i referring to tty(serial) you have to consider that the serial port have lots of different names.
console=serial0,115200
console=ttyAMA0,115200

Just have the console=tty1 in kernel command line argument(tty1 is the first text mode virtual console.), if you using raspberry pi with hdmi.

You can remove all console and using headless raspberry pi with out any console.
Just access the RPI with network ssh.
You can also do the following when using headless rpi:
Add the line to config.txt to gain little more memory, because you don't use the hdmi/gpu
 
Code: (bash) [Select]
gpu_mem=16

And the user tc have to have rights to the port, lots of linux distributions uses some type of group to the serial port, so if you add the default tc user the the correct group you don't need to use sudo for your user to use the serial port.

To easy see what group you should add the tc user to, you just list the serial device in dev.
Lets see what my arch linux pc com1 serial port.

[
Code: (bash) [Select]
root@arch-new ~]# ls -la /dev/ttyS0
crw-rw---- 1 root uucp 4, 64 18 aug 09.18 /dev/ttyS0
[root@arch-new ~]#

Ahhh it's uucp.
So if my regular user need com1 I just need to add that user to group uucp.


Happy hacking.
Pages: [1] 2 3 ... 10