The www-data user's shell is usually set to /usr/sbin/nologin which would prevent ssh logins.

You could try changing www-data's shell by running:

sudo chsh www-data

And entering /bin/bash as the new shell value.


'free' command shows available ram less than buff/cache!

If you want to calculate your free memory try this

(it will print it in MB's)

make a script in bash
add these

mem1=$( free | sed 'N;s/\n/ /;N;s/\n/ /' | awk '{ print $8 }' | awk '{ total = $1 / 1024 ; print total }' | sed 'N;s/\n/ /;N;s/\n/ /' | awk '{ print $1}' )
mem2c=$( free | sed 'N;s/\n/ /;N;s/\n/ /' | awk '{ print $10}' | awk '{ total = $1 / 1024 ; print total }' | sed 'N;s/\n/ /;N;s/\n/ /' | awk '{ print $1}' )
mem3=$( free | sed 'N;s/\n/ /;N;s/\n/ /' | awk '{ print $9}' | awk '{ total = $1 / 1024 ; print total }' | sed 'N;s/\n/ /;N;s/\n/ /' | awk '{ print $1}' )
mem2f=$( free | sed 'N;s/\n/ /;N;s/\n/ /' | awk '{ print $12}' | awk '{ total = $1 / 1024 ; print total }' | sed 'N;s/\n/ /;N;s/\n/ /' | awk '{ print $1}')
mem2=$(awk "BEGIN {print $mem2c+$mem2f; exit}")

then just do this

echo "$mem1 / $mem3 / $mem2"

source: my own code :)

https://github.com/ppigmans/Tool-box


Reinstall your system from a live session. Mount the partitions without formatting them;that will preserve your setting and files.

Mind though that it is wise to create a backup of your personal files from the live session before doing this.

And stop using "rm" in combination with "sudo" or a root session and evaluate why you feel the need. There should not be a reason to remove any file in the base of the system. If you installed software in the base system don't do that (use /opt/) or use the correct tool to remove them (like apt purge or apt remove).


Crashing fragmented login screen after longer off-/sleep-time

I solved this by installing and switching to the NVIDIA proprietary graphics card driver.

From the desktop GUI, this can be done by browsing to System-Preferences -> Software & Updates -> Additional Drivers. Here you can choose between NVIDIA binary drivers and the default Nouveau driver.

It may be the case, like I experienced earlier, that after switching the driver and rebooting the machine, you won't be able to reaccess the Ubuntu-GUI and only have the command-line to control the system. From command-line you can switch the driver back to nouveau by using ubuntu-drivers

sudo ubuntu-drivers devices

which will output something like this:

== /sys/devices/pci0000:00/0000:00:03.0/0000:04:00.0 ==
model    : GT218 [NVS 300]
modalias : pci:v000010DEd000010D8sv000010DEsd00000862bc03sc00i00
vendor   : NVIDIA Corporation
driver   : nvidia-304 - distro non-free
driver   : nvidia-340 - distro non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

With that information you would in this example reinstall the displayed nouveau drivers using apt-get:

sudo apt-get install xserver-xorg-video-nouveau

Reboot and you're back to normal.


Machine check error while booting from USB

More a workaround than a solution, but since I couldn't solve the problem with the USB stick, I was finally able to boot from a CD, that's how I installed Ubuntu on my Laptop.


How to install Ubuntu alongside encrypted Windows 7?

The answer is Yes.

Create Live USB Storage
Boot it
Install to USB Storage#2
Boot from USB Storage#2

For safety, remove primary HDD before installing(for paranoiacs mainly)


What would be a good replacement for avidemux in Ubuntu 16.04?

Depending on what you were using Avidemux to do you might be able to get away with HandBrake for transcoding videos. There is also a command-line version of HandBrake named handbrake-cli. Otherwise install Kdendlive for working with raw video footage and other video editor functions. To install all three applications open the terminal and type:

sudo apt install handbrake-cli handbrake kdenlive


External Mouse Cursor randomly freezing on Ubuntu 18.04 LTS

My mouse didn't work after upgrading to Ubuntu 18.04.

The origin of the problem was the mouse emulation in Tweaks which was switched on.
Remove the emulation with:

  Tweaks -> Keyboard and mouse -> Remove mouse click emulation

and

  Activities -> Search -> Optimizations -> Keyboard and mouse -> Disable mouse click emulation


That will probably cover it:

sudo apt-get install qtdeclarative5-dev qml-module-qtquick-controls


Problems with su: Authentication Failure

Look again at the web page. You are trying, wrongly, to run a command for an RPM based Linux like Fedora. Instead, run the command that says:

For Debian based systems, like Ubuntu you should just have to install a few things using these commands:

$ sudo apt-get install build-essential


Unable to dual boot Ubuntu with Windows 8

You have to give some no formated free space to ubuntu installation. after installing you can use your drives D and E by mounting them.

In general, the concept of Partitions and Drives in linux are different from in windows.
All the files are organized like a tree around the root(spelled the directory /) directory which has been chosen at the time of installation.

in linux you can have your data s in windows partitions format(FAT,NTFS), But sorrilyunfortunately, Windows does not support Linux formats.


If you are using multiple X screens (i.e. you have displays :0.0, :0.1, etc), then it is not possible to move windows between them.  Windows are bound to an X screen because the screens might have incompatible pixel formats or the hardware might not be able to share resources between the screens.  Xinerama, RandR and TwinView were all designed to work around this by merging multiple monitors into a single logical screen.

I know Sun put work into Gnome 2.x to make sure it worked well in this configuration and applications launched from a panel of a one screen would cause the application to open on the same screen, but it is possible some of this has bitrotted since then if you're having trouble.

Some applications (like Nautilus) should be multi-screen capable out of the box, but most will only run on a single screen at once.  You can force an application to launch on a particular X screen by passing a custom display string.  For example, to launch Firefox on the second screen you could run the following:

firefox --display :0.1

Perhaps creating a few custom launchers with commands like this would help?


Read on

DEPRECATED.

Please use https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-proper for near-final pure Qt5 on Ubuntu 12.10, and https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-beta1 for Ubuntu Phone application development on Ubuntu 12.10 and Ubuntu 12.04 LTS.

qt5-proper will be later updated to final Qt5 and to be suitable to replace qt5-beta1 for all purposes.

The PPAs are not needed anymore, all of Qt 5.0.1 is now in the Ubuntu 13.04 archives. Just install 'ubuntu-sdk'! ~found here https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-proper


can't find "allow executing file as program" checkbox

The option, to make a file executable is only shown for programs that the file manager considers to be of an executable file type. Jar-files are not in that list, although on Ubuntu setting them executable allows you to run them (maybe this should be reported as a bug?). Depending on the settings used when compiling the kernel (or generally on other operating systems), setting jar files executable might not work, and I guess this is the reason why file managers don't consider them runnable.

So, your options are:

Use the command line tool chmod to add the execute permission. (chmod +x <filename>)
Don't care about execute permissions and just always run java -jar <filename>.

You can create a launcher icon that runs this command.
You can create a write a wrapper shell script that can then be set executable. Most java programs available in the Ubuntu repositories install such a wrapper to /usr/bin, while the jar files reside in /usr/share/java


How can I view the core dump in 18.04 LTS?

If youu want to enable Apport, run: sudo systemctl enable apport.service to start on every boot or sudo service apport start to start apport only for that session.

Apport itself is running at all times, however, the crash sensing component is still disabled. To enable it permanently, run the command:

sudo nano /etc/apport/crashdb.conf

and add a hash symbol # at the beginning of the following line:

'problem_types': ['Bug', 'Package'],

To disable crash reporting just remove the hash symbol.

Also, refer https://wiki.ubuntu.com/DebuggingProgramCrash


after installing ubuntu unable to open other drives on another hdd

You won't see drive letters such as C, D, E, F, in Linux.  You can see other drives and partitions as devices.

There are a few ways to bring up your other devices (drives).  The output you provided in your question is showing partitions where your files are saved.  Windows showed those devices as D, E, F, G.  Your output is showing them as:

/dev/sdb2
/dev/sdb3
/dev/sdb4
/dev/sdb5

These are GUI methods for browsing your other drives

View other drives via the file manager:

Bring up your file manager by launching the application from your Ubuntu sidebar that looks like a file cabinet.  The application is Nautilus.  On the side bar of your Nautilus File Manager, you'll see devices near the bottom.  If those devices are in a recognizable format they will be listed.  Clicking on the filenames will bring up your other drive partitions.

Once you have found a drive or a folder that you will frequently visit, you can use Nautilus' bookmark option to easily access it quicker.

Click Bookmark while in the space you want to bookmark.  You can right click on the bookmark you create and give it a more friendly name.

Viewing other drives via the Disk Manager

YOu can bring up the Disk Manager by typing disk in the Ubuntu Dash search.  There you will be able to the physical drives by their names on the left panel of the window.  Then under the Volumes area, you can select the devices by their device names, /dev/sdb2, /dev/sdb3, etc.

Viewing the devices via the Ubuntu Launcher

A most obvious method (that is easily disabled and may be disabled inadvertently) is the Launcher.  It's revealed by bringing the mouse cursor all the way to the left of the screen.  (You can also use the keyboard shortcut Alt+F1 to bring up the Ubuntu Launcher.)

New the bottom of the launcher you should see icons that resemble drives.  Clicking on those will also allow you to browse your other drives.


Nautilus (files) does not open any of my files

Well thanks to guiverc help I found the culprit
I started nautilus from command line, then I clicked on a file and saw this:
Nautilus-Share-Message: 09:03:37.960: Called "net usershare info" but it failed: Failed to execute child process “net” (No such file or directory)
grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory
WSL Interopability is disabled. Please enable it before using WSL.
grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory
[error] WSL Interoperability is disabled. Please enable it before using WSL.
/usr/bin/wslview: line 214: /mnt/c/Windows/System32/reg.exe: No such file or directory
/usr/bin/wslview: line 305: [: -ge: unary operator expected

I found that I had the wslu package (integration with windows 10). I do not remember installing that, but after uninstalling all works right again


As you can see the drive still in Gparted, you can go on and create a new partition table for it by starting gParted and then choose the proper device, go to the menu bar and click on Devices --> create partition table as format you can choose msdos afterwards build your partitions like you want and apply it.

Hope this will work for you.


Sharing an internet connection through the Ethernet port

Turns out all I needed was firestarter.  It quickly and easily did exactly what I needed, and nothing more.


I would vote up the previous answer but my "reputation" isn't high enough. What worked for me, on a MacBookPro5,2 (2009 17") was simply to append "nomodeset" in front of "quiet". So the line will end with something like:
nomodeset quiet splash --
Hope this helps someone else with an ageing (but still useful!) MacBook Pro.


All log files are in /var/log/.

Important log files that might contain what you are looking for:

boot.log
kernel.log
syslog

Use commandline or log viewer from the GUI to search for words like "error", "critical", "failed". Edit your question and copy/paste results of these in it or use google to search these notice.

The command dmesg also will show you info on your system.

"I/O error" is another to search for. A failing hard disk will end up with I/O errors and that would cause the filesystem to randomly mount read only.

fsck -N {device}  does a filesystem check without actually changing something (aka. a dry run)


Battery management doesn't recognize removal of power supply

I have a Lenovo Z470 notebook and I found the same problem when installing Ubuntu 12.04 in dual boot with Windows 7. I'm not an expert on this field but I'll describe my experience (it might help).
I have found that some Lenovo laptops, including my own and I'm not sure which other models, include an utility named Lenovo Energy Management in Windows 7 that allows users to select whether to charge to 100% to maximize runtime, or charge only partially to maximize lifespan of the battery.
Here is what the utility looks like:

Pertaining this utility I have noticed two things:

In Ubuntu, in order to be able to charge the battery to 100% the Optimize for Battery Runtime must have been selected previously in Windows 7 (I don't know if this can be controlled from Ubuntu directly, perhaps an expert could help us in that issue).
Now the bigger problem is that once you have selected the Optimize for Battery Lifespan option, even if it was only one time and you select the Optimize for Battery Runtime option again before booting Ubuntu, the Ubuntu battery indicator will indicate the battery is charging even if the power supply is not connected to the computer. So, in order to prevent this from happening you should avoid using the Lenovo Energy Management utility if you plan to use Ubuntu afterward, either clean install or dual boot.

Since most of us have already used this option at least once, I have found a workaround proposed in a thread in ubuntuforums.org proposed by member achilleas.k (not my credit). I'll cite:

Shut down the laptop.
Remove AC power.
Remove the battery.
Hold the power button for about 10 seconds.

This seemed to work for achilleas.k, some other users in that forum, and certainly is working for me. I know it's not a permanent solution, especially for those of us using both Ubuntu and Windows, but it sure helps meanwhile. Perhaps a more expert Linux user can help us out to find a formal solution using this info.
Hope it helps.


If I understand your question correctly, you want to have a command to capture a specific area of your desktop without having to subsequently crop the image.

For example, you want to capture a rectangle 500px wide and 300px high. And this rectangle is 200px from the left edge of your screen and 10px from the top of your screen.

You can do so with maim which can be installed with sudo apt install maim.

Assign a keyboard shortcut to the following code:

maim --geometry=500x300+200+10 ~/Pictures/$(date +%Y%m%d%H%S.png)

Now, each time you press the keyboard shortcut, an image of the specified size and position will be saved in ~/Pictures with a timestamp and .png as the extension. (You can use the jpeg format if you prefer). Check man maim for other options and visit the project's homepage for more ideas.


How to use `chown` and `chmod` to make a "pipe" or "pass through" link from guest directory to elsewhere

When you log in as guest, there is an apparmor profile that is loaded to restrict access to lock down the guest account so that it can't write outside of its home directory, even if the file's permissions give access.

You might be able to get around this by using a bind mount instead of a symlink:

mkdir /tmp/guest-lkj567UIO/mario_pipe
mount --bind /home/myself/receiver_dir /tmp/guest-lkj567UIO/mario_pipe


Ubuntu Keyboard + Compiz Config + dconf Editor: Shortcut issues

Well I figured it out. It had nothing to do with shortcuts. I have one 1 workspace set. Setting more of them resulted in the switcher working. Doh.


At first please note that libcamera is packaged for latest Ubuntu versions.
To start using it you have to install needed development package by
sudo apt-get install libcamera-dev

If you really need to compile it from source - then enable Source Code repositories (deb-src) using Software & Updates (software-properties-gtk) and then get its build-dependencies by
sudo apt-get build-dep libcamera-dev

and then proceed with compilation.


How do I install a Mac OS X theme for 12.10?

I don't know about Mac OS X theme, but if you are okay with Mac OS X-based theme then Adwaita Cupertino might work for you.

Manual download and installation: http://gnome-look.org/content/show.php/Adwaita+Cupertino?content=147061

PPA Installation:
http://www.webupd8.org/2012/01/spice-up-your-desktop-with-these-5-cool.html


CCSM forces certain shortcuts after reboot.

If you uninstall CCSM you can permanently set shortcuts with System settings > Keyboard > Shortcuts.


Create keyboard shortcut to open home folder (Nautilus)?

Press and hold the super key for a while, see the icons on the launcher get numbered.The home folder always at top, so pressing 1 opens the nautilus home folder.


What are the real benefits of upgrading to ubuntu 13.04?

faster, lighter weight, and lots of bug fixes, but only supported for 9 months, while 12.04 is supported for 5 years
If you do upgrade, there are issues with HDMI audio and Nvidia drivers, to work around this use the mainline kernel (3.8.9 or 3.9rc8)


I'm new to Linux, but I had a similar problem.

Go into

  System Settings >> Software & Updates >> click the "Other Software" tab.

Locate:

http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu/dists/xenial/main/source/Sources

and

http://ppa.launchpad.net/kroq-gar78/ppa/ubuntu/dists/xenial/main/source/Sources

Click the tick box of these two repositories (including any "main" or "source code" you see at the end of these links) so they are unticked.

Close Software & Updates, it'll probably tell you something about "Out of Date." Follow the prompt to updating by clicking the relevant button.

If you get an error, copy it from the tiny text box into a text document and check if it's the same or different. If it's different then your current problem is solved, but other problems remain.

If you get no failed message, then everything is fine.

If it closes down without telling you anything, just be sure and run the update in terminal..

In terminal, type...

sudo apt update

Input your password. When the process is finished,you should get a Y/n prompt. If you do get Y/n, type y and wait for the process to finish.

If none of the same errors at the end of the process, then you're fine.

If everything is fine and updated with none of the same errors, navigate to

  /etc/apt/source.list

Open the source file in a text document, select everything inside and copy into a separate text document and save it to your desktop or elsewhere that's easy to navigate to.

This is your backup of source.list. Now, in the source.list file, locate both:

http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu/dists/xenial/main/source/Sources

http://ppa.launchpad.net/kroq-gar78/ppa/ubuntu/dists/xenial/main/source/Sources

Along with any duplicate links with something at the end of it like "source code," etc. Basically, anything regarding those two links. Save the file.

Test it out, run an update (sudo apt update).

If it says everything is up to date with no error messages of the same, then it's fixed.

The repository links in SOftware & Updates should be gone.

If everything is working fine, delete the backup you made on your desktop of source.list.

If the problem persists, make sure to copy the backup text into the source.list, replacing all text inside

I hope this fixes your problem, it did fix mine =].


Had the same issue on Ubuntu 17.10 and fixed it with the following command:

rm ~/.config/autostart/skypeforlinux.desktop

And as Tim mentions here, disable autostart in the Skype settings because Skype will keep on adding the skypeforlinux.desktop file to the ~/.config/autostart directory.

[*] I know the question is about Ubuntu 14.04 but I came across this page while searching for a solution for Ubuntu 17


If you're in the message editor, you might have noticed that your "From" address is a drop-down box, letting you select from which account you want to send the mail. That's where you can do so.

In case you need additional "identities" there, I haven't found a convenient way to simply "configure a list" – but you can setup "dummy accounts" with no "inbound mail server" (i.e. setting "Server Type" to "None" for incoming), just configuring their "outgoing" (SMTP) settings. They will appear in the drop-down as well then.

As you requested more detailed instructions, here a short step-by-step:

In Evolution, open the menu Edit → Settings
EMail Accounts should already be selected. If not, do so.
On the right hand side, push the "Add" button This starts the assistant.
Hit "Next"
Enter the name, mail address 1, reply-to. Push "Next".
Next screen is for where to pull mail from. In the "Server Type" drop-down on the very top, select "None". This will empty the form, and you can push the "Next" button again.
On the next screen, enter the data for how mail using this "alias" should be sent. Use the SMTP settings for the account you chose for the "from" address (1).
Again, push the "Next" button and verify your settings.
If everything looks fine, one more "Next" creates the alias.

Now it should be available in the mail editor's drop down.


Canno't open ubuntu software center and synaptic package manager

Try running these commands in the terminal

  sudo rm /var/lib/apt/lists/* -vf

  sudo apt-get update


The correct command is:

sudo apt-get install brother-lpr-drivers-extra

Instead of apt-get, you ran apt-install, which is not a program.

Edit:

You probably also need to install a couple of further .deb files, get fom the Brother web site.


When you did sudo mv /etc/resolv.conf /etc/resolv.conf.bak you removed what was probably the symbolic link to the dynamically generated file /run/resolvconf/resolv.conf.

To restore the symbolic link do the following

sudo dpkg-reconfigure resolvconf

and then reboot.


Unable to locate package vsftpd Ubuntu 17.10

Have you tried to resynchronize the package index files from their sources before installing the package?

sudo apt-get update && sudo apt-get install vsftpd


can't log in after password change (ecryptfs)

I had the exact same problem. I changed my password using passwd. That messed things up because of the encrypted home directory. The above link contains a solution:

login to terminal

$ ecryptfs-mount-private

You need to know your old password to mount.

  This will unlock and mount your /home/$USER. At this point, we can
  access /home/$USER. So just cd back into it and run…

$ ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase

  It’ll prompt you for your old password, and you can enter a new one afterward.
  You will need to change the password for your keyring as well.
  From your menu bar – [Applications] => [Accessories] => [Passwords and Encryption Keys]
  Under Passwords tab – right-click “Passwords: login” and “Change Password”

Based on grayfox May 17 at 19:28 - http://unixtitan.net/main/2010/11/16/annoyance-changing-password-with-ecryptfs/
(I don't have enough reputation to comment his answer)


I think one of the answers I gave might be able to sort this for you. Basically means removing it.

Error upgrading Ubuntu 16.04 LTS python-minimal package error

The example was for a python package, but it is able to remove any other package that is giving you a problem.
Let me know if it works for you :)


Yes, if you install something via the package management system (dpkg and apt), when you apt upgrade or apt dist-upgrade it will look at all your locally defined sources (PPAs, official repos, local caches, CDs etc) and attempt to install the latest version of all packages.

apt upgrade will only upgrade something if it doesn't require installing extra packages, or removing some. Only apt dist-upgrade (or the newer apt full-upgrade) will do that.

If you want to avoid that, you can "pin" the package to avoid updates.

If you install it via another method (eg sudo make install), unless you've also installed it via package management (seriously not recommended), dist- upgrade will either overwrite or install alongside.

Things you install manually tend to go into .../local/... or /opt/... directories to avoid direct clashes but this can mean you have more than one version of something installed at once.


brightness not working on 13.04 upgrade on dell xps 13 ultrabook

I had the same issue on my XP13 (2013 w/ Ivy bridge).  With the "load legacy rom" option disabled, the brightness wave very low (even lower than it can normally go?) and was not adjustable.

I can confirm that re-enabling the legacy rom option restores brightness control on my system.  I did have a number of other fixes applied (such as https://askubuntu.com/questions/286343/screen-brightness-very-dim-on-a-dell-xps-13-2013 and http://www.webupd8.org/2012/08/fix-dell-xps-13-backlight-brightness.html and http://ubuntuforums.org/showthread.php?t=2139456), but none of them worked until I re-enabled this option.

This is on what I believe to be an EFI booted system (GPT partition table, /sys/firmware/efi exists, etc).


how can partion of single hardisk after install ubuntu

You could use GParted Live to partition your storage.

http://gparted.org/download.php


This error:

ERROR: ALSA: Cannot open PCM device alsa_pcm for playback.

gives me a hint of what might be going wrong.

In order to troubleshoot the jackd server, make first sure that ALSA is available and pulseaudio is switched off (or paused), to not grab and block the ALSA interface.
Also, make sure the jackd server is no longer running, because that is also going to lock the ALSA interface.

You can try to play something directly on ALSA by loading a sound in audacity and selecting ALSA as an output in the preferences.

If this works, you can run jackd via CLI to see what output it creates, start simple, using the defaults

jackd -d alsa

Remember, ALSA is the low level sound card driver, it does not allow sharing, only one sound server can be using it at the same time, either pulseaudio or jack, but not both.


Why does ubuntu not seem to release memory?

You can free up unused memory using this command:

sudo sync && sudo sysctl -w vm.drop_caches=3

This command synchronize cached data and then writes an OS parameter at runtime, located at /proc/sys/vm/drop_caches. This parameter is read by kernel once, then free up the unused memory.

Basically, the kernel reserves three sections in cache, that could increase memory usage:

pagecache
dentries
inodes

Writing to this parameter will cause the kernel to drop clean pagecaches, dentries and inodes from RAM, causing that memory to become free. There are three values that can be assigned:

vm.drop_caches=1  free pagecaches.
vm.drop_caches=2  free dentries and inodes.
vm.drop_caches=3  free pagecaches, dentries and inodes.

Important:
After execution this will return to normal state which means start caching pagecaches, dentries and inodes again. Use it depending on your server configuration and application.


Installing Ubuntu on a second internal drive in an "independent way" (no boot option)

You will have to remove your harddrives to do this:

Remove the second harddrive
Install a bootloader to /dev/sda
Insert the second harddrive and remove the SSD
Install Ubuntu on the second harddrive. Install the bootloader to /dev/sdb
Insert the SSD again

works with USB pendirves, too.

Tested with Ubuntu 15.04, 14.04, Arch and OpenSuse


*****UPDATE*****

Hi again.

I´m glad to tell that I somehow could get things straight again. But I really don´t know how exactly it worked out.

(Background: Dual-boot installation: WIN 8.1 and Lubuntu)

What I did the day before yesterday was the following:

1.) I booted up WIN. I had a vague feeling that it could have something to do with it......
I realized that the boot process look longer that ususal.

2.) It seemed that a reboot was pending as I got a message from avira (third party software, antivirus) which
told me to reboot. That I did.

3.) After a reboot I used WIN for a while and in the evening I performed a normal shutdown.

4.) The next day (yesterday) I booted up Lubuntu and saw with last -x | grep -E '(reboot)|(shutdown)' that
nothing has changed. Well, I thought, that was to be expected.

5.) So I performed a normal shutdown and the booted up Lubuntu again.
Here are the results:

last -x | grep -E '(reboot)|(shutdown)'
reboot   system boot  4.4.0-134-generi Wed Aug 29 14:34   still running
shutdown system down  4.4.0-134-generi Wed Aug 29 12:33 - 14:34  (02:01)
reboot   system boot  4.4.0-134-generi Wed Aug 29 14:25 - 12:33  (-1:-51)
reboot   system boot  4.4.0-134-generi Tue Aug 28 13:56 - 12:33  (22:37)
reboot   system boot  4.4.0-134-generi Tue Aug 28 13:12 - 12:33  (23:21)
reboot   system boot  4.4.0-134-generi Tue Aug 28 12:20 - 12:33 (1+00:13)
reboot   system boot  4.4.0-134-generi Mon Aug 27 14:57 - 12:33 (1+21:36)
reboot   system boot  4.4.0-134-generi Mon Aug 27 12:36 - 12:33 (1+23:57)
reboot   system boot  4.4.0-134-generi Sun Aug 26 12:18 - 12:33 (3+00:15)
reboot   system boot  4.4.0-134-generi Sat Aug 25 13:22 - 12:33 (3+23:11)
shutdown system down  4.4.0-133-generi Sat Aug 25 13:21 - 13:22  (00:00)
reboot   system boot  4.4.0-133-generi Sat Aug 25 12:56 - 13:21  (00:25)
reboot   system boot  4.4.0-133-generi Thu Aug 23 12:40 - 13:21 (2+00:41)
shutdown system down  4.4.0-133-generi Wed Aug 22 19:04 - 12:40  (17:35)
reboot   system boot  4.4.0-133-generi Wed Aug 22 12:46 - 19:04  (06:17)
shutdown system down  4.4.0-133-generi Tue Aug 21 18:48 - 12:46  (17:57)
reboot   system boot  4.4.0-133-generi Tue Aug 21 11:37 - 18:48  (07:11)
[...]

As can be seen there is a shutdown entry this time and only one still running entry.

I really don´t know whether all this really had something to do with WIN and the fact that there was a reboot pending. After all it was just a wild guess.
But somehow it worked out and the Lubuntu logs display the entries as would be expected.


I tried with many alternatives... The "minimal extra-header" (required by server to offer the correct content) is User-Agent. With it is working fine:

curl -O -H "User-Agent: Mozilla/5.0 (Linux)" \
   http://www.planalto.gov.br/CCivil_03/leis/2002/L10406compilada.htm

... It is an official old service and "bad HTML", neither HTML source neither HTTP headers (-v option) shows the enconding (that is not standard UTF-8). The complete solution is

curl -H "User-Agent: Mozilla/5.0 (Linux)" \
   http://www.planalto.gov.br/CCivil_03/leis/2002/L10406compilada.htm \
   | iconv -c  -t UTF-8  -f ISO-8859-1 > L10406compilada.htm


Unable to install software on Ubuntu on 16.04

flash plugin is installed by installing "restricted extras" package found in software center.
as for the message it clearly states what is wrong. your sources are wrong or wrongly written (did you change anything in the file manually?). check the sources list. if you think all is ok update it and then force install.
i am not sure why you need bleachbit but it is again available in software center. be careful when using it.


Would it be possible to get Terraria Collector’s Edition working on Ubuntu? If so, how? Wine for CDs? General compatibility?

Regarding Terraria. Not specifically the collector's edition (but if that is a collection of several Terraria games)...

Here is a how to on installing Terraria and using it directly in Ubuntu. Basic instructions (kudos to Deathmax):

Installation Instructions

Grab the Content folder and Terraria.exe from Steam. (Either via wine or a Windows install)
Check the exe hashes at the bottom Extract the downloaded binaries archive  somewhere.
Run bspatch to patch Terraria.exe with the .patch file included in the archive.
Run mono Terraria.exe

Music Instructions

Make sure you have ffmpeg, python and perl installed.
Extract the music conversion archive into the Content folder.
Run perl xactxtract2.pl -x "Wave Bank.xwb"
Run convertmusic.sh
Run python MakeXwb.py "Wave Bank.xwb"
Make sure the file list outputted is in order.

Music should now work. (albeit with a 80MB Wave Bank with uncompressed PCM data)

When using WINE ...

Use WINE 1.7.8 and disable gameoverlayrenderer. You will see this mentioned on the wineHQ apps site and also that almost all versions of Terraria have a "yes it runs" with a gold rating.
You can find a Play on Linux script here if you want to do it yourself.
Here is a how to for Play on Linux (kudos to MadbriX|CVG):

Open Up PlayOnLinux and install your "Terraria.exe" with it. Click the button with the plus sign and says "Install" and a window should open up. In the
lower left-hand side corner, there should be a button that says "Install a non-listed program". Follow the instructions (Be sure to create a "New Virtual Drive" when it asks). Navigate to where your Terraria.exe was saved to after download and press install. It will take a few minutes, but it's worth it ;)
When Installation is finished, close the Install window and go back to the original main menu of PlayOnLinux.
Now, in the main menu, click on the Configure Button with the Gear Icon, and the "Configure" Window should open up.
In the Configure window, select "Terraria" in the side panel.
Click on the tab "Install Components". This is where you can see all the needed components for different Video Games.
Scroll down the list of components and at the bottom of the list, you should see "xna40". This is Microsoft XNA 4.0! Your Terraria won't recognize it if it was installed manually from the website for some strange reason.
Select the "xna40" and click Install. Once it has finished, select the tab called "Miscellaneous" can click on the button "Run a .exe file from this virtual drive"
The opening folder should show your recently used "Terraria.exe". Click on it, and wait around a few seconds for the game to initiate.
Enjoy the game! Let me know in the comments if there are any errors encountered.


Headphones problem with Ubuntu 18.04 - no sound on them when it is plugged in

I believe I have no muted outputs:

Before plug in headphones

After plug in headphones

Edited:
We have a BIG progress. I have decide to start alsamixer and guess what - as the mate above said - Headphones was 00, when I turn the ^ button the sound comes.

And here we have sound

Horray !!!! Now I am trying to make work-only headphones when plugged in, instead work both - speakers and the headphones. Any help will be appreciated.


Why traditional ubuntu apps never check for new updates

They do for some select applications, such as Firefox. But otherwise it is by design.
There is nothing stopping you to install new "stable" releases of other packages in an LTS version of Ubuntu, if you have the knowledge to do so. But they will not be published in the official repositories for your version.
You either have to:

Add a dedicated software repository for the desired software (often maintained by the software developer)
Use snaps/appimage/flatpack
Download and compile the software yourself

All of these methods require some skill and could compromise your system or change the look and usage of the software.
If you want it the way you propose, you should consider using a rolling release distribution, like Arch or Manjaro


How to create a custom installation USB Live Flash Drive OS image file?

It is also possible to create an OEM system according to this link. This way, the systems can be given individual identities (good in a local network), and individual user IDs and password during the final installation.

The idea is to make a compressed image or cloned copy of the tweaked installed system, and clone it to USB drives, or internal drives. If you avoid proprietary drivers, such a system is quite portable between PC computers. And I think this is much easier than to create an ISO file with a working live session and a working installer.

See these links

Ubuntu_OEM_Installer_Overview

Installation/UEFI-and-BIOS

(The server with the compressed image files is temporarily down, but you are mainly interested in the method, which is described in the links to the Ubuntu help pages.)

You can also use Clonezilla to create (and restore from) the compressed image.

clonezilla.org


Look at the error as shown in the postfix mail log -- for security reasons, Postfix does not reveal all it knows to unauthenticated clients.


If the version included in your version of Ubuntu is not the one you
want, you can use the PostgreSQL Apt Repository. This repository will
integrate with your normal systems and patch management, and provide
automatic updates for all supported versions of PostgreSQL throughout
the support lifetime of PostgreSQL.
The PostgreSQL Apt Repository supports the current LTS versions of 18.04 & 16.04
on the following architectures: amd64 i386 ppc64el
While not fully supported, the packages often work on other non-LTS versions as
well, by using the closest LTS version available. To use the apt
repository, follow these steps:
Create the file /etc/apt/sources.list.d/pgdg.list and add a line for
the repository

deb http://apt.postgresql.org/pub/repos/apt/ YOUR_UBUNTU_DISTRIB_CODENAME_HERE-pgdg main

Import the repository signing key, and update the package lists

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update

From https://www.postgresql.org/download/linux/ubuntu/


Mount Samba share allowing users to read/write

If only one user needs read/write access, you can make him owner of the mounted directory using the option uid=<linux_username>:

mount -t cifs //192.168.1.1/username pc -o uid=<unix_username>,username=username,password=xxxxx

If more than one user need read/write access, you can create a group, add the users to it:

addgroup new_group
adduser user1 new_group
adduser user2 new_group
adduser user3 new_group

then mount the share using options gid, file_mode and dir_mode:

mount -t cifs //192.168.1.1/username pc -o gid=new_group,file_mode=0664,dir_mode=0775,username=username,password=xxxxx

More information: mount.cifs manual page.


E:The package linux-image-extra-4.4.0-37-generic needs to be reinstalled, but I can't find an archive for it

The linux-image-extra-4.4.0-37-generic package was deleted from the Ubuntu repositories at September 7th of 2016.

I suppose you are trying to install the Ubuntu's QA Testdrive using apt-get. I Think you must upgrade your system before trying to install the software.

To upgrade your Ubuntu (probably a 14.04), you may try a dist-upgrade instead of a simple upgrade

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoremove

and then install the Testdrive

sudo apt-get install testdrive


This seems due to the problem of fcitx-ui-qimpanel package.
I had the same problem and found that the qt panel for fcitx did not work properly after the system started.
After removing this package, everything works well.


Konsole split screen replicates the same terminal

I'm afraid the split view has a limited function different than what you want. It allows you to view different parts of the same screen. That's it.

Here's an old article that covers the issue. From there:

  Let's start with View -> Split View, which is a source of confusion
  because the split is a clone, not an independent window.

  The purpose of this is to give two views of the same document or
  whatever output you are monitoring. For example, suppose you are
  studying a long configuration file. The split view shows the same
  document in both panes, but you can scroll independently to bring up
  different sections of the document side-by-side.

As far as konsole goes, you'll need to open a new window and arrange them to meet your needs. You could resize them and drag the windows to position them the way you want or use kwin shortcut to, for example, "snap" the windows to occupy half your machine's screen using Super+Left and Super+Right.

The workaround, is first to open a new tab, and then use split view. Work in one tab in one view and work in another tab in the other view. They'll be independent. You can use Shift+Tab to switch between tabs.

Using tabs and split view:

And here's a reddit thread on using Yakuake which splits screens the way you want.


I just found an answer to my own question:

http://www.webupd8.org/2011/02/fix-dpkg-error-trying-to-overwrite-x.html

sudo dpkg -i --force-overwrite /var/cache/apt/archives/yourbrokenpackage.deb

then:

sudo apt-get install -f

That did the trick for me.but I really don't know what really happened to the broken files.
The --force-help file says :

"Overwrite    Overwrite a file from one package with another"

So, I don't know but at least my update manager is back ;o)


Recently installed ubuntu 15.04 replacing Windows 7, on Thinkpad Edge E430. Sound issue

open the terminal by pressing ctrl+alt+T copy past this to it

sudo apt-get install alsa-tools-gui

this will install a number of tools in your PC.

open the hda-jack-retask then do the following.

Select the IDT 92HD91BXX codec (may be different on other models; but definately other than your on-board controller i.e., Intel-XXX).
Check the “Show unconnected pins” box (the internal speakers do not show as connected)
Remap 0x0d (Internal Speaker, which is your Front side) to “Internal speaker”
Remap 0x0f (“Not connected”, which is the under-display speakers) to “Internal speaker”
Remap 0×10 (“Not connected”, which is the subwoofer) to “Internal speaker (LFE)”
Apply & test audio output with any media player.
Select “Install boot override” to save the settings to apply at boot time.
Reboot. When it comes back, you should have full sound from all speakers. Also test headphones. Plugging in headphones should disable sound from all internal speakers.


Multimedia keyboard with lag ubuntu 18.04

I had the same problem, but for Spotify.

Searching I found this: https://community.spotify.com/t5/Desktop-Linux/Delay-when-changing-volume/td-p/1589346

  Essentially PulseAudio is deliberately delaying global volume changes.
  This can be changed:

  Get a root terminal and edit /etc/pulse/daemon.conf.
  Find the setting "enable-deferred-volume", remove the semicolon at the start of the line if is commented out and set its value to "no"
  This will enable instant global volume changes
  Get a terminal with your normal user, restart the PulseAudio daemon:

 pulseaudio -k && pulseaudio --start

  The man page warns about sound glitches that might occur when
  switching off deferred volume changes. If you experience this, switch
  it back on and adjust the delay settings to lower values until it
  suits you.


Why is VSZ so huge for the Gnome goa-daemon?

I observed the same on a Linux Mint box: 96G VIRT allocated to goa-daemon instances. A search finally revealed this answer over on UnixSE:

  All of these daemons use WebKit (mostly to show oauth2 login prompts), and WebKit recently introduced gigacages to isolate the heap used by their JS implementation. The allocation for a gigacage is big enough that any access to an arbitrary unsigned 32 bit offset would still land in the gigacage, resulting in these huge allocations. See this blog post for more details on gigacages: https://labs.mwrinfosecurity.com/blog/some-brief-notes-on-webkit-heap-hardening/


Welcome to AskUbuntu!

There is no 4.86 MB Ubuntu ISO file; the absolute smallest one is 54MB.
It's possible that your browser is storing the partial download in a temporary file; you can check to see if that file's size changes as your download progresses. If it is increasing in size, then your download is probably fine, and your browser will automatically merge the two files when the download is complete.

If you're having persistent download issues, you could try using a different browser, a download manager, or use the torrent download option for the Ubuntu ISO: http://www.ubuntu.com/download/alternative-downloads


Network Connectivity problem in 12.04LTS installed on VMWare 10.0

choose an option of NAT which makes us connect to
 the host IP address in Network Adopter settings of VMWare for the corresponding operating system.


You need to give the cloned partitions new UUIDs so they are not confused with the old ones.  Run sudo tune2fs -U random /dev/sdb1.


WiFi issue: /var/log/syslog and kern.log are too huge after I installed Ubuntu 14.04

It sounds like your wireless card was disabled at your laptop's hardware switch.  There is often a function key that can re-enable the wireless card (Fn+F2 for me), or a physical switch somewhere on your device.

If you have switched out your wireless hardware since installing Ubuntu, it could also be a hardware address issue that can be resolved by modifying udev rules.  It sounds more like the hardware switch is turned off, though.


Is there any app to help track my expenses and make a pie graph each month?

Gnucash is one option. It's available in the repositories.


You can try:
Subsync.
Subsync is a command line tool to syncronize srt subtitles.
You can use it to fix subtitles with both constant and variable time shift.
https://github.com/spion/subsync
Ffsubsync
Language-agnostic automatic synchronization of subtitles with video,
so that subtitles are aligned to the correct starting point within the video.
https://github.com/smacke/ffsubsync


The bind9 DNS server requires configuration.
I suspect you actually don't want to be running a DNS server and maybe you want to remove it.
Otherwise please use the Ubuntu Serverguide as a reference for configuring it.


How to change font size which can't be picked from 'Font' setting

This seems like a bug, you should probably file a bug report.

But to answer your question, you could do this graphically (using gconf-editor) but the font settings are spread all over in the gconf database, so the fastest way is to use the command line utility gconftool to change these settings:

Application font:

gconftool --set /desktop/gnome/interface/font_name --type=string "Lucida Grande 12"

Document font:

gconftool --set /desktop/gnome/interface/document_font_name --type=string "Lucida Grande 12"

Desktop font:

gconftool --set /apps/nautilus/preferences/desktop_font --type=string "Lucida Grande 12"

Window title font:

gconftool --set /apps/metacity/general/titlebar_font --type=string "Lucida Grande 12"

Fixed width font:

gconftool --set /desktop/gnome/interface/monospace_font_name --type=string "Lucida Console 12"


emacs has a mode for everything.  http://xslt-process.sourceforge.net/.


11.04 runs the 2.6.38 kernel which is supposed to work well with Sandy Bridge CPUs.
You can open a terminal and run grep MHz /proc/cpuinfo. Then open a second terminal tab and run a loop like while :; do :; done. In the first terminal, run grep MHz /proc/cpuinfo again. You should see one of the cores has a higher frequency now:
$ grep MHz /proc/cpuinfo
cpu MHz         : 1600.000
cpu MHz         : 1600.000
cpu MHz         : 1600.000
cpu MHz         : 1600.000
cpu MHz         : 1600.000
cpu MHz         : 3701.000
cpu MHz         : 1600.000
cpu MHz         : 1600.000

You can also try powertop and turbostat from the linux-tools-common package (run sudo modprobe msr before sudo turbostat). The Git version of i7z is supposed to work for Sandy Bridge (and it works for me with a desktop i7).


How to make Terminal settings to default?

Type: gnome-terminal --show-menubar in the terminal.
You will still have to change the settings back, but you can reach the menu to do that.

Like with most applications, you can get this kind of information from man gnome-terminal

(man application_name)


Make GDM3 in Ubuntu 12.10 show a list of available languages

This is apparently and upstream decision (Gnome's):

https://bugzilla.gnome.org/show_bug.cgi?id=671528

Also reported in RedHat and Debian's bug trackers:

https://bugzilla.redhat.com/show_bug.cgi?id=681750
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638353

In short, that functionality is gone.

As a workaround it seems LightDM provides this, check this question:
How do I set the login manager to enable `change languages` at login?


You don't have to change your OS. You can dual boot Ubuntu 18.04 alongside Windows 10. My current configuration is a Zephyrus M that hasn Ubuntu 18.04 running installed with NVIDIA drivers.


In Ubuntu 18.04 how do you adjust display saturation?

It looks like the answer to your question is currently at the mercy of Intel and whether or not they themselves are going to continue the graphics drivers (Including color saturation. Yes, I do know what this is you are talking about unlike many out there lol) and their adjustments on Ubuntu and such.

I hate to break it to you but as far as I've looked into this, the only things that are currently adjustable (AS OF NOW, mind you...) are the gamma, brightness and color "tint", using xgamma.

To put it more bluntly, the answer is that there is no answer to this right now in terms of Intel cards except for those adjustments I mentioned above.

It seems Intel has either abandoned working on it or are working on something better for future release. I have seen no announcements to anything new except on Intel's old site that they used to have the driver installers on when they were up and running. They said something like (not a quote) we are going to be integrating the drivers into the actual Linux distros more in the future than having people download a separate installer.

There are plenty of answers on how to adjust the nVidia and AMD graphics cards so searching online would help with those. There are also tutorials on how to install the "source code" drivers for advanced users if that is your skill level.

Excuse me for the blunt posting but I am currently looking for something like this myself and have found nothing. Not even an old driver that might work. I'm on 16.04 MATE, Ubuntu, and nothing here yet either in terms of a dedicated saturation adjustment. I have an ASUS laptop and turning the brightness (gamma) using xgamma makes it look so washed out, color wise.

I have found a GUI for xgamma. I've found it needs to be "reset" (the Restore button on the bottom right does the trick) on first running it as it seems to have been preset incorrectly. And from there it's easy to adjust and save. You just download it and open the folder, run the XgammaGui file (It's the purple icon with gears inside it here on MATE 16) and it sets xgamma for you. It's nice as it does show you the whole screen "preview" before you save it so you can check with picture files and whatnot, which setting you like best.

But alas, no color-saturation yet. ^ _ ^

If I find anything more I'll post here or if anyone would post their findings that'd be most beneficial. Good luck.


I think you can solve this by using sudo update-initramfs -u and fixplymouth script

Read this article:
Install Plymouth Manager and Change Boot Screen in Ubuntu/Linux Mint


Your answer is simple, that file doesn't exists and curl just save a HTML document as a .tgz file!

You can check it by opening this link in your browser. As you see, Page Not Found!

Also you can check it by command line:

curl -Is https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.0.5/prod/9.0_20171129/cudnn-9.0-linux-x64-v7.tgz | head -n 1
HTTP/1.1 404 Not Found

As you can see, it has the same output.

So when you run this command:

curl -O https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.0.5/prod/9.0_20171129/cudnn-9.0-linux-x64-v7.tgz

Curl just download this web page and save it as .tgz file. So you can change .tgz suffix to .html and open that file with favorite web browser like firefox, because its not in gzip format it is just a HTML document.

Also when we check cudnn-9.0-linux-x64-v7.tgz file format, as you see it is HTML document and it's not gzip compressed data:

file cudnn-9.0-linux-x64-v7.tgz
cudnn-9.0-linux-x64-v7.tgz: HTML document, ASCII text, with very long lines, with CRLF, LF line terminators

Update:

For download cudnn you can visit this page, and after logging in, you can find many versions of cuddn that you can download them.

And this is exactly the same file with which one, you want to download it before (But now many new versions and easy install files like .deb are available and you can download them instead).

Update2:

Because you said, you can't access web browser, I got this download link and write this command:

curl -O http://developer.download.nvidia.com/compute/redist/cudnn/v7.0.5/cudnn-9.0-linux-x64-v7.tgz

So you can use it by command line without web browser or logging in.


How to get rkhunter to skip "[Press  to continue]"

From man rkhunter:

--sk, --skip-keypress
      When the --check command option is used, after certain  sections
      of  tests,  the user will be prompted to press the return key in
      order to  continue.  This  option  disables  that  feature,  and
      rkhunter will run until all the tests have completed.
      If  this  option has not been given, and the user is prompted to
      press the return key, a  single  's'  character,  in  upper-  or
      lowercase,  may  be  given  followed by the return key. rkhunter
      will then continue the tests without prompting  the  user  again
      (as if this option had been given).


Ubuntu17.04 Hard disk repeatedly gets corrupted

From the comments...

Windows third-party drivers that allow the user to read/write to Ubuntu Ext2/3/4 partitions seem to corrupt the Ubuntu file system.

You have ext2fsd (Ext2Fsd-0.69.1035-09.14 ) installed. You should uninstall it, and your file system corruption problem should be solved.

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

boot to the GRUB menu
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

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
repeat the fsck command if there were errors
type reboot


Extract mail attachments and body from a .msg file

I think the following link will help you -

http://wiki.sabayon.org/index.php?title=HOWTO%3a_Read_Microsoft_Outlook_.MSG_files_in_Linux


Need Help Trying out ubuntu amd64 on Windows 10 PC

You may need to verify that you are using the correct architecture for your computer: You may have downloaded the wrong installation file.

Linux is powerful insofar as you have control over your PC, but it's also a "double-edged sword" in that this can be a hassle as we lack Microsoft/Apple doing things for us ...


Ubuntu 14.04.2 LTS (Trusty Tahr) 64b - cgminer-3.7.2-x86_64-built - Error -11: Building Program - ySIZE

I see you problem within the title to your question anything x86 is 32-bit and x86 should be nowhere near anything 64-bit and of amd64 so for some reason you have the two combined also i should note that most Notebook laptops are 32-bit so simply i believe you problem lies in the lack of research done before installation of Ubuntu...

Rule #1 of computer programming- Proper preparation = positive outcome...but Improper Preparation = negative outcome.

dont worry i made a few mistakes when i first learned computer programing even deleted Windows 7 and couldn't get Ubuntu on but i learned to research before i went running and now i would consider myself a great computer programmer so sadly you might have to re install the pre-set os and then reinstall Ubuntu.


install virtualbox-4.1 beside virtualbox-5

With regards to VirtualBox, I do not believe it is possible to keep two versions installed - each calls upon many things which are shared, and will have version conflicts with both installed.  (Including but not limited to virtual networking, which is utilized with the Virtual Machines to provide virtual network interfaces)

Some packages are capable of being installed simultaneously (for instance, multiple gcc compiler versions), as they each share different library sets that don't use the same resources.  There are some server packages that can be installed side by side (multiple PostgreSQL server versions, for example) as well.  However, I don't think VirtualBox is such a package.


Allow OptionSelector to Scroll While Expanded

Setting OptionSelector.currentlyExpanded instead of OptionSelector.expanded makes it expanded initially, but as soon as you select an option, it collapses.  This is closer to what I want, but not the most optimal solution.

OptionSelector {
    id: projectSelector
    property int projectIndex: 0
    width: pageLayout.width
    model: projects.count > 0 ? projects : emptyList

    containerHeight: pageLayout.height - itemHeight - units.gu(3)
    currentlyExpanded: true
}


How to reverse file ownership and permission settings

I fear, you can't reverse the change unless you saved the permission settings somewhere.

I recommend this, Install the same softwares in another machine, check the permissions there, copy them and use the same permissions for your machine to correct the errors.

Check this question : How can I get octal file permissions from command line?


Wifi Broadcam: ERROR (dkms apport) kernel not supported

Download from a mirror site: http://packages.ubuntu.com/wily/amd64/bcmwl-kernel-source/download  and install, this new version is compatible with the 3.16 kernel


Files are read-only after copying over samba

Configure create mask and directory mask in /etc/samba/smb.conf with the desired permissions.

from /etc/samba/smb.conf:

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0700

If you need more information there is a man page on smb.conf.

Regarding the values for the masking:

Permissions 700 means:

                 : The 1st octet are permissions for the owner.
        r w x  T : The 2nd octet are permissions for the group.
Owner:  4 2 1  7 : The 3rd octet are permissions for everyone else.
Group:  0 0 0  0 : For each octet, start at 0 and:
Other:  0 0 0  0 :  +4 for read permission.
                 :  +2 for write permission.
                 :  +1 for execute permission.

So you need to figure out want permissions you need for the owner,group and others. Add the digits for read, write and execute for owner,group and other.

755 would r,w,x for owner; r,x for group and others.
777 would be r,w,x for all 3.

edit:

If you have problems with locks check if there is a *ldb file (that's the lock file) with permissions lower than 770. If their is check these settings and their values (values and workgroup are arbitrary):

force group = workgroup
force create mode = 0770
force directory mode = 0770
force security mode = 0770
force directory security mode = 0770

Samba will then create the *ldb file with rwxrwx--- and be able to remove the locks.


It is in your directory, it is just a hidden file. If you are using Nautilus: find the folder, press Ctrl+H then simply delete it.


Screen tearing on laptop's built-in display

This issue can be fixed by updating nvidia drivers to nvidia-driver-455.
In case of Ubuntu 20.04 it should be done after updating kernel to 5.8 (You can check it by uname -r)


KDevelop is a good choice. You can also have a look at Qt Creator. If you want something lighter, have a look at Kate.

There is no mandatory development environment though: many KDE developers also use Vim, Emacs or XEmacs for example.


Ubuntu in VMware 12 freeze as soon as the USB deveice connection

I make it! I find the reason why Ubuntu in VMware will be freeze when I connect the USB deveices. I search the Vmware community and see that https://communities.vmware.com/thread/612551?q=freeze%20USB%20connection

Many in it said that it seemed to be with Win 10 1903 version. And I found that VMware 15.1 version has solved the compatibility issues. So I update the VMware and make it!

Oh dear!


How can I change the text colour  on my desktop icons?

I'm on Ubuntu 11.10, Unity 3D mode.
To change the color of desktop icon text, I used a text editor (gedit) to edit nautilus.css found here: usr/share/themes/Ambiance/gtk-3.0/apps/nautilus.css. The file I have has 81 lines with sections called desktop mode, browser window, and sidebar.

In the "desktop mode" section (lines 1-27), I edited lines 3, 12, and 20 affecting @bg_color, @fg_color, and @selected_fg_color, respectively. The color value can be expressed in words for standard colors such as black, green, red, yellow, etc. Or, you can use hex code in which case black would be #000000, for example.

In case the line numbers I cited don't match @bg_color, @fg_color, and @selected_fg_color,you may have to poke around a bit!

It's not easy for me to describe without knowing the correct technical terms but:

@bg_color affects the desktop icon text when not single- or double-clicked;
@fg_color affects the desktop icon text (i) when the icon is double-clicked (and the corresponding file is open), and even in some other situations which you'll have to figure out; and
@selected_fg_color affects the desktop icon text when the icon is single-clicked until something else is clicked.

I'm not really sure, but you may have to log out and log in to see the changes. Also, as suggested above, do back up the file before editing it.


I'm running Ubuntu 12.4 how do I move a window from the top right corner

Press Alt+Space and then you will see a context menu which will have the option to move the window. Use the keyboard navigation keys to move the window to wherever you want.


It's safe in a virtual machine. You can Select the option of Erase disk. Virtual Machine makes an environment to make an os feel like it is in a real machine. I myself have tried this with Ubuntu and no it will not use or harm the Linux Mint as it has its own partition


There's the usbguard and usbauth packages for USB ports.

There's the bolt and thunderbolt-tools packages for thunderbolt ports.

I know of nothing similar for HDMI.


What you are trying to do is impossible. When you try to switch user from the drop-down menu in the gear indicator on the menu bar, the system needs to authenticate the user's identity and right to perform the action. It does so in a way that ultimately relies on the information in /etc/passwd.

This fails since the user does not have a password set and returns you to the current user. You may be able to switch the user by different means that use a different internal process, but it may be easiest to set a password for the user in question.


This looks like a bug. If I enable seconds to be displayed with the hours and minutes using Tweak Tool, the hours and minutes are correct, but the seconds are now placed on the left (using 20:45:18 - H:M:S).

I would definitely file a bug report here: https://bugs.launchpad.net/ubuntu-gnome/+filebug

Since this is trivial to reproduce, I will triage it for you so a developer who knows a bit more about this can take a look.

There was one similar, but unrelated bug report I found upstream: Bug 743821 - change in the places of time slots on Arabic desktop.

Best guess at this point is that the time is being split by the colon, and the last piece is moved to the beginning and in your case, the minutes are moved to the beginning:

1 -> 20

2 -> 45

3 -> 18

Becomes

1 -> 18 (3)

2 -> 20 (1)

3 -> 45 (2)

And the really interesting thing is, the lock screen does not have this problem.


Easy! Just open up your dashboard and type in "Mouse". You should see a program called "Mouse and Touchpad". Click it, and you can adjust plenty of settings for your Mouse!


If it is the 64bit, then it is correct. Unless is says specifically amd64 MAC, then it is correct. here is a link for the 64bit if for whatever reason your computer is not letting you select that http://www.ubuntu.com/download/desktop/contribute/?version=14.04&architecture=amd64


Error when installing apache 2 on ubuntu 14.04

Try with running an update before the installation:

sudo apt-get update

This will get the information about package distributions.


You can fix the invalid property name if you import the Ubuntu.Components as Theming:

import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Components 0.1 as Theming

However, the fact that the editor shows it underlined with red does not mean it doesn't work - it works just fine even if it's red. I think this is related to the fact that all of the stuff is alpha/beta currently and not really that well integrated.


How can I empty Amarok's media collection?

Delete ~/.kde/share/apps/amarok/mysqle, as suggested in the Amarok manual:

  Database issues

  If the database is corrupt and this is preventing Amarok from starting, you can move the database to a backup location (or simply delete it). This will cause Amarok to rebuild the database from scratch. Move the $HOME/.kde/share/apps/amarok/mysqle folder to a backup location (such as $HOME/.kde/share/apps/amarok/mysqle~) and restart Amarok.


Used 10.04 to migrate to 12.04.

Once in 12.04 it was apparent that one of the DIMMs was faulty.

Replacement of DIMM fixed issue


Trying to remove leftover GPT Data using Fixparts

That's very odd; FixParts is presenting conflicting information -- the reference to a 0xEE partition indicates a GPT disk, which should cause FixParts to exit; but it's not exiting. Could you please post what FixParts shows when you type p at its menu, and also the output of sudo fdisk -l /dev/sda, sudo gdisk -l /dev/sda, and sudo parted /dev/sda print? (You can cut-and-paste this rather than post a screen shot, but please add four spaces to the start of each line to keep it properly formatted.) This information will help me figure out what's going on. (Incidentally, I'm the author of FixParts.)


The libicu60 is ONLY available in Ubuntu 18.04. It's not available in any releases before nor after.

You can try getting the 18.04 package from http://packages.ubuntu.com and installing it locally, but there is no guarantee that it will work.

To install a package that you downloaded, use sudo apt install /path/to/package.deb. (Obviously, you must provide the path and the package name)


Unable to resize LVM partition just after Ubuntu install with 'use lvm' option

Here is a few bits of information I gathered regarding resizing LVM2 partitions based on my personal experience.

First things first: G-Parted (currently version 16 / July 2013) is unable to extend or shrink LVM2 partitions... Just forget G-Parted at the time being.
To date, the only GUI application able to resize LVM2 partition is "system-config-lvm" (sudo apt-get install system-config-lvm) but for some reason, I haven't been able to get much from it.
Alternatively, it is possible to resize LVM2 partitions by using the appropriate command lines. More here > http://www.howtogeek.com/howto/40702/how-to-manage-and-use-lvm-logical-volume-management-in-ubuntu/ and there > http://www.tcpdump.com/kb/os/linux/lvm-resizing-guide/all-pages.html
I am personally a fan of G-Parted, the usual fast & easy trick. I hope the next version will be able to resize LVM2 partitions all graphically. But in the meantime, the best thing I always do, and I really mean it, is NOT to install new Linux boxes with LVM2; but rather with Ext3 or Ext4 instead. This choice is given in the middle of the install process: just avoid doing the "OK / Next / Next" thing mindlessly as LVM2 will be picked up as the default partition system ^^ it is far better customizing the formatting method. So let's keep say 1024 Mb for the Swap Partition, and assign 10GB or more to the /dev/sda1 partition (the Ext3/4 one), on which "/" is the Mount Point.

This way, you may be able to use G-parted later on it if needed, with no limitation of any kind.

Edit 1 : if you desperately need to free some disk space on your FileSystem partition ASAP, logon your linux and type the following command : "du -sh *", which will display a list of all the directories and their size. This will help you identify the biggest folders at a glance and maybe move or remove static data.

Edit 2 : Latest news from the G-Parted Team (dated 2nd sept. 2013) : "

To resize LVM2 PV partitions, the volume must be deactivated.  To do this, select the menu option "Partition --> Deactivate".  When the LVM2 PV partition is deactivated, then the resize/move menu option will be enabled.

Since Logical Volume Management is not simply a file system, there are serious repercussions to changing the volume group name or UUID.  Also problems will occur if the LVM2 PV is copied.  That is why these operations are not supported for LVM2 PV."


Casting from Chrome to Chromecast is now native function, you don't need any plugins. Just open options menu on the right and choose "Cast...". After click I can see both of my network Chromecasts (including Chromecast Audio).


NetworkManager sets nameserver to 127.0.1.1

The following resolved to problem:

sudo dpkg-reconfigure resolvconf

Now  we /etc/resolv.conf contains this:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.

nameserver 127.0.0.53
search fritz.box


Run a GUI app at Ubuntu via cron and via PuTTY from Windows

It is possible but you will have to fiddle a while. You need x forwarding with vnc,  to allow disconnect and reconnect.

https://unix.stackexchange.com/questions/10597/reattach-to-lost-x11-session


mp3 support on Xubuntu 20.04 / guaydeque

About gmusicbrowser - it was removed from the repositories after Ubuntu 18.04 LTS, but you can still install it by manual package download:

cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gmusicbrowser/gmusicbrowser_1.1.15~ds0-1_all.deb
sudo apt-get install ./gmusicbrowser_1.1.15~ds0-1_all.deb

I have just tested it with 3000+ tracks library on Ubuntu 20.04 LTS.

As far I know Guayadeque is not available in the official repositories, but exists in the author's PPA.
So you can ask author about formats support in the latest builds.
On my system MP3s are played normally from Guayadeque 0.4.6.r2140.b08bddd~focal-1.
Also make sure that you really have installed xubuntu-restricted-addons / ubuntu-restricted-addons packages with all codecs.


You've not actually lost any space.

What you're seeing is "Advertised Space" vs "Actual Space".

This is a very simplified explanation:

All data is stored in binary (called a bit), 8x bits = a Byte.  This is basic binary mathematics, or Base 2.

Hard drives are advertised with space based on Base 10 mathematics (the kind we use every day for normal calculations).

Because humans don't think in Base 2 mathematics, manufacturers create advertising using the standard Base 10 mathematics, as we can all understand it clearly.

In conclusion, your drive is advertised as 2Tb, but in Base 2 mathematics, your drive actually holds 1,862.65Gb.

For the most part, it was a marketing decision.

Further Reading: http://www.ussscctv.com/harddrivesizecapacitiescalculator.aspx


Tar permissions transfer across machines

Only if Server A : root and Server B : root, and Server A : user1 and Server B : user1 have the same UIDs (the 3rd field in the /etc/passwd entry)

tar does NOT store the username, just the UID. UIDs are converted to usernames locally, for the convenience of humans.


I want to write a Shell program for my Laptop battery

You're looking for the program that handles the desktop notifications... I'm not sure if it's the same on every desktop, but on XFCE it's notify-send - a program to send desktop notifications from the package libnotify-bin. It's a dependency of xubuntu-desktop, ubuntu-gnome-desktop, ubuntu-desktop, mythtv-frontend, so it sounds fairly universal.

It's handy for anything like new mail notifications, sensor changes (temp, fan, voltage), monitor log files for "segfault" or interesting hardware changes, weather alerts... sky's the limit. Anything a bash shell script (or process) can do, this can help.

Does that command/program work for you?

OR/AND there's also other programs for displaying dialogs from shell scripts, and giving info back to the shell script too. Probably overkill for your info-only purpose, and may use basic boxy windows, not the nice desktop notifications timed windows.

My XFCE (Linux Mint) comes with zenity- Display graphical dialog boxes from shell scripts already installed. It lets you ask questions and pass the answers back to your script, as in yes, no, cancel (1,2,3), even a few text characters... There's also:

yad - Yet Another Dialog - dialogs for shell "a fork of Zenity with many improvements"
ssft - Shell Scripts Frontend Tool but it may not have been updated since 2009

FYI, you could add a quick sound using play from the sox package ("Swiss army knife of sound processing"), best command line tool I've found to just play a sound file quickly. vlc plays sounds too, but is big & complicated & didn't sound as good (clicks, delayed a second, noticeable for a quick "bell" sound)


How to upgrade a "minimal" install of 18.04 to a "minimal" install of 18.10?

First of all I can't understand the trade-off of upgrading LTS to non-LTS.
LTS releases are highly recommended for real work. The non-LTS's 9 months support cycle is too short. Upgrading to non-LTS will result in 4 unneeded upgrades (18.04 LTS → 18.10 → 19.04 → 19.10 → 20.04 LTS) to next LTS.

TL;DR: but Ubuntu MATE upgrades normally with do-release-upgrade.

Below is a table for comparison for Ubuntu MATE:

|             Name           | Packages | max - min | upg.min - clean min |
|----------------------------+----------+-----------+---------------------|
| clean min UM 18.04.1       |  1678    |           |                     |
| upg.min UM 18.04.1 → 18.10 |  1715    |           |                     |
| max UM 18.04.1             |  1857    |    179    |                     |
| clean min UM 18.10         |  1598    |           |         117         |
| max UM 18.10               |  1826    |    228    |                     |

Legend:

clean min UM 18.04.1 - clean installation of minimal Ubuntu MATE 18.04.1;
upg.min UM 18.04.1 → 18.10 - clean installation of minimal Ubuntu MATE 18.04.1, upgraded to 18.10 with do-release-upgrade;
max UM 18.04.1 - clean installation of normal Ubuntu MATE 18.04.1;
clean min UM 18.10 - clean installation of minimal Ubuntu MATE 18.10;
max UM 18.10 - clean installation of normal Ubuntu MATE 18.10.

The result: yes, number of installed packages differ by 117 packages. But if I compare the list of packages from clean 18.10 and upgraded - they differ mostly by the libraries. No heavy packages were installed. You can see the diff.


Increase the priority of the package in the Ubuntu repositories:

Edit /etc/apt/preferences.d/apache2

sudo nano /etc/apt/preferences.d/apache2

Add the following configuration

Package: *apache2*
Pin: release o=ubuntu
Pin-Priority: 1000

Check

% apt-cache policy apache2
apache2:
  Installed: 2.4.12-2ubuntu2
  Candidate: 2.4.12-2ubuntu2
  Package pin: 2.4.12-2ubuntu2
  Version table:
     2.4.16-4+deb.sury.org~wily+4 1000
        500 http://ppa.launchpad.net/ondrej/php5/ubuntu/ wily/main i386 Packages
 *** 2.4.12-2ubuntu2 1000
        500 http://archive.ubuntu.com/ubuntu/ wily/main i386 Packages
        100 /var/lib/dpkg/status


Tor Browser 10 fixes Bug 33906: Fix Tor-Launcher issues for Firefox 75.

Tor Browser (torbrowser-launcher) is available in the default Ubuntu repositories in Ubuntu 16.04 and later. torbrowser-launcher handles
downloading the most recent version of Tor Browser Bundle for you, in your language and for your architecture. After installing Tor Browser, it can be launched by searching for tor in the Dash and clicking the Tor Browser icon. The Tor Browser Launcher Settings app is also installed along with Tor Browser.

Unfortunately the Tor Browser developers change their signing key that is used to install Tor Browser at periodic intervals which makes the torbrowser-launcher package from the default Ubuntu repositories not work because it is not as up-to-date as the current version of Tor Browser.
These are the instructions from the official Tor Browser User Manual in case the Ubuntu torbrowser-launcher package hasn't updated the gpg key that is required to install Tor Browser. When I updated the Tor Browser Developers signing key I noticed that the key that I updated will expire in less than one year.

Navigate to the Tor Browser download page.

Download the GNU/Linux .tar.xz file

(Recommended) Verify the file's signature. The steps for verifying the file's signature are shown below.

When the download is complete, extract the archive with the command tar -xf [TB archive] or with the Archive Manager.

Navigate to the newly extracted Tor Browser directory. Right click on start-tor-browser.desktop, open Properties and change the permission to Allow executing file as program by clicking the checkbox. Double-click the icon to start up Tor Browser for the first time.

Alternatively, from inside the Tor Browser directory, you can also start from the command line by running:
 ./start-tor-browser

How to verify Tor Browser's signature
Fetching the Tor Developers key
The Tor Browser team signs Tor Browser releases. Import the Tor Browser Developers signing key (0xEF6E286DDA85EA2A4BA7DE684E2C6E8793298290):
gpg --auto-key-locate nodefault,wkd --locate-keys torbrowser@torproject.org

This should show you something like:
gpg: key 4E2C6E8793298290: public key "Tor Browser Developers (signing key) <torbrowser@torproject.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
pub   rsa4096 2014-12-15 [C] [expires: 2020-08-24]
      EF6E286DDA85EA2A4BA7DE684E2C6E8793298290
uid           [ unknown] Tor Browser Developers (signing key) <torbrowser@torproject.org>
sub   rsa4096 2018-05-26 [S] [expires: 2020-09-12]

After importing the key, you can save it to a file (identifying it by fingerprint here):
gpg --output ./tor.keyring --export 0xEF6E286DDA85EA2A4BA7DE684E2C6E8793298290

Verifying the signature
To verify the signature of the package you downloaded, you will need to download the corresponding ".asc" signature file as well as the installer file itself, and verify it with a command that asks GnuPG to verify the file that you downloaded.
The example below assumes that you downloaded these two files to your Downloads folder.
gpgv --keyring ./tor.keyring ~/Downloads/tor-browser-linux64-9.0_en-US.tar.xz{.asc,}

The result of the command should produce something like this:
gpgv: Signature made 07/08/19 04:03:49 Pacific Daylight Time
gpgv:                using RSA key EB774491D9FF06E2
gpgv: Good signature from "Tor Browser Developers (signing key) <torbrowser@torproject.org>"


I quite like F-Spot + UFRAW for organising photos and processing them but I also use Darktable for when I get bored of UFRAW.


How to configure an Ubuntu virtual server and VMWare ESXi5 the way VMWare would be able to shut it down properly?

sudo apt-get install open-vm-tools

solved the problem.

Seems like installing VMware tools from VMware repositories as desctibed here could help as well.


Youtube video Downloader Plugin how to install?

Firefox extensions can be searched for and downloaded from https://addons.mozilla.org/ regardless of your operating system.

Browser extensions are distributed by the browser's makers themselves (in this case Mozilla Foundation), and can be installed directly from inside the browser, as their code is written in JavaScript and other browser-specific languages, so they have nothing to do with the platform.

Now, since I'm already writing an answer...

I personally use YouTube Video and Audio Downloader. The main appeals are that it integrates with my download manager (DownThemAll), offers a lot of download options, is easy to use, is featured, and unlike another extension I tried, it doesn't advertise for websites nor have user tracking "features".

But just like any type of extension, a brief search in Mozilla's extensions website reveals many more options. It's not that I don't like them, it's that I didn't bother trying each one of them, since the aforementioned extension settled the deal for me. YMMV.

Since you are new to extensions, you are advised to follow some security guidelines before installing any new extension that you discover. For starters, those marked as "Featured" are most probably safe. If they're not featured, at least check their popularity / number of users (if it's in the order of hundreds of thousands or millions, then it's probably in the green; absolutely avoid the ones which still have like a few hundred users, as they haven't been tested enough to verify their legitimacy), and check the ratings and reviews for anyone mentioning malware, "a scandal", or something like that.

If not sure about some extension, it wouldn't hurt to paste its name in Google along with keywords like "virus", "trojan", "scandal", etc., which reveals any discussions about this matter, or ask an experienced person about it. If all fails, it might be better to do without it. Likely a dozen other popular alternatives exist.

Now, for a more Ubuntu-related answer: You can also install the package youtube-dl (using apt-get install youtube-dl). It's not really a browser extension, but a separate command-line program for downloading videos from YouTube (and a ton more websites). Usage is quite simple: Just copy the URL, open a terminal, type youtube-dl and paste the URL after it. Options may be used to specify the desired format and quality, among many other things. Try youtube-dl --help and man youtube-dl for detailed help.

Hope that helps.


Do this. It configures a new wine 32bit prefix and installs it.

env WINEARCH=win32 WINEPREFIX=~/.wine32 winetricks dotnet45


Keyboard mapping is incorrect until USB keyboard is plugged in

The comment from Alex pointed me in the right  direction. My keyboard does not have a numlock key, and for some reason numlock breaks the keyboard layout.

sudo apt-get install numlockx

I then set the following command to run at startup.

numlockx off


Ubuntu 19.04 encrypted full disk install partition scheme

Your operating system is installed on disk sda.

This disk has three partitions: sda1, sda2, and sda3.

sda1 and sda2 are partitions that are needed for the system to boot up.  sda1 is your EFI system partition (ESP).  sda2 contains /boot.  The data on these partitions is not encrypted.

sda3 is an encrypted partition.  Once you have supplied your password to unlock this partition, there are two more partitions inside: your root (/) partition and also a swap partition.  All of the contents of sda3 are encrypted.


Is there a messenger service implementing something like Windows's "net send"?

I think empathy is the right tool for sending messages around ubuntu network users without any additional infrastructure and configuration. I mean the People Nearby.

try to open empathy from dash and tell me if you liked it


`updatedb` cannot open file `mlocate.db`

I realize this is an old post, but I do not see this solution elsewhere.

The problem is not the mlocate.db file, as you'd expect.  It is the permissions on the mlocate executable.  This will fix the issue:

sudo chmod 2755 /usr/bin/mlocate

This is the source of the trouble:

$ ls -lathr /usr/bin/mlocate
-rwxr-xr-x 1 root mlocate 39K Nov 17  2014 /usr/bin/mlocate

You need a setuid bit on the group to allow you to run the locate command without sudo.  Once it is fixed, your ls output should look like this:

$ ls -lathr /usr/bin/mlocate
-rwxr-sr-x 1 root mlocate 39K Nov 17  2014 /usr/bin/mlocate

Simply doing a chmod as some others recommend against the db file itself will only work until the next time someone runs updatedb.  Then the permissions will be reset.


I can't change screen resolution on esprimo mobile V5535 with UBUNTU 16.04LTS

Sadly you can't, unless you write the driver yourself.

XORG and UBUNTU have decided not to support the sis671 graphics card that is in your laptop.

From what I have read you could rebuild the driver from code on github until 12.04/12.10. From 14.04 and onwards that is no longer possible.


How can I make peristent changes on a USB ubuntu install?

You cannot do this with a LiveCD

CDs, for the most part, are designed to be read-only once they've been written to. Even rewritable CDs typically require CD writing software, because most other applications will see the disk as a standard CD and assume it's read-only. This means that you cannot save your printer setup to the LiveCD.

You can install Ubuntu to a USB thumb drive

It's actually deceptively easy - take a standard live CD and boot to it with your USB drive plugged in, and install Ubuntu to the USB drive like you would to any other hard drive (be sure that everything points to the USB drive). You can then boot to it by selecting the USB drive in the boot device selection menu when your computer boots up. This method does format the drive to Ext4, so Windows can no longer read it, but it makes the entire drive available to the Ubuntu install, just as though it were on a regular hard drive.

Your printer driver issues aren't all related to your LiveCD issues

A 500 error is an error coming from the server that Ubuntu is trying to download from. It means that something is wrong with the server itself. There's nothing you can do about that error from that download mirror for that particular driver, except wait a while (anywhere from a few minutes to a couple of days) and see if it comes back. However, the LaserJet 1000 series is old enough that you should have a generic driver option available, which should allow you to install it. If that option isn't available, or doesn't work, then simply download it directly from the HPLIP website (it also includes instructions on installing it manually).

Saving the settings, of course, will require a writable medium, which I've addressed above.


Surface Pro 18.04 dosn't suspend to memory

I was able to

activate suspend

by changing the display manager to lightdm by running:

sudo apt install lightdm

and choosing lightdm or if lightdm is already installed

sudo dpkg-reconfigure gdm3

and choosing lightdm

To activate hibernation

Enable resume

find UUID of swap partition

sudo blkid | grep swap

open a new file

sudo -H gedit /etc/initramfs-tools/conf.d/resume

and add

RESUME=UUID=<<UUID of swap partition>>

edited /etc/default/grub

sudo -H gedit /etc/default/grub

and added the UUID to the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=<UUID of swap partition>"

example

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=4b1c58e1-5bc5-4bce-a64e-e195cb38d01f"

Enable hibernate entry in main menu:

Run

sudo -H gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

copy paste the following contents:

Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes

[Enable hibernate to be run via cron]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=yes```

To disable Hibernate: change yes to no in the last lines of each entry.

Finally

sudo depmod -a
sudo update-initramfs -u```

and reboot


Xubuntu 18.04 tiny cursor on hi-dpi screen

In Settings -> Mouse and Touchpad, choose tab Theme.


Ubuntu 17.04 - Malayalam fonts are too small

I assume this is an issue with the default font used to render malayalam, 'Meera' in my case. You can check with LANG=ml_IN fc-match in the terminal.
To change the default font used system-wide:

Create a file : ~.config/fontconfig/conf.d/50-my-malayalam.conf
Add the following in the contents:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Malayalam (ml) -->
<match target="font">
        <test name="lang" compare="contains">
                <string>ml</string>
        </test>
        <alias>
                <family>sans-serif</family>
                <prefer>
                        <family>Noto Sans Malayalam</family>
                </prefer>
        </alias>
</match>

<match target="font">
        <test name="lang" compare="contains">
                <string>ml</string>
        </test>
        <alias>
                <family>serif</family>
                <prefer>
                        <family>Rachana</family>
                </prefer>
        </alias>
</match>
<!-- Malayalam (ml) ends -->
</fontconfig>

  I used 'Noto Sans Malayalam' and 'rachana' here, replace it with a font you like.

source: https://thottingal.in/blog/2018/08/10/how-to-customize-malayalam-fonts-in-linux/

How i fixed this in Firefox only:
Preferences > Fonts & Colors > Set default font as 'Noto Sans Malayalam' (This one increased the font size in my case; Tested on Facebook and YouTube comments).


How do get grid workspaces in ubuntu 20.10?

The GNOME Shell extension "Workspace Matrix" adds this feature. I've got it installed here on Ubuntu 20.10 and it works well.


EDIT: You need to add it to apt:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DD969F10A7E2BCD2

First and incorrect answer:

They changed the GPG key they use to sign packages. Try running this in a terminal:

gpg --recv-keys DD969F10A7E2BCD2


I got your problem now. Try this few steps:

Go to Home folder, then show all hidden files using Ctrl+H.
Browse to .config/gwibber.
Delete gwibber.sqlite.
Now try to connect your Facebook.


Selecting ubuntu 12.04 restarts my HP 540 laptop

I had the same problem with my Toshiba laptop. After some investigation, it seems that the "wake up on lid being open" is enabled and, of course, the lid is open just after it shuts down. A workround for this is:

sudo echo LID > /proc/acpi/wakeup

This can be put in /etc/rc.local


Will my laptop work with Ubuntu 12.04 LTS?

Ubuntu System Requirements:

700 MHz processor (about Intel Celeron or better)
512 MiB RAM (system memory)
5 GB of hard-drive space (or USB stick, memory card or external drive but see LiveCD         for an alternative approach)
VGA capable of 1024x768 screen resolution
Either a CD/DVD drive or a USB port for the installer media
Internet access is helpful

Yes, Ubuntu 12.04 should work with your PC.

Try burning the Ubuntu disk with a well known cd creator such as Daemon Tools or Alcohol 120%. Ensure that CD/DVD is on top of your Boot Order list in your BIOS.

Here's a link to documentation where you can read more about system requirements:
https://help.ubuntu.com/community/Installation/SystemRequirements


Does the video player software I need for work exist?

You can try mpv. Shift+i will toggle codecs info and you can get timecodes in milliseconds if you really want it with editing config file (or just left clicking on current time). Shift+O will add timings in OSD.
example in mpv


How to configure Unity with shortcuts to "printer", "display devices" and "system control panel " in the panel?

No, you can't configure the session indicator in 12.10 to include that items.


Try use pulse audio to check if the headphones are automatically selected as output, and if they are not, you can manually change it. Its really easy to use and simple to understand.

Program here:

Pulse Audio


UBUNTU stuck at shutdown after connecting to external screen

This had everything to do with the vga external screen. My system works well without the connection to it. Shutsdown properly. But once connected, it does not get disconnected. And for the first time in so many days I had a proper shutdown.

Attempting to reset all monitors as shown here, allows a proper shutdown:

xrandr -s 0

I guess I will have to do it everytime I want to shutdown if I am connected to an external monitor.


Can I access files directly after backup with Deja Dup?

Deja Dup backs up using duplicity as a back end. Accordingly, your backup is stored in tar-formatted files. Thus, the files you backed up are not visible or directly accessible using a file manager. One must restore the files using Deja Dup, or on the lower end, using the duplicity command line tool. Since tar is used, it is also possible to directly use the universal tar tool to extract files from the appropriate tar archive in the backup location.


PIA vpn Kill switch stopping internet traffic

It is very likely that the PIA VPN kill switch is implemented using iptables. The first thing you can do is check which rules there are in iptables. For that you can use either:

sudo iptables -L

sudo iptables -S.

Both will display all the rules in place, only in a different format.

If you can understand the data displayed and want to remove only a few rules, you can do that with sudo iptables -D. You can combine that command with the results of sudo iptables -S. For example, one of the lines of the output will be: -A INPUT -p udp -j REJECT. To remove that you take everything, remove the -A bit, which meant append when adding a rule, and remove with:

sudo iptables -D INPUT -p udp -j REJECT.

Now, if you are a bit confused about the rules added by PIA (I don't have it, so can't be more specific), you can remove all the iptables rules (have you added any in the past? ufw also works by adding iptables rules), and then let PIA add them back. The way to do this is running both sudo iptables -F and sudo iptables -X to remove and flush all rules. If it still fails and there are still rules left, you can try adding sudo iptables -t nat -F and sudo iptables -t mangle -F. If you can't connect to the internet at all after removing the rules, you might want to add default rules to accept traffic:

sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT

It is important to point out that iptables separates the ipv4 rules from ipv6rules, so you want to check and if necessary run the commands with both iptablesand ip6tables.

After all that, and logging back in to your VPN and choosing to reapply the killswitch restart the computer and check the rules, and see if they are somewhat similar to what they were before. It is also good advice to make sure the killswitch is working at all before you rely on it. There is also plenty of other tutorials on iptables if you want to mess with it yourself.


How to install Wine application on particular disk

That's pretty easy.

All apps installed through Wine go to the /home/$USER/.wine/ directory. So the solution to your problem is to make a symbolic link (something like a shortcut in Windows) to point to somewhere on your 1 TB drive.

Take a look below and craft it to your needs:

ln -s /media/your-disk  /home/$USER/.wine

You can also do it by mouse right clicking on the destination folder and selecting "Make Link". Then just move it to your home dir and rename to .wine. That's all.

EDIT:
as @muru noticed, an alternative way is to change the WINEPREFIX environmental variable. In this approach simply add to the .bashrc line:

export WINEPREFIX=/media/your-disk/wine-apps


Found it! I enabled "xinerama" in nvidia-settings, and everything it working the way it's supposed to!


Editing a Latex file after installing TexLive

Short answer: you should add TeXWorks explicitily, as in

sudo apt-get install texworks

You need to have the "universe" repository enabled.

Long one: read my comment and browse the relevant question in TeX.SE.


How can I upgrade to Ubuntu 12.04.4 LTS from 12.04 LTS

If you have applied all updates, through partial upgrade or not, you should have 12.04.4. Marc already said the commands you need:

sudo apt-get update # will fetch you new packages info
sudo apt-get dist-upgrade # will agressively upgrade all packages

After that, just remove old kernels and packages' config through Synaptic or Aptitude.


You are trying to run the following Python script:

#!/usr/bin/env python
import wx
app = wx.App(False)
frame = wx.Frame(None, wx.ID_ANY, "Hello World")
frame.Show(True)
app.MainLoop()

The Python used for the REPL is not the same as the version of Python the script is being run in ( python ). In particular I was able to duplicate the error in your question with python3 as follows:

python3
>>> import wx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'wx'

The solution was to run the script in Python 2.x, which in my Ubuntu 16.04 is Python 2.7.12.


Get Unity style notifications in Gnome Classic?

in unity, the packages libnotify4, notify-bin and notification-daemon manage the notifications

for reference, you send a notification with notify-send (message text). There's a load of options in the man page for stuff like titles and icons too. It's neat.


Can't enable Google Music Plugin on Rhythmbox 3.00 ubuntu 13.10 - python error

Even if you change the loader as you did and get it to load the plugin, it will not work. Rhythmbox 3.x is using Python 3.4, and most plugins written for Rhythmbox 2.99 or earlier are written in python2.

At least in the case of the Google Play music plugin here, it relies on Simon Weber's Unofficial Google Music API. gmusicapi relies on at least one library (mutagen, namely, there may be more) that is written for python2 only without any "official" python3 version, so for the time being, gmusicapi, and in turn this plugin, will run under python2 only without hacking the modules yourself.

I opened an issue on Simon's repo on Github asking about this; waiting on a response.