LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   Slackware for the minimal WM/CLI warrior (https://www.linuxquestions.org/questions/slackware-installation-40/slackware-for-the-minimal-wm-cli-warrior-4175495530/)

JWJones 02-19-2014 12:14 PM

Slackware for the minimal WM/CLI warrior
 
Something I will experimenting with soon will be a custom Slackware installation for desktop usage, for minimal WMs, or framebuffer/CLI-only usage. My plan is to omit all GTK and QT dependencies from the installation, but keep Xorg, the minimal WMs included with Slackware (twm, fvwm, blackbox, fluxbox), all the X apps that don't require GTK or QT, and of course all the wonderful CLI apps.

This thread will be a placeholder for this experiment, and I also encourage and welcome any input/advise/comments other Slackers might have as to this experiment.

As for inspiration, I look to the fine work done at LinuxBBQ with Debian sid (mostly). They have many fine releases with no GTK/QT dependencies, using a variety of lesser-known WMs, and framebuffer/CLI offerings.

harryhaller 02-19-2014 12:22 PM

I shall be following this thread closely :)

ReaperX7 02-19-2014 01:14 PM

You don't technically have to remove anything from Slackware. Just use OpenBox WM and xterm. A lot of problems can come up from removing packages from Slackware, which is why a full installation is always recommended, and you don't have to use anything you don't need right off hand.

JWJones 02-19-2014 01:22 PM

Quote:

Originally Posted by ReaperX7 (Post 5121072)
You don't technically have to remove anything from Slackware. Just use OpenBox WM and xterm. A lot of problems can come up from removing packages from Slackware, which is why a full installation is always recommended, and you don't have to use anything you don't need right off hand.

Certainly, but then this wouldn't be the fun experiment that it's intended to be. Sure, I may totally bork it by not installing all the libs and such, but I will be taking a look at all the packages and carefully considering each one, based on my stated goal. For the record, I NEVER do a full installation, I always omit all KDE, and several other packages, and haven't had a broken system yet.

rkfb 02-19-2014 02:55 PM

There was a thread a little while ago:

http://www.linuxquestions.org/questi...ou-use-872378/

that may interest you. A lot of it relevant to what you're after I think.

JWJones 02-19-2014 03:00 PM

Quote:

Originally Posted by rkfb (Post 5121132)
There was a thread a little while ago:

http://www.linuxquestions.org/questi...ou-use-872378/

that may interest you. A lot of it relevant to what you're after I think.

Excellent, thanks for this!

JWJones 02-20-2014 09:05 AM

I was reminded that the package sets are a good place to start pruning an installation:

http://www.slackware.com/install/softwaresets.php

And this looks like a good thing:

http://pbraun.nethence.com/unix/sysu...slackinst.html

drmozes 02-20-2014 11:25 AM

Quote:

Originally Posted by JWJones (Post 5121624)
I was reminded that the package sets are a good place to start pruning an installation:

http://www.slackware.com/install/softwaresets.php

And this looks like a good thing:

http://pbraun.nethence.com/unix/sysu...slackinst.html

For a basic installation that has the base tools (including networking tools) you can see which packages are included in the mini root file systems for the ARM port:
http://ftp.arm.slackware.com/slackwa..._minirootfs.sh

You'd need to add many more libraries and bits of X to get a working window manager, but it'd be a reasonable base from which to start.

K-Wizzz 02-22-2014 07:21 AM

Quote:

Originally Posted by JWJones (Post 5121036)
Something I will experimenting with soon will be a custom Slackware installation for desktop usage, for minimal WMs, or framebuffer/CLI-only usage. My plan is to omit all GTK and QT dependencies from the installation, but keep Xorg, the minimal WMs included with Slackware (twm, fvwm, blackbox, fluxbox), all the X apps that don't require GTK or QT, and of course all the wonderful CLI apps.

This thread will be a placeholder for this experiment, and I also encourage and welcome any input/advise/comments other Slackers might have as to this experiment.

A very fine idea! Did you already come up with a solution for

- setting up network for road warriors (I was surprised that there is nm-applet in slackware, but you need additional software (trayers) for it to work with other window managers and I am still struggling with nmcli)

- power management (don't know about a CLI version or a light X version, so for latter I tried xfce4-power-manager, but its pop-up windows don't work well with windowmaker (pop-ups create new program icons on desktop), and if I already have to use that component from xfce, then I don't see a reason against using the rest of xfce4 either)

- suspend from CLI (well, I came up with my own script using dbus-send)

samac 02-23-2014 09:38 AM

Here is a very old "Slackware 12.2" minimal system that you could look at to get some ideas. http://www.linuxquestions.org/questi...ckware-704866/

samac

enine 02-23-2014 12:18 PM

I did a minimal install back in the 12 days and it went fine. just tried with 14.1 and found that there are libraries that PHP needs in the X set and even though I installed those I still had issues. Seems things are more interrelated now.

JWJones 02-23-2014 03:40 PM

1 Attachment(s)
Quote:

Originally Posted by K-Wizzz (Post 5122770)
A very fine idea! Did you already come up with a solution for

- setting up network for road warriors (I was surprised that there is nm-applet in slackware, but you need additional software (trayers) for it to work with other window managers and I am still struggling with nmcli)

- power management (don't know about a CLI version or a light X version, so for latter I tried xfce4-power-manager, but its pop-up windows don't work well with windowmaker (pop-ups create new program icons on desktop), and if I already have to use that component from xfce, then I don't see a reason against using the rest of xfce4 either)

- suspend from CLI (well, I came up with my own script using dbus-send)

I know wifi and power management are both doable from cli, but I'm doing this on a desktop machine, so I'm not worrying about those. Using anything from Xfce, including xfce4-power-manager, would require GTK and its libs, which I am avoiding.

Aside from links and lynx browsers, I am using Dillo, which works nicely. Tried netsurf, but it needed gtk stuff.

Here's what I came up with so far:

Smokey_justme 02-23-2014 04:03 PM

Hmm, this may be helpful...

I've read this a while back... Specifically:

Quote:

Core Installation

A Salix Core installation is exactly the same, no matter what iso image you used to make the installation.

After a Core mode installation, you get a total of 250 installed packages. Of those packages, the vast majority (233, 93.2%) are Slackware packages. The rest (17, 6.8%) are Salix-specific packages. The Salix packages are mainly the package manager, the Salix command line system tools and their dependencies and nothing more.

So, what you get with a Salix Core installation, is mainly a Slackware system that only works from the command line and only very few added packages by Salix. It's funny, because there are a lot of Slackware users that apparently look for a stripped down Slackware installation with no GUI, but never look at Salix.
Now, I've never tried it, but maybe you could check it out, remove Salix packages and start building up from there?

rkfb 02-24-2014 02:58 PM

Quote:

Originally Posted by K-Wizzz (Post 5122770)
A very fine idea! Did you already come up with a solution for

- setting up network for road warriors (I was surprised that there is nm-applet in slackware, but you need additional software (trayers) for it to work with other window managers and I am still struggling with nmcli)

[ ... ]

I run dropbox in stalonetray on twm:

http://slackbuilds.org/repository/14...ch=stalonetray

JWJones 02-26-2014 08:57 PM

1 Attachment(s)
Continuing to work with fluxbox and pimp it out some. I added xfe for a GUI file manager, as it does not require gtk or qt:

notKlaatu 02-26-2014 09:12 PM

Use CDE and Tk exclusively ;-)

notKlaatu 02-27-2014 04:38 PM

Quote:

Originally Posted by K-Wizzz (Post 5122770)
A very fine idea! Did you already come up with a solution for

- setting up network for road warriors (I was surprised that there is nm-applet in slackware, but you need additional software (trayers) for it to work with other window managers and I am still struggling with nmcli)

- power management (don't know about a CLI version or a light X version, so for latter I tried xfce4-power-manager, but its pop-up windows don't work well with windowmaker (pop-ups create new program icons on desktop), and if I already have to use that component from xfce, then I don't see a reason against using the rest of xfce4 either)

- suspend from CLI (well, I came up with my own script using dbus-send)

- I could be wrong, but last I checked nmcli cannot create new connections yet. It can connect to existing networks (ie, ones that have been seen and logged by nm) but it cannot, say, add a network connection using the results of iwscan -> wpa_supplicant -> dhcpcd

- `ibam` monitors battery life from the shell, check it out. very useful.

- i'd love to see this suspend script :-)

K-Wizzz 02-28-2014 04:19 AM

Quote:

Originally Posted by notKlaatu (Post 5126085)
- I could be wrong, but last I checked nmcli cannot create new connections yet. It can connect to existing networks (ie, ones that have been seen and logged by nm) but it cannot, say, add a network connection using the results of iwscan -> wpa_supplicant -> dhcpcd

- `ibam` monitors battery life from the shell, check it out. very useful.

- i'd love to see this suspend script :-)

Have to check nmcli if it really cannot create new connections. Then there's wicd left (creating conflicts with Networkmanager).

As for power management right now I am using acpitool, but neither this one nor ibam can be configured to suspend the system if battery is low or system is idle for a certain amount of time. Guess I need to write some shell script and put it in crontab...

Suspend for slackware 14.1 works with this command

Code:

dbus-send \
  --system \
  --dest=org.freedesktop.UPower \
  --type=method_call \
  --print-reply \
  /org/freedesktop/UPower \
  org.freedesktop.UPower.Suspend

I just put it in a shell script called zzz and my fingers felt much better :-)

JWJones 04-24-2014 01:06 PM

1 Attachment(s)
So, my latest efforts have been about using cwm as the standard WM for both my Slackware and OpenBSD boxes. I have found it to be my favorite stacker, so far. For tiling WMs, I'm liking euclid-wm and larswm.

Didier Spaier 04-24-2014 01:49 PM

To get the best of your CLI, I recommend installing FbTerm, that can make use of good TTF fonts initially intended for X, like DejaVu.

Despite its name it works not only in a framebuffer but also in a Vesa console. You can scale the font at will. It's available @ http://slackbuilds.org. In case you would want not to use the whole X stack, here are the only dependencies from the l and x series:
l/freetype
x/fontconfig
x/dejavu (or an other font if you prefer).

You'll need also a/aaa_elflibs and ap/libx86 but I guess that you have that already installed ;)

If you want to see an example, you could try an installer in http://slint.fr/testing, that make use of it.

JWJones 04-24-2014 02:05 PM

^ Thanks, yes, I do/have used fbterm for Slack CLI builds, works great!

moisespedro 05-23-2014 04:33 PM

How is it going so far? I want to try going "CLI warrior" too, but on OpenBSD.
What browser do you use?

JWJones 05-23-2014 05:31 PM

^ Good! My latest install (desktop) was done without DEs or WMs, and also without consolekit and policykit. And then I added cwm. I use Firefox for GUI browsing, and Links for text browsing, although I also have Opera 12.16 installed, so not entirely CLI apps. OpenBSD would be a great base for this, too.

moisespedro 05-23-2014 05:45 PM

How do you change the gtk theme from command line? (Firefox looked horrible). I tried building lxappearance and it didn't work, tried editing gtkrc file but it didn't work either.

JWJones 05-23-2014 05:51 PM

I didn't, I just live with the appearance of any gtk apps.

moisespedro 05-23-2014 06:14 PM

Ah, but it looks so horrible D:

JWJones 05-23-2014 06:36 PM

Just the window interface, or do your fonts look horrible, too? I've noticed that Opera 12.16 looks better than Firefox, for what it's worth.

moisespedro 05-23-2014 06:47 PM

The interface, I've found the stock OpenBSD font configuration pretty good actually (Firefox). Better looking than most Linux distros imo (talking about stock configs). Didn't try other browsers.

JWJones 05-23-2014 09:02 PM

^ Yes, I would agree with you there. I'm not sure why it is, but font rendering in all BSDs I have tried is much better than Linux.

moisespedro 05-24-2014 10:04 AM

Some websites looks worse but it is more because they use a missing font on the stock config (like ms fonts). The font rendering itself is great, I can get comparable results on Linux only when using something like in finality.


All times are GMT -5. The time now is 05:29 AM.