@ -0,0 +1,5 @@ |
|||
deb http://deb.debian.org/debian/ bullseye main |
|||
deb-src http://deb.debian.org/debian/ bullseye main |
|||
|
|||
deb http://security.debian.org/debian-security bullseye-security main |
|||
deb-src http://security.debian.org/debian-security bullseye-security main |
@ -1,16 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
set -e # exit on error |
|||
set -o pipefail # exit on pipeline error |
|||
set -u # treat unset variable as error |
|||
|
|||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" |
|||
|
|||
# install packages |
|||
if [ -f $SCRIPT_DIR/package.list ]; then |
|||
#sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \ |
|||
$APT_CMD update >>$OUTPUT 2>&1 && |
|||
#sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \ |
|||
$APT_CMD install $APT_OPTIONS \ |
|||
$(grep -vE "^\s*#" $SCRIPT_DIR/package.list | tr "\n" " ") >>$OUTPUT 2>&1 |
|||
fi |
@ -1,17 +0,0 @@ |
|||
# since we work without modules, we install everything in one file |
|||
# main |
|||
casper |
|||
lupin-casper |
|||
discover |
|||
laptop-detect |
|||
os-prober |
|||
network-manager |
|||
net-tools |
|||
wireless-tools |
|||
# gui |
|||
xubuntu-core^ |
|||
ubiquity |
|||
ubiquity-casper |
|||
ubiquity-frontend-gtk |
|||
ubiquity-slideshow-xubuntu |
|||
ubiquity-ubuntu-artwork |
@ -1,14 +0,0 @@ |
|||
# This file should go in /etc/casper.conf |
|||
# Supported variables are: |
|||
# USERNAME, USERFULLNAME, HOST, BUILD_SYSTEM, FLAVOUR |
|||
|
|||
export USERNAME="live" |
|||
export USERFULLNAME="Live session user" |
|||
export HOST="minios" |
|||
export BUILD_SYSTEM="Ubuntu" |
|||
|
|||
# USERNAME and HOSTNAME as specified above won't be honoured and will be set to |
|||
# flavour string acquired at boot time, unless you set FLAVOUR to any |
|||
# non-empty string. |
|||
|
|||
# export FLAVOUR="Ubuntu" |
@ -1,2 +0,0 @@ |
|||
Welcome to MiniOS! \n \l |
|||
|
@ -1 +0,0 @@ |
|||
WebBrowser=google-chrome |
@ -1,15 +0,0 @@ |
|||
[Desktop Entry] |
|||
Version=1.0 |
|||
Type=Application |
|||
Exec=exo-open --launch FileManager %u |
|||
Icon=system-file-manager |
|||
StartupNotify=true |
|||
Terminal=false |
|||
Categories=Utility;X-XFCE;X-Xfce-Toplevel; |
|||
OnlyShowIn=XFCE; |
|||
X-XFCE-MimeType=inode/directory;x-scheme-handler/trash; |
|||
Name=File Manager |
|||
Name[ru]=Файловый менеджер |
|||
Comment=Browse the file system |
|||
Comment[ru]=Просмотреть файловую систему |
|||
X-XFCE-Source=file:///usr/share/applications/exo-file-manager.desktop |
@ -1,16 +0,0 @@ |
|||
[Desktop Entry] |
|||
Version=1.0 |
|||
Type=Application |
|||
Exec=exo-open --launch WebBrowser %u |
|||
Icon=web-browser |
|||
StartupNotify=true |
|||
Terminal=false |
|||
Categories=Network;X-XFCE;X-Xfce-Toplevel; |
|||
OnlyShowIn=XFCE; |
|||
X-XFCE-MimeType=x-scheme-handler/http;x-scheme-handler/https; |
|||
Name=Web Browser |
|||
Name[ru]=Веб-браузер |
|||
Comment=Browse the web |
|||
Comment[ru]=Смотреть в Интернете |
|||
X-XFCE-Source=file:///usr/share/applications/exo-web-browser.desktop |
|||
Path= |
@ -1,14 +0,0 @@ |
|||
[Desktop Entry] |
|||
Version=1.0 |
|||
Type=Application |
|||
Exec=exo-open --launch TerminalEmulator |
|||
Icon=utilities-terminal |
|||
StartupNotify=true |
|||
Terminal=false |
|||
Categories=Utility;X-XFCE;X-Xfce-Toplevel; |
|||
OnlyShowIn=XFCE; |
|||
Name=Terminal Emulator |
|||
Name[ru]=Эмулятор терминала |
|||
Comment=Use the command line |
|||
Comment[ru]=Использовать командную строку |
|||
X-XFCE-Source=file:///usr/share/applications/exo-terminal-emulator.desktop |
@ -1,68 +0,0 @@ |
|||
favorites=ubiquity.desktop |
|||
recent= |
|||
button-title=Applications Menu |
|||
button-icon=MiniOS-white |
|||
button-single-row=false |
|||
show-button-title=false |
|||
show-button-icon=true |
|||
launcher-show-name=true |
|||
launcher-show-description=false |
|||
launcher-show-tooltip=true |
|||
item-icon-size=2 |
|||
hover-switch-category=false |
|||
category-show-name=true |
|||
category-icon-size=1 |
|||
load-hierarchy=true |
|||
recent-items-max=10 |
|||
favorites-in-recent=true |
|||
display-recent-default=false |
|||
position-search-alternate=true |
|||
position-commands-alternate=false |
|||
position-categories-alternate=false |
|||
menu-width=400 |
|||
menu-height=500 |
|||
menu-opacity=100 |
|||
command-settings=xfce4-settings-manager |
|||
show-command-settings=true |
|||
command-lockscreen=xflock4 |
|||
show-command-lockscreen=true |
|||
command-switchuser=dm-tool switch-to-greeter |
|||
show-command-switchuser=false |
|||
command-logout=xfce4-session-logout |
|||
show-command-logout=true |
|||
command-menueditor=menulibre |
|||
show-command-menueditor=true |
|||
command-profile=mugshot |
|||
show-command-profile=true |
|||
search-actions=5 |
|||
|
|||
[action0] |
|||
name=Man-страницы |
|||
pattern=# |
|||
command=exo-open --launch TerminalEmulator man %s |
|||
regex=false |
|||
|
|||
[action1] |
|||
name=Web-поиск |
|||
pattern=? |
|||
command=exo-open --launch WebBrowser https://duckduckgo.com/?q=%u |
|||
regex=false |
|||
|
|||
[action2] |
|||
name=Википедия |
|||
pattern=!w |
|||
command=exo-open --launch WebBrowser https://en.wikipedia.org/wiki/%u |
|||
regex=false |
|||
|
|||
[action3] |
|||
name=Выполнить в терминале |
|||
pattern=! |
|||
command=exo-open --launch TerminalEmulator %s |
|||
regex=false |
|||
|
|||
[action4] |
|||
name=Открыть URI |
|||
pattern=^(file|http|https):\\/\\/(.*)$ |
|||
command=exo-open \\0 |
|||
regex=true |
|||
|
@ -1,123 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
|
|||
<channel name="xfce4-panel" version="1.0"> |
|||
<property name="panels" type="uint" value="1"> |
|||
<property name="panel-0" type="empty"> |
|||
<property name="position" type="string" value="p=8;x=1109;y=1275"/> |
|||
<property name="length" type="uint" value="100"/> |
|||
<property name="position-locked" type="bool" value="true"/> |
|||
<property name="plugin-ids" type="array"> |
|||
<value type="int" value="1"/> |
|||
<value type="int" value="21"/> |
|||
<value type="int" value="23"/> |
|||
<value type="int" value="19"/> |
|||
<value type="int" value="24"/> |
|||
<value type="int" value="22"/> |
|||
<value type="int" value="2"/> |
|||
<value type="int" value="3"/> |
|||
<value type="int" value="5"/> |
|||
<value type="int" value="4"/> |
|||
<value type="int" value="7"/> |
|||
<value type="int" value="6"/> |
|||
<value type="int" value="9"/> |
|||
<value type="int" value="10"/> |
|||
<value type="int" value="11"/> |
|||
<value type="int" value="12"/> |
|||
</property> |
|||
<property name="background-style" type="uint" value="0"/> |
|||
<property name="background-alpha" type="uint" value="60"/> |
|||
<property name="size" type="uint" value="32"/> |
|||
<property name="length-adjust" type="bool" value="true"/> |
|||
<property name="span-monitors" type="bool" value="false"/> |
|||
<property name="enter-opacity" type="uint" value="100"/> |
|||
<property name="leave-opacity" type="uint" value="100"/> |
|||
<property name="mode" type="uint" value="0"/> |
|||
<property name="autohide-behavior" type="uint" value="0"/> |
|||
<property name="nrows" type="uint" value="1"/> |
|||
</property> |
|||
</property> |
|||
<property name="plugins" type="empty"> |
|||
<property name="plugin-1" type="string" value="whiskermenu"/> |
|||
<property name="plugin-2" type="string" value="tasklist"> |
|||
<property name="flat-buttons" type="bool" value="true"/> |
|||
<property name="show-handle" type="bool" value="false"/> |
|||
<property name="show-labels" type="bool" value="false"/> |
|||
</property> |
|||
<property name="plugin-3" type="string" value="separator"> |
|||
<property name="style" type="uint" value="0"/> |
|||
<property name="expand" type="bool" value="true"/> |
|||
</property> |
|||
<property name="plugin-4" type="string" value="systray"> |
|||
<property name="show-frame" type="bool" value="false"/> |
|||
<property name="size-max" type="uint" value="22"/> |
|||
<property name="names-visible" type="array"> |
|||
<value type="string" value="thunar"/> |
|||
<value type="string" value="ctsg"/> |
|||
</property> |
|||
<property name="names-hidden" type="array"> |
|||
<value type="string" value="network"/> |
|||
<value type="string" value="xfce4-power-manager"/> |
|||
<value type="string" value="сеть"/> |
|||
<value type="string" value="апплет networkmanager"/> |
|||
<value type="string" value="networkmanager applet"/> |
|||
<value type="string" value="remmina"/> |
|||
</property> |
|||
</property> |
|||
<property name="plugin-9" type="string" value="pulseaudio"> |
|||
<property name="enable-keyboard-shortcuts" type="bool" value="true"/> |
|||
<property name="enable-mpris" type="bool" value="true"/> |
|||
<property name="mixer-command" type="string" value="pavucontrol"/> |
|||
<property name="mpris-players" type="string" value="parole"/> |
|||
<property name="show-notifications" type="bool" value="true"/> |
|||
</property> |
|||
<property name="plugin-10" type="string" value="separator"> |
|||
<property name="style" type="uint" value="0"/> |
|||
<property name="expand" type="bool" value="false"/> |
|||
</property> |
|||
<property name="plugin-11" type="string" value="clock"> |
|||
<property name="digital-format" type="string" value="%d %b, %H:%M"/> |
|||
</property> |
|||
<property name="plugin-12" type="string" value="showdesktop"/> |
|||
<property name="plugin-19" type="string" value="launcher"> |
|||
<property name="items" type="array"> |
|||
<value type="string" value="16093657651.desktop"/> |
|||
</property> |
|||
</property> |
|||
<property name="plugin-21" type="string" value="separator"> |
|||
<property name="style" type="uint" value="0"/> |
|||
</property> |
|||
<property name="plugin-22" type="string" value="separator"> |
|||
<property name="style" type="uint" value="0"/> |
|||
</property> |
|||
<property name="plugin-23" type="string" value="launcher"> |
|||
<property name="items" type="array"> |
|||
<value type="string" value="16093659533.desktop"/> |
|||
</property> |
|||
<property name="show-label" type="bool" value="false"/> |
|||
<property name="disable-tooltips" type="bool" value="false"/> |
|||
</property> |
|||
<property name="plugin-24" type="string" value="launcher"> |
|||
<property name="items" type="array"> |
|||
<value type="string" value="16093659584.desktop"/> |
|||
</property> |
|||
</property> |
|||
<property name="plugin-5" type="string" value="xkb"> |
|||
<property name="display-scale" type="uint" value="50"/> |
|||
<property name="display-tooltip-icon" type="bool" value="true"/> |
|||
<property name="group-policy" type="uint" value="0"/> |
|||
<property name="display-type" type="uint" value="2"/> |
|||
<property name="display-name" type="uint" value="1"/> |
|||
</property> |
|||
<property name="plugin-7" type="string" value="statusnotifier"> |
|||
<property name="known-items" type="array"> |
|||
<value type="string" value="ctsg"/> |
|||
<value type="string" value="remmina-icon"/> |
|||
<value type="string" value="nm-applet"/> |
|||
</property> |
|||
<property name="hidden-items" type="array"> |
|||
</property> |
|||
</property> |
|||
<property name="plugin-6" type="string" value="power-manager-plugin"/> |
|||
</property> |
|||
<property name="configver" type="int" value="2"/> |
|||
</channel> |
@ -1 +0,0 @@ |
|||
Europe/Moscow |
Before Width: | Height: | Size: 681 KiB |
Before Width: | Height: | Size: 17 KiB |
@ -1 +0,0 @@ |
|||
/usr/share/plymouth/themes/minios-logo/minios-logo.plymouth |
@ -1,4 +0,0 @@ |
|||
[Plymouth Theme] |
|||
Name=Details |
|||
Description=Verbose fallback theme |
|||
ModuleName=details |
Before Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 3.4 KiB |
@ -1,8 +0,0 @@ |
|||
[Plymouth Theme] |
|||
Name=MiniOS Logo |
|||
Description=A theme that features a background with a logo. |
|||
ModuleName=script |
|||
|
|||
[script] |
|||
ImageDir=/usr/share/plymouth/themes/minios-logo |
|||
ScriptFile=/usr/share/plymouth/themes/minios-logo/minios-logo.script |
@ -1,512 +0,0 @@ |
|||
/************************************************************************** |
|||
* |
|||
* Copyright (C) 2011 The Xubuntu Community |
|||
* Copyright (C) 2009 Canonical Ltd. |
|||
* |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
* |
|||
* Written by: Mad Nick <dr.madnick@gmail.com> |
|||
* |
|||
**************************************************************************/ |
|||
|
|||
/* |
|||
* Related to the screen */ |
|||
|
|||
screen_width = Window.GetWidth(); |
|||
screen_height = Window.GetHeight(); |
|||
screen_x = Window.GetX(); |
|||
screen_y = Window.GetY(); |
|||
|
|||
/**/ |
|||
|
|||
/* |
|||
* Images, check bits per pixel |
|||
* and load images accordingly */ |
|||
|
|||
background_image = Image("wallpaper.png"); |
|||
passw_dialog_input_image = Image("passw-dialog.png"); |
|||
bullet_image = Image("test.png"); |
|||
|
|||
bpp = Window.GetBitsPerPixel(); |
|||
|
|||
if (bpp == 4) { |
|||
|
|||
logotype_image = Image("logo_16bit.png"); |
|||
progress_meter_image = Image("progress-meter_16bit.png"); |
|||
progress_fade_image = Image("progress-fade_16bit.png"); |
|||
fsck_progress_meter_image = Image("progress-meter_16bit.png"); |
|||
fsck_progress_fade_image = Image("fsck-fade_16bit.png"); |
|||
|
|||
} |
|||
else { |
|||
|
|||
logotype_image = Image("logo.png"); |
|||
progress_meter_image = Image("progress-meter.png"); |
|||
progress_fade_image = Image("progress-fade.png"); |
|||
fsck_progress_meter_image = Image("progress-meter.png"); |
|||
fsck_progress_fade_image = Image("fsck-fade.png"); |
|||
|
|||
} |
|||
|
|||
/**/ |
|||
|
|||
/* |
|||
* Sprites */ |
|||
|
|||
ratio = screen_height / screen_width; |
|||
background_ratio = background_image.GetHeight() / background_image.GetWidth(); |
|||
factor = 0; |
|||
|
|||
if (ratio > background_ratio) { |
|||
|
|||
factor = screen_height / background_image.GetHeight(); |
|||
|
|||
} |
|||
else { |
|||
|
|||
factor = screen_width / background_image.GetWidth(); |
|||
|
|||
} |
|||
|
|||
scaled = background_image.Scale(background_image.GetWidth() * factor, background_image.GetHeight() * factor); |
|||
background_sprite = Sprite(scaled); |
|||
background_sprite.SetX(screen_x + screen_width / 2 - scaled.GetWidth() / 2); |
|||
background_sprite.SetY(screen_y + screen_height / 2 - scaled.GetHeight() / 2); |
|||
|
|||
logotype_sprite = Sprite(logotype_image); |
|||
|
|||
fsck_progress_meter_sprite = Sprite(fsck_progress_meter_image); |
|||
fsck_progress_fade_sprite = Sprite(fsck_progress_fade_image.Scale(1, fsck_progress_fade_image.GetHeight())); |
|||
|
|||
passw_dialog_input_sprite = Sprite(passw_dialog_input_image); |
|||
passw_lbl_sprite = Sprite(); |
|||
|
|||
msg_label_sprite = Sprite(); |
|||
|
|||
/**/ |
|||
|
|||
/* |
|||
* Misc */ |
|||
|
|||
counter = 0; |
|||
|
|||
fade_pos_x = (screen_width / 2) - (progress_meter_image.GetWidth() / 2); |
|||
fade_dir = 0; /* 0 = right, 1 = left */ |
|||
|
|||
fsck_running = 0; |
|||
fsck_dev_array; |
|||
fsck_dev_counter = 0; |
|||
fsck_fade_in_counter = 0; |
|||
fsck_done_fading = 0; |
|||
|
|||
stars_array; |
|||
stars_n = 0; |
|||
|
|||
//full_msg = ""; |
|||
msgs_line = [NULL,NULL,NULL,NULL,NULL]; |
|||
|
|||
/**/ |
|||
|
|||
/* |
|||
* Debug related */ |
|||
|
|||
debug = 0; |
|||
debug_sprite = Sprite(); |
|||
|
|||
fun debugOutput(str) { |
|||
|
|||
/* |
|||
* This will print to the top left corner */ |
|||
debug_sprite.SetImage(Image.Text(str)); |
|||
|
|||
} |
|||
|
|||
/**/ |
|||
|
|||
/* |
|||
* Setup the graphics properties */ |
|||
logotype_sprite.SetPosition(screen_x + (screen_width / 2) - (logotype_image.GetWidth() / 2), screen_y + (screen_height / 2) - (logotype_image.GetHeight() / 2)); |
|||
fsck_progress_meter_sprite.SetPosition(screen_x + (screen_width / 2) - (progress_meter_image.GetWidth() / 2), screen_y + (screen_height / 2) + (logotype_image.GetHeight() / 2) + 25); |
|||
fsck_progress_fade_sprite.SetPosition(screen_x + (screen_width / 2) - (progress_meter_image.GetWidth() / 2), screen_y + (screen_height / 2) + (logotype_image.GetHeight() / 2) + 25); |
|||
fsck_progress_meter_sprite.SetOpacity(0); |
|||
fsck_progress_fade_sprite.SetOpacity(0); |
|||
passw_dialog_input_sprite.SetPosition(screen_x + (screen_width / 2) - (passw_dialog_input_image.GetWidth() / 2), screen_y + (screen_height / 2) + (logotype_image.GetHeight() / 2) + 70); |
|||
passw_dialog_input_sprite.SetOpacity(0); |
|||
passw_lbl_sprite.SetOpacity(0); |
|||
|
|||
spin = 0; |
|||
|
|||
/* |
|||
* this function only goes up to 100 |
|||
* because thats all thats needed for |
|||
* the progress meter bar */ |
|||
fun atoi(str) { |
|||
|
|||
int = -1; |
|||
|
|||
for (i = 0; i <= 100; i++) { |
|||
|
|||
if (i + "" == str) { |
|||
|
|||
int = i; |
|||
|
|||
break; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
return int; |
|||
|
|||
} |
|||
|
|||
/* |
|||
* This handler will/can be invoked |
|||
* 50 times per second. |
|||
* |
|||
* According to the previous author of the |
|||
* splash script, without this callback |
|||
* the screen is not updated correctly */ |
|||
spinner_sprite; |
|||
spinner; |
|||
|
|||
fun refreshHandler() { |
|||
|
|||
if (spin < 3.14 * 2) { |
|||
|
|||
spin = spin + 0.1; |
|||
|
|||
} |
|||
else { |
|||
|
|||
spin = 0; |
|||
|
|||
} |
|||
|
|||
/* if fsck is running or the password is prompted, hide the spinner */ |
|||
if (fsck_running == 1 || passw_dialog_input_sprite.GetOpacity() == 1) { |
|||
|
|||
spinner_sprite.SetOpacity(0); |
|||
|
|||
} else { |
|||
|
|||
spinner = Image("spinner.png"); |
|||
spinner = spinner.Rotate(spin); |
|||
spinner_sprite = Sprite(spinner); |
|||
spinner_sprite.SetPosition(screen_x + (screen_width / 2) - (spinner.GetWidth() / 2), screen_y + (screen_height / 2) - (spinner.GetHeight() / 2) + 80); |
|||
|
|||
} |
|||
|
|||
if (fade_dir == 0) { |
|||
|
|||
counter++; |
|||
|
|||
if (counter >= 200) { |
|||
|
|||
fade_dir = 1; |
|||
|
|||
} |
|||
|
|||
} |
|||
else { |
|||
|
|||
counter--; |
|||
|
|||
if (counter <= 0) { |
|||
|
|||
fade_dir = 0; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
if ((fsck_running == 1) && (fsck_done_fading == 0)) { |
|||
|
|||
|
|||
fsck_progress_meter_sprite.SetOpacity(fsck_fade_in_counter); |
|||
fsck_progress_fade_sprite.SetOpacity(fsck_fade_in_counter); |
|||
|
|||
if (fsck_fade_in_counter < 1) { |
|||
|
|||
fsck_fade_in_counter+= 0.025; |
|||
|
|||
} |
|||
else { |
|||
|
|||
fsck_done_fading = 1; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
Plymouth.SetRefreshFunction (refreshHandler); |
|||
|
|||
/**/ |
|||
|
|||
/* |
|||
* This function will display the password related information |
|||
* when being prompt with entering a password */ |
|||
fun showPasswordHandler(prompt, stars) { |
|||
|
|||
if (passw_dialog_input_sprite.GetOpacity() == 0 && passw_lbl_sprite.GetOpacity() == 0) { |
|||
|
|||
passw_dialog_input_sprite.SetOpacity(1); |
|||
passw_lbl_sprite.SetOpacity(1); |
|||
|
|||
} |
|||
|
|||
tmp_prompt_image = Image.Text(prompt, 1, 1, 1); |
|||
|
|||
passw_lbl_sprite.SetImage(tmp_prompt_image); |
|||
passw_lbl_sprite.SetPosition(screen_x + (screen_width / 2) - (tmp_prompt_image.GetWidth() / 2), screen_y + (screen_height / 2) + (logotype_image.GetHeight() / 2) + 50); |
|||
|
|||
for(i = 0; i < stars_n; i++) { |
|||
|
|||
stars_array[i] = NULL; |
|||
|
|||
} |
|||
|
|||
stars_n = 0; |
|||
|
|||
for(i = 0; (i < stars) && (i < 15); i++) { |
|||
|
|||
stars_array[i] = Sprite(bullet_image); |
|||
stars_array[i].SetPosition(screen_x + (((screen_width / 2) - (passw_dialog_input_image.GetWidth() / 2)) + (18 * i)) + 2, screen_y + (screen_height / 2) + (logotype_image.GetHeight() / 2) + 75); |
|||
stars_n++; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
Plymouth.SetDisplayPasswordFunction(showPasswordHandler); |
|||
|
|||
/**/ |
|||
|
|||
fun displayNormalHandler() { |
|||
|
|||
/* |
|||
* Hide the password dialog and the bullets */ |
|||
|
|||
if (passw_dialog_input_sprite.GetOpacity() == 1) { |
|||
|
|||
passw_dialog_input_sprite.SetOpacity(0); |
|||
|
|||
} |
|||
|
|||
if (passw_lbl_sprite.GetOpacity() == 1) { |
|||
|
|||
passw_lbl_sprite.SetOpacity(0); |
|||
|
|||
} |
|||
|
|||
for(i = 0; i < stars_n; i++) { |
|||
|
|||
stars_array[i] = NULL; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
Plymouth.SetDisplayNormalFunction(displayNormalHandler); |
|||
|
|||
fun strlen(string) { |
|||
|
|||
i = 0; |
|||
|
|||
while (String(string).CharAt(i)) { |
|||
|
|||
i++; |
|||
|
|||
} |
|||
|
|||
return i; |
|||
|
|||
} |
|||
|
|||
/* |
|||
* This function will display the most current message */ |
|||
fun messageHandler(msg) { |
|||
|
|||
if ((msg == "") || !msg) { |
|||
|
|||
return 0; |
|||
|
|||
} |
|||
|
|||
if (msg.SubString(0, 5) == "keys:") { |
|||
|
|||
msg = msg.SubString(5, strlen(msg)); |
|||
|
|||
} |
|||
|
|||
# Get the message without the "fsckd-cancel-msg" prefix as we don't support i18n |
|||
if (msg.SubString(0, 17) == "fsckd-cancel-msg:") |
|||
msg = msg.SubString(17, strlen(msg)); |
|||
|
|||
//full_msg += msg + " "; |
|||
for(i = 4; i > 0; i--) { |
|||
|
|||
msgs_line[i] = msgs_line[i - 1]; |
|||
|
|||
} |
|||
|
|||
msgs_line[0] = Sprite(Image.Text(msg, 1, 1, 1)); |
|||
|
|||
dist = 1; |
|||
|
|||
for(i = 0; i < 5; i++) { |
|||
|
|||
if (msgs_line[i] != NULL) { |
|||
|
|||
msgs_line[i].SetPosition(screen_x + (screen_width / 2) - (msgs_line[i].GetImage().GetWidth() / 2), screen_y + (screen_height - msgs_line[i].GetImage().GetHeight()) - 20*dist); |
|||
dist++; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
Plymouth.SetMessageFunction(messageHandler); |
|||
|
|||
/**/ |
|||
|
|||
/* |
|||
* Handles the updates passed to the plymouth daemon |
|||
* for example the FSCK data */ |
|||
fun statusHandler(status) { |
|||
|
|||
tmp_char; |
|||
status_array[0] = ""; |
|||
elem_count = 0; |
|||
|
|||
for (i = 0; String(status).CharAt(i) != ""; i++) { |
|||
|
|||
tmp_char = String(status).CharAt(i); |
|||
|
|||
if (tmp_char != ":") { |
|||
|
|||
status_array[elem_count] += tmp_char; |
|||
|
|||
} |
|||
else { |
|||
|
|||
elem_count++; |
|||
status_array[elem_count] = ""; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
if (status_array[0] == "fsck") { |
|||
|
|||
already_added = 0; |
|||
|
|||
if (fsck_running == 0) { |
|||
|
|||
/* |
|||
* use the dedicated message handler for this |
|||
* since there is no messages about fsck checks |
|||
* currently... */ |
|||
messageHandler("Routine disk drive check."); |
|||
|
|||
fsck_running = 1; |
|||
|
|||
} |
|||
|
|||
for(i = 0; i < fsck_dev_counter; i++) { |
|||
|
|||
/* |
|||
* check if the device already exist and update |
|||
* the progress only in that case */ |
|||
if (fsck_dev_array[i][0] == status_array[1]) { |
|||
|
|||
fsck_dev_array[i][1] = status_array[2]; /* progress */ |
|||
already_added = 1; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
/* |
|||
* if the device is not added, then add it */ |
|||
if (already_added == 0) { |
|||
|
|||
fsck_dev_array[fsck_dev_counter][0] = status_array[1]; /* device */ |
|||
fsck_dev_array[fsck_dev_counter][1] = status_array[2]; /* progress */ |
|||
fsck_dev_counter++; |
|||
|
|||
} |
|||
|
|||
/* |
|||
* update the progress */ |
|||
|
|||
total = 0; |
|||
|
|||
for(i = 0; i < fsck_dev_counter; i++) { |
|||
|
|||
total += atoi(fsck_dev_array[i][1]); |
|||
|
|||
} |
|||
|
|||
if (fsck_dev_counter > 0) { |
|||
|
|||
/* |
|||
* display the total percentage */ |
|||
fsck_progress_fade_sprite.SetImage(fsck_progress_fade_image.Scale((fsck_progress_meter_image.GetWidth() / 100) * (total / fsck_dev_counter), fsck_progress_fade_image.GetHeight())); |
|||
|
|||
} |
|||
|
|||
/**/ |
|||
|
|||
/* |
|||
* if the total progress is at maximum, |
|||
* make the progress meter go away, |
|||
* we might want to fade this out... */ |
|||
if (total == (100 * fsck_dev_counter)) { |
|||
|
|||
fsck_progress_meter_sprite.SetOpacity(0); |
|||
fsck_progress_fade_sprite.SetOpacity(0); |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
# systemd-fsckd pass fsckd:<number_devices>:<progress>:<l10n_string> |
|||
if (status_array[0] == "fsckd") { |
|||
fsck_running = 1; |
|||
|
|||
# remove ",x" as we only care about integers |
|||
progress_str = status_array[2]; |
|||
progress = atoi(progress_str.SubString(0, strlen(progress_str) - 2)); |
|||
|
|||
fsck_progress_fade_sprite.SetImage(fsck_progress_fade_image.Scale((fsck_progress_meter_image.GetWidth() / 100) * progress, fsck_progress_fade_image.GetHeight())); |
|||
|
|||
/* |
|||
* if the total progress is at maximum, |
|||
* make the progress meter go away, |
|||
* we might want to fade this out... */ |
|||
if (progress == 100) { |
|||
fsck_progress_meter_sprite.SetOpacity(0); |
|||
fsck_progress_fade_sprite.SetOpacity(0); |
|||
} |
|||
} |
|||
|
|||
} |
|||
|
|||
Plymouth.SetUpdateStatusFunction(statusHandler); |
|||
|
|||
/**/ |
Before Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 981 B |
Before Width: | Height: | Size: 136 B |
Before Width: | Height: | Size: 2.0 KiB |
@ -1,11 +0,0 @@ |
|||
[Plymouth Theme] |
|||
Name=MiniOS Text |
|||
Description=Text mode theme based on minios-logo theme |
|||
ModuleName=ubuntu-text |
|||
|
|||
[ubuntu-text] |
|||
title=MiniOS 2021 |
|||
black=0x000000 |
|||
white=0xffffff |
|||
brown=0x000000 |
|||
blue=0xffffff |
@ -1 +0,0 @@ |
|||
/usr/share/plymouth/themes/minios-text/minios-text.plymouth |
@ -1,103 +1,10 @@ |
|||
#!/bin/bash |
|||
|
|||
apt-get remove --yes vim* grub* debconf-i18n installation-report |
|||
apt-get remove --yes vim* grub* debconf-i18n installation-report >>$OUTPUT 2>&1 |
|||
|
|||
CWD="$(pwd)" |
|||
cd /tmp |
|||
apt -y update |
|||
apt-get download acpi-support |
|||
dpkg -x acpi-support*.deb /tmp/acpisupport |
|||
apt -y update >>$OUTPUT 2>&1 |
|||
apt-get download acpi-support >>$OUTPUT 2>&1 |
|||
dpkg -x acpi-support*.deb /tmp/acpisupport >>$OUTPUT 2>&1 |
|||
cd /tmp/acpisupport |
|||
cp -aR * / |
|||
cd "$CWD" |
|||
|
|||
rm -f /etc/fstab |
|||
rm -f /etc/mtab |
|||
rm -f /etc/apt/sources.list~ |
|||
rm -Rf /etc/systemd/system/timers.target.wants |
|||
rm -f /etc/systemd/system/multi-user.target.wants/ssh.service |
|||
rm -f /etc/systemd/system/multi-user.target.wants/dnsmasq.service |
|||
|
|||
rm -f /etc/ssh/ssh_host* |
|||
|
|||
rm -f /var/backups/* |
|||
rm -f /var/cache/ldconfig/* |
|||
rm -f /var/cache/debconf/* |
|||
rm -f /var/cache/fontconfig/* |
|||
rm -f /var/lib/apt/extended_states |
|||
rm -f /var/lib/systemd/random-seed |
|||
rm -f /var/lib/apt/lists/deb.* |
|||
rm -Rf /root/.local/share/mc |
|||
rm -Rf /root/.cache |
|||
rm -f /root/.wget-hsts |
|||
|
|||
rm -f /var/lib/dpkg/*-old |
|||
rm -f /var/log/* |
|||
rm -f /var/log/*/* |
|||
rm -f /var/log/*/*/* |
|||
rm -f /var/cache/apt/archives/*.deb |
|||
rm -f /var/cache/apt/*.bin |
|||
rm -f /var/cache/debconf/*-old |
|||
rm -f /var/lib/dhcp/dhclient.leases |
|||
rm -f /root/.bash_history |
|||
rm -f /root/.wget-hsts |
|||
rm -Rf /usr/share/doc/* |
|||
rm -Rf /usr/share/info/* |
|||
rm -f /usr/share/images/fluxbox/debian-squared.jpg |
|||
rm -Rf /usr/share/fluxbox/nls/??* |
|||
rm -Rf /usr/share/gnome/help |
|||
|
|||
rm -Rf /usr/share/locale/?? |
|||
rm -Rf /usr/share/locale/??_* |
|||
rm -Rf /usr/share/locale/??@* |
|||
rm -Rf /usr/share/locale/??? |
|||
rm -Rf /usr/share/i18n/locales/*_* |
|||
rm -Rf /usr/share/man/?? |
|||
rm -Rf /usr/share/man/*_* |
|||
|
|||
rm -Rf /usr/share/icons/elementaryXubuntu-dark |
|||
rm -Rf /usr/share/icons/gnome/256x256 |
|||
|
|||
rm /usr/share/applications/compton.desktop |
|||
rm /usr/share/applications/debian-uxterm.desktop |
|||
rm /usr/share/applications/debian-xterm.desktop |
|||
rm /usr/share/applications/htop.desktop |
|||
rm /usr/share/applications/mc.desktop |
|||
rm /usr/share/applications/mcedit.desktop |
|||
rm /usr/share/applications/pcmanfm-desktop-pref.desktop |
|||
rm /usr/share/applications/python2.7.desktop |
|||
rm /usr/share/applications/python3.7.desktop |
|||
rm /usr/share/applications/vim.desktop |
|||
|
|||
|
|||
|
|||
# Unzip gzipped files (man pages), so LZMA can compress 2times better. |
|||
# First we fix symlinks, then uncompress files |
|||
# $1 = search directory |
|||
uncompress_files() |
|||
{ |
|||
local LINK LINE |
|||
|
|||
find "$1" -type l -name "*.gz" | while read LINE; do |
|||
LINK="$(readlink "$LINE" | sed -r 's/.gz$//')" |
|||
FILE="$(echo "$LINE" | sed -r 's/.gz$//')" |
|||
ln -sfn "$LINK" "$FILE" |
|||
rm -f "$LINE" |
|||
done |
|||
find "$1" -type f -name "*.gz" | xargs -r gunzip |
|||
} |
|||
|
|||
uncompress_files /etc/alternatives |
|||
uncompress_files /usr/share/man |
|||
|
|||
# remove broken links |
|||
# $1 = search directory |
|||
remove_broken_links() |
|||
{ |
|||
find "$1" -type l -exec test ! -e {} \; -print | xargs rm -vf |
|||
} |
|||
|
|||
remove_broken_links /etc/alternatives |
|||
remove_broken_links /usr/share/man |
|||
|
|||
|
|||
cp -aR * / >>$OUTPUT 2>&1 |
@ -1,92 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
rm -f /etc/fstab |
|||
rm -f /etc/mtab |
|||
rm -f /etc/apt/sources.list~ |
|||
rm -Rf /etc/systemd/system/timers.target.wants |
|||
rm -f /etc/systemd/system/multi-user.target.wants/ssh.service |
|||
rm -f /etc/systemd/system/multi-user.target.wants/dnsmasq.service |
|||
|
|||
rm -f /etc/ssh/ssh_host* |
|||
|
|||
rm -f /var/backups/* |
|||
rm -f /var/cache/ldconfig/* |
|||
rm -f /var/cache/debconf/* |
|||
rm -f /var/cache/fontconfig/* |
|||
rm -f /var/lib/apt/extended_states |
|||
rm -f /var/lib/systemd/random-seed |
|||
rm -f /var/lib/apt/lists/deb.* |
|||
rm -Rf /root/.local/share/mc |
|||
rm -Rf /root/.cache |
|||
rm -f /root/.wget-hsts |
|||
|
|||
rm -f /var/lib/dpkg/*-old |
|||
rm -f /var/log/* |
|||
rm -f /var/log/*/* |
|||
rm -f /var/log/*/*/* |
|||
rm -f /var/cache/apt/archives/*.deb |
|||
rm -f /var/cache/apt/*.bin |
|||
rm -f /var/cache/debconf/*-old |
|||
rm -f /var/lib/dhcp/dhclient.leases |
|||
rm -f /root/.bash_history |
|||
rm -f /root/.wget-hsts |
|||
rm -Rf /usr/share/doc/* |
|||
rm -Rf /usr/share/info/* |
|||
rm -f /usr/share/images/fluxbox/debian-squared.jpg |
|||
rm -Rf /usr/share/fluxbox/nls/??* |
|||
rm -Rf /usr/share/gnome/help |
|||
|
|||
rm -Rf /usr/share/locale/?? |
|||
rm -Rf /usr/share/locale/??_* |
|||
rm -Rf /usr/share/locale/??@* |
|||
rm -Rf /usr/share/locale/??? |
|||
rm -Rf /usr/share/i18n/locales/*_* |
|||
rm -Rf /usr/share/man/?? |
|||
rm -Rf /usr/share/man/*_* |
|||
|
|||
rm -Rf /usr/share/icons/elementaryXubuntu-dark |
|||
rm -Rf /usr/share/icons/gnome/256x256 |
|||
|
|||
rm /usr/share/applications/compton.desktop |
|||
rm /usr/share/applications/debian-uxterm.desktop |
|||
rm /usr/share/applications/debian-xterm.desktop |
|||
rm /usr/share/applications/htop.desktop |
|||
rm /usr/share/applications/mc.desktop |
|||
rm /usr/share/applications/mcedit.desktop |
|||
rm /usr/share/applications/pcmanfm-desktop-pref.desktop |
|||
rm /usr/share/applications/python2.7.desktop |
|||
rm /usr/share/applications/python3.7.desktop |
|||
rm /usr/share/applications/vim.desktop |
|||
|
|||
|
|||
|
|||
# Unzip gzipped files (man pages), so LZMA can compress 2times better. |
|||
# First we fix symlinks, then uncompress files |
|||
# $1 = search directory |
|||
uncompress_files() |
|||
{ |
|||
local LINK LINE |
|||
|
|||
find "$1" -type l -name "*.gz" | while read LINE; do |
|||
LINK="$(readlink "$LINE" | sed -r 's/.gz$//')" |
|||
FILE="$(echo "$LINE" | sed -r 's/.gz$//')" |
|||
ln -sfn "$LINK" "$FILE" |
|||
rm -f "$LINE" |
|||
done |
|||
find "$1" -type f -name "*.gz" | xargs -r gunzip |
|||
} |
|||
|
|||
uncompress_files /etc/alternatives |
|||
uncompress_files /usr/share/man |
|||
|
|||
# remove broken links |
|||
# $1 = search directory |
|||
remove_broken_links() |
|||
{ |
|||
find "$1" -type l -exec test ! -e {} \; -print | xargs rm -vf |
|||
} |
|||
|
|||
remove_broken_links /etc/alternatives |
|||
remove_broken_links /usr/share/man |
|||
|
|||
|
@ -0,0 +1,30 @@ |
|||
! this are Xresources to make xterm look good |
|||
! put into ~/.Xresources |
|||
! after changing contents, run xrdb -merge .Xresources |
|||
! gentoo has a bug so that it doesnt read it when X starts, so add above |
|||
! command to /etc/xfce4/xinitrc (top) and be happy. |
|||
|
|||
XTerm*foreground: white |
|||
XTerm*background: rgb:22/22/22 |
|||
XTerm*cursorColor: rgb:00/ff/00 |
|||
XTerm*borderColor: black |
|||
XTerm*scrollColor: black |
|||
XTerm*visualBell: true |
|||
XTerm*saveLines: 50000 |
|||
XTerm*allowSendEvents: True |
|||
XTerm*sessionMgt: false |
|||
XTerm*rightScrollBar: true |
|||
XTerm*eightBitInput: false |
|||
XTerm*faceName:fixed:size=11 |
|||
XTerm*boldFont:fixed:size=11 |
|||
XTerm*activeIcon: true |
|||
XTerm*iconPixmap: /usr/share/icons/locolor/16x16/apps/xterm.xbm |
|||
XTerm*fullscreen: never |
|||
|
|||
Xft.antialias: true |
|||
Xft.hinting: true |
|||
Xft.hintstyle: hintfull |
|||
Xft.lcdfilter: lcdlegacy |
|||
Xft.rgba: rgb |
|||
|
|||
XTerm*selectToClipboard: true |
@ -0,0 +1,5 @@ |
|||
[begin] ( Menu ) |
|||
[exec] (Terminal) { xterm -ls -title Terminal } |
|||
[exec] (Web browser) { chromium } |
|||
[exit] (Exit) |
|||
[end] |
@ -0,0 +1,6 @@ |
|||
session.screen0.toolbar.widthPercent: 100 |
|||
session.screen0.strftimeFormat: %H:%M |
|||
session.edgeSnapThreshold: 10 |
|||
session.menuFile: /root/.blackbox-menu |
|||
session.styleFile: /usr/share/blackbox/styles/Slax |
|||
session.changeWorkspaceWithMouseWheel: False |
@ -1,91 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
rm -f /etc/fstab |
|||
rm -f /etc/mtab |
|||
rm -f /etc/apt/sources.list~ |
|||
rm -Rf /etc/systemd/system/timers.target.wants |
|||
rm -f /etc/systemd/system/multi-user.target.wants/ssh.service |
|||
rm -f /etc/systemd/system/multi-user.target.wants/dnsmasq.service |
|||
|
|||
rm -f /etc/ssh/ssh_host* |
|||
|
|||
rm -f /var/backups/* |
|||
rm -f /var/cache/ldconfig/* |
|||
rm -f /var/cache/debconf/* |
|||
rm -f /var/cache/fontconfig/* |
|||
rm -f /var/lib/apt/extended_states |
|||
rm -f /var/lib/systemd/random-seed |
|||
rm -f /var/lib/apt/lists/deb.* |
|||
rm -Rf /root/.local/share/mc |
|||
rm -Rf /root/.cache |
|||
rm -f /root/.wget-hsts |
|||
|
|||
rm -f /var/lib/dpkg/*-old |
|||
rm -f /var/log/* |
|||
rm -f /var/log/*/* |
|||
rm -f /var/log/*/*/* |
|||
rm -f /var/cache/apt/archives/*.deb |
|||
rm -f /var/cache/apt/*.bin |
|||
rm -f /var/cache/debconf/*-old |
|||
rm -f /var/lib/dhcp/dhclient.leases |
|||
rm -f /root/.bash_history |
|||
rm -f /root/.wget-hsts |
|||
rm -Rf /usr/share/doc/* |
|||
rm -Rf /usr/share/info/* |
|||
rm -f /usr/share/images/fluxbox/debian-squared.jpg |
|||
rm -Rf /usr/share/fluxbox/nls/??* |
|||
rm -Rf /usr/share/gnome/help |
|||
|
|||
rm -Rf /usr/share/locale/?? |
|||
rm -Rf /usr/share/locale/??_* |
|||
rm -Rf /usr/share/locale/??@* |
|||
rm -Rf /usr/share/locale/??? |
|||
rm -Rf /usr/share/i18n/locales/*_* |
|||
rm -Rf /usr/share/man/?? |
|||
rm -Rf /usr/share/man/*_* |
|||
|
|||
rm -Rf /usr/share/icons/elementaryXubuntu-dark |
|||
rm -Rf /usr/share/icons/gnome/256x256 |
|||
|
|||
rm /usr/share/applications/compton.desktop |
|||
rm /usr/share/applications/debian-uxterm.desktop |
|||
rm /usr/share/applications/debian-xterm.desktop |
|||
rm /usr/share/applications/htop.desktop |
|||
rm /usr/share/applications/mc.desktop |
|||
rm /usr/share/applications/mcedit.desktop |
|||
rm /usr/share/applications/pcmanfm-desktop-pref.desktop |
|||
rm /usr/share/applications/python2.7.desktop |
|||
rm /usr/share/applications/python3.7.desktop |
|||
rm /usr/share/applications/vim.desktop |
|||
|
|||
|
|||
|
|||
# Unzip gzipped files (man pages), so LZMA can compress 2times better. |
|||
# First we fix symlinks, then uncompress files |
|||
# $1 = search directory |
|||
uncompress_files() |
|||
{ |
|||
local LINK LINE |
|||
|
|||
find "$1" -type l -name "*.gz" | while read LINE; do |
|||
LINK="$(readlink "$LINE" | sed -r 's/.gz$//')" |
|||
FILE="$(echo "$LINE" | sed -r 's/.gz$//')" |
|||
ln -sfn "$LINK" "$FILE" |
|||
rm -f "$LINE" |
|||
done |
|||
find "$1" -type f -name "*.gz" | xargs -r gunzip |
|||
} |
|||
|
|||
uncompress_files /etc/alternatives |
|||
uncompress_files /usr/share/man |
|||
|
|||
# remove broken links |
|||
# $1 = search directory |
|||
remove_broken_links() |
|||
{ |
|||
find "$1" -type l -exec test ! -e {} \; -print | xargs rm -vf |
|||
} |
|||
|
|||
remove_broken_links /etc/alternatives |
|||
remove_broken_links /usr/share/man |
|||
|
@ -0,0 +1,19 @@ |
|||
[StatusIcon] |
|||
stepsize=5 |
|||
lmb_slider=false |
|||
mmb_mute=false |
|||
use_horizontal_slider=false |
|||
show_sound_level=false |
|||
onclick=xterm -e 'alsamixer' |
|||
theme=White Gnome |
|||
|
|||
[Hotkeys] |
|||
up_enabled=true |
|||
down_enabled=true |
|||
mute_enabled=true |
|||
up=XF86AudioRaiseVolume |
|||
down=XF86AudioLowerVolume |
|||
mute=XF86AudioMute |
|||
|
|||
[Alsa] |
|||
card=default |
@ -0,0 +1,20 @@ |
|||
[xarchiver] |
|||
preferred_format=0 |
|||
confirm_deletion=true |
|||
sort_filename_content=false |
|||
store_output=false |
|||
icon_size=0 |
|||
show_archive_comment=false |
|||
show_sidebar=false |
|||
show_location_bar=false |
|||
preferred_temp_dir=/tmp |
|||
allow_sub_dir=0 |
|||
overwrite=false |
|||
full_path=true |
|||
touch=false |
|||
freshen=false |
|||
update=false |
|||
store_path=false |
|||
recurse=true |
|||
solid_archive=false |
|||
remove_files=false |
@ -0,0 +1,18 @@ |
|||
[app] (name=fbrun) |
|||
[Position] (WINCENTER) {0 0} |
|||
[Layer] {2} |
|||
[end] |
|||
|
|||
[app] (name=gtkdialog) |
|||
[Position] (WINCENTER) {0 0} |
|||
[Layer] {2} |
|||
[end] |
|||
|
|||
[app] (name=xlunch) |
|||
[DECO] {NONE} |
|||
[IconHidden] {yes} |
|||
[end] |
|||
|
|||
[app] (name=xterm) {1} |
|||
[Position] (WINCENTER) {0 0} |
|||
[end] |
@ -0,0 +1,76 @@ |
|||
session.screen0.slit.maxOver: false |
|||
session.screen0.slit.placement: TopLeft |
|||
session.screen0.slit.layer: Dock |
|||
session.screen0.slit.onhead: 0 |
|||
session.screen0.slit.acceptKdeDockapps: true |
|||
session.screen0.slit.alpha: 255 |
|||
session.screen0.slit.autoHide: false |
|||
session.screen0.menu.alpha: 255 |
|||
session.screen0.clientMenu.usePixmap: true |
|||
session.screen0.tab.placement: TopLeft |
|||
session.screen0.tab.width: 64 |
|||
session.screen0.toolbar.maxOver: false |
|||
session.screen0.toolbar.tools: RootMenu, iconbar, systemtray, clock |
|||
session.screen0.toolbar.autoHide: false |
|||
session.screen0.toolbar.widthPercent: 100 |
|||
session.screen0.toolbar.alpha: 255 |
|||
session.screen0.toolbar.visible: true |
|||
session.screen0.toolbar.placement: BottomCenter |
|||
session.screen0.toolbar.layer: Dock |
|||
session.screen0.toolbar.height: 0 |
|||
session.screen0.toolbar.onhead: 1 |
|||
session.screen0.tabs.usePixmap: true |
|||
session.screen0.tabs.maxOver: true |
|||
session.screen0.tabs.intitlebar: true |
|||
session.screen0.window.focus.alpha: 255 |
|||
session.screen0.window.unfocus.alpha: 255 |
|||
session.screen0.iconbar.usePixmap: true |
|||
session.screen0.iconbar.alignment: Left |
|||
session.screen0.iconbar.iconTextPadding: 10 |
|||
session.screen0.iconbar.mode: {static groups} (workspace) |
|||
session.screen0.iconbar.iconWidth: 128 |
|||
session.screen0.titlebar.left: |
|||
session.screen0.titlebar.right: Minimize Maximize Close |
|||
session.screen0.clickRaises: true |
|||
session.screen0.maxIgnoreIncrement: false |
|||
session.screen0.workspacewarping: true |
|||
session.screen0.colPlacementDirection: TopToBottom |
|||
session.screen0.maxDisableMove: false |
|||
session.screen0.rowPlacementDirection: LeftToRight |
|||
session.screen0.focusNewWindows: true |
|||
session.screen0.autoRaise: true |
|||
session.screen0.opaqueMove: true |
|||
session.screen0.maxDisableResize: false |
|||
session.screen0.tabFocusModel: ClickToTabFocus |
|||
session.screen0.tooltipDelay: 500 |
|||
session.screen0.fullMaximization: false |
|||
session.screen0.noFocusWhileTypingDelay: 0 |
|||
session.screen0.strftimeFormat: %H:%M |
|||
session.screen0.workspaces: 4 |
|||
session.screen0.allowRemoteActions: false |
|||
session.screen0.focusModel: ClickFocus |
|||
session.screen0.windowMenu: /root/.fluxbox/windowmenu |
|||
session.screen0.workspaceNames: Workspace 1 Ctrl+F1,Workspace 2 Ctrl+F2,Workspace 3 Ctrl+F3,Workspace 4 Ctrl+F4, |
|||
session.screen0.edgeSnapThreshold: 10 |
|||
session.screen0.showwindowposition: false |
|||
session.screen0.defaultDeco: NORMAL |
|||
session.screen0.menuDelay: 200 |
|||
session.screen0.windowPlacement: RowMinOverlapPlacement |
|||
session.screen0.focusSameHead: false |
|||
session.screen0.workspacewarping: false |
|||
session.keyFile: ~/.fluxbox/keys |
|||
session.menuFile: ~/.fluxbox/menu |
|||
session.styleFile: /usr/share/fluxbox/styles/Slax |
|||
session.colorsPerChannel: 4 |
|||
session.forcePseudoTransparency: true |
|||
session.ignoreBorder: false |
|||
session.doubleClickInterval: 250 |
|||
session.appsFile: /root/.fluxbox/apps |
|||
session.tabPadding: 0 |
|||
session.cacheLife: 5 |
|||
session.cacheMax: 200 |
|||
session.styleOverlay: /root/.fluxbox/overlay |
|||
session.autoRaiseDelay: 250 |
|||
session.slitlistFile: /root/.fluxbox/slitlist |
|||
session.tabsAttachArea: Window |
|||
session.configVersion: 13 |
@ -0,0 +1 @@ |
|||
en |
@ -0,0 +1,139 @@ |
|||
# click on the desktop to get menus |
|||
OnDesktop Mouse1 :MacroCmd {WindowMenu} {HideMenus} |
|||
OnDesktop Mouse2 :WorkspaceMenu |
|||
OnDesktop Mouse3 :RootMenu |
|||
|
|||
# scroll on the desktop to change workspaces |
|||
#OnDesktop Mouse4 :PrevWorkspace |
|||
#OnDesktop Mouse5 :NextWorkspace |
|||
|
|||
# scroll on the toolbar to change current window |
|||
#OnToolbar Mouse4 :PrevWindow {static groups} (iconhidden=no) |
|||
#OnToolbar Mouse5 :NextWindow {static groups} (iconhidden=no) |
|||
|
|||
# alt + left/right click to move/resize a window |
|||
OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving} |
|||
OnWindowBorder Move1 :StartMoving |
|||
|
|||
OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner} |
|||
OnLeftGrip Move1 :StartResizing bottomleft |
|||
OnRightGrip Move1 :StartResizing bottomright |
|||
|
|||
# alt + middle click to lower the window |
|||
OnWindow Mod1 Mouse2 :Lower |
|||
|
|||
# control-click a window's titlebar and drag to attach windows |
|||
OnTitlebar Control Mouse1 :StartTabbing |
|||
|
|||
# double click on the titlebar to shade |
|||
OnTitlebar Double Mouse1 :Maximize |
|||
|
|||
# left click on the titlebar to move the window |
|||
OnTitlebar Mouse1 :MacroCmd {Raise} {Focus} {ActivateTab} {StartMoving} |
|||
OnTitlebar Move1 :StartMoving |
|||
|
|||
# middle click on the titlebar to lower |
|||
OnTitlebar Mouse2 :Lower |
|||
|
|||
# right click on the titlebar for a menu of options |
|||
OnTitlebar Mouse3 :WindowMenu |
|||
|
|||
# alt-tab |
|||
Mod1 Tab :NextWindow {groups} (workspace=[current]) |
|||
Mod1 Shift Tab :PrevWindow {groups} (workspace=[current]) |
|||
|
|||
# cycle through tabs in the current window |
|||
Mod4 Tab :NextTab |
|||
Mod4 Shift Tab :PrevTab |
|||
|
|||
# go to a specific tab in the current window |
|||
Mod4 1 :Tab 1 |
|||
Mod4 2 :Tab 2 |
|||
Mod4 3 :Tab 3 |
|||
Mod4 4 :Tab 4 |
|||
Mod4 5 :Tab 5 |
|||
Mod4 6 :Tab 6 |
|||
Mod4 7 :Tab 7 |
|||
Mod4 8 :Tab 8 |
|||
Mod4 9 :Tab 9 |
|||
|
|||
# open a terminal |
|||
Mod1 F1 :Exec xterm |
|||
|
|||
# open a dialog to run programs |
|||
Mod1 F2 :Exec fbappselect |
|||
|
|||
# volume settings, using common keycodes |
|||
# if these don't work, use xev to find out your real keycodes |
|||
176 :Exec amixer sset Master,0 1+ |
|||
174 :Exec amixer sset Master,0 1- |
|||
160 :Exec amixer sset Master,0 toggle |
|||
|
|||
# current window commands |
|||
Mod1 F4 :Close |
|||
Mod1 F5 :Kill |
|||
Mod1 F9 :Minimize |
|||
Mod1 F10 :Maximize |
|||
Mod1 F11 :Fullscreen |
|||
|
|||
# open the window menu |
|||
Mod1 space :WindowMenu |
|||
|
|||
# exit fluxbox |
|||
Control Mod1 Delete :Exit |
|||
|
|||
# change to previous/next workspace |
|||
Control Mod1 Left :PrevWorkspace |
|||
Control Mod1 Right :NextWorkspace |
|||
|
|||
# send the current window to previous/next workspace |
|||
Mod4 Left :SendToPrevWorkspace |
|||
Mod4 Right :SendToNextWorkspace |
|||
|
|||
# send the current window and follow it to previous/next workspace |
|||
Control Mod4 Left :TakeToPrevWorkspace |
|||
Control Mod4 Right :TakeToNextWorkspace |
|||
|
|||
# change to a specific workspace |
|||
Control F1 :Workspace 1 |
|||
Control F2 :Workspace 2 |
|||
Control F3 :Workspace 3 |
|||
Control F4 :Workspace 4 |
|||
Control F5 :Workspace 5 |
|||
Control F6 :Workspace 6 |
|||
Control F7 :Workspace 7 |
|||
Control F8 :Workspace 8 |
|||
Control F9 :Workspace 9 |
|||
Control F10 :Workspace 10 |
|||
Control F11 :Workspace 11 |
|||
Control F12 :Workspace 12 |
|||
|
|||
# send the current window to a specific workspace |
|||
Mod4 F1 :SendToWorkspace 1 |
|||
Mod4 F2 :SendToWorkspace 2 |
|||
Mod4 F3 :SendToWorkspace 3 |
|||
Mod4 F4 :SendToWorkspace 4 |
|||
Mod4 F5 :SendToWorkspace 5 |
|||
Mod4 F6 :SendToWorkspace 6 |
|||
Mod4 F7 :SendToWorkspace 7 |
|||
Mod4 F8 :SendToWorkspace 8 |
|||
Mod4 F9 :SendToWorkspace 9 |
|||
Mod4 F10 :SendToWorkspace 10 |
|||
Mod4 F11 :SendToWorkspace 11 |
|||
Mod4 F12 :SendToWorkspace 12 |
|||
|
|||
# send the current window and change to a specific workspace |
|||
Control Mod4 F1 :TakeToWorkspace 1 |
|||
Control Mod4 F2 :TakeToWorkspace 2 |
|||
Control Mod4 F3 :TakeToWorkspace 3 |
|||
Control Mod4 F4 :TakeToWorkspace 4 |
|||
Control Mod4 F5 :TakeToWorkspace 5 |
|||
Control Mod4 F6 :TakeToWorkspace 6 |
|||
Control Mod4 F7 :TakeToWorkspace 7 |
|||
Control Mod4 F8 :TakeToWorkspace 8 |
|||
Control Mod4 F9 :TakeToWorkspace 9 |
|||
Control Mod4 F10 :TakeToWorkspace 10 |
|||
Control Mod4 F11 :TakeToWorkspace 11 |
|||
Control Mod4 F12 :TakeToWorkspace 12 |
|||
|
|||
Print :Exec fbprintscreen |
@ -0,0 +1 @@ |
|||
fbsetroot|-foreground #7790aa -solid #7790aa|style|:0.0 |
@ -0,0 +1,68 @@ |
|||
[begin] (Desktop menu) |
|||
[exec] (Terminal) { fbstartupnotify && xterm -ls } |
|||
[exec] (File Manager) { fbstartupnotify && pcmanfm } |
|||
[exec] (Web Browser) { fbstartupnotify && fbliveapp chromium } |
|||
[exec] (Text Editor) { fbstartupnotify && leafpad } |
|||
[exec] (Calculator) { fbstartupnotify && qalculate } |
|||
[exec] (Network Manager) { fbstartupnotify && wicd-manager } |
|||
[exec] (Run) { fbappselect } |
|||
[separator] |
|||
[workspaces] (Workspaces ...) |
|||
[submenu] (Screen resolution ...) {} |
|||
[include] (~/.fluxbox/menu_resolution) |
|||
[end] |
|||
[submenu] (Keyboard layout ...) {} |
|||
[exec] (Czech) { fbsetkb cz } </usr/share/icons/locolor/16x16/flags/flag_czech_republic.png> |
|||
[exec] (English) { fbsetkb us } </usr/share/icons/locolor/16x16/flags/flag_usa.png> |
|||
[exec] (French) { fbsetkb fr } </usr/share/icons/locolor/16x16/flags/flag_france.png> |
|||
[exec] (German) { fbsetkb de } </usr/share/icons/locolor/16x16/flags/flag_germany.png> |
|||
[exec] (Italian) { fbsetkb it } </usr/share/icons/locolor/16x16/flags/flag_italy.png> |
|||
[exec] (Polish) { fbsetkb pl } </usr/share/icons/locolor/16x16/flags/flag_poland.png> |
|||
[exec] (Portuguese) { fbsetkb pt } </usr/share/icons/locolor/16x16/flags/flag_portugal.png> |
|||
[exec] (Russian) { fbsetkb ru } </usr/share/icons/locolor/16x16/flags/flag_russia.png> |
|||
[exec] (Slovak) { fbsetkb sk } </usr/share/icons/locolor/16x16/flags/flag_slovakia.png> |
|||
[exec] (Spanish) { fbsetkb es } </usr/share/icons/locolor/16x16/flags/flag_spain.png> |
|||
[exec] (Ukrainian) { fbsetkb ua } </usr/share/icons/locolor/16x16/flags/flag_ukraine.png> |
|||
[submenu] (Other ...) {} |
|||
[exec] (Afghani) { fbsetkb af } |
|||
[exec] (Albanian) { fbsetkb al } |
|||
[exec] (Arabic [Morocco]) { fbsetkb ma } |
|||
[exec] (Arabic) { fbsetkb ara } |
|||
[exec] (Armenian) { fbsetkb am } |
|||
[exec] (Azerbaijani) { fbsetkb az } |
|||
[exec] (Belarusian) { fbsetkb by } |
|||
[exec] (Belgian) { fbsetkb be } |
|||
[exec] (Berber [Algeria]) { fbsetkb dz } |
|||
[exec] (Bosnian) { fbsetkb ba } |
|||
[exec] (Brasil) { fbsetkb br } |
|||
[exec] (Bulgarian) { fbsetkb bg } |
|||
[exec] (Croatian) { fbsetkb hr } |
|||
[exec] (Danish) { fbsetkb dk } |
|||
[exec] (Dutch) { fbsetkb nl } |
|||
[exec] (English [Australian]) { fbsetkb au } |
|||
[exec] (Estonian) { fbsetkb ee } |
|||
[exec] (Finnish) { fbsetkb fi } |
|||
[exec] (French [Canada]) { fbsetkb ca } |
|||
[exec] (German [Austria]) { fbsetkb at } |
|||
[exec] (German [Switzerland]) { fbsetkb ch } |
|||
[exec] (Greek) { fbsetkb gr } |
|||
[exec] (Hebrew) { fbsetkb il } |
|||
[exec] (Hungarian) { fbsetkb hu } |
|||
[exec] (Icelandic) { fbsetkb is } |
|||
[exec] (Indian) { fbsetkb in } |
|||
[exec] (Iraqi) { fbsetkb iq } |
|||
[exec] (Irish) { fbsetkb ie } |
|||
[exec] (Latvian) { fbsetkb lv } |
|||
[exec] (Lithuanian) { fbsetkb lt } |
|||
[exec] (Norwegian) { fbsetkb no } |
|||
[exec] (Persian) { fbsetkb ir } |
|||
[exec] (Romanian) { fbsetkb ro } |
|||
[exec] (Serbian) { fbsetkb rs } |
|||
[exec] (Slovenian) { fbsetkb si } |
|||
[exec] (Swedish) { fbsetkb se } |
|||
[exec] (Turkish) { fbsetkb tr } |
|||
[end] |
|||
[end] |
|||
[exec] (Exit / Logout) { fblogout } |
|||
|
|||
[end] |
@ -0,0 +1,2 @@ |
|||
! The following line will prevent styles from setting the background. |
|||
! background: none |
@ -0,0 +1,111 @@ |
|||
#!/bin/sh |
|||
# |
|||
# fluxbox startup-script: |
|||
# |
|||
# Lines starting with a '#' are ignored. |
|||
|
|||
# Change your keymap: |
|||
xmodmap "/root/.Xmodmap" |
|||
|
|||
# merge xresource settings |
|||
xrdb -merge ~/.Xresources |
|||
|
|||
# set keyboard layout |
|||
fbsetkb $(cat ~/.fluxbox/kblayout) |
|||
|
|||
# setup bookmarks for file manager |
|||
gtk-bookmarks-update |
|||
|
|||
# Share common directories with guest user. This is necessary |
|||
# because some apps like chromium must be running under guest |
|||
for dir in Desktop Documents Downloads Music Pictures Public Templates Videos; do |
|||
if ! mountpoint /root/$dir; then |
|||
mount --bind /home/live/$dir /root/$dir |
|||
fi |
|||
done |
|||
|
|||
# set background color and big wait mouse cursor |
|||
xsetroot -solid '#111111' |
|||
xsetroot -xcf /usr/share/icons/breeze_cursors/cursors/watch 37 |
|||
|
|||
# disable screen blanking |
|||
xset s off |
|||
xset -dpms |
|||
|
|||
# volume icon in system tray. Can fail if no soundcard is detected |
|||
volumeicon & |
|||
|
|||
# preload compton and fluxbox to cache |
|||
(compton --help; fluxbox --help) >/dev/null 2>&1 |
|||
|
|||
# Keep black screen for first second while the sound plays. |
|||
# This slows startup a little, but it is nicer effect. |
|||
SND=/usr/share/sounds/startup.wav |
|||
if [ -r $SND ]; then |
|||
cat $SND > /dev/null # preload |
|||
aplay $SND & |
|||
sleep 1 & |
|||
SOUNDPID=$! |
|||
fi |
|||
|
|||
# Debian-local change: |
|||
# - fbautostart has been added with a quick hack to check to see if it |
|||
# exists. If it does, we'll start it up by default. |
|||
which fbautostart > /dev/null |
|||
if [ $? -eq 0 ]; then |
|||
fbautostart |
|||
fi |
|||
|
|||
# We need to postpone compton after fluxbox starts, else it won't set |
|||
# the transparency of toolbar properly... So we check the fehbg file, |
|||
# which is created by fluxbox at the phase when it sets background. |
|||
# Once the file exist, fluxbox-toolbar is already started |
|||
|
|||
SIGNAL1=~/.fehbg |
|||
SIGNAL2=~/.fehbg2 |
|||
|
|||
rm -f $SIGNAL1 2>/dev/null |
|||
rm -f $SIGNAL2 2>/dev/null |
|||
|
|||
( |
|||
while [ ! -e $SIGNAL1 ]; do |
|||
sleep 0.1 |
|||
done |
|||
touch $SIGNAL2 |
|||
|
|||
(sleep 1; (echo; sleep 10; echo :quit) | xlunch --window --xposition 20 --yposition -30 \ |
|||
--width 195 --height 53 --noscroll --noprompt --backgroundcolor ffffff00 \ |
|||
--multiple --desktop --button "/usr/share/fluxbox/styles/Slax/pixmaps/start-here.png;;0,0;fbappselect" & ) & |
|||
|
|||
exec compton --sw-opti -e 0.9 --shadow-exclude 'class_g="xlunch-windowed"' --fade-exclude 'role*="fluxbox-toolbar"' --opacity-rule '70:role*="fluxbox-toolbar"' --no-fading-destroyed-argb -D 5 -c -f -l -2 -t -2 -r 0 -o 1 -z --shadow-exclude 'bounding_shaped' |
|||
) & |
|||
|
|||
# We want to run systrayicon only after the volumeicon is started |
|||
# So we have to wait until it is visible to xwinfo |
|||
# We also wait after background is set and compton is started |
|||
( |
|||
while [ ! -e $SIGNAL2 ]; do |
|||
sleep 0.1 |
|||
done |
|||
|
|||
rm -f $SIGNAL2 |
|||
|
|||
while ! xwininfo -name volumeicon >/dev/null 2>&1 && pgrep volumeicon >/dev/null 2>&1; do |
|||
sleep 0.1 |
|||
done |
|||
|
|||
exec systrayicon --command fblogout --iconfile /usr/share/icons/locolor/16x16/actions/system-shutdown-symbolic.png |
|||
) & |
|||
|
|||
# gen screen resolutions to fluxbox menu |
|||
xrandr 2>/dev/null | fgrep x | fgrep . | sort -n | tr -s " " | cut -d " " -f 2 \ |
|||
| sed -r "s:(.*):[exec] (\\1) {fbscreensize \\1}:" > ~/.fluxbox/menu_resolution |
|||
|
|||
# In all cases, wait for the sound sleeper. |
|||
# If startup took longer (sound completed already), no extra wait |
|||
wait $SOUNDPID |
|||
|
|||
# And last but not least we start fluxbox. |
|||
# Because it is the last app you have to run it with ''exec'' before it. |
|||
|
|||
exec fluxbox |
@ -0,0 +1,15 @@ |
|||
[begin] |
|||
[shade] |
|||
[stick] |
|||
[maximize] |
|||
[iconify] |
|||
[raise] |
|||
[lower] |
|||
[settitledialog] |
|||
[sendto] |
|||
[layer] |
|||
[alpha] |
|||
[extramenus] |
|||
[separator] |
|||
[close] |
|||
[end] |
@ -0,0 +1 @@ |
|||
startfluxbox |
Before Width: | Height: | Size: 369 KiB After Width: | Height: | Size: 901 KiB |
@ -1,91 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
rm -f /etc/fstab |
|||
rm -f /etc/mtab |
|||
rm -f /etc/apt/sources.list~ |
|||
rm -Rf /etc/systemd/system/timers.target.wants |
|||
rm -f /etc/systemd/system/multi-user.target.wants/ssh.service |
|||
rm -f /etc/systemd/system/multi-user.target.wants/dnsmasq.service |
|||
|
|||
rm -f /etc/ssh/ssh_host* |
|||
|
|||
rm -f /var/backups/* |
|||
rm -f /var/cache/ldconfig/* |
|||
rm -f /var/cache/debconf/* |
|||
rm -f /var/cache/fontconfig/* |
|||
rm -f /var/lib/apt/extended_states |
|||
rm -f /var/lib/systemd/random-seed |
|||
rm -f /var/lib/apt/lists/deb.* |
|||
rm -Rf /root/.local/share/mc |
|||
rm -Rf /root/.cache |
|||
rm -f /root/.wget-hsts |
|||
|
|||
rm -f /var/lib/dpkg/*-old |
|||
rm -f /var/log/* |
|||
rm -f /var/log/*/* |
|||
rm -f /var/log/*/*/* |
|||
rm -f /var/cache/apt/archives/*.deb |
|||
rm -f /var/cache/apt/*.bin |
|||
rm -f /var/cache/debconf/*-old |
|||
rm -f /var/lib/dhcp/dhclient.leases |
|||
rm -f /root/.bash_history |
|||
rm -f /root/.wget-hsts |
|||
rm -Rf /usr/share/doc/* |
|||
rm -Rf /usr/share/info/* |
|||
rm -f /usr/share/images/fluxbox/debian-squared.jpg |
|||
rm -Rf /usr/share/fluxbox/nls/??* |
|||
rm -Rf /usr/share/gnome/help |
|||
|
|||
rm -Rf /usr/share/locale/?? |
|||
rm -Rf /usr/share/locale/??_* |
|||
rm -Rf /usr/share/locale/??@* |
|||
rm -Rf /usr/share/locale/??? |
|||
rm -Rf /usr/share/i18n/locales/*_* |
|||
rm -Rf /usr/share/man/?? |
|||
rm -Rf /usr/share/man/*_* |
|||
|
|||
rm -Rf /usr/share/icons/elementaryXubuntu-dark |
|||
rm -Rf /usr/share/icons/gnome/256x256 |
|||
|
|||
rm /usr/share/applications/compton.desktop |
|||
rm /usr/share/applications/debian-uxterm.desktop |
|||
rm /usr/share/applications/debian-xterm.desktop |
|||
rm /usr/share/applications/htop.desktop |
|||
rm /usr/share/applications/mc.desktop |
|||
rm /usr/share/applications/mcedit.desktop |
|||
rm /usr/share/applications/pcmanfm-desktop-pref.desktop |
|||
rm /usr/share/applications/python2.7.desktop |
|||
rm /usr/share/applications/python3.7.desktop |
|||
rm /usr/share/applications/vim.desktop |
|||
|
|||
|
|||
|
|||
# Unzip gzipped files (man pages), so LZMA can compress 2times better. |
|||
# First we fix symlinks, then uncompress files |
|||
# $1 = search directory |
|||
uncompress_files() |
|||
{ |
|||
local LINK LINE |
|||
|
|||
find "$1" -type l -name "*.gz" | while read LINE; do |
|||
LINK="$(readlink "$LINE" | sed -r 's/.gz$//')" |
|||
FILE="$(echo "$LINE" | sed -r 's/.gz$//')" |
|||
ln -sfn "$LINK" "$FILE" |
|||
rm -f "$LINE" |
|||
done |
|||
find "$1" -type f -name "*.gz" | xargs -r gunzip |
|||
} |
|||
|
|||
uncompress_files /etc/alternatives |
|||
uncompress_files /usr/share/man |
|||
|
|||
# remove broken links |
|||
# $1 = search directory |
|||
remove_broken_links() |
|||
{ |
|||
find "$1" -type l -exec test ! -e {} \; -print | xargs rm -vf |
|||
} |
|||
|
|||
remove_broken_links /etc/alternatives |
|||
remove_broken_links /usr/share/man |
|||
|
@ -0,0 +1,45 @@ |
|||
# Configuration file for the libfm version 1.2.5. |
|||
# Autogenerated file, don't edit, your changes will be overwritten. |
|||
|
|||
[config] |
|||
single_click=0 |
|||
use_trash=0 |
|||
confirm_del=1 |
|||
confirm_trash=1 |
|||
advanced_mode=0 |
|||
si_unit=0 |
|||
force_startup_notify=1 |
|||
backup_as_hidden=1 |
|||
no_usb_trash=1 |
|||
no_child_non_expandable=0 |
|||
show_full_names=1 |
|||
only_user_templates=0 |
|||
template_run_app=0 |
|||
template_type_once=0 |
|||
auto_selection_delay=600 |
|||
drop_default_action=ask |
|||
defer_content_test=0 |
|||
quick_exec=0 |
|||
show_internal_volumes=0 |
|||
terminal=x-terminal-emulator %s |
|||
thumbnail_local=1 |
|||
thumbnail_max=2048 |
|||
smart_desktop_autodrop=1 |
|||
|
|||
[ui] |
|||
big_icon_size=48 |
|||
small_icon_size=24 |
|||
pane_icon_size=24 |
|||
thumbnail_size=128 |
|||
show_thumbnail=1 |
|||
shadow_hidden=1 |
|||
|
|||
[places] |
|||
places_home=1 |
|||
places_desktop=0 |
|||
places_root=0 |
|||
places_computer=0 |
|||
places_trash=0 |
|||
places_applications=0 |
|||
places_network=0 |
|||
places_unmounted=0 |
@ -0,0 +1,26 @@ |
|||
[config] |
|||
bm_open_method=0 |
|||
|
|||
[volume] |
|||
mount_on_startup=1 |
|||
mount_removable=1 |
|||
autorun=1 |
|||
|
|||
[ui] |
|||
always_show_tabs=0 |
|||
max_tab_chars=32 |
|||
win_width=640 |
|||
win_height=480 |
|||
splitter_pos=150 |
|||
media_in_new_tab=0 |
|||
desktop_folder_new_win=0 |
|||
change_tab_on_drop=1 |
|||
close_on_unmount=1 |
|||
focus_previous=1 |
|||
side_pane_mode=places |
|||
view_mode=list |
|||
show_hidden=0 |
|||
sort=name;ascending; |
|||
toolbar= |
|||
show_statusbar=1 |
|||
pathbar_mode_buttons=1 |
@ -0,0 +1,127 @@ |
|||
|
|||
[General] |
|||
version=0.9.7 |
|||
width=450 |
|||
height=400 |
|||
save_mode_on_exit=1 |
|||
save_definitions_on_exit=1 |
|||
load_global_definitions=1 |
|||
fetch_exchange_rates_at_startup=0 |
|||
wget_args=--quiet --tries=1 |
|||
show_keypad=1 |
|||
show_history=0 |
|||
show_stack=1 |
|||
rpn_keypad_only=1 |
|||
display_expression_status=1 |
|||
enable_completion=1 |
|||
use_unicode_signs=1 |
|||
lower_case_numbers=0 |
|||
lower_case_e=1 |
|||
base_display=1 |
|||
spell_out_logical_operators=1 |
|||
dot_as_separator=0 |
|||
use_custom_result_font=0 |
|||
use_custom_expression_font=0 |
|||
use_custom_status_font=0 |
|||
custom_result_font=Sans 10 |
|||
custom_expression_font=Sans 10 |
|||
custom_status_font=Sans 10 |
|||
multiplication_sign=0 |
|||
division_sign=1 |
|||
expression_history=10*20 |
|||
expression_history=d*d |
|||
expression_history=5+2/200000000000 |
|||
expression_history=5+2/200000 |
|||
expression_history=5+2/2 |
|||
expression_history=5+2/3 |
|||
history_expression=10*20 |
|||
history_parse=10 * 20 |
|||
history_result=200 |
|||
history_expression=d*d |
|||
history_parse=day * day |
|||
history_result=1 d^2 |
|||
history_expression=5+2/200000000000 |
|||
history_parse=5 + (2 ∕ 2E11) |
|||
history_result_approximate=5 |
|||
history_result_approximate=5 |
|||
history_expression=5+2/200000000000 |
|||
history_parse=5 + (2 ∕ 2E11) |
|||
history_result_approximate=5 |
|||
history_result_approximate=5 |
|||
history_result_approximate=5 |
|||
history_expression=5+2/200000000000 |
|||
history_parse=5 + (2 ∕ 2E11) |
|||
history_result_approximate=5 |
|||
history_expression=5+2/200000 |
|||
history_parse=5 + (2 ∕ 200000) |
|||
history_result=5.00001 |
|||
history_expression=5+2/2 |
|||
history_parse=5 + (2 ∕ 2) |
|||
history_result=6 |
|||
history_expression=5+2/3 |
|||
history_parse=5 + (2 ∕ 3) |
|||
history_result_approximate=5.6666667 |
|||
recent_functions= |
|||
recent_variables= |
|||
recent_units= |
|||
|
|||
[Mode] |
|||
min_deci=0 |
|||
use_min_deci=0 |
|||
max_deci=2 |
|||
use_max_deci=0 |
|||
precision=8 |
|||
min_exp=-1 |
|||
negative_exponents=0 |
|||
sort_minus_last=1 |
|||
number_fraction_format=0 |
|||
use_prefixes=1 |
|||
abbreviate_names=1 |
|||
all_prefixes_enabled=0 |
|||
denominator_prefix_enabled=1 |
|||
place_units_separately=1 |
|||
auto_post_conversion=0 |
|||
number_base=10 |
|||
number_base_expression=10 |
|||
read_precision=0 |
|||
assume_denominators_nonzero=1 |
|||
warn_about_denominators_assumed_nonzero=1 |
|||
structuring=1 |
|||
angle_unit=1 |
|||
functions_enabled=1 |
|||
variables_enabled=1 |
|||
calculate_functions=1 |
|||
calculate_variables=1 |
|||
sync_units=1 |
|||
unknownvariables_enabled=0 |
|||
units_enabled=1 |
|||
allow_complex=1 |
|||
allow_infinite=1 |
|||
indicate_infinite_series=0 |
|||
show_ending_zeroes=0 |
|||
round_halfway_to_even=0 |
|||
approximation=1 |
|||
in_rpn_mode=0 |
|||
rpn_syntax=0 |
|||
limit_implicit_multiplication=0 |
|||
spacious=1 |
|||
excessive_parenthesis=0 |
|||
short_multiplication=1 |
|||
default_assumption_type=4 |
|||
default_assumption_sign=0 |
|||
|
|||
[Plotting] |
|||
plot_legend_placement=2 |
|||
plot_style=0 |
|||
plot_smoothing=0 |
|||
plot_display_grid=1 |
|||
plot_full_border=0 |
|||
plot_min=0 |
|||
plot_max=10 |
|||
plot_step=1 |
|||
plot_sampling_rate=100 |
|||
plot_use_sampling_rate=1 |
|||
plot_variable=x |
|||
plot_rows=0 |
|||
plot_type=0 |
|||
plot_color=1 |
@ -1,91 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
rm -f /etc/fstab |
|||
rm -f /etc/mtab |
|||
rm -f /etc/apt/sources.list~ |
|||
rm -Rf /etc/systemd/system/timers.target.wants |
|||
rm -f /etc/systemd/system/multi-user.target.wants/ssh.service |
|||
rm -f /etc/systemd/system/multi-user.target.wants/dnsmasq.service |
|||
|
|||
rm -f /etc/ssh/ssh_host* |
|||
|
|||
rm -f /var/backups/* |
|||
rm -f /var/cache/ldconfig/* |
|||
rm -f /var/cache/debconf/* |
|||
rm -f /var/cache/fontconfig/* |
|||
rm -f /var/lib/apt/extended_states |
|||
rm -f /var/lib/systemd/random-seed |
|||
rm -f /var/lib/apt/lists/deb.* |
|||
rm -Rf /root/.local/share/mc |
|||
rm -Rf /root/.cache |
|||
rm -f /root/.wget-hsts |
|||
|
|||
rm -f /var/lib/dpkg/*-old |
|||
rm -f /var/log/* |
|||
rm -f /var/log/*/* |
|||
rm -f /var/log/*/*/* |
|||
rm -f /var/cache/apt/archives/*.deb |
|||
rm -f /var/cache/apt/*.bin |
|||
rm -f /var/cache/debconf/*-old |
|||
rm -f /var/lib/dhcp/dhclient.leases |
|||
rm -f /root/.bash_history |
|||
rm -f /root/.wget-hsts |
|||
rm -Rf /usr/share/doc/* |
|||
rm -Rf /usr/share/info/* |
|||
rm -f /usr/share/images/fluxbox/debian-squared.jpg |
|||
rm -Rf /usr/share/fluxbox/nls/??* |
|||
rm -Rf /usr/share/gnome/help |
|||
|
|||
rm -Rf /usr/share/locale/?? |
|||
rm -Rf /usr/share/locale/??_* |
|||
rm -Rf /usr/share/locale/??@* |
|||
rm -Rf /usr/share/locale/??? |
|||
rm -Rf /usr/share/i18n/locales/*_* |
|||
rm -Rf /usr/share/man/?? |
|||
rm -Rf /usr/share/man/*_* |
|||
|
|||
rm -Rf /usr/share/icons/elementaryXubuntu-dark |
|||
rm -Rf /usr/share/icons/gnome/256x256 |
|||
|
|||
rm /usr/share/applications/compton.desktop |
|||
rm /usr/share/applications/debian-uxterm.desktop |
|||
rm /usr/share/applications/debian-xterm.desktop |
|||
rm /usr/share/applications/htop.desktop |
|||
rm /usr/share/applications/mc.desktop |
|||
rm /usr/share/applications/mcedit.desktop |
|||
rm /usr/share/applications/pcmanfm-desktop-pref.desktop |
|||
rm /usr/share/applications/python2.7.desktop |
|||
rm /usr/share/applications/python3.7.desktop |
|||
rm /usr/share/applications/vim.desktop |
|||
|
|||
|
|||
|
|||
# Unzip gzipped files (man pages), so LZMA can compress 2times better. |
|||
# First we fix symlinks, then uncompress files |
|||
# $1 = search directory |
|||
uncompress_files() |
|||
{ |
|||
local LINK LINE |
|||
|
|||
find "$1" -type l -name "*.gz" | while read LINE; do |
|||
LINK="$(readlink "$LINE" | sed -r 's/.gz$//')" |
|||
FILE="$(echo "$LINE" | sed -r 's/.gz$//')" |
|||
ln -sfn "$LINK" "$FILE" |
|||
rm -f "$LINE" |
|||
done |
|||
find "$1" -type f -name "*.gz" | xargs -r gunzip |
|||
} |
|||
|
|||
uncompress_files /etc/alternatives |
|||
uncompress_files /usr/share/man |
|||
|
|||
# remove broken links |
|||
# $1 = search directory |
|||
remove_broken_links() |
|||
{ |
|||
find "$1" -type l -exec test ! -e {} \; -print | xargs rm -vf |
|||
} |
|||
|
|||
remove_broken_links /etc/alternatives |
|||
remove_broken_links /usr/share/man |
|||
|
@ -1,15 +1,13 @@ |
|||
#!/bin/bash |
|||
|
|||
apt-get update |
|||
apt-get install --yes --no-install-recommends chromium chromium-sandbox |
|||
|
|||
. ./cleanup |
|||
apt-get update >>$OUTPUT 2>&1 |
|||
apt-get install --yes --no-install-recommends chromium chromium-sandbox >>$OUTPUT 2>&1 |
|||
|
|||
echo 'export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disk-cache-dir=/dev/null --disk-cache-size=1"' >>/etc/chromium.d/default-flags |
|||
|
|||
rm -Rf /usr/share/icons/gnome/256x256 |
|||
rm -Rf /root/.fluxbox |
|||
rm -Rf /root/.fluxbox/kblayout |
|||
rm -Rf /root/.gtk-bookmarks |
|||
rm -Rf /var/lib/wicd/dhclient.conf |
|||
rm -Rf /usr/share/applications/chromium.desktop |
|||
rm -Rf /usr/share/icons/gnome/256x256 >>$OUTPUT 2>&1 |
|||
#rm -Rf /root/.fluxbox |
|||
#rm -Rf /root/.fluxbox/kblayout |
|||
#rm -Rf /root/.gtk-bookmarks |
|||
#rm -Rf /var/lib/wicd/dhclient.conf |
|||
rm -Rf /usr/share/applications/chromium.desktop >>$OUTPUT 2>&1 |
|||
|
@ -1,41 +0,0 @@ |
|||
mc |
|||
squashfs-tools |
|||
genisoimage |
|||
zip |
|||
unzip |
|||
psmisc |
|||
net-tools |
|||
alsa-utils |
|||
man |
|||
less |
|||
xz-utils |
|||
ca-certificates |
|||
openssl |
|||
acpid |
|||
acpi-support-base |
|||
powermgmt-base |
|||
bzip2 |
|||
gpart |
|||
hdparm |
|||
sdparm |
|||
mdadm |
|||
smartmontools |
|||
dosfstools |
|||
lsof |
|||
htop |
|||
gddrescue |
|||
rsync |
|||
netcat |
|||
ssh |
|||
gpm |
|||
wireless-tools |
|||
ntfs-3g |
|||
rfkill |
|||
file |
|||
dnsmasq |
|||
ntpdate |
|||
dvd+rw-tools |
|||
usb-modeswitch |
|||
pm-utils |
|||
wget |
|||
linux-image-amd64 |
@ -1,5 +1,5 @@ |
|||
# Приложения, без которых невозможна установка. |
|||
sudo |
|||
libterm-readline-gnu-perl |
|||
#libterm-readline-gnu-perl |
|||
systemd-sysv |
|||
dbus |