Install the alsa-tools-gui package (13.10) to get the hdajackretask command:

sudo apt-get install alsa-tools-gui

hdajackretask will allow you to completely ignore the broken headphones output:

Visit omgubuntu if you need to install it for older releases.


Timeout for password input for user login

As far as how long you have to wait after closing your machine, I'm not aware of any value you can change for that. It's technically considered logging out which always requires a password to get back in. You can disable the password requirement completely by following the instructions in this link Disable password login requirement

Dont think this what you meant, but to set the timeout for how often you need to enter your sudo password from the last time you entered it, here is a link with instructions [Change sudo password timeout][1] [1]: https://itsfoss.com/change-sudo-password-timeout-ubuntu/


As far as i can see the output of lspci | grep VGA, You have the Optimus technology laptop

Bumblebee aims to provide support for NVIDIA Optimus laptops for GNU/Linux distributions. Using Bumblebee, you can use your NVIDIA card for rendering graphics which will be displayed using the Intel card.

So you need to install bumblebee to get Nvidia Working on Ubuntu, Just copy paste the following commands one by one in terminal

sudo add-apt-repository ppa:bumblebee/stable -y
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates -y
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic -y
sudo apt-get upgrade -y

after that

 sudo nano /etc/bumblebee/bumblebee.conf

edit the following Driver=

Driver=nvidia

Reboot and you can run the application from Nvidia

 optirun firefox    # As i am running Firefox in this example

S O U R C E


Need to move my whole lubuntu encrypted session to another drive

You can try this
http://clonezilla.org/
I'm not sure that it can be done without the intervention of an external disk that acts as an intermediary


First install gnome-media as shown below-

sudo apt-get install gnome-media

then use -

gstreamer-properties

Change the default Input ,Close the gstreamer-properties and connect your mic to check.

hope it will work..if did not try-

sudo apt-get update
sudo apt-get install pavucontrol

after installing it , open it and go to configuration tab and select analog Stero Duplex under Input device tab press mute button to unmute, or let it be if already unmuted..


Why am I getting 'file not found' when trying to run CEWE Fotobuch / Kruidvat fotoservice on my 64 bit system?

Please take a look at Gilles' answer to this question for the background on this issue: "No such file" when running a 32-bit program on a 64-bit system

The fastest solution is this:

sudo apt-get install ia32-libs-multiarch

I have informed CEWE about this issue and hopefully they will improve their installation script in the future so the user is notified beforehand when these libraries are missing.


Accidently deletetd .ecryptfs folder - cant log in anympre

Did you record your randomly generated mount passphrase?  It would be 16 or 32 characters of [0-9a-f].  If you have that long, random passphrase, it's relatively easy to recover.  If you don't have that, there's no chance of recovery.

If you have your randomly generated mount passphrase, you'll recreate your .ecryptfs directory.

mkdir $HOME/.ecryptfs
ecryptfs-add-passphrase --fnek
[enter your long, random mount passphrase]
keyctl list @u
[add the two key fingerprints to $HOME/.ecryptfs/Private.sig]
ecryptfs-wrap-passphrase $HOME/.ecryptfs/wrapped-passphrase
echo $HOME > $HOME/.ecryptfs/Private.mnt


What are the best Recovery softwares for ubuntu 12.04?

There are some paid recovery tools such as R-studio for linux  would be perfect


Can't join wifi ad hoc network created by MyWi

Ad-Hoc network in Ubuntu are a little tricky. I had to set one up myself and it took me a while to realize how silly the solution is!

The problem is, even after you declare the connection ad-hoc, the ad-hoc infrastructure is not selected by NM. (come to think of it, maybe I should file a bug against that)

The solution is to right-click on the nm-applet, select Modifying connexions (translating from french, so option name might differ a little bit here), and go to the Wireless tab.
Click on your Connection's name and click edit.
Now, make sure the Mode is set to Ad hoc and the IPv4 and IPv6 tabs methods are set to "local link only"

after this, it should work. If not, let us know!


Had that problem yesterday. What I did was change my .conkyrc file.

In window specifications:

own_window_type normal to own_window_type desktop

And everything worked. Hope you fix yours.


First: 3GB is the maximum usable memory the 32-bit version can handle

There are exceptions, such as 32 bit Ubuntu with PAE. But in general if you have 4GB or more RAM you should use a 64 bit operating system.

Second: There can be only one operating system running your PC at any one time.

Think of this as having one car and two drivers. Only one driver can drive the car at a time. You have to stop the car if you want to switch drivers. Similarly, you have to stop the PC if you want to switch between Windows and Ubuntu.

An Example of 1 car and 2 drivers continued

Suppose there are two drivers A and B in a car. Driver A is driving, on a road with speed limit of 40. But driver A can only drive at 30. Driver A is like 32 bit Windows (or 32 bit (non-PAE) Ubuntu). There is unused speed of 10. The driver B, who is sitting in the same car cannot use that unused speed. You have to stop the car and let Driver B drive. When you let Driver B drive, whether she will use the full speed of 40 or not will depend on what kind of driver she is.

In conclusion: Can Ubuntu use all my 4GB of RAM?

Yes! All currently supported 32 bit versions of Ubuntu are PAE enabled. So irrespective of the 32 bit or 64 bit versions of Ubuntu you choose, it will support all of your 4GB RAM. See What are the differences between 32-bit and 64-bit, and which should I choose? for more on which Ubuntu you should choose.
I hope this helps


How to change phpmyadmin language to english?

on the first page of phpMyAdmin, you should have a dropdown list named Sprache - Language in which you will be able to select English.

If not, maybe your phpMyAdmin is not installed with all languages built-in, then you should re-install with Synaptic or APT...


My gnome terminal keep opening new window

Try this command to reset gnome-terminal,

gconftool --recursive-unset /apps/gnome-terminal

Or

press ctrl+alt+F1,to enter into virtual console and run the below commands to reinstall gnome-terminal.

sudo apt-get install gnome-terminal
sudo shutdown -r now


How do I mount my main internal ext4 drive on a fresh install of Xubuntu 12.04? (Acer c7 320GB HDD)

For a partition or internal hard disk to be accessible in ubuntu it has to be 'mounted'. You can mount partitions manually or automatically.
To mount them manually:

Find out the name of the partition you want to mount. I find it easy to use gparted
sudo apt-get install gparted). You can run sudo gparted in the commandline. Be careful not to mess anything up. Then you write down the name of the partition you want to mount (for instance sda2).

Now you need to create a mounting point. That is a point in your filesystem at which the partition will be accessible. It is not actually at that point, it just accessible at that point. You can create a directory for this. For instance, mkdir /media/extra_drive. Usually you would make this in the media directory which is also where usb sticks will be mounted. Media is usually used for mounts for a particular user (not systemwide, then you'd use mnt).

Now you can mount the partition using
  sudo mount /dev/sda2 /media/extra_drive

This can be unmounted manually using sudo umount /media/extra_drive. The mount is not boot-persistent and you will have to do it on each reboot.

Mounting it on every boot is not handy, therefore you should mount it automatically. To mount it automatically on each boot you have to add it to your fstab file. There is a nice wiki for that, so I will not repeat all the info here unless it is unclear. Essentially you find the UUID (ls -al /dev/disk/by-uuid/) and then do the following:

Duplicate your fstab file:
 sudo cp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)

Compare the two files to confirm the backup matches the original:
 cmp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)

Open the original fstab in a text editor:
 gksu gedit /etc/fstab

and add these lines into it
    # (identifier)  (location, eg sda5)   (format, eg ext3 or ext4)      (some settings)
    UUID=????????   /media/dir_of_your_choice    ext4          defaults       0       2

Whether you mount it manually or automatically, the partition as such does not add itself to your home folder (which will thus remain low on space). So you will have to put files on that partition manually if you want to be able to work on as you do now. Even better would be to give your /home directory its own partition. For more info on that (which requires a bit of reading and work), cf. this nice wiki page. Depending on the size of your home partition your +-300GB partition would make for a nice home folder. The biggest advantage of your home folder is that you reinstall ubuntu without losing your files (if you know what you are doing and can do the install such that the home partition is untouched).


Ubuntu not being displayed in the windows boot manager

Try with Boot Repair!

1 - Live CD

First, you'll need to boot from a Ubuntu Live CD.

2 - Install the Grub bootloader

To install the Grub bootloader, follow these steps.

Open Terminal from the Live CD, and run the following commands:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair

After a few seconds, Boot Repair's main window will open.

Click on Recommended repair.

You're done!

Reboot to test everything out.

If everything went well, you should be up and running now.

Once Ubuntu is loaded, you may open Terminal and issue the following command to automatically detect Windows and add it to Grub's menu, if it isn't there already.

sudo update-grub

Glossary

  Bootloader: a piece of code that runs before any operating system is running. A bootloader is used to boot other operating
  systems. Each operating system usually has its own bootloader.

  GRUB (Grand Unified Bootloader): a bootloader package developed to support multiple operating systems and allow the user to select among them during boot-up. It is Ubuntu's default bootloader.

  Command, command line: the traditional Unix environment , where you type commands to tell the computer what to do.

  Terminal: an application that allows you to access the command line. Open it by hitting its keyboard shortcut, Ctrl Alt T.


apt - install old versions of databases, e.g. mysql

Ubuntu snapshots a specific version of PostgreSQL that is then supported throughout the lifetime of that Ubuntu version.
Other versions of PostgreSQL are available through 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.
To use the apt repository, follow these steps:
Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

Import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

Update the package lists:
sudo apt-get update

Install the latest version of PostgreSQL, if you want a specific version, use 'postgresql-12' or similar instead of 'postgresql':
sudo apt-get -y install postgresql

My-sql aside from being owned by Oracle, it does not have those facilities, it should use Debian packages and there is no guarantee that it will work, plus it could break your system.
Also, if you want to try, here is a guide:
https://stackoverflow.com/questions/62382968/install-mysql-5-6-on-ubuntu-20-04


Can I run "live" Ubuntu from a USB drive?

Many people have problems with Universal USB Installer.

Try UNetbootin, it runs in Windows, or better yet try usb-creator, (Startup disk creator), the Live USB installer that comes with the Live CD.

Usb-creator.exe, (for Windows), can be extracted from iso's prior to 12.04.


Here's discussion on official forums: http://newsgroup.xnview.com/viewtopic.php?f=62&t=33933 XNviewMP is not working because of missing gstreamer0.10 packages. Proceed with caution if you'll try installing packages from another Ubuntu version.

On a side note, to run xnview from command line use xnview command, not xnviewmp.


Can we install ubuntu 12.04 from downloaded iso file using wubi installer?

Yes, and the answer is given on https://wiki.ubuntu.com/WubiGuide:

How do I install Wubi on a machine with no Internet connection?
Wubi also works with physical Ubuntu Desktop Live CDs. Wubi.exe is available in the root folder of the CD.
If you do not have a CD, try to find a computer with Internet access, and download both Wubi.exe and the required Desktop ISO from the same location (the release has to match):

For 12.10 use http://releases.ubuntu.com/quantal/
For 12.04 use http://releases.ubuntu.com/precise/
For 11.10 use http://releases.ubuntu.com/oneiric/
For 10.04 use http://releases.ubuntu.com/lucid/

Copy both files into the same folder on the machine with no Internet access and run the Wubi executable.

So 2 things you need to do:

download the ISO matching the wubi version;
put both into the same directory.


How would I install portable virtual box to a USB drive to run on any Linux (Ubuntu) Host

It is not possible to do this with VirtualBox on Linux. The reason is that the VirtualBox installer copies specific files to the host system to configure it:

/lib/udev/rules.d/60-virtualbox.rules
/lib/udev/rules.d/60-virtualbox-dkms.rules

It also installs kernel modules on the host system:

/lib/modules/3.14-1-amd64/updates/dkms/vboxdrv.ko
/lib/modules/3.14-1-amd64/updates/dkms/vboxnetadp.ko
/lib/modules/3.14-1-amd64/updates/dkms/vboxnetflt.ko
/lib/modules/3.14-1-amd64/updates/dkms/vboxpci.ko

You need to do a proper install so that the host gets udev and the kernel modules that it requires in order to run VirtualBox.


How do i completely uninstall tor? (and then install it?)

To remove the configuration files, re-install tor and polipo, then purge them (remove removes the application, but leaves the system configuration files.

sudo apt-get purge tor polipo

From the apt-get man page

purge

  purge is identical to remove except that packages are removed and
  purged (any configuration files are deleted too).


How to Overcome Partitions On Flash that can not be removed, as a result of using the software "Startup disk Creator"?

Open terminal and issue the following:

fdisk -l

Here you will be able to see your flash drive number. Let's assume it is sdX

Now again issue the following in terminal:

sudo dd if=/dev/zero  of=/dev/sdX

It will take some time to execute this command

Now issue the following:

sudo gparted

A window will open

From top right drop down menu select sdX

Click on device tab --> Create partition table --> gpt --> Apply

Right click on the grey bar below and select New partition --> fat32 --> OK --> Apply.

Close gparted and unmount the flash drive before pulling it out

That's it


Ubuntu automatically scans for new hardware. Check if you have connect the driver properly. Check if it is visible in the BIOS. If not then probably it is damaged.


Should I change my Python code if I upgrade my Ubuntu?

No, you should not stay on 11.04. It has been End of Life for support since October 2012. If you want any support at all, you need to upgrade, at least to 12.04 (which will be supported for three more years).

Also, even newer versions of of Ubuntu are including Python 3.x by default, with a goal of removing Python 2.x from the default install completely.

You may have issues with running your code under a newer version of Python 3.x, but should in general have no problems. You should also, as a developer, be prepared to deal with any such issues, regardless of what version of Ubuntu you are on. Any library you're using, or Python itself, could have a bug which your code depends on behaviorally, and if that bug is fixed, could cause your program to behave different from how you were expecting it to previously.


What I simply did, was to find out the working directory for the apache, on the config file. Simple as that.


When accessing localhost I get a file browser rather than the "It works!"

I've fixed it! I have no idea why or how, but in sites-enabled/000-default.conf, DocumentRoot was set to /var/www/html. I removed the /html and now everything is fine.

For reference, this is how it's set to work:

ServerAdmin webmaster@localhost
DocumentRoot /var/www


Mount external harddrive and one of its subfolders from fstab

the fstab entry would be:

/source/dir            /destination/dir    none  bind            0 0

or

/media/MyBook/Games/SteamData     /home/andreas/.local/share/Steam/   none  bind     0   0

be certain you have full perms to this folder, unless you want a r/o mount.


The monodevelop mailing list would be good place to start:

http://lists.ximian.com/mailman/listinfo/monodevelop-list

Also you could try looking at open bugs and if you cant find one that matches then raise one. The bug tracker is here:

https://bugzilla.xamarin.com/


Why is a restart only required on some updates?

Whenever you open or execute a file in Windows, Windows locks the file in place (this is a simplification, but usually true.) You may have encountered those annoying errors where you can't delete a file because another process has an exclusive lock on it. This is why whenever Windows has to update itself you need a reboot for it to take effect. Windows will queue up file replacement and deletion activities for when it next boots up (when nothing has a lock on anything.)

On the other hand, Linux has a mechanism wherein it's not the file that is locked but the underlying data on the disk that is. This may seem a trivial differentiation but it means that the file's record in the filesystem's table of contents can be deleted without disturbing any program that already has the file open. So you can delete a file while it is still executing or otherwise in use and it will continue to exist on disk as long as some process has an open handle for it even though its entry in the file table is gone. This allows Linux to replace a program completely while it's still running and then simply restart the program or just wait for the process to exit naturally. Once the old instance is killed, the old files will no longer exist at all and the new files will have taken up residence in their entries in the file table.

So, as long as a particular file is not special in some way (like, for example, the kernel image file or files belonging similarly low-level systems) the updater can usually update-in-place like this. I'm sure there are special cases and situations where this would not be a good idea, but for most cases it's fine.

As for why OS X does it, that "just in case" theory sounds plausible.


Execute following command in terminal :

sudo apt-get install unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller

Then extract any rar file.

Edit : rar is provided in the multiverse component, so you must enable that repository.


Updating OpenGL support (Ubuntu 16.04 LTS, Mesa 12.0.6)

I faced a similar problem, although my hardware supports higher versions it does not update.
If you want to run programs with a higher version of openGL you can try using the below command as found in the forum
MESA_GL_VERSION_OVERRIDE=4.5 MESA_GLSL_VERSION_OVERRIDE=450 <programname>


How to skip the downloading update while the terminal is downloading?

If you dont want to download update of any package , you can use temporary holding and unholding command.

hold : it will stop updating a specific package.
unhold : removes hold for a package which is being hold.

usage:

For example I dont want to update my firefox because i have to download 20MB which is high data for my 236kbps modem so I dont want to update it now . so i will put it in hold.

sudo apt-mark hold firefox

so except firefox all packages will download and installs.

If I want to update the firefox again

then simply

sudo apt-mark unhold firefox


Brother MFC-8860DN is not working after upgrade to 11.10

This has worked for me though I am in a VM environment with Ubuntu 11.10.

Use HP LaserJet 4050 or 4050n as the printer driver.

While in Printing
Add printer
Find Network Printer: enter URL for Brother MFC-8860DN under "Host". You can obtain the URL from the menu on the printer.
Select "Find"

Ubuntu will populate some printer choices under "Network Printer".
Select "Brother HP Laserjet 4050 (Brother-8860DN)"
Ubuntu will fill in "Location" with "BROTHER-8860DN"
and "Queue" with "BINARY_P1"
Select "Forward"
Ubuntu will search for printer drivers

Choose Driver
Select "Printer from database"
Choose "HP", "Forward"
Scroll down Models side of screen to "LaserJet 4050n" (for network printer)
Select "HP Laserjet 4050 Series Postscript [en] (recommended)"
Select "Forward"

"Installable Options" are next.
For my situation, I selected "Duplex Unit", Printer Disk: "Hard Disk", and Total Memory: "4-7 MB"
Select "Forward"

Describe Printer
Printer name:"Brother8860DN_HP-LaserJet-4050n"
Description (optional):"Brother8860DN_HP-LaserJet-4050n"
Location (optional): "BROTHER-8860DN_HP-LaserJet4050n"
Select "Apply"

"Would you like to print a test page?"
Select "Print test page"
"Test page submitted"
The light on your printer should be blinking....
with a test page not far behind.

MG Myers, MBA


How to install Java and which version of it?

You can have various JDK side-by-side in the same machine. This is needed because sometimes you are on a 64-bit machine but need to run a specific 32-bit stuff. Also there are others JVM availables, some (open source): JamVM, Cacao, JatoVM. They are usually made for a specific niche and unfortunately are not complete as the reference JVM (from Sun/Oracle). The official JVM (from Oracle/Sun), due to it's completeness, is your best bet in almost all occasions.

Since you pretend to develop Android applications I highly recommend using the Sun (Oracle) 1.7 i386 JDK. Why? Not only it's the official JVM but due to android not having a 64-bit SDK.

This link provides  a step-by-step installation of the Sun (Oracle) 1.7 JDK:

How do I install Oracle Java JDK 7?
How do I install Java?


What to do when it says "unable to locate package" policykit

A general suggestion:

Whenever you are in such situation, try the following command to locate the package:

apt-cache search packagename

And after that try to install the packgae which reads as packagename-dev or libpackage name

sudo apt-get install packagename-dev


I figured out how to use Bhodi's file manager to see my mounted drive with Ubuntu installed.  /etc/xll shows that LightDM is my default DM, so now I don't know why my screen is black.


You can use OS X even when the usb-stick is connected. It will not delete OS X
When you have the usb-stick connected you only need to hold Shift key when your system starts the boot process and in the menu that will appear select the USB. You can return to OS X rebooting the computer.


Getting extra software in every live boot session?

Yes, you can create a persistent live Ubuntu system. Such a system is basically a live system, but with the addition, that there is a file named casper-rw or better partition labeled casper-rw, where the system stores program packages that you install and personal files that you save.

You can use mkusb to create a persistent live system of Ubuntu in a USB stick (or an SSD or even in a hard disk drive if you wish). It helps if it is a fast USB stick with at least 16 GB (but it is possible in smaller sticks too).

help.ubuntu.com/community/mkusb

help.ubuntu.com/community/mkusb/persistent

help.ubuntu.com/community/Installation/FromUSBStick#Notes_about_speed


Best office suite supporting Hebrew for Ubuntu

Note: I use Libreoffice Suite.

Make sure that the Hebrew keyboard layout is added.

If you don't have Libreoffice installed, the you can installed it, by looking at this Answer.

Open Libreoffice Writer, and click on tools --> Options

Then make the changes shown in the image below.  Once done click OK.  You may want to download and install the Open Source Unicode Hebrew Font Pack.

כאן אתה הולך .

Click on Right-To-Left, and start typing.


I am not sure but you could give this a try:

Boot into Windows 8.1 and disable the fast boot feature which puts Windows into hibernate. This 'may' fix it.

Also make sure if your installation is a separate partition (eg: has GRUB bootloader?)  If you installed the software based version of Ubuntu (eg: installed in Windows) then it is just running Windows and emulating it. Hope this helps!


How do I install the X.org Radeon/ATI driver?

Go into your terminal and type:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get install xserver-xorg-video-ati

If you want the stable releases (it would still help if you said what version of ubuntu you're running.):

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get install xserver-xorg-video-ati

To build from git
If you are feeling adventurous, follow these instructions and they should work for you.


I cannot remove my broken package which I didn't install

The error tells you  that dotnet-sdk depends on dotnet-runtime.

sudo apt remove dotnet-sdk

should prevent that error in the future.


The best option would be to investigate the problem you have in getting MTP to work in 14.04. If you could write to it on 12.04 you should also be able to use all the releases after 12.04 to use MTP.  I have (up to today) not have any problem using MTP with both my Cowon J3 and my S5 (all mount out of the box for several releases).

Your problem might be fixable in 14.04. If you are interested try to figure out what the problem is by examining log files (/var/log/). tail -f /var/log/syslog for instance and then mount the walkman, try to add files and check the log for error messages.

Besides that:

  Can I use old ubuntu mtp system?

Maybe yes. Probably: no. 1 snag you might run into: as of 13.10 MTP support is native in Ubuntu so lots of packages created have become invalid and will conflict with older versions of MTP. From the link you added: there have been changes to UDEV rules so I am inclined to lean towards no...

The usual method to install software from an older release is to either (not just MTP; this is a general method. Warning: it can mess up your system if you keep adding software from older releases, fixing the problem in the current release is the better way to go)...

use the PPA for that older release (if there is one)
download the debian file from that older release (and the dependencies involved) from Launchpad and use the command line tool dpkg -i to install all those debian files.


Why Linux doesn't provide break-point Recovery to restore system to previous safe State?

Linux is probably one of the most hardware agnostic operative system out there, it will simply run, no matter where, with little issues.

To run that same desktop environment that you (probably used) to post this question on another computer you would need to backup the files composing your system, restore them to another computer and program the boot loader used to be able to use it.

This is not Windows (or similar) where a simple mess up with your graphics driver or another device driver will send you to a complete re-install.

A restore point in time is a simple backup of the files on your system, nothing else, make backups to a safe source and if something goes wrong the restore process will be a simple file copy from one point to the other, and nothing else. If you use a backup tool that calculates the diff between backups your "points-in-time" will be as small as the differences between backup points, or just use a file-system with snapshot abilities to create on-the-fly automatic file system snapshots (ZFS, BTRFS and some others do that already and are supported in Linux).

Something else that is really easy to implement is a backup on apt-get, just add a run hook in /etc/apt/apt.conf.d/99bup containing:

DPkg::Post-Invoke {"/bin/bash /foo_script"; };

where foo_script creates a backup of all your (selected) files to a safe place after installing packages (restore those files to a previsous version if the packages you installed are not wanted). May I recommend something like this?

Each one of us, as users and administrators, have their favourite way of doing this. If you are finding yourself overwhelm with options, the backup tool built-in Ubuntu's release will do just fine until you figure out what you actually need.

(On the risk of answering this with a question)
Why do you need more than a backup tool if your system is that easy to understand?


Firstly the machine must have a static IP address or some sort of DDNS setup running so that the address will be static and won't change. Once that is confirmed you can follow the instructions below.

Open Remmina and select the New Connection icon.
Then enter:

Name: the name for the connection
Server: the ip/dyn-dns address of the machine
Username: the username of the user account you would like to use to access the machine.
Password: the password for the account

Click Save
Select the connection and then click the Connect icon.


Ubuntu find and replace in files of current directory recursively

The shell is likely consuming one of the escapes:

$ echo sed "s/Magento\\Module/MyCompany\\Module/g"
sed s/Magento\Module/MyCompany\Module/g

So either add an additional escape or single-quote the entire expression:

$ echo sed "s/Magento\\\Module/MyCompany\\\Module/g"
sed s/Magento\\Module/MyCompany\\Module/g

$ echo sed 's/Magento\\Module/MyCompany\\Module/g'
sed s/Magento\\Module/MyCompany\\Module/g

Testing it:

$ echo 'every occurrence of "Magento\Module"' | sed 's/Magento\\Module/MyCompany\\Module/g'
every occurrence of "MyCompany\Module"


Yes, I have done this when I moved from Mythbuntu 14.04 to Mythbuntu 16.04. I had the database backup (mythconverg-1317-20160708233351.sql.gz, automaticaly generated by the Mythbuntu 14.04 system) and the recordings on one drive, and then I installed Mythbuntu 16.04 on a different drive. I mounted the recordings in the same place in the filesystem as before. I stopped the backend and restored the database onto the Mythbuntu 16.04 system from the backup from the Mythbuntu 14.04 system.

When I launched the frontend it displayed this message:
Warning: MythTV wants to upgrade your database, for the Music schema, from 1020 to 1024

I consented. After that it all worked fine, except when I went into Mythweb, when I got an error
!!NoTrans: SQL Error: Expression #3 of SELECT list is not in GROUP BY clause ...

As described at https://code.mythtv.org/trac/ticket/12713 I added the following lines to the end of /etc/mysql/conf.d/mythtv.cnf and it solved the problem:

max_connections=100
sql_mode=NO_ENGINE_SUBSTITUTION

Vaughan


Custom apache error logs for the directories inside the document root

According this post https://stackoverflow.com/questions/10395043/apache-server-multiple-directories-different-error-logs

It is not doable for the error log as ErrorLog directive works only in server config or virtual host context.
It is possible to separate AccessLog with features provided by setenvif module.

Alternatively one can try something like that:

ErrorLog "|/usr/bin/tee -a  ${APACHE_LOG_DIR}/error.log /var/www/apachelogs/error.txt"

Just put more sophisticated filtering script in between and may be you manage to achieve what you need.

Some nitpicking, why would you need error log in the directory with code ? Imho it is a security threat.


A friend of mine had the same problem... here is the link we used to solve it...

https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo

Here is th

Using any editor, create a file /etc/grub.d/01_915resolution , add in lines

echo insmod 915resolution
echo 915resolution 58 1366 768 32
Make the file executable

sudo chmod a+x /etc/grub.d/01_915resolution

Next, edit /etc/default/grub, assign value 1366x768x32 to variables GRUB_GFXMODE and GRUB_GFXPAYLOAD_LINUX:

GRUB_GFXPAYLOAD_LINUX=1366x768x32
Then update grub.

sudo update-grub


How do I make Thunderbird 17.0 stop notifying me with junk mail?

Edit->Preferences->Security Tab->

There is a checkbox:

"Mark messages determined to be Junk as read"


rsync not working between NTFS/FAT and EXT

Javier Rivera's answer works, but it takes quite long for rsync to check and compare all file checksums. I found that using the following option worked better for me:

rsync -rtv --modify-window=1 /source /dest

The --modify-window=1 switch allows for a variance of ±1s on the timestamps. With this option enabled, timestamp comparison will be more lenient and look over the minuscule time differences between NTFS/FAT and Unix file systems.

Source (ger): http://www.kai-hildebrandt.de/tutorials/rsync.html

P.S.: Please be aware that DST will cause full file transfers twice a year. See here for further details and possible solutions.


This is controlled by histsizesetfn() in zsh's Src/params.c:

void
histsizesetfn(UNUSED(Param pm), zlong v)
{
    if ((histsiz = v) < 1)
        histsiz = 1;
    resizehistents();
}

so the value of HISTSIZE can never been set to a value less than 1.


Ubuntu on virtualbox no internet connection

Probably, it is an issue with the default route. You don't need the Gateway and DNS for host-only network!
You may check it using: ip route show
Remove them from the configuration, so default Gateway goes to interface with NAT/DHCP configuration. Also DNS which does not seems to affect, but keep reasonable clean configuration.


Ubuntu- notebook overheating fan1 = 0 RPM speed

You might try upgrading to the latest microcode for your processor, as described here: Link

Since you have an intel processor, the following command should upgrade the microcode for your cpu:

sudo apt-get install microcode.ctl intel-microcode

Also, try upgrading your bios to the latest version. This might be tricky, since many manufacturers do only provide Windows executables with the drivers. Since you have Windows installed alongside Ubuntu, use that to run the Bios update. Download the appropriate executables from Lenovo and run them under Windows.


Lubuntu 18.10, what the heck is this screen?

I never thought of it being an actual screen saver.  It looks like one called "distort".

I don't understand how a screen saver that looks like the effects of a GPU overheating  with a flame on top of a monitor was chosen as a good screen saver.  Oh well, they don't consult me on these things :)


Line 7 needs "trusty" in it, like this:

deb http://archive.canonical.com/ubuntu trusty partner


How to increase the size of window buttons on Ubuntu?

Go to System Settings > Displays > Scale for menu and title bars


How to check if a cron job is running or not?

15 * * * * /usr/bin/php /home/rizwan/PHP-workspace/mgstore/testcron.php >> /home/rizwan/cron.out

this was working .but i have one php script,for adding customers from magento to ERP,when i run script manually,it asks for authorization,after accepting it creates customers into ERP from magento,I need whenever i added customer in magento after 5 or 10 mins this script should run and add the customer to ERP.how this can be done ?,If any one have any idea,please help ?


ISC DHCP Different DNS Server For Different Client OS

According to the answer I get from muru, I found this workaround out:

For find out the vender-class-identifier from the clients, you need to put this on top from the dhcpd.conf:

set vendor-string = option vendor-class-identifier;

After restarting the dhcp service and a new connection to the dhcp server from a client you can use cat /var/lib/dhcp/dhcpd.leases to see which is your class. For example Windows XP has: "MSFT 5.0"

Now you can clarify the DNS Servers for the Clients like this, inside a subnet block:

# DNS for Windows XP
if substring (option vendor-class-identifier, 0, 9) = "MSFT 5.0"
{
    option domain-name-servers 192.168.0.1;
}
# DNS for all others
else
{
    option domain-name-servers 192.168.2.254, 8.8.8.8;
}

I am not sure that we need the 0, 9 variable, maybe not.


Youtube-dl: How to download video with no audio?

youtube-dl is a small command-line program to download videos from YouTube.com and other sites that don't provide direct links to the videos served. To install youtrube-dl in all currently supported versions of Ubuntu run the following command:

sudo apt install youtube-dl

In addition to serving normally formatted videos with an embedded audio track, YouTube also serves videos with the audio and video tracks separated into two separate files. To download the video only without the audio run the following command to list all available video formats.

youtube-dl -F <video-URL>

Replace <video-URL> with the URL of the video that you want to download. Select a video format that says video only after it. In the following example I use the format code 160 which downloads mp4 video only, no audio.

youtube-dl -f 160 <video-URL>

Format code 160 is a low quality video, but there are usually several higher quality formats available for YouTube videos.


How to configure stock Ubuntu Wayland gestures (18.10)

https://extensions.gnome.org/extension/1253/extended-gestures/
Works on Pop Os Wayland...tried other things (not fusuma) but the problem was xdtools was not supported in wayland
The extension worked perfectly though.


If you want to remove the swap partition, you should first try by commenting its entry in /etc/fstab, then reboot.

As for the long boot time, it may be that one of your filesystems has been damaged. As soon as your system is up, run the appropriate fsck.* command for each of the file systems. If it reports errors, it will usually recommend how to fix them.

(Btw, running a system without swap is perfectly normal. I'm doing this since several years – these days, common machines have enough RAM.)


Flash update fails and now it doesnt work only youtube videos work

Install the Flash Aid add-on on firefox and follow the wizard instructions.Restart the browser and the problem should probably be fixed. At least that was the solution for me.


Install Kivy on Ubuntu 18.04. not working

Install openssl package.
sudo apt install openssl

This should do it.If not fixed and if you are using python3 then you may install:
sudo apt install python3-pip

Then try this:
pip3 install setuptools vurtualenv


WiFi stopped working after Ubuntu 16.04 updates

Perhaps you miss to update wireless driver.

Run these two commands for wifi to work in Ubuntu.

wget http://archive.ubuntu.com/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.3_amd64.deb
sudo dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.3_amd64.deb


Try doing this instead:

tv = self.builder.get_object('textview')
font = pango.FontDescription('Ubuntu 16')
tv.modify_font(font)


If you have held down the power button for 10 seconds or longer or unplug for 10 seconds or longer then remove the battery and reinstall?  Bob


problem downloading origin EA please help

Seems you didn't installing wine...

Install wine, just right-click, hover Open With..., and choose Wine.


Building nginx on Ubuntu with cache_purge module - help?

You can use easyengine which install nginx(with cache purge module) php5-fpm mysql and postfix on one go.

Alternatively you can try ppa:rtcamp/nginx which install nginx with cache purge module.

sudo add-apt-repository -y ppa:rtcamp/nginx
sudo apt-get update
sudo apt-get install nginx-custom


Possibly this is a grub-boot-loader issue.

Visit the Ubuntu Wiki to read about Grub.

Hopefully your problem will be solved with this tool : Boot-Repair. Follow the 2nd option.


Limiting the perfomance of a graphics card to prevent an error

From your description it sounds like the graphics card is getting too hot when it is working hard and the driver is shutting it down to protect it. Are you monitoring the temperature of your graphics card using lm-sensor and p-sensor?

It would be worth checking that the graphics card heatsink and fan are not clogged with dust and that the graphics card fan has not failed.

To reduce the load on the graphics card from a game you can
1 reduce the resolution
2 limit the FPS (frames per second)
3 reduce the detail
4 turn off effects like shadows
5 turn off antialiasing

Most games have options for doing this.


Are dependencies installed when I install an app from Ubuntu Software?

apt is short for Advanced Packaging Tool, the package manager for Debian-based distributions. Ubuntu Software installs the same dependencies that would be installed if you installed the same package with apt from the terminal. rpm (RPM Package Manager, originally Red Hat Package Manager) is a different package manager from apt, so the dependency packages that are installed by rpm are not compatible with apt.


Running eBay TurboLister 2 on Ubuntu 14.04.1 with Wine?

Seeing how all recent releases of TurboLister 2 are listed with a 'garbage' rating on WineHQ it's highly unlikely that you will be able to get it to work on your machine.


How to save GtkTerm output into file automatically

I have the answer/solution for you.

Firstly, apologies for my bad english level, i'll try to do my best.

I was looking for the same thing that you but i cant find anything. I made a script to do this automatically and it works. Here's the code:

#!/usr/bin/python
# get lines of text from serial port, save them to a file

from __future__ import print_function
import serial, io

addr  = '/dev/ttyUSB0'   # serial port to read data from
baud  = 9600             # baud rate for serial port
fname = '/home/gps.dat'  # log file to save data in
fmode = 'a'              # log file mode = append

with serial.Serial(addr,9600) as pt, open(fname,fmode as outf:
   spb = io.TextIOWrapper(io.BufferedRWPair(pt,pt,1),
     encoding='ascii', errors='ignore', newline='\r',line_buffering=True)
   spb.readline()  # throw away first line; likely to start mid-sentence (incomplete)
 while (1):
     x = spb.readline() # read one line of text from serial port
     print (x,end='')   #echo line of text on-screen
     outf.write(x)      #write line of text to file
     outf.flush()       #make sure it actually gets written out

This is the script that runs the communication. In my case, i have a GPS connect via RS-232 (DB-9) to USB cable to Raspberry PI (Raspbian SO), for that i use ttyUSB0.

In the line that says fname, you can indicate the destiny and name for the file to want capture the info.

If you want to use .dat or .txt format its no problem.

And one thing more. I dont use the gtkterm for this (i was crazy with this terminal).

I think this is so easy way for your quest, and i hope it will be usefully.


how to copy lines at a particular intervals in vim editor

There's no direct way to step over lines AFAICT, but you can use a macro to append to a register:

Clear some register (say, a) and go to the starting line (say, line 10):
:let @a = '' | 10<cr>

(<cr> indicating Enter)

Start a macro (say in the b register) - qb, append the current line to the first register - "Ayy, move n (say 10) lines down - 10j, call for executing the macro recursively - @b and save it - q:
qb"Ayy10j@bq

Then execute the macro:
@b

You can then switch to another buffer and paste the contents of register a with "ap.


VMware 12.1 software installation error in Ubuntu 16.04 - Several Modules must be complied and loaded into kernel

woahh!!

VMware application started working fine after uninstalling earlier version (VMware-Workstation-Full-12.1.0-3272444.x86_64) with out keeping configs, Then installing Workstation 12 pro.


As per Which command do you execute to open Gnome Disk Utility (Disks)?, you need to install gnome-disk-utility and then execute:

gnome-disks

Alternatively, in Xfce you can go to Settings > Disks.


How can I create a temporary sandbox to compile from source?

I'd suggest looking into arkose . As it's manpage  says, it is a "tool to make sandboxing desktop application easy," but it can also be used for purposes like yours.

It's author, Stéphane Graber described how he uses it to keep from having to install many dependencies while doing development on his blog:

  Since I last reinstalled my laptop, I try to keep my usually insanely
  long list of installed packages to a bare minimum. I’d usually have
  hundreds if not thousands of libraries and development packages as
  these are required by a bunch of packages I maintain or code I work
  on.

  To achieve this and still be as productive as before (if not more),
  I’m using arkose quite a lot to generate temporary dev/build
  environment that are wiped as soon as I close the shell. This helps
  maintain the number of extra libraries to a minimum, avoiding
  situations where something mysteriously works fine on my laptop but
  not on another machine and avoids the maintenance needed when dealing
  with chroots.

Run, arkose -h in a terminal. This will create a container that has direct access to your home directory but uses copy-on-write for the rest of the file-system. When you're done, exit the shell and all your changes outside of /home (i.e. all the packages you installed) will be thrown away.


Is it possible to open an Ubuntu app from HTML?

Yes, you can by adding a new protocol handler in your Ubuntu. The following method will show you how to register the process of opening an application as app://[application_name] protocol handler in Ubuntu.

1. Create application launcher script

In a terminal run:

mkdir -p bin

This command will make a bin directory in your home folder if you don't already have it.
After run:

gedit ~/bin/open_app.sh

This will create the new file open_app.sh in gedit.
Copy and paste the following script in the new created file:

#!/bin/bash

if [[ "$1" != "app://" ]]; then
    app=${1#app://}
    nohup "$app" &>/dev/null &
else
    nohup gnome-terminal &>/dev/null &
fi

Save the file and close it.
Go back into terminal and run:

chmod +x ~/bin/open_app.sh

to grant execute access for the script.

2. Create .desktop file for application launcher

Now you must create a .desktop launcher for the above script, and tell Ubuntu to use this launcher as app:// protocol handler. Create /usr/share/applications/appurl.desktop file using the following command:

sudo -H gedit /usr/share/applications/appurl.desktop

and add the following content:

[Desktop Entry]
Name=TerminalURL
Exec=/home/radu/bin/open_app.sh %u
Type=Application
NoDisplay=true
Categories=System;
MimeType=x-scheme-handler/app;

Save the file and close it.

3. Refresh mime types database

In the file above, the line MimeType=x-scheme-handler/app; register app:// scheme handler, but to make it work we should update mime types database cache by executing command:

sudo update-desktop-database

4. Test from terminal

Now everything should work. To test that it works from terminal, run for example this command:

xdg-open 'app://gedit'

4. Test from browser using HTML

You can test from browser by using for example the following HTML web page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <title>Open some applications</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />

Open some applications in Ubuntu from HTML

Open terminal: app://
        (equivalent with: app://gnome-terminal)

Open Nautilus: app://nautilus

Open Chromium: app://chromium-browser

Open Ubuntu Software Center: app://software-center
        (equivalent with: apt://)

...and so on

The result:


Tracking the popularity of a package over time?

http://popcon2.net/

  Popcon² is a website for viewing and analyzing Ubuntu's user-submitted package statistics.

Update: The site is down since 2014. There is a copy on archive.org.


You could just fire up top and press M to sort processes by memory usage.

You could run ps vax | sort -k8n to show processes sorted by the resident stack usage (ps v switches to a memory-centric view).

You could enable snmp and configure mrtg to periodically poll the system, generating a graph of how much memory is used by the processes you care about.

You could resign yourself to the knowledge that Ruby, for all its benefits, is terrible at managing memory in long-running processes. :)

You could combine a more complicated ps command line (look at the man page, and read about the -o option) and rrdtool with a shell script to generate historical statistics on the processes you care about.

Etc.


How do I install openjdk 7 on Ubuntu 16.10?

I followed I am Dev's answer with the addition of downloading other dependencies manually. In total I had to download following packages off the Debian page:

libjpeg62-turbo_1.5.1-2_amd64.deb
openjdk-7-jre-headless_7u121-2.6.8-2_amd64.deb
openjdk-7-jre_7u121-2.6.8-2_amd64.deb
openjdk-7-jdk_7u121-2.6.8-2_amd64.deb

And install them with

sudo dpkg -i <deb file>

Whenever the installation complains about missing dependencies, you can run

sudo apt-get install -f

to resolve them unless the dependency is one of the downloaded packages. In that case, you just have to install those first with dpkg.

Should you already have a Java version installed, you can select the OpenJDK binaries using

sudo update-alternatives --config java
sudo update-alternatives --config javac


GUI actions often have no external replament

There is no general possibility to "listen" to GUI actions, and translate them directly to cli equivalents. On Linux nor on Windows.
In general only a small selection of the GUI actions is to be controlled by cli at all. The developer of the software in question will make a decision on what actions he or she thinks are useful to make available as a command "from outside", and we depend on API's, or those cli options the developer made available. Most of these commands, you will usually find in the man pages of an application. type:

man <application>

This does not mean we are totally helpless if no command is available, and to be able to control many things on our box, we have numerous tools, to at least "listen" to what happens, and replace the processes inside the application by our own designed commands, or our own scripted solutions.

What tool is useful in your case totally depends on the action you'd like to simulate. We'd need an additional question to point you in the right direction.

One (random, but extremely useful in many situations) option I'd like to mention though:

If we open a terminal, and run:

dconf watch /

We can exactly see what dconf/gsettings keys the (any) application is playing with, and we can directly run gsettings commands to do the same. With this command, we can practically see all actions different tweak tools apply.

Furthermore, many script languages have very powerful tools to control both hardware and edit files directly, but as mentioned, we'd need a more specific example to help you further with that.

Note

Another option you have, if you are more or less familiar with coding, is to look into the source code of the application. Especially interpreted languages will often be quite readable, to give you useful information.


Install Ubuntu on a Macbook Pro using EFI instead of rEFIt or similar

I have a Macbook Pro 8,2 and when booting EFI mode instead of with CSM (BIOS), video is completely unusuable, even text only boot has a totally scrambled screen. I haven't found a work around for this yet, so I'm depending on the CSM.

As for rEFIt, it doesn't necessarily require CSM. It's just adept at finding various bootloaders for linux and Windows and Mac OS and presenting them to the user. Those bootloaders can use EFI mode, or may depend on BIOS which on EFI systems means the use of a CSM to "emulate" BIOS. I found rEFIt to be a little confusing as to what's going on and showed numerous options for booting only two of which would work. So I just restored to Apple's EFI startup disk selection menu using option key at startup.

What I've learned so far is that Apple's startup disk menu (option key @ startup) will produce a hard disk icon labeled "Windows" if the follow three things are true about that hard drive: it contains a hybrid MBR rather than a pure GPT, one of the partitions in the MBR has the boot flag set and it doesn't matter which one as long as it is not the protective MBR entry, the first 440 bytes of the disk (LBA 0) contains bootloader code.

In this case, you get a Windows labeled hard disk icon when using option key at startup and when choosing this option it basically means boot into Grub2. From there you can choose whatever your Grub2 configuration has found which could be one or more Linux and Windows installations on that disk.


How do I replace a cable modem router with my own server as DHCP?

Okay, I just found out about the dhcp-option in /etc/dnsmasq.conf:

interface=eth0
dhcp-option=3,192.168.0.2
dhcp-range=192.168.0.10,192.168.0.254,72

That solves the problem. Sorry to bother you. Hope it will help someone else, at least!


How do I get ISO to load in VirtualBox through Virtual Optical Disk

Well, nobody answered and in the few days following I figured it out.  My problem had all to do with the ISO.  I thought dd copied over all the contents on the USB but wasn't pulling some of the boot files for whatever reason.  I just searched again for an Win7 ISO and came across (https://www.pcsteps.com/45-download-windows-7-iso-legally-free-digital-river/).  I followed the steps to get the ISO, attached to my Controler IDE, and bam... Windows began installation.

VirtualBox was always functioning fine, it was just the dang ISO.  I learned a lot in the process!

For anyone hitting a roadblock and just can't get their Windows ISO to work, hopefully the URL above helps.

Good Luck!


ATI card (Radeon HD 5850) forced screensaver settings

Use Caffeine..on you Ubuntu. Read more from here.


can I increase root and other disk's size without formatting it

You sure can. Download gparted.
Boot off that and you can resize the partitions. When your done resizing and have applied your changes, boot into your linux kernel. Gparted only resizes physical volumes, so you'll then have to resize the logical volume and the file system. See examples below.

Extend the volume in LVS: lvextend -l 100%FREE /dev/vg1/root
Resize Filesystem: resize2fs /dev/sda5


Problems installing on terminal, I keep receiving a "E: sub-process /usr/bin/dpkg returned an error code (1)"

The resolve is sometimes not that easy, especially if apport itself is involved, here is the way I would approach it:

First as mentioned bring your apt list up to speed with:

sudo apt-get update

Now onto fixing the problem itself:

sudo apt-get install --reinstall apport
sudo apt-get -f install
sudo apt-get dist-upgrade

And if this is still not enough downloading the packages in question from packages.ubuntu.com and installing them with:

sudo dpkg -i <package-name>


Put terminal command into graphical icon

First create an icon for launcher by copying the png to shared location:

cd ~/Downloads/Scid vs PC/scid_vs_pc-4.16.1/icons
sudo cp scid.png /usr/share/pixmaps

Next, create desktop launcher file:

cd /usr/share/applications
sudo nano Scid-vs-PC.desktop

Contents for Launcher file:

[Desktop Entry]
Name=Scid vs. PC
Comment=Scid vs. PC ver 4.16.1 (07/2016)
Type=Application
Exec=/usr/local/bin/scid
Icon=/usr/share/pixmaps/scid.png
Terminal=false
Categories=Game

...and now I can see Scid vs. PC  in the dash search - works for 16.04


Ubuntu 17.10 Touchpad: two-finger-tap action

You likely need to re-implement your synaptics touchpad configuration for libinput. The Arch wiki has a great page on Libinput that explains how configure libinput, both as runtime for testing, and also for persistent configuration.


How to fix "package system is broken" after upgrading to 12.04?

Try these commands they will solve it:

 sudo apt-get install -f
 sudo apt-get update


A crude generic solution:

How to disable notification from network-manager.

dbus-monitor "interface='org.freedesktop.Notifications'"                \
| grep --line-buffered  'string "NetworkManager"'                       \
| sed -u -e  's/.*/killall notify-osd/g'                                \
| bash

Replace string "NetworkManager" with the desired RE to filter out messages.

To get an idea of what RE pattern match to look for run:
dbus-monitor "interface='org.freedesktop.Notifications'"
and look at the output while the notifications are popping-up.

Caveat:
killall notify-osd is non-discriminating and completely wipes the notification stack of any pending messages irregardless of whether NM is the notifying agent.

For details see:
How can I temporarily filter-out certain notification-bubbles coming from specific sources?

cross refs.:

How to disable notification from network-manager
How to empty the queue of pending notifications?
Is it possible to block NotifyOSD for one application?
filter messages to "notification area" applet
How can I customize/disable notification bubbles?


Why umask 555 is setting the file mods to "222" instead of "111"?

Short answer:

Because with a 5 you are removing the read (4) and executable (1) bit, so you end up with only write (2).

Explanation:

With 555 you are not setting default executable bit on.

It's wrong          =>          (6 - 5 = 1)

We got these mods:

4 = Read
2 = Write
1 = Executable

The only way that I can create a 5 is from 4 + 1, so 5 actually means:

   4 (Read) + 1  (Executable)   =    5

It means "remove" executable and read mods if they're are being set.

In other words, with umask 555 you are removing the read ( 4 ) and executable ( 1 ) bit from default file mode ( 6 ) which brings us to the ( 2 ), because in a 6 we only have a 4 and 2 to remove (not any 1):

6  =  4   +   2

You removal only effects the 4, so the file ends up with 222.

In binary

Think of it in binary:

1 -> 001
2 -> 010
3 -> 011
4 -> 100
5 -> 101
6 -> 110
7 -> 111

File default mode is 666 (110 110 110), and our umask value is 555 (101 101 101):

  Decimal title  ->         421 421 421
  666 in binary  ->         110 110 110
- 555 in binary  ->       - 101 101 101
                           _____________
                            010 010 010
                             2   2   2
                            -w- -w- -w-

See? we ended up to the -w-w-w-, or 222.


Overheating and not charging problem when I installed Ubuntu 20.04

After a constructive discussion with my IIIT Delhi colleagues. I found a solution that is:-

Ubuntu 20.04 takes GPU support by default for rendering and other works, So It installs GPU drivers at the installation itself. My computer has NVIDIA GPU which was being used every time. That was the root cause of overheating. So I Opened the NVIDIA driver NVIDIA X Server setting and select the PRIME Profile option and select the option NVIDIA On-Demand mode.
It supports Dynamic switching of NVIDIA GPU when required.
I am Using HP 0077tx machine with i5 8th generation with NVIDIA GPU support. But this is a generic solution for all kinds of machines and GPUs only you have to find the GPU on-demand mode for your GPU and it will work.
Now It reduced Power consumption and eliminate the problem of Overheating and not charging.

Upvote this solution if you found the solution helpful so other people can find it easy to overcome their problems too.


Package dependencies cannot be resolved in ubuntu 14.04

Go to ubuntu software center >> Edit >> Software Sources >> Download From >> Select United States After that restart your computer go to software center and type your softare name and install it.

OR ELSE

Try this

sudo apt-get autoclean

sudo dpkg --configure -a

sudo apt-get install -f

sudo apt-get -u dist-upgrade

sudo apt-get install wine -y

replace wine with your software name.


Switch between nvidia-current and nouveau without a reboot?

I now have two scripts that switch drivers, xorg.conf, take care of blacklisting and the libglx, so the answer is: yes, it is possible.

Blacklisting works with one file in /etc/modprobe.d/ containing either blacklist nvidia or blacklist nouveau. I also replaced /lib/nvidia-current/modprobe.conf with a dummy, else the nvidia driver would always create a link in /etc/modprobe.d/ that blacklists nouveau.

Switch to nouveau:

 #!/bin/bash
 stop gdm

 rmmod nvidia

 sed -i "s/nouveau/nvidia/" /etc/modprobe.d/blacklist-nvidia-nouveau.conf

 update-alternatives --set gl_conf /usr/lib/mesa/ld.so.conf
 ldconfig

 modprobe nouveau

 cp /etc/X11/xorg.conf{.nouveau,}

 start gdm

After executing that, I have nouveau running and a working console (nouveaufb).

Switch to nvidia:

#!/bin/bash
stop gdm

echo 0 > /sys/class/vtconsole/vtcon1/bind
rmmod nouveau
rmmod ttm
rmmod drm_kms_helper
rmmod drm

sed -i "s/nvidia/nouveau/" /etc/modprobe.d/blacklist-nvidia-nouveau.conf

update-alternatives --set gl_conf /usr/lib/nvidia-current/ld.so.conf
ldconfig

modprobe nvidia-current

cp /etc/X11/xorg.conf{.nvidia,}

start gdm

→ Nvidia driver is working, only problem: after unloading the nouveau driver, the console is unusable. I need a way to reset it or load another framebuffer, but since vesafb is compiled into the kernel I don't know what to do.


I wish I had an answer, but I can at least commiserate with you. I have an Envy 15 and am experiencing the same problem you are.

I was previously running 13.04 and did not experience this problem, so it seems new to 13.10.  I've tried everything you've tried, with no success. If I do find an answer, I'll come back here and let you know.


I am not able to install easy_install in my ubuntu

Open a terminal by pressing Ctrl+Alt+T and type the following:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-setuptools

Reasons behind the errors
Error1:

Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate

This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.

Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
Error2:

  apt-get upgrade

    E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
    E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

This means that you are not the root user.So we use sudo to execute it as root


All flavor of Ubuntu 15.04 goes to sleep on login screen?

You can try this:

sudo nano /etc/default/grub

Then Add the options acpi=off apm=off to GRUB_CMDLINE_LINUX_DEFAULT

Then run:

 sudo update-grub

Then reboot your computer.


Virtual Box installed from the repos does not seem to be able to run with 3d acceleration

I encountered the problem with VirtualBox on a Windows 10 host, with a Kubuntu 18.04.1 guest. Apt-upgraded and with guest additions installed.

It seems that it is a VirtualBox issue, that is not likely to be resolved any soon.

So the only workaround that I have found is to:

Shut down the VM and disable the 3D acceleration in the VM's settings in the VirtualBox UI. This should solve the problem, but the display performance is horrible, because (in my understanding) virtual box is emulating a 3D accelerator using the CPU, and Plasma uses an OpenGL renderer on top of that.
In KDE's system settings app, go to Display and Monitor -> Compositor. Change Rendering Backend to XRender. Apply.

This tells Plasma to use 2D rendering. For me it works well enough, windows move smoothly enough, there is no noticeable lag, scrolling a web page for example is also relatively smooth.

Of course, if you actually need 3D rendering for other apps, then you have a real problem.


ufw application profile to allow for specific source ports

This is probably the router trying to discover devices in your specific subnet. You need to use "port number" after the "from IP or subnet of origin" to allow the specific source port.

In my particular use case I use the following command

# ufw allow proto udp from 192.168.0.0/24 port 1900 to any comment UPnP

Hope it helps you and the people searching this specific problem.


The idea of having a simple scan utility was behind the development of, well,  Simple Scan - the scanning tool installed by default from 10.04 on (Applications ‣ Graphics ‣ Simple Scan).

Simply scan as many pages as you want and choose PDF as file format when saving.

Another slightly less simple program that offers additional features like text recognition is gscan2pdf, also in the repositories.


What actually happens when the close button is clicked, depends on the program.

In my Ubuntu 14.04 both Steam and Skype are minimized to a tray icon, and keep running. So this is most likely a misconfiguration of these applications, and not the fault of Gtk+ or Qt.


Ubuntu Host OS with VM - What size should my root partition be to accommodate VM?

You can create the VMs on any partition you want.

I do not recommend to use the root path.


A user-specific configuration file should be located at ~/.tmux.conf, while a global configuration file should be located at /etc/tmux.conf. Default configuration files can be found in /usr/share/tmux/.

Edit the ~/.tmux.conf file to include whatever shortcuts you want on tmux

Key bindings may be changed with the bind and unbind commands in tmux.conf.

For example, you can change the prefix key (i.e. Ctrl-b) to Ctrl-a by adding the following commands in your ~/.tmux.conf configuration file:

unbind C-b
set -g prefix C-a
bind a send-prefix

Another example:

To use PgUp and PgDown, to switch windows in tmux:

bind -n PageUp previous-window
bind -n PageDown next-window


XPS 13 9343 Failure to resume from suspend

Black screen on resume from suspend is a kernel panic caused by the wireless card (Broadcom) changing its status.
For current solution, see below...

Outdated solution 1
You can now fix the problem by applying the following patch :
wget https://launchpadlibrarian.net/196100480/0014-null-pointer-crash.patch
sudo cp 0014-null-pointer-crash.patch /usr/src/bcmwl-6.30.223.248+bdcom/patches/

Add the path of the patch file in your dkms.conf file :
sudo nano /usr/src/bcmwl-6.30.223.248+bdcom/dkms.conf

Your dkms.conf should look something like this after your changes :
PACKAGE_NAME="bcmwl"
PACKAGE_VERSION="6.30.223.248+bdcom"
CLEAN="rm -f *.*o"

BUILT_MODULE_NAME[0]="wl"
MAKE[0]="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build"
DEST_MODULE_LOCATION[0]="/updates"
PATCH[0]="0001-MODULE_LICENSE.patch"
PATCH[1]="0002-Makefile.patch"
PATCH[2]="0003-Make-up-for-missing-init_MUTEX.patch"
PATCH[3]="0010-change-the-network-interface-name-from-eth-to-wlan.patch"
PATCH[4]="0011-do-not-define-__devinit-as-__init-in-linux-3.8-as-__.patch"
PATCH[5]="0012-add-support-for-Linux-3.15.patch"
PATCH[6]="0013-gcc.patch"
PATCH[7]="0014-add-support-for-Linux-3.17.patch"
PATCH[8]="0015-add-support-for-Linux-3.18.patch"
PATCH[9]="0016-repair-make-warnings.patch"
PATCH[10]="0017-add-support-for-Linux-4.0.patch"
PATCH[11]="0014-null-pointer-crash.patch"
#PATCH_MATCH[6]="^3.[10-11]"
AUTOINSTALL="yes"

Reload the module :
sudo /usr/lib/dkms/common.postinst bcmwl 6.30.223.248+bdcom /usr/share/bcmwl x86_64 $(uname -r)

You won't have anymore black screen on resume from suspend. See here for more informations.

Outdated solution 2
A PPA including the fix has been set up by Canonical.
Simply use the repository and no need to manually apply the previous patch anymore.
sudo apt-add-repository ppa:inaddy/lp1415880
sudo apt-get update
sudo apt-get upgrade

Newest solution
There is no need to add additional PPA anymore. A fix as been released in Ubuntu repositories. Simply install the patched version by update your system :
sudo apt-get update
sudo apt-get upgrade


Upstart sub-command tab completion with zsh

I don't know what the copyright is on this hence I'm linking but there's a completion for initctl, start, stop, restart, reload and status available on the zsh mailing list.

Save that as something like /usr/share/zsh/site-functions/_initctrl.


juju and keys for multiple administrators

I know its been a little while since this was originally answered but to fill in your follow up question as well as let you know that this is now possible as a native feature in Juju too, e.g. each developer can have their own key or a set of shared keys etc.

All that needs to be done is add it to the environments.yaml in a authorized-keys: stanz like the one I'll show below, and its added on bootstrap and subsequent deploys if updated.

environments:
  martha-is-hott:
    ...
    authorized-keys: |
      ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCSkoja9S9nZingSncdJM7Hb+tpDVhWeP4n+X/I+cRVIiAmtugjs8um61OKx+w6CGESINpoNgFxdzST6zUtgM+2EY7JEH4z+kF0HjVZK8tJiu80IUz2xQg2tmEGdoGNIBRMmoMLCkrjpW3jXnCk2qGkChwyiO6Rptn0e6R34SSc5cMT5F0Jco1GafsKJLRQbzYnvueIVh1KotJL0PODdli7EbcmWikW68Y2sgdUENtvSUQf1ZI9QZnDr8QEhyOywgcO0W8205rm4CGv9dyEe5pfmdqnuezFuP8YhkrEruj/oVYymup3T6xzQb6L09fYNK0nryY8klq8+nT7JMIRtHQV joe@blow
      ssh-rsa AAAB3NzaC1yc2EAAAABIwAAAQEAyYy6MJwxDvcHOk7g68vOy4DflEwqVfCNpa4PUR9kO9wg3UWasHZXdQ1lj/ybPG1DBmitV7F15puX7rTfCdExZPS3+lO0+QZL+rDEEv8Mu+1jVh+yj8RdZnIiKf5QxfrAKp14g/N2pikDDR5lQNxz85saKNjMDL1E092aU+IvysilZUNMK9gwWTnmFPpGheesHYThyB3MC3miMyXOUmiaAo9kroA94RsyjFRKUZ0X9OJFcCObCVP/TK46+n11gdTmyPOkmGOGOS5d/xqXDjKGzRmkyuFnstxMuusN9iJtdyH0jKG8sUwjueU24qUQiP9dtSFJgUpQ2V80UP6mz3rpBw== where@is-your-sister
      ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDabVVCnORoiGLgRQ6JXdKkqNUhB1bkD7Jf3HSoOhOVWr3tnBZk5/Qyy4FQ5OenQb8qx8EqQrHb52vu8yPzQ2/pGjdbIxoEqWYpcSaYFG2Tw7I4piTmvQ+cyjpYGeJB8DGOm9sHzWpD14pzQgKa9FZc7T9mPhMCiXzruQlW9lKu1lZwHpCgJVi4ImGWltyBjVsTzVLEfqRuyzgpVd9OxBbrrrNWcxp5PgBWbgIdZ/tHVNdaVJcMkSJk8T0WimL1XUHAMLfGCQmWR5KRbzlKIYm/JRqtNjzGqvPqWa9L4Av5UjnSNSp8eGvdXlaPieeuAVQ/dGEnjPgwdtZC33zzH/ZL brandon@ilovewebsites

Hope this helps !


Copy all files from certain file type extension in script

You should change "$adir/$extType" to "$adir/"$extType otherwise glob expansion won't take place and it looks for a file exactly with the name of *.txt which can not be found and thus it complains about it with:

cp: cannot stat ‘mydir/*.txt’: No such file or directory


Solved it by upgrading vagrant from 2.2.5 to 2.2.6 and virtualbox to 6.0.16


Using Linux as guest on vmware and sharing connection with windows vista

You said "but tried with NAT bridge". That doesn't make sense. You can either choose NAT or bridged. NAT means that the guest can access the network, but other computers (including the host) on the network don't see the guest VM. If you use bridged, it means that the guest gets it's own IP on the network, and that other computers can access it via the IP.

Sounds like you should be using bridged for what you want to do.

You'll then need to set up the guest operating system as a router, to do NAT translation from the virtual network card to forward packets to the modem.

Then you'll change the host operation system's network settings to use the guest as a router. (You could also run DHCP on the guest to do this if you want to, but probably not worth the bother in this case).

The reason it just worked when you were using the modem on the guest, is that the NAT settings in Vmware automatically handle the NAT translation, and also configure the guest systems network settings via DHCP to use the host as a router. You don't get that with bridged.


Well, it is a bit late but for others....

You can probably look up in the udisks2.rules in /usr/lib/udev/rules.d/80-udisks2.rules and remove anything or all which comes after

# ------------------------------------------------------------------------
# ------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Devices which should not be display in the user interface

as your disk probably triggers one of those conditions. Alternatively, try removing some parts at a time.


Cmake error when I try install Opencv 3.1

It is a known issue with 16.04. A bug report has been filled already and should be fixed soon. For now, I fixed it doing this:

sudo -i
mkdir /usr/include/ffmpeg
cd /usr/include/ffmpeg
ln -sf /usr/include/x86_64-linux-gnu/libavcodec/*.h ./
ln -sf /usr/include/x86_64-linux-gnu/libavformat/*.h ./
ln -sf /usr/include/x86_64-linux-gnu/libswscale/*.h ./

Basically, you create links in /usr/include/ffmpeg to all .h files in the directories:
/usr/include/x86_64-linux-gnu/libavcodec/
/usr/include/x86_64-linux-gnu/libavformat/
/usr/include/x86_64-linux-gnu/libswscale/

I managed to avoid the sys/videoio.h issue and the linux/videodev.h issue by using the following cmake command (note you must have opencv_contrib checkedout and adjust the relative path below to your case). You also must run this cmake command twice or the Python3 part for some reason does not gets picked up. I do not know why the cmake command below fixed the issues to me, I just found it out after a long investigation (maybe with the cmake command below the fix above is not even necessary, I do not know).

cmake \
  -D CMAKE_BUILD_TYPE=RELEASE \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D WITH_TBB=ON \
  -D WITH_V4L=ON \
  -D WITH_QT=ON \
  -D WITH_OPENGL=ON \
  -D WITH_CUDA=ON \
  -D ENABLE_FAST_MATH=1 \
  -D CUDA_FAST_MATH=1 \
  -D CUDA_NVCC_FLAGS="-D_FORCE_INLINES" \
  -D WITH_CUBLAS=1 \
  -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
  -D BUILD_TESTS=OFF \
  -D BUILD_PERF_TESTS=OFF \
  -D BUILD_OPENCV_PYTHON3=1 \
  -D PYTHON3_EXECUTABLE=$(which python3) \
  -D PYTHON3_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
  -D PYTHON3_LIBRARIES=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") ..


Ubuntu software center is not allowing me install Nintendo DS emulator, giving a message "check the internet connection"

Find out the exact name of the emulator (I could find only one called desmume) and install it by typing "sudo apt-get install name-of-the-emulator" in a terminal-window and hit [ENTER].


Why there are so many cron.#### files in my home directory?

This is wget's fault. It creates a file by default. In order to get rid of these files you need to use a wget flag to get rid of the output. Something similar to wget -O /dev/null http://www.mywebsite.com/specialurl

You can also see if the -q option works for you. I seem to recall that the -q wasn't enough sometimes


AMD/ATI Radeon HD 6670 Graphics are Very Laggy in 13.10

Up until a few weeks ago I had an HD5670 for my 13.10 install. I downloaded and installed the driver direct from AMD's website and had better performance than from any of the ones listed in Additional Drivers (in fact, AMD just released a driver update on 12/19/13).


If you do not have access to another computer, then your tablet should be also fine. You will need the application DriveDroid on GooglePlay. Be careful, it requires a rooted Android device! (e.g. your tablet).

DriveDroid allows you to boot your PC from ISO/IMG files stored on your phone. This is ideal for trying Linux distributions or always having a rescue-system on the go... without the need to burn different CDs or USB pendrives.

The installation way is following:

You download and install Drivedroid on your tablet.
You launch the Drivedroid and download the Ubuntu distribution - Ubuntu-16.04-desktop-amd64.iso will be fine. The file is large, so be prepared with your power supply for the tablet and a good internet connection.
Install your SSD disk into the computer.
Once downloaded tap on the downloaded image in the Drivedroid.
Tap host image and Writeable USB.
Attach the USB cable from tablet to the computer.
Boot the computer from USB - you need to setup this in the BIOS of your computer.
The computer should boot into Live USB and you can choose the Ubuntu installation.


HP laptop installed 14.04 from win 8.1. "The system is running in low-graphics mode". How do I fix this?

Open a terminal and install the drivers:

sudo apt-get install fglrx{,-amdcccle}{,-updates}

If those don't work, check whether or not HP supplies linux drivers for your model.  If so (unlikely), use them.  If not, download the drivers from http://support.amd.com/en-us/download and install manually (Check Google for instructions)


xerox workcenter 3215 scanner isn't recognized on 18.04

I recommend the manufacturer's website for the latest drivers.

Link to Xerox WorkCenter 3215 Scanner Drivers for Linux OS

The site says they support up to Ubuntu 10.04 but you shared that you weren't even able to find any drivers, so give this a try first.


Setting text entry setting in ubuntu 16.04 using terminal

Taking my own settings as an example. Currently I have:

$ gsettings get org.gnome.desktop.input-sources sources
[('xkb', 'se'), ('xkb', 'us')]
$ gsettings get org.gnome.desktop.input-sources current
uint32 0

The zero (0) response to the second command means that my current input language is the first one, i.e. Swedish. To change it to the second input language (English (US)) from terminal I can do:

gsettings set org.gnome.desktop.input-sources current 1


Should it be inside my apache server config or the DNS server that I'm
  trying to setup?

Yes, you should define the ServerName parameter in your VirtualHost configuration. At first, create a configuration file in /etc/apache2/sites-available/ named example.com.conf and add the content:

<VirtualHost *:80>
    DocumentRoot "/var/www/"
    ServerName example.com
</VirtualHost>

Change your /var/www/ to your DocumentRoot and add any other directories of your site in the VirtualHost configuration. And then enable the site:

sudo a2ensite example.com

Restart apache2:

sudo service apache2 restart

In case, you don't want to host a DNS server, just define this in /etc/hosts of your computer and any others you want them to have access:

IP_address example.com

If you need any further help to install a local DNS server, tell me.


Error: 'multiverse' invalid + Error: 'universe' invalid

Muchas gracias Alexander Mills, tuve el mismo problema y lo pude solucionar en mi sistema (Q4OS 3.10.3) con:

Thank you very much Alexander Mills, I had the same problem and I was able to solve it on my system (Q4OS 3.10.3) with:

sudo sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list
sudo sed -i "/^# deb.*universe/ s/^# //" /etc/apt/sources.list


You can try installing Ubuntu drivers from the Additional Drivers utility. That might help.

You can open Additional Drivers by pressing Super (the Windows) key (or clicking the home button at the upper-left corner of the screen) to open the Unity Dash, then type the first few letters (additi...). Additional Drivers will appear and you can click on it to run it.


Does Ubuntu still (actively) support the 32-bit PowerPC architecture?

Sorry, but the answer is no.

16.04 LTS is the last Ubuntu version for Power PC. Lubuntu 16.04 LTS will be supported for 3 years (until April 2019) and the program packages, that belong to standard Ubuntu or Ubuntu Server will be supported for 5 years (until April 2021).


Upgraded to a larger SSD using a cloned copy of existing. Possible to extend the existing partition?

First, you need to be booting from a live DVD or USB so that nothing is mounted.

Open Gparted from the Live media, and right click sda2 to extend it and take all the remaining free space. This is your container for sda6.

After that, you can extend sda6 to take up the new free space within the extended partition.


Keyboard shortcut to hide/unhide the panel?

There is a trick to do that.

Part One - How to hide/show all gnome panels

1) Make this file:

gedit ~/.gpnaelhs

2) Paste this into it:

#!/bin/bash

count=0
while read line
do
   keys[$((++count))]="${line}/auto_hide"
done <<EOF
$( gconftool-2 --all-dirs "/apps/panel/toplevels" )
EOF

case $( gconftool-2 --get "${keys[1]}" ) in
   "0" | "false" | "False" )
      new="true"
      ;;
   * )
      new="false"
      ;;
esac

for key in "${keys[@]}"
do
   gconftool-2 --set "$key" --type bool "$new"
done

#End of File

3) Save.

4) Make it executable:

sudo chmod +x ~/.gpnaelhs

5) Make a shortcut for it:

gnome-keybinding-properties

6) Click "Add" and put a name (p. ex. "Gnome Panel Hide - Unhide")  and the command

bash -c '~/.gpnaelhs'

7) Click "Ok"

8) Click "Disable"  and choose your shortcut (p. ex. Ctrl + P

Part Two - How to hide/show only one gnome panel

1) First please backup your settings

gconftool --dump /apps/panel > ~/.panel.settings.backup.xml

and

mkdir ~/.panel.folders.backup && cp -r ~/.gconf/apps/panel/toplevels/ ~/.panel.folders.backup/

2) Now we have to do 2 things. First: edit the file ~/.gpnaelhs and change "/apps/panel/toplevels" for "/apps/panel/toplevels/panel_0" (change the number as needed).

3) Then: delete the folders named panel_0 or panel_1 or panel_2 ... at /apps/panel/toplevels.

Enjoy!

Reference.


I ran into this as well.  Thankfully, it was just a matter of enabling Full Disk Access for multipassd in Settings -> Security & Privacy -> Privacy.
Image showing Security & Privacy and Full Disk Access
Once I did that and then restarted Multipass (and the target VM), I was able to successfully multipass mount with no problem.


Add GParted menuentry to GRUB
If all else fails, put your GParted ISO in a folder named ISOs in the root directory and boot using GRUB2 and the following menuentry:
menuentry "GParted 64-bit ISO" {
  set root=(hd0,1)
  set isofile="/ISOs/gparted-live-1.1.0-5-amd64.iso"
  loopback loop $isofile
  linux (loop)/live/vmlinuz boot=live config union=overlay username=user components noswap noeject vga=788 ip= net.ifnames=0 toram=filesystem.squashfs findiso=$isofile
  initrd (loop)/live/initrd.img
}

Confirm your root partition=(hd0,1) and the GParted version number.
Then copy the above menuentry to /etc/grub.d/40_custom/ and run sudo update-grub.
Select GParted 64-bit ISO from your GRUB menu when booting.


Remove grey border around pavucontrol in 16.04

It turns out that this was a bug in pavucontrol which should be fixed with a future release: https://lists.freedesktop.org/archives/pulseaudio-discuss/2016-March/025937.html


1 - Select Insert

2 - Select Fields

3 - Select Page Number

This is from the LibreOffice documentation: Starting With A Defined Page Number


Desktop recording software with keypressing hints

I use key-mon with recordmydesktop.
sudo apt install keymon

Or maybe Screenkey, initially based on the key-mon project. You can install Screenkey with
sudo apt install screenkey


How can I open an app with a custom keyboard shortcut?

The first thing is that you have to know the command to run the application. Of many applications, the command is the same as the name of the application, as it appears in Dash, but that is definitely not always the case.

Find the command to run an application

To find the command to run an application, you can look into its desktop file, located in /usr/share/applications; open the file with gedit (drop it over an open gedit window) and look for a line, starting with: Exec=. If you, for example, look into the file: /usr/share/applications/gnome-system-monitor.desktop, you will see that the command to run it is:

gnome-system-monitor

Creating a keyboard shortcut to run the application

Open "System Settings" > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" to add the command you found in the corresponding .desktop file. Click on the right side in the new entry and type the desired key combination.

Automatically generate a list of all applications and their corresponding commands

Just as an extra (I already had the script), you can use a script below to create a list of all installed applications (names), their corresponding .desktop files and the command to run it. The output looks like:

Application name || desktop file || command
===============================================================
Cheese  ||  cheese.desktop   ||   cheese
Ubuntu Software Center  ||  ubuntu-software-center.desktop   ||   /usr/bin/software-center %u
eBook speaker  ||  eBook-speaker.desktop   ||   eBook-speaker %f
Vuze  ||  azureus.desktop   ||   azureus %f
Mines  ||  gnomine.desktop   ||   gnome-mines
Shotwell  ||  shotwell.desktop   ||   shotwell %U
Synaptic Package Manager  ||  synaptic-kde.desktop   ||   synaptic

etc.

The script:

#!/usr/bin/python3
import os
dtfile_list = os.listdir("/usr/share/applications")
for item in dtfile_list:
    if item.endswith(".desktop"):
        with open("/usr/share/applications/"+item) as commandlist_source:
            searchlines = commandlist_source.readlines()
        try:
            command_data = ([line for line in searchlines if line.startswith("Name=")][0]\
                            .replace("Name=", "").replace("\n", ""),
                            [line for line in searchlines if line.startswith("Exec=")][0]\
                            .replace("Exec=", "").replace("\n", ""))
            print(command_data[0]," || ", item, "  ||  ", command_data[1])
        except Exception:
            pass

In case you'd like to use it: copy the script into an empty file, save it as get_comnmands.py and run it in a terminal window by the command:

python3 get_commands.py


Should the lack of a launcher icon be considered a bug?

Yes, application windows that do not have appropriate icons, WM_CLASS, and other metadata set, should be considered a bug in the application that provides those windows.


x2go: Connection failed, cannot create remote file

This is a non-backward compatible change in libssh, which broke one of the corner cases in SCP protocol (aka CVE-2019-14889). This is already fixed in the x2goclient (it was already fixed for windows clients before) and now it is just matter of time to get this into your favorite distribution (preferrably through bug report in their bug tracker https://bugs.launchpad.net/):

Also you can use a nightly builds repo https://launchpad.net/~x2go/+archive/ubuntu/ppa
There is a fixed x2goclient with version 4.1.2.2-0~1884~ubuntu available and it`s working.


I did it:

sudo apt-get install linux-backports-modules-maverick-generic-wireless

then I followed the instructions on the page (modprobe etc). Works like a charm, except for another question I'm starting now. (Asus EeePc Fn+F2 wrecks wireless until restart)


Unable to connect to Internet after wakeup from hibernate?

I have also had this problem. I have discovered that if you check the "Enable Networking" box, put it to sleep, and then wake it up again, it works. Eventually after doing it for a while the problem seemed to stop.


How to remove the default eclipse and setup new eclipse?

you need to purge it, that way it will remove all the configurations saved in your home folder.

sudo apt-get purge eclipse
and then
sudo apt-get install eclipse


"Property Boss" runs into errors on Wine, is there a way to get it to work without errors?

Not every program works with Wine.  Wine is not designed to work flawlessly with every program, and there are programs that just won't work with Wine at all.

As there is no entry in the Wine App Database about this program, it's impossible to say whether this will actually work with Wine or not, however judging by the runtime errors you're running into, I would say it just doesn't work with Wine.


How to match LaTeX fonts in LibreOffice Writer?

Use the Latin Modern Roman and Latin Modern Math (for mathematical expressions) fonts, which are freely available in many websites, e.g. https://www.1001fonts.com/latin-modern-roman-font.html
Download the ttf/otf files, and place them in the hidden folder .local/share/fonts (create it if it does not exist), and then you can choose those fonts in Libreoffice (you may have to restart your computer).
As found by OP, "Tex Gyre Deja" (installed along with LaTeX) works too.


Something similar happened to me too during my upgrade. I did the following and everything's working now:

sudo apt-get install ubuntu-restricted-extras
sudo apt-get install flashplugin-downloader flashplugin-installer


aptitude state is corrupt - how do I fix it?

From the documentation aptitude stores its own state (separate from the state of apt-get or dpkg) in /var/lib/aptitude/pkgstates and there may also be a configuration in ~/.aptitude/config. Moving those files out of the way could help aptitude recover a sane state. As other tools are working, there's no harm in trying:

sudo mv /var/lib/aptitude/pkgstates /root/aptitude.pkgstates.backup
mv .aptitude .aptitude.backup

If aptitude starts working properly after those changes, you can remove the backups. If not, you can just put them back and try some other solution.


I suggest you look at the short mDNS implementation used by snapweb; it relies on a Go module called github.com/presotto/go-mdns-sd:

https://github.com/snapcore/snapweb/blob/master/avahi/avahi.go


What Ubuntu 14.04 version do I use on my Compaq?

I used to run Ubuntu 14.04 (Unity) on my Compaq V3000, with 2G memory, Nvidia 6150 , and AMD T52 just fine.  Some people seem to have trouble getting Unity to run on the 6150, so unless you love Unity, lbuntu or xbuntu might be a better choice.


Server 12.04 - Secondary IP won't route outside of local network

Maybe a bit of a long shot, but have you tried enabling ipv4 forwarding? I don't know the details of IP chains, but it could be that the reply to a ping on the eth0:0 interface needs a 'forward' via the eth0, in particular when it needs routing.

# echo 1 > /proc/sys/net/ipv4/ip_forward

Or

# sudo sysctl -w net.ipv4.ip_forward=1

And if it works, put it in /etc/sysctl.conf.


when i am updating 12.04 to 13.10 then following error show

First remove following files by opening a terminal (Press Ctrl+Alt+T to launch) and run this command:

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

Next, generate a new one by running a simple update:

sudo apt-get clean all
sudo apt-get update


How to make a windows virtualbox host recognise android usb?

sudo addgroup vboxusers

and you can use usb connetion


How do I periodically reload a web page in a Terminal web browser?

As far as I know, these browsers do not support programmed reloading, however it can easily be accomplished by using a terminal multiplexer like tmux. For example if you start the browser in one terminal like this:

tmux new-session -s browse 'w3m google.com'

Then you can send commands to it from a script or another terminal with the send-keys command. So to make w3m reload the current page do this:

tmux send-keys -t browse R


How can I sort Xfce's whisker menu list alphabetically?

Right-click on start button and select Properties. Then uncheck both "show generic application names" and "Show menu hierarchy".


No drivers for AMD Radeon HD 8750M or AMD Radeon HD 8550

I have KDE(buntu) 13.04 over 3.9 kernel + Catalyst 13.8 beta driver on AMD A10 6800 APU with ATI Richland [Radeon HD 8670D]

As far as I understood from googling (I might be wrong here), Richland GPUs are not yet properly supported in the stable version 13.4. I have installed proprietary beta driver 13.8 on top of 3.9 kernel, and it worked, however OpenGL is glitchy so I use XRender. It works acceptably with occasional effects drop, which is restored by Shift-Alt-F12.

Beta driver is here
http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx

You may try to set it up this way
http://www.noobslab.com/2013/04/install-ati-amd-catalyst-drivers-in.html

.. or using command line, download and execute.

I would suggest trying kernel 3.8 and stable driver first, however.


How to identify an unknown entry in `lshw`?

The details on that device entry, and for its parent, will give you hints as to what it is. Given the information in the screenshot, it seems to be some PCI-express VGA capabilities/palette related chip.

You'll need to have some understanding of the data you're looking at, and how various pieces of hardware fit together, to be able to make reasonable guesses as to what the Unknown devices are, though.


How to reliably determine all folders not used in last 7 days?

Maybe the following script is better:

  Note: Pay attention to rm command! Use echo "rm -rf $sub_folder" for testing.

#!/bin/bash

if [ $# -ne 1 ];then
  echo "Usage: `basename $0` DIRECTORY"
  exit 1
fi

for sub_folder in `find $@ -type d -atime +7 2>/dev/null` ; do
     rm -rf $sub_folder
done

exit 0


Setting my native resolution resultsin display too wide for the screen

Check your monitor adjustment settings. Most of them have an auto adjust feature that you can use, but if not, you'll have to manually adjust the horizontal width and position so the image fits on the screen.


I installed AviSynth with Wine 1.3.16 through PlayOnLinux, then I chose "System" version. I replaced DirectShowSource with AviSource in the script and I could open the script with VirtualDub.


On my desktop my folder and file icons do not display the file names

Use DConf editor (sudo apt-get install dconf-tools) install it if you don't have it installed.

Go to org>gnome>nautilus>desktop edit the value for text-ellipsis-limit to 0 (zero).

  An integer specifying how parts of overlong file names should be replaced by ellipses on the desktop. If the number is larger than 0, the file name will not exceed the given number of lines. If the number is 0 or smaller, no limit is imposed on the number of displayed lines.

My original value was set to 3, which prevented the file names from being shown for some odd reason.  Likely a Nautilus bug.


Switching keyboard layout with shortcuts is slow, loses focus

Are you using iBus? You could try fcitx. I haven't used it myself, but it's very popular in China.


Chromium does not sync bookmarks or extensions

Sign in to Chromium. That should sync the bookmarks. Then sign out of Chromium, sign in again, and do CTRL+SHIFT+DEL. Clear data from the beginning of time, and check everything except for the last two options.


Assuming they are all in the same parent directory:

for f in */*.jpg ; do mv "$(dirname "$f")" "$(basename "$f" .jpg)" ; done

In slow-mo:

*/*.jpg will list Folder1/AAA.jpg,Folder2/BBB.jpg,FOlder3/CCC.jpg
$(dirname "$f") extracts Folder1,Folder2,FOlder3
"$(basename "$f" .jpg)" extracts the file name and drops the extension: AAA, BBB, CCC...
So you end up with mv Folder1 AAA, mv Folder2 BBB...


The scp answer is a good one and should work just fine if it is a small amount of files that you need transfered but if it fails or you have to stop the transfer you can use rsync.  The command would look like this rsync -rP -e ssh username@serveraddress:"directory/file" /destinationfolder/ the r is for recursive downloads if you need a folder, the capital P is so that you can resume what had failed or been stopped prematirely and the e ssh tells rsync to comunicate over ssh.  Hope that this helps.


Can I get my Super Advantage Controller (SNES controller) to work for more games?

Turns out Steam has answered this problem.  They have an internal (to Steam) version of wine that has access to controllers.
You are required to use the beta client of Steam for the new version of wine named Proton.

https://www.youtube.com/watch?v=Wb9RupIkhQ8
https://steamcommunity.com/games/221410/announcements/detail/1696055855739350561


Is there a recommended image backup path to ensure I can restore my previous install if the new image fails?

Clone your system (root) partition to external media using Clonezilla.


Nautilus won't let me see or access files

Type the below command in the Terminal

sudo apt-get install nautilus-open-terminal

Once you are done with the above please enter the password and open the file.


Windows option not showing up in the boot menu (Dual boot)

Are you trying to get rid of the Windows Partition?

If so try using GParted, this will allow you to lookup for the NTFS partitions and delete it, since this is the Windows Partition, aftermath just apply your newly available data you got from windows to your ubuntu partition.

GParted it really intuitive so no need to use cls, go ahead and try it.


How to install GUI on Ubuntu Server 12.04 from USB stick without internet connection

I take it you have ubuntu desktop on the usb. Or else you have to visit http://cdimage.ubuntu.com/ubuntu/releases/12.04/release/ and download the ubuntu-desktop image for the your architecture. And then create a boot usb.

Firstly you have to remove (or comment them by adding a # in front) all lines from /etc/apt/sources.list and /etc/apt/sources.list.d/* so you can call

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

Without getting any errors.

Once you have the usb connected you can add the deb src lines to /etc/apt/sources.list by using the apt-cdrom tool.

Description on how to use apt-cdrom can be seen here:
https://help.ubuntu.com/community/AptCdrom

Basically it boils down to these commands.

sudo apt-cdrom ident
sudo apt-cdrom -d "your-usb-mount-point" -r

Once you have the correct apt lines you can must install the ubuntu-desktop package in order to get the gui.

sudo apt-get update
sudo apt-get install ubuntu-desktop

Good luck!


How to receive files over Bluetooth on Ubuntu 20.04

I would like to send files from my phone to my laptop at any time without having to physically touch the laptop

If your devices are connected to the same Wifi network, you should definitively have a look to GSConnect.
You just have to install this Gnome extension and the app "KDE Connect" (the name is misleading, you don't need KDE) on your phone.
Then you can easily send files (even multiple at once) from your phone to your computer using the Share menu. No need for validation on the computer
I'm using it since monthes, works flawless


Unable to install w3m and w3m-img using terminal!

First of all, if you take close look at your output, updating works fine. What fails is installing w3m-img package. I strongly recommend that you check if you have universe repository enabled, because w3m-img package belongs to that repository. See output below:

$ apt-cache policy w3m-img
w3m-img:
  Installed: (none)
  Candidate: 0.5.3-26build1
  Version table:
     0.5.3-26build1 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages