Wubi fails to start on an Acer Aspire 4750G

I faced this problem in my friend ACER laptop too.
It happens because windows 7 bootmanager is in a separate hidden partition with some wired configuration for restoration using factory image. WUBI mbr is in directory of some other partition. So the bootmanager of windows 7 couldn't find that and throwing that error.

Possible things you can do are
1) restore Windows 7 using your restoration disk or use ubuntu live to take backup.

Restore win 7

Use some partition manager/ disk management utility to create new free partition.
 Install ubuntu onto that using live cd OR usb.

                                     OR

Boot using windows disk to reinstall windows 7.
Use option complete install (not upgrade).
Delete 100MB partition and Windows 7 partition
(Don't delete RECOVERY partition if it is there).

Create a a partition for win 7.
Then click on install button in the wizard.
(Don't click just after deletion, it will again create the same thing as before)
 and then use wubi.

But in this process you will loose capability of one touch restore (or similar things)  if any.


System Monitor doesn't count memory currently assigned to the cache as used, top does.  free lists both figures.  System Monitor is generally more correct since Linux tries to use almost all free memory to cache disk files in the hopes it will do some good, and unused free memory is a waste.  It is freed immediately as needed, so for most purposes, can be considered free.


Is there a way I can have half my hard drive partitioned to NTFS?

Generally it's easiest for dual booting to install Windows first - this is because once you install Windows it'll over write the GRUB bootloader and not give you the option to boot into Linux.

It's just a recommendation though - you can easily repair GRUB using Rescatux boot disk, or just boot of Ubuntu Live USB and install\run boot-repair package.

Now for the half NTFS, in Ubuntu firstly install gparted:

sudo apt-get install gparted

Open up GParted, resize your partition by shrinking the available space to how big you want the NTFS partition to be.

You will be left with your Ext4 Ubuntu partition, and then a grey 'unallocated space'

Click on that unallocated space and make a new partition with it, select all the space free and select the option to format as NTFS.

When you go to install Windows, you can click the NTFS partition and choose to install there.

WindowsDualBoot

How to Partition Your Hard Drive for Ubuntu and Windows

Edit: As mentioned once you successfully install Windows you will lose access to Ubuntu on the other patition when booting, and as mentioned do a search for Rescatux or Boot-Repair for Ubuntu to restore GRUB


enabling auto completion for apt-get install in docker (ubuntu 14.04)

I know this is old, but I ran into it too.  It's clear what is failing with the help of debug mode in bash: set -x.

Once you get your into your docker container and apt install bash-completion, and edit your users .bashrc to source the right directory, and logout/login (basically follow the steps in the q/a you referenced.

The command that is failing is:

# apt-cache --no-generate pkgnames firefox
E: Could not open file  - open (2: No such file or directory)

The '--no-generate' in there should give you a clue what is going on (something, something, cache is missing).  If you run without it, you get back a list of packages.

This led me to search in some of my reference links with how this system is supposed to work, and eventually inspect the apt configuration:

root@edb76551d1dd:/var/cache/apt# apt-config dump |grep Dir::C
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "";
Dir::Cache::pkgcache "";

Notice that 'pkgcache' is empty.  Try that on a normal install (like a lxd container), and you will notice it is set.  This led me to the place that configuration information is stored, /etc/apt/apt.conf.d/.  On the docker container:

# grep cache *
[...]
docker-clean:Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";

You'll notice above that docker images are actively unsetting this value, to keep apt from storing the cache file locally (to reduce image size).  I commented out everything in that file, so the file now looks like:

# file: /etc/apt/apt.conf.d/docker-clean
#DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };
#APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };
#Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";

And now, things work (after running apt update once:

# apt update
[...]
# apt install firefox-d<tab>
firefox-dbg  firefox-dev

References

These helped me figure out how this system worked...

auto-completion does not work for "sudo apt-get install"
https://wiki.ubuntu.com/ReducingDiskFootprint
https://github.com/debops/ansible-php/issues/22


Intel HD 2000 video card only 640x480 in Ubuntu 14.04 LTS

You need to purge the intel graphics installer from your system using the following command in a terminal   --   sudo apt-get purge intel-linux-graphics-installer && sudo apt-get autoremove  --           Shut down system and restart.    If that does not fix the problem I recommend doing a fresh clean install of UBUNTU 14.04, after fresh install do not install the Intel graphics installer, that installer was only to be used in a couple of previous versions of linux and not to be used in UBUNTU 14.04, it can cause you alot of problems, also DO NOT install (mesautils), which can also cause you problems with resolution. After your fresh install, let UBUNTU install the correct driver for your system. Also when you copy and paste above command do not use the (--) in the command they are only there to seperate. I am also using a gateway DX 4860 computer which is a newer system but with the same i3 chip and onboard graphics and this worked for me.


Ubuntu 20.04 not booting on Raspberry Pi 4 (external SSD)

I'm not sure if this solution works for everyone but I tried the following:

Flashing the os on my external ssd attached via usb.
Flashing an "untouched" ubuntu 20.04.1 server image on a sd card.
Insert / attach both.
Hit power button.

My Pi 4 boots into the system installed on the usb storage device. lsblk shows that the sd card isn't mounted after successful boot.
When the sd card isn't inserted the boot process fails as described above.


Unable to dual boot windows 8.1 with ubuntu 14.04

If I am understanding your question, in order to boot to your "second" OS, whenever the computer initially starts up you need to go to your boot menu, I've never had a computer that automatically went to the boot menu so you have to ask it do that.

When your computer starts up it should have a message on the screen indicating which F-key it is to go to your boot menu. F12 is a pretty common one I believe.
After you get into the boot menu select the hard drive your OS is on and then a list of the available OSes should come up, select the one you want and you should be good to go.


Banshee never connects to a radio stream on the first try

I have encountered this problem in Banshee as well. I also use the daily builds (as of this past week or so again) - and in my experience it seems to mainly occur in the daily builds and not in the Stable release.

My guess to the cause

To my knowledge there is no real "fix" that you can apply, because it seems to be both a problem in Banshee and in the radio stations themselves. When I was still on Windows, this also used to happen with some radio stations. It seems to be a server side issue (partially), in that when you first try to connect, it fails and thus the music player marks it as unavailable (hence the x).

On the other hand, once the music player is told to try again, it finds the station - apparently after the server allots "space" to your player (that's just my guess).

The real answer:

I would suggest you simply wait on a fix from the Banshee developers, which will probably include having the player retry the station a few times. It is very unlikely that there is anything you can do on your end.

You could also try the stable build of Banshee, which seems to do better in this situation.

Alternate solution:

Another option may be to use another player, such as Clementine (for example), which may be able to play the station even if it reports itself as down at first (I have not tried this). You could use either a cron job or a timer application (there are numerous timer apps available) for the alarm functionality.


How can I find all PDFs from multiple zip files that contain the search term?

You can convert the PDF to text and then apply grep on that text:

#!/bin/bash
for z in *.zip
do
  zipinfo -1 "$z" |  # Get the list of filenames in the zip file
    while IFS= read -r f
    do
      unzip -p "$z" "$f" | # Extract each PDF to standard output instead of a file
        pdftotext - - | # Then convert it to text, reading from stdin, writing to stdout
        grep -q 1234 && echo "$z -> $f" # And finally grep the text
    done
done


How to use Ubuntu 12.10 from a USB stick in a Lenovo ideapad G580 with Windows 8?

I am also on a Windows 8 Lenovo ideapad (Z580). I don't know what is going wrong with yours, but I think you might be able to help me...
Does your Windows 8 still work after you unplug the USB stick? I want to use ubuntu but if it breaks my Windows 8 then I had better not...
Sorry I can't be more useful in answering your question...
How did you get Ubuntu onto the USB - I know you probably already know this, but try using PenDriveLinux and persistence mode. I haven't tried it but it's supposed to make the USB remember each session like on a normal pc.


Discovered that 'export as .pdf' works when using Metric paper sizes.

I drew on Arch C 18" x 24"

I set paper size on Current Drawing Prefeences to Custom, entered 18, 24.

Export as .pdf then functioned properly.


I found a solution...
when the dual boot grub menu appeared, highlight your ubuntu(linux) os using the cursors and then press e.
after that add the below code after quiet splash

acpi_osi=! acpi_osi='Windows 2009'

You have to type these text in every time you boot your ubuntu os. TO overcome this you have to edit your default grub using grub customizer application.

you can install it using following codes

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

After that open your grub customizer and open general settings tab and edit the kernal parameters as follows

quiet splash acpi_osi=! acpi_osi='Windows 2009'

Click here to view the sample image


Disable discrete graphics card permanently

Open a terminal and execute :

sudo nano /etc/default/grub

Add radeon.modeset=0 to the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

so that it reads : GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.modeset=0"

Save this change and update the GRUB configuration : sudo update-grub

Reboot the system, now you use the intel graphics and AMD is deactivated.


It depends. To run on a different architecture, your app will have to be compiled on that architecture, and written such that it will compile successfully, and not have issues. For compiled languages anyway. Interpreted languages may run from the same package, regardless of architecture, with similar considerations.

If you want to build applications which work across multiple architectures, you will have to take the differences between those architectures into consideration when developing the app, and build separate binaries for each architecture.


how do i shrink and divide the ubuntu partition after installing it alongside windows XP?

Back up your data first. Resizing your partitions usually goes without any problem, but there is always a small chance something will go wrong and you will need to restore from backup.
Boot the live, desktop CD.
Unmount your swap partition, either from gparted or from the command line.

sudo swapoff -a
Start gparted and reduced the size of your Ubuntu partition -> apply changes -> make a new data partition -> apply changes.
When you boot Ubuntu you may want to add the new partition into fstab.

If it is a ntfs partition, use the following options:

/dev/your_data_partition  /media/data  ntfs-3g auto,permissions  0  0

You can then set ownership and permissions with chown and chmod

See:

https://help.ubuntu.com/community/Fstab

https://help.ubuntu.com/community/FilePermissions


Installing issues | unable to open /dev/sda and /dev/sdb

Just a quick guess:
I know of IRST (intel rapid storage technology) causing problems with RAID installs.
Try testing whether or not your BIOS has IRST enabled. If so, try resetting/disabling it and create your RAID0 using ubuntu installation medium.


Brightness not working Ubuntu 15.04 on acer aspire 7715z

See https://askubuntu.com/a/604913/50254

Basically, do following:

 sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf

Add following lines

Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection

Save (CTRL+X) and reboot the system. Function keys plus arrows should now correctly adjust the backlight and you have 20 possible levels instead of only 4 levels supported by BIOS.


docker - problems with my minecraft server dont save files

In my case i just needed docker to run my server in background so that I can close the terminal without killing the server.
After googling and asking frinds I found "Screen" which works fine for me.
I installed jdk on my system and then I run this command:
screen -R -S mcserver
This commands creates the virtual terminal or, if it already exists opens it.
Then I can manage my server, close my PuTTY seassion or detach from the terminal and do other things without killing the server.

I know that there are other uses for docker but for my problem this works fine :)


best practices for dual-booting with Windows 10

Reinstalling Windows will override GRUB (bootloader) and you will have to reinstall GRUB. Your ubuntu files should stay intact given that you leave ubuntu partition(s) untouched.
So it makes sense to install Windows first then Ubuntu and let GRUB handle it from there


What happens if rsnapshot / rdiff-backup gets interrupted in the middle of a transfer?

My understanding is that...

rdiff-backup will detect the incomplete increment the next time it runs. It will delete the incomplete increment so that the backup location is the same as if the interrupted backup attempt had never been started.

rsnapshot is a little more complicated because its routine is more stepwise and varies depending on the use of the sync_first and use_lazy_deletes options.

If you use sync_first and rsnapshot sync gets interrupted, you can simply run rsnapshot sync again to straighten things out. If you accidentally run rsnapshot <backup level> at this point instead, the latest backup point will remain incomplete and will be carried through rotations.
If you don't use sync_first, you're just stuck with an incomplete backup point that is a hybrid of old and new version of files. Unless you manually reverse-rotate each backup point, the incomplete backup point will be carried through rotations.
In both cases, running rsnapshot <backup level> will cause the oldest backup point to be lost unless use_lazy_deletes is enabled.

Note that sync_first and use_lazy_deletes come at the cost of using more disk space.

A reminder/disclaimer: This should go without saying, but never just blindly trust others' advice on the internet. If you plan to use rdiff-backup or rsnapshot for something mission-critical, read every word of the manual and test, test, test everything yourself!


How do I append data to a binary file with an hex editor?

hexedit does apparently overwrite the entire file if you save any change; even if you were merely appending data.
Entering symbols (such as "<" ">") can be problematic as they represent hexedit commands.  To enter them as file content, use "tab" key to switch to hex editing and enter their hexadecimal representations ( 3c and 3e accordingly).  And as these are hardly the only keys like this, I'd advise you have an ASCII table handy anytime you are in a hex editor.
Many Linux admins will use the venerable "dd" when faced with bit-fiddling in binary files.  The following is an example of how to replace a 4 byte section of an 80 byte file of random numbers with zeros at a position 15 bytes into the file:
dd if=/dev/urandom of=file.dat bs=1 count=80 #create primary file
dd if=/dev/zero of=block.dat bs=1 count=4 #create replacement data
dd if=./block.dat of=./file.dat bs=1 count=4 seek=15 conv=notrunc #replace data

To "insert" data into a binary file using dd is not strictly practical as it involves relocating the second half of the binary file; an evolution that overwrites itself.
However, you can construct a third file that is a concatenation of the first half of your data file, the inserted data, and then the second half of your data file and produce the net effect:
# Define where the insertion will take place; the 25th byte
insertPoint=25
# Create new file with the first 24 bytes of data file
dd if=file.dat bs=1 count=$(expr $insertPoint - 1) > file2.dat
# Append insert data
cat insert.dat >> file2.dat
# Append rest of data file
dd if=file.dat bs=1 skip=$(expr $insertPoint - 1) >> file2.dat

It should be pointed out that binary files are often such because they are used by services or applications.  As such, care must be taken to ensure  you are not altering a file that is actively being used by some other process.


Why aren't any of my pings being returned?

Sometime over the past several years I have noticed that google domains (WITH THE ISP's I personally use) no longer respond to ICMP traffic which is how ping works.
I assume this is by design.

Can you ping your gateway?


Thanks a lot for helping!
After some more "digging" I came across the fact that Ubuntu has changed to Netplan for doing network configuration. So - I defined the interface using file
/etc/netplan/01-network-manager-all.yaml .
Everything is fine now...


Have you tried changing the brightness of the display itself? Look at this post for more help, it seems to be more along the lines of your problem which is likely a driver specific issue

stack related question


Ubuntu 16.04.2 and 16.10 screen goes black randomly for a second

The X server in 16.04.2 point release has been back-ported from 16.10. That must be why you're facing the same issue on both of them.

I had been experiencing a lot of random flickering as well, after the upgrade.

Removing the new X stack seems to have fixed it:

sudo apt remove xserver-xorg-core-hwe-16.04 xserver-xorg-input-all-hwe-16.04 linux-generic-hwe-16.04 xserver-xorg-video-all-hwe-16.04

However, ubuntu-desktop will also be removed!

So, you need to do the following straight away:

sudo apt install xserver-xorg-core

sudo apt install ubuntu-desktop xserver-xorg xserver-xorg-video-all xserver-xorg-input-all libgl1-mesa-dri libgl1-mesa-glx

Source


How do you rename the volume group that contains the root volume in LVM?

NOTE: Your distro may discourage editing /boot/grub/grub.cfg. If that is the case, this script may be a bad idea. Alternately, you may just be able to run grub-mkconfig to fix that. I haven't tested on those distros, so check your situation.

First, You need to know the volume group name may have a dash in it. If it does, than any use of the /dev/mapper/ reference will need to have two dashes. In 16.04, it defaults to having a "-vg" appended to the name so this should be assumed.

Second, you should know that messing this up can cause your system to be unbootable and result in having to boot from a rescue disk and fix stuff causing downtime. (aka: Don't do this in production.)

To do the actual rename use lvrename oldname newname.

After renaming you must edit both /etc/fstab and /boot/grub/grub.cfg to update the use of the name for any reference to your root and probably also your swap locations.

Additionally, you need to run this command to update the initramfs for all the kernels.

update-initramfs -c -k all

I use the following script to handle this when deploying a new template. Again, don't do this in production unless you have a high tolerance for downtime.

#!/bin/bash

# Must be run with root permissions
# sudo will be sufficient

if [ "$(id -u)" != "0" ]; then
   echo "This script must be run as root" 1>&2
   exit 1
fi

#Ask for new hostname $newhost
read -p "Enter new hostname: "
newhostname=$REPLY
oldhostname=$(cat /etc/hostname)

echo "Changing LVM names"
# ${var//-} syntax removes all dashes from the name simplifying the
# requirement to use a double-dash in some places to escape the dash
newvg=${newhostname//-}

# Find the volume group that root is in
vg=`lvdisplay -C|awk '$1=="root" {print $2}'`
if [[ ${vg} == *"-"* ]]; then
    #has dashes in current name
    vgrename ${vg} ${newhostname//-}
    vg=`echo $vg|sed "s/-/--/g"`
    sed -i "s/${vg}/${newvg}/g" /etc/fstab
    sed -i "s/${vg}/${newvg}/g" /boot/grub/grub.cfg
  else
    #no dashes in current name
    vgrename ${vg} ${newvg}
    sed -i "s/${vg}/${newvg}/g" /etc/fstab
    sed -i "s/${vg}/${newvg}/g" /boot/grub/grub.cfg
fi

update-initramfs -c -k all

If you have any improvements of this script, please share. I'm always looking for ways to improve and account for various edge cases.


Why you opened up the iso file with the archieve manager in the first place? Search for a tutorial on how to write it on a flash drive and then boot up from it, select Try Lubuntu and when you see the desktop click the Install Lubuntu icon. Follow the instactions and answear the prompts like a good person! Good Luck!


Will "full upgrade to ubuntu studio" harm unity?

From Community Help,

Install the following packages:-

sudo apt-get update && sudo apt-get install ubuntustudio-desktop ubuntustudio-audio ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video

And You can use both flavor without removing desktop and should not affect other desktop-environment.


How do I force apt-get to update the state of package versions?

Copy and paste sudo dpkg --configure -a into the Terminal.

Then paste sudo apt-get update && sudo apt-get upgrade -y

You can also try:
sudo apt-get install -f to fix broken dependencies.


Make terminal alias, to group video and audio setting changes, for using a/v receiver

I would possibly write a short bash script to include both. You have to know your displays' and sinks' names prior to writing it.

To see your displays use xrandr -q command,
to find your sinks use pacmd list-sinks command

The script

#!/bin/bash

function changes {
xrandr --output yourpcdisplay --same-as 2nddisplayname
pacmd set-default-sink "sinkname"
}
#xrandr will now mirror your displays, I guess that was the idea
#pacmd will set your default output sink as you name it

function reset {
xrandr --output 2nddisplayname --off
pacmd set-default-sink "sinkname"
}
#this time xrandr will switch off the second display

while [ 1 ]
do
echo "1 - make changes"
echo "2 - reset"
read -n1 answ
case $answ in
1) changes
   break
   ;;
2) reset
   break
   ;;
*) echo "not an option"
   break
esac
done

Now as you run the script, pressing 1 will make the desired changes and 2 will reset them. Run the script with its path or add it to $PATH environment variable. It's possible to create aliases too.

Hope this was even close to the solution you wanted.

NOTE changing the output sink via command line may only take effect if stream target device reading is disabled. It can be done by editing the corresponding line in /etc/pulse/default.pa to:

load-module module-stream-restore restore_device=false


Where is the Alpha 1 release of Kubuntu 12.04?

A simple search of Kubuntu+Daily and Kubuntu+12.04+Aplha+1 on a random search engine gives you the answer:

http://cdimage.ubuntu.com/kubuntu/daily-live/current/

It's a daily Image.

Alpha 1 was released 1 Dec. so it's Old and of no use now, daily images are newer. The next Alpha is to be released in Feb.

Kubuntu 12.04 Alpha 1 – 1/Dic./2011
Kubuntu 12.04 Alpha 2 – 2/Feb./2012
Kubuntu 12.04 Beta 1 – 1/Mar./2012
Kubuntu 12.04 Beta 2 – 22/Mar./2012
Kubuntu 12.04 RC – 19/Abr./2012
Kubuntu 12.04 Final Stable – 26/Abr./2012


Does running Office 2010 through Wine add a significant performance overhead?

You will be able, but it most likely will not fun. Excel running on Windows with this Hardware should be also quiet slow (at least from what I can imagine). Just give it a try. Alternatives could be LibreOffice Calc in about 95% of all cases.


Google search through the address bar always asks if I meant to go to http//(Whatever I searched)

Your DNS is telling your browser that its a website. I'm going to assume that you have the default DNS settings in place and you are using your ISP's DNS.

The quick fix is to change your DNS to Google's public DNS

Instructions found here

I'll also include the steps for Ubuntu here

In the System menu, click Preferences, then click Network Connections.
List item

To change the settings for an Ethernet connection, select the Wired tab, then select your network interface in the list. It is usually called eth0.
To change the settings for a wireless connection, select the Wireless tab, then select the appropriate wireless network.

Click Edit, and in the window that appears, select the IPv4 Settings or IPv6 Settings tab.
If the selected method is Automatic (DHCP), open the dropdown and select Automatic (DHCP) addresses only instead. If the method is set to something else, do not change it.
In the DNS servers field, enter the Google Public DNS IP addresses, separated by a space:

For IPv4: 8.8.8.8 and/or 8.8.4.4.
For IPv6: 2001:4860:4860::8888 and/or 2001:4860:4860::8844

Click Apply to save the change. If you are prompted for a password or confirmation, type the password or provide confirmation.

If your distribution doesn't use Network Manager, your DNS settings are specified in:

/etc/resolv.conf


How to block an ip address after several wrong login attempts

I would suggest taking a look at fail2ban[1]. It is primarily designed to prevent brute force SSH breaking attempts, but there are many additional modules[2] that have been written that work great for WordPress and other WebApps.

[1]http://www.fail2ban.org/wiki/index.php/Main_Page

[2]http://www.techrepublic.com/blog/linux-and-open-source/use-fail2ban-to-blacklist-ip-addresses-and-alert-you-to-attacks/

Best,
Lev


Why is there only 37.5 GB showing on my 1 TB hard drive?

You have a quite small root partition for system files and applications, most of the disk space is in your home partition for user data.

You will either need to clean up the root partition mainly by uninstalling applications, or also removing log and cache files and such things, or you have to modify your partition layout and shrink your home and grow the system partition. The latter will be a better long-term solution, as you're not going to need less system space in the future, naturally.

To modify partitions, you will have to boot into a live system, as partitions can usually not be resized while they are mounted. To do this, you can boot from the Ubuntu installer USB/DVD and select "Try Ubuntu without installing". This gives you a live desktop where you can use GParted to edit your partitions.

As your home partition is nearly empty currently and it does not look like you'll fill it up soon, I'd be generous and give the root partition around 200GB. Even 100GB should be more than necessary, but you have the space anyway.

Note that any partitioning or file system resize operation always comes with a small risk of data loss or corruption, so making a backup of your data is advisable.


where went ubuntu(installed along side windows) after reinstalled windows?

The first thing I usually do in such "surprising" situations is to boot the box from a live CD. This enables me to look around and see what happened, save data to an external disk etc. before trying to solve the problem.

In your specific case, if you still can find the ubuntu partition, reinstalling grub2 should do the trick.


Ubuntu 10.10 and below

Sticky note comes with ubuntu installation.
To use sticky notes,right click on your panel and then choose Add to Panel...Drop down and select sticky notes and then click on Add.

After adding the sticky note application on your panel, right click on the sticky Notes application and choose New note.

Now you can see sticky note in your Desktop.


Is there a quick one liner or script to install LAMP stack on a freshly installed Ubuntu 20.04 server?

The fastest way is:
apt install lamp-server^


It looks like the Ondřej Surý PPA has now been updated for Ubuntu 20.04 LTS. php5.6 works fine after upgrading from 18.04 to 20.04 with do-release-upgrade  -d

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"

$ sudo apt-get install php5.6-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5.6-cli is already the newest version (5.6.40-
27+ubuntu18.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

$ /usr/bin/php5.6 -v
PHP 5.6.40-27+ubuntu18.04.1+deb.sury.org+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies


Unable to switch to NVidia-375 on Ubuntu 16.04

I recently had a similar issue after updating Ubuntu version to 17.10 and trying to set up NVIDIA drivers.

Symptoms were:

Indication of NVIDIA driver selected in additional drivers GUI window, but lack of nvidia-smi
Empty NVIDIA X Server Settings window (like on your screenshot)

Here's what I did:

Attempted to switch a driver from terminal: sudo apt install nvidia-375 (375 is not really critical, can be any other reasonable revision)
Carefully read the output of the command, noticed lines: Module build for kernel 4.13.0-16-lowlatency was skipped since the
kernel headers for this kernel does not seem to be installed.
Installed missing headers sudo apt-get install linux-headers-$(uname -r)
Tried to install driver from terminal again (maybe rebooted prior to that and after headers installation)

Maybe in your case the reason is different, but I would still suggest same overall approach:

try running the failing command in terminal rather that from GUI (with maximum verbosity level if possible)
carefully observe the output
in case of any errors/warnings - make a research and try to fix them


How to get a terminal with networking capability? How to recover after breaking NVIDIA driver?

At the recovery menu, select "network - enable networking"

Select that option, and confirm the request to remount the root filesystem in read-write mode. After some status text flashed by, you should arrive at the menu again, but with network drivers loaded. From there, select the option root to "drop to [a] root shell prompt."

Once that is done you can try running apt-get commands.


A recent update seems to have fixed the problem.


What are the IP addresses and port numbers for Ubuntu update sites?

I use the US archive mirrors at us.archive.ubuntu.com, the security updates at security.ubuntu.com, and also pull in extras (extras.ubuntu.com) and PPAs (ppa.launchpad.net).

Unless you specifically state which mirrors you are on, it's impossible to figure out what IP(s) you'll use.  However, if you are restricting outbound connectivity, then you'll have to open the outgoing ports depending on what exactly you use as the apt transfer method.  (HTTP (TCP 80), HTTPS (TCP 443), FTP (TCP 21), or others.)  If you use a proxy, there's additional configurations you'll need to run as well.

Below is my /etc/hosts entries for the US archive mirrors, the extras site, the security repos, and the PPAs site, which was last updated a couple months ago (and still works here).  (They're in my /etc/hosts site to try and mitigate DNS poisoning potentiality).  Note that I do not have outbound rule restrictions, but these IP addresses work on my locked-down VLAN and have "ALLOW" rules in place on my network border firewall to allow outbound from the Ubuntu systems I need updating from my locked-down area.

  NOTE: These may be out of date! ALWAYS do the DNS lookup yourself to get the updated IP lists!

91.189.91.13    us.archive.ubuntu.com
91.189.91.14    us.archive.ubuntu.com
91.189.91.15    us.archive.ubuntu.com

91.189.91.14    security.ubuntu.com
91.189.91.15    security.ubuntu.com
91.189.92.181   security.ubuntu.com
91.189.92.184   security.ubuntu.com
91.189.92.190   security.ubuntu.com
91.189.92.200   security.ubuntu.com
91.189.92.201   security.ubuntu.com
91.189.92.202   security.ubuntu.com
91.189.91.13    security.ubuntu.com

91.189.95.83    ppa.launchpad.net

91.189.92.152   extras.ubuntu.com

If you want to use a different archive mirror, I can go hunting, but it'd be dependent on the region you're in.  (I pulled these IPs from Google's DNS servers, so they're not likely to be poisoned DNS entries)


Can I get the linux-crashdump debain and its dependencies for ubuntu 14.04 image.

I believe that you are asking for the location of the linux-crashdump deb files, and their dependencies (I don't have enough rep to comment on your question and ask for clarification).  These deb files for ubnuntu can be found at ftp://ftp.ubuntu.com/ubuntu, if you are looking to get them from the console.

If you are searching through these on your browser, a good resource is http://packages.ubuntu.com/

Here is a link to the linux-crashdump package for 14.04: http://packages.ubuntu.com/trusty/linux-crashdump

You can see here that it depends on grub-pc and kdump-tools (which probably also have dependencies...), and you can download the deb files for both of these here as well.


Can I temporarily hide indicators to reduce clutter?

Currently there is no such an option in Unity and as far as I've seen Ubuntu 11.10 doesn't have it either.


How to copy area screenshot to clipboard on Kubuntu 18.04?

tl;dr
Just create a shortcut for spectacle -rbc.
Explanation
Kubuntu uses Spectacle for screenshots. If you run spectacle -h you can see all the options it supports. We need these options:
-r, --region        Capture a rectangular region of the screen
-b, --background    Take a screenshot and exit without showing the GUI
-c, --clipboard     In background mode, copy screenshot to clipboard

So just create a shortcut for spectacle -rbc. If you prefer the GUI to popup, then create a shortcut for spectacle -r. In GUI mode you still have a button that copies the capture to the clipboard and Ctrl+C works too!
Tutorial

Launch Custom Shortcuts by one of these ways:

Press Alt+Space and search for "Custom Shortcuts".
Open the start menu (Super) and search for "Custom Shortcuts".
Open the start menu (Super) and launch Settings > System Settings  then go to Workspace > Shortcuts > Custom Shortcuts.

Select "Screenshots" (if it doesn't exist create it under Edit > New Group) then Click Edit > New > Global Shortcut > Command/URL.
Name it and give it a comment like "Take Rectangular Region Screenshot".
Set the shortcut in the "Trigger" tab to Shift+PrtScr, Ctrl+Shift+PrtScr or whatever you want.
In the "Action" tab paste the command: spectacle -rbc or spectacle -r for the GUI version.

Press "Apply" and you are ready to use your shortcut.

You can do the same for "Take Active Window Screenshot" just use the command spectacle -abc.
Usage
After pressing the shortcut, you can do your rectangular selection by clicking and dragging, then take the screenshot with Enter or by double clicking the selected area. There are other actions you can do at this stage that will be displayed at the bottom of the monitor:

After taking the screenshot with spectacle -rbc a notification will be shown saying that "a screenshow was saved to your clipboard". With spectacle -r Spectacle will open and you can use its buttons or Ctrl + C.


Installing (Dual-Booting) Windows 10 on a system with Ubuntu 16.04.2 installed (UEFI)

After lot of work I confirm that the following method is much easier and yielding for new users of Linux environment. Warning: Not following these steps correctly can result into Damage to your important files. It is recommended to Make a backup before you proceed. Also make sure you have an internet connection all the time.

1. Make space for Windows

Open GParted and allot at least 20 GB to Windows. But I would recommend 35 GB. Also note the partition name. Example: sdaX

2.Install Windows

Now install Windows 10 in your new partition that you have just created.

3.Mount /boot

If you boot you can observe that your system boots directly to Windows. This is because Windows Boot loader does not recognize Ubuntu. So lets install GRUB.

Load up from your Ubuntu live CD, and then run these commands, Only on of them.(make sure to hit enter after each line)

If you DO NOT have a separate /boot partition:

sudo mount /dev/DEVICENAME_FROM_STEP_ONE /mnt
 sudo rm -rf /boot
 sudo ln -s /mnt/boot /boot

DEVICENAME_FROM_STEP_ONE : replace this with your drive number in step one

If you have a SEPARATE /boot partition:

sudo mount /dev/DEVICENAME_FROM_STEP_ONE /boot

4.Install the bootloader

Again in the terminal, run these commands:

sudo apt-get update
 sudo apt-get install grub-efi-amd64
 sudo grub-install /dev/sda
 sudo umount /boot

Note that there is no digit after sda

Now just restart, everything should just be fine :).


Dropdown system menu on top right is bigger and messed up

After an annoying amount of a few trials, I found out that the monitors' configuration was responsible for this misbehavior. I solved by deleting the file in ~/.config/monitors.xml and rebooting. This removes all your monitor configuration (resolutions & co.), which may be annoying if you use your laptop with many different monitors configurations.

Possibly, a single line in that file was causing the problem, but I couldn't easily identify it so I decided to remove all the file. I wasn't experiencing any further issues while using the system.


How do I install wireless adapter for ubuntu 21.04 on Macbook pro 2019

Please open a terminal Ctrl+Alt+t and run the terminal commands:
sudo dmesg | grep brcm
sudo dmesg | grep -i sdio

When you find nothing that relates to your wireless device or, more likely, nothing at all, you will see that there is currently no working driver that covers your device.
A Google search finds a few sites that suggest that the correct driver is brcmfmac; however, the driver doesn't claim the device. Confirm with:
modinfo brcmfmac | grep 4488

As was mentioned in the comments, we suggest a USB wireless device until a Linux driver is released. This site may be helpful in finding one that is supported without having to locate, compile and install an out-of-kernel driver: https://ubuntuforums.org/showthread.php?t=2397914


go to Language icon on the up right of your desktop screen, then click on "Text Entry Setting ..." at the down right of the opening window, choose using custom font.

or

system setting> Text Entry> Using Custom Font:

Done!


Cannot use https (secure connection) on Firefox

Make sure that port 443 is open and enabled on your server. This is the standard port for https communications.

If this doesn't solve your problem its better to connect to Firefox support

I've seen there problems like this but only for specific website and the solution was to remove some Addons so its better to tell them your peoblem in details if my answer doesn't help you


It seems you have more then 1 vim on your system.

  ./snap/core/6964/usr/share/vim/vimrc

control it with snap list and dpkg -l | grep vim


My system boots directly into Windows 8 and I can't see the grub

try running the Boot repair disk to restore your grub


'Activities overview' is not working properly; it cuts out windows

I had the same issue and found that it was caused by the "Workspaces to Dock" extension. Disabling this extension fixed the issue. Unfortunately it is no longer maintained.


Virtual Box bridged adapter find real machine IP

If you want to check it from windows machine run this command

pathping <IP_from_VM>

For linux I don't know the alternative command that works like that.


Create a dir on scratch with same name as in pwd directory

You should ensure that $jobid has a value which can be used as a directory name.


Can I get Windows 10 back that has gone while I am rebooting?

I believe you have lost the boot entries after Ubuntu was installed. If you still got a bootable Linux USB stick, run a rescue image (or whatever's called command line environment), run

$ efibootmgr -v

(if I'm right, Ubuntu is booting successfully?)
Check if there's any Microsoft OS entry. If not, create one according to efibootmgr man page, and look for your XP and 10 efi file paths on your ESP (EFI System Partition it's called on Windows) to be linked while creating entries. After that, read somewhere about adding Microsoft OS entries to your GRUB loader.


Is there a keyboard shortcut for "save link as" in firefox or chrome?

You can restore the old Alt-click "Save Link As" functionality in Firefox:

Open a new tab in Firefox. In the Firefox address space, type:

about:config

Click the "I'll be careful, I promise" prompt.  Type

browser.altClickSave

in the Search space.  Double-click on the browser.altClickSave line to change the value from false to true.  Close the about:config tab.

Now when you Alt-click on a valid download link it will open the Save As explorer screen.  All you need to do is set the correct location and press Enter.  Once you set the download location, if you are downloading a lot of files into the same location, all you need to do is press enter.  This will greatly speed up your download process.

I did the above process in Windows 7.  It should also work in Ubuntu.


I had the same problem.

I fixed it applying this patch to the python code on my disk. The fix will be gone if there's an update that does not include the fix from upstream, but it's good enough for me.

To apply the patch, edit the file /usr/share/cinnamon/cinnamon-settings/modules/cs_power.py:

sudo nano /usr/share/cinnamon/cinnamon-settings/modules/cs_power.py

Find the line

self.up_client = UPowerGlib.Client()

and change it to

self.up_client = UPowerGlib.Client.new()


How to always show all breadcrumbs in nautilus?

From my experience, I don't think that is possible. The only interesting thing that you can do is use the F3 to open another side file and F9 to hide/show file tree.


Need to mount a drive before samba kicks in at boot. How to?

This sounds like the basic task of mounting drives in etc/fstab, which is fairly simple.  This is where your other partitions are mounted, such as swap, /home if separate, etc.

This file is a simple text file that you edit using something like gedit or vim, such as sudo gedit /etc/fstab.

By the way, you don't really mount drives, you mount partitions (actually filesystems, but thinking of it as partitions is usually fine).  Do you know how to use the mount command?


TPM configuration fails on a Thinkpad T510 due to missing kernel modules

Try running depmod -a and then repeat your modprobe commands.

According to the man modprobe:

  modprobe expects an up-to-date modules.dep file, as generated by depmod. This file lists what other modules each module needs (if any), and modprobe uses this to add or remove these dependencies automatically.

As soon as this file was updated, use modprobe command without paths and .ko extension:

modprobe module_name


Ubuntu 16.04, no sound, no audio output available in sound settings

I had the same issue after installing pulseaudio-equalizer. The pulseaudio daemon kept failing to start and this was in the syslogs:

cat /var/log/syslog* | grep -i pulse

[pulseaudio] module.c: Failed to load module "module-ladspa-sink" (argument: "sink_name=ladspa_output.mbeq_1197.mbeq master=alsa_output.pci-0000_00_1b.0.analog-stereo plugin=mbeq_1197 label=mbeq control=-8.2,-7.6,7.2,6.3,3.0,-1.0,-5.6,-6.3,-4.5,-4.0,1.1,1.2,5.3,7.3,8.2"): initialization failed.
[pulseaudio] main.c: Module load failed.
[pulseaudio] main.c: Failed to initialize daemon.
[pulseaudio] main.c: Daemon startup failed.

Pulseaudio-equalizer had modified the audioplus configuration and it couldnt start due to one of the new settings. So I cleaned the ~/.config/pulse and after reboot the sound was back.


I don't think you can do this - you would lack a reference in the main .qml to the XmlListModel

Simply use qmlscene from the console while in your project directory to see the output


gnome-control-center in VirtualBox Ubuntu live-cd guest?

From what I found in: #18239 (No Mouse visibility on VM -> fixed in releases after 6.0.4) – Oracle VM VirtualBox:

  In "VirtualBox > Settings > Display" for the guest, I changed the "Graphics Controller" to "VBoxSVGA" [...]

  VBoxSVGA is the wrong option, as it's used for Win guests. Are you sure you didn't change it to VMSVGA, which is the proper one for Linux guests?

I shut down the guest VM, changed the display to VMSVGA, booted guest again, and now gnome-control-center starts in full.


Get working directory of terminal, not the script

Are you changing directories inside your script?  In bash and in the script, I think pwd actually should be returning the working directory of that user, not the location of the script itself.

e.g.

echo "touch make_a_file" > make_a_file.sh
~/ $ ls
make_a_file.sh
~/ $ mkdir -p make/some/directories
~/ $ cd make/some/directories
~/make/some/directories $ sh ../../../make_a_file.sh
~/make/some/directories $ ls
make_a_file

as you can see here, from ubuntu 12.10 with the current version of bash, I created a script, ran it from a different directory (from inside the make/some/directories path), and the new file was created within the directory I was in... not the location of the script.  Be sure you're not moving anywhere in your script or show some code to see what is going on.


Can't Dual Boot Ubuntu 12.04 and Windows 7 on Sony Vaio S 15 (2012)

The following is a rip off from:

Sony VAIO with Insyde H2O EFI bios will not boot into GRUB EFI

This was done for a SONY VAIO S15 (2012) with 12.04 and it seems that everything works OK for me (like suspend from both OSes)

Make sure the machine is booting in UEFI mode not Legacy
Boot from Ubuntu US stick or CD
Make sure you selected the install the boot loader into Ubuntu partition
Install Ubuntu as usual.
Reboot but boot again from the stick

sudo mkdir -p /mnt/efi_partition
sudo mount -t vfat /dev/sda3  /mnt/efi_partition
sudo cd /mnt/efi_partion/EFI/Microsoft/Boot
sudo cp bootmgfw.efi bootmgfw.efi.old
sudo cp /mnt/efi_partition/EFI/ubuntu/grubx64.efi bootmgfw.efi
sudo reboot

It should boot Ubuntu.
Now that it works, you must edit grub configuration to boot Windows 7

emacs /etc/grub.d/40_custom

Add at the end

menuentry "Windows 7" {
    set root='(hd0,gpt3)'
    chainloader /EFI/Boot/bootx64.efi
}

Then :

sudo update-grub
sudo reboot


Playonlinux shortcut error with Office 2010 on wine

Follow instructions from this link:

https://gist.github.com/raelgc/4ccc023830bfd12c0227

It worked on Ubuntu 18.10, for both MS Office 2007 and 2010


What is better: install a package from a package repository or from a DEB archive?

In this case it probably does not matter as the deb package will ask you to add the repository. Generally speaking, a repository is better than a deb package, as it is more often updated and dependencies are handled better.


Your device is not supported by amdgpu-pro. It was a mistake to install it. You need to use radeon driver that is installed by default.

If you have problems with that driver, you can install Ubuntu 14.04 and use the fglrx-updates proprietary driver.


If you are faceing this problem then you should reinstall compiz in your machine. To do that open a terminal by pressing Ctrl+alt+t and type

sudo apt-get purge compiz*

Type

cd $HOME && rm -rf .compiz/ .config/compiz/

Type

sudo add-apt-repository ppa:compiz/ppa && sudo apt-get update

Type

sudo apt-get upgrade && sudo apt-get install compiz

Type

sudo reboot

It will reinstall compiz.

Please check you have latest video driver installed in your system. or install it from

  System Settings> Additional driver


I cannot remove/install software due to some dependency issue

Try this command:

sudo apt-get clean

then try to install it again:

sudo apt-get -f install


Not sure if I am supposed to answer my own question but I have managed to solve the problem.

Since the error on the log mentioned a note named "New Note Template" I created a note with that name through the ubuntu one web site and then tried to sync again. This time tomboy detected the conflict and offered some options to solve it. I chose to rename the local note and then it synced all my notes correctly!


Banshee is the best. Amazon, ubuntu one, and ITUNES IMPORT plugins to start.


Password protecting a private NTFS folder

You have to use encryption. Password protecting a folder, as you have discovered, it useless. Take a look at TrueCrypt - a cross-platform encryption tool.


'RNETLINK answers: Operation not supported'. (fresh Ubuntu, fresh Wireguard)

I face the same problem.... but I fix that by luck when I tried to install it with source compile in Wireguard website. I run the following and it is resolved:

$sudo apt-get install libmnl-dev libelf-dev linux-headers-$(uname -r) build-essential pkg-config


Proxy settings not working in ubuntu12.04 but working fine with windows 7

Please verify that the line in the /etc/apt/apt.conf is in the following format:

Acquire::http::proxy "http://username:password@yourproxy:80";

This is including the ; on the end, and the quotes on each end of the address.
You could shorten it to the following when no authentication is necessary.

Acquire::http::proxy "http://yourproxy:80";


How do I Configure/Use Hyperterminal in Ubuntu 14.04?

HyperTerminal appears to be a Windows-Only program - HyperTerminal Website

In Ubuntu, there are many great built-in applications that replace the functionality of HyperTerminal, though, as well as great additional applications that are available for free in the Ubuntu repositories.

For instance, ssh and telnet are already immediately available for remote terminal login to devices over a network.

curl and wget are also installed by default and are great for running other types of network interactions, especially those involving http protocol.

minicom can easily be installed from the Ubuntu Repositories and is a fairly popular application for accessing/utilizing com ports.

In case you are unfamiliar or just not yet completely comfortable with using a linux terminal for all of this, you can refer to the Ubuntu Community Wiki page for Using The Terminal.

There are many Linux terminal emulators to choose from and install in case you don't like Ubuntu's default terminal emulator. Most (if not all) of those can be installed from Ubuntu's Software Center. I personally favor terminator.

It might be an adjustment to launch and run all of these applications from CLI instead of a GUI, but you will most likely grow to prefer this method over the GUI of HyperTerminal over time, that is if you don't immediately fall in love with using CLI for all of it.


The problem is that gimp failed to create the gimp-2.8 directory in your /home/user/ directory. Just create the hidden directory this way;

mkdir .gimp-2.8

and then start gimp


I've linked you in comments a software I googled, I didn't try it.

Alternatively, and that is what I do daily, you can use okular or evince in presentation mode, but it's for PDF so you need to convert them first.
For that, you can script it easily (replace with ppt instead of pptx if you need)
for f in *.pptx ; do libreoffice --headless --convert-to pdf "$f" ; done


System goes slow randomly. Continues to run well when moving with mouse

It could be that you have set up a background process to run when the computer is idle. It could also be that your screensaver is not playing well with your configuration, and it's trying to load and slowing down the computer in the process.


UnECM isn't working, returning "command not found"

I just tested it out, here's your issue: You should be using ecm-uncompress

How I found the issue:

dpkg -L [PACKAGE NAME] shows all files that were installed by a certain package. In this case, with dpkg -L ecm it shows:

/.
/usr
/usr/bin
/usr/bin/ecm-compress
/usr/share
/usr/share/doc
/usr/share/doc/ecm
/usr/share/doc/ecm/changelog.Debian.gz
/usr/share/doc/ecm/copyright
/usr/share/man
/usr/share/man/fr
/usr/share/man/fr/man1
/usr/share/man/fr/man1/ecm-uncompress.1.gz
/usr/share/man/fr/man1/ecm-compress.1.gz
/usr/share/man/man1
/usr/share/man/man1/ecm-uncompress.1.gz
/usr/share/man/man1/ecm-compress.1.gz
/usr/bin/ecm-uncompress

Chiefly of note there are the ones in the /usr/bin directory:

/usr/bin
/usr/bin/ecm-compress
/usr/bin/ecm-uncompress

These are the only 'commands' that were installed by the package (aside from man ecm-uncompress ecm-compress


how to install english edition software with apt-get?

Change the LANGUAGE variable temporarily for that command:

LANGUAGE=en sudo apt-get install xyz


Can't download from Update Manager or Software Center

Do you have an active internet connecting? Check your connecting 1st and ensure it's working properly.Then open Ubuntu software centre and cancel if any repair window pop-up.

Go to

  Edit > Software Source

in Ubuntu software Tab select

  Download From to Main Server

Then Close Everything. Press ctrl+alt+t to open a terminal. Type

sudo apt-get update

sudo apt-get upgrade

if upgrade failed then try with these

sudo apt-get -f install


Make sure wakeonlan is installed, it is not installed by default

sudo apt-get install wakeonlan


Having worked with MySQL since the hairy days of 3.something, I have found that the best place to have environment variables set is in a separate .cnf file. With modern versions of the database (everything from 5.3 up), these can be written to the /etc/mysql/mysql.conf.d/ directory. This allows me to have a directory structure like:
drwxr-xr-x 2 root root 4096 Aug  6 23:08 ./
drwxr-xr-x 4 root root 4096 Aug  6 23:08 ../
-rw-r--r-- 1 root root 1434 Jun 27  2019 mysqld.cnf
-rw-r--r-- 1 root root  155 Jun 27  2019 z-application.cnf
-rw-r--r-- 1 root root 2893 Jun 27  2019 z-innodb.cnf
-rw-r--r-- 1 root root 1464 Jun 27  2019 z-replication.cnf

The configuration files are read alphabetically, which explains the ugly z- prefix, and the purpose of the files are pretty self-explanatory:

File
Contains

application.cnf
Application-specific settings, such as maximum number of connections, log expiration times, etc.

innodb.cnf
InnoDB-specific settings, often tweaked over time for the hardware the server is running on

replication.cnf
Replication-specific settings.

This allows me to have a bunch of .cnf template files with the basics pre-populated and ready to be used/customised for a new MySQL installation.

A little background into the reasoning behind this practice ...
MySQL reads configuration files in a very particular order depending on the platform it is installed on. You can ask MySQL for the name and the order of the config files with:
mysqld --help --verbose

This will spit out (for me) 3,000+ lines but, up near the top, you'll see this:
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
The following groups are read: mysqld server mysqld-8.0

For me, there is no /etc/my.cnf file. There is, however, a /etc/mysql/my.cnf file. In that file is just two lines that matter:
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/

With this, MySQL will go searching for all .cnf files in /etc/mysql/conf.d/, then all files in /etc/mysql/mysql.conf.d/, reading them into the engine in alphabetical order. I prefer to have my variables loaded after all of the default MySQL files are read because it reduces the chance of having my values overwritten with a default. So, because /etc/mysql/mysql.conf.d/ comes after /etc/mysql/conf.d/, my files go in there.
They have never been over-written or modified during an update.
Hope this gives you something to explore.


Bluetooth keyboard random disconnect and reconnect

I also have this issue, and after a little searching it appears that this is an unsolved bug in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1385113

However it looks like it has something to do with interference between different BlueTooth devices. The problem is really prominent when I'm using my BT keyboard and my BT headphones together, but if I connect the headphone via cable, the problem disappears. So try that, and hopefully the underlying bug will be fixed soon.


Unable to reach self hosted Ubuntu gitlab's login page from web browser remotely

I found the problem. Is the port forwarding setting not done probably.

I should port forward 80 to 192.168.1.108 port 80.

Now my server is working perfectly.

Thanks


Difference between /usr/local and ~/.local

/usr/local is a place where software usable by all users can be installed by an administrator.

~/.local/bin is a place where a user can install software for their own use.

There is some messiness in the history of the directory structure used in different distros and communities, but this covers the basic differences.


Everything is in the man page.

Anyway, -p is the switch you are looking for

wget -p www.example.com/index.html

However, I guess it will not be able to do some clever things (involving javascript). It depends on your page.


Grub Menu will appear if you press and hold

  Shift

during loading Grub, then select the distro you want to boot into.

More info HERE


There was an update of the NordVPN package today, now it's working fine again.

If you installed via the nordvpn repo, you can run this:

sudo apt update && sudo apt upgrade


I need help choosing hardware upgrades to get Ubuntu 12.04 3d to run

The requirements for Unity are HERE.

Also HERE you have a list of hardware requirements for the Ubuntu 10.04, not much should change 12.04.


the installation will fail if you just convert the package to deb...
it's not so hard. you download it, extract it and inside that folder you open a terminal and do what we all do:

./configure
make
sudo make install

It's only 3 commands.
As for firefox , there is a ppa that does your life easier.
If you still want to go for the manual procedure and do it yourself , then you must understand "how to".
All apps executables go to /usr/bin , the /opt folder is just a folder to remember where the manually installed apps are. For example you could just install an app on desktop and link the executable there.
So in other words you move the app in /opt and the executable in /usr/bin and link it to the app. It's simple already and can't be simpler.


How to scan an entire network using Nmap?

Scan a network and find out which servers and devices are up and running:

nmap -sP 192.168.1.0/24

Scan a single host:

nmap 192.168.1.2

Scan multiple IP addresses or subnets:

nmap 192.168.1.1 192.168.1.2 192.168.1.3

Scan by excluding a host:

nmap 192.168.1.0/24 --exclude 192.168.1.10

That will exclude the host while scanning.

Fast nmap scanning for a network range:

nmap -F 192.168.1.10/24

To see packets sent and received received using nmap:

nmap --packet-trace 192.168.1.10

Scan for a port:

nmap -p 22 192.168.1.10

Scan for multiple ports:

nmap -p 80,22,21,111

Scan all ports using nmap:

nmap -p "*" 192.168.1.10

I hope that will help you. If you need to know more just run the command:

man nmap


Based on your comments, I have a short answer.

The command to start MyEclipse in a terminal is

/opt/MyEclipse/myeclipse

or in your desktop file

Exec=/opt/MyEclipse/myeclipse

The complete desktop file

Open or create the desktop file

nano ~/.local/share/applications/opt_eclipse.desktop

and add the lines below

[Desktop Entry]
Type=Application
Name=MyEclipse
Comment=MyEclipse Integrated Development Environment
Icon=/opt/MyEclipse/icon.xpm
Exec=/opt/MyEclipse/myeclipse
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=MyEclipse


How to make Thunderbird automatically check mail on login?

Do you mean you want to auto-start TB when you log in?

Open the Unity dash, and launch "Startup Applications".
Click "Add", on the right.
Enter name "Thunderbird".
Enter command "thunderbird".
Click "Add" to close the dialogue box.

Unfortunately, I don't know of any way to get it to start in the background, and just update the mail notifier - that would be nice.


Why Nautilus can not format Bootable USB?

Nautilus uses some tools under the hood, and one of those tools may have problems with some partition tables and or file systems.
It is a good idea to use a dedicated tool like gparted to create or edit the partition table and file systems (alias formating).
Some versions of gparted has problems with the iso 9660 file system, that you get, when you clone an Ubuntu iso file to a USB pendrive or memory card. When that happens you can use mkusb to wipe the first megabyte or restore it to a standard storage device,

help.ubuntu.com/community/mkusb


TeamViewer is usually installed on Ubuntu using *.deb package. To uninstall it, run:

sudo apt remove teamviewer

If you also want to remove the package’s configuration (and you likely want if you are experiencing problems), use the following command instead:

sudo apt purge teamviewer

Then reinstall the *.deb file using apt, gdebi or similar method.

However, reinstalling might not solve your issue. If it doesn’t, please ask a new question and provide more details like what happens when you try to launch it. Try launching from the Terminal and check if any messages appear in the Terminal.


I am a new user, I can not comment, so I try to answer.

If you install a new version of GLIB: it means you are upgrading your old version. So you won't face any problem later.
If you want to install GLIB version 2.0 (you did not say which version you want to install), run this command: sudo apt-get install libglib2.0-dev
sudo apt-get autoremove --purge <libglib_version_to_remove>: it will remove GLIB and all its dependencies.

BUT: do not remove the older version if you want to use a new one because, as I said, if you install a new one then Ubuntu will upgrade your old version, simply.


Is there a software that allows people to have different passwords?

You should elaborate on you true intentions. If you are trying to setup a local file share that you can edit and others can read then simply set the permissions of those files to readonly for others. If you are setting up an online file share like Dropbox then the process is the same.


Error: Unable to read database "/var/lib/vnstat/eth0": No such file or directory

The default interface is defined in the /etc/vnstat.conf file:

$ head /etc/vnstat.conf
# vnStat 1.13 config file
##

# default interface
Interface "eth0"

# location of the database directory
DatabaseDir "/var/lib/vnstat"

# locale (LC_ALL) ("-" = use system locale)

Although you could change it there, a possibly better way is to create your own ~/.vnstatrc file and modify that:

cp /etc/vnstat.conf ~/.vnstatrc

then use an editor of your choice to change Interface "eth0" to Interface "enp1s0" in the local copy.

See man vnstat.conf for full details.


Chrubuntu IS a plain vanilla Ubuntu installation as far as I can tell after a couple of weeks of daily usage. I'm using it with the MATE desktop; I am not a big fan of Unity, but it runs very, very well. I've installed some pretty demanding games (Bastion, Portal, Half-Life 2), and they play at full speed. I did install video upgrades for the Sandy Bridge Celeron from the  ubuntu-x-swat PPA, and I have very few complaints about this $200 computer which did not come with a Windows tax.


I think the problem you're experiencing stems from the fact that you're downloading a package manually and instead of using apt-get to install it, you're using dpkg, which doesn't automatically resolve the dependencies and doesn't install them before the deb package.

Try first installing the package dpkg complains about:

sudo apt-get install xdg-utils

and then install the Chrome deb package with dpkg, the same way you tried earlier.


Normally for many laptop manufacturers they put windows as the default OS, so once you upgrade your motherboard or BIOS system, it will redirect to the windows boot as default boot. In this case, you'd better enter the bios at start up, and put ubuntu UEFI first, or if the ubuntu boot doesn't appear in the menu, maybe you should change the boot option as "legacy first". Remember to save your setting and you can reboot and re-enter the bios to make sure that ubuntu is now the default boot OS, because I've seen computers that are stubborn and requires you to configure more than one time. Until you next time when you see that ubuntu is the default OS, I think then everything is OK .


The solution I came up with is DBUS events.

I first run dbus-monitor to see what events will trigger when monitor goes/wakes from sleep:

signal time=1515274499.244468 sender=org.freedesktop.DBus -> destination=:1.394 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string ":1.394"
signal time=1515274499.244502 sender=org.freedesktop.DBus -> destination=:1.394 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string ":1.394"
signal time=1515274559.337480 sender=:1.6 -> destination=:1.2 serial=29015 path=/org/gnome/Mutter/IdleMonitor/Core; interface=org.gnome.Mutter.IdleMonitor; member=WatchFired
uint32 440
signal time=1515274559.337878 sender=:1.2 -> destination=(null destination) serial=3288 path=/org/gnome/SessionManager/Presence; interface=org.gnome.SessionManager.Presence; member=StatusChanged
uint32 3
signal time=1515274559.338267 sender=:1.2 -> destination=(null destination) serial=3290 path=/org/gnome/SessionManager/Presence; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.gnome.SessionManager.Presence"
array [
dict entry(
string "status"
variant uint32 3
)
]
array [
]
signal time=1515274569.389778 sender=:1.6 -> destination=(null destination) serial=29018 path=/org/gnome/Shell; interface=org.gnome.Shell.Extensions; member=ExtensionStatusChanged
string "auto-move-windows@gnome-shell-extensions.gcampax.github.com"
int32 2
string ""
signal time=1515274569.398929 sender=:1.6 -> destination=(null destination) serial=29019 path=/org/gnome/Shell; interface=org.gnome.Shell.Extensions; member=ExtensionStatusChanged
string "clipboard-indicator@tudmotu.com"
int32 2
string ""
signal time=1515274569.399633 sender=org.freedesktop.DBus -> destination=:1.6 serial=5195 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string "org.kde.StatusNotifierWatcher"
signal time=1515274569.399660 sender=org.freedesktop.DBus -> destination=(null destination) serial=850 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string "org.kde.StatusNotifierWatcher"
string ":1.6"
string ""
signal time=1515274569.404274 sender=:1.6 -> destination=(null destination) serial=29022 path=/org/gnome/Shell; interface=org.gnome.Shell.Extensions; member=ExtensionStatusChanged
string "ubuntu-appindicators@ubuntu.com"
int32 2
string ""
signal time=1515274569.442137 sender=:1.6 -> destination=(null destination) serial=29025 path=/org/gnome/Shell; interface=org.gnome.Shell.Extensions; member=ExtensionStatusChanged
string "ubuntu-dock@ubuntu.com"
int32 2
string ""
signal time=1515274569.455035 sender=:1.6 -> destination=(null destination) serial=29027 path=/org/gnome/ScreenSaver; interface=org.gnome.ScreenSaver; member=ActiveChanged
boolean true
signal time=1515274569.657300 sender=:1.6 -> destination=:1.42 serial=29037 path=/org/gnome/Mutter/IdleMonitor/Core; interface=org.gnome.Mutter.IdleMonitor; member=WatchFired
uint32 491
signal time=1515274569.657404 sender=:1.6 -> destination=(null destination) serial=29038 path=/org/gnome/Mutter/DisplayConfig; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.gnome.Mutter.DisplayConfig"
array [
dict entry(
string "PowerSaveMode"
variant int32 3
)
]
array [
]
signal time=1515276608.243100 sender=:1.6 -> destination=:1.2 serial=29039 path=/org/gnome/Mutter/IdleMonitor/Core; interface=org.gnome.Mutter.IdleMonitor; member=WatchFired
uint32 489
signal time=1515276608.243573 sender=:1.2 -> destination=(null destination) serial=3291 path=/org/gnome/SessionManager/Presence; interface=org.gnome.SessionManager.Presence; member=StatusChanged
uint32 0
signal time=1515276608.243843 sender=:1.2 -> destination=(null destination) serial=3292 path=/org/gnome/SessionManager/Presence; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.gnome.SessionManager.Presence"
array [
dict entry(
string "status"
variant uint32 0
)
]
array [
]
signal time=1515276608.244032 sender=:1.6 -> destination=:1.42 serial=29040 path=/org/gnome/Mutter/IdleMonitor/Core; interface=org.gnome.Mutter.IdleMonitor; member=WatchFired
uint32 494
signal time=1515276608.270459 sender=:1.6 -> destination=(null destination) serial=29042 path=/org/gnome/Mutter/DisplayConfig; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.gnome.Mutter.DisplayConfig"
array [
dict entry(
string "PowerSaveMode"
variant int32 0
)
]
array [
]
signal time=1515276623.523917 sender=:1.6 -> destination=:1.42 serial=29043 path=/org/gnome/Mutter/IdleMonitor/Core; interface=org.gnome.Mutter.IdleMonitor; member=WatchFired
uint32 491
signal time=1515276623.554451 sender=:1.6 -> destination=(null destination) serial=29047 path=/org/gnome/Mutter/DisplayConfig; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.gnome.Mutter.DisplayConfig"
array [
dict entry(
string "PowerSaveMode"
variant int32 3
)
]
array [
]
signal time=1515276668.529836 sender=:1.6 -> destination=:1.2 serial=29048 path=/org/gnome/Mutter/IdleMonitor/Core; interface=org.gnome.Mutter.IdleMonitor; member=WatchFired
uint32 440
signal time=1515276668.530236 sender=:1.2 -> destination=(null destination) serial=3293 path=/org/gnome/SessionManager/Presence; interface=org.gnome.SessionManager.Presence; member=StatusChanged
uint32 3
signal time=1515276668.530565 sender=:1.2 -> destination=(null destination) serial=3295 path=/org/gnome/SessionManager/Presence; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.gnome.SessionManager.Presence"
array [
dict entry(
string "status"
variant uint32 3
)
]
array [
]
signal time=1515279067.394398 sender=:1.6 -> destination=:1.2 serial=29051 path=/org/gnome/Mutter/IdleMonitor/Core; interface=org.gnome.Mutter.IdleMonitor; member=WatchFired
uint32 498
signal time=1515279067.394982 sender=:1.2 -> destination=(null destination) serial=3296 path=/org/gnome/SessionManager/Presence; interface=org.gnome.SessionManager.Presence; member=StatusChanged
uint32 0
signal time=1515279067.395139 sender=:1.2 -> destination=(null destination) serial=3297 path=/org/gnome/SessionManager/Presence; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.gnome.SessionManager.Presence"
array [
dict entry(
string "status"
variant uint32 0
)
]
array [
]
signal time=1515279067.395662 sender=:1.6 -> destination=:1.42 serial=29052 path=/org/gnome/Mutter/IdleMonitor/Core; interface=org.gnome.Mutter.IdleMonitor; member=WatchFired
uint32 496
signal time=1515279067.414904 sender=:1.6 -> destination=(null destination) serial=29054 path=/org/gnome/Mutter/DisplayConfig; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.gnome.Mutter.DisplayConfig"
array [
dict entry(
string "PowerSaveMode"
variant int32 0
)
]
array [
]
signal time=1515279076.828255 sender=:1.6 -> destination=(null destination) serial=29063 path=/org/gnome/Shell; interface=org.gnome.Shell.Extensions; member=ExtensionStatusChanged
string "ubuntu-dock@ubuntu.com"
int32 1
string ""
signal time=1515279076.829775 sender=org.freedesktop.DBus -> destination=(null destination) serial=851 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string "org.kde.StatusNotifierWatcher"
string ""
string ":1.6"
signal time=1515279076.829812 sender=org.freedesktop.DBus -> destination=:1.6 serial=5215 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string "org.kde.StatusNotifierWatcher"
signal time=1515279076.829824 sender=:1.6 -> destination=(null destination) serial=29066 path=/org/gnome/Shell; interface=org.gnome.Shell.Extensions; member=ExtensionStatusChanged
string "ubuntu-appindicators@ubuntu.com"
int32 1
string ""
signal time=1515279076.841923 sender=:1.6 -> destination=(null destination) serial=29067 path=/org/gnome/Shell; interface=org.gnome.Shell.Extensions; member=ExtensionStatusChanged
string "clipboard-indicator@tudmotu.com"
int32 1
string ""
signal time=1515279076.844396 sender=:1.6 -> destination=(null destination) serial=29068 path=/org/gnome/Shell; interface=org.gnome.Shell.Extensions; member=ExtensionStatusChanged
string "auto-move-windows@gnome-shell-extensions.gcampax.github.com"
int32 1
string ""
signal time=1515279076.851323 sender=:1.6 -> destination=(null destination) serial=29069 path=/org/gnome/ScreenSaver; interface=org.gnome.ScreenSaver; member=ActiveChanged
boolean false
signal time=1515279076.896958 sender=:1.6 -> destination=(null destination) serial=29218 path=/StatusNotifierWatcher; interface=org.kde.StatusNotifierWatcher; member=StatusNotifierItemRegistered
string "/"
signal time=1515279076.921110 sender=:1.38 -> destination=(null destination) serial=2735 path=/org/gnome/evolution/dataserver/CalendarView/1887/93; interface=org.gnome.evolution.dataserver.CalendarView; member=complete
array [
string ""
string ""
]
signal time=1515279076.924727 sender=:1.34 -> destination=(null destination) serial=2701 path=/org/gnome/evolution/dataserver/CalendarView/1870/92; interface=org.gnome.evolution.dataserver.CalendarView; member=complete
array [
string ""
string ""
]
signal time=1515279077.686970 sender=:1.6 -> destination=(null destination) serial=30014 path=/StatusNotifierWatcher; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.kde.StatusNotifierWatcher"
array [
dict entry(
string "RegisteredStatusNotifierItems"
variant array [
string ":1.66/org/ayatana/NotificationItem/software_update_available"
]
)
]
array [

I first tried to go for org.gnome.Mutter.IdleMonitor, but uint32 values were constantly incrementing, not sure why?

I settled with StatusChanged, here is the final script:

#!/bin/bash
# Turn keyboard backlight on/off using https://github.com/MatMoul/g810-led

g413-led -a FFFFFF # always turn on on startup (it turns off for some reason on reboot)

dbus-monitor --session "type=signal,interface=org.gnome.SessionManager.Presence,member=StatusChanged" |
  while read x; do
      case "$x" in
        *"uint32 3"*) g413-led -a 000000;;
        *"uint32 0"*) g413-led -a FFFFFF;;
      esac
  done

Screensaver events can also work:

g413-led -a FFFFFF # always turn on on startup (it turns off for some reason on reboot)

dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver'" |
  while read x; do
      case "$x" in
        *"boolean true"*) g413-led -a 000000;;
        *"boolean false"*) g413-led -a FFFFFF;;
      esac
  done

Of course, you can put any command you wish. The advantage of the first script comparing to this one is that it lights up keyboard before user login which makes it easier to type password.

The only downside is that keyboards lights up after user login, not on keypress, but I can live with that.

I was experimenting with:

dbus-monitor --session "type='signal',interface='org.freedesktop.DBus.Properties',path='/org/gnome/Mutter/DisplayConfig'" | grep 'variant int32' |
  while read x; do
      case "$x" in
        *"variant int32 3"*) g413-led -a 000000;;
        *"variant int32 0"*) g413-led -a FFFFFF;;
      esac
  done

but it didn't work for some reason, probably grep issue.


How to check if screen session is running?

Take advantage of the PPID (Parent PID) environment variable, and start with

$ ps -fp$PPID
UID        PID  PPID  C STIME TTY          TIME CMD
w3       19305 19304  0 00:00 ?        00:00:00 SCREEN
+w3@aardvark:~(0)$

or,

ps -fp$PPID | head -n 2 | tail -n 1 | egrep -q SCREEN
screen_is_running=$((1 - ${PIPESTATUS[-1]}))
# screen_is_running == 1 for yes, 0 for No, -1 for egrep error

Of course, this won't work if you've spawned, exec'ed, nohup'd or something, and made your $PPID not SCREEN.

If that's the case, you could build something with pgrep, pstree, egrep that could follow the $PPID chain back (stop when $PPID is 1).


The linpack.gcda file should get created when you execute the program that you compiled with the profile flags. Since you didn't supply an output file name (using the -o option) on the gcc command line, you will need to execute it as a.out. For example:

$ gcc -fprofile-arcs -ftest-coverage -O2 hello.c
$ ls hello.*
hello.c  hello.gcno
$
$ ./a.out
Hello world!
$ ls hello.*
hello.c  hello.gcda  hello.gcno
$


USB file transfer with Samsung Note 9 sort of works for me, but it takes ages and ages to transfer large files or large numbers of files...

There is a solution... It is a stand alone app on Linux. Read about it at the link below. I hope this helps.

https://www.omgubuntu.co.uk/2017/11/android-file-transfer-app-linux?fbclid=IwAR3Hts7EEa5iCQ5ccfR1xFYC1-kGYbu0WxAPA2GhT6TIfrfGLhNKOleWO3I

In Ubuntu 18.04 the file app will mount it immediately after pluuging the phone to the computer USB port. Click on the unmount icon next to the phone label that appears on the bar on the left, so only the label remains, then open this app. It works wonderfully when it is opened as the only mtp device app connected. You cannot view or run files from it, but file transfer is very speedy, indeed.


Creating a link to an application that is installed but does not show up in Applications folder

In Ubuntu, shortcuts to applications are text files with .desktop file extention. These are usually provided with the application if you installed it via the Software Center or apt. However, if you installed it using a different method, you most likely have to create the .desktop file yourself.

First of all, you have to know the location of the executable you want to run. If you don't, but can start it by typing its name in the terminal, the command which will tell you its absolute path (e.g.which firefox).

Now open your favorite text editor (e.g. gedit). A simple .desktop file may look like this:

[Desktop Entry]
Type=Application
Name=<application_name>
Exec=/path/to/executable

Replace the name of the application and the path to the executable. Save the file as * .desktop (e.g. slic3r.desktop) to your Desktop.

If you want it to appear in the Dash, place a copy in

/usr/share/applications (visible for every user)
~/.local/share/applications (visible for your user only)

Additional Notes:

If the executable is in the $PATH variable (i.e., you can run it by typing its name in the terminal), you don't have to provide the absolute path in the .desktop file. However, I'd recommend using the absolute path.
There are also applications that provide a GUI for creating starters, for example Arronax and MenuLibre


Yes it maybe harmful in both cases whether booting windows with Ubuntu hibernated or booting ubuntu with windows hibernated. Ubuntu is not able to mount windows partitions when windows is hibernated, if you force mounting windows partitions ,it may cause harm.

check these links for more info.

https://superuser.com/questions/39532/hibernating-and-booting-into-another-os-will-my-filesystems-be-corrupted

Unable to mount Windows (NTFS) filesystem due to hibernation


"ssh_exchange_identification: read: Connection reset by peer" intermittently this error is occurring for Ubuntu 14.04.5

A similar question was asked here: https://superuser.com/questions/856989/ssh-error-ssh-exchange-identification-read-connection-reset-by-peer .

tl;dr Check your Firewall and make sure you are not getting blocked.

I recently ran into this issue. I later found out that my firewall was seeing the traffic as an ssh brute force attack and blocked it.
After adding a firewall rule it was resolved.

Note:

My ssh traffic came from Jenkins. The firewall was reading all ssh traffic from that server as an ssh brute force attack and started blocking requests.
This issue arose when our on premise Jenkins server started talking to our newly cloud hosted source management server.


Java package does not exist (package org.bouncycastle.cms)

It does appear that you have a problem in that the system cannot find the source as directed in the file.  However, one does not normally "install" a jar file.

I would suggest that you first make sure you have the latest java and java runtime engine packages installed.  You need the first to program and the second to run a java program on your computer.

Then you should be able to download the jar file and use it appropriately.

Hope that helps.


Virtualbox does not run: NS_ERROR_FAILURE

The most simple decision, that i found:

enter into the folder /home/$user/.VirtualBox/
find there file VirtualBox.xml-prev, this is backed up the configurations of Virtual Box
delete VirtualBox.xml
and change name VirtualBox.xml-prev to VirtualBox.xml.


How to install Gnome Terminal 3.32 in Ubuntu 18.04?

GNOME terminal is available neither as snap package or flatpak. GNOME terminal 3.32 is packed in 19.04 (Disco Dingo). While it can be installed via APT using either of the two methods listed below but I'll suggest you to upgrade to 19.04 if you really want to use GNOME terminal 3.32. It'll be better under GNOME 3.32 (in 19.04) instead of GNOME 3.28 (in 18.04).

Typical method: This method simply includes downloading debs from Ubuntu Packages for 19.04 (Disco) and installing them using dpkg.

Download necessary packages:

wget https://mirrors.edge.kernel.org/ubuntu/pool/main/g/gnome-terminal/gnome-terminal_3.32.1-1ubuntu1_amd64.deb
wget https://mirrors.edge.kernel.org/ubuntu/pool/main/g/gnome-terminal/gnome-terminal-data_3.32.1-1ubuntu1_all.deb
wget https://mirrors.edge.kernel.org/ubuntu/pool/main/v/vte2.91/libvte-2.91-0_0.56.1-1ubuntu1_amd64.deb
wget https://mirrors.edge.kernel.org/ubuntu/pool/main/v/vte2.91/libvte-2.91-common_0.56.1-1ubuntu1_all.deb
wget https://mirrors.edge.kernel.org/ubuntu/pool/main/g/gnutls28/libgnutls30_3.6.5-2ubuntu1_amd64.deb
wget https://mirrors.edge.kernel.org/ubuntu/pool/main/n/nettle/libhogweed4_3.4.1-1_amd64.deb
wget https://mirrors.edge.kernel.org/ubuntu/pool/main/n/nettle/libnettle6_3.4.1-1_amd64.deb
wget https://mirrors.edge.kernel.org/ubuntu/pool/main/p/pcre2/libpcre2-8-0_10.32-5_amd64.deb
wget https://mirrors.edge.kernel.org/ubuntu/pool/main/p/p11-kit/p11-kit-modules_0.23.15-2_amd64.deb
wget https://mirrors.edge.kernel.org/ubuntu/pool/main/p/p11-kit/libp11-kit0_0.23.15-2_amd64.deb

Install using dpkg:

sudo dpkg -i gnome-terminal_3.32.1-1ubuntu1_amd64.deb \
gnome-terminal-data_3.32.1-1ubuntu1_all.deb libvte-2.91-0_0.56.1-1ubuntu1_amd64.deb \
libvte-2.91-common_0.56.1-1ubuntu1_all.deb libgnutls30_3.6.5-2ubuntu1_amd64.deb \
libhogweed4_3.4.1-1_amd64.deb libnettle6_3.4.1-1_amd64.deb \
libpcre2-8-0_10.32-5_amd64.deb p11-kit-modules_0.23.15-2_amd64.deb \
libp11-kit0_0.23.15-2_amd64.deb

Install any dependency if left:

sudo apt install -f

Dirty method: This method can be used if you are too lazy to solve dependency issues of GNOME terminal by yourself and want APT to do that for you.

Add Disco's main repository to sources.list.

echo -e "deb http://archive.ubuntu.com/ubuntu/ disco main" | sudo tee -a /etc/apt/sources.list

Update and install GNOME terminal

sudo apt update
sudo apt install --no-install-recommends gnome-terminal -f

Remove Disco's main repository.

sudo sed -i '$ d' /etc/apt/sources.list

The main repository for Disco should be removed immediately after installation since if you try to upgrade your system, it might break your system horribly.

After upgrading GNOME terminal,"Open in terminal" option in nautilus will be lost due to dependency issues of nautilus-extension-gnome-terminal  unless nautilus is also upgraded to 3.32. Remove that extension too if you want to stick to that Nautilus version.

sudo apt autoremove nautilus-extension-gnome-terminal


I have no idea what you've done or how you have installed firefox as there is no standard desktop file. Maybe you have removed Firefox earlier. Therefore re-install firefox

sudo apt-get install --reinstall firefox

Then, if still not the correct icon appears, remove the starter and add the starter again.


I had the same problem and changing the VPN server wasn't an option, out of my control.

I chased my tail with lots of solutions, edited and reverted many config files, and tried setting the phase 1 and phase 2 algorithms in the Network Manager VPN setup, IPSec config. None of it worked until I used ppa:nm-l2tp/network-manager-l2tpapt to install a sane version:

sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt update
sudo apt install network-manager-l2tp network-manager-l2tp-gnome
sudo apt upgrade

After installing that, updating network-manager-l2tp and rebooting, the VPN connection "just worked". My config still had the overrides for phase 1 and phase 2, so maybe that helped too. I also had disabled autostarting of xl2tpd, so in case those changes help, here they are:

VPN Settings → Configure → Identity → IPSec Settings:

Phase 1: aes128-sha1-modp2048!
Phase 2: 3des-sha1

Those were selected based on posts about it being the most likely combination and verified by running ike-scan:

sudo ike-scan <vpn hostname or ip>

Disabling xl2tpd:

sudo systemctl disable xl2tpd


SUDO and sound, how to make them work together

I've solved this before by running pulseaudio in "system mode" where it is available to all users instead of just the user running the desktop.  You can read more about it here:

http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide

Note that there's some good reasons not to do this:

http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide

Unfortunately I don't know of any other way to solve the problem on a system running pulseaudio.


Graphics Problem on Ubuntu 12.10 Gnome 3

The workaround I use is to restart the environment: Alt+F2 and then r.


From file system root dir:

sudo find / -name "backup*" -mtime +0

From user dir:

find ~/ -name "backup*" -mtime +0

-mtime +0 matches any file whose mtime difference is at least 24 hours. Tf you want mtime to count calendar days, and not n-24 hour periods from now, use -daystart: -daystart -mtime 0 is means today and -daystart -mtime +0 means before today.

Also you can find only files with adding -type f or only dirs -type d.


PDF reader with all search results for ubuntu

I don´t know if there is another Reader which offers this feature but installing adobe acrobat reader should not be a problem, how did you try to install it?

sudo apt-get install acroread

should work!


Can I disable Alt+Drag for some applications (under KDE/Kwin)?

I do not think it can be solved the exact way you propose.

But you can "trap" the mouse pointer into the virtualbox window.
You need to use a key to release the mouse before you can use it again on the desktop.
See su.SE: How do I trap the mouse pointer within a VirtualBox Guest OS?

Another solution could be to replace the modifier key Alt by Super,
 which is often the "Windows" key.


How do you enable the CM4IO boards RTC (Real time clock) in Ubuntu 20.10 server (5.8.0-1013-raspi)

Page 6 of the data sheet for this board has this handy tidbit:

To enable the I2C bus to the RTC you will need dtparam=i2c_vc=on set in config.txt. The RTC then will be on i2c-10 address 0x51 (7bit address)

The config.txt file they're referring to can be found in /boot/firmware.
Hope this gives you what you need


I solved the problem by changing from the mirror of my country to the main server as the place to download updates from. I guess Canada just hasn't updated their repositories yet. So no, the 3.17 kernel is not needed for Netflix, just make sure that you have all the latest updates for your computer.


Copy a file and keep the same timestamp of the original file

You can preserve the timestamp of the original file when copying using cp by adding the -p or --preserve option:

   -p     same as --preserve=mode,ownership,timestamps

   --preserve[=ATTR_LIST]
          preserve the specified attributes (default: mode,ownership,time‐
          stamps), if  possible  additional  attributes:  context,  links,
          xattr, all

So to preserve only the timestamp

cp --preserve=timestamps oldfile newfile

or to preserve mode and ownership as well

cp --preserve oldfile newfile

or

cp -p oldfile newfile

Additional options are available for recursive copying - a common one is cp -a (cp --archive) which additionally preserves symbolic links.


That card needs an updated driver for its internal chipset, available from Ubuntu's repositories, for which you'll need to connect to your router via a wired network temporarily.

Unplug the wireless card from your machine, and connect your machine to your router with a wired network cable.

Wait a few seconds, and check you can browse to a website (e.g. www.ubuntu.com), to ensure you have a connection to the Internet.

To install the updated driver, click Applications -> Accessories -> Terminal, and type the following commands at the $ prompt, pressing Enter after each one and supplying your password if prompted:

Code:

sudo apt-get update

sudo apt-get install linux-backports-modules-wireless-generic

Note when entering passwords the characters you type are not echoed back to screen, even as asterisks - this is normal Linux command-line behaviour.

When finished on the command line, type the following to close the terminal:
Code:
exit
Unplug your ethernet cable.

Close all your windows and restart the computer. This will make sure the older version of the driver gets unloaded from memory, so the new version can be loaded in its place.

When logged back in, insert your wireless stick.

Wait about 30 seconds.

Left-click the Network Manager icon on the panel at the top of the screen (it will be near the left-side of the clock) and you should see a list of available network names to connect to.

Click the one corresponding to your access point and you'll be prompted for any keys required to connect your network.

If you can't see any access points, right-click the network manager icon and make sure the option Enable Wireless is both present and ticked.

A message will appear briefly in the top-right hand corner of your screen when the connection is established.

Try browsing to a different website to check you have a working route out onto the Internet, and you should be all set.

In future, you should just be able to plug in the device, and if it doesn't connect to your access point automatically just left-click the network manager icon and pick the access point from the list.

SCR:
http://ubuntuforums.org/showthread.php?t=1566639


Ubuntu 14.04 doesn't load anything after login specific user

Create another user, do gksudo nautilus in the terminal, navigate to your messed up user's home, remove the fonts and the .fonts folder if it didn't exist already before, reboot and see if the fonts were the issue. Otherwise it'll be something else causing the problem.


15.10 to 16.04 Upgrade installation interrupted

Try this:

A. Boot your PC with the Ubuntu Live DVD/USB.

B. Open a terminal,Press Ctrl+Alt+T

C. Use fdisk utility to list the partitions on a hard drive.

    sudo fdisk -l

Suppose it informs that / is /dev/sda1, continue running:

sudo umount /dev/sda1
sudo fsck -y /dev/sda1
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
nano /etc/resolv.conf

In the open file paste these lines:

nameserver 208.67.222.222
nameserver 208.67.220.220

Ctrl+O Save File

Ctrl+X Close nano

Continue running:

nano /etc/apt/sources.list

In the open file delete content and paste these lines:

deb http://archive.ubuntu.com/ubuntu/ xenial main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security multiverse main universe restricted
deb http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse main universe restricted
deb http://archive.ubuntu.com/ubuntu/ xenial-backports multiverse main universe restricted
deb http://archive.canonical.com/ubuntu xenial partner

Ctrl+O Save File

Ctrl+X Close nano

Continue running:

dpkg --configure -a
apt-get -f install
apt-get -m install
apt-get update
apt-get install --reinstall ubuntu-desktop
apt-get dist-upgrade
apt-get autoremove
apt-get clean
exit
sudo reboot


Go to Nautilus:

and in the View drop-down menu, click zoom out or just press Ctrl+-


Cannot start nautilus or any other app via gksu anymore

Try to do rm ~/.gksu.lock it's safe to remove that file, it will be recreated when you be successful at doing gksu again.


You need to be sure of the Wine settings you are changing: on PlayOnLinux you can have several versions of Wine running, and each version can have different settings.


Why is the font size in google-chrome smaller than firefox on the same system?

Each browser can fix the default font size.

In Firefox you will find these settings in Preferences -> Preferences -> content -> Fonts & Colors

In chrome (pulled from their website) :

Click the wrench icon tools menu on the browser toolbar.
Select Options (Preferences on Mac and Linux).
Click Under the Hood.
In the "Web Content" section, use the "Font size" menu to make adjustments.


Login and install packages when no DM is installed

Press Ctrl+Alt+F1 to get to the first console. You should be able to login there.

I would try to reconfigure lightdm from this console.

sudo dpkg-reconfigure lightdm

Try installing if its missing

sudo apt-get install lightdm

If this doesnt help, check the desktop manager configured in this file

/etc/X11/default-display-manager


How can I get rid of these NO_PUBKEY errors?

User mchid answered a similar question stating that:

apt can only handle 40 keys in /etc/apt/trusted.gpg.d . 41 keys and you will get the GPG error "no public key found" even if you go through all the steps to add the missing key(s).
Check to see if there are any unused keys in this file from ppa(s) you no longer use. If all are in use, consider removing some ppa(s) along with the corresponding keyfiles in /etc/apt/trusted.gpg.d

So I went to /etc/apt/trusted.gpg.d and deleted 2 GPG keys (now with 39 left in /etc/apt/trusted.gpg.d). sudo apt-get update worked OK and now I can upgrade any package.


What is "~" (home directory) defined as for programs running before login using LightDM?

It would be easier just to manually specify the absolute path (using no relative symbols like ~) for the script.

Instead of declaring the location as ~/path/to/program.sh, make it /home/username/path/to/program/sh.

Edit: If you don't have the ability to change the defined path, the ~ location is /root by default. You can move your script to this path with

sudo mv ~/path/to/program.sh /root/


Ubuntu 15.04 Gnome 3 mouse pointer incorrect size upon boot

I had the same problem on my XPS 13 but using Unity desktop environment.

You can try the workaround that solved the problem for me. Edit your x11-common file:

sudo nano /etc/X11/Xresources/x11-common

And add the following line to the end of the file :

export XCURSOR_SIZE=48


Keyboard issues on white Core2Duo MacBook (2008)

You could switch to ISO layout instead of default by entering following in a terminal:

echo 0 | sudo tee /sys/module/hid_apple/parameters/iso_layout

Note: rebooting will reset this to default.

If everything works like you expect after this command, you can set it permanently using

echo options hid_apple iso_layout=0 | sudo tee -a /etc/modprobe.d/hid_apple.conf

followed by

sudo update-initramfs -u -k all

and eventually reboot your Mac.


You could try reconfiguring with dpkg-reconfigure x11-common

Source: unmodified /etc/X11/Xwrapper.config files on 3 different 14.04 LTS systems. Note that 16.04 doesn't have this file.

Side note: the same source on my systems includes the line: allowed_users=console rather than allowed_users=anybody

Related source found later: http://karuppuswamy.com/wordpress/2010/09/26/how-to-fix-x-user-not-authorized-to-run-the-x-server-aborting/


How can I make the Ubuntu see LaTeX fonts installed through TeXLive?

I think you need to let fontconfig know about those directories via a configuration file.

My understanding is that you should have a file named texlive-fontconfig.conf somewhere in the directory tree. Otherwise it's here.

Create the file

/etc/fonts/conf.d/09-texlive-fonts.conf

and give it the contents of texlive-fontconfig.conf.

More reading:

https://tex.stackexchange.com/questions/257231/using-the-tex-live-fonts-in-xelatex


VirtualBox shared folders are owned by root in Lubuntu guest

On Ubuntu Server host execute these commands :
sudo chmod -R 777 /path-to-shared-folder/shared-folder

sudo chown -R user1:user1 /path-to-shared-folder/shared-folder

On Lubuntu Desktop guest execute this command :
sudo usermod -G vboxsf -a user2

Restart the guest system for changes taking effect.
Note : user1 = your host user name  | user2 = your guest user name