How I can disable CPU frequency scaling and set the system to performance?

After struggling with ondemand for a while, I will share how to permanently disable it in Ubuntu and its derivates.

Install cpufrequtils:

sudo apt-get install cpufrequtils

Then edit the following file (if it doesn't exist, create it):

sudo nano /etc/default/cpufrequtils

And add the following line to it:

GOVERNOR="performance"

Save and exit.

Now you need to disable ondemand daemon, otherwise after you reboot the settings will be overwritten.

sudo update-rc.d ondemand disable

And you are done!

You can check your settings with:

cpufreq-info

It will show a block of information for every core your processor has. Just check if all of then are in performance mode, and at the maximum speed of your processor.

Update:

The Debian Wiki says that sysfsutils is necessary in order to maintain the settings across reboots, but that is untrue. Also, enabling sysfsutils make my system unstable, so it's not recommended.

Sorry if I misspelled something. :)

Sources:

https://wiki.debian.org/HowTo/CpuFrequencyScaling
Disable "ondemand" CPU scaling daemon


I can't find the settings in Ubuntu 19.04

According to the results of apt policy gnome-control-center the GNOME desktop Settings application (the Settings app which has a white gear and red wrench icon) which is installed by default in Ubuntu is not currently installed on your system. To install the Settings app open the terminal and type:

sudo apt install gnome-control-center

To show more information on the Settings app before you install it run the following command:

apt show gnome-control-center


Why is the python built from source still showing the wrong version?

I used to have these problems when configuring python with --enable-shared and the python executable would find and load the installed /usr/lib/x86_64-linux-gnu/libpython2.7.so. Removing that option from the configuration helped solve the problem.


How do I allow both fingerprint and password entry on lock/login screen regardless of prompt type?

It might not be possible as of now.
I am listing below what suggests it is (at least) complicated, and things you can try.

As per this,

At the moment, you cannot type in your password right away when you
are asked for fingerprint. You need to make the fingerprint
authentication fail first (swipe wrong finger or let it time out)
before you are asked for password. This is a limitation of PAM because
its modules mustn't be threaded and hence cannot support multiple
means of authentication at the same time. (The old ThinkFinger used to
do this, but it was a gross hack which caused many troubles.) A
possible solution to this limitation is to make gdm, screensaver and
policykit-1 support multiple alternative PAM stacks.

I did not try the suggestion there (which is no more than that, a suggestion), but I found no references to anyone succeeding.

As per this,

pam_fprintd doesn't support entering either the password or a
fingerprint, as pam_thinkfinger does, because it's a gross hack, and
could be fixed by having the login managers run 2 separate PAM stacks

Lights of hope, YMMV:

See item 1 above.
As per this, there is a fork https://github.com/zsxsoft/libfprint-fprintd, although it is old and not maintained.

Related:

https://unix.stackexchange.com/questions/332149/how-to-login-with-both-password-and-fingerprint
https://unix.stackexchange.com/questions/207360/use-multiple-pam-login-methods-at-once
https://www.redhat.com/sysadmin/pam-authconfig  ("You can set multiple options at the same time...")


How to override the new limited keyboard repeat rate limit?

In Ubuntu 15.10 and later the settings have moved.

To get approximately 90 cps repeat rate and 150 ms delay:

gsettings set org.gnome.desktop.peripherals.keyboard delay 150
gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 11

At these high repeat rates I would recommend to stay as close to a multiple of your screen refresh rate as possible. This will help you stop at the wanted location as the movement is easier to follow.

If we take the default example of a 60 Hz display this works out to one of these repeat intervals:

30  cps = 1000/30  ≈ 33 ms (30.3  cps)
60  cps = 1000/60  ≈ 16 ms (62.5  cps)
90  cps = 1000/90  ≈ 11 ms (90.9  cps)
120 cps = 1000/120 ≈ 8  ms (125.0 cps)


Why don't 12.04 Nvidia drivers work on my GeForce 6150 LE?

The GeForce 6150 LE is not supported by the additional Nvidia drivers in 12.04. You need to install an older version of the drivers.

Please see the answer to this question for how to remove the current drivers and install the older ones.


How do I mount another NTFS partition of an external hard drive running Ubuntu?

It seems that the partition I was trying to mount wasn't a NTFS partition after all, instead it was an exFAT (Extended FAT) partition that I created and forgot during the installation of Ubuntu on my drive. So I copied all my data from this so called "NTFS" partition to another drive and reformatted the partition as NTFS using Windows. And now it works fine with Ubuntu as well.

I am sorry for wasting all you guys' time. And also wanna thank you all for trying to help me out.


Ubuntu mics and input devices in Thinkpad T470

Not sure if it solves your problem, but I have Thinkpad T430 and on 18.04 internal Mic also started to make a huge noise. I ran

 pavucontrol

and in Input devices lowered Silence Base value. Now the internal mic works fine again.


I got it by re-running the phalcon install script

curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | sudo bash

This script has the URL to the correct key server and runs apt-get add on it (relevant portions here, feel free to read through the entire script though)

gpg_key_url="https://packagecloud.io/phalcon/stable/gpgkey"
# ...
curl -L "${gpg_key_url}" 2> /dev/null | apt-key add - &>/dev/null


Unable to create wifi hotspot .. even kde is not working .. all this happened after updating in 15.10

This seems to be a bug in 15.10. Creating a normal wifi connection first using Network Manager and then changing the mode to ap in the corresponding configuration file /etc/NetworkManager/system-connections/<wifi-hotspot> makes it work. (Replace  with the name of your connection)

http://ubuntuhandbook.org/index.php/2014/09/3-ways-create-wifi-hotspot-ubuntu/


Is it possible to use more than two monitors?

Ordinary graphic cards support only up to 2 monitors. Laptop usually support own monitor (LVDS) and one external (VGA/DVI/HDMI), while desktop has 2 monitor ouptups.

You can use more graphics cards if your motherboard and graphics card support.
Example: http://www.youtube.com/watch?v=N6Vf8R_gOec

Some (newer) ATI cards support DisplayPort and you can use more monitors (I don't know how much exactly). As you can see in upper video, there are 24 monitors and only 4 cards which means 1 card for 6 monitors.

I found some article.
http://benchmarkreviews.com/index.php?option=com_content&task=view&id=373&Itemid=72&limit=1&limitstart=4


While Installing the "Universe" Source I get the following error "Failed to download repository information"

Run:

gksudo gedit /etc/apt/sources.list

In the resulting Gedit file, find the line with http:// dl  stable  InRelease

Replace the line with:

deb http://dl.google.com stable InRelease
deb-src http://dl.google.com stable InRelease

then save and close the file.

Then run an Update:

sudo apt-get update


How to change executable file as application program?

Here are some references:
Development Environments:

GTK+

Qt

Eclipse IDE for C/C++ Linux Developers (includes Incubating components)

SO: "C++ IDE for Linux?"

Linux C++ Software Development

Comparison of IDEs for C++ and C development on Linux: KDevelop, Eclipse, NetBeans, CodeBlocks and Anjuta

Packaging:

Debian Wiki: "Packaging"

The Debian Administrator's Handbook: "Creating a Debian Package"

How To Create A .DEB Package (Ubuntu / Debian)

Debian Binary Package Building

AU: "How to create a deb package that installs a series of files"

AU: "How do I create a .deb file?"

SO: "How do I create a native Debian package for static files?"


After Removing Gnome3, Gnome couldn't load!

If you have the live CD of 11.04 or can get one, put it into the tray, then run the following:

sudo apt-cdrom add #this will add the CD to the sources list
sudo apt-get update
sudo apt-get install ubuntu-desktop


There are many ways of installing CPAN modules but the easiest is to use cpanm. If you are going to be working with Perl, you really should install it:

sudo apt-get install cpanminus

Then, install your module:

cpanm install Net::pcap

Alternatively, you can install with:

perl -MCPAN -e 'install Net::pcap'

For more choices, read the CPAN install guide: http://www.cpan.org/modules/INSTALL.html


Can't access my old email in Thunderbird after upgrading to 12.10

I had a similar problem with Thunderbird Greying out and than everafter displaying some of my account setup but none of my mail.  On looking at the mail storage links I noticed that Ubuntu made a huge change that broke all my folder allocations.  I use Ubuntu at home and Portable Thunderbird at work where I use a Windows box. So I store my mail on the portable drive with the PortableApps on it so that I can carry it from home to work and back again. In both systems, Thunderbird points to the same directory on that portable drive.  Ubuntu has changed the way this works as follows:

Instead of: /media/drivename/

In 12.10 it's: /media/username/drivename/

Which means I had to manually edit every folder location in my Thunderbird settings.  What an unmitigated pain!  However it fixed my problem.

See also:

https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/1068277

http://linuxforcynics.com/how-to/ubuntu-12-10-broke-my-external-hdd-shares

I hope this helps.


The command hciconfig (HCI device configuration utility) is the main command for controller-related configurability. Try one of these two commands:

hciconfig hci0 up
hciconfig hci0 reset

If nothing happens, see what hcitool dev returns.


unable to update,It show the following errors.I am using ubuntu 11.10 32 bit in Lenovo Y450

I recommend running this from the terminal

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update


You can install Debian packages. There are some dependence name don't match, but you can always correct them by your self.


Crate a launcher for Ubuntu to execute python server

Actually, the problem was the wrong path.

I used this code to get the relative path and execute the script: .sh/server.sh

[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Icon[en_US]=gnome-panel-launcher
Name[en_US]=Server
Exec=sh -e -c "exec \\"\\$(dirname \\"\\$0\\")/.sh/server.sh\\";$SHELL" %k
Comment[en_US]=aaaaaaaaaaa
Name=Server
Comment=aaaaaaaaaaa
Icon=gnome-panel-launcher

Friendly tip: when there is an error the launcher doesn't show the terminal. So I recommend you to put something like ping localhost on final of your script (like mine server.sh), so you can view the eventual error messages when developing.


Torrent clients suddenly stopped downloading

The problem is solved. My Peerguardian Linux installation caused all the trouble due to either some kind of a bug or some configuration adjustment I tried but can't remember. This was determined by the use of Wireshark (it informed me that the torrent clients connect to the trackers) and by getting the output of sudo iptables -L in a terminal (the output showed that pgl interfered with my machine's iptables rules). Temporarily terminating the appliance of these rules with sudo iptables -F proved the aforementioned hypothesis. Finally I uninstalled and reinstalled Peerguardian Linux and thus solved the problem.


Well, obviously the windows installer needs permissions! I had the same problem! I did the following:

I burned the CD into an ISO imagefile
Then i mounted the ISO file with the FuriusIso Mount
After that, i opened a terminal and typed: gksudo nautilus
(it will open a file browser with root access!)
Now find the mounted ISO path and edit the installer file's properties
Done!

Good Luck!


Unable to reinstall xfce or any GUI from Ubuntu 18.04 tty

Look at your sources.list
You've included multiple repositories for backports, security & updates, but they are missing from the main bionic release, meaning if you remove packages on the original media, you won't be able to re-install them (unless in 'universe'; eg. aptitude is found in 'main').
try
deb http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

Note: I've used the formatting of your post; it's not how mine would look.
Key is you need to add 'main' to the first line, though I'd also add 'multiverse' & 'restricted' too
https://help.ubuntu.com/community/Repositories/Ubuntu
I don't think this is your only issue; it doesn't explain xfwm4


Downloaded Ubuntu 12.04 to file copied to DVD disc, won't open on Win XP pro, asks for program to open it?

You don't need to open an Ubuntu iso file on Windows XP.Using that file just create a bootable Ubuntu usb through unetbootin software or burn the iso file as image to a dvd for creating bootable Ubuntu dvd.

After creating bootable Ubuntu disk,boot from it to install Ubuntu alongside with XP.

If you want to view the contents of that iso file,then install Magic iso software on your Windows XP.


Resizing ext4 partition with ext4 partition on runtime

what exactly are you trying to do? combine the two filesystems? From the output of fdisk it seems like you have three filesystems on that device, a small FAT, a 4Gb linux and a 28Gb linux filesystem.

In case I understand correctly what you want to do:

If you previously had 28GB of unallocated space you should not have created that new 28GB partition, instead you should use a utility such as gparted to extend the 4GB partition to maximum size. Now that you have, (assuming that it is empty of course) delete that empty 28Gb partition and extend the small 4Gb partition to use the whole device. Unmount any involved filesystems before you start to be safe. gparted is graphical and user-friendly. Just make sure you select the correct device.

Well, you should delete the extra 28GB partition first. Then I guess you could use parted (the command line tool) to resize the first partition. But this is dangerous if you dont know exactly what you are doing, so I personally only use gparted. If you dont have parted you could change the size of the partition with fdisk but only if you are an expert, because you will have to mark the layout of all partitions, delete them and recreate them with exactly the same parameters for the partition start (down to sector position) and modify the end so that it fills the device. And if you lose power during the process or reboot without having fixed the partition table the system will become unusable. Also I dont know if you will be able to run resize2fs on your 4GB partition if that is the partition that is mounted on /

I think the safest way for you to fix this is to shutdown your embedded system take the SD card from it and put it in a card reader on an ubuntu PC that has gparted, or boot an ubuntu installation CD/DVD on a PC without ubuntu and use gparted from there to modify the partition of the SD card (make sure you select the SD and not the PC's hard drive)


I have found a workaround. Use the following command (192.168.xx.xx is my printers IP address)

hp-setup 192.168.xx.xx


I have had no issues with hevc playback using either MPlayer or vlc, similarly while encoding with x265 is slow on my system  it is bearable. I believe you need either or both of the following:

A quite powerful processor, quite apart from the GPU. I am running an AMD FX(tm)-8350 Eight-Core Processor which eases the load for intensive graphics work
Perhaps one of the newer GPUs that support hevc hardware support.  One example is the NVidia GTX960. I only dream of having one of these :)

Early days for hevc and x265 but with the correct hardware you will have no trouble...


Where to install bootloader for ubuntu/windows dual boot ssd+hdd

Nevermind, I got it to work. I chose dev/sdb as the bootloader install location and everything worked perfectly. Upon reboot, the grub menu appeared and I can boot windows or ubuntu with no problems.


Code works in Terminal, but not when in a script

If $dec has no value, you're doing ls "". Try it and you'll see you get the same error message. Note ls "" is NOT the same as ls (without arguments). Check your script to see why $dec is not defined.

If, as you say, $dec is defined before you run the script, you probably need to export it so it's known to scripts you run.

export dec
./script.sh

Read this for more information on export: https://stackoverflow.com/questions/7411455/what-does-export-do-in-shell-programming


Ubuntu nvidia card seems not as efficient as windows.Everything is lagging

I switched to KDE. That's much faster than GNOME shell.

sudo aptitude install kubuntu-desktop


Programs disappearing after being minimized

I had this same issue as well, but for me it was solved by taking AllTray out of the equation. You didn't happen to have the programs set to automatically minimize to the system tray, did you? If you did, the tray requires the applications to be white-listed now.

Instead of just denying it, it seems to just hide the program completely. Almost as if alltray was doing it's job, but being denied an icon spot in the tray.


How to check version of installed wine and uninstall it?

Open a terminal, write the following line in terminal,

wine --version


Cannot connect to Wi-Fi Ubuntu 20.04 server

I suspect that you cannot connect because the package wpasupplicant also needs to be installed. With a temporary internet connection by ethernet, tethering or whatever means possible, please do:
sudo apt update
sudo apt install wpasupplicant

Then try again:
sudo netplan generate
sudo netplan apply


apt-get: how to make it keep old archives locally when upgrading packages

The Apt cache is managed by a daily cron job. To modify the default settings, open (as root) /etc/apt/apt.conf.d/20archive:

APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";

To disable the automatic removal, set the three values to 0.

See the top of of /etc/cron.daily/apt for a brief documentation of these options.


sudo apt install python-certbot-nginx error ubuntu 18.04

i already have python 2.7 that why its happen :) then i install python 3.0 and try its will install


Errors when importing with pip due to PYTHONPATH on ubuntu server

Installing the Python development library solved this for me (found from this answer: https://stackoverflow.com/a/21530768/733547).

sudo apt-get install python-dev  # for python2.x installs
sudo apt-get install python3-dev  # for python3.x installs


Which is the shortest way to list a running process?

I think what you're asking for doesn't exist so why not write a little bash function or script that does exactly what you want?

function p {
    ps aux | awk -v s="$@" 'NR>1 && $11~s'
}

Stick that in your ~/.bash_functions (or wherever is called by ~/.bashrc) and call source ~/.bashrc to reload it and you should be able to run:

$ p firefox
oli       5992 11.2  4.2 2856240 1044104 ?     Sl   Jun17 313:56 /usr/lib/firefox/firefox

The expression will take a regex which makes it doubly handy. And p on its own will give you a full listing.


Can't scale frequencies, always jumps to lowest

Apparently Dell uses a chip that regulates CPU power.

If one is using an unauthorized charger, Dell PCs will block CPU power. This is a poor way to force you to buy only OEM chargers.

To fix it, one must edit the /etc/default/grub file. On the GRUB_CMDLINE_LINUX_DEFAULT line, add processor.ignore_ppc=1 after splash but before the closing ".

(Ex: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash processor.ignore_ppc=1")

(Src)


How to create swap partition on already installed ubuntu?

see here How do I add a swap partition after system installation? your same situation

To create a swap partition after an Ubuntu installation create an empty partition that should have no holes. You can then format this partition with

sudo mkswap /dev/sdx

replacing sdx with your partition. Mount this partition as swap with

sudo swapon -U UUID

where UUID is that of your /dev/sdx as read from this

blkid /dev/sdx

Bind your new swap in /etc/fstab by adding this line:

UUID=xxx    none    swap    sw      0   0

If you want to use your swap for hibernating then you need to update the UUID in /etc/initramfs-tools/conf.d/resume with this content RESUME=UUID=xxx. Don't forget to sudo update-initramfs -u.

I take no responsibility if something goes wrong.


Cannot install wine on Ubuntu 12.04 (64 bit)

I had the same problem installing wine on a 64-bit system and adding the official wine repo using terminal fixed it by typing:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.5


How to increase the signal power of a wi-fi card?

Found the commands in the iwconfig man pages:

sudo iwconfig wlan0 txpower 15

or

sudo iwconfig wlan0 txpower 30mW


gnome-terminal is getting environment variables that other terminals don't

It is gnome-terminal itself that sets these variables. The relevant code resides in gnome-terminal's source, src/terminal-util.c, method terminal_util_add_proxy_env(). The values are taken from Gnome's settings, and the feature serves the purpose to have Gnome's proxy settings take effect on as many apps/utilities as possible, including console ones.


kubuntu / Windows xp partition- want to upgrade to windows 7 but keep kbuntu

It will work just fine if you install Windows 7 over the XP install, just make sure to select the correct hard drive during installation.  NOTE:  You will need to run a grub reparation tool like boot-repair.

EDIT:  Here's the specific command you need to run to fix the bootloader:

grub-mkconfig -o /boot/grub/grub.cfg


How do I calculate the size of folders which contains some unreadable contents?

sudo du -sh lib/ should do the job. It is showing the size greater than it shows in "Properties" window. root login is required as only root may be having access to some files. Hence the permission denied and unreadable content errors.


You can use this script to fix wordpress permission:

#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
WS_GROUP=www-data # <-- webserver group

# reset to safe defaults
find ${WP_ROOT} -exec chown ${WP_OWNER}:${WP_GROUP} {} \;
find ${WP_ROOT} -type d -exec chmod 755 {} \;
find ${WP_ROOT} -type f -exec chmod 644 {} \;

# allow wordpress to manage wp-config.php (but prevent world access)
chgrp ${WS_GROUP} ${WP_ROOT}/wp-config.php
chmod 660 ${WP_ROOT}/wp-config.php

# allow wordpress to manage wp-content
find ${WP_ROOT}/wp-content -exec chgrp ${WS_GROUP} {} \;
find ${WP_ROOT}/wp-content -type d -exec chmod 775 {} \;
find ${WP_ROOT}/wp-content -type f -exec chmod 664 {} \;

save it to a file and run it and pass it your wp installation directory:

wget https://gist.github.com/Adirael/3383404/raw/6c5446d56477426faeb709e5b807f00422acdea2/fix-wordpress-permissions.sh
chmod +x fix-wordpress-permissions.sh
sudo ./fix-wordpress-permissions.sh /var/www/html

https://gist.github.com/Adirael/3383404


Problems after installing Alice Madness Returns game

This is because the game is checking for a license.
Install PlayOnLinux and then try it out.

Edit based on comments: This game has been confirmed to run on Ubuntu 13.04 i386. Set Wine prefix as Windows 7 and try again.

Try this beta script: http://www.playonlinux.com/repository/app.php?script=863
This may or may not work on your PC.


Giving basic apt-get corruption commands.

apt-get -f install # Force installs to complete.
apt-get autoclean # Clean it all, retry -f install if it failed at first.
apt-get --purge remove spotify-client # Remove it.


Had the same ordeal. It was found that the fix required multiple steps to get working correctly. I'll briefly explain, while the exact and thorough steps can be found below via link to the official ubuntu forums.

Basically you have to locate your /boot on a seperate drive along with installing grub to the same drive. The "boot" drive is SATA and obviously seen and bootable through BIOS with a GPT Partition and scheme like so:

Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sdc: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  1075MB  1074MB  ext4               legacy_boot
 2      1075MB  1085MB  10.5MB                     bios_grub
 3      1085MB  500GB   499GB   ext4

You MUST include the legacy_boot on the /boot partition (partition 1), and bios_grub on the unknown partition 2.

Your NVMe drive mus be GPT partitioned as well.  During install you must choose to do "SOMETHING ELSE" when installing and tell the installer to mount your previously defined /boot partition and to install grub onto that same drive.

Source:


mtime is for modified time. Maybe you want atime,  but for performance reasons it is disabled by default.


Are you sure 3.13.0-63-generic is not working?

You have tried 3.13.0-63-lowlatency (-lowlatency) which is different then -generic
Please,read this Filing Kernel Bug reports (Ubuntu Wiki).

  The submitter should provide as much information as possible in the
  bug description:

  The majority of kernel bug are hardware specific so be sure to note what hardware/device is being used.
  Document any known steps to reproduce the bug.
  Also note whether the bug exists in previous kernel versions of Ubuntu or if it's a regression from previous kernel versions.
  Finally, it's critical to also make sure to test the latest development Ubuntu kernel version as well as the latest upstream
  mainline kernel.

Before trying last upstream one, try linux-generic-lts-vivid which is from Ubuntu 15.04 (last release). It's already in Trusty repository:

sudo apt-get install linux-generic-lts-vivid


How to use encypted home directory after reinstallation

I found the solution: You have to install first the package »ecryptfs-utils«. If you can't login to X, you can do this still by entering a console by typing Crt+Alt+F2, login there, and typ:

   sudo apt-get install ecryptfs-utils

After that you can perform the following command:

   sudo ecryptfs-recover-private

This tool will ask you whether or not you remember your password, if this be the case you can type it in and after that your home directory should work again.


Via apt-file search

/usr/bin/plasmashell

Therefore install apt-file via

sudo apt-get install apt-file

Now search packages of the files via

apt-file search --regex /usr/bin/plasmashell$
apt-file search --regex /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5$
apt-file search --regex /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5$
apt-file search --regex /usr/lib/x86_64-linux-gnu/libQt5Core.so.5$

The output is

plasma-workspace: /usr/bin/plasmashell

libqt5quick5: /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
libqt5quick5-gles: /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5

libqt5widgets5: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
libqt5widgets5: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.4
libqt5widgets5: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.4.1

libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

and therefore I would use

sudo apt-get install plasma-workspace-dbg


Open "Network" and if you want to disable proxy select "None" after Method label and click Apply system wide button to save changes.


Bash function to open git repository with browser

Problem solved:

function opengit {
    if [ -d .git ]; then
        remotes=$(git remote -v | awk -F'git@github.com:' '{print $2}' | cut -d" " -f1)
        if [ -z "$remotes" ];
        then
            remotes=$(git remote -v | awk -F'https://github.com/' '{print $2}' | cut -d" " -f1)
        fi

        remote_url=$(echo $remotes | cut -d" " -f1)
        url="https://github.com/"
        url="${url}${remote_url}"
        xdg-open $url
    else
      echo "Not a git repo"
    fi;
}


Which fonts can be correctly displayed in GRUB?

Although grub-customizer has a "font" option and shows the font in its preview, mine (5.1.0 on Ubuntu 18.04) does not actually modify the font setting in grub.cfg.

I found a blog post that talks about using the grub-mkfont program to generate a font that Grub will use and putting these fonts under /boot/grub/fonts/. The post also says that some fonts don't look good after conversion but doesn't suggest any pattern or way of knowing what's good.

I ended up getting a theme from Gnome-look and using that (I used Dark Squares) and that included a more attractive font.


I used Synaptic and uninstalled kubuntu. I used "Mark for Complete Removal" on the kubuntu packages and that solved the problem.

I also installed BleachBit and did an autoclean to remove unnecessary obsolete files.


Why does my Perl CGI script raise an internal server error on Apache?

I had this problem as well.  It turned out that I had set the .pl files permissions to 775.  Apache does not allow user writable.  Try changing your .pl file permissions to 755.

If that isn't it, check your web site permission settings in /etc/apache2/sites-available.


Problem to configure virtualhost ubuntu 14.04

Try to rename "test" to "test.conf".

Include rule in the main Apache2 config was changed from "*" in Precise to "*.conf" in Trusty.


How to download and install the Roboto Mono font?

You can download the .ttf files from the git repo for Google Fonts and put them in /usr/share/fonts/truetype/robotomono with this command:
sudo wget --content-disposition -P /usr/share/fonts/truetype/robotomono https://github.com/google/fonts/blob/master/apache/robotomono/static/RobotoMono-{Bold,BoldItalic,Italic,Light,LightItalic,Medium,MediumItalic,Regular,Thin,ThinItalic}.ttf?raw=true

--content-disposition is to accept the file name from github.com (otherwise the files would have .ttf?raw=true at the end, instead of just .ttf) and -P is to tell wget which directory to save the results (the directory and any sub-directories you need to create will be created automatically)


It was a matter of adding the live user created on boot to the audio group, it was in one of the casper scripts, I'm not sure which one, but a google search for adding the casper live user to a group should put you in the right direction

EDIT:

Sorry, its a simple fix, I was just in a hurry when I responded

in the unpacked rootfs of the live system, you just need to edit the file /etc/adduser.conf such that the adduser command adds the audio group by default.

in the file, make sure to add or edit the ADD_EXTRA_GROUPS line such that it reads:

ADD_EXTRA_GROUPS=1

and there may or may not be a line which is commented out which lists the extra groups to be added, you may add whichever groups youd like but for just the audio, edit such that it reads:

EXTRA_GROUPS="audio"

to add multiple groups just separate them with spaces within the quotes, like:

EXTRA_GROUPS="audio video plugdev"


What you're looking for is called "clipboard manager". I've made one and there's also recommendations of other clipboard managers on the same linked post. However, most don't support pasting to the "cloud", and I wouldn't recommend doing that for security reasons.

However, you can either manually email the things you want, connect via remote connection to another device, or use public services like paste.ubuntu.com. Note also there's command line utility called pastebinit to post to the pastebin service directly.

Among other things, I would recommend reading Arch Wiki article on clipboard. Linux uses something known as X11 server, which in short is the graphical interface. There actually multiple selections ( or multiple clipboards, you could say ), and some of the clipboard managers can help you work much more easily with them.


Openstack havana shows only one computer

To make the bootstrap node -- machine 0 -- available for running VMs:

juju add-unit nova-compute --to 0

You can't currently use the MAAS server itself with your setup; given the limited hardware you have available, you may find it easier to use manual provisioning to create a juju environment on without involving MAAS. But that approach won't scale up very nicely; the Right Thing to do rather depends on your future plans for the environment as well as your current situation.


Is a non-trivial plug-in for some application considered an app?

Unfortunately we are not considering plugins to be apps: the contest requires applications that are their own process and deliver their own functionality as opposed to extending the functionality of another app.

This is not to say your contribution would not be valuable, we are just concious of giving everyone a level playing field in the contest - we would love to have you contribute the plugin to the community though, and do keep up updated on your progress. Thanks for asking!


Rhythmbox on Ubuntu 16.04 works only with sudo

I asked on GNOME bugzilla and get proper answer:

Jonathan Matthew [rhythmbox developer]:

  You apparently don't have permission to create ~/.cache/rhythmbox and you should fix that.  Rhythmbox could probably report the error better, but this has been the error handling mechanism for five years and no one has noticed before.

I used chown /home/jakub/ -R to fix it, and now rhythmbox works well.


Disable Secure Boot in Bios, then run in terminal

sudo apt install nvidia-367 nvidia-prime

Then reboot.


Auto complete for often used command line commands?

If the commands are often used, they are recorded in the command history bash tracks in .bash_history.

Now the trick: You can reverse search this history to re-execute commands by pressing CTRL-r.

In inverse history search mode, bash shows, live, as you type, the most recent command in the history that start with your given input. Then press enter to accept and execute the proposed command. Keep pressing CTRL-R to cycle to older commands with the same prefix.

This is builtin in bash, no need for customizing scripts or install software :) It is one of the most useful features of bash, imho.


Install the package alacarte and launch it - if you browse the menus you should be able to find the web apps there as launchers, and delete them.


16.04: I have been trying to dowbload wordpress but there is some problem with my apache2. It is not working

Please view this.
Database Connection Error/Wordpress

Hey if your problem is now with the password.You first have to check your current password policy.If it is set to high(default) set a password with minimum 8 characters,1 capital,1 small letter and at least 1 digit.Other two policies are medium and low but generally it is set to high.

Hope it will help.


How can I find media files not encoded with a specific codec?

A combination of find, ffprobe, jq utilities could be used to print info about all *.avi, *.mp4 files (in the current directory tree recursively) that are NOT encoded using "h264" video codec:

$ find -name \*.avi -o -name \*.mp4 \
    -exec ffprobe -v quiet -show_streams -show_format -of json {} \; |
  jq -c '.format.filename as $path |
         .streams[]? |
         select(.codec_type=="video" and .codec_name!="h264") |
         {codec: .codec_name, path: $path}'

To install the utilities, run:

$ sudo apt-get install ffmpeg jq findutils

The example works on jq 1.4. If apt-get version provides an older version; you could download a newer jq binary (just put the downloaded file somewhere in $PATH, rename it to jq and make it executable: chmod +x jq).


Unable to configure a secondary DNS server

On the IPV4 tab try switching automatic DHCP to Manual so you will be using the values you enter for the DNS server IP addresses,

Here are instructions for Ubuntu 16. Should work the same for V14 and V17


Problems upgrading Ubuntu 12.10 to 13.04

You have to use update-manager-core from quantal-updates instead of quantal-proposed.

See: I don't know how to upgrade 12.10 to 13.04 or 13.10


PCman filemanager displays old data on USB mounted drive

Solved the problem by installing Nautilus. Now I use it as default file manager and have no problems stated above or any other at all.


How to delete Windows XP and integrate its partition to Ubuntu?

As suggested in the comments above you can use gparted, which can be installed by typing sudo apt-get install gparted.

If the Ubuntu partition and XP partition are next to each other, they can be made into one by deleting the XP partition and extending the Ubuntu to use the free space. You will receive a disk check error when you boot ubuntu because it will detect the drive change, but don't worry, nothing is wrong. Just let it run through.

It will depend on the order. For example if the XP partition occurs before the Ubuntu partition then the free space cannot be added because partitions are extended from the back end, meaning you will need to move (you can do this in gparted) the Ubuntu partition forward then extend it. Doing so however will prevent you from being able to boot ubuntu so make sure you know how to fix a grub entry (I don't or I would have typed it here).

Additionally the placement of your Windows 7 partition is important. For example if Windows 7 is the first partition on the drive then it's ability to boot won't be affected by changes to partitions behind it. However if XP and Ubuntu are installed before Windows 7 and you delete one of those partitions it could prevent Windows 7 from booting. Before you attempt anything I strongly recommend you post a screenshot of gparted so that whom-ever assists you can see where everything is, and you should state wether or not you have a Windows 7 installation disc.


How do I copy an encrypted DVD in Ubuntu 16.04?

Ask the system:

walt@bat:~(0)$ apt-cache search libdvdcss
brasero - CD/DVD burning application for GNOME
gxine - the xine video player, GTK+/Gnome user interface
libdvdread4 - library for reading DVDs
python3-dvdvideo - Video DVD reader library
kubuntu-restricted-extras - Commonly used media codecs and fonts for Kubuntu
libdvd-pkg - DVD-Video playing library - installer
lubuntu-restricted-extras - Commonly used media codecs and fonts for Lubuntu
ubuntu-restricted-extras - Commonly used media codecs and fonts for Ubuntu
xubuntu-restricted-extras - Commonly used media codecs and fonts for Xubuntu
libdvdcss2 - library for accessing encrypted DVDs
libdvdcss-dev - library for accessing encrypted DVDs - development files

You need to sudo apt install one or more of these packages.

Ignoring your "unable to do it (key not found?)" message due to lack of specific information.


Clear Complete Instructions to Dual-Boot 12.04 on OSX Lion

There are many ways to skin that cat. FWIW, I've got a lengthy but thorough description of how I set up my OS X/Ubuntu dual-boot here; however, my system is an older 32-bit computer that's incapable of running OS X 10.7. AFAIK, nothing about 10.7 would require changes to the procedure, although using certain features (such as whole-partition encryption) might need a tweak or two. In brief, I carefully partitioned the disk and installed in BIOS mode. I then installed an EFI boot loader to replace the BIOS-mode GRUB. There are a lot of details and pitfalls to be avoided, though; that's why my Web page on the subject is close to 6,000 words in length.

An important caveat is that there are many different Mac models, and some installation methods will work better on some models than on others. Furthermore, what works changes with time, as drivers and support programs are upgraded. Thus, if you read that Procedure A didn't work well on Model 1 in 2010, that may not be true today, or on Model 2.


The program you are trying to execute seems to be for the Windows platform. If you do a file programname.exe you will get information about the file. Example:

file Setup.exe
Setup.exe: PE32 executable (GUI) Intel 80386, for MS Windows

This means it will not execute unless you have a working Windows system (dual boot, inside a virtual container or maybe with WINE).

This is probably the gamebook authoring tool? twinery should be similar and can be used on-line. And we also have this topic: Is there any program designed for writing a book?

The chmod command will only work on programs that are made for Linux.


Need help automatically starting wireless - can start from command line

Edit your /etc/modules file.  Add b43 the following:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

b43

You may have to put comment out the blacklisted bcm43xx in your /etc/modprobe.d/blacklist.conf file.


install bluetooth drivers on dell xps 9550

Use blueman driver:

sudo apt install blueman

To put the jaybird into proper pairing mode, you have to have them off, then hold the power button until it turns on, AND starts pairing.


Two part answer.

Part #1

To check the file system on your Ubuntu partition...

boot to the GRUB menu (where you select which OS to start)
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type `reboot

Part #2

To correct the errors in /etc/apt/sources.list...

Do the Part #1 file system check, but don't do the reboot command. Instead, add the following...

type sudo mount -o rw,remount /
type sudo gedit /etc/apt/sources.list
change all references of dep to deb
save and quit gedit

don't manually edit sources.list in the future

reboot


How to remove duplicate element from context menu?

Open a terminal window (Ctrl+Alt+T) and type

cd /usr/share/applications
sudo mv nautilus.desktop nautilus.disabled

Afterwards restart PCManFM

What you are doing here is renaming the file /usr/share/applications/nautilus.desktop - you could also delete it, the name you use doesn't matter at all.


The fontMenu pops up when when the “control” key and pointer button three are pressed in a window.

It sets the font used in the VT102 window, or modifies the way the font is specified or displayed. There are several sections.

The first section allows you to select the font from a set of alternatives:

Default (fontdefault)

Set the font to the default, i.e., that given by the *VT100.font resource.

Unreadable (font1)

Set the font to that given by the *VT100.font1 resource.

Tiny (font2)

Set the font to that given by the *VT100.font2 resource.

Small (font3)

Set the font to that given by the *VT100.font3 resource.

Medium (font4)

Set the font to that given by the *VT100.font4 resource.

Large (font5)

Set the font to that given by the *VT100.font5 resource.

Huge (font6)

Set the font to that given by the *VT100.font6 resource.

Escape Sequence

This allows you to set the font last specified by the Set Font escape sequence (see the document Xterm Control Sequences).

Selection (fontsel)

This allows you to set the font specified the current selection as a font name (if the PRIMARY selection is owned).

The second section allows you to modify the way it is displayed:

Bold Fonts

This is normally checked (enabled). When unchecked, xterm will not use bold fonts. The setting corresponds to the allowBoldFonts resource.

Line-Drawing Characters (font-linedrawing)

When set, tells xterm to draw its own line-drawing characters. Otherwise it relies on the font containing these. Compare to the forceBoxChars resource.

Packed Font (font-packed)

When set, tells xterm to use the minimum glyph-width from a font when displaying characters. Use the maximum width (unchecked) to help display proportional fonts. Compare to the forcePackedFont resource.

Doublesized Characters (font-doublesize)

When set, xterm may ask the font server to produce scaled versions of the normal font, for VT102 double-size characters.

The third section allows you to modify the way it is specified:

TrueType Fonts (render-font)

If the renderFont and corresponding resources were set, this is a further control whether xterm will actually use the Xft library calls to obtain a font.

UTF-8 Encoding (utf8-mode)

This controls whether xterm uses UTF-8 encoding of input/output. It is useful for temporarily switching xterm to display text from an application which does not follow the locale settings. It corresponds to the utf8 resource.

UTF-8 Fonts (utf8-fonts)

This controls whether xterm uses UTF-8 fonts for display. It is useful for temporarily switching xterm to display text from an application which does not follow the locale settings. It combines the utf8 and utf8Fonts resources.

UTF-8 Titles (utf8-titles)

This controls whether xterm accepts UTF-8 encoding for title control sequences. It corresponds to the utf8Fonts resource.

Initially the checkmark is set according to both the utf8 and utf8Fonts resource values. If the latter is set to “always”, the checkmark is disabled. Likewise, if there are no fonts given in the utf8Fonts subresources, then the checkmark also is disabled.

The standard XTerm app-defaults file defines both sets of fonts, while the UXTerm app-defaults file defines only one set. assuming the standard app-defaults files, this command will launch xterm able to switch between UTF-8 and ISO-8859-1 encoded fonts:

uxterm -class XTerm

The fourth section allows you to enable or disable special operations which can be controlled by writing escape sequences to the terminal. These are disabled if the SendEvents feature is enabled:
Allow Color Ops (allow-font-ops)

This corresponds to the allowColorOps resource. Enable or disable control sequences that set/query the colors.

Allow Font Ops (allow-font-ops)

This corresponds to the allowFontOps resource. Enable or disable control sequences that set/query the font.

Allow Tcap Ops (allow-tcap-ops)

Enable or disable control sequences that query the terminal’s notion of its function-key strings, as termcap or terminfo capabilities. This corresponds to the allowTcapOps resource.

Allow Title Ops (allow-title-ops)

Enable or disable control sequences that modify the window title or icon name. This corresponds to the allowTitleOps resource.

Allow Window Ops (allow-window-ops)

Enable or disable extended window control sequences (as used in dtterm). This corresponds to the allowWindowOps resource.

Source: http://invisible-island.net/xterm/manpage/xterm.html


What is the best practice for preventing /boot going to 100% full?

You could use an adaptation of this one-liner I found somewhere on this site:

sudo dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'uname -r'/q;p' | xargs sudo apt-get -y purge

It will remove and purge all kernels except the one you're currently using.


Why won't my HP Envy x360 laptop with Ryzen 7 3700U boot Ubuntu live CD?

[The below is valid as of Aug 2019. It seems it is valid for systems with the new Ryzen 3000U (not to be confused with various probems on systems with Ryzen 2000U). New HP, DELL and probably Lenovo devices are affected by this BIOS bug. This is bug in BIOS, not Linux kernel. This might be fixed with kernels coming with Ubuntu 19.10]

Yes, I had the same problem with brand new HP ENVY x360 with Ryzen 7 3700U.
Thanks to HP ingenious engineering, the BIOS has messed-up ACPI configuration tables.

Note: DO NOT delete pre-installed windows. You will need them to extract ACPI tables from your notebook's BIOS. Because Ubuntu in non-ACPI mode cannot see ACPI tables in BIOS, thus cannot extract them.

1) Simple solution: Boot ubuntu with turned off LAPIC and ACPI support (for me, olny Ubuntu 18.04.0 worked, no other version can boot as it seems. You can try other distro versions with other kernel versions):

In your BIOS, enable "Legacy support"
With your USB drive, interrupt POST process during HP logo by pressing F9. You should get to the blue Boot BIOS boot devices screen
Select "USB Device - 0.00" ( so no UEFI!)
You should now get booted to the violet Ubuntu boot screen, with a keyboard icon at the bottom. This is legacy (no UEFI) boot screen.
In Ubuntu boot menu, press F6 and change your boot paramenetrs to "nolapic acpi=off i8042.nopnp"

This should boot (and also install) Ubuntu, but "half" of the HW support (including CPU multicore support) is disabled with these settings. Still, it should get your Ubuntu booted and installed at least...

2) Complicated - but preferred and long term - solution (simplified): boot kernel with modified ACPI configuration in order to enable ACPI mode in Ubuntu:

In Windows, extract your ACPI tables from BIOS and store them
somewhere safe
Decompile extracted FACP ACPI config table, modify value "reduced
hardware support" from 1 to 0
Recompile your modified FACP table back to binary FACP.AML format
Create CPIO archive with this FACP.aml and provide it to your initrd kernel.

This should make your kernel boot with modified ACPI configuration, and full ACPI enabled. This is required to use a full potential of the laptop.
This trick will also work on kernels 5.x.

It is ok to go for option 1), then once installed on SSD, you can try option 2) and update your installed kernel(s) with modified ACPI configs and remove the "nolapic acpi=off" boot modifiers to see if it worked :)

In detail, the above is discussed here:
https://bugzilla.kernel.org/show_bug.cgi?id=203431

Note1: It seems that (probably all?) kernels 5.x have already attached cpio archive with "AuthenticAMD.bin" firmware. This file must be preserved within cpio archive together with you modified FACP.aml, otherwise kernels 5.x will crash booting even with modified FACP.aml.

Note2: Touchscreen and (almost) full ACPI support works on my device ONLY when I have "Legacy support = Enabled" in BIOS and Ubuntu is installed (and booted) in UEFI mode.

Note3: Kernels 5.2.x and newer boot with these modifications too, but RealTek wifi driver support is being re-worked in new kernels now, so not working on these new HP ENVY devices for now...

What works: Almost everything: Ryzen on 4c/8t, temperature monitoring, CPU power governors, touchpad, keyboard, BlueTooth, Wifi, webcam, sound speakers, mic, 3D HW acceleration (yes - gaming!), HDMI video+audio out, HDMI out via USB-C,touchsreen...

What does not work: internal motion sensors (kernel driver is promised by AMD during August), suspend&resume -> ACPI needs more work. I' using hibernation to disk instead...

Let me know if you have issues or need help, I will try to help directly.

(Written from HP Envy x360 15-ds0005 6WE51EA :) )


How do I start Tomcat on boot without having to provide a root password?

I'm unsure about how you have pulled this off, but it does sound like you have tomcat start up when you log in rather than when the machine boots. Am I right?
Anyway, you should have it start when it boots. The following procedures should be done as root. When in use, init will do them as root.
The quick and dirty way:
Given that your start script is /usr/local/tomcat/bin/startup.sh the just add that line to the file /etc/rc.local and reboot.
The right way:
Make an upstart script. I haven't really done that before, but I saw this: https://gist.github.com/2924017 which might work.
Put the file (tomcat.conf) in /etc/init/ and reboot.
As a service, you can start, stop, restart and get status on services by doing:
start tomcat
stop tomcat
restart tomcat
status tomcat

This is of course how all services in Ubuntu behave. (gdm, apache, ssh, etc..)
Hope it helps :)


How do I manually import the clamav virus definition file?

You could probably do a script like so to download the updated file then copy it over to the proper location for an update manually.

Script contents

#!/bin/bash
wget http://database.clamav.net/main.cvd
sudo cp main.cvd /var/lib/clamav/
sudo chown clamav:clamav /var/lib/clamav/main.cvd
sudo chmod 644 /var/lib/clamav/main.cvd


This happened to my tablet as well, there seems to be an issue with the update if it's running in the background leave the settings app running in the foreground or on side stage and it should work. Or at least it worked for me on my second attempt this way.

apt-get won't work because the file system isn't writable.


Ubuntu 14.04/Unity lost almost all indicators

I solved the problem by running sudo apt-get install indicator-applet-complete. All my indicators are then reappeared I de-installed and everything remained. Why is working? I do not know, probably the installation of it has made it possible to correct a corrupted or missing file. (maybe) :)


How is the authenticity of Ubuntu updates verified?

A concept called Secure Apt is used to verify the integrity of packages from Apt package repositories. The key methods are:

Package maintainers generate and publish a list of checksums calculated by secure hash functions from their packages (binary and source).
They sign that list with their private GPG key.
Apt maintains a key ring with public GPG keys of verified package authors and maintainers.
Upon package download and installation, Apt verifies

the integrity of the checksum list with respect to the key ring and
the integrity of the software package based on those verified checksums.

For more info visit the Debian Wiki on Secure Apt.


Want to test kernel 4.4 - How to backup whole system?

This is a XY Problem.  You don't actually need to back up the whole system, as if you're not happy with the new kernel you can always boot your machine to the older one via GRUB. You won't even need to uninstall the new kernel!

But if you really want to backup your system there are programs like DéjàDup to do so. You can find it in Ubuntu through the Dash, searching for "backup".


how can i get sequential execution list of init scripts?

Since the startup event is emitted at a very early stage in the boot process, the root filesystem is still mounted readonly, and no other filesystems are available yet, so directly writing to a file is not yet an option. Also, logging services are not yet running.

A possible workaround for these issues is to send the data that should be preserved to the kernel message buffer. By doing this, it will be available later in dmesg and it will also be copied to the syslog, once the logging daemon starts. This can be done, by sending the text to the kmsg device. A sample .config file excerpt could look like this:

start on startup

task
exec echo Upstart-Startup event at: $(date) > /dev/kmsg


HDMI creating new desktop when playing movies

Just open up your System Settings>Displays and set the Launcher placement to your main screen(monitor). Hope it helps!


Getting "Error in network definition: xxxx: No access points defined" when setting up wifi

Create /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg...
# To disable cloud-init's network configuration capabilities
#
network: {config: disabled}

Edit your /etc/netplan/50-cloud-init.yaml...
# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
#
network:
  version: 2
  renderer: networkd
  wifis:
    wlo1:
      dhcp4: true
      access-points:
        "****":
          password: "******"

sudo netplan --debug generate
sudo netplan apply
reboot


Installed Ubuntu alongside Ubuntu but there is no GRUB

You can burn a Boot Repair live disc and use it to fix your GRUB.


Ubuntu 14.04.2 cryptsetup failed on boot

Unfortunately, the keyboard layout DOES matter. :(

On bootup, you start with the US Keyboard layout. As your filesystem is decrypted (entering the correct password), any settings changing keyboard layout (such as you changing it to Swedish Keyboard Layout) will be applied.

What I suggest is the following:

Do a fresh install again. (sorry)
When installing Ubuntu, just leave the keyboard layout alone (leave it to US).
AFTER successfully installing Ubuntu and decrypting your filesystem on the first boot, THEN you can change the keyboard layout.

See this Unix Stack Exchange post for more details.


Attempting to use belkin N300 Wireless USB Adapter on Ubuntu without a present internet connection

Try booting into terminal (Hold shift while booting, Go into recovery mode, Drop to root)
then follow these steps


Can't compile and install ardour and jack2

For Jack, the last message that you get is
db.h... no
To install that header file, type:

sudo apt-get install libdb4.7-dev

The error ardour also points to libdb.


How to upgrade only modified files using apt?

You are looking for debdelta:

  To speed up the download of updates debdelta is added as a optional way to get package updates. [1]

man debdelta-upgrade [2]

   This program is designed to download changes (deltas) that may be  used
   to  apt-get upgrade all listed packages, and apply them.  If no package
   is listed in the command line, then it will  apply  to  all  upgradable
   packages. See debdelta(1) for more details on the delta files.

Usage after installation : (from here)

sudo apt-get update
sudo debdelta-upgrade
sudo apt-get upgrade


Does your laptop is using UEFI boot mode? If yes please disable UEFI (secure boot) from boot menu. Restart your laptop and press BIOS key (F2 or F12 - depending on your hardware) and select legacy boot. Update in case of further issues.


What is the real usage of my home folder?

The correct usage is the one you see in GParted. According to the properties window, some contents are unreadable. It is also likely that there are symlinks, hidden folders, backup files, etc - giving the varied readings in Disk Usage Analyzer and Folder Properties.


Is Unity plugin disabled in CCSM by any chance? When you login to Unity, just create a file on desktop and write ccsm in it. Save and close and do a right click on it, from permissions give this file exectable rights. After that just click it, CCSM will open. Try to activate Unity plugin there.


Software Centre Reviews Missing Partially

Nowadays, Ubuntu also supports the new "Snap" package management system in addition to the traditional APT system. Several packages that are available as APT package are also available as Snap. For "Software Centre", these are different packages, and indeed also show as different packages. So your review will appear only with the package where you added your review. You cannot "fix" the issue else than reposting your review also with the other package.
In Ubuntu 21.04, Software centre only shows one entry for the same application, and then allows to select a source if there are multiple sources. Still, reviews are collected for each specific source only.


How to install couchbase in Ubuntu 14.04

I downloaded the couchbase server package for ubuntu 12.04 64 bits Community Edition version 3.0.1 from http://www.couchbase.com/nosql-databases/downloads and it works fine as of this writing on ubuntu 14.04.

I haven't done much with it other than the nodejs tutorial on http://docs.couchbase.com/developer/node-2.0/introduction.html , so maybe if you're doing advanced stuff you might run into issues.

But if like me you just want to check out couchbase, this is much easier.

I don't recommend building from source because it takes much longer, and also you will need to write a bash script to run couchbase as a daemon. Too much hassle so I went with the package from couchbase and it worked out of the box.


Some possible options after talking to some of the Linux Gurus that I know:

I could use LVM , that allows  to add new physical disks, and physical volume (a partition) to a logical volume (a mounted partition),  an existing logical volume (say /opt ) can be extended with the extra space provided by new physical volume.
Another option as my / and /media/mynewdrive are both of type ext4 I can copy everything onto new partition(the one which is mounted as /media/mynewdrive) and then mount that as /opt

Looking for some options and will go with the one which suits my needs in the best possible manner.


Is it possible to install Maverick into an existing LUKS partition?

The alternate installer CD supports LUKS.

On the regular live-CD, it might work after installing the necessary tools and mounting the partition manually (but I didn't test that).


FYI tested out of the box in Ubuntu 18.04/18.10 64bit

WORKING:
TP-Link TL-WN722N
TP-Link TL-WN821N
D-Link DWA-121
Panda

NOT working:
Only tested on 15.04
Asus USB-N53
TP-Link Archer T2U (AC600)

I have not fiddled around or tried to install anything to make them work.

FYI There are still (2019) several USB WiFi adapters that doesn't work on Linux out of the box.


Cron does not run script built on Actiona

If you are using Ubuntu, your best bet is to set a pause action / timer in the Actiona gui instead of using cron to run a task.
For Windows use the export executable script option to make an executable.exe, than you can run cron.


No hardware working on Ubuntu 16.04 kernel 4.4.0-78-generic

This answer is now a duplicate of How do I install NVIDIA and CUDA drivers into Ubuntu?

NOTE: I have only verified this works with 16.04 and 17.10.  Just tried 18.04 and it does not work.

Try installing the Cuda by doing the repo installation instead of the .deb installation.

First, remove any cuda PPAs that may be setup and also remove the nvidia-cuda-toolkit if installed:

sudo rm /etc/apt/sources.list.d/cuda*
sudo apt remove nvidia-cuda-toolkit

Might also want to remove all nvidia drivers too before installing new drivers:

sudo apt remove nvidia-*

Then update the system:

sudo apt update

Install the key:

sudo apt-key adv --fetch-keys  http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub

Add the repo:

16.04

sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/cuda.list'

17.10

sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1710/x86_64 /" > /etc/apt/sources.list.d/cuda.list'

Update the system again:

sudo apt update

Now you should be able to install the cuda-9-1:

sudo apt install cuda-9-1

There are CUDA 9.0 and CUDA 9.2 as well, and they are listed at the bottom.

It should be installing the nvidia-396 (396.44) drivers with it as those are what are listed in the repo.  See:  http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/

Verify that Cuda 9.1 was installed:

~$ ls /usr/local/cuda-9.1/
bin     include    libnvvp           nvml    samples  targets
doc     lib64      LICENSE           nvvm    share    tools
extras  libnsight  nsightee_plugins  README  src      version.txt

Now, add the following to your ~/.profile for the PATH and LD_LIBRARY.  You can use the command gedit ~/.profile for editing:

# set PATH for cuda 9.1 installation
if [ -d "/usr/local/cuda-9.1/bin/" ]; then
    export PATH=/usr/local/cuda-9.1/bin${PATH:+:${PATH}}
    export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi

Reboot your system.

sudo reboot

Once the system is up, you can verify the installation by typing in the following:

nvcc -V

You should see the following:

~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85

And you should see the 396.44 drivers installed:

~$ nvidia-smi
Thu May 17 07:38:54 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.44                 Driver Version: 396.44                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 760     Off  | 00000000:02:00.0 N/A |                  N/A |
| 49%   53C    P0    N/A /  N/A |    187MiB /  1999MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+

EDIT 05/28/2018:  The following steps work fine for Cuda 9.2 as well.  Just change the installation to

sudo apt install cuda-9-2

and make sure you change the .profile section to:

# set PATH for cuda 9.2 installation
if [ -d "/usr/local/cuda-9.2/bin/" ]; then
    export PATH=/usr/local/cuda-9.2/bin${PATH:+:${PATH}}
    export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi

EDIT 07/11/2018:  The following steps work fine for Cuda 9.0 as well.  Just change the installation to

sudo apt install cuda-9-0

and make sure you change the .profile section to:

# set PATH for cuda 9.0 installation
if [ -d "/usr/local/cuda-9.0/bin/" ]; then
    export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
    export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi

Hope this helps!


Ubuntu 19.10 has white calendar in top bar even when using yaru dark theme

Those white menus are the GNOME Shell theme, and not the GTK+ (applications) theme, and that's how Ubuntu 19.10 looks by default. Changing the GTK+ theme to Yaru Dark doesn't affect this. If you don't like those white menus, you'll need to change the  Shell theme, not the GTK+ theme.

If you want to get dark menus and dialogs with the Yaru GNOME Shell theme, see this guide.


Add files from a network location in VLC

You have at least three options:

Browse to ~/.gvfs

Your network drive is mounted in your home directory in the hidden directory ~/.gvfs. You can browse there with the file browser from VLC or enter the appropriate path in the Add Files dialogue.
smbnetfs

Will help you to mount your network directory to your home. By this any application will be able to access it (see also this answer).
ushare .

Installs an UPnP server on the media server. VLC and other players are able to read files from there (the GUI stream2ip helps you to set it up)


/boot contains bootloader, kernel and other images, what will boot. If you deleted some files, you can fall in to grub rescue, or something like that. If you will not get Grub at all, get a Live Image, and follow the instructions here.

If you must free up some space, you should use package manager (apt-get) to remove old kernels SAFELY.


How do I switch between desktops in Compiz?

As I found out in the other question, that config value does nothing.

So you cannot switch between desktops in Ubuntu versions after Hardy. The concept of multiple desktops has been replaced with multiple viewports within one desktop.


Running Ubuntu 16.04 and Sykpe 4.3.0.37, I was able to close it via the application itself:

go to Skype's menu.
click on menu item: Skype.
then click on quit.

It exited the application and the background process successfully.


How do I find out the version pigenhole installed

Simply run in terminal:

apt-cache policy NAME-OF-PACKAGE

or with help of dpkg

dpkg -l | grep NAME-OF-PACKAGE


You can try:

  sudo ifdown p2p1;sudo ifup p2p1

or adding your gateway manually (this won't be preserved after reboot):

  sudo ip r add default via 161.53.68.1 dev p2p1

Anyway, you can remove network and broadcast from interfaces, those are automatically resolved. Just put address,netmask and gateway.


Solved CONCLUSION: so only needed to use dmesg command to track down which device then change out the keyboard hardware while concurrently changing which USB plug I plugged into was the HARDWARE DEBUG SOLUTION, so far anyhow !!
ISSUE: Machine randomly freezing up - Summary SOLN: The keyboard was defective , swapped it out
-- First REBOOTED , BELOW are the NEXT debug steps
WARNING AT BOOT : USB overpowered rebooting in 15 seconds
Never seen the message ^Above so consistent with Hardware failure / circuit short circuiting issue debugged below !
Find the ERROR via
dmesg | tail -n30
**DPC containment event
[ 6] Bad TLP**
dmesg | grep -i "Bad TLP"
dmesg | grep -i "[ 6]"
So I swapped out GAMER Keyboard ( on port [ 6] ) for >> SINO WEALTH - usb 5-1: new low-speed USB device number 3 using xhci_hcd << ALSO changed WHICH USB plug
See new device PNP registered per >>
dmesg | tail -n30
[ 2020 939537] usb 5-1: new low-speed USB device number 3 using xhci_hcd
[ 2021 124622] usb 5-1: New USB device found, idVendor=258a, idProduct=0001
[ 2021 124624] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2021 124626] usb 5-1: Product: USB KEYBOARD
[ 2021 124627] usb 5-1: Manufacturer: SINO WEALTH
An easy way to get and NOTE the Timestamp of NEWEST LAST "DPC containment event" message
dmesg | grep -i "DPC containment event"
[ 3451 609137]    DPC containment event
CONFIRMED SOLN PER below
dmesg | grep -i "Bad TLP"
^^ ONLY OLD Timestamp "Bad TLP" messages from OLD defective keyboard hardware i e  newer than "[ 3451 " above
dmesg | grep -i error
^^ ONLY OLD Timestamp "error" messages from OLD defective keyboard hardware i e  newer than "[ 3451 "
-AND-
dmesg | grep -i watchdog
[    0 162943] NMI watchdog: Enabled  Permanently consumes one hw-PMU counter
^^ ONLY One(1) "watchdog" message, which is AOK
-AND-
dmesg | grep -i IOMMU
[    0 953589] AMD-Vi: IOMMU performance counters supported
[    0 953709] AMD-Vi: IOMMU performance counters supported
[    0 955110] iommu: Adding device 0000:00:01 0 to group 0
[    0 955773] iommu: Adding device 0000:00:01 1 to group 1
^^ "IOMMU" messages are ONLY the correct setup messages immediately after a reboot per Timestamp on messages , which is AOK
Solved CONCLUSION: so only needed to use dmesg command to track down which device then change out the keyboard hardware while concurrently changing which USB plug I plugged into was the HARDWARE DEBUG SOLUTION, so far anyhow !!
Intermittent hardware failures and freezing up makes me crazy !
So,
HTH


How to get line from a file using line number and edit it easily?

You can use sed or perl to print line X:

$ cat -n input.txt
     1  roses are red
     2  violets are blue
     3  sed is interesting
     4  and perl is too

$ perl -ne 'print $_ if $. == 3'  input.txt
sed is interesting
$ sed -n '3p' input.txt
sed is interesting

Then you can use sed 'NUMBERs/WORD/NEWWORD/' file.txt

$ sed '3s/interesting/fun/'  input.txt
roses are red
violets are blue
sed is fun
and perl is too

You can use -i flag as well to edit file in-place.

Same with Perl:

$ perl -pe 's/interesting/fun/ if $. == 3'  input.txt
roses are red
violets are blue
sed is fun
and perl is too

NOTE:  With the two editing examples, you don't need to know whether the line contains word or not. Both perl and sed will replace the word if and only if the line contains the word/pattern. If it doesn't - the line will remain the same.


I think you need D-Link DSL-502T Manual

More resurces and tehnical support at: http://www.dlink.com.au/tech/download/download.aspx?product=DSL-502T&revision=REV_A&filetype=Manuals .


Here's the universal, multi-distro solution.

Create a script (don't forget to start with the shabang!) and place that script in

/etc/xdg/autostart

After rebooting, the script will launch, and you can also find it in Startup Applications (see the last screenshot in this link for an illustration).

This complies with the XDG Autostart Specification and works with any compliant distro of Linux.


How to allow key functions while desktop locked

Somewhat of a shameful plug, but since there didn't seem to be any existing solution, and since the task seemed relatively straight-forward, I wrote a simple Python daemon to fix the problem. It uses the python-xlib API to capture system-wide key presses and then runs custom shell commands. It assumes a basic Debian/Ubuntu setup, but would probably work on most Linux systems with a few tweaks.

For my case, the volume up/down keys map to the code 122/123, so the corresponding commands to lower or raise volume only when the desktop is locked are:

gnome-screensaver-command -q | grep "is active" && bash -c '/usr/bin/pactl -- set-sink-volume `pacmd list-sinks | grep -P -o "(?<=\* index: )[0-9]+"` -10%'
gnome-screensaver-command -q | grep "is active" && bash -c '/usr/bin/pactl -- set-sink-volume `pacmd list-sinks | grep -P -o "(?<=\* index: )[0-9]+"` +10%'

Admittedly, that's a bit verbose. The second grep is to find the active sound interface on systems that might have several (e.g. my laptop has a Master and Headphone interface, allowing these commands to control either).

Edit: This no longer works as of Ubuntu 16. All X functions seem to become disabled, even from the terminal, once the screen locks.


"Access is denied" while launching Ubuntu WSL

See github issue answer for resolution. https://github.com/microsoft/WSL/issues/4920#issuecomment-658808564
This happens when WSL shuts down automatically and you need to start it back with Admin privileges. Open Powershell / CMD as admin and run wsl. WSL will start and you can close the window. The normal way of using WSL will now work.
Alternatively, try running Ubuntu WSL as admin (right click on Ubuntu in Start and click Run as Administrator). Post initial WSL launch, you can open it without Admin.


Problem playing video files with Ubuntu 12.04 lts

Try to install VLC by running the below command on terminal,

sudo apt-get install vlc


Only in Ubuntu 12.10 Chrome on Youtube, videos are all playing with grain particles all over

I don't use google chrome very much, but i have noticed this problem as well on ubuntu 12.04, by googling the problem it seems like disabling PepperFlash plugin is the solution, in order to do this type about:plugins in the adress bar, click on details, search for PepperFlash and disable it. you may need to restart chrome.


Desktop Icons Missing in Unity, New 17.10 Upgrade

If you are using Gnome install gnome-tweak-tool and make sure that Show Icons is set under Desktop.

If you are still using Unity, you can use the Terminal to do this:

gsettings set org.gnome.desktop.background show-desktop-icons true


What partitions are associated to each os?

hmmm... mount each partition, take a look around & see what's on it?

All the NTFS ones are either windows or storage formatted by windows. sda2 looks like an EFI partition.

9's apparently a linux swap. Take a look at each linux's /etc/fstab and see which one uses sda9 for swap... could be both, I think I read somewhere that some linux's might start using whatever swap's available.

7 is whatever OS you were running at the time of the image (mounted /). So 8 would be the other linux.

But I'd definitely take a look inside one, backup any wanted data & such, before deleting any.

And GRUB's boot menu should point to each one's partition too, but I'm not sure if it uses the same labels or numbering.


Encrypting/Decrypting a single file in Ubuntu 12.04 LTS

A simple way to encrypt a single file is with openssl:

openssl des3 < youfile.txt > yourfile.txt.des3

This will prompt you for a passphrase, which you will need to enter later when decrypting the file.

openssl des3 -d < yourfile.txt.des3 > yourfile.txt.decrypted

To make this "graphical" you could put it in a Nautilus script and make it accessible from the context menu. (See the docs of Nautilus for that.)

UPDATE

des3 is just an example. Run openssl list-cipher-algorithms to see the full list of ciphers.


Matlab Installation Issue for ubuntu14.04 with 32bits os

The MATLAB installation offered by Software Center does not actually install MATLAB, instead it installs a matlab-support package:

  This package does not provide MATLAB. Instead, it configures an
   existing MATLAB installation to integrate more comfortably in
   a Debian installation.

Furthermore, as you have already deduced, Mathworks no longer support 32-bit Linux platforms: see the list of System Requirements and Supported Compilers Archive, according to which the last release to support 32-bit Linux platforms was 2012a

  Note: Release 2012a was the last release of the 32-bit version of MATLAB for Linux. See the platform road map for more information.


Vagrant not shutting down gracefully when shutting down computer

I'm not sure about stopping 'vagrant up' and doing an sql dump, but working upstream of this may solve your problem. Use vagrant with best practice to avoid corruption to begin with, then you should be golden (in terms of future practice). Always run 'vagrant halt' or 'vagrant suspend' prior to shutting your machine down. If you want a safeguard to ensure your vagrant boxes get suspended prior to shutdown (incase you forget to halt or suspend) follow this guide: https://www.ollegustafsson.com/en/vagrant-suspend-resume/

To my knowledge, once a box is corrupted, you have to destroy it and rebuild it. I've had to deal with corrupted boxes before and it is a PAIN because you lose your database(s). You can also do an sql import on a provisioned vagrant up, so that you're pulling sql from an external database. This explains how to do that: https://discourse.roots.io/t/import-database-from-mysql-dump-on-vagrant-up/5514/3

Good luck!


GNOME Terminal Transparency with GNOME Classic (no effects)

Transparency requires compositing
True transparency requires compositing -
Wikipedia says...

Compositing is the combining of visual elements from separate sources into single images, often to create the illusion that all those elements are parts of the same scene.

Since Gnome (No Effects) is literally just that - no effects.

However, you can persuade metacity which is the default window-manager to provide some compositing effects.

Use gconf-editor and tick the key as shown.

You could also use a lightweight compositor such as xcompmgr to achieve the same - i.e. run xcompmgr & in your startup applications.


Quickly gives warnings on packaging, not recognizing setup.py~

Whatever editing program you used to change setup.py created a backup setup.py~ of the original file. When the program is packaged by distutils, file types that it doesn't recognize (i.e. the .py~) give a warning. Just delete the file. Not sure how to turn off that behavior in whatever editor you're using.

EDIT: In gedit you can turn off automatic backups by going to Edit->Preferences->Editor tab and unchecking 'Create a backup copy of files before saving'


18.04 Server: Change WiFi frequency to 2.4Ghz band on Raspberry Pi 3B+

nmcli is the CLI tool to use here to control Network Manager.  As per https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/configure-wifi-connections make sure your WiFi radio is on with nmcli r wifi on then find the name of your Pi's WiFi with nmcli d  .

List the WiFi Access Points (WAPs) with nmcli d wifi list then connect with nmcli d wifi connect my_wifi password   .

Since your WAPs are 2.4GHz, you won't select any 5 GHz WAP, and once you've connected to your 2.4 GHz WAP, it will stay connected.

wpa_supplicant allows you to specify frequencies restricted to the 2.4 GHz band only by adding a file /etc/wpa_supplicant.conf with a line including

  freq_list=2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462

https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up/5 provides GUI-based instructions if you've added a GUI to your server; https://i.stack.imgur.com/mXxHL.png shows the critical screen for WAP selection.


Brightness and volume control not working on ubuntu 20.04

So check it out - I got it all working except it didn't work. The reason is that Nvidia has not released their drivers with 30x series Laptop GPU support yet. I found it by using nvidia-smi to check for the GPU and while it identifies it still says "unsupported device in driver tree".
Also AMD has not updated the Vega driver for the 5900HS .. and also thinks that my CPU is a 5900HX ...
So welcome living on the bleeding edge :-D We just have to wait for a bit to get those drivers and it will all work. Also https://gitlab.com/asus-linux/asus-nb-ctrl works for all the fan stuff (that works without anything else).


Looks like something went wrong when you installed the package.  Please make sure that the package is installed by checking if the file /usr/share/maas/maas/urls.py is present on your system.  Then you need to make sure that the apache configuration is properly installed by making sure that /etc/apache2/conf.d/maas-http.conf is a valid link.

As a last resort option, you can purge the package and reinstall it:

sudo apt-get purge maas
sudo apt-get install maas


Unsure if it is useful, but please check the BIOS settings, if touchpad is disabled there?

Also, many notebooks have Fn+key combination to disable the TP. Couldn't you press this combination unintentionally?

Try to boot from LiveCD - does it detect the TP?


Intermittent failure of Wifi on Ubuntu 20.04

Your current wireless connection is forced to channel 161 in the 5Ghz band. At "Signal level=-72 dBm", the signal may be too weak to maintain a reliable connection.
Your router is set such that it auto-selects the 2.4Ghz or 5Ghz band for you.
We'll force it to channel 11 in the 2.4Ghz band and see if that helps.
Open your wireless settings for the network Fios-7X4CA and change the BSSID from blank, to 18:78:D4:0E:06:62, like so (you can use the pop-down arrow)... and click the Apply button...

(re)connect to the wireless network and recheck connectivity.
Then show me iwconfig wlp3s0
If the network is more reliable, you'll have to change the Verizon router such that the 2.4Ghz band has a different name, and then connect to that in the future (or just leave the settings as above).


how can I get rid of old versions of software on lubuntu?

I think I figured it out. But you may want to verify. In the terminal, type in:

locate policytool

Do you get java-6-openjdk files AND java-7-openjdk files? If so, simply uninstall the openjdk6 files.

Open synaptic (Menu -> System Tools -> Synaptic Package Manager) and search for openjdk.

Right click the openjdk-6 files, and remove.


If you install the "cairo-dock" and "cairo-dock-plug-ins" packages you should get a preset theme called Default-Panel that will give you a panel with a clock at the top (as well as a dock at the bottom).


We can run the command without root privileges by adding those commands to sudoers file under NOPASSWD

Try the following command.

 sudo visudo

Go to the last line, and type the following command.

user ALL= NOPASSWD: /bin/bash *.sh

And then save the file. Login to the user and try to run the script by using sudo., For an example

sudo bash script.sh


If you're at a GUI hit ALT-F2 type term and run do-release-upgrade. If that does not work, use CTRL-ALT-F1 and login to the terminal, then run do-release-upgrade to reinitiate the upgrade.

If the do-release-upgrade tells you that there is no newer version found or something of the like, then do a manual installation of the UBUNTU-DESKTOP package by typing sudo apt-get install ubuntu-desktop. That's about all I can think of at the moment that might help you. Good luck.


Did you change any else drivers before it started glitch? r8169 has serious uncompabilities with NVIDIA that I am trying to resolve. Always I change my video driver from Noveau to NVIDIA binary driver 331.89, my r8169 makes internet very slow. As I am child and parents don't allow(once I broke my OS trying to install r8168), I can't install r8168. But that is usually needed to fix problems with Realtek RTL8111/8168 Ethernet Cards...


When using Ubuntu with the Kubuntu desktop it asks me to install Rails

If Synaptic is saying that the package isn't installed, then it likely isn't, or possibly got removed. To install it, do

sudo apt-get install rails

or just right-click on the package in Synaptic and click "Install".


Disable Clutter (Top and Sidebar) on external Monitor

You can configure the side bar (launcher) to only appear on the primary display, under Displays in System Settings. However, the top panel will appear on all screens. If you run something in full screen mode on the display where you wish to hide the top panel though, it will be hidden by the full screen window. Also, if you wish to avoid notifications popping up on the live output, it's best to arrange it to the left of the primary display, as notifications will pop up in the top right most corner.


Ubuntu 19.04 desktop - VNC grey screen, xrdp rights

xRDP could be the way to go... the problem you are facing is due to polkit technology. When you are working on a remote session, polkit does not authorize all actions indeed... (you can have a quick idea of polkit limitation and xrdp via this post (http://c-nergy.be/blog/?p=120731)

So, to have all the necessary rights you might need, you have multiple options

you can disable polkit - Not recommended
you can create a list of exceptions for the actions you would need to do and configure if authentication popup would be presented or not

you can find some examples of polkit exception files that are used when working with xRDP reading these posts

http://c-nergy.be/blog/?p=14051

(http://c-nergy.be/blog/?p=120731)

hope this help
Till next time


How to make new header files available universally?

Store them in /usr/local/include. From http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/usr.html, items in this directory are "... safe from being overwritten when the system software is updated", which is important since you do not want the headers files you have downloaded to get clobbered by system updates, which might happen if you put them in /usr/include.


sudo will not be able to ask for a password when it runs inside cron. You have at least two solutions:

run the command in root's crontab, not the user's. You will not need sudo then. (as @steeldriver said in the first comment).
setup sudo so that it doesn't ask for a pasword for that particular command. This page explains it pretty well.


How to install a package not found in Synaptic Package Manager

djvused is included with the djvulibre-bin package. If you cannot find the program by it's package name, try the "package contents" option in the search box on the right side at packages.ubuntu.com. Search for "djvused" in package contents.

If a program is relatively new, and no package exist in the Ubuntu repositories, you could try to find one using PPAs (=Personal Package Archives).


Can't boot on Win 8 after installing Ubuntu : "A required device isn’t connected or can’t be accessed"

Your configuration is strange, and that strangeness may hide a problem. You have:

Two hard disks (no problem there).
It appears that /dev/sdc is a Windows installation disk that you haven't unplugged. This also is not a real problem.
/dev/sda is partitioned with MBR and seems to hold Windows. This implies that Windows is booting in BIOS/CSM/legacy mode; however, the MBR of the disk holds SYSLINUX, not the Windows boot loader.
/dev/sdb is partitioned using GPT and seems to hold Ubuntu. It has a BIOS Boot Partition, which also implies a BIOS-mode installation of Ubuntu.

Although it's legal to mix MBR and GPT, and to use GPT on a disk that boots Linux in EFI mode, this setup is unconventional. The fact that SYSLINUX is on the MBR of /dev/sda may be an issue, although IIRC, SYSLINUX can chainload to a Windows boot loader located elsewhere.

It's possible that your Windows recovery tools are being thrown by the GPT /dev/sdb. If so, unplugging it and attempting a recovery may work. You could also try asking about this on a Windows forum, since the Windows boot failure is basically a Windows issue. (Although the presence of SYSLINUX might be part of the problem, the solution if this is the case will be to re-install the Windows boot loader on /dev/sda, which is a Windows-specific solution.)

If you can't get that to work, you could switch your approach radically and re-install both Windows and Ubuntu in EFI mode: Disable the Compatibility Support Module (CSM) in the firmware, wipe both disks clean, and re-install both OSes. (It is possible to convert both from BIOS-mode to EFI-mode booting, but that will likely take more effort than re-installing.) See my page on the subject for why the CSM can create problems. I don't think the CSM is fundamentally the issue for you, but switching to an EFI-mode boot will likely bypass whatever the issue actually is, so it's worth trying if you can't find another solution.


Ubuntu 16.04 Server Installation with RaidZ2

My experience with ZFS mainly is based on BSD (FreeNAS etc.). In those installations, the OS is usually installed on a different small disk (even USB-pendrive), to have all the disk space for your zpool (with RAIDZ2 you should have a lot of disks of same size). So the zpool is even portable between different OS (I have successfully ported one zpool, between FreeNAS, Nas4Free and ZFSonLinux without problems).

You may install the OS on a small partition of a SSD and have the rest of that as SLOG device for the zpool as recommended for peformance reasons.


Starting Ubuntu14.04 after first installation it hang can't do anything

Try the below commands,

sudo apt-get remove compiz-plugins

sudo apt-get remove compizconfig-settings-manager

After the above please reboot the machine and enter with safety recovery(by holding the shift key). Once you are done with this please select the additional drivers then check whether any drivers missed. If so install and login the system normally.

Hope this helps.


Enable WiFi not showing up on a fresh install of Ubuntu 15.10

You cannot connect wireless networks from a guest system in VirtualBox.

You need to connect from the host system.

In this case the guest system, will have network access.


How to append another directory to an aliased `cd` command?

This can't be done with bash aliases, but you can use functions:

py () {
  cd ~/Myprograms/Langs/workout/PythonScripts/"$1"
}

$1 is the first argument to the function. You can call it this:

py basics

Without any arguments, it would just cd to ~/Myprograms/Langs/workout/PythonScripts/.


Using built-in GUI tools, how do I partition/format an empty drive (zeroed out)?

If it shows an option to select the filesystem, you're using the partition format option. The disk formatting option is elsewhere:

It also means the disk isn't "zeroed out". Whatever you did kept the partition table, and probably only affected the partition.


Custom widgets/controls in application indicators

You can't integrate with the date/time/calendar indicator AFAIK.

You can't add fancy custom menu items either: https://askubuntu.com/a/57276/67335.

So you're left with writing your own indicator which would have a menu and that menu would then launch your config dialog containing the calendar or whatever you needed.

To get you started: https://askubuntu.com/a/501053/67335.


You're trying to run it in an interactive Python session. It's its own command. Exit the Python shell (Control+D) and then just run the command from the standard Bash shell:

pip3 install --user face_recognition

Note, you'll need to follow that readme closely. You'll need to do some contortion to install face_recognition's dependencies.


Can I try out the Netbook Edition's interface from the Desktop Edition?

Yes, when you install the Ubuntu Netbook edition How can I install Unity after installing Desktop Edition after successful installation when you logout the GDM login screen will have an additional option for Ubuntu Netbook - you'll be able to switch from Gnome to Netbook (Just as if you were switching between Gnome and KDE, etc)


Steam wasn't opening, so I looked at another post

You could set a shortcut on your Desktop that sets the environment variable and launches Steam, it'd basically be a shortcut to the long command you put into the terminal to launch it.


How can I install OpenOffice in Ubuntu MATE 64bit?

To install OpenOffice 4.1.1 on a 64 bit Ubuntu machine:

Remove the previously installed versions of either openoffice and libreoffice:

sudo apt-get remove libreoffice* openoffice*

sudo apt-get autoremove

Download, extract and install the deb package:

wget sourceforge.net/projects/openofficeorg.mirror/files/4.1.1/binaries/en-GB/Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_en-GB.tar.gz

tar -xzvf Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_en-GB.tar.gz

cd en-GB/DEBS

sudo dpkg -i *.deb

cd desktop-integration

sudo dpkg -i *.deb


Laptop freezing when running out of battery on ubuntu 20.04

in /etc/UPower/UPower.conf
Edit the line
CriticalPowerAction=HybridSleep

to
CriticalPowerAction=Hibernate


Rhythmbox is a music player that allows easy browsing and searching of your music. Audio files (.ogg, .mp3 etc.) have a feature called tags. Tags are small pieces of text that describe the audio file they are in. Examples of tag types are: 'album', 'artist' and 'genre'.

When you import files into your library, Rhythmbox extracts these tags, as well as the location of the file, into its database. It then uses the database to provide the interface that you can use to browse, search and play music. It also allows you to edit the tags in files. Tags replace the semantics of the underlying file hierarchy.

Your default music location is there for when you rip CDs. CDs don't contain tag information so Rhythmbox looks them up online and then uses your preferences to create the music files on your disk with your preferred naming scheme.

If you don't like the way Rhythmbox works, you can install other music players from Ubuntu Software Centre:

As you can see, there is plenty of choice.


Touchpad frozen after resume on a Gateway MX6650/MA2A

Look at the pm-powersave package, and see Why is wireless down/strange after switching to battery or closing/opening the lid? for some help.


wine Direct3D 10 is not supported on this GPU with the current shader backend

TL;DR

Run glxinfo | grep GLSL — the least version you want to see is the 3.30. Otherwise your driver just doesn't support the GLSL version which wine is using for DX10 implementation.

I was also getting the same error, so I decided to investigate it. First we have to find out the code. Grepping over the Wine source shows that the error resides in dlls/dxgi/utils.c:448. Here's relevant part:

    hr = wined3d_get_device_caps(factory->wined3d, adapter->ordinal, WINED3D_DEVICE_TYPE_HAL, &caps);
    if (FAILED(hr) || caps.VertexShaderVersion < 4 || caps.PixelShaderVersion < 4)
    {
        FIXME_(winediag)("Direct3D 10 is not supported on this GPU with the current shader backend.\n");

So, the error is caused either by wined3d_get_device_caps fail, or by too low shader versions. Taking a look at the implementation in dlls/wined3d/directx.c:4884 for the possible fail reason shows that the wined3d_get_device_caps is pretty big function of ≈700 lines, and it have only two returns in its body — the fail one is ≈12 lines below the start, and the successful in the end. The fail code looks like

    if (adapter_idx >= wined3d->adapter_count)
        return WINED3DERR_INVALIDCALL;

Looking at the name of return value WINED3DERR_INVALIDCALL, I'd guess that the line here is for the case of a bug — either in Wine or in app. I've a feeling that this is unlikely our case, so let's assume that the function succeeds, return to the utils.c, and take a look at the other fail cases, i.e. caps.VertexShaderVersion < 4 || caps.PixelShaderVersion < 4.

I haven't work with graphics, so didn't know what're Vertex/Pixel Shader Versions. Searching about it gives an answer, that it is also referred as «shader model». Isn't reliable source btw, but the Wikipedia article didn't mention versioning at all, so better than nothing.

Next, searching about shader model gives us HLSL article, which fortunately have tables for both Pixel and Vertex shader versions; both tables have 4.0 version, which wine is looking for. One last thing: how could we find whether our GPU driver supports the 4.0 version if it rather implements OpenGL?

Well, it turns out there's an article about detecting the shader model for OpenGL, and… there's a comparison of versions for OpenGL and Direct3D! Quoting: Direct3D Shader Model 4.0 is equivalent to GLSL version 3.30.

Let's find out whether we got that version:

$ glxinfo | grep GLSL
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

Well, as you see, it turns out that the driver didn't support the needed version 3.30 ☹ I wish you're lucky, though, if you're reading that, guess you're not.