Pages

2013-11-17

Slackware upgrade to 14.1

Yes, upgrade from 14.0 to 14.1. And it's not as little as seems - kernel goes from 3.2.45 to 3.10.17 and a lot of system packages get upgraded - a lot like half an hour of running text in console.
As a guide I used this superb one, and followed it quite punctually - with only a slight differences:
- I tried to do as much on desktop (new lilo menuentry, install of new kernel packages, new initrd, blacklisting kernel and third party repos...
As a note - I did 'installpkg' for kernel-things and not upgraded. And that irritated 'slackpkg' afterwards (similarly-named packages)- so I had to keep kernel packages blacklisted.
- I did not use init 1, as it does not have net, but used init 3. If you download whole bunch before and install from this, then you can do everything in single-user and be safer.
- I ended up (before reboot) with Nvidia install. Did it like this:
sh NVIDIA-Linux-x86_64-319.49.run --kernel-name='3.10.17'

The thing booted up nicely - gdm, openbox, nitrogen, compton, tint2 - all worked totally alright. Overall memory usage dropped 20M compared to 14.0. CPU usage remained on 2%+2% (Debian, by the way, stays on 1% when idle).
Then came problems - which took me about 8 hours to resolve:
- As being smart afterwards, first thing to do should be deleting all things in your .cache folder. Else there will be strange apps' settings' problems.
- gksu. It didn't work, I reinstalled, it worked - once. I reinstalled all (libgtop, libgksu, gksu)... no cookie. I went for gksudo, it worked once...
Well, interesting, isn't it?
The culprit is 'shadow' package - see here. I didn't install salixs' fix 'gnsu', but downgraded from 4.1.5 to old 4.1.4.3 (and blacklisted it). And that did it - after some 3 hours fruitlessly thrown away (#^^%&*&^).
- spacefm. Despite compiling all fresh, still has strange behaviour - occasional resizing of panels and kinda laggy performance... It probably was exactly this 'old-cache-problem'.
- Volumeicon is forgetting volume settings, on every boot. | Edit: It seems, whole problem was master volume gone missing during upgrade... (3 days later) - no, it wasn't. Now it seems that removing .lock file (created during upgrade?) in /var/lib/alsa fixed it, finally. Well, we'll see... No, it didn't fix it... And the reason for that nag (and some other vague abnormalities) was my own syntax error in rc.M ... Bloody never change your conf-files by typing (if possible). |
- Clock went berserk again (my specific bios clock problem 'me like to be three hours wrong and it stays like that'). Fixed it so:
hwclock --set --date "11/17/2013 08:54:10", and then hwclock -s
Means, set your date-and-time manually, and tell it also to kernel. And look here.
- qbittorrent missing libboost_system.so.1.49.0. Installed alienbob version for 14.1 from slakfinder and nothing changed, lib still missing. Then I made it from source - and got exactly the same result. But ln -s of 1.49.0 to existing 1.54.0 did the trick.
- gparted - the same type of thing. Missing libparted.so.0. Created symlink to libparted.so.2 and gparted started (and worked) fine.
- xfce4-terminal got its name back (previously 'Terminal'). So I whined about that silly name before... now, of course, I whine again:  When arriving to Openbox first time after upgrade, there is no terminal available (except some other backup terminal, if you had one. If you didn't, you have to go to console and fix at least one exec-name in nano. And bloody shortcut in your rc.xml needs fixing too.
By the way, if you define window-opening-postions in the same rc.xml, then keep in mind - 'class' for xfce4-terminal is 'Xfce4-terminal'.

That's it. Some few annoyances remain, but overall - upgrade can be called success.
And just to mention - there is always reinstall option, but, in this case, it wouldn't be any easier. Problems are of new packages, not of upgrade as such.
| Note, as of 23.11.2013: SBO is still missing whole 14.1 (but, I am sure most of 14.0 stuff is eminently usable anyway). Shittier is that Slacky and Kikinovak also are still missing 14.1 - and that drives slackpkg+ a bit crazy... Sensible thing seems to take those two temporarily out of mirrors (and repos) list.
-- As of the very end of December, the last problematic repo - Kikinovaks' - has returned. He had severe recontruction bout in his servers. |

2013-11-02

Filezilla install, Slackware 14

I am not sure if the following experience is not caused by my not-100%-slack-install, BUT I tend to think that no.
I started with slakfinder.org, and Kikinovaks' 64bit Filezilla package (no dependecies notified). It refused to install.
I decided to go stright for sbo and compile my own (sbo also had latest 3.7.3 version). One dependency - wxPython - was listed.
It dind't  compile.
To cut it short, needed are (all installed with slackpkg+, and from 'slacky' repo): wxPython, wxWidgets, wxGTK, libmspack.
Then it compiled OK, and works also OK.
Hopefully it saves you this hour I spent.

And to blab a bit more:
- Openbox 3.5.2 doesn't want to compile in Slackware 14. Probably pango libraries are oldish. Seems that waiting for Slack 14.1 is a wise move.
Edit | And it did compile in 14.1 ... I still haven't tried to install, though... (3 days later) - Now I have, and it works totally alright. |
- Week ago Spacefm had a new version - 0.9 which has a lot of improvements. If your previous install was with spacefms' installer, then upgrade is easy-peasy - download 0.9 installer and run it. That's it.

2013-10-27

Vsido 2, review-like

| Informational note, 2014, Vsido = Fluxbox only, pulseaudio, systemd |

Generally, I quite hate writing reviews. In this case, there are two reasons for installing Vsido and reviewing it: First - the nostalgic one - Vsido was my first real Linux (means, not Ubuntu-based). So it can be taken as homage to VastOne. Secondly - I have problems with Fluxbox in Slackware and wanted to compare confs with other Fluxbox.
Fortunately my gratitude to VastOne doesn't forbid me to whine and bitch over Vsido 2. So, let's...

The story of installing Vsido ver.1 is here.
I wrote iso (64bit, 16.oct version) to USB with Unetbootin, and booted to Live without any problems.
Desktop layout has remained quite the same as in ver.1.: Conky up-left, and (hidden) dock-thingy (lxpanel) at bottom-center. Newcomer is Wicd icon in up-right corner. Wallpaper is the same as Vsidos' website header... well, it's better than previous one.
If one doesn't use wireless, then wicd should be promptly uninstalled. I also would uninstall lxpanel and replace it with tint2 (which is already installed, and used in Openbox). I like my launched apps nicely visible, as also three icons (terminal, spacefm and firefox) and system tray. And I do not like launch-once-docky-type things at all.

So, let's install (installer is in System menu).
There is quite a lot of explanatory text here and there - which is good. Gparted is for partitioning. Then comes nice compact menu for creating user, passwords and computer name. After that comes choosing timezone and lastly, grub install (which has all needed choices).
Whole install took less than ten minutes.
Vsido boot was normal (fast) debian. Display manager is - as previously - LightDM, but in it's new and moronic form. I logged in and was greeted by first-time script. I let it dist-upgrade - which is, in my opinion, a bit dangerous thing. What happens if there is, say, big xorg update? Anyway, update was successful - and biggish as always with Sid. Script installed apt-xapian-index, which is great (creates seach-box into Synaptic). The script offers also to install cups, java, Libreoffice and some more things.
One can do the same - and more - through pre-installed smxi script. But I suppose welcome-script is good thing to have.
There are - additionally to default Fluxbox - Openbox, i3 and Xfce installed. Which is quite a lot of options.

Fluxbox menu.
First, why is Spacefm represented with general icons? Spacefm has very nice original icon - why not to use it?
And here comes my loudest whine: the menu structure and app distribution in submenus are bloody strange!
- Settings: Why is Gparted there? Why is Disk Manager installed at all?
- Accessories: Why are Lxappearance (and, by the way, 15pt font size for text is way too big) and Nitrogen here? And Htop??
- Development has Xcalc in it!?
- Fluxbox menu should sit in Settings, as submenu, and not as separate menu.
- Internet: Why to have Wicd and Ceni both installed?
- Multimedia: So, Vsido got pulseaudio installed this time... well, fortunately there is 'purge'.
- System: Not sure if Gdebi and Aptitude are good for anything.

Now, app choices doesn't really matter - everyone has to make their own picks anyway. But - sticking apps into absurd places certainly is irritating. And having a bit more consistent menus through different sessions would be definitely bonus too.

Everything what was installed seemed to work - except Iceweasel, of course (bookmark toolbar not functioning. Also - whole menu was grey and fuzzy-looking.).
Net was picked up without any problem. Initial memory usage was pleasantly low 125 megas.

Openbox.
The same look - but dock-thingy is created with Tint2 and it's not hidden here. Terminal comes transparent by default - and that's not a good thing. When terminal happens to be on top of white app, it's unusable.
Menus - A lot better here, but:
- Compton sits under Graphics... really, now...
- Audacity is missing in Multimedia. Not that I would use it, but why inconsistency?
- I would put Tools and System menus together.
Font size in menus (in Fluxbox menu too) are too big and look like childrens' book.

i3.
Well - i simply couldn't open anything there, who knows how it's supposed to work. Fortunately console and killall helped.

Xfce.
Dock is created with lxpanel and is hidden. Menu looks textvise better than boxen ones. But it has huge problems with icon sizes - there are at least 3 different sizes all mixed up. And there are double entries.
- Settings has Openbox Configuration Manager sitting there.
- Accessories has Nitrogen - which should be in Settings; Spacefm is doubled, and with different icons; Root Terminal shouldn't be in this menu at all.
- Internet has two Iceweasels.
- Multimedia has two gmusicbrowsers (and icons are of different size.
- Other has 'Fluxbox menu' and 'Openbox'. No, I didn't try...
- System has two Spacefms and two Xfce terminals.
So, Xfce session looks quite untuned. Maybe it's time to drop it? Vsidos' forum leaves impression that there isn't very much Xfce users... if any.

Now, if all previous left the impression that I hate Vsido - then no, I do not. As far as Linux distros go, Vsido is one of the best.
It has pleasant clear-cut installer and installs without any problems. It works. It's fast and lean. Fluxbox and and Openbox are good bases to personalize onto. And all those whined-over menu things can be fixed in an hour. But experimental Iceweasel is a pile of crap and should be purged as a first thing.
I think I liked first version of Vsido a bit more. Not sure why... maybe it's this first love thing. Second version seems to be more advanced-user oriented. Which is a wise move - I guess that there aren't very much noobish Vsido-users in existence.
... And I did not manage to fix my Slackware Fluxbox. Looks like, maybe, a compile-time.

2013-10-12

Firefox, Grub2, Bash aliases etc

I have been busy - and it seems to continue like that. So, no much time to play around. Here come bits and pieces of things I had to do or didn't but still did. Let's start with Firefoxes:

## The problem: Firefox consumes up to 100% of CPU, and never falls below 20%. To make it even more exciting - this doesn't happen in every session... but when it does, then nothing helps. I started to have this behaviour couple a weeks ago in two different distros - Debian Wheezy and Slackware 14. Common was that they both had Firefox 17.09esr AND had some similar updates to Xorg.
Problem seems to be solved by installing other Firefox version. I went for 24.0. For further thrill - the one I downloaded from Mozillas' server, absolutely refused to start... but one I got from here, was OK and works without turning CPUs fan to jet engine.
How to manually install Firefox - look here.
Edit | If after install there isn't any plugins anymore - like IcedTea - then the easiest way is: create a folder .mozilla/plugins, cd to there and do
ln -s /usr/lib64/IcedTeaPlugin.so (in Slack, or from usr/lib/ in Debian) |

## I finally had enough of Grub2s' auto-generated menuentries. First, there are too many of them (menu-submenu thing, and some kernels doesn't have to be shown at all) and second, labels that Grub creates are not especially informative - or not at all - my Puppy Slacko had a label 'Unknown Linux'.
So I made files 06_debian, 07_slack, 08_test and 41_win (from /etc/grub.d/40_custom). First has my two debians, second has Salix and Slackware, third is for temporary Linuxes and fourth for you-guess-what. Took entries from each distros /boot/grub/grub.cfg (or from /etc/lilo.conf), cleaned them up (everything after label, hint-crap in if-fi part (do NOT delete search-part there)) and inserted them to their new homes.
Also, fixed finally the console resolution problem (all resos in non-master-grub distros' consoles stay at 640x480 - despite that my master-grubs' conf is fixed AND I fixed it in every bloody other grub).
First, the master-grubs reso-fix (in /etc/default/grub) works ONLY for this same grub, AND - when Grub2 os-probes other distros and creates menuentries - it does NOT include reso part there.
So, it's fixable in two ways:
- either add two lines after label part ends and business-part starts:
load_video
set gfxpayload=keep

- or add kernel parameter: vga=791 (to end of line starting with 'linux...' Mind! This number has to be picked according to resolution your monitor is capable in console.)
Frankly - i didn't experiment with all possible combinations - I used first option for Grub-distros, and the second one for Lilo-distros.
One more thing - if there appears unwanted (penguin) logo at the beginning of boot, then adding kernel parameter logo.nologo fixes it.
See also previous Grub posts: 1 and 2.

## Some desecrating of Slackware:
- Sudo. As there is no group for that, you can't add user to it, and sudo doesn't work. Now, you can add yourself to wheel group
usermod -G wheel username
and then you can enable sudoing through wheel.
Do 'visudo' ... and yeah, it bloody opens in vi. I, for example, know nothing of this adorable 'very powerful' editor. So: I added following to end of my .bashrc
export EDITOR=nano
, saved, opened new terminal, visudo - and now it opens in nano.
Find the following line
# %wheel ALL=(ALL) ALL
, uncomment it, save. And sudo should work now.
In Slack there might be slight problem with system-binaries still not working. It's because user lacks path to them - not because sudo is not working. Open up your .bashrc and add PATH to /sbin:/usr/sbin:usr/local/sbin - that should solve the problem.
- Colors. To make Slacks' boot and shutdown texts fancier-looking, it's easiest to shamelessly copy relevant parts from Salix (thanks, Salix-folks).
First, one has to copy color-definitions file /etc/shell-colors, and then comes boring compare-search-replace routine in files: /etc/rc.d/rc.S, rc.K, rc.M, rc.4, rc.sysvinit, rc.6
Not sure it's worth of it... well, yeah, I think it was for me.
- rc.M and refreshes. There are several things Slackware refreshes at every boot. Like font cache, icons cache, libraries list (ldconfig), mime cache. It does those tasks in background (command &), so there is probably not much difference (in boot time etc) if they are there or not. Still, it's a bit pointless to refresh those things every time.
So I decided that it's good time to start messing with bash scripts and to make some tiny simpleminded launchers I can start from openbox menu. (And then out-comment relevant parts in rc.M)
As I also know nothing of bash, it took unholy amount of googling and trying. First thing, I couldn't get scripts running with su (despite various suggested tricks in web). So I did it through sudo (see above, that's why I made it to work). I wanted my scriptlets to open new terminal, do it's thing, and leave terminal open - so I could see what occurred. And one successful example is here:
#!/bin/sh
# Refresh font cache
Terminal --execute bash -c 'echo "fc-cache -fv";sudo fc-cache -fv;bash'
quit


## I shit around with three different package managements. Quite frequently I mix up if there are --, or -, or there isn't any -. So, kinda lazy solution for this is to use similar aliases in all distros.
Orderly way to do this is to create separate .bash_aliases file and define all your stuff there (simple text file, only aliases there, no #! or something needed):
alias up='sudo apt-get update' - is one definition, and that's for Debian, 'slapt-get -u' goes for Salix and 'slackpkg update' for Slackware.
alias upg='sudo apt-get dist-upgrade' is for Sid, 'slapt-get --upgrade' for Salix and 'slackpkg upgrade-all' for Slackware.
And so on. To keep in mind - aliases have to be unique (in one particular distro), can't have different commands with the same name (meaning, it's bad idea to create alias 'nano' for something - as there is already app exec 'nano').
Also, in this case, .bashrc should have the following somewhere:
if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi


And the future posting will be probably quite infrequent. Depends how 'busy' my busy is...