I have a self encrypting Internal SSD from Samsung. I am clean installing Ubuntu 22.04 on my Laptop (1 TB PCIe 4 SSD, 32 GB DDR4 RAM, Intel i5-1240P), do I need to enable Full disk encryption (an option while installation of Ubuntu) or is it redundant?
Porcupine's questions
I have google-chrome
(and other software) in Workspace 2 and thunderbird
(and other software) in Workspace 3.
How can I switch to previously active windows in another workspace, using keybpard shortcuts? For example, if google-chrome was active before I switched to thunderbird, how can I switch back to google-chrome?
NOTE
Alt
+ Tab
: Cycles through windows in the same workspace
I found that Ubuntu login password can be easily reset as mentioned in this article: Reset Your Forgotten Ubuntu Password in 2 Minutes or Less
I was wondering if there are alternatives to this. Is setting grub password or UEFI/Bios password more secure than Ubuntu login password?
If its not that secure, then I think I should set up password at the bios (or grub) as I don't want to wait for the login screen to show up later? Any pros and cons of this?
Edit: I have dual boot computer with Windows 10. Does setting up grub password , creates any issue due to this?
I have Android Things Pico Pro Maker Kit (NXP i.MX7D Starter Kit) (Refer: Get started with Android Things kits).
How can I install ubuntu server on it?
I followed the steps mentioned in: 18.04 Change shortcut for switching workspace - Ask Ubuntu, to change Keyboard shortcuts to switch to another workspace, as can be seen in the following picture:
Most of the times this works. But, sometimes this shortcut that I have set Super+1 and so on conflicts with the other shortcut: The icons on the dash or Ubuntu Dock (on the left edge of the screen gets switched) as shown in the following figure: (You can observe that numbers appear at the bottom of each icon.)
How can I completely disable or change the shortcuts to switch apps on the vertical dash, so that it doesn't conflicts with my workspace switching shortcuts?
On Ubuntu 18.04.3 GUI, I am using GNOME Startup Application to start my bashscript because @reboot
for cron
doesn't work for me (cron - crontab's @reboot only works for root? - Unix & Linux Stack Exchange).
How can I set (and view existing) the environment for GNOME Startup Application GUI?
EDIT
Relevant image and data:
$ ls ~/.config/autostart/
alarm-clock-applet.desktop nvidia-settings-autostart.desktop
albert.desktop@ org.gnome.Nautilus.desktop
bash.desktop psensor.desktop
blueman.desktop remmina-applet.desktop
code.desktop safeeyes.desktop@
google-chrome.desktop shutter.desktop
ignore-lid-switch-tweak.desktop snap-userd-autostart.desktop
keepassxc.desktop urserver.desktop
cat ~/.config/autostart/bash.desktop
[Desktop Entry]
Type=Application
Exec=/bin/bash /home/nikhil/opt/bin/Startup
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=MyStartupApplications
Name=MyStartupApplications
Comment[en_US]=MyStartup Applications
Comment=MyStartup Applications
I have checked this: My computer boots to a black screen, what options do I have to fix it? - Ask Ubuntu
- But all of this is about issue just after booting and before logging to Ubuntu. For me, I am able to boot successfully, and issue is only after entering password on Ubuntu Login Page.
My Nvidia graphic card has been working for quite some time now and my laptop was fine, it happened suddenly.
I have Google chrome and certain other software setup in cron, and they open normally, without any issue, after booting up.
Just that, the Gnome desktop is blank (nothing except wallpaper) , and when I drag my mouse on the Gnome desktop it becomes a cross symbol instead of normal mouse symbol. I can't do Alt + Tab, to switch between the windows. Not able to minimize or maximize any window. Can't type Windows+, shortcut to switch to Gnome desktop.
I saw dmesg
, but there is no error related to this issue. Facing same issue after reboot (with normal complete shutdown). I am not using wayland on my Ubuntu 18.04.3. And I am using Gnome desktop.
Any suggestions?
Tried:
- Booting into an older kernel.
- Repaired dpkg packages in recovery mode (nothing to repair)
- Booting with usb (with 18.04.3), and did fsck repair.
- Did sudo apt-get dist-upgrade
- I reinstalled Ubuntu 18.04.3 but I am facing same issue! I have separate home partition.
I have been facing this issue daily, after about 10 hrs of usage Ubuntu becomes terrible slow, it lags a lot. Operations that take less than a second tend to take about 10 or more seconds. On the browser, the right click takes 3 or 4 seconds for the context menu to load. But I am surprised that the available memory remains high.
$ free -h
total used free shared buff/cache available
Mem: 7.7G 3.3G 1.3G 160M 3.1G 3.9G
Swap: 42G 232M 42G
I use Visual Studio Code and Google Chrome mainly. After reboot I can run 20 tabs in Chrome without any lag, but by the day end having even 5 tabs are an issue.
Specification
`:+ssssssssssssssssss+:` -------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 18.04.3 LTS x86_64
.ossssssssssssssssssdMMMNysssso. Host: X550JX 1.0
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.0.0-29-generic
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 21 hours, 13 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 2023 (dpkg), 253 (brew), 14 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 4.4.20
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1920x1080
ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: GNOME 3.28.4
ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Mutter
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ WM Theme: HighContrast
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Adapta-Nokto-Eta [GTK2/3]
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Icons: Papirus-Dark [GTK2/3]
+sssssssssdmydMMMMMMMMddddyssssssss+ Terminal: gnome-terminal
/ssssssssssshdmNNNNmyNMMMMhssssss/ CPU: Intel i7-4720HQ (8) @ 3.600GHz
.ossssssssssssssssssdMMMNysssso. GPU: NVIDIA GeForce GTX 950M
-+sssssssssssssssssyyyssss+- GPU: Intel 4th Gen Core Processor
`:+ssssssssssssssssss+:` Memory: 2925MiB / 7862MiB
.-/+oossssoo+/-.
When Computer was slowing down
I was just watching a video on youtube.
$ free -m
# During this period the available memory/total memory *100% was almost 22%
$ sudo turbostat --quiet --Summary --show Busy%,Bzy_MHz,PkgTmp,PkgWatt,GFXWatt,IRQ --interval 15
Busy% Bzy_MHz IRQ PkgTmp PkgWatt GFXWatt
11.24 2264 58904 71 8.45 0.00
12.52 2410 86882 69 9.55 0.00
16.10 2788 112149 71 13.65 0.00
14.90 2369 92329 69 10.36 0.00
14.65 2168 77409 70 9.42 0.00
11.97 2103 79929 77 8.28 0.00
9.52 1960 63216 67 7.08 0.00
8.97 2336 60808 66 8.01 0.00
9.88 2580 46957 67 8.91 0.00
11.72 2602 55961 67 9.88 0.00
17.09 2361 79915 78 10.81 0.00
17.84 2741 83690 69 13.63 0.00
8.99 2303 48682 67 7.92 0.00
10.51 2340 61382 67 8.59 0.00
10.40 2308 53089 69 8.17 0.00
11.57 2109 72846 68 8.25 0.00
13.31 2308 62574 68 9.66 0.00
15.68 2119 89204 72 9.88 0.00
14.00 2292 67976 69 9.92 0.00
16.62 2478 82244 70 11.42 0.00
19.11 2430 90892 73 11.73 0.00
22.15 2461 89086 72 12.98 0.00
21.22 2421 83160 72 12.49 0.00
21.43 2428 91860 72 12.75 0.00
17.80 2442 65388 72 11.27 0.00
22.05 2572 77970 78 13.46 0.00
23.69 2688 67063 77 15.52 0.00
14.99 2542 65569 72 10.65 0.00
6.94 2427 39241 71 7.21 0.00
7.10 2130 36799 68 6.23 0.00
9.77 2265 45388 69 7.81 0.00
13.90 2446 62467 68 10.07 0.00
9.48 2495 42634 69 8.21 0.00
12.90 2591 59494 67 10.40 0.00
16.84 3012 49785 83 16.95 0.00
17.91 3244 51814 76 19.79 0.00
17.57 2950 54539 90 16.75 0.00
17.89 3147 55712 73 18.56 0.00
When Computer was working fine
I was running a bash script for batch processing.
$ sudo turbostat --quiet --Summary --show Busy%,Bzy_MHz,PkgTmp,PkgWatt,GFXWatt,IRQ --interval 15
Busy% Bzy_MHz IRQ PkgTmp PkgWatt GFXWatt
15.07 2692 42570 76 12.74 0.00
17.27 2838 43539 89 15.39 0.00
18.77 2830 48453 77 15.95 0.00
16.38 2866 45129 90 14.79 0.00
20.88 2975 58471 94 18.65 0.00
18.35 3038 51718 78 17.96 0.00
10.61 2560 31928 81 9.53 0.00
4.83 1691 19197 70 4.06 0.00
7.77 1556 27624 68 4.93 0.00
6.42 1751 20653 80 5.05 0.00
15.13 2742 38587 69 14.11 0.00
20.14 2962 51125 88 18.20 0.00
22.33 3078 50598 86 19.84 0.00
20.85 2873 64946 85 17.27 0.00
15.51 2758 45702 87 13.56 0.00
13.59 2691 40346 85 12.79 0.00
16.53 2814 44112 85 15.33 0.00
19.50 2969 47386 78 17.68 0.00
24.29 3181 55619 80 21.42 0.00
19.83 3012 48117 84 17.54 0.00
17.39 2894 46105 76 15.95 0.00
13.62 2733 39877 79 12.79 0.00
16.91 2857 44110 77 15.68 0.00
15.77 2939 37861 82 15.40 0.00
13.42 2680 36564 75 12.59 0.00
8.06 1998 26089 71 6.17 0.00
6.30 2230 21428 69 5.66 0.00
9.70 2006 30448 70 6.40 0.00
17.36 2812 46268 75 15.55 0.00
21.81 3095 49851 86 20.15 0.00
18.58 2854 49990 87 16.71 0.00
17.49 2771 50942 84 15.14 0.00
20.62 2989 48209 85 18.16 0.00
17.46 2797 41752 83 15.45 0.00
17.47 2823 44291 79 15.38 0.00
21.57 3032 47860 84 18.86 0.00
21.33 3069 66774 97 19.70 0.00
27.15 3282 71376 90 26.12 0.00
16.62 2735 48096 81 14.64 0.00
15.88 2761 47882 90 13.73 0.00
27.55 3122 66182 81 22.79 0.00
15.76 2818 45970 75 14.23 0.00
4.25 1534 17575 71 3.57 0.00
3.33 1498 14550 68 3.26 0.00
10.71 2276 36448 73 8.19 0.00
15.65 2746 42236 71 14.19 0.00
16.02 2780 41543 79 14.67 0.00
15.52 2731 40590 70 14.07 0.00
15.51 2795 41968 85 14.69 0.00
16.97 2803 43944 78 15.16 0.00
17.43 2852 48317 80 16.01 0.00
19.63 2908 53122 74 17.34 0.00
8.79 2413 35149 70 7.09 0.00
7.60 2095 29110 68 6.20 0.00
3.43 1550 15492 66 3.46 0.00
3.90 1648 16872 63 3.56 0.00
4.16 1555 17133 63 3.63 0.00
6.84 2000 23774 62 5.48 0.00
12.35 2658 37123 80 10.73 0.00
9.18 2130 31543 63 6.80 0.00
Attachments
cat /var/log/kern.log
: http://agarwal-nikhil.gitlab.io/gist/SlowDown/KernLog.html,cat /var/log/syslog
: http://agarwal-nikhil.gitlab.io/gist/SlowDown/SysLog.htmljournalctl
: https://agarwal-nikhil.gitlab.io/gist/SlowDown/JournalCtl.html
Notes from Intel:
According to Intel for my processor Thermal Design Power is 47 Watts. Refer: Intel® Core™ i7-4720HQ Processor (6M Cache, up to 3.60 GHz) Product Specifications
According to Intel: Thermal Design Power (TDP) represents the average power, in watts, the processor dissipates when operating at Base Frequency with all cores active under an Intel-defined, high-complexity workload. Refer to Datasheet for thermal solution requirements.
I want to install openjfx8 (which is compatible with Java 8) on Ubuntu 19.04. This was available on Ubuntu 18.04, and I had installed as follows: (Refer: How do I get Java FX running with OpenJDK 8 on Ubuntu 18.04.2 LTS? - Stack Overflow)
sudo apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2 openjfx-source=8u161-b12-1ubuntu2
But in Ubuntu 19.04 these package are not available:
$ sudo apt-cache policy openjfx
openjfx:
Installed: (none)
Candidate: 11.0.2+1-1
Version table:
11.0.2+1-1 500
500 http://de.archive.ubuntu.com/ubuntu disco/universe amd64 Packages
How can I install the old package from Ubuntu 18.04 to 19.04?
I am aware of how to install Java 8 in Ubuntu 18.04. The issue is that, now I want to upgrade to say Ubuntu 19.04, but Ubuntu is not letting me do it unless I update openjdk as well.
$ sudo apt list --upgradable
Listing... Done
code/stable 1.36.1-1562627527 amd64 [upgradable from: 1.36.0-1562161087]
libopenjfx-java/bionic-updates,bionic-updates,bionic-security,bionic-security 11.0.2+1-1~18.04.2 all [upgradable from: 8u161-b12-1ubuntu2]
libopenjfx-jni/bionic-updates,bionic-security 11.0.2+1-1~18.04.2 amd64 [upgradable from: 8u161-b12-1ubuntu2]
openjfx/bionic-updates,bionic-security 11.0.2+1-1~18.04.2 amd64 [upgradable from: 8u161-b12-1ubuntu2]
$ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
What is the recommended way to install Java 8 in Ubuntu that doesn't interfere with Ubuntu upgrade. For example I would like to use software development tools in my latest Ubuntu. But could I keep a separate docker or VM that has Java 8. I am hoping to have less performance penalty while having the benefit that I could use all other tools and data (not present in that docker image or VM).
Reference: apt - Upgrade from 18.04 to 19.04 with out updating all softwares - Ask Ubuntu
Following softwares I don't want to upgrade, but I want to update Ubuntu to 19.04 from 18.04. How can I do it?
$ sudo apt list --upgradable
Listing... Done
code/stable 1.36.1-1562627527 amd64 [upgradable from: 1.36.0-1562161087]
libopenjfx-java/bionic-updates,bionic-updates,bionic-security,bionic-security 11.0.2+1-1~18.04.2 all [upgradable from: 8u161-b12-1ubuntu2]
libopenjfx-jni/bionic-updates,bionic-security 11.0.2+1-1~18.04.2 amd64 [upgradable from: 8u161-b12-1ubuntu2]
openjfx/bionic-updates,bionic-security 11.0.2+1-1~18.04.2 amd64 [upgradable from: 8u161-b12-1ubuntu2]
$ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
EDIT: This is not a duplicate as this question is the reverse of what the other question is asking. Here we know what is the application and we want to find its .desktop
file that can be located in non standard places also. While the other question is about where the .desktop
files can be placed.
I want to open images from an FTP server in the default image viewer rather than in the browser, so I wanted to know the path of default image viewer desktop file in Ubuntu. I tried the following:
cd -- /usr/share/applications
/usr/share/applications
$ find . -name '*.desktop' | grep image
./gnome-disk-image-mounter.desktop
./gnome-disk-image-writer.desktop
$ find . -name '*.desktop' | grep view
./calibre-ebook-viewer.desktop
./calibre-lrfviewer.desktop
./evince-previewer.desktop
./shotwell-viewer.desktop
./okularApplication_ghostview.desktop
./gcr-viewer.desktop
./gnome-info-overview-panel.desktop
./org.gnome.font-viewer.desktop
./paraview.desktop
But I still couldn't find it. Are there any other locations where the desktop files are stored?
Whenever I execute /snap/bin/deja-dup --backup
, dejadup ask me for the password and creates backup for the first time (in Google drive). This happens even after the full backup has successfully completed! The next time it completely removes the old full backup and behaves as if it is backing up for the first time.
- Configuration:
$ deja-dup --version
deja-dup 38.4
$ lsb_release -a
Description: Ubuntu 18.04.2 LTS
$ type deja-dup
deja-dup is hashed (/snap/bin/deja-dup)
What can I do to avoid this?
I use internet (personal connection from ISP). My operating System is Ubuntu 18.4. I am aware of /etc/hosts file, but it has limitation with wild card entries (to block websites).
I wanted to know if Ubuntu does caching of DNS or do I need to install some other tool? There is a Network Manager installed. And Systemd is the daemon manager. Do these tools have ways of managing DNS? Do, I need to use Dnsmasq?
I have read that many people prefer Dnsmasq, but I am not sure why is it preferable? I am not sure if this can already be done by Networkmanager or systemd.
EDIT:
My goal, is to block websites and do caching of DNS if it is significantly beneficial? Also, I am not a web developer.
Can I use wildcards to block websites without dnsmasq?
@earthmeLon questioned: Also, are you trying to block or allow access to more of the Internet? Should you be blacklisting or whitelisting?
- I am trying to blacklist, as I don't know if I might need to access some other websites in the future.
My crontab is like as follows (I am trying to change my GNOME theme)
crontab -l
0 5 * * * /usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Adapta'
30 21 * * * /usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Adapta-Nokto'
Also, I created this file
echo $USER
nikhil
cat /etc/cron.allow
nikhil
When I run the command as mentioned in crontab, both of those work.
Could you please tell if I missed out some step?
Edit:
I created a script file, which I execute with cron:
export TERM=xterm-256color
TimeHr=$(date +%H)
if ((${TimeHr}>18 || ${TimeHr}<5)); then
#if [${TimeHr} -gt 11 || ${TimeHr} -lt 5]; then
mkdir ${HOME}/Documents/TestNight
/usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Adapta'
else
mkdir ${HOME}/Documents/TestDay
/usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Adapta-Nokto'
fi
This is crontab
$ crontab -l
36 5,19,23 * * * bash /home/nikhil/GnomeThemeChange
@reboot bash /home/nikhil/GnomeThemeChange
cron
does work as it is able to create Test Folders. But, what should I do to run gsettings
inside cron?
I did
gsettings set org.gnome.desktop.wm.preferences theme Adwaita
but nothing happens, except that when I do
gsettings get org.gnome.desktop.wm.preferences theme
I do get Adwaita
(But the theme doesn't change).
But in GNOME Tweaks I am able to change it manually.
I would like to do it via terminal so that I can change it with Cron. Any suggestions on what I did wrong?
I have deleted NTFS drive in Windows. After I have added it in Linux I did a quick format to Ext4 (sda9
), but it says that 12 GB or (2% of the drive capacity) is used.
Is this normal? Or should I do a full format? Also moving from NTFS to Ext4 is it recommended to do a full format (although quick format seems to be working), does it improves efficiency?
Please suggest if you have some experience with what can I do to decrease boot time. What is the reason for the userspace taking so long?
$ sudo systemd-analyze time
Startup finished in 3.395s (firmware) + 14.332s (loader) + 38.152s (kernel)
+ 3min 3.432s (userspace) = 3min 59.313s
graphical.target reached after 2min 3.881s in userspace
Problem: My laptop battery is broken, it never charges. I have to use it at 0% battery and on AC power. Ubuntu 18.04, keeps giving me annoying notification every 5 seconds:
I know several questions have been asked on this topic, but this is specifically for about Ubuntu 18.04. I have tried solutions mentioned for older versions of Ubuntu but none of them work:
- Modifying /etc/UPower/UPower.conf
- Modifying
dconf editor
->org
->gnome
->settings-daemon
->plugins
->power
I am surprised that these settings don't point to the same values? I can set different values in these and still nothing happens. Do these settings even work or are they deprecated?
Has anybody else faced this issue? It's very annoying.
In a solution to the question, David Foerster mentions that the following command is incorrectly line-wrapped which introduces line breaks and backspace characters where there should be none:
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
Is it possible to show what exactly is he referring in the command?