How do I use plugins in the vim-scripts package?

When you install vim-scripts, vim-addon-manager gets installed as a dependency. You can use vam to enable plugins.


How can set disk IO priority automatically?

Note: This solution only works with the cfq scheduler, as explained here. You should check which one is used by issuing

cat /sys/block/sda/queue/scheduler

and change it if necessary.

If I understood correctly, you want some ionice setting to be applied every time you start a command. You can do it this way:

echo 'ionice -c 3 /usr/bin/VirtualBox "$@"' > VirtualBox
chmod a+x VirtualBox
sudo mv VirtualBox /usr/local/bin/

First command creates a file VirtualBox with the single-quoted text as its content. This should have the full path to the program, because if one only specify VirtualBox it can interpret it as the file we just created and create a "loop".

Second command makes it executable, and third moves this new file in a folder which is in front of the "system" bin folder /usr/bin, so our new file gets executed instead of the original. The "$@" part contains all the arguments the command was invoked with, so they get forwarded to the real VirtualBox command.

According to answer ("yes") to this Super User question Do children processes inherit ionice priorities from their parents? How do you check the IO priority of a running process?, it should be enough to ionice the parent process, like this:

ionice -c 3 VirtualBox

From ionice man page, following I/O scheduling class values are available:

0 for none
1 for realtime
2 for best-effort
3 for idle (used in example above)

A number or class name can be used.

Also, -n level option is applicable for realtime and best-effort classes, with 0-7 as valid data (priority levels).


Problems with Ubuntu Gnome 14.04 and Maximus

Try the Maximus Two extension - this is based on the Pixel Saver extension, and removes the title bar to maximise screen space.

Here is a before/after screenshot:


I ended up just copying the entire wine prefix to the other PC. Obviously not an ideal solution, but it worked in my case. I just had to let wine recreate the links in dosdevices and then I was set.

I don't know what special stuff the installer does, maybe it's possible to just make a tarball with all the files, let them extract to Program Files and run a .reg file. Maybe I'll investigate this solution sometime.

Another possible solution (if you need javaws.exe) is OpenWebStart. It installs without a problem in Wine. However unfortunately I couldn't get the .jnlp file I needed to run working. I got a splash screen of the application, but it then sadly crashed with this error net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Unknown Main-Class. Could not determine the main class for this application. I didn't try to solve this issue.


You can reset password and try...

Reboot your computer
Hold Shift during boot to start GRUB menu
Highlight your image and press E to edit
Find the line starting with "linux" and append rw init=/bin/bash at the end of that line
Press Ctrl+X to boot.
Type in passwd username
Set your password.
Type in reboot. If that doesn't work, hit Ctrl+Alt+Del


Change keyboard back to English in command line from Cyrillic

I feel there must be a much more logical/sane solution compared to what I'm about to propose, such as running sudo loadkeys us from the graphical terminal whose layout is independent, or restarting the machine (as already suggested).

If none of those are an option, however, you could use the following pants-on-the-head technique:

Find the original line in shell history with the ↑ key. It should be sudo loadkeys ru. Alternatively, find any line that has u and s in it.
Remove all characters except for us. Press Enter. (Bash will complain that command not found.)
Now go back to your loadkeys ru line.
Press Alt+/. In the Russian layout / is mapped to .. And Alt+. is mapped yank-last-arg in bash, which is the command that inserts the last argument from the previous command. In this case, it will be us that we've assembled in the previous step.
This should leave you loadkeys us. All it takes now is to press Enter.

If it happens that there are no commands with both u and s in them, you could do steps 2 and 3 twice, and pick those characters from 2 different commands.


Permanently fix absolute location of the GRUB folder

The key to understand what was wrong was the need to instruct GRUB towards hd1. The BIOS boots  by default to hd0, and in this workstation there were remnants of an MBR that tried to load a GRUB once installed in that disk (hence the reference to /grub instead of /boot/grub).

The solution to this was to change the boot order of internal disks in the BIOS. With hd1 in first place the boot process concludes successfully without human intervention. In some BIOS it might no be possible to modify the boot order of internal disks; in such cases the disks must be re-wired to the board.


What should the total space be for 4 3TB Drives in RAID10 configuration?

Yes, it should be 6 TB.  The 4 TB limit is probably due to using the MSDOS partition table, which is limited to 4 TB.  You need to partition the array with GPT to get around that limit.


Backup problem with folder rename (use back in time)

Change the ownership of CUSTOMERS parent folder to root and remove write permissions for other users. This way no one can rename the folder by accident anymore.

sudo chown root:root /path/to/parent
sudo chmod 755 /path/to/parent


Reloading the sound driver has a very good chance of solving your problem:

sudo /sbin/alsa force-reload


By mount error, I suspect your CD/DVD reader may be failing.

Please try making a bootable USB drive.


How can I get dual pivot monitors working  with nvidia?

I got my NVIDIA 550 TI with dual monitors running by adding the latest NVIDIA driver PPA.

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

Reboot and then retry enabling the 2nd monitor again.


One approach may get you information about the devices recently transferring data to and from  your computer over your network:

arp -a -i interfacename

This should work on any type of network, not just ad-hoc ones, but since it displays a cache value it only displays devices used fairly recently. It will display the IP addresses and their unique MAC addresses.

The TCP protocol is often used to transfer information; print jobs, for example. To see current and some very recent TCP connections you can use the ss -t command.


SMTP error in thunderbird to particalar email


11.10 Server does not reconnect to network after router reboot (DHCP or Static IP)

you could try adding the following before auto eth0 line in the interfaces file;

allow-hotplug eth0

this should start the interface eth0 when th kernel detects a hotplug event from teh interface.

ifdown eth0 #this drops the eth0 interface NB: if SSH'd etc.. it will kill your connection
ifup eth0 # brings the connection back..

i'd set a continous ping from another machine to the server... bounce the router and see what happens.  you many need to restart the server for the "allow...." line to take affect.  I think the ifup\down does it too.. its been a while.


Use Citrix Receiver (ICA client) on Ubuntu 18.04

Running the below commands after installing the Citrix Receiver Full worked for me

sudo ln -s /usr/share/ca-certificates/mozilla/* /opt/Citrix/ICAClient/keystore/cacerts/

sudo c_rehash /opt/Citrix/ICAClient/keystore/cacerts/


Unable to assign QString to QQuickItem* with Qt.resolvedUrl

The correct way of writing this is:

Tabs {
  Tab {
    page: FinancialDetails {}
    // ...
  }
  // ...
}

page wants an Item, but Qt.resolvedUrl returns a string. Which won't be interpreted as a URL to an Item and it therefore won't be loaded.


How to share a tethered iPhone internet connection with virtualbox guest os (Win XP)

A simple way is to use a bridge network.

Simply select Network tab under the guest OS Settings.
Select Adapter 1 tab and check the Enable Network Adapter box
Select Bridge Adapter under Attached to:
Finally under Name select the preferred method of connection. For example my wired tethered internet connection is labelled eth1


Error: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip

you need to install sip first (not just configure it)

begueradj@begueradj:~/Bureau/sip-4.16.7# python configure.py
begueradj@begueradj:~/Bureau/sip-4.16.7# make
begueradj@begueradj:~/Bureau/sip-4.16.7# make install

and next you can install PyQt :

begueradj@begueradj:~/Bureau/PyQt-gpl-5.4.1# python configure-ng.py

or

begueradj@begueradj:~/Bureau/PyQt-gpl-5.4.1# python configure-ng.py --sip /usr/bin/sip


try this:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^cms\login$ cms.php?Cms=login [L]
</IfModule>

You should notice that you type cms.php?Cms=login with 'C' uppercase, it is different with 'c' in lowercase.


Panel not found [installed netbook edition by mistake]

You have installed the Netbook edition by mistake. You can install the Desktop edition on top of this (there's no need to redownload and completely reinstall Ubuntu).

Open a terminal (by typing terminal in the text box at the top of the screenshot I gave you) and in the Terminal enter sudo apt-get install ubuntu-desktop. (This will be a reasonably large download.)

Once this is finished, click on the Power icon in the top left and click on Log Out. Now click on your user name, then at the bottom of the screen select "Desktop" as opposed to "Netbook". Finally enter your password and press the Enter button.

You should now have a standard Ubuntu Desktop install.

If you want to remove the Netbook edition: again launch the terminal (from the standard Ubuntu interface you want Applications->Accessories->Terminal) and then enter sudo apt-get remove ubuntu-netbook.


The environment is not preserved when using sudo, so the setting of the http_proxy variable alone is ineffective.
You need to export the http_proxy variable and then run sudo with the option -E

export http_proxy=...
sudo -E gem list -r


It was some glitch with keyboard layout. Rebooting didn't help, but when I added another English layout(UK) both UK and US layout started to work normally. I then removed UK and US still works fine.


Firefox uses remote name lookup before /etc/hosts

Firefox has started enabling DNS-over-HTTPS for users:

DNS-over-HTTPS (DoH) [...] sends the domain name you typed to a
DoH-compatible DNS server using an encrypted HTTPS connection instead
of a plain text one. This prevents third-parties from seeing what
websites you are trying to access.

This is a good thing, IMHO, but can cause things relying on local DNS configuration to break, such as intranet DNS and site blocking using /etc/hosts and so on. This is noted in the Firefox page:

Risks

Some individuals and organizations rely on DNS to block malware, enable parental controls, or filter your browser’s access to websites.
When enabled, DoH bypasses your local DNS resolver and defeats these
special policies. When enabling DoH by default for users, Firefox
allows users (via settings) and organizations (via enterprise policies
and a canary domain lookup) to disable DoH when it interferes with a
preferred policy.

You can either disable it entirely:

Manually Enabling and disabling DNS-over-HTTPS
You can enable or disable DoH in your Firefox connection settings:

Click the menu button Fx57Menu and select Preferences.

In the General panel, scroll down to Network Settings and click the Settings… button.

In the dialog box that opens, scroll down to Enable DNS over HTTPS.
On: Select the Enable DNS over HTTPS checkbox. Select a provider or set up a custom provider.
Off: Deselect the Enable DNS over HTTPS checkbox.

Click OK to save your changes and close the window.

Or exclude specific domains (and their subdomains):

Excluding specific domains
You can configure exceptions so that Firefox uses your OS resolver
instead of DOH:

Type about:config in the address bar and press Return.

A warning page may appear. Click Accept the Risk and Continue to continue to the about:config page.

Search for network.trr.excluded-domains.

Click the Edit button next to the preference.

Add domains, separated by commas, to the list and click on the checkmark to save the change.
Note: Do not remove any domains from the list.

About subdomains: Firefox will check all the domains you've listed in network.trr.excluded-domains and their subdomains. For instance,
if you enter example.com, Firefox will also exclude
www.example.com.

I would recommend using this option instead of disabling DoH altogether.


You can run sudo visudo to edit the /etc/sudoers file. There, or can specify which users will be allowed to do which sudo commands. It is recommended to view the man page before (http://manpages.ubuntu.com/manpages/trusty/en/man5/sudoers.5.html)

The deny special things write an ! in front of it.

YourFriend = ALL=ALL, !*raspi.conf*


'No Battery Present' on a Toshiba Satellite L655

There is a suggested fix as described by this blogger here.

I've reproduced the article here to complete the answer to the question.

IMPORTANT NOTE: This suggested fix is very involved and involves you recompiling your own kernel.  So be prepared for a few hours work.  I would strongly recommend you take a backup of your system first - for example use clonezilla.

I would also recommend you read the comments from the blog first to see if any of the issues reported could refer to you.  Since you are using 10.10 - there is one comment about building the 2.6.35 kernel which may apply to you.

"The cause of issue is because Toshiba included two sets of boot data that tell the OS what hardware exists in the machine. Windows reads the correct one whereas Linux doesn’t. We will need to build our own kernel to make this happen. We will need to extract the DSDT (Differentiated System Description Table) from the machine, the ASL modified, and a new AML DSDT can be compiled. The sections below show the way to tell Linux to use this modified DSDT instead of the version that came with the BIOS.

Get the original DSDL of machine:

sudo su
cat /sys/firmware/acpi/tables/DSDT > DSDT.dat

Disassemble it

iasl -d DSDT.dat

Make the changes:

vi DSDT.dsl

search for line : OperationRegion (EMEM, SystemMemory, 0xFF808001, 0xFF)
and replace it with : OperationRegion (EMEM, EmbeddedControl, 0×00, 0xFF)
save the file.

Build it:

iasl -tc DSDT.dsl

This will create a file DSDT.hex (This file is used for kernel recompilation)

I received the below two errors during this compilation

N:B :- You can actually ignore these errors, this works even having these error unfixed. But if interested you can work out to get those fixed.  Else directly goto ‘Kernel Recompilation’ section.

DSDT.dsl  2656:                     0x00000000,         // Length
Error    4122 -                              ^ Invalid combination of Length and Min/Max fixed flags

DSDT.dsl  2663:                     0x00000000,         // Length
Error    4122 -                              ^ Invalid combination of Length and Min/Max fixed flags

Fix : (If you didnt receive any error please skip this part )

open DSDT.dsl file and go to the line where iasl indicated the error. In my case I go to lines 2656 and 2663.

iasl is complaining about the “Length” line “0×00000000″. This is wrong. Look at the “Range Minimum” and “Range Maximum”. Open up your Kcalc or whatever you Gnome people use and change it to Numeral System Mode. Make sure HEX is selected and now we subtract the minimun range from the maximun range and then we add 1. Since the minimum range is 0 (And you can’t subtract 0) I will input  FEAFFFFF and then add 1 which gives me FEB00000  (Don’t get confused, I’m simply omitting “0x”, the calculator doesn’t need this). I change 0×00000000 to 0xFEB00000 by Length. So now it looks like this:

0×00000000,         // Granularity
0×00000000,         // Range Minimum
0xFEAFFFFF,         // Range Maximum
0×00000000,         // Translation Offset
0xFEB00000,         // Length

Line 2663 changed to

0×00000000,    // Granularity
0xFED40000,         // Range Minimum
0xFED44FFF,         // Range Maximum
0×00000000,         // Translation Offset
0×00005000,         // Length

compile again.

Kernel Recompilation :

Install necessary packages:

apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5 libncurses5-dev
apt-get build-dep --no-install-recommends linux-image-$(uname -r)
mkdir /root/source

cd /root/source

apt-get source linux-image-$(uname -r)

NB: My uname -r was 2.6.38.2-generic

cd linux-2.6.38

(replace this with your kernel version)

copy kernel config file from your current kernel:

cp -vi /boot/config-`uname -r` .config

now copy the DSDT.hex file to the include folder inside kernel source

cp DSDT.hex /root/source/linux-2.6.38/include

open .config file we have just copied

vi /root/source/linux-2.6.38/.config

Make the below changes

CONFIG_STANDALONE=n
CONFIG_ACPI_CUSTOM_DSDT=y
CONFIG_ACPI_CUSTOM_DSDT_FILE="DSDT.hex"

save and quit.

My pwd : /root/source/linux-2.6.38

start compiling the Kernel:

make menuconfig

load the .config file, save the menu file and exit.

We are about to start the compile process . A little trick you can do is to set the CONCURRENCY_LEVEL variable to speed up the compile of the kernel. The number should be the number of processors you have plus one. So in my case I have a dual core processor so I will add one which would be three.

export CONCURRENCY_LEVEL=3

Start Building :

Here I named my custom kernel as tuxsage, replace it with the one you wish.

make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-tuxsage kernel-image kernel-headers

(This will take some time)

Once this is completed you will find the built kernel one directory up from your present directory

cd /root/source
dpkg -i linux-image-2.6.38.(This part will be whatever name you gave it).deb
dpkg -i linux-headers-2.6.38.(This part will be whatever name you gave it).deb

Make initramfs:

update-initramfs -c -k 2.6.38+tuxsage (replace tuxsage with correct name)

Update Grub :

update-grub

Reboot to the New Kernel"


The server installer plans states it is end-of-life:

With 20.04 LTS, we will be completing the transition to the live server installer and discontinuing the classic server installer based on debian-installer (d-i), allowing us to focus our engineering efforts on a single codebase. The next-generation subiquity server installer brings the comfortable live session and speedy install of Ubuntu Desktop to server users.

So I would not use it regardless. Link is also a good read about the progress of this.

Only the server.

I myself would use this new method and install the server and then add the desktop as a package to install or as a post installation action. Even though the scope of this will likely be deployment of 100s of machines and not just a single desktop the installation of the desktop is just a single apt install command you could add somewhere in there.

Related links:

Discourse
Quick start
Config reference


How can I get my Nvidia Overscan setting to work on start up. Ubuntu 12.10

I just pasted the result someone else had into TERMINAL and it worked adequately as follows:

nvidia-settings -a CurrentMetaMode="DFP-0: 1680x1050+0+0, DFP-1: 1920x1080+1680+0 { ViewPortIn=1920x1080, ViewPortOut=1820x1022+50+29 }"

and hit enter.  The result as explained in the below referenced article was 100 pixels less overscan all around.

Now I need to figure how and where to put this into the

(untested section below:
It worked in terminal now i want it to become permanent as this is much too much to remember each login)

/etc/x11/xorg.conf

to make the results persistent.

I found that clicking on the file folder under the "DASH" icon, and clicking on the filesystem menu and then clicking on the /etc and then clicking on the /x11 and clicking on the item that says xorg.conf it brings up in gedit a file. But this does not work because of permissions So  one needs to in terminal type or copy

sudo gedit /etc/X11/xorg.conf

then add to the bottom of the "screen" section Just before the end section. I prefaced it with 8 spaces to line it up with the rest of the section.

nvidia-settings -a CurrentMetaMode="DFP-0: 1680x1050+0+0, DFP-1: 1920x1080+1680+0 { ViewPortIn=1920x1080, ViewPortOut=1820x1022+50+29 }"

Then save over the top of the original. (you did save The ORIGINAL AS as xorg.conf.old first didn't you? if it existed.)

REFERENCE  ( url below ) explains how to derive your own results for whatever number of pixles you need.
http://b.wardje.eu/2012/08/nvidia-linux-overscan.html

I am sure that someone with more experience can do a better job with this.  But as long as this is in a vacuum it stands.

Thanks to all who put in the pieces.

--GND


I've had some problems with the Software Center as well.

Try to install lib32stdc++6 :

sudo apt-get install lib32stdc++6

Then cd to the directory where you downloaded the Skype.deb file. If you downloaded it to your Downloads folder, you would type:

cd ~/Downloads

Then install the .deb package.

sudo dpkg -i skype*.deb

This fixed it for me.


To add support for sudoreplay, we need to edit the /etc/sudoers file. For this, execute the following command:

$ sudo visudo

This would open the sudoers file for us. Then insert the following lines at the end of the file and save it:

Defaults log_output
Defaults!/usr/bin/sudoreplay !log_output
Defaults!/sbin/reboot !log_output

It will automatically create the directory /var/log/sudo-io when the
visudo command successfully exits AND you run sudo su -.

If it fails then that probably means that your version of sudoers package
is out of date. Upgrade the package and try again.

To run a sudoreplay session - who do you need to be? root ofcourse, so

$ sudo sudoreplay -l
Nov 28 11:48:35 2014 : chrthomp : TTY=/dev/pts/1 ; CWD=/home/chrthomp/DJS/2014/Nov ; USER=root ; TSID=000001 ; COMMAND=/bin/su -

$ sudo sudoreplay 000001

will replay the session at normal speed.

If you ever have problems with sudoreplay check that the /var/log/sudo-io folder exists. If it doesn't, you NEED to go and create the directory as root.

$ sudo mkdir -m 750 /var/log/sudo-io


Are there plans for an Ubuntu One mobile client for Symbian Belle?

There are no plans to release Ubuntu One for the Symbian platform.


How to create animated gif screen captures like the Windows/MAC licecap app?

Byzanz desktop recorder is available in the universe repository in Ubuntu 14.04 and later. Byzanz also allows recording of audio, when the output format supports it.
sudo apt install byzanz

Tto record from screen run the byzanz-record  command in the terminal with the following syntax:
byzanz-record -d DURATION --delay=DELAY -x X-COORDINATE -y Y-COORDINATE -w WIDTH -h HEIGHT YOUR-FILENAME

Example:
byzanz-record -d 20 --delay=6 -x 0 -y 0 -w 1200 -h 800 desktop-animation.gif

will record 20 seconds from a rectangular screen area starting at top left 0,0 with width 1200 and height 800 into a file named animation.gif with an initial delay of 6 seconds.


If you got this problem every time when you open a terminal, please check the ~/.bashrc and the /etc/profile files. Search for string "mask" in these files.

As RoVo suggested here, you can run grep "mask" ~/.bashrc /etc/profile first to see where the "mask" command was written.

If you can find the string "mask", you can just remove it or put a "#" in the begining of the line to comment it out. (If it's not being used anymore)

Note: you will need root privilege to edit the /etc/profile file, which can be achieved with gksudo gedit /etc/profile


Where are all the nodes in openstack needed for?

You only need 5 physical machines to use autopilot.  The services are distributed during the installation but in my deployment, it's like this.

MAAS
Landscape
Node01 - Nuetron
Node02 - Compute
Node03 - Compute

I believe using autopilot there are 12 virtual machines configured and placed on the physical servers.  I don't know if it's standardize with autopilot.  To me, it appears as though I have 2 usable compute nodes to launch instances on.


How to install VM VirtualBox on 14.04 without errors?

sudo apt-get install virtualbox should do it. I'm guessing you tried to install from a downloaded package or built from source code.

If you really want to install from source, you gotta have some dependencies installed (source):

sudo apt-get install linux-headers-generic build-essential dkms
sudo apt-get remove --purge virtualbox-dkms
sudo apt-get install virtualbox-dkms


How to make hibernate/sleep work on laptops where default setup isn't working?

You can try to put the name of your proprietary module (nvidia or fglrx (for ATI) are most likely) in the quotes in MODULE="" in the /etc/default/acpi-support file and reboot.

sudo nano /etc/default/acpi-support

This'll make that module unload before suspend and reload after suspend.  It sometimes works, but it's also possible that you have just plain buggy drivers somewhere and need to file a kernel bug.

EDIT:
It's also very possible that you've just plain found a bug. If you think that's the case, please file it:  ubuntu-bug linux


Alt + Tab only toggles between two recent windows on 16.04 in MATE

The default function per Martin Wimpress:

Alt+Tab: Cycle Applications in CURRENT workspace.
Control+Alt+Tab: Cycle Applications in ALL workspaces.

To check them run:

gsettings get org.mate.Marco.global-keybindings switch-windows
gsettings get org.mate.Marco.global-keybindings switch-windows-all
gsettings get org.mate.Marco.global-keybindings switch-windows-all-backward

To Change them run a variation of the following code with your preferred settings:

gsettings set org.mate.Marco.global-keybindings switch-windows 'disabled'
gsettings set org.mate.Marco.global-keybindings switch-windows-all '<Alt>Tab'
gsettings set org.mate.Marco.global-keybindings switch-windows-all-backward '<Shift><Alt>Tab'


In GNOME audio settings are controlled by the GNOME Control Center

gnome-control-center sound

You can set the inputs & outputs you desire in the corresponding tabs.

Another handy audio deivce manager that has more vebose features is Pulse Audio Volume Control which can be directly installed from the Ubuntu store or by:

sudo apt-get update && sudo apt-get install pavucontrol paman


How to crop and join audio clips in Ubuntu?

Losslesscut from the Ubuntu Software Centre as a snap.

It is a utility where portions of audio or video can be extracted and joined together in a graphical interface.
It is also available as an appimage/binary executable from GitHub if you prefer.


WARNING: amdgpu dkms failed for running kernel (on both 16.04 & 18.04)

As someone pointed out in the forums (https://community.amd.com/thread/228245) the script is broken.

Provided that you have the right kernel and header version, you need to install the missing packages manually, run:

apt install amdgpu-dkms libdrm-amdgpu-amdgpu1 libdrm-amdgpu1 libdrm2-amdgpu


To check a common cause of this error...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type:

ls -al /home/your_username/.*author* # use the correct your_username

If you see either of these files owned by root:root...

-rw------- 1 root root 352K Apr 24 09:28 .ICEauthority

-rw------- 1 root root   58 Jun 23  2017 .Xauthority

Then...

sudo mount -o remount,rw / # to mount the disk as read/write

cd /home/your_username # again, use the correct your_username

sudo chown your_username:your_username .ICEauthority # use correct your_username

sudo chown your_username:your_username .Xauthority # use correct your_username

sudo chmod 600 .*author* # change the file(s) permissions

reboot

And retest your normal login.


You need to follow instructions from Wubi Guide, or, specifically, this howto


this is due to Dynamic host so i reserved single ipaddress


it worked after I used sudo -i under root user but I haven't figured out why it does not work under my default user as it did before.


Can I use kernel version 5.2+ on Ubuntu 16.04?

Yes. You can install any kernel on any Ubuntu version. In theory ;) A new kernel gets added to the existing kernels and becomes an option to select in the Grub menu during boot. That does not depend on the version of the operating system installed. What can happen though is that you lose Ubuntu-specific alterations if you pick the mainline kernel.

  I need Ubuntu 16.04 to run ROS Kinetic

No reason to not use 18.04: you are supposed to switch to ROS Melodic or running it in a docker container.

And if you do have software to use that depends on a specific version of an operating system, use VirtualBox for that and do not let your current operating system lag behind. April 2021 is getting closer and closer and then what?


I found the answer of how to achieve that.

First it's necessary install EasyBCD 2.3 on windows 10.
Open EasyBCD and add linux entry to booloader and save.
Search for an option named BCD deploymeny and write windows vista+ mbr
Install software iReboot, you can get it inside EasyBCD application.
Reboot your pc, yoo will see the two entries on bootloader, select windows 10
Once windows loads, iReboot starts automatically, if you right click on the icon it will show some options, first enable reboot on selection and then if you click on the new entry (linux or whatever you named) the pc will restart and boot to linux.

An thats all.


How to use the display (e.g. a browser) when sudo-ed into root or another user

It would seem to me, that for security purposes, user X will not be able to directly display windows on the screen of user Y. You could work around this by sshing to your own computer with x forwarding, as other user and run that program.

Install sshd on your computer:

sudo apt install openssh-server

X11Forwarding yes must specified in /etc/ssh/sshd_config

Then from a terminal:

ssh -X green@localhost

Then run firefox. It will display in your current session but be run as what ever user you ssh in as.


Desktop Launcher Execute Bash Script In Terminal from URL

Also simple and dangerous:

Make your desktop file look like this:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Sample Application Name
Comment=A sample application
Exec=sh -c 'curl -s http://www.example.com/path/to/script.sh | bash'
Icon=application.png
Terminal=true

This will spawn a sub-shell, run 'curl' to read out the file, and then pipe it into bash.


How to specify home directory with 'adduser' when user creation fails on a machine with NFS home directory and Kerberos authentication

You probably forgot to change the ownership of the home directory to the user after you created it. You would do that using the chown command.

Consider using pam_mkhomedir for having this done automatically.

Also, consider configuring your system such that it will import user IDs from your server. If there's a kerberos system, I would guess there is also some kind of LDAP server that offers account information via network. Then you would not have to configure each account individually.


I managed to install it rather easily by using the tortoisehg ppa:

sudo add-apt-repository -y ppa:tortoisehg-ppa/releases
sudo apt-get update
sudo apt-get install mercurial tortoisehg

Note: @piwi's method works too.


Right-click on the the white triangle left to your clock/time and left-click on configure system trayand choose always shown next to battery and brightness.


Copying commands from ubuntu 10.04 terminal

Just select the text you want to copy and go to the place on the screen where you'd like to paste the text. Press middle click button of mouse and its done! Its easier than the other methods...


Cannot connect to bluetooth speaker logitech Boombox

I had the same problem running Ubuntu 13.04, with a Logithech Boombox UE. In my case the solution was to edit the /etc/bluetooth/audio.conf file.

Under section [General] add:

Disable=Socket
Enable=Source

This should get the connection working. However, the sound is faltering and I had to add further modifications to the file.

In the same section add:

SCORouting=PCM
AutoConnect=true

Under section [Headset] add:

HFP=false
SBCSources=1
MPEG12Sources=0

This solved the problem for me.

I hope that helps.


How to set up a new user with admin rights on a USB Ubuntu 12.04 installation?

Did you try setting yourself up as a new user with password in users and groups?
This worked for me.

Having a password with a persistent install is not much use though, as it is easy to mount the casper-rw persistence file and get at all the data.

Better to do a Full install to USB if you want security.


How can I add a PPA on Ubuntu using the python apt API?

You'll have to use Python 3, which shouldn't be a problem since current Ubuntu releases (aside from soon-to-be-EOL 12.04) all have Python 3 installed by default and are moving to using only Python3 by default. Use the aptsources.sourceslist.SourcesList object:

#! /usr/bin/python3

import aptsources.sourceslist as sl

sources = sl.SourcesList()
sources.add('deb', 'mirror://mirrors.ubuntu.com/mirrors.txt', 'xenial', ['main'])
sources.save()


Touchegg on Ubuntu Gnome 15.10 Dell XPS13 fails to recognise gestures

I've hit the same issue but on Arch Linux and in my case the answer was that touchegg does not support libinput. Check if you have libinput-debug-events command - if you have and it shows events when you touch the screen then you have libinput installed and it is not compatible with touchegg.


Can't login through GUI on Ubuntu 14.04.2 after package updates

Press Ctrl+Alt+F3 and login into the shell.

Now run

 ls -lah.

If in the output the line

-rw-------  1 root root   53 Nov 29 10:19 .Xauthority
then you need to do chown username:username .Xauthority and try logging in.

Else, do

 ls -ld /tmp.

Check for the first 10 letters in the left: they should read exactly so: drwxrwxrwt.

drwxrwxrwt 15 root root 4096 Nov 30 04:17 /tmp
Else, you need to do

 sudo chmod a+wt /tmp

and check again.If not both, I'd recommend you either

dpkg-reconfigure lightdm

or uninstall, reinstall it.
Now press

 Alt+->

until you reach the login screen again, and restart.


Can't open shared folders on a virtual box

Open VM main window.
Click File and Preferences.
Get in to the extensions option and use "add package" button to add your extension file. Click OK.
From the left pane, Click on the Guest OS you want, you will see shared folder settings on the right pane. Click on it and add new shared folder with the add button. Start your Guest OS.


Subversion 1.8.8 doesn't work with Java svn libraries

Built an updated svnClientAdapter.jar and that did the trick. It's super-easy to do:

svn co http://subclipse.tigris.org/svn/subclipse/trunk/svnClientAdapter/ svnClientAdapter

to check out the current source, and then just ant to build. The source includes a bunch of other stuff but svnClientAdapter.jar is dropped ready-to-use into a build directory.

Probably a good idea to check the project site in case my URL above bit-rots.


Can not Install php5.6-gd on Ubuntu 16.04.3 LTS


I don't understand why you are using yum instead of the native apt- tools, however on my 16.04 system:

$ apt-file search libxcb-keysyms.so.1
libxcb-keysyms1: /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so.1
libxcb-keysyms1: /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so.1.0.0


How automatically ssh to cluster servers and run command there to get some information?

Put the command you want to execute on the ssh line:

for host in machine1 machine2 machine3
 do
        ssh "$host" nvidia-smi
 done

You might need to specify the full path of nvidia-smi.

Also, rather than hard-coding your list of servers into this script (and other, similar scripts), keep the list in a file:

cat >Servers.txt <<EOF
machine1
machine2
machine3
EOF

And change the for line to:

for host in $(cat Servers.txt)

Then, when the "list of servers" changes, you only have to change ONE place, not every script.


Firefox address grey / blacked out - Google Chromium black square over links

Yes, this seems to be a bug.

there's a Launchpad Report for this: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1316250. So hopefully there will be progress in solving this bug.
A quick workaround that also worked for me is the following: In Firefox 29: Type about:config [Enter] - Promise to be careful - In the Search Bar type gfx.xrender.enabled - Right-click (F12) and Toggle to make it false -Exit Firefox - Open Firefox again.
Voila.

Source: https://support.mozilla.org/en-US/questions/998416


14.04.1 server install without internet access

The problem is most likely caused by using unetbootin or the Universal-USB-Installer. EFI booting has complicated the installation procedure and these utilities are known to sometimes have problems creating an-EFI installer correctly.

There's really no longer any reason not to simply use dd to create the USB installer, especially since you already have a working Ubuntu workstation.

First, use gparted or Disks to reformat the USB stick that you have been using, otherwise it is possible that old, remaining data will cause problems. (I once had a package checksum mismatch error from this problem during installation.)

Then:

sudo dd if=/path/to/iso of=/path/to/usb

Be very careful to check what you typed before hitting Enter. Any data in the of= path will be destroyed.


Unity account login without desktop environment

Running unity --reset should fix most Unity issues.

How do I reset my Unity configuration?


You have to turn on your computer with windows and you should turn on your wifi. After that, restart your computer with ubuntu. Then it should work.


You can Use Ctrl + C or can use Ctrl + Z key to terminate a running process in command line


Package linux-image-4.4.0-65-generic needs to be reinstalled

I've found a solution:

I installed a new kernel.

Following this Ubuntu handbook guide I deleted old kernels versions

After that I discovered that the linux-image-4.4.0-65-generic was in a very bad inconsistent state.

So I removed it using this command: sudo dpkg --remove --force-remove-reinstreq <image-to-remove>.

Now it works :)


Do you mean that doing this

doesn't work? You can open a terminal and type sudo shutdown -h now (as mentioned above). That might work, not that this is the most convenient way to go...

Assuming that the ubuntu menu shut down really isn't working and that the shell command does, you can do the following to have a more natural seeming shut down situation.

 First open a terminal and change directory to /usr/local/bin:

cd /usr/local/bin

Next open your favorite text editor as root (lets say gedit)  and create a file called shutdown.sh:

    sudo gedit shutdown.sh

type the following in shutdown.sh:

    #! /bin/bash
    shutdown -h now

Save and quit gedit

 Next make the script executable by doing
    sudo chmod 755 shutdown.sh

 Now in the terminal type
    sudo visudo
This will open a text file in the terminal. Near the bottom of the document you will see the following

     # Allow members of group sudo to execute any command
     %sudo   ALL=(ALL:ALL) ALL

Below this line add the line :

    yourUserName ALL=(ALL) NOPASSWD: /usr/local/bin/shutdown.sh

 where "yourUserName" should be replaced by your actual user name. This step tells sudo to execute shutdown.sh without requiring your password.

 Since you created shutdown.sh as root, root should be the owner of the file  It is very important that this is the case , since we told sudo that running shutdown.sh does not require a password, anyone who could edit shutdown.sh could put any command they wanted in there, effectively gaining root privileges to your machine without needing your password. You can double check these settings by

    ls -l shutdown.sh

You should see something like:

    -rwxr-xr-x 1 root root 28 Dec  1 17:57 shutdown.sh

the first "root is the owner, the second is the group name. If for some reason yours doesn't match do :

    sudo chown root:root shutdown.sh

 Now we need to create a .desktop file to allow us to view shut down in the dashboard and launcher like all other apps. First we should cd to somewhere where you have write privileges lets say your home directory

 cd ~

Put the following in a file called shutdown.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=Shut Down
Comment=Turn the computer off
Icon=/usr/share/icons/Humanity-Dark/actions/16/system-shutdown-panel-restart.svg
Exec=sudo /usr/local/bin/shutdown.sh
Terminal=false

You can of course change the name and comment to anything you want. You can also pick whatever icon you want, I found this one in the /usr/share/icons directory and it seems ok. I'm pretty sure that your icon needs to be in .svg format though.

Now change permissions on the file by

 sudo chmod 755 shutdown.desktop

 If you put this file on your Desktop it will give you a little button to shut the computer down. If you put it in ~/.local/share/applications, unity will integrate it with the other applications in your launcher and dashboard. If you do both, you'll have both.


How to create a custom application launcher that copies a text to my clipboard?

Below an example of an easily customizable setup. It exists of a script, and a .desktop file (launcher) to run the script with two options. You can:

click on the launcher to copy a pre- defined string or line to the clipboard, or:
right-click on it to set a new string:

How to set up

To be able to copy text to the clipboard, we need to install xclip:

sudo apt-get install xclip

Then we need two things:

The script:

#!/usr/bin/env python3
import subprocess
import os
import sys

wordfile = os.environ["HOME"]+"/.word_file"

def get_word():
    try:
        copy = "xclip -in -selection c "+"'"+wordfile+"'"
        subprocess.Popen(["/bin/bash", "-c", copy])
    except FileNotFoundError:
        pass

def set_word():
    try:
        word = "zenity --entry --title='Change the word' --text='Set a new string or line'"
        new_word = subprocess.check_output(["/bin/bash", "-c", word]).decode("utf-8").strip()
        open(wordfile, "wt").write(new_word)
    except subprocess.CalledProcessError:
        pass

arg = sys.argv[1]
if arg == "-set":
   set_word()
elif arg == "-get":
    get_word()

Copy it into an empty file, save it as copy_text.py and make it executable(!!)
A .desktop file, to run the script with two options

[Desktop Entry]
Name=Paste a string
Exec=/path/to/copy_text.py -get
Type=Application
Icon=/path/to/your/icon.png

Actions=Set a new string;

[Desktop Action Set a new string]
Name=Set a new string
Exec=/path/to/copy_text.py -set
OnlyShowIn=Unity;

Copy it into an empty file, save it as paste_text.desktop in ~/.local/share/applications, replace in both the lines, starting with Exec=:

/path/to/copy_text.py

by the actual path to the script, and replace in the line, starting with Icon=

/path/to/your/icon.png

by the actual path to a valid icon (e.g. a .png icon of 64x64 px)

Now drag the .desktop file to the Unity launcher and you'll have your easily customizable setup.

Explanation

Using xclip in a .desktop file

xclip is a utility that can be used to manage the clipboard from the command line.
To copy a string to the clipboard, you can use the command:

echo <string> | xclip -sel clip

To copy the content of a file to the clipboard:

xclip -in -selection c <file>

If it would be a fixed string that you need, you could indeed, as mentioned by Serg, do with a .desktop file with a one- liner:

[Desktop Entry]
Name=Paste a string
Exec=/bin/bash -c "echo Hello World | xclip -sel clip"
Type=Application
Icon=/path/to/icon.png

or, if you would only have a limited number of (fixed) strings to use:

[Desktop Entry]
Name=Paste a string
Exec=/bin/bash -c "echo Monkey | xclip -sel clip"
Type=Application
Icon=/opt/lswitcher/icon/lsw_64.png

Actions=Monkey;eats;banana;

[Desktop Action Monkey]
Name=Copy Monkey
Exec=/bin/bash -c "echo Monkey | xclip -sel clip"
OnlyShowIn=Unity;

[Desktop Action eats]
Name=Copy eats
Exec=/bin/bash -c "echo eats | xclip -sel clip"
OnlyShowIn=Unity;

[Desktop Action banana]
Name=Copy banana
Exec=/bin/bash -c "echo banana | xclip -sel clip"
OnlyShowIn=Unity;

then create the file, as explained in the answer, and drag it over the Unity launcher:

If the string to copy would be an unpredictable one, it would however mean that you would have to edit the .desktop file manually every time you want to change the string, which is not very user- friendly.

What the script is for

Therfore, the script creates an external file, ~/.word_file, with the content of the string you'd like to be copied to the clipboard. The script has two functions:

def get_word():
    try:
        copy = "xclip -in -selection c "+"'"+wordfile+"'"
        subprocess.Popen(["/bin/bash", "-c", copy])
    except FileNotFoundError:
        pass

to (try to) read the text to be copied to the clipboard from the file, pass if the file doesn't exist.

and:

def set_word():
    try:
        word = "zenity --entry --title='Change the word' --text='Set a new string or line'"
        new_word = subprocess.check_output(["/bin/bash", "-c", word]).decode("utf-8").strip()
        open(wordfile, "wt").write(new_word)
    except subprocess.CalledProcessError:
        pass

to open a zenity window in which you can enter the new string or line to write to the file:

The .desktop file

finally, calls the two functions of the script with two commands:

Exec=/path/to/copy_text.py -get

to call the script with the option -get, as the "main" command in the .desktop file, to be executed with a simple click on the Unity launcher's icon, and:

Exec=/path/to/copy_text.py -set

to call the script with the option -set, as a right-click (quicklist)  option.


need help installing NVIDIA 6600gt drivers

I quoted this sentence from NVIDIA linux drivers download page.

"Note that many Linux distributions provide their own packages of the NVIDIA Linux Graphics Driver in the distribution's native package management format. This may interact better with the rest of your distribution's framework, and you may want to use this rather than NVIDIA's official package."

How ever these are the steps..

Open a terminal window from Applications ->Accessories menu,and run this command:

sudo apt-get install nvidia-current

then restart you computer,run the command to create the configuration file:

sudo nvidia-xconfig

Log out and back in ,and you can now change nvidia settings by System – > Administration -> Nvidia X server Settings

Some times after doing these steps also some nvidia cards do not work properly. Some time you may not able to boot in to GUI too. At this time.... use the recovery mode and delete x /etc/X11/xorg.conf file to get thu GUI back


Tried to setup Windows/Ubuntu Dual Boot - Can't get back to windows 10 now

Try to access grub. and see if you have the windows bootable option. I would suggest to download grub-customizer
$ sudo add-apt-repository ppa:danielrichter2007/grub-customizer
$ sudo apt-get update
$ sudo apt-get install grub-customizer
$ grub-customizer

and once open check if you have Windows Boot Manager, if so change the bootable order and try again. Also if you go to General Settings go and change the option that says: Boot default entry after (and set 10 seconds)


How to create Live USB from a running Ubuntu installation

im sorry, but i am sure that is NOT possible, except if you are currently trying ubuntu.


How to uninstall foxit reader from Ubuntu 20.04 using terminal?

This is a proprietary application that uses its own custom installer. The application therefore is installed independently from the APT package management system, so the latter does not know about it.
Where the application is installed, entirely depends on the choices of the Foxit developers. Typically, it might be installed under the /opt directory, which is conventionally used for custom installed applications outside of the management of your distribution.
Perhaps the software provides an uninstall script or application. Otherwise, you only may be able to manually remove the installed files if you know where they are. Note also that the application probably also installed a .desktop launcher. That may be placed in /usr/share/applications. Otherwise, you may locate it with find / -name '*.desktop' -exec grep -H "Search String" {} \; 2>/dev/null, where you could replace "Search String" by the name displayed in the application overview.


Enable NTLM support without SASL rebuild

Did a quick dive, and at first glace doesn't it look like cyrus is compiled with support for NTLM. Couldn't see the ntlm library in the ubuntu package, tho it is still possible it is built with NTLM and statically linked.

Yes, here is a solution but it do include to compile cyrus from source. But ofc. you will have to adopt it to fit the version of postfix\cyrus you are targeting.

Feel free to try to compile the support, and update your question with issues you are running into. Good Luck.


I fixed the problem by turning off flipping in NVIDIA X Settings, it had something with a feature that is enabled by default and does not work properly in certain systems


Why are KDE apps running on unity too slow to load

You could say that yes, Evince and Gedit use GTK libraries, these are already loaded by the rest of the environment. Launching the KDE software means launching more libraries which take more time because they're not already being used by other software.

I wouldn't add anything to autostart  as it will probably slow it down, once they're loaded  when you open one your KDE programs you're good to go.


You can add this URL as radio station to Rhythmbox:

http://playerservices.streamtheworld.com/pls/WLSAMAAC.pls

I found that URL by examining the source code of the website you linked, unfortunately there's no easier way unless your radio station provides a stream URL in an appropriate format like e.g. pls or mp3.


How would someone get a .exe file on ubuntu to run?

You don't.

WINE is a compatibility layer that enables to mimic Windows in a separate environment. Your question should be "How would someone get a .exe file in WINE to run?" and that answer is impossible to provide by us: there is no 1 way to run an .exe in WINE that works for all .exe files that are out there.

Specific to GeometryDash.exe.

WineHQ only has a gold rating for 14.04.
And there is a page dedicated to getting it run.

That will be all you have to go on.

If you need to run Windows executable I myself would install Windows either as a dual boot or inside a virtual container.


There are two main potential issues here:

You're hitting a cached resource, which isn't reaching your origin server. If you've set a "Cache Everything" Page Rule, Cloudflare will also cache static HTML. The CF-Cache-Status header indicates whether Cloudflare is caching a resource.
You're not recording visitor IPs correctly. On Apache, you should be sure to install the Mod_Cloudflare extension to ensure you are recording visitor IPs correctly in your logs.


According to this question

What's the correct driver to use with a GeForce 6150SE nforce 430 on Ubuntu and Ubuntu flavours?

Your card needs nvidia-304 which is not supported any more.  You can see the bug report here.

Comments in the bug report give a workaround involving installing a patch and compiling the driver yourself. I actually did get this to work (but not without significant effort) on a laptop with a Geoforce 8300 card.


Trying to install VMware-Player-12.1.1-3770994.x86_64.bundle but is planting for strange reason!

Here is what you need to do to install this:

cd /home/master/Downloads

sudo chmod a+x VMware-Player-12.1.1-3770994.x86_64.bundle (you can use Tab to autocomplete this filename once you have typed enough characters that there are no other filenames that it could be)

sudo ./VMware-Player-12.1.1-3770994.x86_64.bundle

This should work for you! Let me know if you have any questions, or get an error message.


Display challenges after Ubuntu 12.04 updates

Try updating VirtualBox and re-installing the guest additions drivers.


Relationship of rsyslog and journald on Ubuntu 16.04

By default rsyslog is using "imuxsock" module, the module provides:

  the ability to accept syslog messages via local Unix sockets. Most importantly, this is the mechanism by which the syslog(3) call delivers syslog messages to rsyslogd [1].

It is possible for rsyslog to  import structured log messages from systemd-journal using a module named "imjournal" [2].

It can be load like:

module(load="imjournal")

in:

/etc/rsyslog.conf

In the other hand "systemd-journald" captures all data itself:

man systemd-journald

  systemd-journald is a system service that collects and stores logging data. It creates and maintains structured, indexed journals based on logging information that is received from a variety of sources:

   ·   Kernel log messages, via kmsg
   ·   Simple system log messages, via the libc syslog(3) call
   ·   Structured system log messages via the native Journal API,
       see sd_journal_print(4)
   ·   Standard output and standard error of system services
   ·   Audit records, via the audit subsystem

You can disable rsyslogd while you still have access to system logs using journalctl.

$ sudo systemctl mask rsyslogd
$ sudo systemctl stop syslog.socket
$ sudo systemctl stop rsyslog.service
$ systemctl is-active rsyslog.service
inactive
$ logger -p mail.info Helllooo
$ journalctl

For example, centos is using "imuxsock" module to capture all "systemd-journald" data via rsyslog while opensuse does not have "syslog" at all.

To find out why your message didn't end up to /var/log/syslog, you should check this file:

less /etc/rsyslog.d/50-default.conf

look for *.info, see where they will be stored, it might be an other file like messages.

For me it show up in both journalctl and syslog.


OpenSSH on Ubuntu 20.04 LTS not working asking for password and publickey

Right, so for this to work on Ubuntu 20.04 you have to make sure you set AllowUsers to your own username. When you setup the system it won’t set every user by default as I’ve seen by multi 20.04 testing setups..


How to install AMD drivers for A10 7870k APU

If your system is Ubuntu 14.04, you can install the drivers by typing in terminal

cd ~/Downloads/AMD-A10

press Tab, then press Enter

sudo apt-get install fglrx*14*.deb

press Enter

But you do not need dev packages.


How can I enable DirectX 10 support for Star Trek Online in wine

On March 1st 2017, STO dropped support for DX9.

I had a similar issue, and got STO partially working following this: https://www.reddit.com/r/sto/comments/5tpghw/psa_for_linuxmac_users_sto_dx11_now_works_under/

It had startup issues for me (This is a fresh STO and Linux install), so to get around them, I configured an emulated desktop of 1024x768 in the WINE settings, then when STO started in the emulated desktop (in fullscreen mode), I chose windowed mode in STO, then exited STO, removed the emulated desktop in WINE, and it worked.. Sort of.

When I logged in, my character was in ESD, and the picture looked bad. I found that by disabling lighting 2.0 in the graphics settings, the picture got about 80% better, but still not totally back to normal.

I logged out after some fleet chat, and have not yet tried to run any missions.


Ubuntu 18.04 python-tz and python-zmq errors

Your output shows this error:

  pycompile: not found

pycompile is provided by minimal subset of the Python language (version 2.7) ie. python-minimal or more precisely libpython2.7-minimal

Please read here.

To fix it you need to reinstall libpython2.7-minimal or python-minimal by running the following command in the terminal:

sudo apt install --reinstall libpython2.7-minimal

Or:

sudo apt install --reinstall python-minimal


What you need is the msttcorefonts package.

sudo apt-get install msttcorefonts


How do you get mouse wheel to scroll the page and not the cursor?

If I'm guessing it correctly, when you scroll up/down your page via keypad's up/down arrow the page will jump but not scroll. You should consider enabling "Natural Scrolling" under Settings->Touchpad (Ubuntu 20.04).


How to configure WiFi adaptor to monitor mode?

It may work if you first bring the interface down:

sudo ifconfig wlan1 down
sudo iwconfig wlan1 mode monitor

Check:

iwconfig

Not every device and driver combination are capable of monitor mode.


Brightness problem on Ubuntu 20.04 (System panel works, but nothing change)

I found the solution for my problem. If you find that changing the acpi_video0 backlight does not actually change the brightness, you may need to use the kernel parameter acpi_backlight=none. I did it and now both the slider and hotkey works and there is only one folder on sys/class/backlight, the Intel's one. Because there is nothing else, the system and the keys are forced to use that one. I also noticed that my brightness can be more or less brighter since Intel's parameters are higher than the 0 to 15 ones on acpi_video0.


I've found a way. (In fact, I already had it, but just wanted to share it)

1) Paste the following file to /etc/apparmor.d/dropbox.

# vim:syntax=apparmor
# Last Modified: Sun Jan  3 19:03:04 2016
#include <tunables/global>

profile dropbox /{usr/bin/dropbox,home/*/.dropbox-*/**,home/*/.dropbox-dist/dropboxd} {
    #include <abstractions/dbus>
    #include <abstractions/dbus-accessibility>
    #include <abstractions/dbus-session-strict>
    #include <abstractions/gnome>
    #include <abstractions/ubuntu-unity7-base>
    #include <abstractions/dconf>
    #include <abstractions/base>
    #include <abstractions/nameservice>
    #include <abstractions/python>
    #include <abstractions/ubuntu-konsole>

    capability sys_ptrace,

    # Comment the follwoing line to allow Dropbox to (fully) sync directories called: '.git'
    audit deny /**/.git/objects/** rwx,
    # Comment the follwoing line to allow Dropbox to sync directories called: 'no_dropbox'
    audit deny /**/no_dropbox/** rwx,
    # Comment the follwoing line to allow Dropbox to sync directories called 'Secure' that under your home folder.
    audit deny /home/*/Secure/** rwx,

    dbus,

    # A work arround to allow symbolic links to the golang folder
    /home/*/go/** rw,

    /bin/bash r,
    /bin/dash r,
    /bin/readlink Cx,
    /bin/uname r,
    /etc/lsb-release r,
    /etc/python*/** r,
    /home/*/.Xauthority r,
    /home/*/.config/autostart/dropbox.desktop rw,
    /home/*/.dropbox-dist/** rwlkix,
    /home/*/.dropbox/** rwlk,
    /home/*/Dropbox/ rwlk,
    /home/*/Dropbox/** rwlk,
    /proc/ r,
    /proc/*/fd/ r,
    /proc/*/io r,
    /proc/*/mounts r,
    /proc/*/net/tcp r,
    /proc/*/net/tcp6 r,
    /proc/*/net/udp r,
    /proc/*/net/udp6 r,
    /proc/*/stat r,
    /proc/*/statm r,
    /proc/*/status r,
    /proc/meminfo r,
    /proc/version r,
    /proc/vmstat r,
    /run/uuidd/request rw,
    /tmp/* rwl,
    /usr/ r,
    /usr/bin/ r,
    /usr/bin/dirname rPix,
    /usr/bin/dropbox rPix,
    /usr/bin/gettext r,
    /usr/bin/locale r,
    /usr/bin/lsb_release r,
    /usr/bin/python3 r,
    /usr/bin/python3.4 r,
    /usr/bin/readlink rPix,
    /usr/bin/sudo r,
    /usr/lib/ r,
    /usr/lib{,32,64}/** mra,
    /usr/local/lib/python3.4/*/ r,
    /var/tmp/** rwlk,
    /usr/share/glib-2.0/schemas/gschemas.compiled r,
    owner /{,var/}run/user/*/dconf/user w,

    profile /bin/readlink flags=(complain) {
        #include <abstractions/base>

        /bin/readlink mr,

    }
}

2) Load it via the command: sudo apparmor_parser -r /etc/apparmor.d/dropbox.

3) Enable it on enforce mode: sudo aa-enforce /etc/apparmor.d/dropbox.

4) Restart dropbox, either via the GUI or by the following command: dropbox stop && dropbox start.

5) It's done!


running into PCI resource allocation issues 17.10 kernel 4.13.0-16-generic 64bit

The secret is to make hpmemsize huge - but the issue is when it becomes too big (in my experience, >128MB), it wipes out the 32-bit memory from the root window, leaving a range with higher start than end. It turns out that the memory resources have to be inherited from the parent bridge (not allocated completely at random) so the root port, for example, that hosts the Thunderbolt, should have a lot of memory under them - in my case with JHL6540 on Dell 9370, it is 737MB (32-bit) and 1184M (64-bit prefetchable). Use "sudo lspci -vvvv" or similar command.

My external graphics refuses if the main BAR0 (256MB) cannot be allocated - but I cannot make the hpmemsize big enough without the 32-bit resources disappearing, unless I patch the kernel. Under certain conditions, the amdgpu driver fails to check that the BAR has failed, and requests a resource from the kernel of base address 0x0 and size 0x0 - hence triggering a bug detection and basically requiring a reboot to make the system fully usable again.

If you are still having this issue now, then try Linux 4.20-rc3 (or at least 4.19 kernel), and try increasing the hpmemsize and observing what happens in lspci. Anyways, soon I am free from semester and I am going to be trying to get my kernel patch submitted, which sorts this mess out.

PS: pci=hpbussize=N has no effect unless you also have pci=assign-busses - and that breaks Thunderbolt unless you have the new Thunderbolt 3 Titan Ridge (2018) controllers.

I am not even entirely certain that the others do much without pci=assign-busses - although I have never tested it, so don't take my word for it.

Also, remember pci=hpiosize exists (defaults to 256 bytes). The pci=hpbussize defaults to 1 and pci=hpmemsize defaults to 2MB.


NPM wont work because of my wrong node version

Changing update-alternatives like the following might help:

$ sudo update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100

$ node -v
v0.10.7

Maybe delete all alternatives to node before:

$ sudo update-alternatives --remove-all nodejs


Launch url to start a script like a cronjob?

Since the scheduled tasks needs a command, and apparently simply visiting the URL is all that's needed, you can use a program which will fetch that URL:

wget http//www.mysiteserverA.com/run.php

This actually downloads the response from that page (to somewhere, I'm not sure where the scheduler sets the working directory to). To suppress this, and any other output, you might try:

wget -q -o /dev/null http//www.mysiteserverA.com/run.php

Or

curl -s http//www.mysiteserverA.com/run.php > /dev/null


If you have set up your computer to automatically synchronize time with an internet time server via NTP (which is the default), you can not edit the system time manually, because ntpd will immediately synchronize it with the internet clock again.

To set the system time and date manually, disable NTP:

sudo timedatectl set-ntp false

Then you can persistently change the time and date, like this:

sudo date -s "2010-1-1 13:00"

If you want automatic internet time synchronization enabled again, run this:

sudo timedatectl set-ntp true


Installing Ubuntu 15.04 on VirtualBox VM

Virtual hard drives
While installing Ubuntu to a virtual machine such as Virtual Box you will have created a virtual hard drive for holding the virtualised OS and its data. For the host OS this virtual hard drive is just a file on the real hard drive but the guest operating system can use it as if it was a real drive to partition and to format it to the guest's needs. This will leave partitions and filesystem on the real drive untouched.
Windows devices
In Windows hard drives or their partitions are assigned with letters A: B: C:, ... irrespective of where that partitions reside. This is different in Unix and in Ubuntu.
Device files of Unix and Ubuntu
For each attached block devices (and also for each virtual hard drive in a VM) we will create a device file. Modern SCSI or SATA drives will be named as /dev/sd followed by a letter depending on the sequence they were registered. Hence the first registered drive's device file will be named /dev/sda, the second /dev/sdb, the third /dev/sdc, and so forth.
After we had added partitions on that drive they will consecutively be numbered /sda1, /sda2, /sda3, .... Therefore we can easily see on which hard drive a given partition sits.
Grub and the boot device
Now for installing the master boot loader (Grub) needed for booting Ubuntu we can further specify on which drive it should be installed. This only matters in case you have more than one drive attached to your computer (or your virtual machine).
In your case you likely had created only one virtual hard drive (though more are possible) which then was named /dev/sda. This drive is where you want to install Grub, and the OS.
Note that in a virtual machine this still is a virtual hard drive, not your bare metal drive where your host OS resides.
A word on dual boot
On a real computer where we may want to choose from more than one OS we may have to take care that the boot loader is really being placed onto the first bootable drive. It will replace any other (e.g. Windows) master boot  record that was there before we started. Only then a dual-boot system with a choice of operating systems at boot would be possible. If for any reasons we do not want this we can tell Grub to install on another drive (or partition), if available.


Disable confirmation for LVM in preseed file?

This should do it:

d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true

The order should not matter, but I wouldn't do something crazy like rewriting the default recipe from bottom to top :)


Would upgrading processors/motherboards stop my 10.04 lucid from working?

As long as the processor is capable of handling the same arch, and you didn't compile a custom kernel that is missing anything, then yes it should all work perfectly. Just to clarify, if you are running a x86_64 system and the new processor isn't capable of 64-bit then yes it will break. Does not apply for working in the other direction, all 64-bit capable processors can handle x86 kernel and apps. Having said so, if you are downgrading and are running a custom kernel with the processor type set to i686, but the downgraded processor can only handle i386... unbootable system. However you are upgrading so you shouldn't have to worry about that.

Having said so, if you are just using a kernel from the repos then you are alright. Ubuntu compiles all of their kernels with compatibility for i386 processors, and with the majority of all distributed kernel modules included. This is to ensure maximum compatibility. In other words, yes it will magically figure it out, lol. Mainly because a basic ubuntu system has compatibility with most hardware on the market, you just only use what the kernel detects at boot or while running.


How do Install 32 Bit Firefox alongside 64 bit Firefox on 64 bit 11.10 machine?

Took a bunch of experimentation, but this DEFINITELY works for Webex audio and was pretty straight forward.

http://blog.romera.org/2012/03/09/make-webex-work-in-ubuntu-11-10-64-bit/

Nice thing about it is that you preserve everything in Firefox as is... Not sure if video works, but I will confirm that once I play a bit more.


If you have them listed as one per line, it's trivial to script this:

for ip in $(cat filename.txt)
  do
   ip route add blackhole $ip
done

As hello moto said in a comment: why not use iptables to filter? To do that...

for ip in $(cat filename.txt)
 do
  iptables -A INPUT -s $ip -j DROP
done

With 60k rules, I would have a look at ipset, to avoid crippling performance. If you have 60k rules and 100kpps, thats 60k*100k=6 billion comparisons per second...

This documentation from Arch is somewhat more friendly than the manpage for ipset, and the syntax applies for Ubuntu as well.

To use ipset:

ipset create blocklist
for ip in $(filename.txt)
 do
  ipset add blocklist $ip
done
iptables -I INPUT -m set --match-set blocklist src -j DROP

In addition iprange may be useful. It takes a lists of subnets, and tries to merge networks into as few subnets as possible, which would reduce the number of comparisons needed.


Can I auto-scroll when opening a folder?

Nautilus does not currently have a way to do this.

From a technical perspective, this actually shouldn't be too hard to implement. Nautilus uses the GtkTreeView widget to display the file tree, so in a way it already has the ability to scroll to a specific item in the list. The only missing piece is the instruction from Nautilus to tell GtkTreeView to scroll.

The more difficult task is in convincing the GNOME development team that this scrolling behavior will make Nautilus more intuitive for everyday users. If you want to pursue this, the first step is to suggest the idea on Nautilus's Ubuntu Brainstorm page. This is the developers' preferred means of suggesting ideas that would be quick to program.


I have an Acer Aspire F 15 just got in the last several weeks and have dual boot with Ubuntu 16.04 and Windows 10 set up and running fine.

I don't mean to plagiarize, these directions are NOT mine but I don't remember where I got them from. They were posted on line somewhere. If I could give credit to the original author, I certainly would.

Here is how I went about setting up dual boot. I think your fix is in here somewhere. You definitely need to put a password on but also you have to tell the BIOS that your boot file is trusted. Step 35ish......

Anyway, here is what I used

Turn on the laptop and press F2 as soon as you see the "Acer Explore Beyond Limits" screen. This will take you into the UEFI/BIOS screen.
If this is the first time you have entered the UEFI/BIOS section there are some adjustments that need to be made.
Using the cursor keys highlight the menu item "Main."
Network Boot: [Disabled]
F12 Boot Menu: [Enabled]
D2D Recovery: [Enabled]
Wake on LAN: [Disabled]
SATA Mode: [AHCI Mode]
Touchpad: [Advanced]
xHCI Support: [Enabled]
Cursor over to the "Security" menu item.
Set Supervisor Password to one of your choosing.
Disable "Password on Boot."
Cursor over to the "Boot" menu item and arrange these items.
Boot Mode: [UEFI]
Secure Boot: [Enabled]
Arrange the boot devices as follows
ATPI CDROM:
HDD:
USB HDD:
USB FDD:
Network Boot - IPV4
USB CDROM:
Network Boot IPV6
Windows Boot Manager
Press F10 to Save your modifications and Exit BIOS.
Open the DVD tray and insert your LiveDVD of Ubuntu. Close the DVD tray and restart your laptop.
When you restart, if the boot order is set correctly you should boot up in Ubuntu. If not go back into the "Boot" item in the BIOS menu and make sure the laptop's DVD is at the top of the boot devices.
Select the option "Install Ubuntu alongside Windows." The installation program will divide the Windows partition. My Acer Aspire has a 500 Gigabyte HDD. The installation program divided it like so:
Files (27.2 GB) /dev/sda4(ntfs) 253 GB
Ubuntu /dev/sda5(ext4) 231 GB
Wait for Ubuntu to install. This will take awhile.
After Ubuntu is installed you will be instructed to reboot your laptop. After you select reboot you will be instructed to remove the Ubuntu DVD from the DVD ROM drive. Warning: If you think the laptop will now boot up and let you choose which OS you want to run. I am afraid you will be disappointed. The only OS recognized by the UEFI firmware at this time is Windows.
Restart the laptop as we did back in Step 1.
Use the right cursor key to highlight "Security" and use the down cursor key to highlight "Select an UEFI file as trusted for executing" and press Enter.
The "Security" window will show HDD0 in white letters. Press the Enter key.
On my laptop two items; they look like folders show up: "EFI and Temp." Highlight EFI and press Enter.
These folders are displayed: ., .., ubuntu, Microsoft, Boot, and OEM. Highlight ubuntu and press Enter.
Another set of folders are listed: ., .., shimx64.efi, grubx64.efi, and MokManager.efi. Highlight "grubx64.efi" and press Enter.
The "Add an new file" window will appear in the middle of the screen with the question: "Do you wish to add this file to allowable database?" In the "Boot Description" type in grubx64.efi and press the Enter key twice.
Press F10 to Save and Exit BIOS.
Now restart the laptop and return to the BIOS menu. Cursor over to the "Boot" item and you will see a ninth boot file added: "EFI File Boot 0: grubx64efi." If you choose to leave the boot order alone. Whenever you turn on your laptop it will boot up in Windows.
Or you can move the ""EFI File Boot 0: grubx64efi" to the eight position and boot up in Ubuntu.

For stealth reasons you can let your laptop default boot into Windows, but if you need Ubuntu when you power on the Laptop press the F12 key repeatedly until the "Boot Manager's" window opens. There should be two options.


I think the second option is the best bet since there's AFAIK no way to preload Gnote

Just add gnote to your gnome-session-properties (Startup Applications in Settings) or do this:

cp /usr/share/applications/gnote.desktop ~/.config/autostart/
chmod u+x ~/.config/autostart/gnote.desktop

Edit: To use Gnote system tray icon, you have to whitelist it first. Use the following command (based on this question):

gsettings set com.canonical.Unity.Panel systray-whitelist "$(gsettings get com.canonical.Unity.Panel systray-whitelist | sed -e "s/]$/, 'gnote']/")"

You can find more information on systray-whitelist in this post.

Changes will take effect after reloading Unity (logging out or executing unity --replace).


Resolution discovered.

/etc/resolv.conf is being deleted.  How or why is undetermined.

It may be due to the fact that changing DNS in WiCd does not result in resolv.conf being changed.

Thanks to all for the suggestions.


How can I turn live CD running with installed applications into an in-place install

Pinguy Builder does that.

  The Pinguy Builder will create a installable ISO of your current system. You can then burn that ISO to a USB using something like Unetbootin or just burn the ISO directly to a DVD. The DVD/USB can then be booted from a PC.

  Depending on what option you choose determines what type of ISO gets created.
  If you pick “Dist”, this will backup the whole system but exclude your home folder and any personal info.

  If you pick “Backup”, this will backup the system and will include you home folder (so make sure it isn’t to big).

  Both options can run as a live session. “Dist” mode has no password to login. “Backup” mode uses the user name and password used to create the ISO.

You can download it from sourceforge: Pinguy OS ISO

And install it with

sudo dpkg -i pinguybuilder_4.3-8_all-beta.deb

After the installation, you can use it from the command line with

sudo PinguyBuilder backup|clean|dist [cdfs|iso] [filename.iso]

Or with the GUI, which has buttons to complete all the available actions.

PinguyBuilder-gtk


Lenovo 3000 N 200 touchpad malfunction in Ubuntu 12.04

Well, here is another page which refer to similar problem you are having. But you may try the way they got to get over it, as they say:

-login using Ubuntu Classic
-Go to the system menu. Select preferences, assistive technologies.
-In the Assistive Technologies Preferences window, select "Enable assistive technologies" and then click on "mouse accessibility."
-In the mouse preferences window, select the accessibility tab. Check the box for "initiate click when stopping pointer movement."
-Close those windows and return to the desktop. Right click on the gray panel At the top of the screen and select "Add to Panel..." Select Dwell Click Applet from the list.
-The dwell clicker should now be functional. Hover over the mouse icon on the panel applet to enable/disable it.
-It is now possible to login using Unity, and the dwell clicker still works, but the applet is not displayed. Additionally, if I close the click selection window, I have no way of choosing a click type.

Here is the link to where I got this from.
http://ubuntuforums.org/showthread.php?t=1902263


make dmrshark error : sqrtf@@GLIBC2.0 undefined reference

Ubuntu 12.04.5 - 64, dmrshark :

sudo apt-get install g++ git cmake libglib2.0-dev libpcap-dev libsnmp-dev libmysqlclient-dev libmp3lame-dev

Sources ...

git clone https://github.com/warmcat/libwebsockets.git
git clone https://github.com/szechyjs/mbelib.git
git clone https://github.com/nonoo/dmrshark.git

Build the libraries libwebsockets, mbelib, and install with sudo make install.

cd dmrshark/, 1) Move away the folder files/ : mv files/ ../, i.e. the very simple Makefile´s will try to 'make' anything, also data files, and thus fail. 2) cp build/Makefile tests/ . (A missing Makefile in tests/.)

Next : make ( The make install fails. But you have the executable´s, and can use them as is.)

Or get a copy here https://drive.google.com/file/d/0B7S255p3kFXNOFQ5MG9aZkxrY3c/view?usp=sharing


Configure Unity Dash to forget the last command

Simple solution would be to just right-click on the dash itself and select the specific category you want to search - Dash will be cleared automatically for that.

I've noticed that the re-opened Dash, has the previous text highlighted. Hitting backspace key allows for clearing and carrying out new searches without issues. If only we could automate doing that . . . Well, we can with application called xdotool and a bit of scripting magic.

Install xdotool via apt-get install xdotool and save the following script. Its basic task is to determine whether or not the active window is Dash, and automate hitting BackSpace key to clear Dash. This is meant to run as python script_name.py and to be launched  when user logs in by adding this script to Startup Applications.

#!/usr/bin/env python
import dbus,time,subprocess,os

def run_cmd(cmdlist):
    """ utility: reusable function for running external commands """
    new_env = dict(os.environ)
    new_env['LC_ALL'] = 'C'
    try:
        stdout = subprocess.check_output(cmdlist, env=new_env)
    except subprocess.CalledProcessError:
        pass
    else:
        if stdout:
            return stdout

def get_dbus(bus_type, obj, path, interface, method, arg):
    """ utility: executes dbus method on specific interface"""
    if bus_type == "session":
        bus = dbus.SessionBus()
    if bus_type == "system":
        bus = dbus.SystemBus()
    proxy = bus.get_object(obj, path)
    method = proxy.get_dbus_method(method, interface)
    try:
        if arg:
            return method(arg)
        else:
            return method()
    except dbus.exceptions.DBusException:
        return None

def active_is_dash():
    base = ['session','org.ayatana.bamf']
    dbus_call = base + ['/org/ayatana/bamf/matcher', 'org.ayatana.bamf.matcher','ActiveWindow',None]
    active_window = str(get_dbus(*dbus_call))
    dbus_call =  base + [active_window,'org.ayatana.bamf.view','Name',None]
    active_name = str(get_dbus(*dbus_call))
    if active_name == 'unity-dash': return True

command = 'xdotool key BackSpace'.split()
flag = None
while True:
    time.sleep(0.25)
    if active_is_dash():
        time.sleep(0.25)
        if not flag: run_cmd(command)
        flag = True
    else: flag = False


How to upgrade MySQL to >=5.1.51 on Lucid via aptitude

Aaron, not an official way. The safest way would be to download the latest MySQL 5.1 package from Ubuntu (5.1.58 from oneiric probably) and rebuild it. Sit tight though.. it looks like 5.1.61 may arrive via lucid-security soon due to the change in upstream policy regarding security patches.


How do I install software using the Ubuntu Software Center?

For Unity on 11.10+
Step one: Open up the Software Center.
To do that, open the Dash and search for Software - you'll see something like the screenshot below:

Open the Software Center by clicking on it. Wait for it to load.
Now, search for the software you want to install - in this example, "Chromium Web Browser".

Then, select the software and click the "More info" button.
From here you can view the version, the total amount of space it will take up once you've installed it, etc.
To install it, click the "Install" button on the right.

Once you've done that, you'll be asked to enter in your password - do that, then sit back and relax and Chromium will be installed.
You can change "chromium" to anything else that you need to get installed - Wunderlist, Geany, etc.


In my situation, Ubuntu correctly identified my connection and TV - but I too could not see the Launch bar unless I changed the resolution or icon sizes. Turns out that changing the screen settings on the TV did the trick - Changed from a fixed 16:9 to "Just scan" and everything is perfect. Sanyo HD 46", HDMI


Install Tomcat 8.5 through apt (apt-get)

The short answer to "if and when Tomcat 8.5 will be available for Ubuntu Server 16.04?" is if - NO and when - in Ubuntu 17.10 and later. You have already written in a comment that you do not want to download Tomcat 8.5 and install it manually in Ubuntu 16.04.

Apache Tomcat 8 version 8.5 (tomcat8) will not be available in the Ubuntu 16.04 default repositories, but it it will be available in the official Ubuntu repositories starting in Ubuntu 17.10 which will be released in October, 2017. In Ubuntu 17.10 and later open the terminal and type:

sudo apt install tomcat8

Apache Tomcat 9 (tomcat9) will be available in the official Ubuntu repositories starting in Ubuntu 19.04. To install it open the terminal and type:

sudo apt install tomcat9


Installing nvidia-opencl-icd-367 breaks the package manager

O.k. to fix this (I had the same troubles this morning) you have two ways:
1. The clean way proposed to me by the launchpad team per e-mail:
To work around this issue, you may first switch to a text console by
pressing Ctrl+Alt+F1, then stop your display manager using sudo systemctl stop <displaymanager>, where  is lightdm, gdm, sddm, or whichever other display manager you are using.
Stopping X clears the unmount failure, allowing you to successfully
upgrade to ~gpu16.04.6, which no longer contains the defective patch,
using sudo apt upgrade.  At this point, you can then run sudo systemctl reboot to reboot the system, which should return it to normal
functionality.
If you still receive an error indicating
Unit var-lib-snapd-lib-gl.mount not loaded.

you may work around this issue by running
sudo touch /lib/systemd/system/var-lib-snapd-lib-gl.mount && sudo systemctl daemon-reload

before attempting to repeat the upgrade. After the upgrade is complete, to clean up run
sudo touch /lib/systemd/system/var-lib-snapd-lib-gl.mount

2. The way I approached it this morning by brute forcing a complete removal:
To work around this issue, you may first switch to a text console by
pressing Ctrl+Alt+F1, then start again by
sudo apt-get remove --purge nvidia*

followed by
sudo dpkg --remove --force-all nvidia-opencl-icd-367`

Then sudo apt-get autoremove followed by a sudo apt-get clean, and again a sudo apt-get remove --purge nvidia.
Now it should still mention any packages you cant remove then switch to /var/lib/dpkg/info and find the files called <packagename>.prerm, <packagename>.postinst and <packagename>.postrm, for all those files do the following (beware this is not the sane way to remove something):
sudo su
> <packagename>.prerm
> <packagename>.postinst
> <packagename>.postrm
exit

When you have done this, start the removal as usual with
sudo apt-get remove <packagename>

do this until all is purged, then
sudo apt-get update && sudo apt-get dist-upgrade

and then reinstall the nvidia driver again which should be fixed by now by
sudo apt-get install nvidia-367


W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release

If your country's server is working fine at the moment then you should switch to that for it is effectively a mirror server to download your software packages from. As stated here this affects:

  spreading the load among multiple servers instead of just one
  generating less international network traffic which is expensive (not directly for you but for other parties involved in transmissions)
  lowers network latency
  maybe higher throughput - that really depends on a server

  I don't think there are CONS that you should be concerned about.
  Availability, redundancy of a mirror could differ between one another,
  meaning that mirror X could have a higher availability percentage than
  mirror Y but it's not that much of a time-sensitive service.

So if your country's server works for you, but not the main server, then use your country's one. Although there is a delay with local country servers, so the main one does get software updates faster, although if currently you are not able to get anything from it, then I think that the country ones for now are best for you until the main server is back up.


Unable to boot 11.10 due to graphic driver problem with ati Radeon HD6470M o Amd A8 quad core

Your card is not supported by the Linux driver, there is not much you can do about it. ATI needs to fix that, it is not related to Ubuntu in any ways.

Keep using the open source drivers, they are your only choice at the moment. You system has a hybrid graphics solution that is not supported by the driver yet. You can always complain to ATI and hope that they can solve this, but at the moment there is not much you can do to solve this situation.

You cannot make a driver work if it was not built for your hardware.


If you get

/opt/eclipse/eclipse: cannot execute binary file: Exec format error

that usually means you use the wrong architecture. In this case you downloaded the 64bit version but should use the 32bit version of Eclipse.


How do I report a sensitive security issue?

You'll need to file a bug against the package you're having an issue with. You can use these instructions to report a bug. Once all the data is collected LaunchPad will open a window and you can continue with the bug reporting process.

Alternatively, visit the LaunchPad Ubuntu page (https://bugs.launchpad.net/ubuntu/+source/<PACKAGENAME>) then fill out the details.

Once a summary and duplicate detection have completed, but prior to submitting your report, there will be the following option at the bottom of the page that you will need to select:

Doing so will make this bug hidden and alert the security team.


How to hide process arguments from other users?

The only way to do this currently is to put each user in a separate container (see clone with CLONE_NEWPID and CLONE_NEWNS), and mounting a new /proc in the container. (lxc will do some of this for you.)

However, there are plans to be porting grsecurity features to the Ubuntu and upstream kernels. If you can, please sign up for something and help out.


Have you tried using this tool:

http://bues.ch/cms/hacking/razercfg.html


Issue with Nvidia graphic card and display resolution

May be this can be an solution (Ubuntu 12.04):
Go to System Settings > Hardware > Displays
Make sure that "Mirror displays" is not marked otherwise:
Note: may limit resolution options.
What is the result of the command "xrandr"in the terminal ?


How to integrate google adressbook into contacts?

Here is a hack / workaround :)

NOTE:
I should note that this was tested on Ubuntu 14.10
Also, first verify that you have enabled IMAP in your Gmail account settings.

Under “System Settings” → “Online Accounts” → “your Google Account”

disable “Evolution Data Server: Access your Gmail”
disable “Evolution Data Server: Access your Google Contacts"
disable “Evolution Data Server: Access your Google Calendar"

Under “Evolution Preferences” → “Mail Accounts” → “Add”

I. At the account welcome screen click “Next”

II. Enter “Identity” information and click “Next”

III. Under "Receiving Email"

under “Server Type” select the entry “IMAP+”
under “Configuration”

a. under “Server” enter “imap.gmail.com”

b. under “Username” enter your full Gmail e-mail address
under “Security”

a. under “Encryption Method” select “SSL on dedicated port”
under “Authentication”

a. select “Password” from the drop down box
click “Next”

IV. Under “Receiving Options” select your preferences

V. Under “Sending Email”

under “Server Type” select the entry “SMTP”
under “Configuration”

a. under “Server” enter “smtp.gmail.com”

b. check “Server requires authentication”
under “Security”

a. under “Encryption method” select the entry “SSL on dedicated port”
under “Authentication”

a. under “Type” select the entry “PLAIN”

b. under “Username” enter your full Gmail e-mail address

VI. Under “Account Summary”

under “Google Features”

a. check “Add Google Calendar to this account”

b. check “Add Google Contacts to this account”


PlayOnLinux via Steam fails badly! (3 of 3 failed)

Did you tried to disable the Steam Overlay?

Many people have this issue where the first key pressed on the keyboard when the steam overlay is enabled makes the game crash


OK, I find it and it was not that hard (I got lost with SASL stuff that are not relevant). The command is:

ldappasswd -H ldap://localhost -D 'cn=Cristiano Ronaldo,ou=People,dc=test,dc=institute,dc=fr' -W 'cn=Cristiano Ronaldo,ou=People,dc=test,dc=institute,dc=fr' -S`

where:

-D is used to specify the binding user
-W is used to prompt password for the binding user
-S is used to prompt the new password

One trick was to use the cn (Cristiano Ronaldo) and not the uid (cronaldo). Note that you will be asked first for the new password twice and then for the current password.


How do I change the priority of a process/program

changing a process' priority...
from the gui:
Run the system monitor as root with
gksu gnome-system-monitor

Then under the "view" menu move the radio button to "All processes"

Then you will see all users processes and can change their priority.
from the command line:
First find your processes PID (Process ID) with pidof  like so:
pidof name-of-process

It will return the PID of the given process, usually a four to five character number.  Then run
renice priority processes-PID

Replacing priority with the priority you want (-20 being the highest and +20 being the lowest) and process-PID with the PID you got earlier.
renice is used to change the priority of a running process, if you want to start a process and change it's priority you use nice.
nice priority name-of-process

Replacing priority with the priority you want and name-of-process with the name of the process you want to start.
Note:  In order to give a process a negative priority you must have root access.


Send event on global keypress - have a listener in terminal react and run another program?

Ok, made this with netcat, but hoping someone will post a better solution:

#!/usr/bin/env bash

# let the signal be the letter "d"
# set up a netcat listener, and run gnome-screenshot without prompt on incoming signal

# in System/Keyboard shortcuts:
# Name: trignetshot
# Cmd: bash -c "echo d | nc localhost 1234"
# Shortcut: whatever...

# then run this script in a terminal - and then press the shortcut key

while [ 1 ]; do # else it exits at each received line with TCP
  echo "Starting listener...";
  nc -l -p 1234 | while read l; do
    if [ "$l" == "d" ]; then
      echo "GOT IT";
      # calculate screenshot name
      maxnum=0;
      for ix in ~/Desktop/Screenshot*.png; do
        tnum=$(echo $ix | egrep -o '[[:digit:]]*');
        #echo $tnum ;
        if [ -z "$tnum" ]; then
          tnum=0;
        fi;
        if (($tnum>$maxnum)); then
          maxnum=$tnum;
        fi;
      done;
      #echo $maxnum # have it here
      newnum=$((maxnum+1))
      set -x
      gnome-screenshot -d 1 -f ~/Desktop/Screenshot-${newnum}.png
      set +x
    fi;
  done;
done


How can I make my server continue working without maintaining ssh connection?

You have (at least) 2 options:

1) Use nohup. Command:

nohup ./_rel/web_server_example/bin/web_server_example console &

then you can exit your ssh session. The output of your process will be redirected to file nohup.out

2) Use GNU screen. You will likely need to install it first: apt-get install screen. Then:

screen bash
./_rel/web_server_example/bin/web_server_example console
<Ctrl-A> D

At this stage you will have a screen session running in the background. You can exit your ssh session.
The beauty of the screen way of doing things is that you can re-attach later. Log on to that server and type in command screen -r. You will back to your web_server_example command and you can do things like pressing  to interrupt it or interract with it in some other way.


How to re-install Ubuntu (doesn't matter if the data will be lost)

Boot from Ubuntu installation media and choose Try Ubuntu without installing
Open GParted and format the existing Ubuntu partition with ext4 file system
Click on Install Ubuntu - when asked what to do, select Something else
Choose the formerly formatted partition to install the root system
Start the installation process and proceed as you did before


Ubuntu Web Server is not Accessible outside Localhost

press ctrl+alt+t. in that terminal create that symbolic link.for that you should create a folder in /var/www

 cd /var/www
 mkdir yourfoldername

then create the symbolic link for it from that your wordpress folder

 sudo ln -s /home/path/to/yourfoldername/ /var/www/yourfoldername

after that, gives the file permission to that folder.

 chmod 777 -R /home/path/to/yourfoldername

then try it in your browser as you done before.(remember 777 gives the full permission)


keyboard compose sequences with "dead_caron"

It's a diacritic for typing e.g. ǎ, and only available on certain keyboard layouts. The basic English (US) layout is not one of those, but dead_caron can be typed using the English (US, intl., with dead keys) keyboard layout:

Right Alt+Shift+. followed by Space => ˇ

Right Alt+Shift+. followed by 1 => ₁

Keyboard layouts are located in the /usr/share/X11/xkb/symbols directory. The US ones, for instance, are in the us file in that directory.

Edit:

If your goal is to type subscript numbers, while the keyboard layout you use does not include the dead_caron symbol, it's simpler to define a compose key and then do:

Compose followed by _ followed by 1 -> ₁

Compose followed by _ followed by 2 -> ₂

etc.


Mate Desktop can be installed with following :

sudo add-apt-repository "deb http://packages.mate-desktop.org/repo/ubuntu [UBUNTU VERSION] main"

sudo apt-get install mate-archive-keyring

sudo apt-get update

sudo apt-get install mate-core

sudo apt-get install mate-desktop-environment

** Replace [UBUNTU VERSION] with your Ubuntu version. Ex: saucy,raring etc.


Why doesn't Firefox/Chromium see my usb camera?

The camera shows up with devices /dev/video2 and /dev/video3. Both have no world permissions and only have permissions for owner (root) and the group video. Adding my user to the video group fixed the problem:
sudo usermod -a -G video $USER

That doesn't explain why Cheese worked fine, but both browsers now see the camera and offer it as an option.


I have found the answer to this problem by looking at How to install tp link WN822N to ubuntu?

This method successfully installed the adapter in Lubuntu 16.04. It appears that you have to re-install the driver each time the kernel is updated, which is quite often, but if you follow the instructions at the end and have retained the driver file, it is quite easy.


ATI move the unity bar to another screen using binary driver

As you can see, xrandr shows 3 displays.  The issue isn't with unity not moving the bar.  The issue is that I couldn't find a way in the amd binary driver gui to set the primary.

So we check for our active displays(in xrandr).  I see DFP 1, 3, and 4 are active.
Let's see 1:

Not how I want it.  Let's try 3:

Initially I thought I wanted it all the way on the left, but I think I like this the most.  We'll see.  Just to be thorough, let's take a look at 4:

And there you have it.  Put the unity bar on whatever screen you want with the ATI binary driver.

If you want this to hold through reboot, you need to add it to your start-up tasks.
If you want it to hold through sleep, you need to add a task to 99video


Wifi works from one boot drive, but disappeared from the other

Might be that USB on your system is flaky.

F.ex. the controller not running cleanly. The wiring not being clean any more. One of the connectors having a loose or cold contact.

I had a similar problem with one of my USB connectors, i.e. most of the time backups to the external disk would work but sometimes they'd abort because the filesystem would go read-only because of block device access errors.

If you do a lsusb then you can see a few things:
* is the wireless interface on the USB bus? Sometimes they are on an internal USB connection. That would point towards the hypothesis above.
* also often you have multiple USB buses in one laptop (sometimes USB3 capable buses vs. only USB2 capable ones). Try connecting the drive to the other bus if that helps.

Also, if you had a disk problem due to a flaky USB bus, then there should be traces in your log files, as f.ex. the filesystem of your external drive being forcefully re-checked on boot.

Also, have a look at /var/log/kern.log* and at dmesg. Can you see the system complaining painfully about any hefty problems?

One other hypothesis could be voltage problems. Your battery being flaky or all the devices drawing too much power. Which would result in most devices working correctly but some not getting enough voltage.


Can I install Ubuntu from a external hard drive?

This should be possible using unetbootin.

There is also this tutorial


Which packages is installed by default in Ubuntu?

To determine whether a package is included by default in a given Ubuntu installation, search for the package name in the manifest file of that Ubuntu release.
Examples

Searching for the ubuntu-desktop package in Ubuntu 14.04.2 64-bit manifest shows that ubuntu-desktop is included by default in the Ubuntu 14.04.2 64-bit ISO file.

Searching for the sysinfo package in the Ubuntu 14.04.2 64-bit manifest shows that sysinfo is not included by default in the Ubuntu 14.04.2 64-bit ISO file.

There is a link to the manifest file for Ubuntu 14.04.2 at the Ubuntu 14.04.2 LTS (Trusty Tahr) - Ubuntu Releases webpage.
Offline method
It is also possible to find whether a package is included by default in a given Ubuntu installation offline without an internet connection, if you have already downloaded the ISO file for that Ubuntu installation.

Browse to the ISO file for Ubuntu 14.04 if you have downloaded it, and open it with Archive Manager.

Extract the filesystem.manifest file which is located in the /casper directory.

Open the filesystem.manifest file in a text editor, like Gedit for example.

Search in the filesystem.manifest file for ubuntu-desktop, etc. the same way as in the previous examples.

Make a default.txt file containing a list of the package names of all the default packages with each package name on a separate line for easy searching from the terminal:
 cat filesystem.manifest | awk '{print $1}' | sort > default.txt