How to set keyboard repeat delay and speed in Ubuntu Gnome 16.10?

These settings are under Settings → Universal Access → Typing → Repeat Keys. You have to click the Repeat Keys row item, which brings up a pop-up dialog with two settings: Delay and Speed.

This works in Ubuntu 17.04 and above.
In older versions of Ubuntu, the Speed setting worked in reverse: the lower the speed, the faster the repeat rate. This is no longer the case.


Does Ubuntu 12.04 supports for B75 boards?

The minimum specifications for running Ubuntu can be identified easily by using Google.

What are the minimum system requirements for Ubuntu?

Ubuntu is a very versatile and is designed run on many machines, and can be easily run on older and weaker machines. It is often used as a solution to speed up the system speed of old computers. However, since your system is new - it should definitely be able to run Ubuntu just fine!

If not, you can always use Lubuntu - a lighter version of Ubuntu for systems with lower specifications.

What flavour of Ubuntu suits my system best?

Download Lubuntu

However, as I said - your system should indeed be able to run Ubuntu!


How do I register as a Ubuntu developer?

If your motivation is only the free Valve games, that is not a quality they are looking for in developers.

In any case, the steps to become an Ubuntu developer are detailed on the ubuntu website.

Becoming a Ubuntu Developer entails interacting with the Ubuntu Community and Members, working in the specific area you are interested, then applying to the Ubuntu Developer Membership Board.

A good starting point for package publication is to create a personal package archive and publish packages to it.

See also:

I want to fix a bug. Where do I start?


Where can I find a driver for a Broadcom device 4365 wireless card?

Looks like I've reached end of that long maze on my own. I've installed modified deb from here:

how-do-i-install-bcm43142-wireless-drivers-for-dell-vostro-3460-3560

And loaded kernel module "wl". After that, Wi-Fi started to work. I added wl to autoload at boot time... Anyway, looks like problem is solved.


Could not resolve 'id.old-releases.ubuntu.com'

You should really upgrade to 16.04 so you keep getting security updates and so forth. That said, this problem can be fixed.

The instructions you were given assume that your sources.list file connected to the default Ubuntu servers, but your system connected to the Ubuntu servers in Indonesia, so they had an id. in front of the server name (like id.archive.ubuntu.com). That assumption was wrong, so it left the id. part in there, and old-releases.ubuntu.com doesn't support it, so it should be removed.

To fix it, run:

sudo sed -i.bak 's/id.old-/old-/g' /etc/apt/sources.list
sudo apt-get update


System BootOrder not found. Initializing defaults

Go to terminal:
$ sudo su
# cd /boot/efi/EFI
# mv BOOT BOOT_back
# cp -R ubuntu BOOT
# cd BOOT
# mv shimx64.efi bootx64.efi

I found this on some other forums. Basically, you are replacing your boot folder with the contents of the ubuntu folder.
I do not understand enough about Ubuntu/Linux distros to understand why this works, but it has solved the issue.


Why do I get this error when opening a new tab in Firefox?

To answer your questions:

The web page you're viewing is being served over SSL (https). However, it includes resources, possibly images, scripts, etc. that aren't being sent over a secure connection. This message occurs to warn you that the page might not be as secure as you think it is. This type of message has been around for a long time. I remember seeing it way back in the Netscape 3 days (circa 1998).
The way to fix is is to contact the owner of the page in question and ask them to fix their page. Of course, if you have any extensions that might be pulling in additional stuff, you'll need to disable those extensions and try again before bothering the site owner.

Since you're getting this on opening a new page, extensions seem like a possibility, in which case you'll have to track down which one is responsible.


Connecting to Ubuntu using Remote Desktop Connection on Windows 7

In my experience, neither RDP nor VNC work satisfactorily with the default 3d (compiz-based) Ubuntu session. For RDP you can specify a different desktop session using the ~/.xsession file on your remote account, for example if it contains

gnome-session --session=ubuntu-2d

then you will get a 2d (metacity-based) desktop, which will likely work better over RDP. Alternatively you can install the gnome-session-fallback package and then run a gnome-classic session

gnome-session --session=gnome-classic

In VNC the equivalent session-setting is done via the ~/.vnc/xstartup file. You can check the available desktop sessions on your system using

ls /usr/share/xsessions


can not install speed dreams in my ubuntu 14.10

You really should search the existing answers before posting. Your problem is described and solved here:

How do I resolve unmet dependencies after adding a PPA?


Fixing screen resolution for Samsung 15.6 inches monitor (Res: 1366x768) while not showing the full screen

I had this before, my fix was changing my refresh rate from 60hz to 59hz. However I see yours detects as a 16" screen in your picture instead of 15.6.


The behaviour of printf() seems to depend on the location of
  stdout.

  If stdout is sent to the console, then printf() is line-buffered and is flushed after a newline is printed.
  If stdout is redirected to a file, the buffer is not flushed unless fflush() is called.
  Moreover, if printf() is used before stdout is redirected to file, subsequent writes (to the file) are line-buffered and are
  flushed after newline.

Source: Why does stdout need explicit flushing when redirected to file?

I'm not well versed with C programming, but apparently you need to add fflush(stdout); after every printf statement. Try it out from the command line. If it works, it should work with cron.

More questions on this topic:

C stdout printf problem
Problem redirecting a C program output in bash


Ubuntu boots to black screen with cursor after upgrade (from 18.04 to 20.04)

Ok, so I would try to re-install the GUI / Desktop:
sudo apt update
sudo apt upgrade
sudo apt autoremove

sudo apt remove ubuntu-desktop
sudo apt autoremove
sudo apt install ubuntu-desktop

or
sudo apt-get install ubuntu-gnome-desktop

or. one could try
sudo apt-get install --reinstall ubuntu-gnome-desktop
or whatever desktop you have
(can be xfce4, kde,  or something else although I have not tried all of the options, but xfce4 seems to work flawless.)
Edit: related Reinstall Gnome
Just in case this wouldn't work for someone in the future:

You can always try to install another (different) GUI/Desktop: Like LXDE, and from there (when you have a working GUI/Desktop) Maybe try different things?

Extremely glad it worked and that I could help!
Note: I have noticed that

*This seems to be a very, very common problem (Because I have often, and some of my friends - had this problem, some other problem that (in my case) was after this worked; was the Ubuntu was laggy, but in my case it resolved itself to just, install drivers & update the OS and reboot.
(In case this would be the issue after, this could be a good thing to try)*

Edit: If some has problems with installing drivers
(e.g Nvidia) I would highly suggest checking out Smaili's Great answer here -  (Since it's the same version, too - and driver problems can often come after a solution like this above)
Thanks!
regards.


Change the sshd_config to
PrintMotd yes

and  pam.d/sshd remove or comment the following line
#session optional pam_motd.so noupdate


Temporary R+W CIFS share for non-root accounts?

I resorted to fstab mount as per http://wiki.centos.org/TipsAndTricks/WindowsShares

Turns out there are no negative consequences if the share is not available during the bootup, and if network appears later, the share is mounted automatically.

Also, I had to update to Thunderbird 11.0 via PPA to get it to understand the newer profile from Windows PC.


gnome-terminal not working after upgrade to 17.10

I've checked the /usr/bin/gnome-terminal wrapper script shipped by Ubuntu 17.10's gnome-terminal package. It contains no print url – in fact, contains neither the word print nor url. You probably modified this script or installed an unofficial version.

Please reinstall gnome-terminal and gnome-terminal-data from the official Ubuntu repositories. Also make sure that all the package dependencies are satisfied, the gi-repository imports should succeed then.


Is it possible to have a separate remote desktop VNC for each workspace?

I believe you can do it in case of FreeVNC.

You can find a discussion about this in this superuser.com question.


How do I deploy a virtualized server on a headless machine running 12.04 Server?

I'm going to keep a running log of the progress that I've made so far. I'll clean this up later and post it as an answer if I succeed.
Day 1

I'm mainly using this tutorial. Note that it was originally for 9.10 /and/ it assumes that the primary network interface is eth0. I'm using a wireless card as my primary interface. As a sidenote, I'm not sure that using libvirt is the best way to go. We'll see.
It's true that bridging off a wireless card isn't supported out of the box. Here is a howto on how to get around that (note that this howto builds off another one). I've tried it but because I'm still trying to use libvirt to manage my VMs, I haven't verified that this workaround works.
With regard to what the flow of control looks like, tuxradar has a pretty good article. Here's the diagram from that article: .

Day 2

I got my VM to boot. I ran vmbuilder --debug --verbose with this as my config file in /etc/vmbuilder.cfg. I ran the most basic partition setup. Use google to see what to put in the vmbuilder.partition file. This takes a long time and I couldn't figure out how to install apt-proxy. If you can install apt-proxy, I would do it.

Still can't get networking to work. The guest OS can't see the host OS and vice versa.


Toshiba Satelite T135 temperature is always above normal

use

sudo setpci -s 00:02.0 F4.B=#

where # = 0 to 99 to set the brightness of the screen. So far, the nomodeset acpi_backlight=vendor will crash xorg under 11.04

For more information, join this launchpad team and have a look at the mailing list:

http://launchpad.net/~toshiba-t100-series


Remove Nvidia Card and switch to Intel HD graphics

I had to activate the Intel-driver

sudo dpkg-reconfigure xserver-xorg-video-intel

Maybe this helps someone else!


Limit apt-cache show results to only one record (the installation candidate)

You can use --no-all-versions to limit the output to just the candidate version (i.e. the one that is/would be installed by apt or apt-get).

From man apt-cache:

   -a, --all-versions
       Print full records for all available versions. This is the default;
       to turn it off, use --no-all-versions. If --no-all-versions is
       specified, only the candidate version will be displayed (the one
       which would be selected for installation). This option is only
       applicable to the show command. Configuration Item:
       APT::Cache::AllVersions.


MySQL takes ages to load (only when using WP)

You can see if this is a MySQL issue by running (swap the caps out for your runtime variables):

mysql -uUSERNAME -pPASSWORD DATABASE "show processlist;"

...while actioning a request. It'll show you the running-at-that-time queries along with how long they've taken. If you have a particularly slow query, it'll be in there. If that's too quick, there are methods of logging queries.

It could also be Wordpress (or your theme, or whatever) hammering the database with small queries. As somebody who builds online systems I'm perfectly qualified to let you in on a secret: Wordpress sucks. Oh okay, that's not a secret. You need to do a lot to make it perform well. To set you off in the right direction (assuming it's not a poorly written template): caching plugins!

In the same vein, watch htop while making requests. PHP+Wordpress will likely monster through a huge chunk of CPU to generate the page. It could just be that which is taking so long. If you can't fix it with caching (and you're on a 64bit computer) you could try HHVM (the almost-drop-in replacement for PHP-CGI from Facebook). It's much, much faster but needs installing. It's not as simple as apt-get install lamp-server^.

And finally, it does sound like it could be a DNS issue. If you're specifying a domain name as your database address and its resolution is taking forever (or worse, failing half the time), that's going to stuff up a connection. Switch it to an IP (127.0.0.1 if it's local) and try again.


How to use Ubuntu as client for my hikvision surveilance system?

Please install wine on Ubuntu
Then download ivms 4200 Linux .(https://upload.bkeesti.ee/Hikvision/Software/ )
Extract the downloaded file and double click  on ivms 4200 executable file.
Then you will get the ivms panel.

Download Hikvision SADP tool and install .
Using the SADP tool you can reset  the device password of your Hikvision camera.


Starting with 20.04 /usr/bin/python is no longer there. And youtube-dl starts with:
#!/usr/bin/env python

So what you can do is create the symbolic link yourself:
sudo ln -s /usr/bin/python3 /usr/bin/python

And then it should work:
$ youtube-dl


stubborn Firefox on Ubuntu 18.04.4 LTS Gnome

Firefox window size and location is saved in a file called xulstore.json in your Firefox profile directory.

To reset it find the file by running ( close Firefox first ):

find ~/.mozilla/firefox/ -type f -name "xulstore.json"

Then rename or delete the file or, alternatively, run the following command which will rename the file for you:

find ~/.mozilla/firefox/ -type f -name "xulstore.json" -exec mv {} {}.old \;

Then start Firefox.


Employee left blank password on Ubuntu 15 graphic install

In Ubuntu setup, you cannt set a blank password. That's how UNIX and UNIX-like operating systems work to protect some of the administrators functionnality that can affect the system. So there is a password and you have to find the one that set it up.


This is a known bug with Ubuntu Core, detailed here: https://bugs.launchpad.net/snapd/+bug/1646559

There's currently no simple workaround.


I found the answer to the problem and it seems to work ok now.  Rather than delete my question I'll leave it here (as it is quite specific so it may help someone in future)

Basically if you still have the keyboard input method system as IBus then there is some kind of conflict between the Thai and the Japanese.  One or the other worked fine for me, but having both installed caused a problem.
Go to Language support, switch input method to fcitx, restart your computer (or log out and in again) and instead of the little EN, TH, JA up in the top right corner there will be a little keyboard icon.  The bad news is that you can't tell at a glance what language you're currently in, but the good news is that all three languages work properly.

the answer was from this post originally,
16.04 Japanese Text Input not working


There is how to change workspace only of the primary monitor?

While I don't have an actual answer to your question, I do have a work-around which I have been using to get your described behaviour.

If you right click on a window titlebar, you'll get multiple options and amongst those there should be one saying something like "Always visible on workspace". This will make the window appearing on all workspaces.


What do instructions on UbuntuOne wiki for getting Bindwood (Firefox bookmark sync) to work do exactly?

Those instruction are harmless, they just renew your DesktopCouch encryption keys.

However Firefox bookmark sync ( and those instructions ) are for Maverick only.

I see this answer is tagged as 10.04, and on Lucid bookmark sync is not enable yet.

Ubuntu Lucid users need to wait for the support to be backported.

Quoted from the wiki:

  Syncing of contacts and bookmarks is working for Ubuntu 10.10 (Maverick) users. Maverick users will need to have the latest updates installed. Ubuntu 9.10 (Karmic) and Ubuntu 10.04 LTS (Lucid) users will have to wait a bit longer for backporting of the CouchDB and Erlang packages. We presented the case for backporting CouchDB to Ubuntu 10.04 LTS to the Ubuntu Technical Board and the suggestion was to investigate creating a separate, special package that will allow Ubuntu One databases (contacts, bookmarks, etc.) to synchronize once again. We're currently looking into this.

Here: https://wiki.ubuntu.com/UbuntuOne/Status#Bookmarks


I went to Boot menu and turned out there were two boot enter for the same HD, the one with Ubuntu, so I changed their order in boot and resolved.
EDIT
It didn't work. I'm still in the same point. I just gave up.


Moving Win Thunderbird data to Thunderbird

I have to move mails from one google account to another google account and Thunderbird was my favorite tool to use. It can also be used to move your mails under Windows to an account under Ubuntu.

You can export your mails from the Thunderbird you have now to a file ending on .mbox (to export: Right click "inbox" (or another folder you want to export), pick import/export, pick export).

To import you can add the .mbox to "local files" and synchronize them with the account you made. Drag and drop (into your inbox or other folder you want them copied to) works too.


What is a best way in Ubuntu to create password protected text files?

I found a way to do it using Libre Office Writer.

When I save a file, I check "Save with password".

Then click "Save", "More options"  and check "Open file read only" there.

I set a password to allow editing.

And I do not set an encryption password.

After this setting Microsoft Office does not let to edit the file at all, and LibreOffice askes for a password at first attempt to edit.

I saved files in MSO .doc format.


Create Single Sites-available conf for multiple url with same domain and folder path using SSL

If you want to use a catch all, you configure a _default that is used for any of your subdomains, if you have one certificate that covers both domains through a SAN subject alternative name or a wildcard certificate this will work.
<VirtualHost _default_:443>

But if you have two separate certificates, you need two configuration VirtualHost blocks, they can be in the same file
<VirtualHost mywebsite.domain.com:443>
   <bla></bla>
</VirtualHost>
<VirtualHost mywebsite1.domain.com:443>
   <bla></bla>
</VirtualHost>


Applications icon in the dash keeps disappearing

It's difficult to answer that question based on so little information. But lenses (the different views in the dash) are separate applications that work independently. This means that it is possible for a lens to crash without causing any large issues, and then they would disappear from the dash and be restarted, causing them to come back.

But this is pure speculation. If you are able to provide more details, then it might be possible to expand on the answer, or if it's a problem, then you can file a bug on http://launchpad.net. There are updates for Unity just around the corner, though, so the issue might simply go away as long as you install updates.


How to install requests module for Python 3.1 ubuntu server 10.04?

Use PIP 3.3, not 3.1

wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

Downloading/unpacking pip
Downloading/unpacking setuptools
Installing collected packages: pip, setuptools
Successfully installed pip setuptools
Cleaning up...

Notes

pip 3.1 has known issues, such as these.
Additional Information


How to force IPv4 on Ubuntu Desktop 14.04

The only way to completely disable IPv6 is by blacklisting the kernel module. Put the following line in /etc/modprobe.d/blacklist:

blacklist ipv6

Warning: IPv6 is becoming more important each day and IPv6 support is assumed by more and more software these days, even if you don't use it (yet). Blacklisting the kernel module might break things.


The kernel of common linux distributions quite inevitably contain some proprietary binary "blobs" in the kernel for hardware drivers. Without such blobs, hardware support of linux would be much more seriously limited that it is already to some extent.
Apart from that, the presence of proprietary software in most linux distributions is quite limited. Ubuntu does not install proprietary applications by default. However, it offers proprietary software through the Software center or Snap store, and it can offer to install additional proprietary drivers for graphics cards or modems. So you need to inform yourself about the software license before installing additional software if this is a concern.


Quite the same issue on my Aquaris E4.5 Ubuntu edition (v 15.04 OTA15).
The phone is ON and when I want wake it up, the screen become dark purple !
Finally, I press + button (on the side: sound +) and simultaneously On button and it seams reboot and the white screen with bq logo appears, then the phone works fine again… I hope for a long time.


How to deal with touchpad issue and if can't, change versios?

I recently bought an Acer Aspire E15 as well. The trackpad wouldn't work at all on Ubuntu 14.04. I managed to get the trackpad working by pressing F2 during boot (when you see the Acer logo) and changing the trackpad setting from 'Advanced' to 'Basic'... The only problem is that in this setting, two-finger scrolling doesn't work...


2 finger scrolling not working on ASUS UX305UA

If you are on 15.10 you can upgrade to the 4.5.1 kernel to fix the touchpad, it worked for me.
You can get it here:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5.1-wily/

You will need the following files:

linux-headers-4.5.1-040501-generic_4.5.1-040501.201604121331_amd64.deb
linux-headers-4.5.1-040501_4.5.1-040501.201604121331_all.deb
linux-image-4.5.1-040501-generic_4.5.1-040501.201604121331_amd64.deb

Then install them with sudo dpkg -i linux-*-4.5.1-*.deb


Reproducing a set of ip commands in netplan

I figured it out. The problem was that systemd-networkd was trying to set the routes before the network was up, which was failing. The fix is on-link: True on the routes:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      dhcp4: yes
      routing-policy:
        - from: 192.168.1.160
          table: 129
      routes:
        - to: 204.8.230.0/24
          via: 192.168.1.1
          table: 129
          on-link: True
        - to: 192.168.1.0/24
          via: 192.168.1.1
          table: 129
          on-link: True
        - to: 0.0.0.0/0
          via: 192.168.1.1
          table: 129
          on-link: True


Terminal icon in window titlebar is stretched out over window control buttons

this is due to missing icons with proper resolution, try installing gnome-icon-theme then ensure the icons are selected with gnome-tweak-tool:

sudo apt-get install gnome-icon-theme gnome-icon-theme-extras

you can also keep your existing icons, the gnome-icon-theme will simply replace the buggy icon on the terminal window (after restart)


I fixed this...

Open your xorg.conf as root.

sudo -H gedit /etc/X11/xorg.conf

find this line

Option  "metamodes" "1920x1080_60i +0+0"

Then simply delete the i after 60, save, reboot.

When you log back in you will have 1080p@60hz.

Hope this helps all the people who have this problem.


Wacom Bamboo tablet works, but is not detected in settings

Open a terminal and type xinput list. Does your device show up there?

Also can you check in Settings, Devices, Wacom Tablet? Can you see a button at the top to switch between Stylus and Tablet? For my Wacom Intuos2 the Tablet shows up (allowing one to alter monitor mapping settings) but the Stylos still does not.


As the error states, you are still running an X server. This error occurs when you try to install the Nvidia .run files while logged in.

Make sure you are logged out.

Hit Ctrl+Alt+F1 and login using your credentials.
kill your current X server session by typing sudo service lightdm stop or sudo lightdm stop
Enter runlevel 3 by typing sudo init 3
Install your *.run file.

you change to the directory where you have downloaded the file by typing for instance cd Downloads. If it is in another directory, go there. Check if you see the file when you type ls NVIDIA*
Make the file executable with chmod +x ./your-nvidia-file.run
Execute the file with sudo ./your-nvidia-file.run

You might be required to reboot when the installation finishes. If not, run sudo service lightdm start or sudo start lightdm to start your X server again.
It's worth mentioning, that when installed this way, you'd have to redo the steps after each kernel update.


How do I route an USB Audio Interface (MBox2) to a DAW (Qtractor) via Jack or Patchage as an audio channel?

After some research, I was able to successfully use audio with qtractor. This is what I did with Qjackctl:

And this is what I did inside of Qtractor. In the title bar you will see the word "track". Left click on this, then click on "Add Track". From here pick "audio", then click OK.

Now click on the R on the left hand side of the screen.  After doing this, a circle should have turned red. This is the record button.

Click on that and then click on the play button just to the left of it.

Start talking into your microphone, it should be working. To stop it, press the play button again. I hope this helps.


Problems installing and dual booting Ubuntu 12.4, 13.10, and 14.4.1 via pendrivelinux?

Johnathon I will explain how I installed Ubuntu along side with Windows 7.

Just like you I have also used an USB device to install the OS. When the it asks for where to install, i.e, if you want to install along side with windows or to completely wipe the hardrive and install it as new or something else, select the last option and proceed. On the next window click on the partition you created and format it into 'etx4 journal'. Then type the mount point as '/'. You also have to create a swap partition of 1 or 2 GB. Then proceed with the installation.

After installing Ubuntu, log into it and open the terminal window by 'Ctrl+Alt+T' and type in the following command:

sudo update-grub

Press 'Enter' after typing in the command and type in your password(terminal will not echo the password).

The reason for the above step is that, when you install Ubuntu the bootloader in it(Grub2) will replace the default windows bootloader, which cannot detect any other operating systems other than windows. Grub2 will not search for windows automatically, that's why you have to give the command.

Enjoy Freedom!


you can install it from source,

visit http://www.videolan.org/vlc/download-sources.html


Make sure you are not using a CD-RW or DVD RW as you can't boot from those.

Make sure when creating the CD-R or DVD-R to close the disc. If you burn the disc so it can be added to, it's not bootable. Which app did you use to make the boot disc, and what were the questions/options in the process and what did you answer?


How can I add an IP address to iptable or firewall using JAVA?

Blocking an ip with iptables is simply enough.  Getting it from your app to the system might have security implications.  If you use System.exec() the command would have to be ran as root.

Here is an example for blocking the ip 1.2.3.4 in iptables.

/sbin/iptables -I INPUT -s 1.2.3.4 -j DROP


When scripts are executed by cron, usually the environment variables aren't set as you're used to from a login shell. Especially PATH is missing, which means the shell can't find the pipenv command. Possible solutions:

Add the absolute path to external commands. You can find the location of pipenv with

$ which pipenv

In the end that call in your script should read something like

/usr/bin/pipenv run jupyter notebook &

Load the complete environment. This is usually achieved by adding the following line to the top of your script:

. /etc/profile


ImageMagick convert command to make a .gif from a large number of .xpm files

It seems all of your pictures are converted but not in a proper order as you expect.

As per my experience, the convert commands cannot work with files with same filenames format you have used. It works on files with this sort:

file100
file10
file11
file1
file200
file20
file21
file2
...

So, you need to rename all your files before conversion. So, your filenames should become like:

file00001
file00002
...
file00010
...
file10000

This is what I have written. See if using it would solve your problem:

rename 's/plot(\d{1})\.xpm/plot0000$1\.xpm/' *  # plot#.xpm     >    plot0000#.xpm
rename 's/plot(\d{2})\.xpm/plot000$1\.xpm/' *   # plot##.xpm    >    plot000##.xpm
rename 's/plot(\d{3})\.xpm/plot00$1\.xpm/' *    # plot###.xpm   >    plot00###.xpm
rename 's/plot(\d{4})\.xpm/plot0$1\.xpm/' * # plot####.xpm  >    plot0####.xpm

convert -loop 0 -delay 10 *.xpm output.gif


Raring doesn't give option to run plain text document

From the desktop Click on Places->Computer.

In the window which opens up, Press F10 and click on Preferences

You will see a window like this. Click on

  Ask each time

And close it. Now Ubuntu should ask you every time, what would you like to do


This worked for me. System Settings > Screen Display. There is an unknown monitor. Disable it, it should be good. This is not my solution, i got it from here.
https://askubuntu.com/a/360473


How to restart openvpn service (or any service) running under "nobody" user?

Try this, I've noticed that restart doesn't work for me.

sudo systemctl stop openvpn@server
sudo systemctl enable openvpn@server.service
sudo systemctl start openvpn@server


How to add Blender menu item in main menu?

Before you try to add it to the menu:

You should probably install the version of Blender that is available via the Software Centre:

Open the Software Center from the Applications menu and type "blender" into the search box in the upper right corner.

Or, alternatively, Click this Link to install blender.

Blender will now be installed and in your menu.

Still, to add an application to the Menu right click on the main menu and select "Edit Menus":

From there, select "New item":

The command to start blender should be blender, choose your name and icon and put it wherever you want.


Virtualbox Ubuntu 16.04 Guest - 3D Acceleration Pixel Flickering

I had the same issue as you after enabling 3D acceleration but the solution (at least for me) is in this article, at the very end.

sudo apt-get install compizconfig-settings-manager && ccsm

Go to OpenGL and untick Framebuffer Object. Also, you might want to disable effects, such as fading windows, animations and window decoration.

Hope that this will do the trick for you too.


I found a way to fix this:

1st install Ubuntu 14.04 (I tried this using Lubuntu and Xubuntu). The screen display will be 640x480.
ignore notifications of new Ubuntu versions.
set "notify me of a new Ubuntu version" to "Never" (Software & Updates)
from the command prompt, run sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade (apt-get-update will install the necessary display driver)
reboot: the display will now be correct.
back into Software & Updates: change "notify me of a new Ubuntu release" to
"For Long-term support versions"
from the command prompt: sudo do-release-upgrade (this took me about 2 hours)

My old VGA monitor now works correctly with Ubuntu 16.04


How to configure apache2 in Ubuntu 13.04

http://tuxtweaks.com/2009/07/how-to-configure-apache-linux/

Why didn't you ask google, there are lots of tutorials :)


How show a formula in the next cell - Libreoffice

Use the formula function
Let's say you have the formula in the cell B2. You want to display it in C2.
Type in the cell C2
=FORMULA(B2)

This will result in:

Hope this helps


How do I correctly connect multiple monitors using Display Port and Nvidia GeForce GT 730M/Intel HD 4600 hybrid graphics card

I also can reproduce this with actual developer Version of ubuntu 14.10.
T440p, Thinkpad Ultradock, connected with DisplayPort and I also tired DVI.

Interesting: With a mini-Displayport cable connected to the laptop directly everything works, so perhaps this is a workaround for you also!

BTW: Displayport with my old T420 (with or without dock) works just fine!


What happens to a .deb installed package with a Ubuntu version update that includes the same package?

The package manager doesn't care whether a package has been installed by dpkg or apt. If it finds a newer version of a package in the repositories that newer version gets installed.

In your case that means your package gets updated if the package in the new Ubuntu version has a higher version number.

See "How to prevent updating of a specific package?" if you don't want updates for your package.


HiDPI laptop screen with HD external monitor DPI issues

I have the Dell XPS 13 and the best solution I've found here is to effectively scale a 4k resolution onto the HD monitor. Note that the positioning in this script assumes your external display is above your laptop:

xrandr --output DP-1 --scale 2x2 --mode 1920x1080 --fb 4160x4320 --pos 0x0
xrandr --output eDP-1 --scale 1x1 --pos 320x2160

Since I use my laptop on the go between the office and home I created a little script for this and assigned a keyboard shortcut to toggle resolutions. It also supports a 1920x1200 external monitor:

https://github.com/oligray/ubuntu/blob/master/togglemonitors.sh


Why would the quota command not work at all?

That's because you don't have any quota set for the user superuser on the mounted filesystems in /etc/mtab and NFS share (if any).

Have a check:

% quota
% quota -s
% quota -v
% quota -f /
quota: Mountpoint (or device) / not found or has no quota enabled.
quota: Not all specified mountpoints are using quota.


Ohk.. I was trying the same thing, below is what worked:

In nautilus, right click on the folder you want to share and select 'sharing options', where you enable sharing the folder. In the same window, there are 2 other options: 'Allow others to create and delete files in this folder' and 'Guest Access'.
Check both the options.. Exit Nautilus (on computer) and ES file explorer (on android phone). Reopen ES file explorer and connect to the shared folder again...
That should fix the issue...


Run QasHctl from terminal or application menu. (I know it comes with UbuntuStudio, not sure about other flavors.) If it's not installed, just run:

sudo apt-get install qashctl

It's the best mixer tool I've found for tweaking soundcard settings. Make sure to select the correct mixer device on the right (most likely hw:card) and you should find "Headphone Playback Switch", "Headphone Playback Volume", "Front Playback Switch", and "Front Playback Volume" in the Mixer tree on the left. Between those two sets of controls, you should get sound going through your headphones.


I just got the 14.04 and can't get my wifi

Does it show any available wifi connections on the top right of the screen?
If not, you need to install your wireless drivers, if you need a internet connection to download them, wire your computer to the router until everything is installed.


Overlay icons for applications in spread mode

After roaming around in CCSM, I have found what I wanted.

Go to Scale under Window Management and choose either Emblem or Big for Overlay icon.

The emblem option gives you a small icon on the lower right hand side of the application while the Big option shows a big icon filling the entire application.


Input/Output Error Copying Files from Internal Harddrive to External Drive. (Ubuntu running from Live CD)

You can try command ddrescue, it may be able to work around the broken path. Beware though, that you will lose data.

Restoring from backup will be easier :)


Open the terminal and run sudo dpkg-reconfigure gdm. This will open up a new window allowing you to select either gdm or lightdm as the default login display manager.

In Ubuntu 16.04 and later run sudo dpkg-reconfigure gdm3 instead.


As your current user settings seem to be corrupted, and the guest account is not affected, do the following:

Go to system settings - User accounts create an additional user (let's call it "User2") with the same privileges as your current user.

Now, log out of the "bad" session and log in as "user2" and come back here to this site.

Everything is fine? Well then you should "accept" this answer as valid by clicking on the little grey check-mark below the "0" to the left of this answer and the next person asking the same kind of question will be able to use it as well.

Done?  OK?

Now,

open the file manager
browse to the /home/user directory
copy (not move!) all the files from Downloads to /home/user2/Downloads
check you did a good job.
Now delete /home/user/Downloads
Go back to step 3 and repeat for Documents, Videos, ...

Done!


According to https://github.com/shadowsocks/shadowsocks-qt5/releases/tag/v3.0.0, the upstream dropped deb package support and moved to AppImage distribution instead.


Can't login to phpMyAdmin in ubuntu 16.04

Reviewing the three questions, chats and comments on your PHPMyAdmin issues, the error you are seeing is caused by mismatched versions of your depended packages.

PHPMyAdmin will work on Ubuntu 16.04 by installing the default packages from the repository without making any changes.

The two most important packages that needs to be matched is your version of PHP, the PHP modules, and PHPMyAdmin.

Other affected packages include:

Apache2 and Mysql.

Purging those 5 packages and reinstalling them by their defaults will resolve your issue.

You can perform the quick method by first purging the PHPMyAdmin and PHP.  Rerun the purge command a second time to be sure it was actually purged.

The commands to purges PHPMyAdmin is:

$ sudo apt remove --purge phpmyadmin
$ sudo apt autoremove
$ sudo apt remove --purge phpmyadmin

The output after running those three commands should be similar to:

ljames@ubunzeus:~$ sudo apt remove --purge phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'phpmyadmin' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ljames@ubunzeus:~$

If the output is not clean, the purge command will have to be rerun.  Depending on the output, you might have to remove other packages that are causing the problem with getting a clean uninstall.

After that, do the same for php.  Check the versions you have installed and remove each one of them.

Run this to see which PHP versions are installed.

$ locate bin/php

You'll get something similar to:

/home/xx/Development/Personal/Project1/webapp/bin/phpunit
/home/xx/Development/Personal/Project1/webapp-backup/vendor/bin/phpunit
/home/xx/Development/Personal/Project2/app/vendor/bin/phpunit
/home/xx/php-threaded/bin/php
/home/xx/php-threaded/bin/php-cgi
/home/xx/php-threaded/bin/php-config
/home/xx/php-threaded/bin/phpize
/usr/bin/php
/usr/bin/php5
/user/bin/php7.0
/usr/bin/php5.3

Remove the packages that is php and php[#] as in this case php5, php5.3 and php7.0 are the packages to be removed:

$ sudo apt remove --purge php5.3
$ sudo apt autoremove
$ sudo apt remove --purge php5.3

Do that for the php versions until the output is clean similar to:

ljames@ubunzeus:/etc$ sudo apt remove --purge php7.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'php7.0' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ljames@ubunzeus:/etc$

After you have removed the packages, reinstall the defaults with these commands:

$ sudo apt install apache2 php libapache2-mod-php
$ sudo apt install phpmyadmin

Note:
The text on the black screen console is very important.  It'll tell which packages are giving problems, and which package if any should be addressed.  Having the defaults install, will work on Ubuntu 16.04 LTS


Do Ubuntu repos/servers perform log analysis to identify & block retrieval program?

wget has an option, --random-wait, that is designed to avert log analysis blocking. From the docs:

  --random-wait

  Some web sites may perform log analysis to identify retrieval programs such as Wget by looking for statistically significant
  similarities in the time between requests. This option causes the time
  between requests to vary between 0.5 and 1.5 * wait seconds, where
  wait was specified using the --wait option, in order to mask Wget's
  presence from such analysis.

  A 2001 article in a publication devoted to development on a popular consumer platform provided code to perform this analysis on
  the fly. Its author suggested blocking at the class C address level to
  ensure automated retrieval programs were blocked despite changing
  DHCP-supplied addresses.

  The --random-wait option was inspired by this ill-advised recommendation to block many unrelated users from a web site due to
  the actions of one.

So chances are, if the server accepts you with the --random-wait option turned on but not without it, it is using log analysis.


How can I recursively strip off exif info from all images in a directory?

There is no need to script this, ExifTool can do it by itself and it will be much faster than looping through items.
exiftool -r -all= -ext jpg -ext gif -ext png /path/to/top/directory/

-r recurse through subdirectories
-ext … limit processed files to specified extentions, remove these items to process all files that Exiftool can remove metadata for.


How do I Find a string in a file and place a string above it?

sed -i -e 's/__MARKER__/Hello world\n&/' someFile.txt

replaces __MARKER__ with Hello world, a newline, and the match (&), i.e. the text __MARKER__.

The & just saves typing __MARKER__ again, as in

sed -i -e 's/__MARKER__/Hello world\n__MARKER__/' someFile.txt


Wifi problem. Internet stops working after few minutes of connection

For me this ugly workaround does the job, until I find a better solution:

Try the following command when the connection drops next time:

sudo ip link set <your device> down && sudo ip link set <your device> up

If the connection comes back add this command to crontab:

sudo crontab -e

Than add this line:

  * *  *   *   *     ip link set <your device> down && ip link set <your device> up


Update package-manager to include programs installed from source

You can't able to view  packages which are installed from source through aptitude or dpkg or apt-cache or synaptic.


Maybe this will help  in Ubuntu 18.04?

sudo apt install libgmp-dev


Yes, there is some terminal-magic that will work.
A small configuration script to change your sounddriver a bit is all that you need.

When you remove the script everything will be back to normal.

For documentation: Follow this link and what you want to do is mentioned under "Plugins".


Since this is a timeout error from the socket.py Python module, it probably is a network issue.

However, you shouldn't have to look at terminal output to notice errors, Déjà Dup should report them to you in a user-friendly graphical dialog or notification. This could be a bug, in which case, you should report it.


diff -qr dir1 dir2 | sort

That will compare files in two directories.

If you're a sadist you can drop the q argument (and the | sort pipe) and you'll see all the differences between all the files... But the output is pretty hard to interpret like that.

If you do have a lot to handle, perhaps piping through less (just add | less to the command) will let you view it a little easier.


flash getting struck in 14.04 from 1 day

It sounds to me as as though something is interfering with your internet speed.  Several causes are possible.  If you have cable as opposed to FIOS, comcast in particular is well known for dialing back your performance if you exceed their predetermined expectations of your "unlimited internet".

Other possibilities include wifi interference if you are using wifi.  If a neighbor installs a new wifi router and it is on the same radio frequency channel, especially a popular default one like 6 or 11 and that's what you have, the interference will cause internet dropouts.  To diagnose that I recommend installing "WIFI RADAR" and letting it sit for at least 30 minutes to see what channels are being used near you.  When you find out, you can log into your wifi router and manually change your channel.

Also if you have a cell phone or cordless phone handy... like the rest of us, please try to keep it as far from your wifi device and router as possible as it too can result in slowness.

I'm guessing one of these is right, and if so, please tell me which one worked for you.


How to resolve error "Unable to connect to rdp server" with Remmina?

As per Microsoft's official web under Compare Windows 10 Editions, Your HOME edition doesn't have RDP (remote desktop) facility. I'm not sure whether you have mixed up Remote Assistance with RDP as they are two different features.

Hope this clear your query.


Why do my thumbnails need to regenerate with every restart? Is it possible to allow them to persist?

The way I know of looks like this:
Install the dconf-editor app:
sudo apt install dconf-editor

Then open it, and either use its search feature to search for "thumbnail-cache", or for a similar effect, figure out the GUI and navigate to the org.gnome.desktop.thumbnail-cache location in it.
You will be presented with two settings: maximum-size and maximum-age. Upon clicking them, dconf-editor will reveal their description. From this can be seen, that a value of -1 allows for no limits on the cache size and on the age of cached items.
Otherwise, you can provide a value in megabytes for the maximum cache size (which is 512 by default), and a value in days for the maximum thumbnail age (which is 180 by default).

If you would like to have a CLI solution, then executing the following in the terminal achieves the same:
gsettings set org.gnome.desktop.thumbnail-cache maximum-size -1

gsettings set org.gnome.desktop.thumbnail-cache maximum-age -1

Take into consideration however that an unlimited thumbnail cache size may inflate the size of your /home/<YOURUSERNAME>/ directory — this might matter if you did not assign it to a separate, dedicated partition.

Furthermore, you can keep an eye on the actual thumbnail files at this location:
/home/<YOURUSERNAME>/.cache/thumbnails/


Installing HHVM "The following packages have unmet dependencies"

Solved. I have forgotten to isntall Boost: https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Ubuntu-12.04#installing-boost-149


Unable to install ubuntu 15.10 on MSI GL62

I am referring to this answer from my other answers. I had a login loop issue as mentioned here. It seems you are also encountering login loop issue due to nvidia drivers issue.

First uninstall the currently installed NVIDIA drivers.Boot the computer, when the GRUB menu appears ...

Highlight the Ubuntu menu entry and press the E key.Add nouveau.modeset=0 to the end of the linux line. Press F10 to boot the Ubuntu operating system.

When the login screen appears press Ctrl + Alt  + F1. Enter your user name and the password, then execute :

sudo apt-get purge nvidia*
sudo reboot

Now install the latest official stable NVIDIA drivers.Boot the computer, when the GRUB menu appears ...

Highlight the Ubuntu menu entry and press the E key.Add nouveau.modeset=0 to the end of the linux line. Press F10 to boot the Ubuntu operating system.

When the login screen appears press Ctrl + Alt  + F1. Enter your user name and the password, then execute :

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

Note : Maybe it is explicitly necessary to select the NVIDIA adapter in BIOS.

In case you have installed the nvidia driver from their site then uninstall it as per that instructions.Uninstall that driver by running, as root, sh ./NVIDIA-Linux-x86_64-361.28.run and follow the on screen instructions.

Note : The solution I have provide has been tested on Ubuntu 14.04 LTS and Ubuntu 15.10 for two GPUs


Installing Software packages on Ubuntu Studio

The detailed instructions for installation of slack are the same for Ubuntu and Kubuntu. In both cases you just need to run
sudo snap install slack --classic

There is no need to install snapd since all currently supported versions of Ubuntustudio have snapd installed and enabled by default.


Why does df -h show so much wasted space on /dev/shm, /sys/fs/cgroup and /run/shm?

Nothing is using 3G. These are tmpfs. They are not stored on disk, only in RAM. And they only use any relevant amount of RAM, if there are actually files in there (which is not the case on your system).


The manual of sxhkd mentions nothing about the possibility of using keycodes rather than keysyms, so you likely cannot use keycodes.


Is my Laptop compatible for a dual boot?

The best thing to do is to visit Installing Ubuntu Alongside a Pre-Installed Windows with UEFI the answer is one which will take you through what you need to do to install Ubuntu alongside Windows 8.


Partitioning for dual boot Windows 10 + Ubuntu 18.4 + encryption (SSD+HDD)

1) Splitting /home and / is useful if you want to reinstall your system (for example, 18.04 instead of 16.04) and don't want to backup all your data to external storage. However, it's still better to delete dot-files, because of package incompatibility. As for reliability, if your /home gets corrupted, alive / will not help you. Anyway, save LUKS headers to external secure storage for this case. On the other hand, splitting limits your / and /home, if you had a single partition on your previous setup, your python packages were on the same partition and could use a space which is shared between system and user. If you upgrade once in 2 years and your data is on external HDD, I think you don't need to split.

2) I have disks C: and D: on Windows, because system disk (C:) contains many windows system files which are unused on linux, but it looks not ok, So I have shared D: between systems, on which I store large files (I have only 256Gb SSD and 750Gb HDD) and C: is only for Windows system.

3) On the fly LUKS decryption is fast enough and doesn't need to decrypt a whole file, but is still has some overhead, for example, if you read from SSD with max speed (~500Mb/s), on LUKS it will noticeably use CPU. The main reason not to encrypt movies/music/unsensitive data is that it's hard to mount LUKS on Windows (not even sure, it's possible).


Go to http://releases.ubuntu.com/raring/ and download the special mac version of the release. I just installed on a Macbook Pro 17" Late 2009 and it worked out of the box!

Also i suggest using rEFInd as rEFit is no longer in development.
If you don not want to struggle with the EFI booting just add the
   hdbios
option in your refind.conf file's
   scanfor
line.


Remove Dependencies - I don't want to install them

You can uninstall firefox with these steps

Open a terminal ctrl+alt+t and run following command

sudo apt-get purge firefox

After that Delete .mozilla/firefox/ in your home directory

Also Delete .macromedia/ and .adobe in your home directory, these can contain "Flash Cookies" stored by the browser. The same is true, if applicable, for Silverlight (Moonlight) and other plugins, they can allow websites to store data on your computer.

After that delete /etc/firefox/, this is where your preferences and user-profiles are stored

Also delete /usr/lib/firefox/

Also delete /usr/lib/firefox-addons/

Note :

Don't rely on this method if you've got sensitive information to protect! Deleting a file, in most cases, only means deleting a reference to it. The raw data will still be on your hard drive, and the proverbial bond-villain will be able to recover them. I'm only mentioning this in case it's applicable to anybody who reads this. The only way to really get rid of data, is to shred the hard drive to bits.


ssl certificates not recognized on BQ aquaris E4.5

Thanks for the information.

I had issues with the command as written above on my BQ Aquaris E5.

Displayed messages like " Missing destination files: ['/var/lib/system-image/keyring.tar.xz', '/var/lib/system-image/keyring.tar.xz.asc']"

Having found Ubuntu Touch : Command to force OTA-13 reinstallation? added "SYSTEMIMAGE_PYCURL=1" to the command as per the comment from https://askubuntu.com/users/597509/danslerush on the OTA issue.

e.g.

sudo SYSTEMIMAGE_PYCURL=1 system-image-cli -vvvv --switch ubuntu-touch/rc-proposed/bq-aquaris.en

This appeared to resolve the certification issues.
Took a while though for the command to complete and do it's reboots, luckily I just had it just put it on mains after low battery.


Unable to boot kubuntu 14.04/15.04 from flash drive

use a window tool called rufus.exe it works well with all linux distros.
after writing to usb, restart your pc, enter boot menu and chooose the usb and all will run well.


Aha! I think I've discovered why this is happening for me at least.  Oscar, you didn't mention using two screens but I suspect you are (?).  If not, mine may be a separate issue.

When I have a chrome window on my external monitor that is taller than my primary screen and I open a new window, it's full screen on my primary screen.  If I adjust the height making it short enough to fit on my primary screen, it opens as expected.

I suspect any application that creates new windows of a particular size would exhibit the same behavior, I don't know anything else on my computer that does that though.  Maybe Alberto can experiment with this.


Directory Permissions / Create Mask (Samba) (Ubuntu Server OS Directorys)

About sudo chmod -R 0777 Directory I have to say yes. It change permission for all subdirectories as well .


Therese was a problem with the OAuth header. It was malformed. It worked on other Ubuntu one pages this was confusing me. This site helped me: http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/


you can check this folder: /sys/class/backlight/[brightness vendor]/" and changing the numeral value of the file named backlight to 0 (or your desired backlight level). You can set this as a custom shortcut. (I added a chmod to my local.rc file to grand my system access to changing the value of that file). you can also make a shortcut for adding/substracting 50 or 100 to the brightness setting. Just keep in mind that your shortcut command should be formulated like this

bash -c "echo [desired numeral value] > /sys/class/backlight/[backlight vendor]/brightness"

If that doesn't work my backlight problems usually get fixxed by changing this line in your grub (/etc/default/grub)

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"


USB devices in VirtualBox Windows 7 partition

First have to install the extension pack for Ubuntu as @rusty says in the comment below. Then install the VirtualBox extensions pack - open the virtual machine, and install the guest additions pack as explained here.

You have to set up virtual-box for USB access  - Close any running Virtual Machines (as in Shutdown, not saved state), Open VirtualBox settings, by clicking settings when the right VM is selected:

You then need to tick all the boxes under USB:

To add devices click the green '+' to the right - you might as well add all that are listed by it.

Then when you are running the VirtualBox, plug in the devices, and then right-click on the USB icon in the bottom right and select the ones you want:
Unmount the devices in the host system first

Works for Android (mostly), Windows XP, 7 and 8(.1) :D - Haven't tried my phone, but the camera seems to work, and I can use my memory stick to copy stuff on and off the virtual machine as I can't be bothered to set up a shared thing.

N.B. If it says you need to add your user to the vboxusers group, you need to run:

sudo usermod -a -G vboxusers USERNAME

This will add the USERNAME you specify to the vboxusers group, so you have permission to access the USB devices from inside a VM.


Assuming you're running an EFI system, the EFI System Partition (usually the first partition on your disk, mounted at /boot/efi) will always need to be decrypted so that your system can actually load into GRUB.

However, you can now stick /boot itself inside LUKS. A guide for that is available in this answer on the site, however this has a few caveats:

Every time you update your kernel/GRUB, you will need to "re-install" it on your system, and make sure things recognize it. As far as I can tell, there's no automated hook.
GRUB won't be taking over LUKS entirely. If I remember correctly, it'll prompt for the password and go from there, but it will not replace LUKS.
This setup, as far as I can tell, has a very decent potential to break in potentially amazing ways.

To be honest, there's little to no reason to actually stick /boot inside of LUKS. It just causes quite a bit of unnecessary pain and makes one's life much worse for not too much of a gain. The main risk (tampering with the kernel) can easily be mitigated by using Secure Boot to sign the kernel and any modules. If you want to run this digital signature enforcement, please read through the entire wiki page linked.


LibreOffice 3.3.2 "Export to PDF" option doesn't work

You don't need to uninstall & reinstall, simply go to your home folder, press CTRL & H to show the hidden folders, look for .libreoffice and delete it.  That is the profile for LibreOffice and in essence should resolve the problem.

I should have also stated that when you next start LibreOffice a new .libreoffice profile will happen.


How do I manually add a password to the keyring?

A keyring is never used to save a password (From Facebook or otherwise).

The Gnome or KDE keyrings are used to safely keep decrypted keys (hence the name) and no passwords.

One solution for you is to make use of two browsers. For example you could install Firefox and Seamonkey (because Seamonkey is very similar to Firefox.) You can also install Opera, Chrome, Konqueror...

The other is to check your existing browser and look to see whether someone clicked on "do not remember password" for that domain. If that's the case, then the browser stops asking you if you want to save the password. Once you have 2 or more passwords and you go to the login screen, it will no fill out anything until you start typing your email address (or other login credential, some websites ask for a username which increases security!)

With Firefox you can manage your passwords under:

Edit » Preferences ...

Security » Remember password for sites » Exceptions ...

You should see an entry for Facebook in that popup. If so, select it and remove it and then have your dad try again.

Note that by clearing all your history and other data, Firefox resets that scheme and it should ask you for your passwords again and give you the option to save them. Obviously, that means that in between you'll have to re-enter all your passwords...


7200rpm is unusually fast for a laptop hard drive, and faster means hotter. There's no standard setting for making a hard disk spin slower, but maybe your disk has a nonstandard setting that the Windows driver uses. You could try hdparm -M 128, which tells the disk to be quieter (which implies slower and therefor less hot). There are plenty of disks where that makes no difference however.


How to make a launcher(.desktop) file that will open the desired file in a specific app?

At the Exec field of your .desktop file, you have to place:

Exec=xdg-open "/home/Nirmik/VirtualBox VMs/Windows 7/Windows 7.vbox"

xdg-open will load the vbox file with the default program, VirtualBox!

Edit the above path so as to match your needs, of course.


Several Brother printer models not printing

The "side note" is actually the issue : Brother only provides 32-bit drivers, they don't work as is on 64-bit distributions.

The drivers should work after installing these packages instead of the missing ones suggested by Brother :

sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6

(Actually they may not all be needed, please someone test them separately and edit this answer accordingly.)


Is it possible to sign in to server via SSH without SSH key?

The SSH key uploaded to the remote server is the public key, which is one of two parts of the actual "SSH Key".  It is designed to be 'publicly' disclosed to remote servers, as you need the corresponding private key which is stored on your computer to work with the connection.  (An analogous example is PGP encryption which works in a similar way - the PGP public key can be used to encrypt data, but the PGP private key is needed to decrypt the information and use it.  In the same way, SSH needs you to have the private key that corresponds to the public key in order to do key-based authentication.)

If you formatted your system, lost your private key, and have written data to the disk since then, you likely cannot recover the SSH private key.

Check with the remote server provider, and see if they have a serial console to access the system.  If it's a VPS they probably have such a mechanism available through a control panel.  Create a new SSH key on your computer, upload the private key to the server through the serial console, remove the old private key, and then connect normally.


What is it with Ubuntu / Linux, Youtube / HTML5 videos and the high CPU load?

I had similar issue. My CPU used >100% in htop while watching YouTube videos in 1080p.

Specs:

CPU: 7700k
GPU: Nvidia GTX 1080
Drivers: 384.69

I had to install these plugins:

sudo apt install gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly

Then went to Google Chrome flags page chrome://flags/ and enabled option:

WebRTC H.264 software video encoder/decoder Mac, Windows, Linux, Chrome OS

Screen:

After restarting browser my cpu usage dropped to around 30%.

As a last resort You can always disable Video Hardware Decode by using command line:

google-chrome --disable-accelerated-video-decode

Here's a list of all possible command line options for Google Chrome:
https://peter.sh/experiments/chromium-command-line-switches/

Alternative Solution:

There is another thing that, for me, made my CPU go high. It was a js script on the YouTube. I had to block it in uBlock addon:

Red rectangle shows many requests from a mss_4.js script - this caused the CPU spikes.
Green rectangle shows that the script is blocked inside the uBlock addon, so no more request inside the mss_4.js are made.


Second NIC makes Gigabit Ethernet drop to 100mbit

I tried manually specify all the network settings (gateway, dns servers bla bla)
Restarted the Eth interfaces and It worked... For some hours.

Right now it's back on 100mbits and won't budge.

Any Ideas?

Thanks

ifconfig output is:
enp4s0: flags=4163  mtu 1500
        inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::8122:5c82:3b21:a23d  prefixlen 64  scopeid 0x20
        ether 50:3e:aa:06:39:9c  txqueuelen 1000  (Ethernet)
        RX packets 14540  bytes 1272337 (1.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12258  bytes 1205363 (1.2 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp7s0: flags=4163  mtu 1500
        inet 192.168.1.11  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::c742:4bcf:d27d:9432  prefixlen 64  scopeid 0x20
        ether 40:b0:76:10:6a:a4  txqueuelen 1000  (Ethernet)
        RX packets 27718124  bytes 2129932327 (2.1 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 18119055  bytes 24609216641 (24.6 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 17545264  bytes 382738749616 (382.7 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17545264  bytes 382738749616 (382.7 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ethtool output of the desired 1gbit interface:

Settings for enp7s0:
    Supported ports: [ TP MII ]
    Supported link modes:   10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
                            1000baseT/Half 1000baseT/Full
    Supported pause frame use: No
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes:  10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
                            1000baseT/Full
    Advertised pause frame use: Symmetric Receive-only
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                         100baseT/Half 100baseT/Full
                                         1000baseT/Full
    Link partner advertised pause frame use: Symmetric
    Link partner advertised auto-negotiation: Yes
    Link partner advertised FEC modes: Not reported
    Speed: 1000Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
    Current message level: 0x00000033 (51)
                   drv probe ifdown ifup
    Link detected: yes

Ethtool of the other interface:

Settings for enp4s0:
    Supported ports: [ TP MII ]
    Supported link modes:   10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
                            1000baseT/Half 1000baseT/Full
    Supported pause frame use: No
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes:  10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
                            1000baseT/Half 1000baseT/Full
    Advertised pause frame use: Symmetric Receive-only
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                         100baseT/Half 100baseT/Full
                                         1000baseT/Full
    Link partner advertised pause frame use: Symmetric
    Link partner advertised auto-negotiation: Yes
    Link partner advertised FEC modes: Not reported
    Speed: 1000Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
    Current message level: 0x00000033 (51)
                   drv probe ifdown ifup
    Link detected: yes

Thanks


I remember doing something like this.

I used gkrellm, it comes with a simple proc/users chart, you can go into the settings and tell it to run whatever command you want when you click its button.

It won't give you a list of usernames by default, but I made a simple bash script to pipe w to a file, open it in gedit, and remove the temp file.  Worked for what I needed it for.


How to install Ubuntu in parallel with Windows 10?

change your bios in to legacy disable secure boot then install windows after finishing this just try to install Ubuntu. this is what i have done in my system thank you


Facebook fonts look weird on firefox in 12.04

There are two possible explanations for this—
1— You haven't installed the ms-core-fonts package, and you're seeing the backup ubuntu fonts. You can install it with sudo apt-get install msttcorefonts. You can also search for it in the software center.
2— You are seeing the Ubuntu Anti-aliasing. Unlike Windows AA, it anti-aliases in two dimensions, while in Windows, Cleartype does RGBa anti-aliasing, but only in the horizontal dimension. (Which looks better at small sizes, but causes noticeable jaggedness at large font sizes).

(source: wikimedia.org)
You can get the best of both worlds(RGBa in the horizontal and regular AA in the vertical) by adjusting the Font Antialiasing settings—There are several tools for this, one of which is the Advanced settings tool [Install sudo apt-get install gnome-tweak-tool].


Well when you install ubuntu you would have set a specified partition(set amount of hard drive space) for it to install in. It doesn't look any different you would just have let's say 50 GB less hard drive space. If that's what you mean.


Cannot Boot into Windows after removing Ubuntu

This happens when the Windows Boot Manager is corrupted, as earlier it was dependent on the EFI partition on the other SSD. There is nothing you can do about it. Your best option is to live boot into Ubuntu (or any other distro), backup your files from Windows, and then reinstall Windows.
I am telling you by my experience, I tried every possible solution to get it (for almost 1 week, I used to try daily for 4 hours or so), but somewhere I read the solution I posted. You cannot really do anything.
You could try to repair the boot manager, but I am not sure how to do it, or what are the chances of its success.


Microstack -> 413 Request Entity Too Large

In the documentation you will find that nginx limits the upload of file size of server blocks.
Syntax: client_max_body_size size;
Default:
client_max_body_size 1m;
Context:    http, server, location
Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.

Edit the file sudo vim /etc/nginx/nginx.conf or
sudo vim /var/snap/microstack/common/etc/nginx/snap/nginx.conf:
Set the http client_max_body_size to a size bigger than the iso you want.
http {
    ...
    client_max_body_size 2000M;
}

now restart it by
sudo systemctl reload nginx or sudo snap restart microstack


You can use AsciidocFX on any platform.

There are many features:

Real-Time Preview
Multi-platform (Windows, Mac, Linux ..)
Creating Asciidoc Books
Creating Markdown Books
Creating PDF, HTML, Epub, Mobi, Docbook
Epub Viewer
External Browser Support
Table Generator
MathJax Extension
PlantUML Extension
Filesystem Tree Extension
JavaFX Charts Extension


mount Macbook partition on ubuntu (unknown filesystem - hfs+/apfs ?)

I solved mounting the mentioned partition by installing/following the instructions here: https://github.com/libyal/libfvde/wiki/Mounting.

It seems that the issue was that it was a FileVault encrypted partition (password was the user account login password of the macbook - but I'm not 100% confident if this is always the case or the user of this macbook just picked the same password for both).

hint: also make sure to get the .wipekey file that is mentioned in the github repository in the exact same way that it is explained there. At first I did it in another way, which gave me "unsupported core storage signature" and some other errors.


After numerous tries and work-arounds, I did get a diskless system to boot using http://www.serenux.com/2011/04/howto-create-a-diskless-workstation-that-boots-from-pxe-using-ubuntu/ as a guide. A couple of details that the author did not mention is the need to remove Network Manager and also to set the mount point in the initramfs.conf file. One problem that still needs resolving is how to have multiple machines mount the same file system.


Can't enable WiFi on Vaio CW Ubuntu 12.04

Enter you computer's BIOS and try "Load Setup Defaults" option to re-enable wireless. A few days ago, one of my friends had this problem and we solved it as I described to you.


Cannot get any updates or installs because of server pt.archive.ubuntu.com (193.136.212.166)

The server can be changed in this way:

Search and open 'Software Sources' ('Software and Updates' in 13.04) in the dash.
Choose 'Main Server' as in this image:

Close the window.
Retry sudo apt-get update in a terminal.


How to change the colours in GTK3 themes

Here is an article describing how to do that using "oomox" app: http://www.webupd8.org/2016/05/easily-create-your-own-numix-based-gtk.html


Reversing role of pressing shift+number key in Wayland

Assuming you use the basic English (US) layout, you can edit the /usr/share/X11/xkb/symbols/us file directly (and reboot).


Configuring sound output for Asus Xonar SE 5.1 in Ubuntu 18.04

I managed to resolve the issue. I reinstalled Ubuntu 18.04 because I did not know of a good way to cleanly uninstall PulseAudio and didn't know if PulseAudio interfered with setting the defaults.

To create the /etc/asound.conf file, I did the following:

Create the file:
sudo nano ~/etc/asound.conf

In the file, I entered the lines:

defaults.pcm.card 1
defaults.pcm.device 1

Write using CTRL-O and exit using CTRL-X.

Reboot. Sound working!


How to configure 17.10 desktop's systemd-resolve dns via terminal?

Open the file /etc/systemd/resolved.conf in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved to activate the changes.

Common options to change in that file are in the [Resolve] section, for example:

DNS=192.168.1.1
Domains=mynet

Will set your dns server and search domain.

The resolved.conf manual page is a good source for information on how to edit the configuration file.


Making a bash script to build and run a C++ program

This should be sufficient:

#!/bin/bash

CFILE=$1
OBJFILE="${CFILE%.*}"

g++ $CFILE -o $OBJFILE
echo  "Built file: $CFILE -> $OBJFILE"

./$OBJFILE

And you should be able to call it thus:

brun file.cc < input.in

This works because the input redirected to STDIN of the brun script is simply buffered, and that buffered input is then available to whichever sub-process reads it first - in this case your newly-built executable.

You might also consider using make to automate your build.  make is smart enough to do your build from default rules without the need for an explicit makefile.  So your build/run script could be as simple as:

#!/bin/bash

OBJFILE="${1%.*}"
make "$OBJFILE" && ./$OBJFILE

The && here ensures that OBJFILE is only run if there were no build errors found by make.


Ubuntu 16.04 on Acer Aspire 5338 has issues

This is more of a general how to troubleshoot computers type of question than a specific Ubuntu or Acer laptop question.

Since you're having intermittent boot issues, I would recommend scanning the hard drive for errors as a first step, before anything else. It's easy enough to check the SMART status and see if anything is starting to go bad. I wouldn't say your drive IS about to fail, it may be perfectly fine depending on power on hours and other variables. If the drive is good, then there's no reason that would be causing the problems you're experiencing, so move on to the next step.

My next step would be in Ubuntu to upgrade the video driver. Intel provides a tool for this which is supported in Ubuntu 16.04

Another thing to keep in mind is that newer distros may not necessarily be better than older ones considering the aging hardware. Take a look at Lubuntu 12.04 or maybe 14.04.

Aside of all that, random crashes can be hardware or software. Capacitors can leak, making chipsets and the CPU unstable, leading to unexpected hangs or shutdowns. It's difficult to diagnose these kinds of problems without looking at the physical state of the computer or at least testing software that you know should work fine (reinstall Windows for a few days as a test).

Good luck!


This seems to be a recurring (and random issue). Polkit might be blocking software installation through remote session....  To overcome this limitation, you have to

  option 1 - perform installation from command line using sudo command (ex; sudo apt-get install tweaks

  option 2 - from a terminal session, type sudo gnome-software....

This will start software center with admin rights and you should be able to perform the installation

hope this help

till next time


How do I configure Dropbox to log to syslog?

You can get some kind of logging by listening to .dropbox/iface_socket. Where .dropbox is the default folder of the dropbox daemon (not client). iface_socket is what the client (open source) and the server (closed source) uses to communicate. Note than I talking about the local client (cli, nautilus-plugin, etc) and local server, not the one that is run on the net by Dropbox.

You can find a ruby script to read this socket here, but I was not able to check it.

I'm not sure if this will give you the info that you want, but this is the best that I can think of short of making a feature request to the dropbox developers.


Since I could not find a profile that worked for me, I profiled Spotify and created my own. This won't stop the Spotify binary from being able to access everything you might not want it to, but it's better than nothing. I give no guarantees, use this at your own risk.

This works for me on both Ubuntu 14.04 and 15.04, and Spotify version 0.9.17.1. I'm using the standard GNOME and LightDM desktop, I haven't tested this with KDE or XFCE etc.

0. Prerequisites

When working with AppArmor, I find it incredibly useful to have the apparmor-utils package installed. In a terminal run:

sudo apt-get install apparmor-utils

1. Create Profile

Let's begin with copying the profile to the appropriate location. First, open up gedit with root permissions:

sudo gedit /etc/apparmor.d/opt.spotify.spotify-client.spotify

Then copy this into the new window:

# Created by Sean Lanigan. Released to the Public Domain.
# Retrieved from https://askubuntu.com/a/664812/237387
# Last Modified: Sun 30 Aug 2015

#include <tunables/global>

/opt/spotify/spotify-client/spotify {
  #include <abstractions/audio>
  #include <abstractions/base>
  #include <abstractions/dbus-strict>
  #include <abstractions/ibus>
  #include <abstractions/lightdm>
  #include <abstractions/gnome>
  #include <abstractions/dconf>
  #include <abstractions/nameservice>

  # Give some access to some user things
  /home/*/.config/Trolltech.conf rwk,
  /home/*/.pki/nssdb/* rw,
  /home/*/.pki/nssdb/cert9.db rwk,
  /home/*/.pki/nssdb/key4.db rwk,

  # Give some access to some system things
  @{PROC}/*/auxv r,
  @{PROC}/*/oom_score_adj rw,
  @{PROC}/sys/kernel/shmmax r,

  # Allow read, write and lock access to Spotify config and cache files
  owner @{HOME}/.cache/spotify/ rw,
  owner @{HOME}/.cache/spotify/** rwk,
  owner @{HOME}/.config/spotify/ rw,
  owner @{HOME}/.config/spotify/** rwk,
  owner @{HOME}/.local/share/spotify/ rw,
  owner @{HOME}/.local/share/spotify/** rwk,

  # Read local music, no write permission given
  owner @{HOME}/Music/ r,
  owner @{HOME}/Music/** r,
}

Then save and exit.

2. Enable Profile

Now all we have to do is enable the new profile:

sudo aa-enforce /opt/spotify/spotify-client/spotify

And that's all there is to it! Spotify has access to all the things it needs to work properly, including to your ~/Music directory - and hopefully none of the things it shouldn't be accessing.

If you have any improvements to this profile, please mention it in the comments!

Disable AppArmor profile

If you want to disable AppArmor from confining Spotify, you can run

sudo aa-disable /opt/spotify/spotify-client/spotify

This might be necessary if a new version of the Spotify application is changed and starts to crash with this profile. If that is the case, you'll need to update the AppArmor profile to allow whatever those changes might be.


A music player that can handle multiple artist tags

Quod Libet will handle multiple values for pretty much any tag where supported by the format (e.g. mp3). It also knows about other person-like tags such as albumartist, performer and composer and has meta-tags for these.


If I select the Quadro 2000 on Nvidia’s driver page they recommend the 375-series driver which you can install from the nvidia-375 package. You may also be interested in the nvidia-settings package for a more specialised graphics and display settings configuration application.

For more info see How do I install the Nvidia drivers?


You can install Ubuntu Server. There is no X-Server by default.


Still I don't know how to find out the defaults. But could change them as follows:

lftp -c "
set net:timeout 5;
set net:max-retries 3;
set net:reconnect-interval-multiplier 1;
set net:reconnect-interval-base 5;
open $HOST
user $USER $PASS
lcd $SOURCEFOLDER
mirror --delete --verbose $FSOURCE $FTARGET
exit
"


Cannot connect to public wifi on fresh install ubuntu 17.10

For Starbucks specifically I need to use Firefox to access the login page. The page prompt doesn’t appear on Chrome/Chromium, however on Firefox.
So connect to the network and then open Firefox, click the prompt to go to the login in page and should be up and running from there.


Gnome extensions not working after upgrade to 19.10

I found in Tweaks in the top right, there's a switch that was turned off. Turning this on activated all my extensions.


Where does Ubuntu store the SSL certificates for Pidgin?

They're stored here:

~/.purple/certificates/x509/tls_peers/

I've seen that replacing omega.contacts.msn.com's content with this fixes it for me (warning: there could be security implications for this):

-----BEGIN CERTIFICATE-----
MIIGeDCCBWCgAwIBAgIKfdrgSQAIAAHIuTANBgkqhkiG9w0BAQUFADCBizETMBEG
CgmSJomT8ixkARkWA2NvbTEZMBcGCgmSJomT8ixkARkWCW1pY3Jvc29mdDEUMBIG
CgmSJomT8ixkARkWBGNvcnAxFzAVBgoJkiaJk/IsZAEZFgdyZWRtb25kMSowKAYD
VQQDEyFNaWNyb3NvZnQgU2VjdXJlIFNlcnZlciBBdXRob3JpdHkwHhcNMTAxMTE1
MjEyODE5WhcNMTIxMTE0MjEyODE5WjB2MQswCQYDVQQGEwJVUzELMAkGA1UECBMC
V0ExEDAOBgNVBAcTB1JlZG1vbmQxDDAKBgNVBAoTA01TTjEdMBsGA1UECxMUTVNO
IENvbnRhY3QgU2VydmljZXMxGzAZBgNVBAMMEiouY29udGFjdHMubXNuLmNvbTCC
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJnXhdENETaZ8YFfenWCuky3
Fke/oWgUOEbgvaRuZusd2LnvoSiqH++2lkV0JJlIQ+7jLLN8MY7VhlHQmkLC3x44
KZn2IktMVgTBGMKnvbyYVAnRsjt/rVhQrQeHVEQzv5WXx//3FKmXWAuJiuRj9PZ2
KsNqPJgaaa5cuOu4oynO9fH5/ZtJIeUf7bC4Wu++o7jTu5zOhIa7R1buE9FXFF33
vQ1vHi4p9zR2Pi/i2nUpEnzeNCLl/8F/Tf+658SvIC4EzxrYcj+fit6sAnNUfsOE
1SIk9YLD+tS0fln1afbcDvH0ib5Xm7u2/o6ZmxQU0mrAkfQectsKpZLJj03neBsC
AwEAAaOCAvAwggLsMAsGA1UdDwQEAwIEsDBEBgkqhkiG9w0BCQ8ENzA1MA4GCCqG
SIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcw
HQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMB0GA1UdDgQWBBRciAVJ/Vsj
sAlZoNG/Zs+rILsPNDAfBgNVHSMEGDAWgBQIQuPbThFm87UIxUDbVXwzRhGDODCC
AQoGA1UdHwSCAQEwgf4wgfuggfiggfWGWGh0dHA6Ly9tc2NybC5taWNyb3NvZnQu
Y29tL3BraS9tc2NvcnAvY3JsL01pY3Jvc29mdCUyMFNlY3VyZSUyMFNlcnZlciUy
MEF1dGhvcml0eSg4KS5jcmyGVmh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2kv
bXNjb3JwL2NybC9NaWNyb3NvZnQlMjBTZWN1cmUlMjBTZXJ2ZXIlMjBBdXRob3Jp
dHkoOCkuY3JshkFodHRwOi8vY29ycHBraS9jcmwvTWljcm9zb2Z0JTIwU2VjdXJl
JTIwU2VydmVyJTIwQXV0aG9yaXR5KDgpLmNybDCBvwYIKwYBBQUHAQEEgbIwga8w
XgYIKwYBBQUHMAKGUmh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbS9wa2kvbXNjb3Jw
L01pY3Jvc29mdCUyMFNlY3VyZSUyMFNlcnZlciUyMEF1dGhvcml0eSg4KS5jcnQw
TQYIKwYBBQUHMAKGQWh0dHA6Ly9jb3JwcGtpL2FpYS9NaWNyb3NvZnQlMjBTZWN1
cmUlMjBTZXJ2ZXIlMjBBdXRob3JpdHkoOCkuY3J0MD8GCSsGAQQBgjcVBwQyMDAG
KCsGAQQBgjcVCIPPiU2t8gKFoZ8MgvrKfYHh+3SBT4PC7YUIjqnShWMCAWQCAQow
JwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDAjAKBggrBgEFBQcDATANBgkqhkiG
9w0BAQUFAAOCAQEAbbWUY/5r/Tv/kefqNUT5aGVejrkbG4229gnJLcv+uQTEg0Gg
xfvLr77N1z2j57FameJwz6DeTRbK8MYVPoP+z5o4vM3F3GxLm7aBklYQ/7G0TIp/
13z01a5aBGvZH8umzex3YrAnhJEcucSN5WaT6r9uwT7imdbsCgfFPdiIgS5iHdcl
k/3QSpau+4/XZgh/8V/FMN9KEFYGvEhMb5EVzKJ8pqF9Jy9Mfzqev3BtSREiljCt
lJuiRamxWgQoeNVTAI+J2YAsD8Qon1iZiHl08uHdgXWZiGDtLPcd9aIiL7/vi/+D
7w3bhyHPFr+/13BCIWSfKnSRj/g6YoHnhF4gyQ==
-----END CERTIFICATE-----


What could cause my SSH connection to die (Connection reset by [ip]) + kills my background process?

That your background process dies when SSH is disconnect is normal and expected. To prevent a background process to die when the SSH session is disconnected you may want to try nohup or screen. I have no idea why the session disconnects. For example, if you are using PuTTY you must set a non-zero value for the time between keepalives in the Connection options.


Maybe just add yourself to the saned group aswell.

sudo adduser [YOU] saned
sudo adduser [YOU] scanner


Run html2text on all files in a directory that do not have an extention

You can negate the globbing pattern:

for f in !(*.*); do html2text "$f" > "$f.txt"; done

This, differently from using find in for f in "$(find [...])"; do [...]; done (or by running find in a subshell using backticks), won't break on filenames containing newlines (and, FWIW, avoids forking a subshell and running another process).

For this to work you'll need the extglob option of bash to be turned on in your current bash instance; however extglob should be on by default:

user@debian:~/tmp$ shopt extglob
extglob         on

If extglob is off, you can turn it on by running:

shopt -s extglob

and turn it off again by running:

shopt -u extglob

An example using echo:

user@debian:~/tmp$ tree
.
├── file1
├── file1.html
├── file2
├── file2.html
├── file3
└── file3.html

0 directories, 6 files
user@debian:~/tmp$ for f in !(*.*); do echo "$f"; done
file1
file2
file3


The best way to troubleshoot cron jobs is to watch the cron output in near-real-time.

This Q&A describes the process of breaking out syslog to make the system create a cron.log and to monitor it:

16.04: How do I make cron create cron.log and monitor it in real time?

It is very helpful to change the log level to 15 so it not only shows start times but also errors and stop times:

How to change cron log level?


From my personal experience: if you want unique lines make sure you also use

LC_ALL=C sort -u

I see speed improvements by a factor 10 but it probably depends on the characters in the file (I often have to use it for translations so I have accented characters in the file).


You can get the reading using aticonfig --odgt.


Does not recognize usb sticks and drives

Don't know if any of these ideas will help you, but here I go....
Some options to check (I'd start on points 3 and 5):

Check this question, too: USB Storage Device Automount, and try the solutions proposed there.
Also, you can try palimpsest to check if it's detected and then mount it.
In 10.04 (some people reported it with 10.10, too) there seemed to be a bug that prevented usb automounting. Don't know if that's fixed, but you can try the solution for that case (note that it disables floppy support): sudo modprobe -r floppy (source)
Yet another possibility (quoting this):

  I eventually solved this problem by
  uninstalling pmount, then
  re-installing together with
  libpmount0.0

  Now drives are detected, automount and can be safely removed. No idea what caused the problem on the upgrade, but hope that this helps other people with the same problem.

Here you can find another workaround:

gksu gedit /etc/modules

Add two lines (at the end of file):

usb_storage
usbhid

(Actually you can check with modprobe -l |grep usbhid and modprobe -l | grep usb_storage if those moduled are already loaded or not before doing the edit.)


Pidgin tray icon disappears after switching to full-screen application. Bug or...?

I have the same problem too, but if you activate panel transparency (actually opacity) from CCSM, you will see your icon in background.

I got it with VirtualBox and Teamspeak3 icon in tray.

I have added a screenshot so developers can fix it. It does not just gone, just stays behind the menu bar!


How to correctly uninstall and remove something and built from source and installed?

You can run xargs rm < install_manifest.txt from the build folder to delete all files installed by make install. Then delete your build and source directory.


Yes, the space does need to be contiguous to merge.  You will need to move a few things around, and do it in stages.  I wouldn't try to do it all at once, since some steps may take a bit of time.

You will need to do it using a live CD or live USB, as you can't mess with a mounted partition.

I recommend first creating a swap drive at the end of the disk.  Then, highlight the old swap drive, choose swap off, unmount that partition, and delete it.

You can move the Ubuntu partition over into the unallocated space, then merge the space before Ubuntu with Windows, and merge the space after Ubuntu with Ubuntu.

You might also consider leaving them as is, creating a data partition using NTFS, then pointing both windows and Ubuntu to this partition for Documents, pictures, music, etc.  Windows 7 has a way to change the location for these directories, and you can create symbolic links in Ubuntu to point to the same place.  This makes it much easier to share data with both systems, and never duplicate data.


A few things could have gone wrong when installing grub. Open a terminal Ctl + Alt + T.

Make sure that your grub settings are installed correctly
'sudo update-grub'

Check pakages
'sudo apt-get -f install'

Update.
'sudo apt-get update && sudo apt-get upgrade'

Check latest kernels/ bugs

'sudo apt-get dist-upgrade'

Reboot
'sudo reboot'


Ubuntu 20.04 Second monitor is not working

I had the same problem, and I solved it not 20 minutes ago. I will paste the solution from this question below: Cannot connect second monitor via HDMI cable in Ubuntu 20.04
OK so after a lot of internet scraping and unhelpful solutions, I have gotten it fixed in my case. I am running an AMD 400 series AMD graphics card. What is downloaded automatically in the drivers upon 20.04 installation is not sufficient. Below, I will outline briefly what I did, but since people have different computers with different specs, I can't get too specific without causing future viewers to install the wrong media and mess up their system.
Below is for an AMD system (If you have Intel processor, you will do a similar step, but on the intel driver site). OP YOU HAVE AN i5 SO YOU WILL HAVE TO GO TO THE INTEL DRIVER SITE

Go to https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-20

Select the software that matches your version of ubuntu/RHEL/SLED. For me, version 20.20 for Ubuntu 20.04.

Also look at the download instructions. This outlines the documentation that is important to understand what you are doing!

3A. Briefly, you will download a tar.bz file called amdgpu.blahblahblahb.tar.bz
3B. You will extract it.
3C. You will navigate to it.
3D. You will run the amdgpu-install script in the terminal. I just dragged and dropped it into my terminal and hit enter. I did get a problem here where it wouldn't install at first because there was a driver already partially installed (I think this may have been the automatically installed driver that ubuntu gave us upon installation). To hop around this, I added the keyword uninstall (/.amdgpu-install --uninstall), then re-ran the script again (./amdgpu-install)

Reboot and it should work. Furthermore, this will fix any Night Light problems that you were having.

Cheers!


did you try searching winehq about steam?

take it from me, whenever you install anything on wine always search google to find out if wine needs additional components to run the program. especially if it's a game!

...here's what I have for you https://appdb.winehq.org/objectManager.php?sClass=version&iId=19444

scroll down to the "how-to-install" part. it might fix your problem. ... I hope

: )


Can I patch the PPC 12.04 kernel to allow older ATI drivers to install?

My gut feeling is no, because the current (3.2) kernel ABI may not be fully backward-compatible with the binary blobs in the old 9.3 installer. Sorry :(


Probably your machine doesnt support hibernation. Please test your machine by

Ctrl+Alt+T and then sudo pm-hibernate

Your machine should hibernate. Start your machine up after hibernation and observe if it misbehaves or if it returns to the point where you were, and if it returns the windows you had open before hibernation. If it doesn't do so, then I advise you don't keep on trying, as your hardware would have shown it doesn't support hibernation. However, if it works just fine after sudo pm-hibernate, then go to this file:

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

..and check if the following lines exist:

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

Edit them in if they are not there. After this, restart your machine, and then hibernate.
Hibernation is bound to work after this.


How do I ignore a conflicting package on a regex match in apt-get?

Install aptitude , start the full-screen text mode interface, then select all the r-cran- packages. Most R packages are in the gnu-r section, and typing + on the section header will install all packages in the section. For more precise matching, press l to limit the display and enter ^r-cran- as the regexp, then press + on the “Not Installed Packages” line. You will get a conflict notice that you can resolve by pressing . a few times then ! to validate the solution.

You can use aptitude from the command line too. aptitude '~n^r-cran-.*' selects all the r-cran- packages for installation, then choose your desired conflict resolution.

If you don't want to use aptitude or want a non-interactive solution, you can generate the list of packages with apt-cache r-cran-, so:

apt-get install $(apt-cache r-cran- | grep -Fvx r-cran-vr)


I'll do the following steps to ensure that you're not building in the source tree:

mkdir $HOME/Abaqus_build_dir
cd $HOME/Abaqus_build_dir
/path/to/your/csh_setup_file


Dual Boot Ubuntu 14.04 and Windows 7 Grub Issue

If you've got two separate hard disks, I recommend using the "Something Else" partitioning option; I'm not sure if the more automatic options will work with multiple disks. Besides, you know where you want things to go, and the installer doesn't.

Ubuntu has long supported GPT; that's not an issue. You should be wary, though, of boot modes. If Windows is installed to a GPT disk, it must be booting in EFI mode. If you install Ubuntu in BIOS/CSM/legacy mode, that will create complications. See my page on EFI-mode Linux installations, this Ubuntu documentation page, or this askubuntu question about installing Ubuntu and Windows 8. You shouldn't need to do anything special because of your second disk, aside from using the "Something Else" partitioning option.


Fan running at full speed using xorg drivers

The continuously-high fan speed problem comes from a power management problem. Indeed,

  With the radeon driver, power saving is disabled by default and has to be enabled manually if desired.

(source : Archlinux wiki)

The default PM mode is "profile", which is set to "default". More info on those at X.org's RadeonFeature/KMS Power Management Options.

I don't know which version of Ubuntu you are using, so I'll assume based on the date of your post that you're trying to run Ubuntu 13.10, which would be better since the method I'm going to give you only works with kernel 3.11 (used by default in Saucy/13.10).

Linux kernel 3.11 introduces Dynamic Power Management (dpm) method with the Radeon/ATI libre driver, which "should greatly help power consumption, especially when idle" (source: RadeonDriver Ubuntu Community Wiki).

More specifically, "dpm" mode

  uses hardware on the GPU to dynamically change the clocks and voltage based on GPU load. It also enables clock and power gating.

(Source : X.org RadeonFeature/KMS Power Management Options)

It is only supported on R6xx and newer asics, which "luckily" is your case (too recent cards are not well supported by libre drivers, see Feature Matrix for Free Radeon Drivers -- you can get the development name of your card by running in a terminal lspci |grep VGA).

How to use it

First of all, make sure you completely uninstalled fglrx : see Removing the proprietary fglrx driver (Ubuntu Wiki).

Then to enable it, you just have to edit /etc/default/grub and add radeon.dpm=1 to the GRUB_CMDLINE_LINUX_DEFAULT line, so it would look something like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.dpm=1"

After you save/quit the text editor, update grub:

sudo update-grub

Modes

There are 3 operation modes to choose from:

battery: lowest power consumption
balanced: sane default
performance: highest performance

They can be changed via sysfs:

sudo bash -c "echo \"battery\" > /sys/class/drm/card0/device/power_dpm_state

(source : Archlinux wiki)

Tips if you use GNOME Shell

There is a GNOME Shell extension (forked from the previously mentioned one by StuntsPT) that implements support for dpm modes management : you can find it here. To use it, simply download the master zip file (direct link) and use Tweak Tool to install AND enable it. Alternatively, extract the extension folder from the zip file and put it in ~/.local/share/gnome-shell/extensions. The extension will then show up in Tweak tool which you can use to enable the extension. If it doesn't appear in the top panel, try to restart the shell with Alt+F2 r (enter).

If you don't use GNOME Shell, I guess you're stuck with the manual/terminal editing of /sys/class/drm/card0/device/power_dpm_state.

Note: my answer aims at addressing only the fan speed problem with the libre radeon driver. Due to the novelty of your card, radeon may lack some features and your overall graphic performances be a bit hindered. But still better than a non-booting/overheating machine, isn't it? :-) Otherwise, you have the option to use the non-libre driver as suggested in the first comment to your question.


Completely disable "close lid" key binding

on my es1-512 I  had to disable the xHCI usb 3.0 controller for that to work correctly. also it fixed the reboot and shutdown issue as well


How to turn off Nvidia GPU on a headless server?

It can be observed that the GPU is using Performance mode P0, where the power consumption of the card is very high. In Idle, it should ideally throttle back to P8 mode, where it will consume less power.
I follow the following steps to change the behaviour.
Assuming that you are using Linux:
You would need sudo privileges to the machine.
First, enable the persistence mode:
sudo nvidia-smi -pm 1

Then, reset the clocks for the GPU:
sudo nvidia-smi -rgc

Note: To know more about these commands, please type
nvidia-smi --help


Ubuntu 12.04 separate x screen Nvidia black dashboard and window decoration

It's a known bug, you should upvote the bug here:

https://bugs.launchpad.net/ubuntu/+source/libxinerama/+bug/973419

so it gets more attention.


How to fix a package that is broken or not fully installed?

Workaround from the bug report,

sudo dpkg-reconfigure libc6
sudo dpkg --configure libssl1.1