Small Linux on Thin Client 32MB Disk

Problem: If you have bought a Thin Client Terminal, you lost updates after some years, cause the manufacter closes the support, or you have to pay for the Upgrades.

Solution:
To reuse the old Hardware take a closer look on www.tinycorelinux.com There you find a very small modular Linux. You must not buy new Hardware! Tinycorelinux runs on x86 (Intel/AMD/Via) Hardware with a current 2.6 Kernel inside a RAMDISK.

 

Preferred Applications:

  • Kiosk Internet Box
  • Internet Radio
  • Netbook with full ThinClient Support for High Security Travel (Company’s)
  • Internet PC
  • Office PC
  • Fast energy saving embedded PC with ramdisk Use
  • SSH Terminal
  • Embedded Server (NAS+FTP)
  • PC controlled Info-Screens like Store, Hotel or Airport TFT Info Screens
  • Embedded Tablet PCs

Tinycorelinux is easy to setup and offer good documentations about config and application setup.

The requirements:

  • x86 CPU
  • 32MB> Diskspace
  • Support Intel,AMD and Via CPU (Samuel 2 too, no cmov reboot bug)
  • Support various kinds of media, USB Stick, FlashDisk, IDE and SATA-HDD, CDROM
  • embedded S3 Via Graphic supported
  • must have internet access to get additional software packages called modules

Must know:

At first read the howtos about the different kernel boot switches cause here you set parameters for the Linux on RAM.

for example:

tinycore user=tom vga=791 hdc1=home sda1=tce secure noautologin kmap=qwertz/latin-1 lang=de

  • user= set the used username (default=tc)
  • vga= enable framebuffer on screens
  • hdc1= set a usbdisk plugged in to home
  • sda1= set a usbstick to save installed programs like firefox
  • secure= ask on boot for user + root password (must be)
  • noautologin= stop at login prompt (Console)
  • kmap set keymap (for German install kmap paket, if  not US is forced)
  • lang= set language  (for other language install lang paket, if not US is forced)

Ubuntu 10.04 Lucid Lynx Kiosk Mode

If you run your PC as Family PC for Kids or Public PC you have to make some changes:

Step:
– Setup Ubuntu 10.04 with alternate Disk!
– select XDM as Login Manager by default!!
– go /etc/init folder as root
– edit control-alt-delete.conf and disable reboot without login
– go /etc/acpi make chmod 000 on powerbtn.sh hibernation.sh lidbtn.sh to prevent unwanted shutdown
– make #sudo aptitude remove gnome-power-manager to prevent unwanted standby by all users
– test forced shutdowns pressing all buttons at menu
– optional add autologin at login manger for a user without „sudo“ rights
– optional add to startup the „opera -kioskmode“ Browser Command (fullscreen Opera to hide Desktop to prevent users to reach files on the system)

Ubuntu 10.04 Lucid Lynx disable hide REBOOT SHUTDOWN STANDBY SUSPEND GNOME SYSTEM MENU SECURE KIOSK MODE

Problem: If you install ubuntu 10.04 Desktop by default
every user can shutdown,reboot,hibernate or standby a PC

If you want to disable this make:
– install gdm2conf from the ppa channel to customize hide System Menu at Login GDM2 Manager
– create custom Gnome System Menu Policy against User shutdown,reboot,hibernate or standby.

Steps:
create new policy file:
#sudo touch /etc/polkit-1/localauthority/50-local.d/custom-menu.pkla

edit new policy:
#nano nano /etc/polkit-1/localauthority/50-local.d/custom-menu.pkla

insert into:
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.devicekit.power.suspend
ResultActive=no
ResultAny=no

[Disable hibernate]
Identity=unix-user:*
Action=org.freedesktop.devicekit.power.hibernate
ResultActive=no
ResultAny=no

[Disable shutdown]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.stop
ResultActive=no
ResultAny=no

[Disable reboot]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.restart
ResultActive=no
ResultAny=no

reboot and try!

To disable CTRL-ALT-DEL REBOOT edit #sudo nano /etc/init/control-alt-delete.conf
comment out:
#start on control-alt-delete

#task
#exec shutdown -r now „Control-Alt-Delete pressed“

For high Security:
disable TTY Consoles 1-6 with edit /etc/init/ttyX.conf (Value of X = 1-6)
comment out:
#respawn
#exec /sbin/getty -8 38400 tty1

Change at rights of /sbin/reboot /sbin/halt /sbin/shutdown /sbin/poweroff
that shutdown or reboot the System to 0700 from Console (SSH)

If you can access the PC Case cut the Reset and Power Cable from Mainboard
fix the Power Cable at Wall and PC against cut off !! PC inside locked steel Server Rack!!
(used are cheap at ebay)

AFTER ALL of this you can only reboot/shutdown with #sudo reboot or #sudo init 0!

Ubuntu 10.04 Lucid Lynx Kiosk Mode

If you run your PC as Family PC for Kids or Public PC you have to make some changes:

Step:

  1. Setup Ubuntu 10.04 with alternate Disk!
  2. select XDM as Login Manager by default!!
  3. go /etc/init folder as root
  4. edit control-alt-delete.conf and disable reboot without login
  5. go /etc/acpi make chmod 000 on powerbtn.sh hibernation.sh lidbtn.sh to prevent unwanted shutdown
  6. make
    #sudo aptitude remove gnome-power-manager
    to prevent unwanted standby by all users
  7. test forced shutdowns pressing all buttons at menu
  8. optional add autologin at login manger for a user without „sudo“ rights
  9. optional add to startup the
    opera -kioskmode
    Browser Command (fullscreen Opera to hide Desktop to prevent users to reach files on the system)

Ubuntu 10.04 Lucid Lynx disable hide REBOOT SHUTDOWN STANDBY SUSPEND GNOME SYSTEM MENU SECURE KIOSK MODE

Problem: If you install ubuntu 10.04 Desktop by default
every user can shutdown,reboot,hibernate or standby a PC

If you want to disable this make:
– install gdm2conf from the ppa channel to customize hide System Menu at Login GDM2 Manager
– create custom Gnome System Menu Policy against User shutdown,reboot,hibernate or standby.

Steps:
create new policy file:

#sudo touch /etc/polkit-1/localauthority/50-local.d/custom-menu.pkla

edit new policy:

#nano nano /etc/polkit-1/localauthority/50-local.d/custom-menu.pkla

insert into:

[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.devicekit.power.suspend
ResultActive=no
ResultAny=no
[Disable hibernate]
Identity=unix-user:*
Action=org.freedesktop.devicekit.power.hibernate
ResultActive=no
ResultAny=no
[Disable shutdown]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.stop
ResultActive=no
ResultAny=no
[Disable reboot]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.restart
ResultActive=no
ResultAny=no

reboot and try!

To disable CTRL-ALT-DEL REBOOT edit

#sudo nano /etc/init/control-alt-delete.conf

comment out:
#start on control-alt-delete
#task
#exec shutdown -r now "Control-Alt-Delete pressed"

For high Security:
disable TTY Consoles 1-6 with edit /etc/init/ttyX.conf (Value of X = 1-6)
comment out:

#respawn
#exec /sbin/getty -8 38400 tty1

Change at rights of /sbin/reboot /sbin/halt /sbin/shutdown /sbin/poweroff
that shutdown or reboot the System to 0700 from Console (SSH)

If you can access the PC Case cut the Reset and Power Cable from Mainboard
fix the Power Cable at Wall and PC against cut off !! PC inside locked steel Server Rack!!
(used are cheap at ebay)

AFTER ALL of this you can only reboot/shutdown with

#sudo reboot
or
#sudo init 0