howto: fedora 19 disabling packagekit

as one gets older, one learns a bit more and if wise, writes it down ;) this is the commands i use to disable PackageKit in fedora 19

sed -i 's/\[Daemon\]/#\[Daemon\]/' /etc/PackageKit/PackageKit.conf
yum -y erase PackageKit-yum-plugin apper"

seems to be working so far

How To Upgrade From Fedora 18 To Fedora 19 (Desktop & Server)

this is how to upgrade from fedora 18 to fedora 19 on both desktop and server boxes

  1. fedup --network 18
  2. reboot into the upgrade bootup
  3. yum distro-sync --skip-broken

let us know if you were succesful

howto: setup and configure bleachbit to run from the cli

bleachbit is a system cleaner for linux. or it originally started out that way and now it is also available for windows.

the home page states: BleachBit quickly frees disk space and tirelessly guards your privacy.

it started out as a gui only program and then a cli was added. so how to use bleachbit from the cli ? well there are 2 methods

method 1

requires that you run

bleachbit --help;bleachbit --list

to figure out which cleaners you want to use and with what options.

howto: setup samba public share

i wanted to set up a directory on my linux server where i and the rest of the family could get to the dvds and stuff on a directory called /media. since not everyone is using linux it had to be a windows share via samba

so this is my /etc/samba/smb.conf that i finally used:

howto: setup and configure denyhosts

so browsing through your system logs you begin to notice that you have failed ssh attempts on your system. looking deeper you realise these credentials are for users that do not exist on your system. it dawns on you that someone (or something) is attempting to brute force their way into your system. what do you do?

install denyhosts then configure it!

installation is pretty simple with a

how to set up vnstat - a lightweight network bandwidth monitoring tool

vnstat is a network bandwidth monitoring application. it uses data collected by the kernel and so is quite light on the system.

the installation is dependent on your OS but once done, the program requires a little bit more to complete the setup:

this command will create databases to record the bandwidth for all interfaces on the system

for int in `vnstat --iflist| sed 's/Available interfaces://'` 
do
        vnstat -u -i $int
done

this next command is needed to allow vnstat to write to the db that was created as root

how to step through a shell script

so you wrote a shell script, likely in bash, and it is pretty long and now you need to step through it. here is how:

at the top of your shell script under your hash bang line and before your code you add these 2 lines

set -x
trap read debug

how to install openstack on centos or fedora or rhel systems

openstack is a cloud system. it has many components. absolutely complicated to install and even worse to get it working just right. until about a week agonow. it is simplified to the following steps

  1. fresh baremetal install of the os on hardware
  2. install the repo
  3. install the software that will install openstack
  4. run the software to install openstack

so what is it? its packstack available at openstack.redhat.com

how to: gain some battery time on your laptop

so you have a laptop and you arent happy with the amount of time the laptop's battery gives you. the solution is a program called powertop that was originally written by some guys at intel. its home page is currently at https://01.org/powertop/ .

unlike the version 1 series , the version 2 series doesnt tell you how to implement the powersaving tips at bootup via the ui, only interactively toggling betwen good and bad.

so the solution is to run powertop from the command line:

how to: create your own openstack spacewalk channel

there is nothing to it. just 2 simple commands

these 2 commands will first create the channel then inject the packages and their dependencies into the newly created channel. and the commands are ..

Pages

Subscribe to Posix In Egypt RSS