Hi there 👋
I'm Mustafa Hastürk - iOS developer
💼 Currently working at @Akbank Juzdan 🧿 as iOS Application Architect
🏡 Live in Istanbul, Turkey 🇹🇷
💌 - mustafa[at]hasturk.dev
🔭 2024 Goal
Something big and loudy
🔥 BMH Music
Upgrade latest kernel automatically for Ubuntu and derivatives such as Linux Mint. :runner:
License: MIT License
System
root@dev:/tmp# uname -a
Linux dev 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@dev:/tmp# cat /etc/issue
Ubuntu 16.04.3 LTS \n \l
Output
root@dev:/tmp# ./ukupgrade
Ubuntu Kernel Upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
lynx-common
The following NEW packages will be installed:
lynx lynx-common
0 upgraded, 2 newly installed, 0 to remove and 89 not upgraded.
Need to get 1,035 kB of archives.
After this operation, 2,761 kB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 lynx-common all 2.8.9dev8-4ubuntu1 [411 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 lynx amd64 2.8.9dev8-4ubuntu1 [624 kB]
Fetched 1,035 kB in 0s (4,792 kB/s)
Selecting previously unselected package lynx-common.
(Reading database ... 248734 files and directories currently installed.)
Preparing to unpack .../lynx-common_2.8.9dev8-4ubuntu1_all.deb ...
Unpacking lynx-common (2.8.9dev8-4ubuntu1) ...
Selecting previously unselected package lynx.
Preparing to unpack .../lynx_2.8.9dev8-4ubuntu1_amd64.deb ...
Unpacking lynx (2.8.9dev8-4ubuntu1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Processing triggers for man-db (2.7.5-1) ...
Setting up lynx-common (2.8.9dev8-4ubuntu1) ...
Setting up lynx (2.8.9dev8-4ubuntu1) ...
update-alternatives: using /usr/bin/lynx to provide /usr/bin/www-browser (www-browser) in auto mode
Do you want the latest ReleaseCandidate [RC]? (y/n): n - Non ReleaseCandidate
Looking up kernel.ubuntu.com
Unable to locate remote host kernel.ubuntu.com.
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://kernel.ubuntu.com/~kernel-ppa/mainline/
Do you want the lowlatency kernel? (y/n): n - Generic
Downloading the latest generic kernel header...
Looking up lynx.invisible-island.net
Unable to locate remote host lynx.invisible-island.net.
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://lynx.invisible-island.net/
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
Download failed!
Downloading the latest generic kernel header...
--2017-10-11 01:41:48-- http://7./
Auflösen des Hostnamens 7. (7.)… fehlgeschlagen: Der Name oder der Dienst ist nicht bekannt.
wget: Host-Adresse »7.« kann nicht aufgelöst werden
Hey thanks for the script. It installes the low latency while i selected no and want to install generic.
Any idea?
FINISHED --2016-09-10 19:53:21--
Total wall clock time: 8.7s
Downloaded: 6 files, 58M in 8.5s (6.80 MB/s)
Installing Linux Kernel...
Selecting previously unselected package linux-headers-4.8.0-040800rc5.
(Reading database ... 108736 files and directories currently installed.)
Preparing to unpack linux-headers-4.8.0-040800rc5_4.8.0-040800rc5.201609041832_all.deb ...
Unpacking linux-headers-4.8.0-040800rc5 (4.8.0-040800rc5.201609041832) ...
Selecting previously unselected package linux-headers-4.8.0-040800rc5-generic.
Preparing to unpack linux-headers-4.8.0-040800rc5-generic_4.8.0-040800rc5.201609041832_amd64.deb ...
Unpacking linux-headers-4.8.0-040800rc5-generic (4.8.0-040800rc5.201609041832) ...
Selecting previously unselected package linux-headers-4.8.0-040800rc5-lowlatency.
Preparing to unpack linux-headers-4.8.0-040800rc5-lowlatency_4.8.0-040800rc5.201609041832_amd64.deb ...
Unpacking linux-headers-4.8.0-040800rc5-lowlatency (4.8.0-040800rc5.201609041832) ...
Selecting previously unselected package linux-image-4.8.0-040800rc5-generic.
Preparing to unpack linux-image-4.8.0-040800rc5-generic_4.8.0-040800rc5.201609041832_amd64.deb ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Done.
Unpacking linux-image-4.8.0-040800rc5-generic (4.8.0-040800rc5.201609041832) ...
Selecting previously unselected package linux-image-4.8.0-040800rc5-lowlatency.
Preparing to unpack linux-image-4.8.0-040800rc5-lowlatency_4.8.0-040800rc5.201609041832_amd64.deb ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Done.
Unpacking linux-image-4.8.0-040800rc5-lowlatency (4.8.0-040800rc5.201609041832) ...
`Fetching latest versions information...
Do you want the latest Release Candidate (RC) kernel? (y/n): n - Stable
Do you want the Low Latency kernel? (y/n): n - Generic
Ready to download and install kernel v5.15 generic? (y/n): Go Go Go...
Downloading the latest v5.15 generic kernel image...
--2021-12-05 05:04:57-- http://5./
Resolving 5. (5.)... failed: Name or service not known.
wget: unable to resolve host address ‘5.’
Downloading the latest v5.15 generic kernel header...
--2021-12-05 05:04:59-- http://2./
Resolving 2. (2.)... failed: Name or service not known.
wget: unable to resolve host address ‘2.’
Downloading the latest v5.15 generic kernel modules...
--2021-12-05 05:05:00-- http://7./
Resolving 7. (7.)... failed: Name or service not known.
wget: unable to resolve host address ‘7.’
Downloading the shared v5.15 generic kernel header...
--2021-12-05 05:05:02-- http://4./
Resolving 4. (4.)... failed: Name or service not known.
wget: unable to resolve host address ‘4.’
Installing Linux Kernel...
dpkg: error: cannot access archive 'linux*.deb': No such file or directory
Done. Should we reboot the machine now? (y/n): n - Do not forget to reboot to start using the latest kernel
root@bal:~# https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15/amd64/^C
`
Great job done here. Works like a charm. Thanks :)
In other words: the step "chmod +x ukupgrade" should be added
Do you want the latest Release Candidate (RC) kernel? (y/n): y - Release Candidate
Do you want the Low Latency kernel? (y/n): y - Low Latency
Ready to download and install kernel v5.15-rc4 lowlatency? (y/n): Go Go Go...
Downloading the latest v5.15-rc4 lowlatency kernel image...
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
Download failed!
root@dev:/tmp# curl https://raw.githubusercontent.com/muhasturk/ukupgrade/master/ukupgrade > ukupgrade
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
curl: (6) Could not resolve host: raw.githubusercontent.com
root@dev:/tmp#
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.