What does the Gedit plugin called "Dashboard" do and/or provide?

The Gedit Dashboard plugin uses Zeitgeist to display recently or most used items in new Gedit tabs. You can search both recently and most used items and also, the plugin generates previews which "try to jump directly to some code or text from your work".

Source: http://www.webupd8.org/2011/11/gedit-dash-new-tab-gedit-plugin-powered.html

Here are a few screenshots:

That's what it's supposed to do, BUT it doesn't (tested in Ubuntu 14.04).
As a result, a bug has been reported on Launchpad.


Right-clicking the top bar a drop-down menu pops up, which contains an "Use system title bar and borders" entry;

Click on it in order to enable the system title bar, which when right-clicked will show the workspace-related options.


Wired connection not detecting after update

re: "I am using Ubuntu 20.04.1 LTS, I have turned on pre-released updates in developers options."
That's why you don't turn on pre-release updates. Really. Unless you wish to be a BETA tester.

Edit /etc/network/interfaces to look like this:
auto lo
iface lo inet loopback

Reboot.

Update #1:
Let's try and install an alternate ethernet driver...
In terminal...
sudo apt update

sudo apt install dkms r8168-dkms

reboot

Edit your question and show me sudo lshw -C network again. (Not in the comments please).
Note: If you can't connect to the network via wireless, boot into Windows, go to the following web pages, download the files, copy them to a USB flash, and then in Ubuntu, install them with:
sudo apt install /path_to/filename.deb

https://packages.ubuntu.com/search?keywords=dkms&searchon=names&suite=focal&section=all
https://packages.ubuntu.com/search?suite=focal&section=all&arch=any&keywords=r8168-dkms&searchon=names
Update #2:
Best just to reinstall Ubuntu at this point. Make sure that pre-released updates is not enabled.


How to hide hard disk size in volume name?

This "feature" has already been reported to the nautilus team (see gnome-bugs #593405) and marked NOTABUG, however its triaged on Ubuntu so you might see this fixed in Oneiric.

How to fix it:

I made a patch that reverts the upstream commit that added this feature. You'll need a bit of console work to apply it:

mkdir gvfs; cd gvfs
sudo apt-get build-dep gvfs
apt-get source gvfs
wget https://launchpadlibrarian.net/77889392/100_remove_redundant_labels2.patch
cd gvfs-*/; quilt import ../100_remove_redundant_labels2.patch
dpkg-buildpackage -us -uc -rfakeroot
sudo dpkg -i ../*.deb
Restart your computer


Change LightDM session name entries for Desktop Environments?

The names are taken from the Name field in the desktop files located in the /usr/share/xsessions directory.

Change them and you're done.


Compiz - Move Window Controls to the Right

This worked for me on Ubuntu 14.04, I executed
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close' and it moved to the right for me.


Ubuntu Touch RC version 42 bricked my Nexus 4

It seems to be just a UI failure in this update. So, when adb works, you can reflash the device e.g. via the ubuntu-device-flash tool keeping your personal data (use -h for documentation).

Edit: Found this fortunely in the Landing team: https://lists.launchpad.net/ubuntu-phone/msg22825.html
It's about the Meizu Pro5 having the same problem. Seems to be a harder problem. Good luck :)


Ping works, wireless connected, no stable internet

Sounds like a network that is loaded down (maybe).

It sounds like this is connected wirelessly. You might consider using an ethernet cable if possible -- it would sidestep any wireless problem -- even if it is just as a test.

You also might try changing your wifi channel. You can do this in your wifi router under the wifi settings. If you have an android device, you could consider using something like the Wifi Analyzer app to see what channels have other networks on them and try to stay away (by a few channels) from busy channels.

Or, you could just have another wireless device on your home network that is moving a lot of traffic. (Is the wifi light on your router running at a constant flicker? If so, it may be busy moving data and the wifi might be congested.)


This may not be the precise answer but it is an adequate solution to the printing problem: I changed my printer setting to raw queue and now the page prints correctly, same as on the server linux machine. Apparently the postscript driver has its own (incorrect in my case) page settings.


You need to use a 32-bit version of the application for your 32-bit system. I see on the download page of the site there are x86 versions for 32-bit architecture, although these are older.

If your system can handle it, you can install a 64-bit kernel or 64-bit Ubuntu version (time to upgrade from 15.10 ;) ), then you will be able to run the 64-bit version of NAND.


root partition disk is full, how to clear it?

try sudo apt-get autoclean to remove the apt cache. It will give you some more space.


Why are translations getting updated when there are no modifications to them?

This is due to the '"Bouncing" between branch imports and branch exports.' bug, to which I'd suggest you to add a comment to bring it to the attention of developers.

On the other hand, I've had a look at the translations settings for your project and I see that you are using automatic exports but not automatic imports. Is there any reason for that?

Cheers,
David.


Picking linux-4.18.11-surface-linux-surface as source package instead of linux-image-4.18.11-surface-linux-surface

Make sure you have run sudo apt-get update after commenting out deb-src lines in your /etc/apt/sources.list. And you commented out the right lines. Check Build Environment section of Build Your Own Kernel wiki page.


Here is your solution:

I prefer you to use Ubuntu Grub Menu, that is let Ubuntu to allow you to chose which OS you want to boot (Windows or Ubuntu).

Here are the steps that would help you..

Boot from your Ubuntu LiveCD/DVD or Ubuntu bootable USB and select 'Try Ubuntu' (not 'Install Ubuntu'). When Ubuntu starts open terminal (CTRL+ALT+T) and execute following commands:

Installing boot-repair ( a good s/w to fix grub ):

    $ sudo add-apt-repository ppa:yannubuntu/boot-repair
    $ sudo apt-get update
    $ sudo apt-get install boot-repair
    Run boot-repair from your system or type: (boot-repair &) in terminal

When started select Option 'Recommended Repair' from out of two options:

'Recommended Repair' & 'Advanced Options'.

Follow very easy onscreen instruction, it will build/fix your grub menu..

Restarting your system may list all the Operating Systems installed in your HDD.
Be sure that you have properly shut down Windows 8, before starting these steps..

You can get more help on - Using Boot-Repair


linux-image-4.15.0-65-generic E: Sub-process /usr/bin/dpkg returned an error code (1)

Try the following

Open /usr/local/lib/python2.7/dist-packages/sort.py
Go to line 3
replace print('This is suroegin's package - sort') with

print("This is suroegin's package - sort")
Rerun the command you ran


ubuntu 13.10 jgrasp unable to compile due to javac error

It's not saying it's not in the same folder as the file, it's saying it can't find it on your path. Make sure you have the full JDK installed, not just the JRE, and make sure it is the JDK "bin" directory that is first on your system path.


With a single left mouse button click on an annotation tool button you can use a tool once. If you e.g. want to highlight all important parts of a text, you can activate that tool permanently by double clicking on the tool button. Press the Esc key or click the tool button again to leave the permanent mode.


Block interface:

sudo ufw insert 1 deny in on {interface-here} from any to any

Allow desired ports:

sudo ufw insert 1 allow in on {interface-here} from any to any port 5001:5999/tcp
sudo ufw insert 1 allow in on {interface-here} from any to any port 5001:5999/udp


Asus n56dp Sonic Master subwoofer not working

I too have an Asus N56DP. We two may be the only guys running ubuntu on them right now. :)

The following sort of works:

in your /etc/rc.local add this:

echo 0x1e 0x99130112 > /sys/class/sound/hwC0D0/user_pin_configs
echo 1 > /sys/class/sound/hwC0D0/reconfig

then reboot.

Then in your sound control panel (System Settings -> Sound) select output-> either analog if you just want it to work, or if you want proper bass you have to keep switching between surround 4.1 and 5.1 all the time. For instance mplayer will often turn off the bass and I'll have to switch from one to the other.

I chose analog.

references:
bug 1040873
bug 871808


Why the Ubuntu App Developer website is not showing content about development for desktop?

As part of the process of making Ubuntu a truly convergent platform, where the apps that you develop can run on any device or form factor, we've started the process of focusing the content on the App developer site to be about the Ubuntu SDK.

While Quickly will still be available and open to community participation and maintenance, the recommended way to develop apps for Ubuntu is the Ubuntu SDK.

This has been discussed at the last two virtual UDSs and you can track the progress and provide feedback on this blueprint


Open a terminal and type in,

sudo apt-get update
sudo apt-get install codeblocks

That will install codeblocks. As for another c++ ide i personally like to use simply gedit with a few extensions.


You can use clonezilla live, check it out:
https://clonezilla.org/clonezilla-live.php


Clients like Transmission and Deluge are capable of creating torrents. Once the torrent file is created, it needs to be uploaded to your favorite torrent site for seeding( i.e. isohunt.com). Usually, instructions are provided on the front page of the site to get your torrent file uploaded.


Failed to download Package list, Report this to developers

Looks more like a typo in /etc/apt/sources.list.d/cscarney-unity-web-place-oneriric.list

gksu gedit /etc/apt/sources.list.d/cscarney-unity-web-place-oneriric.list

I believe the lines should look like this

deb http://ppa.launchpad.net/cscarney/unity-web-place/ubuntu oneiric main
deb-src http://ppa.launchpad.net/cscarney/unity-web-place/ubuntu oneiric main


Will Ubuntu 12.10 ever update the kernel from 3.5 to 3.8?

Very probably: No.

Only very few packages are updated to newer versions within one release of Ubuntu (for instance Firefox). For all other packages patches for the same version are supplied to fix security issues or bugs while sticking to the version to avoid compatibility issues with other packages. Currently the developers are planning to supply an additional repository for LTS-versions of Ubuntu that includes further updates, including kernel versions, yet this is not available yet and since 12.10 is not an LTS version it will never be for that one.


How do I move ~/.fonts without disrupting features?

Yes you can move it to any partition that you want:

mv ~/.fonts /path/that/you/want

Then edit /etc/fonts/fonts.conf file and add your directory to this file:

sudo nano /etc/fonts/fonts.conf

So add your path to the <!-- Font directory list --> section in that file:

    <dir>/usr/share/fonts</dir>
    <dir>/path/that/you/want</dir>
    <dir>/usr/local/share/fonts</dir>
    <dir prefix="xdg">fonts</dir>
    <!-- the following element will be removed in the future -->
    <dir>~/.fonts</dir>


Using Ubuntu Server 18.04 as iSCSI target and Windows 10 nodes

I managed to find a different solution, which doesn´t require me to run Windows Server nor an additional network setup holding a  iSCSI-target/initiator.
I realized that I can simply run a virtual machine from the ubuntu-client with the requested software and applications needed. In addition letting the virtual machine be on the same network, via the bridged network alternative the virtual machine can be accessible by any other computer in the network.

This might help someone else whom shares the same issue.


Ubuntu 12.04 LTS hangs (all black) before showing login screen

Maybe your X windows config or other graphic config has been changed by the install of libraries that has been done. Good news is IF this is the problem then solution would be making a change in config file. It could be something like display resolution being set.

When you have a blank screen you can get to command-prompt on a console terminal by typing Ctrl-Alt-F2 (or F3 .. F6). Ctrl-Alt-F1 will get you back to your graphics display console.

When you have blank screen do Ctrl-Alt-F2.
Then login and look at log messages.
Look in /var/log. Look down end of logfiles for latest messages.
/var/log/messages /? /var/log/syslog /? /var/log/Xorg.0.log
Focus on 'X' logs.
Try maybe sudo grep -i error /var/log/X*
In the 'X' logs it should log what config it is using e.g. Using config directory: "/etc/X11/xorg.conf.d".

If you can find some errors that will hopefully reveal what is wrong.
Post them here and grep the internet and we will hopefully be able to figure out the problem.

Update1: Good breakdown of options for diagnosing problem here:
My computer boots to a black screen, what options do I have to fix it? Duplicate question of yours I think. Specifically nVidia question might be relevant: Blank screen after installing nvidia restricted driver

Update2: BUT nVidia not relevant to question. Issue would be more to do with AMD video drivers. What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD?

Installing packages
When a package is installed as root then libraries, binaries and config for the package is installed. Existing config and libraries might be updated. For packages not involved in core linux or graphics this is usually benign, you can't cause damage. But for some packages there is potential for breaking something fundamental.
You mentioned some nvidia packages were removed as well as a good few others which were installed? When the nvidia packages were installed graphics config might have been updated. And when they were removed then that config might not have been reverted. Or the install of a package may have installed a version out of step with something needed by core of system.

Anyway, first try to find some errors in logs to give clues as to what is the problem.


Stop cron job constantly rebooting ec2 instance

Stop the instance, and take a look to the EBS disk (write down the mountpoint)
Dettach the hard drive of the failing instance (EBS)
Boot up a new fresh instance (Ubuntu 18.04, RHEL, the one you feel more confortable with...)
Attach the failing disk to the new instance.
Mount the filesystem to /mnt (for example)
Remove the crontab rule you've added to CRONTAB (in /etc/crontab/... )
Detach the EBS disk
Attach to the failing machine again, using the same mountpoint
Boot your old machine as always; cron will be disabled
Remove the machine you've used to change the FS

It is a faily common pattern, to dettach a failing FS to another machine, fix whatever is preventing it to boot, and attach it again to the old host.

Hope it solves your problem.


character "5" repeated in text fields, and system freezes

Hardware problem! Some piece of cruft is making the 5 key stick. Clean your keyboard or try another keyboard.


How to access HDMI in port? Yes, my system has two HDMI ports one for output and the other for input

Under Linux, you need VDPAU to enable that feature.

For 14.10, the easiest way to install that is to:

sudo apt-get install mesa-vdpau-drivers-lts-utopic

For 14.04, it's:

sudo apt-get install mesa-vdpau-drivers-lts-trusty

What you've got now is a display port that needs additional software to actually display the "video" content that is being "projected" onto the HDMI IN and you've probably already got that: VLC player.  If not:

sudo apt-get install vlc

Then, in VLC, you need to go to Tools → Preferences → Input / Codecs → Hardware-accelerated decoding to enable vdpau.


Jack microphone-only detected as headset

go to the file /etc/modprobe.d/alsa-base.conf and if

A) This file only have 43 lines of code, add those two:

options snd-hda-intel position fix=1
options snd-hda-intel model=,dell-headset-multi

B) This file have 44 lines of code just add:

options snd-hda-intel model=,dell-headset-multi

And reboot. If still doesn't work try without the coma.


I installed latest kernel version on Kubuntu but it doesn't appear on grub list

Try to:

sudo update-initramfs -u

and

sudo update-grub

Earlier with the Kubuntu: http://kubuntuforums.net/forums/index.php?topic=3104599.0

The package manager should do this by default. Looking old logs:

  Log of sudo apt-get dist-upgrade  Sat Dec 10 21:43:55 2011

  The following NEW packages will be installed:
  linux-image-3.0.0-14-generic

  Setting up linux-image-3.0.0-14-generic (3.0.0-14.23) ... Running
  depmod. update-initramfs: deferring update (hook will be called later)

  run-parts: executing /etc/kernel/postinst.d/zz-update-grub
  3.0.0-14-generic /boot/vmlinuz-3.0.0-14-generic Generating grub.cfg ...

man update-initramfs:

  NAME
         update-initramfs - generate an initramfs image

  SYNOPSIS
         update-initramfs -c|-d|-u [-k version] [-t] [-v] [-b] [-h]

  DESCRIPTION
         The  update-initramfs  script  manages  your initramfs images on your local box.  It keeps track of the
         existing initramfs archives in /boot.  There are three modes of operation  create,  update  or  delete.
         You must at least specify one of those modes.

   -u    This mode updates an existing initramfs.


Make PulseAudio prefer external audio device

Also of use, is loading the module module-switch-on-connect. If you add the line:
load-module module-switch-on-connect

to /etc/pulse/default.pa (as su, of course), this should happen automatically without having to call a script.
The documentation for module-switch-on-connect has a more detailed description of how this works.


Well, the keyword was parallel. After looking for all compression tools that were also parallel I found the following:

PXZ - Parallel XZ is a compression utility that takes advantage of running LZMA
compression of different parts of an input file on multiple cores and
processors simultaneously. Its primary goal is to utilize all resources to
speed up compression time with minimal possible influence on compression
ratio.

sudo apt-get install pxz

PLZIP - Lzip is a lossless data compressor based on the LZMA algorithm, with very safe
integrity checking and a user interface similar to the one of gzip or bzip2.
Lzip decompresses almost as fast as gzip and compresses better than bzip2,
which makes it well suited for software distribution and data archiving.

Plzip is a massively parallel (multi-threaded) version of lzip using the lzip
file format; the files produced by plzip are fully compatible with lzip.

Plzip is intended for faster compression/decompression of big files on
multiprocessor machines, which makes it specially well suited for distribution
of big software files and large scale data archiving. On files big enough,
plzip can use hundreds of processors.

sudo apt-get install plzip

PIGZ - pigz, which stands for Parallel Implementation of GZip, is a fully functional
replacement for gzip that takes advantage of multiple processors and multiple
cores when compressing data.

sudo apt-get install pigz

PBZIP2 - pbzip2 is a parallel implementation of the bzip2 block-sorting file
compressor that uses pthreads and achieves near-linear speedup on SMP
machines. The output of this version is fully compatible with bzip2
v1.0.2 (ie: anything compressed with pbzip2 can be decompressed with
bzip2).

sudo apt-get install pbzip2

LRZIP - A multithreaded compression program that can achieve very high compression
ratios and speed when used with large files. It uses the combined
compression algorithms of zpaq and lzma for maximum compression, lzo
for maximum speed, and the long range redundancy reduction of rzip.
It is designed to scale with increases with RAM size, improving
compression further. A choice of either size or speed optimizations
allows for either better compression than even lzma can provide, or
better speed than gzip, but with bzip2 sized compression levels.

sudo apt-get install lrzip

A small Compression Benchmark (Using the test Oli created):

ORIGINAL FILE SIZE - 100 MB
PBZIP2 - 101 MB (1% Bigger)
PXZ - 101 MB (1% Bigger)
PLZIP - 102 MB (1% Bigger)
LRZIP - 101 MB (1% Bigger)
PIGZ - 101 MB (1% Bigger)

A small Compression Benchmark (Using a Text file):

ORIGINAL FILE SIZE - 70 KB Text File
PBZIP2 - 16.1 KB (23%)
PXZ - 15.4 KB (22%)
PLZIP - 15.5 KB (22.1%)
LRZIP - 15.3 KB (21.8%)
PIGZ - 17.4 KB (24.8%)


Add all your plugins in a separate file. In my example I used bundles.vim. Then run the command vim -c BundleInstall -c q -c q -u bundles.vim

Here is an example of the bundles.vim file

Here is the command in a shell script

This combination will put all your plugins i a plugins folder and then the plugins will be ready for use if they don't need any third party library.


Automatically Run a Command Every 5 Minutes

You can use

crontab -e

to create a user cron schedule.

The line you specifically need is

*/5 * * * * /home/YOU/backup.sh

In backup.sh add any commands you want to run, make sure the script is executable, i.e. chmod +x backup.sh

Have a look at

http://www.unixgeeks.org/security/newbie/unix/cron-1.html


New to Ubuntu, GPU has disappeared; trying to use CUDA

The correct command to check whether you use the NVIDIA card is :

lspci -k | grep -EA2 'VGA|3D'

The output reads like this :

lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: i915

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: nvidia

If it shows Kernel driver in use: nvidia, you use the NVIDIA card.

But first you have to install the NVIDIA drivers and Optimus support.

As your NVIDIA card is very new, you should install the latest drivers.

Open a terminal and execute:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361 nvidia-prime
sudo reboot


Wireless connected but no internet BCM4313

If I were you and judging by lots of other people on this site I would do a clean install of the Broadcom wifi drivers. It does not take long and in my experience usually works very well

Fire up a terminal which you seem to know what to do.

Then clean old packages

sudo apt-get remove bcmwl-kernel-source

Gone!

Then reinstall the driver

sudo apt-get install bcmwl-kernel-source

This should reinstall the driver but experience shows us that Broadcom 4313 can be a little more tricky and you may need to ensure it is on the blacklist file

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

Then insert the following in the list

blacklist b43
blacklist b43legacy
blacklist bcma
blacklist ndiswrapper

Again this should work but if does not (BCM 4313 is extra special remember!) the opposite can also apply and you may need to add a hash # in front of where you see :

blacklist bcm43xx

so it says :

#blacklist bcm43xx

I always find then that a little nudge helps with the final command

sudo modprobe wl

Almost immediately my wifi wakes up (maybe wl stands for wakeup lazy! - I know it does not really )

Hope that helps. Does not take long and should work.

Let us know how you get on

If you want more information there are lots of people here who have scars from Broadcom wifi battles with excellent guide written here

Installing Broadcom Wireless Drivers


You can run overlay-chroot to remount the root as rw, or just mount -o remount,rw the lowerdir.

Check the link @Melebius gave, it (at least partially) answers the question.


xinput set-button-map "Mouse name" numbers

I have a Logitech G400 mouse and change the 2 and 8 button:

  xinput set-button-map "Logitech Gaming Mouse G400" 1 8 3 4 5 6 7 2 9
  10


vi /etc/network/interfaces no such file or directory

You must leave a space between vi and the file so it should be
vi /etc/network/interfaces
Also , in order for you to change that file, you need to be root so i would suggest you put  it as sudo vi /etc/network/interfaces. Hope that helps


Can't acess windows files and folders after delete crash report[dual-boot 7 & 14.04]

I got it back when I command the following in terminal,

sudo dpkg --configure -a

and restarted[sudo reboot].

Now I can access every drives which present in windows 7.


Navigate to the directory you downloaded the .run from, then do:

sudo ./NVIDIA-Linux-x86_64-304.60.run --uninstall

If you have a different version, obviously, change the name.  Now do:

sudo apt-get install xserver-xorg-video-nouveau
sudo rm /etc/X11/xorg.conf

That last rm might fail; if it does, don't worry about it.  It's just to ensure that if Nvidia installed a custom xorg.conf, you got it out of there.

Finally,

sudo reboot

EDIT:  Whoops, didn't see the "from the Nvidia website."  Fixed.


Why is my keyboard "raw" as opposed to "translated"?

AT = IBM PC/AT (Advanced Technology)
This is what an IBM PC/AT looks like:

Image credit: Wikipedia
There are three types of IBM Keyboard scan code sets in the PC world:

Set 1 IBM PC/XT (had one of those)
Set 2 IBM PC/AT (yup had one of those too)
Set 3 IBM PC/3270 (Has 24 function keys like IBM Mainframe, S/36, S/38 and AS/400 terminals).

From wikipedia:
For computers since the IBM PC AT, the keyboard controller on the motherboard translates AT (set 2) scancodes into XT (set 1) scancodes in so called translation mode.[3] This translation can be disabled in pass-through-mode, allowing the raw scancodes to be seen.[4] Therefore, whether a software developer will encounter AT scancodes or XT scancodes on a modern PC-compatible depends on how the keyboard is being accessed.
A compliant PS/2 keyboard can be told to send scancodes in set 1, 2 or 3.
Your question focuses on the IBM PC/AT as pictured above which BTW is a very nice mechanical keyboard that cost $300 in 1995 when I bought one for a Gateway Tower PC.


Different broadcom wireless models in lspci and dmesg

First of all in my opnion it is not easy to find a table which connects the given device-id [14e4:4365] for chip id bcm43142 with a driver which is available in ubuntu.

To give an answer to your question I assume you are doing this from scratch and have not changed any configuration files, modules or drivers in the system. So I guess the issue was that the list of available packages was not up to date, because the driver you are installed was from 2014:

sudo apt-get update
sudo apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

As I mentioned in my comments it would be also helpful to see which moduls you have already loaded (output of lsmod), because it is recommented to unload conflicting moduls and blacklisting them. So if you would add those information to your question other user are able to compare those modules. You can also clear up the code snippets above your first update section as well. You have not to care about your edits, because there is a versioning control which registers all edits to the system as you can see if you click edit.


How can I get a music player to watch a folder for new files?

You can do this with Rhythmbox using an "Automatic Playlist" and using the path variable.

Create a directory named "youtube-dl" in ~/Music for youtube-dl to output files into. (in my testing, Rhythmbox wouldn't add files outside ~/Music for some reason).
Open Rhythmbox and create a new Automatic Playlist by clicking the "+" at bottom left below the playlists.
For the playlist variables set "Path", "contains", and "youtube-dl",
then click "New" to finish.

Now Rhythmbox will add and remove audio tracks from this directory automatically.


Sudoku doesn't work, probable sys.path error

Try to run it from command line/terminal

gnome-sudoku

or verbose

gnome-sudoku -v

let us know if the cmd line show any errors.


Please install the appropriate drivers version by using the appropriate tool.

Go to System Settings, and launch Software Origins. Then, on the Additional drivers tab, check the nvidia-experimental-310 entry and click on Apply changes.

When done, reboot your computer.


Ubuntu host can't ping guest virtual box Windows 10

it's turned out, there was a firewall on my guest machine. After I deactivated it, I can ping to my guest VM. Everything works as expected


I managed to get the Sierra EM7455 working on my Thinkpad X1 4th gen. I did try a few things before it worked, so hopefully the below description is complete.

I upgraded the modemmanager package to the one from Ubuntu 16.10 by downloading the .deb package and then installing it using the dpkg -i command. Apparently the Sierra EM7455 expects some “FCC auth” command at startup which is implemented in modemmanager 1.6.0

The modemmanager package has some dependencies but I just downloaded and installed these as well:

libmbim-glib4_1.14.0-1_amd64.deb
libmbim-proxy_1.14.0-1_amd64.deb
libmm-glib0_1.6.0-1_amd64.deb
libqmi-glib5_1.6.0-1_amd64.deb
modemmanager_1.6.0-1_amd64.deb

I also upgraded to the 4.7.2 kernel. I am unsure if this is actually necessary or if the current default kernel for 16.04 has been patched.

It took me the better part of two evenings to make it work, so hopefully this can help you as well.


How to delete nomodeset from my grub file in order to boot normally?

If Ubuntu does not work, you can still access your installation via chroot.

  Be aware that the live system must have the same architecture (32 or
  64bit) as your system on the hard disk.

Boot from a Live media of Ubuntu (USB/CD/DVD) and open a terminal (CTR+ALT+T). The general idea here is to mount the (root) partition of Ubuntu and then chroot in it.

First give this command to list the partitions

sudo fdisk -l

here is an example result

/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848    81922047    40857600    7  HPFS/NTFS/exFAT
/dev/sda3        81922048   625142447   271610200    5  Extended
/dev/sda5        81924096   140517375    29296640   83  Linux
/dev/sda6       140519424   433487871   146484224   83  Linux

If this does not work, you can also use gparted (open the dash and type gparted) to find what your root partition is.

I know that my Ubuntu (root) partition is /dev/sda5 (because I have a separate /home in /dev/sda6).

Now I will mount the /dev/sda5 in /mnt

sudo mount /dev/sda5 /mnt

Now I will connect to /mmt and mount some other folders that might be needed.

cd /mnt
sudo mount -t proc proc proc/
sudo mount -t sysfs sys sys/
sudo mount -o bind /dev dev/
sudo mount -t devpts pts dev/pts/

Now I will chroot to my Ubuntu installation

sudo chroot /mnt

Edit the file you want.

nano etc/default/grub

Be careful the forward-slash here. etc not need forward-slash in the beginning because you will edit the wrong file then.

Now remove the entry nomodeset (or anything else)

save the file with CTRL + X , then Y(es) and then ENTER.

now update grub

update-grub

Exit the chroot enviroment and unmount the folders - partitions

exit
sudo umount {proc/,sys/,dev/pts,dev/}
cd .. ; sudo umount /mnt

The changes have been applied.. reboot your system.

source 1

source 2


How do I create a Ubuntu Focal Auto Install Server .ISO image

So since there are no answers forthcoming I'll answer my own question.

This forum thread Ubuntu Discourse Discussion
Along with: s3rj1k's GIST

Are providing a working iso creation model for the new auto-installer. The current issue revolves around user-data and identities which make the auto-installed ISO not have really usable users, unless you use s3rj1k's method and just modify root and expire it shortly after creation, which works, but has some security concerns imo.


Nvidia GPU heats up on idle on ubuntu 19.04

Hi found the solution asking on a nvidia forum. This is the thread with the answer, I'm going to make a recap of the solution here.

Recap

The problem is that the prime-select program does not turn off the GPU when it offload the drivers. So when you switch on the intel profile the nvidia driver are offloaded and all the power management stuff with them, but the GPU is on, this causes the heating up process.

Solution

The solution that I've found is: Install bbswitch with apt.
This program will automatically turn off the GPU if the drivers are not loaded.

So when you want to switch to the intel profile:

select the intel profile # prime-select intel
reboot the pc.

at the next boot the drivers for the nvidia won't be loaded and bbswitch will turn off the GPU, if you want to use the nvidia GPU do the same thing: select the nvidia profile and reboot.


Sound themes are located in /usr/share/sounds/ , there should be 2 real themes "ubuntu" and "freedesktop".

Now copy one of those 2 directories to ~/.local/share/sounds/, change its name and change the name in the index.theme file. If you are not that linux-savy to copy directories from root ownership to your home folder and change ownership to urself, you could alternatively download the freedesktop theme here: http://people.ubuntu.com/~dylanmccall/soundgallery/ and put it to ~/.local/share/sounds/

Now you are good to go, exchange soundfiles with whatever you like. Make sure to keep the names of files and the .ogg format.

To change the soundtheme, install dconf-editor, open dconf-editor and change value org.gnome.desktop.sound.theme-name to the name of your new theme. Done.

You might need to logout and back in to activate the change in sound theme.

Have Fun.


-bash: /usr/bin/grep: Argument list too long

When you use asterisks on the command line they are expanded by your shell before being passed to the application.  If that asterisk expands to 100+ files then you're actually passing 100+ arguments to the application.  It's not a problem to pass quite a lot of arguments, but your bash has a limit of 500,000.

Since you're already using -r (recursive) is it possible to rewrite the call to grep to only specify the directory you want to search in?

# recursive
grep -R <options> <pattern> <directory>

For instance in your case you could go:

grep -wirnE \
  'Wed Oct 19 2(1:[0-5][0-9]:[0-5][0-9]|2:([0-2][0-9]:[0-5][0-9]|30:00)) .* 2016' .

(* changed to .).

That way, instead of grep being handed a list of hundreds of thousands of files, it's just given one directory, and it uses its recursive processing to find the files itself.


error while creating a new administrator in Ubuntu

To add a new user you should type:

sudo adduser <username>

to add sudo rights to the user:

sudo adduser <username> sudo

and you should replace (obviously)  with the username desired by you, in the format as Norman Li pointed out...


How to add a command-line's window on software-center?

If you want to know the package name to install it manually, you can find it above the reviews. The command line is always sudo apt install <packages>.
If you want to search a package without opening Ubuntu Software, you can use apt:

$ apt search firefox
firefox/artful-updates,artful-security,now 57.0+build4-0ubuntu0.17.10.5 amd64 [installed]
  Safe and easy web browser from Mozilla

firefox-dbg/artful-updates,artful-security 57.0+build4-0ubuntu0.17.10.5 amd64
  Safe and easy web browser from Mozilla - debug symbols

firefox-dev/artful-updates,artful-security 57.0+build4-0ubuntu0.17.10.5 amd64
  Safe and easy web browser from Mozilla - development files

[...]

Then, you can install the packages with apt, apt-get or aptitude. Also, synaptic has a handy interface.


Unless you have a pretty old SSD, halfway modern SSDs can handle lots of writes, so you don’t really need to do anything if you have a halfway modern SSD.

If you still want to reduce swapping, reduce swappiness (minimum value on modern Linux is 1, not 0, if you want to go all out, though 10 is the recommended minimum and 60 is the Ubuntu default). This can slow things down greatly (to the point that the system can freeze up for quite a while if under heavy memory pressure) when swapping finally begins, since little to nothing will be swapped out ahead of time.

To set swappiness, replace 10 below with the swappiness you want, 1 to 100, where lower values swap less frequently. Open a terminal (press Ctrl+Alt+T), and run:

sudo sysctl vm.swappiness=10
sudo nano /etc/sysctl.conf

Now, add a line to the bottom (or if there’s already a vm.swappiness line, edit that):

vm.swappiness = 10

Press Ctrl+O to save. Press Ctrl+X to exit nano. Close the terminal window.


How to get/enable the new locally integrated menus (LIM) inside of the windows titlebar?

It's in the System Settings, under the appearance tab, behaviour. Right click on the desktop, click "Change Desktop Background", and then look in the Behavior tab:


Uncheck this in settings, "show advanced settings" somewhere near the bottom:


Chromium will not start in Guest Session on Ubuntu 16.04.3 LTS

I experience the same issue. I wrote my findings so far here: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1718885

Even though I don't have a good solution to this problem, if you are blocked by this like I am, I have a workaround to make chromium work right now:

sudo cp /usr/lib/chromium-browser/./libffmpeg.so /lib/x86_64-linux-gnu/


Ubuntu 18.04 LTS Unplug and replug usb wireless keyboard and mouse combo doesn't work

The issue was that my USB hub/switch was plugged into another computer using a 6ft long cord, this resulted in signal loss. I moved some stuff around to use a shorter cord and it fixed it.


Trying to make bootable USB on OS X -- the disk you inserted was not readable by this computer ??

You've already got two working USB keys. You probably don't need to make another. Unless you're having an Ubuntu themed party, I suppose.

That's not an error related to the creation of the USB Boot Drive. That's an error you get after the dd operation completes successfully. OS X can't read the contents of a properly created Ubuntu boot drive. You now need to reboot and let reFind or the Mac's EFI loader find the drive.

If you're planning to install this copy of Ubuntu on your Mac, make sure you read, fully understand and then follow the guide for your specific year and model. If you don't, you'll have nothing but headaches.


Did u try - sudo -H python3 -m pip install ..?

Doing python3 -m pip will explicitly invoke python3's pip.

Sorry for posting this as answer. I don't have enough reputation to put a comment.


Lubuntu stopped booting desktop, just goes to command line

Login to TTY1
Remove xorg.conf

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old1

Reboot

It should be Option without s


armv7l is 32 bit processor.

If you need a little bit more information regarding ARMv8, please read @Rinzwind's answer :-)


GnuTLS: TLS connection was non-properly terminated - error after upgrading to ubuntu 16.04

This is probably an SSL issue (did you perhaps change certificates, or update crypto libraries during the upgrade)?

You can try reinstalling git, or, failing that, you can rebuild git from source using a different crypto backend. You can reference the instructions from this answer.


Can I move the password field to the center of the login screen?

Options for 11.10

The layout of the login screen is controlled by the greeter package (plugin) for LightDM; the default with the left-side layout is unity-greeter. There's no way to modify unity-greeter to do what you want short of changing the source code, but it's easy to get centered layout with these alternative greeters if you don't mind the slightly simple design:

1. Use the gtk-greeter:

sudo apt-get install lightdm-gtk-greeter

open /etc/lightdm/lightdm.conf and change the greeter-session=unity-greeter to:

greeter-session=lightdm-gtk-greeter
save, exit, and either reboot or switch to the console (Ctrl-Alt-F1) and run sudo service lightdm restart
11.10 has a qt-greeter (for Kubuntu) and themes for Mythbuntu, but they didn't work for me on regular Ubuntu

2. Switch to GDM for a similar layout to (1):

sudo apt-get install gdm

switch to GDM when you are prompted (see this answer for more details or a GUI way to install GDM)


Try this python script. It borrows from Saving work automatically when battery is low

#!/usr/bin/env python

import subprocess
import dbus

sys_bus = dbus.SystemBus()

ck_srv = sys_bus.get_object('org.freedesktop.ConsoleKit',
                            '/org/freedesktop/ConsoleKit/Manager')
ck_iface = dbus.Interface(ck_srv, 'org.freedesktop.ConsoleKit.Manager')

stop_method = ck_iface.get_dbus_method("Stop")

battery_limit = 90  # in percent

def get_battery_percentage():

    percentage, err = subprocess.Popen([r'upower -i $(upower -e | grep BAT) | grep --color=never -E percentage | xargs | cut -d ' ' -f2 | sed s/%//
'], shell=True, stdout=subprocess.PIPE).communicate()

    return(int(percentage))

while True:

    if get_battery_percentage() <= battery_limit:

        stop_method()


Global Menu for Komodo Edit/IDE in Ubuntu

The Komodo team have just added support for the Unity Global menu here:
http://community.activestate.com/node/9281

You can install it through Komodo's Tools > Add-ons dialog.

Update for Komodo 8.0

The above mentioned add-on will not work for Komodo 8 so try this:
http://community.activestate.com/node/9547


Anyone Getting Bad Printouts from 12.10?

I am experiencing the same issue - couldn't see it in the evince bug list but have asked a question on Launchpad, see:

https://answers.launchpad.net/ubuntu/+source/evince/+question/218163

I am currently getting around the problem by first printing to .ps or .svg file and then printing again from there, although the margins are smaller by default.


How can I find out which process is using which disk?


Ubuntu 17.04 become freezing when typing bangla in browser

Avro still has not released any update for ubuntu 17.10, you can try Provat but it also has some performance issue with the latest ubuntu.


Remove obsolete boot entries after reinstalling Windows and Ubuntu 18.04

Backup! Backup!! Backup!!!

I have not done this, and what I am going to suggest is dangerous. Having a recovery plan is essential.

First, make a disk image of the EFI partition, so that if things go south you can restore the EFI partition and get back to where you started from. There are many ways to make a disk image file. Here is one:

Boot from a Ubuntu Live USB and use the "Try Ubuntu without installing..." option.
Open the "Disks" utility.
Select the internal drive from the left panel.
Select the EFI partition from the main window.
Make sure it is not mounted.
Select "create Disk Image..." from the hamburger menu ≡ on top right corner.
Make sure the destination partition/disk has sufficient space. Select the folder where you want to keep the image file.
click Start Creating button and wait for a long time.

If something goes wrong you should be able to restore the partition from this image.

Understand

Understand the relationship between the output of sudo efibootmgr and the Grub boot menu. Let us focus on the first part of the output:

BootCurrent: 0018
Timeout: 2 seconds
BootOrder: 0018,0019,0005,0006,0007,0008,0009,0004

and the Grub Menu screenshot:

The first line of the sudo efibootmgr tells us the default boot and this corresponds to the first line of the Grub Menu *Ubuntu. The * in the Grub menu indicates that this is selected by default.

From this, we learnt that 0018 in the sudo efibootmgr output corresponds to the *Ubuntu in the Grub menu.

We will ignore the second line of sudo efibootmgr. The third line tells us the boot order of 8 entries in the Grub menu:

0018 -> *Ubunu

0019 -> Windows UEFI bootmgfw.efi

0005 -> EFI/BOOT/bkpbootx64.efi

0006 -> EFI/BOOT/fbx64.efi

0007 -> EFI/ubuntu/fwupx64.efi

0008 -> EFI/ubuntu/mmx64.efi

0009 -> Windows Boot Manager (on /devsda1)

0004 -> System Setup

Now that we understand the relationship between the efibootmgr output and the Grub menu, we can form a strategy to delete the entries in the efibootmgr we don't need.

Based on your question we only need 0018, and 0019. The rest can be deleted.

See Explaination of my "efibootmgr -v" output for more.

Delete! Delete!! Delete!!

This is the most difficult and dangerous part.

You will want to delete the entries 0005, 0006, 0007, 0008, 0009, and 0004. You may also want to delete other boot entries that do not appear in the Grub Menu, but that may result in unexpected behavior and I don't recommend it.

If you want to live dangerously and be reckless you may want to delete the inactive boot entries, that do not have a star * next to them such as:

Boot000A  Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)

But these entries do not appear in the Grub menu, so you don't need to delete them for what you want.

Start with 0005 Use the command:

sudo efibootmgr -b 5 -B

Based on the mapping between efibootmgr output and Grub menu, we know this boot entry correspond to a file in the /boot/efi partition, specifically /boot/efi/EFI/BOOT/bkpbootx64.efi. So we can delete this file as well, with the following command:

sudo rm /boot/efi/EFI/BOOT/bkpbootx64.efi

Verify! Verify!! Verify!!!

Warning the boot entries in efibootmgr may have changed after deleting the 0005 boot entry. Run the command:

sudo efibootmgr --verbose

to verify the boot entry numbers have not changed. If they have changed follow the procedure described above to find the mapping between efibootmgr output and Grub menu. Reboot the computer and take a new picture of the Grub menu to be sure.

This is also a good time to verify the Grub menu still works as expected and you can still boot Windows and Ubuntu.

If Grub still shows EFI/BOOT/bkpbootx64.efi in the menu, you will have to run:

sudo update-grub

to make the changes in the Grub.

Repeat for the other boot entries

Once you have verified that everything works as expected, do it again for the next Grub entry and the corresponding boot entry in efibootmgr output

Final thoughts:I have not tested this solution and there is always a chance that you delete the wrong entry or the wrong file by mistake. If that happens, I hope you can restore the partition from the image file you have created.

Hope this helps


Thanks to user Zanna I found a solution. If anyone experiences the same problem, here is what you should do.

First of all, use sudo -i nautilus in order to gain root privileges. Copy extracted theme files into usr/share/themes (or /.local/share/themes if that's where those files of yours belong). By doing this you only copy those files, but they are still useless.

Next, right click the folder and choose "Properties". You have to open a tag named "Permission". You will (most likely) see that Owner is root and Access is "Create and delete files". That's OK, leave it be. Next one is Group and once again root is mentioned. This time set Access to "Access files". Finally, with Others you should also choose Access to be "Access files".

Exit nautilus. You might need to close all windows or even restart system. After this operation, open Gnome Tweak Tool. If you don't have it, run sudo apt-get install gnome-tweak-tool. Under Appearance tab you'll see GTK+ Theme option. This is where your new theme can be found.

Cheers!


snd_pci_acp3x 0000:03:00.51: Invalid acp audio mode: 1 (Lenovo IdeaPad 330S 15")

I was experiencing the same problem for some days now when I finally decided to look into it myself. I have an AMD Ryzen 5 4600H chipset and the ACP that is causing problems was not needed for me since newer Renoir processors use snd_rn_pci_acp3x sound drivers and not snd_pci_acp3x. But, for you the problem is basically with Audio Co-processor's(ACP's) version incompatibility. You can know more about AMD's ACP driver from here. Since the error is harmless you can simply blacklist the drivers in modprobe configuration file.
For this open a new terminal instance and type:
sudo gedit /etc/modprobe.d/blacklist.conf

and add the following line at the end of the file,
blacklist snd_pci_acp3x

Save the file and thats it, now just do a sudo reboot and the error should be gone now.


upgrading Ubuntu 11.10 to 16.04LTS - can I skip in between upgrades?

You can skip versions when doing LTS-to-LTS upgrades, e.g. you can go from 11.10 to 12.04 LTS, then to 14.04 LTS, and then to 16.04 LTS.

However, this will take a long time, you are probably looking at 3-4 hours minimum there depending on your internet connection and other factors.

Since this is a substantial migration, you should also expect small things here and there to go a bit wrong, so this might mean even more effort to get things going smoothly after you are finished.

As you have hopefully backed up your data like you always should when doing upgrades, the quickest and cleanest way would be to do do a fresh install of 16.04 LTS, you can get away with 20-30 minutes here.

Just as a side note, if you tend to wait this long with upgrading your installations, I'd suggest to stick with LTS releases.


Can't install unity-tweak-tool from Synaptic Package Manager

That is because you have broken packages. And the changes applied via tweak tool will remain even if the tool is removed. Also the unity tweak tool has been removed from the system during the update or during installing another package.

You can do couple of things.

1) Run

sudo apt-get install -f

see if that fixes.

If it does not,

2) Did you install any updates recently or any new software using some ppa? Then remove that ppa or any other unwanted ppas using

sudo apt-get install ppa-purge
sudo ppa-purge ppa:yourppaname/here

3) Then run

sudo apt-get install -f
sudo apt autoremove
sudo apt-get install unity-tweak-tool


Since emerald is no longer in the official supported repositories, its Segmentation faults are not a thing for this forum.

I "solved" this problem with this not-so-elegant workaround.

file: emerald-restarter.c

#include <unistd.h>
#include <stdio.h>

int main() {

        int pid;

        while (1)
        {
                pid = fork();
                switch ( pid )
                {
                        case 0:
                        printf("Child process starting emerald.\n");
                        execlp("emerald","--replace",NULL);
                        break;

                        case -1:
                        fprintf(stderr,"Fork failed.\n");
                        return -1;
                        break;

                        default:
                        printf("Main process waiting for PID %i to finish.\n",pid);
                        wait();
                        break;
                }
        }
return 0;
}

Compile it and let Compiz run this instead of emerald. It will keep restarting emerald every time it crashes.


How to remove all metadata from a file (e.g. pdf)?

MAT

Have a look at MAT (Metadata Anonymisation Toolkit)! It comes from the TOR-people and as standard on Tails—a privacy and anonymity focused live OS.

Since it's kind of a wrapper around exiftool, it supports more file formats that exiftool alone.

By now, they are:

Portable Network Graphics (.png)
JPEG (.jpg, .jpeg, …)
TIFF (.tif, tiff, …)
Open Documents (.odt, .odx, .ods, …)
Office OpenXml (.docx, .pptx, .xlsx, …)
Portable Document Fileformat (.pdf)
Tape ARchives (.tar, .tar.bz2, …)
MPEG AUdio (.mp3, .mp2, .mp1, …)
Ogg Vorbis (.ogg, …)
Free Lossless Audio Codec (.flac)
Torrent (.torrent)

For some more details, have a look at this paper.

BEWARE

  “Mat only removes standard metadata from your files, it does not:

  anonymise their content
  handle watermarking
  handle steganography
  any overly customized metadata field/system (→jpg,zip)

  If you really want to be anonymous, use formats that do not contain any metadata, or better: use plain-text.

  And most important, be careful: every format can be watermarked, even plain text (e.g. the SNOW project)!

  You can also print out a copy of the documents, re-scan them, and pass it to the MAT; but be careful to securely shred your printout and not leave traces in your printer’s/scanner’s memory.”
  (taken from MAT-website)

JPEG

Comments and the standard Exif-/IPTC-/XMP-tags are being deleted.
There might be proprietary non-standard tags (like Canon Raw tags) MAT does not touch. These could be included by e.g. proprietary RAW → JPEG conversion tools.

ZIP

MAT does not alter the content of the archive. If a tool creates additional files containing metadata within the archive, they will not be touched.

Installation

Ubuntu 12.10 and above

Since Ubuntu 12.10 it's in the standard repository universe.

sudo apt install mat

Below Ubuntu 12.10

For older versions of Ubuntu, it has to be installed by hand. The dependencies are:

gir1.2-poppler-0.18
libimage-exiftool-perl (universe)
python2.7
python-gi-cairo
python-mutagen
python-pdfrw (universe)

Install them via:

sudo apt-get install gir1.2-poppler-0.18 libimage-exiftool-perl python2.7 python-gi-cairo python-mutagen python-pdfrw

Then get MAT here (e.g. mat-0.6.1.tar.xz). If you want verify your download with GnuPG, get the .asc file as well.

To check it, import the key given at the bottom of the page e.g. via

gpg --search-keys 0x04D041E8171901CC

and check with:

gpg --verify mat-0.6.1.tar.xz.asc  mat-0.6.1.tar.xz

The output should be something like

gpg: Signature made Sun 03 Jan 2016 09:02:29 PM CET using RSA key ID 171901CC
gpg: Good signature from "Julien (jvoisin) Voisin <julien.voisin@dustri.org>" [unknown]
gpg:                 aka "Julien (jvoisin) Voisin <jvoisin@riseup.net>" [unknown]
gpg:                 aka "Julien (jvoisin) Voisin <jvoisin@openmailbox.net>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 9FCD EE9E 1A38 1F31 1EA6  2A74 04D0 41E8 1719 01CC

Extract and install via

tar xvfJ mat-0.6.1.tar.xz
cd mat-0.6.1
sudo python2 setup.py install

Debian users find it in the testing-repo, Arch users in AUR.

If everything went fine, you have the console tool mat as well as the gui mat-gui.


Screen is getting frozen while installing Ubuntu as dual boot

Sometimes it so happens that grub doesn't install properly with usb 3.0, so try switching ports if you are doing it on usb 3.0. If this is not the case, try changing the bios settings to UEFI mode and try again!


The free version of DaVinci Resolve doesn't support h.264 or AAC. You would need to buy the Studio version to get support for these codecs. Resolve doesn't work with ffmpeg or gstreamer underneath, but its own engine.


Record video from stream, audio from USB device and mix then together

MP4 doesn't support PCM audio (the format family commonly found in WAV files).

The console output indicates this immediately above the line you showed, but you omitted it:

[mp4 @ 0x559e59ef2360] Could not find tag for codec pcm_s16le in stream #0, codec not currently supported in container

You options are:

Output to a different output container format, such as .mov or Matroska (.mkv) as you already discovered, or
Encode the audio to a format supported by MP4, such as AAC, by replacing -acodec copy with -c:a aac.


For automatic page numbers we have a predefined field we can insert at any place (including your footer) using the menu item Insert - Fields - Other:

We can define the format of the page numbering as well as an offset in case we do not start numbering with 1.


Mulitmonitor Setup on Optimus Laptop stopped working after playing with Compiz Settings [Ubuntu 16.04]

I got it working!
After some hotplugging/unplugging and logging off/on, the laptop screen suddenly was on, and there I could open the display gui and see both external displays were recognized but deactivated, activated them, and voila.

Some how Ubuntu had kept my 'dont use laptop screen' setting whenever at least one external display was connected, but deactivated both external screens when both were connected, because something got reset when I messed with Compiz and Ubuntu was now every time confused with the 2 external displays and turned them off precautiously for some reason until I would choose to use them - except I couldnt, because the laptop screen off setting persisted/came back once I connected them. Looks like a bug to me.

The straight forward way would have been this, I believe:
disconnect one, then turn on laptop display, then connect the second one as well,then have laptop screen to acticvate both ext. displays and deactivate built-in screen with the gui, and be happy.


Cannot install Metrader 4 with Wine on Ubuntu 14.04

It is probably related to so called "proxy issue". You can try installing windows http:

sudo apt install winbind

Winbind is a component of the Samba suite of programs that solves the unified logon problem. Winbind uses a UNIX implementation of Microsoft RPC calls.


Trouble Adding Basic Lock Screen in Lubuntu 14

Try setting your options under the Xfce Power Manager.  You can reach it from the Main Menu->Preferences->Power Manager  or right clicking the little battery icon on the LXPanel and choosing Preferences.


Trying to install Foxit Reader 2.4.1 on 16.04 - message cannot execute binary file

If you typed the instructions exactly as shown in your question, you will fail.  Foxit Reader expects that you will replace "version" with the version number of the file that you have downloaded.  Try the following:

In a terminal, change to the directory that has the downloaded file you want to install.  Please make sure that there is only one version of the Foxit software in the directory...

Enter gzip -d Foxit then press tab, and enter - no space between the t and tab.  This should complete the command with the name of the gz file.

Enter tar xvf Foxit then press tab, and enter - this should complete the command with the name of the tar file.

Enter ./Foxit then press tab, and enter - this should complete the command with the name of the executable file.


I tend to create separate partitions for '/'  and '/home' so that a fresh install can be done without losing files and settings on the home partition...  That way you can try as many different distros as you like with a fresh install...


Ubuntu 20.04 cannot reach resolution 21:9 with an ultrawide monitor

I would edit your question above your results from running xrandr and lshw -c video so people can see more details of your setup.
I have 2 of this sort of LG ultrawide (not sure on the exact models) on one PC, but have never had any issues with Ubuntu (personally I don't use any proprietary drivers), they have just been detected and worked without any custom settings.
I don't know if my output from xrandr showing the two LG monitors will help you determine compatible settings for adding a custom mode?
HDMI-1 connected 2560x1080+0+1080 (normal left inverted right x axis y axis) 673mm x 284mm
   2560x1080     60.00*+
   1920x1080     60.00    50.00    59.94
   1920x1080i    60.00    50.00    59.94
   1680x1050     59.88
   1600x900      60.00
   1280x1024     75.02    60.02
   1152x864      75.00
   1280x720      60.00    50.00    59.94
   1024x768      75.03    60.00
   800x600       75.00    60.32
   720x576       50.00
   720x480       60.00    59.94
   640x480       75.00    60.00    59.94
   720x400       70.08
DP-1 connected primary 2560x1080+0+0 (normal left inverted right x axis y axis) 798mm x 334mm
   2560x1080     60.00*+
   1920x1080     60.00    60.00    50.00    59.94
   1920x1080i    60.00    50.00    59.94
   1680x1050     59.95
   1600x900      60.00
   1280x1024     75.02    60.02
   1152x864      75.00
   1280x720      60.00    50.00    59.94
   1024x768      75.03    60.00
   800x600       75.00    60.32
   720x576       50.00
   720x480       60.00    59.94
   640x480       75.00    60.00    59.94
   720x400       70.08


Need suggestion which version of Ubuntu is suitable for my machine

In short either one.  Now as far as 13.04 goes, support on it will expire on 01/2014.  By then 13.10 will be completely out.  If you want Ubuntu 13.04, you can download it Here.  For installation instructions see Install Ubuntu 13.04.

Now, for 12.04LTS (Long Term Support), support on that will expire on 04/2017.  If support is what you're after, then 12.04 is the one for you.  You can download it Here.  For installation instructions see Install Ubuntu 12.04.2 LTS.

  So who is the latest version for? Well, if you want to be on the
  bleeding edge, have the latest versions of all your software, and use
  the latest features before they make it to the LTS version of Ubuntu,
  upgrade to the every-six-month releases. If you’re a developer who
  needs the latest versions of certain packages, you might want to
  upgrade if getting them on the LTS version of Ubuntu is too much
  trouble. If you use Linux because you like tinkering and experimenting
  with the latest software — and don’t want things getting too boring
  and predictable — upgrade to the latest release.

  However, you’re not missing out much by using the LTS release. You
  don’t have to upgrade every six months anymore — Ubuntu’s LTS release
  is well-supported and will run all the software you depend on. It’s
  regularly updated with new hardware support and performance
  improvements, so you shouldn’t have to upgrade to make your Wi-Fi work
  properly or dramatically speed up your desktop.

Source:HowToGeek


Wow!!That must be really 'hot'! Sometimes, it could be a process that is using quite a lot of CPU. But, because the fan needs to cool the computer, you could probably hear your fan right? If you just can get to install Ubuntu, it might stop doing that.

But you must be thinking, there has to be something increasing temperature! And it might do it all the time!

Well, options have been thought of for you......

Either get a Linux distribution that won't need so much CPU.http://www.howtogeek.com/172987/revive-your-old-pc-the-3-best-linux-systems-for-old-computers/
If you do get to the end of installation. Get this http://www.webupd8.org/2011/09/jupiter-applet-finally-available-for.html

3.If you can, you can also get the system monitor (if you install Ubuntu)

Dun Dun Dunn...never boot Linux again and go back to windows :(


RTL8821CU based WiFi USB adapter driver installation

So, I figured out what happened: The drivers, make files and install.sh files that were provided by the manufacturer were not doing the trick. Here is exactly what I had to do:

Clone brektrou repository:

mkdir -p ~/build
cd ~/build
git clone https://github.com/brektrou/rtl8821CU.git

Build and install:

cd ~/build/rtl8821CU
make
sudo make install

Check installed driver:

ls /lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek/rtl8821cu

This worked perfectly!


Can't login to GUI with my Valid password

This looks like the .Xauthority file is corrupted. Try this in a tty:

sudo mv .Xauthority .Xauthority_backup

Then restart lightdm and try to log in again:

sudo service lightdm restart

If that was not the cause, restore the file to its previous state:

sudo mv .Xauthority_backup .Xauthority


How do you create a multipurpose launcher?

For Ubuntu 10.10 and below

Create a file that contains these commands:

!#/bin/sh
thunderbird &
gwibber-service &
banshee &
#chrome & # commented out, because I don't know the exact command.
# find out by typing "chrom" into terminal and autocomplete with tab

Save it e.g. as ~/ChromeBansheeThunderbirdGwibberStarter and assign execute-permission:

chmod +x ~/ChromeBansheeThunderbirdGwibberStarter

Now right-click panel, Add to panel..., Custom Application Launcher

Type: Application
Name: (whatever you like)
Command: ~/ChromeBansheeThunderbirdGwibberStart

Clicking the icon will allow you selecting something else for your launcher.


Parameters to connect to Proximus Public Wi-Fi Ubuntu 20.04.1 LTS

Here are the parameters that works:

Security : WPA & WPA2 Enterprise
Authentication : Tunneled TLS
No CA certificate is required : checked
Inner authentication : PAP
Username : your.user@proximuswifi.be
Password : yourpassword


Making a .sh script to check if SSH connection exists and if not then connect

Let's assume you are using the following command to establish your SSH connection (I would prefer to use .ssh/config file that will simplify the ssh command, but this is not mandatory):

ssh user@host -fTN -R 2222:127.0.0.1:22 -i $HOME/.ssh/id_rsa

the options -fTN will push the connection into the background - I wrote this leading part, because this set of options is critical for my suggestion below;
the option -R 2222:127.0.0.1:22 will create the reverse tunnel;
the option -i $HOME/.ssh/id_rsa indicates the identity file.

We can use ps -aux | grep "<our command>" | sed '$ d' to check whether the connection is established or not. Based on this our script could be:

#!/bin/bash
SSH_COMMAND="ssh user@host -fTN -R 2222:127.0.0.1:22 -i $HOME/.ssh/id_rsa"

if [[ -z $(ps -aux | grep "$SSH_COMMAND" | sed '$ d') ]]
then exec $SSH_COMMAND
fi

Call this script my_autossh, place it in ~/bin and make it executable. Then run crontab -e and add the following job:

* * * * * $HOME/bin/my_autossh

If you do not want to use Cron, modify the scrip my_autossh in this way:

#!/bin/bash
SSH_COMMAND="ssh user@host -fTN -R 2222:127.0.0.1:22 -i $HOME/.ssh/id_rsa"

while true; do
    if [[ -z $(ps -aux | grep "$SSH_COMMAND" | sed '$ d') ]]
    then eval $SSH_COMMAND
    else sleep 60
    fi
done

And use nohup to push it into the background:

nohup my_autossh >/dev/null 2>&1 &

Read also:

How to suspend/resume cronjob if one is already running?


Ubuntu server 18.04.05 LTS apt update / install snmp snmp-mibs-downloader error

The repositories in Poland appear to be down right now. Temporary failure resolving 'pl.archive.ubuntu.com' That is the error and it means that for what ever reason that site is down right now. Try another site or try again later. You could edit the sources list or wait an hour and try again.
The source list /etc/apt/sources. list and the files contained in /etc/apt/sources. list. d/ are designed to support any number of active sources and a variety of source media.
You could try the UK or US site by changing the pl to uk for example.


Aleikum Salam!

I give you 2 solutions:

Format the stick as FAT16 (or just FAT), not as FAT32.
Type: mboot.c32 -c boot.cfg at the boot: prompt.


You should be able to set accounts to use /bin/false to prevent login.

sudo usermod -s /bin/false <account>

So, for user "baduser", use sudo usermod -s /bin/false baduser .

You can also edit the password file directly, using a command like vipw .
The resulting line should look something like this:

jgb:x:1003:1003:,,,:/home/jgb:/bin/false

To be even more secure, you can set allowed users in ssh via /etc/ssh/sshd_config .
You would add a line like this:

AllowUsers user1 user2 user3


Are there adverse effects from (or a better way than) writing to /run or /dev/shm to protect temporarily unencrypted data?

If I were to write the decrypted file to /run (or, for that matter, to
  /dev/shm), would there be any adverse consequences?

For your use-case (text files, which can't get very big), no.

  Would the file be protected more than if it were written straight to
  disk (like I've been doing)?

You understand things correctly. Saving sensitive data to
un-encrypted non-volatile magnetic media is a practice best avoided
-- if there's an alternative.

  Is writing to those directories a bad idea for reasons I don't even
  know to think of?

Nope. You're good to go. Just keep in mind that if you're writing directly to one of these tmpfs mount points, due-diligence would demand you make sure your shell umask is set appropriately when decrypting the file -- gpg could very well end up creating the decrypted file with world-readble permissions.

Lastly: I won't give any recommendations for password managers because I've never tried any; however, I did develop a comprehensive GnuPG/OpenSSL encryption (GUI) frontend written in Python that you might be interested in. It doesn't save any files to disk (or to tmpfs), unless you tell it to, and it can decrypt gpg-encrypted files, display their contents for viewing and editing, and then allow you to re-encrypt them. Check it out on github.


You appear to have hit this bug: Unity Bug #932769: tray area disappears after alt+tab in fullscreen window.

Unfortunately, nobody seems to know a solution so far.


Setting auto in /sys/bus/usb/devices/1-3/power and changing autosuspend_delay_ms to 300000 (5 min) solved it


Steam Rom Manager: incorrect Steam directory

Correct Steam directory for you (as you said in comment) is:

~/.local/share/Steam

But it is better to specify the full path:

/home/you_user/.local/share/Steam

To find all directories called steam or Steam you could use the next command:

sudo find / -type d -iname Steam 2>&1 | grep -v "Permission denied"

It would show only case insensitive (-i before name) directories (-type d option), hiding records with Permission denied message.

In my case it outputs:

/usr/lib/games/steam
/usr/lib/steam
/usr/share/doc/steam
/home/user/test/steam-rom-manager/src/lib/helpers/steam
/home/user/.local/share/Steam
/home/user/.local/share/Steam/steam

Doing ls of each directory, you could get theirs content. Appropriate folder would contain a lot of files and directories.


Ubuntu 11.10 disconnects me from internet (cable)

You haven't given enough details to accurately diagnose ..

(the obvious) Check your settings.

(Network Icon) >> Edit Connections

It should look like:


Is running ubuntu with a Virtual machine, like VMware, Virtualbox, same as just running normally without? (functionality and experience wise)

As running the OS in a virtual machine is possible to all extent this does not hold true for hardware integration. The drawbacks depend on the virtualization software you will be using but pe prepared to have issues when accessing

hardware graphical acceleration (not all features of your graphic card will be exposed to the VM).
sound devices (partly integrated or emulated but still not all features may work as expected).
unusual proprietary hardware (especially when they come as a PCI card).
USB devices (USB 3.0 acess may not be available).
Application that need fast hard drive access (only a virtual disc is provided).

In practise you will probably not notice much of these drawback other than a drop in performance because most hardware will be accessible. But be prepared that not all and every hardware you may use on your host will also operate the same on the guest system.


Install drivers for Intel integrated GPU in Ubuntu 18.04 for DaVinci Resolve 17?

DaVinci Resolve Minimum System Requirements
GPU memory

512MB – Forget about it
1GB – You’ll be okay with basic HD ProRes work, checking RAW files but avoid noise reduction and optical flow.
1.5GB – Approaching the absolute minimum to use Resolve with some level of complexity in HD. Noise reduction and optical flow will still be problematic. I’ve made a 1.5GB Intel Iris Pro GPU work well on a iMac and Macbook Pro, and manage to render a full 4K delivery.
2GB – A comfortable HD experience, limited 4K work.
4GB – Minimum for comfortable 4K work.
6GB – You can tackle pretty much everything a project is likely to require.
8GB+ – You can actually tackle everything any project is likely to require.


According to the quote below, there is no plan to "officially" sync Tomboy using simplenote.

Question: I also wonder if there are any plans to allow syncing with simplenote, since
it seems to be kind of widespread now, especially with iOS users. It seems
to be the single best sollution for syncing to iOS devices right now.
Answer: No.  Anybody could write an add-in to do
this, but it would lead to formatting
loss, data loss, etc, since simplenote
is not as "rich" as Tomboy.

from the tomboy mailing list
You can, however, use the following methods.

use the Google Chrome extension
Use Simplenotes Sync
If you use emacs, you can use this emacs plugin.
Another option (one that I use a lot) is notestack.me - it is a HTML5-based program that has offline sync in Chrome, Firefox and any other web browser that supports the localStorage spec.
For other options, you can also take a look at the official Simplenotes app site downloads section.


Of course you can fortunately not log in remotely to a server without knowing the account password (or having SSH-keys set up).

Just imagine what happened if there was a way to bypass authentication on any arbitrary server connected to the internet and log in as root (or admin account with sudo permissions, doesn't matter). Looking at the issue this way makes it clear that such a thing may not be possible.

You can only reset a forgotten root password if you have physical access, which gives you the option to boot the system in recovery mode and drop to a root shell, as described in How do I reset a lost administrative password?


Help getting the Flash player working on second screen?

Run nvidia-settings and make sure that you are using Twin-View rather than Xinerama or a "Separate X screen". If that doesn't solve your problem, check and see if disabling flash hardware acceleration solves the problem (keep in mind that flash has little to no benefit from linux hw-accel as of this post).


Use WebCam to record (Including movement detection)

You could try using motion (V4L capture program supporting motion detection), a command line only utility.
To install this from the standard repository, execute:
sudo apt install motion

It's been pretty useful for me. Keep in mind motion will not record any audio.


VirtualBox XUbuntu 16.04 - Bootloader won't start

Been looking for a solution to this for a while now, finally found it here:

https://askubuntu.com/a/726285

Basically:

Append nomodeset to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub (after quiet splash)
Run sudo update-grub
Should reboot normally now.

See here for an explanation of what nomodeset does (shouldn't have an impact once booted):

https://askubuntu.com/a/207177


Goto Activities or to Show Applications menu and type Startup Applications.

The Startup Application Preferences window opens. Then, click in Add, give a name for the application in the Name field ("Guake" it's enough), and then type “guake” without quotes in the Command field and click Add. Then close the Startup Application Preferences window and restart the machine, now Guake should start automatically on login.

Source


It'll be better if you don't move from 12.04 to 13.10 directly. The package scripts are responsible for conversion and creation of new settings which will be messed up if you jump releases like that. You may end up with a buggy system that'll ruin your experience with the new release. It'll be better if you upgrade to 12.10 and then to 13.04. The releases are made that way so you can go from one version to another or from one LTS version to another LTS version.

When you've got 13.04, you can further upgrade to 13.10, but I'd really not recommend that. It is still under development, and is not suggested for regular use.

If you do wish to use 13.10, my suggestion would be to download the .iso of the file from here, and boot it from a LiveUSB or on a virtual machine on Ubuntu itself. VirtualBox is a great tool for this, and you can run 13.10 without the risk of your system crashing and consequent data loss.


Cheese launches but webcam area is black

in cheese settings , change resolution to lower one and try again


Brightness controls doesn't work on a MacBook Pro 5.5 (ubuntu 12.04 LTS)

First, see this for instructions on changing brightness through the command line.  If that doesn't work, it is likely a problem with your graphics driver and/or kernel version.

Note that by switching graphics driver, you can solve one problem but cause another.  The default for nvidia has no power management, so people may switch to the proprietary driver if battery life on a laptop is important to them, but nvidia's drivers (being closed source) may not play nice with Ubuntu (leading to display issues like tearing in video).

If you want the nvidia driver, type in the terminal sudo apt-get install nvidia-current.  After installing the driver, you'll need to enable brightness controls in /etc/X11/xorg.conf.

In /etc/X11/xorg.conf you should put:

Section "Device"
    Identifier     "NVIDIA GeForce"
    Driver         "nvidia"
    Option         "NoLogo" "True"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
EndSection

"Identifier" is not so important unless you have other stuff referring to this device in your conf file.  You can replace with more appropriate name if it's not an Nvidia GeForce type card.  Everything else must be as written; "NoLogo" is to avoid the annoying Nvidia splash screen.

To edit the file using a GUI text editor, type gksudo gedit /etc/X11/xorg.conf in the terminal.  Save changes and reboot... if all went well, you will now be using the new driver and brightness controls will work!  If it doesn't work, you can check if you're using the new driver by typing in the terminal lspci -v | grep -i -A 15 vga.  You should get something like:

02:00.0 VGA compatible controller: NVIDIA Corporation Device 08a3 (rev a2) (prog-if 00 [VGA controller])
[some lines omitted....]
Kernel driver in use: nvidia
Kernel modules: nvidia_current, nouveau, nvidiafb

Kernel drive in use should be nvidia, not nouveau.


Can't select anything on GRUB and it just boots to the first option, what could be the problem?

Sometimes some computers have problems with USB support before the operating system starts.
Does it work with a PS/2 keyboard (if you have a PS/2 port on your computer for that)?

Enabling legacy USB support in your BIOS if you have the option will usually fix this.


Using cores on multiple servers for bruteforce-luks

Solution:

Create program which allows you to type in all the words you usually use in passwords.
Run the program which will do a sort of permutation but not only change the order of the words, but also build up the number of words used per permutation.
Save the generated passphrase text file (ended up being over 5,000,000 passphrases)
Use the 32 cores I had available and split the passphrase text file into 4. I file per server.
Use dd to create an additional 3 copies of the USB stick which needs to be brute-forced
Plug 1 USB stick into each of the 4 server, and 1 forth of the text file per server.
Install and run bruteforce-luks with all cores and all server and around 24 hours later, the passphrase was found.


Error loading Windows 10 after installing Ubuntu 14.04

Thanks for sharing the pastebin.
As per the pastebin

**
Please disable SecureBoot in the BIOS. Then try again.Do you want to continue?
**

So before the boot process , get into your BIOS and disable secure boot completely and then try boot-repair process all over again.


Backup such that all programs are saved as well

rsync and its many GUIs and interfaces is very popular. Some other packages (and this is not a complete list) include:

Amanda
Areca
BackInTime
Bacula
BackupNinja
BackupPC
Borg Backup
Box Backup
Burp
Duplicity
fwbackups
kbackup
Lucky Backup
Restic
rclone
rsnapshot
Simple Backup Suite
Simple Linux Backup
Urbackup

If you ever decide you need absolutely, positively, need a copy of the entire system, Clonezilla is very popular.

Whenever you backup, always, always, verify the backup, to make sure what is written to the backup is the same as the original source file; and, always, always, backup twice to make sure if there's a failure with the drive, tape, or cloud you wrote to, there's another copy safely saved elsewhere.


Installing Firefox 15  and remove previous version (ubuntu 12.04)

I am assuming you have the 12.04 version (Please add that to your question) since it started with Version 14 of Firefox. If you update your Update Manager you should see an update for Firefox 15.

After installing Firefox 15, it will automatically upgrade Firefox 14 so there is no need to uninstall it.

Just an FYI, every time a new version of Firefox comes out, Ubuntu will update to it after a couple of days. This is done automatically and it will show in the Update Manager when it is officially supported in your Ubuntu version. Does not matter the language Firefox is on.


Help with directory ownership/permissions for apache

You will want to create a group and add all of the accounts to it that will need to access your web root directory. Once this is done then you will need to change the group for the folder and its contents.

You will definitely want to add the account that Apache is running under (usually apache) to the group as well as the account that will be executing the CGI scripts. If I recall correctly your ftp server will be accessing files as the account it is running as rather than the log in you are using when you access it.

To create the group you can use the following:

$sudo groupadd newgroup

To add users to the group use the following for each user:

$sudo usermod -a -G newgroup username

To change the group that the webroot folder belongs to:

$sudo chown -R currentowner:newgroup yourwebrootfolder


Mounting an Android VMDK with no external libraries

I've used this method to mount VMs from QEMU, Virtualbox, and VMware. First, install this:
sudo apt install qemu-utils

Then load the driver and mount the image to a loop device:
sudo modprobe nbd
sudo qemu-nbd --connect=/dev/nbd0 /path/to/your/image-file

If it's working, you should see something like this (the following is from a Ubuntu VM):
$ sudo fdisk -l /dev/nbd0
Disk /dev/nbd0: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C6425F6B-6DB0-4E64-BA60-BF958383F4AD

Device         Start       End  Sectors  Size Type
/dev/nbd0p1     2048   1050623  1048576  512M EFI System
/dev/nbd0p2  1050624  52955135 51904512 24.8G Linux filesystem
/dev/nbd0p3 52955136 104855551 51900416 24.8G Linux filesystem

Now, mount the partition as usual - either with your file manager or from the terminal like this:
sudo mount /dev/nbd0p2 /mnt

Once you're done, unmount the partition and unload the driver:
sudo sync
sudo umount /dev/nbd0p2
sudo qemu-nbd --disconnect /dev/nbd0
sudo modprobe -r nbd


Making a shorcut ask for what file to open

Atom has support for this by pressing Ctrl+P which lets you start typing a filename and it will show the closest matches.

Also be aware that & only sends a process into the background, when you close the parent process (like your terminal) it will kill all the spawned gedit processes. You may want to use nohup or setsid to avoid that.


Wireless no longer works after upgrade to 11.10 on Dell XPS L702x

I found the issue. It was all my fault :(

In Ubuntu 11.04 I was having stability problems with Wireless N so I created a file called /etc/modprobe.d/iwlagn.conf and put the disable incarnation in it, which is options iwlagn 11n_disable50=1 11n_disable=1 (relevant blog post). It seems 11.10 did not like this hack at all - and was refusing to even recognise wlan with that file in place. I removed this file and rebooted and now wireless works again :) .


Cannot create/delete any files/folders in two partition

If the partition has been mounted read-only(ro) it won't allow writes. You'll have to remount it with write(rw) permissions to fix the problem in that case.

mount -o remount,rw <device>

So if the device were /dev/sdc1 for example you'd put:

mount -o remount,rw /dev/sdc1

On first mounting you don't need to include "remount,". Also, if you want it to mount rw at boot, check your /etc/fstab file and make sure the options column for that partition includes rw and not ro. An example might be:

/dev/sdc1  /path/to/mount  ntfs-3g  defaults,rw  0  0

Lastly, if you want to know what other mount options might be available to you, I recommend exploring the man page for ntfs-3g:

https://linux.die.net/man/8/ntfs-3g


Recover data after ‘sudo dd if=/usr/lib/SYSLINUX/mbr.bin of=/dev/sda1’

Takkat – it took many hours, and one file didn’t copy at all – I mean, I’m sure it would but it was taking so long I thought it would be easier to download it again so I just aborted the operation myself – but I ended up with all boss’ data on my laptop, created a new partition table instead of the corrupted one, and installed the system. Maybe it was still possible to restore the file system as it was before I dd’d it, but it was just more efficient to extract necessary data and install the system anew than to figure out how to revert the dd. Thank you.

P. S. also, WinEunuuchs2Unix – no, it doesn’t. It literally just says ‘Can’t open filesystem. Filesystem seems damaged’. That’s it.


Very poor graphics performance after suspend for Nvidia Optimus on Ubuntu 16.04

Ok,

So for anyone who might happen upon this, I ended up solving the issue and wanted to give a quick response to what was wrong, and what to do to remedy.

To begin with, the real problem was that my CPU was overheating.  It was being asked to do too much and was not able to cool itself properly.  I ended up fixing my issue, and getting reproducible results on my Steam games.

Check your upstart/systemctl services.  I had a bunch of services that I never use daily enabled via upstart (ie postgres, mongodb, etc).  I ended up checking my running programs after a fresh boot and disabled these services one by one.  Check this answer for specifics on how to do this for your OS version.
Check any non standard CPU heavy services and ensure they are stopped before starting any games.  For me this was Dropbox, there was a noticeable drop in performance while the dropbox service was started, my guess is that it interrupts the CPU too often to check for any changes to my Dropbox files.  In any case, I disabled this to autostart (in the UI 'Startup Applications', which is where I put the autostart script.
Check and clean your cooling system.  I think a big part of my issue was that the fan was actually being pinched just slightly by the housing (laptop) and it was not spinning up to 100% on full power.  Obviously this resulted in a reduced ability to push hot air to the radiators and I could not cool the CPU / GPU properly.  I ensured smooth fan operation and give it a good clean with Compressed Dry Air about every month.  I notice a big improvement to stability during these high load times after a clean.

So those were the big things I did to ensure a consistent experience on my system when playing games were involved.  The fixes all seem to be straight forward and obvious in hindsight, but the combination of factors made it tough for me to isolate what is going wrong in the moment.

Hope this can help someone with similar griefs.


Taking from HTTP Request Without curl or wget you can install classic bash shell with

snap install classic --edge --devmode
sudo classic

after start the shell:

sudo apt-get install curl

Unfortunately, at this moment http://dl.ngrok.com doesn't work but in apt-cache you can find ngrok-server. I hope is the same.


Have you had this setup running as expected in Ubuntu 11.10 (i.e. before you upgraded to 12.04)?  If not, have you actually run Evolution?

When Evolution first runs, it sets up the default calendars in its backend.  Until then, no calendars exist in Evolution.  This means that Evolution Mirror has no calendar to mirror Lightning's events to and also that the Calendar lens has no data source to get events from.

The error message you posted suggests that the lens is finding no calendars at all when it asks evolution for a list of them.

So, try running Evolution.  You don't need to set up any email accounts in it.  Then try adding an event in Lightning and see if it appears in the lens.  If this works, you'll also need to reset Evolution Mirror to resend all your existing events in Lightning to Evolution.  To do this:

In Thunderbird, go to Edit --> Preferences --> Advanced --> Config Editor
In the config editor, search for evolution.
Find the entry for extensions.evolutionmirror.firstrun.
Double click on the entry to change its value to True
Restart Thunderbird.  On restart, all your events will be copied into Evolution's database and subsequent updates to events in Lightning will be reflected in Evolution.


Seems like there is a problem with syncing notes at the moment.

Look here for more information on what is the current status and when the issue will be resolved:

https://wiki.ubuntu.com/UbuntuOne/Status#Notes


Timely thread. I got hit with this today - really a pain.

This answer put me back in business: Unmet dependencies: linux-generic

Now, I just have to remember to watch the space on /boot before running apt-get dist-upgrade. :-[

That other question said that it would be okay to re-install linux-generic at some point, but for now I'm looking down the business end of a double-barrel deadline, so I'll leave it out for now.

UPDATE: Tested adding back the linux-generic package (deadlines be damned) - no issues. Commands below.

Summary:

sudo apt-get remove linux-generic

Read the linked question above if this sounds scary. Your problem should now be fixed,and if you want safely add linux-generic back.

sudo apt-get install linux-generic

and subsequent test (not sure if this is the best way to test):

sudo apt-get install

No errors. Rebuild avoided, 3-day weekend saved. Whew.


Run this command in a terminal:

sudo -H gedit /etc/default/grub

Edit this line, from

GRUB_CMDLINE_LINUX=""

to

GRUB_CMDLINE_LINUX="radeon.audio=1"

Run:

sudo update-grub

Restart the system.


I had a similar issue when I tunneled using ssh in GNU/Linux. I don't know if it's related, but in the end the effect is the same, I couldn't find any answers on the net and this was the top search result so I decided to contribute with my solution.

In my case I was running this:

ssh -C2qTnN -D 127.0.0.1:3128 user@remote.host

to open a SOCKS tunnel proxy and the command was in a bash script.

The issue and solution: I made the tunnel using one Linux user and its ssh keys and I was trying to connect using another user. The ssh command ran in the background so I couldn't see that it was asking me for authentication. Appending the new local user's public key from ~/.ssh/id_rsa.pub to the remote server in /home/user/.ssh/authorized_keys did the trick.

Note: The authorized_keys file from the remote server should be read-only on some systems, so if you create that file yourself do a chmod 400 authorized_keys because some ssh server configurations will refuse to read it if anyone has write permissions.


Xfce themes not working when placed in ~/.local/share/themes

Try to put them to

  ~/.themes

When i did , everything worked fine.


Lenovo Yoga 730 Wifi not working with Ubuntu 18.04.2 LTS. Wifi Card tl8822be

The problem is solved in Ubuntu 19.04, so if you don't depend on installing the LTS version, please use the latest Ubuntu.

I had no problems installing Ubuntu 19.04 on lenovo yoga 730-15iwl:

Install Ubuntu on Lenovo Yoga 730-15IWL with a i5-8265U CPU alongside Windows


How to revert NotifyOSD configuration to default?

You've most probably used NotifyOSD Config and the patched NotifyOSD, right? Open NotifyOSD Config and set "Positioning" to "Fixed".

You can also revert all the changes you've done from NotifyOSD Config via File > Reset.


You need to use WebView goBack() instead of just "back". The following code shows how to use it in a very minimal browser:

import QtQuick 2.0
import Ubuntu.Components 0.1
import QtWebKit 3.0

Rectangle {
    id: mainRect
    width: 1280
    height: 720
    Button {
        id: backButton
        text: "Back"
        onClicked: {
            if (webview.canGoBack) {
                webview.goBack()
            }
        }
    }
    WebView {
        id: webview
        url: "http://askubuntu.com"
        anchors {
            top: backButton.bottom
            bottom: mainRect.bottom
            left: mainRect.left
            right: mainRect.right
        }
    }
}


ERR_NETWORK_CHANGED on Chrome with Ubuntu 17.04

For anyone else that probably didn't think of it like me - this was being caused by a docker container I had running on the machine.


How do I change the 'alt gr' key to a context menu key in Ubuntu 14.04

I managed to find an answer to this.

I used the command:

xmodmap -e "keysym ISO_Level3_Shift = Menu"

and had it run on startup.

My altgr key now acts as a Context Menu Key


How do I get Ubuntu 18.04.3 GUI back from tty?

Simply reboot with reboot in the console if you can't get your GUI from Fxxx.


Wireless Card on dell mini 1010 doesn't work

Dell Mini 1010 has the BCM4312 wireless by Broadcom, also known as Dell 1397.

~$ lspci -nnk | grep -A2 Net
03:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)
    Subsystem: Dell Wireless 1397 WLAN Mini-Card [1028:000c]

That card can work with the preinstalled b43 driver, if the b43 firmware is installed, and the required firmware is contained in the linux-firmware-nonfree package.

Simply download linux-firmware-nonfree on Lenovo, transfer it to Ubuntu, and install by double clicking.

In a terminal window, run sudo modprobe b43 to load the module. Wireless should work now.


Select the range of cells that contains the imported dates.

Press Ctrl+1 to launch the Format Cells dialog box.

In the Format Cells dialog box, do the following:

Select the Date category.
Select a valid date Format.

You can also create a custom (user-defined) date format by typing a format on the Format code text field and clicking on Add (the check mark) button.

Click the OK button.

Note: Another way of launching the Format Cells dialog box is by right-clicking on the selected range and selecting Format Cells... from the context menu.

You can now perform date calculations on the selected range.


Are file names allowed to use dots other then before the file extension?

This is very easy to answer: Yes dots are allowed everywhere in Linux filenames. Even "worse": Linux and Unix filenames don't necessarily have extensions expressed in the name of the file. So you will probably find many "incorrect" or missing file extensions, since there are no rules for filename extensions as in Microsofs systems. You find the general rules here:
https://www.cyberciti.biz/faq/linuxunix-rules-for-naming-file-and-directory-names/


Versioning a package for uploading to PPA

The version of the resulting package comes from the version number provided in debian/changelog So you must have the appropriate version there.

1.0.3-1 will supersede an Ubuntu only upload versionized 1.0.3-0ubuntu1

$ dpkg --compare-versions 1.0.3-1 le 1.0.3-0ubuntu1 || echo "False"
False

But it will not supersede a version originating from Debian with Ubuntu changes, i.e. 1.0.3-1ubuntu1

$ dpkg --compare-versions 1.0.3-1 le 1.0.3-1ubuntu1 || echo "False"
$

The tilda (~) character has a special meaning in version numbers. For example:

$ dpkg --compare-versions 1.0.3-1 le 1.0.3-1~ppa1 || echo "False"
False

As your package is not originating from Debian, I go with a version number like 1.0.3-0~ppa1 This guarantees that it is less than either a version synced directly from Debian or introduced in Ubuntu,

So your change log should look like:

artha (1.0.3-0~ppa1) quantal; urgency=low

  * New upstream release.

 -- Your Name <foo@bar.com>  Sun, 07 Oct 2012 13:06:56 -0400

Whether to use debuild -S -sd or debuild -S -sa is really a different question, but here's a brief answer.

-sa ensures that the .orig.tar.bz2 will be uploaded. If you haven't made an upload of this upstream version before, use this.

-sd explicitly makes it so that only the debian.tar.gz or diff.tar.gz are uploaded. This is for when you are making a change to an upstream version that is already available in you target archive or PPA. This is because th original tarball should already be present there.


How to determine why xprintidle keeps "resetting" every 30 seconds

Looking at the source for xprintidle (see below for how I did this), we see:

This program prints the "idle time" of the user to stdout.  The "idle
time" is the number of milliseconds since input was received on any
input device.  If unsuccessful, the program prints a message to stderr
and exits with a non-zero exit code.

So, I suppose that moving the mouse would reset the timeout. This make sense, since the timeout in question is leading to screen blanking/locking.

Looking further in the source, one sees the functions that xprintidle uses. (XScreenSaverAllocInfo(), DPMSQueryExtension(), etc). Reading the man page for these functions will give you more detail (man XScreenSaverAllocInfo).

How I got the source to look at:

# Includes several set-up-the-environment steps
mkdir ${HOME}/apt-src
cd ${HOME}/apt-src
sudo apt-get install apt-src
apt-src install xprintidle
cd xprintidle-0.2/
ls
less xprintidle.c
cd ..
apt-src remove xprintidle


use dconf-editor:
/desktop/gnome/crypto/pgp/keyservers > custom value (see Default)


What is the recommended minimum CPU, disk space and memory (RAM) requirements of Ubuntu 64 and 32 bit?

700 MHz processor, 512MB of RAM. pretty much the basic high end for a windows 98 computer...

hope this helps, heres the link to what I found on the system requirements


How do I update to Ubuntu kernel 3.13.0 on 12.04 LTS without breaking the Nvidia graphics driver?

This is a bug and I expect them to fix this so it will work out of the box soon, but if you want to use the new kernel you can do the update and do the following afterwards after booting to get it working again.

Open a terminal (hold in CTRL and ALT while pressing T)
Add xorg-edgers PPA and update

sudo add-apt-repository ppa:xorg-edgers/ppa

You'll have to supply your password when prompted. You'll get all sorts of info about this repo but to continue just press ENTER

Now in the same terminal:

sudo add-get update
sudo apt-get install nvidia-current

If you have an old machine you just replace nvidia-current with nvidia-304.
You need to press Y + ENTER for it to be installed.

When it's finifshed you restart your system. To confirm that you are indeed using Nvidia drivers you may open System settings in the menu on top right and choose Additional Drivers from the Hardware section. It takes some time for it to start up but when it's there it will tell you if you are using Nvidia driver. It might be that you could in fact activate your driver from this view after sudo add-get update but I didn't do that so I'm not 100% sure. Before the HWE update I had several choices here but now I only have the one I have installed.

Hope this fixes things until April 2017 :-p