Linux general questions and answer

cayoenrique

Member
Messages
475
Code:
Don't worry about it, I will work under Windows environment
Please complete the lessons[code]
Is this is what you want then I be it.  Now if your second objective is learning to use Linux.  Then I strongly suggest you dedicate at lest 100GB for Linux projects exclusive use.  If I would you and E is really empty,  I would used that for ext4.  If it is too much, then delete the partition E the create instead 100 GB at the end formatted to ext4 .  Something like that.
 

cayoenrique

Member
Messages
475
IMPORTANT
Once you change a disk partition to ext Windows can not access it. But there are drivers that can be install that allow Win7 to read from that ext partition. On boot disk is better to place ext4 as last partition.

All depends if your disk is Partition Table is GPT or old MSDOS stile. Now from old post yours seems to me MSDOS

In general:
gparted In Linux the GUI aplication for partitioning disk is gparted.
parted terminal app used for DOS stile
gdisk terminal app used for GPT

Code:
sudo apt update
sudo apt install parted gdisk gparted

To list your partition in sda we do
Code:
sudo parted /dev/sda -s print

You should read something similar to this. Clearly different as you did modify your disk from this early set up.
Code:
$ sudo parted /dev/sda -s print
Model: ATA WDC WD10JPVX-75J (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 32.3kB 106MB 106MB primary
2 106MB 199GB 199GB primary ntfs boot
3 199GB 1000GB 801GB primary

IMPORTANT make sure you do see that partition 3 is the empty one, the 390.6GB. If you choose wrong one you will loose that data on it as you are formatting.
390.6GB of your 1TB is a big chunk. But it will be the easiest for now. I will then assume the whole disk will be ext4.

Now that you made sure your self it is in fact sda3 then lets format it. Notice that -L Linuxdata is to tell to write a name label to it. You can use any name you want.
Code:
mkfs.ext4 -F -L Linuxdata /dev/sda3

You can reprint partition info to see the difference
Code:
sudo parted /dev/sda -s print

After you format you should be able to mount it using File manager. if not you can mount it in terminal by
Code:
sudo mount /dev/sda3 /mnt/sda3

What next?
You never told me if you enjoy XCFE4 or you like better the LXDE stile. I know you want to use what I got.
Next I will post how to build the Busterdog the way I like it. But it is a choice you have to make. The important is that my system have most of the stuff installed. So that my change.dat is not used-up for this basic packages.
 
Last edited:

Me2019H

Registered
Messages
101
I formatted the partition E:\

root@live:~# sudo parted /dev/sda -s print
Model: ATA WDC WD10JPVX-75J (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 32.3kB 106MB 106MB primary
2 106MB 199GB 199GB primary ntfs boot
3 199GB 1000GB 801GB primary

root@live:~#
root@live:~#
root@live:~# mkfs.ext4 -F -L Linuxdata /dev/sda3
mke2fs 1.44.5 (15-Dec-2018)
/dev/sda3 contains a ntfs file system
Creating filesystem with 102400000 4k blocks and 25600000 inodes
Filesystem UUID: 778ca744-8b31-43b3-97da-23d191f3e157
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968

Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done

root@live:~#
root@live:~# sudo parted /dev/sda -s print
Model: ATA WDC WD10JPVX-75J (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 32.3kB 106MB 106MB primary
2 106MB 199GB 199GB primary ntfs boot
3 199GB 1000GB 801GB primary

root@live:~# sudo mount /dev/sda3 /mnt/sda3
mount: /mnt/sda3: /dev/sda3 already mounted on /mnt/sda3.
root@live:~#

Now how do I build BusterDog OS as you want me to do
 

cayoenrique

Member
Messages
475
NOTE:
1-I write sudo for just in case. In reality we are root and do not need sudo.
2-I am not forcing you to do this. You ask me you want to have same I have. You will requre to
download as much as a full Linux distro. I am not really surea but I guess from 500Mib to 1 Gib.
It is a complete system with Libreoffice, gimp, imagemagic, pdf viwers, had codeblock and basic GNU compiler
It can execute i686 as wellas AMDx64.
It has wireshark to screen USB or sockets transmitions.
It can crosscompile ARM
It has quemu to do emulation
And many more stuff. But it only have basic stuff from Busterdog. I like it as Debian as it can be.

3-Once you start be carefull. in particular when the XTERM terminal opens. If you close it it will not open again.
So C&P all comands one by one. DONOT USE [CTRL-C] for copy. [CTRL-C] in Linux means Force Close the program.
So in XTERM C & P has to be done the old way.
...Copy Action
......You click at the top of the geany editor window.
......You select (MARK) by mouse Left CLICK DOWN + swipe + left ClICK release.

...Paste Action
......You click at the top of the XTERM window
......You paste by doing a click over the mouse wheel. If it does the past then you hit [ENTER]

And you repeat for every line.

--------------------------------------------------------------

1) Ok lets start. Our clock has to be correct to prevent files to fail download.

Code:
sudo peasyclock
Select timezone [set]
Select NTP server [set]
[Refresh]
In update hardware clock select Local Time [set]

2) Lets create a working area in new sda3 ext4
Code:
cd /mnt/sda3
mkdir -p BusterDog64
cd BusterDog64

3) Lets download mklive from github:
Code:
wget --no-check-certificate  https://debiandog.github.io/MakeLive/mklive-buster
chmod +x mklive-buster

4) Lets download my suggested config.
20230904_Buster_build_setup.conf.zip (3.40 KB)
Code:
wudget https://workupload.com/file/c55jJvzPQTN
unzip 20230904_Buster_build_setup.conf.zip

Just so you can see what's in it do
Code:
cat 20230904_Buster_build_setup.conf

5) Lets build
Code:
time ./mklive-buster -cli 20230904_Buster_build_setup.conf 2>&1 | tee 20230904_Buster_build_setup.conf.log

a) Then I am ask:
Do you want to run Xterm just before exiting chroot ? (Enter=no) (y/N)?Y Press Y [ENTER]

b) If you had re-run the app you may be ask
Are you sure to delete contents of directory buster? (Enter=yes) (Y/n)?Y Press Y [ENTER]

c) Note: You may see but just ignore "The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4EB27DB2A3B88B8B"

d) Make sure do not have caps-lock write your new password do not forget about it. So write it down here or on another file.
Then You are ask:
Please set the password for 'root'
Also now you may want to add to or edit files in buster/chroot
New password:
 

cayoenrique

Member
Messages
475
e) Then ask
Please set the password for user 'puppy'
New password:


f) Then you are ask for ketboard I hit [ENTER] as English US is 1rst one ( enter becaouse [ok] is alredy selected)

g) Note:
Package wireshark-common will pop up a window asking you to select you can choose either. The correct one is [Yes] be coause we are single seated root. ther is no more risk! We run as root anyway. So press "Y"[Enter]
Package UExtract will popup asking to create desktop shorcut. I guess select NO with mouse
When package packit gets install will popup a small window sking if you want a shortcut. I hit [NO]s.

h) Almost at the end a XTERM terminal will popup. If you remenber we ask for it at the bebining. Enter this commads
XTERM use old C&P. You can mark this line then leaving them mark you go to XTERM and lick over Maouse wheel this is paste
Code:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get dist-upgrade  
sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
ln -s /usr/lib/x86_64-linux-gnu/libhunspell-1.7.so.0 /usr/lib/x86_64-linux-gnu/libhunspell-1.6.so.0
exit

i) Then it ask you to make manual changes or hit [Enter]
At this point you may want to add/edit files in chroot folder
Also you can add .squashfs modules in the isodata/live folder, to be included in the ISO
Press ENTER to continue . . .


Press [Enter]

j) Last I choose xz
Now we will create compressed filesystem: '01-filesystem.squashfs'
Please enter your choice, xz compression will give smaller size than gzip,
but xz takes much longer time to compress
Type gzip or xz : xz


xz [Enter]


k) At the end you will see something like this
Code:
Finished! If all went well, DebLive_buster-amd64.iso has been created. 
Also the required files for a frugal install are in isodata 'live' folder 

Have a good day!


real	92m0.678s
user	42m54.698s
sys	2m21.167s
root@mumble:#
 

cayoenrique

Member
Messages
475
Part two how to install it

You had download from 500mib to 1Gib. If you what to try that again you do not want to download 1 Gib again.
So lest make a backup copy. Beware that every time you run the build program it will want to delete all.
That is why we make a copy. I do not have time to explain again how to restore packages so that they do not get download.
If you need to try again please remind me I will explain.

1) I assume you are at /mnt/sda3/BusterDog64

Code:
mkdir -p backup/buster
cd backup/buster
tar cf backup/buster/apt.tar buster/chroot/var/cache/apt
mv buster/DebLive_buster-amd64.iso  backup/buster/
mv buster/dog-boot-buster-20191026.tar.gz  backup/buster/
mv buster/isodata-buster.tar.gz  backup/buster/
mv buster/kernel-ceres-amd64.tar.gz  backup/buster/

2) For now we will install it in USB. Now lets create or move what we need to USB BusterDog19
You need to mount usb if it is not mounted yet.
Code:
mount /dev/sdb1 /mnt/sdb1

3) Lets create /mnt/sdb1/BusterDog19
Code:
mkdir -p /mnt/sdb1/BusterDog19
cp -R /sda3/BusterDog64/buster/isodata/live /mnt/sdb1/BusterDog19/

4) Now lets update kernel to amd64_4.19
Code:
cd /mnt/sda3/BusterDog64/backup
wudget https://workupload.com/file/wuZTSdChaQx
mv 62-linux-headers-4.19.0-19-amd64_4.19.232-1_amd64.squashfs /mnt/sdb1/BusterDog19/live/base
wget --no-check-certificate https://github.com/DebianDog/BusterDog/releases/download/v0.2/k-4.19.0-19-amd64.tar.gz 
tar -xvzf k-4.19.0-19-amd64.tar.gz
cp -f initrd.img /mnt/sdb1/BusterDog19/live/
cp -f initrd1.xz /mnt/sdb1/BusterDog19/live/
cp -f k-4.19.0-19-amd64.squashfs /mnt/sdb1/BusterDog19/live/
cp -f vmlinuz1 /mnt/sdb1/BusterDog19/live/
rm -f /mnt/sdb1/BusterDog19/live/k-4.19.0-17-amd64.squashfs
 

cayoenrique

Member
Messages
475
Part three
Finally wee need to update USB menu to look for new created folder.
Here is where we may have a problem. I did install image on my USB using Rufus.
Your past description of the menus seams to suggest you USB is using GRUB2 files.
My installation uses isolinux? Why they are different I do not know. You need to figure out which is the one you need to change.

use geany to edit isolinux menu config

Code:
geany /mnt/sdb1/isolinux/live.cfg

Add at the end add.
Code:
label BusterDog19
kernel /BusterDog19/live/vmlinuz1
append initrd=/BusterDog19/live/initrd1.xz from=/BusterDog19 changes=/BusterDog19/live/changes.dat

label BusterDog19 save changes only exit
kernel /BusterDog19/live/vmlinuz1
append initrd=/BusterDog19/live/initrd1.xz from=/BusterDog19 changes=EXIT:/BusterDog19/live/changes.dat


or use geany to edit grub menu config

Code:
geany /mnt/sdb1/boot/grub/grub.cfg

Add at the end add.
Code:
menuentry "BusterDog19" {
linux /BusterDog19/live/vmlinuz1 from=/BusterDog19 changes=/BusterDog19/live/changes.dat
initrd /BusterDog19/live/initrd1.xz
}

menuentry "BusterDog19 save changes only on exit" {
linux /BusterDog19/live/vmlinuz1 from=/BusterDog19 changes=/BusterDog19/live/changes.dat
initrd /BusterDog19/live/initrd1.xz
}

Now I am not sure if you will have space to create a 3-4GB change.dat.
Just for testing create one as big as you can. So you can try my version of Busterdog
There are more settings I will like to give you but it is to late I will go to sleep.

Once you are comfortable we see what we can do to improve.
 

cayoenrique

Member
Messages
475
Upss!
secon
second grub.cfg should read
menuentry "BusterDog19 save changes only on exit" {
linux /BusterDog19/live/vmlinuz1 from=/BusterDog19 changes=EXIT:/BusterDog19/live/changes.dat
initrd /BusterDog19/live/initrd1.xz
}

So you can choose not to save at the end. This feature allows you to prevent attacks. If you do not save the changes made by the attack will not survive
 

Me2019H

Registered
Messages
101
Some commands did not run like the first one

sudo peasyclock

i got over it and i continued

this command too
ln -s /usr/lib/x86_64-linux-gnu/libhunspell-1.7.so.0 /usr/lib/x86_64-linux-gnu/libhunspell-1.6.so.0

root@live:~# sudo peasyclock
sudo: peasyclock: command not found
root@live:~# cd /mnt/sda3
root@live:/mnt/sda3# mkdir -p BusterDog64
root@live:/mnt/sda3# cd BusterDog64
root@live:/mnt/sda3/BusterDog64# wget --no-check-certificate https://debiandog.github.io/MakeLive/mklive-buster
--2023-09-05 22:24:01-- https://debiandog.github.io/MakeLive/mklive-buster
Resolving debiandog.github.io (debiandog.github.io)... 185.199.108.153, 185.199.109.153, 185.199.110.153, ...
Connecting to debiandog.github.io (debiandog.github.io)|185.199.108.153|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50994 (50K) [application/octet-stream]
Saving to: ‘mklive-buster’

mklive-buster 100%[===================>] 49.80K 44.8KB/s in 1.1s

2023-09-05 22:24:03 (44.8 KB/s) - ‘mklive-buster’ saved [50994/50994]

root@live:/mnt/sda3/BusterDog64# unzip 20230904_Buster_build_setup.conf.zip
Archive: 20230904_Buster_build_setup.conf.zip
inflating: 20230904_Buster_build_setup.conf
root@live:/mnt/sda3/BusterDog64# cat 20230904_Buster_build_setup.conf
# Configuration for mklive-buster, generated for architecture: amd64, modify as desired
# NOTE: Leave every commented (#) line commented as it is
### Start configuration

# Be careful with removing from this section (mostly essential)
BASE_INSTALL="wget net-tools ifupdown wireless-tools sysvinit-core xserver-xorg-core xserver-xorg psmisc fuse x11-utils x11-xserver-utils dbus-x11 busybox sudo mawk xinit xterm pciutils usbutils file rsync dosfstools volumeicon-alsa alsa-utils pm-utils xdotool wmctrl desktop-file-utils xdg-utils mime-support cryptsetup-bin squashfs-tools fakeroot xserver-xorg-input-evdev pv xserver-xorg-input-synaptics ntfs-3g nano xserver-xorg-video-intel curl gettext-base"

# Base Dog Packages, recommended to keep:
# yad gtkdialog obshutdown pup-volume-monitor peasywifi
BASE_DOG_APPS_INSTALL="yad gtkdialog obshutdown peasywifi chpupsocket edit-sfs-pcmanfm filemnt-pcmanfm remaster-scripts quick-remaster apt2sfs sfsload fixdepinstall greybird-theme-dd-stretch makedebpackage sound-card-selector uextract"

BASE_APPS_INSTALL="gparted parted synaptic viewnior conky rfkill gvfs-backends gvfs-fuse geany mtp-tools libmtp-runtime
aapt
adb
adduser
adwaita-icon-theme
aidl
alsa-utils
android-libaapt
android-libadb
android-libandroidfw
android-libart
android-libbacktrace
android-libbase
android-libboringssl
android-libcrypto-utils
android-libcutils
android-libetc1
android-libf2fs-utils
android-liblog
android-libnativebridge
android-libnativehelper
android-libnativeloader
android-libsparse
android-libunwind
android-libutils
android-libziparchive
android-sdk
android-sdk-build-tools
android-sdk-build-tools-common
android-sdk-common
android-sdk-platform-tools
android-sdk-platform-tools-common
android-tools-adb
android-tools-fastboot
apksigner
apt
apt-transport-https
apt-utils
arp-scan
aspell
aspell-en
aufs-tools
autoconf
automake
autopoint
autotools-dev
base-files
base-passwd
bc
binfmt-support
binutils
binutils-arm-linux-gnueabi
binutils-arm-linux-gnueabihf
binutils-common
binutils-x86-64-linux-gnu
binwalk
bison
bsdmainutils
bsdutils
bubblewrap
build-essential
busybox
bzip2
ca-certificates
ca-certificates-java
cabextract
ccrypt
clinfo
cmake
cmake-data
codeblocks
codeblocks-contrib
conky
conky-std
coreutils
cpio
cpp-8-arm-linux-gnueabihf
cpp-arm-linux-gnueabihf
cryptsetup
curl
cutecom
dalvik-exchange
dash
dbus
dbus-x11
dconf-gsettings-backend
dconf-service
debconf
debhelper
debian-archive-keyring
debianutils
debootstrap
default-jdk-headless
default-jre
default-jre-headless
desktop-file-utils
device-tree-compiler
devscripts
dexdump
dh-autoreconf
dh-python
dh-strip-nondeterminism
dialog
dictionaries-common
diffutils
dirmngr
disktype
dkms
dmidecode
dmsetup
dmtracedump
dosfstools
doxygen
dpkg
dpkg-dev
dropbear-bin
dropbear-initramfs
dropbear-run
dtv-scan-tables
dvb-apps
dvb-tools
dvbsnoop
dwz
e2fsprogs
elinks
elinks-data
elogind
emacsen-common
equivs
etc1tool
f2fs-tools
fakeroot
fastboot
fastjar
fdisk
ffmpeg
file
findutils
flex
fontconfig
fontconfig-config
fonts-dejavu-core
fuse
g++-8-arm-linux-gnueabihf
g++-arm-linux-gnueabihf
galculator
gcc-8-arm-linux-gnueabihf
gcc-8-arm-linux-gnueabihf-base
gcc-8-cross-base
gcc-arm-linux-gnueabihf
gdb
gdisk
geany
gettext
gettext-base
ghc
gimp
gir1.2-atk-1.0
gir1.2-freedesktop
gir1.2-gdkpixbuf-2.0
gir1.2-glib-2.0
gir1.2-gtk-3.0
gir1.2-gtksource-3.0
gir1.2-ibus-1.0
gir1.2-pango-1.0
git
git-man
glib-networking
glib-networking-common
glib-networking-services
gnupg
gnupg-l10n
gnupg-utils
gparted
gpg
gpg-agent
gpg-wks-client
gpg-wks-server
gpgconf
gpgsm
gpgv
graphviz
grep
groff-base
gsettings-desktop-schemas
gtk-update-icon-cache
gtk2-engines-murrine
gtk2-engines-pixbuf
gvfs
gvfs-backends
gvfs-common
gvfs-daemons
gvfs-fuse
gvfs-libs
gzip
hdparm
hicolor-icon-theme
hostname
hprof-conv
hunspell
icu-devtools
ieee-data
ifupdown
imagemagick
init-system-helpers
initramfs-tools
initramfs-tools-core
initscripts
insserv
intltool-debian
iproute2
iptables
iso-codes
isolinux
jarwrapper
java-common
jq
keyboard-configuration
klibc-utils
kmod
libreoffice
libtool
live-boot
lm-sensors
lsb-base
lsof
lxappearance
lxinput
lxmenu-data
lxpanel
lxpanel-data
lxrandr
lxterminal
lzop
m4
make
man-db
mawk
meld
menu
mesa-common-dev
meson
mime-support
mount
mpv
multiarch-support
nano
ncurses-base
ncurses-bin
net-tools
netbase
netcat
netcat-traditional
ninja-build
nmap
nmap-common
ntfs-3g
ntpdate
numlockx
nvidia-detect
nvidia-xconfig
ocl-icd-libopencl1
ocl-icd-opencl-dev
opencl-c-headers
openjdk-11-jdk
openjdk-11-jdk-headless
openjdk-11-jre
openjdk-11-jre-headless
openssl
optipng
p7zip
p7zip-full
parcellite
parted
patch
patchutils
pciutils
pcmanfm
perl
perl-base
perl-modules-5.28
perl-openssl-defaults
pinentry-curses
pkg-config
pm-utils
po-debconf
policykit-1
powermgmt-base
procps
progress
proguard-cli
psmisc
pv
python
python2
python3
qemu-user-static
qrencode
readline-common
rsync
rustc
samba-libs
sdparm
sed
sensible-utils
sg3-utils
shared-mime-info
smartmontools
sound-theme-freedesktop
sox
split-select
sqlite3
squashfs-tools
startpar
subversion
sudo
synaptic
sysstat
sysv-rc
tar
tcpdump
tex-common
texinfo
tftpd-hpa
tnef
tree
tshark
tstools
tzdata
u-boot-tools
ucf
udev
udisks2
unionfs-fuse
unrar
unzip
usb.ids
usbutils
util-linux
uuid-dev
viewnior
w-scan
wdiff
wget
wireless-tools
wireshark-common
wmctrl
wpasupplicant
xbitmaps
xdotool
xinit
xkb-data
xorg-sgml-doctools
xorriso
xterm
xtrans-dev
xxd
xz-utils
zenity
zenity-common
zipalign
zlib1g
zlib1g-dev
"

DESK_APPS_INSTALL="openbox=3.6.1-4.3 obconf pcmanfm lxpanel lxrandr lxinput libfm-modules lxappearance"

FIRMWARE="firmware-linux-free firmware-linux-nonfree firmware-misc-nonfree"

EXTRA_DOG_APPS_INSTALL="peasyclock pack-it"

REM_AUTO_INST="TRUE"

# Force 32 bit on 64 bit OS (set to FALSE for 64-bit build on 64-bit OS)
#
FORCE32="FALSE"

### End configuration

# A selection of firmware packages available (mostly for wireless):
# atmel-firmware firmware-realtek bluez-firmware firmware-atheros firmware-linux-free firmware-linux-nonfree firmware-netxen firmware-ti-connectivity firmware-b43legacy-installer firmware-iwlwifi firmware-ipw2x00 firmware-libertas firmware-intelwimax firmware-brcm80211 firmware-b43-installer firmware-qlogic firmware-bnx2 firmware-misc-nonfree firmware-bnx2x firmware-zd1211
# Some extra dog applications:
# debdoginstallscripts dogradio youtube-get2 youtube-viewer peasyfwmon gifondesktop upgrade-kernel conkyclock redshiftgui mpv peasymount peasyscale peasyxorburn peasyglue
# Choice of Desktop:
# Default is openbox with pcmanmfm providing the desktop, lxpanel, etc..
# To change, replace what is in the DESK_APPS_INSTALL field with for example:
# mate-core (for MATE), xfce4 (for XFCE), lxde (for LXDE)
# No guarantee that all work as expected, might require some fixing
# Remove automatically installed packages:
# During installing all the packages, some are installed that you might not need, e.g.
# xserver-xorg-video-vmware, REM_AUTO_INST=TRUE will uninstall it.
# (possibly (large) library libllvm3.9 will then be autoremoved, depending on your other package choices)
# To force 32 bit build on a 64 bit OS set FORCE32=TRUE
# Locales: To keep locale files, set to KEEP_LOCALES=yes on top of the script
root@live:/mnt/sda3/BusterDog64#
root@live:/mnt/sda3/BusterDog64#
root@live:/mnt/sda3/BusterDog64# time ./mklive-buster -cli 20230904_Buster_build_setup.conf 2>&1 | tee 20230904_Buster_build_setup.conf.log
bash: ./mklive-buster: Permission denied

real 0m0.024s
user 0m0.000s
sys 0m0.025s
root@live:/mnt/sda3/BusterDog64#
root@live:/mnt/sda3/BusterDog64# time ./mklive-buster -cli 20230904_Buster_build_setup.conf 2>&1 | tee 20230904_Buster_build_setup.conf.log
bash: ./mklive-buster: Permission denied

real 0m0.003s
user 0m0.002s
sys 0m0.003s
root@live:/mnt/sda3/BusterDog64# sudo dpkg --add-architecture i386
root@live:/mnt/sda3/BusterDog64# sudo apt-get update
Hit:1 http://security.debian.org buster/updates InRelease
.I Remove it becose The thread so long
root@live:/mnt/sda3/BusterDog64# sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
libjack0.I Remove it becose The thread so long
root@live:/mnt/sda3/BusterDog64# ln -s /usr/lib/x86_64-linux-gnu/libhunspell-1.7.so.0 /usr/lib/x86_64-linux-gnu/libhunspell-1.6.so.0
ln: failed to create symbolic link '/usr/lib/x86_64-linux-gnu/libhunspell-1.6.so.0': File exists
root@live:/mnt/sda3/BusterDog64#

btw

After the installation and reboot my laptop
m
A menu will appear so I can choose the OS I want i mean partition C:(Windows) OR partition E:\ BusterDog
 

cayoenrique

Member
Messages
475
You are at part1 fo my POST #15

From what you posted you never got to build as it failed. Let see the problems

1)
root@live:~# sudo peasyclock
sudo: peasyclock: command not found

This is weird as I expect you have that package. But have no inportance.
Just make sure your time is right.


2) OK

3) here is where you fail. after wget --no-check-certificate https://debiandog.github.io/MakeLive/mklive-buster
you where supposed to do chmod +x mklive-buster

So that program has no right to execute. You fail to give it execution rigth. You need to go back to
step 3). Quick recovery do:

Code:
cd /mnt/sda3/BusterDog64
chmod +x mklive-buster

and continue with step 5)

after it finish or fail look inside 20230904_Buster_build_setup.conf.log
It holds a log of what happened.
 

Me2019H

Registered
Messages
101
Hello,

OK

Finished! If all went well, DebLive_buster-amd64.iso has been created.
Also the required files for a frugal install are in isodata 'live' folder

Have a good day!


real 1090m28.414s
user 42m4.624s
sys 2m31.810s
root@live:/mnt/sda3/BusterDog64#

only one command didn't work
sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
The message "No such file or directory " appears something like this.
 

cayoenrique

Member
Messages
475
Do not build again yet. If you do it will download again all files, close to 1GB.
For now just make sure you save/backup the important files. You should have
Code:
enrique@live:$ ls -1 backup/buster
apt.tar
DebLive_buster-amd64.iso
dog-boot-buster-20191026.tar.gz
isodata-buster.tar.gz
kernel-ceres-amd64.tar.gz
enrique@live:$

And the apt.tar is a huge file I guess close to 1 GB.

Lets work with what you have 1rst. Lets go over. We build a HUGE OS to ensure that our change.dat will not have to grow/fill up, every time we do apt install.
Those OS file will be save inside 01-filesystem.squashfs. Lets say yours is close to 1GB. And this file is compressed. This means you are saving storage in your USB. The uncompressed Linux OS could be as much as 4-5 times bigger!.

Now about error This commands where meant to be done in the XTERM.
Your OS is a 64 bit amd64. Under usual installation the OS will not allow you to install from i686. This is why were require to add that extra architecture . Lets see the commands
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
ln -s /usr/lib/x86_64-linux-gnu/libhunspell-1.7.so.0 /usr/lib/x86_64-linux-gnu/libhunspell-1.6.so.0
exit

So if the libs did not installed the most ovious cause is that this commands did not went 1rst
sudo dpkg --add-architecture i386
sudo apt-get update

Like I said you will have a chance to build it again soon once I give you a modify installer that can used your backup files instead of downloading them again. Do not worry.
----------------------------------------------------------------------------------------------------------

Now You did not mention if you had trouble installing and booting from USB? DO you have space for the new change.dat to be created inside /BusterDog19/live ?

What about, did you like the new OS? I add some extra settings to work the way I like. I can show you once you tell me all install ok.
 

Me2019H

Registered
Messages
101
root@live:~# cd /mnt/sda3/BusterDog64
root@live:/mnt/sda3/BusterDog64# mkdir -p backup/buster
root@live:/mnt/sda3/BusterDog64# cd backup/buster
root@live:/mnt/sda3/BusterDog64/backup/buster# tar cf backup/buster/apt.tar buster/chroot/var/cache/apt
tar: backup/buster/apt.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
root@live:/mnt/sda3/BusterDog64/backup/buster#
where is the file apt

root@live:/mnt/sda3/BusterDog64/backup/buster# ls /mnt/sda3/BusterDog64/buster/chroot/var/cache
apt debconf dictionaries-common fontconfig fonts ldconfig man pm-utils
root@live:/mnt/sda3/BusterDog64/backup/buster#
 
Last edited:

cayoenrique

Member
Messages
475
I know, I can see I made a mistake by adding an extra "cd backup/buster"

To @all this are the corrected instructions yo make a backup if you are doing for 1rst time.
Code:
cd /mnt/sda3/BusterDog6
mkdir -p backup/buster
mv buster/DebLive_buster-amd64.iso  backup/buster/
cp -f 20230904_Buster_build_setup.conf backup/buster/
cp -f mklive-buster backup/buster/
cp -f debootstrap_1.0.114+deb10u1_all.deb backup/buster/
cp -f buster/isodata-buster.tar.gz  buster/chroot/var/cache/apt/
cp -f buster/dog-boot-buster-20191026.tar.gz  buster/chroot/var/cache/apt/
cp -f buster/kernel-ceres-amd64.tar.gz  buster/chroot/var/cache/apt/

@Me2019H
If you notice I change the final location for isodata-buster.tar.gz, dog-boot-buster-20191026.tar.gz & kernel-ceres-amd64.tar.gz
This is to facilitate not having to download them again. But depending how many try you did with my old instruction files may be already on backup/buster/
So @Me2019H after you do the previous commands you may have to do the next ones to repair those previous wrong commands.
Code:
cd /mnt/sda3/BusterDog6
cp -f backup/buster/isodata-buster.tar.gz  buster/chroot/var/cache/apt/
cp -f backup/buster/dog-boot-buster-20191026.tar.gz  buster/chroot/var/cache/apt/
cp -f backup/buster/kernel-ceres-amd64.tar.gz  buster/chroot/var/cache/apt/

@all Now that all the files needed are in "buster/chroot/var/cache/apt" we can do the tar
Code:
cd /mnt/sda3/BusterDog6
tar cf backup/buster/apt.tar buster/chroot/var/cache/apt
 

cayoenrique

Member
Messages
475
@Me2019H, Ok here is a "patch" so that you can build the second time without having to download all debs again.

I will assume we are in sda3 witch for the moment have LOTS of ext4 space.
Instead of deleting the files lets rename buster folder to busterold

Code:
cd /mnt/sda3/BusterDog6
mv buster busterold

I build a patch to force mklive-buster to use our backups instead to new downloads.

1rst lets copy mklive-buster to mklive-buster-ND, where ND means "No Downloads"
Code:
sudo apt update
sudo apt install diffutils patch
cp mklive-buster mklive-buster-ND
wudget https://workupload.com/file/9nQR6ZRv4tm
unzip nodownlaod.patch.zip
patch -u mklive-buster-ND -i nodownlaod.patch

You can inspect my patch with "geany mklive-buster-ND"
And you can inspect the new file will "geany mklive-buster-ND.
You can find easily where I did modification. just search for #enrique

To prevent errors I included the extra commands from XTERM inside the changes.
This means you do not need to do those as they are included in my patch.

Listen you may want to build after you decide what else to include. For example you may want to have "wine64" to be able to run windows programs. Or this is a nice project for the future for your 1rst module sqaushfs.
After you have wine64 you may want to add "x86_64-w64-mingw32" compiler. So you can build windows executable right from Linux.

But if you want to test this build process, then your new command is

time ./mklive-buster-ND -cli 20230904_Buster_build_setup.conf 2>&1 | tee 20230907_Buster_build_setup.conf.log

And remember you do not need to do XTERM commands. There will be some small downloads, a guess less that 50mb. It requires more debug to remove those.

Do not for get to let me know How you like it. I still have some extra suggestion to include. But 1rst let me know if it can boot from USB.
 

Me2019H

Registered
Messages
101
root@live:~# ls /mnt/sda3
BusterDog64 lost+found
root@live:~# ls /mnt/sda3/BusterDog64
20230904_Buster_build_setup.conf debootstrap_1.0.114+deb10u1_all.deb
20230904_Buster_build_setup.conf.log mklive-buster
20230904_Buster_build_setup.conf.zip mklive-buster-ND
backup nodownlaod.patch
busterold nodownlaod.patch.zip
root@live:~# ls /mnt/sda3/BusterDog64/busterold
build_setup.conf dog-boot-buster-20191026 isodata-buster.tar.gz
build_setup.txt dog-boot-buster-20191026.tar.gz kernel-ceres-amd64.tar.gz
chroot isodata
root@live:~# ls /mnt/sda3/BusterDog64/busterold/isodata
Examples-boot-codes.txt isolinux live
root@live:~# ls /mnt/sda3/BusterDog64/busterold/isodata/live
01-filesystem.squashfs buster-x86_64.sgn k-4.19.0-17-amd64.squashfs rootcopy
base initrd1.xz modules vmlinuz1
buster-i486.sgn initrd.img optional
root@live:~# ls /mnt/sda3/BusterDog64/busterold/chroot
bin dev home lib live mnt proc run srv tmp var
boot etc index.html lib64 media opt root sbin sys usr
root@live:~# ls /mnt/sda3/BusterDog64/busterold/chroot/dev
console full ptmx random stderr stdout urandom
fd null pts shm stdin tty zero
root@live:~# ls /mnt/sda3/BusterDog64/backup
buster
root@live:~# ls /mnt/sda3/BusterDog64/backup/buster
20230904_Buster_build_setup.conf dog-boot-buster-20191026.tar.gz
apt.tar isodata-buster.tar.gz
DebLive_buster-amd64.iso kernel-ceres-amd64.tar.gz
debootstrap_1.0.114+deb10u1_all.deb mklive-buster
root@live:~#

root@live:~# uname -a
Linux live 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
root@live:~#

Am I on the right path
 

cayoenrique

Member
Messages
475
I am running off generator as I have no power. I see you did not post clear results. But I see in your post "DebLive_buster-amd64.iso" .

But your uname -r is wrong! I guess that uname is either from the OS you been using to build. Or you have installed in USB but NOT updated the kernel.


Your new OS should look similar to
003.png


Again assuming you installed it in USB, to get the last kernel you need to continue from step 4) of my post #47 (
https://www.sat-universe.com/index....l-questions-and-answer.319471/post-2037237838

This is to update your kernel to 4.19.0-19-amd64. But if you have not installed the basic live then is step 2)

Next time PLEASE let me know where you have installed it.

I need to leave I have no power.
 

Me2019H

Registered
Messages
101

cayoenrique

Member
Messages
475
@Me2019H you do not need to apologize, you are my Linux buddy. I was the one in trouble, as I have to be quick as I have no electric power.

Code:
I updated the kernel. but i can't boot from USB
Not enough info? You could not boot because USB broke, It change color! You went to the movies!
I need to know, What do you see? What is the message? etc.

Lets start from beginning. You have 4 possible Menu config files.

grub2 type
/grub.cfg
/boot/grub/grub.cfg

grub4dos
/menu.lst

Isolinux
/isolinux/live.cfg

In my installation with Rufus the one that is working is
/isolinux/live.cfg

Look at my post #48 for isolinux I ask you to do

Use geany to edit isolinux menu config
Code:
cp /mnt/sdb1/isolinux/live.cfg /mnt/sdb1/isolinux/live.cfg.back
geany /mnt/sdb1/isolinux/live.cfg
Add at the end .
Code:
label BusterDog19
kernel /BusterDog19/live/vmlinuz1
append initrd=/BusterDog19/live/initrd1.xz from=/BusterDog19 changes=/BusterDog19/live/changes.dat

label BusterDog19 save changes only exit
kernel /BusterDog19/live/vmlinuz1
append initrd=/BusterDog19/live/initrd1.xz from=/BusterDog19 changes=EXIT:/BusterDog19/live/changes.dat

Then save an reboot USB. You should see new options. Then you boot. If you get error message then post the info.

NOOO the problem is that the new Menu options did not show up. Well then try one of the two grub 2.

Use geany to edit grub menu config
Code:
cp /mnt/sdb1/boot/grub/grub.cfg /mnt/sdb1/boot/grub/grub.cfg.bak
geany /mnt/sdb1/boot/grub/grub.cfg
Add at the end .
Code:
menuentry "BusterDog19" {
linux /BusterDog19/live/vmlinuz1 from=/BusterDog19 changes=/BusterDog19/live/changes.dat
initrd /BusterDog19/live/initrd1.xz
}

menuentry "BusterDog19 save changes only on exit" {
linux /BusterDog19/live/vmlinuz1 from=/BusterDog19 changes=/BusterDog19/live/changes.dat
initrd /BusterDog19/live/initrd1.xz
}

Save and reboot. If you get this time the new 2 options then it is thsi grub.cfg.

Noo still not showing Options.
Then try the other config

Use geany to edit grub menu config
Code:
cp /mnt/sdb1/grub.cfg /mnt/sdb1/grub.cfg.bak
geany /mnt/sdb1/grub.cfg
Add at the end .
Code:
menuentry "BusterDog19" {
linux /BusterDog19/live/vmlinuz1 from=/BusterDog19 changes=/BusterDog19/live/changes.dat
initrd /BusterDog19/live/initrd1.xz
}

menuentry "BusterDog19 save changes only on exit" {
linux /BusterDog19/live/vmlinuz1 from=/BusterDog19 changes=/BusterDog19/live/changes.dat
initrd /BusterDog19/live/initrd1.xz
}

Save and reboot. If you get this time the new 2 options then it is thsi grub.cfg.

Let me know what is your analysis.
 
Top