Advertising

Author Topic: Kernel Install  (Read 470 times)

Offline penguin

  • Jr. Member
  • **
  • Posts: 52
Kernel Install
« on: November 13, 2017, 03:59:11 pm »
Today I decided to install New kernel in Sparky. Kernel was 4.14.0. How can I downgrade to kernel 4.13 or another kernel ? I also deleted Sparky kernel 4.9.0.4

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1767
    • SparkyLinux
Re: Kernel Install
« Reply #1 on: November 13, 2017, 04:24:12 pm »
Install Debian's default kernel:
Code: [Select]
sudo apt updateamd64:
Code: [Select]
sudo apt install linux-image-4.13.0-1-amd64for i686 change "amd64" to "686" or "686-pae", then reboot and choose the older kernel from advanced menu of grub.
Nothing is easy as it looks.
Danielle Steel

Offline penguin

  • Jr. Member
  • **
  • Posts: 52
Re: Kernel Install
« Reply #2 on: November 13, 2017, 08:15:01 pm »
thanks pavroo!

Offline penguin

  • Jr. Member
  • **
  • Posts: 52
Re: Kernel Install
« Reply #3 on: November 21, 2017, 10:47:24 pm »
1 -Each time Sparky install a new kernel on the end of compilation Sparky gives me a warning message.
Quote
cryptsetup: WARNING: found more than one resume device candidate:
follow by old Swap UUID and new swap UUID.
When I check grub.cfg under /boot/grub I found that in the new kernel entry Sparky write as resume UUID the old one.I need to correct it manually each time.
I have resume UUID on resume file under changed /etc/initramfs-tools/conf.d/ .
Where get Sparky the old swap UUID ( that is original Swap UUID on the installation moment?)

2 -Another thing is that Sparky during upgrading grub.cfg each time changes also color my customized colour schema.Also this need to be corrected by me.

3- Because I installed a new kernel instead of Sparky Original (linux 4.9.0-4-amd64), each time a new kernel arrives, Sparky updates kernel.I just installed
original Sparky Kernel ( re installed it - because I have deleted it ). I will see if Sparky will stop and will not get any kernel updates. Will be worthy to have another
button in APTus ( install/reinstall original Sparky Kernel or LTS Kernel )
 
parvoo ! any idea ?

The same error I get when I apply command
Quote
sudo update-initramfs -u



The same I get when I apply follow comman

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1767
    • SparkyLinux
Re: Kernel Install
« Reply #4 on: November 22, 2017, 01:00:36 am »
Quote
WARNING: found more than one resume device candidate
Check two files:
/etc/fstab
/etc/initramfs-tools/conf.d/resume
The UUID shoud be the same of the two files as you get via command:
Code: [Select]
sudo blkid | grep swapWhen you change them, run:
Code: [Select]
sudo update-initramfs -u -t -k all
Quote
Another thing is that Sparky during upgrading grub.cfg
It is better to create a custom file in /etc/grub.d/ for example '07_my_theme' and provide your settings, then update initramfs and grub.

I put on my list to add kernel reinstallation in aptus.
Nothing is easy as it looks.
Danielle Steel

Offline penguin

  • Jr. Member
  • **
  • Posts: 52
Re: Kernel Install
« Reply #5 on: November 22, 2017, 09:30:17 am »
thanks parvoo.

The UUID on both position are the same. Each time that initramfs re compile kernel somewhere finds old Swap UUID.
To avoid it I can forcefully change Swap UUID to the original one (old one), but this not make sense.
Code: [Select]
https://www.systutorials.com/docs/linux/man/8-swaplabel/I am far way from my Sparky Linux machine now but i will try to create a new ''07_my_theme''. I have done something similar but I do not recall exactly what.
The grub.cfg is re written each time by updating of initramfs. Also I found that is re written also updated by grub customizer and changes reflect not only colour but also put old swap UUID within new entry. Means that somewhere instructions about theme colour and UUID are taken by a ''ini file'' that does not updated , but as remains original one/ from moment of install/.Maybe administrative rights?/ just read only?/

Parvoo. I suggest  also in APTus .
Button to find/see boot.log from /var/boot/boot.log / . I use in
Quote
leafpad /vat/boot/boot.log
Button to see last journalctl or in preffered period of time i use
Quote
sudo journalctl -b

Button to see failed services / services on que  etc. using systemctl and so on.(I am far way from Linux machine now, but I have collected many of similar commands in a file and I use them frequently)
All above can be a small editor/administration tool with bunch of commands in one.That can be simply created in yad. I have no previous experience with yad but I will try.
I know that I have sysadmin tools in Sparky / maybe gnome sysadmin/ that I need to recheck today.
In windows I have a very good experience with programing language, but still now I have not found a similar one in Linux.
Years ago I remember that Borland produced Kylix (very similar to Delphi).But this project is stopped and not maintained anymore.
I have tried one time to install Lazarus for debian but I run in trouble and I removed. Will be great to have a Delphi like programin language in Linux.Maybe I need to give a try to PureBasic for Linux.Any one use an IDE programing language  for Linux ?

thanks parvoo for your dedication.


 

« Last Edit: November 22, 2017, 09:46:41 am by penguin »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1767
    • SparkyLinux
Re: Kernel Install
« Reply #6 on: November 22, 2017, 02:13:41 pm »
I remember that was similar problem with the UUID what I was trying with Logical Volume Manager .
Check do you have installed packages:
lvm2
mdadm

If yes, remove them if you don't need.

Checking logs separated tab in aptus is a good idea.
Any different logs to display else?
Nothing is easy as it looks.
Danielle Steel

Offline penguin

  • Jr. Member
  • **
  • Posts: 52
Some tricks. Maybe I will try to write something in yad or Lazarus
« Reply #7 on: November 22, 2017, 08:25:45 pm »
Some trciks that I grabed from my text file.

// journalctl related
journalctl --boot=-0 last boot
journalctl --since "20 min ago"
journalctl --vacuum-size=500M 
journalctl -u *some service

// list timers
systemctl list-timers

//check if service is active or enabled
systemctl is-active
systemctl is-enabled

//chose a service to start or stop
sudo systemctl enabled
sudo systemctl start
sudo systemctl disable

// list of failed services
systemctl #failed
systemctl status systemd-modules-load  # failed to start kernel modules

// list all pacgages and output to a file under user directory
dpkg --list >~/packages_till_$(date +%F_%T:%3N)

// simple bash file saved under /usr/local/bin  > shortcut to desktop > speedtest of your internet ine
#!/bin/sh
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
read -n 1 -s -r -p
"Press any key to continue"

// simple bash file saved under /usr/local/bin  > shortcut to desktop > test uour download internet speed
#!/bin/sh
wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip
read -n 1 -s -r -p "Press any key to continue"

// some experiment with yad
// learning from this page
Quote
http://smokey01.com/yad/
// the follow line will show fstab
yad --width=1000 --height=500 --text-info < /etc/fstab --fontname="Serif 12"

//the follow line will show boot.log file
yad --width=1000 --height=500 --text-info </vat/log/boot.log  --fontname="Serif 12"

seems easy :)
« Last Edit: November 23, 2017, 08:47:55 am by penguin »

Offline penguin

  • Jr. Member
  • **
  • Posts: 52
Re: Kernel Install
« Reply #8 on: November 23, 2017, 05:01:26 pm »
I found two very good utilities to use in Sparky.

Show logs, Services and everything needed.

Gnome-System-Log
Systemd-UI

both in Synaptic.