You are not logged in.
Well adding .Xauthority isn't that hard, basic stuff...
touch .Xauthority && chmod 600 .Xauthority.
I have a feeling you don't have a clue where everything belongs(correct me if I'm wrong), isn't it a good idea to study your own installation before cloning it to a ISO
Let me show you a archiso tree, it should give you some clues.
Though, everything is in the same place as in your Arch installation.
.
├── airootfs
│ ├── etc
│ │ ├── fstab
│ │ ├── hostname
│ │ ├── hosts
│ │ ├── locale.conf
│ │ ├── machine-id
│ │ ├── pam.d
│ │ │ └── su
│ │ ├── rc.local
│ │ ├── skel
│ │ │ ├── .Xauthority
│ │ │ ├── .Xresources
│ │ │ ├── .bashrc
│ │ │ ├── .config
│ │ │ │ ├── dmenu
│ │ │ │ │ └── dmenu-bind.sh
│ │ │ │ ├── globaltime
│ │ │ │ │ └── globaltimerc
│ │ │ │ ├── leafpad
│ │ │ │ │ └── leafpadrc
│ │ │ │ ├── nitrogen
│ │ │ │ │ ├── bg-saved.cfg
│ │ │ │ │ └── nitrogen.cfg
│ │ │ │ └── xfce4
│ │ │ │ ├── helpers.rc
│ │ │ │ ├── panel
│ │ │ │ │ ├── icon
│ │ │ │ │ │ └── i3.png
│ │ │ │ │ ├── launcher-10
│ │ │ │ │ ├── launcher-11
│ │ │ │ │ ├── launcher-12
│ │ │ │ │ └── launcher-9
│ │ │ │ └── xfconf
│ │ │ │ └── xfce-perchannel-xml
│ │ │ │ └── xfce4-panel.xml
│ │ │ ├── .gtkrc-2.0
│ │ │ ├── .gtkrc-2.0.mine
│ │ │ ├── .i3
│ │ │ │ ├── config
│ │ │ │ ├── conky
│ │ │ │ │ └── conkyrc-i3
│ │ │ │ ├── exitmenu
│ │ │ │ ├── i3_layout
│ │ │ │ ├── i3status.conf
│ │ │ │ ├── logs
│ │ │ │ └── scripts
│ │ │ │ ├── conky-i3bar
│ │ │ │ ├── power
│ │ │ │ └── switch-layout
│ │ │ ├── .wall
│ │ │ │ └── arch-i3-brown.png
│ │ │ ├── .xinitrc
│ │ │ ├── .xsession
│ │ │ ├── .zprofile
│ │ │ ├── .zshrc
│ │ │ └─── .zshrc.ini
│ │ ├── sudoers.d
│ │ │ └── g_wheel
│ │ ├── systemd
│ │ │ ├── scripts
│ │ │ │ └── choose-mirror
│ │ │ └── system
│ │ │ ├── choose-mirror.service
│ │ │ ├── etc-pacman.d-gnupg.mount
│ │ │ ├── getty@tty1.service.d
│ │ │ │ └── autologin.conf
│ │ │ └── pacman-init.service
│ │ ├── udev
│ │ │ └── rules.d
│ │ │ └── 81-dhcpcd.rules
│ │ └── xdg
│ │ └── autostart
│ │ └── vboxclient
│ ├── root
│ │ ├── .automated_script.sh
│ │ ├── .zlogin
│ │ ├── customize_airootfs.sh
│ │ └── install.txt
│ └── usr
│ └── bin
│ └── visudo
├── build.sh
├── efiboot
│ └── loader
│ ├── entries
│ │ ├── archiso-x86_64-cd.conf
│ │ ├── archiso-x86_64-usb.conf
│ │ ├── uefi-shell-v1-x86_64.conf
│ │ └── uefi-shell-v2-x86_64.conf
│ └── loader.conf
├── isolinux
│ └── isolinux.cfg
├── mkinitcpio.conf
├── packages.x86_64
├── pacman.conf
└── syslinux
├── archiso.cfg
├── archiso_head.cfg
├── archiso_pxe64.cfg
├── archiso_pxe_both_inc.cfg
├── archiso_pxe_choose.cfg
├── archiso_sys64.cfg
├── archiso_sys_choose.cfg
├── archiso_tail.cfg
├── splash.png
└── syslinux.cfg
Offline
Still climbing the ladder like Jack n Beanstalk...
Thank you so much for your patience and your help .... that's what I like so much with the open source community.
To make things more simple, my aim is not to replicate my os exactly on a live usb but simply to be able to boot and work via Arch on xfce4 windows manager and my favorite programs on another computer.. I tried your command to solve the Xauhority problem but still I loose connection to X server , probably due to xinitrc.
Then I copied my system xinitrx ( not located on etc/skel but in /etc/xdg/xfce4 ) to x86_64 folder in archlive. I had to neutralise with # the user line in archlive/releng/airootfs/root/customize_airootfs.sh because when I try to add a user, Os tells me that user already exists and stops compiling...
What's your opinion and advice ?
Caron
Offline
Why so complicated the first time you create a ISO.
I f it was me, then I would use that tree I gave you and try to get that to work before you try more or overly complicated setups, that's just my opinion... and advice.
Offline
Hurray almost !
I succeeded in getting a archlive usb with a xorg interface .
I modified customze_airootfs.sh by replacing etc/skel by /etc/X11/xinit/ .
I copied xinit.d folder from /etc/X11/xinit to /archlive/releng/work/x86_64/airootfs/root AND /archlive/releng/work/x86_64/airootfs/etc/X11/xinit .
I had to comment the useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /usr/bin/zsh nifer ( where nifer is my username )
otherwise iso is not generated ..again .
I must now find a way to enable the xfce4 window manager.
Feel always free to comment, suggest and criticize !lol!
Will keep u posted
Caron
Offline
Could you show your customize_airootfs.sh
The useradd line is correct, should work.
You could place the xinit directory in aifrootfs/etc, that belongs to the 'skeleton' of your ISO, work/ doesn't, this is where it gets build.
Offline
Hi,
And sorry for the delay : here's my customize_airootfs.sh . You will notice that i replace " /etc/skel/ " by /etc/X11/xinit/ root/ and commented the userline .
cp -aT /etc/X11/xinit/ root/
chmod 700 /root
#useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /usr/bin/zsh nifer
chmod 750 /etc/sudoers.d
chmod 440 /etc/sudoers.d/g_wheel
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
systemctl enable pacman-init.service choose-mirror.service
systemctl set-default multi-user.target
Thank you for your advice about the xinit directory and trying it at once
Caron
p.s : I also tried to uncomment the user line because I put it as per your advice in airootfs/etc
Last edited by carongangoo (2015-03-09 20:51:46)
Offline
Use code tags, see https://bbs.archlinux.org/help.php#bbcode
Saying BBCode is on is not enough, you need to edit it yourself.
Is that your complete customize_airootfs.sh??
Replace the skel rules for the standard one, see the difference! Study the use of etc/skel on the Archiso wiki page.
Offline
Hi !
This is my true customize_airootfs.sh .
I am trying to understand ( it will take me some time but I'll succeed : )
My actual /etc/X11/xinitrc is :
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
I will try to modify this xinitrc by copying from my system to the archlive but I am not far from the solution.
Thank you again.
Caron
Last edited by carongangoo (2015-03-10 14:04:02)
Offline
Use code tags, see https://bbs.archlinux.org/help.php#bbcode
Saying BBCode is on is not enough, you need to edit it yourself.
Offline
Hi and really sorry !
Still struggling, i was surprised to notice that my /archlive/releng/airootfs/systemd/system/display-manager.service file's is broken because /usr/lib/systemd/system/xfce4.service is missing.
However I already included xfce4 and xfce4-goodies in /archlive/releng/packages.both . Must I also include slim so that /usr/lib/systemd/system/xfce4.service will be restored : I will then be able to run ln -s /usr/lib/systemd/system/xfce4.service display-manager.service
Regards
Caron
Offline
Have a look at customize_airootfs.sh, and see how a service is enabled. You can also create a service file in the right place in the tree e.g: etc/systemd.
Please edit post #33, and add code tags.
Use the .xinitrc you use for your Arch installation, that should work.
A tip, don't think to complicated, most files (if not all!) are in the same place in the tree as they would be on a 'normal' system.
Offline
Hi,
Please edit post #33, and add code tags
. Which tags must I add please ?
I will google to create the service file.
I already replace the xinitrc I posted in #33 but I still boot in xorg .
I keep u posted
Regards
Caron
Offline
Hi,
qinohe wrote:Please edit post #33, and add code tags
. Which tags must I add please ?
Have a look at this page https://bbs.archlinux.org/help.php#bbcode
and check the part Code , all tags on that page are usable for adding to your post, though, only use when necessary.
If you quote my post #26 , you can see how I used the code tags, thanks.
edit: Only look at it, don't submit it
Last edited by qinohe (2015-03-11 14:04:28)
Offline
Hi !
I DID IT ! I succeeded in creating a Arch Usb bootable live usb with a xfce4 window manager !
First I copied the xsessions folder from my system to /archlive/releng/work/x86_64/airootfs/usr/share .
Then I added the line execstartxfce4 to /archlive/releng/root/customize_airootfs.sh
Please bear with me koz I don't know what bbcodes to add in the #post33 ( I use firefox so maybe it does not shows me your codes..)
One point still puzzles me : when I do fdisk-l when I log on Xorg with startx , I can see my laptop hdd. But when I login with startxfce4 , I no more see it.
Thank you for your advices, time and patience .
Caron
Offline
Please bear with me koz I don't know what bbcodes to add in the #post33 ( I use firefox so maybe it does not shows me your codes..)
What part did you not understand, go to https://bbs.archlinux.org/help.php#bbcode
scroll down to 'Code'. Put your output/code, something like xinitrc, between the code tags in the post you are making or editing, ready.
For the rest of your problems, I think you need to dig deeper in our superb wiki, all or most software you use on your ISO are wiki pages for.
Offline
For the rest of your problems, I think you need to dig deeper in our superb wiki, all or most software you use on your ISO are wiki pages for.
This. Please don't be a help vampire.
Closing.
Offline