Showing posts with label Tiny Core. Show all posts
Showing posts with label Tiny Core. Show all posts

2020-07-23

Tiny Core Linux UTF-8 support

getlocale.tcz - load to re-config locale with en_US.UTF-8 & gen mylocale.tcz

mylocale.tcz

add boot command:
    lang=en_US.UTF-8


.profile:
export LC_CTYPE=en_US.UTF-8
Fix google chrome chinese support
export G_FILENAME_ENCODING=UTF-8


* Fix gnome-terminal crash
 # Locale not supported by C library.
        Using the fallback 'C' locale.
 # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal:  GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited with status 9

Error constructing proxy for org.gnome.Terminal: /org/gnome/Terminal/Factory0: 
Error calling StartServiceByName for org.gnome.Terminal:
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: 
Process /usr/lib/gnome-terminal/gnome-terminal-server exited with status 8

2014-03-17

GRUB2 multiboot ISO


GRUB2 multiboot ISO 2018 update

USB:
/boot/grub
/boot/iso
/boot/image
/boot/tc4
/boot/tc5
/boot/syslinux

get USB UUID & Label:
> blkid



/boot/grub.sh


/boot/grub/grub.env (1024byte)


/boot/grub/grub.cfg




/boo/grub/grub_hd.cfg (Harddisk)


/boo/grub/grub_fd.cfg (Floppy)



/boo/grub/grub_pe.cfg (Windows PE)

Linux:

/boo/grub/grub_tci.cfg (Tiny Core Linux)

/boo/grub/grub_sl.cfg (Slax)

/boo/grub/grub_u.cfg (Ubuntu)


/boo/grub/grub_d.cfg (Debian)


/boo/grub/grub_cd.cfg (CDLinux)


/boo/grub/grub_cr.cfg (ChromeOS)


/boo/grub/grub_s.cfg (openSUSE)


/boo/grub/grub_ce.cfg (CentOS)
* rdshell
method 1:
set rootopt="root=live:LABEL=CentOS-${ver}-${bit}-${live}"

boot into rdshell

1a: boot from RAM
# mkdir 1 2
# mount /dev/<usb partition> 1
# cp 1/boot/iso/<Centos ISO> 2
# umount 1
  (remove USB)
# exit

1b: boot from USB
# mkdir 1 2
# mount /dev/<usb partition> 1
# mount -o loop 1/boot/iso/<Centos ISO> 2
# exit

method 2:
set rootopt="root=live:${ISO_Path}/${iso}"

boot into rdshell

2a: boot from RAM
# mkdir -p boot/iso 1
# mount /dev/<usb partition> 1
# cp 1/boot/iso/<Centos ISO> boot/iso
# /init

2b: boot from USB
# mkdir -p boot 1
# mount /dev/<usb partition> 1
# ln -s /1/boot/iso /boot
# /init

2014-03-13

Tiny Core Linux XWindow


xf86-video-xxx
sudo Xorg -configure
edit xorg.conf
Section "ServerLayout"
   #Multi Screen
   Option         "Xinerama" "true"

lspci   (pci-utils.tcz)


xrandr -s 1280x1024

xrandr --output LVDS1 --mode 1024x600 --pos 0x0 --rotate normal --output VGA1 --off

and back again with:

xrandr --output LVDS1 --off --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal

0 - 15
/sys/class/backlight/acpi_video0/brightness
xbacklight


xset s off
xset -dpms

mouse speed x2
xset m 2 0

synclient TapButton1=1
synclient TapButton2=2 (mid: 2 finger)
synclient TouchpadOff=1

terminal title
echo -ne "\033]0;TITLE HERE\007"
echo -ne "\033]0;Hello World\007"

color red
\033[1;31m RED \033[0m

Tiny Core Linux SSHD

openssh

cd /usr/local/etc/ssh

sudo mkdir -p bak
sudo /bin/mv ssh_host_* bak
sudo touch sshd_config
sudo ssh-keygen -A
sudo /usr/local/sbin/sshd