Author Topic: make a lighter opt.sqfs  (Read 20294 times)

DotCom

  • Newbie
  • *
  • Posts: 23
make a lighter opt.sqfs
« on: July 29, 2009, 05:43:30 AM »
Hi Elmar,

As I said in a nother post I am trying to create a lighter version of opt.sqfs with minimal gnome working and the newest version of rdesktop.
this setup will help me to connect via thinclient to win-terminal-servers.
I have tryed to remove files from lib and share directory but it dosent work and the gnome dont open corectly.

can you give me a hint to how to do this corectly  ::) ::)

regards

DotCom

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #1 on: July 29, 2009, 10:46:14 AM »
hi,
what do you think about the following

edit the file /root/gnome
remove the line with
Code: [Select]
exec gnome-session
add the lines
Code: [Select]
exec tsclient &
exec fluxbox

this is only for testing. there is much more possible. if you want to remove the fluxbox menu then add before exec fluxbox
Code: [Select]
mkdir ~/.fluxbox
echo -n > ~/.fluxbox/menu

instead of tsclient you can use rdesktop.

use runme.sh to overwrite the original /root/gnome with yours. its also possible to edit /root/.xinitrc

however, a smaller opt.sqfs would be possibe too, but with the solution above you stay compatible with upcoming opt.sqfs

what do you think?

regards
elmar

DotCom

  • Newbie
  • *
  • Posts: 23
Re: make a lighter opt.sqfs
« Reply #2 on: July 29, 2009, 13:06:22 PM »
Hi,
again thx for your replay  :)

I am able to shrink the running os to mininum with things like
gconftool-2 and so on.
what I am trying to do with not much luck  :'(, is to make the opt.sqfs smaller
so it will take less time to load from the cifs share in the network.
now it's size is about 340M and I belive it can be smaller for what I am running.


with regards

DotCom

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #3 on: July 29, 2009, 13:08:42 PM »
are you using copy2ram?

DotCom

  • Newbie
  • *
  • Posts: 23
Re: make a lighter opt.sqfs
« Reply #4 on: July 29, 2009, 13:55:36 PM »
hi,

at this point as you said the script dous not work
I would like to work in this manner with very low resorces thin terminal as well, so I dont know for shure what will be the end configuration.

hope that answers the question  ??? ::) ???

DotCom

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #5 on: July 29, 2009, 14:08:16 PM »
if dont use copy2ram, then the opt.sqfs is not copied over the network and the size doesnt matter. it also needs less resources, you have a lot of free ram if you do not copy the opt.sqfs.

if you still want a smaller opt.sqfs, then use fluxbox as window manager. fluxbox does not need gnome and is fast and good. you can remove all gnome and gcc related programs and libs. i think without gnome and gcc you will get a opt.sqfs with maximum 100MB maybe less. to get a really small and clean opt.sqfs its better to compile xorg, fluxbox and rdesktop again. i dont know, maybe i create it.

regards
elmar

DotCom

  • Newbie
  • *
  • Posts: 23
Re: make a lighter opt.sqfs
« Reply #6 on: July 29, 2009, 15:59:32 PM »
OK, I understend. ::)

now it looks fine but I am worried that when I will connect more then 100 clients at once the share computer will have problems.

If you will have the time to compile it as you suggested It will help alot.

meny thanks for your quick and allways helpfull replays

DotCom

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #7 on: July 30, 2009, 21:43:31 PM »
hi,
here is a opt.sqfs and i think you will love it. its 80MB small
http://download.plop.at/files/tmp/opt.sqfs

please test it, if its ok, i put it to my download page of ploplinux

DotCom

  • Newbie
  • *
  • Posts: 23
Re: make a lighter opt.sqfs
« Reply #8 on: August 03, 2009, 08:37:53 AM »
Hi,

It looks wonderfull  :) :D ;D
the fluxbox is new to me and I figured it out in a few minuts  8)
I am now trying to ad the alsa support to it (as you mite remember I must have sound)
and I have no success yet .

regards

DotCom

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #9 on: August 03, 2009, 09:38:32 AM »
do you see any error message?

DotCom

  • Newbie
  • *
  • Posts: 23
Re: make a lighter opt.sqfs
« Reply #10 on: August 03, 2009, 10:04:37 AM »
Hi,

well it start with " no acceptable C compiler found"
and it allso looks for /usr/local wich is not present at all.

I must say that I am trying to ad this to a running plop with the tmp opt that you shared.

p.s. the fluxbox takes about 25 seconds to startX - is this normal ??

regards

DotCom

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #11 on: August 03, 2009, 10:12:14 AM »
you have to replace the big opt.sqfs with this small one in pluspacks

fluxbox is faster than gnome
« Last Edit: August 03, 2009, 10:41:14 AM by Elmar »

DotCom

  • Newbie
  • *
  • Posts: 23
Re: make a lighter opt.sqfs
« Reply #12 on: August 03, 2009, 11:08:19 AM »
maybe I didnt explane myself correctly,

I am working now with fluxbox, I changed the desk top and changed the menu and played a bit with the init file so it will work to my likings  ;D

nevertheless I am trying to get sound on my terminals (connecting with rdesktop) and cannot do that if no sound is avaliable in the plop machine.

still trying to compile it (now in the full opt.sqfs) with ro errors,
I am trying to get over it now.

regards

DotCom

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #13 on: August 03, 2009, 11:10:47 AM »
ahh, the alsa tools are missing, i add it

DotCom

  • Newbie
  • *
  • Posts: 23
Re: make a lighter opt.sqfs
« Reply #14 on: August 03, 2009, 11:14:55 AM »
Elmar,

you are the man !!!!!!

this is the fastest replay ever  :D

thanks

DotCom

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #15 on: August 03, 2009, 12:04:21 PM »

DotCom

  • Newbie
  • *
  • Posts: 23
Re: make a lighter opt.sqfs
« Reply #16 on: August 04, 2009, 12:56:35 PM »
thanks again...

I am now checking it against more hardware kinds so I will know it will work for everyone.

as I still have to load the sound card manualy, I am working on a script that will determine the sound card and then load the specific files.

it looks grate  :)


regards
DotCom

Pat

  • Newbie
  • *
  • Posts: 14
Re: make a lighter opt.sqfs
« Reply #17 on: August 25, 2009, 18:48:41 PM »
It is not possible to download the file

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #18 on: August 25, 2009, 22:00:18 PM »
yes, i removed it. it was only temporary available. its now available again. you can download it.

regards
elmar

Pat

  • Newbie
  • *
  • Posts: 14
Re: make a lighter opt.sqfs
« Reply #19 on: August 25, 2009, 22:13:26 PM »
Thank you   ;)

Pat

  • Newbie
  • *
  • Posts: 14
Re: make a lighter opt.sqfs
« Reply #20 on: August 26, 2009, 20:12:28 PM »
Hi
What is included in this small opt.sqfs ?
Is it possible to include gparted ?
Thank's

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #21 on: August 26, 2009, 20:58:06 PM »
include is:
xorg 7.4
fluxbox
rdesktop
and libraries that are needed to run those programs

gparted would be possible, but gparted need libs that are not in this opt.sqfs. so they have to be added too. is the standard opt.sqfs with 340MB too big for you?

regards
elmar

Pat

  • Newbie
  • *
  • Posts: 14
Re: make a lighter opt.sqfs
« Reply #22 on: August 26, 2009, 21:03:18 PM »
I have installes plop linux in an old 256 Mo usb. So I can use it to make backup of my windows (excuse me for my english, I learned it in scool; I'm french)

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #23 on: August 26, 2009, 21:09:40 PM »
and you would like to have gparted too on you small drive?

Pat

  • Newbie
  • *
  • Posts: 14
Re: make a lighter opt.sqfs
« Reply #24 on: August 26, 2009, 21:19:20 PM »
If it is possible. But using partimage with my mouse is sufficient

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #25 on: August 26, 2009, 21:24:49 PM »
why do you need a mouse for partimage? for navigation you need only the keys tabulator, f5 and f6

i take a look how many libs are required for gparted

Pat

  • Newbie
  • *
  • Posts: 14
Re: make a lighter opt.sqfs
« Reply #26 on: August 26, 2009, 21:41:55 PM »
I use F5 and F6.
thank's for your attention

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2434
  • a command shell is enough to do amazing things
Re: make a lighter opt.sqfs
« Reply #27 on: August 27, 2009, 10:58:27 AM »
hi,
i made a opt.sqs with fluxbox and gparted for you. it has 118MB
http://download.plop.at/files/ploplinux/opt-X-mini2/opt.sqfs

in fluxbox you have to open xterm and run gparted from the shell

regards
elmar
« Last Edit: August 27, 2009, 11:03:27 AM by Elmar »

Pat

  • Newbie
  • *
  • Posts: 14
Re: make a lighter opt.sqfs
« Reply #28 on: August 27, 2009, 21:47:16 PM »
thank you