Why isn't tilde recognised as home folder in this case?

Quoting, even with double quotes, suppresses tilde expansion.

~ can be used as a path to your home directory in contexts where tilde expansion is performed. ~ is not like . or ... There aren't actually any entries in your filesystem called ~ that serve as alternate names for your home directory.

When ~ appears by itself or as the first component of a path, your shell expands it into an absolute path to your home directory. But this does not happen when ~ is quoted. Double quotes provide a weaker form of quoting than single quotes, which is important to some other kinds of expansion, such as parameter expansion (which expands $HOME). But even double quotes suppress tilde expansion.

Thus ~ was not expanded in this command, where it is quoted:

ls "~/.wine/drive_c/tools/Family Tree v2.0"

Fortunately, it is permitted to write an argument some of whose parts are quoted and some of whose parts are not. So you can put ~/ before the quotes, and still quote the rest:

ls ~/".wine/drive_c/tools/Family Tree v2.0"

Or, since parameter expansion is performed even in double quotes--but not in single quotes--you can use:

ls "$HOME/.wine/drive_c/tools/Family Tree v2.0"

(Technically that is different, in that even when the HOME environment variable is unset, some shells still try to figure out what your home directory is and expand ~ to it--and bash is one such shell. But it's both rare and inadvisable to have HOME unset.)

Further reading:

Why doesn't the tilde (~) expand inside double quotes?
Why can't I cd to a quoted tilde ('~')?


How do I remove obsolete Network entries from Network Connection Applet

have you tried to delete the files in the directory /etc/NetworkManager/system-connections/ ?

You should have 1 file for every net you have tried to connect, open a terminal and use the commands:

sudo ls -l /etc/NetworkManager/system-connections/

To list all the files, after you have found the network that you want to delete, remove them with the command:

sudo rm /etc/NetworkManager/system-connections/NETWORK_NAME


avconv slideshow from images - first image appears for split second

Not sure what the cause of the issue is but you could solve it by duplicating the first image:

cp 001.jpg 000.jpg

Then run your avconv again and it'll just transition from the first image to the first image. The viewer won't notice the difference.

If your sequence already starts at 000.jpg that's a bit more painful. We can bump all the existing ones up but we have to write them to a new filename (lest we just overwrite the next one up) and then we can chunk it back to pure numbers:

rename 's/(\d+)/sprintf("tmp%03d", $1+1)/e' *.jpg
rename 's/^tmp//' *.jpg

Here it is in action:

$ rename 's/(\d+)/sprintf("tmp%03d", $1+1)/e' * -v
000.jpg renamed as tmp001.jpg
001.jpg renamed as tmp002.jpg
002.jpg renamed as tmp003.jpg
003.jpg renamed as tmp004.jpg
004.jpg renamed as tmp005.jpg

$ rename 's/^tmp//' *.jpg -vn
tmp001.jpg renamed as 001.jpg
tmp002.jpg renamed as 002.jpg
tmp003.jpg renamed as 003.jpg
tmp004.jpg renamed as 004.jpg
tmp005.jpg renamed as 005.jpg


Not able to update Ubuntu 16.04.1 LTS 64-bit; getting error message in the end (Dell DULX0035)

You need to go to System Settings->Software & Updates. Then select the Ubuntu Software tab and uncheck these items;

http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu xenial Release
http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu xenial Release
http://ppa.launchpad.net/boomaga/ppa/ubuntu xenial InRelease
http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu xenial Release
http://ppa.launchpad.net/me-davidsansome/clementine-dev/ubuntu xenial InRelease

After unchekcing these items, run sudo apt update and you'll be able to update your system onwards.


I'm trying to create a makefile when I get the following errors

Please try instead:

obj-m = cp210x.o
KVERSION = $(shell uname -r)
all:
    make -C /lib/modules/$(KVERSION)/build M=$(shell pwd) modules
clean:
    make -C /lib/modules/$(KVERSION)/build M=$(shell pwd) clean


Is there a way to clear the terminal screen during a running process?

Using Ctrl + L Won't work as input from keyboard is not accepted, but You can do this:

Toolbar options of Terminal -> Terminal -> Reset and clear

This will do the trick!

hope this helps!


Storage server with NTFS and Linux on old machine

Lubuntu can be installed on a pentium II with 384 MB RAM.
Ubuntu Server has a recommended minimum of a 300 Mhz processor and 128 MB RAM.

If I needed to build a fileSERVER I would go with the obvious and install the headless Ubuntu Server. And would keep it clean, without a Graphic User Interface.
Both systems build from the same source.. The Server edition has no GUI so I believe it will always be lighter in use and can put more resources into the job at hand..

I think Lubuntu is not going to be all that smooth (Got it running on a HP9010 laptop, 1.2 P4 512MB RAM, works reasonably smooth, but it's a good practice in patience)..


Why "sudo apt-get install" doesn't find a package?

You need to update your package lists.

Run:

sudo apt-get update

Then try again. That will fix everything.

You see, when Ubuntu software developers write their software, they send it to the Launchpad servers, where they compile and process the code. Once the code has been successfully compiled, the new package replaces the old package, and the package lists are updated to reflect that change.

Note that it's just the package lists on their server, not your computer. sudo apt-get update fetches the latest package info from the servers, at which point your computer processes it.
The command sudo apt-get upgrade checks the package lists (the ones stored on your computer) and compares the software in the package list with the actual versions you have installed. If any of your software has a version newer than it listed in the package list, it will download and install it.

Running sudo apt-get install <PACKAGE> checks your package list for that software. If found, it downloads and installs it.
(note that the package lists do not contain the software themselves - only the name, version, and the URL to download the software.)

Anyway, I hope my little speech helped you understand Ubuntu's package system a little better!


It sounds like the image you are editing is using a limited colour palette rather than full 24-bit RGB.  GIMP is doing its best to do what you ask while using colours in the existing palette.

If you want to switch the image to full colour, select Image -> Mode -> RGB from the menus.  You should then be able edit the image using any colours you want.

If you need to save the image with an indexed colour palette, you can switch back again by picking the Indexed... menu item from the same menu.  This will pop up a dialog box asking what sort of palette you want to use for the image.  The default option should suffice.

If you don't need an indexed colour palette, I would just leave the image as RGB.  For many of the images people use PNG files for, the savings are small.


How do I roll back to the shipped version of Thunderbird?

Caveat: the following answer DOES NOT apply if you downloaded Thunderbird V16 from mozilla.org an installed it manually, if you have done that I would recommend uninstalling it and using the lastest version from the Software Center (all your email and settings should be saved but just in case save /home/.thunderbird and you can just paste it over the new folder(by the same name) after install if your settings and emails disappear.)

Thunderbird V16 is beta software so you must be using the beta ppa for Thunderbird.

You will either need to disable it or remove it.

The easiest way to disable it is to open the update manager in the "gear" icon of the Unity Bar(it will be the fourth menu item, may also say Updates Available):

click on the Settings button and then Other Software in the window that pops up:

You will then need to uncheck the ppa for http://ppa.launchpad.net/mozillateam/thunderbird-next/ubuntu then close the window and on the Update Manager window click Check to update your source list

When finished it may show you Thunderbird V15(not yet in the regular Ubuntu Repo) or the current V14 (V15 was just released and should replace V14 shortly so you can just install V14 and then update when the official release comes out) if so you can just install it form there, if it does not show up or gives errors about a newer version being installed, you will need to use the terminal and type sudo apt-get dist-upgrade and then it should show you V14 or V15 of Thunderbird and allow you to install it from there.

You can also purge the beta ppa of Thunderbird by using ppa-purge and it will remove the beta ppa and then downgrade Thunderbird in one step.  In a terminal type the following:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:mozillateam/thunderbird-next

It will tell you that Thunderbird will be downgraded to V15/V14 and ask if you want to contiue, if you answer yes it will remove the ppa and downgrade Thunderbird to the lastest stable version.

[edit] A side affect of downgrading that I have not encountered with upgrades was encountered by the OP of the question, After a successful downgrade, the account profile was not found, we fixed it with the following:

Open the Home folder and press Ctrl+H to show hidden files
Open the .thunderbird file & find the file with your profile in it- it will be a file with a random name of letters and/or numbers  followed by .default(i.e. 3qwerty.default). If there is more than one, open them and see which one has your settings.
Open the file called profiles.ini
Edit the last line in the profiles.ini file to read: "Path=name_of_your_folder.default"  (i.e. Path=3qwerty.default) and then save the file. When you open Thunderbird, your account should be there.


How to Play Bulgarian/Cyrillic subtitles

It seems that your problem is related to the encoding of the subtitles. Check the instructions at the VLC's page on subtitles to adjust your preferences to whichever enconding was used to create the subtitle file.

Fonts in your Ubuntu installation should show cyrillic letters with no problem (anyway, that doesn't seem to be your problem).

If you need to change the encoding of your subtitle file, follow instructions given in this answer.


RAM drive

If there is enough RAM in your computer, it should be possible to detach the DVD disk, if you add the boot option toram, because it means that the system will write the content of the DVD disk into RAM, and use that image instead of reading files from the disk.

A. When you boot with syslinux you can add boot options like this:

As the CD boots, the user can gain access to the advanced page and its options by pressing any key when the small logo appears at the bottom of your screen.
After selecting language you arrive at the main menu of the installer.
Select 'Try Ubuntu without installing'
Press F6.
A menu with a number of options appears. The option toram is not there, so press Escape to close the list.
Now a string of options is visible, often with 'quiet' or 'quiet splash ---' at the end. Add toram to the string surrounded by spaces before the dashes.

... toram ---

Press return, and booting the live session 'Try Ubuntu' continues ...

See this link for more details, Syslinux boot options

B. When you boot with grub you can add boot options like this:

When a live drive boots to grub, you will see the grub menu (white text on black background). 'Try Ubuntu without installing' is selected, and should be used in this case.

The automatic countdown may be stopped by pressing any key other than the ENTER key.
Press the 'e' key to reveal the selection's settings.
Use the UP/DN/Left/Right cursor keys to navigate to the desired point for editing. Do not use ENTER to move between lines.
Move the cursor to the space before the dashes at the end of the 'linux' line. Add toram to the line surrounded by spaces before the dashes.

... toram ---

When editing is complete, Press CTRL-x or F10 - and booting continues.

See this link for more details, Editing the GRUB 2 Menu During Boot

-o-

Workarounds

Boot from DVD, write to a USB pendrive or memory card.
Boot from USB pendrive or memory card, write to a DVD disk.


Remove old kernels

Run this command in a Terminal:

sudo apt-get remove $(dpkg --get-selections | awk '{ if($2 == "install") { print($1); } }' | grep -P '^linux-(headers|image)-(?!generic)' | grep -v "`uname -r | grep -oP '[^-]+-\d+'`")

This will attempt to remove all kernels from your system except the one you are using right now.

After reviewing the list confirm by pressing enter.DO NOT CONTINUE IF IT SAYS SOMETHING ABOUT UNSATISFIED DEPENDENCIES!

As you can see in the screenshot this would free up about 1GB of space... all of which resides in the /boot partition!


How do I get the computertemp applet working?

Your first port of call should be the application help page


Get rid of Mac OS X partition on Dual boot

Boot a LiveUSB, use GParted to decrease the size of you Mac OS X partition and increase your Ubuntu partition.

Here is a guide on resizing.


Ubuntu 16.04 not booting, stuck at a "blocks" screen

Step #1

Lets first check your file system for errors.

To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
repeat the fsck command if there were errors
type reboot

Step #2

If step #1 doesn't fix your problem, then do this:

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

sudo blkid
sudo cat /etc/fstab

edit your question to include the output from the two previous commands
type reboot

Step #3

We need to fix a problem in your /etc/fstab...

update: this particular problem may make it difficult to edit /etc/fstab because it'll either timeout in less than 2 minutes, or put extra characters into the file, or just act crazy. If this happens, you'll need to edit this file while booted to a Ubuntu Live DVD/USB.

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

mount -o rw,remount /
sudo cp /etc/fstab /etc/fstab.bak # only need to do this once... the first time
sudo pico /etc/fstab
use the arrow keys to move around in the file
find the line that contains umask=0077, and CAREFULLY change only umask=0077 so that it shows as defaults, instead of umask=0077
control-o, and then the Enter key, will save your edits
control-x will exit the pico editor
reboot


Ubuntu 18.04 - Broken dependencies when preparing to install rbenv

As @guiverc pointed out, I was missing some sources.

I went to "Software & Updates", under the tab "Updates", and checked "Important security udates" and "Recommended updates". (No idea why they were not checked...)

After that, everything worked.


As Drawio is an open source application, there are two options; one hard and one easy.
Hard ⇢ Download the code, make the changes, and maybe share them back
Easy ⇢ Submit a feature request, as there are probably other people who also have the same request
Hope this helps


Autocomplete options for certain command in ubuntu terminal

Add this into your .bashrc:

complete -f -X '!*.java' code

and source ~/.bashrc it once.

The -f will do completion on files only.
The -X pattern allows to define a custom pattern
This custom auto-completion will happen for your code command only and any completion not matching the pattern is removed from the completion list.


`libgfortran.so.3: cannot open shared object file: No such file or directory` but the file is present

I am facing the exact problem that you're facing and I was able to overcome the problem by just copying a preexisting install of libfortran3. The link is "https://www.dropbox.com/s/01zxukpydgi749a/libgfort.tar?dl=1" choose either 32 or 64-bit option and extract it onto your pardiso install folder.
make sure you're adding the libfortran to your path with command
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your path here/pardiso_install_folder

Once that is done check if the .mexa64 executable has all the required libraries linked to it by doing a
ldd ipopt.mexa64

in the pardiso install folder and link the appropriate libraries. I am pretty new to all this too, so let me know if it works.


After a compiz traditional crash my top toolbar disappeared. What can I do now?

Option 1:

Switch to a tty, and do some geeky debugging.
Pressing Ctrl+Alt+F1 through F6 switches to tty1 through tty6 respectively. A tty is a virtual terminal. log in to your account, and in case of a crash, submit a bug report. (Answer by Me)

To restart Graphical User Interface - sudo service lightdm restart

This will log you out in GUI and gets you back to login screen. If you use a non-default display manager, replace lightdm with kdm or gdm as appropriate.
In most cases, restarting unity should work. unity --replace

This will restart just Unity. Any open applications will remain open, and is hence safe and better to try this before restarting DM. If the command exits with 137; retry it. It works. If the command exits with 1, Retrying it will have no effect. It will continue to fail.

  Remember to switch to graphical console on tty7 after running this. (Ctrl+Alt+F7 )

Option 2:

The magic SysRsq combinations are guaranteed to work. there are a whole lot of them, and googling may help.

For now, we are particularly interested in Alt+PrintScr+K, which kills all processes on a tty, so while on tty7 ( the default one with graphics) it kills Xserver and brings you back to login screen.


Is the file '/etc/network/interfaces' ignored when I use the Network Manager?

By default ifup/ifdown configures network interfaces based on interface definitions from /etc/network/interface file.

network-manager can read and configure interfaces reading this file, using a plugin named ifupdown.

You might see a line like in /etc/NetworkManager/NetworkManager.conf file's main configuration snippet :

plugins=ifupdown,keyfile,ofono

these are the plugins in use.

Next in the /etc/NetworkManager/NetworkManager.conf file you should have :

[ifupdown]
managed=false

This managed=false means network-manager will not manage network interfaces defined in /etc/network/interfaces.

To solve your problem you need to make it true so that the /etc/network/interfaces file is parsed by network-manager and hence the relevant interface(s) will be configured accordingly :

[ifupdown]
managed=true

On a different note, if you have interface(s) defined in /etc/network/interfaces and not using network-manager for any other interfaces then you should better consider these two options :

Let ifup/ifdown manages the interface(s) (you can uninstall network-manager if you want in this case)
Configure interface(s) directly using network-manager


How to install missing plug-in wayland-egl

Can you try
sudo apt install libwayland-egl++0 libwayland-egl1-mesa libwayland-egl1


Eclipse installer throws startup errors in Ubuntu 18.04

You are using a very old version of Eclipse (4.3.2 from 2014). This does not understand Java 12.

You need to use the latest Eclipse 2019-03 (4.11)


Why MySQL Workbench 8.x errors out with an SSL connection error, choose client version unsupported protocol

Ok, as pointed out in several places, the issue is related to that your client only allows to speak to TLS 1.2 or higher, as is required on new Ubuntu versions and software, but your server is only TLS 1.1. And is not allowed.
You can update the server to a newer version of MySQL that allows TLS 1.2, or if this is now a big problem, the only solution is to turn off encryption on your workbench. For this purpose, on your workbench connection, go to SSL, and set Use SSL "no". This must be only a temporal solution, as removing SSL is not recomended for security issues. But at least, you can connect to your server.


Identify snap apps in the apt repository (before having them installed)

Most of apt packages can't have snap apps as depency and most of snap apps can't have apt packages as depency(only snapd and snap).
Extra helpful commands:
Use snap info <app> to see info about snap apps and apt info <package> to see info about apt packages.
Use snap list to see all packages installed by snap and apt list to see all packges installed by apt, it can be a very long list.


Inconsistent connection and super slow speed with RTL8723BE

Does your installed version of the driver have this parameter?

parm:           ant_sel:Set to 1 or 2 to force antenna number (default 0)

Check:

modinfo rtl8723be

If so, I suggest that you do, in a terminal:

sudo -i
echo "options rtl8723be ant_sel=2"  >  /etc/modprobe.d/rtl8723be.conf
exit

Reboot. Is there any improvement?


Ubuntu doesn't display fonts properly on some sites like Facebook

Are you on 16.04 ? If yes, give this command a try

sudo apt install ttf-mscorefonts-installer

There will be an EULA for which you should give " yes ".


Someone on another forum suggested that the cable might be a problem. I have swapped the cable with that on a Windows PC and now both the Windows and the Linux PC are working fine with no problems seen (so far).

So I guess the answer was that the cable was faulty.

I ended up taking out the nVidia graphics card. With it in and everything sort of working I could get WoW WotLK working under Wine, but Steam refused to run, and the boy prefers playing Steam games so...


Integrated graphics shows shimmering display

must be something wrong with the card or the install. i have the GT72 with the 970m and it works fine under Ubuntu using the Intel graphics. im running 14.10 though. maybe try the Intel Graphics Installer for Linux.


How do I use locate to find hidden files in Terminal?

Try this:

sudo find / -name ".message"

I'm assuming the locate command gave you too much info to go through, so this should be a bit more succinct, where it only matches the filename, not the path.


Is there anyway for to bring installed programs from one ubuntu pc to another?

You could download the package as a tar/package and then install the package via the command prompt.  Is the goal just to bypass the Software centre?  http://mypaint.intilinux.com/?page_id=6


I had the same problem, I was close to commit suicide, there was no solution, but ...

There's a simple "fix" :D

For UBUNTU 13.10:

Open your Terminal.
$ sudo nano /lib/udev/hwdb.d/60-keyboard.hwdb
In nano editor look for "lenovo" section (CTRL + w).
Add this section (Copy and Paste):

# IdeaPad Z470
keyboard:dmi:bvn*:bvr*:svnLENOVO*:pn*IdeaPad*Z470*:pvr*
 KEYBOARD_KEY_a0=!mute
 KEYBOARD_KEY_ae=!volumedown
 KEYBOARD_KEY_b0=!volumeup

Save changes and exit nano.
sudo udevadm hwdb --update
restart.

Original Threat:
https://answers.launchpad.net/ubuntu/+source/udev/+question/237756

For UBUNTU 12.04 and 13.04:

$ sudo nano /lib/udev/rules.d/95-keyboard-force-release.rules
Add the following line at the end of the file (but before the LABEL="force_release_end" line.)

ENV{DMI_VENDOR}=="LENOVO", ATTR{[dmi/id]product_name}=="IdeaPad Z470", RUN+="keyboard-force-release.sh $devpath common-volume-keys"

Save and exit nano.
Restart.

And that's all.


This problem has been reported all over, dunno why it's not being addressed for over a year: https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1528735


French version of Ubuntu-one for Windows

We have not yet translated the windows version to other languages. We intend to do it once we sync our Windows and Linux codebases, and can use the translations for both.


How to install libc6:i386 on 16.04.4 64bit?

Make sure you have enabled all sections in Software & Updates and selected good mirror (I prefer Main server) in

Ubuntu Software

and security-updates in Updates:

Then sudo apt-get install libc6:i386 will be enough.

Or deeper:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install libc6:i386
sudo apt-get install -f

On my system libc:i386 is installed with version 2.23-0ubuntu10.


Suspend option is not working in Ubuntu 14.04 on Lenovo Z570

Open your command line (terminal) and enter this command to edit the config file:

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

Copy and paste below lines into the file and save it.

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

[Re-enable hibernate by default in logind]
Identity=unix-user:
Action=org.freedesktop.login1.hibernate
ResultActive=yes

After reboot it will work. (I too have same bug but in my case for hibernate too)


Since your description isn't very clear, this solution might or might not work.

On laptops, when on battery Ubuntu reduces the power given to the WiFi radio to save battery. There's a way to force Ubuntu to not make this change and instead give full power to the radio. To do this, run these command while on battery:

sudo iwconfig

The output will be like this:

  lo        no wireless extensions.

  eth0      no wireless extensions.

  wlan0     IEEE 802.11bgn  ESSID:"Network Wifi name"
            Mode:Managed  Frequency:2.457 GHz  Access Point: 64:0F:28:1B:18:A9
            Bit Rate=54 Mb/s   Tx-Power=15 dBm
            Retry  long limit:7   RTS thr:off   Fragment thr:off
            Power Management:on
            Link Quality=70/70  Signal level=-32 dBm
            Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
            Tx excessive retries:0  Invalid misc:137   Missed beacon:0

As you can see, wlan0 seems to be the WiFi interface and Power management under it is set to ON. You can fix that by disabling power management on the radio with this command:

sudo iwconfig wlan0 power off

This should fix it. If not, then its probably a driver issue. I cannot pinpoint the issue well because of the lack of information in the question.


Check the output of the mount command to make sure that no other CD/DVD devices are mounted. If you booted with a disk in your drive and ejected the disk using the drive drawer button, this will not properly unmount the drive reference.
Follow these installation instructions to make sure you have the latest libdvd library: https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs
Mount the drive by hand to make sure that it reads: http://brainwreckedtech.wordpress.com/2011/10/09/bug-libdvdread-cant-seek-to-block-on-second-layer/

Basically these commands: mkdir -p /media/$LOGNAME/dvd; mount /dev/sr0 /media/$LOGNAME/dvd
Launch gxine with that location: gxine /media/$LOGNAME/dvd

Best of luck.


Learning C++, I can't read the code on nano from terminal

Use the command

rm .password.cpp.swp

This should remove the temporary file generated by nano. After that, you can try opening it again with nano.


How to change the default font used in Ubuntu 11.10

You need to install Gnome Tweak (it's in the Software Center).  Once you install it, it will show up as "Advanced Settings" in apps in the Dash.  Open it and choose "Fonts" from the menu on the left, and you'll see a page which allows you to change the fonts Ubuntu uses.


I had the same problem in a Samsung notebook, I couldn't find a solution, So I updated from 9.04 to 10.04.
The noise while charging was gone. But maybe you should try another thing before doing this, it's a little too drastic ;)


is it possible to install perf on ubuntu with kernel 5.4.39?

Try this.
Open a terminal and run:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install --reinstall linux-tools-common linux-tools-generic linux-tools-`uname -r`


Ubuntu problem after changing some video settings

It's nearly impossible to help you with so little information.

Shot in the dark.

Delete yourxorg.conf because your X server generate them for you.

# make a backup
tar cfvz backup-xorg.conf /etc/X11/xorg.conf*
# and delete all self generated files
sudo rm /etc/X11/xorg.conf*

You could also try to install a minimal X system.

sudo apt-get install --reinstall xorg

Update
Look here, here and here ...

My computer boots to a black screen, what options do I have to fix it?
Dual boot problem, black screen during the ubuntu boot
https://www.google.de/search?q=ubuntu+boot+problem+black+screen


Maybe your wifi is set to power saving?
power.d >
set the wifi to no power savings.
iwconfig wlan0 power off

Check this out:
https://help.ubuntu.com/community/PowerManagement/ReducedPower
Another option - driver issue:
Check this out:
Asus X550L Weak Wifi signal ubuntu 14.04


It doesn't really matter as that info isn't used to pick a driver for the wifi as that is done by the results from lspci -nnk | grep -iA2 net

You might see 01:00.0 Network controller [0280]: Intel Corporation Device [8086:24fd] (rev 78)
    Subsystem: Intel Corporation Device [8086:0050]
It is the 8086:24fd that will determine what driver is used in this case and since iwlwifi is the kernel driver for Intel wifi, the subsystem 0050 will also have to be a match for what is contained in the iwlwifi source code.

The description you see comes from user contributions at https://pci-ids.ucw.cz/ and you can download a newer version by sudo update-pciids

If you actually want help to get wifi working, edit your post to include results from terminal for lspci -nnk | grep -iA3 net

But I bet that your wifi will work with the 4.15 kernel, to install
sudo apt-get install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04
Reboot


GRUB can't find Windows 10 after changing SATA cable entry

So, after many tries I decided to go the hard way and reformatted the SSD and reinstalled windows.
Even after that, GRUB didn't recognized it.
So I went to Ubuntu and did sudo os-prober and update-grub.


Is it possible to use a program (non-Chrome) with Google Keep / Notes?

At this time there is no Ubuntu software that addresses this issue. Google Keep does have a app that can be used on Ubuntu, but you have to get it through Google Chrome.

Go to the Ubuntu Handbook site and follow the instructions. Unfortunately this does require Google Chrome.


Short answer: Your PDF is probably safe.

Your question isn't Ubuntu specific -- however -- you're quoting the "PDFiD information" in the VirusTotal report which is just helpful metadata. The scanners didn't find anything malicious in the embedded JS, but the metadata tool is just telling you that the embedded scripts could be an exploit vector (e.g., harboring zero-days the scanners missed).

You can manually go through the JS in the PDF with 3rd-party tools as per https://security.stackexchange.com/a/2897 if you are concerned.

Alternatively, you may view the PDF with a client that doesn't support scripting at all, negating the possibility of malicious JavaScript execution.


How do I get rid of redundant Wine launchers in Unity?

Where Wine launchers are stored
Since Wine applications are installed inside ~/.Wine (locally), Wine launchers are also created locally by definition, in ~/.local/share/applications. There simply is no other option then that these launchers are located there.
What can be misleading however is that the filename of a .desktop file does not necessarily show the interface name of the application, as it appears in Dash. To find out, you can make suspected launchers executable (in nautilus, right- click on the icon > properties). Once the file is executable, its icon will then show what they represent, and the displayed name will be according to the name in Dash.
Another option is to run:
grep -iR reaper ~/.local/share/applications/

To see which of the files contains your application's name.
N.B.
The ~ (tilde) stands for /home/yourname.  Note that ~/.local is a hidden directory in your home folder. Press Ctrl+H while in nautilus, to make hidden directories visible.


How to restore Ubuntu data after install windows 7?

If you have installed Windows on another partition (and not formated your Ubuntu partition), you should be able to boot a live-cd and reinstall the boot loader (grub) from there - you can find tutorials for "grub reinstall" online.
This looks good, actually:
https://help.ubuntu.com/community/Boot-Repair


Thanks for the replies. It’s working fine now so far. What I was doing wrong was not selecting HDD as the first option after restarting the system. I had to make the Hard Drive option as the first one instead of USB Drive.


I recommend creating your boot disk with dd, as in:

dd if=image.iso of=/dev/sdc

Change image.iso to the filename you want to write and /dev/sdc to the device filename for your USB flash drive. Third-party disk-imaging tools might or might not create a disk image that's bootable in EFI mode. That said, some rare computers make it necessary to use such a third-party tool to prepare a bootable USB drive; but in these cases, you must ensure that the tool is capable of creating an EFI-bootable image. The last I checked, YUMI did not work for this. I don't know for sure about the Ubuntu Startup Disk Creator. Tools that can create EFI-bootable disks often require explicitly setting an EFI compatibility option.

Once the image is created, you may need to use your firmware's built-in boot manager to boot it. This is usually accessed via a function key, but which one varies from one machine to another (and some use another key entirely, like Esc or Enter). If the drive is bootable in both BIOS/CSM/legacy and EFI/UEFI modes, there will normally be two entries for the disk in the boot manager. To boot in EFI/UEFI mode, select the entry that includes "UEFI" in the description. The one without "UEFI" in the description boots to BIOS/CSM/legacy mode.

You can check your boot mode by looking for a directory called /sys/firmware/efi; if that directory is present, you've booted in EFI/UEFI mode. If it's absent, you've probably booted in BIOS/CSM/legacy mode.


You have not removed the PPA. Use ppa-purge for this purpose:
sudo apt-get install ppa-purge
sudo ppa-purge ppa:videolan/master-daily

This will bring VLC 3.0.9 back to the system.

You may want to install VLC 3.0.11 from FlatHub:
sudo apt-get install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.videolan.VLC

and run it with flatpak run org.videolan.VLC.


LMMS is a great alternative to FL Studio.

You can install it by typing: sudo apt install lmms into the terminal.


How to automatically connect to a Windows network folder?

Sounds like you are looking to auto mount the Windows share... I'm pretty sure this will help you https://wiki.ubuntu.com/MountWindowsSharesPermanently


lvmetad is not active yet; using direct activation during sysinit

I managed to resolve this for my machines by adjusting the grub configuration like so:

In /etc/default/grub, change:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"

Then add this line:

GRUB_TERMINAL_INPUT="console serial"

Run sudo update-grub and reboot for the changes to take effect.


how can I start an other xserver on a different terminal so that I have two xservers running at the same time.

First drop a terminal via ctrl+alt+f1 and then use:

startx -- :1

To switch between the sessions use ctrl+alt+f7, ctrl+alt+f8
Btw, this is starting an other X session, not Xserver.


Based on suggestion Why Ubuntu Desktop 18 client to Windows 10 host clipboard doesn't work? I updated the VirtualBox to latest version 6.1.6 and it fixed the clipboard problem.


Cant install Ubuntu. How do you format a Windows HDD

If you don't want windows, then when you get to the installation type screen, just choose Erase disk and install Ubuntu.  If you want more control on size of partition and swap, then choose Something else, which will let you do manual partitioning.


KDE Notifications bubble it is shown as an square after upgrading to kubuntu 20.04.1

The issue was related to the Dunst app was installed.

After uninstalling it and moving back the notification widget to the taskbar everything went to normal.
sudo apt remove dunst

And killed it ,then restarted the plasmashell
killall plasmashell ; plasmashell &


Install openssh-server on Ubuntu and download Putty on Windows machine.

open terminal on Ubuntu and launch Putty and login into Ubuntu from Windows.

Run wall command on both ends and start chatting. Type something and hit ctrl-d to "send" it. Ctrl-c finishes chat.

You can play with talk or write commands as well.


Profiling stock Ubuntu kernel with sysprof: how?

As far as I can tell, I was mistaken and sysprof doesn't actually provide any level of detail beyond "in kernel".  Here's sysprof-1.0.12/process.c, lines 350 through 355:

    if (address == 0x1)
    {
        kernel.name = "in kernel";
        kernel.address = 0x0001337;
        return &kernel;
    }


Removing a partially installet program using dpkg

Find installed package name with command in terminal

sudo dpkg -l pkiclient-full*

Uninstall package with --purge parameter

sudo dpkg --purge [package name]

My wild guess is that package name is pkiclient-full, example command is

sudo dpkg --purge pkiclient-full

If purge does not work you will have to skip prerm and postrm scripts which is messy and it is not recomended. Scripts are located in /var/lib/dpkg/info folder with name pkiclient-full.prerm and pkiclient-full.postrm.

So I would suggest that you first move /var/lib/dpkg/info/pkiclient-full.prerm if exists to your home directory, create empty prerm script and set executable bit with commands

sudo mv /var/lib/dpkg/info/pkiclient-full.prerm ~/
sudo touch /var/lib/dpkg/info/pkiclient-full.prerm
sudo chmod +x /var/lib/dpkg/info/pkiclient-full.prerm

Do the same for pkiclient-full.postrm if exists

sudo mv /var/lib/dpkg/info/pkiclient-full.postrm ~/
sudo touch /var/lib/dpkg/info/pkiclient-full.postrm
sudo chmod +x /var/lib/dpkg/info/pkiclient-full.postrm

After try to purge package with command

sudo dpkg --purge pkiclient-full


Just in case:

To prevent Gedit from creating backups in the future, open up gedit, open up the Preferences dialog (Edit > Preferences), select the Editor tab, remove the check in the “Create a backup copy of files before saving” option, and click Close. After doing this, Gedit will no longer make the backups with tildes all over the place.

Please, include more details to receive more feedback.


Changing the monit code to the following fixed the issue:

check process apache2 with pidfile /run/apache2/apache2.pid
    start program = "/bin/systemctl start apache2.service" with timeout 15 seconds
    stop program  = "/bin/systemctl stop apache2.service"
    restart program = "/bin/systemctl restart apache2.service"


How to convert Android's contacts2.db to .vcf?

This seems to have been answered on our Android sister-site by Chauncellor:

Well, this took a long time. For future searchers, here's what you can do:
Find your contacts2.db file hidden somewhere in Android. Most of the time it's located in /data/data/com.android.providers.contacts/databases. I was lucky and found it in a search through Titanium Backups' tarballs. Nab that file. It has everything in it in a sql database.
I then found this excellent script to extract and convert all contacts into a .vcf format for easy importing into the next device. It's located here on Github and requires two dependencies (on an Ubuntu 12.04 machine in which it was written for): sqllite3 and libsqllite3-dev:
sudo apt-get install sqlite3 libsqlite3-dev

After dependencies are satisfied, save the script on Github as dbconverter.sh. Mark it as executable:
chmod +x dbconverter.sh

use the script like this:
./dbconverter.sh contacts2.db > contacts2.vcf

You will then have a lovely .vcf file for easy importing into your phone.

There are also other programmatic approaches on SO:

https://stackoverflow.com/questions/18955512/converting-db-to-vcf


Why is Ubuntu 12.04 taking very long to start and run programs?

Your Windows host drive may be fragmented. Wubi stores its data within one file on the Windows filesystem, so you can trying to use the defrag utility to defrag the wubi drive.

Hold the windows key and press R, and then type dfrg.msc into the text box and click [OK]. Then, select the drive Wubi is installed on(try the C: drive then all the other internal drives if unsure), and choose to Defragment it. Let it finish, and try booting into Wubi again.


32-bit Ubuntu 12.04, vim not able to add numbers using C-a

Yes, this depends on the 32-bit operating system.

:help ^a

  The CTRL-A and CTRL-X commands work for (signed) decimal
  numbers, unsigned octal and hexadecimal numbers and
  alphabetic characters.

These are the exact limits:

$ echo 2^32 | bc
4294967296
$ echo 2^64 | bc
18446744073709551616


failed to boot grub when adding a windows partition on XP

The partition sda2 is an extended partition which is kind of a container for other partitions. the swap partition for example is contained in it, starts at the same block. there was probably another partition with linux in it but that one seems to be gone. It might work to just create a new ext4 partition in the remaining space of the extended partition but i doupt that the old data would still be there. you'd need lots of luck.

I assume that the XP partition tool somehow broke it because it's not aware of other operating systems with other partition types. In future always use the linux tools for partitioning. they don't bully windows partitions.


How do I find missing dependencies for cinepaint 1.0-4 Ubuntu 13.04

Regarding the packages you need, or should use, there are several, and I believe this command will pick up many of them:

sudo apt-get install liblcms-dev libtiff-dev libpng-dev libjpeg-dev libopenexr-dev libfltk1.3-dev libgutenprint-dev libxmu-dev flex

For me, at least, that got it to configure, on Ubuntu 13.04 (Raring).

This list came from looking at the allpackages link, and comparing with the stated dependencies. The allpackages link is: http://packages.ubuntu.com/raring/allpackages
and for whatever version of Ubuntu you are using, you will need to adjust it.

There are at least two caveats here:

This does not pick up oyranos (which apparently is used for matching colors).  So if you want oyranos, then you have to arrange to build it into your system somehow.
This does not cover compiling.  (Per the guidelines for answering questions, I am not listing my various failures at compiling after configuration.)


How to get mhddfs to mount drives at boot

Why do you have a # sign on the line?

You might put it at the beginning of a comment line, which will be ignored.

#mhddfs /mnt/Data1,/mnt/Data2 /mnt/Data fuse defaults,allow_other 0 0

Also, it doesn't look like your line is formatted properly.
The first entry should be a drive and not a mount point.

If you want to make things easier, try combining your drives with LVM.


In summary, we're planning a beta for July and the 1.0 release in October.


sudo fdisk -l lists all the partitions on all your storages partitioned with msdos partitioning label.

I think that,

/dev/sda1 is active primary partition.

This partition has Windows 7 boot loader.

/dev/sda2 is primary partition formatted as NTFS.

This partition has Windows 7.

/dev/sda3 is primary partition formatted as swap space.

This is a swap space used by Ubuntu.

/dev/sda4 is primary partition formatted as a linux file system(ex: ext2/ext3/ext4...).

As result,

/dev/sda1 and /dev/sda2 is used for Windows 7,

/dev/sda4 is the /(root filesystem) for Ubuntu,

/dev/sda3 is swap space for Ubuntu. Swap space is a space on a hard disk used as the virtual memory extension of a computer's real memory.


specify the environment variable...bash, how to do

use export command

example:

user$ export SADIT_ROOT='/home/sadit'
user$ echo $SADIT_ROOT
/home/sadit


Host key fingerprint at SSH login differs from the one at key generation

Solved my own question.  The clue was at the bottom of the ASCII art. On the output from this command:

$ ssh-keygen -lv -f ssh_host_ed25519_key.pub

at the bottom is:

+----[SHA256]-----+

While at the bottom of the ASCII art when the server presents its key at login:

+-----------------+

man ssh-keygen reveals the -E param which lets you specify a hash algorithm. With SHA256 it produced the same as without it, but with md5 it produced the output seen at login:

$ ssh-keygen -lv -E md5 -f ssh_host_ed25519_key.pub

So now I'm convinced nothing is wrong, the fingerprints differed only because of the hash algo and it was the same key after all.


migrating (NOT installing) legacy 32-bit obscure software to 64-bit 16.04 LTS

You've gotten the first step, getting the 32 bit loader installed (your /lib/ld-linux.so.2 from package libc6-x32), so the ldd output on your 32 bit executable should be reasonable (i.e. not claiming "not a dynamic executable") and you can identify where the program expects to find the libraries, and add the necessary for it.  I've not found it too hard to get old 32 bit progs to run that way.


Failed to launch Sagemath in Ubuntu 18.04

The main Sage executable is named sage, it came from sagemath-common package.
And this package was installed as dependency of sagemath package.

So you need to give single command:

sage


It's best to always refer to the disks by UUID; you can use the symlinks in /dev/disk/by-uuid/ (or by-id if that's more suitable) to refer to the device nodes.

The /dev/sdxN names are never guaranteed to be consistent, so relying on fixed names is not a good idea.


I installed Ubuntu 18.04 and first experimented with KDE. After installing suld-driver2-1.00.39, my Samsung C480W worked out of the box with Simple Scanner. I then changed back to Gnome for some good reason; now the printer is detected and I can print, but scanimage -L won't find the printer, nor will Simple Scanner, and the gnome printer setup dialog doesn't show anything suldr-ish.


I managed to find the solution for the problem... So far it's working.  I removed Bind9:

sudo apt-get remove --auto-remove bind9

But that entirely did not do the trick. I needed to change the Network Manager settings:

sudo nano /etc/NetworkManager/NetworkManager.conf

and make sure it's like this:

[main]
plugins=ifupdown,keyfile
dns=dnsmasq

no-auto-default=00:10:18:77:5E:46,00:23:AE:6A:45:9B,

[ifupdown]
managed=false

(I changed the last from true to false)

Somehow the GUI Network Manager was causing the Ubuntu Server not access the internet.

Thank you for all your inputs, without them I would not have been able to find the solution

now running
cat /etc/resolv.conf gives me:

nameserver 208.67.222.222
nameserver 208.67.220.220
search google.com
nameserver 208.67.222.222
nameserver 208.67.220.220


Installation problem /usr/bin/dpkg returned an error code (1)

With the help of a fellow from lauchpad, I found the solution for my problem.
It was related with edition problems of grub.cfg
Here is the  complete discussion at lauchpad.
And the direct link to the solution is here.
Well, of course the grub.cfg varies from user to user and so  its possible editing errors.


How do I enlarge an encrypted LVM partition in Ubuntu 20.04?

I found a solution myself.

Live CD

Launch the live CD and use the option "Try Ubuntu".

Instal Partitionmanager

Make sure the universe software can be downloaded:

go to the Activities
launch Software & Updates
enable universe

Open the terminal and install the Partitionmanager:

sudo apt-get update
sudo apt-get install partitionmanager

Partitionmanager

See also the instructions here: http://e1z.ca/devlog/encrypted_partition_resize.html

Open the partitionmanger with sudo rights:

sudo partitionmanager

Right click on the encrypted volume and unlock.

Resize the partition. You might need to resize the vgubuntu on the left as well.


how to set different login and root password

You can create a user with no administrative privileges. You can login with this user.
You'll still be able to use sudo with a password from another user with administrative privileges this way.
su administrator_name

Then you'll be able to use sudo with another password.


How do I recover from upgrading while using bad version of gcc/binutils?

At this point, I'd be looking to rescue as many files as possible (like /home, /etc and parts of /var) and doing a clean install from a verified CD (ie check the md5 checksum of the downloaded ISO).

You might also want a dumped list of the packages that are already installed using something like this:

aptitude search -F "%p" "?installed ?not(?automatic)" > ~/package-list

Once you're on a clean system you can jimmy back in your old things, settings and applications.

If the same thing happens, run a memtest (should be an option at boot if you hold left-shift) and a fsck from the LiveCD.


What does /dev/sda3: clean mean on boot?

This is the output of a filesystem check at boot for the /dev/sda3 partition. fsck (actually probably e2fsck if it's an ext4 filesystem, which is the default for modern Ubuntu installations) is the program which carries out the checks. This is set to happen after a configurable number of reboots, or after a certain time period. It can also be triggered if you had to switch your computer off without properly shutting down, such as if you had to shut down by holding the power button in.

The piece of information that is most relevant is the word 'clean', which indicates that everything's in working order. So there's nothing to worry about.

The files and blocks part of the output show how many of the available files and blocks are in use. The files part actually applies to inodes, which are the underlying filesystem location for a file. So you're using 291272 out of the 4292608 available files spaces, and 480345 of the available 18174432 blocks on that partition.

The filesystem check will slow down your boot time, but shouldn't happen on every boot. There's also normally an option to press C to quit the check.


It sounds like GRUB is broken.

Try booting into the live CD again, open a terminal and type sudo update-grub.

This should fix GRUB. Then the Ubuntu boot option in UEFI should go to GRUB which should let you choose between Ubuntu and Windows.

I don't think that removing all traces of GRUB from your hard drive will solve your problems, unless you don't want Ubuntu anymore. WBM does  not support Ubuntu but GRUB does support Windows, so it is preferable.


How to run gui application from web app?

Thanks for the replay! I have found the solution. If someone could be interested, this is my solution:
My problem was that at every reboot I had to run the xhost + comand.
So I created a script with this line and I put it in the Startup Applications.
Now works:)

Bye


This query is resolved now.

Proper linking against library was required to run the ''.c file which uses gsl libraries specifically CBLAS, executing

gcc -L/Home/gsl/lib sample.c -lgsl -lgslcblas -lm

followed by ./a.out displays the right output

  A huge Thanks to @steeldriver @Oscar and @Soren A for their time and efforts in walking me step-by-step through this query. Healthy discussions indeed lead us to solutions.

Refer to : Using the gsl Library


Creating a new EFI partition on another disk in order to maintain original Windows Boot

The last I heard, there was a bug in the Ubuntu installer that caused it to always place GRUB on the EFI System Partition (ESP) on the first disk (usually /dev/sda), even if you tried to force it onto another ESP (say, one on /dev/sdb). This fact can make separating your Windows and Ubuntu installations a little trickier than you might like. Also, the way Ubuntu configures GRUB, it's reliant on both files on the ESP and a grub.cfg configuration file in the Ubuntu /boot/grub directory, which is not on the ESP. Thus, if you install Ubuntu and then delete it by deleting the Ubuntu partition(s), GRUB will remain behind, but with its grub.cfg file gone, the computer will hang at a grub> prompt when you boot. This problem can be overcome by manually deleting the GRUB files from the ESP or by tweaking the boot order using efibootmgr in Ubuntu or EasyUEFI in Windows before deleting the Ubuntu partitions.

Alternatively, you could follow this procedure to install Ubuntu:

Download the USB flash drive or CD-R version of my rEFInd boot manager.
Write the rEFInd image to a USB flash drive or CD-R, as appropriate.
Boot the Ubuntu installer in its "try before installing" mode. This results in a normal Ubuntu desktop.
Open a Terminal window.
Type ubiquity -b. This launches the installer, but the -b option tells it to not install GRUB.
In the installer (or before you run the installer, if you prefer), set up your partitions, and be sure to include an ESP on the second disk (the one to which you're installing Ubuntu).
When you're done with the installation, reboot using the rEFInd disk. You should see the rEFInd menu appear. (A caveat: The rEFInd disk images I distribute do not support Secure Boot. Thus, if Secure Boot is active, you'll need to either disable it or modify the rEFInd image to include Shim. You can re-enable Secure Boot later, but you may need to jump through some extra hoops at that time. Windows 7 does not support Secure Boot, so you shouldn't run into this problem. I mention it in case somebody wants to do something similar with a Windows 8 or later installation.)
Using the rEFInd menu, boot Ubuntu. (A caveat: If you use a separate /boot partition, you'll need to hit F2 or Insert twice and add a ro root={rootfs} option, where {rootfs} is a pointer to the root (/) filesystem, such as /dev/mapper/lvm-root. This is normally only necessary if you use LVM or software RAID.)
In Ubuntu, check and, if necessary, alter /etc/fstab so that it mounts the ESP in Ubuntu's directory tree at /boot/efi. If you need to change this detail, be sure to unmount anything that's already mounted there and mount the Ubuntu disk's ESP at /boot/efi before proceeding.
Install your preferred boot loader.

If you want to use GRUB 2, install the grub-efi package. You may also need to run sudo grub-install and/or sudo update-grub.
If you want to use rEFInd, install the rEFInd Debian package or PPA. If you're asked if you want to copy rEFInd to the ESP, be sure to respond affirmatively.

At this point, when you reboot you should see GRUB or rEFInd appear and you should be able to boot either Windows or Ubuntu. If you want to go back to a stock factory installation, you can wipe all the partitions from the Ubuntu disk, including the ESP, and the computer should skip over the now-invalid entry for GRUB or rEFInd and go straight to booting Windows. (If you use rEFInd, it should continue booting Windows even if you delete all the Ubuntu partitions but leave the ESP on which rEFInd resides intact.)


Less volatile alternative to notify-send for notifications

The only option I see is to set up an e-mail server under Ubuntu, send notifications as e-mails to this server and then receive them in our e-mail client.


Resize a partition, create free space and install another Ubuntu variant in it

Create a new logical volume using (it's your root):

sudo lvcreate -L 20G -n nroot kubuntu-vg

Create an other logical volume to use as home:

sudo lvcreate -L 60G -n nhome kubuntu-vg

If you want to use all free space then:

sudo lvcreate -l +100%free -n nhome kubuntu-vg

Reboot and start an installation.

Use /dev/sda2 as your boot partition if you don't mind loosing your current OS. Use /dev/kubuntu-vg/nroot as your root and /dev/kubuntu-vg/nhome as home for new installation.

Do not format other partitions at all, after you have installed the OS, move your files to your new home.


sudo apt-get upgrade - The package sublime-text needs to be reinstalled?

To get rid of this error, type the following commands(one-by-one) in your terminal :-

sudo apt-get purge sublime-text

sudo apt-get autoremove

sudo apt-get update

After that sudo apt-get upgrade will work fine and will not show errors.

To install Sublime Text, download its .deb package for Ubuntu/Debian from here. Then install Sublime Text from that .deb package either using dpkg or GDebi Package Installer(recommended).


Kickstart

kickstart Configurator is a graphical tool for creating Kickstart files
, which allow scripted fully automatic installations.
You will need to use the alternate install and you can set anything Ubuntu asks during install (including formatting discs). Anything you leave blank will be asked during install.

Now for the caveat: kickstart is not perfect in Ubuntu because it is missing a lot of features. For instance you need to manually change the ks.cfg file to add what you want to install and you need to tell it all (so you need to add ubuntu desktop too...) in order to add other packages.
You will need a post-install text file that includes all your configuration settings for the remaining settings you need to do and add that to the configuration. But you can also  use this to add in downloads that require wget or move a pre-defined ssh settings file to the system etc etc. As for this script... you are on your own there. No-one will have the same add-ons so it will be all manual work.
Best way to do this is by installing a virtual machine and tweak the config file until you are satisfied: that way you can edit the ks.cfg file and remaster the ISO without needing to burn CDs.
More information on the Ubuntu help page.


Unable to create partition on a free space (The location xxxxxxxxx is outside of the device /dev/sdb)

I ended up wiping the whole USB with dd : sudo dd if=/dev/zero of=/dev/sdb bs=1M
 and deleted all with
sudo gdisk /dev/sdb ( = launch gdisk, then type x, then type e, then type w to save your changes).


You could use colorizer tools, see e.g. https://superuser.com/q/602294.

I'm not aware of any terminal emulator for Linux that offers such coloring (syntax highlighting) on its own. If there exists one, someone will sure correct me.

There's a proof of concept patch for VTE with hardwired words, you can modify them or add new ones by changing the source. VTE is used by several terminal emulators, including e.g. GNOME Terminal, Tilix or Xfce Terminal; thus if you patch, compile and install VTE, you can use this feature in any of these.


Missing libraries when trying to run a julia program

Looks like you're missing libglib2.0

You can install it with:

sudo apt-get install libglib2.0


You have a permissions problem.

What you need to do is get to a terminal as explained here, and sign in with your username and password.

Then, you need to run the following:

sudo chmod -R 750 /home/$yourusername

Then, type:

sudo reboot to restart your computer.

Once that's done, you should be able to log in via lightdm.


APT - Knowing which package caused automatic installation of another package?

If you have aptitude installed then...
aptitude why PACKAGENAME gives you what you want.
If not you can install it with sudo apt install aptitude.
Sample output:
user:~$ aptitude why nvidia-driver-450
i   nvidia-driver-440 Depends nvidia-driver-450
user:~$ aptitude why nvidia-driver-440
Manually installed, current version 450.66-0ubuntu0.18.04.1, priority optional
No dependencies require to install nvidia-driver-440


How to determine which version of Ubuntu desktop is installed

Execute lsb_release -a in a terminal :

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.10
Release:        16.10
Codename:       yakkety


Are there any plans for releasing new Interface for LibreOffice?

Here's my interface :

This is the Sifr theme for LibreOffice 4.2

If you have LibreOffice 4.2, you can install the Sifr theme with :

sudo apt-get install libreoffice-style-sifr

If you don't have Libreoffice 4.2, install it with :

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get dist-upgrade

A few other themes are available, install them with :

sudo apt-get install libreoffice-style*

You can also use Google to find themes for LibreOffice (any version), and apply them yourself.

Themes for LibreOffice are .zip files and go into /usr/share/libreoffice/share/config/ directory.


Ubuntu install is not recognizing my other OS (Windows 8)

I had this problem before with Windows XP Pro. At the time I was installing Linux Mint (which is basically Ubuntu) over it. However, this should work:

If you want to keep windows, go to GParted (which comes with the ubuntu live cd), and create a new ext4 partition.

In more detail:
1. Start gparted.
2. Shrink your windows partition.
3. Create a new ext4 partition in the unallocated space.
4. Remember the number for your new partition. (should be /dev/sda2; windows should be /dev/sda1).

To install on the new partition:
When you get to the 'disks' section, choose something else.
Find the new partition, select, and set the mount-point to /.

I am going to be fair and warn you that Windows does not always react well to having its partition resized. I resized my Windows 10 partition, and it damaged the Windows boot loader, so I had to reinstall windows.

Good luck, and welcome to the world of Linux! ^_^


How to have more than 4 desktop spaces in Ubuntu mate

You have to do a right click on the taskbar until the "Add to Panel" option appears (depends on the area you click, usually near the menu is a good place to try) and then choose "Workspace Switcher" from the bottom of the list of the new window. The switcher will appear in the panel and you have to right click on it and select Preferences from the popup menu. Another window will appear and you'll be able to increase the number of workspaces.

After you're done setting the desired number of workspaces you can remove the switcher from the panel and everything will continue working.


The "simplest" way to install a deb package is to download it and run dpkg.

Ubuntu App Store can do it, but not always it show you why it couldn't install a package. There several issues, as broken dependences, for example.

After download a package, you must be within the path where this deb was downloaded:

cd /path/where/was/downloaded
sudo dpkg -i chrome-remote-desktop_current_amd64.deb

or

sudo dpkg -i /path/where/was/downloaded/chrome-remote-desktop_current_amd64.deb

Hint: You can use wildcards to do it, as:

sudo dpkg -i c*deb if it's the only c-beginning .deb filename in this path

sudo dpkg -i c* if it's the only c-beginning filename in this path

sudo dpkg -i * if it's the only .deb file in this path

dpkg will verbose output so we could run after faulting or broken packages. We  can successfully install several packages following dpkg clues.


Go to "startup applications" and create a application launcher.

Name = Compiz
Command = compiz --replace
Comment = start compiz


Disable some specific notifications (e.g. "printer added", "tab ... is ready") on GNOME 3

Although there are options to change notification settings per app in Settings > Notifications, it won't help your cause. As you have already mentioned in your question, there are some older questions which deal with the "printer added" notification, e.g.

Ubuntu 17.04 - 'printer added' notifications under Gnome
How do I disable network printer discovery in Ubuntu 17.10?

Finally, those "X is ready" notifications are sent by GNOME shell itself, not by the specific application. Possibly the easiest way to disable those by using some GNOME shell extensions, e.g.

'Window Is Ready' Notification Remover
NoAnnoyance (Removes the 'Windows is ready' notification and also puts the window into focus)
Focus my window (Removes the 'Windows is ready' notification and also puts the window into focus)

NOTE: Some extensions may not be compatible with your GNOME shell version.


At terminal type sudo -s and enter your password.


Launcher auto-hides but does not come back

Thanks to "Warrioring 64". I found my solution in replies to BUG 9894477.
Launcher reappears:-

By pressing Alt+F1
By pressing super key.
By striking the left side with the pointer 3/4 times quickly.
By moving your pointer towards the left end and when you reach the left end, don't stop and just keep moving left (as if you're trying to push the mouse out of the screen).


ubuntu install black screen (nomodeset not working)

I have no idea why, but I solved the problem by installing ubuntu 1.9.04, not 1.8.04 LTS version....

Doesn't the 2 have the same system requirement?? I swear the nomodeset didn't work with the 1.8.04 LTS image....


How to show (just) the IP address of my router?

One-liners:

nm-tool | grep -i gateway | xargs echo | cut -d' ' -f2
nm-tool | grep -i gateway | awk '{print $2}
netstat -nr | awk '$1 == "0.0.0.0"{print$2}'
arp -n | awk '{print $1}' Note: works only if your machine is the only one on the network
ip route show | grep -i 'default via'| awk '{print $3 }'

output: 192.168.0.1 for me

NOTE:

For 15.04 and later, there is no nm-tool , so use nmcli dev show <IFACE>.  For example,

$ nmcli dev show wlan7 | grep GATEWAY
IP4.GATEWAY:                            192.168.0.1
IP6.GATEWAY:

Edits and additional info

As you can see from examining the command, we take output of nm-tool (which,note, takes information from NetworkManager), find line containing word gateway, print than information with echo (separated by spaces), and then cut off only second item of that whole output. Note, that if you have two or more connections there, you may need top remove xargs echo | cut -d' ' -f2 part, and replace it with awk '{print $2}'; in other words the whole line would look like this nm-tool | grep -i gateway | awk '{print $2}'. Alternatively you could have used nm-tool | grep -oP '(?i)gateway:\s*\K\S+' as proposed by Avinash Raj in the comments. As you can see there is nothing special done here , and the whole ordeal here is merely an exercise in using output editing tools such as cut, awk, and grep.

Another method of getting the gateway information is through nmcli dev list (yes, still relying on network manager) command. nmcli is the command - line version of network manager. You could run nmcli dev list | grep -i routers or you could run nmcli dev list | grep -i 'gw =' . Again, you could exercise in in cutting of all the other info except the desired ip address, if you wanted to.

Since in the original question the only specification was to print the default gateway only, I am relying on output of nm-tool here. NetworkManager comes with Ubuntu by default, this is the standard way for managing Ubuntu's network connections. If you use something other , like wicd or connect through wpa_cli, nm-tool won't provide you an answer. In such case you may find other people's answers bellow more useful.

A more distro-neutral, and config-neutral option would be to use netstat -n , which uses kernel routing table, similar to route -n.
It's output is bellow, nothing surprising.

  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0
192.168.0.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0

And here's the way to cut out your desired info : netstat -nr | awk '$1 == "0.0.0.0"{print$2}'

Another one, neutral as well: arp -n | awk '{print $1}'


How do I send a fax using a fax modem in Ubuntu?

You can install efax software by running in terminal.

sudo apt-get install efax

If you need GUI for that, install it by

sudo apt-get install efax-gtk


I suppose you have Cinnamon installed and running in your computer.

Cinnamon has a Website with themes, extensions and applets. Here is the link for themes:

http://cinnamon-spices.linuxmint.com/themes

You have to download the theme you like and uncompress it in /home/your_user/.themes

If you do not have the .themes folder, you can create it. So you must finally have, for the Minty theme for example, the next path: /home/your_user/.themes/Minty

The Minty folder is the uncompressed theme. Into that folder there is another folder called cinnamon (check this for all the themes you want to install).

Then you will be able to select the theme you installed using Cinnamon Settings (program included with Cinnamon).

The GTK themes are needed for the windows. You can get them from Gnome-look.org, for example. These themes must be installed into the same path (/home/your_user/.themes).  Then you can choose the GTK theme in Cinnamon using Cinnamon Settings too.
You can't use Gnome-Shell themes with Cinnamon. You have to use Cinnamon themes.

Sorry for my poor english.

Ariel


Wirless disabled by hardware switch on a Toshiba Notebook Model: NB205-N311/W

Check to see if it is enabled in bios.  Even if it is, reset bios to deafault settings to make sure.  Then unplug, take battery out amd hold the power button for 30 seconds.  It should work then, at least it did for me for the same problem.


Sharing public folder between Ubuntu machines, via "Personal File Sharing"

As far as my own experience tells me, you just have to:

sudo apt-get install apache2.2-bin libapache2-mod-dnssd


How to force Ubuntu to always detect my touchpad as AlpsPS/2 ALPS GlidePoint?

I have a similar issue with my Lenovo ideapad Y700; after trying several things and re-installing Ubuntu twice,I confirmed that my system  automatically changes my touchpad to a generic mouse.

I have logged a bug

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1882388

UPDATE

I have realised that if I turn off the mouse

sudo modprobe -r psmouse

and back on

sudo modprobe psmouse

twice (or more) in a row the touchpad is recognised as such and starts working for a period of time.

Then, it is recognised back as a generic mouse and stops working.

It is a temporary workaround that may help you...


The VM does not have a WiFi device. How did you configure the VM? To pass the wired NIC through to be managed by the guest OS rather than the host? You would need to do the same for your WiFi device, if you want to manage it in the guest, but then it would not be usable from the host.

The easiest thing to do is to simply have your VM configured to bridge the network from the host, and it will appear as "wired" in the guest, but it will just be a bridge to whatever you are using in your host. Then, you manage the actual network connection from the host OS.


It's an annoying bug, reported here (though I'm not 100% sure that this isn't a duplicate of the bug I was looking for).

As a workaround you can run this from a terminal:

killall nautilus ; (nautilus &)


Oneliner command to use kill given tcp port number instead of PID?

fuser can do that:

sudo fuser -KILL -k -n tcp 8088


I was using "general.useragent.override" in Firefox to spoof a Microsoft Edge web browser. For some reason, when I removed the spoof and deleted my cookies the audio corrected itself.

Not sure if this is an Edge specific block or if it was a browser spoof problem.

Very strange to say the least.


The unity searchs apps from .desktop file created by the app during installation. Some time the app doesn't create such file.
just logout and log back in.. See if now you can find the app. Or you can launch from command prompt. Type grub and keep pressing Tab to complete the command


Setup help for new user on 14.04 LTS required

Simply install Ubuntu following this guide.
At step Installation Type select Install Ubuntu alongside Windows.
This way partitioning will be done automatically by the Ubuntu installer and none are your Windows data/files will be lost.

Before doing anything : Make sure you do a backup !

The installer's behavior is not always predictable. Sometimes it
considers an existing partition to be worth keeping, sometimes not.
And this option will only be available, if there is either
unpartitioned space on the disk, or there are other partitions besides
the Windows system partition (this may also accidentally be your data
partition!), which then will probably get overwritten. - Byte Commander


[unixODBC]Missing database name in call to CC_connect

As far as I could see in the github issue (I did not see the sources), the problem is in the configuration file.
It seems that upon connection, all you specify is the DSN name 'triples'. So, the system will look after a section named 'triples' in your config file.  The obdc.ini file can reside in the user directory or in /etc.  This means you should have in one of these files (I suspect /etc/odbc.ini) something like:

[triples]
Description      = Whatever
Driver           = PostgreSQL
Database         = yourdatabse
Servername       = yourserver
Port             = 5432
Username         = yourusername
Password         = yourpassword


Copy paste buffer configuration best practices

I use parcellite  - a "lightweight GTK+ clipboard manager". See the parcellite page on Sourceforge for screenshots.

It can sync both clipboards, has a history and some more features.


Will Ubuntu work with reproducible builds?

(This is a copy of my answer on ubuntu-devel.)

With very few exceptions, nearly all of Debian's work on this will just be going into the packages that form part of the package build toolchain, and as such Ubuntu will inherit it over the natural course of merging and syncing packages from Debian.  The possible exceptions are things like the proposed libfaketime etc. preloads that we might insert into builds; I'd certainly be keen to keep up to date with things Debian does in this area, not just to protect against intrusion but also because there are immediate practical benefits to doing so (safer multiarch handling).

I'm not aware that this has been specifically discussed within Canonical, mostly because most of the relevant people are pretty heads-down working on the Ubuntu Touch product at the moment; but I also think there's work to be done in Debian first before we pick anything up.


Ubuntu 16.04 virtualenvwrapper python3.6 path

I think you just need to set the VIRTUALENVWRAPPER_PYTHON variable to be python3 before you run the virtualenvwrapper command.

So just add:

VIRTUALENVWRAPPER_PYTHON='/usr/bin/python3'
source /usr/local/bin/virtualenvwrapper.sh

to your .bashrc.

(From http://railslide.io/virtualenvwrapper-python3.html)


You use either gconf-editor /system/http_proxy/ignore_hosts
or dconf-editor (and manually navigate to system -> http_proxy -> ignore_hosts).

Contrary to what others wrote, there is no need to re-login for changes to take effect.
Moreover, settings done for /system/http_proxy/ignore_hosts also take effect for https.


Your error is in the repository you are adding.

https://cloud.r-project.org/bin/linux/ubuntu bionic-cran36/

Use the bionic-cran35 repository. R3.6 will install fine on ubuntu 18. You can find the instructions on digitalocean

https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04-quickstart

On a previous machine in the spring of 19 I used the 36 repository too, before 35 had r3.6. I ended up installing the 19.10 packages, and that worked ok. I just removed them, and correctly install r3.6 on my machine using the appropriate repository today.


How to fix "Could not open lock file" because "Permission denied"?

E: Unable to lock the administration directory (/var/lib/dpkg/), are
  you root?

This line says you are not authorized to install/update. You need to be root to do it....

You can add sudo before apt-get or you can do sudo -s to be root.

Example: sudo apt-get update

  or

sudo -s will consider you as root until you close your terminal.

Then

apt-get update


apt-get upgrade overwrites build configurations

when you say "modified configurations", do you mean you added some config files in /etc/somewhere, or that you compiled the package with different options?

If the former, then those files, if declared as configuration files, should not be touched when upgrading, as per Debian policy: http://www.debian.org/doc/debian-policy/ch-files.html.

If the latter, then well yes, apt-get is doing what you ask: it's entirely upgrading the package (and all its binaries) with a new version. If you want to exclude a package from the upgrade process (rather, if you want to keep a specific version of a package regardless of whether an updated version is available), then you need to "pin" the package. See more about pinning here:

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


How can I make an icon for my new launcher?

First, the icon

Just made you one. CC SA 3.0.

Adapted from aleixoteixeira's design.

Get the SVG here - ubuntu will scale it and it will never be blury because it's an SVG file.

What to do with it now?

I save all my icons in either /usr/share/icons/ or /usr/share/icons/current_pack. It makes no difference, and I don't know what is better practise.

png will scale, but when it tries to scale it bigger will look blurry. Only vector graphics files do, so for this svg is best.


You can't rename a device node by assigning to the NAME key in udev rules. At least not in systemd udev. Only a network device name can be changed. From the udev manual:

   NAME
       The name to use for a network interface. See
       systemd.link(5) for a higher-level mechanism
       for setting the interface name. The name of a
       device node cannot be changed by udev, only
       additional symlinks can be created.

Any udev symlink for a device is not special in it self. It is just a file system symbolic link to the device node. However, an example of useful usage of udev symlink rules is that because device names depends on the order in which the kernel discover devices, the device name that a specific file system resides on is unpredictable. At one time a thumb drive may get the device name /dev/sdf, and at another /dev/sdg. Udev rules are usually installed which adds predictable symlink names, like it is done on my Ubuntu laptop in
/dev/disk/by-uuid/ where the uuid of the file systems on the disk are symbolic links pointing to the kernel device name.

As for your last question, you can not have a udev symlink point to anything but a device node, so you can not have it point to a mount point:

   SYMLINK
       The name of a symlink targeting the node. Every
       matching rule adds this value to the list of
       symlinks to be created.

To achieve what you want to do, you may give the file system a label, and have the program you use to mount your file systems (udisks2?) use the label in the name of the mount point.


The best thing you can do is to upload the information so that the problem can be fixed. That's what it's there for. The gathered information can be used by the system to find similar reports, which helps developers identify the cause. This service also knows what pieces of information could potentially be privacy sensitive and anonymizes it before making it available.

Reporting bugs is how software is improved. It's like calling customer care when you have an issue. It is also a good contribution to Ubuntu, because your report might lead to the problem getting fixed before other users encounters the same bug.


Choppy, stuttery & sped-up sound after update

I had the same problem, the solution for me was disabling automute.

alsamixer => disable automute


There are several problems with that snippet. I recommend you learn bash's syntax a little better before writing scripts in it.

Anyway, if you want to edit a file, you want a file editor. sed is not a file editor. I believe this will do what you want.

#!/bin/bash

read -p "Enter the ip address: " ipnumber

ed -s application.properties << EOF
/:@/c
connection.url=jdbc:oracle:thin:@$ipnumber:1521:billz
.
w
EOF

What that ed script says is: /:@/c - on the first line containing :@, change the line with everything following until a line containing only a .. Then w to write the changes to the file.

See http://wiki.bash-hackers.org/doku.php?id=howto:edit-ed for help with editing using ed, and http://mywiki.wooledge.org/BashGuide to learn bash.

Update:
sed can be used to achieve the same, but it can't edit files, it can only be used to create a new file.

# POSIX
sed "/:@/c\
connection.url=jdbc:oracle:thin:@$ipnumber:1521:billz" application.properties

Here sed will output the file with the changes applied. You can redirect to a new file, then move that file over the old one. GNU sed also has a non-standard -i option that does the last part transparently. GNU sed also doesn't require you to have that newline in the sed script.

# GNU sed
sed -i "/:@/c connection.url=jdbc:oracle:thin:@$ipnumber:1521:billz" application.properties

Note that the ed will only replace the first line that matches the regex while sed will replace all lines matching that regex.


The relevant error here is:

"A TPM error (7) occurred attempting to read a pcr value"

There seems to be an incompatibility with a TPM (trusted platform module) security chip your machine has. Try to look through the BIOS for an option to disable it. If you google around for this error, you will also find people working around this problem by enabling the chip when it was disabled before.

If that doesn't help, have a look at this related question. It seems the boot just hangs for a couple of minutes. So you could still boot and install and fix the problem as described in the linked question.


You can run an interactive haskell interpreter with the hugs command or you can execute a haskell program in a file with the runhugs command - to execute a file called file.hs, enter runhugs file.hs.

eg.

Here I created a simple hello world program (You will probably want to use an actual text editor like Gedit for this; I used cat cause I'm l33t) then tried to run it with hugs but realised that this only launched the interactive session .

This may be very useful for you (and it has wonderful ASCII art) but I wanted to execute my haskell file so I consulted the manpage of hugs and found that I needed to use runhugs for this. When I used the runhugs command it executed my program and printed a "Hello, World!" message.

PS

Why were you using sudo run hugs? There is no command called run and using sudo to run a programming environment could be very dangerous - it allows you to do anything to your system. Only use sudo when absolutely necessary.


Failed to start session on 16.04 (CAN'T access terminal typing CTR+ALT+F1 either)

There are keyboards where the F-keys have special functions like volume control – to reach a TTY you may actually have to press Ctrl+Alt+Fn+F1…F6 in such a case.


How to resolve "permission denied" when emptying the trash?

The following command will empty the trash

sudo rm -rv .local/share/Trash/

And when you don't want any prompts with 'Do you want to delete write protected file x?' add the -f option.

sudo rm -rvf .local/share/Trash/


How many Hz on resolution of 32767 x 32767?

Your last question has already been answered.  However to better Demonstrate this next piece.  Grab a CRT monitor, then grab an LCD monitor with only VGA connections.  Then briefly look at Hz for those monitors.  Now, understand that monitors are going to fully depend on what your refresh rate is going to be.  Normally you can override those values in your Graphics Adapters Settings Page; however you get to those, sometimes doesn't matter.

Your adapter is finding the right rate:pixel ratio the monitor can handle, since this is how many times you can refresh a page on the screen every X amount of seconds.

http://modia.com/what-is-refresh-rate.aspx is a more detailed understanding of what my question just answered.  Remember that components work together, if one is batting under 300 then so will everything else that uses said component.


How do I install the newest version of the Software Center in 10.10?

A current updated version of Lucid holds v2.0.7 of the software center.

There is an old port (now unmaintained) available in a PPA :

sudo add-apt-repository ppa:guido-iodice/guiodiclucid
sudo apt-get update
sudo apt-get install software-center

However this repo also contains lots of other packages, so think twice before using this.
A few packages are still getting updated, but software-center is stuck at 2.1.7 (which is closest to the version maverick was distributed with (3.0.4).

Source : http://www.ubunturoot.com/2010/06/changes-in-ubuntu-software-center-in.html

See the Software center page on Launchpad

Update: According to the ubuntu archive, the package 2.1.7 would indeed be a backport of the maverick version. I tried installing the maverick series (3.0) on a lucid machine but it has unmet dependencies.


seems to be a known issue, trying to edit this file (first make a backup of it)

/etc/modprobe.d/rtl8723be.conf

add the following text:

options rtl8723be fwlps=N ips=N

did this reboot


Bluetooth automatically enables on Lenovo T440s

in most systems adding rfkill block bluetooth before exit 0 in
/etc/rc.local file works.


Is it possible to pin source packages? If so, how?

It turns out that this is not possible, per a friend of a friend on the APT team. apt source doesn't pay attention to pinning.


There are a great many differences between how Gnome is configured in 10.04 and how it's configured in 11.04. While you might loose some settings from the 10.04 desktop I would strongly recommend leaving the .gconf, .gnome, .gnome2, .gnome2_private, .gconf, .gconfd, .config, and .conf folders behind. Moving these over from 10.04 to 11.04 have a high potential for corrupting the desktop. I would also recommend making a tar'd backup of the /home folder prior to any moves.


Transfer Data from Ubuntu Desktop (PC) to Ubuntu Nexus 7 (tablet) without OTG-cable or Wifi

Never used Ubuntu on an ARM processor, congrats! Does the Nexus 7 have the option of mounting without MTP? Haven't been able to connect my Galaxy Nexus phone to Ubuntu since Jelly Bean rolled out...

Mind you there are still a number of options. I know you don't want a cloud based service such as Ubuntu One or Dropbox, but that's probably still the best option if it's just a handful of files. Though still "over wifi", I'd recommend sharing a folder, drive or partition via Samba. It's not "on the cloud", it's on one of your machines. To enable sharing a folder outside your home directory, run gksu gedit /etc/samba/smb.conf and then add

  # Allow sharing of any partition

    usershare owner only = False

Also you might need a password for Samba (even if you don't need it, it's a good idea). Run sudo smbpasswd -a user (replace user with your user name) and set a password.

Actually, full instructions here.


The local DNS is being picked up from DHCP.  This can be fixed like this:

$ nmcli con modify channel-six +ipv4.ignore-auto-dns yes
$ nmcli con up channel-six

The modify command can also have --temporary added to make this a temporary change.  The con up is necessary to apply the change.


Tensor flow not using my nvidia quadro k1000m , says that some libraries are missing

You more than likely just need to add these to your ~/.bashrc or similar
export PATH=$PATH:/usr/local/cuda-11.1/bin
export LD_LIBRARY_PATH=/usr/local/cuda-11.1/lib64/:/usr/local/cuda/lib64/

Just note before you put them in your ~/.bashrc just check these paths do exist
We might have different versions
ls /usr/local/cuda-11.1/lib64/


AMD Radeon R5M430 GPU error while attempting to use DRI_PRIME=1 -> Failed to allocate virtual address for buffer

After many hours of useless attemptings, I finally found a solution!
The solution to my problem is to add radeon.runpm=0 to the file /etc/default/grub in the GRUB_CMDLINE_LINUX_DEFAULT section, and then add DRI_PRIME=1 at the end of the file /etc/environment.


Looks like I managed to solve my issue.

I ran:

sudo add-apt-repository -r ppa:kubuntu-ppa/backports
sudo apt-get update
sudo apt-get -f install
sudo apt-get autoremove

and worked fine.


Prtscr key recognized as Audio Media key

So the answer was that i modified grub file and added to the line GRUB_CMDLINE_LINUX_DEFAULT string i8042.direct i8042.dumbkbd
After i removed it, updated my grub and reboot everything works fine.

P.S. This string was suggested as a fix of bug when after suspend my keyboard was not responding sometimes.


WiFi randomly dies on fresh install of Ubuntu 18.04.1

Ubuntu 18.04.3 is out, you can download and try it to see if your wifi works via LiveCD without installing into your hard drive.

If not, you can still try LiveCD of Ubuntu 16.04.6 which is LTS and still supported at the moment.


Can a Deja Dup backup from Ubuntu be restored on Windows?

Yes. Déjà-Dup is a graphical front-end to Duplicity (Wikipedia page), a command-line backup program. You can run Duplicity on Windows using Cygwin, and restore the files from the command line.

Setting up Duplicity on Windows may be somewhat involved. This guy has some instructions; you may be able to skip setting up some of the dependencies (pexpect, SSH) which are needed for making remote backups.

If I recall correctly, the command to restore is

duplicity restore file:///path/to/backup /path/to/restore/to

You can then access the restored files in that directory.

If you're not familiar with the command line, it would be easier to boot the computer off a live CD, and use duplicity or Déjà-Dup from Linux to restore the files onto your Windows partition.


How to check how long the last uptime if it's not shutdown correctly?

Enter terminal:

  gedit ba.sh

Copy paste this bash script:

#!/bin/bash
while true; do
    date -u >> output.txt
    sleep 1m
done

Save, exit, enter terminal:

  chmod +x ba.sh

Then enter:

  ./ba.sh &

This should output date and time to output.txt once per minute. If you like, you can change the interval etc.


Extra mouse buttons not working in Ubuntu 18.04 VM guest, modified .vmx trick works on 16.04 guest but not 18.04

I found the answer on the web, tried it and it's working:
Stop your VM, add these lines to your VM *.vmx file:

usb.generic.allowHID = "TRUE"
mouse.vusb.enable = "TRUE"
mouse.vusb.useBasicMouse = "FALSE"

Start the VM and it worked for me!


How to convert Ubuntu 16.04 LTS (i386) laptop into wifi hotspot?

If you are using Ubuntu 16.04, see here:
https://help.ubuntu.com/stable/ubuntu-help/net-wireless-adhoc.html

Create a wireless hotspot
You can use your computer as a wireless hotspot. This allows other devices to connect to you without a separate network, and allows you to share an internet connection you've made with another interface, such as to a wired network or over the cellular network.
Click the icon at the very right of the menu bar and select System Settings.
Open Network and select Wireless on the left.
Click the Use as Hotspot button.
If you are already connected to a wireless network, you will be asked if you want to disconnect from that network. A single wireless adapter can only connect to or create one network at a time. Click Create Hotspot to confirm.
`


Failed to lookup alias 'lp': Function not implemented

The systemd-modules-load service reads the files in /etc/modules-load.d to load additional kernel modules specified here. In the directory, you will find a file called cups-filters.conf. This specifies modules for parallel printing including lp. If the modules are not found in /lib/modules, then the service throws that scary looking error. To remove it:

sudoedit /etc/modules-load.d/cups-filters.conf

Comment out all the lines (by placing a # at the start of them)

Save and exit.

Reboot.

(Note to others - there is a symlink in the directory to /etc/modules so that is also read - I have seen cases of obsolete modules being mysteriously specified in that file too)


How to Get An Android Emulator On Ubuntu 16.04

Note - at request of muru in comments full answer moved to What Android emulators are available? **

Short answer is IMO memu on windows, either on bare metal or in a VM, is best for games. The linux options are slower, require more configuration, and do not have the features of memu.

For a full review of the linux options see my post What Android emulators are available?

After a lot of trial and error I will warn you there is no easy way and IMO there are no good emulators in Linux for this (android games).

The best option, sorry to say, is memu (windows, will not run in wine). There is no Linux option that is as stable, fast, easy and full featured as memu for games.

http://www.memuplay.com/

It is free, fast, well integrated into windows, easy file sharing with host, customization, scripting of game play, includes google play store, works out of the box, does not require virtualbox, etc.

Documentation - /http://www.memuplay.com/download/Memu-User-Manual.pdf

Record game actions to automate game play - http://www.memuplay.com/blog/how-to-use-operation-record/

memu screen shots

Linux options / limitations

See What Android emulators are available?


I intend to install 14.04 onto a fresh Crucial m500 SSD, but will it auto-format?

Anything in the SSD before will no longer exist, and be replaced with just Ubuntu using a GPT (Guid Partition Table) and write a file system, then install Ubuntu.


How to Share folders in 14.04 Server with Gnome

You can test if you have it running by typing smbstatus, if it shows any information about connected or not connected clients then it is working, if you get an error, it is not running or installed. Please make sure you also have installed the libpam-smbpass package. It is used to sync system users with the samba database for cases like letting users connect to a resource while asking for a password.

apt-get install libpam-smbpass

If you already have Samba installed with all needed packages then first edit the smb.conf file:

nano /etc/samba/smb.conf

At the end of the file add the shared resource. In my case I will share a resource called "shareme":

[shareme]
    comment = Server Share Resource
    path = /path/to/shared/resource
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0777

Save that by pressing CTRL+X which should show an option below about "Do you want to save?" and then exit the editor. Now restart the Samba service:

service smbd restart

or

/etc/init.d/smbd restart

The options above are:

comment - Shows the comments when browsing through a gui.

path - Folder you wish to share

browsable - Allows clients to see the shared resource when they use a file explorer (Like explorer on Windows or Nautilus on Ubuntu)
.
guest ok - Allow user to connect to the resource without the need for a password.

read only - Sets a read-only permission so users don't start going medieval on the shared resource.

create mask - When files/folders are created, this will be the permissions they will have set upon creation.. I left it like 777 which would be full to allow anyone to Read, Write or Execute, but if you don't want somebody deleting something, set them to 0755.

This is a general explanation, which does not include a lot of security and user options. If you want, you can also read the Samba Guide or even jump to the Ubuntu Samba Guide

Other tips are (Which can be edited in the smb.conf file)

Make sure you are on the same workgroup (First option the samba config file)
If you start getting weird names on the shared resource, you can try adding the option mangled names=no to the Global section in the smb.conf file.
If users can see the shared resource but can not connect to it, even with the settings above, you can add/edit the option force user = YOUR_USER in the Global section which forces any resource to think the user connecting is you (Do not do this on a place you don't trust).
To see all resources on the LAN network, you can use smbtree which would look like this:

XTREME
    \\CYREX                 cyrex server (Samba, Ubuntu)
        \\CYREX\img
        \\CYREX\movies
        \\CYREX\TVSeries
        \\CYREX\print$          Printer Drivers
        \\CYREX\IPC$            IPC Service (cyrex server (Samba, Ubuntu))

    \\MARY                  mary server (Samba, Ubuntu)
        \\MARY\temas
        \\MARY\IPC$             IPC Service (mary server (Samba, Ubuntu))
        \\MARY\print$           Printer Drivers

Lastly, in your question you mention you have a minimal GUI setup with Gnome. If the option to do all the sharing can be done via GUI, then you first need to install the following packages in order to have the option available when right clicking a folder (This may depend if you are using Unity/Files as the GUI or full Gnome/Nautilus as the GUI)

apt-get install samba libpam-smbpass samba-dsdb-modules samba-vfs-modules python-samba samba-common-bin samba-common samba-libs nautilus-share libgnomevfs2-extra

After restarting, this should be enough to share via GUI and also be able to see shares. Again, in my case, I am testing this with Unity.


This is the definitive guide for Minecraft Installation issues

How to install Minecraft (Client)


"sleep" button on keyboard puts computer into hibernate

I had to disable suspend button (button-suspend):

gsettings set org.gnome.settings-daemon.plugins.power button-suspend 'nothing'

But then the sleep/suspend button did nothing at all, even with the system shortcut, so I had to utilize the CompizConfig Settings Manager: Commands > Enable commands.

I added following for command line 0: gnome-screensaver-command -l. Then I switched to the tab "Key Bindings" and grabbed my key for command 0. (It is set to XF86Sleep now).

Everything works as expected now.


Adapted from my answer here.

Adding this line:

_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'

to /etc/environment should fix this issue.

If you can't edit your /etc/environment for some reason or it doesn't work then you can try running this command instead in a terminal and then launching the app (from the same terminal):

export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'

This fix works as of Ubuntu 16.04 and OpenJDK 8u151 (haven't checked with Oracle JDK or Java 9) on the jEdit text-editor and other Java Swing applications.

Working example (jEdit):

Note: Some fonts and AA settings complicate the problem. In jEdit, I use the default Java fonts ("Dialog" as it's called) for everything. You can probably use a different font for the Text-Area but Dialog is the best for buttons, etc. The best Text-Area AA setting I've found is standard but your mileage may vary.


How to disable unnecessary services starting at boot in Ubuntu 18.04?

To see which service takes how long to start during system boot, you can run systemd-analyze blame. This will give you a list of services sorted by how long it took to start each service. From there, you can see if there's anything you don't need on your system and disable it with sudo systemctl disable.