Installing Binaries from Archlinux Packages into Slackware

Installing Binaries from Archlinux Packages into Slackware

*USE AT YOUR OWN RISK

- Sometimes you just want to use a quick and lazy binary in Slackware for whatever reason, Arch Linux uses the same vanilla apps just like slackware and uses the same format of a tarball compressed in xz, best of all they have updated packages, just make sure you have the dependencies or install the necessary dependencies already.

- To use a package from Archlinux Packages, search and choose the package/s, then download

- pkgtool in Slackware can install this package by the typical command installpkg, but it will say some error if you install it as is, even if the package is vanilla stock and with the same tarball and compression, to workaround this, change the file extension of the package, for example: foo_pkg.tar.xz to foo_pkg.txz

- Install with installpkg command:

$ sudo installpkg foo_pkg.txz

- And it should install, I've done this a bunch of times, especially when I can't find other quick install solutions from other repos for binaries or various slackbuild scripts are problematic and building from source is problematic, this is the fastest lazy hack to install packages, removing the package is the same as using the removepkg command from pkgtool.


- That's all.

Various ways to install packages in Slackware Linux

Various ways to install packages in Slackware Linux:


1.) Slackpkg
2.) Slackbuilds and Sbopkg
3.) Pkgtool and installpkg
4.) Classic Compile from Source with Make:
    - After the downloading the source files (recommended in /usr/local/src/), cd to /usr/local/src Read any readme or text or instructional files included.
    - Extract to a directory, by GUI extract or command line:
[tar] - Extract (unpack) a TAR File
$ tar -xvf foo.tar

[tar.gz] - Extract and Uncompress a TAR File Compressed with GZIP
$ tar -xvzf foo.tar.gz

[tar.bz2] - Extract and Uncompress a TAR File Compressed with BZIP2
$ tar -xvjf foo.tar.bz2

    - Go into that directory and issue the commands in order, $ as user, # as root.
    $ ./configure
    $ make
    # make install
    # make clean 

When you want to uninstall it, you do the following:

    $ cd /usr/local/src/foo
    as root
    # make uninstall 

5.) Compile and install with Checkinstall:

Classic Compile from Source with Make:
    - After the downloading the source files (recommended in /usr/local/src/), cd to /usr/local/src Read any readme or text or instructional files included.
    - Extract to a directory, by GUI extract or command line
    - Go into that directory and issue the commands in order, $ as user, # as root.
    $ ./configure
    $ make
    # checkinstall 
(When called with no arguments, checkinstall will call "make install". If you need other arguments, they can be supplied)
(As optional like this ff -
# checkinstall make install_package
)


The difference with Checkinstall and make install, is that checkinstall tracks the package, so to uninstall it, just check /var/log/packages and use removepkg foo,
to uninstall.


6.) Src2pkg

KDE4 Disable Disturbing Huge Taskbar Thumbnail Previews and Tooltips at the panel:

KDE4 Disable Disturbing Huge Taskbar Thumbnail Previews and Tooltips at the panel:

Click Kmenu, Go to Settings, Go to System Settings, Go to Desktop Effects, Go to All Effects, disable Taskbar Thumbnails, by unchecking its box, press Apply.


After this there will no longer be huge previews when you hover on apps opened at the taskbar/panel, but the huge tooltips still shows, disable this next.


KDE4 Disable Disturbing Huge Tooltips at the taskbar panel in KDE:

Click Kmenu, Go to Settings, Go to System Settings, Go to Workspace Behaviour, Go to Workspace, uncheck the box Show Informational Tooltips, press Apply.


After this there will no longer be huge tooltip/s when you hover on apps opened at the taskbar/panel.


How to restart KDE without rebooting/logging off from X

Restart KDE4:

- Press ALT+F2 to run Krunner
- Issue either command and press enter:

1.) plasma-desktop

or

2.) kbuildsycoca4 && kquitapp plasma-desktop && kstart plasma-desktop

Enable Firewall through IPtables in Linux

Use IPtables for a firewall:

Below is a generic sample firewall you can use for this article

- edit /etc/rc.d/rc.firewall
- paste this

#!/bin/sh
# iptables script generated 2012-09-30
# http://www.mista.nu/iptables
IPT="/usr/sbin/iptables"
# Flush old rules, old custom tables
$IPT --flush
$IPT --delete-chain
# Set default policies for all three default chains
$IPT -P INPUT DROP
$IPT -P FORWARD DROP
$IPT -P OUTPUT ACCEPT
# Enable free use of loopback interfaces
$IPT -A INPUT -i lo -j ACCEPT
$IPT -A OUTPUT -o lo -j ACCEPT
# All TCP sessions should begin with SYN
$IPT -A INPUT -p tcp ! --syn -m state --state NEW -s 0.0.0.0/0 -j DROP
# Accept inbound TCP packets
$IPT -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# SMTP
#$IPT -A INPUT -p tcp --dport smtp -m state --state NEW -s 0.0.0.0/0 -j ACCEPT
# HTTP
#$IPT -A INPUT -p tcp --dport http -m state --state NEW -s 0.0.0.0/0 -j ACCEPT
# HTTPS
#$IPT -A INPUT -p tcp --dport https -m state --state NEW -s 0.0.0.0/0 -j ACCEPT
# SSH
$IPT -A INPUT -p tcp --dport ssh -m state --state NEW -s 0.0.0.0/0 -j ACCEPT
# Accept inbound ICMP messages
$IPT -A INPUT -p ICMP --icmp-type 8 -s 0.0.0.0/0 -j ACCEPT
$IPT -A INPUT -p ICMP --icmp-type 11 -s 0.0.0.0/0 -j ACCEPT
# EOF


- save
- exit

- To start firewall at boot
# chmod +x /etc/rc.d/rc.firewall

- If you want to disable the firewall
# iptables -F

- To disable at boot time
# chmod -x /etc/rc.d/rc.firewall

Manually removing kernels and kernel modules

Manually removing kernels and kernel modules
(OPTIONAL WAY):

- /boot Contains all the kernel images
- They probably are named with version numbers. You need to be root ("su -") to delete them, and you can use the standard "rm"  
- The module directories are then located at /lib/modules/{kernel_version} , you can delete the ones you don't need there. Be careful not to delete the kernel and
modules you need of course

How to disable Nepomuk, Strigi and Akonadi in KDE4

How to disable Nepomuk, Strigi and Akonadi in KDE4


Disable Nepomuk, Strigi and Akonadi, which can and will cause many problems and crashes through CPU and RAM Hogging

- Go System Settings > Desktop Search > Basic Settings
and disable:

- Email Indexing
- Nepomuk File Indexer
- Nepomuk Semantic Desktop
then Apply

then > Indexing
and disable:

- Index Documents
- Index Audio
- Index Images
- Index Videos
- Index Source Code
then Apply


Navigate command line at your /home/user directory

Then edit - ~/.kde/share/config/nepomukserverrc
set this, save and exit:

[Basic Settings]
Start Nepomuk=false


Then edit - ~/.kde/share/config/kdedrc
set this, save and exit:

[Module-nepomuksearchmodule]
autoload=false


Then edit - ~/.config/akonadi/akonadiserverrc and set "StartServer" to false.
set this, save and exit

[QMYSQL]
StartServer=false


- Restart GNU/Linux