Page 6 of 19

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 04 Apr 2014, 04:05
by stifiling
the gnome desktop isn't thoroughly tested but should work just fine. if you happen to test and that's not the case..pls let me know. It seems to take a lil longer than desired to fully load to the desktop. Not sure if that's just a gnome thing, or maybe pulseaudio...idk.

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 02:53
by francois
1.0 Cinamon de is really good looking. I adopt it for my 64 bit arch aka sensei porteus installation.

Thanks. :D

2.0 I really prefer to work with google-chrome, called chromium in archlinux. The following trick does not work to run chromium-root:

Code: Select all

exec /usr/lib/chromium/chromium "$@"  --user-data-dir
To be added at the end of the /usr/bin/chromium command.

I get:

Code: Select all

root@sensei:~# chromium
[9604:9621:0404/224454:ERROR:shared_memory_posix.cc(226)] Creating shared memory in /dev/shm/.org.chromium.Chromium.YKak0e failed: No such file or directory
[9604:9621:0404/224454:ERROR:shared_memory_posix.cc(229)] Unable to access(W_OK|X_OK) /dev/shm: No such file or directory
[9604:9621:0404/224454:FATAL:shared_memory_posix.cc(231)] This is frequently caused by incorrect permissions on /dev/shm.  Try 'sudo chmod 1777 /dev/shm' to fix.
Aborted
Any suggestion? :roll:

Thanks.

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 03:22
by stifiling
I must agree. i like it too. although i myself am using xfce with kwin. i uploaded kwin-standalone-git to the senseirepo. it takes a bit of effort to get it set up just the way you may like because u have to manually edit the /root/.kde4/share/config/kwinrulesrc file. the kwin tool similar to compiz config settings manager...doesn't come with kwin-standalone-git. but anyways... after doing your hack to run chromium as root....the command:

Code: Select all

mkdir /dev/shm
should get it going.

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 17:27
by francois
1.0 With cinnamon desktop booting time on my box a toshiba z930 laptop is 55 secs, whereas with porteus stock kde environment it is 20 to 25 secs. I am unable to keep the changes produced within the cinamon environment, though I have modified the settings within it. It seems to be time needed to load the 125 MB cinnamon desktop. Once loaded, you get in and out readily into cinammon with startx.

2.0 The instruction you gave just worked fine:
2.1

Code: Select all

mkdir /dev/shm 
I was intrigued and found that that command will share data between programs
http://www.cyberciti.biz/tips/what-is-d ... usage.html

2.2 I found the way to run chromium-root, on archlinux msxmaniac propose:
https://bbs.archlinux.org/viewtopic.php?id=109980

Code: Select all

CHROMIUM_FLAGS="--user-data-dir"

3.0 I prefer to work in root mode. With pacman-archlinux does that make much difference? Is there only the same scary stories about running root?

4.0 xzm modules building. I got the instructions from the first page of this thread to build xzm modules. Is it possible to remove a few packages from /var/cache/pacman/pkg before building the package, or will this affect the system then?

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 18:45
by stifiling
are u using a save file? cinnamon loads slow for me too, but when using a .dat save file..it loads fast. you say when using cinnamon it's not saving your changes? are u certain u're using a .dat save file?

the /dev/shm folder is one that 'should' be in the 001-core. I'll put it in for the next upload. so no not a chromium issue..that's my mistake.

I like running as root too. the system auto-loads to the root user. there isn't even any other users, not even guest. if u'd like to run the system as a user, presently, u'd have to add one.

i've been using pacman as root for years. since simargl came out w/archpup. using pacman as root i've had 0 problems. every blue moon though, i'd come across some app like chromium (as we see), vlc, or thunar...needing some special mod or hack to run as the root user.

try installing:

Code: Select all

pacman -S makexzm
and then:

Code: Select all

makexzm packagename
if you want more than 1 package in your xzm module:

Code: Select all

makexzm packagename packagename2 etc...
after doing so your xzm module should be present at /mnt/home/packagename

you shouldn't have to remove anything from /var/cache/pacman/pkg...makexzm should pull only the needed dependecies based on what's *installed* and not necessarily what you have in /var/cache/pacman/pkg. I like using makexzm at the beginning, before i start installing apps. to be certain none of the dependecies are installed into the .dat save file, and don't make it into the xzm module. this way, if i decide to scrap that .dat save file, the xzm module will still work.

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 19:10
by francois
are u using a save file?
Yes I do. I do not use save.dat as I am on a linux partition. It is not necessary.

if u'd like to run the system as a user, presently, u'd have to add one
I do not need normal user but I have tried it. I get:

Code: Select all

root@sensei:~# adduser
bash: adduser: command not found
root@sensei:~# 
Is there a package for the adduser command?

i'd come across some app like chromium (as we see), vlc, or thunar...needing some special mod or hack
I have edited my precedent post as to chromium. I am running root now.
Personnally, I prefer thunar root mode.

makexzm packagename
This is handy. I missed this one while reading the thread once and a while.
Why don't you make a makexzm all directory command? If you may. :)

Meanwhile, I thought I would get some kind of script myself:

Code: Select all

root@sensei:/var/cache/pacman/pkg# ls > text
root@sensei:
Ok. I have tried it. Hum! I need a little practice it seems, see:

Code: Select all

root@sensei:~# pacman -S makexzm
warning: makexzm-001-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Packages (1): makexzm-001-1

Total Download Size:    0.00 MiB
Total Installed Size:   0.02 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
 makexzm-001-1-any       1944.0   B  0.00B/s 00:00 [----------------------] 100%
(1/1) checking keys in keyring                     [----------------------] 100%
(1/1) checking package integrity                   [----------------------] 100%
(1/1) loading package files                        [----------------------] 100%
(1/1) checking for file conflicts                  [----------------------] 100%
(1/1) checking available disk space                [----------------------] 100%
(1/1) reinstalling makexzm                         [----------------------] 100%
root@sensei:~# cd /var/cache/pacman/pkg
root@sensei:/var/cache/pacman/pkg# ls
chromium-33.0.1750.152-1-x86_64.pkg.tar.xz
dotconf-1.3-4-x86_64.pkg.tar.xz
makexzm-001-1-any.pkg.tar.xz
mlocate-0.26-1-x86_64.pkg.tar.xz
python-3.3.5-1-x86_64.pkg.tar.xz
python-xdg-0.25-1-any.pkg.tar.xz
snappy-1.1.1-1-x86_64.pkg.tar.xz
speech-dispatcher-0.8-2-x86_64.pkg.tar.xz
thunar-1.6.3-1-x86_64.pkg.tar.xz
root@sensei:/var/cache/pacman/pkg# ls > text
root@sensei:/var/cache/pacman/pkg# ls
chromium-33.0.1750.152-1-x86_64.pkg.tar.xz
dotconf-1.3-4-x86_64.pkg.tar.xz
makexzm-001-1-any.pkg.tar.xz
mlocate-0.26-1-x86_64.pkg.tar.xz
python-3.3.5-1-x86_64.pkg.tar.xz
python-xdg-0.25-1-any.pkg.tar.xz
snappy-1.1.1-1-x86_64.pkg.tar.xz
speech-dispatcher-0.8-2-x86_64.pkg.tar.xz
text
thunar-1.6.3-1-x86_64.pkg.tar.xz
root@sensei:/var/cache/pacman/pkg# makexzm chromium-33.0.1750.152-1-x86_64.pkg.tar.xz dotconf-1.3-4-x86_64.pkg.tar.xz makexzm-001-1-any.pkg.tar.xz mlocate-0.26-1-x86_64.pkg.tar.xz python-3.3.5-1-x86_64.pkg.tar.xz python-xdg-0.25-1-any.pkg.tar.xz snappy-1.1.1-1-x86_64.pkg.tar.xz speech-dispatcher-0.8-2-x86_64.pkg.tar.xz thunar-1.6.3-1-x86_64.pkg.tar.xz
:: Saving packages cache
:: Downloading chromium-33.0.1750.152-1-x86_64.pkg.tar.xz dotconf-1.3-4-x86_64.pkg.tar.xz makexzm-001-1-any.pkg.tar.xz mlocate-0.26-1-x86_64.pkg.tar.xz python-3.3.5-1-x86_64.pkg.tar.xz python-xdg-0.25-1-any.pkg.tar.xz snappy-1.1.1-1-x86_64.pkg.tar.xz speech-dispatcher-0.8-2-x86_64.pkg.tar.xz thunar-1.6.3-1-x86_64.pkg.tar.xz
error: target not found: chromium-33.0.1750.152-1-x86_64.pkg.tar.xz
warning: 'chromium-33.0.1750.152-1-x86_64.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
error: target not found: dotconf-1.3-4-x86_64.pkg.tar.xz
warning: 'dotconf-1.3-4-x86_64.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
error: target not found: makexzm-001-1-any.pkg.tar.xz
warning: 'makexzm-001-1-any.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
error: target not found: mlocate-0.26-1-x86_64.pkg.tar.xz
warning: 'mlocate-0.26-1-x86_64.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
error: target not found: python-3.3.5-1-x86_64.pkg.tar.xz
warning: 'python-3.3.5-1-x86_64.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
error: target not found: python-xdg-0.25-1-any.pkg.tar.xz
warning: 'python-xdg-0.25-1-any.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
error: target not found: snappy-1.1.1-1-x86_64.pkg.tar.xz
warning: 'snappy-1.1.1-1-x86_64.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
error: target not found: speech-dispatcher-0.8-2-x86_64.pkg.tar.xz
warning: 'speech-dispatcher-0.8-2-x86_64.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
error: target not found: thunar-1.6.3-1-x86_64.pkg.tar.xz
warning: 'thunar-1.6.3-1-x86_64.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
Empty cache directory
root@sensei:/var/cache/pacman/pkg#
I realize that it works thru the pacman interface. Good.

Thanks a lot for your time. :D

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 19:39
by stifiling
i'll have to try it exactly that way, and see what i get.

archlinux uses the command "useradd"...this wiki explains how to use it. adduser still works too and the best way to get it in is:

Code: Select all

pacman -S busybox
ln -s /usr/bin/busybox /usr/bin/adduser
you can also symlink addgroup to busybox too.

"makexzm all directory"? could u explain this? i'm not really understanding it...like how would it make things easier, or better....

cding into the /var/cache/pacman/pkg directory is more that likely what caused that. take a look at my output:

Code: Select all

root@sensei:~# makexzm leafpad vi cronie
:: Saving packages cache
:: Downloading leafpad vi cronie
resolving dependencies...

Packages (3): cronie-1.4.11-1  leafpad-0.8.18.1-3  vi-1:050325-3

Total Download Size:   0.27 MiB

:: Proceed with download? [Y/n] Y
:: Retrieving packages ...
 vi-1:050325-3-x86_64     141.4 KiB   315K/s 00:00 [----------------------]  51%
 cronie-1.4.11-1-x86_64   201.7 KiB   273K/s 00:01 [----------------------]  73%
 leafpad-0.8.18.1-3-...   276.1 KiB   269K/s 00:01 [----------------------] 100%
(3/3) checking keys in keyring                     [----------------------] 100%
(3/3) checking package integrity                   [----------------------] 100%
:: Moving packages to /mnt/home/leafpad
:: Running script arch2xzm leafpad.xzm
Extracting:
cronie-1.4.11-1-x86_64.pkg.tar.xz
leafpad-0.8.18.1-3-x86_64.pkg.tar.xz
vi-1:050325-3-x86_64.pkg.tar.xz

Creating leafpad.xzm
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on leafpad.xzm, block size 524288.
[=================================================================|] 72/72 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 524288
	compressed data, compressed metadata, compressed fragments, compressed xattrs
	duplicates are removed
Filesystem size 260.87 Kbytes (0.25 Mbytes)
	34.96% of uncompressed filesystem size (746.11 Kbytes)
Inode table size 1346 bytes (1.31 Kbytes)
	20.50% of uncompressed inode table size (6567 bytes)
Directory table size 1486 bytes (1.45 Kbytes)
	32.41% of uncompressed directory table size (4585 bytes)
Number of duplicate files found 3
Number of inodes 206
Number of files 75
Number of fragments 2
Number of symbolic links  7
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 124
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)
root@sensei:~# 
u see i just ran it from the default '~' directory

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 19:44
by francois
1.0 chromium is not downloaded, thus it could not be compressed, I imagine.

2.0 Concerning the mksquashfs:

Code: Select all

mksquashfs /mnt/sda1/gimp /mnt/sda1/gimp.xzm -comp xz -b 524288 -Xbcj x86
Has this to be changed for the 64bit edition?

Thanks.

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 19:50
by stifiling
not that's exactly how it should be, even on 64-bit.

Code: Select all

makexzm chromium
works...what is it saying when u try it? even if it's not downloaded first, makexzm will download it from the archrepos. even if it is downloaded...makexzm will redownload it from the arch repos.

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 20:03
by francois
You are right. This happened only when I made many packages at a time.

Thanks for your time.

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 20:24
by francois
Where should be the xzm module. I can't find:

Code: Select all

Creating 4.0 filesystem on chromium.xzm
See:

Code: Select all

root@sensei:/var/cache/pacman/pkg# locate chromium.xzm
root@sensei:/var/cache/pacman/pkg#

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 05 Apr 2014, 20:39
by stifiling
at the location /mnt/home/chromium.xzm

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 09 Apr 2014, 02:04
by francois
Porteus archilinux with pacman with Cinnamon. This is a wonderful edition. 8)

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 10 Apr 2014, 22:44
by stifiling
thanks for that.

are u still having the 55 sec boot time w/cinnamon? did u get makexzm to work right? what abt the mechanical power button from a long time ago...did u ever figure that one out..lol??

Re: Porteus/Arch aka Sensei (Porteus w/pacman package manage

Posted: 11 Apr 2014, 00:21
by francois
Hi stifiling.

Still with the 55 sec boot time.

My save change folder (linux) (I hate save.dat folder, it does not expands) does not work. It works on all my other porteus installations. Here is my grub legacy menu.lst entry:

Code: Select all

title porteus v3_64 on sda5 64bit_v30_arch   arch
root (hd0,4)
kernel /64bit_v30_arch/boot/syslinux/vmlinuz from=/dev/sda5/64bit_v30_arch changes=EXIT:/64bit_v30_arch/porteus login=root
initrd /64bit_v30_arch/boot/syslinux/initrd.xz
boot

I could not save any info, not even after setting:
menu > preferences > system settings > startup programs > automatically remember running applications when logging out.

Within the X environment if I use pacman the files will not be saved. Thus until I resolve this save folder problem I am condemned to rebuild my system at each booting.  :crazy: 

This is not that annoying. I like to play with pacman. :twisted: 

makexzm:
It was just that I did not understood that this was a pacman alike command. I was trying to use it directly on some directory with tar.gz package in them. It works fine now for me

chromium root mode
As I wrote, the solution is:
2.1

Code: Select all

mkdir /dev/shm 
I was intrigued and found that that command will share data between programs
http://www.cyberciti.biz/tips/what-is-d ... usage.html

2.2 I found the way to run chromium-root, on archlinux msxmaniac propose:
https://bbs.archlinux.org/viewtopic.php?id=109980

Code: Select all

CHROMIUM_FLAGS="--user-data-dir"

adduser:
I did not pursue. In fact, I never use a normal user mode. I have been slax infected.There is nothing to loose except all my money or my passwords. :oops:
However, I keep all my data on a usb key. 8)