Skip to content
Snippets Groups Projects
Commit 0aba8eb8 authored by Contrepoison's avatar Contrepoison
Browse files

Adding a minimal template for the installation.

parent 63ea3bdb
Branches
Tags
No related merge requests found
Showing
with 2566 additions and 0 deletions
#!/usr/bin/bash
# Copyright (c) 2015-2017 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 and at https://github.com/Obarun/obarun-install-themes/LICENSE
# 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
out_error "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 ############################
create_log_user(){
out_action "add ${NEWUSER} at log group"
gpasswd -a "$NEWUSER" log
}
custo_once create_log_user
## Configure S6 service
config_s6(){
out_action "Enable syslogds6 service"
cp -ra /etc/s6-serv/available/classic/syslogds6 /etc/s6-serv/enabled/classic/
out_action "Enable dbus service"
cp -ra /etc/s6-serv/available/classic/dbus /etc/s6-serv/enabled/classic/
out_action "Create Live database"
s6opts add live bundle-Connman bundle-Wpa-supplicant
s6opts compile Live live
out_action "Make Live as current database"
rm /etc/s6-serv/enabled/rc/compiled/current
ln -sf /etc/s6-serv/enabled/rc/compiled/Live /etc/s6-serv/enabled/rc/compiled/current
out_action "Create directories for user supervision tree"
su "${NEWUSER}" -c "s6opts user"
out_action "Enable dbus service for ${NEWUSER} user"
su "${NEWUSER}" -c "cp -ra /etc/s6-serv/available/user/classic/dbus /home/${NEWUSER}/service/enabled/classic/"
out_action "Create ${NEWUSER} log directory for dbus"
su "${NEWUSER}" -c "s6opts checklog dbus"
}
custo_once config_s6
# remove 30-dbus.sh to avoid conflict with dbus-s6serv conflicts
dbus_launch(){
rm /etc/X11/xinit/xinitrc.d/30-dbus.sh
}
dbus_launch
# fix dbus bugs about network permissions
connman_bug(){
sed -i "s:<deny:<allow:g" /etc/dbus-1/system.d/connman-nmcompat.conf
}
custo_once connman_bug
out_valid "Customization terminate"
######One application per line, you can use # to comment a line, blank line are ignored
## applications
connman
udevil
unrar
unzip
p7zip
######One application per line, you can use # to comment a line, blank line are ignored
## base
applysys
bash
bzip2
coreutils
cryptsetup
device-mapper
dhcpcd
diffutils
e2fsprogs
eudev-obarun
file
filesystem
findutils
gawk
gcc-libs
glibc
grep
gzip
inetutils
iproute2
iptables
iputils
less
licenses
libgudev
linux
logrotate
lvm2
man-db
man-pages
mdadm
nano
nbd
pacman
pciutils
pcmciautils
perl
util-linux
libutil-linux
procps-ng
psmisc
reiserfsprogs
s-nail
sed
shadow
sysfsutils
tar
texinfo
usbutils
vi
which
xfsprogs
libusb
mkinitcpio
sudo
zsh
zsh-completions
####One application per line, you can use # to comment a line, blank line are ignored
## base-devel
autoconf
automake
binutils
bison
fakeroot
gcc
groff
libtool
m4
make
patch
pkg-config
######One application per line, you can use # to comment a line, blank line are ignored
## specific applications for the desktop
## themes
######One application per line, you can use # to comment a line, blank line are ignored
## fonts
fontconfig
gsfonts
######One application per line, you can use # to comment a line, blank line are ignored
## init system
s6
s6-linux-utils
s6-portable-utils
s6-rc
s6-boot
skalibs
execline
s6opts
######One application per line, you can use # to comment a line, blank line are ignored
## X server
## driver for xorg
######One application per line, you can use # to comment a line, blank line are ignored
dbus-s6rcserv
dbus-s6serv
dhcpcd-s6rcserv
connmand-s6rcserv
dmraid-s6rcserv
nfs-utils-s6rcserv
rtkit-s6serv
wpa-supplicant-s6rcserv
syslogds6-s6serv
######One application per line, you can use # to comment a line, blank line are ignored
## boot loader
syslinux
gptfdisk
## utilities
btrfs-progs
colord
crda
dbus
dmraid
dosfstools
#elinks
git
libatasmart
libinput
libsynaptics
libwacom
nfs-utils
ntfs-3g
parted
perl-file-mimeinfo
polkit
python
refind-efi
rtkit
udisks2
upower
usb_modeswitch
wget
wireless_tools
wpa_supplicant
#wvdial
xdg-user-dirs
zd1211-firmware
## obarun stuff
pacopts
obarun-keyring
obarun-zsh
## codec
#
# /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/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg = systemd libsystemd
#IgnoreGroup =
#NoUpgrade =
NoExtract = /usr/lib/libsystemd*.*
# Misc options
#UseSyslog
Color
TotalDownload
CheckSpace
#VerbosePkgLists
# 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 DatabaseOptional
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.
#[obarun-testing]
#SigLevel = Required
#Server = https://repo.obarun.org/$arch/testing
[obarun]
SigLevel = Required
Server = https://repo.obarun.org/$arch
#[testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
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]
#Include = /etc/pacman.d/mirrorlist
#[multilib]
#Include = /etc/pacman.d/mirrorlist
needs_root_rights = yes
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
EndSection
This diff is collapsed.
#
# /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 = /etc/pacman.d/gnupg/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg = systemd libsystemd
#IgnoreGroup =
#NoUpgrade =
NoExtract = /usr/lib/libsystemd*.*
# Misc options
#UseSyslog
Color
TotalDownload
CheckSpace
#VerbosePkgLists
# 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 DatabaseOptional
SigLevel = Never #
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.
#[obarun-testing]
#SigLevel = Required
#Server = https://repo.obarun.org/$arch/testing
[obarun]
#SigLevel = Required
Server = https://repo.obarun.org/$arch
#[testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
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]
#Include = /etc/pacman.d/mirrorlist
#[multilib]
#Include = /etc/pacman.d/mirrorlist
[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;
#!/bin/bash
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
[[ -z $DISPLAY && $XDG_VTNR -le 3 ]]
Welcome to Obarun !
You can find more at http://obarun.org.
You have a forum here http://forum.obarun.org
It's not a distro. It's based on archlinux but with a lot of changes.
Only available for x64_86 architecture
root login : root
user login : obarun
root password : toor
obarun password : toor
Enjoy it :).
Eric Vidal <eric@obarun.org>
hotkeys :
ALT+SPACE to launch gmrun
ALT+F2 to display the jwm root menu
Right mouse button on the clock to see the desktop
Windows tiling can be made with the CTRL+ALT up,down,right and left keyboard key.
## sudoers file.
##
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
##
## See the sudoers man page for the details on how to write a sudoers file.
##
##
## Host alias specification
##
## Groups of machines. These may include host names (optionally with wildcards),
## IP addresses, network numbers or netgroups.
# Host_Alias WEBSERVERS = www1, www2, www3
##
## User alias specification
##
## Groups of users. These may consist of user names, uids, Unix groups,
## or netgroups.
# User_Alias ADMINS = millert, dowdy, mikef
##
## Cmnd alias specification
##
## Groups of commands. Often used to group related commands together.
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
# /usr/bin/pkill, /usr/bin/top
# Cmnd_Alias REBOOT = /sbin/halt, /sbin/reboot, /sbin/poweroff
##
## Defaults specification
##
## You may wish to keep some of the following environment variables
## when running commands via sudo.
##
## Locale settings
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
##
## Run X applications through sudo; HOME is used to find the
## .Xauthority file. Note that other programs use HOME to find
## configuration files and this may lead to privilege escalation!
# Defaults env_keep += "HOME"
##
## X11 resource path settings
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
##
## Desktop path settings
# Defaults env_keep += "QTDIR KDEDIR"
##
## Allow sudo-run commands to inherit the callers' ConsoleKit session
# Defaults env_keep += "XDG_SESSION_COOKIE"
##
## Uncomment to enable special input methods. Care should be taken as
## this may allow users to subvert the command being run via sudo.
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
##
## Uncomment to enable logging of a command's output, except for
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
# Defaults log_output
# Defaults!/usr/bin/sudoreplay !log_output
# Defaults!/usr/local/bin/sudoreplay !log_output
# Defaults!REBOOT !log_output
##
## Runas alias specification
##
##
## User privilege specification
##
root ALL=(ALL) ALL
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL
## Same thing without a password
#%wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw # Ask for the password of the target user
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment