Compare commits

...

499 Commits
v1.4 ... master

Author SHA1 Message Date
Pietro Brenna 5aa73fb1af \ -> \\ 2020-01-19 18:30:16 +01:00
Pietro Brenna bc5a770d3f 1 != l 2020-01-19 18:29:05 +01:00
Pietro Brenna a3bfaccea1 rootcopy custom 2020-01-19 18:15:33 +01:00
Pietro Brenna f02e73e522 Patch guido 2020-01-16 16:49:39 +01:00
TomasM 56dc040397 revert back binary changes 2019-12-07 10:15:25 +00:00
TomasM 8678d5f4b5 update syslinux and extlinux32 2019-12-07 10:07:57 +00:00
TomasM b588256382 update syslinux (and extlinux64) binaries 2019-12-07 05:02:48 -05:00
TomasM 81dfba7480 install chromium-sandbox 2019-11-17 09:59:33 +00:00
TomasM e552cf09c6 install chromium-sandbox package 2019-11-17 09:58:40 +00:00
TomasM f43da7b5cf add universal sb script to manipulate slax modules 2019-11-17 09:52:09 +00:00
TomasM 82555a7ec4 add dummy sudo 2019-11-17 09:44:11 +00:00
TomasM 8db5cb64a2 fix path 2019-11-17 08:59:35 +00:00
TomasM c405536126 Disable apparmor for Slax 2019-11-17 08:58:42 +00:00
TomasM 9774c4dd1b cleanup python desktop icon 2019-10-20 09:27:14 +00:00
TomasM 7b243f9781 fix usage 2019-10-20 09:26:04 +00:00
TomasM ecdfe750c8 fix building pcmanfm 2019-10-20 08:18:19 +00:00
TomasM 103e1eeb13 removed leafpad since it was removed from Debian 2019-10-20 07:17:04 +00:00
TomasM ece2224e18 moved some dirs due to debian10 root fs changes 2019-10-20 07:13:40 +00:00
TomasM 0010fcde7e != 2019-10-19 20:17:51 +00:00
TomasM a45ff59376 install wget 2019-10-19 20:11:04 +00:00
TomasM 2c2e73992f bugfix 2019-10-19 19:49:27 +00:00
TomasM 9e41cd8253 repackage core module to include aufs 2019-10-19 19:40:01 +00:00
TomasM 31c1e64cec remove sshd config since it is no longer needed to permit root login, it's there already 2019-10-19 19:22:31 +00:00
TomasM fcc1c91b2b check kernel upgrade 2019-10-19 19:16:22 +00:00
TomasM 32afaf7f89 first attempt for debian10 Slax 2019-10-19 19:02:17 +00:00
TomasM 7bca13b9a6 renamed to reflect version it is for 2019-10-19 19:01:58 +00:00
Tomas M 5f0ccd3362 Add mmc drivers 2019-10-13 19:09:15 +00:00
Tomas M b6569a3d0b Typo fix, thanks to Johannes 2019-10-13 20:44:13 +02:00
Tomas-M 89c08c297a
Disable console blanking 2019-09-13 19:37:16 +02:00
Tomas-M 98cd8e51b4
Update .bashrc 2019-09-13 19:36:00 +02:00
Tomas-M 7709174535
Update .bashrc 2019-09-12 07:42:05 +02:00
Tomas-M 73d605d9ad
PXE: Use first route IP if multiple routes are found 2019-07-31 07:53:07 +02:00
Tomas Matejicek 72de891a3d add ^M to line ends 2019-07-26 21:23:38 +02:00
Tomas-M 05af29f8d1
Exit if vmlinuz cannot be copied 2019-07-26 21:15:25 +02:00
Tomas-M 93cbaf8c67
Set setuid bit on xorg binary, so it can be started by guest user 2019-07-25 20:03:38 +02:00
Tomas-M 8be589217e
Update build 2019-07-25 20:01:40 +02:00
TomasM 5a06b74174 Disable screen blanking on console and X 2019-07-02 08:29:16 +00:00
Tobias Pape 6edbe53252 Post-Build USB installation (#65)
There were no hints for the installation on a usb stick, i think it would be good to add something.
2019-06-30 06:22:21 +02:00
TomasM 1257303ef3 add shadow 2019-06-27 14:40:31 +00:00
TomasM e365ab8859 Added 'start here' floating text on startup 2019-06-27 09:15:08 +00:00
Tomas-M 41f195da50
Update xlunch version 2019-06-27 00:34:32 +02:00
TomasM 809dc08543 simplify 2019-06-26 10:32:39 +00:00
samunders-core 5e288baafe decrease tftp-based PXE boot time to ~ 1/3rd (#72)
* decrease tftp-based PXE boot time to ~ 1/3rd

* decrease code amount by reusing tftp_mget function

* report parallel tftp download progress

even when seemingly out-of-order
2019-06-26 07:33:07 +02:00
Tomas-M 0548b30e81
Update xlunch version 2019-06-25 23:30:47 +02:00
TomasM 8852a1062d Revert "Desktop icons"
This reverts commit 0d9256ee6a.
2019-06-25 21:27:40 +00:00
TomasM 95656a4eff Revert "icons"
This reverts commit afe634c46a.
2019-06-25 21:27:28 +00:00
TomasM afe634c46a icons 2019-06-25 20:40:56 +00:00
TomasM 0d9256ee6a Desktop icons 2019-06-25 20:20:32 +00:00
Tomas-M e38da35316
Xterm select to clipboard 2019-06-25 16:11:06 +02:00
Tomas-M 0e4c7bf8a3
Disable apparmor by default 2019-06-19 13:11:01 +02:00
TomasM 8432a942e9 exclude compton shadow for xlunch 2019-05-08 18:26:54 +00:00
TomasM c7055b1ad1 add systemd entries to connect wifi after resume 2019-05-08 09:36:53 +00:00
TomasM 4f813d4e87 Add nvme driver to initrd 2019-04-28 12:24:52 +00:00
TomasM a5e44dcc89 upgrade to newest xlunch version 2019-04-28 07:20:12 +00:00
TomasM d27460d958 add support to exclude existing modules from iso generation (actually any path) 2019-02-05 08:33:00 +00:00
TomasM 33cf295438 typo fix, thanks to Adam Nave 2019-02-05 07:52:38 +00:00
TomasM ab98b4b526 comment 2019-02-05 07:52:19 +00:00
TomasM d877af9e8b cleanup code 2019-01-29 14:00:55 +00:00
TomasM 718a39ccc3 open pcmanfm in new window 2019-01-29 13:59:45 +00:00
TomasM 05df6761f5 update bookmarks 2019-01-29 13:31:36 +00:00
Tomas-M 81f424db2f
Add pm-utils 2019-01-29 13:03:14 +01:00
TomasM 4cbed3fa34 Merge branch 'master' of https://github.com/Tomas-M/linux-live 2019-01-29 11:52:06 +00:00
TomasM 76e0c973c0 improve squashfs compression 2019-01-29 11:51:40 +00:00
Tomas-M e84f3852f0
Add usb-modeswitch 2019-01-29 12:37:08 +01:00
TomasM ca41faea5b try with apt 2019-01-29 11:23:33 +00:00
TomasM b137deed92 nolisten tcp for x 2019-01-29 11:22:21 +00:00
TomasM cb7ecf8b96 Start X without authentication and open pcmanfm when directory is mounted 2019-01-29 11:13:13 +00:00
TomasM 9cb6a19582 copy activated module to ram only if it is on aufs 2019-01-29 10:58:47 +00:00
TomasM 52c9f07ff4 bugfix msg text 2019-01-25 21:33:25 +00:00
TomasM abcc1a888d add hosts file with 'slax' hostname 2019-01-19 07:36:47 +00:00
TomasM 77907d4abe noautomount 2019-01-02 17:07:35 +00:00
TomasM 32f35a745d add explicitly all video drivers to xorg install 2018-12-28 17:07:27 +00:00
TomasM bfba8e64fe update to newest xlunch version 2018-12-23 10:30:46 +00:00
Tomas-M 6df62e20b2
proper dir in comment 2018-12-19 00:12:00 +01:00
TomasM 78661a48f9 Automount drives in Slax 2018-12-18 16:24:34 +00:00
TomasM d775cf882f add dvd+rw-tools 2018-12-18 09:45:57 +00:00
TomasM 6b463c19c5 fix resolution change when multiple displays are connected 2018-12-18 09:43:44 +00:00
TomasM ef233a3d45 fix starting .desktop apps with multiple Exec= entries 2018-12-18 09:37:47 +00:00
TomasM d65b4213dc bugfix 2018-11-26 15:58:18 +00:00
TomasM 1b09965e05 add xarchiver desktop file to rename icon title to Archiver 2018-11-26 15:05:02 +00:00
TomasM 6669a3cb04 Start xorg on tty7, add tty info to /etc/issue 2018-11-25 19:23:21 +00:00
TomasM 4e28ff7530 bugfix 2018-11-23 16:03:23 +00:00
TomasM 91058aaafc disable starting X if kernel commandline contains 'text' 2018-11-23 16:01:24 +00:00
TomasM c186696b93 smarter recognition if app requires terminal or not 2018-11-23 15:48:29 +00:00
TomasM 0cb17f9c67 add ntpdate to slax 2018-11-23 14:42:11 +00:00
TomasM 9d0477876d Update to newest xlunch version supporting scrollbar indicator 2018-11-23 14:37:45 +00:00
TomasM da623a0390 add b43 firmware to slax 2018-11-23 13:49:42 +00:00
TomasM 22f2493769 Add timezone settings to set UTC 2018-11-23 13:34:39 +00:00
TomasM 1e76881664 added rmsbdir to erase sb directory 2018-11-23 07:52:37 -05:00
TomasM af5288c7af force erasing source directory even if it was not mounted 2018-11-23 07:50:10 -05:00
TomasM 15c130f76a fix 2018-11-23 07:15:05 -05:00
TomasM 7cd51df455 fix 2018-11-23 07:11:24 -05:00
TomasM a396c0f5d0 Support genslaxiso even if toram was used 2018-11-23 07:06:29 -05:00
TomasM 868d1aac34 genslaxiso script 2018-11-23 06:57:18 -05:00
TomasM 3149f63a99 ... 2018-11-23 06:04:59 -05:00
TomasM edb710c1b3 reimplemented dir2sb and sb2dir to act as 'conversion' utility 2018-11-23 04:05:44 -05:00
TomasM 5a090f6ac4 Provide Gateway address in DHCP response for PXE clients, so they can use internet 2018-11-22 06:13:30 -05:00
TomasM 263216ab42 update issue 2018-11-16 16:35:21 -05:00
TomasM 32f645280c do it even differently 2018-11-16 15:49:19 -05:00
TomasM 19320ddaa3 do it differently 2018-11-16 15:21:33 -05:00
TomasM 78abfa1fd4 disable dnsmasq daemon by default 2018-11-16 13:28:38 -05:00
TomasM a015d67205 add depmod 2018-11-16 13:06:40 -05:00
TomasM ad1aa1c300 Set wallpaper to fullscreen since xlunch does that too 2018-11-15 14:36:43 -05:00
TomasM 1d96e84ada Improve app launcher 2018-11-15 14:28:27 -05:00
TomasM 879212b57b use newest xlunch version 2018-11-11 10:10:20 -05:00
TomasM 3fd5c6b4de info msg for user when starting pxe server 2018-10-11 14:35:15 -05:00
TomasM 62e4ef0ffd changelog 2018-10-11 04:51:31 -05:00
TomasM 7b5c400864 add dnsmasq to slax 2018-10-11 04:44:24 -05:00
TomasM 7c102af221 add pxe script to Slax so user can start PXE server with simple 'pxe' command 2018-10-11 04:42:40 -05:00
TomasM 1e3fdc1a8b bugfix - properly handle relative path for target filename in current directory 2018-10-11 04:32:09 -05:00
TomasM 8971fdb6ca add tools to manipulate initramfs images 2018-10-11 04:27:19 -05:00
TomasM 3eca7a4f07 bugfix - send info messages during PXE boot to stderr 2018-10-11 04:10:28 -05:00
TomasM 56399ef6b9 disable chromium cache by default 2018-09-20 04:22:20 -05:00
TomasM 7f98976f9d fix chromium launcher from menu 2018-07-20 15:27:24 -05:00
TomasM d323e53782 update xlunch 2018-07-20 15:03:24 -05:00
TomasM 25ba737f63 add abouttxt 2018-03-26 06:27:46 -04:00
TomasM a662e1b35e add lxtask 2018-03-25 04:36:16 -04:00
TomasM e38a548377 remove explicit apt update 2018-03-24 19:07:30 -04:00
TomasM 4655beb5d5 chromium build fixes 2018-03-24 19:05:03 -04:00
TomasM 708c8be176 fix duplicite icons 2018-03-24 18:53:09 -04:00
TomasM 32d24f6e63 add votecoin dependencies 2018-03-24 18:35:44 -04:00
TomasM 8bf62ad5c6 order 2018-03-24 18:22:39 -04:00
TomasM 61a4adfbab reorder xlunch entries 2018-03-24 18:20:40 -04:00
TomasM c08530d26a Include chromium stub in desktop module 2018-03-24 17:53:10 -04:00
TomasM 7d986692ce add chromium as liveapp too 2018-03-24 17:27:46 -04:00
TomasM f3a44517f9 bugfix config file for vlc 2018-03-24 16:35:36 -04:00
TomasM 2aae7d3330 vlc postinstall 2018-03-24 15:33:41 -04:00
TomasM 55b35b4276 Support autoinstalled applications 2018-03-24 14:52:59 -04:00
TomasM 6a64a5914d add gtk dialog 2018-03-24 10:37:01 -04:00
TomasM c28af0a10d add src to sources list 2018-03-24 09:10:25 -04:00
TomasM f2010c0714 add gconf 2018-03-22 17:05:20 -04:00
TomasM ed2d6e13ec use feh to display images 2018-03-22 16:05:02 -04:00
TomasM ddca39f917 rename leafpad icon 2018-03-22 12:32:51 -04:00
TomasM f5de004395 fix forward slashes 2018-03-22 12:32:12 -04:00
TomasM bf2c73bb0f file asociations support, thanks to Jeremy Suntheimer 2018-03-22 09:47:27 -04:00
TomasM 8c7fa04537 updates 2018-03-22 09:37:10 -04:00
TomasM 68c10a0bfa fix logout margin 2018-03-22 09:12:03 -04:00
TomasM 0b31b80c36 add xarchiver 2018-03-21 05:09:45 -04:00
TomasM ba37ee2833 autoinstall 2018-03-21 04:28:07 -04:00
TomasM 10327c8c1c add cbatticon 2018-03-21 04:19:30 -04:00
TomasM a19ebe6b56 add usr/games to path 2018-03-21 03:35:55 -04:00
TomasM b1ccfb0fce do not add partitions with unknown filesystems to fstab 2018-03-21 03:30:29 -04:00
TomasM c153975526 add volumeicon hotkeys 2018-03-21 03:27:09 -04:00
TomasM 82a84bd22c xlunch icons top align 2018-03-21 03:23:15 -04:00
TomasM 6a917e8d9d xlunch update, cleanups 2018-03-21 02:31:35 -04:00
Jeremy Suntheimer 761edab4ee Formatting and hash-bangs (#40)
* Formatting and hash-bangs
* Fixed missing slash
2018-01-01 22:18:47 +01:00
TomasM 739c96d096 add dri xorg packages 2017-12-30 13:22:35 -05:00
TomasM 14e8bf3b40 update xlunch version 2017-12-30 13:16:49 -05:00
TomasM 1c16b518ea make default leastmargin a bit smaller so it fits three rows of icons in 1024x768 screens 2017-12-30 12:00:58 -05:00
TomasM 104a7384a1 exclude wicd-manager from terminal-based apps in xlunch 2017-12-24 06:56:57 -05:00
TomasM 3a3c5c867a refresh wicd config each time 2017-12-24 06:30:01 -05:00
TomasM 5e3e15e959 always show wired interface 2017-12-24 05:16:09 -05:00
TomasM 4d06906e95 remove detected devices from wicd config so it can be autodetected for users 2017-12-24 05:12:01 -05:00
TomasM 2f5f18b47c do not use this 2017-12-24 04:52:25 -05:00
TomasM f868d18dc1 auto mount plugged disks in slax 2017-12-24 03:27:37 -05:00
Tomas-M 6532e6f566
Try to copy extlinux to .exe if it is not executable 2017-12-19 17:52:24 +01:00
Tomas-M 0682d53c1f
Update apt sources 2017-12-17 21:37:34 +01:00
TomasM 73b1100fbc do not use automount for copy2ram since users expect the boot device being unmounted 2017-12-17 08:29:34 -05:00
TomasM 3599b99ad2 abandon using sparse files (for persistent changes) in favor of DynFileFS even on NTFS partitions 2017-12-17 08:21:55 -05:00
TomasM 912e6f8f5f add ntfs-3g package to slax install, so ntfs can be mounted on debian startup 2017-12-17 08:00:30 -05:00
TomasM c5eabd4e3c increase mount wait timeout to 10 seconds 2017-12-17 07:53:38 -05:00
TomasM add1fbd465 simplify filesystem handling 2017-12-17 07:51:01 -05:00
TomasM 30efd94175 fix filesystem name in fstab 2017-12-17 07:42:32 -05:00
TomasM da725ee880 do not add zram disks to fstab 2017-12-17 07:39:34 -05:00
TomasM b407aed085 add nofail options to fstab entries, skip adding boot device there
(since in most cases it's going to be NTFS and it wouldn't mount it twice anyway)
2017-12-16 12:43:02 -05:00
TomasM d7a44bc45f bugfix forgotten slax settings back to 'linux' 2017-12-16 07:15:06 -05:00
TomasM a22ad0de6a guest homedir bugfix 2017-12-15 15:47:50 -05:00
TomasM bdcf158d2e put firmware in separate module 2017-12-15 11:29:04 -05:00
TomasM f0fc8f5255 add more firmware to slax, do not use device labels in media, chown guest dir 2017-12-15 10:48:05 -05:00
TomasM 443a0fcdd2 add more entries to fluxbox menu 2017-12-15 10:13:52 -05:00
TomasM 8ae5d3186f nicer wicd icon 2017-12-15 10:06:36 -05:00
TomasM 5e0099b2ff 64px icon for calculator 2017-12-15 09:24:24 -05:00
TomasM 9d2a87d912 do not chown guest files twice 2017-12-15 08:42:37 -05:00
TomasM 61b125cb8b rm bookmarks 2017-12-15 08:31:30 -05:00
TomasM 4d00518f4f rm unneded files 2017-12-15 08:27:09 -05:00
TomasM 5bf6da2e1e folder icons for pcmanfm, credits go to www.fatcow.com/free-icons 2017-12-15 08:20:49 -05:00
TomasM dab21b93ae update xlunch ver 2017-12-15 07:29:41 -05:00
TomasM 860bdad3ca icons 2017-12-15 07:26:49 -05:00
TomasM 51b70c7139 remove root from places, since it's added as bookmark 2017-12-15 06:35:14 -05:00
TomasM f047bede59 more sane temp build name 2017-12-15 06:15:49 -05:00
TomasM 9a0f1c1ea7 add bookmarks for pcmanfm 2017-12-15 06:07:26 -05:00
TomasM cb0039761a skip squashfs filesystems in media, update xlunch 2017-12-15 05:47:19 -05:00
TomasM 1093026183 bugfix missing fi 2017-12-15 05:32:23 -05:00
TomasM 96eecc9058 support automounting partitions if 'automount' string is present on boot command line 2017-12-15 05:31:04 -05:00
TomasM 08c52c2854 bugfix 2017-12-15 04:55:44 -05:00
TomasM ac540746dd add 64bit extlinux 2017-12-15 04:36:00 -05:00
TomasM 5d06eb0335 run extlinux binary based on arch (32/64) 2017-12-15 04:11:21 -05:00
TomasM c5d74b186c add extlinux 32bit 2017-12-15 04:03:49 -05:00
TomasM 8430af7327 add crc32c module for ext4 2017-12-14 18:22:49 -05:00
TomasM f3d8159cfa make default size of sparse file 16GB 2017-12-14 18:01:13 -05:00
TomasM dc2c82afc3 do not use acl on ntfs-3g yet 2017-12-14 17:56:02 -05:00
TomasM 3fceef5583 fix losetup -a used in newer busybox, add ntfs-3g with acl support 2017-12-14 17:45:33 -05:00
TomasM 25f74c4c0a timeout 45 seconds waiting for storage drive 2017-12-14 17:42:38 -05:00
TomasM 382422d39b update and recompile busybox and related stuff 2017-12-14 13:03:27 -05:00
TomasM b4bef3b878 use -o ro instead of -r since ntfs3g doesn't understand -r 2017-12-14 06:41:46 -05:00
TomasM 0b575ddd20 bugfix 2017-12-14 06:16:00 -05:00
TomasM 225642def5 explicitly specify ntfs binary to run, it needs to start with @ so systemd-enabled distros won't kill it 2017-12-14 05:46:23 -05:00
TomasM e2bd40a138 recompiled ntfs-3g to newest version offered by buildroot 2017-12-14 05:21:13 -05:00
TomasM 08a846f2a7 make persistent changes the default, for writable boot media 2017-12-13 17:26:52 -05:00
TomasM 4c24e07a52 remember keyboard layout when using persistent changes 2017-12-13 17:22:59 -05:00
TomasM 9630ecef96 fore hide menu 2017-12-13 08:08:41 -05:00
TomasM 2441cd20a2 use xrandr --mode, support for primary monitor only 2017-12-13 07:58:49 -05:00
TomasM 8840c0f5e3 mount guest dirs to /root/ so they are shared 2017-12-13 07:04:54 -05:00
TomasM 6e18e2cb4c detailed view in pcmanfm 2017-12-12 16:38:49 -05:00
TomasM 0ce676fca9 apps add wicd 2017-12-12 13:26:44 -05:00
TomasM 509c99accd rebuild pcmanfm to exclude ugly root warning icon 2017-12-12 13:06:19 -05:00
TomasM 2c0cb2e1f0 add apps in separated module 2017-12-12 11:01:20 -05:00
TomasM fad74efc08 recompile to support booting from /linux/boot directory 2017-12-12 09:55:09 -05:00
TomasM 52235e5e89 add all files copy to updater 2017-12-12 09:50:35 -05:00
TomasM ba152c129e update syslinux to version 6.03 2017-12-12 09:37:24 -05:00
TomasM d79a197683 update build script 2017-12-12 09:27:19 -05:00
TomasM 08bbab7ce9 rewrote the script to make slax-specific isolinux.bin 2017-12-12 07:56:40 -05:00
TomasM 19a870f0ab changelog 2017-12-12 07:28:20 -05:00
TomasM 3a1143784a changelog todos 2017-12-12 07:20:15 -05:00
TomasM 705413b33a add firmwares, add changelog 2017-12-12 07:15:32 -05:00
TomasM 842ccc1cda readd function aliases for apt and apt-get, still needed since slax removes cache 2017-12-12 06:56:31 -05:00
TomasM 373fb7fc7f add nonfree repo 2017-12-12 06:55:50 -05:00
TomasM 7dcb58b501 force linux headers install to build aufs 2017-11-21 03:25:15 -05:00
TomasM 623046ab67 Make Debian apt settings more correctly 2017-11-21 01:41:07 -05:00
TomasM cddddeb7d5 add wireless-tools 2017-11-19 07:27:30 -05:00
TomasM a2d4cf9e6e make user directories manually, skip xdg 2017-11-15 16:20:39 -05:00
TomasM 6a7683f34a bugfix 2017-11-15 15:55:35 -05:00
TomasM 5de4405b68 move slax scripts to rootcopy, fix linux->slax renaming 2017-11-15 15:54:13 -05:00
TomasM c5efc53848 update xdg dirs on fluxbox startup 2017-11-15 15:19:30 -05:00
TomasM 263912d0ce overwrite dir by symlink 2017-11-15 15:08:00 -05:00
TomasM dc5adcf05b PrintScreen support in Slax 2017-11-15 14:46:41 -05:00
TomasM 371657ce94 exclude menu resolution in savechanges 2017-11-15 03:40:52 -05:00
TomasM 0af58652d2 wait for feh to signal its completed 2017-11-14 15:15:04 -05:00
TomasM 4954b169f1 signal compton to reinitialize on screen resolution change 2017-11-14 15:02:23 -05:00
TomasM 1c3662f24a improve calc icon 2017-11-14 14:34:31 -05:00
TomasM 6361bfb52b reorganize keymaps and add screen resolution to fluxbox menu 2017-11-14 12:20:36 -05:00
TomasM 04977547aa somehow nicer icon 2017-11-14 11:19:22 -05:00
TomasM 446b1b2dd2 move icon to chromium module 2017-11-14 10:12:17 -05:00
TomasM faca2b364d nicer icons 2017-11-14 09:57:50 -05:00
TomasM 6da62479e4 simplify issue 2017-11-14 09:36:19 -05:00
TomasM e74cc2e6a9 use nicer editor icon 2017-11-14 09:34:42 -05:00
TomasM 88e343b63b Allow root login to ssh. User has to explicitly start the daemon anyway 2017-11-14 09:19:41 -05:00
TomasM e9076adc5b sshd reconfigure only if needed 2017-11-14 09:17:36 -05:00
TomasM 9afc5451af bugfix, last one hopefully 2017-11-14 05:51:41 -05:00
TomasM f7424081f2 revert back 2017-11-14 05:41:34 -05:00
TomasM dc4c634ebd try direct startx 2017-11-14 05:36:49 -05:00
TomasM 1659ecfa9c fix missing quotes 2017-11-14 05:28:31 -05:00
TomasM b8368a51b6 reconfigure openssh server before first run 2017-11-14 05:23:21 -05:00
TomasM 6c3bf050e6 optimize issue for fullscreen on 25x80 2017-11-14 05:02:50 -05:00
TomasM 8e421253c2 attempt to fix time shifting 2017-11-13 18:32:22 -05:00
TomasM e3e714b35d slax hostname 2017-11-13 18:25:03 -05:00
TomasM 8072176315 again issue 2017-11-13 18:03:22 -05:00
TomasM 5f41e205ef simplify issue 2017-11-13 18:00:07 -05:00
TomasM b927395a5d added issue file 2017-11-13 17:53:59 -05:00
TomasM cc03c1d16c make the shutdown icon more white, but not too much 2017-11-13 16:46:54 -05:00
TomasM 93f2d65471 update boot files to provide Copy to ram and Persistent changes options 2017-11-13 16:46:33 -05:00
TomasM f0e7e31732 reorganize processes on fluxbox startup finally 2017-11-13 15:08:19 -05:00
TomasM 3cea731b77 reorganize fluxbox startup once more again 2017-11-13 14:33:30 -05:00
TomasM 4249a32039 add x11-utils explicitly to the list 2017-11-13 14:13:18 -05:00
TomasM d292f63882 Use newest xlunch version with auto border support 2017-11-13 11:19:58 -05:00
TomasM 6ad156bf96 use particular xlunch version for known features, the software evolves rapidly :) 2017-11-13 08:01:06 -05:00
TomasM f0f3f9f852 less intensive startup notify checking 2017-11-13 06:59:18 -05:00
TomasM 5b5f37692a skip volume icon waiting if no soundcard is detected 2017-11-13 04:15:54 -05:00
TomasM 3a15d6b876 remove aufs version number from msg since it is not correct 2017-11-13 01:59:04 -05:00
TomasM 402df56859 add international keyboard support to fluxbox menu 2017-11-12 16:58:40 -05:00
TomasM 855a64bfd5 fix logout script 2017-11-12 16:37:49 -05:00
TomasM 2421aba595 exit if command is empty 2017-11-12 16:06:48 -05:00
TomasM 6e3ec50c36 copy activated module to storage (memory) before activation 2017-11-12 16:01:46 -05:00
TomasM 09cb84bda4 added some comments 2017-11-12 11:52:53 -05:00
TomasM 46cecc778a ensure logoff icon is after volume icon 2017-11-12 11:31:30 -05:00
TomasM 3ccd071367 better shutdown handling 2017-11-12 10:56:49 -05:00
TomasM ee75cbc8cc empty screen color 2017-11-12 04:48:12 -05:00
TomasM f4083d292b improve process calling 2017-11-12 04:46:24 -05:00
TomasM c912258000 order icons in systray 2017-11-12 04:22:06 -05:00
TomasM 47b7a0a2e3 run systrayicon on fluxbox start 2017-11-12 03:59:33 -05:00
TomasM 4865f107f9 compile systray icon launcher 2017-11-12 03:56:43 -05:00
TomasM 3b7ef06d01 skip no-longer-needed removing 2017-11-11 16:24:52 -05:00
TomasM 0023b1b495 Ignore empty commands 2017-11-11 09:21:37 -05:00
TomasM d922695c6f Make link from root/Downloads to /home/guest/Downloads 2017-11-11 08:25:40 -05:00
TomasM 7bc9131d9a add better qalculate icon 2017-11-11 07:14:48 -05:00
TomasM 13ca2cdeaf flux style 2017-11-11 06:49:32 -05:00
TomasM 2d1ef09922 Use Slax wallpaper, (C) 2017 Tomas M. 2017-11-10 15:22:30 -05:00
TomasM 7696013557 update scripts to use new live path /run/initramfs 2017-11-10 15:19:06 -05:00
TomasM 087eb008e0 pivot root to /run/initramfs instead of /mnt/live because systemd handles that better and other inits dont care 2017-11-10 07:31:36 -05:00
TomasM 5ebb97faf5 sleep just 1 second 2017-11-10 04:03:34 -05:00
TomasM c01b2d1f87 keep aspect ratio on wallpaper 2017-11-09 17:21:50 -05:00
TomasM 3b79a0a710 add gpm (text mode mouse cursor) 2017-11-09 11:13:33 -05:00
TomasM d092a730ee disable workspace warping 2017-11-09 11:06:41 -05:00
TomasM 88f1d94871 center icons on logout screen 2017-11-09 06:53:51 -05:00
TomasM d3392d9e6e Remove ssh keys and autogenerate them on service startup if needed 2017-11-09 03:10:35 -05:00
TomasM 2ecbf6bbe3 do not enable sshd on start 2017-11-09 03:02:38 -05:00
TomasM 2d82b0233a startup/shutdown improvs 2017-11-09 02:45:10 -05:00
TomasM cc8d4c7d4f add xdotool to be able to manipulate x windows in scripts 2017-11-09 01:53:22 -05:00
TomasM 06b4385e5c fixups for startup notify 2017-11-08 18:43:22 -05:00
TomasM 1a4fab456c workaround for startup notifications by detecting open windows 2017-11-08 18:17:06 -05:00
TomasM 5c6d5d810b add wmctrl to installed apps, it will be needed 2017-11-08 16:52:01 -05:00
TomasM 361c5930b1 Revert back to previous binary which worked fine 2017-11-08 15:24:14 -05:00
TomasM 0dde33dd64 fix dhclient condition 2017-11-08 11:03:18 -05:00
TomasM 25a7bab60d recompile httpfs2 2017-11-08 07:48:08 -05:00
TomasM be70b4cc80 create a flag file in /mnt/live if network is set up by initrd,
make dhclient.service in slax check for this file and skip network reconfig if exists
2017-11-08 06:52:33 -05:00
TomasM ce19462ccd dont init dhclient if we already got IP address during boot 2017-11-08 02:06:05 -05:00
TomasM d57b4ca243 recompiled httpfs2 without threading support 2017-11-07 15:26:46 -05:00
TomasM 193e039233 startup improv 2017-11-07 10:25:50 -05:00
TomasM fd27c2c569 startup/shutdown sounds 2017-11-07 10:18:19 -05:00
TomasM e8783fe82d startup/shutdown sounds 2017-11-07 09:28:38 -05:00
TomasM cf2b7f38fb use wait instead of waitpid 2017-11-07 08:46:51 -05:00
TomasM 83918bf463 startup/shutdown sounds support 2017-11-07 08:41:49 -05:00
TomasM 52bb737ff9 remove duplicite files 2017-11-07 08:33:12 -05:00
TomasM 4ad640dcbb replace aliases by functions 2017-11-07 04:04:22 -05:00
TomasM 345243b7b4 Add logout menu using xlunch. Wait for --center option 2017-11-06 17:46:58 -05:00
TomasM a3c294e416 gtkrc theme 2017-11-06 13:59:01 -05:00
TomasM 75b6c2d320 fix chrome startup without xterm 2017-11-06 13:58:48 -05:00
TomasM 020b75e973 let non-X apps run in xterm 2017-11-06 12:43:03 -05:00
TomasM e275886e82 less pkgs 2017-11-06 08:08:52 -05:00
TomasM 92252edfc9 fix cur dir 2017-11-06 07:55:45 -05:00
TomasM 82d748fdb8 slax core install fixups 2017-11-06 07:29:41 -05:00
TomasM 26bbb6e296 slax base install 2017-11-06 07:09:02 -05:00
TomasM 81a442d775 force normal cursor on window move 2017-11-05 17:33:06 -05:00
TomasM bef2665696 start moving on window titlebar click 2017-11-05 17:05:26 -05:00
TomasM eb5c96f5b2 rounded corners for xlunch highlight 2017-11-05 15:48:21 -05:00
TomasM c0f023998c force signed comparison for unsigned width/height 2017-11-05 08:30:21 -05:00
TomasM 2cb5f629f4 fix icon sizes in fbappselect 2017-11-04 09:31:35 -04:00
TomasM 911d425e79 xlunch make icons bigger 2017-11-04 09:23:01 -04:00
TomasM 1d00fdc0ba add xlunch icons 2017-11-04 09:08:56 -04:00
TomasM f27a0e7dba xlunch add icons 2017-11-04 08:30:59 -04:00
TomasM 5fcc92efab bugfix in patch 2017-11-04 08:30:38 -04:00
TomasM b8355e1e6f add qalculate config 2017-11-04 08:13:12 -04:00
TomasM d7ac2867a7 no run of empty 2017-11-04 08:04:48 -04:00
TomasM 479691226e add some apps 2017-11-04 08:00:33 -04:00
TomasM 75e5a49b8e remove some more files 2017-11-04 07:26:08 -04:00
TomasM 9655869004 do not start window resizing on top border 2017-11-04 07:14:25 -04:00
TomasM b3d4c1f9b1 remove broken links in cleanup 2017-11-04 05:57:43 -04:00
TomasM ed7524050d script fixups 2017-11-04 05:36:01 -04:00
TomasM 3f92d8d653 hide menu on mc 2017-11-04 05:09:31 -04:00
TomasM 047fe98c80 supress accidental window resize by dragging top border, by seting only 1px drag area for resizing 2017-11-04 03:56:07 -04:00
TomasM decea6a215 start volumeicon on startup 2017-11-03 20:41:27 -04:00
TomasM 210abb4bfb disable mouse wheel on toolbar, we need it for volumecontrol 2017-11-03 20:22:35 -04:00
TomasM 9991310325 add volume mixer 2017-11-03 20:19:34 -04:00
TomasM 9d56cc6b55 flux settings 2017-11-03 14:04:57 -04:00
TomasM c883f92b53 xterm bg color 2017-11-03 08:47:11 -04:00
TomasM 7918712924 fluxbox styles and menu 2017-11-03 06:08:02 -04:00
TomasM 827e237191 fluxbox menu theme 2017-11-03 05:31:42 -04:00
TomasM 5bea147697 gtk theme 2017-11-03 05:17:14 -04:00
TomasM b3ea9a215a chrome preferences 2017-11-03 03:42:28 -04:00
TomasM 771fafb2e6 cleanup fluxbox wallpaper settings 2017-11-02 17:24:29 -04:00
TomasM 84fe77c2b2 fixes 2017-11-02 16:57:46 -04:00
TomasM 389c34e7e4 mute rm err on ro fs 2017-11-02 16:48:08 -04:00
TomasM b489ee9622 renamed service 2017-11-02 16:44:35 -04:00
TomasM 7800f8530e explicitly specify entries file 2017-11-02 16:42:19 -04:00
TomasM 6eb14cd603 autostart Xorg on boot 2017-11-02 16:33:53 -04:00
TomasM fed1bd8781 style fluxbox 2017-11-02 14:59:36 -04:00
TomasM 436e02aa49 fluxbox styling and autostart 2017-11-02 12:14:02 -04:00
TomasM 84ead7218f set xterm window title 2017-11-02 08:36:08 -04:00
TomasM 7b938853f8 readme 2017-11-02 07:25:29 -04:00
TomasM c1cc0b983f fluxbox compositing optimizations 2017-11-02 07:15:06 -04:00
TomasM aad4522327 default editor is mcedit 2017-11-01 08:33:55 -04:00
TomasM 0e4e7c97be hide missing icons 2017-11-01 08:30:18 -04:00
TomasM 6685231834 config for xlunch 2017-11-01 08:07:39 -04:00
TomasM 7c73195667 cleanup 2017-11-01 07:12:51 -04:00
TomasM fbb7506621 chromium build 2017-11-01 06:59:22 -04:00
TomasM 7fc97bd7ef Chrome config 2017-11-01 06:50:34 -04:00
TomasM db852e6ed0 set wallpaper by fluxbox style rather than calling feh manually 2017-11-01 05:26:33 -04:00
TomasM 61d3e8be48 merge x resources 2017-10-31 17:28:54 -04:00
TomasM e36b4bde21 put wallpaper to 03desktop 2017-10-31 17:01:45 -04:00
TomasM 6c868659fc styling 2017-10-31 16:50:26 -04:00
TomasM b71a42e4f9 desktop build rootcopy fix 2017-10-31 13:59:06 -04:00
TomasM 0ece615c0d xorg build 2017-10-31 13:42:13 -04:00
TomasM 1690cea610 reorganize slax build 2017-10-31 13:17:51 -04:00
TomasM ebe447f278 menu button green 2017-10-31 12:51:24 -04:00
TomasM b5fda18642 slaxbuilds 2017-10-31 12:41:25 -04:00
TomasM 8f02ba4c24 xterm disable alt+enter fullscreen toggle 2017-10-31 10:20:15 -04:00
TomasM e70d1b13b8 rm backup file 2017-10-31 04:06:14 -04:00
TomasM e548ecd4b5 use cache only if user specified cache size 2017-10-30 08:16:30 -04:00
TomasM 35a639d3cf build slax with network support 2017-10-30 08:08:06 -04:00
TomasM d1701004e5 support cache= boot parameter to specify httpfs cache size in MB. If not used, cache is not stored 2017-10-30 07:49:20 -04:00
TomasM 3192c00bc4 slax fixup 2017-10-29 06:18:29 -04:00
TomasM f8a345e8d2 better network support, dhcp detection, from=http://... support 2017-10-28 06:40:02 -04:00
TomasM 547c032754 comment 2017-10-27 05:23:42 -04:00
TomasM 07ee535646 option to enable network support in initrd 2017-10-27 05:22:21 -04:00
TomasM 696e0f904e keep only 32bit versions of precompiled binaries, those work on 64bit too 2017-10-27 04:45:21 -04:00
TomasM e93ef3b8f8 fluxbox add feh 2017-10-19 14:10:34 -04:00
TomasM 122d705d91 remove full maximization 2017-10-19 13:55:56 -04:00
TomasM c01b87c0c8 add less 2017-10-19 11:33:42 -04:00
TomasM 4342081e9a sb2dir 2017-10-19 11:19:34 -04:00
TomasM 8a23f45d14 firefox build 2017-10-19 11:10:28 -04:00
TomasM 4da9f3f760 module build scripts 2017-10-19 10:03:35 -04:00
TomasM afa0e36de8 xinitrc auto select WM 2017-10-19 10:01:15 -04:00
TomasM 1492df7e90 fluxbox style 2017-10-19 09:57:42 -04:00
TomasM 03e97aed7b make core module 01-core 2017-10-18 08:51:41 -04:00
TomasM e1f8ae8290 build scripts for modules 2017-10-18 08:48:47 -04:00
TomasM 86a0ea3d6b make savechanges accept optional CHANGES dir parameter 2017-10-18 08:45:58 -04:00
TomasM 3ba0878518 add xz-utils 2017-10-17 13:31:09 -04:00
TomasM cd26bcc1a4 add man 2017-10-17 02:32:26 -04:00
TomasM ca561538ff start chromium as guest user 2017-10-17 02:31:43 -04:00
TomasM 9768e11d6b get rid of all timers 2017-10-17 02:08:09 -04:00
TomasM 678bf8a859 do not clear console 2017-10-17 01:45:48 -04:00
TomasM f841c98ce8 build scripts 2017-10-16 08:07:12 -04:00
TomasM e4afc9b6ab disable apt update timers, this is unnecessary bullshit 2017-10-16 04:33:11 -04:00
TomasM a35ead1394 use bash as default sh 2017-10-16 03:55:14 -04:00
TomasM 66dc4d5e44 blackbox menu 2017-10-15 13:00:16 -04:00
TomasM 10f044e3ad disable wheel workspace change 2017-10-15 12:58:12 -04:00
TomasM a5a9da6783 apt 2017-10-15 11:40:56 -04:00
TomasM c0d8991c0d cleanup 2017-10-15 11:34:28 -04:00
TomasM d0fd0f896a slax boot dir 2017-10-15 10:32:54 -04:00
TomasM 8d5fd1e02d slax isolinux 2017-10-15 10:31:23 -04:00
TomasM d28605acb0 improvs 2017-10-15 10:10:46 -04:00
TomasM 77442083b3 autoyes 2017-10-15 10:05:54 -04:00
TomasM 978bccfe2b add empty message of the day 2017-10-15 10:04:46 -04:00
TomasM fbe6fd5024 increase default xterm font size 2017-10-15 09:55:09 -04:00
TomasM efb7913a8e blackbox style 2017-10-15 09:49:51 -04:00
TomasM 8737f924cc specify filesystems to copy to initrd rather than adding everything 2017-10-15 09:23:15 -04:00
TomasM 82dc9057c5 put all dirs into single core.sb 2017-10-15 08:40:46 -04:00
TomasM 3c6691ed3f xresources 2017-10-15 07:09:12 -04:00
TomasM c5ab475846 Styles 2017-10-15 06:29:31 -04:00
TomasM accf72e043 bashrc to make apt-get autoupdate 2017-10-15 04:43:47 -04:00
TomasM e1b57bb02d improvs 2017-10-14 05:50:50 -04:00
TomasM d8da52eff4 fix savechanges 2017-10-13 09:22:57 -04:00
TomasM 8fba111e0f wrong name 2017-10-13 07:36:57 -04:00
TomasM 889d2ef218 apt no-install-suggests option 2017-10-13 07:34:12 -04:00
TomasM ff6f770cac add mc config 2017-10-13 07:33:23 -04:00
TomasM 9df0ace980 slaxctl script 2017-10-13 07:33:15 -04:00
TomasM d0d0b28b84 save changes script 2017-10-13 04:48:32 -04:00
TomasM 4ce0d58c5e improve boot menu 2017-10-11 09:30:04 -04:00
TomasM 7c1313ae04 bugfix 2017-10-11 09:19:14 -04:00
TomasM 33f08bcf58 rename .config to config 2017-10-11 08:44:28 -04:00
TomasM bbde3c4ff0 build fixes 2017-10-11 04:42:46 -04:00
TomasM a3bd955648 bootfiles for slax-debian 2017-10-11 03:58:35 -04:00
TomasM e0d1896a61 slax-debian packages 2017-10-11 03:50:06 -04:00
TomasM 62d6db7e53 finalize deb inst 2017-10-08 09:58:34 -04:00
TomasM f8eedce7cd fixes 2017-10-08 08:11:58 -04:00
TomasM b92c9eaa63 dist-update debian may be needed to ensure aufs module is built for newest kernel 2017-10-08 07:25:48 -04:00
TomasM ccd6cde34a build impro 2017-10-08 06:10:51 -04:00
TomasM 9c98f90992 Slax specs for debian 2017-10-08 05:35:31 -04:00
TomasM 182d6449c1 readme 2017-10-07 10:22:16 -04:00
TomasM 4a081ac1c8 OSes 2017-10-07 10:17:13 -04:00
TomasM 1d2cccdef7 add dir2sb 2017-10-07 05:14:08 -04:00
TomasM 4e42acd0c5 readme 2017-10-07 05:07:32 -04:00
Tomas M 7fdcf1bcd2 refresh devices manually 2017-05-23 06:43:23 -04:00
Tomas M fd662790e6 copy all user-compiled (dkms) kernel modules to initrd too 2017-05-23 04:16:43 -04:00
Tomas M 28917e9dfc force refresh devices so it works even without hotplug 2017-05-23 04:04:40 -04:00
Tomas M 0c233c5ca8 include all fs modules in initrd since it is needed 2017-05-23 00:24:55 -05:00
Tomas M cf6024417a bugfix newline 2017-05-18 04:04:12 -05:00
Tomas M 35d6b2364f load bunch of modules manually 2017-05-18 03:54:25 -05:00
Tomas M d9617ee2cd suggest packages to be installed for debian to be able to recompile isolinux 2017-05-18 03:54:05 -05:00
Tomas M 9489f3ba6d support genisoimage as well as mkisofs 2017-05-18 03:53:31 -05:00
Tomas M c154e24f2f readme 2017-05-18 03:53:09 -05:00
Tomas M b41b8a3d88 default name "linux" will be nicer 2017-05-18 03:52:52 -05:00
Tomas M 4eb1378155 activate zram only if available 2017-05-18 02:14:01 -05:00
Tomas M e11484bfe5 readme 2017-05-18 02:12:19 -05:00
Tomas M 92b9fa13c0 more readme 2017-05-18 01:52:45 -05:00
Tomas M 1e215402a2 more readmes 2017-05-18 01:47:21 -05:00
Tomas M 08b9ac91b9 updated readmes 2017-05-18 01:41:22 -05:00
Tomas-M 9b7918c127 Merge pull request #8 from Asrael/patch-1
Update initramfs_create
2016-07-20 13:13:12 +02:00
Tomas-M 8f1eb29d85 Merge pull request #5 from glensc/isolinux-build
changes to be able to get *working* isolinux result
2016-07-20 13:12:06 +02:00
Asrael 6a816ccc2e Update initramfs_create
Changing that line got rid of a gzip warning "unexpected end of file", at least for me.
2014-04-12 04:12:41 -07:00
Elan Ruusamäe 54dd0a7eb6 http://kernel.org redirects to https://
workaround for uninstalled certs, add --no-check-certificate parameter
2013-03-25 09:04:49 +02:00
Elan Ruusamäe aea9727f0f rm -f tarball.
it may not be there if the unpacked source was organized there some
other ways than wget (builder)
2013-03-25 09:01:16 +02:00
Elan Ruusamäe 0d23cf0cce pass CC to make if set 2013-03-25 08:57:13 +02:00
Tomas M 94583b4d64 warn about tmpfs on /tmp 2013-03-24 04:57:38 -05:00
Tomas M caa48c22d5 spelling errors 2013-03-24 04:52:23 -05:00
Tomas M 6901754aa4 readme 2013-03-24 04:49:03 -05:00
Tomas M 3b5fb7ea3e Uncompress kernel modules. Thanks to glensc for suggestion 2013-03-24 04:43:29 -05:00
Elan Ruusamäe 481e8cc648 changes to be able to get *working* isolinux result
do not remove tarball until build has finished, as the build process is
fragile and dependencies that are needed are listed nowhere, meaning i
have to download several times as appeared some tool or header was
missing

ignoring and hiding errors is bad and evil, instead stop on errors so
user can see error and try to fix it

additionally fill out requirements in comment. really should test for
program existence or headers to be very nice with it
2013-03-23 20:19:46 +02:00
Tomas M 8853719eba filter load apply only on modules/*.sb 2013-01-15 06:09:01 -06:00
Tomas M 2f6b450404 updated 2013-01-15 06:01:26 -06:00
Tomas M 895913cb36 support noload and load filters 2013-01-15 05:53:52 -06:00
Tomas M e4f414c68d fix module order 2013-01-15 05:53:25 -06:00
Tomas M 4e2f904136 better compatibility with ubuntu 2013-01-08 06:43:22 -09:00
Tomas M 54e54e7b1a fix a bug in regexp 2013-01-04 08:17:07 -06:00
Tomas M 6b698a080d fallback to tftp if http fails for pxe 2013-01-04 08:16:53 -06:00
Tomas M 5262db39ee try other modules 2012-12-31 07:11:41 -06:00
Tomas M 63698611bf first parameter cant be empty. So use keyword 'dhcp' 2012-12-29 15:00:47 -06:00
Tomas M 9f8a09435e functionality improvements supporting port and dhcp 2012-12-29 14:24:11 -06:00
Tomas M 317ab14241 updated busybox binaries to support httpd 2012-12-29 13:12:04 -06:00
Tomas M dae5917d30 keep lib/modules since it can be needed by pxe 2012-12-29 08:22:29 -06:00
Tomas M 1235277a4f added pxelinux binary 2012-12-29 08:01:38 -06:00
Tomas M 0d9a2edb00 create some essential directories 2012-12-29 07:38:11 -06:00
Tomas M 0dbe6757f8 prefer installed extlinux 2012-12-28 10:19:04 -09:00
Tomas M b55b0693df silenced rmdir of lost+found since it may not exist 2012-12-28 01:55:40 -06:00
Tomas M a645f094a5 make sure tmp has correct permissions 2012-12-09 05:49:40 -09:00
Tomas M 965ff5c36c bugfix 2 to search correct directory 2012-12-01 03:40:48 -09:00
Tomas M 130fe6d500 bugfix to search correct directory 2012-12-01 03:38:52 -09:00
Tomas M 4d25275dc3 fixed regexp match 2012-12-01 02:46:40 -09:00
Tomas M ab839007f9 search for bundles in ./modules/ directory as well 2012-12-01 02:46:28 -09:00
Tomas M db9bbd864d always sort by number which prepends the module 2012-11-22 16:38:30 -06:00
Tomas M 46edde0bfc make sure there are some tty devices 2012-11-22 04:21:01 -06:00
Tomas M dda00dad06 copy eject to initramfs and just link sbin to bin 2012-11-21 09:02:38 -06:00
Tomas M 340592afaf run depmod with correct version info 2012-11-20 17:53:33 -06:00
Tomas M 4f674e93b8 properly unmount when not needed 2012-11-20 17:53:00 -06:00
Tomas M ff256c1628 fix copy2ram while using from=/dir/ 2012-11-20 09:33:23 -06:00
Tomas M 93b88bcadc support from=livekit.iso 2012-11-20 06:35:49 -06:00
Tomas M dd5599ecbc documentation updates 2012-11-20 06:34:59 -06:00
Tomas M 77ab720930 bootinst improvements 2012-11-11 11:36:54 -06:00
Tomas M 79f57c07f7 true 64bit static binary for eject 2012-11-09 12:05:54 -09:00
Tomas M bfa8cef871 eject binaries 2012-11-09 11:06:12 -06:00
Tomas M 022a985b6e eject static binary and support 2012-11-09 11:05:42 -06:00
Tomas M a8297a21ff spacer 2012-11-08 04:25:10 -09:00
Tomas M 446478464f forgotten file 2012-11-08 04:22:56 -09:00
Tomas M 902407df3e silent remove 2012-11-08 04:21:14 -09:00
Tomas M 27d113905f remove the existing zip archive first 2012-11-08 04:20:48 -09:00
Tomas M 04ef28f14d use windows line endings 2012-11-08 04:19:47 -09:00
Tomas M 27d6c383cd add readme file to zip archive 2012-11-08 04:13:26 -09:00
Tomas M 1fb1b260a1 use zip instead of tar 2012-11-09 09:21:41 -06:00
Tomas M 90dc20906f configurable kernel file and trunc_xino aufs option 2012-11-08 18:12:13 -06:00
500 changed files with 9189 additions and 310 deletions

View File

@ -24,8 +24,8 @@ Special files in bundle filesystem structure:
/run/requires /run/requires
/run/onmount.sh /run/activate.sh
/run/onumount.sh /run/deactivate.sh
/run/startcmd.sh /run/startcmd.sh ?

33
README
View File

@ -3,25 +3,54 @@ Linux Live Kit
Use this set of scripts to turn your existing preinstalled Linux Use this set of scripts to turn your existing preinstalled Linux
distribution into a Live Kit (formely known as Live CD). distribution into a Live Kit (formely known as Live CD).
Make sure to extract and use it on a posix-compatible filesystem,
since it creates some (sym)links and such.
* Before you start building your Kit, edit the file ./.config Note:
* Store Linux Live kit in a directory which is not going to be included
in your live distro, else it would be copied to it. Best practice is to
make a directory such as /a and put these scripts there.
Be warned, if you put it to /tmp, some distros may erase it on reboot.
* Before you start building your Kit, edit the file ./config
Most importantly change the LIVEKITNAME variable. Most importantly change the LIVEKITNAME variable.
* Make sure your kernel is in /boot/vmlinuz or change the path in ./config
Your kernel must support squashfs and aufs. Debian Jessie's kernel does.
* You may also wish to replace boot graphics in ./bootfiles/bootlogo.png * You may also wish to replace boot graphics in ./bootfiles/bootlogo.png
and reorganize isolinux.cfg to fit your needs (when editing the file, and reorganize isolinux.cfg to fit your needs (when editing the file,
keep all paths in /boot/, it will be rellocated during LiveKit creation) keep all paths in /boot/, it will be rellocated during LiveKit creation)
* Linux Live Kit comes with precompiled static binaries in ./initramfs
directory. Those may be outdated but will work. You may replace them
by your own statically linked binaries, if you know how to compile them.
* If you plan to boot your Live Kit from CD, you need to recompile * If you plan to boot your Live Kit from CD, you need to recompile
syslinux.bin else it won't be able to boot your Live Kit from directory syslinux.bin else it won't be able to boot your Live Kit from directory
LIVEKITNAME. There is a script prepared for you which will handle all LIVEKITNAME. There is a script prepared for you which will handle all
of that. Simply go to directory ./tools/ and run isolinux.bin.update ... of that. Simply go to directory ./tools/ and run isolinux.bin.update ...
it will update ./bootfiles/isolinux.bin automatically by downloading it will update ./bootfiles/isolinux.bin automatically by downloading
isolinux sources, patching them using your actual LIVEKITNAME and isolinux sources, patching them using your actual LIVEKITNAME and
recompiling. recompiling. This step is not needed if you plan to boot from USB only.
* If you have tmpfs mounted on /tmp, make sure you have enough RAM
since LiveKit will store lots of data there. If you are low on RAM,
make sure /tmp is a regular on-disk directory.
* When done, run the ./build script to create your Live Kit * When done, run the ./build script to create your Live Kit
- it will create ISO and TAR files for you in /tmp - it will create ISO and TAR files for you in /tmp
- make sure you have enough free space in /tmp to handle it - make sure you have enough free space in /tmp to handle it
* If you want to use the Live Kit on a USB you have to either
- use Windows to execute the bootinst.bat file in the $NAME/boot folder
- or use Linux to execute the shellscript bootinst.sh in the $NAME/boot folder.
* You will need the following packages to be installed:
- squashfs-tools
- genisoimage or mkisofs
- zip
Author: Tomas M. <http://www.linux-live.org> Author: Tomas M. <http://www.linux-live.org>

8
Slax/README 100644
View File

@ -0,0 +1,8 @@
Each directory contains scripts for easier building of minimal OS installation,
also known as SLAX - Small Live Auxiliary linuX
WARNING:
You should not run this on your system since it auto-installs some packages
and removes lots of files from your filesystem.
Use only on freshly installed OS. You have been warned.

View File

@ -0,0 +1,10 @@
\l
_ ____ _____
| | / __ \\ / ____|
__| |_ __ __ _| | | | (___
/ _` | '_ \\ / _` | | | |\\___ \\
| (_| | | | | (_| | |__| |____) |
\\__,_|_| |_|\\__,_|\\____/|_____/
powered by Briq

View File

@ -0,0 +1,58 @@
#!/bin/bash
# Author: Tomas M. <http://www.slax.org/>
usage()
{
echo ""
echo "Convert directory to .sb compressed module"
echo "Usage: $0 [source_directory.sb] [[target_file.sb]]"
echo " If source_directory does not have .sb suffix and it is not 'squashfs-root',"
echo " then the source_directory itself is included in the module and"
echo " then the target_file.sb parameter is required."
echo " If target_file.sb is not specified, the source_directory is erased"
echo " and replaced by the newly generated module file."
}
P1="$(readlink -f "$1")"
P2="$(readlink -f "$2")"
if [ "$P1" = "$P2" ]; then
P2=""
fi
SB=$(echo "$P1" | grep -o "[.]sb/*\$")
if [ "$(echo "$P1" | grep -o "/squashfs-root/*\$")" != "" ]; then
SB="true"
fi
if [ "$SB" = "" ]; then
KEEP="-keep-as-directory"
if [ "$P2" = "" ]; then
usage
exit 1
fi
else
KEEP=""
fi
if [ ! -d "$P1" ]; then
echo "Not a directory: $P1" >&2
exit 2
fi
if [ "$P2" = "" ]; then
TARGET="$P1".sb
while [ -e "$TARGET" ]; do TARGET="$TARGET"x; done
mksquashfs "$P1" "$TARGET" -comp xz -b 1024K -always-use-fragments $KEEP >/dev/null || exit 3
umount "$P1" 2>/dev/null
rm -Rf "$P1"
mv "$TARGET" "$P1"
else
if [ -e "$P2" ]; then
echo "Target exists: $P2" >&2
exit 4
fi
mksquashfs "$P1" "$P2" -comp xz -b 1024K -always-use-fragments $KEEP >/dev/null
fi

View File

@ -0,0 +1,32 @@
#! /bin/bash --
# Aggrega file di pacchetti installati o aggiornati con Pacman
# dall'ultimo avvio di una distribuzione linux-live
# (cfr. https://www.linux-live.org/ ) senza persistenza attivata,
# creando un unico bundle .sb
# I file vengono letti dalla directory changes e da essa filtrati solo
# quelli appartenenti ai pacchetti di pacman.
#
# Autore: Guido Longoni <guidolongoni@gmail.com>
IFS=$'\n'
OUTLST="/tmp/added_files_$$.lst"
CACHEDIR=$(sed -n -e '/^[[:space:]]*CacheDir/s|^[^=]*=[[:space:]]*||gp' -e 's|[[:space:]]*$||g' /etc/pacman.conf | head -n1)
OUTDIR="/tmp/sb_$$"
OUTFILE="$OUTDIR".sb
CHGDIR=$(realpath $(mount | sed -n -e '/squashfs/s|.* on \([^ ]*\)/.*|\1|gp' | head -n1)/../changes)
mkdir -p '/tmp'
mkdir -p "$OUTDIR"
rm -rf "$OUTLST"
touch "$OUTLST"
for i in $(find "$CACHEDIR" -iname '*.pkg.tar.xz'); do
tar t -f $i >> "$OUTLST" 2>/dev/null
done
sort -u "$OUTLST" | grep -v '^\.' > "$OUTLST".tmp
mv "$OUTLST".tmp "$OUTLST"
rsync -av --old-d --files-from="$OUTLST" "$CHGDIR" "$OUTDIR"
dir2sb "$OUTDIR" "$OUTFILE"
rm -rf "$OUTDIR"
rm -rf "$OUTLST"

View File

@ -0,0 +1,86 @@
#!/bin/bash
# Rebuild initial ramdisk with full network drivers,
# start DHCP and TFTP server in order to provide PXE service
#
# Author: Tomas M <www.slax.org>
LIVE=/run/initramfs
FTPROOT=/var/state/dnsmasq/root
# find out our own IP address. If more interfaces are available, use the first one
IP="$(hostname -I | cut -d " " -f 1)"
GW=$(ip route show | grep default | grep -o "via.*" | head -n 1 | cut -d " " -f 2)
# if no IP is assigned to this computer, setup private address randomly
if [ "$IP" = "" ]; then
killall dhclient 2>/dev/null
IP="10."$(($RANDOM/130+1))"."$(($RANDOM/130+1))".1"
ifconfig $(ls -1 /sys/class/net | egrep -v '^lo$' | sort | head -n 1) $IP netmask 255.255.255.0
fi
# if gateway is not recognized, lets make our IP a gateway and enable forwarding
if [ "$GW" = "" ]; then
GW="$IP"
echo 1 > /proc/sys/net/ipv4/conf/all/forwarding
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
fi
echo Starting PXE server on $IP ...
# calculate C class range
RANGE=$(echo $IP | cut -d "." -f 1-3)
# make sure dnsmasq can be started
killall dnsmasq 2>/dev/null
killall busybox 2>/dev/null
rm -Rf $FTPROOT 2>/dev/null
mkdir -p $FTPROOT/{pxelinux.cfg,tmp}/
# create root filesystem for ftfp
cd $LIVE
( find . -print | grep -v "memory"
cd /
find /lib/modules/$(uname -r)/kernel/drivers/net | grep -v wireless
) | cpio -pvd $FTPROOT/tmp 2>/dev/null
cp /lib/modules/$(uname -r)/modules.* $FTPROOT/tmp/lib/modules/$(uname -r)
depmod -b $FTPROOT/tmp
rm $FTPROOT/tmp/lib/initramfs_escaped
# pack root in initramfs
cd $FTPROOT/tmp
find . -print | cpio -o -H newc 2>/dev/null | gzip -f --fast >../initrfs.img
cd ..
rm -Rf tmp
# link files here since copying is not necessary
ln -s $(find $LIVE/memory/{data,iso,toram} 2>/dev/null | grep vmlinuz | head -n 1) $FTPROOT/vmlinuz
ln -s $(find $LIVE/memory/{data,iso,toram} 2>/dev/null | grep pxelinux.0 | head -n 1) $FTPROOT/pxelinux.0
ln -s $(find $LIVE/memory/{data,iso,toram} 2>/dev/null | grep ldlinux.c32 | head -n 1) $FTPROOT/ldlinux.c32
find $LIVE/memory/{data,iso,toram} 2>/dev/null | egrep "[.]sb\$" | sort -n | while read LINE; do
BAS="$(basename "$LINE")"
ln -s $LINE "$FTPROOT/$BAS"
echo $BAS >> "$FTPROOT/PXEFILELIST"
done
echo "This is <a href=http://www.slax.org/>Slax</a> PXE data server. PXE clients will download <a href=PXEFILELIST>file list</a>" > "$FTPROOT/index.html"
# default pxelinux configuration. Keep xmode selection for clients the same like for the server
echo "
PROMPT 0
DEFAULT slax
LABEL slax
KERNEL /vmlinuz
IPAPPEND 1
APPEND initrd=/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 $(cat /proc/cmdline | egrep -o 'slax.flags=[^ ]+' | sed -r 's:[,=]pxe::' | sed -r 's:[,=]toram::')
" > $FTPROOT/pxelinux.cfg/default
# start the DHCP server and TFTP server
dnsmasq --enable-tftp --tftp-root=/var/state/dnsmasq/root \
--dhcp-boot=pxelinux.0,"$IP",$IP \
--dhcp-option=3,$GW \
--dhcp-range=$RANGE.2,$RANGE.250,infinite --log-dhcp
# start HTTP server at port 7529 (that are the numbers you type on your phone to write 'slax')
busybox httpd -p 7529 -h /var/state/dnsmasq/root

View File

@ -0,0 +1,17 @@
#!/bin/bash
# Author: Tomas M. <http://www.slax.org/>
if [ ! -e "$1" ]; then
echo
echo "Erase module directory created by sb2dir"
echo "Usage: $0 [source_directory.sb]"
exit 1
fi
if [ ! -d "$1" ]; then
echo "Directory does not exist: $1" >&2
exit
fi
umount "$1" 2>/dev/null
rm -Rf "$1"

View File

@ -0,0 +1,46 @@
#!/bin/bash
TMP=/tmp/changes$$
EXCLUDE="^\$|/\$|[.]wh[.][.]wh[.]orph/|^[.]wh[.][.]wh[.]plnk/|^[.]wh[.][.]wh[.]aufs|^var/cache/|^var/backups/|^var/tmp/|^var/log/|^var/lib/apt/|^var/lib/dhcp/|^var/lib/systemd/|^sbin/fsck[.]aufs|^etc/resolv[.]conf|^root/[.]Xauthority|^root/[.]xsession-errors|^root/[.]fehbg|^root/[.]fluxbox/lastwallpaper|^root/[.]fluxbox/menu_resolution|^etc/mtab|^etc/fstab|^boot/|^dev/|^mnt/|^proc/|^run/|^sys/|^tmp/"
CHANGES=/run/initramfs/memory/changes
if [ "$1" = "" ]; then
echo ""
echo "savechanges - save all changed files in a compressed filesystem bundle"
echo " - excluding some predefined files such as /etc/mtab,"
echo " temp & log files, empty directories, apt cache, and such"
echo ""
echo "Usage:"
echo " $0 [ target_file.sb ] [ changes_directory ]"
echo ""
echo "If changes_directory is not specified, /run/initramfs/memory/changes is used."
echo ""
exit 1
fi
if [ ! "$2" = "" ]; then
CHANGES="$2"
fi
# exclude the save_file itself of course
EXCLUDE="$EXCLUDE|^""$(readlink -f "$1" | cut -b 2- | sed -r "s/[.]/[.]/")""\$"
CWD=$(pwd)
cd $CHANGES || exit
mkdir -p $TMP
mount -t tmpfs tmpfs $TMP
find \( -type d -printf "%p/\n" , -not -type d -print \) \
| sed -r "s/^[.]\\///" | egrep -v "$EXCLUDE" \
| while read FILE; do
cp --parents -afr "$FILE" "$TMP"
done
cd $CWD
mksquashfs $TMP "$1" -comp xz -b 1024K -always-use-fragments -noappend
umount $TMP
rmdir $TMP

View File

@ -0,0 +1,29 @@
#!/bin/bash
if [ "$1" = "rm" ]; then
shift
rmsbdir "$@"
exit $?
fi
if [ "$1" = "rmdir" ]; then
shift
rmsbdir "$@"
exit $?
fi
if [ "$1" = "conv" ]; then
shift
fi
if [ ! -r "$1" ]; then
echo File not found "$1"
exit 1
fi
if [ -d "$1" ]; then
dir2sb "$@"
exit $?
fi
sb2dir "$@"

View File

@ -0,0 +1,33 @@
#!/bin/bash
# Author: Tomas M. <http://www.slax.org/>
if [ ! -e "$1" ]; then
echo
echo "Convert .sb compressed module into directory with the same name"
echo "Usage: $0 [source_file.sb] [[optional output_directory]]"
echo " If the output_directory is specified, it must exist"
echo " If the output_directory is not specified, the name source_file.sb"
echo " is used and the directory is overmounted with tmpfs"
exit 1
fi
if [ ! -r "$1" ]; then
echo "File does not exist: $1" >&2
exit
fi
if [ "$2" = "" ]; then
SOURCE="$1".x
while [ -e "$SOURCE" ]; do SOURCE="$SOURCE"x; done
mv "$1" "$SOURCE" || exit
mkdir "$1"
mount -t tmpfs tmpfs "$1"
unsquashfs -f -dest "$1" "$SOURCE" >/dev/null || exit
rm "$SOURCE"
else
if [ ! -d "$2" ]; then
echo "Directory does not exist: $2" >&2
exit
fi
unsquashfs -f -dest "$2" "$1" >/dev/null
fi

View File

@ -0,0 +1,178 @@
#!/bin/bash
# Slax management and control script
# Author: Tomas M <http://www.slax.org/>
# activate
# deactivate
# list
LIVE=/run/initramfs/memory
RAMSTORE=$LIVE/modules
# Print error message and exit
# $1 = error message
#
die()
{
echo "$1" >&2
exit 1
}
print_branches()
{
local SI BUNDLE LOOP CWD
SI="/sys/fs/aufs/$(cat /proc/mounts | grep 'aufs / aufs' | egrep -o 'si=([^,) ]+)' | tr = _)"
CWD="$(pwd)"
cd "$SI"
ls -v1 | grep -v xi_path | egrep 'br[0-9]+' | xargs cat | grep memory/bundles | rev | cut -b 4- | rev | while read BUNDLE; do
if mountpoint -q "$BUNDLE"; then
LOOP=$(cat /proc/mounts | fgrep " $BUNDLE squashfs" | cut -d " " -f 1)
echo -n "$BUNDLE"
echo -ne "\t"
losetup $LOOP | sed -r "s:.*[(]|[)].*::g"
fi
done | tac
cd "$CWD"
}
# Activate Slax Bundle
# $1 = file to activate
#
activate()
{
local SB TGT BAS
SB="$(readlink -f "$1")"
BAS="$(basename "$SB")"
# check if file exists
if [ ! -r "$SB" ]; then
usage
die "file not found $SB"
fi
# check if the file is part of aufs union, if yes we need to copy it outside
if df "$SB" | cut -d " " -f 1 | grep -q aufs; then
TGT="$RAMSTORE"
mkdir -p "$TGT"
if [ -r $TGT/$BAS ]; then die "File exists: $TGT/$BAS"; fi
cp -n "$SB" "$TGT/$BAS"
if [ $? -ne 0 ]; then die "Error copying file to $TGT/$BAS. Not enough free RAM or disk space?"; fi
SB="$TGT/$BAS"
fi
# check if this particular file is already activated
if print_branches | cut -f 2 | fgrep -q "$SB"; then
exit
fi
# mount remount,add
TGT="$LIVE/bundles/$BAS"
mkdir -p "$TGT"
mount -n -o loop,ro "$SB" "$TGT"
if [ $? -ne 0 ]; then
die "Error mounting $SB to $TGT, perhaps corrupted download"
fi
# add current branch to aufs union
mount -t aufs -o remount,add:1:"$TGT" aufs /
if [ $? -ne 0 ]; then
umount "$TGT"
rmdir "$TGT"
die "Error attaching bundle filesystem to Slax"
fi
echo "Slax Bundle activated: $BAS"
}
# Deactivate Slax bundle of the given name
# $1 = path to bundle file, or its name
#
deactivate()
{
local BUNDLES SB MATCH LOOP LOOPFILE
BUNDLES=$LIVE/bundles
MODULES=$LIVE/modules
SB="$(basename "$1")"
rmdir "$BUNDLES/$SB" 2>/dev/null # this fails unless the dir is
rmdir "$BUNDLES/$SB.sb" 2>/dev/null # forgotten there empty. It's safe this way
if [ ! -d "$BUNDLES/$SB" ]; then
# we don't have real filename match, lets try to add .sb extension
if [ ! -d "$BUNDLES/$SB.sb" ]; then
# no, still no match. Lets use some guesswork
SB=$(print_branches | cut -f 2 | egrep -o "/[0-9]+-$SB.sb\$" | tail -n 1 | xargs -r basename)
else
SB="$SB.sb"
fi
fi
if [ "$SB" = "" -o ! -d "$BUNDLES/$SB" ]; then
die "can't find active slax bundle $1"
fi
echo "Attempting to deactivate Slax bundle $SB..."
mount -t aufs -o remount,verbose,del:"$BUNDLES/$SB" aufs / 2>/dev/null
if [ $? -ne 0 ]; then
die "Unable to deactivate Slax Bundle - still in use. See dmesg for more."
fi
# remember what loop device was the bundle mounted to, it may be needed later
LOOP="$(cat /proc/mounts | fgrep " $BUNDLES/$SB " | cut -d " " -f 1)"
LOOPFILE="$(losetup "$LOOP" | cut -d " " -f 3 | sed -r 's:^.|.$::g')"
umount "$BUNDLES/$SB" 2>/dev/null
if [ $? -ne 0 ]; then
die "Unable to umount Slax bundle loop-mount $BUNDLES/$SB"
fi
rmdir "$BUNDLES/$SB"
# free the loop device manually since umount fails to do that if the bundle was activated on boot
losetup -d "$LOOP" 2>/dev/null
if echo "$LOOPFILE" | grep -q $RAMSTORE; then
rm -f $LOOPFILE
fi
echo "Slax Bundle deactivated: $SB"
}
usage()
{
echo "Usage: $0 [ activate | deactivate | list ] [ file.sb ]" >&2
if [ "$1" != "" ]; then
echo "$1" >&2
fi
}
if [ "$1" = "" ]; then
usage
die
fi
if [ "$1" = "activate" ]; then
activate "$2"
fi
if [ "$1" = "deactivate" ]; then
deactivate "$2"
fi
if [ "$1" = "list" ]; then
print_branches
fi
if [ "$1" = "savechanges" ]; then
shift
savechanges "$@"
fi

View File

@ -0,0 +1,34 @@
For more updated changelog and todo, visit
https://www.slax.org/next.php
TODO:
make persistent changes default when booting from writable media
(and offer "fresh start" in boot menu instead)
add @ntfs-3g support, add ext4 support for bootable device
update syslinux
add wicd as wifi configurator
make keyboard layout persistent
make xlunch refresh on start to see newly installed apps
fb keys: OnDesktop Mouse1 :MacroCmd {WindowMenu} {HideMenus}
reimplement xrandr screen resolution change, use --mode somehow
consider gsettings-desktop-schemas
add thunar or pcmanfm
review uefi support - does it work or not? don't have uefi device here
maybe consider pxe server again
use debootstrap for slax build
* Slax 9.3.0
added wireless tools
added firmware (free and nonfree)
added contrib and nonfree repositories
fixed apt-get alias parameters handling
* Slax 9.2.1
initial release of Slax based on Debian

View File

@ -0,0 +1,101 @@
#!/bin/sh
exec /bin/bash "$(dirname "$0")"/bootinst.sh
exec /bin/sh "$(dirname "$0")"/bootinst.sh
@echo off
COLOR 2F
cls
echo ===============================================================================
echo.
echo ________.__
echo / ____/^| ^| _____ ___ ___
echo \____ \ ^| ^| \__ \ \ \/ /
echo / \^| ^|__/ __ \_^> ^<
echo /______ /^|____(____ /__/\_ \
echo \/ \/ \/
echo.
echo ===============================================================================
echo.
set DISK=none
set BOOTFLAG=boot666s.tmp
:checkPrivileges
mkdir "%windir%\AdminCheck" 2>nul
if '%errorlevel%' == '0' rmdir "%windir%\AdminCheck" & goto gotPrivileges else goto getPrivileges
:getPrivileges
ECHO.
ECHO Administrator Rights are required
ECHO Invoking UAC for Privilege Escalation
ECHO.
runadmin.vbs %0
goto end
:gotPrivileges
CD /D "%~dp0"
echo This file is used to determine current drive letter. It should be deleted. >\%BOOTFLAG%
if not exist \%BOOTFLAG% goto readOnly
echo.|set /p=wait please
for %%d in ( C D E F G H I J K L M N O P Q R S T U V W X Y Z ) do echo.|set /p=. & if exist %%d:\%BOOTFLAG% set DISK=%%d
echo . . . . . . . . . .
del \%BOOTFLAG%
if %DISK% == none goto DiskNotFound
wscript.exe samedisk.vbs %windir% %DISK%
if %ERRORLEVEL% == 99 goto refuseDisk
echo Setting up boot record for %DISK%: ...
if %OS% == Windows_NT goto setupNT
goto setup95
:setupNT
\slax\boot\syslinux.exe -maf -d /slax/boot/ %DISK%:
if %ERRORLEVEL% == 0 goto setupDone
goto errorFound
:setup95
\slax\boot\syslinux.com -maf -d /slax/boot/ %DISK%:
if %ERRORLEVEL% == 0 goto setupDone
goto errorFound
:setupDone
echo Installation finished.
goto pauseit
:errorFound
color 4F
echo.
echo Error installing boot loader
goto pauseit
:refuseDisk
color 4F
echo.
echo Directory %DISK%:\slax\boot\ seems to be on the same physical disk as your Windows.
echo Installing bootloader would harm your Windows and thus is disabled.
echo Please use different drive and try again.
goto pauseit
:readOnly
color 4F
echo.
echo You're starting this installer from a read-only media, this will not work.
goto pauseit
:DiskNotFound
color 4F
echo.
echo Error: can't discover current drive letter
:pauseit
if "%1" == "auto" goto end
echo.
echo Press any key...
pause > nul
:end

View File

@ -0,0 +1,154 @@
#!/bin/sh
#
# This script will setup booting from disk (USB or harddrive)
#
# If you see this file in a text editor instead of getting it executed,
# then it is missing executable permissions (chmod). You can try to set
# exec permissions for this file by using: chmod a+x bootinst.sh
# Alternatively, you may try to run bootinst.bat file instead
#
# Scrolling down will reveal the actual code of this script.
#
# if we're running this from X, re-run the script in konsole or xterm
if [ "$DISPLAY" != "" ]; then
if [ "$1" != "--rex" -a "$2" != "--rex" ]; then
konsole --nofork -e /bin/sh $0 --rex 2>/dev/null || xterm -e /bin/sh $0 --rex 2>/dev/null || /bin/sh $0 --rex 2>/dev/null
exit
fi
fi
# make sure I am root
if [ "$UID" != "0" -a "$UID" != "" ]; then
echo ""
echo "You are not root. You must run bootinst script as root."
echo "The bootinst script needs direct access to your boot device."
echo "Use sudo or kdesudo or similar wrapper to execute this."
read junk
exit 1
fi
# change working directory to dir from which we are started
CWD="$(pwd)"
BOOT="$(dirname "$0")"
BOOT="$(realpath "$BOOT" 2>/dev/null || echo $BOOT)"
cd "$BOOT"
# find out device and mountpoint
PART="$(df . | tail -n 1 | tr -s " " | cut -d " " -f 1)"
DEV="$(echo "$PART" | sed -r "s:[0-9]+\$::" | sed -r "s:([0-9])[a-z]+\$:\\1:i")" #"
# check if disk is already bootable. Mostly for Windows discovery
if [ "$(fdisk -l "$DEV" | fgrep "$DEV" | fgrep "*")" != "" ]; then
echo ""
echo "Partition $PART seems to be located on a physical disk,"
echo "which is already bootable. If you continue, your drive $DEV"
echo "will boot only Slax by default."
echo "Press [Enter] to continue, or [Ctrl+C] to abort..."
read junk
fi
ARCH=$(uname -m)
if [ "$ARCH" = "x86_64" ]; then ARCH=64; else ARCH=32; fi
EXTLINUX=extlinux.x$ARCH
if [ ! -x ./$EXTLINUX ]; then
# extlinux is not executable. There are two possible reasons:
# either the fs is mounted with noexec, or file perms are wrong.
# Try to fix both, no fail on error yet
mount -o remount,exec $DEV
chmod a+x ./$EXTLINUX
fi
if [ ! -x ./$EXTLINUX ]; then
# extlinux is still not executable. As a last try, copy it to .exe
# because the partition may be mounted with showexec option, from which
# we probably can't escape by remount
cp -f ./$EXTLINUX ./extlinux.exe
EXTLINUX=extlinux.exe
fi
# install syslinux bootloader
echo "* attempting to install bootloader to $BOOT..."
./"$EXTLINUX" --install "$BOOT"
if [ $? -ne 0 ]; then
echo "Error installing boot loader."
echo "Read the errors above and press enter to exit..."
read junk
exit 1
fi
if [ "$DEV" != "$PART" ]; then
# Setup MBR on the first block
echo "* setup MBR on $DEV"
dd bs=440 count=1 conv=notrunc if="$BOOT/mbr.bin" of="$DEV" 2>/dev/null
# Toggle bootable flags
echo "* set bootable flag for $PART"
PART="$(echo "$PART" | sed -r "s:.*[^0-9]::")"
(
fdisk -l "$DEV" | fgrep "*" | fgrep "$DEV" | cut -d " " -f 1 \
| sed -r "s:.*[^0-9]::" | xargs -I '{}' echo -ne "a\n{}\n"
echo a
echo $PART
echo w
) | fdisk $DEV >/dev/null 2>&1
fi
echo "Boot installation finished."
echo "Press Enter..."
read junk
cd "$CWD"

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,19 @@
Welcome
If you need to edit boot command line (for advanced users), hit [Tab].
When finished, press [Enter].
Keep changes persistent
Save all filesystem modifications to 'changes' directory and restore
those changes next time you boot. Only usable while running from a
writable media such as USB device or hard disk.
Copy to RAM
Copies all data to memory during startup so you can eject the boot device.
Requires enough RAM to store all modules and to run the system.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,3 @@
Set UAC = CreateObject("Shell.Application")
Set args = WScript.Arguments
UAC.ShellExecute args.Item(0), "", "", "runas", 1

View File

@ -0,0 +1,68 @@
' This script compares two given parameters (just first letter, so you can pass in full paths as well)
' and returns exit code 99 if both disk drives are on the same physical drive
' Run it as: wscript.exe samedisk.vbs c:\ d:\
' Author: Tomas M <http://www.linux-live.org/>
' Inspired by: http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/disk/drives/
' -------------------------------------------
drive1 = ""
drive2 = ""
phys1 = ""
phys2 = ""
Set args = WScript.Arguments
if args.Length > 0 then
drive1 = args.Item(0)
end if
if args.Length > 1 then
drive2 = args.Item(1)
end if
if drive1 = "" then
WScript.Quit(1)
end if
if drive2 = "" then
WScript.Quit(2)
end if
ComputerName = "."
Set wmiServices = GetObject _
("winmgmts:{impersonationLevel=Impersonate}!//" & ComputerName)
Set wmiDiskDrives = wmiServices.ExecQuery _
("SELECT Caption, DeviceID FROM Win32_DiskDrive")
For Each wmiDiskDrive In wmiDiskDrives
strEscapedDeviceID = _
Replace(wmiDiskDrive.DeviceID, "\", "\\", 1, -1, vbTextCompare)
Set wmiDiskPartitions = wmiServices.ExecQuery _
("ASSOCIATORS OF {Win32_DiskDrive.DeviceID=""" & _
strEscapedDeviceID & """} WHERE " & _
"AssocClass = Win32_DiskDriveToDiskPartition")
For Each wmiDiskPartition In wmiDiskPartitions
Set wmiLogicalDisks = wmiServices.ExecQuery _
("ASSOCIATORS OF {Win32_DiskPartition.DeviceID=""" & _
wmiDiskPartition.DeviceID & """} WHERE " & _
"AssocClass = Win32_LogicalDiskToPartition")
For Each wmiLogicalDisk In wmiLogicalDisks
if UCase(Left(drive1,1)) = UCase(Left(wmiLogicalDisk.DeviceID,1)) then
phys1=wmiDiskDrive.DeviceID
end if
if UCase(Left(drive2,1)) = UCase(Left(wmiLogicalDisk.DeviceID,1)) then
phys2=wmiDiskDrive.DeviceID
end if
Next
Next
Next
if phys1 = phys2 then
WScript.Quit(99)
end if

View File

@ -0,0 +1,42 @@
UI /slax/boot/vesamenu.c32
PROMPT 0
TIMEOUT 40
MENU CLEAR
MENU HIDDEN
MENU HIDDENKEY Enter default
MENU BACKGROUND /slax/boot/bootlogo.png
MENU WIDTH 80
MENU MARGIN 20
MENU ROWS 5
MENU TABMSGROW 9
MENU CMDLINEROW 9
MENU HSHIFT 0
MENU VSHIFT 19
MENU COLOR BORDER 30;40 #00000000 #00000000 none
MENU COLOR SEL 47;30 #FF000000 #FFFFFFFF none
MENU COLOR UNSEL 37;40 #FFFFFFFF #FF000000 none
MENU COLOR TABMSG 32;40 #FF60CA00 #FF000000 none
F1 help.txt /slax/boot/zblack.png
MENU AUTOBOOT Press Esc for options, automatic boot in # second{,s} ...
MENU TABMSG [F1] help [Tab] cmdline >
LABEL default
MENU LABEL Run Slax (Persistent changes)
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 consoleblank=0 slax.flags=perch,automount
LABEL perch
MENU LABEL Run Slax (Fresh start)
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 consoleblank=0 slax.flags=automount
LABEL toram
MENU LABEL Run Slax (Copy to RAM)
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 consoleblank=0 slax.flags=toram

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -0,0 +1,34 @@
#!/bin/bash
THIS=$(dirname $(readlink -f $0))
sed -i -r 's/^LIVEKITNAME.*/LIVEKITNAME="slax"/' $THIS/../../config
sed -i -r 's/^NETWORK.*/NETWORK=true/' $THIS/../../config
. ./copy
. ./install
. ./cleanup
. ./copy
# now run build script
SKIPINITRFS=true
cd ../../
. ./build
# setup initrd now, to include aufs
apt-get update
apt-get install aufs-dkms linux-headers-$(uname -r) --yes
cd initramfs
. ./initramfs_create
# unpack the sb archive and add aufs modules to /lib/modules
cd $LIVEKITDATA/$LIVEKITNAME
unsquashfs 01-core.$BEXT
cp -a /$LMK/kernel/fs/aufs squashfs-root/$LMK/kernel/fs
rm -f 01-core.$BEXT
mksquashfs squashfs-root 01-core.$BEXT -comp xz -b 1024K -always-use-fragments || exit
rm -Rf squashfs-root
mv -f $INITRAMFS.img $LIVEKITDATA/$LIVEKITNAME/boot/initrfs.img
cp -vf $THIS/bootfiles/* $LIVEKITDATA/$LIVEKITNAME/boot/

View File

@ -0,0 +1,91 @@
#!/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

View File

@ -0,0 +1,3 @@
#!/bin/bash
(cd rootcopy && cp --parents -afr * /)

View File

@ -0,0 +1,32 @@
#!/bin/bash
CURRENT="$(ls -1 /boot)"
apt-get update
apt-get dist-upgrade --yes
NEW="$(ls -1 /boot)"
if [ "$CURRENT" != "$NEW" ]; then
echo "It looks like your kernel has been upgraded."
echo "You should reboot and restart the build process."
exit
fi
# if kernel was upgraded, you may need to reboot
apt-get install --yes --no-install-recommends 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
ln -sf bash /bin/sh
apt-get remove --yes vim* grub* debconf-i18n installation-report
CWD="$(pwd)"
cd /tmp
apt-get download acpi-support
dpkg -x acpi-support*.deb /tmp/acpisupport
cd /tmp/acpisupport
cp -aR * /
cd "$CWD"

View File

@ -0,0 +1,21 @@
#!/bin/bash
apt update
apt install --yes --no-install-recommends \
firmware-linux-free \
firmware-linux-nonfree \
firmware-atheros \
firmware-iwlwifi \
firmware-zd1211 \
firmware-realtek \
firmware-bnx2 \
firmware-brcm80211 \
firmware-cavium \
firmware-ipw2x00 \
firmware-libertas \
firmware-ti-connectivity \
firmware-b43-installer
. ../../cleanup
savechanges /01-firmware.sb

View File

@ -0,0 +1,42 @@
#!/bin/bash
apt-get update
apt-get install --yes --no-install-recommends \
xserver-xorg xserver-xorg-video-all xserver-xorg-video-intel \
xinit \
xterm \
blackbox \
libxcursor1 \
breeze-cursor-theme \
x11-utils \
wmctrl \
xdotool \
libdrm-intel1 \
libgl1-mesa-dri \
libglu1-mesa
# Set setuid bit on xorg binary, so it can be started by guest user
chmod u+s /usr/lib/xorg/Xorg
# use only white cursors. There were some troubles if the other cursors
# was left behind, installing gtk apps reverted the cursor from white to gray,
# so we're going to nuke it to leave only Snow cursors active.
rm -Rf /usr/share/icons/breeze_cursors
mv /usr/share/icons/Breeze_Snow /usr/share/icons/breeze_cursors
(cd rootcopy && cp --parents -afr * /)
cp ../../cleanup /tmp
# install x11 server utils, apt-get would add cpp dependency, bullshit!
cd /tmp
apt-get download x11-xserver-utils
dpkg -x x11-xserver-utils*.deb /tmp/x11utils
cd /tmp/x11utils
cp -aR * /
update-alternatives --set x-terminal-emulator /usr/bin/xterm
. /tmp/cleanup
savechanges /02-xorg.sb

View File

@ -0,0 +1 @@
/lib/systemd/system/xorg.service

View File

@ -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

View File

@ -0,0 +1,5 @@
[begin] ( Menu )
[exec] (Terminal) { xterm -ls -title Terminal }
[exec] (Web browser) { chromium }
[exit] (Exit)
[end]

View File

@ -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

View File

@ -0,0 +1,7 @@
[Unit]
Description=X-Window
ConditionKernelCommandLine=!text
After=systemd-user-sessions.service
[Service]
ExecStart=/bin/su --login -c "/usr/bin/startx -- :0 vt7 -ac -nolisten tcp"

View File

@ -0,0 +1,79 @@
*.appearance: flat solid
*button.pressed.appearance: sunken solid
*button.pressed.backgroundColor: rgb:69/c1/f1
*button.appearance: parentrelative
*.focus.backgroundColor: rgb:69/c1/f1
*.unfocus.backgroundColor: rgb:28/28/28
*font: Bitstream Vera Sans-9
menu.title.appearance: flat solid
menu.title.backgroundColor: rgb:69/c1/f1
menu.title.textColor: rgb:28/28/28
menu.title.alignment: center
menu.title.marginWidth: 6
menu.frame.appearance: flat gradient border
menu.frame.textColor: rgb:28/28/28
menu.frame.foregroundColor: grey40
menu.frame.borderColor: rgb:69/c1/f1
menu.frame.borderWidth: 6
menu.frame.disabledColor: darkgrey
menu.frame.alignment: left
menu.frame.marginWidth: 2
menu.active.appearance: flat solid border
menu.active.backgroundColor: rgb:69/c1/f1
menu.active.borderWidth: 4
menu.active.borderColor: rgb:69/c1/f1
menu.active.textColor: rgb:38/38/38
rootCommand: bsetroot -solid rgb:77/90/aa
slit.appearance: raised solid
slit.backgroundColor: rgb:77/90/aa
slit.marginWidth: 3
toolbar.appearance: flat gradient border
toolbar.alignment: center
toolbar*textColor: rgb:28/28/28
toolbar.label.appearance: parentrelative
toolbar.clock.appearance: parentrelative
toolbar.windowLabel.appearance: parentrelative
window.title.focus.appearance: flat solid
window.title.focus.backgroundColor: rgb:69/c1/f1
window.title.unfocus.appearance: flat solid
window.title.unfocus.backgroundColor: rgb:d6/d6/d6
window.title.marginWidth: 5
window.label.focus.appearance: parentrelative
window.label.focus.textColor: rgb:28/28/28
window.label.unfocus.appearance: parentrelative
window.label.unfocus.textColor: rgb:28/28/28
window.label.marginWidth: 1
window.button.focus.appearance: parentrelative
window.button.focus.foregroundColor: white
window.button.unfocus.appearance: parentrelative
window.button.unfocus.foregroundColor: darkgrey
window.handle.focus.appearance: flat solid
window.handle.focus.backgroundColor: rgb:69/c1/f1
window.handle.unfocus.appearance: flat solid
window.handle.unfocus.backgroundColor: rgb:d6/d6/d6
window.grip.focus.appearance: flat solid
window.grip.focus.backgroundColor: rgb:69/c1/f1
window.grip.unfocus.appearance: flat solid
window.grip.unfocus.backgroundColor: rgb:d6/d6/d6
window*alignment: center
window.handleHeight: 7
window.frame.borderWidth: 7
window.frame.focus.borderColor: rgb:69/c1/f1
window.frame.unfocus.borderColor: rgb:d6/d6/d6

View File

@ -0,0 +1,6 @@
#define command2_width 16
#define command2_height 16
static unsigned char command2_bits[] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xff, 0xe7, 0xff, 0xcf, 0xff,
0x9f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x9f, 0xff, 0xcf, 0xff, 0xe7, 0xc1,
0xf7, 0xc1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };

View File

@ -0,0 +1,117 @@
#!/bin/bash
CWD=$(dirname $(readlink -f $0))
NAME=fluxbox
VERSION=1.3.5
# first install stock version
apt-get update
apt-get install --no-install-recommends --yes \
$NAME \
feh \
compton \
volumeicon-alsa \
murrine-themes \
libnotify4 \
scrot
. ../../cleanup
(cd rootcopy && cp --parents -afr * /)
chown guest.users /home/guest
chown -R guest.users /home/guest/.gtkrc-2.0
chown -R guest.users /home/guest/.config
savechanges /$NAME-stock.sb
cd /
unsquashfs /$NAME-stock.sb
# create user directories
for dir in Desktop Documents Downloads Music Pictures Public Templates Videos; do
mkdir -p /squashfs-root/home/guest/$dir
mkdir -p /squashfs-root/root/$dir
done
chown -R guest.users /squashfs-root/home/guest
# then, we want to patch it to implement window resizing!
# so we will recompile whole package
REBUILD=/tmp/$NAME-rebuild-$$
apt-get update
apt-get --yes build-dep $NAME
mkdir -p $REBUILD
cd $REBUILD
apt-get source $NAME
cd $NAME-$VERSION
cat $CWD/patches/fluxbox-slax.diff > debian/patches/fluxbox-slax.diff
echo fluxbox-slax.diff >> debian/patches/series
dpkg-buildpackage -us -uc
rm -Rf debian/$NAME/DEBIAN
rm -Rf debian/$NAME/usr/share/doc
rm -Rf debian/$NAME/usr/share/images
cp debian/$NAME/usr/bin/fluxbox /squashfs-root/usr/bin
# add xlunch from sources
wget -O /tmp/xlunch.tar.gz https://github.com/Tomas-M/xlunch/archive/v4.5.3.tar.gz
cd /tmp
tar -xf xlunch.tar.gz
cd xlunch-4.5.3
make
cp xlunch /squashfs-root/usr/bin
cp extra/gentriesquick /squashfs-root/usr/bin/xlunch_genquick
mkdir -p /squashfs-root/usr/share/icons/hicolor/48x48/apps/
cp extra/ghost.png /squashfs-root/usr/share/icons/hicolor/48x48/apps/xlunch_ghost.png
# add tray icon launcher
wget -O /tmp/systrayiconlauncher.tar.gz https://github.com/Tomas-M/SystrayIconLauncher/archive/master.tar.gz
cd /tmp
tar -xf systrayiconlauncher.tar.gz
cd SystrayIconLauncher-master
apt-get install --yes libgtk2.0-dev
make
cp systrayicon /squashfs-root/usr/bin
# add gtkdialog
wget -O /tmp/gtkdialog.tar.gz https://github.com/Tomas-M/GTKdialog/archive/master.tar.gz
cd /tmp
tar -xf gtkdialog.tar.gz
cd GTKdialog-master
make
cp gtkdialog /squashfs-root/usr/bin
# battery icon app
cd /tmp
wget https://github.com/valr/cbatticon/archive/1.6.7.tar.gz
tar -xf 1.6.7.tar.gz
cd cbatticon-1.6.7
cp -R /usr/include/glib-2.0/* /usr/include
cp -R /usr/include/gtk-2.0/* /usr/include
apt install --yes libnotify-dev
sed -i "s/WITH_GTK3 = 1/WITH_GTK3 = 0/" Makefile
CFLAGS="-O2 \
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include/ \
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include/ \
-I/usr/include/gdk-pixbuf-2.0/ \
-I/usr/include/atk-1.0/ \
-I/usr/include/cairo \
-I/usr/include/pango-1.0 \
-I/usr/include/glib-2.0 \
-I/usr/include/gtk-2.0" \
make
cp cbatticon /squashfs-root/usr/bin
dir2sb /squashfs-root /03-desktop.sb

View File

@ -0,0 +1,97 @@
--- a/src/Window.cc 2013-02-13 05:04:05.000000000 -0500
+++ b/src/Window.cc 2017-11-05 17:31:37.516503305 -0500
@@ -2745,6 +2745,14 @@
m_button_grab_x = x - frame().x() - frame().window().borderWidth();
m_button_grab_y = y - frame().y() - frame().window().borderWidth();
+ // If mouse clicked on the border, start window resize instead of move
+ if (m_button_grab_x <= 0 || m_button_grab_x >= (int)frame().window().width()
+ || m_button_grab_y >= (int)frame().window().height() ) {
+ ReferenceCorner dir = getResizeDirection(m_button_grab_x,m_button_grab_y,EDGEORCORNERRESIZE,frame().window().borderWidth(),frame().window().borderWidth());
+ startResizing(m_button_grab_x, m_button_grab_y, dir);
+ return;
+ }
+
moving = true;
Fluxbox *fluxbox = Fluxbox::instance();
@@ -2752,7 +2760,7 @@
// freely map and unmap the window we're moving.
grabPointer(screen().rootWindow().window(), False, ButtonMotionMask |
ButtonReleaseMask, GrabModeAsync, GrabModeAsync,
- screen().rootWindow().window(), frame().theme()->moveCursor(), CurrentTime);
+ screen().rootWindow().window(), None, CurrentTime);
if (menu().isVisible())
menu().hide();
--- a/src/FbTk/FbDrawable.hh
+++ b/src/FbTk/FbDrawable.hh
@@ -52,7 +52,8 @@ public:
LEFT,
RIGHT,
UP,
- DOWN
+ DOWN,
+ MENU
};
// x, y, width and height define a space within which we're drawing a triangle
--- a/src/ToolFactory.cc 2013-02-13 05:04:05.000000000 -0500
+++ b/src/ToolFactory.cc 2017-10-31 12:11:20.000000000 -0400
@@ -101,6 +101,8 @@
cmd_str += " (workspace=[current])";
}
+ if (name.find("menu") != std::string::npos) cmd_str = "Exec fbappselect";
+
FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(cmd_str));
if (cmd == 0) // we need a command
return 0;
@@ -110,6 +112,9 @@
if (name.find("prev") != std::string::npos)
arrow_type = FbTk::FbDrawable::LEFT;
+ if (name.find("menu") != std::string::npos)
+ arrow_type = FbTk::FbDrawable::MENU;
+
ArrowButton *win = new ArrowButton(arrow_type, parent,
0, 0,
button_size, button_size);
--- a/src/FbTk/FbDrawable.cc 2017-10-19 06:06:08.000000000 -0400
+++ a/src/FbTk/FbDrawable.cc 2017-10-19 06:06:57.013131070 -0400
@@ -96,7 +96,7 @@
if (drawable() == 0 || gc == 0 || width == 0 || height == 0)
return;
- XPoint pts[3];
+ XPoint pts[4];
if (scale < 100) scale = 100; // not bigger than the space allowed
else if (scale > 10000) scale = 10000; // not too small...
@@ -115,6 +115,26 @@
}
switch (type) {
+ case FbTk::FbDrawable::MENU:
+ {
+ int s=7; int m=2; int d=2; int sh=-1; //size margin distance
+ pts[0].x=m+sh; pts[0].y=m+sh; pts[1].x=m+s+sh; pts[1].y=m+sh;
+ pts[2].x=m+s+sh; pts[2].y=m+s+sh; pts[3].x=m+sh; pts[3].y=m+s+sh;
+ fillPolygon(gc, pts, 4, Convex, CoordModeOrigin);
+
+ pts[0].x=m+s+d+sh; pts[0].y=m+sh; pts[1].x=m+s+d+s+sh; pts[1].y=m+sh;
+ pts[2].x=m+s+d+s+sh; pts[2].y=m+s+sh; pts[3].x=m+s+d+sh; pts[3].y=m+s+sh;
+ fillPolygon(gc, pts, 4, Convex, CoordModeOrigin);
+
+ pts[0].x=m+sh; pts[0].y=m+s+d+sh; pts[1].x=m+s+sh; pts[1].y=m+s+d+sh;
+ pts[2].x=m+s+sh; pts[2].y=m+s+d+s+sh; pts[3].x=m+sh; pts[3].y=m+s+d+s+sh;
+ fillPolygon(gc, pts, 4, Convex, CoordModeOrigin);
+
+ pts[0].x=m+s+d+sh; pts[0].y=m+s+d+sh; pts[1].x=m+s+d+s+sh; pts[1].y=m+s+d+sh;
+ pts[2].x=m+s+d+s+sh; pts[2].y=m+s+d+s+sh; pts[3].x=m+s+d+sh; pts[3].y=m+s+d+s+sh;
+ fillPolygon(gc, pts, 4, Convex, CoordModeOrigin);
+ return;
+ }
case FbTk::FbDrawable::LEFT:
// start at the tip
pts[0].x = (width / 2) - (ax / 2); pts[0].y = height / 2;

View File

@ -0,0 +1,4 @@
Terminal;/usr/share/icons/hicolor/128x128/apps/terminal.png;xterm -title Terminal
Web Browser;/usr/share/icons/hicolor/128x128/apps/chromium.png;chromium
Text Editor;/usr/share/icons/hicolor/128x128/apps/editor.png;leafpad
Calculator;/usr/share/icons/hicolor/128x128/apps/calculator.png;qalculate

View File

@ -0,0 +1,3 @@
Logout;/usr/share/icons/hicolor/128x128/actions/logout.png;logout
Restart;/usr/share/icons/hicolor/128x128/actions/restart.png;restart
Shut down;/usr/share/icons/hicolor/128x128/actions/shutdown.png;shutdown

View File

@ -0,0 +1,38 @@
{
"AudioCaptureAllowed": false,
"account_id_migration_state": 2,
"account_tracker_service_last_update": "13154004704520013",
"alternate_error_pages": {
"enabled": false
},
"bookmark_bar": {
"show_on_all_tabs": false
},
"browser": {
"check_default_browser": false,
"has_seen_welcome_page": true,
"show_home_button": false,
"window_placement": {
"bottom": 10,
"left": 10,
"maximized": true,
"right": 10,
"top": 10
}
},
"extensions": {
"theme": {
"use_system": true
}
},
"ntp": {
"most_visited_blacklist": {
"c8e0afd1da1d9e29511240861f795a5a": null,
"eacc8c3ad0b50bd698ef8752d5ee24b6": null
}
},
"safebrowsing": {
"enabled": false,
"scout_group_selected": true
}
}

View File

@ -0,0 +1 @@
include "/usr/share/themes/MurrinaChrome/gtk-2.0/gtkrc"

View File

@ -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

View File

@ -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

View File

@ -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]

View File

@ -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

View File

@ -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

View File

@ -0,0 +1 @@
fbsetroot|-foreground #7790aa -solid #7790aa|style|:0.0

View File

@ -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]

View File

@ -0,0 +1,2 @@
! The following line will prevent styles from setting the background.
! background: none

View File

@ -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/guest/$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

View File

@ -0,0 +1,15 @@
[begin]
[shade]
[stick]
[maximize]
[iconify]
[raise]
[lower]
[settitledialog]
[sendto]
[layer]
[alpha]
[extramenus]
[separator]
[close]
[end]

View File

@ -0,0 +1 @@
include "/usr/share/themes/MurrinaChrome/gtk-2.0/gtkrc"

View File

@ -0,0 +1 @@
startfluxbox

View File

@ -0,0 +1,39 @@
#!/bin/bash
COMMAND=$(
xlunch_genquick 64 --desktop | \
xlunch --border 7% --sideborder 10% --borderratio 100 --sideborderratio 50 \
--background /usr/share/wallpapers/slax_wallpaper.jpg --font DejaVuSans/11 \
--voidclickterminate --iconpadding 40 --textpadding 10 \
--leastmargin 6 --hidemissing --iconsize 64 \
--highlight /usr/share/icons/hicolor/128x128/apps/xlunch_highlight.png \
--outputonly
)
if [ "$COMMAND" = "" ]; then
exit
fi
fbstartupnotify
# if command is a .desktop file, parse it
if [[ "$COMMAND" =~ \.desktop ]]; then
NoTerm="$(cat "$COMMAND" | grep Terminal\\s*= | grep -i "Terminal\\s*=\\s*false")"
COMMAND="$(cat "$COMMAND" | grep Exec\\s*= | head -n 1 | sed -r s/.*=// | sed -r "s/%[^%]+//g")"
fi
cmd="$(echo $COMMAND | sed -r "s/\\s.*//")"
whi="$(which $cmd | head -n 1)"
Xdep=$(ldd $whi | grep libX11)
Ndep=$(ldd $whi | grep libncurses)
WAIT='echo "--------------------------------------------------"; read -n 1 -s -r -p "Command finished. Press any key to close window..."'
if [ "$Ndep" != "" -o "$cmd" = "man" -o "$cmd" = "mc" ]; then
WAIT=""
fi
if [ "$Xdep" = "" -a "$cmd" != "chromium" -a "$cmd" != "wicd-manager" -a "$cmd" != "fbliveapp" -a "$NoTerm" = "" ]; then
exec xterm -ls -e bash --login -c -- "echo $USER@$HOSTNAME:$PWD# '$COMMAND'; $COMMAND; $WAIT"
else
exec $COMMAND
fi

View File

@ -0,0 +1,83 @@
#!/bin/bash
if [ "$1" = "votecoin" ]; then
NAME="VoteCoin Wallet"
ABOUT="VoteCoin Wallet is a crypto currency wallet,
forked from ZCash, which itslef forked from Bitcoin.
It supports fully anonymous transactions and voting.
Receive free 10 VOT coins for installing the wallet.
In the future, VoteCoin will be used for decision
funding in Slax."
TMP="/tmp/votecoin.tar.gz"
EXECUTABLE="/opt/VoteCoin Wallet-linux-x64/VoteCoin Wallet"
INSTALL="wget -O $TMP 'https://votecoin.site/download.php?os=linux' && tar -xf $TMP -C /opt && rm -f $TMP && apt install --yes libxss1 libgconf-2-4 libnss3"
POSTINSTALL=""
ONLY64=true
fi
if [ "$1" = "vlc" ]; then
NAME="VLC Video Player"
ABOUT="VLC Video Player is a free and open source multimedia player
and framework that plays most multimedia files as well as DVDs,
Audio CDs, CVDs, and various streaming protocols."
EXECUTABLE="/usr/bin/vlc"
INSTALL="apt install --yes vlc"
POSTINSTALL="rm /usr/share/applications/vlc.desktop; mkdir /home/guest/.config/vlc; echo '[qt4]
qt-privacy-ask=0' > /home/guest/.config/vlc/vlcrc;"
GUEST=true
fi
if [ "$1" = "chromium" ]; then
NAME="Chromium Web Browser"
ABOUT="Chromium is a free and open source version of
the famous Chrome browser, developed by Google."
EXECUTABLE="/usr/bin/chromium"
INSTALL="apt install --yes chromium chromium-sandbox"
POSTINSTALL="rm -f /usr/share/applications/chromium.desktop"
GUEST=true
fi
shift
# ------------------------------------------------
# do not touch anything below this line
# ------------------------------------------------
if [ "$ABOUT" != "" ]; then
ABOUT="$ABOUT
"
fi
if [ "$EXECUTABLE" = "" ]; then
exit
fi
if [ ! -f "$EXECUTABLE" ]; then
if [ $(uname -m) != 'x86_64' -a "$ONLY64" = "true" ]; then
gtkdialog -i /usr/share/icons/gnome/16x16/status/dialog-warning.png -t Error -m "$NAME only works in 64bit version of Slax" -y OK
exit 1
fi
if gtkdialog -i /usr/share/icons/gnome/16x16/status/dialog-question.png -t Question -m "$ABOUT$NAME is not yet installed.
Do you like to download and install it now?" -y Yes -n No; then
xterm -ls -e bash --login -c -- "$INSTALL; $POSTINSTALL"
fi
fi
if [ -f "$EXECUTABLE" ]; then
fbstartupnotify
if [ "$GUEST" = "true" -a "$EUID" -eq 0 ]; then
xhost + >/dev/null 2>/dev/null
exec su -c "$EXECUTABLE "$@"" guest
fi
exec "$EXECUTABLE" "$@"
fi

View File

@ -0,0 +1,31 @@
#!/bin/bash
COMMAND=$(
xlunch --input /etc/xlunch/logout.dsv --noprompt --border auto --sideborder auto --columns 3 --rows 1 \
--background /usr/share/wallpapers/slax_wallpaper.jpg --font DejaVuSans/11 \
--voidclickterminate --iconpadding 30 --textpadding 10 \
--leastmargin 10 --hidemissing --iconsize 128 \
--highlight /usr/share/icons/hicolor/128x128/apps/xlunch_highlight.png \
--outputonly
)
SND=/usr/share/sounds/shutdown.wav
if [ "$COMMAND" != "" -a -r $SND ]; then
# blank desktop with smooth effect (if compton still running)
xlunch --noprompt --input /dev/null --bc 111111ff &
# play shutdown sound
aplay $SND
fi
if [ "$COMMAND" = "logout" ]; then
killall Xorg
fi
if [ "$COMMAND" = "restart" ]; then
reboot
fi
if [ "$COMMAND" = "shutdown" ]; then
poweroff
fi

View File

@ -0,0 +1,18 @@
#!/bin/bash
PICTURES=~/Pictures
mkdir -p $PICTURES
cd $PICTURES
# make screenshot
SCREENSHOT=$(scrot -e 'echo $f')
if [ "$SCREENSHOT" = "" ]; then
exit 1
fi
# open screenshot in 2/3 window
read W H X <<< $(xrandr 2>/dev/null | fgrep '*' | tr -s " " | tr "x" " ")
W=$(($W*2/3))
H=$(($H*2/3))
exec feh --geometry $W"x"$H $SCREENSHOT

View File

@ -0,0 +1,17 @@
#!/bin/bash
SIGNAL=~/.fehbg
rm -f $SIGNAL
OUTPUT=$(xrandr 2>/dev/null | grep -iv disconnected | grep -i 'connected' | head -n 1 | cut -d " " -f 1)
MODE=$1
xrandr --output $OUTPUT --mode $MODE -s $MODE
while [ -e $SIGNAL ]; do
sleep 0.1
done
sleep 1
killall -SIGUSR1 compton

View File

@ -0,0 +1,4 @@
#!/bin/bash
setxkbmap $1
echo $1 > ~/.fluxbox/kblayout

View File

@ -0,0 +1,18 @@
#!/bin/bash
CURSORSDIR=/usr/share/icons/breeze_cursors/cursors/
SIZE=16
# Set cursor to wait. As soon as new window is detected, change cursor back
xsetroot -xcf $CURSORSDIR/left_ptr_watch $SIZE
export WINDOWS="$(wmctrl -l)"
(
sleep 0.2
until diff <(echo "$WINDOWS") <(wmctrl -l) | egrep -q "^[>]"; do
sleep 0.5
done
xsetroot -xcf $CURSORSDIR/left_ptr $SIZE
) &
exit 0

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Icon=terminal
Name=Terminal
Exec=xterm -ls
Terminal=false

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Version=1.0
Name=Web Browser
GenericName=Web Browser
Exec=fbliveapp chromium %U
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chromium.png
Categories=Network;WebBrowser;
MimeType=audio/*;image/*;video/*;application/pdf;application/x-pdf;text/html;text/xml;application/xhtml_xml;application/x-mimearchive;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=chromium
StartupNotify=true

View File

@ -0,0 +1,14 @@
[Desktop Entry]
Version=1.0
Name=Image viewer
GenericName=Image viewer
Exec=feh %U
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=none.png
Categories=ImageViewer;
MimeType=image/*;
StartupWMClass=feh
StartupNotify=true
Hidden=true

View File

@ -0,0 +1,132 @@
[Default Applications]
application/pdf=chromium.desktop;
application/x-pdf=chromium.desktop;
audio/3gpp=chromium.desktop;
audio/ac3=chromium.desktop;
audio/flac=chromium.desktop;
audio/mp4=chromium.desktop;
audio/mpeg=chromium.desktop;
audio/mpegurl=chromium.desktop;
audio/ogg=chromium.desktop;
audio/x-flac=chromium.desktop;
audio/x-gsm=chromium.desktop;
audio/x-it=chromium.desktop;
audio/x-m4a=chromium.desktop;
audio/x-matroska=chromium.desktop;
audio/x-mod=chromium.desktop;
audio/x-mp3=chromium.desktop;
audio/x-mpeg=chromium.desktop;
audio/x-mpegurl=chromium.desktop;
audio/x-pn-wav=chromium.desktop;;
audio/x-tta=chromium.desktop;
audio/x-vorbis=chromium.desktop;
audio/x-vorbis+ogg=chromium.desktop;
audio/x-wav=chromium.desktop;
audio/x-wavpack=chromium.desktop;
audio/x-xm=chromium.desktop;
application/ogg=chromium.desktop;
application/x-extension-m4a=chromium.desktop;
application/x-extension-mp4=chromium.desktop;
application/x-flac=chromium.desktop;
application/x-flash-video=chromium.desktop;
application/x-ogg=chromium.desktop;
image/bmp=feh.desktop;
image/gif=feh.desktop;
image/jpeg=feh.desktop;
image/jpg=feh.desktop;
image/pjpeg=feh.desktop;
image/png=feh.desktop;
image/svg+xml=chromium.desktop;
image/svg+xml-compressed=chromium.desktop;
image/x-bmp=feh.desktop;
image/x-gray=chromium.desktop;
image/x-icb=chromium.desktop;
image/x-ico=chromium.desktop;
image/x-pcx=chromium.desktop;
image/x-png=feh.desktop;
image/x-portable-anymap=chromium.desktop;
image/x-portable-bitmap=chromium.desktop;
image/x-portable-graymap=chromium.desktop;
image/x-portable-pixmap=chromium.desktop;
image/x-xbitmap=chromium.desktop;
image/x-xpixmap=chromium.desktop;
image/vnd.wap.wbmp=chromium.desktop;
image/x-fits=gimp.desktop
image/x-icon=gimp.desktop
image/x-sun-raster=gimp.desktop
image/x-tga=gimp.desktop
image/x-xcf=gimp.desktop
image/x-xwindowdump=gimp.desktop
video/3gpp=chromium.desktop;
video/dv=chromium.desktop;
video/fli=chromium.desktop;
video/flv=chromium.desktop;
video/mp2t=chromium.desktop;
video/mp4=chromium.desktop;
video/mp4v-es=chromium.desktop;
video/mpeg=chromium.desktop;
video/msvideo=chromium.desktop;
video/ogg=chromium.desktop;
video/quicktime=chromium.desktop;
video/vivo=chromium.desktop;
video/vnd.divx=chromium.desktop;
video/vnd.rn-realvideo=chromium.desktop;
video/vnd.vivo=chromium.desktop;
video/webm=chromium.desktop;
video/x-anim=chromium.desktop;
video/x-avi=chromium.desktop;
video/x-flc=chromium.desktop;
video/x-fli=chromium.desktop;
video/x-flic=chromium.desktop;
video/x-flv=chromium.desktop;
video/x-m4v=chromium.desktop;
video/x-matroska=chromium.desktop;
video/x-mpeg=chromium.desktop;
video/x-ogm+ogg=chromium.desktop;
video/x-theora+ogg=chromium.desktop;
application/x-flash-video=chromium.desktop;
text/plain=leafpad.desktop;
text/css=leafpad.desktop;
text/javascript=leafpad.desktop;
text/mathml=leafpad.desktop;
text/x-c++hdr=leafpad.desktop;
text/x-c++src=leafpad.desktop;
text/x-csrc=leafpad.desktop;
text/x-chdr=leafpad.desktop;
text/x-dtd=leafpad.desktop;
text/x-java=leafpad.desktop;
text/x-javascript=leafpad.desktop;
text/x-makefile=leafpad.desktop;
text/x-moc=leafpad.desktop;
text/x-pascal=leafpad.desktop;
text/x-patch=leafpad.desktop;
text/x-perl=leafpad.desktop;
text/x-php=leafpad.desktop;
text/x-python=leafpad.desktop;
text/x-sql=leafpad.desktop;
text/x-tcl=leafpad.desktop;
text/x-tex=leafpad.desktop;
text/xml=leafpad.desktop;
application/javascript=leafpad.desktop;
application/x-cgi=leafpad.desktop;
application/x-javascript=leafpad.desktop;
application/x-perl=leafpad.desktop;
application/x-php=leafpad.desktop;
application/x-python=leafpad.desktop;
application/x-shellscript=leafpad.desktop;
application/xml=leafpad.desktop;
application/xml-dtd=leafpad.desktop;
application/x-bzip=xarchiver.desktop;
application/x-bzip-compressed-tar=xarchiver.desktop;
application/x-gzip=xarchiver.desktop;
application/x-tar=xarchiver.desktop;
application/x-zip=xarchiver.desktop;
application/x-zip-compressed=xarchiver.desktop;
application/zip=xarchiver.desktop;
application/x-compressed-tar=xarchiver.desktop;
application/x-bzip2=xarchiver.desktop;
application/x-bzip2-compressed-tar=xarchiver.desktop;
application/x-lzma-compressed-tar=xarchiver.desktop;
application/x-lzma=xarchiver.desktop;
application/x-xz=xarchiver.desktop;
application/x-xz-compressed-tar=xarchiver.desktop;

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Icon=videoplayer
Name=Video Player
Exec=fbliveapp vlc
Terminal=false

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Icon=votecoin
Name=VoteCoin Wallet
Exec=fbliveapp votecoin
Terminal=false
Hidden=true

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -0,0 +1,114 @@
! Slax fluxbox theme
! (c) Tomas Matejicek <www.slax.org>
! common settings
*font: Bitstream Vera Sans-9
background: fullscreen
background.pixmap: /usr/share/wallpapers/slax_wallpaper.jpg
toolbar.justify: left
toolbar.clock.justify: right
window.justify: center
menu.title.justify: center
menu.frame.justify: left
! window
window.focus.backgroundColor: #63b4fb
window.unfocus.backgroundColor: #ebebeb
window.focus.borderColor: #63b4fb
window.unfocus.borderColor: #ebebeb
window.borderWidth: 6
window.handleWidth: 0
! title
window.title.height: 18
window.title.focus: flat solid
window.title.focus.color: #63b4fb
window.label.focus: parentrelative
window.label.focus.textColor: #282828
window.title.unfocus: flat solid
window.title.unfocus.color: #ebebeb
window.label.unfocus: parentrelative
window.label.unfocus.textColor: #282828
! buttons
window.button.focus: flat solid
window.button.focus.color: #63b4fb
window.button.focus.picColor: #282828
window.button.pressed: sunken solid
window.button.pressed.color: #63b4fb
window.button.pressed.picColor: #000000
window.button.unfocus: flat solid
window.button.unfocus.color: #ebebeb
window.button.unfocus.picColor: #282828
window.close.pixmap: closefcs.png
window.close.unfocus.pixmap: closeunfcs.png
window.close.pressed.pixmap: closepr.png
window.iconify.pixmap: minfcs.png
window.iconify.unfocus.pixmap: minunfcs.png
window.iconify.pressed.pixmap: minpr.png
window.maximize.pixmap: maxfcs.png
window.maximize.unfocus.pixmap: maxunfcs.png
window.maximize.pressed.pixmap: maxpr.png
! taskbar
toolbar.height: 18
toolbar.bevelWidth: 0
toolbar.borderWidth: 3
toolbar.borderColor: #222222
toolbar: flat solid
toolbar.color: #222222
toolbar.clock: flat solid
toolbar.clock.color: #222222
toolbar.clock.textColor: white
toolbar.iconbar.empty: flat
toolbar.iconbar.empty.color: #222222
toolbar.iconbar.focused.borderWidth: 15
toolbar.iconbar.focused.borderColor: #222222
toolbar.iconbar.focused: flat
toolbar.iconbar.focused.color: #dddddd
toolbar.iconbar.focused.textColor: #282828
toolbar.iconbar.focused.justify: left
toolbar.iconbar.unfocused.borderWidth: 15
toolbar.iconbar.unfocused.borderColor: #222222
toolbar.iconbar.unfocused: flat
toolbar.iconbar.unfocused.color: #444444
toolbar.iconbar.unfocused.textColor: white
toolbar.iconbar.unfocused.justify: left
toolbar.button: flat solid
toolbar.button.borderWidth: 13
toolbar.button.borderColor: #222222
toolbar.button.color: #222222
toolbar.button.picColor: #61CA00
toolbar.button.pressed: flat solid
! menu
menu.title: flat solid
menu.title.color: #63b4fb
menu.title.textColor: #282828
menu.title.justify: center
menu.bevelWidth: 4
menu.borderWidth: 6
menu.borderColor: #63b4fb
menu.frame: flat solid
menu.frame.disableColor: #999999
menu.frame.color: #ebebeb
menu.frame.textColor: #282828
menu.frame.justify: left
menu.hilite: flat solid
menu.hilite.textColor: #ffffff
menu.hilite.color: #63b4fb
menu.bullet: empty
menu.bullet.position: right
menu.itemHeight: 24

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

View File

@ -0,0 +1,6 @@
#define command2_width 16
#define command2_height 16
static unsigned char command2_bits[] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xff, 0xe7, 0xff, 0xcf, 0xff,
0x9f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x9f, 0xff, 0xcf, 0xff, 0xe7, 0xc1,
0xf7, 0xc1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 546 B

Some files were not shown because too many files have changed in this diff Show More