alphaOS [closed]

A home for all kinds of Puppy related projects
Post Reply
Message
Author
nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#16 Post by nooby »

Thanks I downloaded the iso and made a dir alpha
and then clicked on the iso and placed the files in the dir
and then wrote a typical puppy boot and rebooted and it worked
but it did not sense my screen and defaulted to 640x480 something
don't remember and I failed to know how to tell it to go to 1366x786
or whatever I have.

Apart from that it seems to work.

Don't get me wrong now. I can see the fun in having one's own distro
but how is it better or different from all the others. I mean why or what
is it that makes it better or more convenient or more practical or ...

I can feel the fun of having accomplish it. I would want to do it too
but in what way is it useful so I would abandon slacko and go over ?
I use Google Search on Puppy Forum
not an ideal solution though

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

asus x101ch and AMD E350

#17 Post by raffy »

Am interested to boot asus x101ch (Intel N2600 with NM10 chipset) with this, and it booted and had drivers for eth0 and wlan0. However, the display is too dim and I can't use the function keys to adjust the brightness. Display must be only 640x480. Am used to trying xorgwizard, but it does not respond to CTRL-ALT-BKSPC.

In the AMD E350 laptop, there is no wlan0 driver (for Broadcom) and the display is only 1024x768 (that is fine with me).

Am glad the sfs loader is there so that I can use small freeoffice sfs.

Missing some features of Puppy, like the GUI hardinfo, but hey, if this little build can handle my little X101CH, including hibernation, then it's heaven. :)
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

simargl

#18 Post by simargl »

With this example I will try to explain how to compile program from source code, install it, remove, get information about
installed package, convert it to sfs module with help of spkg package manager.

I'm using program called Uget (http://uget.visuex.com/) as example, so you will not only learn to use this package manager but
will also have nice download manager afterwards.

First you need to make def script - a file that is needed for building any package. You can write that file yourself, or much easier
automatically convert PKGBUILD script from Arch. I will leave this 2nd option for some later time, now you can just use bellow code, select all text save it as file named def and put that file in folder /mnt/home/data/spkg/def-scripts/uget

Code: Select all

name="uget"
version="1.10.3"
revision="1"
category="network"
description="GTK+ download manager featuring download classification and HTML import"
source="http://downloads.sourceforge.net/urlget/$name-$version.tar.gz"
homepage="http://urlget.sourceforge.net/"
maintainer="simargl <archpup@gmail.com>"
depends="gtk3 curl hicolor-icon-theme xdg-utils"
makedepends="intltool"

compile() {
  cd $name-$version
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --disable-appindicator \
    --disable-notify \
    --disable-gstreamer
  make
}

package() {
  make DESTDIR=$destdir install
}

pinstall() {
  gtk-update-icon-cache /usr/share/icons/hicolor
}

premove() {
  gtk-update-icon-cache /usr/share/icons/hicolor
}


Load devel sfs module and after that type:
spkg -ci uget (for compile and install)

To get information about installed package, or search for file named uget:
spkg info uget
spkg file uget

To remove installed package type:
spkg -r uget

To make sfs module that will contain this package, change to directory /mnt/home/data/spkg/packages, and type:
spkg makesfs or
spkg makesfsx (for using xz compression)

Note: icon cache needs to be updated after installing/removing, that is the reason for pinstall/premove functions...

simargl

#19 Post by simargl »

nooby & raffy: What are yours graphic cards, with that small resolution it's probably using just that basic vesa driver. Installing xorg graphic driver is one of the simplest things, you only need to know card's name (use lspci) and I will help.
nooby wrote:I can feel the fun of having accomplish it. I would want to do it too
but in what way is it useful so I would abandon slacko and go over ?
I never used slacko, only lucid once for a short time so can't tell. It's more fun definitely! :wink:

simargl

#20 Post by simargl »

New functions were added to spkg package manager... (click to enlarge)
Image

Packages mirror is here http://code.google.com/p/alphaos/downloads/list
spkg -di is function for download and install package (it must be full package name and it doesn't handle dependencies :roll: )

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

Intel N10 chip

#21 Post by raffy »

simargl wrote:nooby & raffy: What are yours graphic cards
VGA compatible controller: Intel Corporation Cedarview Integrated Graphics Controller (rev 09)
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

simargl

Re: Intel N10 chip

#22 Post by simargl »

raffy wrote:
simargl wrote:nooby & raffy: What are yours graphic cards
VGA compatible controller: Intel Corporation Cedarview Integrated Graphics Controller (rev 09)
I see you mentioned this in your first post also, :oops: . Intel driver is already included, so I don't know it should work, at least for me it works.

If you want to log out to console replace X_AUTOLOGIN="yes" to X_AUTOLOGIN="no" in /etc/rc.conf, then log out and make xorg.conf file with X -configure. There you can set resolution.

Actually first try with lxrandr to see what is supported.

stifiling
Posts: 388
Joined: Sun 30 Dec 2007, 03:56

#23 Post by stifiling »

There are aspects of this distro 'alpahos' that make it better than ArchPup. It's free'er (or however it's spelled). i installed pacman in it...and am using it very much so as if it's ArchPup.

Trying to decide if i want to continue piecing together, and updating the adrives for ArchPup...or shift the attention to this new 'and improved to be honest with you' AlphaOS.

Great Job so far sim, i'm diggin it.

simargl

#24 Post by simargl »

Hi stifiling, alphaOS is on distrowatch waiting list :D
http://distrowatch.com/dwres.php?resource=submit

Only two days after first ever release!

simargl

#25 Post by simargl »

New functions in package manager: repo-add, repo-remove, repo-list for working with pkgs.list database.

spkg -cc
Clean the entire package cache

spkg -dp name
Only download package but do not install it

Here is another def script example. As you see it can use multiple sources for making single package :idea:

Code: Select all

name="sdl_extra"
version="1.2.15"
revision="1"
category="development"
description="SDL gfx, image, mixer, net, pango, sound and ttf bindings"
source="http://ftp.de.debian.org/debian/pool/main/s/sdlgfx/sdlgfx_2.0.23.orig.tar.gz
http://ftp.de.debian.org/debian/pool/main/s/sdl-image1.2/sdl-image1.2_1.2.12.orig.tar.gz
http://ftp.de.debian.org/debian/pool/main/s/sdl-mixer1.2/sdl-mixer1.2_1.2.12.orig.tar.gz
http://ftp.de.debian.org/debian/pool/main/s/sdl-net1.2/sdl-net1.2_1.2.8.orig.tar.gz
http://ftp.de.debian.org/debian/pool/main/s/sdlpango/sdlpango_0.1.2.orig.tar.gz
http://ftp.de.debian.org/debian/pool/main/s/sdl-sound1.2/sdl-sound1.2_1.0.3.orig.tar.gz
http://ftp.de.debian.org/debian/pool/main/s/sdl-ttf2.0/sdl-ttf2.0_2.0.11.orig.tar.gz"
homepage="http://www.libsdl.org"
maintainer="simargl <archpup@gmail.com>"
depends="sdl libpng libjpeg libtiff zlib libvorbis libmikmod pango freetype2"
makedepends=""

compile() {
  for i in SDL_Pango-0.1.2 SDL_gfx-2.0.23 SDL_image-1.2.12 SDL_mixer-1.2.12 SDL_net-1.2.8 SDL_sound-1.0.3 SDL_ttf-2.0.11; do
    cd $build/$i
    ./configure \
      --prefix=/usr \
      --disable-static
    make || exit
  done
}

package() {
  for i in SDL_Pango-0.1.2 SDL_gfx-2.0.23 SDL_image-1.2.12 SDL_mixer-1.2.12 SDL_net-1.2.8 SDL_sound-1.0.3 SDL_ttf-2.0.11; do
    cd $build/$i
    make DESTDIR=$destdir install
  done
}

simargl

#26 Post by simargl »

To do list:
- add support for installing more than one package at once
- work with just spkg -di uget not full package name
- handle dependencies
- recompile whole toolchain with new distro name (after that lock it forever)
- recompile Xorg packages group, with before missed glu package

john3voltas
Posts: 102
Joined: Mon 23 May 2011, 13:10

#27 Post by john3voltas »

Great work with alpha.
It is looking good.
Will give it a try during the weekend.
Only package installer is spkg? No pacman or apt or yum, etc?

EDIT: BTW, you chose udev for both your puplets. Is there a problem with your puplets and systemd?

simargl

#28 Post by simargl »

john3voltas wrote:Great work with alpha.
It is looking good.
Will give it a try during the weekend.
Only package installer is spkg? No pacman or apt or yum, etc?

EDIT: BTW, you chose udev for both your puplets. Is there a problem with your puplets and systemd?
Hello john3voltas, thanks for your comment :P
I tried various things with udev in Archpup and only version that worked perfectly for me was 175. Beside that my tests were with udev-182, udev fork by Gentoo team, udev extracted from systemd 197 package from Arch and all three had the same problem: sound and internet did not work with them (only way to connect was manual loading needed kernel module), but Xorg worked at my surprise. Udev is low-level system, so I would rather not experiment too much with it, especially because it currently works without problem. :wink:

simargl

#29 Post by simargl »

This is upgraded spkg package manager version 0.9.8.1 (attachment removed)
It has all features I planned to add, so here it is you can test it.

Extract this archive, and run installation script with
sh install

Then type
spkg update

See all available package on mirror with
spkg list

Install what you want
spkg -gi pkgname1 pkgname2....

Deadbeef audio player that couldn't compile in Archpup, here is compiled and working fine. It uses gtk3 btw.
Last edited by simargl on Fri 22 Mar 2013, 15:31, edited 1 time in total.

stifiling
Posts: 388
Joined: Sun 30 Dec 2007, 03:56

#30 Post by stifiling »

Frisbee for me is working perfectly from a quick couple reboot tests. It's blinky icon in the notification area is blinking, and everything else. It's the same files I used in the light-xfce adrv for ArchPup. for some reason though, it had minor issues in ArchPup.

simargl

#31 Post by simargl »

stifiling, as you mentioned somewhere pacman still works in alphaOS and reason for that is I kept part of spkg that makes entries in /var/lib/pacman/local, so pacman still recognizes packages from there as installed... spkg even handle things like "provides, conflict, replaces"

Still, I would rather to just compile programs in alphaOS to get the best compatibility.

Compiling full xfce from source for example is not that hard (require about 10-15 packages)

Some more things about spkg:
1. if you type spkg -gi evince it will get and install evince plus dependency poppler
2. with spkg -g evince it will just get evince to cache directory and Not poppler. Is this enough or I should modify script to get dependencies even if you don't want to install package?
3. spkg -i is command for installing local packages and supports infinite number of arguments. Example: you have folder with 100 spkg packages and you type spkg -i * they are all installed
4. If you go to /initrd/pup_rw/var/lib/spkg/installed you will see packages installed by you (not part of the main iso)
5. automatically upgrading packages does not work and I have no idea how to implement that
6. spkg repack PKGNAME, will remake package from installed files

ojowinter
Posts: 7
Joined: Sun 10 Mar 2013, 07:22

#32 Post by ojowinter »

Hello, my first post :o

Several quetion is ok?
1. How to save alphaos state to keep permanently in strage memory?

remaine my disk capacity is 100M... :oops:
http://dl.dropbox.com/u/1053962/arpha-2 ... 143951.png

2. How to backup my def file created under /mnt/home/data/spkg/def-scripts/*/?

thanks.

simargl

#33 Post by simargl »

ojowinter wrote:Hello, my first post :o

Several quetion is ok?
1. How to save alphaos state to keep permanently in strage memory?

remaine my disk capacity is 100M... :oops:
http://dl.dropbox.com/u/1053962/arpha-2 ... 143951.png

2. How to backup my def file created under /mnt/home/data/spkg/def-scripts/*/?

thanks.
Hi ojowinter, thanks for using alphaOS! :D

1.Check under System- make personal save file, select desired size and partition .
That created file will be loaded on every start up with all your settings, You can also copy that file somewhere as alphasave.2fs.bak
in case of some problems appear, I do that all the time.

2. In next version pciutils will be in main iso, I forgot about that package before.
From that screenshot I'd you are quite advanced user so maybe you could help maintaining alpha os repository :wink:
http://code.google.com/p/alphaos/downloads/list

In case of smaller disk capacity you might be interested in function spkg makesfs that converts all packages in a folder to single sfs module. 20 sfs modules can be loaded I think that's more than enough for everyone.

simargl

#34 Post by simargl »

Interesting or not, with this command you cand find appropriate CFLAGS for your CPU

Code: Select all

echo "" | gcc -march=native -v -E - 2>&1 | grep cc1
For me it's -march=nocona -mtune=nocona :o

Source: http://en.gentoo-wiki.com/wiki/Hardware ... r_features

ojowinter
Posts: 7
Joined: Sun 10 Mar 2013, 07:22

#35 Post by ojowinter »

umm...Honestly, I didn't know well gcc option and how way to confirm it.
I study your advising to me :o

Btw, Now remind me gtk-doc build trouble.

Dependencies
gtk-doc - docbook-xsl - docbook-xml

Some gtk application need gtk-doc, and so need to package docbook-xml, docbook-xlt,
but two is required by manually handling setup... :(
http://www.linuxfromscratch.org/blfs/vi ... cBook.html
http://www.linuxfromscratch.org/blfs/vi ... k-xsl.html

I think that it's good to have two in default alpha iso.

Post Reply