Skip to content
Snippets Groups Projects
Commit 900f3bf1 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

remove old configuration, add make as dependency, update LISENCE date

parent 176b810f
No related branches found
No related tags found
No related merge requests found
Showing
with 3 additions and 2648 deletions
Copyright (c) 2015-2023 Eric Vidal <eric@obarun.org>
Copyright (c) 2015-2024 Eric Vidal <eric@obarun.org>
All rights reserved.
Permission to use, copy, modify, and/or distribute this software for any
......
#!@BINDIR@/bash
# Copyright (c) 2015-2021 Eric Vidal <eric@obarun.org>
# Copyright (c) 2015-2024 Eric Vidal <eric@obarun.org>
# All rights reserved.
#
# This file is part of Obarun. It is subject to the license terms in
......
#!@BINDIR@/bash
# Copyright (c) 2015-2021Eric Vidal <eric@obarun.org>
# Copyright (c) 2015-2024 Eric Vidal <eric@obarun.org>
# All rights reserved.
#
# This file is part of Obarun. It is subject to the license terms in
......
#!@BINDIR@/bash
# Copyright (c) 2015-2021 Eric Vidal <eric@obarun.org>
# All rights reserved.
#
# This file is part of Obarun. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this
# distribution.
# This file may not be copied, modified, propagated, or distributed
# except according to the terms contained in the LICENSE file.
sourcing(){
local list
for list in /tmp/obarun-install-tmp/install.conf /usr/lib/obarun/util.sh; do
if [[ -f "${list}" ]]; then
source "${list}"
else
oblog -f "Missing file : ${list}"
exit
fi
done
unset list
}
sourcing
custo_once() {
local _tmp cmd
cmd="${1}"
_tmp="/tmp/obarun-install-tmp"
if [[ ! -d $_tmp ]]; then
mkdir -p -m0755 $_tmp || die "Impossible to create $_tmp"
fi
if [[ ! -e $_tmp/customize.${cmd} ]]; then
"${cmd}" || die "Cannot execute $_"
touch $_tmp/customize.${cmd}
else
return
fi
unset _tmp
}
############################## only modifie this script after this line ############################
check_tree(){
local tree="${1}"
if ! [[ -d /var/lib/66/system/"${tree}" ]]; then
return 1 ;
else
oblog "Tree ${tree} already exists"
return 0 ;
fi
}
create_log_user(){
oblog "add ${NEWUSER} at log group"
gpasswd -a "$NEWUSER" log
}
config_tree_boot(){
if ! check_tree "boot"; then
oblog "Create tree boot"
66-tree -zv3 -n boot || die "unable to create boot tree"
fi
}
config_enable_boot(){
oblog "Enable boot@system service at tree boot"
66-enable -zv3 -t boot -F boot@system || die "unable to enable boot@system"
oblog "Configure boot@system service"
66-env -t boot -r "HOSTNAME=!${HOSTNAME}" -r "KEYMAP=!${KEYMAP}" -r "TZ=${ZONE}/${SUBZONE}" boot@system || die "unable to configure boot@system service"
oblog "Apply change to the boot@system service"
66-enable -zv3 -t boot -F boot@system || die "unable to apply boot changes"
}
config_tree_root(){
if ! check_tree "root"; then
oblog "Create tree root and enable it"
66-tree -zv3 -cnE root || die "unable to create root tree"
fi
}
config_enable_root(){
oblog "Enable consolekit, dbus, openntpd, connmand and wpa_supplicant on tree root"
66-enable -zv3 consolekit dbus openntpd connmand wpa_supplicant || die "unable to enable dbus openntpd connmand wpa_supplicant"
}
config_tree_boot_user(){
if ! check_tree "boot-user"; then
oblog "Create boot-user tree"
66-tree -zv3 -En boot-user || die "unable to create boot-user tree"
fi
}
config_enable_boot_user(){
oblog "Enable boot-user@${NEWUSER} at boot-user tree"
66-enable -zv3 -t boot-user -F boot-user@${NEWUSER} || die "unable to enable boot-user@${NEWUSER} service"
oblog "Configure boot-user@${NEWUSER} service"
66-env -t boot-user -r "DESKTOP_CMDLINE=!openbox-session" boot-user@${NEWUSER} || die "unable to set DESKTOP_CMDLINE"
oblog "Apply change to the boot-user@{NEWUSER} service"
66-enable -zv3 -t boot-user -F boot-user@${NEWUSER} || die "unable to apply boot-user changes"
}
config_tree_base_user(){
oblog "Create base tree for ${NEWUSER}, enables and makes it current"
su "${NEWUSER}" -c "if ! s6-test -d /home/${NEWUSER}/.66/system/base; then \
66-tree -zv3 -Ecn base ; \
fi" || die "unable to create base tree"
}
config_enable_base_user(){
oblog "Enable xdg-user-dirs, dbus-session@${NEWUSER} on base tree"
su "${NEWUSER}" -c "66-enable -zv3 xdg-user-dirs dbus-session@${NEWUSER}" || die "unable to enable xdg-user-dirs dbus-session@${NEWUSER} service"
}
custo_once create_log_user
custo_once config_tree_boot
custo_once config_enable_boot
custo_once config_tree_root
custo_once config_enable_root
custo_once config_tree_boot_user
custo_once config_enable_boot_user
custo_once config_tree_base_user
custo_once config_enable_base_user
oblog "Customization terminate"
### One application per line.
### You can use # to comment a line.
### Blank line are ignored.
#####################################
#--------------
## system base
#--------------
base
cryptsetup
diffutils
e2fsprogs
inetutils
less
linux
linux-firmware
man-db
man-pages
perl
sysfsutils
usbutils
which
xfsprogs
### One application per line.
### You can use # to comment a line.
### Blank line are ignored.
#####################################
#-----------
## X server
#-----------
xorg-server
xorg-server-common
mesa
mesa-vdpau
libva-mesa-driver
xorg-font-util
xorg-fonts-100dpi
xorg-xev
xorg-xinit
xorg-xprop
xterm
xcb-util-renderutil
#------------------
## driver for xorg
#------------------
xf86-input-libinput
xf86-input-synaptics
xf86-input-vmmouse
xf86-input-void
xf86-video-ati
xf86-video-dummy
xf86-video-fbdev
xf86-video-intel
xf86-video-nouveau
xf86-video-openchrome
xf86-video-vesa
xf86-video-voodoo
### One application per line.
### You can use # to comment a line.
### Blank line are ignored.
#####################################
#-------------
## base-devel
#-------------
base-devel
autogen
pacman-contrib
### One application per line.
### You can use # to comment a line.
### Blank line are ignored.
#####################################
#---------
## obarun
#---------
dhcpcd
git
htop
libgudev
mc
nano
obarun-zsh
p7zip
sudo
testdisk
unrar
unzip
vi
zsh
zsh-completions
#-----------
## services
#-----------
dhcpcd-66serv
wpa_supplicant-66serv
# nfs-utils-66serv
### One application per line.
### You can use # to comment a line.
### Blank line are ignored.
#####################################
#--------------
## boot loader
#--------------
syslinux
#--------------------
## uefi boot manager
#--------------------
refind
#---------------------
## partitioning tools
#---------------------
gptfdisk
parted
#------------------
## console browser
#------------------
lynx
#------------
## utilities
#------------
btrfs-progs
wireless-regdb
dosfstools
# nfs-utils
ntfs-3g
perl-file-mimeinfo
python
usb_modeswitch
wget
wireless_tools
wgetpaste
wpa_supplicant
broadcom-wl
#-------------------
## obarun utilities
#-------------------
obarun-install
obarun-install-themes
pacopts
#-------------------
## fonts
#-------------------
fontconfig
gsfonts
### One application per line.
### You can use # to comment a line.
### Blank line are ignored.
#####################################
#-----------
## openbox
#-----------
openbox
lxappearance
lxappearance-obconf
obconf
kickshaw
obshutdown-git
tint2
archlinux-xdg-menu
i3lock
rofi
gsimplecal
#-----------
## Services
#-----------
boot-user@-66serv
console-tracker@-66serv
consolekit-66serv
dbus-66serv
connmand-66serv
xdg-user-dirs-66serv
cupsd-66serv
openntpd-66serv
#-----------
## Applications
#-----------
asoundconf
clipit
connman
connman-gtk
picom
epdfview
galculator
geany
geeqie
gmrun
gparted
gvfs
gvfs-smb
imagemagick
midori
parole
pidgin
polkit-gnome
scrot
spacefm
terminator
udevil
volumeicon
xarchiver-gtk2
xdg-user-dirs
zenity
#-----------
## Themes
#-----------
materia-gtk-theme
deepin-icon-theme
hicolor-icon-theme
gtk-update-icon-cache
gtk-engine-murrine
gtk-engines
#-----------
## Fonts
#-----------
ttf-liberation
#-----------
## Utilities
#-----------
alsa-lib
alsa-plugins
alsa-tools
alsa-utils
arandr
arch-install-scripts
colord
consolekit2
dbus
ddrescue
haveged
libatasmart
#libbsd included for compatibility with MAC
libbsd
libcups
libpulse
libwacom
nfs-utils
notification-daemon
openntpd
numlockx
polkit
upower
wvdial
xdg-utils
xorg-xkill
#-----------
## Codec
#-----------
gstreamer
gst-libav
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
GPGDir = /var/lib/obarun/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg = systemd
IgnorePkg = systemd-libs
#IgnoreGroup =
#SyncFirst =
#NoUpgrade =
NoExtract = /usr/lib/libsystemd*.*
# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
#SyncFirst = obarun-keyring archlinux-keyring
#ParallelDownloads = 5
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[obcore-testing]
#Server = https://cloud.server.obarun.org/$repo/os/$arch/
[obcore]
Server = https://cloud.server.obarun.org/$repo/os/$arch/
#[obextra-testing]
#Server = https://cloud.server.obarun.org/$repo/os/$arch/
[obextra]
Server = https://cloud.server.obarun.org/$repo/os/$arch/
#[obcommunity-testing]
#Server = https://cloud.server.obarun.org/$repo/os/$arch/
[obcommunity]
Server = https://cloud.server.obarun.org/$repo/os/$arch/
#[obmultilib-testing]
#Server = https://cloud.server.obarun.org/$repo/os/$arch/
#[obmultilib]
#Server = https://cloud.server.obarun.org/$repo/os/$arch/
#[observice-testing]
#Server = https://cloud.server.obarun.org/$repo/os/$arch/
[observice]
Server = https://cloud.server.obarun.org/$repo/os/$arch/
#[testing]
#SigLevel = DatabaseOptional
#Include = /etc/pacman.d/mirrorlist
[core]
SigLevel = DatabaseOptional
Include = /etc/pacman.d/mirrorlist
[extra]
SigLevel = DatabaseOptional
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#SigLevel = DatabaseOptional
#Include = /etc/pacman.d/mirrorlist
[community]
SigLevel = DatabaseOptional
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
#[multilib-testing]
#SigLevel = DatabaseOptional
#Include = /etc/pacman.d/mirrorlist
#[multilib]
#SigLevel = DatabaseOptional
#Include = /etc/pacman.d/mirrorlist
needs_root_rights = yes
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
EndSection
[General]
DefaultAutoConnectTechnologies=ethernet,wifi
PreferredTechnologies=ethernet,wifi
AllowHostnameUpdates=false
This diff is collapsed.
[rc]
use_copy=true
use_primary=false
synchronize=false
automatic_paste=false
show_indexes=false
save_uris=true
use_rmb_menu=false
save_history=true
history_limit=50
items_menu=20
statics_show=true
statics_items=10
hyperlinks_only=false
confirm_clear=false
single_line=true
reverse_history=false
item_length=50
ellipsize=2
history_key=<Ctrl><Alt>H
actions_key=<Ctrl><Alt>A
menu_key=<Ctrl><Alt>P
search_key=<Ctrl><Alt>F
offline_key=<Ctrl><Alt>O
offline_mode=false
[Filechooser Settings]
LocationMode=filename-entry
ShowHidden=true
ShowSizeColumn=true
GeometryX=809
GeometryY=86
GeometryWidth=780
GeometryHeight=728
SortColumn=name
SortOrder=ascending
StartupMode=recent
[Settings]
gtk-font-name=Liberation Sans 9
gtk-theme-name=Materia
gtk-icon-theme-name=Faenza
gtk-fallback-icon-theme=Faenza-Darker
gtk-cursor-theme-name=Jeex_Mix
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-menu-images=1
gtk-button-images=1
gtk-cursor-theme-size=0
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb
[Default Applications]
inode/directory=spacefm-folder-handler.desktop;
application/xml=geany.desktop;
image/svg+xml=geeqie.desktop;
text/plain=geany-usercreated-0.desktop;
application/octet-stream=geany.desktop;
image/vnd.microsoft.icon=geeqie-usercreated-0.desktop;
application/x-php=geany.desktop;
image/jpeg=gimp.desktop;
text/html=geany-usercreated-1.desktop;
text/x-log=geany-usercreated-2.desktop;
application/x-compressed-tar=xarchiver.desktop;
application/x-xz-compressed-tar=xarchiver-usercreated-0.desktop;
text/x-csrc=geany-usercreated-3.desktop;
[Added Associations]
inode/directory=spacefm-folder-handler.desktop;
application/xml=geany.desktop;
image/svg+xml=geeqie.desktop;
text/plain=geany-usercreated-0.desktop;
application/octet-stream=geany.desktop;
image/vnd.microsoft.icon=geeqie-usercreated-0.desktop;
application/x-php=bluefish.desktop;
image/jpeg=gimp.desktop;
text/html=geany-usercreated-1.desktop;
text/x-log=geany-usercreated-2.desktop;
application/x-compressed-tar=xarchiver.desktop;
application/x-xz-compressed-tar=xarchiver-usercreated-0.desktop;
text/x-csrc=geany-usercreated-3.desktop;
[Removed Associations]
text/plain=sudo-usercreated-0.desktop;
# This is example obshutdown rc file
[general]
version = 0.1-rc1
verbose = false
default_action = shutdown
composite = true
theme = faenza
buttons = cancel logout shutdown restart
[actions]
logout = openbox --exit
shutdown = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
restart = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
lock =
switch =
suspend = dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
hibernate = dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
custom =
[shortcuts]
logout = l
shutdown = s
restart = r
lock =
switch =
suspend = u
hibernate = h
custom =
[labels]
cancel = CANCEL
logout = LOGOUT
restart = RESTART
shutdown = SHUTDOWN
lock = LOCK
switch = SWITCH USER
suspend = SUSPEND
hibernate = HIBERNATE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment