Is there any way to upgrade KDE Plasma from 5.24 to 5.27 on kUbuntu 22.04 (without upgrading to kUbuntu 23)?
Edward Torvalds's questions
Why does $ ls > ls.out
cause 'ls.out' to be included in list of names of files in current directory? Why was this chosen to be? Why not otherwise?
I had previously learned that NetworkManager stores WiFi passwords in /etc/NetworkManager/system-connections/<wifi name>
file. But in my case on Ubuntu 15.10 I can't find any password in that file.
I tried this:
sudo cat /etc/NetworkManager/system-connections/cig | grep psk
[sudo] password for edward:
key-mgmt=wpa-psk
psk-flags=1
here does NetworkManager store WiFi passwords?
I am running few benchmarks test using binaries made out of C. Is there anyway so I can ask kernel not to cache any part of these binary programs?
I have two computers running Ubuntu and have Remmina installed. I want 'How to' to setup both computer so that one computer can take remote desktop of other.
I know that <
, <()
, <<
all are used to give input and >
, >()
which are used to redirect output.
But I don't know what is clear difference between them and when to use them. Please explain in detail and along with references if possible. Thanks
I am following MountWindowsSharesPermanently to mount a samba share on boot
As said in wiki, I added these lines to /etc/fstab
:
# auto-mounting the samba share 'Seagates' on raspberry pi
//192.168.2.2/Seagates /home/edward/samba/raspberry cifs uid=1000,gid=1000,credentials=/home/edward/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
and after that, since it is a password protected share, I added login credentials in ~/.smbcredentials
and rebooted
The mount is failing with these errors, taken from journalctl | grep samba
:
Nov 10 22:39:27 flippingbits systemd[1]: Mounting /home/edward/samba/raspberry...
Nov 10 22:39:33 flippingbits systemd[1]: home-edward-samba-raspberry.mount: Mount process exited, code=exited status=32
Nov 10 22:39:33 flippingbits systemd[1]: Failed to mount /home/edward/samba/raspberry.
Nov 10 22:39:33 flippingbits systemd[1]: home-edward-samba-raspberry.mount: Unit entered failed state.
Nov 10 22:39:58 flippingbits smbd[2613]: pam_unix(samba:session): session closed for user nobody
However if I mount using sudo mount -a
after boot, it works.
NOTE: On the same page (here) they have showed a work around to add username=guest
to solve this problem. But I cant do it because I am mounting it as another user which is written in ~/.smbcredentials
I am on Ubuntu 15.10
I have set few aliases in .bashrc
file. I need those aliases most of the time, but sometimes I need to run those command without options set in that particular alias.
How to not execute alias command?
I can use 2> errorLogFile
to log error of running script to a file right? my question is how to log the date and time of error along with error?
for example:
$ cat myScript
2> errorLogFile
..... # rest of the script
this is how the error file should look like:
$ cat errorLogFile
21 Nov 2015 2:00 PM some error happened
Yesterday I had to try installation of new Ubuntu 15.10 more than 5 times.
I have noticed methods that give me unbootable system on reboot after installation. It says it cannot detect UEFI partition even if it exist and is made during same installation time.
- If I upgrade from 15.04 to 15.10 using Bootable CD, if ways half way saying it cannot detect UEFI partition
- If I install using
Something Else
option during installation, it fails on reboot.
The only way for me to get bootable system was to erase whole hard drive and let it make all partition by itself (lost most of my data :'( forgot to backup in frustration)
I am very much confirmed of what I experienced yesterday (whole day) and I am pretty much sure that there is a bug in installer, so how do I report a convincing bug-report to Canonical?
I am doing experiments with few Linux kernels, also I want to keep all the kernels on my system; I don't want then to be removed automatically. how do I achieve that?
(NOTE: I have mounted /boot
on separate 4GB partition so space is not an issue)
Right now my external drive does not has any errors but I just want to check manually to make sure.
As seen from image below, the option for SMART data and Self-Test is greyed out. Also see the details about the hard drive in image itself.
I tried running
gksu gnome-disks
but still the option is greyed out.I ran
sudo smartctl --all /dev/sdb --test=short -T permissive
I got this error:smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.19.0-15-generic] (local build) Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org Read Device Identity failed: scsi error unsupported field in scsi command === START OF INFORMATION SECTION === Device Model: [No Information Found] Serial Number: [No Information Found] Firmware Version: [No Information Found] Device is: Not in smartctl database [for details use: -P showall] ATA Version is: [No Information Found] Local Time is: Wed Jun 17 11:33:46 2015 IST SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported. SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled. A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
I have latest deb package of brackets 64bit. I am on Ubuntu 15.04. I am getting the following error:
dependency is not satisfiable: libgcrypt11 (>= 1.4.5)
I tried to install libgcrypt11
then I got this error:
$ sudo apt-get install libgcrypt11
Package libgcrypt11 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'libgcrypt11' has no installation candidate
What should I do now?
I tried all the methods that comes in google search for "hide the grub menu on computer start", but still no luck, I guess things work differently on Ubuntu 15.04 ?
this is my grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="libahci.ignore_sss=1 vesafb.invalid=1 quite nopat drm.debug=0xe"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_GFXPAYLOAD_LINUX=text
grub.cfg file:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod xfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 3b12612a-44e7-448e-b6a1-692930065384
else
search --no-floppy --fs-uuid --set=root 3b12612a-44e7-448e-b6a1-692930065384
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30,0; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
set linux_gfx_mode=text
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3b12612a-44e7-448e-b6a1-692930065384' {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod xfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 3b12612a-44e7-448e-b6a1-692930065384
else
search --no-floppy --fs-uuid --set=root 3b12612a-44e7-448e-b6a1-692930065384
fi
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=3b12612a-44e7-448e-b6a1-692930065384 ro nopat plymouth:debug=1 vesafb.invalid=1 quite=1 libahci.ignore_sss=1
initrd /boot/initrd.img-3.19.0-15-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-3b12612a-44e7-448e-b6a1-692930065384' {
menuentry 'Ubuntu, with Linux 3.19.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-advanced-3b12612a-44e7-448e-b6a1-692930065384' {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod xfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 3b12612a-44e7-448e-b6a1-692930065384
else
search --no-floppy --fs-uuid --set=root 3b12612a-44e7-448e-b6a1-692930065384
fi
echo 'Loading Linux 3.19.0-15-generic ...'
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=3b12612a-44e7-448e-b6a1-692930065384 ro nopat plymouth:debug=1 vesafb.invalid=1 quite=1 libahci.ignore_sss=1
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.19.0-15-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-init-upstart-3b12612a-44e7-448e-b6a1-692930065384' {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod xfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 3b12612a-44e7-448e-b6a1-692930065384
else
search --no-floppy --fs-uuid --set=root 3b12612a-44e7-448e-b6a1-692930065384
fi
echo 'Loading Linux 3.19.0-15-generic ...'
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=3b12612a-44e7-448e-b6a1-692930065384 ro nopat plymouth:debug=1 vesafb.invalid=1 quite=1 libahci.ignore_sss=1 init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.19.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-recovery-3b12612a-44e7-448e-b6a1-692930065384' {
recordfail
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod xfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 3b12612a-44e7-448e-b6a1-692930065384
else
search --no-floppy --fs-uuid --set=root 3b12612a-44e7-448e-b6a1-692930065384
fi
echo 'Loading Linux 3.19.0-15-generic ...'
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=3b12612a-44e7-448e-b6a1-692930065384 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-15-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_custom ###
menuentry "Windows UEFI bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root 8D03-9A18
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "EFI/ubuntu/MokManager.efi" {
search --fs-uuid --no-floppy --set=root 8D03-9A18
chainloader (${root})/EFI/ubuntu/MokManager.efi
}
### END /etc/grub.d/25_custom ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-8D03-9A18' {
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 8D03-9A18
else
search --no-floppy --fs-uuid --set=root 8D03-9A18
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Antergos Linux (2015.04-ISO-Rolling) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-b61cdeef-aa4b-464e-a0ec-fcc2417926f4' {
insmod part_gpt
insmod xfs
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 b61cdeef-aa4b-464e-a0ec-fcc2417926f4
else
search --no-floppy --fs-uuid --set=root b61cdeef-aa4b-464e-a0ec-fcc2417926f4
fi
linux /boot/vmlinuz-linux root=UUID=b61cdeef-aa4b-464e-a0ec-fcc2417926f4 rw resume=UUID=f41d0df1-3da5-443c-9346-d66e03164c6a quiet
initrd /boot/initramfs-linux.img
}
submenu 'Advanced options for Antergos Linux (2015.04-ISO-Rolling) (on /dev/sda7)' $menuentry_id_option 'osprober-gnulinux-advanced-b61cdeef-aa4b-464e-a0ec-fcc2417926f4' {
menuentry 'Antergos Linux (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b61cdeef-aa4b-464e-a0ec-fcc2417926f4' {
insmod part_gpt
insmod xfs
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 b61cdeef-aa4b-464e-a0ec-fcc2417926f4
else
search --no-floppy --fs-uuid --set=root b61cdeef-aa4b-464e-a0ec-fcc2417926f4
fi
linux /boot/vmlinuz-linux root=UUID=b61cdeef-aa4b-464e-a0ec-fcc2417926f4 rw resume=UUID=f41d0df1-3da5-443c-9346-d66e03164c6a quiet
initrd /boot/initramfs-linux.img
}
menuentry 'Antergos Linux - Fallback (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b61cdeef-aa4b-464e-a0ec-fcc2417926f4' {
insmod part_gpt
insmod xfs
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 b61cdeef-aa4b-464e-a0ec-fcc2417926f4
else
search --no-floppy --fs-uuid --set=root b61cdeef-aa4b-464e-a0ec-fcc2417926f4
fi
linux /boot/vmlinuz-linux root=UUID=b61cdeef-aa4b-464e-a0ec-fcc2417926f4 rw resume=UUID=f41d0df1-3da5-443c-9346-d66e03164c6a quiet
initrd /boot/initramfs-linux-fallback.img
}
menuentry 'Antergos Linux (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b61cdeef-aa4b-464e-a0ec-fcc2417926f4' {
insmod part_gpt
insmod xfs
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 b61cdeef-aa4b-464e-a0ec-fcc2417926f4
else
search --no-floppy --fs-uuid --set=root b61cdeef-aa4b-464e-a0ec-fcc2417926f4
fi
linux /boot/vmlinuz-linux root=UUID=b61cdeef-aa4b-464e-a0ec-fcc2417926f4 rw resume=UUID=f41d0df1-3da5-443c-9346-d66e03164c6a quiet
initrd /boot/initramfs-linux-fallback.img
}
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
what to do on ubuntu 15.04 to boot straight away without showing boot menu?
few more details: I did ran sudo update-grub
after making changes to grub file. My BIOS is UEFI
UPDATE: I triple boot Ubuntu (default, since I use it 90% of time), arch linux, windows( for games occasionally). so I select Ubuntu most of the time i want to boot directly to it, but occasionally if i want to boot to other OS, i would like to "press shift key and see the grub and select the desired OS", thats why I want to hide grub
UPDATE2: when i set grub timeout to 0 it becomes 10sec on boot, dont know why...
I ran chown -R root:root *
by mistake in my home folder when I had root privilege (actually I was supposed to do that in other folder :-/) How do I revert back?
This is not duplicate of what it is showing up. I don't have any problem with .gvfs
; folders that were affected were Desktop, Documents, Downloads, Music, Pictures, and Videos. By default, shell globbing *
does not include hidden files.
I am Ubuntu 14.04 and have NVIDIA graphics card 820m running with driver v331.
On windows we can select which GPU to use to run a application. How can we do it on Ubuntu?
UPDATE:
my question was marked duplicate of this answer, which didnt helped
in Bumblebee Application Setting program, I set few application to be run on Performance Mode but it get reset to Unrecognized after I close the application (see image below)
Previously the Graphic in System Settings > Details used to be Nvidia but it is not Intel Haswell, which means nvidia is not being used :-/
My laptop screen goes black after I resume it from suspend while using nvidia as default graphics manager, but when I use Intel graphics as default I dont have this issue. Nothing works, even restarting lightdm
is useless.
I have pm-suspend.log file here
NOTE: I can switch between Intel Intergrated graphics and NVIDIA Dedicated graphics using Nvidia-optimus drivers. NVIDIA graphics card named 820m. I am using nouveau driver v346.47(as shown below).
I bought new laptop Lenovo Z50-70 and have installed Ubuntu 14.04. I want to check whether the Bluetooth shipped is v4 or v3?
I know I should check it from main website or from BIOS, but I am curious to find it from command line. Any help please
I tried two different methods but could not install systemd
1st method from here, 2nd method from here
Confirmation that systemd
is not installed:
edward@computer:~$ file /lib/systemd/systemd
/lib/systemd/systemd: ERROR: cannot open `/lib/systemd/systemd' (No such file or directory)
Another confirmation:
I'm following the methods proposed in https://askubuntu.com/a/420979/294611 (against this question was closed as duplicated to), yet for some reason my system doesn't boot.