mirror of
https://github.com/endeavouros-team/sandbox.git
synced 2026-09-26 17:51:43 +00:00
saving welcome-BTR for possible later use
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
Tässä bash-app-translate:a varten muutetut Welcome-tiedostot.
|
||||
Kaikki mikä on jo muunnettu toimii, mutta osa toteutuksesta käyttää vielä
|
||||
vanhaa eos-translations:ia (jota ei nyt siis voi poistaa).
|
||||
|
||||
Ehkä joskus tulee aika muuntaa loputkin.
|
||||
@@ -0,0 +1,378 @@
|
||||
# Translations for the Welcome app.
|
||||
#
|
||||
# Note: variables (like $PRETTY_PROGNAME below) may be used if they are already defined either
|
||||
# - in the Welcome app
|
||||
# - globally
|
||||
|
||||
|
||||
# Help with some special characters (HTML). Yad has problems without them:
|
||||
_exclamation='!' # '!'
|
||||
_and='&' # '&'
|
||||
_question='?' # '?'
|
||||
|
||||
|
||||
|
||||
declare -A BTR_ARR=(
|
||||
|
||||
welcome_disabled "$PRETTY_PROGNAME app is disabled. To start it anyway, use option --enable (temporarily: --once)." # changed 2022-Feb-21
|
||||
|
||||
butt_later "See you later"
|
||||
butt_latertip "Keep $PRETTY_PROGNAME enabled"
|
||||
|
||||
butt_noshow "Don't show me anymore"
|
||||
butt_noshowtip "Disable $PRETTY_PROGNAME"
|
||||
|
||||
butt_help "Help"
|
||||
|
||||
|
||||
nb_tab_INSTALL "INSTALL"
|
||||
nb_tab_GeneralInfo "General Info"
|
||||
nb_tab_AfterInstall "After Install"
|
||||
nb_tab_AddMoreApps "Add More Apps"
|
||||
|
||||
|
||||
after_install_text "After install tasks"
|
||||
|
||||
after_install_um "Update Mirrors"
|
||||
after_install_umtip "Update list of mirrors before system update"
|
||||
|
||||
after_install_us "Update System" # This definition is used by Welcome 24.11-1 and older.
|
||||
after_install_ustip "Update System Software" # This definition is used by Welcome 24.11-1 and older.
|
||||
|
||||
after_install_dsi "Detect system issues"
|
||||
after_install_dsitip "Detect any potential issues on system packages or elsewhere"
|
||||
|
||||
after_install_etl "EndeavourOS to latest$_question"
|
||||
after_install_etltip "Show what to do to get your system to the latest EndeavourOS level"
|
||||
|
||||
after_install_cdm "Change Display Manager"
|
||||
after_install_cdmtip "Use a different display manager"
|
||||
|
||||
after_install_ew "EndeavourOS default wallpaper" # was: "EndeavourOS wallpaper"
|
||||
after_install_ewtip "Reset to the default wallpaper" # was: "Change desktop wallpaper to EOS default"
|
||||
|
||||
|
||||
after_install_pm "Package management"
|
||||
after_install_pmtip "How to manage packages with pacman"
|
||||
|
||||
after_install_ay "AUR $_and yay$_exclamation"
|
||||
after_install_aytip "Arch User Repository and yay info"
|
||||
|
||||
after_install_hn "Hardware and Network"
|
||||
after_install_hntip "Get your hardware working"
|
||||
|
||||
after_install_bt "Bluetooth"
|
||||
after_install_bttip "Bluetooth advice"
|
||||
|
||||
after_install_nv "NVIDIA users$_exclamation"
|
||||
after_install_nvtip "Use NVIDIA installer"
|
||||
|
||||
after_install_ft "Forum tips"
|
||||
after_install_fttip "Help us help you$_exclamation"
|
||||
|
||||
|
||||
general_info_text "Find your way at the EndeavourOS website$_exclamation"
|
||||
|
||||
general_info_ws "Web site"
|
||||
|
||||
general_info_wi "Wiki"
|
||||
general_info_witip "Featured articles"
|
||||
|
||||
general_info_ne "News"
|
||||
general_info_netip "News and articles"
|
||||
|
||||
general_info_fo "Forum"
|
||||
general_info_fotip "Ask, comment, and chat in our friendly forum$_exclamation"
|
||||
|
||||
general_info_do "Donate"
|
||||
general_info_dotip "Help us keep EndeavourOS running"
|
||||
|
||||
general_info_ab "About $PRETTY_PROGNAME"
|
||||
general_info_abtip "More info about this app"
|
||||
|
||||
|
||||
add_more_apps_text "Install popular apps"
|
||||
|
||||
add_more_apps_lotip "Office tools (libreoffice-fresh)"
|
||||
|
||||
add_more_apps_ch "Chromium Web Browser"
|
||||
add_more_apps_chtip "Web Browser"
|
||||
|
||||
add_more_apps_fw "Firewall"
|
||||
add_more_apps_fwtip "Gufw firewall"
|
||||
|
||||
add_more_apps_bt "Bluetooth (blueberry) for Xfce"
|
||||
add_more_apps_bt_bm "Bluetooth (blueman) for Xfce"
|
||||
|
||||
|
||||
####################### NEW STUFF AFTER THIS LINE:
|
||||
|
||||
settings_dis_contents "To run $PRETTY_PROGNAME again, start a terminal and run:\n<tt> $PROGNAME --enable</tt>\nor\n<tt> $PROGNAME --once</tt>\n" # slightly changed 2021-Dec-21; changed again 2022-Apr-06
|
||||
settings_dis_text "Re-enabling $PRETTY_PROGNAME:"
|
||||
settings_dis_title "How to re-enable $PRETTY_PROGNAME"
|
||||
settings_dis_butt "I remember"
|
||||
settings_dis_buttip "I promise"
|
||||
|
||||
help_butt_title "$PRETTY_PROGNAME Help"
|
||||
help_butt_text "More info about the $PRETTY_PROGNAME app"
|
||||
|
||||
dm_title "Select Display Manager"
|
||||
dm_col_name1 "Selected"
|
||||
dm_col_name2 "DM name"
|
||||
|
||||
dm_reboot_required "Reboot is required for the changes to take effect."
|
||||
dm_changed "DM changed to: "
|
||||
dm_failed "Changing DM failed."
|
||||
dm_warning_title "Warning"
|
||||
|
||||
install_installer "Installer"
|
||||
install_already "already installed"
|
||||
install_ing "Installing"
|
||||
install_done "Finished."
|
||||
|
||||
sysup_no "No updates."
|
||||
sysup_check "Checking for software updates..."
|
||||
|
||||
issues_title "Package issue detection"
|
||||
issues_grub "IMPORTANT: re-creating boot menu manually will be needed."
|
||||
issues_run "Running commands:"
|
||||
issues_no "No important system issues were detected."
|
||||
|
||||
cal_noavail "Not available: " # installer program
|
||||
cal_warn "Warning"
|
||||
cal_info1 "This is a community development release.\n\n" # specials needed!
|
||||
cal_info2 "<b>Offline</b> method gives you the %%s desktop.\nInternet connection is not needed.\n\n"
|
||||
cal_info3 "<b>Online</b> method lets you choose your desktop.\nInternet connection is required.\n\n"
|
||||
cal_info4 "Please Note: This release is a work-in-progress, please help us making it stable by reporting bugs.\n"
|
||||
cal_info5 "\nAfter install updating system is recommended.\n\n"
|
||||
cal_info6 "\nAfter install system is up to date.\n\n"
|
||||
cal_choose "Choose installation method"
|
||||
cal_method "Method"
|
||||
cal_nosupport "$PROGNAME: unsupported mode: "
|
||||
cal_nofile "$PROGNAME: required file does not exist: "
|
||||
cal_istarted "Install started"
|
||||
cal_istopped "Install finished"
|
||||
|
||||
tail_butt "Close this window"
|
||||
tail_buttip "Close only this window"
|
||||
|
||||
|
||||
ins_text "Installing EndeavourOS to disk"
|
||||
ins_start "Start the Installer"
|
||||
ins_starttip "Start the EndeavourOS installer (choose among major desktops)" # changed 2023-Jan-12
|
||||
ins_up "Update this app$_exclamation"
|
||||
ins_uptip "Updates this app and restarts it"
|
||||
ins_keys "Initialize pacman keys"
|
||||
ins_keystip "Initialize pacman keys"
|
||||
ins_pm "Partition manager"
|
||||
ins_pmtip "Gparted allows examining and managing disk partitions and structure"
|
||||
ins_rel "Latest release info"
|
||||
ins_reltip "More info about the latest release"
|
||||
ins_tips "Installation tips"
|
||||
ins_tipstip "Installation tips"
|
||||
ins_trouble "Troubleshoot"
|
||||
ins_troubletip "System Rescue"
|
||||
|
||||
after_install_us_from "Updates from" # AUR or upstream
|
||||
after_install_us_el "Elevated privileges required."
|
||||
after_install_us_done "update done."
|
||||
after_install_us_fail "update failed$_exclamation"
|
||||
|
||||
# 2020-May-14:
|
||||
|
||||
nb_tab_UsefulTips "Tips"
|
||||
useful_tips_text "Useful tips"
|
||||
|
||||
# 2020-May-16:
|
||||
|
||||
butt_changelog "Changelog"
|
||||
butt_changelogtip "Show the changelog of Welcome"
|
||||
|
||||
after_install_themevan "Xfce vanilla theme"
|
||||
after_install_themevantip "Use vanilla Xfce theme"
|
||||
|
||||
after_install_themedef "Xfce EndeavourOS default theme"
|
||||
after_install_themedeftip "Use EndeavourOS default Xfce theme"
|
||||
|
||||
# 2020-Jun-28:
|
||||
after_install_pclean "Package cleanup configuration"
|
||||
after_install_pcleantip "Configure package cache cleanup service"
|
||||
|
||||
# 2020-Jul-04:
|
||||
nb_tab_OwnCommands "Personal Commands" # modified 2020-Jul-08
|
||||
nb_tab_owncmds_text "Personalized commands" # modified 2020-Jul-08
|
||||
|
||||
# 2020-Jul-08:
|
||||
nb_tab_owncmdstip "Help on adding personal commands"
|
||||
|
||||
add_more_apps_akm "A Kernel Manager"
|
||||
add_more_apps_akmtip "A small linux kernel manager and info source"
|
||||
|
||||
# 2020-Jul-15:
|
||||
butt_owncmds_help "Tutorial: Personal Commands"
|
||||
|
||||
# 2020-Aug-05:
|
||||
butt_owncmds_dnd "Personal Commands drag${_and}drop"
|
||||
butt_owncmds_dnd_help "Show a window where to drag field items for new buttons"
|
||||
|
||||
# 2020-Sep-03:
|
||||
ins_reso "Change display resolution"
|
||||
ins_resotip "Change display resolution now"
|
||||
|
||||
# 2020-Sep-08:
|
||||
add_more_apps_arch "Browse all Arch packages"
|
||||
add_more_apps_aur "Browse all AUR packages"
|
||||
add_more_apps_done1_text "Suggested apps already installed$_exclamation"
|
||||
add_more_apps_done2_text "or browse all Arch and AUR packages"
|
||||
add_more_apps_done2_tip1 "To install, use 'pacman' or 'yay'"
|
||||
add_more_apps_done2_tip2 "To install, use 'yay'"
|
||||
|
||||
# 2020-Sep-11:
|
||||
after_install_ew2 "Choose one of the EndeavourOS wallpapers" # was: "EndeavourOS wallpaper (choose)"
|
||||
after_install_ewtip2 "Wallpaper chooser" # was: "Choose from EndeavourOS default wallpapers"
|
||||
|
||||
# 2020-Sep-15:
|
||||
# IMPORTANT NOTE:
|
||||
# - line 71: changed text of 'after_install_ew'
|
||||
# - line 72: changed text of 'after_install_ewtip'
|
||||
# - line 249: changed text of 'after_install_ew2'
|
||||
# - line 250: changed text of 'after_install_ewtip2'
|
||||
|
||||
# 2020-Oct-23:
|
||||
updt_update_check "update check"
|
||||
updt_searching "Searching"
|
||||
updt_for_updates "for updates"
|
||||
updt_failure "failure$_exclamation"
|
||||
updt_nothing_todo "there is nothing to do"
|
||||
updt_press_enter "Press ENTER to close this window"
|
||||
|
||||
# 2020-Oct-24:
|
||||
# IMPORTANT NOTE:
|
||||
# - line 244: changed text of 'add_more_apps_done2_text'
|
||||
|
||||
# 2020-Dec-11:
|
||||
after_install_pacdiff_tip "Manage pacnew, pacorig $_and pacsave files with pacdiff $_and"
|
||||
|
||||
# 2021-Apr-07:
|
||||
after_install_conf "Configure" # a starting verb on a sentence "Configure eos-update-notifier"
|
||||
after_install_more_wall "Download more EndeavourOS wallpapers"
|
||||
after_install_more_wall_tip "Download EndeavourOS legacy and community wallpapers"
|
||||
after_install_info "information" # last word on a sentence, means just any information
|
||||
|
||||
butt_softnews "Software News"
|
||||
butt_softnews_tip "Important news about EndeavourOS software"
|
||||
|
||||
install_community "Install community editions"
|
||||
install_community_tip "Community editions collection (mostly WMs)" # changed 2021-Oct-23, 2023-Jan-12
|
||||
|
||||
# 2021-May-01
|
||||
ins_syslog "How to share system logs"
|
||||
ins_syslogtip "Explains how you can share system logs when you need help"
|
||||
ins_logtool "Logs for troubleshooting"
|
||||
ins_logtooltip "Select, create and share troubleshooting logs when asking for help"
|
||||
|
||||
# 2021-May-20
|
||||
nb_tab_DailyAssistant "Assistant"
|
||||
daily_assistant_text "Tools for useful and/or daily tasks"
|
||||
after_install_itab "Select initial Welcome tab"
|
||||
after_install_itab_tip "Sets the tab Welcome shows when started"
|
||||
|
||||
# 2021-Jun-08
|
||||
daily_assist_apps "Application categories"
|
||||
daily_assist_apps_tip "Applications sorted by category"
|
||||
|
||||
after_install_vbox1 "Enable VirtualBox Guest utilities"
|
||||
after_install_vbox2 "To enable VirtualBox Guest utilities, select the <b>AfterInstall</b> tab and click button "
|
||||
|
||||
# 2021-Jun-17
|
||||
after_install_r8168 "Wired net issue$_question Toggle r8168 and r8169 driver$_exclamation" # changed 2021-Dec-14 !!
|
||||
after_install_r8168_tip "Toggle between r8168 and r8169 drivers (reboot may be needed)" # changed 2021-Dec-14 !!
|
||||
|
||||
# 2021-Oct-08
|
||||
daily_assist_DEinfo "information" # assume prefix "DE:", e.g.: "Xfce: information"
|
||||
daily_assist_DEinfo_tip "more information about this Desktop/Window Manager" # assume prefix "DE:", e.g.: "Xfce: more information ..."
|
||||
|
||||
# 2022-Feb-16
|
||||
add_more_apps_qs "Choose popular apps to install" # runs eos-quickstart
|
||||
add_more_apps_qstip "Choose popular apps and install them"
|
||||
|
||||
# 2022-Mar-21
|
||||
ins_blue_notes "Bluetooth notes"
|
||||
ins_blue_notes_tip "Notes about setting up bluetooth"
|
||||
|
||||
# 2022-Mar-27
|
||||
after_install_fw "Firewall information"
|
||||
after_install_fwtip "Information about the default firewall"
|
||||
|
||||
# 2022-Mar-30
|
||||
ins_custom "Customizing the install process"
|
||||
ins_custom_tip "How to customize the install process"
|
||||
|
||||
# 2022-Jul-15
|
||||
daily_assist_anews "Latest Arch news"
|
||||
daily_assist_anewstip "Shows latest Arch news in a browser"
|
||||
|
||||
# 2022-Sep-25
|
||||
nb_notify_user1 "There is important news at" # one (or more) dates, e.g. 2023-Feb-18
|
||||
nb_notify_user2 "Please click the" # Software News
|
||||
nb_notify_user3 "button at the low left corner of this window."
|
||||
|
||||
# 2023-Feb-20
|
||||
ins_customized "Fetch your install customization file (advanced)"
|
||||
ins_cust_text "Give URL to your customized user_commands.bash"
|
||||
ins_cust_text2 "The fetched file will replace ~/user_commands.bash"
|
||||
ins_cust_text3 "This is most useful for <b>online</b> install"
|
||||
|
||||
# 2023-Mar-29
|
||||
ins_no_connection "Note: no internet connection available, some buttons are hidden or do not work."
|
||||
|
||||
# 2023-Aug-25
|
||||
ins_pmtip2 "Partitionmanager allows examining and managing disk partitions and structure"
|
||||
|
||||
# 2023-Sep-16
|
||||
ins_arm_start "EndeavourOS ARM Image Installer"
|
||||
ins_arm_starttip "Start installing the EndeavourOS ARM edition"
|
||||
|
||||
# 2024-Apr-18
|
||||
ins_conn_issue_title "What next?" # NOTE: '?' works in a yad title!
|
||||
ins_conn_issue_text "No internet connection found (maybe wifi is not ready${_question})"
|
||||
ins_conn_issue_nm1 "Network manager"
|
||||
ins_conn_issue_nm2 "Starts the network manager"
|
||||
ins_conn_issue_oi1 "Offline install"
|
||||
ins_conn_issue_oi2 "Installs KDE without internet connection (system update is recommended after install)"
|
||||
ins_conn_issue_ex1 "Exit"
|
||||
ins_conn_issue_ex2 "Quit this program"
|
||||
|
||||
# 2024-Apr-20
|
||||
ins_start_calamares "Starting calamares"
|
||||
ins_please_wait "Please wait..."
|
||||
|
||||
# 2024-Dec-05 (see also: 'after_install_us' and 'after_install_ustip' above)
|
||||
after_install_usnat "Update Native Packages"
|
||||
after_install_usnat_tip "Updates packages from repos in /etc/pacman.conf"
|
||||
after_install_usnataur "Update Native $_and AUR Packages"
|
||||
after_install_usnataur_tip "Updates packages from repos in /etc/pacman.conf and AUR"
|
||||
after_install_ushlp "Update Native $_and AUR Packages"
|
||||
after_install_ushlp_tip "Updates packages from repos in /etc/pacman.conf and AUR with an AUR helper"
|
||||
|
||||
after_install_umartip "Update list of Arch mirrors before updating packages"
|
||||
after_install_umentip "Update list of EndeavourOS mirrors before updating packages"
|
||||
|
||||
# 2024-Dec-06
|
||||
after_install_reisub "REISUB information"
|
||||
after_install_reisub2 "Enable REISUB"
|
||||
after_install_reisubtip "REISUB helps dealing with a system crash"
|
||||
|
||||
# 2024-Dec-06, take 2
|
||||
_commonphrase_enabled "enabled"
|
||||
_commonphrase_disabled "disabled"
|
||||
|
||||
# 2024-Dec-10
|
||||
arch_chroot "arch-chroot information"
|
||||
arch_chroot_tip "arch-chroot provides a command line access to another system"
|
||||
_commonphrase_not_found "%%s not found" # Example usage: "$(ltr _commonphrase_not_found "file1.txt")"
|
||||
|
||||
# 2025-Oct-05
|
||||
after_install_mani "Manual interventions"
|
||||
after_install_manitip "Execute essential manual interventions (i.e. necessary fixes, see https://archlinux.org/news)"
|
||||
)
|
||||
@@ -0,0 +1,377 @@
|
||||
# Translations for the Welcome app.
|
||||
#
|
||||
# Note: variables (like $PRETTY_PROGNAME below) may be used if they are already defined either
|
||||
# - in the Welcome app
|
||||
# - globally
|
||||
#
|
||||
#
|
||||
|
||||
# Help with some special characters (HTML). Yad has problems without them:
|
||||
_exclamation='!' # '!'
|
||||
_and='&' # '&'
|
||||
_question='?' # '?'
|
||||
|
||||
|
||||
declare -A BTR_ARR=(
|
||||
welcome_disabled "$PRETTY_PROGNAME: käyttö on estetty. Ota se käyttöön valitsimella --enable (tilapäisesti: --once)." # changed 2022-Feb-21
|
||||
|
||||
butt_later "Nähdään myöhemmin"
|
||||
butt_latertip "Pidä $PRETTY_PROGNAME käytössä"
|
||||
|
||||
butt_noshow "Älä enää näytä minua"
|
||||
butt_noshowtip "Poista $PRETTY_PROGNAME käytöstä"
|
||||
|
||||
butt_help "Auta"
|
||||
|
||||
|
||||
nb_tab_INSTALL "ASENNA"
|
||||
nb_tab_GeneralInfo "Yleistä"
|
||||
nb_tab_AfterInstall "Asennuksen jälkeen"
|
||||
nb_tab_AddMoreApps "Lisää sovelluksia"
|
||||
|
||||
|
||||
after_install_text "Mitä tehdä asennuksen jälkeen$_question"
|
||||
|
||||
after_install_um "Päivitä peilipalvelimet"
|
||||
after_install_umtip "Päivitä peilipalvelinten lista ennen järjestelmän päivitystä"
|
||||
|
||||
after_install_us "Päivitä järjestelmäpaketit" # This definition is used by Welcome 24.11-1 and older.
|
||||
after_install_ustip "Päivitä kaikki järjestelmän ohjelmistopaketit" # This definition is used by Welcome 24.11-1 and older.
|
||||
|
||||
after_install_dsi "Tunnista/korjaa järjestelmäongelmia"
|
||||
after_install_dsitip "Tarkista tunnetut järjestelmäongelmat ja korjaa ne"
|
||||
|
||||
after_install_etl "EndeavourOS:n uusin taso"
|
||||
after_install_etltip "Näytä mitä tehdä jos haluat järjestemĺmän uusimman julkaisun tasolle"
|
||||
|
||||
after_install_cdm "Vaihda ikkunamanageri"
|
||||
after_install_cdmtip "Käytä toista ikkunamageria"
|
||||
|
||||
after_install_ew "EndeavourOS:n taustakuva"
|
||||
after_install_ewtip "Palauta EndeavourOS:n taustakuva oletukseensa" # oli: "Vaihda taustakuva EndeavourOS:n oletuskuvaksi"
|
||||
|
||||
|
||||
after_install_pm "Pakettien hallinta"
|
||||
after_install_pmtip "Kuinka hallita paketteja pacman-ohjelman avulla"
|
||||
|
||||
after_install_ay "AUR $_and yay$_exclamation"
|
||||
after_install_aytip "Tietoa Arch User Repository:stä ja yay-ohjelmasta"
|
||||
|
||||
after_install_hn "Laitteet ja verkko"
|
||||
after_install_hntip "Kuinka saat laitteesi ja verkkosi toimimaan"
|
||||
|
||||
after_install_bt "Bluetooth"
|
||||
after_install_bttip "Bluetooth-neuvoja"
|
||||
|
||||
after_install_nv "NVIDIA:n käyttäjät$_exclamation"
|
||||
after_install_nvtip "NVIDIA-ohjeita"
|
||||
|
||||
after_install_ft "Forum-vinkkejä"
|
||||
after_install_fttip "Auta meitä auttamaan sinua!"
|
||||
|
||||
|
||||
general_info_text "Löydä etsimäsi EndeavourOS:n sivuilta!"
|
||||
|
||||
general_info_ws "Virallinen nettisivu"
|
||||
|
||||
general_info_wi "Wiki"
|
||||
general_info_witip "Hyötyartikkeleita"
|
||||
|
||||
general_info_ne "Uutisia"
|
||||
general_info_netip "Uutisia ja artikkeleita"
|
||||
|
||||
general_info_fo "Foorumi"
|
||||
general_info_fotip "Kysy, kommentoi, ja juttele rennolla foorumillamme!"
|
||||
|
||||
general_info_do "Lahjoita"
|
||||
general_info_dotip "Auta meitä pitämään EndeavourOS toiminnassa"
|
||||
|
||||
general_info_ab "Tietoja ohjelmasta $PRETTY_PROGNAME"
|
||||
general_info_abtip "Lisätietoja tästä ohjelmasta"
|
||||
|
||||
|
||||
add_more_apps_text "Asenna suosittuja sovelluksia"
|
||||
|
||||
add_more_apps_lotip "Office-paketti (libreoffice-fresh)"
|
||||
|
||||
add_more_apps_ch "Chromium selain"
|
||||
add_more_apps_chtip "Nettiselain"
|
||||
|
||||
add_more_apps_fw "Palomuuri"
|
||||
add_more_apps_fwtip "Gufw-palomuuri"
|
||||
|
||||
add_more_apps_bt "Bluetooth (blueberry) Xfce:lle"
|
||||
add_more_apps_bt_bm "Bluetooth (blueman) Xfce:lle"
|
||||
|
||||
|
||||
####################### NEW STUFF AFTER THIS LINE:
|
||||
|
||||
settings_dis_contents "Saat $PRETTY_PROGNAME:n taas käyttöön kun ajat komennon:\n<tt> $PROGNAME --enable</tt>\ntai\n<tt> $PROGNAME --once</tt>\n" # changed 2022-Apr-06
|
||||
settings_dis_text "Ota uudestaan käyttöön $PRETTY_PROGNAME:"
|
||||
settings_dis_title "Kuinka otat uudestaan käyttöön $PRETTY_PROGNAME:n"
|
||||
settings_dis_butt "Selvä"
|
||||
settings_dis_buttip "Minä lupaan"
|
||||
|
||||
help_butt_title "$PRETTY_PROGNAME apua"
|
||||
help_butt_text "Lisätietoja ohjelmasta $PRETTY_PROGNAME"
|
||||
|
||||
dm_title "Valitse Display Manager"
|
||||
dm_col_name1 "Valittu"
|
||||
dm_col_name2 "DM nimi"
|
||||
|
||||
dm_reboot_required "Uudelleenkäynnistyksen jälkeen muutokset tulevat voimaan."
|
||||
dm_changed "Uusi DM: "
|
||||
dm_failed "DM:n vaihtaminen epäonnistui."
|
||||
dm_warning_title "Varoitus"
|
||||
|
||||
install_installer "Asentaja"
|
||||
install_already "jo asennettu"
|
||||
install_ing "Asennan"
|
||||
install_done "Valmis."
|
||||
|
||||
sysup_no "Ei päivityksiä."
|
||||
sysup_check "Tarkistan päivitykset..."
|
||||
|
||||
issues_title "Tutkitaan mahdollisia korjauskohteita"
|
||||
issues_grub "TÄRKEÄÄ: koneen käynnistyvalikko pitää luoda uudelleen."
|
||||
issues_run "Ajetaan komennot:"
|
||||
issues_no "Korjattavaa ei löydetty."
|
||||
|
||||
cal_noavail "Ei saatavilla: " # installer program
|
||||
cal_warn "Varoitus"
|
||||
cal_info1 "Tämä on Community Development -julkaisu.\n" # specials needed!
|
||||
cal_info2 "<b>Offline</b> asentaa %%s-työpöydän.\nNettiyhteyttä ei tarvita.\n\n"
|
||||
cal_info3 "<b>Online</b> antaa valita asennettavan työpöydän.\nNettiyhteys tarvitaan.\n\n"
|
||||
cal_info4 "\nHUOM: Tätä julkaisua kehitetään jatkuvasti. Ole hyvä ja auta tekemään siitä parempi raportoimalla mahdolliset virheet.\n"
|
||||
cal_info5 "\nAsennuksen jälkeen suositellaan järjestelmäpakettien päivittämistä.\n"
|
||||
cal_info6 "\nAsennuksen jälkeen järjestelmäpaketit ovat ajan tasalla.\n\n"
|
||||
cal_choose "Valitse asennustapa"
|
||||
cal_method "Tapa"
|
||||
cal_nosupport "$PROGNAME: ei-tuettu tapa: "
|
||||
cal_nofile "$PROGNAME: tarvittu tiedosto ei löydy: "
|
||||
cal_istarted "Asennus alkoi"
|
||||
cal_istopped "Asennus loppui"
|
||||
|
||||
tail_butt "Sulje tämä ikkuna"
|
||||
tail_buttip "Sulje vain tämä ikkuna"
|
||||
|
||||
|
||||
ins_text "Asenna EndeavourOS"
|
||||
ins_start "Käynnistä asennus"
|
||||
ins_starttip "Käynnistä asentaja (valitse työpöytä)"
|
||||
ins_up "Päivitä tämä sovellus$_exclamation"
|
||||
ins_uptip "Päivittää tämän sovelluksen ja käynnistää sen uudelleen (käytä jos niin ohjeistetaan)"
|
||||
ins_keys "Alusta pacman-avaimet"
|
||||
ins_keystip "Alustaa pacman-avaimet (ei yleensä välttämätöntä)"
|
||||
ins_pm "Osioiden muokkaaja"
|
||||
ins_pmtip "Gparted sallii levyn osioiden tutkimisen ja muokkaamisen (käytä tarvittaessa)"
|
||||
ins_rel "Uusimman julkaisun tiedot"
|
||||
ins_reltip "Lisätietoja uusimmasta julkaisusta"
|
||||
ins_tips "Asennusohjeita"
|
||||
ins_tipstip "Vinkkejä asentamiseen"
|
||||
ins_trouble "Vinkkejä vianetsintään"
|
||||
ins_troubletip "Järjestelmän korjausohjeita"
|
||||
|
||||
after_install_us_from "Päivityslähde:" # AUR or upstream
|
||||
after_install_us_el "Lisäoikeuksia tarvitaan."
|
||||
after_install_us_done "päivitys valmis."
|
||||
after_install_us_fail "päivitys epäonnistui!"
|
||||
|
||||
# 2020-May-14:
|
||||
|
||||
nb_tab_UsefulTips "Vinkkejä"
|
||||
useful_tips_text "Hyödyllisiä linkkejä ${_and} vinkkejä"
|
||||
|
||||
# 2020-May-16:
|
||||
|
||||
butt_changelog "Muutosloki"
|
||||
butt_changelogtip "Näytä Welcome:n muutosloki"
|
||||
|
||||
after_install_themevan "Xfce: perusteema"
|
||||
after_install_themevantip "Ota Xfce:n perusteema käyttöön"
|
||||
|
||||
after_install_themedef "Xfce: EndeavourOS:n oletusteema"
|
||||
after_install_themedeftip "Ota Xfce:n EndeavourOS-oletusteema käyttöön"
|
||||
|
||||
# 2020-Jun-28:
|
||||
after_install_pclean "Pakettien tallennustilan konfigurointi"
|
||||
after_install_pcleantip "Muokkaa vanhojen pakettien hallinnointipalvelua"
|
||||
|
||||
# 2020-Jul-04:
|
||||
nb_tab_OwnCommands "Omat komennot"
|
||||
nb_tab_owncmds_text "Lisätyt omat komennot"
|
||||
|
||||
# 2020-Jul-08:
|
||||
nb_tab_owncmdstip "Ohjeita omien komentojen tekemiseen"
|
||||
|
||||
add_more_apps_akm "Linux-ytimien manageri"
|
||||
add_more_apps_akmtip "Helppo linux-ytimien asentaja ja tietolähde"
|
||||
|
||||
# 2020-Jul-15:
|
||||
butt_owncmds_help "Tutoriaali: Omat komennot"
|
||||
|
||||
# 2020-Aug-05:
|
||||
butt_owncmds_dnd "Omat komennot - raahaa${_and}pudota"
|
||||
butt_owncmds_dnd_help "Näytä ikkuna johon voi raahata elementtejä uusille painikkeille"
|
||||
|
||||
# 2020-Sep-03:
|
||||
ins_reso "Vaihda näytön tarkkuus"
|
||||
ins_resotip "Vaihda näytön tarkkuus nyt"
|
||||
|
||||
# 2020-Sep-08:
|
||||
add_more_apps_arch "Selaa kaikkia Arch-sovelluksia"
|
||||
add_more_apps_aur "Selaa kaikkia AUR-sovelluksia"
|
||||
add_more_apps_done1_text "Ehdotetut sovellukset on jo asennettu$_exclamation"
|
||||
add_more_apps_done2_text "tai selaa kaikkia Arch- ja AUR-sovelluksia"
|
||||
add_more_apps_done2_tip1 "Käytä asentamiseen ohjelmaa 'pacman' tai 'yay'"
|
||||
add_more_apps_done2_tip2 "Käytä asentamiseen ohjelmaa 'yay'"
|
||||
|
||||
# 2020-Sep-11:
|
||||
after_install_ew2 "Valitse yksi EndeavourOS:n taustakuvista" # oli: "EndeavourOS:n taustakuva (valitse)"
|
||||
after_install_ewtip2 "Taustakuvien valitsin" # oli: "Valitse taustakuva EndeavourOS:n kuvien joukosta"
|
||||
|
||||
# 2020-Sep-15:
|
||||
# IMPORTANT NOTE:
|
||||
# - line 71: changed text of 'after_install_ew'
|
||||
# - line 72: changed text of 'after_install_ewtip'
|
||||
# - line 249: changed text of 'after_install_ew2'
|
||||
# - line 250: changed text of 'after_install_ewtip2'
|
||||
|
||||
# 2020-Oct-23:
|
||||
updt_update_check "päivitysten tarkistus"
|
||||
updt_searching "Etsitään"
|
||||
updt_for_updates "päivityksiä"
|
||||
updt_failure "virhe$_exclamation"
|
||||
updt_nothing_todo "ei mitään tehtävää"
|
||||
updt_press_enter "Paina ENTER-näppäintä sulkeaksesi tämän ikkunan"
|
||||
|
||||
# 2020-Oct-24:
|
||||
# IMPORTANT NOTE:
|
||||
# - line 244: changed text of 'add_more_apps_done2_text'
|
||||
|
||||
# 2020-Dec-11:
|
||||
after_install_pacdiff_tip "Hallitse tiedostoja pacnew, pacorig $_and pacsave sovelluksilla pacdiff $_and"
|
||||
|
||||
# 2021-Apr-07:
|
||||
after_install_conf "Asetuksia ohjelmalle" # a starting verb on a sentence "Configure eos-update-notifier"
|
||||
after_install_more_wall "Lataa lisää EndeavourOS-taustakuvia"
|
||||
after_install_more_wall_tip "Lataa EndeavourOS:n aiempia ja yhteisön tekemiä taustakuvia"
|
||||
after_install_info "tietoa" # last word on a sentence, means just any information
|
||||
|
||||
butt_softnews "Ohjelmistouutisia"
|
||||
butt_softnews_tip "Tärkeitä uutisia EndeavourOS:n ohjelmistosta"
|
||||
|
||||
install_community "Asenna yhteisömme kanssa tehty julkaisu"
|
||||
install_community_tip "Valitse yhteisöjulkaisu (useita ikkunamanagereita)"
|
||||
|
||||
# 2021-May-01
|
||||
ins_syslog "Kuinka saan järjestelmän lokit"
|
||||
ins_syslogtip "Ohjeet kuinka saan järjestelmälokit luotua kun tarvitsen apua"
|
||||
ins_logtool "Luo lokit ongelmatilanteessa"
|
||||
ins_logtooltip "Luo ja jakaa tarvittavat lokit kun haluat apua ongelman selvittämiseksi"
|
||||
|
||||
# 2021-May-20
|
||||
nb_tab_DailyAssistant "Apuri"
|
||||
daily_assistant_text "Työkaluja hyödyllisiin ja/tai usein tehtäviin asioihin"
|
||||
after_install_itab "Valitse oletuksena näkyvä välilehti"
|
||||
after_install_itab_tip "Asettaa välilehden joka näkyy aina kun Welcome käynnistetään"
|
||||
|
||||
# 2021-Jun-08
|
||||
daily_assist_apps "Sovellukset luokiteltuina"
|
||||
daily_assist_apps_tip "Sovellukset lajiteltu luokituksen mukaan"
|
||||
|
||||
after_install_vbox1 "Käynnistä VirtualBox Guest -toiminnot"
|
||||
after_install_vbox2 "Käynnistääksesi VirtualBox Guest -toiminnot, mene <b>AfterInstall</b> välilehdelle ja klikkaa painiketta "
|
||||
|
||||
# 2021-Jun-17
|
||||
after_install_r8168 "Ethernet-ongelmia$_question Vaihda ajuriksi r8168 tai r8169$_exclamation" # changed 2021-Dec-14 !!
|
||||
after_install_r8168_tip "Vaihda langallisen netin ajuri (uudelleenkäynnistys voidaan tarvita)" # changed 2021-Dec-14 !!
|
||||
|
||||
# 2021-Oct-08
|
||||
daily_assist_DEinfo "lisätietoa" # assume prefix "DE:", e.g.: "Xfce: info"
|
||||
daily_assist_DEinfo_tip "lisätietoa tästä työpöydästä/ikkunamanagerista" # assume prefix "DE:", e.g.: "Xfce: more information ..."
|
||||
|
||||
# 2022-Feb-16
|
||||
add_more_apps_qs "Valitse ja asenna suosittuja sovelluksia" # runs eos-quickstart
|
||||
add_more_apps_qstip "Valitse ja asenna joukosta suosittuja sovelluksia"
|
||||
|
||||
# 2022-Mar-21
|
||||
ins_blue_notes "Bluetooth-tietoja"
|
||||
ins_blue_notes_tip "Tietoja bluetooth:n ottamisesta käyttöön"
|
||||
|
||||
# 2022-Mar-27
|
||||
after_install_fw "Tietoa palomuurista"
|
||||
after_install_fwtip "Katsaus oletuksena asennettuun palomuuriin"
|
||||
|
||||
# 2022-Mar-30
|
||||
ins_custom "Asennuksen mukauttamisesta"
|
||||
ins_custom_tip "Miten asennusta ja asennustulosta voi muokata"
|
||||
|
||||
# 2022-Jul-15
|
||||
daily_assist_anews "Viimeisimmät Arch-uutiset"
|
||||
daily_assist_anewstip "Viimeisimmät Arch-uutiset selaimessa"
|
||||
|
||||
# 2022-Sep-25
|
||||
nb_notify_user1 "Tärkeitä uutisia saatavilla päivämäärällä" # one (or more) dates, e.g. 2023-Feb-18
|
||||
nb_notify_user2 "Klikkaa nappia" # Software News
|
||||
nb_notify_user3 "tämän ikkunan vasemmassa alalaidassa."
|
||||
|
||||
# 2023-Feb-20
|
||||
ins_customized "Hae asennuksen muokkaustiedostosi (tehokäyttäjille)"
|
||||
ins_cust_text "Anna URL muokattuun user_commands.bash-tiedostoosi"
|
||||
ins_cust_text2 "Haettu tiedosto korvaa tiedoston ~/user_commands.bash"
|
||||
ins_cust_text3 "Tämä on hyödyllisintä <b>online</b>-asennuksessa"
|
||||
|
||||
# 2023-Mar-29
|
||||
ins_no_connection "Huom: internet-yhteys ei saatavilla, osa nappuloista on näkymättömissä tai ei toimi,"
|
||||
|
||||
# 2023-Aug-25
|
||||
ins_pmtip2 "Partitionmanager sallii levyn osioiden tutkimisen ja muokkaamisen (käytä tarvittaessa)"
|
||||
|
||||
# 2023-Sep-16
|
||||
ins_arm_start "Asenna EndeavourOS ARM"
|
||||
ins_arm_starttip "Aloita EndeavourOS ARM:n asennus"
|
||||
|
||||
# 2024-Apr-18
|
||||
ins_conn_issue_title "Miten jatketaan?" # NOTE: '?' works in a yad title!
|
||||
ins_conn_issue_text "Internet-yhteyttä ei löytynyt (ehkä wifi ei ole vielä valmis${_question})"
|
||||
ins_conn_issue_nm1 "Verkon hallintaohjelma"
|
||||
ins_conn_issue_nm2 "Käynnistää verkon hallintaohjelman"
|
||||
ins_conn_issue_oi1 "Offline-asennus"
|
||||
ins_conn_issue_oi2 "Asentaa KDE:n ilman internet-yhteyttä (suositellaan systeemin päivitystä asennuksen jälkeen)"
|
||||
ins_conn_issue_ex1 "Lopeta"
|
||||
ins_conn_issue_ex2 "Lopeta tämä ohjelma"
|
||||
|
||||
# 2024-Apr-20
|
||||
ins_start_calamares "Käynnistetään calamares"
|
||||
ins_please_wait "Odota hetki..."
|
||||
|
||||
# 2024-Dec-05 (see also: 'after_install_us' and 'after_install_ustip' above)
|
||||
after_install_usnat "Päivitä systeemin natiivipaketit"
|
||||
after_install_usnat_tip "Päivittää paketit pakettivarastoista, katso /etc/pacman.conf"
|
||||
after_install_usnataur "Päivitä sekä natiivit että AUR:sta haetut paketit"
|
||||
after_install_usnataur_tip "Päivittää paketit pakettivarastoista, katso /etc/pacman.conf, sekä AUR:sta"
|
||||
after_install_ushlp "Päivitä sekä natiivit että AUR:sta haetut paketit"
|
||||
after_install_ushlp_tip "Päivittää paketit pakettivarastoista, katso /etc/pacman.conf, sekä AUR:sta käyttäen AUR-apuria"
|
||||
|
||||
after_install_umartip "Päivitä Arch-peilipalvelinten lista ennen pakettien päivitystä"
|
||||
after_install_umentip "Päivitä EndeavourOS-peilipalvelinten lista ennen pakettien päivitystä"
|
||||
|
||||
# 2024-Dec-06
|
||||
after_install_reisub "REISUB-tietoa"
|
||||
after_install_reisub2 "REISUB: ota käyttöön"
|
||||
after_install_reisubtip "REISUB auttaa selviämään paremmin systeemin kaatumisesta"
|
||||
|
||||
# 2024-Dec-06, take 2
|
||||
_commonphrase_enabled "otettu käyttöön"
|
||||
_commonphrase_disabled "poistettu käytöstä"
|
||||
|
||||
# 2024-Dec-10
|
||||
arch_chroot "Tietoa arch-chroot:sta"
|
||||
arch_chroot_tip "arch-chroot sallii pääsyn systeemiin esim. ongelmatilanteissa"
|
||||
_commonphrase_not_found "%%s ei saatavilla" # example usage: "file1.txt not found"
|
||||
|
||||
# 2025-Oct-05
|
||||
after_install_mani "Manuaaliset interventiot"
|
||||
after_install_manitip "Suorita ns. manuaaliset interventiot (eli tärkeät korjaukset, katso https://archlinux.org/news)"
|
||||
)
|
||||
+436
@@ -0,0 +1,436 @@
|
||||
#!/bin/bash
|
||||
|
||||
# New script for using calamares.
|
||||
#
|
||||
# Note that this script can be called directly from the terminal,
|
||||
# or it can be called from the Welcome app.
|
||||
|
||||
GUIDIE() {
|
||||
# show error in the terminal and log
|
||||
echo "$progname: $1" | sed -e 's|<tt>||g' -e 's|</tt>||g' # remove some formatting tags
|
||||
|
||||
local prog=eos_yad
|
||||
[ "$EOS_WICON" ] || prog=yad
|
||||
|
||||
# show the error in a yad window
|
||||
local cmd=(
|
||||
"$prog" --form --title="Error detected"
|
||||
--text="<b>$progname:</b>\n$1\n"
|
||||
--image=dialog-error
|
||||
--button=yad-quit:1
|
||||
)
|
||||
"${cmd[@]}"
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
### Provides the install log contents. ###
|
||||
FollowFile() {
|
||||
local tailfile="$1"
|
||||
local term_title="$2"
|
||||
local xpos="$3"
|
||||
local ypos="$4"
|
||||
|
||||
case "$CurrentDesktop" in
|
||||
xfce) xfce4-terminal -T "$term_title" --geometry="120x20+$xpos+$ypos" -x tail -f "$tailfile" & ;;
|
||||
kde) setsid konsole -e tail -f "$tailfile" &> /dev/null ;;
|
||||
esac
|
||||
}
|
||||
|
||||
### Provides the pacman log. ###
|
||||
CatchChrootedPacmanLog() {
|
||||
local pacmanlog=""
|
||||
local lockfile="$HOME/.$progname.lck"
|
||||
|
||||
# wait until pacman.log is available in the chrooted system, then follow the log in background
|
||||
while true ; do
|
||||
sleep 2
|
||||
pacmanlog="$(/usr/bin/ls -1 /tmp/calamares-root-*/var/log/pacman.log 2>/dev/null | /usr/bin/tail -n 1)"
|
||||
if [ -n "$pacmanlog" ] ; then
|
||||
# pacman.log detected!
|
||||
[ -r "$lockfile" ] && return
|
||||
/usr/bin/touch "$lockfile"
|
||||
FollowFile "$pacmanlog" "Pacman log" 400 50
|
||||
break
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
inxi_output() {
|
||||
if [ -x /usr/bin/inxi ] ; then
|
||||
local inxiout
|
||||
inxiout="$(inxi -Czc0 ; inxi -Gnmzac0)"
|
||||
cat <<EOF >> $log
|
||||
########## inxi:
|
||||
$inxiout
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
os-prober_output() {
|
||||
if [ -x /usr/bin/os-prober ] ; then
|
||||
local os_prober_out
|
||||
os_prober_out="$(sudo os-prober)"
|
||||
cat <<EOF >> "$log"
|
||||
########## os-prober:
|
||||
$os_prober_out
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
LogHeader() {
|
||||
local calamares_version date
|
||||
calamares_version="$(pacman -Q calamares 2>/dev/null | awk '{print $NF}')"
|
||||
date=$(date -u "+%x %X")
|
||||
|
||||
cat <<EOF > $log
|
||||
########## $log by $progname
|
||||
########## Started (UTC): $date
|
||||
########## Install mode: $mode
|
||||
########## ISO version: $iso_version
|
||||
########## Calamares version: $calamares_version
|
||||
EOF
|
||||
inxi_output
|
||||
# os-prober_output
|
||||
}
|
||||
|
||||
PreliminaryLogFile() {
|
||||
local preprelogfile
|
||||
preprelogfile="$(eos-select-file-server --logfilename)"
|
||||
local output=""
|
||||
|
||||
if [ -r "$preprelogfile" ] ; then
|
||||
output=$(cat "$preprelogfile")
|
||||
cat <<EOF >> $log
|
||||
|
||||
## >>> Preliminary log before starting calamares:
|
||||
$output
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ -r "$prelogfile" ] ; then
|
||||
output=$(cat "$prelogfile")
|
||||
cat <<EOF >> $log
|
||||
$output
|
||||
## <<< End of preliminary log.
|
||||
|
||||
EOF
|
||||
fi
|
||||
rm -f "$prelogfile"
|
||||
rm -f "$preprelogfile"
|
||||
}
|
||||
|
||||
### Starts logging into the install log. ###
|
||||
InstallLog_Start() {
|
||||
LogHeader
|
||||
PreliminaryLogFile
|
||||
|
||||
if [ "$ShowInstallLog" = "TRUE" ] ; then
|
||||
FollowFile "$log" "Install log" 20 20
|
||||
fi
|
||||
}
|
||||
|
||||
### Starts calamares and runs it in the background. ###
|
||||
Calamares_Start() {
|
||||
local kdesu=/usr/lib/kf6/kdesu
|
||||
[ -x $kdesu ] || kdesu=kdesu
|
||||
|
||||
case "$CurrentDesktop" in
|
||||
kde) $kdesu -t -c "calamares -D8" >> $log & ;;
|
||||
*) pkexec calamares -D8 >> $log & ;;
|
||||
esac
|
||||
}
|
||||
|
||||
### Dialog that asks for the online or offline edition. ###
|
||||
AskMode() {
|
||||
local ret=0
|
||||
local desktopname=""
|
||||
|
||||
case "$CurrentDesktop" in
|
||||
xfce) desktopname="Xfce" ;;
|
||||
kde) desktopname="KDE" ;;
|
||||
esac
|
||||
|
||||
local online_tip=""
|
||||
local offline_tip
|
||||
offline_tip="$(BTR cal_info2 $desktopname) $(BTR cal_info5)"
|
||||
|
||||
local cmd=(
|
||||
eos_yad --form
|
||||
--title="$(BTR cal_choose)"
|
||||
--text="$(BTR cal_choose)"
|
||||
--image="$ICO_CALAMARES"
|
||||
--columns=2 --borders=10 --homogeneous
|
||||
--height=180 --width=600 --scroll
|
||||
--buttons-layout=spread
|
||||
)
|
||||
if [ $has_connection = yes ] ; then
|
||||
online_tip="$(BTR cal_info3) $(BTR cal_info6)"
|
||||
cmd+=(
|
||||
--field="$online_tip":LBL ""
|
||||
--field="$offline_tip":LBL ""
|
||||
--button="Online!$ICO_CONNECTION!$online_tip":11
|
||||
--button="Offline!$ICO_NO_CONNECTION!$offline_tip":13
|
||||
)
|
||||
else
|
||||
# without connection only offline is possible
|
||||
cmd+=(
|
||||
--field="$offline_tip":LBL ""
|
||||
--button="Offline!$ICO_NO_CONNECTION!$offline_tip":13
|
||||
)
|
||||
fi
|
||||
|
||||
local result
|
||||
result="$("${cmd[@]}")" # ask mode from the user
|
||||
|
||||
ret=$?
|
||||
|
||||
# set the install mode, or exit on error
|
||||
case "$ret" in
|
||||
11) mode=online ;;
|
||||
13) mode=offline ;;
|
||||
252|*) exit $ret ;; # 252 = close using the "corner X"
|
||||
esac
|
||||
[ "$result" ] && result="" # this line only for shellcheck!
|
||||
}
|
||||
|
||||
PleaseWait() {
|
||||
case "$1" in
|
||||
start)
|
||||
eos_yad --form --width=250 --title="$(BTR ins_start_calamares)" --text="$(BTR ins_please_wait)" --image="$ICO_CALAMARES" --no-buttons &
|
||||
sleep 1
|
||||
waitpid=$(ps -ef | grep -wv grep | grep "\--no-buttons" | awk '{print $2}')
|
||||
;;
|
||||
stop)
|
||||
while ! ps -C calamares ; do
|
||||
sleep 1
|
||||
done
|
||||
sleep 1
|
||||
sudo kill "$waitpid"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
### Starts the calamares installer process and logging. ###
|
||||
InstallWithLogs() {
|
||||
InstallLog_Start
|
||||
Calamares_Start
|
||||
|
||||
PleaseWait stop
|
||||
|
||||
if [ "$ShowPacmanLog" = "FALSE" ] ; then
|
||||
sleep 5
|
||||
return
|
||||
fi
|
||||
|
||||
case "$mode" in
|
||||
online | community)
|
||||
CatchChrootedPacmanLog
|
||||
;;
|
||||
offline)
|
||||
# no pacman log for offline install
|
||||
CatchChrootedPacmanLog
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
hotfix_start_files() {
|
||||
local -r file=${HOTFIX_START_FILE##*/} # file=hotfix-start.bash
|
||||
local -r url=$(eos-github2gitlab "$HOTFIX_START_FILE")
|
||||
|
||||
if [ -z "$url" ] ; then
|
||||
PreLog "${FUNCNAME[0]}: fetching $file failed!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if Wget2Curl --timeout=30 -q -O "$workdir/$file" "$url" ; then
|
||||
sudo bash "$workdir/$file" | tee -a "$prelogfile" > /dev/null
|
||||
PreLog "Hotfixes definition file from $url executed."
|
||||
return 0
|
||||
else
|
||||
PreLog "${FUNCNAME[0]}: fetching $url failed!"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
DirHasFiles() { [ "$(/bin/ls "$1")" ]; }
|
||||
|
||||
hotfix_start_pkg() {
|
||||
local -r pkg=eos-iso-hotfix
|
||||
if sudo pacman -Sy --noconfirm $pkg &>/dev/null ; then
|
||||
# NEW system for hotfixes, uses files in package $pkg.
|
||||
DirHasFiles /usr/share/endeavouros/hotfix/modules && sudo cp /usr/share/endeavouros/hotfix/modules/* /etc/calamares/modules/
|
||||
DirHasFiles /usr/share/endeavouros/hotfix/scripts && sudo cp /usr/share/endeavouros/hotfix/scripts/* /etc/calamares/scripts/
|
||||
|
||||
sudo bash /usr/share/endeavouros/hotfix/hotfixes/hotfix-start.bash
|
||||
|
||||
# Note: calamares must copy some hotfix files (e.g. hotfix-end.bash) to folder /tmp of the chrooted target!
|
||||
|
||||
local version
|
||||
version=$(expac %v $pkg)
|
||||
PreLog "File hotfix-start.bash from package $pkg $version executed."
|
||||
return 0
|
||||
else
|
||||
PreLog "${FUNCNAME[0]}: installing package $pkg failed."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
run_hotfix_start() { hotfix_start_files || hotfix_start_pkg; }
|
||||
|
||||
BootloaderId() {
|
||||
local blid
|
||||
blid="endeavouros-$(shuf -i 1000-9999 -n1)"
|
||||
PreLog "New bootloader id: '$blid'"
|
||||
sudo sed -i "$cfolder"/modules/bootloader.conf -e "s|^efiBootloaderId:.*|efiBootloaderId: \"$blid\"|"
|
||||
}
|
||||
|
||||
PreLog() {
|
||||
# Some logs before we can use endeavour-install.log.
|
||||
echo "==> $1" >> "$prelogfile"
|
||||
}
|
||||
|
||||
CheckUserPkglist() {
|
||||
local userlistfile="$Home/user_pkglist.txt"
|
||||
|
||||
if [ -r "$userlistfile" ] ; then
|
||||
local up
|
||||
local not_found=()
|
||||
local aur=()
|
||||
local txt=""
|
||||
local user_pkgs=""
|
||||
|
||||
user_pkgs="$(cat "$userlistfile" | sed -E 's|([^#]*)#.*|\1|')" # remove comments (line tail after #)
|
||||
|
||||
for up in $user_pkgs ; do
|
||||
if ! pacman -Si "$up" >& /dev/null ; then
|
||||
if yay -Sia "$up" >& /dev/null ; then
|
||||
aur+=("\t'$up'")
|
||||
else
|
||||
not_found+=("\t'$up'")
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "${not_found[0]}" ] ; then
|
||||
txt+="The following package names listed in <b>$userlistfile</b> do not exist:\n$(printf "<tt>%s</tt>\n" "${not_found[@]}")\n\n"
|
||||
fi
|
||||
if [ "${aur[0]}" ] ; then
|
||||
txt+="AUR packages listed in <b>$userlistfile</b> are not supported:\n$(printf "<tt>%s</tt>\n" "${aur[@]}")\n\n"
|
||||
fi
|
||||
if [ "$txt" ] ; then
|
||||
GUIDIE "$txt"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
GetIsoVersion() {
|
||||
local -r file=/usr/lib/endeavouros-release
|
||||
[ -r $file ] && grep "^VERSION=" $file | sed -E 's|^VERSION=([0-9\.]+).*|\1|'
|
||||
}
|
||||
|
||||
### Everything starts in the Main function. ###
|
||||
Main() {
|
||||
local progname="${0##*/}" # for help and messages
|
||||
local has_connection=no
|
||||
local src_file
|
||||
local src_files=(
|
||||
/usr/share/endeavouros/scripts/eos-script-lib-yad
|
||||
/etc/welcome-installer.conf
|
||||
)
|
||||
local waitpid=""
|
||||
local testing=no
|
||||
|
||||
case "$1" in
|
||||
--testing) testing=yes; shift ;;
|
||||
esac
|
||||
|
||||
for src_file in "${src_files[@]}" ; do
|
||||
source "$src_file" || GUIDIE "file <tt>$src_file</tt> not found?"
|
||||
done
|
||||
export -f eos_yad
|
||||
|
||||
[ -n "$HOTFIX_START_FILE" ] || GUIDIE "variable <tt>HOTFIX_START_FILE</tt> not set in <tt>/etc/welcome-installer.conf</tt>"
|
||||
|
||||
if [ $testing = no ] ; then
|
||||
[ -x /usr/bin/calamares ] || GUIDIE "<tt>/usr/bin/calamares</tt> is needed for installing EndeavourOS"
|
||||
fi
|
||||
|
||||
eos-connection-checker && has_connection=yes
|
||||
|
||||
local CurrentDesktop=""
|
||||
GetCurrentDesktop CurrentDesktop # in lowercase
|
||||
AssignIconVariables_in_eos_bash_shared
|
||||
|
||||
source /usr/share/endeavouros/scripts/translations.bash || GUIDIE "file <tt>/usr/share/endeavouros/scripts/translations.bash</tt> not found?"
|
||||
|
||||
local lang="$1"
|
||||
local mode="$2" # 'community' or '' (empty)
|
||||
local ShowInstallLog="FALSE" # TRUE --> show install log terminal window
|
||||
local ShowPacmanLog="FALSE" # TRUE --> show pacman log terminal window
|
||||
local Home=/home/liveuser # liveuser's home folder
|
||||
[ $testing = yes ] && Home=/tmp/FOOBAR
|
||||
local log=$Home/endeavour-install.log # install log
|
||||
local cfolder=/etc/calamares # folder for calamares configuration files
|
||||
local workdir=""
|
||||
local prelogfile=""
|
||||
|
||||
CheckUserPkglist
|
||||
|
||||
workdir="$Home/work.$progname.xyz"
|
||||
mkdir -p "$workdir"
|
||||
|
||||
prelogfile="$workdir/preliminary.log"
|
||||
rm -f "$prelogfile"
|
||||
|
||||
# BootloaderId
|
||||
|
||||
source /usr/share/endeavouros/translations/bash-app-translate "${progname}" || exit 1
|
||||
|
||||
_init_translations "$lang" || GUIDIE "language init failed"
|
||||
|
||||
case "$mode" in
|
||||
"" | test) AskMode ;; # ask the value for $mode
|
||||
esac
|
||||
|
||||
PleaseWait start
|
||||
|
||||
if [ $has_connection = yes ] && [ "$mode" != "offline" ] ; then
|
||||
[ $testing = no ] && run_hotfix_start # run possible hotfixes before copying settings.conf file
|
||||
fi
|
||||
|
||||
case "$mode" in
|
||||
online | offline)
|
||||
if [ $testing = no ] ; then
|
||||
sudo cp "$cfolder/settings_$mode.conf" "$cfolder/settings.conf" # copy the settings based on install mode
|
||||
PreLog "File settings.conf updated."
|
||||
fi
|
||||
|
||||
# User may have configs for calamares too.
|
||||
# Note that there are two ways:
|
||||
# - the old (user_commands.bash)
|
||||
# - the new (user-commands-before.bash)
|
||||
# and they have slightly different parameters.
|
||||
|
||||
local cmd2=""
|
||||
local -r iso_version="$(GetIsoVersion)"
|
||||
case $iso_version in
|
||||
"" | 202[1-3]*) GUIDIE "ISO version '$iso_version' not supported!" ;;
|
||||
2024.01.*) cmd2="$Home/user_commands.bash --iso-config $mode" ;; # galileo neo
|
||||
*) cmd2="$Home/user-commands-before.bash $mode" ;; # gemini or later
|
||||
esac
|
||||
|
||||
if [ $testing = no ] ; then
|
||||
PreLog "Running user defined commands: $cmd2"
|
||||
sudo bash "$cmd2"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
GUIDIE "unsupported mode '$mode'"
|
||||
;;
|
||||
esac
|
||||
|
||||
# finally: run calamares with logs (install, pacman)
|
||||
[ $testing = no ] && InstallWithLogs
|
||||
}
|
||||
|
||||
Main "$@"
|
||||
Executable
+137
@@ -0,0 +1,137 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Enable or disable the REISUB feature on an EndeavourOS system.
|
||||
|
||||
Fail() {
|
||||
local arg="$1"
|
||||
notify-send --icon="dialog-error" --urgency=normal --expire-time=$REISUB_TIMEOUT_ERROR \
|
||||
--app-name="$progname" \
|
||||
"REISUB" \
|
||||
"$progname: $arg: $(BTR updt_failure)"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Main() {
|
||||
local progname="${0##*/}"
|
||||
local translations_dir=/usr/share/endeavouros/scripts # variable required!
|
||||
local -r reisub_file=/etc/sysctl.d/99-reisub.conf
|
||||
local -r lib_dir=/usr/share/endeavouros/scripts
|
||||
local -r lib_file="$lib_dir/eos-script-lib-yad"
|
||||
local REISUB_TIMEOUT_NOTIFY=5000
|
||||
local REISUB_TIMEOUT_ERROR=10000
|
||||
local configfile=/etc/$progname.conf
|
||||
local body
|
||||
|
||||
source /usr/share/endeavouros/translations/bash-app-translate "${progname}" || exit 1
|
||||
|
||||
# shellcheck disable=1090
|
||||
[ -e "$configfile" ] && source "$configfile"
|
||||
|
||||
source "$translations_dir/translations.bash" || Fail "$translations_dir/translations.bash"
|
||||
_init_translations ""
|
||||
# shellcheck disable=1090
|
||||
source "$lib_file" || Fail "$lib_file"
|
||||
AssignIconVariables_in_eos_bash_shared
|
||||
case "$1" in
|
||||
-e | --enable) [ -e $reisub_file ] || echo 'kernel.sysrq=1' | pkexec tee $reisub_file > /dev/null ;;
|
||||
-d | --disable) [ -e $reisub_file ] && pkexec rm -f $reisub_file ;;
|
||||
--status | "") ;;
|
||||
--edit-config) EditConfig ;;
|
||||
-h | --help) Help 0 ;;
|
||||
*) Fail "\$1 = '$1'" ;;
|
||||
esac
|
||||
if [ -e "$reisub_file" ] ; then
|
||||
body="REISUB $(BTR _commonphrase_enabled)"
|
||||
else
|
||||
body="REISUB $(BTR _commonphrase_disabled)"
|
||||
fi
|
||||
notify-send -i "$ICO_INFO" -u normal -t "$REISUB_TIMEOUT_NOTIFY" -a "eos-reisub" "REISUB" "$body"
|
||||
}
|
||||
|
||||
Help() {
|
||||
cat <<EOF
|
||||
Usage: $progname [options]
|
||||
Options:
|
||||
-e, --enable Enable REISUB support.
|
||||
-d, --disable Disable REISUB support.
|
||||
--edit-config Edit the configuration file.
|
||||
--status Show the state of REISUB setting.
|
||||
This is the default.
|
||||
-h, --help This help.
|
||||
EOF
|
||||
[ "$1" ] && exit "$1"
|
||||
}
|
||||
|
||||
EditConfig() {
|
||||
local conf="/etc/$progname.conf"
|
||||
[ -e "$conf" ] || sudo touch "$conf"
|
||||
sudo xdg-open "$conf"
|
||||
exit 0
|
||||
}
|
||||
|
||||
Main "$@"
|
||||
|
||||
|
||||
|
||||
|
||||
# echo2() {
|
||||
# local reset=no
|
||||
# while true ; do
|
||||
# case "$1" in
|
||||
# -red | -blue | -cyan | -magenta | -yellow | -green) eos-color "${1:1}" 2 ;;
|
||||
# -error | -warning | -fail | -info | -tip | -ok) eos-color "${1:1}" 2 ;;
|
||||
# -reset) eos-color "${1:1}" 2; reset=yes ;;
|
||||
# *) break ;;
|
||||
# esac
|
||||
# shift
|
||||
# done
|
||||
# echo -e "$@" >&2
|
||||
# [ "$reset" = no ] || eos-color reset 2
|
||||
# }
|
||||
|
||||
# NotifySendHelp() { echo2 "${FUNCNAME[0]}: see the man page of notify-send"; [ "$1" ] && exit "$1"; }
|
||||
# PrintId() { echo2 "${FUNCNAME[0]}}: TODO!"; }
|
||||
# Wait() { echo2 "${FUNCNAME[0]}}: TODO!"; }
|
||||
# Transient() { echo2 "${FUNCNAME[0]}}: TODO!"; }
|
||||
|
||||
# NotifySendOptions() {
|
||||
# local opts
|
||||
# local lopts="help,app-name:,action:,selected-action-fd:,activation-token-fd:,urgency:,expire-time:"
|
||||
# lopts+=",icon:,app-icon:,category:,hint:,print-id,id-fd:,replace-id:,wait,transient"
|
||||
# local sopts="?a:A:u:t:i:n:c:h:pr:we"
|
||||
# opts=$(getopt -o="$sopts" --longoptions "$lopts" --name "$progname" -- "$@") || exit 1
|
||||
# eval set -- "$opts"
|
||||
|
||||
# while true ; do
|
||||
# case "$1" in
|
||||
# -"?" | --help) NotifySendHelp 0 ;;
|
||||
# -a | --app-name) appname="$2"; shift ;;
|
||||
# -A | --action) action="$2"; shift ;;
|
||||
# -u | --urgency) urgency="$2"; shift ;;
|
||||
# -t | --expire-time) expiretime="$2"; shift ;;
|
||||
# -i | --icon) icon="$2"; shift ;;
|
||||
# -n | --app-icon) appicon="$2"; shift ;;
|
||||
# -c | --category) category="$2"; shift ;;
|
||||
# -h | --hint) hint="$2"; shift ;;
|
||||
# -r | --replace-id) replace_id="$2"; shift ;;
|
||||
|
||||
# -p | --print-id) PrintId ;;
|
||||
# -w | --wait) Wait ;;
|
||||
# -e | --transient) Transient ;;
|
||||
|
||||
# --selected-action-fd) sel_action_fd="$2"; shift ;;
|
||||
# --activation-token-fd) act_token_fd="$2"; shift ;;
|
||||
# --id-fd) id_fd="$2"; shift ;;
|
||||
|
||||
# --) shift; break ;;
|
||||
# esac
|
||||
# shift
|
||||
# done
|
||||
# others=("$@")
|
||||
# }
|
||||
|
||||
# NotifySend() {
|
||||
# local sel_action_fd act_token_fd id_fd replace_id hint category appicon icon expiretime urgency action appname
|
||||
# local others=()
|
||||
# NotifySendOptions "$@"
|
||||
# }
|
||||
Executable
+1949
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# button name | description or tip | url | icon (optional)
|
||||
|
||||
WELCOME_TIP_PAGES=(
|
||||
"$(BTR after_install_pm)|$(BTR after_install_pmtip)|'$EOS_PACKAGE_MGMT_URL'"
|
||||
"$(BTR after_install_ay)|$(BTR after_install_aytip)|'$EOS_AUR_YAY_URL'"
|
||||
)
|
||||
|
||||
WELCOME_TIP_PAGES+=(
|
||||
"$(BTR after_install_hn)|$(BTR after_install_hntip)|'$EOS_HARDWARE_PAGE'"
|
||||
"$(BTR after_install_bt)|$(BTR after_install_bttip)|'$BLUETOOTH_INFO_PAGE'"
|
||||
)
|
||||
|
||||
if [ -x /usr/bin/firewalld ] ; then
|
||||
WELCOME_TIP_PAGES+=( "$(BTR after_install_fw)|$(BTR after_install_fwtip)|'$EOS_FIREWALLD_INFO_PAGE'" )
|
||||
fi
|
||||
if [ "$(eos_GetArch)" != "armv7h" ] ; then
|
||||
WELCOME_TIP_PAGES+=("$(BTR after_install_nv)|$(BTR after_install_nvtip)|'$EOS_NVIDIA_INFO_PAGE'")
|
||||
fi
|
||||
|
||||
WELCOME_TIP_PAGES+=(
|
||||
"$(BTR after_install_ft)|$(BTR after_install_fttip)|'$EOS_INCLUDE_LOGS_PAGE'" # Forum tips
|
||||
"EndeavourOS $_and ARM|EndeavourOS $_and ARM $(BTR after_install_info)|'$ARM_MAIN_PAGE'"
|
||||
"$(BTR arch_chroot)|$(BTR arch_chroot_tip)|'https://discovery.endeavouros.com/system-rescue/arch-chroot'"
|
||||
|
||||
"$(BTR after_install_reisub)|$(BTR after_install_reisubtip)|'$REISUB_PAGE'"
|
||||
"$(BTR after_install_reisub2)|$(BTR after_install_reisubtip)|eos-reisub --enable|$ICO_CUSTOM"
|
||||
|
||||
"$(BTR butt_owncmds_help)|$(BTR nb_tab_owncmdstip)|$adding_own_commands"
|
||||
"$(BTR butt_owncmds_dnd)|$(BTR butt_owncmds_dnd_help)|welcome-dnd|$ICO_SYSTOOLS"
|
||||
)
|
||||
Reference in New Issue
Block a user