Tiny Core Linux

Tiny Core Extensions => TCE Corepure64 => Topic started by: null on July 14, 2013, 07:10:00 PM

Title: 64 bit and windows manager
Post by: null on July 14, 2013, 07:10:00 PM
I appologise if this had been posted before.  I have always used TCL in it's ISO form to boot (directly boot iso from USB, always USB).

I had a chance recently to try out the 64bit TCL, and knowing there's no ISO for this, need to do a bit of install/config.

This is what I have done:
1. Format usb stick in ext2 / ext4 (I have tried a few installs by now)
2. Install grub2 onto stick
3. copied the corepure64 and vmlinuz64 onto usb  root folder.
4. grub2 booted 64 bit.

Now I have tried to get the windows manager up, but without luck. I tried fluxbox and flwm downloaded these TCZs and did tce-load, etc.

When I tried to run fluxbox, I get Cannot connect to XServer or Cannot connect to XServer with null display.

I have trolled through the forum, but can't seem to find a step by step guide to get the windows manager to start in 64 bit TCL.

I am running 64 TCL on a dell inspiron with Corei7.

Sorry if this is a very easy thing to do, but I am new to the 64bit setup.
Title: Re: 64 bit and windows manager
Post by: gerald_clark on July 14, 2013, 07:41:07 PM
You must use the corepure64 repo.  Just install the wm over the internet.
tce-load Xvesa Xprogs flwm wbar
Title: Re: 64 bit and windows manager
Post by: Juanito on July 14, 2013, 08:09:52 PM
There's no 64-bit Xvesa, it would need to be Xorg-7.6
Title: Re: 64 bit and windows manager
Post by: null on July 14, 2013, 08:29:00 PM
You must use the corepure64 repo.  Just install the wm over the internet.
tce-load Xvesa Xprogs flwm wbar

Hi GC,

is the repo:

tinycorelinux.net/4.x/x86_64/tcz?

Title: Re: 64 bit and windows manager
Post by: Juanito on July 14, 2013, 08:40:58 PM
affirmative
Title: Re: 64 bit and windows manager
Post by: null on July 14, 2013, 08:46:57 PM
affirmative

thank you. will try again tonight.
Title: Re: 64 bit and windows manager
Post by: null on July 15, 2013, 06:01:13 AM
Ok,

Loaded the tcz packages as said above:

flwm
XOrg7.6
Xprog
wbar
Xlib,etc

Still when I tried to startx, fluxbox or flwm, I am getting: Can't open display

It seems to not find a certain initialisation file to start the xwindows server. Is this correct?
Title: Re: 64 bit and windows manager
Post by: tinypoodle on July 15, 2013, 06:19:56 AM
Check (and possibly attach) /var/log/Xorg.0.log
Title: Re: 64 bit and windows manager
Post by: null on July 15, 2013, 07:03:31 AM
Check (and possibly attach) /var/log/Xorg.0.log

there was no such log file. Just keep getting can't open display :0.0.  Is it because I am trying to start x on the "console" so to speak? Being the laptop.
Title: Re: 64 bit and windows manager
Post by: gerald_clark on July 15, 2013, 07:24:55 AM
Show the output of 'losetup'.
Title: Re: 64 bit and windows manager
Post by: null on July 15, 2013, 07:54:08 AM
This is my config (using grub2), booting from USB stick:

GRUB.CFG
========
set timeout=10
set default=0

#
menuentry "Tinycore 64 bit"
{
   set uuid_partition=de0146ba-e550-432a-aac2-453d91646485
   search --no-floppy --fs-uuid $uuid_partition --set=root
   
   linux /vmlinuz64 vga=795 waitusb=5 home=UUID=$uuid_partition restore=UUID=$uuid_partition
   initrd /corepure64.gz tce showapps desktop=flwm lst=base.lst
   
}

base.lst
========
Xorg-7.6-lib.tcz
Xorg.tcz
Xprogs.tcz
Xlibs.tcz
flwm.tcz
wbar.tcz

---- note that the above tcz files are stored on the stick on /tce/optional. the base.lst file is on /tce


losetup
=======
/dev/loop0: 0 /mnt/sdc1/tce/optional/Xlibs.tcz
/dev/loop1: 0 /mnt/sdc1/tce/optional/fltk-1.1.10.tcz
/dev/loop2: 0 /mnt/sdc1/tce/optional/flwm.tcz
/dev/loop3: 0 /mnt/sdc1/tce/optional/wbar.tcz
Title: Re: 64 bit and windows manager
Post by: gerald_clark on July 15, 2013, 08:02:48 AM
You have not installed Xprogs nor Xorg-7.6.
Title: Re: 64 bit and windows manager
Post by: tinypoodle on July 15, 2013, 08:42:54 AM
This is my config (using grub2), booting from USB stick:

home=UUID=$uuid_partition restore=UUID=$uuid_partition

Unless you know exactly what you're doing such combo might get you in trouble.

Suggestion that you stick with default and omit advanced options like "home=" until you are somewhat familiar with the inner workings of the system.
Title: Re: 64 bit and windows manager
Post by: null on July 15, 2013, 05:17:21 PM
Noted.

I have removed all other boot params except for initrd with desktop=flwm tce showapps.

the onboot.lst now contains all the packages and losetup now shows:
..../optional/fltk-1.1.10.tcz
..../optional/Xlibs.tcz
..../optional/Xprogs.tcz
..../optional/Xorg-7.6-lib.tcz
..../optional/jwm.tcz
..../optional/flwm.tcz
..../optional/wbar.tcz

But still can't start up x. Seems that there's no /etc/X11, or X logging file in /var/log/

Also in /home/tc/.xsession , the first line is:

Xvesa -br -screen 1024x768x32 ............

So is it somehow confused and trying to load Xvesa instead of Xorg?


Title: Re: 64 bit and windows manager
Post by: gerald_clark on July 15, 2013, 05:28:44 PM
Sounds like you have a mydata.tgz backup file with erroneous data in it.  Delete it and reboot.
Title: Re: 64 bit and windows manager
Post by: null on July 15, 2013, 05:46:56 PM
Sounds like you have a mydata.tgz backup file with erroneous data in it.  Delete it and reboot.

Yes there was a zero length file there. Removed rebooted but still .xsession is referencing Xvesa.

I will just trash everything tonight and start clean again.

Thank you all for your support to a new user.

Title: Re: 64 bit and windows manager
Post by: Juanito on July 15, 2013, 08:23:55 PM
..../optional/fltk-1.1.10.tcz
..../optional/Xlibs.tcz
..../optional/Xprogs.tcz
..../optional/Xorg-7.6-lib.tcz
..../optional/jwm.tcz
..../optional/flwm.tcz
..../optional/wbar.tcz

..but Xorg-7.6 is still missing?
Title: Re: 64 bit and windows manager
Post by: null on July 15, 2013, 11:11:36 PM
..../optional/fltk-1.1.10.tcz
..../optional/Xlibs.tcz
..../optional/Xprogs.tcz
..../optional/Xorg-7.6-lib.tcz
..../optional/jwm.tcz
..../optional/flwm.tcz
..../optional/wbar.tcz

..but Xorg-7.6 is still missing?

Sorry downloaded and loaded. But still can't startx.  Still can't open display. Have set DISPLAY=:0.0; export DISPLAY, still no good.
Title: Re: 64 bit and windows manager
Post by: Rich on July 16, 2013, 08:54:11 AM
Hi null
If you run losetup, are the following included in the list of results:

  expat2.tcz
  fontconfig.tcz
  pixman.tcz
  Xorg-7.6-bin.tcz
  Xorg-7.6-lib.tcz
  Xorg-7.6.tcz
  Xorg-fonts.tcz
Title: Re: 64 bit and windows manager
Post by: gerald_clark on July 16, 2013, 09:05:46 AM
Why don't you just stick with the 32 bit version until you are more experienced and understand what you are doing.
Title: Re: 64 bit and windows manager
Post by: Juanito on July 16, 2013, 09:13:33 AM
One other check you could do, after verifying that the Xorg-7.6 extension is loaded, is:
Code: [Select]
$ cat /etc/sysconfig/Xserver..and check that the answer is "Xorg" and not "Xvesa"
Title: Re: 64 bit and windows manager
Post by: null on July 17, 2013, 05:03:07 PM
One other check you could do, after verifying that the Xorg-7.6 extension is loaded, is:
Code: [Select]
$ cat /etc/sysconfig/Xserver..and check that the answer is "Xorg" and not "Xvesa"
Yes, now /etc/sysconfig/Xserver says Xorg with all the packages below loaded.

This is now on onboot.lst:
expat2.tcz
fontconfig.tcz
ipv6-3.0.21-tinycore64.tcz
pixman.tcz
openssl-1.0.0.tcz
Xorg-7.6-bin.tcz
Xorg-7.6-lib.tcz
Xorg-7.6-3d.tcz
Xorg-7.6.tcz
Xorg-fonts.tcz
Xlibs.tcz
Xprogs.tcz
fltk-1.10.tcz
flwm.tcz
wbar.tcz
jwm.tcz

when I ran Xorg -configure, I get a segfault and have attached the log here.

Maybe the laptop has both an onboard GPU + also a Radeon card that causing this ? I have considered GC's suggestion of using the normal 32bit version, which I have no issues with since I first found out about TCL since v3.x (but always booted from grub2 straight from iso file). I think I did try to boot the 32bit version on the 64 bit laptop, but corepure only boots to $ command prompt.

I don't have any 32bit machines left which I prefer to use. Since I have a 64 machine, I was really looking forward to get TC64 to run on it, until I found out there was no iso.....and here I am.

Anyway, seems after much googling that the graphics is the one that is posing the most sticking point for many TC users also. I will try to forge on a little more to see if I can move forward any further. Thank you to you all for your directions and guidance thus far.
Title: Re: 64 bit and windows manager
Post by: Juanito on July 17, 2013, 08:22:23 PM
Xorg.0.log shows that xorg only tries to load the fbdev and vesa video drivers - it does not try to load the drivers for your hardware.

It would be useful to run "lspci" and post the details of exactly what video hardware you have in order to be able to use an appropriate xorg.conf entry.
Title: Re: 64 bit and windows manager
Post by: null on July 18, 2013, 04:46:27 AM
Xorg.0.log shows that xorg only tries to load the fbdev and vesa video drivers - it does not try to load the drivers for your hardware.

It would be useful to run "lspci" and post the details of exactly what video hardware you have in order to be able to use an appropriate xorg.conf entry.

Looks like the 64bit tcz package for lspci does not work as it required libpci.so.3. I also loaded libpci-dev.tcz but still does not work. There were no libpci share libs in the packages. I booted using another distro and did lspci. Hope this is ok (lspci -v) attached.
Title: Re: 64 bit and windows manager
Post by: Juanito on July 18, 2013, 05:51:20 AM
Looks like the 64bit tcz package for lspci does not work as it required libpci.so.3. I also loaded libpci-dev.tcz but still does not work. There were no libpci share libs in the packages.
You need to use the apps browser gui or "tce-load -iw" to load extensions - doing it this way will automatically load dependent extensions.

Looking at:

http://www.tinycorelinux.net/4.x/x86_64/tcz/pci-utils.tcz.dep

Code: [Select]
libpci.tcz.. you can see that it would automatically download libpci, which contains libpci.so.3
Title: Re: 64 bit and windows manager
Post by: Juanito on July 18, 2013, 06:01:18 AM
Looking at the output of lspci:
Code: [Select]
VGA compatible controller: Intel Corporation Device 0166 (rev 09) (prog-if 00 [VGA controller])
Kernel modules: i915
VGA compatible controller: ATI Technologies Inc Device 682f (prog-if 00 [VGA controller])
Kernel modules: radeon
..it looks like you have hardware that can switch between two graphics controllers.

As far as I know, the 3.0.21 kernel can only handle one of them and I would guess it would be the intel one, but I might well be wrong.

I believe both of the graphics controllers would require the graphics-3.0.21-tinycore64 extension to be loaded in order to work and the ati controller would require firmware-radeon to work (if it were possible to access this controller from this kernel).