mirror of
				https://github.com/brain-hackers/buildbrain
				synced 2025-11-04 14:28:34 +09:00 
			
		
		
		
	
							
								
								
									
										289
									
								
								.gitchangelog.rc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										289
									
								
								.gitchangelog.rc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,289 @@
 | 
			
		||||
# -*- coding: utf-8; mode: python -*-
 | 
			
		||||
##
 | 
			
		||||
## Format
 | 
			
		||||
##
 | 
			
		||||
##   ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...]
 | 
			
		||||
##
 | 
			
		||||
## Description
 | 
			
		||||
##
 | 
			
		||||
##   ACTION is one of 'chg', 'fix', 'new'
 | 
			
		||||
##
 | 
			
		||||
##       Is WHAT the change is about.
 | 
			
		||||
##
 | 
			
		||||
##       'chg' is for refactor, small improvement, cosmetic changes...
 | 
			
		||||
##       'fix' is for bug fixes
 | 
			
		||||
##       'new' is for new features, big improvement
 | 
			
		||||
##
 | 
			
		||||
##   AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc'
 | 
			
		||||
##
 | 
			
		||||
##       Is WHO is concerned by the change.
 | 
			
		||||
##
 | 
			
		||||
##       'dev'  is for developpers (API changes, refactors...)
 | 
			
		||||
##       'usr'  is for final users (UI changes)
 | 
			
		||||
##       'pkg'  is for packagers   (packaging changes)
 | 
			
		||||
##       'test' is for testers     (test only related changes)
 | 
			
		||||
##       'doc'  is for doc guys    (doc only changes)
 | 
			
		||||
##
 | 
			
		||||
##   COMMIT_MSG is ... well ... the commit message itself.
 | 
			
		||||
##
 | 
			
		||||
##   TAGs are additionnal adjective as 'refactor' 'minor' 'cosmetic'
 | 
			
		||||
##
 | 
			
		||||
##       They are preceded with a '!' or a '@' (prefer the former, as the
 | 
			
		||||
##       latter is wrongly interpreted in github.) Commonly used tags are:
 | 
			
		||||
##
 | 
			
		||||
##       'refactor' is obviously for refactoring code only
 | 
			
		||||
##       'minor' is for a very meaningless change (a typo, adding a comment)
 | 
			
		||||
##       'cosmetic' is for cosmetic driven change (re-indentation, 80-col...)
 | 
			
		||||
##       'wip' is for partial functionality but complete subfunctionality.
 | 
			
		||||
##
 | 
			
		||||
## Example:
 | 
			
		||||
##
 | 
			
		||||
##   new: usr: support of bazaar implemented
 | 
			
		||||
##   chg: re-indentend some lines !cosmetic
 | 
			
		||||
##   new: dev: updated code to be compatible with last version of killer lib.
 | 
			
		||||
##   fix: pkg: updated year of licence coverage.
 | 
			
		||||
##   new: test: added a bunch of test around user usability of feature X.
 | 
			
		||||
##   fix: typo in spelling my name in comment. !minor
 | 
			
		||||
##
 | 
			
		||||
##   Please note that multi-line commit message are supported, and only the
 | 
			
		||||
##   first line will be considered as the "summary" of the commit message. So
 | 
			
		||||
##   tags, and other rules only applies to the summary.  The body of the commit
 | 
			
		||||
##   message will be displayed in the changelog without reformatting.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## ``ignore_regexps`` is a line of regexps
 | 
			
		||||
##
 | 
			
		||||
## Any commit having its full commit message matching any regexp listed here
 | 
			
		||||
## will be ignored and won't be reported in the changelog.
 | 
			
		||||
##
 | 
			
		||||
ignore_regexps = [
 | 
			
		||||
    r'@minor', r'!minor',
 | 
			
		||||
    r'@cosmetic', r'!cosmetic',
 | 
			
		||||
    r'@refactor', r'!refactor',
 | 
			
		||||
    r'@wip', r'!wip',
 | 
			
		||||
    r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[p|P]kg:',
 | 
			
		||||
    r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:',
 | 
			
		||||
    r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$',
 | 
			
		||||
    r'^$',  ## ignore commits with empty messages
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ``section_regexps`` is a list of 2-tuples associating a string label and a
 | 
			
		||||
## list of regexp
 | 
			
		||||
##
 | 
			
		||||
## Commit messages will be classified in sections thanks to this. Section
 | 
			
		||||
## titles are the label, and a commit is classified under this section if any
 | 
			
		||||
## of the regexps associated is matching.
 | 
			
		||||
##
 | 
			
		||||
## Please note that ``section_regexps`` will only classify commits and won't
 | 
			
		||||
## make any changes to the contents. So you'll probably want to go check
 | 
			
		||||
## ``subject_process`` (or ``body_process``) to do some changes to the subject,
 | 
			
		||||
## whenever you are tweaking this variable.
 | 
			
		||||
##
 | 
			
		||||
section_regexps = [
 | 
			
		||||
    ('New', [
 | 
			
		||||
        r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
 | 
			
		||||
     ]),
 | 
			
		||||
    ('Changes', [
 | 
			
		||||
        r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
 | 
			
		||||
     ]),
 | 
			
		||||
    ('Fix', [
 | 
			
		||||
        r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
 | 
			
		||||
     ]),
 | 
			
		||||
 | 
			
		||||
    ('Other', None ## Match all lines
 | 
			
		||||
     ),
 | 
			
		||||
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ``body_process`` is a callable
 | 
			
		||||
##
 | 
			
		||||
## This callable will be given the original body and result will
 | 
			
		||||
## be used in the changelog.
 | 
			
		||||
##
 | 
			
		||||
## Available constructs are:
 | 
			
		||||
##
 | 
			
		||||
##   - any python callable that take one txt argument and return txt argument.
 | 
			
		||||
##
 | 
			
		||||
##   - ReSub(pattern, replacement): will apply regexp substitution.
 | 
			
		||||
##
 | 
			
		||||
##   - Indent(chars="  "): will indent the text with the prefix
 | 
			
		||||
##     Please remember that template engines gets also to modify the text and
 | 
			
		||||
##     will usually indent themselves the text if needed.
 | 
			
		||||
##
 | 
			
		||||
##   - Wrap(regexp=r"\n\n"): re-wrap text in separate paragraph to fill 80-Columns
 | 
			
		||||
##
 | 
			
		||||
##   - noop: do nothing
 | 
			
		||||
##
 | 
			
		||||
##   - ucfirst: ensure the first letter is uppercase.
 | 
			
		||||
##     (usually used in the ``subject_process`` pipeline)
 | 
			
		||||
##
 | 
			
		||||
##   - final_dot: ensure text finishes with a dot
 | 
			
		||||
##     (usually used in the ``subject_process`` pipeline)
 | 
			
		||||
##
 | 
			
		||||
##   - strip: remove any spaces before or after the content of the string
 | 
			
		||||
##
 | 
			
		||||
##   - SetIfEmpty(msg="No commit message."): will set the text to
 | 
			
		||||
##     whatever given ``msg`` if the current text is empty.
 | 
			
		||||
##
 | 
			
		||||
## Additionally, you can `pipe` the provided filters, for instance:
 | 
			
		||||
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)') | Indent(chars="  ")
 | 
			
		||||
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)')
 | 
			
		||||
#body_process = noop
 | 
			
		||||
body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ``subject_process`` is a callable
 | 
			
		||||
##
 | 
			
		||||
## This callable will be given the original subject and result will
 | 
			
		||||
## be used in the changelog.
 | 
			
		||||
##
 | 
			
		||||
## Available constructs are those listed in ``body_process`` doc.
 | 
			
		||||
subject_process = (strip |
 | 
			
		||||
    ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') |
 | 
			
		||||
    SetIfEmpty("No commit message.") | ucfirst | final_dot)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ``tag_filter_regexp`` is a regexp
 | 
			
		||||
##
 | 
			
		||||
## Tags that will be used for the changelog must match this regexp.
 | 
			
		||||
##
 | 
			
		||||
tag_filter_regexp = r'^[0-9-]+$'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ``unreleased_version_label`` is a string or a callable that outputs a string
 | 
			
		||||
##
 | 
			
		||||
## This label will be used as the changelog Title of the last set of changes
 | 
			
		||||
## between last valid tag and HEAD if any.
 | 
			
		||||
unreleased_version_label = "(unreleased)"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ``output_engine`` is a callable
 | 
			
		||||
##
 | 
			
		||||
## This will change the output format of the generated changelog file
 | 
			
		||||
##
 | 
			
		||||
## Available choices are:
 | 
			
		||||
##
 | 
			
		||||
##   - rest_py
 | 
			
		||||
##
 | 
			
		||||
##        Legacy pure python engine, outputs ReSTructured text.
 | 
			
		||||
##        This is the default.
 | 
			
		||||
##
 | 
			
		||||
##   - mustache(<template_name>)
 | 
			
		||||
##
 | 
			
		||||
##        Template name could be any of the available templates in
 | 
			
		||||
##        ``templates/mustache/*.tpl``.
 | 
			
		||||
##        Requires python package ``pystache``.
 | 
			
		||||
##        Examples:
 | 
			
		||||
##           - mustache("markdown")
 | 
			
		||||
##           - mustache("restructuredtext")
 | 
			
		||||
##
 | 
			
		||||
##   - makotemplate(<template_name>)
 | 
			
		||||
##
 | 
			
		||||
##        Template name could be any of the available templates in
 | 
			
		||||
##        ``templates/mako/*.tpl``.
 | 
			
		||||
##        Requires python package ``mako``.
 | 
			
		||||
##        Examples:
 | 
			
		||||
##           - makotemplate("restructuredtext")
 | 
			
		||||
##
 | 
			
		||||
output_engine = rest_py
 | 
			
		||||
#output_engine = mustache("restructuredtext")
 | 
			
		||||
#output_engine = mustache("markdown")
 | 
			
		||||
#output_engine = makotemplate("restructuredtext")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ``include_merge`` is a boolean
 | 
			
		||||
##
 | 
			
		||||
## This option tells git-log whether to include merge commits in the log.
 | 
			
		||||
## The default is to include them.
 | 
			
		||||
include_merge = True
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ``log_encoding`` is a string identifier
 | 
			
		||||
##
 | 
			
		||||
## This option tells gitchangelog what encoding is outputed by ``git log``.
 | 
			
		||||
## The default is to be clever about it: it checks ``git config`` for
 | 
			
		||||
## ``i18n.logOutputEncoding``, and if not found will default to git's own
 | 
			
		||||
## default: ``utf-8``.
 | 
			
		||||
#log_encoding = 'utf-8'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ``publish`` is a callable
 | 
			
		||||
##
 | 
			
		||||
## Sets what ``gitchangelog`` should do with the output generated by
 | 
			
		||||
## the output engine. ``publish`` is a callable taking one argument
 | 
			
		||||
## that is an interator on lines from the output engine.
 | 
			
		||||
##
 | 
			
		||||
## Some helper callable are provided:
 | 
			
		||||
##
 | 
			
		||||
## Available choices are:
 | 
			
		||||
##
 | 
			
		||||
##   - stdout
 | 
			
		||||
##
 | 
			
		||||
##        Outputs directly to standard output
 | 
			
		||||
##        (This is the default)
 | 
			
		||||
##
 | 
			
		||||
##   - FileInsertAtFirstRegexMatch(file, pattern, idx=lamda m: m.start())
 | 
			
		||||
##
 | 
			
		||||
##        Creates a callable that will parse given file for the given
 | 
			
		||||
##        regex pattern and will insert the output in the file.
 | 
			
		||||
##        ``idx`` is a callable that receive the matching object and
 | 
			
		||||
##        must return a integer index point where to insert the
 | 
			
		||||
##        the output in the file. Default is to return the position of
 | 
			
		||||
##        the start of the matched string.
 | 
			
		||||
##
 | 
			
		||||
##   - FileRegexSubst(file, pattern, replace, flags)
 | 
			
		||||
##
 | 
			
		||||
##        Apply a replace inplace in the given file. Your regex pattern must
 | 
			
		||||
##        take care of everything and might be more complex. Check the README
 | 
			
		||||
##        for a complete copy-pastable example.
 | 
			
		||||
##
 | 
			
		||||
# publish = FileInsertIntoFirstRegexMatch(
 | 
			
		||||
#     "CHANGELOG.rst",
 | 
			
		||||
#     r'/(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n/',
 | 
			
		||||
#     idx=lambda m: m.start(1)
 | 
			
		||||
# )
 | 
			
		||||
#publish = stdout
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ``revs`` is a list of callable or a list of string
 | 
			
		||||
##
 | 
			
		||||
## callable will be called to resolve as strings and allow dynamical
 | 
			
		||||
## computation of these. The result will be used as revisions for
 | 
			
		||||
## gitchangelog (as if directly stated on the command line). This allows
 | 
			
		||||
## to filter exaclty which commits will be read by gitchangelog.
 | 
			
		||||
##
 | 
			
		||||
## To get a full documentation on the format of these strings, please
 | 
			
		||||
## refer to the ``git rev-list`` arguments. There are many examples.
 | 
			
		||||
##
 | 
			
		||||
## Using callables is especially useful, for instance, if you
 | 
			
		||||
## are using gitchangelog to generate incrementally your changelog.
 | 
			
		||||
##
 | 
			
		||||
## Some helpers are provided, you can use them::
 | 
			
		||||
##
 | 
			
		||||
##   - FileFirstRegexMatch(file, pattern): will return a callable that will
 | 
			
		||||
##     return the first string match for the given pattern in the given file.
 | 
			
		||||
##     If you use named sub-patterns in your regex pattern, it'll output only
 | 
			
		||||
##     the string matching the regex pattern named "rev".
 | 
			
		||||
##
 | 
			
		||||
##   - Caret(rev): will return the rev prefixed by a "^", which is a
 | 
			
		||||
##     way to remove the given revision and all its ancestor.
 | 
			
		||||
##
 | 
			
		||||
## Please note that if you provide a rev-list on the command line, it'll
 | 
			
		||||
## replace this value (which will then be ignored).
 | 
			
		||||
##
 | 
			
		||||
## If empty, then ``gitchangelog`` will act as it had to generate a full
 | 
			
		||||
## changelog.
 | 
			
		||||
##
 | 
			
		||||
## The default is to use all commits to make the changelog.
 | 
			
		||||
#revs = ["^1.0.3", ]
 | 
			
		||||
#revs = [
 | 
			
		||||
#    Caret(
 | 
			
		||||
#        FileFirstRegexMatch(
 | 
			
		||||
#            "CHANGELOG.rst",
 | 
			
		||||
#            r"(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n")),
 | 
			
		||||
#    "HEAD"
 | 
			
		||||
#]
 | 
			
		||||
revs = []
 | 
			
		||||
							
								
								
									
										31
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										31
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -12,10 +12,19 @@ jobs:
 | 
			
		||||
    outputs:
 | 
			
		||||
      upload_url: ${{ steps.create_release.outputs.upload_url }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
        with:
 | 
			
		||||
          fetch-depth: 0
 | 
			
		||||
          submodules: false
 | 
			
		||||
      - name: Generate release name
 | 
			
		||||
        id: release_name
 | 
			
		||||
        # https://github.community/t/how-to-get-just-the-tag-name/16241/4
 | 
			
		||||
        run: echo ::set-output name=name::${GITHUB_REF/refs\/*s\//}
 | 
			
		||||
      - name: Generate changes file
 | 
			
		||||
        uses: sarnold/gitchangelog-action@master
 | 
			
		||||
        with:
 | 
			
		||||
          config_file: .gitchangelog.rc
 | 
			
		||||
          github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
      - name: Create release
 | 
			
		||||
        id: create_release
 | 
			
		||||
        uses: actions/create-release@v1
 | 
			
		||||
@@ -24,8 +33,7 @@ jobs:
 | 
			
		||||
        with:
 | 
			
		||||
          tag_name: ${{ steps.release_name.outputs.name }}
 | 
			
		||||
          release_name: ${{ steps.release_name.outputs.name }}
 | 
			
		||||
          body: |
 | 
			
		||||
            Build ${{ steps.release_name.outputs.name }}
 | 
			
		||||
          body_path: CHANGES.md
 | 
			
		||||
          draft: false
 | 
			
		||||
          prerelease: true
 | 
			
		||||
 | 
			
		||||
@@ -39,7 +47,11 @@ jobs:
 | 
			
		||||
      - name: Workaround for apt update failure
 | 
			
		||||
        run: sudo rm /etc/apt/sources.list.d/github_git-lfs.*
 | 
			
		||||
      - name: Install deps
 | 
			
		||||
        run: sudo apt update && sudo apt install build-essential bison flex libncurses5-dev gcc-arm-linux-gnueabi qemu-user-static debootstrap
 | 
			
		||||
        run: sudo apt update && sudo apt install build-essential bison flex libncurses5-dev gcc-arm-linux-gnueabi qemu-user-static debootstrap python3-pip
 | 
			
		||||
      - name: Upgrade pip and setuptools
 | 
			
		||||
        run: pip3 install -U pip setuptools
 | 
			
		||||
      - name: Install listconfig
 | 
			
		||||
        run: pip3 install listconfig
 | 
			
		||||
      - name: Configure for Linux
 | 
			
		||||
        run: make ldefconfig
 | 
			
		||||
      - name: Build Linux
 | 
			
		||||
@@ -63,6 +75,17 @@ jobs:
 | 
			
		||||
          asset_path: release.zip
 | 
			
		||||
          asset_name: ${{ steps.archive_name.outputs.name }}.zip
 | 
			
		||||
          asset_content_type: application/zip
 | 
			
		||||
      - name: Generate listconfig
 | 
			
		||||
        run: listconfig ./linux-brain/Kconfig ./linux-brain/.config > listconfig
 | 
			
		||||
      - name: Upload listconfig
 | 
			
		||||
        uses: actions/upload-release-asset@v1
 | 
			
		||||
        env:
 | 
			
		||||
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
        with:
 | 
			
		||||
          upload_url: ${{ needs.create_release.outputs.upload_url }}
 | 
			
		||||
          asset_path: listconfig
 | 
			
		||||
          asset_name: listconfig
 | 
			
		||||
          asset_content_type: text/plain
 | 
			
		||||
 | 
			
		||||
  build-uboot:
 | 
			
		||||
    runs-on: ubuntu-20.04
 | 
			
		||||
@@ -82,6 +105,8 @@ jobs:
 | 
			
		||||
            nk: edsh5exe.bin
 | 
			
		||||
          - model: sh6
 | 
			
		||||
            nk: edsh6exe.bin
 | 
			
		||||
          - model: sh7
 | 
			
		||||
            nk: edsh7exe.bin
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +1,5 @@
 | 
			
		||||
env
 | 
			
		||||
debian
 | 
			
		||||
brainux
 | 
			
		||||
cache/*
 | 
			
		||||
!cache/.gitkeep
 | 
			
		||||
nk.bin
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ IMG=${REPO}/image/sd.img
 | 
			
		||||
 | 
			
		||||
mkdir -p ${WORK}
 | 
			
		||||
 | 
			
		||||
for i in $(seq 1 6); do
 | 
			
		||||
for i in $(seq 1 7); do
 | 
			
		||||
    make -C ${REPO}/u-boot-brain pwsh${i}_defconfig
 | 
			
		||||
    make -j${JOBS} -C ${REPO}/u-boot-brain u-boot.bin
 | 
			
		||||
    ${REPO}/nkbin_maker/bsd-ce ${REPO}/u-boot-brain/u-boot.bin
 | 
			
		||||
 
 | 
			
		||||
 Submodule linux-brain updated: 114b17b84a...1f760c2230
									
								
							@@ -9,3 +9,11 @@ install -g root -o root -m 0644 $SRC/usr/lib/os-release $DST/usr/lib/os-release
 | 
			
		||||
install -g root -o root -m 0644 $SRC/etc/issue $DST/etc/issue
 | 
			
		||||
install -g root -o root -m 0644 $SRC/etc/issue.net $DST/etc/issue.net
 | 
			
		||||
install -g root -o root -m 0644 $SRC/etc/motd $DST/etc/motd
 | 
			
		||||
 | 
			
		||||
install -g root -o root -m 0644 $SRC/etc/X11/xorg.conf $DST/etc/X11/xorg.conf
 | 
			
		||||
install -g root -o root -m 0644 $SRC/etc/X11/Xsession.d/96calibrate $DST/etc/X11/Xsession.d/96calibrate
 | 
			
		||||
 | 
			
		||||
install -g root -o root -m 0644 -D $SRC/etc/xdg/weston/weston.ini $DST/etc/xdg/weston/weston.ini
 | 
			
		||||
 | 
			
		||||
install -g root -o root -m 0644 -D $SRC/home/user/lxterminal/lxterminal.conf $DST/home/user/lxterminal/lxterminal.conf
 | 
			
		||||
install -g root -o root -m 0644 -D $SRC/etc/jwm/system.jwmrc $DST/etc/jwm/system.jwmrc
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								os-brainux/override/etc/X11/Xsession.d/96calibrate
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								os-brainux/override/etc/X11/Xsession.d/96calibrate
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
if [ ! -e /etc/X11/xorg.conf.d/99-calibrator.conf ]; then
 | 
			
		||||
	xinput_calibrator --output-filename /etc/X11/xorg.conf.d/99-calibrator.conf
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										8
									
								
								os-brainux/override/etc/X11/xorg.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								os-brainux/override/etc/X11/xorg.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
Section "Device"
 | 
			
		||||
        Identifier "device"
 | 
			
		||||
        Driver     "fbdev"
 | 
			
		||||
EndSection
 | 
			
		||||
Section "Screen"
 | 
			
		||||
        Identifier "screen"
 | 
			
		||||
        Device     "device"
 | 
			
		||||
EndSection
 | 
			
		||||
							
								
								
									
										216
									
								
								os-brainux/override/etc/jwm/system.jwmrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										216
									
								
								os-brainux/override/etc/jwm/system.jwmrc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,216 @@
 | 
			
		||||
<?xml version="1.0"?>
 | 
			
		||||
<JWM>
 | 
			
		||||
 | 
			
		||||
    <!-- The root menu. -->
 | 
			
		||||
    <RootMenu onroot="12">
 | 
			
		||||
        <Include>/etc/jwm/debian-menu</Include>
 | 
			
		||||
        <Program icon="terminal.png" label="Terminal">lxterminal</Program>
 | 
			
		||||
        <Separator/>
 | 
			
		||||
        <Program icon="lock.png" label="Lock">
 | 
			
		||||
            xlock -mode blank
 | 
			
		||||
        </Program>
 | 
			
		||||
        <Separator/>
 | 
			
		||||
        <Restart label="Restart" icon="restart.png"/>
 | 
			
		||||
        <Exit label="Exit" confirm="true" icon="quit.png"/>
 | 
			
		||||
    </RootMenu>
 | 
			
		||||
 | 
			
		||||
    <!-- Options for program groups. -->
 | 
			
		||||
    <Group>
 | 
			
		||||
        <Option>tiled</Option>
 | 
			
		||||
        <Option>aerosnap</Option>
 | 
			
		||||
    </Group>
 | 
			
		||||
    <Group>
 | 
			
		||||
        <Class>Pidgin</Class>
 | 
			
		||||
        <Option>sticky</Option>
 | 
			
		||||
    </Group>
 | 
			
		||||
    <Group>
 | 
			
		||||
        <Name>xterm</Name>
 | 
			
		||||
        <Option>vmax</Option>
 | 
			
		||||
    </Group>
 | 
			
		||||
    <Group>
 | 
			
		||||
        <Name>xclock</Name>
 | 
			
		||||
        <Option>drag</Option>
 | 
			
		||||
        <Option>notitle</Option>
 | 
			
		||||
    </Group>
 | 
			
		||||
 | 
			
		||||
    <!-- Tray at the bottom. -->
 | 
			
		||||
    <Tray x="0" y="-1" height="20" autohide="off">
 | 
			
		||||
 | 
			
		||||
        <TrayButton icon="/usr/share/jwm/jwm-red.svg">root:1</TrayButton>
 | 
			
		||||
        <Spacer width="2"/>
 | 
			
		||||
 | 
			
		||||
        <Pager labeled="true"/>
 | 
			
		||||
 | 
			
		||||
        <TaskList maxwidth="192"/>
 | 
			
		||||
 | 
			
		||||
        <Dock/>
 | 
			
		||||
        <Clock format="%H:%M"><Button mask="123">exec:xclock</Button></Clock>
 | 
			
		||||
 | 
			
		||||
    </Tray>
 | 
			
		||||
 | 
			
		||||
    <!-- Visual Styles -->
 | 
			
		||||
    <WindowStyle>
 | 
			
		||||
        <Font>Sans-9:bold</Font>
 | 
			
		||||
        <Width>4</Width>
 | 
			
		||||
        <Height>21</Height>
 | 
			
		||||
        <Corner>3</Corner>
 | 
			
		||||
        <Foreground>#FFFFFF</Foreground>
 | 
			
		||||
        <Background>#555555</Background>
 | 
			
		||||
        <Outline>#777777</Outline>
 | 
			
		||||
        <Opacity>0.5</Opacity>
 | 
			
		||||
        <Active>
 | 
			
		||||
            <Foreground>#FFFFFF</Foreground>
 | 
			
		||||
            <Background>#0077CC</Background>
 | 
			
		||||
            <Outline>#1AA0FF</Outline>
 | 
			
		||||
            <Opacity>1.0</Opacity>
 | 
			
		||||
        </Active>
 | 
			
		||||
    </WindowStyle>
 | 
			
		||||
    <TrayStyle group="true" list="all">
 | 
			
		||||
        <Font>Sans-9</Font>
 | 
			
		||||
        <Background>#222222</Background>
 | 
			
		||||
        <Foreground>#FFFFFF</Foreground>
 | 
			
		||||
        <Outline>#222222</Outline>
 | 
			
		||||
        <Opacity>0.75</Opacity>
 | 
			
		||||
    </TrayStyle>
 | 
			
		||||
    <TaskListStyle>
 | 
			
		||||
      <Font>Sans-9</Font>
 | 
			
		||||
      <Active>
 | 
			
		||||
        <Foreground>#FFFFFF</Foreground>
 | 
			
		||||
        <Background>#333333</Background>
 | 
			
		||||
      </Active>
 | 
			
		||||
      <Foreground>#FFFFFF</Foreground>
 | 
			
		||||
      <Background>#222222</Background>
 | 
			
		||||
    </TaskListStyle>
 | 
			
		||||
    <PagerStyle>
 | 
			
		||||
        <Outline>#3B3B3B</Outline>
 | 
			
		||||
        <Foreground>#555555</Foreground>
 | 
			
		||||
        <Background>#333333</Background>
 | 
			
		||||
        <Text>#FFFFFF</Text>
 | 
			
		||||
        <Active>
 | 
			
		||||
            <Foreground>#0077CC</Foreground>
 | 
			
		||||
            <Background>#004488</Background>
 | 
			
		||||
        </Active>
 | 
			
		||||
    </PagerStyle>
 | 
			
		||||
    <MenuStyle>
 | 
			
		||||
        <Font>Sans-9</Font>
 | 
			
		||||
        <Foreground>#FFFFFF</Foreground>
 | 
			
		||||
        <Background>#333333</Background>
 | 
			
		||||
        <Outline>#000000</Outline>
 | 
			
		||||
        <Active>
 | 
			
		||||
            <Foreground>#FFFFFF</Foreground>
 | 
			
		||||
            <Background>#0077CC</Background>
 | 
			
		||||
        </Active>
 | 
			
		||||
        <Opacity>0.85</Opacity>
 | 
			
		||||
    </MenuStyle>
 | 
			
		||||
    <PopupStyle>
 | 
			
		||||
        <Font>Sans-9</Font>
 | 
			
		||||
        <Foreground>#000000</Foreground>
 | 
			
		||||
        <Background>#999999</Background>
 | 
			
		||||
    </PopupStyle>
 | 
			
		||||
 | 
			
		||||
    <!-- Path where icons can be found.
 | 
			
		||||
         IconPath can be listed multiple times to allow searching
 | 
			
		||||
         for icons in multiple paths.
 | 
			
		||||
      -->
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/256x256/actions</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/256x256/apps</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/256x256/categories</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/256x256/devices</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/256x256/emblems</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/256x256/mimetypes</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/256x256/places</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/256x256/status</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/32x32/actions</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/32x32/animations</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/32x32/apps</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/32x32/categories</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/32x32/devices</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/32x32/emblems</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/32x32/mimetypes</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/32x32/places</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/32x32/status</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/scalable/actions</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/scalable/apps</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/scalable/categories</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/scalable/devices</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/scalable/emblems</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/scalable/mimetypes</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/scalable/places</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/gnome/scalable/status</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/256x256/apps</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/256x256/mimetypes</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/32x32/actions</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/32x32/apps</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/32x32/categories</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/32x32/devices</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/32x32/emblems</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/32x32/mimetypes</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/32x32/status</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/512x512/apps</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/512x512/mimetypes</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/scalable/actions</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/scalable/apps</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/scalable/categories</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/scalable/devices</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/scalable/emblems</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/scalable/mimetypes</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/scalable/places</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons/hicolor/scalable/status</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/icons</IconPath>
 | 
			
		||||
    <IconPath>/usr/share/pixmaps</IconPath>
 | 
			
		||||
    <IconPath>
 | 
			
		||||
        /usr/local/share/jwm
 | 
			
		||||
    </IconPath>
 | 
			
		||||
 | 
			
		||||
    <!-- Virtual Desktops -->
 | 
			
		||||
    <!-- Desktop tags can be contained within Desktops for desktop names. -->
 | 
			
		||||
    <Desktops width="4" height="1">
 | 
			
		||||
        <!-- Default background. Note that a Background tag can be
 | 
			
		||||
              contained within a Desktop tag to give a specific background
 | 
			
		||||
              for that desktop.
 | 
			
		||||
         -->
 | 
			
		||||
        <Background type="solid">#111111</Background>
 | 
			
		||||
    </Desktops>
 | 
			
		||||
 | 
			
		||||
    <!-- Double click speed (in milliseconds) -->
 | 
			
		||||
    <DoubleClickSpeed>400</DoubleClickSpeed>
 | 
			
		||||
 | 
			
		||||
    <!-- Double click delta (in pixels) -->
 | 
			
		||||
    <DoubleClickDelta>2</DoubleClickDelta>
 | 
			
		||||
 | 
			
		||||
    <!-- The focus model (sloppy or click) -->
 | 
			
		||||
    <FocusModel>sloppy</FocusModel>
 | 
			
		||||
 | 
			
		||||
    <!-- The snap mode (none, screen, or border) -->
 | 
			
		||||
    <SnapMode distance="10">border</SnapMode>
 | 
			
		||||
 | 
			
		||||
    <!-- The move mode (outline or opaque) -->
 | 
			
		||||
    <MoveMode>opaque</MoveMode>
 | 
			
		||||
 | 
			
		||||
    <!-- The resize mode (outline or opaque) -->
 | 
			
		||||
    <ResizeMode>opaque</ResizeMode>
 | 
			
		||||
 | 
			
		||||
    <!-- Key bindings -->
 | 
			
		||||
    <Key key="Up">up</Key>
 | 
			
		||||
    <Key key="Down">down</Key>
 | 
			
		||||
    <Key key="Right">right</Key>
 | 
			
		||||
    <Key key="Left">left</Key>
 | 
			
		||||
    <Key key="h">left</Key>
 | 
			
		||||
    <Key key="j">down</Key>
 | 
			
		||||
    <Key key="k">up</Key>
 | 
			
		||||
    <Key key="l">right</Key>
 | 
			
		||||
    <Key key="Return">select</Key>
 | 
			
		||||
    <Key key="Escape">escape</Key>
 | 
			
		||||
 | 
			
		||||
    <Key mask="A" key="Tab">nextstacked</Key>
 | 
			
		||||
    <Key mask="A" key="F4">close</Key>
 | 
			
		||||
    <Key mask="A" key="#">desktop#</Key>
 | 
			
		||||
    <Key mask="A" key="F1">root:1</Key>
 | 
			
		||||
    <Key mask="A" key="F2">window</Key>
 | 
			
		||||
    <Key mask="A" key="F10">maximize</Key>
 | 
			
		||||
    <Key mask="A" key="Right">rdesktop</Key>
 | 
			
		||||
    <Key mask="A" key="Left">ldesktop</Key>
 | 
			
		||||
    <Key mask="A" key="Up">udesktop</Key>
 | 
			
		||||
    <Key mask="A" key="Down">ddesktop</Key>
 | 
			
		||||
 | 
			
		||||
</JWM>
 | 
			
		||||
							
								
								
									
										4
									
								
								os-brainux/override/etc/xdg/weston/weston.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								os-brainux/override/etc/xdg/weston/weston.ini
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
[core]
 | 
			
		||||
xwayland=true
 | 
			
		||||
backend=fbdev-backend.so
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										53
									
								
								os-brainux/override/home/user/lxterminal/lxterminal.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								os-brainux/override/home/user/lxterminal/lxterminal.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,53 @@
 | 
			
		||||
[general]
 | 
			
		||||
fontname=Noto Sans Mono CJK JP 10
 | 
			
		||||
selchars=-A-Za-z0-9,./?%&#:_
 | 
			
		||||
scrollback=1000
 | 
			
		||||
bgcolor=rgb(0,0,0)
 | 
			
		||||
fgcolor=rgb(211,215,207)
 | 
			
		||||
palette_color_0=rgb(0,0,0)
 | 
			
		||||
palette_color_1=rgb(205,0,0)
 | 
			
		||||
palette_color_2=rgb(78,154,6)
 | 
			
		||||
palette_color_3=rgb(196,160,0)
 | 
			
		||||
palette_color_4=rgb(52,101,164)
 | 
			
		||||
palette_color_5=rgb(117,80,123)
 | 
			
		||||
palette_color_6=rgb(6,152,154)
 | 
			
		||||
palette_color_7=rgb(211,215,207)
 | 
			
		||||
palette_color_8=rgb(85,87,83)
 | 
			
		||||
palette_color_9=rgb(239,41,41)
 | 
			
		||||
palette_color_10=rgb(138,226,52)
 | 
			
		||||
palette_color_11=rgb(252,233,79)
 | 
			
		||||
palette_color_12=rgb(114,159,207)
 | 
			
		||||
palette_color_13=rgb(173,127,168)
 | 
			
		||||
palette_color_14=rgb(52,226,226)
 | 
			
		||||
palette_color_15=rgb(238,238,236)
 | 
			
		||||
color_preset=Tango
 | 
			
		||||
disallowbold=false
 | 
			
		||||
cursorblinks=false
 | 
			
		||||
cursorunderline=false
 | 
			
		||||
audiblebell=false
 | 
			
		||||
tabpos=top
 | 
			
		||||
geometry_columns=80
 | 
			
		||||
geometry_rows=24
 | 
			
		||||
hidescrollbar=false
 | 
			
		||||
hidemenubar=false
 | 
			
		||||
hideclosebutton=false
 | 
			
		||||
hidepointer=false
 | 
			
		||||
disablef10=false
 | 
			
		||||
disablealt=false
 | 
			
		||||
disableconfirm=false
 | 
			
		||||
 | 
			
		||||
[shortcut]
 | 
			
		||||
new_window_accel=<Primary><Shift>n
 | 
			
		||||
new_tab_accel=<Primary><Shift>t
 | 
			
		||||
close_tab_accel=<Primary><Shift>w
 | 
			
		||||
close_window_accel=<Primary><Shift>q
 | 
			
		||||
copy_accel=<Primary><Shift>c
 | 
			
		||||
paste_accel=<Primary><Shift>v
 | 
			
		||||
name_tab_accel=<Primary><Shift>i
 | 
			
		||||
previous_tab_accel=<Primary>Page_Up
 | 
			
		||||
next_tab_accel=<Primary>Page_Down
 | 
			
		||||
move_tab_left_accel=<Primary><Shift>Page_Up
 | 
			
		||||
move_tab_right_accel=<Primary><Shift>Page_Down
 | 
			
		||||
zoom_in_accel=<Primary><Shift>plus
 | 
			
		||||
zoom_out_accel=<Primary><Shift>underscore
 | 
			
		||||
zoom_reset_accel=<Primary><Shift>parenright
 | 
			
		||||
@@ -1,6 +1,13 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
set -uex -o pipefail
 | 
			
		||||
 | 
			
		||||
TIMEZONE="Asia/Tokyo"
 | 
			
		||||
if [ ! -v TIMEZONE ]; then
 | 
			
		||||
    TIMEZONE=Asia/Tokyo
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ ! -v CI ]; then
 | 
			
		||||
    CI=false
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
/debootstrap/debootstrap --second-stage
 | 
			
		||||
 | 
			
		||||
@@ -31,36 +38,62 @@ apt install -y locales
 | 
			
		||||
 | 
			
		||||
echo "$TIMEZONE" > /etc/timezone && \
 | 
			
		||||
    dpkg-reconfigure -f noninteractive tzdata && \
 | 
			
		||||
    sed -i -e 's/# en_US.UTF-8 UTF-8/en_us.UTF-8 UTF-8/' /etc/locale.gen && \
 | 
			
		||||
    sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
 | 
			
		||||
    echo 'LANG="en_US.UTF-8"' > /etc/default/locale && \
 | 
			
		||||
    dpkg-reconfigure -f noninteractive locales && \
 | 
			
		||||
    update-locale LANG=en_US.UTF-8
 | 
			
		||||
 | 
			
		||||
echo "brain" > /etc/hostname
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
echo root:root | chpasswd
 | 
			
		||||
 | 
			
		||||
cat <<EOF >> /etc/securetty
 | 
			
		||||
ttymxc0
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
DEBIAN_FRONTEND=noninteractive \
 | 
			
		||||
    apt install -y dialog sudo \
 | 
			
		||||
                   libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev \
 | 
			
		||||
                   xserver-xorg xserver-xorg-video-fbdev xserver-xorg-dev xorg-dev x11-apps \
 | 
			
		||||
                   openbox obconf obmenu \
 | 
			
		||||
                   xserver-xorg xserver-xorg-video-fbdev xserver-xorg-dev xserver-xorg-input-evdev xinput-calibrator xorg-dev x11-apps xinit \
 | 
			
		||||
                   openbox obconf obmenu jwm \
 | 
			
		||||
                   weston xwayland \
 | 
			
		||||
                   alsa-utils \
 | 
			
		||||
                   bash tmux vim htop \
 | 
			
		||||
                   midori pcmanfm lxterminal xterm gnome-terminal fonts-noto-cjk \
 | 
			
		||||
                   dbus udev build-essential flex bison pkg-config autotools-dev libtool autoconf automake device-tree-compiler\
 | 
			
		||||
                   midori pcmanfm lxterminal xterm gnome-terminal fbterm uim-fep uim-anthy fonts-noto-cjk \
 | 
			
		||||
                   dbus udev alsa-utils usbutils iw \
 | 
			
		||||
                   build-essential flex bison pkg-config autotools-dev libtool autoconf automake device-tree-compiler \
 | 
			
		||||
                   python3 python3-dev python3-setuptools python3-wheel python3-pip python3-smbus \
 | 
			
		||||
                   resolvconf net-tools ssh openssh-client avahi-daemon curl wget
 | 
			
		||||
                   resolvconf net-tools ssh openssh-client avahi-daemon curl wget git
 | 
			
		||||
 | 
			
		||||
# Ly
 | 
			
		||||
apt install -y libpam0g-dev libxcb-xkb-dev
 | 
			
		||||
cd /
 | 
			
		||||
git clone https://github.com/nullgemm/ly.git
 | 
			
		||||
cd ly
 | 
			
		||||
make github
 | 
			
		||||
make
 | 
			
		||||
make install
 | 
			
		||||
cd /
 | 
			
		||||
rm -r ly
 | 
			
		||||
systemctl enable ly
 | 
			
		||||
 | 
			
		||||
# Create editable xorg.conf.d
 | 
			
		||||
install -m 0777 -d /etc/X11/xorg.conf.d
 | 
			
		||||
 | 
			
		||||
# Fix Midori launch failure
 | 
			
		||||
sudo update-mime-database /usr/share/mime
 | 
			
		||||
 | 
			
		||||
# Setup users
 | 
			
		||||
adduser --gecos "" --disabled-password --home /home/user user
 | 
			
		||||
echo user:brain | chpasswd
 | 
			
		||||
echo "user ALL=(ALL:ALL) ALL" > /etc/sudoers.d/user
 | 
			
		||||
echo -e "127.0.1.1\tbrain" >> /etc/hosts
 | 
			
		||||
 | 
			
		||||
echo root:root | chpasswd
 | 
			
		||||
 | 
			
		||||
# Fix Xorg permission for non-root users
 | 
			
		||||
# https://unix.stackexchange.com/questions/315169/how-can-i-run-usr-bin-xorg-without-sudo
 | 
			
		||||
chown root:input /usr/lib/xorg/Xorg
 | 
			
		||||
chmod g+s /usr/lib/xorg/Xorg
 | 
			
		||||
usermod -a -G video user
 | 
			
		||||
 | 
			
		||||
# Allow root login via UART
 | 
			
		||||
cat <<EOF >> /etc/securetty
 | 
			
		||||
ttymxc0
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
# Get wild
 | 
			
		||||
cat <<EOF > /etc/apt/sources.list
 | 
			
		||||
deb http://deb.debian.org/debian buster main contrib non-free
 | 
			
		||||
 
 | 
			
		||||
 Submodule u-boot-brain updated: 8f3049f7dc...320491adf5
									
								
							
		Reference in New Issue
	
	Block a user