Raspberry Puppi

A home for all kinds of Puppy related projects
Message
Author
User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#31 Post by Tman »

Lobster,

I don't have a Raspberry Pi, but I have been trying out Arch recently and did create some notes for myself. Below are my notes to get xfce or lxde up and running in Arch. It's not Jwm, but at least you'll have a working Desktop Environment. These notes will be easier to read if you copy them to a script and view it from geany.

Code: Select all

#!/bin/sh
# AFTER INSTALLING ARCH TO THE HARD-DRIVE:

#ADD NEW USER
adduser
#Additional groups: audio,video,optical,storage,power,wheel,games
nano /etc/sudoers
#give new user root permission

#UPDATING ARCH
pacman -Syy
pacman -S pacman
pacman -S filesystem --force
pacman -S tzdata
rm /etc/profile.d/locale.sh
pacman -Syu

#INSTALL X
pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils
pacman -S xorg-twm xorg-xclock xterm ttf-dejavu

#INSTALL VIDEO DRIVERS + DBUS
pacman -S xf86-video-vesa dbus
cp /etc/skel/.xinitrc /root
cp /etc/skel/.xinitrc /home/tman
#replace tman with your username

#ADDING DBUS TO STARTUP
nano /etc/rc.conf
#add "dbus" to beginnng of "DAEMONS" list
#reboot to get dbus running

#INSTALL A DESKTOP ENVIRONMENT
pacman -S lxde xfce
nano ~/.bash_profile
#add "export DESKTOP_SESSION=LXDE" to the last line (without quotes)
nano ~/.xinitrc
#add "exec ck-launch-session startlxde" without quotes
nano /home/tman/.xinitrc
#exec ck-launch-session startlxde

#CONFIGURE OPENBOX
cd /etc/xdg/openbox
mkdir ~/.config/openbox
cp * ~/.config/openbox
rm ~/.config/openbox/environment

#START LXDE OR XFCE FROM CONSOLE
#I have created go-lxde and go-xfce scripts to run the commands below:
xinit /usr/bin/ck-launch-session dbus-launch startlxde
xinit /usr/bin/ck-launch-session dbus-launch startxfce4
These notes are based on info from some Youtube tutorials and the Arch Wiki: https://wiki.archlinux.org/index.php/LXDE

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#32 Post by Lobster »

have been trying out Arch recently
Image

excellent Tman - added link to your info on wiki
antiloquax will be pleased - preparing an Arch based Puppi . . .

Have decided the Puppi name suggested works 8)

Two notes for old BBC micro enthusiasts . . .
Rox and and xaraLX were originally coded for the ARM based
Archimedes computer
http://en.wikipedia.org/wiki/Acorn_Archimedes

Also read this to get an honest and mature appraisal of the software
http://benosteen.wordpress.com/2012/04/ ... pberry-pi/
Start by expecting that nothing works and that you, or someone like you, will have to put the time and effort in to make it do what you want.
Be supportive and congratulatory of anyone who improves that situation. For example, going from no sound through linux to a partially working ALSA driver is cause for celebration, not ‘WTF Boo SUCKS’
More of guideline #1 – if you expect everything to work Out-Of-The-Box this early on, you will be disappointed.


I wonder if they read sickguts adventures with a mountain and mouthwash . . . :wink:
Last edited by Lobster on Tue 24 Apr 2012, 10:48, edited 2 times in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#33 Post by antiloquax »

Tman wrote:I have been trying out Arch recently and did create some notes for myself.
This is very useful, thanks Tman.
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#34 Post by Tman »

Lobster and Antiloquax,

You're welcome. Please note that in the "UPDATING ARCH" section, that the commands I used were workarounds needed to update the official release of Arch. :wink:
But during most other times, Arch can be updated with the usual commands: Pacman -Syy && Pacman -Syu

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#35 Post by antiloquax »

I haven't got around to looking at your notes properly tman - I will do so a bit later this evening.
However, my Arch Puppy is coming along! I installed NetSurf as my default browser.
By the way, if anyone else is trying this, you'll need to do:

Code: Select all

pacman -S lcms
in order to get a shared object that netsurf requires.

And i've added a few essentials (gparted, leafpad, hardinfo, mtpaint, pygame).
I've got it starting JWM automatically (after login).
I have been putting off tacking the "icons on the desktop" issue ... :oops:
EDIT: I can't seem to get a pinboard working. I've tried adding:

Code: Select all

 rox -p /usr/Choices/ROX-filer/pin
to .xinitrc, but I still can't put icons on the desktop. Can anyone offer advice?[/b]

I'm posting a screen-shot that shows glx gears running.
Attachments
puppi1.png
(65.07 KiB) Downloaded 1659 times
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#36 Post by Tman »

I'm not sure about the Rox/Jwm combo but with LXDE, everything is pretty much set up for you. The only problems that I have with it, is that some apps don't appear in the menus after you install them with Pacman.
Attachments
arch_preview.jpg
(42.88 KiB) Downloaded 1527 times

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#37 Post by antiloquax »

Thanks to sickgut for his help!
I now have ROX and JWM working together.
I think that what I was doing wrong was that I set a background image in my .jwmrc and so, although the pinboard was there, I couldn't see it. This is where I am up to so far. I need to make some more room in my partition so I can install some more things. But I have Vim and Python, so I am a pretty happy bunny (sorry - Puppy!)
BTW I am posting this from my virtual Pi!
Attachments
Puppi.png
(95.64 KiB) Downloaded 1492 times
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

sneekylinux
Posts: 61
Joined: Fri 20 Mar 2009, 19:49
Location: dorset,uk

#38 Post by sneekylinux »

Lobster wrote:I am trying Arch
and so far I have
updated Arch
downloaded and 'installed' the jwm window manager
the configuration for jwm is in /etc/system.jwmrc
and I have looked at it with nano - a cli editor

not sure how to get jwm running . . . :?
Any ideas?

it needs a display option
something like jwm -display vesa30
drop liam a line over at raspberry pi tutorials, he has arch up and running fine lobster..

sneekylinux
Posts: 61
Joined: Fri 20 Mar 2009, 19:49
Location: dorset,uk

#39 Post by sneekylinux »

have had debian running fine for a while now on mine, might give ubuntu arm dev a go in a bit me thinks

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#40 Post by Lobster »

have had debian running fine for a while now on mine
Have you done a review? :D
Also using the Puppification process will give you faster options . . .
http://puppylinux.org/wikka/Puppi

I will be going through the puppification process again
and adding/improving the process. I welcome your comments and/or suggestions.

Mark, who is starting more from scratch with Arch on Qemu is offering an alternative approach but working with an ARM emulator

Meanwhile Barry is compiling on a more advanced ARM chip
http://bkhome.org/blog/?viewDetailed=02800

I am getting more comfortable with the Rpi - early days though . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#41 Post by Tman »

Antiloquax,

Although Jwm is not my favourite window manager, you got me curious to learning how to set it up in Arch.

So I installed Rox and Jwm, but cannot seem to get them to work in conjunction from the console.
xinit /usr/bin/jwm gives no rox pinboard and xinit rox -S ; /usr/bin/jwm doesn't work.

Currently I have to run the command:
xinit rox -S and then launch jwm with Rox-Filer.

Please post your technique on howto get these two running simulteanously,

...Much appreciated.

=====================

Edit: Oh,I figured out one way ...
Add the following to /root/.jwmrc

Code: Select all

<StartupCommand>rox -p=/root/Choices/ROX-Filer/Pin &</StartupCommand>
and then run xinit /usr/bin/jwm from the console.

But I still don't know how to get the ROX-Session running first and then Jwm after from the console...

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#42 Post by Tman »

odd...it is not really using the "Pin" file, but the Pinboard is getting saved to somewhere else.

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#43 Post by antiloquax »

This is the relevant part of my .xinitrc:

Code: Select all

rox -p --pinboard=pin
exec /usr/bin/jwm
The pinboard "pin" is then saved in ~/.config/rox.sourceforge,net/ROX-Filer as "pb_--pinboard=pin".
Which is a bit odd, come to think of it!

SNIP I realised that I didn't need "--pinboard=". It should be:

Code: Select all

rox -p pin
exec /usr/bin/jwm
The pinboard "pin" is then saved in ~/.config/rox.sourceforge,net/ROX-Filer as "pb_pin".

Thanks Tman - you saved me from a rookie error!
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#44 Post by Tman »

Antiloquax,

And thank you as well; these exchanges help us both learn a few new tricks. :o

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#45 Post by antiloquax »

Hi Lobster,

I haven't tried Barry's compile of Rox. What's the advantage of this over the Rox from the Arch repo? Is it smaller, faster? I may try it tomorrow if I get a chance.
Anyway, today I have been continuing to make slight progress.
I've installed xarchiver. I was having problems with Pygame in Python2, so I ditched that and compiled Python3.1.4. The current Arch version is 3.2.3 (I think). Pygame sound doesn't work yet with 3.2.x
Since the post about the "computers at school" manual made it clear that Python 3 will be the main teaching language in the educational release, I thought it more sensible to go for Python 3.
Anyway. I have pygame working now and it's importing images properly. So that's nice. I tried to install transmission-gtk, but got some errors. I will have to check my mirrors more thoroughly.
:)
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#46 Post by Lobster »

antiloquax wrote:Hi Lobster,
I haven't tried Barry's compile of Rox. What's the advantage of this over the Rox from the Arch repo? Is it smaller, faster? I may try it tomorrow if I get a chance.
Well I got a segmentation fault. I wish you more luck. It is more than likely smaller and is designed to link into Puppy programs, icons etc.
Anyway, today I have been continuing to make slight progress.
I've installed xarchiver. I was having problems with Pygame in Python2, so I ditched that and compiled Python3.1.4. The current Arch version is 3.2.3 (I think). Pygame sound doesn't work yet with 3.2.x
The sound facility/driver ALSA driver is at an early stage. I am not bothering with for example mhwaveedit.
I have pygame working now and it's importing images properly. So that's nice. I tried to install transmission-gtk, but got some errors. I will have to check my mirrors more thoroughly.
:)
Good that you are making progress. :) Yesterday I tried making use of upx to make programs smaller (without success). Though Puppy programs are compressed and decompressed before running anyways . . . Gnumeric was working OK. I have also started a simple bash script for the puppification of Squeeze. 8)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#47 Post by antiloquax »

That's great Lobster.
I am planing to install Scratch later. The version in the Arch repo is marked as "out of date" so I will have a go with the source files.
I'm planning to try to include some more specific Puppy bits (eg the screenshot shell script from Slacko).
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#48 Post by Flash »

Here are two articles about the Raspberry Pi board, one with pictures of the board.
http://www.techrepublic.com/photos/rasp ... hotopaging
http://www.techrepublic.com/blog/europe ... ag=nl.e010

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#49 Post by antiloquax »

I've made some more progress with the Arch Puppi.
I've installed Open JDK, Greenfoot, GeoGebra, Lua and Ruby.
At present I can't get Scratch to work.
I've used the Slacko JWM tray and menu structure.
I will make a copy of the filesystem as soon as I can and upload it. This will probably take a long time as my internet connection isn't very fast. I don't see how I can make a proper image like the original one, but you should be able to dd the file-system across into an SD card set up with the original Arch image.
Attachments
Puppi3.png
(105.02 KiB) Downloaded 963 times
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#50 Post by Lobster »

creating img file

Code: Select all

dd if=/dev/sda of=/path/to/a/mounted/filesystem/filename.img 
http://www.murga-linux.com/puppy/viewto ... 977#621977
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply