Compare commits

..

2 commits

Author SHA1 Message Date
5777e35c09 changed README.md 2023-10-22 07:54:05 +02:00
bc473cf9ac move nanodesk-installer to /usr/sbin, changed welcome.md 2023-10-22 07:47:15 +02:00
5 changed files with 60 additions and 60 deletions

View file

@ -2,14 +2,11 @@
Origin: https://git.la10cy.net/DeltaLima/nanodesk
nanodesk is a less resources consuming debian linux "distribution" using the
jwm window manager, which I made for fun and learning.
nanodesk is a lightweight debian linux flavor/distribution, using the
jwm window manager.
"distribution" because, it is just a debootstrap with some extra packages and
custom jwm config, baked together with live-boot and a little installer script
for installing nanodesk on a harddrive.
My goal is to have a (live) system which is very lightweight and still usable too.
This is just a fun and learning project. My goal is to have a (live) system
which is very lightweight and still usable too as daily driver.
This is for a VM where you need a basic graphical environment or for an old computer
with less resources.
@ -41,20 +38,22 @@ If you want to build nanodesk by your own, maybe with your own customisations -
This script will perform all tasks which are necessary to build nanodesk from scratch, including installing packages on your host machine where you build nanodesk.
The script is tested running with Ubuntu 22.04.
The script is tested running with Ubuntu 22.04, Debian 11 and Debian 12.
Simply run `./makeanything.sh` and the show will start!
Your .iso file will be in `build/nanodesk-vX.Y.Z`. Git tags are used for versioning.
Your .iso file will be generated in `build`, named like `nanodesk-vX.Y.Z.iso`.
Git tags and commit count are used for versioning.
You can give the script a custom debian-mirror, if your prefer e.g. `./makeanything.sh http://ftp.debian.org/debian/`
You can give the script a custom debian-mirror, if your prefer e.g.
`./makeanything.sh http://ftp.debian.org/debian/`
## customize nanodesk
Of course you can customize nanodesk to fit your needs!
The simplest way is to add your favorite packages to the nanodesk live-image. Just add them to
the file `templates/install_base.custompkg.tpl.sh`
The simplest way is to add your favorite packages to the nanodesk live-image.
Just add them to the file `templates/install_base.custompkg.sh`
For example, let's add Abiword and Pidgin to nanodesk, the file would look like
@ -67,16 +66,21 @@ pidgin
Now run `makeanything.sh` and you will have both programs on your live-linux.
You can also jump into the chroot with `chroot build/chroot/ /bin/bash` and do customizations by hand. Just run `makeanything.sh` afterwards to recreate the .iso
You can also jump into the chroot with `chroot build/chroot/ /bin/bash` and do
customizations by hand. Just run `makeanything.sh` afterwards to recreate the
.iso
Keep in mind that the chroot does not get recreated everytime you run `makeanything.sh`.
While experimenting around it could be helpful to delete your complete `build/` directory
Keep in mind that the chroot does not get recreated everytime you run
`makeanything.sh`.
While experimenting around it could be helpful to delete your complete `build/`
directory
```bash
sudo rm -Rf build
```
keeping a fresh copy of `build/chroot/` after the first debootstrap is also a good idea to save bandwidth :)
keeping a fresh copy of `build/chroot/` after the first debootstrap is also a
good idea to save bandwidth :)
```bash
sudo cp -a build/chroot build/chroot.bak
@ -84,11 +88,15 @@ sudo cp -a build/chroot build/chroot.bak
## install nanodesk on harddrive
When you booted nanodesk from the iso, then you can install nanodesk to your harddrive. In the homefolder of `root` ist the installerscript `install_nanodesk.sh`
When you booted nanodesk from the iso, then you can install nanodesk to your
harddrive. The installer is called `nanodesk-installer`.
Before doing so, you have to create, if not already existing, a partition with a formatted linux compatible filesystem (e.g. ext4).
Before doing so, you have to create, if not already existing, a partition with
a formatted linux compatible filesystem (e.g. ext4).
nanodesk comes with fdisk, so you can create it very quick and format the partition afterwards. When you decide to create a swap-partiotion, do not forget to run mkswap.
nanodesk comes with fdisk, so you can create it very quick and format the
partition afterwards. When you decide to create a swap-partiotion, do not
forget to run mkswap.
Then the installer will detect it automatically (I hope so!) and use it.
This is an example, how to do the partitioning and formatting.

View file

@ -124,7 +124,7 @@ $CHROOTCMD sed -i '/<\!-- GENERATED ICONLIST -->/r /tmp/jwm.iconlist' /etc/jwm/s
message "correct file permissions"
#$CHROOTCMD /usr/bin/chmod 440 /etc/sudoers || error
$CHROOTCMD /usr/bin/chmod 755 /root/nanodesk-installer.sh || error
$CHROOTCMD /usr/bin/chmod 755 /usr/sbin/nanodesk-installer || error
$CHROOTCMD /usr/bin/chmod 755 /usr/bin/nanodesk || error
$CHROOTCMD /usr/bin/chmod 755 /usr/bin/nanodesk-first-start || error

View file

@ -45,28 +45,26 @@
<!-- Tray at the bottom. -->
<Tray x="0" y="0" height="25" autohide="off">
<TrayButton icon="/usr/share/nanodesk/images/linux_button.svg">root:1</TrayButton>
<Spacer width="2"/>
<TrayButton label="_" popup="Show desktop">showdesktop</TrayButton>
<Spacer width="2"/>
<TrayButton icon="/usr/share/nanodesk/images/linux_button.svg">root:1</TrayButton>
<Spacer width="2"/>
<TrayButton label="_" popup="Show desktop">showdesktop</TrayButton>
<Spacer width="2"/>
<!-- custom TrayButton -->
<TrayButton popup="LXTerminal" icon="lxterminal">exec:lxterminal </TrayButton>
<Spacer width="2"/>
<TrayButton popup="Falkon Webbrowser" icon="falkon">exec:falkon</TrayButton>
<Spacer width="2"/>
<TrayButton popup="PCManFM" icon="system-file-manager">exec:pcmanfm</TrayButton>
<Spacer width="2"/>
<Pager labeled="true"/>
<TaskList maxwidth="256"/>
<Dock/>
<Clock format="%H:%M"><Button mask="123">exec:gsimplecal</Button></Clock>
<!-- custom TrayButton -->
<TrayButton popup="LXTerminal" icon="lxterminal">exec:lxterminal </TrayButton>
<Spacer width="2"/>
<TrayButton popup="Falkon Webbrowser" icon="falkon">exec:falkon</TrayButton>
<Spacer width="2"/>
<TrayButton popup="PCManFM" icon="system-file-manager">exec:pcmanfm</TrayButton>
<Spacer width="2"/>
<Pager labeled="true"/>
<TaskList maxwidth="256"/>
<Dock/>
<Clock format="%H:%M"><Button mask="123">exec:gsimplecal</Button></Clock>
</Tray>
</Tray>
<!-- Visual Styles -->
<WindowStyle>

View file

@ -49,11 +49,9 @@ error () {
}
finish () {
message "removing firststart dialoge from jwm config"
$CHROOTCMD /usr/bin/sed -i '/doc\/nanodesk\/welcome\/welcome\.html/d' /etc/jwm/system.jwmrc || error
message "removing installer files from target"
$CHROOTCMD /usr/bin/rm -Rf /root/nanodesk-installer.sh || error
$CHROOTCMD /usr/bin/rm -Rf /usr/sbin/nanodesk-installer || error
message "removing live-packages from target"
$CHROOTCMD /usr/bin/apt -y purge 'live-boot*' 'live-tools*'

View file

@ -1,39 +1,35 @@
# Welcome to nanodesk
`nanodesk` is yet another leightweight Debian flavor/distribution,
that comes with the `jwm` window manager.
nanodesk is a debian base linux "distribution". I put distribution in ""
becuase it is just a minimal debian debootstrap installation, which you
can boot from a DVD or usb-stick and install it to disk, with well picked
packages I like and a customized jwm config. Taddaa - a new distribution.
Everything done with having the goal to consume as less ram as possible.
This is just a fun project for learning purposes.
## install to disk
You can install nanodesk to your harddrive. Before doing so,
you have to get your drive partitioned and formated.
Partiotioning on an empty drive is simple, you need two partitions
Partitioning on an empty drive is simple, you need two partitions
- partition1: ext4 , mainfilesystem.
- partition2 (optional, but recommended): swap
You can use `gparted` or `fdisk` for this. Please read their manuals.
You can use `Menu -> System -> Gparted` or `fdisk` on the shell for this.
Please read their manuals.
This done, just run `sudo /root/nanodesk-installer.sh /dev/sdXY` from the terminal
This done, just run `sudo nanodesk-installer /dev/sdXY` from the terminal
and the installation will start. (change /dev/sdXY to your drive)
## installing software
There is no GUI tool for installing software. You have to use `apt` from the
terminal.
There is `Menu -> System -> Synaptic` for installing software as GUI.
Alternatively you can use `apt` from the terminal.
## getting root
In the LiveCD mode you can just do `sudo su -` without being asked for a password.
When booting as livesystem, the default user is `debian` and the
password is `debian` as well.
Depending on your choice by the installation, you will have to enter a password,
when you created your own using by the installer.
So or so good old `su - ` works fine as well, just type in the root password.