WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to install Desktop GUI  (Read 34147 times)

Offline Adam

  • Full Member
  • ***
  • Posts: 121
How to install Desktop GUI
« on: March 22, 2017, 10:40:14 AM »
Hi all,

First of all, thanks for the great job on Tiny Core. I've been using it for a while and very happy with the performance (lightweight and super fast).

This is the image that I use.
http://tinycorelinux.net/7.x/x86/release/Core-current.iso

Initially, Desktop GUI was not required as I can do all my stuff in CLI. However, it seems like Desktop GUI is required now.

Code: [Select]
tc@box:~$ startx
-sh: startx: not found
tc@box:~$

As usual, I did a quick google and found this.
https://www.reddit.com/r/linux/comments/3ht3ew/cmd_to_start_running_linux_tiny_core/

This was one of the suggestions and I tried that.
Quote
[–]1armsteve 3 points 1 year ago

off the top of my head try startx. usually boots your GUI. if it's installed.

If not, you need to download Xprogs.gz and Xlibs.gz and put them in your /tce folder (not your tce/optional folder).

Unfortunately, I'm getting another error message.

Code: [Select]
tc@box:~$ startx
cat: can't open '/etc/sysconfig/Xserver': No such file or directory

tc@box:~$

I would like to have CLI as default login as for now and GUI as an option.
Please let me know how to install the Desktop GUI in core Linux or share the link if there is any. Thanks.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How to install Desktop GUI
« Reply #1 on: March 22, 2017, 10:55:21 AM »
This is covered in the wiki.
http://wiki.tinycorelinux.net/wiki:adding_a_desktop_to_microcore
That should get you running.

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: How to install Desktop GUI
« Reply #2 on: March 22, 2017, 11:01:52 AM »
This is covered in the wiki.
http://wiki.tinycorelinux.net/wiki:adding_a_desktop_to_microcore
That should get you running.

Thanks gerald_clark.
Btw, problem resolved. Found this link
http://forum.tinycorelinux.net/index.php/topic,18224.msg110684.html#msg110684

Here is the quick solution
Code: [Select]
tce-load -wi Xvesa.tcz Xlibs.tcz Xprogs.tcz aterm.tcz flwm_topside.tcz wbar.tcz
Full installation
Code: [Select]
tc@box:~$ tce-load -wi Xvesa.tcz Xlibs.tcz Xprogs.tcz aterm.tcz flwm_topside.tcz wbar.tcz
Xvesa is already installed!
Xlibs.tcz.dep OK
libXfont.tcz.dep OK
libXi.tcz.dep OK
libXext.tcz.dep OK
libX11.tcz.dep OK
libxcb.tcz.dep OK
libXmu.tcz.dep OK
libXt.tcz.dep OK
libXpm.tcz.dep OK
libXrandr.tcz.dep OK
libXrender.tcz.dep OK
Downloading: libXdmcp.tcz
Xprogs.tcz.dep OK
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable
libXdmcp.tcz: OK
fltk-1.3.tcz.dep OK
Downloading: libXau.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libXau.tcz           100% |*******************************************************************************************************************|  8192   0:00:00 ETA
libXau.tcz: OK
Downloading: libxcb.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
flwm_topside.tcz.dep OK
libxcb.tcz             3% |****                                                                                                               | 10416   0:00:24 ETAwbar.tcz.dep OK
libxcb.tcz           100% |*******************************************************************************************************************|   256k  0:00:00 ETA
libxcb.tcz: OK
Downloading: libX11.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libX11.tcz           100% |*******************************************************************************************************************|   892k  0:00:00 ETA
libX11.tcz: OK
Downloading: libXrender.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libXrender.tcz       100% |*******************************************************************************************************************| 16384   0:00:00 ETA
libXrender.tcz: OK
Downloading: libXext.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libXext.tcz          100% |*******************************************************************************************************************| 24576   0:00:00 ETA
libXext.tcz: OK
Downloading: libXrandr.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libXrandr.tcz        100% |*******************************************************************************************************************| 16384   0:00:00 ETA
libXrandr.tcz: OK
Downloading: libXpm.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libXpm.tcz           100% |*******************************************************************************************************************| 45056   0:00:00 ETA
libXpm.tcz: OK
Downloading: libSM.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libSM.tcz            100% |*******************************************************************************************************************| 12288   0:00:00 ETA
libSM.tcz: OK
Downloading: libICE.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libICE.tcz           100% |*******************************************************************************************************************| 40960   0:00:00 ETA
libICE.tcz: OK
Downloading: libXt.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libXt.tcz            100% |*******************************************************************************************************************|   144k  0:00:00 ETA
libXt.tcz: OK
Downloading: libXmu.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libXmu.tcz           100% |*******************************************************************************************************************| 45056   0:00:00 ETA
libXmu.tcz: OK
Downloading: libXi.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libXi.tcz            100% |*******************************************************************************************************************| 24576   0:00:00 ETA
libXi.tcz: OK
Downloading: libfontenc.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libfontenc.tcz       100% |*******************************************************************************************************************| 12288   0:00:00 ETA
libfontenc.tcz: OK
Downloading: libXfont.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
libXfont.tcz         100% |*******************************************************************************************************************|   104k  0:00:00 ETA
libXfont.tcz: OK
Downloading: Xlibs.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
Xlibs.tcz            100% |*******************************************************************************************************************|  1232k  0:00:00 ETA
Xlibs.tcz: OK
Downloading: fltk-1.3.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
fltk-1.3.tcz         100% |*******************************************************************************************************************|   440k  0:00:00 ETA
fltk-1.3.tcz: OK
Downloading: Xprogs.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
Xprogs.tcz           100% |*******************************************************************************************************************|   112k  0:00:00 ETA
Xprogs.tcz: OK
Downloading: aterm.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
aterm.tcz            100% |*******************************************************************************************************************| 53248   0:00:00 ETA
aterm.tcz: OK
Downloading: flwm_topside.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
flwm_topside.tcz     100% |*******************************************************************************************************************| 24576   0:00:00 ETA
flwm_topside.tcz: OK
Downloading: wbar.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wbar.tcz             100% |*******************************************************************************************************************| 36864   0:00:00 ETA
wbar.tcz: OK
tc@box:~$

Then, startx  :)

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: How to install Desktop GUI
« Reply #3 on: March 22, 2017, 11:11:30 AM »
There is 1 small problem. The system will boot to GUI automatically after reboot.
I would like to have CLI as default login, not GUI.
GUI should be an option with startx.

Any idea how to do this?

Offline polikuo

  • Hero Member
  • *****
  • Posts: 724
Re: How to install Desktop GUI
« Reply #4 on: March 22, 2017, 11:12:52 AM »
On x86, there are three Xserver available: Xvesa, Xfbdev, Xorg (On x86_64 though, only Xfbdev and Xorg)
Xvesa is about the same size as Xfbdev while Xorg is much much bigger...

Xvesa should be enough for most machine.
Xfbdev (tinyX) can be buggy on some machine.
Xorg provides the best quality.

You'll need a desktop manager (flwm, openbox, hackedbox and more)

There is 1 small problem. The system will boot to GUI automatically after reboot.
I would like to have CLI as default login, not GUI.
GUI should be an option with startx.

Any idea how to do this?

Use boot code "text"

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: How to install Desktop GUI
« Reply #5 on: March 22, 2017, 11:18:36 AM »
Use boot code "text"
Thanks polikuo.
I found exactly the same tips here .... http://wiki.tinycorelinux.net/wiki:adding_a_desktop_to_microcore

Quote
You can boot to the CLI by using the bootcode text.

The problem is where/how to change/modify the bootcode text?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How to install Desktop GUI
« Reply #6 on: March 22, 2017, 11:24:35 AM »
You should read the book: http://tinycorelinux.net/book.html
You will find answers to most of your questions there.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 724
Re: How to install Desktop GUI
« Reply #7 on: March 22, 2017, 11:25:09 AM »
The problem is where/how to change/modify the bootcode text?

How did you install tiny core ?
By tc-install --> modify /etc/sysconfig/tcedir/boot/extlinux/extlinux.conf
Any other method --> modify the config file

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: How to install Desktop GUI
« Reply #8 on: March 22, 2017, 11:25:15 AM »
in the bootloader. check the isolinux documentation.

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: How to install Desktop GUI
« Reply #9 on: March 22, 2017, 09:28:12 PM »
How did you install tiny core ?
Thanks polikuo for your help. I really appreciate it.
http://tinycorelinux.net/install_manual.html

However, some of the info was not not updated, so I've updated it here so that it would be easier to those who are new to tiny core.
https://firewallengineer.wordpress.com/2013/07/30/first-attempt-to-install-tiny-core-linux-to-hard-disk/

By tc-install --> modify /etc/sysconfig/tcedir/boot/extlinux/extlinux.conf
Any other method --> modify the config file

hmmm
Code: [Select]
tc@box:~$ tc-install
-sh: tc-install: not found
tc@box:~$ cat /etc/sysconfig/tcedir/boot/extlinux/extlinux.conf
cat: can't open '/etc/sysconfig/tcedir/boot/extlinux/extlinux.conf': No such file or directory
tc@box:~$

Any other method --> modify the config file
Can you share the location of the config file? Thanks
« Last Edit: March 22, 2017, 09:31:23 PM by Adam »

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: How to install Desktop GUI
« Reply #10 on: March 22, 2017, 09:39:25 PM »
You should read the book: http://tinycorelinux.net/book.html
You will find answers to most of your questions there.

Thanks Gerald,
This is the info from the book.

Page 47
Quote
Chapter 10. Bootcodes
explained
Boot codes are a way to configure the system, by giving it information that needs to be available during boot. In this chapter
we will cover each in detail.
The Linux kernel also exposes a set of boot codes; these will not be covered here.
When using the CD, you can enter them at the command line (with the Core ISO) or by pressing tab (with the TinyCore or CorePlus
ISOs) at the desired menu item. On an installed system, they are stored in your bootloader’s configuration file.

For example, with grub 0.97, the file is called menu.lst, and the boot codes are stored on the kernel line:
kernel /boot/vmlinuz quiet showapps

If using extlinux, the file is called extlinux.cfg, and the codes are
stored in the APPEND line:

APPEND initrd=/boot/core.gz quiet showapps

Page 53
Quote
10.16. text - boot to text mode
In case an X server is installed, do not boot to graphical mode. If an X server is not installed, the system will always boot to text mode.
Example:
• text

This is my menu.lst. Are you saying that I should put the bootcode text here?
Quote
tc@box:/$ cat /mnt/sda1/boot/grub/menu.lst
default 0
timeout 0
kernel /boot/vmlinuz quiet
initrd /boot/core.gz
tc@box:/$

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: How to install Desktop GUI
« Reply #11 on: March 22, 2017, 09:42:12 PM »
in the bootloader. check the isolinux documentation.
Thanks Hiro,
You're referring to this right?
http://www.syslinux.org/wiki/index.php?title=SYSLINUX

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: How to install Desktop GUI
« Reply #12 on: March 22, 2017, 09:44:59 PM »
Hi Adam
Open the  menu.lst  file and add  text  to the line beginning with the word  kernel.

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: How to install Desktop GUI
« Reply #13 on: March 23, 2017, 02:16:58 AM »
Hi Adam
Open the  menu.lst  file and add  text  to the line beginning with the word  kernel.

Thanks. Btw, I've written quick solution for this and hopefully this will help those who are new to tiny core.
https://firewallengineer.wordpress.com/2017/03/23/tiny-core-how-to-install-desktop-gui/

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: How to install Desktop GUI
« Reply #14 on: March 23, 2017, 05:27:23 AM »
yes, i might be wrong in doing this but i assumed extlinux==sylinux for these purposes.