As you said you do have a wonderfully configured Ubuntu in your guest account. This means that all your issues come from broken settings in your main account.

If Ubuntu runs as a virtual machine in Virtual Box create a snapshot before you proceed to be able to revert to the present state in case something went wrong.

To get a functioning administrator user back simply create a new user:
sudo adduser <name> --ingroup sudo

You will immediately be asked for a new UNIX password (nothing will be displayed while typing) and other data.
Log into the new account to see whether everything is to your liking.
This new user will have a name different to your previous account but you can use this new administrator account for clean up that follows below.
The safe way:
From another administrator account (see above) delete your broken user account (assuming dess was the name)
sudo deluser dess

This will keep the home directory. Then rename the HOME directory to keep all the data we still need.
sudo mv /home/dess /home/dess.old

Now we can re-create our administrator dess
sudo adduser dess --ingroup sudo

Log in to your new account and hopefully be happy with it. All your data are still in the /home/dess.old directory waiting for you to copy them over to your new account. If all is back you can safely delete the old directory to free space.
The fast and courageous way
As it were only settings that broke your account you may just delete them but keep your data in your HOME directory.
From a TTY terminal of another account delete all hidden dot files and directories  (choose ls -a to see them):
ls /home/dess -a  ## just to make extra sure this is the right directory ##
sudo rm -Rf /home/dess/.*  ## !!! please no extra blanks or typos here !!! ##

The last command is potentially dangerous as it can recursively and irreversibly delete all and everything (which would not be such a good idea on any other path).
Log in to your account to find everything working and the system magically re-create the dot files for your settings (now with better values). If anything went wrong you can just restore from your snapshot.
The desirable way
In the best case we would remember which settings we had changed and only deleted those setting files affected. But from what I read in your questions this may be too late at this point.


How do I stop OpenDNS from redirecting single-word searches?

The way this is working is that rather than sending askubuntu.com to opendns to convert the name to an IP address, you are sending simply askubuntu. instead. Of course there is no askubuntu., and if their DNS server was doing what it should, it should send an error code back to you. Instead, whenever there is no domain name matching what your computers send, it is returning the IP address of its own search service. (67.215.65.132) is what I just received. Ads there are probably how they pay for the service they offer.

There are ways to block this address, but there's no reason to believe they won't just change it. And, if you did block it, you would have your browser just spin and spin waiting for the blocked site to get back to you.

Your browser won't and can't know the difference.

I'd suggest instead that you use the DNS server provided by your ISP. You are paying for it so that's probably a reasonable thing to do.

Another approach is to use google's public DNS servers 8.8.8.8 and 8.8.4.4. I've heard they consider DNS server problems to be a threat to their business so they decided to provide their own DNS service as a public service. I suppose the question is whether you trust them. Their privacy web page indicates they are sensitive to privacy issues, but you should decide whether their policies are adequate for you, and whether you believe that they will adhere to them. Here's the page.

Here's an article with a list of public DNS services. I personally use my ISP's with one of google's as a backup. I'd research level 3 if I didn't want to use my own ISP's, opendns', or google's since their business is bandwidth rather than ads or content.

If you are OK with your ISP's service but it isn't completely reliable, maybe you could list it first and opendns or another open service listed second. That way the public service only get's your lookups (after a couple second delay) when your ISP's server is down.


How to quickly delete entries from parcellite history

As a quick update, this is now possible as explained here by holding ctrl, right-clicking the entries you want to delete (which causes them to appear with the strikethrough font effect), releasing ctrl, then hitting enter.  The version of Parcellite I have installed is 1.2.1-3+build1.


Nexus 7 won't start when I format a partition as "MS-DOS"

First try to reinstall Android. Here's a good explanation how this can be done:

How to return to stock Android after installing Ubuntu Touch

Then try to follow carefully the instructions how to install Ubuntu touch:

https://wiki.ubuntu.com/Touch/Install

and let us know if it works, what happens, and what the outcome is. If this works well then consider not using gparted without some research about gparted on tablet computers.


How to make Thunar regenerate thumbnails?

Remove all contents of ~/.cache/thumbnails/normal:

rm ~/.cache/thumbnails/normal/*

...and refresh the folder in thunar.


How to install a new D-Link NIC in Ubuntu 11.04 Server?

If the NIC was ever used before on a Windows box, it may be disabled due to Windows driver's default "disable wake-on-lan feature" issue.

Try: (from Launchpad: D-Link DFE-528TX PCI NIC not detected)

"If your ethernet cable is connected at boot time and you are experiencing the no link problem, try this: Shutdown, power down. Unplug your host (this cuts power to the card if wake-on-lan power is maintained). Wait 15 seconds. Plug in. Boot ubuntu."


I'm on OpenBSD now so my Ubuntu-specific knowledge might be a bit off, but you can do what I did (I'm also a Colemak convert) for Ubuntu.

For console, add

loadkeys colemak

(or it might be)

loadkeys linux_console/colemak.iso15.kmap

to  /etc/init.d/local

Refer to the RcLocal Howto to set up rc.local for Ubuntu
and the Colemak Linux/Unix page for additional console and Xorg configuration info.

You can set the Colemak Layout from GDM (at the bottom) and from System/Preferences/Keyboard when logged in


Run a command against an entire batch of files

If you want to change all files in a directory, which have a special extension, you can use another for-Loop:

for FILE in *.extension; do
  command "newfile_$FILE" "$FILE";
done


Chkrootkit results, how to reinstall tpcd ?

Very likely a false positive - check out this question:
chkrootkit shows "tcpd" as INFECTED. Is it a false positive?

Same for the other hit you got:
I ran ChkRootkit and came up with a infected file. I need help.

On my system it also flags tcpd as Infected although I don't even have it installed.


Nvidia Driver Install Fails: unable to locate the kernel source

I had the same problem.
The solution was to turn off secure boot in the BIOS.
For my ASUS motherboard, the procedure was:
BIOS -> Advanced Mode -> Boot >- Secure Boot -> Key Management -> “Clear Secure Boot keys”


An exe file that I want to run on linux made for windows comes up as a Trojan on VirusTotal - how would I run it without it affecting my system?

You would need to run it in an isolated test system, such as a VM and investigate what it does.

What exactly is it ?

It is hard to believe you "need" to run an infected .exe.

It is possible you have a false positive as well (depending on how you detected the virus and what, if any, investigation you have done).


Interfaces not created after upgrade 13.04 to 14.04

Got it working after running

sudo apt-get install vlan


It is not X, it is *.

As mentioned in the man page, that character means the user do not need to login:

  If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be
             able to use a unix password to log in (but the user may log in the system by other means).

For more info :

http://www.cyberciti.biz/faq/understanding-etcshadow-file/

http://linux.die.net/man/5/shadow


How to setup multiple WANs with load balancing?

As far as I know, Zentyal, previously known as eBox, offers that functionality, and it's easily installable on Ubuntu.

Version 1.4 is available from the repositories as eBox, and version 2.0 can be installed from an additional repository.

See here: http://www.zentyal.org/
And here is a nice detailed HOWTO: http://www.howtoforge.com/using-ebox-as-a-gateway-firewall-traffic-shaping-http-proxy-and-more


Password to unlock your login keyring (Ubuntu 19.10)

The keyring is the administrator password. If you are using an administrator account, or a guest account, you can enter the administrator password in order to unlock the keyring. Ubuntu automatically sets keyrings for security purposes, and you must know the admin passcode to unlock them and access possibly sensitive content.


16.04 with Unity - Icon with sound indicator icon is gone. How to activate it?

There is a checkbox in the sound settings:

Show sound volume in the menu bar

This activates the sound indicator.


When is an option ON and when is it OFF?

This means it is ON.

This one makes it more clear: when 'auto-hide the Launcher' is set to OFF it grays out the selections that would be available if 'auto-hide the Launcher' was set to ON:


ubuntu-mate 17.10 : keyboard shortcuts, definition file?

You can list all settings with dconf (from dconf-cli package) with

dconf dump /

and search for keyboard shortcuts here.

You can restore this settings with this example (change with your settings):

dconf load / << EOF
[org/mate/terminal/keybindings]
help='disabled'

EOF


Find a solution :

First reinstall windows
Reinstall Kubuntu
Create an EFI partition

Works fine now


What steps should I take when I find wrong information in the Ubuntu wiki pages?

Just like Ask Ubuntu, if something is wrong, fix it. :)

If the page is so bad it can't be fixed, consider tagging it for deletion:

What team do I need to talk to about deleting a page on help.ubuntu.com?


How can I get my Realtek RTL8111/8168B NIC working?

For Ubuntu Server 20.04, you can do this with a little help of the universe repository. Here's how:

Open your /etc/apt/sources.list file:
sudo vi /etc/apt/sources.list

Note: Feel free to use a different editor if you're not keen on vi. This is more muscle memory than an implicit recommendation.
Find this line:
deb http://jp.archive.ubuntu.com/ubuntu/ focal main restricted

Note: You're probably not pulling from the Japanese mirror, so do not use jp unless you're on the same side of the globe.
Add universe, so the line becomes:
deb http://jp.archive.ubuntu.com/ubuntu/ focal main restricted universe

Save the file
Update apt for the new repository:
sudo apt update

Pull down the r8168-dkms package:
sudo apt-get install r8168-dkms

Note: This may take some time, as dkms will compile the driver after pulling it down. Once the driver is compiled, the network adapter should start up immediately. If it doesn't, then you may need to restart the system.

That's all there really is to it. For the server I was using, I had a USB⇢Ethernet adapter that allowed me to connect the machine to the network so that I could download the drivers (and other updates). Once everything was good, the USB adapter was thrown back into the "Bag of Useful Adapters" that I keep handy.
Hope this helps you should you replace Fedora with Ubuntu


from where I download oracle 10g setup file

Quoted from: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index-092322.html

  Oracle Database 10.2 and 11.1 are no longer available for download.
  The software is available as a media or FTP request for those
  customers who own a valid Oracle Database product license for any
  edition. To request access to these releases, follow the instructions
  in Oracle Support Document 1071023.1 (Requesting Physical Shipment or
  Download URL for Software Media) from My Oracle Support. NOTE: for
  Oracle Database 10.2, you should request 10.2.0.1 even if you want to
  install a later patch set. Once you install 10.2.0.1 you can then
  apply any 10.2 patch set. Similarly, for 11.1 request 11.1.0.6 which
  must be applied before installing 11.1.0.7. Patch sets can be
  downloaded from the Patches and Updates tab on My Oracle Support.

In simple words, this version is not provided any more so to request access to this release, follow the instructions here.


Ubuntu 12.04 desktop loads pretty slow after password entry

Here is  a Blog by "George Georgovassilis" that has some more insight into reading the boot chart and how to speed things up...

Measuring progress

Bootchart is a nice package that protocols meticulously the entire boot process and creates graphical charts of the times and where they are spent. So the first step is getting bootchart:

sudo apt-get install bootchart

After rebooting, you can get aforementioned chart in /var/log/bootchart. A word of caution: the first chart is non-representative, as ureadahead is in profiling mode and slows things down. After another reboot the chart would look much better. And that is how it looks like:

The chart shows three milestones: the X-Window manager starts at 19 seconds after boot, Gnome at 41seconds and the desktop is visible at 59 seconds, which I'll consider also the entire time of the boot. That's the time to beat.

Parallelizing Ureadahead

Ureadahead takes about 10 seconds to finish filling the cache, during that time nothing else loads. This makes sense for a regular, rotational harddisk as the frequent head movements induced by processes  booting in parallel would slow things down. But since this installation is booting from an SD card, it might be worth exploring a way to run ureadahead in parallel. My first take was to put ureadahead in a script and launch it in the background:

/etc/init.d/bootopts

#!/bin/sh
(/sbin/ureadahead --daemon)&

and change /etc/init/ureadahead.conf to call this script instead of /sbin/ureadahead

The reboot is 3 seconds faster which are gained somewhere between booting X and booting Gnome. Disappointingly, the new chart shows that ureadahead is still running sequentially stalling everything after it. Some investigation shows that the I/O scheduler thinks that the SD card is a rotational device, so I'm changing the bootopts script to correct that by adding:

echo 0 > /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host6/target6:0:0/6:0:0:0/block/sdb/queue/rotational

Note that the SD card is /dev/sdb

After rebooting, the chart looks like this:

Much better, ureadahead runs now in parallel. Unfortunately it made the boot process 1 sec slower, mainly delaying X and Gnome. But I feel I am on to something,  so let's not just give up.

Tweaking flashcard readahead

Some bechmarks with a simple hdparm -t -T on the flash card shows that a sequential read times with 14 MB/sec, thus 2 MB/sec short of it's nominal classification. The reason seems to be a read-ahead setting of 256,  reducing it to 128 gets the maximum of 16 MB/sec. Thus another addition to my bootopts script:

hdparm -a128 /dev/sdb

Correcting the I/O scheduler

Another reboot later, I'm back to 56sec. I suspect that the I/O scheduler gives ureadahead the same priority as to other processes, which it really shouldn't so it should be hidden behind an ionice, thus a I modify bootopts:

(/usr/bin/ionice -c 3 /sbin/ureadahead --daemon)&

This improves boot time by another 2 sec.  The chart reveals that the flash card is still not utilised fully, so I follow these instructions  to disable journaling on the boot partition and I also disable plymouthd which is the animated bootscreen. And that does the trick, time is now down to 45 sec:

[update 2011.05.22]
I also made an experiment in the opposite direction, namely starting ionice with -c 1 which corresponds to realtime I/O which reduced startup time by another second. While at first this seems counterintuitive since fewer processes can run in parallel, at a second glance it makes sense because parallel I/O introduces some overhead.

Deferring services

Now let's defer services not needed for the boot process to after login. My candidates:

mysqld
nmbd
smbd
cupsd
modem-manager
bluetoothd
alsa-store [update 2011.05.22]
alsa-restore [update 2011.05.22]
pulseaudio [update 2011.05.22]
rsync [update 2011.05.22]
apparmor - I apt-get removed that one [update 2011.05.22]
plymouthd [update 2011.05.22] I deleted the /etc/init/plymouthd*.conf files - arguably this will affect logging and the ability of services to interact with the user in case something goes wrong. Use at your own risk
ufw (firewall, there is a small security risk when setting up later) [update 2011.05.22]
acpi-support

All of these have upstart jobs and can be deferred by changing the start event in the respective /etc/init/xyz.conf files to something like "stuff-that-can-wait".
apport [update 2011.07.07]

A new script in /etc/init.d/stuff-that-can-wait can then execute these  scripts. Mine looks like this:

#!/bin/sh

/etc/init.d/mysql $1
/etc/init.d/samba $1
/etc/init.d/acpi-support $1

And of course not to forget:

chmod a+x /etc/init.d/stuff-that-can-wait

I added it as an upstart script but it is probably easier to just add it as a startup script to the gnome session ("Startup Applications")

I then removed similar services from /etc/rcX.d with this command:

update-rc.d -f servicename remove

and set them up instead as upstart scripts (stuff-that-can-wait)

Running init scripts in parallel

Nice post here [update 2011.05.22]
The essence is to modify /etc/init.d/rc to

CONCURRENCY=shell

Taming laptop mode tools [update 2011.05.22]

There is more to do: near the end of the boot sequence, bootchart shows a long waiting mount (12 seconds) which I located in /usr/lib/pm-utils/power.d/journal-commit. I am modifying this file as such:

#!/bin/sh
exit0

(I probably could just have deleted it)

This one not only slashed a whopping 10 seconds off the bootchart but also the Unity Desktop built up noticeably faster.

There is also pulseaudio starting much earlier than it should (see Deferring Services)

Blacklisting modules [update 2011.07.07]

This step eliminates unnecessary (for my setup) modules. Edit /etc/modprobe.d/blacklist.conf and append the lines

blacklist rt2800pci
blacklist rt2x00pci
blacklist parport_pc
blacklist vboxnetado
blacklist vboxnetflt
blacklist bvoxdrv
blacklist joydev
blacklist lp
blacklist hp_accel

and comment the lp module in /etc/modules

Which leaves us with 28sec boot time:

Copied and Edited from here → http://georgovassilis.blogspot.com/2011/05/speeding-up-ubuntu-1104-boot-time.html

I hope this helps... Good Luck!


swapon: /dev/sdb1: swapon failed: Invalid argument

Try

sudo mkswap /dev/sdb1

and then swapon.


how can you tell which version of an Ubuntu package includes a particular patch?

If you are talking about serious security breaches with known CVE number, then https://people.canonical.com/~ubuntu-security/cve/ is good place to find package versions.
Other possible way is to read Changelog file of the exact package:

Visit https://packages.ubuntu.com
Search for package name, choose needed release
Click on Ubuntu Resources → Ubuntu Changelog to download changelog.

Going down to the commit is theoretically possible by switching to Source package and reading its source code or commit history.

Example avahi-daemon with known CVE-2017-6519:

for known CVE - CVE-2017-6519 - https://people.canonical.com/~ubuntu-security/cve/2017/CVE-2017-6519.html
this CVE is mentioned in Changelog
on source level you can find it in Debian Salsa (not usually, sometimes in LaunchPad) - using search


How do I make VLC completely disable xscreensaver?

You should be able to disable the screensaver in fullscreen VLC from the Preferences > Video > Show all settings > Disable Screensaver.

To disable it for other fullscreen video applications you can try the lightsOn.sh script from here.

I'm wasn't sure what you mean by

  I do not want to have to run a shell script to disable the screensaver.

I take it that it means that you don't want to manually run a shell script.


First, you have a typo in export line. It should be

export PATH=$PATH:$JAVA_HOME/bin

No space, add a $ character before JAVA_HOME, add /bin

However fixing above line may not fix your problem in installing java. The easiest way to install java is by using webup8 ppa:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

After the last command, the script will automatically download the jdk from Oracle website and install it for you. You can read the tutorial here.


Cannot login to ubuntu as original user anylonger

Quote from manpage for sshd_config file.

  AllowUsers
               This keyword can be followed by a list of user name patterns,
               separated by spaces.  If specified, login is allowed only for
               user names that match one of the patterns.

User vagrant is not specified in your AllowUsers directive, therefore he can`t login. You should add username vagrant in your AllowUsers directive preceded by a space.

  AllowUsers sshuser vagrant


First of all try

sudo apt-get clean

sudo apt-get update && sudo apt-get upgrade

Some ISPs cache the packages and errors like these are reported then. If the above commands don't work, try

sudo apt-get update -o Acquire::http::No-Cache=True

and again

sudo apt-get update && sudo apt-get upgrade

If it still doesn't work,

sudo apt-get update -o Acquire::BrokenProxy=true

sudo apt-get update && sudo apt-get upgrade

If all set, u can make it permanent, so that no problem in future persists by editing

/etc/apt/apt.conf

APT
{
// Options for the downloading routines
  Acquire
  {
    http
    {
      No-Cache "true";
    };
  };
}


Are you able to access the partition through /media/ubuntu/1C489D42489D1B98 ? If yes, you may create a shortcut to this folder as a workaround. I don't know why ubuntu tries to mount it again.


How can I remove the "Dash Home" icon from the Unity launcher?

I wasn't satisfied with the answers so I compared the 11.10 Unity-2D source with earlier versions. It can be done. Here's how to do it:

(for 11.04/11.10)

gksudo gedit /usr/share/unity-2d/launcher/Launcher.qml

(for 12.04)

gksudo gedit /usr/share/unity-2d/shell/launcher/Launcher.qml

Scroll down until you find the following section:

    Component.onCompleted: {
        items.appendModel(bfbModel);
        items.appendModel(applications);
        items.appendModel(workspaces);
        items.appendModel(devices);
        shelfItems.appendModel(trashes);
    }

items.appendModel(bfbModel); is the offending line of code. Remove this line (or comment it out). Save your changes and close the file.

Restart Unity-2D with:

killall unity-2d-launcher

(12.04)

killall unity-2d-shell

Let's hope someone adds a way to toggle this feature in the upcoming Unity settings manager. Cheers!


Change default text filter settings in Libreoffice CSV export

there is a user-level configuration file located in below file (tested in Version: 6.0.7.3; thought as you mentioned as of v5.4 it remembers the last settings used):

/home/$USER/.config/libreoffice/4/user/registrymodifications.xcu

and below parameters controlling those items you desire to change their default values; so change them to the one you want (or add them if they are not exist start from 3rd line) like:

<item oor:path="/org.openoffice.Office.Calc/Dialogs/DBFExport"><prop oor:name="CharSet" oor:op="fuse"><value>76</value></prop></item>
<item oor:path="/org.openoffice.Office.Calc/Dialogs/CSVExport"><prop oor:name="FieldSeparator" oor:op="fuse"><value>,</value></prop></item>
<item oor:path="/org.openoffice.Office.Calc/Dialogs/CSVExport"><prop oor:name="QuoteAllTextCells" oor:op="fuse"><value>true</value></prop></item>

the CharSet value 76 indicate UTF-8 encoding;
the FieldSeparator is set to comma ,;
and QuoteAllTextCells to true


Is it really possible to properly create a bootable USB of Ubuntu from Windows?

You cannot make the links but you can simply copy the content from the link target to the location of the link. Remember that a live system doesn't write data on its storage medium.


Where is the bootloader stored - in ROM, RAM, or elsewhere?

ROM is a separate chip from the RAM.  It does not require power to retain its contents, and originally could not be modified by any means, but came hard wired from the factory.  Later PROM, or Programmable Read Only Memory replaced true ROM.  These chips came blank from the factory, and could be written to once using a special procedure that essentially burned out bits of the chip causing their state to change.  This was then replaced with EPROM, or Eraseable Programmable Memory.  These chips had a little window on them and if you shined ultraviolet light into them, could be erased, allowing them to be programmed again.  These were then replaced with EEPROM, or Electrically Erasable Programmable Memory.  These chips have a special software procedure to erase them so they can be reprogrammed.  ROM generally is still used to refer to all of these types generically.

The motherboard has some type of ROM chip that holds the firmware, which in PC parlance is usually called the BIOS, or Basic Input Output System, though it is being replaced these days with EFI firmware.  This is the software that the CPU first starts executing at power on.  All firmware performs initialization of the hardware, typically provides some diagnostic output, and provides a way for the user to configure the hardware, then locates and loads the boot loader, which in turn locates and loads the OS.

With PC BIOS, it simply loads and executes the first sector off the disk it decides to boot from, which typically is the first hard disk detected.  By convention the first sector of a hard disk, called the Master Boot Record, contains a DOS partition table listing the locations of the partitions on the disk, and and leaves some space for the boot loader.  Ubuntu uses the GRUB boot loader, which places enough code in the MBR to load and execute /boot/grub/core.img.  Normally a copy of this file is placed in the sectors following the MBR, but before the first partition, and that is actually what the MBR loads, since finding the location of /boot/grub/core.img is too difficult to do properly in the very limited space available in the MBR.

The grub core image contains the base grub code, plus any modules needed to access /boot/grub so that it can load additional modules there, and the grub config file that describes what operating systems can be booted, and where they can be found.

The EFI firmware used on Intel Macs and becoming available as a replacement to BIOS on most recent PC motherboards requires a dedicated partition that holds boot loader files, and the firmware is smart enough to find those files and load one instead of just loading and executing whatever is in the first sector of the disk.


I don't know exactly why it fails, but there are three things you need to get things back to normal.

Restore the /etc/issue file:

sudo mv /etc/issue.backup /etc/issue
Restore the /etc/rc.local file:

sudo mv /etc/rc.local.backup /etc/rc.local
Restore the /etc/init/lightdm.conf file:

sudo mv /opt/vmware-tools-installer/lightdm.conf /etc/init

Then reboot (sudo reboot) or run sudo start lightdm to see the greeter.


How to know what program is listening on a given port?

Open your terminal and type as

lsof -i :8000

that command will list you the application used by that port with PID.
(If no results run via sudo since your might have no permission to certain processes.)

For example, with port 8000 (python3 -m http.server):

$ lsof -i :8000
COMMAND  PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
python3 3269 user    3u  IPv4 1783216      0t0  TCP *:8000 (LISTEN)

And port 22 (SSH):

$ sudo lsof -i :22
COMMAND  PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
sshd     998 root    3u  IPv4 1442116      0t0  TCP *:ssh (LISTEN)
sshd     998 root    4u  IPv6 1442118      0t0  TCP *:ssh (LISTEN)

Hope that helps.


gpg: no valid OpenPGP data found while installing brave browser

As @FrancoisMarier mentioned in the comment below, it is better not to
  access sites without valid access key.

  However, if you are sure that you know what you are doing, and wish to
  access the site without valid access key, you can use the --insecure
  or --no-check-certificate flags.

In order to solve the error:

  gpg: no valid OpenPGP data found

You can download the file using insecure way using -k or --insecure

curl -k -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -

You can also download the file using wget with the --no-check-certificate option:

wget --no-check-certificate -qO - https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -

curl manual explain this option:

  -k, --insecure
                    (SSL) This option explicitly allows curl to perform "insecure" SSL connections  and
                    transfers.  All  SSL  connections  are  attempted to be made secure by using the CA
                    certificate bundle installed by default.  This  makes  all  connections  considered
                    "insecure" fail unless -k, --insecure is used.

  See        this        online       resource       for       further       details:
                    http://curl.haxx.se/docs/sslcerts.html


If you have pre-installed Windows on your system, then it is very straightforward just take:

Make bootable Ubuntu 18.04 in any bootable medium like DVD or USB.
Select USB/DVD on startup from boot menu.
Take standard steps and select install Ubuntu along with Windows installation.
Select disk space allocation by dragging the slider to assign sufficient disk space (minimum 20GB)
After this proceed with setup by selecting timezone, computer name and username with password.


Rapsberry Pi 4 with RTC and Ubuntu 20.04

I'm working on the same thing and rather new to this.
See if this helps, https://wiki.52pi.com/index.php/DS1307_RTC_Module_with_BAT_for_Raspberry_Pi_SKU:_EP-0059#Compatibility_List
I think you need to edit the script file "/lib/udev/hwclock-set" as Michael said to look like below.
#!/bin/sh
# Reset the System Clock to UTC if the hardware clock from which it
# was copied by the kernel was in localtime.

dev=$1
# COMMENT OUT NEXT THREE LINES
#if [ -e /run/systemd/system ] ; then
#    exit 0
#fi

if [ -e /run/udev/hwclock-set ]; then
    exit 0
fi

if [ -f /etc/default/rcS ] ; then
    . /etc/default/rcS
fi

# These defaults are user-overridable in /etc/default/hwclock
BADYEAR=no

My clock hasn't arrived yet so I haven't tried it yet. Let me know if it works for you.


How can I access an attribute of the selected option in an OptionSelector?

OptionSelector has a selectedIndex field, which you can use to get the item from the model:

listModel.get(selectedIndex).sometext

If you are invoking this code outside of the scope of the optionSelector, you need to specify it:

listModel.get(optionSelector.selectedIndex).sometext


I had to change snap settings in CCSM so that appropriate file was created...

Here is contents of ~/.gconf/apps/compiz-1/plugins/snap/screen0/options/%gconf.xml with snapping set to windows edges instead screen edges:

<?xml version="1.0"?>
<gconf>
    <entry name="edges_categories" mtime="1337013971" type="list" ltype="int">
        <li type="int" value="1"/>
    </entry>
</gconf>

I hope that's the file


How do I get the classic file structure display in 12.04 file manager?

I think what you want is the tree view, with the drives and folders displayed on the left:

You can get this by going to the View Menu for File Manager, and change the Sidebar to the Tree view option instead of Places:

The "detailed" view on the right is the List view; you can also change it to a compact view (no details), or a large view (icons) as John has explained in his answer.


How can I recover my hard disk data that got erased when I tried to setup Ubuntu?

You can do restore your deleted data(mostly).

first i advise you not to do anything on the harddisk now.

All you need is a recovery software. for me i advise you to use r-linux.


VBox shared folders not mounted after Upgrade to Ubuntu 18 LTS

Seems guest additions might not match your VBox/Ubuntu version (As I upgraded to 18 LTS those were not updated)

I managed to solve by installing guest additions (Device--> Insert Guest Additions CD)

when installation started .. it removed old version and installed current version for my VBox.

That my user (osboxes) has no default access to shared volumes can be solved by adding the user to shared folders group:

sudo adduser myuser vboxsf

Important Note:

@Itay and I also observed this solves shared clipboard issues, as after upgrade Ubuntu to 18 LTS and updating guest additions bidirectional clipboard worked correctly even it didnt wotk on previous versions.


The Oloh engine is  way wrong. Ubuntu is a quite complex project, and it's difficult to state what is Ubuntu and what is not. But C# is not by any measure the most popular language.

Ubuntu has also much more than 50 contributors and 1500 commits/year even if you only count Ubuntu specific patches.

This site seems to follow some strange mix of Ubuntu and non-Ubuntu projects, it doesn't make sense. It's likely than F-Spot (a big program that is not in the default install base now and it's made in C#) is weighting heavy on that statistic.


How to get BASH to use * wildcard in command?

Quoting in shell is tricky. If you want to use several parameters, especially when some of them contain whitespace, use arrays. Note that you need real bash to run the script to use arrays, so don't start the script with sh, which runs dash instead, with no array support.

args=( -model="$cameramake"
       -make="$cameramodel"
       -imagedescription="PIE PS-5000 slide scanner. VueScanner 32 scanning softare. $filmtype"
       $namepattern )
exiftool "${args[@]}"

BTW, are you sure you want to name the variable holding the model "make" and naming the variable holding the maker "model"? Also note that "software" has a w after t.


Samba share mounts have wrong permissions

You must define the user and group when you configure the fstab mount for the share if you want to control the user (uid) or group (uid). Maybe something like this:

//myserver/myshare /media/Server/myshare cifs uid=1000, gid=100, credentials=/home/myuser/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

Note that the uid is set for the first user (1000) (You I suppose) and the gid is set for user-group named users (gid=100)

The man page for all the options is

man mount.cifs


What you're looking for is called traffic shaping, which can be done (for instance) with wondershaper or trickle. Here is a nice article from linux.com summing up how to use trickle to achieve throttling on a single process or on services via trickled.


Touchpad recognised as USB OPTICAL MOUSE

My laptop was having this same problem. I followed this solution:

It was as simple as doing the following:

sudo nano /etc/default/grub

Editing this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to be this:

GRUB_CMDLINE_LINUX_DEFAULT="i8042.reset quiet splash"

then I ran:

sudo update-grub

I then rebooted the computer, and everything has been working fine.


Increase size of window resize drag area

Others have some good workarounds for the tiny area that gives you the resize handles. Another thing that should work is:
Holding Alt, click and drag with the right mouse button from anywhere inside the window, you will be in resize mode as if you were grabbing the nearest corner.


How to configure proxy authentication to work with Ubuntu Software Center?

Go to /etc/apt. Create the file apt.conf if you don't have it there. Write the following lines there.

Acquire::http::proxy "http://username:password@proxyserver:port/";
Acquire::https::proxy "https://username:password@proxyserver:port/";
Acquire::socks::proxy "socks://username:password@proxyserver:port/";

Save it. You are done.


In Python3, you can install it with:

$~ pip3 install pipenv


There is barely a market for PCI USB 3.0 cards, probably that's why prices are high. PCI as commonly distributed in the 32-bit at 33 MHz version only supports transmission of 133MB/s, which means pretty much 1000Mbit/s. Subtracting some overhead for the protocol, this already gets pretty close to the maximum speed of 430Mbit/s of USB 2.0. USB 3.0 would allow up to 5Gbit/s, far beyond PCI's capabilities. Don't expect any major improvement in transmission speed comparable to PCIe cards! Even a single USB 3.0 port will be able to occupy the link, which is of course shared among all USB ports on the card.

A quick survey on PCI USB 3.0 cards reveals most of them is running the VIA VL80x chipsets, which is told to be supported by Linux since quite some years. As this is a PCIe chipset, there might be some issues because of PCI-PCIe bridge chips, but those are likely also supported well.


it clearly says what is missing and where.
You need to open "config/secrets.yml" and add secret key for development enviorment

U can generate random key using irb:

irb
irb(main):001:0> require 'securerandom'
=> true
irb(main):002:0> SecureRandom.hex(64)
=>"6bb7bc01dd219ac9f074c26c4016260349f70d90f0c38ae171f2232a844bac54c0d6c6bae50eecdbcc73c828bd68076a5700449d069dc8e1ad5a43abd9386dca"

irb(main):003:0>

Then copy that long string into secret file


As @psusi said I couldn't edit the partition because CHDISK was scheduled to run... then I just entered Windows and waited for it to finish, then partition was able to be resized by GParted.

Then did reorganization as @oldfred stated.

Package ntfs-3g substitutes ntfsprogs (which is an old package)

Thank you for the help!!

EDIT: I don't have Windows installed anymore and the general recommendation from the open source community is that you should not use Windows or any closed-source software. Thank you.


The issue is fixed.

First I removed apache2

$ sudo apt-get remove apache2

then I installed libapache2-mod-svn

$ sudo apt-get install libapache2-mod-svn

This is how the problem is solved.

Thanks for your support guys.


Cheese has bugs
Try this.

http://www.iasptk.com/ubuntu-ppa-repositories/18693-install-guvcview-gtk-uvc-viewer-to-ubuntu-1204-via-ppa-

Install Guvcview (GTK+ UVC Viewer) to Ubuntu 12.04 via ppa

Guvcview aims at providing a simple GTK interface for capturing and viewing video from devices supported by the linux UVC driver, although it should also work with any v4l2 compatible device.

The project is based on luvcview for video rendering, but all controls are build using a GTK2 interface.

You can also use guvcview (since version 0.9.9) has a control window only, (from console: guvcview --control_only), this allows image control on other apps, like ekiga, cheese, mplayer, skype, ...

Audio.

Guvcview audio support is based on the portaudio library, up until version 0.9.3 the blocking API was used for audio capture, since version 0.9.4 the callback method is used instead, this provides better performance, it is also the preferred method for the portaudio API.

All interfaces (ALSA, OSD, JACK, ...) supported by portaudio should be available in guvcview. Just make sure portaudio was compiled with the desired interfaces enabled.

UVC Dynamic controls.

The linux UVC driver has an implementation for extension controls (these are vendor specific controls and are supported in the UVC spec.), they are called dynamic controls since they must be dynamically loaded into the driver.

Until today only logitech has supplied specs for their UVC webcam extension controls, these are supported by guvcview.

In new driver revisions admin rights are needed in order to add these controls to the driver, so there are basically two solutions:

1- start guvcview has root (sudo for debian/ubuntu) at least once per session, since version 1.2.0 you can do this with the option --add_ctrls avoiding the need to fully launch guvcview

2- install libwebcam this software has a udev script that should add the necessary controls to your logitech camera.

Install Guvcview to Ubuntu 12.04 via ppa

sudo add-apt-repository ppa:pj-assis/ppa

sudo apt-get update

sudo apt-get install guvcview


Unfortunately, the wacom configuration is not one of the things that has made it to "automatic plug and play" level yet with Ubuntu, but I'm very happy that we have working drivers at all.

Most wacoms will work out of the box with ubuntu 9.10+.  This means pointer and pressure-sensitivity, and default configuration for the buttons.

As Ryan said above, xserver-xorg-input-wacom is the wacom driver that comes installed by default in Ubuntu 10+. However, this will not necessarily mean all your buttons are working how you want them to be. To get everything else working, there is a little bit of configuration involved, and you may have to do some googling to figure out how to get your particular model working.

This is something that can be *(Hopefully!) solved with the Linux-wacom-project's wacom-tools package; this is an extra utility that allows creates specific settings for your wacom tablet.

I was using this up until ubuntu Karmic, but I have not determined wether this is yet working on ubuntu Maverick.  Last I checked, it wasn't working for me.

But for starters:

Google your question.
See if anyone has already gotten your model of wacom working yet in Ubuntu Maverick.
Go to the Ubuntu wiki Wacom page: https://help.ubuntu.com/community/Wacom.
Check out the Ubuntu forums for the same question.

-- Edit: -- See this forums thread: http://ubuntuforums.org/showthread.php?t=1423278&page=1
--IF-- someone has gotten their Bamboo fun working with wacom-tools/xsetwacom, head to the linux-wacom-project howto page and figure out how to change the settings for your various buttons and inputs.
Please post here if you get any answers!


Internet access only via VPN (Cisco AnyConnect), when VPN off - DNS look-up fails

I got some useful info from this question. I tried adding

nameserver    127.0.1.1

to /etc/resolv.conf and that worked. The referenced question (and the file itself) warn that it is auto-generated and will be over-written. My resolv.conf survived a reboot, so I'm not sure when it gets overwritten.

It might be a temporary hack, but it will get you back online for now.


Is there a way to transition from Linux Mint with Mate desktop to Ubuntu MATE without re-install?

Assuming that the development environment is somewhere in your home directory, here is what I would try. Please note, I haven't tried this myself so this comes with absolutely no warranty.
In short, I would install Ubuntu with MATE in another partition, then install any packages that you have installed in Mint, and reuse your current home directory in the new system.

More in detail:

in your current system, get the list of installed packages in a form usable by dpkg --set-selections:

apt-mark showmanual | sed -e 's/$/ install/' > pkgs.txt

(this gets you only the list of packages that you manually installed; I believe that this should be good enough, or you can get the list of every installed package with dpkg --get-selections '*' > pkgs.txt).
Install Ubuntu on a new partition.
Install MATE:

sudo apt-get install mate-core

for a minimal MATE desktop or

sudo apt-get install mate-desktop-environment

for the complete MATE desktop.
Reuse your home from Mint. You can do this by just copying it all over, or (with a minimal risk of having it somehow altered by the new system) mount it directly into the new system by editing the /etc/fstab in Ubuntu and adding this lines:

/dev/disk/by-uuid/<uuid-of-mint-part> /mnt/mint auto nosuid,nodev,nofail,user,exec 0 0
/mnt/mint/home/<user>   /home/<user> none bind

where you can use the blkid /dev/<mint-partition> command to find out should find out the UUID of the mint partition. Also remember to create the /mnt/mint directory because I believe that it must exist in order for the mount to succeed.
Reboot (into Ubuntu again); when the system comes up, your home directory should be the one you have in Mint.
Install the extra packages you had installed in Mint: copy the pkgs.txt file you created in step 1 into the new system, and from there issue the commands:

sudo dpkg --set-selections < selection.txt
sudo apt-get -u dselect-upgrade

If everything works out as expected, and you used the "bind mount" trick for your home, you could move it for good into the new location, and then delete your Mint partition.


You want to use a property alias.  In MyWidget.qml, use

property alias fontPointerSize: name.font.pointSize

Then, the fontPointerSize property will be the font.pointSize property of the Text element, and thus will start off with the default value.


I had exactly the same problem.  What I had to eventually do is to log out of my account by using Ctrl-Alt-Del, choose Unity 2D then log in again.  I tried with different hardware drivers and different user interfaces, but this is the only one that works.

The support for my GeForce 6100 nForce 405 (as the system detects it) has degraded each of the last two releases.  With each of the past two releases my computer was unuseable at all until I fixed the video support.  WarZone 2100 worked find before 11.10, then it got slower.  With 12.04 it is so slow (it takes a full minute for the title screen to come up) that it is impractical to play.  At this rate, my graphics card won't be supported at all with 12.10.


How do I make Firefox Developer Edition my default browser?

Up until now, what you are doing is clicking the firefox dev edition's executable after you find it via nautilus (do not use sudo, it is not needed). But to launch an application in the usual way, you need a launcher file.

You can create a launcher file using the application menulibre. It is available in the Software Center.

Launch it, select "Add Launcher" and create a launcher for Firefox Dev Edition. For the "command" field, click on the folder icon, navigate to the file that you click to open the Firefox Developer Edition and select that.

Give it the name and icon that you want (leave the 'working directory' option empty), and you have a new application. You can add that to the Unity Launcher, and you can set it as default through System Settings>Details>Default Applications.

EDIT:

This error message means that you have another instance of Firefox running. You can't run Firefox if it is already running, so you get this error message.
Make sure that you are not running Firefox (neither version) and try again.
If you get the same error message, kill all Firefox instances with the command

killall firefox

and if that doesn't work, then kill all Firefox instances with the command

sudo killall firefox


Not an answer to your exact issue but a workaround that presents you with significant benefits: why don't you just use a proxy?

There are numerous options but I'd start with squid-deb-proxy. You'll need one machine to serve as the host but this could easily be one of the machines you're dealing with. Similarly it could be a separate server. Doesn't need to be powerful.

The idea is updated packages need only be downloaded once. They get cached and all the other machines download from the local cache.

You still need to stagger the update process. One machine needs to download the updates to fill the cache. You could use one machine to download the updates at night (using a simple @daily cron job -- happens at midnight). The other machines could be turned off over night (saving a lot of money) and then could just grab their updates when they like. They'd only use internal bandwidth so would fly.

Some tips on setting it up can be read here.


Ubuntu 16.04 - apt v: 1.2.32 - Returns E: Sub-process http received signal 4

Okay, fixed it. TL;DR --> Downgrade apt.

I ran "apt show apt" to find the version I had installed is 1.2.32.

I then web-browsed to http://packages.ubuntu.com and searched for "apt" and found version 1.2.29 to be the most recent Xenial version (Xenial apparently being the version of Ubuntu I have, although since it's a customized Xenial for Chrome, I'm guessing it's got a newer apt version, that has this bug).

I manually downloaded it, and then manually installed it with

sudo dpkg -i apt_1.2.29ubuntu0.1_amd64.deb

When I then tried to run "sudo apt update", I got an error that apt-utils or some other piece required the newer apt, but that I might try "apt-get -f install". I tried the latter:

sudo apt-get -f install

That wanted to remove apt-utils and ubuntu-minimal; I allowed the removal.

Then I was able to successfully "sudo apt upgrade" and "sudo apt install firefox" and "sudo apt install aptitude". I think my problem is fixed. At least for today.

/Kent


How do I restore an old Ubuntu backup to a new server

What you're trying to do is impossible:
There are 2 kinds of backups:

System Backups
Data Backups

A System Backup should be restored to an empty hard drive and it'll boot
A Data Backup should be restored to a running system
What you're trying to do is to restore a Data Backup of / to a running system and that will not work!  So restore the /home/xxx/Videos, Documents, Pictures but do not restore the system files, unless you have a Cold¹, Off-line System backup
Note 1: for the pros: yes, I know you can make warm, on-line system backups, but it doesn't look like the OP has one of these.


Confused about building OpenStack Packages?

sbuild builds a package in an isolated environment using schroot. In this environment, only the build dependencies declared by the source package are installed, and nothing else. This helps ensure that the build isn't influenced by the developer or CI environment it is run from. For example, without sbuild, the presence of a package in the CI environment might make it appear that the build succeeds when in fact it was an undeclared build dependency and so fails everywhere else. For reproducibility and stability reasons, it is better to use sbuild.


Ice Cat has an extension called LibreJS that doesn't allows proprietary javascript. Because of this you can't use facebook as it requires javascript to run. There are three solutions:

Use a different browser that does allow javascript
Whitelist facebook on LibreJS you probably will find it next to menu button

Use a mobile friendly version of facebook. Like https://m.facebook.com/ you can use it from a pc don't need to be on a smartphone or tablet


Ubuntu 14.04 freezes when lid on laptop is closed

A couple of ideas:

Type Ctrl-Alt-F1. This should bring you to a terminal (non-graphics) console with a login prompt. You should be able to login here, sudo to root and look at log files under /var/log. This way you may be able to determine exactly what is happening.
You may also be able to set the power options by going to System Settings -> Power, and selecting what happens when you close the lid. You can get to System Settings by doing a search in dash (in the launcher, left side of the screen), or by directly clicking on the power meter at the top right of the screen.


Is there a way to setup two users with one account?

Can you just set Ubuntu One to sync the same U1 account to each system account?  Both users will download the files from the Internet (rather than just getting copied to their home directory), but this seems to me to be the simplest solution.


World of Warcraft with wine (DirectX error)

Try installing WoW through playonlinux (which you can find in the default repositories or here). If that does not help, have a look at the WineHQ database concerning WoW. In both cases, make sure that you are using Wine >=1.3.x.


What does this really mean?

Several security issues have been discovered in the last few years in several processors. Copied from the the Ubuntu wiki:

  In January 2018, security researchers announced a new class of side
  channel attacks that impact most processors, including processors from
  Intel, AMD, ARM and IBM. The attack allows malicious userspace
  processes to read kernel memory and malicious code in guests to read
  hypervisor memory.

.

  Does the kernel really mitigate the vulnerabilities?

Yes, and it includes the compiler also, as some changes were needed there.
And it has been expensive in terms throughput in specific areas. My best example is "pipe-test" where two tasks ping-pong each other at high rate. My use case is testing idle governors for the very shallow idle states used by such a high work/idle frequency. Anyway, the typical loop time on my i7-2600K test system has steady increased from ~ 3 microseconds per loop a couple of years ago to about 6.5 with kernel 5.7. In other types of workflows the degradation due to these mitigations has been undetectable.

Some of these mitigations can be turned off in the kernel configuration, but I have never tried it.

  Where can I find more information about it?

I do not know the best reference, but try the Ubuntu wiki.

These are the listings for:
i5-9600K

Vulnerability Itlb multihit:     KVM: Mitigation: Split huge pages
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Enhanced IBRS, IBPB conditional, RSB filling
Vulnerability Tsx async abort:   Mitigation; TSX disabled

i7-2600K:

Vulnerability Itlb multihit:     KVM: Mitigation: Split huge pages
Vulnerability L1tf:              Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Vulnerability Mds:               Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full generic retpoline, IBPB conditional, IBRS_FW, STIBP conditional, RSB filling
Vulnerability Tsx async abort:   Not affected


if your Ubuntu Filesystem is EXT4 (or 2 or 3) you can mount it in Windows
via EXTFS from Paragon Software (Freeware). Just google for it....

best regards,
Tobi


How to set up plexmediaserver in Ubuntu 16.04?

Plex Media Server on Ubuntu 16.04LTS (only for Plex-Pass free Downloads)

init.d is legacy so forget /etc/default/plexmediaserver because its ignored. Instead use systemctl.

Setting it up; add the repo for “automatic” updates:

echo deb https://downloads.plex.tv/repo/deb ./public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
sudo apt update
sudo apt install plexmediaserver -y

To avoid permission problems run the server as your standard user, replace “plex” with your user and group in:

sudo nano /etc/systemd/system/plexmediaserver.service

If this file is empty, paste the following into the file.

[Unit]
Description=Plex Media Server for Linux
After=network.target

[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp
Environment=LD_LIBRARY_PATH=/usr/lib/plexmediaserver
Environment=LC_ALL=en_US.UTF-8
Environment=LANG=en_US.UTF-8
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStart=/bin/sh -c '/usr/lib/plexmediaserver/Plex\ Media\ Server'
Type=simple
User=user
Group=group
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target

Now also change the ownership of the next subdir to your user!

sudo chown -R user:group /var/lib/plexmediaserver
sudo systemctl --system daemon-reload
sudo service plexmediaserver start

Now you can set up your pms.


I don't understand exactly your intention, but I'm assuming you have two processes sending their output to stdout and you want to monitor only one of them at a time.

My suggestion would be to have each process write to its own file instead of stdout.  If you don't want to rewrite your script, you can just have all output for the process redirected using > for only standard output or &> for all output, including stderr.

So you could execute your processes using:

$./proc1 &> proc1.out
$./proc2 &> proc2.out

Now if you want to monitor the output of one of processes, use the tail command with the 'follow' option:

$ tail -f proc1.out

If you want to see output from both processes simultaneously on stdout, use:

$ tail -f proc1.out -f proc2.out


How to use custom DNS server for selected domains only?

Create /etc/NetworkManager/dnsmasq.d/custom-dns with

server=/example.com/xx.xx.xx.xx
server=/example.net/xx.xx.xx.xx

where xx.xx.xx.xx is a ip address of a DNS server and restart Network Manager

service network-manager restart


Error connecting to server. " Failed to startup SSH: Connection refused "

The error you get means you need to run SSH server.
I do not kow what you are trying to do, but if you want it not to give you that error you will need to install ssh server, use the command below:

sudo apt-get install openssh-server


Install samba apt install samba samba-common-bin it is so simple to do too, edit one file, set password, restart daemon and your done. Then nano /etc/samba/smb.conf in the [homes] section change the yes to no like below to have the share read/writable, at the bottom of the file add your share. Then set the password for the user_name you want to be able to access the share with smbpasswd -a user_name and restart samba service smbd restart. All commands run with sudo in front of them in the Terminal application.
# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
read only = no
snip ....
[share-name]
path = /home/user_name/share_directory
writeable=Yes
create mask=0777
directory mask=0777
public=no

The formatting can be any file system you want, your machine takes care of the reading/writing to it, samba takes care of the sharing.


Lubuntu/Ubuntu 12.10 won't recognize USBs

I tried a number of ways (and the answer above), but didn't get anywhere on my system which was having the same issues.  Then I had a brain-wave and looked in the "user settings" from the gui menu.

It seems the ability to mount drives is disabled for user profiles by default.

Click on the "Advanced Settings" for the user that needs to have access to external media, switch to the "User Privileges" tab and then put a tick/check in "Mount user-space filesystems (FUSE)".  I'd review what else is disabled while you are there, as it may solve other problems!

It got my system working how I expected it to, and I hope this answer helps others.


polkit inactive session action/rules never come into effect

It doesn't seem to get the user name from the user process, check your environment variables. xrdp may differ from the regular session:

env | grep -i "user\|logname"

To check if polkit agent is running, use terminal and run this:

~$ ps aux | grep polkit
root       855  0.0  0.9 281224  7192 ?        Sl   06:34   0:00 /usr/lib/policykit-1/polkitd --no-debug
user      2060  0.0  1.5 331764 11604 ?        Sl   06:37   0:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
user      2419  0.0  0.1  15944   952 pts/12   S+   06:38   0:00 grep --color=auto polkit

You should find two process polkitd running by root and polkit-*-authentication-agent-1 by same user of the session.
Yes, you can tart them manually, I have Ubuntu desktop so it may differ. Get where it is:

~$ ls /etc/xdg/autostart/polkit-*
/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop

~$ grep -i exec= /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
Exec=/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1

Run it:

/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1


Xubuntu 13.10: unable to change default terminal

I think there's an option to do so using the GUI, though I've never needed to change my terminal, I did go through a period of using PCManFM before Thunar had tabs.

I think it's under Settings Manager → Preferred Applications → Utilities (or something like that).

Maybe also purging the others would provide a solution - but I've tried to remove default packages in the past and found they're dependencies of xubuntu-desktop (which, obviously, you don't want to remove).


What is it called when you can log into multiple workstations with one username and password

Two separate issues:

On the login side those systems would have been setup to authenticate off a central server, you're probably looking for something like LDAP

On the common environment, if I understand you correctly you're looking for all your settings and files to be shared to whatever terminal you log in to? --Which again means your environment needs to be hosted on a central server and your home dir network mounted when you login.

Neither is too complex but requires the whole system be setup for such so depends on what your context is - either talk to your sys admin (who probably won't want to re architect everything) or if it's all under your control then it's definitely possible - have fun


Installing Ubuntu in external HD (dual boot) and without the necessity of turning off my windows

When you dual boot, GRUB is giving you a choice of running Ubuntu or Windows. If you choose Ubuntu, Windows does not start up, therefore you cannot turn Windows off.

Therefore, you have to solve the Ubuntu problems from within Ubuntu. Windows isn't available to take over in a system lockup.


Why does updating Ubuntu reset my boot order? Can I change this?

Ubuntu does this because it assumes you're installing it because you want to use it, so it makes it easy to boot.  If you want to change the default, find this line in /boot/grub/grub.cfg:

set default=0

and change it to

set default=1

Assuming that Windows is the second option in your grub menu.  If it's not, then replace 1 with [x-1] if x is Windows's place in the grub menu.


Car hands free not connecting with Ubuntu Phone bluetooth

I managed to connect the BQ Ubuntu Phone to my built-in handsfree set (Volvo V60, 2014) by turning the car in discoverable mode and connecting to the car from the phone.

Vice versa, i.e. connecting to the phone (in discoverable mode) from the car did not work. In my other car (Volvo V50, 2010) neither method works.


How do I delete a random line in a text file from a given range?

Here's a solution using sed:

sed -i $((start + RANDOM % range))d filename.txt

where:

start is the beginning line number of your range
range (or end-start is the number of lines to include from start)
sed -i -Nd tells sed to delete line N in the input file
RANDOM is bash's random number generator; a special shell variable that holds a random integer between 0 and 32767 when you use it.

So, for example, to delete a random line between lines 90 and 120 in file test.txt, you'd use:

sed -i $((90 + RANDOM % 30))d test.txt


You cannot do that in you current system because you cannot unmount the root partition so you should have a live cd.
After booting to live cd unmount the root partition you want to extend. As the free space is above your root partation you have to move the partition so the data loss may occur so I strongly recommand to backup the data that are important.
After doing backup open Gparted and that right click the partition you want to extend and select resize/move. set free space preceding to 0 and add add the free partition size to new size(in your calculate around 1851024+741024 MiB). and keep the free space following to the initial value. Now this process will take a quit long time so wait to get the new partition size.


not able to dual boot to windows 7 after installing ubuntu 12.04

Looking at it a bit more, I suspect that running the following command in the Windows 7 installation CD repair console will allow os-prober to find your windows installation.

bootrec /fixboot

After running the command. Reboot, you will most likely still only boot into Ubuntu. So then rerun the boot-repair script. If you've got any trouble please submit the new pastebin.


Performing a dual boot of Windows and Ubuntu on a PC with 4 GB RAM?

Your gaming performance in Windows won't suffer if you install Ubuntu alongside Windows. There is no decrease in performance in either OS in a dual boot because both Ubuntu and Windows operating systems in a dual boot use all the available RAM.

If you install an Ubuntu  guest OS in a virtual machine it will reduce performance in Windows only when the Ubuntu guest OS is running, because a virtual machine application installed in Windows only uses RAM when it is running.


What is equivalent to WakeOnLan software in Ubuntu?

An app is already there -

gWakeOnLan

As recommened in https://help.ubuntu.com/community/WakeOnLan


Hp ProBook - upon boot up screen is black, does not wake

This an issue with your discrete GPU, the most simple solution is try to switch your Graphics mode in BIOS to integrated.

Perhaps most appropriate is to try to build and install the fglrx catalyst drivers.

More info about AMD Graphics: https://help.ubuntu.com/community/BinaryDriverHowto/AMD


Graphic drivers are not working, how do you install new ones?

Sorry apparently the below won't work for AMD devices, I'll leave it here as it could help with other connected devices.

You can run ubuntu-drivers list to show all drivers available for your hardware.

If the list looks right, you can run sudo ubuntu-drivers install to install them automatically. Or to install  individually listed drivers run sudo apt install <driver>


Install UNetbootin in Ubuntu

Using these few commands, downloading and running it will work.

sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install unetbootin

Adding repository is necessary for updates and support for older versions of Ubuntu.


ibus-ui-gtk3 hangul keyboard layout property panel window won't go away

I solved this issue by opening "IBus Preferences" (ibus-setup from CLI) and changed the "Show property panel:" option in the "General" tab to "Do not show".
Now the "property panel" (as I now know it is called) is not present. There is also a "Hide automatically" option that seems to make the window only show up when you start typing.


Turn off useless video card ubuntu server

you should install proprietary drivers from Radeon, thermal settings are highly customisable in Catalyst.

also what other GPU you have? if it`s NVidia then you can manually assign it to anything your XServer use via NVidia XServer settings.

also check this question, it should contain some info which can help you:


Perhaps, it was only installed languages but not keyboard layouts.
Try to check: System Settings > Keyboard Layout

Type of input can affect desktop controls.
In between, IBus support should be enabled to fix language indicator issues.
Read more about Community Help Wiki - IBus

Look for this nice help about IBus: How to Enable Foreign Language Input In Ubuntu

Also check your Keyboard Layout > Layouts tab > Options > Key(s) to change layout.


Try booting into recovery mode:

Hold shift during startup.
Select a "recovery mode" in the GRUB menu
Select "root".
Now you can edit /etc/hosts with nano

However, I'm not sure yet that the problem is in /etc/hosts. Can you add more details?


Unable to install libgtk2. Connection refusing

Seems like the accessibility-dev user account on Launchpad does no longer exist. Their user page shows a "Page not found" as well.

Their user page was last indexed by the Internet Archive Wayback Machine in March 2016 (visit archived page), so probably the account got deleted.

This means however that their PPA which you have installed also does no longer exist and will never come back, so you should remove it from your list of software sources.

Ubuntu has a version of the libgtk2.0-dev package in its own main repository as well though, so you don't need a PPA at all. Simply install it from the command-line after removing the obsolete PPA and updating your lists:

sudo add-apt-repository --remove ppa:accessibility-dev/ppa
sudo apt-get update
sudo apt-get install libgtk2.0-dev


VSFTPD stops responding at password request

The "The "syslog" option is deprecated" issue is related to Samba server not having the correct config.  I was getting the same error in Ubuntu terminal when using SUDO, in Filezilla when using FTP, and in Fog server.  The solution that removed this error:

https://bugs.freenas.org/issues/14231

I edited my Samba config file following these tips.  I commented out usage of syslog and syslog only in the Samba config:

  Use "logging" parameter to configure Samba logging instead of
  deprecated "syslog" and "syslog only"


Upgrade php to 7.2 in ubuntu + nginx Vestacp server

Try: update-alternatives --config php

(perhaps with sudo)

Idea/Surce :https://pehapkari.cz/blog/2017/03/27/multiple-php-versions-the-easy-way/


11.10 runs really choppy and slow, but not if I choose "Gnome Classic"

If you don't already have CompizConfig Settings Manager installed, get it from the Software Center.

Once you have it, go to OpenGL under General and uncheck 'Sync to VBlank'. That should solve it.


Can I easily upgrade from Debian Squeeze to Ubuntu 12.04?

No, there is no easy way to "upgrade" from a CLI installation of Debian Squeeze to Ubuntu 12.04 (server variant or otherwise). i.e., you cannot just dist-upgrade.

If you have no physical access and this is a physical server, perhaps you can install Ubuntu via PXE? If this is a VPS of some kind, please detail and I can suggest some workarounds...


Installing apt-cacher server for two ubuntu versions

apt-cacher

When running multiple machine with the same distribution, it is interesting to set up a repository cache on your network so that once a package is downloaded from an official repository, all other machines will download it from your local area network.

Having different machines running the same linux distribution, it becomes interesting to set up a repository cache somewhere on your network. This way, you won't download common packages more than 1 time from official repositories.

Here is the situation, we have one machine called repository-cache, this machine is going to act as the repository cache, basically, any other machines in your network is going to use it as a repository.

1. How To Set up a repository cache with apt-cacher

How To Set up a repository cache with apt-cacher

2. Conclusion

apt-cacher is an easy and efficient package which will save you both time and bandwidth when using multiple machines with the same distribution like it could happen in a home network or in at a company.

apt-mirror

It is a perl-based utility for downloading and mirroring the entire contents of a public repository. This may likely include packages that you don't use and will not use, but anything stored in a public repository will also be stored in your mirror.

1. How To Set up a repository cache with apt-cacher

To configure apt-mirror you will need the following:

apt-mirror package `sudo apt-get install apt-mirror`
apache2 package  `sudo apt-get install apache2`
**roughly 15G of storage per release, per architecture**

How to Set up a repository with apt-mirror

2. Conclusion

I find this difficult but very effective in saving bandwidth but on the other side the results is a high consumption of disk space.

apt-cacher-ng

is a caching proxy for downloading packages from Debian-style
 software repositories (or possibly from other types).

The main principle is that a central machine hosts the proxy for a local
 network, and clients configure their APT setup to download through it.
 Apt-Cacher NG keeps a copy of all useful data that passes through it, and when
 a similar request is made, the cached copy of the data is delivered without
 being re-downloaded.

Apt-Cacher NG has been designed from scratch as a replacement for
 apt-cacher, but with a focus on maximizing throughput with low system
 resource requirements. It can also be used as replacement for apt-proxy and
 approx with no need to modify clients' sources.list files.

2. Conclusion

is a caching proxy specialized for package files from GNU/Linux distributors, primarily for Debian and Debian based distributions (like Ubuntu). This means that if you have many Debian/Ubuntu machines on your network, you just have to download the deb packages (new software, updates, distro upgrades, etc) from the internet once and the rest of the Debian/Ubuntu machines get them from Apt-Cacher NG cache, saving time and internet bandwidth.

Next time any of your machines needs a deb package, it will ask Apt-Cacher NG for it. If this package was asked previously by any of the other machines, Apt-Cacher will have a copy and will deliver it. Otherwise, it will fetch it from the internet repositories, keep a local copy and deliver it.

Best way to cache apt downloads on a LAN? see Piskvor's answer

Let do it some markeying in Full Circle Issue #54 there is an interesting article about Part 2, Apt-Cache NG


How do I burn the Ubuntu ISO on Mac OS X Lion?

Please note: This is for OS X Lion users only

The easiest way to burn an ISO, the file you need to install Ubuntu from a CD, is by using Disk Utility. If you’re using an older version of Mac OS X, you might not have the Disk Utility application. In this case, use Disk Copy.

Launch 'Disk Utility' (Applications → Utilities → Disk Utility).
Insert your blank CD/DVD.
Drag and drop your .iso file to the left pane in Disk Utility. Now both the blank disc and the .iso should be listed.
Select the .iso file, and click on the 'Burn' button in the toolbar.
Ensure that the 'Verify burned data' checkbox is ticked (you may need to click on the disclosure triangle to see the checkbox).
Click 'Burn'. The data will be burned and verified.

Info collected from here

Please note: This is for OS X Lion users only, this no longer works the same way on OS X El Capitan. (This note is in case you've updated from Lion. I'll update this when I find the solution if someone else doesn't chime in sooner)


How to get D-Link DWA-547 working on Ubuntu 13.10?

I realised that the driver does indeed work, just not as I expected.

From observing Ubuntu's network indicator over the week I noticed that WiFi will spontaneously "just work". Often after a few hours of using Ubuntu the WiFi will just start working randomly. This is impractical but it does work.

So, I guess that answers my question. I just have a different sort of question in my hands now.


How stable is the Ubuntu One nightly build ppa?

The nightly PPA is an automatic build with no testing - at best packages either compile or dont compile on a daily basis.  I would stay clear of this PPA.

My suggestion therefore would have been to install either ubuntuone-control-panel or ubuntuone-control-panel-gtk - the latter package gives you a GTK type interface for Ubuntu-One.

However these packages are only available for Maverick and Natty.  They have not been backported to Lucid.  There is one potential PPA available with these packages backported.  However, as the author himself says - use with care.  Therefore - take the authors advice and backup first using a good backup tool such as Clonezilla

To Install on Lucid

sudo add-apt-repository ppa:kalon33/experimental-stuff
sudo add-apt-repository ppa:ppa:kalon33/ppa
sudo apt-get update
sudo apt-get install ubuntuone-control-panel-gtk

NOW VERY IMPORTANT

Open your software sources and untick both the Kalon33 experimental PPA and Kalon33 PPA.  The reason is that you probably will not want any of the authors extensive builds for Lucid.

Finish off running

sudo apt-get update

Running UbuntuOne

The package will install Ubuntu-One under the Settings menu.


I want to put my logs on a separate partition

First you need to delete/move the data in /var/logs/.  I don't think you can mount a partition on a folder that has sub-folders or files.

You don't need to worry about permissions, because I think root does all the writing, so it will automatically have permissions. [My /var/log/ folder permissions are 755, so any user can view, but only the owner (root) can write].


Synaptic touchpad right-click not working

I had that problem (touchpad right click not working) with ubuntu 12.04, and found this link very useful:

https://wiki.archlinux.org/index.php/Touchpad_Synaptics#Buttonless_TouchPads_.28aka_ClickPads.29

In my case, all I had to do was to define the area of the right button, adding the line

Option "SoftButtonAreas"  "50% 0 82% 0 0 0 0 0"

to the configuration file as explained there.


Need help with bash checking if computer uptime is greater than 5 minutes

A bash script/cron job is the wrong solution for the problem you are trying to solve. Actually, scratch that -- two bash scripts/cron jobs are the wrong solution for your problem. ;)

The problem you are trying to solve is, "ensure a task starts running after a user has logged in, and ensure it stays running". This is a job for upstart.

The following should do what you want, and it goes into /etc/init/. Name the file something like user-session-job.conf.

description "Keep my very important program running"

start on desktop-session-start
stop on desktop-shutdown

respawn

script
    /path/to/my/very/important/program
end script

Please see the upstart cookbook for lots more help:
http://upstart.ubuntu.com/cookbook/


Can a Zenity list display a string `--option`?

You can just put the space before the - character, like this:

zenity --list \
    --title="Select framerate" \
    --column="ffmpeg code" --column="Framerate" --column="Description" \
    " -r 24000/1001" "23.976fps" "NTSC compatible 24fps" \
    " -r 30000/1001" "29.98fps" "NTSC compatible 30fps"


How can I run a command automatically upon connecting to a Bluetooth device?

Make a script with the commands.
Then use:
sudo tail -f /var/log/syslog

to get the idVendor and the idProduct, then write the udev rule to /etc/udev/rules.d/50-my_bluetooth_rule.rules as follows:
ACTION=="add" , SUBSYSTEM=="usb", ATTR{idVendor}=="xxx", ATTR{idProduct}=="yyy", RUN+="/home/myhome/my_script"

Run:
sudo service udev restart
sudo tail -f /var/log/syslog

Reconnect your bluetooth device. You can use logger in your bash script to write messages to syslog.

From here


Current problem
When using Ubuntu Full Disk Encryption(that is based on dm-crypt with LUKS) to set up full system encryption, the encryption key is kept in memory when suspending the system. This drawback defeats the purpose of encryption if you carry around your suspended laptop a lot. One can use the cryptsetup luksSuspend command to freeze all I/O and flush the key from memory.
Solution
ubuntu-luks-suspend  is an attempt to change the default suspend mechanism. The basic idea is to change to a chroot outside of the encrypted root fs and then lock it (withcryptsetup luksSuspend)


Given your filename format, a simple lexical sort should be sufficient. So for example

printf '%s\0' Ubuntu_Scripts.zip_* | sort -z | head -zn3 | xargs -0 echo rm --

The -z isn't necessary for your examples, but doesn't cost anything and makes the pipeline valid for any legal names (including those containing newlines).

Remove the echo once you are satisfied it is identifying the appropriate files.

--

If zsh is available, you could remove the first three matching files by name ascending using built-in glob qualifiers:

rm -- Ubuntu_Scripts.zip_*(.on[1,3])


What's the difference between /dev/sg0 and /dev/sr0?

These are naming conventions for SCSI drivers. Below are some of the SCSI drivers:

  sd: mass-storage driver

  sda: first registered device
  sdb, sdc, etc.: second, third, etc. registered devices

  ses: Enclosure driver
  sg: generic SCSI layer
  sr: “ROM” driver (data-oriented optical disc drives; scd is just a secondary alias)
  st: magnetic tape driver

Source: Naming conventions - Device file - Wikipedia

Additionally, Generic SCSI just gives the guest operating system direct access to SCSI devices connected to the host. So, you're actually using /dev/sr0 for burning DVD.


How to prevent Ubuntu from becoming unresponsive when not having enough memory?

I use

sudo swapoff -a

to turn off the swap.


Ambiance seemingly uninstalled after Update

I was able to fix this problem by reinstalling Ambiance with the following command, and restarting the computer.

sudo apt-get install light-themes


It does not matter that you did not make a DNS entry, because you have used a public IP address instead of a reserved private IP address. Your arp command is doing a DNS lookup and getting the actual answer for the IP address. If you want to suppress DNS lookups then do arp -n.
Examples:
doug@DOUG-64:~$ nslookup one.one.one.one
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   one.one.one.one
Address: 1.1.1.1
Name:   one.one.one.one
Address: 1.0.0.1

doug@DOUG-64:~$
doug@DOUG-64:~$ nslookup 1.1.1.1
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
1.1.1.1.in-addr.arpa    name = one.one.one.one.

Authoritative answers can be found from:
1.1.1.in-addr.arpa      nameserver = ns3.cloudflare.com.
1.1.1.in-addr.arpa      nameserver = ns7.cloudflare.com.
ns3.cloudflare.com      internet address = 162.159.7.226
ns3.cloudflare.com      internet address = 162.159.0.33
ns3.cloudflare.com      has AAAA address 2400:cb00:2049:1::a29f:21
ns3.cloudflare.com      has AAAA address 2400:cb00:2049:1::a29f:7e2
ns7.cloudflare.com      internet address = 162.159.6.6
ns7.cloudflare.com      internet address = 162.159.4.8
ns7.cloudflare.com      has AAAA address 2400:cb00:2049:1::a29f:408
ns7.cloudflare.com      has AAAA address 2400:cb00:2049:1::a29f:606


How can I force anyone who tries to log in with Single User Mode to enter the root password?

When system is booting into "single user mode" or "1", also in systemd known as rescue.target, you are actually logging-in using "root" user to fix the system issues with the highest rights a user have.

So if you want to Ubuntu ask you for a password while booting into "single user mode", then you have to set a password for "root" user:

sudo passwd root

However, when you have physical access to a system, you can almost do whatever you want with that system, for example instead of using "single user mode", while booting I can send a parameter like: init=/bin/bash to the Kernel and reset the "root" password.

So the best option is to encrypt the system and locking down the room.

To address the question about files, you have to install a version which comes with systemd, Ubuntu 16.04 and above are the ones with support at the time.


how can i get past the authentication code stuff if i bought from a used computer vendor

Unless you need data stored on this used machine, or the machine comes with a custom configuration for special tasks, it is strongly advisable to remove the preinstalled OS for the following security reasons:

User name and password of the administrator account are different to your needs.
Administrator credentials are known to other people.
Individual configuration of the machine is unknown.
There is no guarantee that the machine comes without malicious software.
Partitioning may be different to your needs.
The OS may not be up to date.

Reinstalling a fresh and untouched ("vanilla") Ubuntu is very easy and should not take you more than 30 Minutes:

How do I install Ubuntu?


I use to have the same (similar?) problem after updating from 12.10 to 13.04.
These flickering lines appears straight at the log-on screen
This is what I do, to make my screen to be back in shape and colors: Right after hearing that little drum sound, enter my password and press Enter. The flickering is NOT gone just yet, so I log-out. Press Alt+Ctrl+Del and then Enter again.
This how I'm again on the Log-on screen, but this time everything is fine. Log in and enjoy your Ubuntu! ;)
And this how I have to do every time I power on my laptop. My experience tells me that this could be due to video card or it's driver incapability issue. Perhaps, that's why I leave it as it is... I have ASUS A8j witch has graphics by nVidia, unfortunately...
Hope this helps in some way to you.

Edit:
Is not flickering anymore (as for me). Perhaps been fixed with the latest updates... Thanks :)


Try to install the latest nvidia drivers using the following:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current


How do I move the title to the center of the title bar?

Annnd this is perfect and exactly what i needed! How to center window title text?
Thanks you DK-Bose!

It works perfectly in a
normal size.
It seems it doesn't work when it's maximized (or it's normal i guess).

If you can change the title bar position to the middle when i maximize the window i would know.
Anyway thanks!


mkusb wants grub4win.img.xz if you run an installed system booted in UEFI mode. This is independent of secure boot.
You need grub4win.img.xz in order to create a drive that can boot also in BIOS mode. If it is enough for you to boot in UEFI mode, you do not need it.

But there is another issue, that might create problems for you.
The method used by mkusb was developed a few years ago. At that time it was enough to have a FAT32 partition to make an installer drive fro Windows. But nowadays there are several Windows 10 iso files that contain a version of the file install.wim with size > 4 GiB. It means that this method does not work because the FAT32 file system cannot manage it.
Such Windows iso files can be extracted into a USB pendrive with one FAT32 partition and one NTFS partition. It can be done with

the tool woeusb according to this link
manually according to this link.

Edit:
The current version of mkusb, 12.5.7, uses a new tool to create an installer drive for Windows, mkusb-tow, and it can manage versions of Windows with a huge install.wim file inside the iso file.

help.ubuntu.com/community/mkusb#Windows_USB_install_drive


On my Ubuntu 18.04.2 I installed it via the command :

sudo snap install teams-for-linux

( I did not understand the other answers completely
  and the linked versions are older 0.2.1.
  my install is 0.3 )


Unlocking LUKS partition with keyfile on USB does not work

It would be ideal to me if I could simply have a small USB stick containing a passphrase that will
unlock the disk. Not only would that be handy for servers (where you could leave the USB stick in the
server - the goal is to be able to return broken harddisks without having to worry about confidential data), it would also be great for my laptop: Insert the USB stick when booting and remove it after
unlocking the cryptodisk.

I have now written a patch that will search the root dir of all devices for the file 'cryptkey.txt' and try decrypting
with each line as a key. If that fails: Revert to typing in the pass phrase.

It does mean the key cannot contain \n, but that would apply to any typed in key, too. The good part is that you can use the same USB disk to store the key for multiple machines: You do not need a separate USB disk for each. So if you have a USB drive in your physical key ring, you can use the same drive for all the machines you boot when being physically close.

You add the key with:

cryptsetup luksAddKey /dev/sda5

And then put the same key as a line in a file on the USB/MMC disk called 'cryptkey.txt'. The patch is here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746806

If the USB drivers, MMC drivers or the filesystems are not present in your initramfs, you need to add them by adding to /etc/initramfs-tools/modules:

uhci_hcd
ehci_hcd
usb_storage
nls_utf8
nls_cp437
vfat
fat
sd_mod
mmc_block
tifm_sd
tifm_core
mmc_core
tifm_7xx1
sdhci
sdhci_pci

When all is done, update the initramfs:

update-initramfs -u


How to install Postgresql 9.3 instead of default 9.4 in Ubuntu 14.10?

Add the official postgres PPA / Apt repo. It has packages for all of the supported versions.

See: http://www.postgresql.org/download/linux/ubuntu/

Create the file /etc/apt/sources.list.d/pgdg.list, and add a line for the repository

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

Import the repository signing key, and update the package lists

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


Power off device during suspend, power on during resume

From this answer:

How to turn off the USB power to my mouse, when I suspend the notebook?

You can create a script called /lib/systemd/system-sleep/cambridge.sh

#!/bin/bash
ZeroBUS1=$(lsusb | grep 0a12:0001 | cut -c  5-7 )
BUS1=$(echo $ZeroBUS1 | sed 's/^0*//') # Strip leading zeros
ZeroBUS2=$(lsusb | grep 0a12:0001 | cut -c  16-18 )
BUS2=$(echo $ZeroBUS2 | sed 's/^0*//') # Strip leading zeros
BUS="$BUS1"-"$BUS2"

case $1 in
    suspend|suspend_hybrid|hibernate)
        echo "Powering off: $BUS"
        echo "$BUS" | sudo tee /sys/bus/usb/drivers/usb/unbind
        ;;
    resume|thaw)
        echo "Powering on: $BUS"
        echo "$BUS" | sudo tee /sys/bus/usb/drivers/usb/bind
        ;;
esac

Mark the file as executable with

sudo chmod a+x /lib/systemd/system-sleep/cambridge.sh

You may need to reboot for changes to take effect.


NVIDIA Nouveau Driver: No more 3D acceleration?

Fixed...
(But I'm not sure why!)
I followed these instructions to reinstall the drivers, and rebooted.
Nothing changed.
Then I went into Additional Drivers and enabled Nouveau (which I'd already enabled and disabled numerous times, and which should have been enabled here)... and then I got 3D after I rebooted.


In addition to being the name of an operating system, ubuntu is also a dictionary word. You can't prohibit a dictionary word from being used as a song title or an album title.

Trademark infringement is the unauthorized use of a trademark or service mark on or in connection with goods and/or services in a manner that is likely to cause confusion, deception, or mistake about the source of the goods and/or services. Using a dictionary word as a song title or an album title is not generally considered to be trademark infringement by law.

u·bun·tu
ˌo͝oˈbo͝on(t)o͞o/
noun
South African

  a quality that includes the essential human virtues; compassion and humanity.*


Can't properly setup vsftpd using MariaDB

I managed to solve this. One thing to note for anyone in the future looking at this. If you ever want to see if vsftpd is actually running and listening run the following command:

netstat -tlpm

You should see vsftpd in the list listening under port 21!

If you do not then it is not listening / running. For me this was because my /etc/vsftpd.conf had something wrong in it. If vsftpd has a parameter incorrect (i.e. typed wrong) it simply will not run.  Either way my new /etc/vsftpd.conf is as follows:

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
nopriv_user=vsftpd
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
guest_enable=YES
guest_username=vsftpd
local_root=/home/vsftpd/$USER
user_sub_token=$USER
virtual_use_local_privs=YES
user_config_dir=/etc/vsftpd_user_conf
pasv_enable=YES
allow_writeable_chroot=YES

The key lines that I was missing were:

pasv_enable=YES
allow_writeable_chroot=YES

This solved my issue to where I could connect.

Different issue solved

I wanted to add this note to anyone else having the same problems. After connecting successfully I wanted my users to have the ability to edit their home folder. In order to do this, my process for adding a new user is:

Insert username, password to my database:
INSERT INTO accounts (username,pass) VALUES('newuser',PASSWORD('password'));

*Note it is important to use PASSWORD() around the password or connections will not work!

Create new directory for user and ensure that vsftpd has ownership to it

mkdir /home/vsftpd/newuser

chown -R vsftpd /home/vsftpd

chmod -R u+rX /home/vsftpd
Now connecting as new user will work and have write / read access to home directory!


How to install Oracle 11gR2 on Ubuntu 14.04?

Step 1: Download Oracle Database Express Edition.

Step 2: Instructions before install Oracle

Copy the downloaded file and paste it in home directory.
Unzip using the command:

unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip

Install required packages using the command:

sudo apt-get install alien libaio1 unixodbc

Enter into the Disk1 folder using command:

cd Disk1/

Convert RPM package format to DEB package format (that is used by Ubuntu) using the command:

sudo alien --scripts -d oracle-xe-11.2.0-1.0.x86_64.rpm

Create the required chkconfig script using the command:

sudo pico /sbin/chkconfig

The pico text editor is started and the commands are shown at the bottom of the screen. Now copy and paste the following into the file and save:

#!/bin/bash
# Oracle 11gR2 XE installer chkconfig hack for Ubuntu
file=/etc/init.d/oracle-xe
if [[ ! `tail -n1 $file | grep INIT` ]]; then
    echo >> $file
    echo '### BEGIN INIT INFO' >> $file
    echo '# Provides: OracleXE' >> $file
    echo '# Required-Start: $remote_fs $syslog' >> $file
    echo '# Required-Stop: $remote_fs $syslog' >> $file
    echo '# Default-Start: 2 3 4 5' >> $file
    echo '# Default-Stop: 0 1 6' >> $file
    echo '# Short-Description: Oracle 11g Express Edition' >> $file
    echo '### END INIT INFO' >> $file
fi
update-rc.d oracle-xe defaults 80 01

Change the permission of the chkconfig file using the command:

sudo chmod 755 /sbin/chkconfig

Set kernel parameters. Oracle 11gR2 XE requires additional kernel parameters which you need to set using the command:

sudo pico /etc/sysctl.d/60-oracle.conf

Copy the following into the file and save:

# Oracle 11g XE kernel parameters
fs.file-max=6815744
net.ipv4.ip_local_port_range=9000 65000
kernel.sem=250 32000 100 128
kernel.shmmax=536870912

Verify the change using the command:

sudo cat /etc/sysctl.d/60-oracle.conf

You should see what you entered earlier. Now load the kernel parameters:

sudo service procps start

Verify the new parameters are loaded using:

sudo sysctl -q fs.file-max

You should see the file-max value that you entered earlier.
Set up /dev/shm mount point for Oracle. Create the following file using the command:

sudo pico /etc/rc2.d/S01shm_load

Copy the following into the file and save.

#!/bin/sh
case "$1" in
start)
    mkdir /var/lock/subsys 2>/dev/null
    touch /var/lock/subsys/listener
    rm /dev/shm 2>/dev/null
    mkdir /dev/shm 2>/dev/null
*)
    echo error
    exit 1
    ;;

esac

Change the permissions of the file using the command:

sudo chmod 755 /etc/rc2.d/S01shm_load

Now execute the following commands:

sudo ln -s /usr/bin/awk /bin/awk
sudo mkdir /var/lock/subsys
sudo touch /var/lock/subsys/listener

Now, Reboot Your System

Step 3: Install Oracle

Install the oracle DBMS using the command:

sudo dpkg --install oracle-xe_11.2.0-2_amd64.deb

Configure Oracle using the command:

sudo /etc/init.d/oracle-xe configure

Setup environment variables by editting your .bashrc file:

pico ~/.bashrc

Add the following lines to the end of the file:

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export ORACLE_SID=XE
export NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
export ORACLE_BASE=/u01/app/oracle
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$ORACLE_HOME/bin:$PATH

Load the changes by executing your profile:

. ~/.bashrc

Start the Oracle 11gR2 XE:

sudo service oracle-xe start

Add user YOURUSERNAME to group dba using the command:

sudo usermod -a -G dba YOURUSERNAME

Step 4: Using the Oracle XE Command Shell

Start the Oracle XE 11gR2 server using the command:

sudo service oracle-xe start

Start command line shell as the system admin using the command:

sqlplus sys as sysdba

Enter the password that you gave while configuring Oracle earlier. You will now be placed in a SQL environment that only understands SQL commands.
Create a regular user account in Oracle using the SQL command:

create user USERNAME identified by PASSWORD;

Replace USERNAME and PASSWORD with the username and password of your choice. Please remember this username and password. If you had error executing the above with a message about resetlogs, then execute the following SQL command and try again:

alter database open resetlogs;

Grant privileges to the user account using the SQL command:

grant connect, resource to USERNAME;

Replace USERNAME and PASSWORD with the username and password of your choice. Please remember this username and password.
Exit the sys admin shell using the SQL command:

exit;

Start the commandline shell as a regular user using the command:

sqlplus

Now, you can run sql commands...


How can I get IP address showing from using Conky

You need to use Conky, there's no equivalent as far as I know.

Here's how to display IP address info:

Conky can execute commands with the object ${exec command}.

I don't know whether you want your internal or external IP shown on your configuration, but if you can find a way to display that information in the command line interface and then plug that command into Conky you should have what you want.

For external IP address, something like this should work:

${exec curl -s www.icanhazip.com}

For internal IP address, for multiple interfaces you'll want something like

${if_existing /proc/net/route wlan0}
${addr wlan0}
${else}${if_existing /proc/net/route eth0}
${addr eth0}
${else}
Network disconnected
${endif}${endif}


Installation Stucks At Boot Logo, Ubuntu Studio, New Razer Blade

Disable kernel modesetting. When in Grub, press E. Add a parameter to the kernel argument line.

To disable KMS add nomodeset as a kernel parameter. Along with nomodeset kernel parameter, for Intel graphics card you need to add i915.modeset=0 and for Nvidia graphics card you need to add nouveau.modeset=0. For Nvidia Optimus dual-graphics system, you need to add all the three kernel parameters (i.e. nomodeset i915.modeset=0 nouveau.modeset=0).


Try:

sudo chown david:david /home/david/.plugman -R

This command should give yourself the necessary rights to access the directory and its contents.