Linux News
LXer: Intel Arc GPUs Working Out-of-the-Box on Ubuntu 23.04
Published at LXer:
Ten months after Intel released their first line of dedicated GPUs, out-of-the-box support with Linux has arrived with the release of Ubuntu 23.04.
Read More...
Ten months after Intel released their first line of dedicated GPUs, out-of-the-box support with Linux has arrived with the release of Ubuntu 23.04.
Read More...
Categories: Software and Help
Intel Arc GPUs Working Out-of-the-Box on Ubuntu 23.04
Ten months after Intel released their first line of dedicated GPUs, out-of-the-box support with Linux has arrived with the release of Ubuntu 23.04.
Categories: General News
Data Error Messages
I run a Desktop PC with Debian 11 and an AMD Ryzen CPU.
It has been running okay, but now I have seen the following message :-
kernel:[2083218.760570] EXT4-fs (dm-0): failed to convert unwritten
extents to written extents -- potential data loss! (inode 394119, error
-30)
This happened when running the Opera browser.
It was subsequently discovered that I could not open the Opera or Chrome browsers,
Firefox could be run but seemed to run in a reduced mode and could not open or download email files.
An attempt was then made to reboot the PC, but this failed :-
The reboot error says:
/dev/mapper/vgpiglit-root contains a file system with errors, check
forced.
Inodes that were a part of a corrupted orphan linked lost found.
/dev/mapper/vgpiglit-root : UNEXPECTED INCONSISTENCY; RUN fsck
manually.(i.e .,
without -a or -p options). fsck exited with status code 4. The root
filesystem on /dev/mapper/vgpiglit-root requires a manual fsck
There is then a flashing prompt after "(initramfs)".
URGENT. Can anyone please help (possibly over the phone) with rebooting the PC.as much work is needed on computer files over the next few days.
Attempts have been made to contact people who might be able to help, but no contacts made. People may be away due to it being a Holiday weekend.
It has been running okay, but now I have seen the following message :-
kernel:[2083218.760570] EXT4-fs (dm-0): failed to convert unwritten
extents to written extents -- potential data loss! (inode 394119, error
-30)
This happened when running the Opera browser.
It was subsequently discovered that I could not open the Opera or Chrome browsers,
Firefox could be run but seemed to run in a reduced mode and could not open or download email files.
An attempt was then made to reboot the PC, but this failed :-
The reboot error says:
/dev/mapper/vgpiglit-root contains a file system with errors, check
forced.
Inodes that were a part of a corrupted orphan linked lost found.
/dev/mapper/vgpiglit-root : UNEXPECTED INCONSISTENCY; RUN fsck
manually.(i.e .,
without -a or -p options). fsck exited with status code 4. The root
filesystem on /dev/mapper/vgpiglit-root requires a manual fsck
There is then a flashing prompt after "(initramfs)".
URGENT. Can anyone please help (possibly over the phone) with rebooting the PC.as much work is needed on computer files over the next few days.
Attempts have been made to contact people who might be able to help, but no contacts made. People may be away due to it being a Holiday weekend.
Categories: Software and Help
Take the free ink ...
Take the free ink, and HP controls your printer for life.
Categories: Software and Help
Governments should act now before it's too late
Imagine your EV is stuck somewhere with no compatible charging station. It may not matter now, but in the next decade ???
https://tech.slashdot.org/story/23/0...or-ev-charging
https://tech.slashdot.org/story/23/0...or-ev-charging
Categories: Software and Help
Linux Mint XFCE 21 (Latest) screen resolution, text size, icon size, display - broken!
Hello.
Hope you are doing well, and thank you in advance for reading this.
Please feel free to skip ahead to the PROBLEMS or TRIED FIXES sections if that helps save your time.
I am using Linux Mint XFCE 21 (Latest version) on an ASUS Vivobook Laptop and running 2 External Monitors (using VGA Splitter) as Secondary Display.
Backstory:
The first time I had installed Linux Mint XFCE 20, it had some screen resolution, text size, icon size, button size, title bar and panel sizes, and display issues.
I had gone over this forum and resolved to solve them.
Today I changed my old VGA cable and plugged in VGA Extender connected by Ethernet Cable to my External Monitor.
Then the problems started happening -
1. The screen resolution has been completely broken with the VGA Extender and Ethernet Cable connecting to External Monitor
2. The text size, icon size, button size, title bar and panel sizes were all too small.
3. The display looks broken - as in stretched or breaking. Its a bit hard to explain, hence I am providing images shortly.
I went over this forum again and tried to fix it.
I tried several suggestions - changing font size options, scaling options, and resolution options.
But none of them were working.
Then I restarted my PC, and all the fonts became huge!
- I think Linux Mint XFCE was NOT rendering the changes until restart, and I thought it was not working, so set large values to test it. And after restart, everything went huge and now I cant even use my PC (cant navigate around PC or do anything - all the windows and buttons and options get cut off and flow out of screen due to their size!)
I first used Timeshift to go back to a previous version where things were working. But it seems Linux Mint XFCE kept track of the customization to display settings (font size, etc) and there was no change (everything was still huge).
I somehow managed to press ALT+SPACE and used the keyboard to select move and tried moving the windows and opening terminal.
From there I upgraded Linux Mint XFCE from 20 to 21 and installed all the latest updates (hoping it would undo the mistake). The upgrade was successful, but the broken settings which I had mistakenly saved were still in action (they were not erased by the upgrade).
I tried tweaking the settings and restarting every now and then, and managed to resolve a lot of the problems. But some of them are still remaining and I am having a hard time fixing them.
Some of the problems remaining:
1, Screen resolution is still broken / looks weird :
https://pasteboard.co/5pAuIg44jzgE.png
2. The Panel (Task bar) icon sizes are not consistent :
Some are too large, some are too small
https://pasteboard.co/fpjZdsyxKkQ7.png
3. The Start Menu Icons are huge:
https://pasteboard.co/ZrgAmsYcWyHL.png
4. The icons are huge globally:
https://pasteboard.co/PNwlXldC0YUI.png
5. All the panels are of broken sizes (either too large or too small):
https://pasteboard.co/cijVLeZVkUhR.png
6. The Title Bar, Title Bar Text and Title Bar Buttons - size is also not consistent (huge in some places, small in some):
https://pasteboard.co/DeyE4tdXZwGf.png
https://pasteboard.co/5EmbOhe4Wp3T.png
7. All Windows/Apps are opening in disproportionate / huge sizes - they are going out of the screen due to being so huge:
https://pasteboard.co/spfMKvZCI33Y.png
8. The notifications are also huge - the notification icon is huge, the text is tiny.
9. The Desktop Icons and Texts are tiny:
https://pasteboard.co/6ywthpdiSNRn.png
Some of the things I have tried tweaking:
1. Changing Size in Desktop > Right Click > Desktop Settings > Icons -
https://pasteboard.co/efl9bo53YDmV.png
2. Changing the Resolution in Start > Display > General -
https://pasteboard.co/756w7xWqdF4X.png
3, Changing the Font Size in Start > Window Manager > Style -
https://pasteboard.co/LabdD4RVpcQa.png
4. Changing the Font Size and Custom DPI Settings in Start > Appearance > Fonts -
https://pasteboard.co/OCdehBPeiCbm.png
5. Changing Row Size in Settings > Panel > Display -
https://pasteboard.co/fIWz7dIJAbth.png
6. Changing Size and DPI Settings in Start > KDE System Settings -
https://pasteboard.co/gtGVObjDLaU1.png
I have been trying all day to fix these issues, but have not been able to.
Please guide me how I can fix these. Your time and effort is greatly appreciated.
Thank you in advance.
Waiting eagerly for any solution or suggestion.
P.s. I am also adding the output of the following command
CODE: SELECT ALL
inxi -Fxxxz
if it helps:
Output:
CODE: SELECT ALL
scarlet@Scarlet:/media/scarlet$ inxi -Fxxxz
System:
Kernel: 5.15.0-72-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
Desktop: Xfce 4.16.0 tk: Gtk 3.24.23 info: xfce4-panel wm: xfwm 4.16.1
vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21 Vanessa
base: Ubuntu 22.04 jammy
Machine:
Type: Laptop System: ASUSTeK product: X542UN v: 1.0
serial: <superuser required>
Mobo: ASUSTeK model: X542UN v: 1.0 serial: <superuser required>
UEFI: American Megatrends v: X542UN.309 date: 09/02/2019
Battery:
ID-1: BAT0 charge: 24.6 Wh (100.0%) condition: 24.6/38.0 Wh (64.7%)
volts: 7.6 min: 7.6 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
status: Not charging cycles: 120
CPU:
Info: quad core model: Intel Core i7-8550U bits: 64 type: MT MCP
smt: enabled arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB
L3: 8 MiB
Speed (MHz): avg: 800 min/max: 400/4000 cores: 1: 800 2: 800 3: 800
4: 800 5: 800 6: 800 7: 800 8: 800 bogomips: 31999
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel UHD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel
ports: active: DP-1 off: eDP-1 empty: HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
chip-ID: 8086:5917 class-ID: 0300
Device-2: NVIDIA GP108M [GeForce MX150] vendor: ASUSTeK driver: nvidia
v: 525.105.17 pcie: speed: 2.5 GT/s lanes: 4 bus-ID: 01:00.0
chip-ID: 10de:1d10 class-ID: 0302
Device-3: IMC Networks USB2.0 VGA UVC WebCam type: USB driver: uvcvideo
bus-ID: 1-6:5 chip-ID: 13d3:5a01 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 1.21.1.4 compositor: xfwm v: 4.16.1 driver:
X: loaded: modesetting,nouveau unloaded: fbdev,vesa gpu: i915
display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1536x1152 s-dpi: 96 s-size: 406x305mm (16.0x12.0")
s-diag: 508mm (20")
Monitor-1: DP-1 res: 1536x1152 hz: 60 size: N/A modes: max: 1024x768
min: 640x480
OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2)
v: 4.6 Mesa 22.2.5 direct render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:9d71
class-ID: 0403
Device-2: Generalplus USB Audio Device type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-3:3 chip-ID: 1b3f:2008
class-ID: 0300
Sound Server-1: ALSA v: k5.15.0-72-generic running: yes
Sound Server-2: PulseAudio v: 15.99.1 running: yes
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
port: d000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: down mac: <filter>
Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
vendor: AzureWave driver: ath10k_pci v: kernel pcie: speed: 2.5 GT/s
lanes: 1 bus-ID: 03:00.0 chip-ID: 168c:0042 class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Device-3: Realtek RTL8152 Fast Ethernet Adapter type: USB driver: r8152
bus-ID: 1-4.4.1:9 chip-ID: 0bda:8152 class-ID: 0000 serial: <filter>
IF: enx00e04c360976 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: IMC Networks type: USB driver: btusb v: 0.8 bus-ID: 1-8:7
chip-ID: 13d3:3496 class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 0 state: down
bt-service: enabled,running rfk-block: hardware: no software: yes
address: <filter>
Drives:
Local Storage: total: 1.96 TiB used: 380.07 GiB (19.0%)
ID-1: /dev/sda vendor: Intel model: SSDSC2KW010T8 size: 953.87 GiB
speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0B1C scheme: GPT
ID-2: /dev/sdb vendor: SK Hynix model: HFS128G39TND-N210A
size: 119.24 GiB speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0P10
ID-3: /dev/sdd type: USB vendor: HGST (Hitachi) model: HTS 541010B7E610
size: 931.51 GiB type: N/A serial: <filter> rev: 03.0 scheme: GPT
Partition:
ID-1: / size: 937.33 GiB used: 141.73 GiB (15.1%) fs: ext4 dev: /dev/sda2
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
file: /swapfile
Sensors:
System Temperatures: cpu: 60.0 C pch: 55.5 C mobo: N/A
Fan Speeds (RPM): cpu: 3500
Info:
Processes: 381 Uptime: 1h 56m wakeups: 1 Memory: 15.51 GiB
used: 6.69 GiB (43.1%) Init: systemd v: 249 runlevel: 5 Compilers:
gcc: 11.3.0 alt: 11/12 Packages: 3210 apt: 3168 flatpak: 42 Shell: Bash
v: 5.1.16 running-in: xfce4-terminal inxi: 3.3.13
Hope you are doing well, and thank you in advance for reading this.
Please feel free to skip ahead to the PROBLEMS or TRIED FIXES sections if that helps save your time.
I am using Linux Mint XFCE 21 (Latest version) on an ASUS Vivobook Laptop and running 2 External Monitors (using VGA Splitter) as Secondary Display.
Backstory:
The first time I had installed Linux Mint XFCE 20, it had some screen resolution, text size, icon size, button size, title bar and panel sizes, and display issues.
I had gone over this forum and resolved to solve them.
Today I changed my old VGA cable and plugged in VGA Extender connected by Ethernet Cable to my External Monitor.
Then the problems started happening -
1. The screen resolution has been completely broken with the VGA Extender and Ethernet Cable connecting to External Monitor
2. The text size, icon size, button size, title bar and panel sizes were all too small.
3. The display looks broken - as in stretched or breaking. Its a bit hard to explain, hence I am providing images shortly.
I went over this forum again and tried to fix it.
I tried several suggestions - changing font size options, scaling options, and resolution options.
But none of them were working.
Then I restarted my PC, and all the fonts became huge!
- I think Linux Mint XFCE was NOT rendering the changes until restart, and I thought it was not working, so set large values to test it. And after restart, everything went huge and now I cant even use my PC (cant navigate around PC or do anything - all the windows and buttons and options get cut off and flow out of screen due to their size!)
I first used Timeshift to go back to a previous version where things were working. But it seems Linux Mint XFCE kept track of the customization to display settings (font size, etc) and there was no change (everything was still huge).
I somehow managed to press ALT+SPACE and used the keyboard to select move and tried moving the windows and opening terminal.
From there I upgraded Linux Mint XFCE from 20 to 21 and installed all the latest updates (hoping it would undo the mistake). The upgrade was successful, but the broken settings which I had mistakenly saved were still in action (they were not erased by the upgrade).
I tried tweaking the settings and restarting every now and then, and managed to resolve a lot of the problems. But some of them are still remaining and I am having a hard time fixing them.
Some of the problems remaining:
1, Screen resolution is still broken / looks weird :
https://pasteboard.co/5pAuIg44jzgE.png
2. The Panel (Task bar) icon sizes are not consistent :
Some are too large, some are too small
https://pasteboard.co/fpjZdsyxKkQ7.png
3. The Start Menu Icons are huge:
https://pasteboard.co/ZrgAmsYcWyHL.png
4. The icons are huge globally:
https://pasteboard.co/PNwlXldC0YUI.png
5. All the panels are of broken sizes (either too large or too small):
https://pasteboard.co/cijVLeZVkUhR.png
6. The Title Bar, Title Bar Text and Title Bar Buttons - size is also not consistent (huge in some places, small in some):
https://pasteboard.co/DeyE4tdXZwGf.png
https://pasteboard.co/5EmbOhe4Wp3T.png
7. All Windows/Apps are opening in disproportionate / huge sizes - they are going out of the screen due to being so huge:
https://pasteboard.co/spfMKvZCI33Y.png
8. The notifications are also huge - the notification icon is huge, the text is tiny.
9. The Desktop Icons and Texts are tiny:
https://pasteboard.co/6ywthpdiSNRn.png
Some of the things I have tried tweaking:
1. Changing Size in Desktop > Right Click > Desktop Settings > Icons -
https://pasteboard.co/efl9bo53YDmV.png
2. Changing the Resolution in Start > Display > General -
https://pasteboard.co/756w7xWqdF4X.png
3, Changing the Font Size in Start > Window Manager > Style -
https://pasteboard.co/LabdD4RVpcQa.png
4. Changing the Font Size and Custom DPI Settings in Start > Appearance > Fonts -
https://pasteboard.co/OCdehBPeiCbm.png
5. Changing Row Size in Settings > Panel > Display -
https://pasteboard.co/fIWz7dIJAbth.png
6. Changing Size and DPI Settings in Start > KDE System Settings -
https://pasteboard.co/gtGVObjDLaU1.png
I have been trying all day to fix these issues, but have not been able to.
Please guide me how I can fix these. Your time and effort is greatly appreciated.
Thank you in advance.
Waiting eagerly for any solution or suggestion.
P.s. I am also adding the output of the following command
CODE: SELECT ALL
inxi -Fxxxz
if it helps:
Output:
CODE: SELECT ALL
scarlet@Scarlet:/media/scarlet$ inxi -Fxxxz
System:
Kernel: 5.15.0-72-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
Desktop: Xfce 4.16.0 tk: Gtk 3.24.23 info: xfce4-panel wm: xfwm 4.16.1
vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21 Vanessa
base: Ubuntu 22.04 jammy
Machine:
Type: Laptop System: ASUSTeK product: X542UN v: 1.0
serial: <superuser required>
Mobo: ASUSTeK model: X542UN v: 1.0 serial: <superuser required>
UEFI: American Megatrends v: X542UN.309 date: 09/02/2019
Battery:
ID-1: BAT0 charge: 24.6 Wh (100.0%) condition: 24.6/38.0 Wh (64.7%)
volts: 7.6 min: 7.6 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
status: Not charging cycles: 120
CPU:
Info: quad core model: Intel Core i7-8550U bits: 64 type: MT MCP
smt: enabled arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB
L3: 8 MiB
Speed (MHz): avg: 800 min/max: 400/4000 cores: 1: 800 2: 800 3: 800
4: 800 5: 800 6: 800 7: 800 8: 800 bogomips: 31999
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel UHD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel
ports: active: DP-1 off: eDP-1 empty: HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
chip-ID: 8086:5917 class-ID: 0300
Device-2: NVIDIA GP108M [GeForce MX150] vendor: ASUSTeK driver: nvidia
v: 525.105.17 pcie: speed: 2.5 GT/s lanes: 4 bus-ID: 01:00.0
chip-ID: 10de:1d10 class-ID: 0302
Device-3: IMC Networks USB2.0 VGA UVC WebCam type: USB driver: uvcvideo
bus-ID: 1-6:5 chip-ID: 13d3:5a01 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 1.21.1.4 compositor: xfwm v: 4.16.1 driver:
X: loaded: modesetting,nouveau unloaded: fbdev,vesa gpu: i915
display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1536x1152 s-dpi: 96 s-size: 406x305mm (16.0x12.0")
s-diag: 508mm (20")
Monitor-1: DP-1 res: 1536x1152 hz: 60 size: N/A modes: max: 1024x768
min: 640x480
OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2)
v: 4.6 Mesa 22.2.5 direct render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:9d71
class-ID: 0403
Device-2: Generalplus USB Audio Device type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-3:3 chip-ID: 1b3f:2008
class-ID: 0300
Sound Server-1: ALSA v: k5.15.0-72-generic running: yes
Sound Server-2: PulseAudio v: 15.99.1 running: yes
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
port: d000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: down mac: <filter>
Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
vendor: AzureWave driver: ath10k_pci v: kernel pcie: speed: 2.5 GT/s
lanes: 1 bus-ID: 03:00.0 chip-ID: 168c:0042 class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Device-3: Realtek RTL8152 Fast Ethernet Adapter type: USB driver: r8152
bus-ID: 1-4.4.1:9 chip-ID: 0bda:8152 class-ID: 0000 serial: <filter>
IF: enx00e04c360976 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: IMC Networks type: USB driver: btusb v: 0.8 bus-ID: 1-8:7
chip-ID: 13d3:3496 class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 0 state: down
bt-service: enabled,running rfk-block: hardware: no software: yes
address: <filter>
Drives:
Local Storage: total: 1.96 TiB used: 380.07 GiB (19.0%)
ID-1: /dev/sda vendor: Intel model: SSDSC2KW010T8 size: 953.87 GiB
speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0B1C scheme: GPT
ID-2: /dev/sdb vendor: SK Hynix model: HFS128G39TND-N210A
size: 119.24 GiB speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0P10
ID-3: /dev/sdd type: USB vendor: HGST (Hitachi) model: HTS 541010B7E610
size: 931.51 GiB type: N/A serial: <filter> rev: 03.0 scheme: GPT
Partition:
ID-1: / size: 937.33 GiB used: 141.73 GiB (15.1%) fs: ext4 dev: /dev/sda2
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
file: /swapfile
Sensors:
System Temperatures: cpu: 60.0 C pch: 55.5 C mobo: N/A
Fan Speeds (RPM): cpu: 3500
Info:
Processes: 381 Uptime: 1h 56m wakeups: 1 Memory: 15.51 GiB
used: 6.69 GiB (43.1%) Init: systemd v: 249 runlevel: 5 Compilers:
gcc: 11.3.0 alt: 11/12 Packages: 3210 apt: 3168 flatpak: 42 Shell: Bash
v: 5.1.16 running-in: xfce4-terminal inxi: 3.3.13
Categories: Software and Help
comptia linux+ (XKO-005) and other courses
Hi, just need you expert advise about the ladder in learning linux. I am just newbie in linux and was trying ubuntu and centos7. I enrolled in an online course - comptia linux+ (XKO-005), just to see and feel what it is and to learn more about it. The course focuses on Centos7 and RHEL.
I would like to learn more on commands and everything about RHEL/Rocky linux and at the same time commands in ubuntu/debian OS. I am planning to enroll on the same course comptia linux+ (XKO-005) but on a different provider just to learn more.
Any suggestion or what should i do or any courses i should take other than comptia linux+ (XKO-005). My goal is to learn more and hopefully work in a linux environment either as a support or system administrator.
Also does the comptia linux+ (XKO-005) courses provided by different online provider focuses only on RHEL or it depends on what they offer.
Thanks a lot in advance to those who will suggest.
I would like to learn more on commands and everything about RHEL/Rocky linux and at the same time commands in ubuntu/debian OS. I am planning to enroll on the same course comptia linux+ (XKO-005) but on a different provider just to learn more.
Any suggestion or what should i do or any courses i should take other than comptia linux+ (XKO-005). My goal is to learn more and hopefully work in a linux environment either as a support or system administrator.
Also does the comptia linux+ (XKO-005) courses provided by different online provider focuses only on RHEL or it depends on what they offer.
Thanks a lot in advance to those who will suggest.
Categories: Software and Help
for i in a b c d
I have in a file called "files" a listing of directories named - let's say - a, b, c, d, e, f etc. Each name is one line.
I would like to write a script in bash that will perform the following functions:
Code: #!/bin/bash
ls -d -1 */|sed 's/\///' > files
for i in a c g
do
# do something with $i
done
for i in <all others>
do
# do something with any else $i
done Can someone give me a hint how to do that?
I would like to write a script in bash that will perform the following functions:
Code: #!/bin/bash
ls -d -1 */|sed 's/\///' > files
for i in a c g
do
# do something with $i
done
for i in <all others>
do
# do something with any else $i
done Can someone give me a hint how to do that?
Categories: Software and Help
AlmaLinux 8 or 9 - auto restart services after update
dnf-automatic needs-restarting
I came across this article which gives a sample script to restart services after an automatic update (dnf-automatic):
https://www.mvps.net/docs/how-to-ena...s-on-centos-8/
Script:
Code: #!/bin/sh
if [ ! -f "/usr/bin/needs-restarting" ]; then
yum -y install yum-utils
fi
if [ -f "/var/run/yum.pid" ]; then
echo "Yum running"
exit 0;
fi
typeset -i COUNT=0
COUNT=$(pgrep dnf|wc -l)
if [ $COUNT -gt 0 ] ; then
echo "DNF running";
exit 0;
fi
needs-restarting -r >/dev/null || { reboot; exit 0; }
NEEDS=`needs-restarting`
echo $NEEDS| grep -q auditd && { reboot; exit 0; }
echo $NEEDS| grep -q '/usr/sbin/httpd' && { systemctl restart httpd; }
echo $NEEDS| grep -q '/usr/sbin/sshd' && { systemctl restart sshd; }
echo $NEEDS| grep -q '/usr/sbin/nginx' && { systemctl restart nginx; }
echo $NEEDS| grep -q '/usr/sbin/chronyd' && { systemctl restart chronyd; }
echo $NEEDS| grep -q '/usr/libexec/postfix/master' && { systemctl restart postfix;}
echo $NEEDS| grep -q '/var/run/mariadb/' && { systemctl restart mariadb;}
echo $NEEDS| grep -q 'sbin/mydns' && { systemctl restart mydns; }
echo $NEEDS| grep -q 'sbin/pdns_server' && { systemctl restart pdns; }
echo $NEEDS| grep -q 'php-fpm:' && { systemctl restart php-fpm;} The script needs to be customized to work for each individual server based on what applications/services are installed. You have to manually add each service to the script.
I'm pretty green when it comes to Linux. Is there a better way to do this so that the script can be made more generic/smarter so that one does not have to have a custom script for each and every server? Is this harder than it may seem? If so, how would I go about figuring out which services I need to add and how do I figure out what each line of code should be for each service?
Also, I want to be notified instead of auto rebooting the system when a reboot is necessary. I'm confused as to why { reboot; exit 0; } is listed twice. I'm assuming I can replace that code with something like below since mailx and postfix are already installed on each server:
Code: { echo "body of email" | mail -s "Subject Line" -a "From: Admin Name <noreply@example.org>" mail@recipient.com }
I came across this article which gives a sample script to restart services after an automatic update (dnf-automatic):
https://www.mvps.net/docs/how-to-ena...s-on-centos-8/
Script:
Code: #!/bin/sh
if [ ! -f "/usr/bin/needs-restarting" ]; then
yum -y install yum-utils
fi
if [ -f "/var/run/yum.pid" ]; then
echo "Yum running"
exit 0;
fi
typeset -i COUNT=0
COUNT=$(pgrep dnf|wc -l)
if [ $COUNT -gt 0 ] ; then
echo "DNF running";
exit 0;
fi
needs-restarting -r >/dev/null || { reboot; exit 0; }
NEEDS=`needs-restarting`
echo $NEEDS| grep -q auditd && { reboot; exit 0; }
echo $NEEDS| grep -q '/usr/sbin/httpd' && { systemctl restart httpd; }
echo $NEEDS| grep -q '/usr/sbin/sshd' && { systemctl restart sshd; }
echo $NEEDS| grep -q '/usr/sbin/nginx' && { systemctl restart nginx; }
echo $NEEDS| grep -q '/usr/sbin/chronyd' && { systemctl restart chronyd; }
echo $NEEDS| grep -q '/usr/libexec/postfix/master' && { systemctl restart postfix;}
echo $NEEDS| grep -q '/var/run/mariadb/' && { systemctl restart mariadb;}
echo $NEEDS| grep -q 'sbin/mydns' && { systemctl restart mydns; }
echo $NEEDS| grep -q 'sbin/pdns_server' && { systemctl restart pdns; }
echo $NEEDS| grep -q 'php-fpm:' && { systemctl restart php-fpm;} The script needs to be customized to work for each individual server based on what applications/services are installed. You have to manually add each service to the script.
I'm pretty green when it comes to Linux. Is there a better way to do this so that the script can be made more generic/smarter so that one does not have to have a custom script for each and every server? Is this harder than it may seem? If so, how would I go about figuring out which services I need to add and how do I figure out what each line of code should be for each service?
Also, I want to be notified instead of auto rebooting the system when a reboot is necessary. I'm confused as to why { reboot; exit 0; } is listed twice. I'm assuming I can replace that code with something like below since mailx and postfix are already installed on each server:
Code: { echo "body of email" | mail -s "Subject Line" -a "From: Admin Name <noreply@example.org>" mail@recipient.com }
Categories: Software and Help
How to Stress Test CPU in Linux
Want to stress test your CPU in Linux? Learn how to do it effortlessly with this step-by-step guide.
The post How to Stress Test CPU in Linux appeared first on Linux Today.
Categories: General News
LXer: Red Hat promises AI trained on 'curated' and 'domain-specific' data
Published at LXer:
Says it'll keep track of what it hoovers up at post-layoff summitOpinion In Red Hat land, some things remain the same � Fedora will still be supported, we're told � while others, AI-driven applications, are starting to surface.�
Read More...
Says it'll keep track of what it hoovers up at post-layoff summitOpinion In Red Hat land, some things remain the same � Fedora will still be supported, we're told � while others, AI-driven applications, are starting to surface.�
Read More...
Categories: Software and Help
Red Hat promises AI trained on 'curated' and 'domain-specific' data
Says it'll keep track of what it hoovers up at post-layoff summitOpinion In Red Hat land, some things remain the same – Fedora will still be supported, we're told – while others, AI-driven applications, are starting to surface.…
Categories: General News
[SOLVED] Ubuntu
I'm trying to perform a task in the terminal where I want to personalize the pwd output. When I follow the instructions on how to do this, I get error code: 325, and after that only letters from the alphabet come up when I scroll up and down in the terminal and I can't type anything. Does anyone know how I can resolve this?
Categories: Software and Help
LXer: How to Install Apache Solr on AlmaLinux 9
Published at LXer:
Apache Solr or Solr is an enterprise-grade search platform based on the Apache Lucene library. In this tutorial you will learn how to install Apache Solr on an AlmaLinux 9 server. You will also set up MaxHeapMemory for Solr, set limits and set up basic authentication for Solr.
Read More...
Apache Solr or Solr is an enterprise-grade search platform based on the Apache Lucene library. In this tutorial you will learn how to install Apache Solr on an AlmaLinux 9 server. You will also set up MaxHeapMemory for Solr, set limits and set up basic authentication for Solr.
Read More...
Categories: Software and Help
How to Install Apache Solr on AlmaLinux 9
Apache Solr or Solr is an enterprise-grade search platform based on the Apache Lucene library. In this tutorial you will learn how to install Apache Solr on an AlmaLinux 9 server. You will also set up MaxHeapMemory for Solr, set limits and set up basic authentication for Solr.
Categories: General News
LXer: PyPI subpoenaed: US govt demands data on developers
Published at LXer:
Python package packhouse ponders privacy positionIn March and April, three subpoenas seeking data on users of PyPI, the Python Package Index, were presented to the Python Software Foundation (PSF).�
Read More...
Python package packhouse ponders privacy positionIn March and April, three subpoenas seeking data on users of PyPI, the Python Package Index, were presented to the Python Software Foundation (PSF).�
Read More...
Categories: Software and Help
PyPI subpoenaed: US govt demands data on developers
Python package packhouse ponders privacy positionIn March and April, three subpoenas seeking data on users of PyPI, the Python Package Index, were presented to the Python Software Foundation (PSF).…
Categories: General News
LXer: How to Install Burp Suite on Linux
Published at LXer:
Burp Suite is popular among developers and QA testers to a large extent. This guide shows how to install Burp Suite on Linux.
Read More...
Burp Suite is popular among developers and QA testers to a large extent. This guide shows how to install Burp Suite on Linux.
Read More...
Categories: Software and Help
How to Install Burp Suite on Linux
Burp Suite is popular among developers and QA testers to a large extent. This guide shows how to install Burp Suite on Linux.
Categories: General News
applying last updates, qt5 got cleaned with one mirror not the other and not upgraded
Hi, I don't know what's going on.
On one rockpro64 using mirror
https://ftp.halifax.rwth-aachen.de/s...rch64-current/
qt5-5.15.9_20230412_abff5c39-aarch64-1 got cleaned but
l/qt5-5.15.9_20230523_245f369c-aarch64-1.txz: did not get applied
using mirror
http://ftp.arm.slackware.com/slackwa...rch64-current/
on another rockpro64
l/qt5-5.15.9_20230523_245f369c-aarch64-1.txz: did get applied
I had some rust upgrade issue couple weeks ago where rust got cleaned but not upgraded, the older version was removed but I thought the new version failed because the download was corrupt. Is it possible for something odd to be going on with the different mirrors? I don't see how.
On one rockpro64 using mirror
https://ftp.halifax.rwth-aachen.de/s...rch64-current/
qt5-5.15.9_20230412_abff5c39-aarch64-1 got cleaned but
l/qt5-5.15.9_20230523_245f369c-aarch64-1.txz: did not get applied
using mirror
http://ftp.arm.slackware.com/slackwa...rch64-current/
on another rockpro64
l/qt5-5.15.9_20230523_245f369c-aarch64-1.txz: did get applied
I had some rust upgrade issue couple weeks ago where rust got cleaned but not upgraded, the older version was removed but I thought the new version failed because the download was corrupt. Is it possible for something odd to be going on with the different mirrors? I don't see how.
Categories: Software and Help