Upgrading Fedora 27 to 28

I upgraded my laptop from Fedora 27 to Fedora 28 last night and I’ve got to say it’s was one of the most painless upgrades I’ve ever done.  Here’s how I did it.
1, Make sure you’re system is backed up and has all the most recent packages [I’m not responsible for a hosed system if this doesn’t work for you

dnf upgrade --refresh

2, Install the dnf upgrade plugin

dnf install dnf-plugin-system-upgrade

3, Start the upgrade [Please note this will only download the packages, it won’t install them

dnf system-upgrade download --releasever=28

4, Start the upgrade process

dnf system-upgrade reboot

Your system will reboot and start the upgrade process, depending on the speed of your system it might take awhile.
If you have any problems you might have to disable third party repos you have installed on your computer.

Posted in Fedora | Leave a comment

Fedora 27 Coloured Bash prompt

For my information, but others might find it useful.
To get this prompt
Add the following line to your .bashrc file
PS1=”[\[\033[1;31m\]\u\[\033[0m\]@\h \W]\\$ ”
To get this colour at the root prompt
Add this to the root .bashrc prompt
PS1=”[\[\033[1;32m\]\u\[\033[0m\]@\h \W]\\$ ”
The actual color code is “1;31″ inside the PS1 variable. The 1 says make it ”’bold”’ and the 31 says the color red.
1;30 Black
1;31 Red
1;32 Green
1;33 Yellow
1;34 Blue
1;35 Magenta
1;36 Cyan
1;37 White (Don’t think white would show up too well on this page)

Posted in Fedora | 2 Comments

/happy new year

Hello, welcome, how are you ?
It’s a day or so late, but I wanted to wish every one a happy new year. 2017 was a very busy year and I suspect 2018 will equally be as busy, but I wanted to extend a hand and say Hi, how are you ?
Feel free to come say hello. Nothing very exciting here, but a good ear is sometimes all that’s required.
Enjoy 2018, I hope to see some of you real soon.

Posted in Fedora, Uncategorized | Leave a comment

nmap + zenmap + fedora

I’ve just tried to install nmap and zenmap on Fedora 27, I thought it would be as simple as
dnf install nmap zenmap
well no, zenmap isn’t found, a quick search on google and it’s actually nmap-frontend
so for my records, and anyone out there that wants to install nmap and it’s front end on Fedora 27
dnf install nmap nmap-frontend
You’re welcome.

Posted in Fedora | 1 Comment

Hello :)

You know I haven’t blogged or posted in while, so I thought I’d just write this quick post to say hello and yes I’m still about.
If you feel the need to say hello, and please feel free, then I can be contacted at prjmellors -at- gmail -dot- com

Posted in Fedora, Uncategorized | Leave a comment

tmux config

I’ve just started playing with tmux in the i3 window manager, just to try something new.  For my benefit incase i need to reinstall, this is what I have in it so far. It’s nowhere complete, and just a start, but it works for me 🙂
Feel free to comment with additions or what you use in yours.
#change binding key
unbind-key C-b
set-option -g prefix C-a
bind-key C-a send prefix
bind-key v split-window -v
bond-key h split-window -h
set -g mouse on
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pan -D
set -g status off

Posted in Fedora | Tagged , | 4 Comments

Unattended Upgrades

** Update 11/10/17 [Thanks James] **
It looks like there is an issue if you had dnf-automatic in Fedora 25 or earlier as Fedora 26 jumps from DNF 1.x to 2.x, so please read THIS post before you install it in 25 and upgrade.
Blatantly stolen from here for my records – Thanks Iain R. Learmonth


Make sure that unattended-upgrades is installed and then enable the installation of updates (as root):

apt install unattended-upgrades
dpkg-reconfigure -plow unattended-upgrades

Fedora 22 or later

Beginning with Fedora 22, you can enable automatic updates via:

dnf install dnf-automatic

In /etc/dnf/automatic.conf set:

apply_updates = yes

Now enable and start automatic updates via:

systemctl enable dnf-automatic.timer
systemctl start dnf-automatic.timer

(Thanks to Enrico Zini I know all about these timer units in systemd now.)

RHEL or CentOS

For CentOS, RHEL, and older versions of Fedora, the yum-cron package is the preferred approach:

yum install yum-cron

In /etc/yum/yum-cron.conf set:

apply_updates = yes

Enable and start automatic updates via:

systemctl start yum-cron.service


Posted in debian, Fedora | Tagged | 2 Comments

Fedora User Wiki

If you wasn’t aware, Fedora users can create their own user information page on a wiki.  Mine for example is https://fedoraproject.org/wiki/User:Paulmellors [please note that’s it’s currently pretty sparse]
One of the more interesting things on the page is my list of badges.  I’ll not explain what they are as you can read it here
To add a list of your badges to your wiki, all you need to add to the page is this
{{ #fedorabadges: paulmellors }}      just make sure you replace my username with your own and you’ll have all your hard earned shiny badges on your wiki. #funtimes
Alternatively, you can add an infobox that displays all your information [including badges], this is the wiki code for mine
{{Infobox user
|REAL-NAME= Paul RJ Mellors
|location= Nottingham, UK
|birthday= April 15, 1972
|fas-name= paulmellors
|irc-nick= MooDoo
|irc-channels= #fedora-ambassadors #fedora-uk #fedora-diversity #fedora-mktg #fedora-join}}
Now you can populate your wiki page with information that people might like to read, one way of getting to know you, you never know someone might like to buy you a beer one day……[hint hint] 😉

Posted in Fedora | Leave a comment

Fedora 26 + i3 window manager

Hay, please ignore this post, it’s really for my own benefit as I tend to come back to my posts when I need information, in this instance it’s part of my config for the i3 window manager
# start a terminal
bindsym $mod+Return exec gnome-terminal
# thunar
bindsym $mod+t exec –no-startup-id thunar
# load nm-applet
exec –no-startup-id nm-applet
# load backdrop
exec -no-startup-id feh –bg-scale /home/paulmellors/Storage/wha.jpg
# Volume control
bindsym XF86AudioRaiseVolume exec –no-startup-id pactl set-sink-volume 0 +1%
bindsym XF86AudioLowerVolume exec –no-startup-id pactl set-sink-volume 0 -1%
bindsym XF86AudioMute exec –no-startup-id pactl set-sink-mute 0 toggle
# lock screen
bindsym $mod+l exec –no-startup-id i3lock -i /home/paulmellors/Storage/locked.png
Ok that’ll do it 🙂
Is anyone else out there using the i3 WM?

Posted in Fedora | 5 Comments

Fedora 26 + Wireless + BCM43142

I have a laptop, it’s a Dell Inspiron 15 [3000 Series] who’s wireless doesn’t work out the box.
This is how I installed the driver to get it working.
1, check which model of Broadcome you have
[paulmellors@sheldon ~]$ lspci | grep Network
06:00.0 Network controller: Broadcom Limited BCM43142 802.11b/g/n (rev 01)
[paulmellors@sheldon ~]$
2. Install RPM Fusion for your system from here
3. Install broadcom-wl
[root@sheldon paulmellors]# dnf install broadcom-wl
Reboot, and your wireless should be available now.
I use the i3 window manager, so I had to also install the network-manager-applet so I could load nm-applet, but it worked once I’d added the comment to the i3 config.
Screenshot from 2017-09-05 10-56-56

Posted in Fedora | 2 Comments