How can I remove the “To do” sidebar in Evolution?

Evolution lets you toggle whether or not the “To do” bar is shown:

View → Layout → Show To Do Bar


How do I make configure detect software in different directories?

If you want to try to install wine from a repository not from source this could help you :

Install Wine

It should solve your problem .


How do I automatically monitor SMART with external USB drives and warn if necessary?

Well you can go to the Disk Utility and select the drive, but I'm not sure if it even has the capability. Some hard drives do not have SMART. If it is offered, click on SMART data and locate the problem.


easiest way to capture streaming media with video and sound

RecordMyDesktop

sudo apt-get install recordmydesktop


Python

from charmhelpers.core import hookenv
unit_name =  hookenv.local_unit()
service_name = hookenv.local_unit().split('/')[0]

Bash

UNIT_NAME=$JUJU_UNIT_NAME


Ksysguard give error The file /home/mahesh/.kde/share/apps/ksysguard/ProcessTable.sgrd does not contain valid XML

Since the change to KDE5 the solution has changed. My system monitor got borked because cache cleaning and rebooting too fast.

So because I don't have enough reputation to up-vote or comment here's Pablo's solution revised.

sudo cp /usr/share/ksysguard/ProcessTable.sgrd /home/[youruser]/.local/share/ksysguard/ProcessTable.sgrd

You may also need to copy the CPU usage tab as well (which I did)

sudo cp /usr/share/ksysguard/SystemLoad2.sgrd /home/[youruser]/.local/share/ksysguard/SystemLoad2.sgrd

And you may also need to click the 'Import Tab From File...' and point to the .local directory to select one or more of the files.


Change Desktop Area used by Maximized Windows

Parts of this answer comes from: I'd like to prevent maximize from covering one third of the screen

  Maximumize may be useful for that case instead of Maximize. Which is
  included in the CompizConfig Settings Manager and will "Maximumize
  windows (resize them to fit the available screenspace)"

  In your case, Maximumize will fit the window's size in order to use
  the maximum available screen space in the active work space and this
  way, windows in screen containing the pidgin, conky, and other
  window-like applications will be dodged by the Maximumized window.

Maximumize comes from the compiz-fusion-plugins-extra package.

Good luck!

BTW: You may need to set your own key bindings in order to make this work. I used [Alt]+M and it works fine for me.


You could try to reset your cinnamon settings:

To backup -
from a terminal, run: dconf dump /org/cinnamon/ > backup_of_my_cinnamon_settings

Save the backup_of_my_cinnamon_settings file somewhere for later.

To reset to defaults:
dconf reset -f /org/cinnamon/

To restore all your settings:
dconf load /org/cinnamon/ < backup_of_my_cinnamon_settings

Found here: https://github.com/linuxmint/cinnamon/wiki/Backing-up-and-restoring-your-cinnamon-settings-(dconf)


Change round window control buttons to square shape

A good way to get any level of customization is with themes. This includes changing the way the window control buttons look, etc.

A good list of themes can be found here NoobsLab Collection


How to set user passwords using passwd without a prompt?

Try usermod:
usermod --password PASSWORD USERNAME

The only thing is this needs a pre-encrypted password string which you'd have to generate first.
In order to generate the encrypted password you can use openssl. For example:
usermod --password $(echo MY_NEW_PASSWORD | openssl passwd -1 -stdin) USERNAME


Good alternative for Rhythmbox for Podcasts?

I personally use and prefer gpodder, however as you have issues with it, it looks like you haven tried miro (listed in Synaptic)


Tried to uninstall dual Linux boot (not Windows), now stuck on GNU GRUB screen

Advice for follow newbies based on my recent experiences: 1) it's easier to install from DVD than USB; 2) keep a DVD copy of your original install file just in case things go wrong; 3) always backup before making any other changes; 4) if things go wrong, then you can always re:install the original install, then revert to the most recent back up. Ultimately that's what fixed it for me :)


Ubuntu 20.04 missing hdmi sound device after monitor goes to sleep mode

Answering to myself: the only thing that helped - updating kernel from 5.4 to 5.9. With 5.9 no other fix needed.


I have it under "Window Management" with (that I know of) no extra installs, only CCSM. Found it by typing "place" in the search window. (Not much of an answer if you are actually missing it, but I know that sometimes I miss things like this because I'm looking in some other place so can't hurt :)).


I don't know about VLC, but you should be able to record in audacity. You'll need to install the pavucontrol package, and set Audacity's recording device to the loopback device in the sound preferences, and the application you're trying to record from, to the loopback device for its output. You'll also need to record the audio into a stereo track in Audacity. This is of course an internal loopback system, and the audio won't be output to the speakers as well.


Using same HDD on multiple laptops as boot drive

Ubuntu is much better in this aspect than Windows. Ubuntu kernel already contains all modules (drivers). So your second laptop must boot correctly. The only exception is proprietary video drivers, I don't recommend install them on second laptop. Open drivers must work out-of-box (but maybe without advanced 3D).


How can i record screen and also write with pen mark

If you want record the screen and your voice try use Kazam
sudo apt install kazam


I suspect you've already worked this out quite a while ago. However, for anyone else looking.

Go into System settings > regional settings > formats and check 'detailed settings'. Then you'll be able to change all of that to your preferred laguage.


Move swap from sdb1 (SATA) to sda* (SSD)

Notice to other users: This answer is specific for this particular question (this OP). You have to modify the partitions etc for other cases.

Edit: The solution in this case was to use a swap file instead of a swap partition.

In this case you can treat the SSD just like an HDD (and be prepared to replace the SSD when it fails).

Backup the whole SSD (to have a current version, if something would go wrong).
Boot a live session from another drive, for example an Ubuntu desktop USB drive.
Swapoff all partitions that are used, and unmount the ext4 partition

sudo swapoff -a
sudo umount /dev/sda5

Start gparted and use it to edit the partition table of the SSD (/dev/sda).
Shrink the ext4 partition /dev/sda5 to create space for the swap partition. (This might take long time.)
Use the unallocated space to create a swap partition.
Perform the actions by clicking on the check icon.
Start a terminal window
Run the following command to find the UUID of the swap partition

sudo blkid

You probably see something like the following line for your new swap partition

/dev/sda6: UUID="03bed9e9-e39b-6307-8ce5-c2612af9a6aa" TYPE="swap" PARTUUID="731f415c-05"

Edit the file fstab of your installed system. Mount the partition where it is first,

sudo mount /dev/sda5 /mnt
sudo nano /mnt/etc/fstab

and modify the line pointing to the current swap partition, so that it will point to the new swap partition.

UUID=03bed9e9-e39b-6307-8ce5-c2612af9a6aa none  swap  sw  0  0

Use the UUID from blkid without quotes.
Reboot

I hope I remembered all important steps. Anyway, you can remove the old swap partition now, and use that drive space for data storage.

The following link might help you, if you need help to get started with gparted,

GrowIt.pdf

But in this case you will 'ShrinkIt' ;-)


Application to connect phone to PC and call other phones

Did that before with SMSLib (Java) with a lot of custom code to support my devices. Well, just SMS but you can do calls using AT commands. The problem for calls?: how to connect an audio output to the phone mic? that's a hardware hack I never did.

My recomendation: use a 3rd party service like http://m-lat.net or http://danaconnect.com


How can I use the ffmpeg command to reverse video?

It looks like it runs ffmpeg and so instead of this:

ffmpeg -i inputfile.mp4 -vf reverse reversed.mp4

and this:

ffmpeg -i inputfile.mp4 -vf reverse -af areverse reversed.mp4

Run this instead:

-i inputfile.mp4 -vf reverse reversed.mp4

and this:

-i inputfile.mp4 -vf reverse -af areverse reversed.mp4

https://video.stackexchange.com/a/17739

Thanks LordNeckbeard!

It looks like this only works for ffmpeg commands and so commands like cat won't work.

I didn't look at it too close but it looks like if you try to run cat you would really be running ffmpeg cat which does not exist.

You see, if you run -i input.mkv -an -qscale 1 %06d.jpg from a terminal, this does nothing but if you run ffmpeg -i input.mkv -an -qscale 1 %06d.jpg it does. This indicates that this application runs ffmpeg and allows you to add the option -i input.mkv -an -qscale 1 %06d.jpg to the ffmpeg command.


How do you create an additional interpreter?

I found out what was wrong.

#!/home/jesse/Desktop interpret

Needed to be:

#!/home/jesse/Desktop/interpret

/usr/bin/env is a command itself. Python is an argument passed to it.

Thanks to @muru for this.


Could not resolve hostname datanode1: Name or service not known

SSH is not going to read your Hadoop configuration files for hostnames.

Put "namenode", "datanode1" and "datanode2" into your /etc hosts file on each server. Now those hostnames will resolve.

The /etc/hosts file will look like this (added content). Change the IP addresses to be your VPC private IP address for each EC2 instance.

10.0.0.10 namenode
10.0.0.11 datanode1
10.0.0.12 datanode2

Note: For production systems I would use Route 53 with private zones for DNS resolution inside the VPC.

Note: Just copying the .pem file to the .ssh directory on each server will not be enough to enable "passwordless SSH". You will also need to extract the public key from the key pair (.pem file) and add this to .ssh/authorized_keys.

The following command will extract the public key. Then "append" the contents of the public key to .ssh/authorized_keys.

ssh-keygen -y -f ~/.ssh/hadoop-cluster-key.pem > ~/.ssh/hadoop-cluster-key.pub

cat ~/.ssh/hadoop-cluster-key.pub >> ~/.ssh/authorized_keys

You will need to repeat the second command on each node of your cluster.


How do I disable network connection at prelogin?

There are two ways that I know of, both involve the GUI for the network manager.

click on the applet and click on Enable Networking this will shut down all communication with the Network devices until you click it again and then you can shut down your computer and it will not connect until you select it again.

In the Network Mannger, click on Edit Connections and you connection window will pop up

either double click on your connection or single click and then select Edit, you can then uncheck the box that says connect automatically and then click Save. It will then not try to connect until you click the connect option in the Network Manager(in my screen shot it currently says Disconnect) When you log off the the internet will be disconnected and will not connect when you log back in until you tell it to do so.


How to establish a webdav connection with TLS client certificate authentication in Ubuntu?

One solution that worked, is using davfs.

Installation

Install davfs

sudo apt-get install davfs2

Configuration

then copy the certificate from the CA (in pem format) to /ect/davfs2/certs and the client certificate (in .p12 format) to /ect/davfs/certs/private and modify the configuration file e.g.

sudo nano /etc/davfs2/davfs2.conf

by uncommenting (removing the #) the lines trust_ca_cert and clientcert and adding the full paths to the respective certificates e.g.

trust_ca_cert         /etc/davfs2/certs/ca.cert.pem
#servercert
clientcert            /etc/davfs2/certs/private/xxx.yyy.com.p12

save the file and exit (Ctrl + O, Ctrl + x in nano) and make sure the clientcert has the correct permissions

sudo su
chmod 0600 /etc/davfs2/certs/private/xxx.yyy.com.p12
exit

Optionally configure credentials file

You can use a credential file located at:

/etc/davfs2/secrets

This way you will not have to enter your password each time. The file has good examples of its syntax, which I will not replicate here.

Usage

To mount the filesystem run

sudo mount -t davfs -o uid=bruni,gid=users https://serveraddress /home/bruni/mountpoint

Drawbacks

The problems with this solution are:

The website offers links in the form
davs:// which do not work with the above scenario

(We solved this serverside by providing links in the form file://

Freefilesync returns the following error when I try to synchronize with a folder mounted as above:

Cannot set directory lock for "/path/to/mountpoint".

Cannot write file "/path/to/mountpoint/sync.ffs_lock".

Error Code 13:Permission denied (open)

update To mitigate this, I have switched to rsync.


I would assume UbuntuOne would work (I don't use it much because it doesn't work through firewalls/proxies at work).  But denNorske is right, Dropbox could be used too.

It syncs files in the ~/Dropbox folder it creates, so to have it sync files that need to remain outside that location like configuration file, I believe you can create symlinks to them in ~/Dropbox and the Linux client will then sync the files correctly.  Create such symlinks on both computers to achieve the syncing you want.   The key is to determine which files/folders you need (which maybe someone else can supply).

(Unless they're gconf settings or in some database that contains more than just the compiz or unity settings - you may not want to sync those between computers and change more than just compiz/unity settings.)


Why does a command work from shell, but not from the applications menu?

You should always use gksudo when you run graphical applications. Not only does it provide you with a prompt so you can enter your password, but it also uses some variables that are important.

I have no idea why or if PyCharm requires root privileges. It's easier to provide a good answer if you provide more details.


Is Alt+Tab made obsolete by Super+W in Unity?

Alt+Tab isn't slow, it's just that by default there's a 0.2 second delay, I imagine so that a quick Alt+Tab won't get slower by creating thumbnails of windows or altering window opacities or things like that.

Open CompizConfig Settings Manager (ccsm) (install if not already installed), open the Static Application Switcher plugin config, go to the Behaviour tab and fiddle with the value of Popup Window Delay.

It's 0.2 seconds by default which I found to be too slow. You can set it to 0 if you want it to be instant, or some slightly larger value as desired - after some experimentation, I settled on 0.05 seconds, which means that a quick Alt+Tab to switch to the next doesn't start hiding the other windows or opening the window switcher panel but just goes straight to the next application (this is particularly useful for comparing the contents of two windows without the flicker of the window switcher which I always used to get back when I worked on XP), but if I want to switch to any other window and want to see what I'm going to, there's no discernible delay.


Keep data no apps while reinstalling Ubuntu 17.10

You need to preserve the /home folder and all of it's subdirectories (it is unlikely that your data would be stored anywhere else, and no applications installed via apt-get will be there).

Here are some methods which would allow you to do this:

Backup /home to any kind of backup drive, either as a direct copy or as .tar.gz.
Repartition your existing hard drive. Create a new partition for /home, and move all your data there. Use that as a /home partition when you reinstall.


Why is my function not re-evaluated in PS1?

According to Bash prompt Howto:

[21:58:33][giles@nikola:~]$ PS1="[\$(date +%H%M)][\u@\h:\w]\$ "
[2159][giles@nikola:~]$ ls
bin   mail
[2200][giles@nikola:~]$

  It's important to notice the backslash before the dollar sign of the command substitution. Without it, the external command is executed exactly once: when the PS1 string is read into the environment.


App recommendations for a new Ubuntu user

Some of those applications should allready be installed.

File Download:
Not sure what exactly you mean, other than a browser like firefox.
For bigger files I use the console and wget.

Torrents:
I recommend Transmission

Video:
MPlayer

Audio:
VLC Player

Other:
The console is the most useful tool, because you do pretty much anything with it. It lacks usability in some cases, but apt-get is very useful for quick installation, you should take a look at that on any ubuntu wiki. LibreOffice, Eclipse (for programming), Evince (PDF Reader), VirtualBox, Thunderbird (Email) are other typical applications I use.


Use 3 monitors w/built-in intel adapter + two old nvidia PCI cards on 10.10?

First, nvidia-xconfig will have saved a backup of your original xorg.conf file. You might check that this is so before proceeding, but even if it didn't keep a backup the old file is most likely the default anyway.

Next, if you restart X and the display is broken, make sure that you can get to another console and / or kill the X server. I recommend you test whether Ctrl+Alt+F2 works to switch to another console. It might also be a good idea to set up an ssh server on the machine if you haven't already, so that you can login even if the console is unresponsive (I've seen X misconfiguration cause X to ignore keyboard events).

Lastly, yes, there is a way to autogenerate a new xorg.conf file: delete the existing file and restart X.
X will attempt to autodetect all settings and write an xorg.conf if it does not detect one.
If it turns out that the xorg.conf generated by nvidia-xconfig does not support the Intel device and the old xorg.conf does not support the nVidia devices, you can try to diff the new file against the old one and patch the differences into the old file.


This is a question for the developers of evince instead of make it here. Please note that they remove the menubar in consciously. The issue that cause the removed of the menubar for evince is here:
https://gitlab.gnome.org/GNOME/evince/issues/433

They finally remove it here:
https://gitlab.gnome.org/GNOME/evince/commit/8bb5fce0754aa0d2dc795d2d21ec778888dc3714

As currently exist an issue for more less the same question, the place where you can ask for that feature is here:
https://gitlab.gnome.org/GNOME/evince/issues/511


Restart Wi-Fi Hotspot automatically on Ubuntu 17.04

you can do it with Network Manager.
Check the name of the connection which represents the hotspot that you want to start when its active or just guest

nmcli con show

then to make it start automatically

nmcli con mod <connection-name> connection.autoconnect yes

test it with reboot


Ubuntu 14.04 unable to locate package install libatlas-base-dev

try to do this:

make update to your package in first time and install the package after

sudo apt-get update
sudo apt-get --yes install libatlas-base-dev

it works well in ubuntu 16


How can I upload my videos to the recommended encoding settings for YouTube?

You can use HandBrake.  Handbrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs.  It converts video from nearly any format, and its free and Open Source.Handbrake

Handbrake makes converting videos in various formats, with the advantage of being a free open source tool. The program is compatible with devices such as Apple TV, iPod, iPhone, Xbox 360, PlayStation 3 and PSP.  It also gives you different settings like choosing exactly the type of audio coding (MP3, AAC, Vorbis AC3) and video (MPEG-4, Xvid, H.264, iPod, Baseline 1.3) the final file, to subtitle options and advanced video.

It has many preset formats to help you from the get go.


Install League of Legends on Ubuntu 12.04

If you duel boot windows and Linux then you should probably install LoL on Windows and then play it on Linux through Wine.

Download the rar version of LoL from HERE and extract it.


What is the recommended way to use VeraCrypt in Ubuntu?

There is user Unit 193 who prepares ready builds of VeraCrypt on Launchpad. You can easily install it by adding his repo to Ubuntu sources:

sudo add-apt-repository ppa:unit193/encryption
sudo apt update
sudo apt install veracrypt

You should be aware that this repo is not related to the software developer and because of it you can't be 100% sure what you install or update in future. However Unit 193 is Xubuntu developer and he is well known in open source community. This is enough for me to sleep well.


Black screen with installation Acer 4736Z

I would suggest to download the ISO image from the Ubuntu website and follow the instructions to install it from Live USB or CD/DVD, whichever you prefer.

This is quicker and there is a lower chance of package errors later on. Once you boot from your installation media, wait for the screen that is dark purple with a human and a keyboard, then press Enter. After that, hit F6. In the menu you get then, select "nomodeset". After that, continue with your installation.


Determine how many times a specific OS has been booted

Every time Ubuntu boots, it logs the fact in /var/log/kern.log. On my system, I see:

Dec  2 10:00:11 squid kernel: [    0.000000] Initializing cgroup subsys cpuset
Dec  2 10:00:11 squid kernel: [    0.000000] Initializing cgroup subsys cpu
Dec  2 10:00:11 squid kernel: [    0.000000] Initializing cgroup subsys cpuacct
Dec  2 10:00:11 squid kernel: [    0.000000] Linux version 3.13.0-71-generic (buildd@lgw01-09) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 (Ubuntu 3.13.0-71.114-generic 3.13.11-ckt29)
Dec  2 10:00:11 squid kernel: [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.13.0-71-generic root=UUID=88dc0c09-632f-4265-8933-a967351220ae ro quiet splash vt.handoff=7

Dec  2 10:00:11 is When, squid is my hostname, kernel: is who issued the message, [    0.000000] is time since boot(!), and the rest is the message. You could do:

zgrep 'Command line: BOOT_IMAGE=' /var/log/kern.log*

to see them all, or:

zgrep 'Command line: BOOT_IMAGE=' /var/log/kern.log* | wc -l

to count reboots.


Ubuntu 12.10 update didn't go well, OS is messed app

Ouch, that's unfortunate :-(. If I understand you correctly, you have interrupted the installation process somewhere in the middle and then fixed it from command line by using...apt-get?

Please try the following (from console CTRL+ALT+1):

sudo dpkg --configure --pending
sudo apt-get update
sudo apt-get upgrade

After that you can always try uninstalling Xorg (sudo apt-get remove xserver-xorg-core) and installing ubuntu-desktop again. It should be harmless.

OP posted his own SOLUTION

Ok, I've found the problem - AMD drivers. I tried to reinstall Ubuntu from USB disk, but I had the same problem again. So I did what Rostislav said, removed Xorg.

I removed Xorg and then reinstalled ubuntu 12.10 from usb again, this time it went well. So I installed all the things I needed again, and also the AMD driver.

I rebooted my computer after the installation, and again the same problem all the OS got messed up. So then I realized that this driver is what did the problem all along. So I opened a TTY session and uninstalled the driver, reinstalled the Xorg, and now it's all working well.


How is one supposed to stop Chromium processes?

I had the same problem. Turns out this is a feature of chromium/chrome where it leaves processes running for extensions. To turn off go to Settings-->Show Advanced Settings-->Background Apps and uncheck the "Continue running background apps when Chromium is closed" option.
Reference: https://superuser.com/questions/269385/why-does-google-chrome-leave-running-processes-behind-even-after-closing-the-bro


Springseed uses ~/.config/Springseed/ as its configuration directory. All notes seem to be stored in the /Notebooks subfolder, specifically.

Next time you are searching for folders and files belonging to a specific application you can use the locate command. I was able to find the directories above with two simple locate lookups:

locate springseed
locate Springseed


Is there a program like Microsoft Paint?

The closest MS Paint clone is Pinta.  I regard it as vastly superior to MS Paint, but it retains its simplicity.


Are there PHP bindings for indicators and notifications?

I don't think so there exists any. Although I would like to know why anyone would like to have php binding that actually makes the use of the python wrapper.


How can I find all packages that depends on another?

You should get used to using man. Hence,

$ man apt-cache

reveals

showpkg pkg...
showpkg displays information about the packages listed on the command line. Remaining arguments are package names. The available versions and reverse dependencies of each package listed are listed, as well as forward dependencies for each version. Forward (normal) dependencies are those packages upon which the package in question depends; reverse dependencies are those packages that depend upon the package in question.

Hence the command you are after is apt-cache showpkg libqt4-dev.


Cannot login to Ubuntu via either GUI or virtual terminal

Boot up your machine
press the left shift and you will see this menu

boot up in recovery mode

now with this screen

select the second last option and drop to root user, test this if it works then create a new user and delete the earlier one.

To create new user : How can I create an administrator user from the command line?


You can't delete history like this as it will delete the history of current session.

If you wan to clear your history using script use following command in your script

> ~/.bash_history

It is enough to  clear all your bash history .


Why doesn't nautilus search find anything outside of my home folder?

Please make sure that you navigate the nautilus to the parent directory of /home.

For example File System that you can search all of the file in your machine.

To perform search just simply press Ctrl+F.

Please note that: I'm using Ubuntu 12.04 with GNOME 3 Classic.

Source


Can I mount a Wubi .disk image in a new Wubi installation?

Ideally you'd use a live CD - since you might be able to repair the current Wubi install. If you need data off it you could also try ext2read, which gives read-only access to the root.disk from Windows.

If you decide to access via a new Wubi install, it's critical to copy the *.disk files outside the \ubuntu directory before installing, since the first step of the Wubi install is to remove any existing install - and that deletes everything. Normally (on NTFS) there is only the root.disk that you care about, but if you install on a FAT32 partition or created a separate virtual disk for /home you can have others.

Let's say you moved (quicker than copy) the root.disk to \ubuntubackup\root.disk. Then when you install a fresh Wubi on the same 'drive', you can mount the old one as follows:

sudo mount -o loop /host/ubuntubackup/root.disk /mnt

Then you can use nautilus (or some other file browser) to view the files e.g. from a command prompt you could enter: nautilus /mnt/home

Attempting repairs

Wubi problems are often caused by hard reboots, perhaps after an apparent freeze. Forced shutdowns can damage any filesystem, but Wubi is more sensitive since it's whole partition is virtual, the root.disk. The steps to fix are:

Run chkdsk /f (or /r) from Windows. The corruption can be on NTFS and/or on the ext3/4 filesystem within the root.disk. In your case, you get past the grub menu, so it's probably only the ext3/4 filesystem, but I might run chkdsk anyway.
After chkdsk check that the root.disk is still there. This may sound strange, but Windows will sometimes move files it repairs to a hidden \found.000 directory. It may rename the root.disk to chk0000.chk so look for it by size (5-30GB). See this for more info.
Now run fsck on the root.disk. You'll need to boot an Ubuntu CD or USB for this. Then mount the host NTFS partition. E.g. if your root.disk is on /dev/sda3:

sudo mount /dev/sda3 /mnt

sudo fsck /mnt/ubuntu/disks/root.disk

Other possibilities

You could try booting an older kernel.
Boot in recovery mode.
Check there's enough free space to boot (by mounting the root.disk from the live CD and then freeing up space if required, or resizing on the fly).


Assuming that you're running some version of Ubuntu (you should have included this information), on some laptop (you should have included this information), I'll try to help. YMMV

If you read man acpid, and snoop further, you'll find that /etc/acpi/events/lidbtn tells the "Advanced Configuration and Power Interface event Daemon" to execute/etc/acpi/lid.sh.

/etc/acpi/lid.sh checks for the existence of an executable file called /etc/acpi/local/lid.sh.pre before it does its work, and /etc/acpi/local/lid.sh.post after its work, and (in both cases) executes the file.

You'll have to begin by creating the directory /etc/acpi/local, then commands in whichever file seems best.


This is the official Eclipse PPA.

If I remember correctly there are licensing issues around which parts of Eclipse are freely redistributable.

No, Juno is not in that PPA.
I've never tried rolling up Eclipse.


This post seemed to help me uninstalling enum34:
http://installion.co.uk/ubuntu/xenial/main/p/python-enum34/uninstall/index.html


It sounds like you are running with the wrong keymap, eg using a European keyboard but with the keymap set to US English, or some other combination.

Try the following

sudo dpkg-reconfigure keyboard-configuration
sudo apt-get install console-common
sudo dpkg-reconfigure console-data


Ubuntu 18.04 EM7455 works only after suspend

I have a very similar problem (sierra modem, Thinkpad X240, Ubuntu 18.04) but in my case it is counterwise – ModemManager stops working after suspending (closing the lid) three times in row. After that I cannot suspend anymore.
When it happens mmcli -L gives:

Found 1 modems:
    /org/freedesktop/ModemManager1/Modem/9 [Sierra] MBIM [1199:A001]

And mmcli -m 9:

  Status   |           lock: 'none'
           | unlock retries: 'sim-pin (3)'
           |          state: 'registered'
           |    power state: 'on'
           |    access tech: 'gprs, lte'
           | signal quality: '0' (cached)

At first glance restarting ModemManager (sudo service ModemManager restart or systemcl) doesn't resolve the problem. After restarting ModemManager, mmcli -L:

Found 1 modems:
    /org/freedesktop/ModemManager1/Modem/0 [Sierra] MBIM [1199:A001]

mmcli -m 0:

 Status   |           lock: 'none'
           | unlock retries: 'sim-pin (3)'
           |          state: 'registered'
           |    power state: 'on'
           |    access tech: 'lte'
           | signal quality: '0' (cached)

But if I wait a few seconds till ModemManager indicator shows up and then click connect, indicator disappears for a moment and starts loading and connecting once again and this time it starts working properly.

Found 1 modems:
    /org/freedesktop/ModemManager1/Modem/1 [Sierra] MBIM [1199:A001]

mmcli -m 1:

  Status   |           lock: 'none'
           | unlock retries: 'sim-pin (3)'
           |          state: 'connected'
           |    power state: 'on'
           |    access tech: 'lte'
           | signal quality: '0' (cached)

On Ubuntu 16.04 ModemManager used to work flawlessly.


I discovered that it was a power issue associated with our building.  The PSU which the serve was hooked up to was faulty and wasn't operating properly when the building would go through it's semi-weekly power flicker.  Anywho, buying a new PSU resolved the issue.


How to download the Official man pages from the manpages.Ubuntu.com for Offline viewing

The man pages are usually get installed with software. So, If you install a software with manpages, the manpages will be automatically installed.

Manual pages in a Web browser

By installing man2html

You can install man2html package to your computer to view the manual pages in your favorite browser:

sudo apt-get install man2html

By installing doc-central

There is another tool which view manpages in browser, it is called doccentral. You can install it with the following command:

sudo apt-get install doc-central

Downloading manual pages:

You can download the latest manual pages from here. The size was also included in the page

Manual pages in PDF !:

Yes, you can even get the manual pages in pdf file format. for example, if you want to generate manual page for man the command will be :

man -t man | ps2pdf - man.pdf.

This will generate a manual page, named man.pdf in the current directory of the terminal. replace man with your desired one, such as grep or apt-get etc.

Info pages in browser.

Though it is not asked in the question, I include it as general reference.

You can also have the GNU info pages (which are more elaborate and helpful) in a web browser by installing info2www package. The command is below:

sudo apt-get install info2www

Hope this will help


openafs-client fails to upgrade on newest kernel 3.13.0-32 (ubuntu 12.04)

I solved this problem by installing the openafs PPA from https://launchpad.net/~openafs/+archive/ubuntu/stable and starting openafs:

sudo /etc/init.d/openafs-client start


No you can't,

Each flavor of Ubuntu comes with a set of pre-installed applications, what I can suggest you to do is a fresh install.

You can get a backup from your personal files, and a list of all installed applications on your Ubuntu studio:

dpkg --get-selections

Then after your installation, add these packages to your Ubuntu, you can also get a backup from /var/cache/apt/archives/ to decrease your download size.


Create local copy of Ubuntu remote repository

Easiest way to copy everything is to use rsync :

 rsync -a --bwlimit=128 rsync://archive.ubuntu.com/ubuntu /media/mirror/ubuntu

Here's more info on the matter : https://help.ubuntu.com/community/Rsyncmirror

Rsync is a great tool.

EDIT to add it as your default repository to your hosts :

Publish the mirror on the Apache server
This is the easy part. Assuming that you have Apache configured to follow symbolic links, all you need to do is add a symbolic link to your mirror!

 cd /var/www/
 ln /media/mirror/ubuntu -s

You can test to see if this was successful by using a web browser to visit the site. Goto ubuntumirror.mydomain/ubuntu

You should see some directories named "dists", "indices", "pool", "project", and a file named "ls-lR.gz".

Update Your Clients
Now that you have your very own Ubuntu Mirror, you need to point all of your workstations and servers to this mirror for their updates. This mirror will be good for main, universe, multi-verse, and restricted.

Replace the server name for the Ubuntu Archives with your local mirror. The existing server will likely be something like us.ubuntu.com

If your server is called ubuntumirror.mydomain then your /etc/apt/sources.list file should look something like this

 deb http://ubuntumirror.mydomain/ubuntu/ feisty main restricted
 deb-src http://ubuntumirror.mydomain/ubuntu/ feisty main restricted

 deb http://ubuntumirror.mydomain/ubuntu/ feisty-updates main restricted
 deb-src http://ubuntumirror.mydomain/ubuntu/ feisty-updates main restricted

You can test your mirror by running

 # apt-get update

You should see some output referencing your server, similar to this:

 Get:1 http://ubuntumirror.mydomain feisty Release.gpg [191B]
 Ign http://ubuntumirror.mydomain feisty/main Translation-en_US
 Ign http://ubuntumirror.mydomain feisty/restricted Translation-en_US
 Get:2 http://ubuntumirror.mydomain feisty-updates Release.gpg [191B]
 Ign http://ubuntumirror.mydomain feisty-updates/main Translation-en_US
 Ign http://ubuntumirror.mydomain feisty-updates/restricted Translation-en_US


Suspend/Hibernate/restore and Reboot problems 15.04 Dell Inspiron 3451

Is this laptop running on the newer Intel Atom SoC CPUs by any chance (Celeron / Pentium Nxxx)?

Did you experience problems while installing the system or did you take any advanced options (turning of ACPI before the installation, etc.)?

As far as I know, this problem is common with the above mentioned processors and the only solution I've found so far was to blacklist the module "dw_dmac", by doing the following:

Open a terminal window, then enter:

sudo nano /etc/modprobe.d/blacklist.conf

In the opened file, add the following lines:

blacklist dw_dmac
blacklist dw_dmac_core

Then save with Ctrl+O and close the file with Ctrl+X.

Now, hibernation should work.

If this does not work for you, I don't see an option for you besides reinstalling the system. You could either try the new kernel on 15.10 when it is released tomorrow or go back to 12.04, which should work reliably for you, if you are not in need of using a newer version, at least for a while.


How do I install Brother HL-2280dw network printer?

My Brother HL2280DW is pinned on the network.  My new new 16.04 Ubuntu instance was configured by:

Start Gear (upper right corner) => System settings => Printer => Add button

The 2280 was not an option, so I recommend downloading and installing the driver per the OEM.
Driver install instructions:

http://support.brother.com/g/b/downloadhowto.aspx?c=us_ot&lang=en&prod=hl2280dw_us&os=128&dlid=dlf006893_000&flang=4&type3=625

Invoke the installation script: not the model number is appended as an argument.

sudo bash linux-brprinter-installer-2.2.1-1 HL-2280D

When faced with selecting the connection type and its configuration:  the printer is network (LAN) configured so I selected the IP address option.

  Will you specify the Device URI? [Y/n] ->Y

Select option 11 => specify IP address

Type in the address and script will prompt to print test page

Ring the bell and increment the counter if you were successful with setting up your printer.


Is your keyboard layout correct? Go into system settings; I think you click the little keyboard icon near the bottom of image three on WikiHow (shown below), and compare the image displayed to the actual keyboard in front of you. If they don't match perfectly, select the correct keyboard layout by following the instructions in that article. (I'm using Debian, so I can't check this now, but I think it's correct.)


How to boot as root without password on a headless Ubuntu 11.04?

Have you set the root password yet? On default ubuntu installations, the root password usually isn't set. You could set it by sudo passwd. And then use that password for logging in as root. And as for the first part of your question, you could add the program to init scripts and it will run automatically on startup witout any login at all.


Wacom Pressure in Photoshop CS5 Using Wine

the answer isn't easy, you need to develop or pay someone to develop on your behalf a wine driver which can use pressure information from xinput devices and deliver them to windows programs in the way they expect.

This project might take a lot of time or a lot of money to get written. But I know that it has not yet been written and needs artists to step up to fix the problem.


How to list all files in a hard disk with 'find'?

You can use find's -printf action to output those attributes directly e.g.

find "$PWD" -printf '%s\t%Tx\t%h\t%P\n'

%s: File's size in bytes.
%Tx: File's last modification time, in locale's date representation
%h: Leading directories of file's name
%P: File's name with the name of the command line argument under which it was found removed.

The directory path (%h) is printed relative to the command-line path argument with which the find command is invoked: by specifying the working directory using $PWD, it becomes absolute.


Can't login Ubuntu 16.04 (Gnome) after logout

I had a similar issue having 2 keyboards English and Arabic on my Ubuntu 18.04.

I switched from LightDM to GDM3 on Ubuntu 18.04 which helped. Now I can switch language from the login screen.

if you don't have GDM3 you can install with

sudo apt-get install gdm3

to switch from LightDM to GDM3 run:

sudo dpkg-reconfigure lightdm

Enter the password if asked then in the dialog click ok and then select GDM3 and press ok again.

Restart the system.

Hope that helps!


How to fix syslinux error creating a bootable USB stick in Windows?

I also used the universal usb installer, and also got that problem.

Try reformat the drive to NTFS and try again.  It should work.


Ubuntu. No Ethernet. No wireless. No optical drive. How to install wireless drivers?

If it has a USB drive you can install drivers from another computer, but I don't know where you could download them.


The Ubuntu installer will always create and format an ext4 partition for itself unless it is explicitly told another partition scheme.  Look at the Partioning Wiki for more information.


Ubuntu 14.04 login crash/black screen after latest update

1- First, you must uninstall nvidia packages. apt-get purge nvidia-*
2- Try re-install ubuntu-desktop.
3- Reconfigure lightdm package. (dpkg-reconfigure lightdm)
4- Reboot

It must work.


psql command "Error: PostgreSQL version 12 is not installed"

I've reproduced your case and here's how I resolved it:

Use sudo apt purge postgresql-12 answering Yes if you want to remove it completely:

  ┌───────────────────────────────────────────────────────────────────┤ Configuring postgresql-11 ├────────────────────────────────────────────────────────────────────┐
  │                                                                                │
  │ Removing the PostgreSQL server package will leave existing database clusters intact, i.e. their configuration, data, and log directories will not be removed. On   │
  │ purging the package, the directories can optionally be removed.                                                                                │
  │                                                                                │
  │ Remove PostgreSQL directories when package is purged?                                                                                │
  │                                                                                │
  │                                                  <Yes>                                                     <No>                                                    │
  │                                                                                │
  └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

After this:

sudo psql --version
psql (PostgreSQL) 11.7 (Ubuntu 11.7-2.pgdg19.10+1)


Is it safe to use hibernation in Ubuntu frequently?

It is a known fact that frequent hibernation could slow down a Windows OS due to memory dumps and I have also experienced it myself. Will this be the same in Ubuntu?

Just from personal experience: no. But it should also not do this on Windows. Hibernation by itself should not have any impact on a system since hibernation is only a concern during boots and shutdowns. It basically dumps your machine state to disk during shutdown and loads it back into memory on boot.

A couple of things though: hibernation often does not work out of the box and that is why it is disabled on Ubuntu by default (Suspend works better and was chosen as the default option). It really depends on your hardware, and if it is not compatible it is impossible to get working.

But when it does work it does the job and it will not slow down your system. A hibernation file needs space on a system so a system that is near full does get a performance hit but that is not really a problem with hibernation. A system that needs to swap to get things done will perform less than optimal. That is the same for Linux and Windows but probably more so for a fragmented disk and in the past Linux has had less issues with fragmentation (not sure how Windows is doing in that regard nowadays).


My next step was going to be reinstalling the packages, but upon looking through apt I noticed I did not have the meta package installed. Checked with:
aptitude search libreoffice | grep ^i

Running the following fixed it for me:
sudo apt install libreoffice


~/ is shorthand for the current user's home folder. So if your user name is "foobar" it expands to /home/foobar/


Windows partion not showing in virtual Ubuntu 16.0

You are using virtual box (as this line indicates: Model: ATA VBOX HARDDISK (scsi)). Virtual machine isolates host machine (Windows 7 in your case) from guest machine (Ubuntu in your case); this means that you can't see the hard disk of Windows 7 from Ubuntu.

If you want to share some files between these machines you can use VirtualBox sharing system or other network based file sharing like: SMB, FTP, SSHFS, ...


you should choose: EXT4 file system, and / as a mount point. More details: HowToPartition


GNU tar (comes with Ubuntu) has the needed algorithm built within to detect the compression algorithm used on the archive file.

So you can just do:

tar -xf abc.tar.bz2

For verbosity, add -v:

tar -xvf abc.tar.bz2

If you want, you can let tar know that it is obviously a bzip2 compressed archive using -j (--bzip2):

tar -xvjf abc.tar.bz2

If you are into BSD style syntax (without leading -) rather than the UNIX one:

tar xvjf abc.tar.bz2


How to install mpeg-4 aac and h.264 decoder on Ubuntu 10.10?

You will have to download codecs. To install the proprietary codecs type the following in a terminal window.

sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse

Once you have installed these codecs you will be able to play nearly any audio/video format.

I also recommend you to Upgrade to 12.04 LTS.


How to format my dual boot HDD with windows and ubuntu?

If you installed Ubuntu with wubi, you don't have a separate partition for it. The Ubuntu installation resides in folders on your main drive (usually C:).

To remove Ubuntu, delete the folders called C:\ubuntu and C:\wubildr*

After that  you can use the built-in bcdedit command  to edit the boot menu. To use bcdedit, run cmd.exe as an administrator, then enter bcdedit to show all boot entries, note the {GUID} specified for the Ubuntu entry, and then remove it:

 bcdedit /delete {GUID}

To remove Wubi from the add/remove list, delete the registry key:

 HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi

After deleting the registry key, Ubuntu may still appear in the program list. If this is the case, you may be asked if you would like to remove the item from the list.


Extact video file from quicktime web player

No, what you have there is not a video file link. It is a link to a php site which takes the a path to the video as an argument. This path however might as well be local on the remote server. Usually this is done to prevent you from doing what you intended to do. You can only try to run the link on your mac again and see whether there is a real URL in the site sent to you by the server. If not you wont easily get the video streamed into a file.


VirtualBox doesn't display menu bar after login

Yes, it appears to be a bug in VirtualBox; it only occurs when you're using Unity hardware accelerated. If on the login screen you choose "Ubuntu 2D", the menu will be visible again.

The menu appears to be drawn under the 3D accelerated window - if you have multimonitor on a Windows host, you'll see that the Windows Taskbar also doesn't show if you change focus to another window while leaving VirtualBox in fullscreen mode on the main monitor.

I'm not sure if the bug is in VirtualBox or the host's display drivers.


sudo apt-get install gnome-shell

then choose Gnome from start menu at login Gnome SHell


The Ubuntu 14.04 installation media seems to not be properly configured.
Burn the Ubuntu ISO image to a DVD or create an USB installation media.

To create the media in a running Ubuntu system, use Ubuntu Disks tool.
Open Disks - select Restore Disk Image from the menu on the top right.
Choose the ISO file and the USB drive to write it to and start restoring.

To create the USB media from a running Windows system,
open command prompt as administrator and execute:

diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 (quick)
assign letter=**
exit

Note : * = number of USB drive | ** = select a free drive letter
Mount the Ubuntu ISO and copy the content to the USB drive.


This output

rc  linux-image-4.15.0-29-generic         4.15.0-29.31

means that the package linux-image-4.15.0-29-generic is removed (r) but the configurations files are still installed (c).

It was probably removed manually so apt-get won't reinstall it on upgrade.

You can simply do

apt-get install linux-image-4.15.0-29-generic

to re-install it, or better try reinstalling the linux-image-generic package which depends on the most recent kernel:

apt-get install --reinstall linux-image-generic


Can a directory's mtime be older than that of file inside?

On linux directory modification time change if you:

add a new file
remove an existent a file
or rename a file in it

If you change content of existent file, this is not reflected up to directory.

Because of this, I suggest to use these commands:

    find /path/to/folder -type f -mtime +30 -delete

this command remove recursively file older than 30 days and preserve folder.

    find /path/to/folder -type d -empty -delete

this remove empty directory if any.

Source:

Directory last modified date

How do I delete all empty directories in a directory from the command line?


Launch Logoff Screen Using Terminal On Lubuntu 13.10


Command works in terminal, but not in script

My guess avconv needs pseudo-terminal.
And you don't have it if started from cron.

Try to set env var AV_LOG_FORCE_NOCOLOR=1. (taken from avconv man page)


Contrast Getting Reset to its Maxmum Value After Restarting System

I faced the same problem on my Dell XPS. Currently there is no other way to save it according to brightness key.

Find your brightness control path, execute

ls /sys/class/backlight/*/brightness

the output will be something like /sys/class/backlight/acpi_video0/brightness
Copy that path and try executing

sudo su -c 'echo 5 > THE_PATH_FROM_FIRST_COMMAND'

it will be like ->  sudo su -c 'echo 5 > /sys/class/backlight/acpi_video0/brightness'

If it succed,try with different value for 5 and choose your preference level.

Now edit /etc/rc.local file to execute this command at boot up.

gksu gedit /etc/rc.local

Just before exit in the file, add the following line,

echo 5 > THE_PATH_FROM_FIRST_COMMAND

You can change value 5 to anything.

Linked Question:

How do I prevent Ubuntu from changing my laptop screen brightness level?


Adding forcepae to bootable usb stick from ubuntu-14.04.1-desktop-i386.iso

I have flagged this as a duplicate question - specifically for your system, look at this link, workaround #4

You may find very poor performance with Ubuntu 14.04.1 on your system:  The small amount of RAM that you have, along with the Pentium M processor may yield less performance than you want.


fontconfig-infinality causes 13.04 boot failure

Boot into recovery mode like this, and then when it gives you root@computername~#, type apt-get purge fontconfig-infinality then add-apt-repository -r ppa:no1wantdthisname/ppa. This should completely remove fontconfig-infinality from your system, along with its PPA.


webex is not working in Ubuntu 14.04 Please Help

Finally It resolved for me

Install Oracle Java to solve this issue

Press Ctrl+Alt+T on your keyboard to open a terminal window. When it opens, copy and paste the command below and hit enter. Input your user password when prompts and it will add the PPA repository into your system.

sudo add-apt-repository ppa:webupd8team/java

After that, update package lists via:

sudo apt-get update

To install Oracle Java 8, run:

sudo apt-get install oracle-java8-installer

Change the number 8 to 6 (or 7) in the code to install Java 6 (or 7).

While installation, you’ll be asked to agree the license and then the installer start downloading Java file from oracle website and install it on your system.

To set the default Java, run:

sudo apt-get install oracle-java8-set-default

Also change number 8 to the Java version you want.


Ubuntu 18.04.01 LTS No Screen Sharing Option

You are likely talking about minimal installation of Ubuntu 18.04, which doesn't provide vino. So just:

  sudo apt-get install vino

the option is back!


How to make my laptop bootable to windows 8 and ubuntu 12.04?

Your problem is that boot-repair did not update GRUB2 correctly. Luckily, there is a very easy fix for this. Here's what you can do:

Boot to Ubuntu.
Press Ctrl+Alt+T To start a Terminal emulator.
Type sudo update-grub and press Enter.
Once the command is finished, reboot.

You should now see Windows 8 as an option in your boot menu. Good luck and have fun with Ubuntu!


Screenshot of the Gnome Shell Activities screen

If other things are failing, use the import command --

import -window root screenshot.jpg

It will pick up things that often aren't found by using gnome-screenshot or shutter, etc.


Unable to update Intel HD graphics driver

You can ignore the Warnings (W) but you have to remove the ppa with errors (E), because they are not available to Xenial.

In order to do so, you can either manually remove the .list files from /etc/apt/sources.list.d or (preferred) via the GUI program "Software and Updates" (you can find it in the Dash).

Please note that the Intel graphic drivers that you can take from that repository do not yet support 16.04.


Mounting btrfs partition with compression enabled

It is compressed by default. It check compressibility when you copy something if it seems compressible it will compress it zstd is default. If you force it documentation says you will still gain %20 space efficiency with %5 loss of speed in general conditions ...


Upload error in Launchpad - source file already exists

You already have this version in your PPA.

So you need to change it to something like 2.3.4-0~202004250741~ubuntu20.04.1ppa1 and upload.


Redshift - Enable location services on ubuntu 16.04

From the terminal try:

redshift -l list

You should see: geoclue2

Try changing location provider to geoclue2

If you have redshift config file under ~/.config/redshift.conf this can be changed there.


Partition for dual boot UEFI for Windows and Ubuntu

I recommend you read the following two pages:

The Ubuntu UEFI wiki
My Linux on UEFI: A Quick Installation Guide

If you still have questions after reading these pages, either post another question or edit this one and make a comment to this answer so that I'll notice you've edited your question.


Bonding + Bridge : traffic passing through the wrong interface

After more searching, it appears the root of my problem is what is discussed here :

Serverfault : arp responses always go out a sinle NIC

As this question is much more precise and has several answers, that's where you should look if you have the same problem than me


Trying to use 'xdotool' in a bin/bash shell - help?

This should work:

xdotool key Tab Tab Tab Return

or:

xdotool key Tab Tab Tab space


How to fix graphics artefacts in Tuxguitar opensource ATI drivers

Same problem here, with my intel onchip graphics, or with the nvidia one.
Already reported here : http://sourceforge.net/tracker/?func=detail&aid=3593773&group_id=155855&atid=797446, but we may confirm it with our graphic cards.


Read Only usb stick that won't let me do anything to it

Commands like rm and chmod are done on a mounted file-system. So if the file-system is read only those do not work. What you need to do is to mount the file-system as writeable.

Some USB sticks have a switch on the stick to mount them read-only. Maybe that is the
reason. It could also just be broken or damaged due to not correctly umounting it.

Before you do anything: copy the files over from the stick.

If it is not a hardware switch  unplug and plug the USB stick and issue a

dmesg | grep -i panic

This will show you any panic messages. If you are seeing alot of them related to the USB stick and if it is a FAT partition you can use dosfsck to fix it.

You can find out how it is mounted with

mount

and use

dosfsck -a /dev/sd{xn}

to fix an MS-DOS partition table or sudo mkfs.vfat /dev/sd{xn} to format the disc. Where {xn} is a letter and digit you got with the mount command.

You can also use gparted to format it by the way.


AFAIK, the chapters are defined by level 1 headings. So, if you insert a ToC after a level 1 heading and select "Create for -> Chapter", the ToC will list all headings below the "current" level 1 heading.


Why .swf files not opening in Chromium's Flash Player of Ubuntu 16.04?

Pepperflash is for chromium browser only. If you have this installed, you could try:

$ sudo apt-get update
$ sudo apt-get remove browser-plugin-freshplayer-pepperflash pepperflashpulgin-nonfree

and then. again:

$ sudo apt-get install browser-plugin-freshplayer-pepperflash


The page https://doc.ubuntu-fr.org/tutoriel/installer_imprimante_preinstalles mentions (translation by me):

(Particularity of Canon printers: it is necessary to install the package cups-backend-bjnp)

After that, the printer is recognized automatically by Ubuntu that marks it as "Cannon iP3300 series - CUPS+Gutenprint v5.3.3". Everything, including colours, then works out of the box.


Lubuntu hibernate Xfce Power Manager "not authorized"

Follow the instructions for Ubuntu: How do I hibernate my computer?

That is, test first, then create a file /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla with the following content:

[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes

Note that in order to create this file you need root permissions. So, for instance, use sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla


Ubuntu 18.04 broken install problem with libnvidia-common-450 package

I solved this issue by using the the following command to reinstall libnvidia-common-450-server:
sudo apt-get -o Dpkg::Options::="--force-overwrite" install -f libnvidia-common-450-server

The problem started after following an online article to install nvidia drivers.  This was the error I was getting:
libnvidia-gl-450-server: Depends: libnvidia-common-450-server but it
is not installed Depends: libgcc1 (>= 1:4.2) but
1:8.4.0-1ubuntu1~18.04 is installed libnvidia-gl-450-server:i386:
Depends: libnvidia-common-450-server but it is not installed


Aquaris E4.5 Ubuntu Edition: is it possible to call from terminal?

Just launches the application with the number:

dialer-app tel:///666 --desktop_file_hint=/usr/share/applications/dialer-app.desktop

(how to run apps on Mir from command line: how do I run a mir application from a command line?)

In the source code:

        ...
        // do not call the number directly, instead only populate the dialpad view
        QMetaObject::invokeMethod(mainView, "populateDialpad", Q_ARG(QVariant, value), Q_ARG(QVariant, QString()));
        ...


How can I simulate a right-click in Kubuntu 10.10 when using a touchscreen?

Have you checked under System Settings > Input Devices > Touchpad (Tapping tab)?

I don't have a table PC but my laptop has a touchpad that gives options to make parts of the pad behave as a button.


How to Install Windows Media Player 11 on Wine

This is a Half-Answer. I say half since you will not be able to visualize the theme of WMP11 but you will be able to play music and videos (Videos in this case only in fullcreen). If this is something you think solves the problem then accept, if not (Most likely will not since it is a weird way of installing it) then feel free to comment on it.

(Tested on my PC a laptop and in a last sorry excuse for PC just to make sure the procedure can repeat itself)

Steps to install Windows Media Player:

Pre-Requesites:

Have Wine 1.3.33+
Have winecfg opened all the time since you will be using it a lot.
Configure winecfg in the video tab to a virtual window. In my case I set this at 1024x768.
Configure winecfg to use Windows 2003
No need to configure any libraries
Pray to the Flying Spaghetti Monster and let yourself be touched by his noodly appendage

After all that is made (I also have PlayOnLinux installed. I mention it just in case POL installed something in Wine and I did not notice or didn't tell me about it ^^) we can proceed with WMP11:

Download the WMP11 version for Windows XP (I only tested this one. It is about 25MB)
Having winecfg already opened and configure to emulate a virtual desktop of at least 1024x768 (So to not use fullscreen) open a terminal in Ubuntu (Outside wine) and go where the WMP11 executable is.
Run wine wmp11-windowsxp-x86-enu.exe where the downloaded installer is. At this point winecfg should be configure in Windows 2003 mode. You will get the welcome screen, click on validate and wait for it. In Windows 2003 mode it will skip validation and go to the EULA. DO NOT ACCEPT THE EULA YET!.
Go to the winecfg window (which both should be sharing, winecfg and WMP11) and change the system from Windows 2003 to XP. Save it but don't close winecfg yet.
Continue with the installation of WMP11.
You have a chance of finishing the installation with no problem, but if it hangs (Which probably will) in 25%, 50%, 75% do not worry. Just go to the terminal that you used wine to execute wmp11 and press CTRL+C. After that, just in case type wineserver -k to kill any remaining wine related processes.
Repeat steps 3 through 5 until the installation finishes completely remembering that to start WMP11 you need to have winecfg configured to Windows 2003 and after the validation, change it back to Windows XP to continue the installation.
Assuming you got to the end of the installation it will ALWAYS say "You have failed!. The installation went wrong and did not survive. Kitties will die". Do not worry about the "did not complete part" at the end of the installation. It actually finished. At least looking from a functionality perspective.
Go to the WMP11 folder inside the wine directory where the installer "installed" the WMP folder. Setup winecfg for Windows XP and run wmplayer.exe (You can run it from Nautilus). In my case it is in /home/cyrex/.wine/drive_c/Program Files/Windows Media Player. Remember to not close winecfg since we are not done yet with it.
WMP11 will open but it will be horrible as seen here:

Press Enter 4 or 5 times to accept something that you can not see. I do not remember how many. Just do 5 and that should be enough.
Again, close WMP11. run wineserver -k just to make sure.
Change winecfg from Windows XP to Windows 7.
Open wmplayer.exe again. This time you should see a little bit more stuff like here:

And one last time, close WMP11. run wineserver -k and change winecfg from Windows 7 to FINALLY Windows XP where it will remain. NOW you can close winecfg.

That is all. The option to run WMP11 can be found in the Open With option when right clicking in Nautilus, as seen here:

You can hear music, add mp3 lists and hear all songs from the list as shown here:

Lastly you CAN see a movie but you need to make it fullscreen to see it. Just press ALT+ENTER for fullscreen. The menu below while fullscreen will not work, instead just right click the video and the context menu should help. As shown here:


ubuntu not shown as boot option when installed with windows 8

I would recommend the following:

Plug in the USB drive containing your Ubuntu installer.
Change the boot order so that it boots from USB.
Boot to the Ubuntu USB drive.
Select "Try Ubuntu without installing".
Open a terminal window by pressing "CTRL+ALT+T".
Run the following commands (in order) to install Boot-Repair:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

Open Boot-Repair from the Dash.
Click the "Recommended repair" button.
Reboot without installing Ubuntu.
Select your operating system from the list using the arrow keys on your keyboard.

The steps above should install GRUB2, the boot loader used by Ubuntu, to your Master Boot Record (MBR). Once this is done, you will reboot your system and should be able to select either Ubuntu or Windows from the GRUB2 list using the arrow keys on your keyboard.

The above steps are a concise version of the steps found at the Ubuntu Boot-Repair Community Help Wiki page.


Is there a tl;dr page for the Ubuntu Online Summit?

No, there is no page summarizing the event itself. There is however, the final plenary, which is the track leads presenting the summaries. You can watch the video on YouTube.


How to install asterisk 1.8 + freepbx 2.9 + nginx + php-fpm?

First make sure you are up to date, install nginx, php-cli, and then php-fpm/cgi.
Afterward, edit config files. The config files obviously can be quite different, for example, if you are using a framework like CodeIgniter; but I don't think FreePBX uses a framework.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx
sudo apt-get install php5-cli
sudo apt-get install php5-fpm php5-cgi
sudo vim /etc/nginx/nginx.conf

Here is /etc/nginx/nginx.conf:

# There are many more options to tweak nginx... bare bones follows:
user www-data;
worker_processes 4; # max_clients = worker_processes * worker_connections
worker_rlimit_nofile 8192; # file descriptors are > than worker_connections
events {
    worker_connections 8000; # provide (8000 * cpu_cores) connections
}
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
http {
    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    # Define access log format.
    log_format main '$remote_addr - $remote_user [$time_local] $status '
            '"$request" $body_bytes_sent "$http_referer" '
            '"$http_user_agent" "$http_x_forwarded_for"';
    access_log /var/log/nginx/access.log;

    keepalive_timeout 20;
    sendfile on; # Send static files with nginx.

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}

Edit the fastcgi_params file.

sudo vim /etc/nginx/fastcgi_params

Here is /etc/nginx/fastcgi_params:

fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;
fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI       $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;
fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param  REDIRECT_STATUS    200;

# Enable PHP $_SERVER['HTTPS'] variable (will equal TLSv1, not "on")
fastcgi_param HTTPS $ssl_protocol;

Edit the website definition file.

sudo vim /etc/nginx/sites-available/default

Here is the /etc/nginx/sites-available/default file:

server {
    listen 80;
    server_name www.example.com;
    charset utf-8;

    # http://www.chromium.org/developers/how-tos/chrome-frame-getting-started
    add_header "X-UA-Compatible" "IE=Edge,chrome=1";

    location / {
        root   /var/www/public;
        index index.php;
    }

    # what to do with static files
    location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
        access_log off;
        expires 30d;
        root /var/www/public;
    }

    # what to do with php files
    location ~ .php$ {
        fastcgi_index     index.php;
        include           /etc/nginx/fastcgi_params;
        keepalive_timeout 0;
        fastcgi_param     SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_pass      127.0.0.1:9000;

    }
}

Create the website root directory and default document.

sudo mkdir /var/www/public
sudo vim /var/www/public/index.php

Here is the /var/www/public/index.php file:

<?php phpinfo() ?>

Restart nginx.

sudo /etc/init.d/nginx restart

Load the site in a browser to see if it is working. On Ubuntu server with no GUI?

sudo apt-get install links
links http://www.example.com/

You should see the result of phpinfo().

Once you see phpinfo() working, follow the compilation instructions for Asterisk.


How to create autoconnect wired PPPoE connection?

In my situation, I wasn't able to create DSL connection in network-manager in ubuntu 17.10. So, I used pppoeconf and it doesn't connect automatically. But Hi-Angel's comment solved my problem and Now I am able to create a DSL connection in network-manager and it connects automatically.

Hi-Angel's answer


Ubuntu 18.04, Arduino 1.8.5, NodeMCU v1 will not flash even with all requirements met. Why?

There is a bug in Arduino 1.8.5 Linux. Updating to Arduino 1.8.6 Linux resolved my problem. If anyone else is having this issue, please update or downgrade to 1.8.4. Hope this helps someone else.


Can't upgrade from Ubuntu 10.10 to latest version

You're misspelling the command (and also passing flags to it incorrectly).

Don't run upgrade-manager-c-d. Either:

Run update-manager -c -d instead, if you want to perform the upgrade with a graphical utility. (This is probably what you want.) That is, the command contains the word update rather than upgrade, and spaces before the dashes are required. Or
run do-release-upgrade -d instead, if you want to perform the upgrade entirely from the command line.

(There are two main causes of confusion surrounding when spaces have to be used in commands, in Ubuntu. You might have intended to type the command with spaces; that is, it might a typo. Or you may be used to Windows, where command-line flags starting with / needn't be preceded by a space. For example, dir/s and dir /s have the same effect, on the Windows command prompt. In Ubuntu, flags starting with - do need to be preceded by whitespace.)

Also, it is odd that it looked for the command in your home directory. This suggests you may be starting the command with something like ./, that is, that you may be running, ./update-manager. Basically the only time you need to start a command with ./ is when you are deliberately attempting to execute a file you know is located in you current directory and not provided as part of Ubuntu.

Since Ubuntu 10.10 is end-of-life (and has been for some time), you will probably need to follow these instructions before attempting the upgrade:

How to install software or upgrade from an old unsupported release?

That explains how to add the old-releases software sources. Since 10.10 is so old, you may need to perform multiple upgrades: 12.04 is the lowest release with current desktop support.

10.10 → 11.04 → 11.10 → 12.04.

Once you get to 12.04, you can upgrade to 14.04 directly (if you wish), since 12.04 and 14.04 are both LTS releases. Or you can stay with 12.04--because it is an Long Term Support release, it won't go end-of-life until April 2017.

Especially if your Ubuntu system is only lightly used and lightly customized, you might prefer to reinstall than to perform multiple upgrades. You should of course always have backups made of documents and other important files, but if you decide to reinstall Ubuntu, it's especially important that such backups exist and are current.


You need to properly configure network manager. Under ipv4 settings, select dhcp only and enter the name servers you wish to use.

You need to make sure then information you are entering is correct (AA:BB:CC:DD -> should that be AA.BB.CC.DD ?)

If you are entering the correct information , and resolv.conf is correct, did you enable your firewall (are you blocking dns traffic)?


Mouse scroll wheel is in a direction opposite to Windows

Yes, the problem is now solved. I used the tip suggested in the following link: http://maketecheasier.com/reverse-mouse-scrolling-direction-in-ubuntu/:

I created a file called ~/.Xmodmap with the following contents:

pointer = 1 2 3 5 4 6 7 8 9 10 11 12

I also tried using the naturalscrolling application, but I have been unable to get it to work so far. So maybe after all, @tiempjuuh's suggestion could also possibly work.


1. The system requires the Ubuntu 64 bit OS program/compatible with windows 8. I would suggest downloading a newer version of Ubuntu 13.10 seems to work best. Write it to disc and choose to install alongside win8 or replace win8. Maybe use it before you install it. Works great once you get used to it.


What is the equivalent to Scientific Linux Users as a professional trouble shooting email list for Ubuntu?

The hub for Ubuntu development is Launchpad. I do not know whether it will meet your needs, or if there is anything closer to what you want. You can take their tour to explore. There are Teams which have mailing lists, and Launchpad Answers which has Q&A with the participation of developers.


ibus doesn't work in libreoffice, pluma etc in Ubuntu Mate 16.04

Have you switched to Lubuntu?
Maybe you could have some trouble if you have got it.
Moreover maybe you have installed some apps that have
deleted some libs linked to ibus. Remove all with

sudo apt-get remove --purge ibus-*

Re install from beginning.


How do i list the full path of certain file type in a directory and its subdirectories?

To get the path relative to the current directory (.), you can use

find . -name '*.sph' > filelist

If you want the full absolute path, try

find $PWD -name '*.sph' > filelist


How to Sort/Search video files on the basis of properties?

Enable extended and recursive globbing:

shopt -s extglob globstar

Then:

exiftool -q -p '$FileName $ImageSize' **/+(*.mp4|*.mkv|*.flv)

** will recurse into subdirectories. The extended glob +(*.mp4|...) will match at least one of the patterns inside the ().

You can use grep to process the output and generate a list of files not 1920x1080:

exiftool -q -p '$Directory/$FileName $ImageSize' **/+(*.mp4|*.mkv|*.flv) |
  grep -v ' 1920x1080$'

Note the change here: I'm using $Directory/$FileName $Imagesize. We need the path to the file, not just the filename, so $Directory/$Filename. And
Here we check if each line doesn't end with 1920x1080 ($ is the end of line, -v in grep inverts the match). Verify the output.

Now we can delete these files:

exiftool -q -p '$Directory/$FileName $ImageSize' **/+(*.mp4|*.mkv|*.flv) |
  grep -v ' 1920x1080$' | sed 's: [^ ]*$::' |
  xargs -d '\n' rm

sed 's: [^ ]*$::' removes everything from the last  until the end of the line, so the AxB resolution from the output of exiftool is removed, keeping only the filename. Then xargs rm takes each line as a filename and runs rm with them as argument.

Disable the globbing options when done:

shopt -u globstar globstar

To exclude multiple resolutions, use an OR in grep:

grep -Ev ' (1920x1080|1920x820|1280x544)$'

Here is a command with all the widely used video formats

exiftool -q -p '$Directory/$FileName $ImageSize' **/+(*.mp4|*.mkv|*.flv|*.avi|*.webm|*.vob|*.mov|*.wmv|*.amv|*.m4p|*.m4v|*.mpeg|*.mpv|*.m4v|*.3gp)

Here is a command excluding (almost) all the HD Video formats

grep -Ev ' (1920x1080|1920x1040|1920x1068|1906x952|1916x808|1920x808|1920x804|1916x812|1600x864|1436x1080|1920x820|1280x544|1920x800|1920x802|1920x816|1856x1080|1920x1072|1920x1056|1280x720|1280x536|1280x560|1280x538|1280x528|1216x544|1280x534|1280x532|1281x534|1278x714|1280x718|1280x688|1278x682|1280x690|1280x694|1280x660|1282x692|1280x692|1285x696|1278x544|1280x696|1279x718|1280x546|1281x546|960x720|1324x552|1305x552|1308x552|1536x640)$'


Install packages with * and ignore another

There doesn't seem to be a good way to exclude packages from the regex or wildcard match. One thing I can suggest, given the limited number of packages that start with libretro-f and that no other package begins with libretro-fr is:

apt-get install 'libretro-[^f]*' 'libretro-f[^r]*'

This will exclude packages beginning with libretro-f, then include those, but again excluding those beginning with libretro-fr.


How do I upgrade a 15.10 Wily Werewolf machine directly to 16.10 Yakkety Yak?

You may have to upgrade to 16.04 first, and after this upgrade is completed, upgrade to 16.10.

I think possible to upgrade while skipping a version, but I wouldn't recommend doing so, as it could result in various problems after the upgrade.


How to I get Gnome out of "Fallback Mode"?

"Fallback mode" is just another name for "Gnome Classic"

If your graphics card is unable to handle the more demanding requirements of Gnome 3, or if you just prefer the "old school" interface you can use the fallback instead.

If you've installed gnome-shell, you should have both Gnome Classic (Fallback) and Gnome 3 available at login.

I apologize for being unable to help you as much as I'd like. If you'd give me more information regarding your issue, I'd be glad to help?

As far as your problems with installing fglrx, I can't help you there. Hopefully someone else can get you on the right track though. :)


If you want to enter the config dialog your mentioned manually, try:

/usr/lib/mozc/mozc_tool --mode=config_dialog

The Preferences bug in ibus-setup is because of meta-data missing.

Check Comment 1: http://code.google.com/p/mozc/issues/detail?id=169


It seems that the PPA I used since 14.04 has Xenial packages!

Add the repository with sudo add-apt-repository ppa:n-muench/burg.

Then sudo apt-get update

You can then install the packages:

sudo apt-get install burg burg-themes
sudo burg-install "(sd0)"
sudo update-burg

Change "(sd0)" with your corresponding hard disk: "(sd1)", "(sd2)" etc.

I haven't tried it myself since I have yet to upgrade to Xenial, but I hope that helps.


Fail to plug Samsung Galaxy S2 to Ubuntu 11.04 using USB (with or without debug mode)

if you are trying adb access please have a look at http://hailubuntu.blogspot.com/2010/12/adb-not-detecting-adroid-device.html

For mass storage access try using another cable (I have issues with stock cable so I use the one that came with nexus one) I've SGS Epic. If you have gparted installed you can run it after connecting phone in mass storage mode and see if it shows up in gparted. I've to mount few USB devices manually. If even gparted can't show phone connected (mass storage only) then its cable to be blamed.


Messed menus/labels/buttons/colors after latest update on July 2018

SOLVED!

By adopting the tested NVIDIA driver (version 384.130) all the messed graphic on the screen is disappeared.

"Software & Updates" -> "Additional drivers"

So, seems that the open source drivers are NOT compatible with the most recent updates of Ubuntu 16.04.

Anyway, I'm an happy man now.


First reboot after install and Ubuntu 11.10 doesn't start correctly

I fixed the problem. For some reason the install wasn't quite working while downloading updates via wifi. Once I had plugged in the ethernet cable and installed ubuntu this way it installed correctly and booted correctly. Your links lead me to this resolution, so thanks!


How can I access my Samba Server from a single windows PC using different usernames?

Samba has a built in user authentication mechanism. You can give users permission to access your shares and use smbpasswd to set their passwords. You can also synchronize user's login password with Samba password. Samba Server Configuration tool can help you on this, as illustrated here.

When you set up password for users, they'll be automatically required to enter it to access your shares from any computer that can access your Samba server. If your point is accessing with the same passwords they use on clients then you either need to set same passwords on clients and server, or you need a centralized authentication mechanism based on LDAP, Kerberos, etc.


VLC stopped working correctly after upgrade to Lubuntu 15.04

Did you tried to re install it ?

make sure you have everything updated with

sudo apt-get update
and
sudo apt-get upgrade

i got a similar error when i upgraded to ubuntu 15.04 but after i updated everything and restarted the pc, vlc worked fine, i hope it helps you too


WickrME installed successfully but not opening

According to Wickr website
It only runs on Ubuntu 16.04 64-bit

For use with Ubuntu 16.04 64-bit:

  Uncompress WickrMe.
  This file contains 4 files, 2 .deb and 2 .sha files.
  Run gdebi wickr-qt_5.8.1_amd64.deb, followed by gdebi WickrMe_4.00.04-01_amd64.db.

  Wickr Me should then appear in your applications menu.

  The current build only works with Ubuntu 16.04 64-bit, and not 16.10.


First of all, if the CPU is 32-bit, you can't install a 64-bit OS on it.

Judging by the answers on Is it possible to "upgrade" from a 32bit to a 64bit installation? and How can I switch a 32-bit installation to a 64-bit one?, it is very difficult to switch from 32- to 64-bit, so I can't imagine the upgrade would do it for you.


Unable to locate package linux-firmware-nonfree

The reason your Ubuntu release (from previous question I assume it is 16.04) can't locate this package is that it was only released for older versions, namely Precise, and Trusty of the still supported releases.

This package won't help with the Intel iwlwifi driver anyway, as the Intel drivers traditionally are Open Source and already included in the default kernel firmware packages.

So to get a newer driver I would recommend to update the kernel to the HWE kernel (What is hardware enablement (HWE)?), or install a later Ubuntu release.

Further reading:

My WiFi adapter is not working at all, how to troubleshoot?
Intel Linux support
Ubuntu Wiki LTS HWE


Your virtualenv's python binary is symlinked at venv/bin/python, so simply run

venv/bin/python --version

However, if python3 is 3.5.2, /usr/bin/python3.5 should be 3.5.2, so I don't think you'll get the result you want (3.5.4). You'll probably need to rebuild the virtualenv with /usr/local/bin/python3.5 as the interpreter.


How do I run GUI version of NetworkManager on DWM?

Provided that your system includes the network-manager-gnome package (and its dependencies), you should be able to run NetworkManager's GUI connection editor from the command line using

nm-connection-editor

You can attempt to start the GUI desktop applet as nm-applet, however it may not be able to interact with / dock within a simple WM.


SOLVED
In the meantime, Ubuntu offered me update of linux kernel, so I rebooted the machine. Now everything runs ok, but still: Was it joke well played or a bug?


How to remove username from "Me" menu (right near to power button on the top panel)?

I know no way to remove the name from the applet. Though you can remove the applet entirely, and the shutdown/logout will now be in the System menu.


Ubuntu 11.10 Mobile broadband connected but no internet access

I solved this issue by configuring the connection to use "Broadband" as the plan instead of "MMS".


Problem in upgrading Ubuntu 14.04 to 16.04

I assume that you can use live Disk of Ubuntu and go to your OS, after that try to upgrade your OS again or fix missing files which probably deleted somehow!
I had this problem before, hope help you too


Even if you can, It is not really advisable. Please refer to this link from the official back track website.


It's the sync option that you show in your fstab line that's doing it. This is a common problem when using an external USB drive that uses usbmount. From /etc/usbmount/usbmount.conf:

#############################################################################
# WARNING!                                                                  #
#                                                                           #
# The "sync" option may not be a good choice to use with flash drives, as   #
# it forces a greater amount of writing operating on the drive. This makes  #
# the writing speed considerably lower and also leads to a faster wear out  #
# of the disk.                                                              #
#                                                                           #
# If you omit it, don't forget to use the command "sync" to synchronize the #
# data on your disk before removing the drive or you may experience data    #
# loss.                                                                     #
#                                                                           #
# It is highly recommended that you use the pumount command (as a regular   #
# user) before unplugging the device. It makes calling the "sync" command   #
# and mounting with the sync option unnecessary---this is similar to other  #
# operating system's "safely disconnect the device" option.                 #
#############################################################################

So just remove the sync option from fstab or change it to async. If you are hotplugging change the following line in that /etc/usbmount/usbmount.conf from:

MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime"

to

MOUNTOPTIONS="noexec,nodev,noatime,nodiratime"

And don't forget to safely unmount your drive before unplugging.


How do I change system-wide default Java runtime without "sudo"?

First I want to reiterate that you do not need to change the system-wide default Java runtime in order to run a program using a non-default Java runtime.

For example, Eclipse and NetBeans have configuration files where you can specify which Java runtime it should use.

Also typical of Java applications is to honor the $JAVA_HOME environment variable.  So at the shell, just run JAVA_HOME=/usr/lib/jvm/java-6-sun/ foo and JAVA_HOME=/usr/lib/jvm/java-7-oracle/ bar for applications foo and bar.  You can even put this in a script so you don't have to type it each time.

Since you are focused on changing the system-wide default Java runtime, the Ubuntu Community documentation on sudo is one place to read: https://help.ubuntu.com/community/Sudoers

The manpage (ie man sudoers) is another: http://www.sudo.ws/sudo/sudoers.man.html

You are correct in stating that you do not want %sudo ALL=NOPASSWD: ALL in your sudoers file.  Instead try something like this:

    jessegaspar caelum-sala1-9 = (root) NOPASSWD:/usr/local/bin/changejava

This may be more restrictive than you really want, but it is an example.  It is probably good practice to list the full path to the command, but that may not be the path to your script on your system.


how to make it to start up like this 'john@john:~/Desktop$ blah blah blah

Okay i have found a way to do this, first you go to

Edit>Profile preferences>Title and Command

and in the 'Run a custom command instead of my shell' put this

sh -c "cd ~/Desktop; exec bash"

now open gpedit and type this script in:

#!/usr/bin/expect -f

spawn -noecho bash

expect "$ "

send "put what ever you want here"

interact

exit

save that as a  anything.sh

then chmod +x anything.sh

and run the anything.sh with Terminal and you're all done! :D


App missing in app list but working if launched

kind of "solved" it... I opened the Ubuntu Software center and it showed VLC as not installed, I then tried sudo dpkg --configure -a and sudo apt-get -f install from terminal but they did not solve the issue...

I then installed VLC from Ubuntu software center WITHOUT unistalling it beforehand... and now VLC is correctly listed.

But now I have it doubled in the dash... I tried sudo apt-get remove vlc and it looks like it removed the "wrong" VLC, because if I click it it won't start (although it's still present in the dash).
How can I delete its "pointer"? Is there a way to tell apart the two and maybe delete the folder of the bad package?

http://imgur.com/a/GDtO4

on the left "VLC media player" is the one installed through apt-get, the bad one... on the right "Lettore multimediale VLC" is the one installed though software center, the working one.


How to see the contents of a file with blank filename?

Inodes to the rescue: first, do ls -li to list all files with their inodes. The inode is the number on the left. Note the inode number of your invisible file. Then:find . -inum xxx -exec nano {} \; replacing xxx with the inode number, and possibly nano with the editor of your choice.

Explanation:
The find command finds the file with inode number xxx, then executes a command, in this case: passes it to nano. The {} is a placeholder for the filename; the \; at the end indicates the end of the command.


Why can't my program find the libraries in "/usr/local/lib"?

/usr/local/lib is not in the default Ubuntu path. You should add it at the end of the LD_LIBRARY_PATH environment variable in /etc/environment. Reboot and the new path will be effective.

You can also set this on a per-user basis in ~/.bashrc

Example (/etc/environment)

LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib

Example (~/.bashrc)

export LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib"


Upgrade 13.04 to 13.10 - packages now unavailable

This is because all the repos for 13.04 have been moved to the archive location. You need to add them to the repo before you even do the do-release-upgrade.


ssh-add command does not add my identity to ssh-agent

From man ssh-add:

  ssh-add adds private key identities to the authentication agent,
       ssh-agent(1).  When run without arguments, it adds the files
       ~/.ssh/id_rsa, ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and ~/.ssh/identity.[...]

  Identity files should not be readable by anyone but the user.  Note that
       ssh-add ignores identity files if they are accessible by others.

So, because of The agent has no identities. error, you probably don't have those files or maybe those files are accessible by others. You can check these using the following command:

ls -l ~/.ssh

Also, after you run ssh-add command, run echo $? to see the error status of the previous command. If exit status returned 0, the command was executed successfully. If exit status returned a non-zero value, the command failed to execute.

See man ssh-add for more info.


after ubuntu installlation, space is missing on my harddisk

There is an explanation why space is missing. It is all about calculations (Apparent Vs. Actual). Drives are marketed in terms of decimal. So, 1 TB is in decimal, i.e. 1,000,000,000,000B while OS shows memory in terms of binary. Therefore, 1 TB is actually 931.32 GB (1,000,000,000,000/230). I personally use a 1 TB HDD and a total space of 931 GB is justified. So, the space isn't missing but the awareness of the facts.


Black icons after reinstalling Kubuntu desktop

Found the solution here, as per the link in the link:

Replacing libqt5quick5-gles with libqt5quick5 solved my problem

so make a: sudo apt install libqt5quick5
it worked for me on debian


I have to set nameserver and restart networking on every login

On the top right of my screen (Ubuntu 17.10) I have the network icon which I use to access NetworkManager.

Right clicking it I get Wired Connection which allows me to edit (Wired Connection, Wired Settings)

A Settings Window will open at the Network page, where you click the gear logo in the Wired section of the screen.

For my network (IPv4 is used on my network) I'd then click IPv4 and go to the DNS setting, where you can enter the provided quick.fix DNS address in the box (seperated by commas as it'll say on screen)

When done click Apply (top right) to save the change.


Mozila Firefox 51.0.1 (New version) Firebug not Working?

Firebug is discontinued. You got automatically switched to the Firefox DevTools (with a Firebug theme to make the transition a little easier). Please see the related Mozilla Hacks blog post for more info and read the migration guide.

Its better you use Web Developer tool.


windows 8.1 not available in grub after installing ubuntu 14.04

Download the boot repair cd, boot from it and just accept the default settings. Thats how i fixed grub in my ubuntu and windows 8.1 setup.


How do I mount my Android's filesystem over the network with sshfs?

First install the sshelper app on your phone, this also might work with other ssh/sshfs apps, but this one works great and is gpl licenced.

Next configure the sshelper app (choose a password etc...) and test if you can ssh into your phone. Try ssh ANDROID_IP_ADRESS -p 2222. Where ANDROID_IP_ADRESS is the ip adress of your android. You can find out your android's ip adress after clicking on the wrench icon in the sshelper app. You will be asked for the password you set in the sshelper app

If that does not work, look up a basic guide on getting started with ssh. Everything on the android's side should be configured properly with just installing the app launching it. So the problem will probably be on your linux machine. Keep in mind that you will have to take additional steps to be able to ssh into your android when you are not on the same network.

After you have managed to ssh into your phone, make a directory where you want the files of your android to appear. I just went to my home directory and ran mkdir Android, if you do this differently you will have to change the ~/Android in the following command.

With my android, the files visible in my file explorer were under /storage/emulated/0 if this is different on your phone, replace the /storage/emulated/0 with the path you want.

Finally you can run the command:

sshfs ANDROID_IP_ADRESS:/storage/emulated/0 ~/Android -p 2222

And the files of your android will be visible in the ~/Android directory.


The bootchart service is started using Upstart init scripts, so you can disable it in the usually manner...

echo manual | sudo tee -a /etc/init/bootchart.override

Remove the file if you want to restart it.


Putty not letting me to login to ubuntu remote server?

Typically the solution would be to log in via console, but EC2 does not support that. Their typical solution is to stop the broken instance, detach its root disk, attach it to another instance, fix the problem, and then reattach it. The tutorial is here: https://aws.amazon.com/articles/5213606968661598


Need to manually change scaling when remote desktop connecting to high resolution display

gconf-editor should allow you to set adjust the font DPI, effectively scaling it dynamically. See this answer


How to restore healthy Unity after incomplete update

Reset Compiz configurations

dconf reset -f /org/compiz/

Try to completely remove your ATI drivers from your system:

sudo apt-get purge fglrx*

Remove your xorg.conf

sudo rm /etc/X11/xorg.conf

Reinstall xorg completely

sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64

Re-configure Xorg

sudo dpkg-reconfigure xserver-xorg

Reboot

sudo reboot

by Bruno Pereira

Now you should reconfigure Unity. It will remove Unity completely.

sudo apt-get install ppa-purge
sudo ppa-purge ppa:unity-team/staging
apt-get install unity

Install Unity again.

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity
sudo reboot

by Justinas Dūdėnas and mpm

It works for me just great.


Hmm... instead of explaining how to change permissions on the root folder I'll just say "you should not copy business-purpose files anywhere outside your home folder"

Your home folder is for your files. Folders outside your home folder are for system files. Changing permissions of those folders is not considered a good practice.

Having said that, if you still want to copy files, you can do this by starting file manager in superuser mode by pressing Alt-F2 and typing gksu nautilus.

It'll ask you for your administrative password, after which you'll be able to copy files.


Open a terminal and enter:

xrandr

It will output possible resolutions. To set 1202x670 enter:

xrandr -s 1202x670

See here if you need to add new modes.


Try using this entry in 40_custom instead:

menuentry "Tails Security" {
loopback loop (hd0,7)/boot/ISO/tails-i386-1.3.2.iso
linux (loop)/live/vmlinuz boot=live union=aufs noswap noprompt ip=frommedia findiso=/boot/ISO/tails-i386-1.3.2.iso toram=filesystem.squashfs
initrd (loop)/live/initrd.img
}


You can just change icon path to application name. Try this:

for file in /usr/share/applications/*.desktop; do
    grep 'Icon=/usr/share/racket/' "$file" /dev/null
    sed -i 's:^Icon=/usr/share/racket/:Icon=:' "$file"
done

Save it as a script ('script.sh') and run it as root ('sudo sh script.sh').

It will fix all files which need changing.


See here for options where environment variables may be set. Maybe you can remove the excessive path setting there and you can ignore the rest of this answer.
Not all of the places mentioned in the linked article allow script execution. But one option is to create a file with .sh filename extension in /etc/profile.d/
and add the following script there. That way it is executed system wide when desktop session starts:
rpath() {
    set -- $(printf '%s\n' "$@" | sed -e 's/[^^]/[&]/g' -e 's/\^/\\^/g')
    while [ "${1+x}" ]; do
        PATH=$(echo "$PATH" | sed -r -e 's#(^|:)'"$1"'/?(:|$)#\2#g' -e 's/^://')
        shift
    done
}
rpath '/opt/jdk-14/bin'
unset -f rpath

You could even give more than one argument for the rpath function. However, it doesn't help if you try to remove the path before it has been added in another file that is processed later.
Credits: improved from this


Alt + F2

gksu xkill

you click on the window you want to close.

Also you could try with terminal
lets say banshee is stuck when you tried to listen an online radio station..

sudo ps -A|grep bans
>10304  bla bla bla
^ the result of the command
sudo kill 10304

you could try sudo kill -s kill 10304.

a more easy way

gksu gnome-system-monitor

this is all you need to know.


Netbeans 7.0.1 doesn't start new line when pressed enter

I use netbeans 7.0.1 on debian and fixed the issue by klicking on the info icon left to the <?php and then selecting "Change project default to HTML 4.01 Transitional"

It seems that the default is HTML 5 - and this generates a parser Exception.
After switching the project default to the above mentioned setting I could use ENTER as normal - even on newly opened files.


ARCAM rPAC USB sound card not working on Ubuntu 12.04

to clarify as of 25/05/2012

The rPAC DAC (class I only) is not compatible with the current Linux kernel.

We have updated our FAQ, web and product info to make this clear.

Apologies for the confusion, I can help you get a refund if necessary.

Cheers Robert


Redirect packages directed to port 5000 to another port

-j REDIRECT redirects to your own machine. If you want to redirect to a different port on the remote machine, use -j DNAT --to-destination :23