As others mentioned, autoremove should be safe, but then again, you said that you have bad experiences, and I also remember autoremove removing some stuff that should not be removed.
It seems like autoremove can have problems with some meta-packages. Say you installed the gnome meta-package for the entire gnome-desktop (or it was installed when setting up the system), which also includes programs like evolution and lots of games, which you might want to remove, because you are using thunderbird and do not want to have those games and the like. This requires you to also remove the gnome meta-package, since it depends on all those packages. But this will make all the other packages that were installed as dependencies of gnome "auto-removeable", including e.g. gnome-shell, which you most likely want to keep if you want to continue using that desktop.
So it's always a good idea to check the packages recommended for auto-removal. If you are using a graphical package manager like synaptic, you can easily do so and uncheck the "automatically installed" flag from packages you want to keep (like gnome-shell in the above example). This will also remove all the packages those depend on from the auto-removeable list, so you might only have to "fix" a few of those, and not all.
Still, it should not remove anything that's really essential to your system, so even if you accidentally removed e.g. your desktop, you can still boot and log into your system and revert those changes using the command line.

Update: Recently, after a dist upgrade (Debian), autoremove actually removed something related to hard disc encryption (still not sure what exactly, probably related to the issue described here), causing my system to be unable to decrypt the hard disc and to boot with the latest Kernel. Luckily, it still worked with an older Kernel that was still installed and I could re-install all that was previously autoremoved, otherwise my system would have been wrecked, including my data.
I don't think there is a "undo last changes" option in apt and friends. In synaptic there is a menu option to see the last changes (File -> History; seems to just show some log files, although I could not find the logs themselves; also, I am not sure if this only lists changes made in Synaptic or also e.g. in apt etc.), so I copied the names of all the packages I autoremoved since the last successful reboot (luckily, I reboot daily) from those logs and re-installed them, then rebooted.


Gtk warning when opening Gedit in terminal

Use this

(nohup gedit 2>/dev/null &)

This runs gedit in the background in a sub-shell, with nohup. Hence, the error messages are handled by nohup, and closing the terminal wouldn't affect gedit. A simpler way would be:

gedit &> /dev/null

This just discards any error messages from gedit.


Does Unity on UNR provide power savings over the traditional UI?

Since UNR was discontinued with Ubuntu 11.04 (there's only a "desktop edition" instead), I assume you are talking about default Unity interface - unless, of course, you use Ubuntu 10.10 or 10.04.

Anyway, there's no reason to stick with Unity for power savings, Unity depends on hardware accelerated Compiz which tends to be quite power hungry.

If a battery lifetime is a big concern for you, you should even consider using an older release than 11.04 due to power regression in recent versions of Linux kernel.


According to the comment made by OP to this post:

  Couldn't find the exact folder but I reinstalled it from the Synaptic
  Manager and it seems to work now. Thanks.


Kernel modules missing after update to 5.4.0-37

I had the same problem, but using 18.04 lts. After installing 5.4.0-37 from apt, a specific package was not installed and I couldn't get Atheros kernel module.

I switched back to my working kernel and installed manually all other 5.4.0-37 packages found on repo. The Atheros wireless driver is in this one:

linux-modules-extra-5.4.0-37-generic

This is for 18.04 LTS; but maybe it also solve for 20.04 LTS. BTW, I've installed a fresh Kubuntu 20.04 LTS yesterday and the update to 5.4.0-37 worked fine, including Atheros wireless driver (ath10k*).

Hope this helps.


goto ubuntu software centre and then click on the install software.Uninstall the firefox and then install it again .Restart the system .It will fix the problems.


From the terminal execute this command.

rm -Rf ~/.wine-browser
Start netflix, it will reinstall the .wine-browser folder againg, when you see netflix login screen CLOSED.
Execute the program Silverlight.Configuration.exe that is on folder /.wine-browser.

cd ~/.wine-browser/drive_c/Program*Files/Microsoft*Silverlight/4.1.10329.0
wine Silverlight.Configuration.exe

On the Playback tab: Uncheck the box that say: Enable download and updates to components required for protected contents playback.
Login to your Netflix account and problem fix...


OpenVPN: Allow access only for local connections (via OpenVPN)

Should be pretty easy with UFW.

Assuming your range is something like 192.168.1.x it would be something like

sudo ufw allow from 192.168.1.0/24 to any port 22
sudo ufw allow from 192.168.1.0/24 to any port 80
sudo ufw allow from 192.168.1.0/24 to any port 443

If you want to limit access to an exact IP address it would be something like

sudo ufw allow form xxx.xxx.x.x to any port 22

Basically just check out UFW - Community Help Wiki and brush up on UFW.

Also, if you want to restrict access to VPN the ports are usually

 1701/tcp, 4500/udp, and 500/udp

but you may want to look that up to be sure


hddtemp and smartctl with usb to sata external hdd

The problem is that /dev/sd? matches the file names that exist, but there's no file named sata:anything...

for i in /dev/sd? ; do hddtemp sata:$i; done

should work though.


What command can i use to create a directory such as desktop, documents, downloads etc. For a new user's in ubuntu server

Directories like Desktop, Documents, Music, etc. are a desktop (not server) convention.
Those directories are automatically created on an Ubuntu Desktop system, but not on an Ubuntu Server system.
If you want those directories on a server, you can easily make them yourself. There's nothing special about them:
mkdir ~/Documents ~/Downloads ~/Music ~/Pictures ~/Videos

Warning: Desktop Trash won't work outside of a Desktop Environment.


Landscape standalone server 18.03 on Ubuntu 18.04: cannot sync pocket from demo (gpg certs missing?)

I was able to solve my own problem.

Steps: first, use gpg to download the key with the missing public key ID (from above-'3B4FE6ACC0B21F32') from Ubuntu's key server (directions on verifying the identity of an Ubuntu image will have directions on that).  Then, use gpg to export the key to a .pem file.

Next, import the key into the landscape API keychain, using landscape-api import-gpg-key.  I named mine "ubuntu-bionic-public-key-2".

Finally, (and this part really needs to be added to the documentation that I originally referenced): do the following:

# landscape-api edit-pocket --mirror-gpg-key ubuntu-bionic-public-key-2 release bionic ubuntu


Reinstall Ubuntu keep Windows (dual boot, GNU Grub)

The advantage about Linux, the solution is not always reinstalling. You have a rescue Shell, which it is the tool to repair blank screen (graphics driver and Xorg) you should search about your graphics card and Ubuntu.


How do I sort by human readable sizes numerically?

Try something like:

du -h folder | sort -h

Alternatives: -n for Numerical sorting

Note: the -h option of sort only exists in newer versions of Ubuntu.


Open PDF file with Krusader on Ubunti 18.04

I just installed krusader on Ubuntu 18.04.1, fully updated, to see if I could reproduce your problem.

apt policy krusader has Installed: 2:2.6.0-1.

Without making any changes to any settings, including

  "I set the system default application for pdf files so when I open the Ubuntu's default file browser and click on any pdf file it opens with Document Viewer. That is fine."

double-clicking on a pdf file in krusader opened the pdf file in Document Viewer.

Could it be that when you installed krusader you used the --no-install-recommends option to reduced the number of files pulled in? Or is it possible that the "changes" you made to the system defaults, as quoted from your question, had this effect?

I suggest you

purge your existing krusader install
rename ~/.config/krusaderrc to something else at least temporarily
reinstall krusader allowing all recommends which should be the default anyway.


How can I get 2 finger scrolling to work?

The answer is very simple. You installed a wrong Elantech driver first.

This can be fixed by running

sudo dkms remove psmouse/elantech-x551c --all
sudo apt-get install --reinstall focaltech-dkms
sudo modprobe -r psmouse
sudo modprobe psmouse


Impossible to Install Ubuntu 18.04 alongside Windows 10 from a USB drive using NTFS?

I would like to try and help this situation but I want to make sure I have all details first. Correct me if I'm wrong or insure that I have it correct please.
Your computer does not have a cd,DVD, or blu-ray drive
You currently have Windows OS installed and working on SSD or hdd
It really seems you are wanting both on usb, but from my experience Windows tried very hard to make it so you can not install it on anything connected by a USB.
I currently run duel boot Ubuntu 18.04 and windows 10. Installed on SSD.


Live ISO not booting, unable to install on old notebook

Your Presario with the Intel core 2 duo may support 64 bits see here . But a recent Linux will probably not support your hardware anymore.
But: there are distributions out there, which will support that hardware. Try MXLinux in the 32 bit variant. I've done that with an old Thinkpad - works perfectly


You forget to import the pgp-key for this repository. Therefore the error reports.

To add the key run sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 afterwards sudo apt update.

There is a lengthy explanation of how to add their repositories here: http://cran.ma.imperial.ac.uk/bin/linux/ubuntu/README


Based on your samples, it sounds like what you actually want to do is append the following line (removing an additional space character) if the current line is exactly 78 characters long:

$ sed '/.\{78\}/{N;s/\n //;}' file.ldif
description: Gestion des acces de la CR 902 sur les environnements Big Data en ecriture
distinguishedName: CN=GU_902_A_D5_IC_W,OU=Groupes,OU=CR 902,OU=CAM,DC=LDSCOMPTES
instanceType: 4
whenCreated: 20180115131643.0Z

A possibly less fragile approach might be to adapt 40. Append a line to the previous if it starts with an equal sign "=" from Peter Krumins' Sed One-Liners Explained to join the following line when it begins with a space

sed -e :a -e '$!N;s/\n //;ta' -e 'P;D' file.ldif

NOTE: if your files use DOS/Windows style CRLF line endings, then you will need to replace \n in the above expressions by \r\n i.e.

sed '/.\{78\}/{N;s/\r\n //;}' file.ldif

or

sed -e :a -e '$!N;s/\r\n //;ta' -e 'P;D' file.ldif


It will be updated, when maintainers decide.

Stable 39 has been released on July 2.

Next version can be installed from ppa

sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt-get update
sudo apt-get install firefox

This is an Official Firefox PPA

Note: Generally this ppa contains next beta version of Firefox. I do no recommend keeping this ppa always connected. It can be removed by

sudo add-apt-repository -r ppa:mozillateam/firefox-next

but packages installed from this ppa will stay. No new updates will be done.

Update: Firefox 39 is already available from standard Ubuntu repositories.


Print numbered arguments in Command Line Tool

My solution (you already know ;) as a function (no need to deal with PATH) to become one-liner:

showargs() { i=1; for f; do printf "arg%d: <%s>\n" $i "$f"; ((i++)); done; }


Nautilus crashes accessing a certain folder

I had the same problem.  Removing a file from the affected folder resulting in nautilus crashing whatever folder I tried to open.

The only thing I found that fixed it was completely removing nautilus:

sudo apt-get  purge nautilus

and then reinstalling it:

sudo apt-get install nautilus


What's the best chess program for a beginner?

I played with PyChess (It's in the Software Center) for a while. Among other things, it can give hints for what the best move would be for your current situation. You can also choose the difficulty, so you can start at a low level, and after you've beaten your computer a couple of times move up to a stronger opponent.

Good luck!


How to check logs for all connections Linux made to servers and/or downloads

That data is logged by the browser, not by Ubuntu.

If you still have the download you could check the checksum. If that checks out at least you know it is a valid download.

But... you seem to have problems with Sophos and probably are asking for something that does not solve your actual problem ;)


I do not fully understand wiki AptGet/Offline

Note: The acutal answer is in the comment from muru

The wiki descriptions I saw about Ubuntu's repositories are a bit misleading IMHO. I can not edit there, so I just outline what I learned in this answer.

I am referring to the pages "AptGet/Offline/Repository" and "What are Repositories?"

I now understood that an Ubuntu repository has two separate parts
 1) a collection of meta data about the software, rather small (a few MByte)
 2) the software itself, rather big (over 100GByte)

There is a file server http://archive.ubuntu.com. It has the following sub directories

 http://archive.ubuntu.com/ubuntu
  dists/                [here is the meta data]
  pool/                 [here is the software binaries/sources]
  indicies/             [don't know]
  project/              [don't know]

When posting this question I had been aware about 1) only. Most posts link directly into the dists/ section, so I never went up into the parent folder and discoverd 2). That section is not really described in the wiki pages.

The dists/ section  contains the meta data about the packages. Its ordered by distribution (xenial, yakkety,etc). There are the standard packages, security updates, standard updates, proposed versions and backport packages. All these divide the packages in main, restricted, universe and multiverse as explained in detail in the posts. One of the subfolders is named "source", but it does not contain actual sources.
With meta data I mean all information the ubuntu package manager needs to work. It includes text to display to the user, information what modules a package comprises of, which versions are required, what other libraray dependencies it has and such. Its mainly lists. Although there are many packages the full download is rather small, e.g. for 16.04 LTS "xenial" about 100MB. There is no actual software anywhere here.

The actual software is in the other branch: pool/. It also has the structure main, restricted, universe and multiverse. Beneath there are alphabetically ordered folders, one for each package containing all sorts of files, often including different versions that those packages comprise of. It has not areas like standard, security updates, updates, proposed or backports, because appearantly anything is put into those folders.

I do not know (yet) about the indicies/ and project/ parts.

Summary

So in order to get anything working offline, one need both, the content of the dists/ folder and the contents (or parts of it) of the pool/ folder.

Apt Offline Tool

Unfortunately the wiki page "AptGet/Offline/Repository" does not tell that there is a much more comfortable command line tool that apt-medium. Its designed to create a complete offline repository. Its called "apt-mirror". Unforturnately it is not installed by default. If you just install and run it without any change it will download and install a repository in /var/spool/apt-mirror comprising of data from both dist/ and pool/ (and possibly other bits(?)). Be warned that we are talking for 16.04 about over 100GB of data which could take hours/days/a week to download, depeding on your connection. It will tell you how much it is gonna download, so you could stop it with Ctrl-C and comment out some unneeded parts from the configuration file and start again. First time I did not note the size and was surprised next morning that did dit not seem to do something until I found out that my disk was full. I thought it was nice that it did not fill it up to the point that it stalled the whole system, I could just delete everything and start new. Once its done one can copy it and put it either on an offline computer or a network share.

Here is a very nice description of how to do it:

https://odzangba.wordpress.com/2007/12/24/use-apt-mirror-to-create-your-own-ubuntu-mirror/

EDIT

I still have quite a bit of trouble getting this to work (eventually it did work). I am not sure about the root causes, but as I know that many struggle with the offline issue I will put here my do's and don't's that I noted down for this procedure. Not all might be necessary, though

Copying an offline repository could cause trouble, it might change owner and permissions. I got things going suddently when I set the copied folder recursively to chmod 777. The result was that all files and the apt-mirror folder on the usbdrive had the following permissions

drwxrwxrwx root root 123 Feb 15 00:00 apt-mirror

The best way to check if an offline repository works is to set the online computer's /etc/apt/sources.list file to the still mounted usbdrive and start
aptitude in a terminal window. xterm is easier since you could use a mouse then. When you open aptitude it has not yet updated the repository, hence it shows your current state of the online computer. Select Update in the file menu and see what happens. Say Ok if it asks about root. Where there is a single warning or error message in the update output, the update will likely fail (despite what the messages might say). You can verify that instantly, because aptitude will show a rediculously low number of uninstalled packages (I had 5 or 10 with 80GB on my usb drive). Then you know you need to fix something.
never start with

sudo apt-mirror

but use the following way:

  sudo -i
     su - apt-mirror -c apt-mirror

I have no idea what this line really does, as the help does not give command options, so what -c is doing only a script check could reveal. Please edit this if you know. I never got the repository working with the first line, but if there was no other problem, always with the second.
Apt-mirror can download updates, i.e. you can connect the usb a week later again and re-run it to catch any updates. I did not work with me when I mounted the usb to a different place. That means the mount point must be the same folder, e.g. /media/usbdrive. For that reason I always unmount it with the gui and remount it manually. Here's the sequence

sudo fdisk -l      // find out the device id, e.g. sdc1
sudo mount /dev/sdc1 /media/usbdrive

sudo umount /dev/sdc1   //when done
The /etc/apt/mirror-list file I used looked like this:

# make sure that path never changes, also for updates
set base_path    /media/usbdrive/apt-mirror
set nthreads     20
set _tilde 0
# I never got it working when I used "deb" or "deb-amd64" alone
# only success with both line amd64 and i386. Even when I only
# want the x64 files.

  deb-amd64 http://de.archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
      deb-i386  http://de.archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
      # must match the archive address, note the "de."
      clean http://de.archive.ubuntu.com/ubunutu

Hope this its useful
CatMan


Try using the command: sudo apt purge ubuntu-desktop; sudo apt install ububtu-desktop

Should reinstall the desktop environment. Check back with results when you got it! (Also maybe a picture if you can get one).

There is also some guide out there if you Google something like ubuntu add user command line.


I had similar problem on older notebook, but the installation went to the end and hung. Although if Your case is related I suggest making sure You have enough RAM and define swap space - at the same step as installation target (swap for temporary storage during installation and work of system in the future).

Also I would'n concern the installation about sda2 as /home, You can do that afterwards, just don't format or change anything You don't need to.


The answer for this one is short and simple. Disable Hardware Acceleration and restart your browser for it to take effect.
Hardware Acceleration is when the browser lets some of the executing code run on the GPU, thus removing the burden from your CPU. Basically, it lets your video card take over some of the tasks.
The thing is, it doesn't actually work well with Linux, if at all. Even if you try to patch it, it doesn't work well - again, if at all.
As this one is about Chrome/Chromium, we can explain it fairly easily:

Google says it has no plans to enable Chrome hardware acceleration on
Linux — not even as an experimental option.

Source: OMG Ubuntu
So, the next obvious question is, "If it's not working, or even really enabled properly, why is there an option in the Linux version and why is it enabled by default?"
The answer to that is, "Your guess is as good as mine."
If you're really bent on trying, and accepting the resultant bugs, you can try to patch it but I've not seen it work well nor make any appreciable difference.
NOTE: Hardware Acceleration is the culprit (with browser bugs) so frequently that it's my default suggestion for things like this. It's the solution more often than not.


How to make ubuntu identify your latest texlive version (2015)

Remove the version being installed via the Ubuntu repositories:

sudo apt-get remove 'texlive*'

Edit the path environment in /etc/environment:

sudo nano /etc/environment

Add the path to the texlive installation, e.g. for a 32-bit installation:

PATH="/usr/local/texlive/2015/bin/i386-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

or for a 64-bit installation:

PATH="/usr/local/texlive/2015/bin/x68_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

Replace /usr/local/texlive/2015/bin/i386-linux with the path in your system.


How do I set user-session to gnome-classic in gdm3?

sudo update-alternatives --install /etc/alternatives/x-session-manager gnome-session-classic /usr/bin/gnome-session-classic 99

and

cd /usr/share/xsessions
sudo mv gnome.desktop gnome.desktop-orig

has done the trick.


use of patterns symbol in regular expression

First of all, few notes:

\d is the shorthand to express any digit. [0-9] and character class [[:digit:]] are analogous to \d.
\w is the shorthand for all alphanumerics and _. [a-zA-Z0-9_] and [[:alnum:]_] are analogous to \w.

Now the Regex patterns:

[a-fA-F\d]{30} will match any of the characters among abcdefABCDEF0123456789 exactly 30 times.
[\d\w] will match any single character between [0-9] and [a-zA-Z0-9_]. Note that \w contains [0-9] so you don't need \d. Just use \w.
[-+_~.\d\w] will match any single character between -+_~.[0-9][a-zA-Z0-9_]. Note that \w alreadly contains _ and [0-9] so you don't need to explicitely mention _ and \d. This can be simplified as [-+~.\w]
[-\d\w]{0,253} will match any of the characters between -, [0-9] and [a-zA-Z0-9_] with a minimum of 0 to a maximum of 253 times. Again \d is not needed, you can use [-\w]{0,253}


How to install Adobe Flash to Chromium browser

Whenever you run root operations, such as apt-get, you absolutely must use sudo. Otherwise, you will get the "Permission Denied" error. The message even hints at what you should be trying: "Are you root?"

Use sudo apt-get install flashplayer to install that package.

As Pilot6 has pointed out in the comments, you need pepperflash for Chromium. However, the package name he gave you was not correct. You want:

sudo apt-get install pepperflashplugin-nonfree

That will install Flash Player for Chromium (and I believe Firefox). It will start working either after you restart Chromium or reboot the computer.

If it doesn't, run

sudo update-pepperflashplugin-nonfree --install

to manually install it to Chromium.


Deleting Users and their directories Would delete everything from my system?

In short, it will be a rather big hassle to revert all changes to the system and eliminate all traces of use. As you're not wanting to keep anything, I would strongly suggest you to just do a reinstall. This will be faster.

Anyway, you asked for a manual removal of stuff, so I will also try to answer that. Note that I probably forgot something which might be left, or that you might easily delete a file too much and make the system unstable or unusable. No warranty on that.

  All the software that I had installed

No, deleting your user account will not uninstall any system-wide software! If you have installed an application in your home directory though and you opt to delete the entire home directory, it will be gone. But all programs installed through the Software Center, Synaptic, apt, apt-get, aptitude, dpkg, etc... will remain. You would have to uninstall them all manually.

A good start for finding out  what packages you installed is the output of:

apt-mark showmanual

But prepare for a rather long list that contains also all preinstalled and system packages which you should not remove. Only uninstall those which you can remember to have installed yourself. This gets done most easily with:

sudo apt-get purge PACKAGENAMES

After that, also remove all no longer needed dependency packages:

sudo apt-get autoremove

  All the users and groups that I had created

You can only manually remove user accounts. While doing this, depending on the tool you get the option to also delete the home directory of that user or maybe even all files owned by him anywhere (can take ages of time...). Some tools automatically remove the deleted user's primary group, if it became empty.

I would recommend you one of the following commands to remove users and their primary group and delete their home directory, depending if you want a backup archive of what got deleted or not:

sudo deluser --remove-home --backup USERNAME
sudo deluser --remove-home USERNAME

To remove a group, use the command below:

sudo delgroup GROUPNAME

  All the files that I had created and modified...etc.

You could do this manually or modify the deluser commands above. Chose one of them (with or without creating a backup archive of the deleted files) and run it instead of those above. Depending on the number of files you have, this might take a good while though, so better run it before you start your lunch break.

sudo deluser --remove-all-files --backup USERNAME
sudo deluser --remove-all-files USERNAME

Or you can use find to search for all of your files:

sudo find /DIRECTORY/TO/SEARCH -user USERNAME

This will recursively search in /DIRECTORY/TO/SEARCH and its subdirectories for all files owned by USERNAME.

You can immediately delete all those files (dangerous! - make sure you know the consequences, have backed up all your important data and checked the output of the find command above) with the following command:

sudo find /DIRECTORY/TO/SEARCH -user USERNAME -delete

Note that both find and deluser --remove-all-files only spot files that are owned by a user. It's unimportant who created them.


Cannot tile the "Files" window to the left or right side by pressing Super + Left/Right keys very often

I've found a rather strange work-around.
Click on the 'Files' application and switch off the 'Sidebar' setting.
The windows then work correctly.


Access denied to Windows partition on Ubuntu 17.04

While in Windows:

Open Command prompt which you find in All Programs > Accessories (right click and left click run as admin) and type : powercfg -h off

Restart into Ubuntu and you should be good to go. You will lose the hibernate ability but now can access the disk and read and write to it.

hope that helps...

If not, use "sudo ntfsfix /dev/sda2 or 3 or 5" according to the error specified


Reinstall `ubuntu-desktop` after removing Gnome

I followed the depends packages till I reached this point

Depends: gnome-settings-daemon-schemas (< 3.10) but 3.12.2-0ubuntu1~trusty3 is to be installed

so I performed the following command that enabled me to reinstall the ubuntu-desktop

sudo apt-get install gnome-settings-daemon-schemas=3.8.6.1-0ubuntu11.2
sudo apt-get install ubuntu-desktop

I rebooted and could login to the profile


canonicals skype repository disturbes updates (apt-get)

Okay I finally got it fixed. The Problem was a third entry of a "Canonical Partner - Added by Software enter". It was not on the top of the list beside the other partner repositorys so I didn't recognize it. To deactivate it I had to use sudo, but since it didn't ask for a password I had to use:

sudo software-properties-gtk

and enter my password. Then I was able to deactivate. Updating the system is working again, also apt-get itself and the auto-completion.


Ubuntu full install on 64gb usb3.0 sandisk

It doesn't make sense to use an expensive 64GB USB 3.0 flash drive for a full installation of Ubuntu due to the limited read/write cycles as you mentioned. All you need for it is an inexpensive 16GB USB flash drive. How do I install Ubuntu to a USB key? (without using Startup Disk Creator).


As mentioned by @CelticWarrior on the comments, you need to put your graphic card back and then install Ubuntu with nomodeset, here is how you do that:

The moment your computer start reading from the installation media(i.e CD, USB or whatever you are using to install Ubuntu):

you need to press and hold  Shift  or  Enter , this should bring up a screen similar to this:

Go ahead and select your language then press  Enter .

Next you need to press  F6
At this point you can use the  Up  and  Down  keys to move up and down. You need to select nomodeset and press  Enter .
At this point you can simply click on Install Ubuntu and you should be able to install Ubuntu without any issues.

Note that when you login for the first time, the graphics might not be good, you will need to install proprietary drivers. You do this as follows:

click on System :

Click on Additional Drivers:

If you need more details on how to install drivers, head over here.

PS: If you want GPU support, have look at the answers supplied here,  or here :
Let me know if that helps :).


lenovo thinkbook 15-iml screen tearing on Intel card

Can you install the old mesa driver?
By remove  old one by purge command:
sudo apt mesa purge

It seems  latest driver is unstable.
compilation of mesa
Here older driver:
mesa driver


Can`t install ubuntu 12.10 from usb stick

If USB doesn't show in boot menu, probably there's something wrong with it. Perhaps you should format it and see if it shows in the boot menu without anything else in it. You should proceed with creating Ubuntu live USB only after you can see the reformatted empty USB. If it doesn't show up perhaps you should try another one.


Live build: chroot: failed to run command ‘/usr/bin/env’: No such file or directory

Were you able to find a solution? (I realize this is an old question.)
The problem appears to be due to you not having installed / added the GPG public key needed to verify package signatures.

(the root cause of the problem is E: Release signed by unknown key (key id 40976EAF437D05B5) -- chroot: failed to run command ‘/usr/bin/env’: No such file or directory is not a problem itself but rather is caused by the previous one)

How to fix GPG in updater


How can I use face-recognition to login?

Kairos
The proprietary software Kairos claims to be able to perform face recognition. This software is non-free but at present they have a free version for personal usage.
The application offers a SDK and a programming API.
Download and installing requires registration so I was unable to test it's functionality.


What is the difference between xdg-app and snaps?

Moving to and fro between Snap and flatpack(Gnome follows this) will change the development philosophy.

Flatpak was laid by Leonard Potterhead, who broke too many POSIX decorums because he believed in fast Linux development process.

Following is sum up for the question, but the question is very broad, so trying to pick up few points.

Snap is has single corporate backup Canonical while Flatpak has many.
Snap is strictly following the POSIX philosophy.
Flatpak is no server process while snappy has [in most of cases].
Flatpak has library dependencies from Freedesktop,KDE,GNOME while
snap has Base distro snap.
Flatpak cannot run without sandboxing, while snap is optional.
Flatpak is optimized for air-gapped (offline) machines (the kind Ed
Snowden uses) but snap is not.
Flatpak is fully decentral without the central gatekeepers while in
case of snap, it is no.(a single app store)
Flatpak allows application authors to self-host application with no
functionality loss while in snap it does not.

Still researching on this question, fewer answers


I cant open my OS. An error message is showing on startup

This doesn't sound good. There may be a problem with your primary disk. To try and fix your problem...

In that terminal that opens...

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 EXT4 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


Do I have my Ubuntu partition in many locations?

The ext4 file type is your linux partition which is /dev/sda8
If you want to extend the partition you need to format any of the ntfs partition to ext4 Make sure you wont format the partition were windows 10 is installed. windows 10 is either installed in /dev/sda4 or /dev/sda6


LightDM as of now is buggy and is honestly no longer recommended past 14-04. To fix this boot into Grub recovery mode, ENABLE NETWORKING, Then drop to root shell.

sudo apt-get install gdm && sudo dpkg-reconfigure gdm

Then you can most likely reboot and Ubuntu will boot correctly.

sudo shutdown now -r

Hope this helped. If it did, make sure to vote up and check it so others with this problem can see this.


The solution was to change the owner of the .ICEauthority as well, which was still owned by root:

sudo chown {user}:{usergroup} .ICEauthority


Authentication problem - and I still can't change the password

Don't set the password to blank. Delete it. Do the following as root user.

passwd -d

From the manual

   -d, --delete
       Delete a users password (make it empty). This is a quick way to
       disable a password for an account. It will set the named account
       passwordless.


Install Ubuntu 18.04 on Dell XPS 15 9570

With the help from @oldfred, I have solved the issue and installed Ubuntu 18.04 by going through the following steps:

Changed the driver from RAID to AHCI
Disabled Secure Boot
(Might not be needed) shrank the Windows partition


How do I uninstall the running kernel by command only?

Note to vistors: while it is possible, it is highly inadvisable to remove the running kernel. If that kernel is the only one installed, and you reboot or lose power after uninstalling or deleting it, your system will be unbootable and you will probably have to reinstall. Recovery mode will not work. If this happens, you can boot from a live system to rescue your data and possibly copy kernel files to the right locations. There is normally no reason to uninstall the running kernel. So you probably should not follow this answer :)

You stated in comments that you want to avoid the dialog that appears when you use package management tools to remove the running kernel. The only way I can think of to achieve this is to delete all the files belonging to the running kernel.

We are going to use locate to find the kernel's files. First update its database.

sudo updatedb

If for some reason you don't want to delete the dpkg database records for the kernel, run this command instead of the above:

sudo updatedb --prunepaths=/var/lib/dpkg

Find the running kernel and its modules, etc:

locate -be $(uname -r)

Check the list. To remove ALL the files that belong to the kernel, even the many small files in /usr/src, omit the -b flag from locate. When you have the list you want, pipe the results to xargs to delete the files:

locate -be $(uname -r) -0 | xargs -0 sudo rm -r

To make xargs interactive, you can add the -p flag and it will prompt you to confirm that you really do want to run rm on each file in the list. If you omit -b from locate and add -p to xargs, you will be confirming for a long time.

It is not really necessary to use -0 flags to get null-delimited output because all these files will have sane names unless you or someone else has tinkered with them. But it is good practice to use null-delimiting with xargs, because it makes mistakes if any filename has a space.

To prevent GRUB attempting to boot or giving you the option of booting a non-existent kernel, update the configuration:

sudo update-grub

I just tested this, and right now, I am typing this from the system on which I've deleted the running kernel in this way (I booted from an older Ubuntu kernel to do this, because I normally use a patched kernel that dpkg doesn't know about, and I don't want to delete it and compile it again).

The kernel is in RAM. It is loaded into RAM at boot time, so it doesn't need its files right now. However, I'm now going to reinstall the kernel using these commands:

sudo apt update
sudo apt install --reinstall linux-image-$(uname -r) \
                             linux-modules-extra-$(uname -r) \
                             linux-headers-$(uname -r) \
                             linux-modules-$(uname -r)

Since you seem to be interested in a non-interactive process, I'll mention that you can use apt-get in preference to apt if you wish to capture any output into a file for later use.


"When to use" is really dependant on you're doing. It's like asking when to use a Phillips or a slothead screwdriver. I can tell you what they all are, and what they do, but working out when you'd use each one, is up to you.

All of these are extensively documented in the TLDP Advanced Bash Scripting Guide. If you need examples, that's the place.

< filename reads from a file into STDIN
> filename writes STDOUT to file, overwriting anything.
>> filename writes STDOUT to file, appending if it already exists.
<(command) absorbs the output of the internal command and provides a filename
>(command) provides a filename to the outer command but actually redirects anything written to it to the STDIN of the internal command.
<<TOKEN is a here document, aka heredoc. It'll read anything that follows into STDIN until it sees TOKEN again. It's useful for multi-line content. It has to be followed by a newline. Unless you quote the token, heredocs support variable substitution.
<<-TOKEN is as above except that it will ignore leading tabs (but only tabs). This is handy to preserve source formatting but it really does only work with tabs. It's rendered useless on Stack Exchange sites because they substitute tabs for spaces :(
<<"TOKEN" is a heredoc that won't substitute $variables.
<<<"string" is a herestring. It's read into STDIN. This can do variable substitution.
| command joins the current STDOUT to the STDIN of command
|& command joins STDOUT and STDERR onto the STDIN of command (useful for grepping error output)
1> and 2> are used to explicitly redirect STDOUT and STDERR. > implies 1> so you rarely see it used explicitly.
In a similar vein >&1 and >&2 can be used to redirect into STDOUT and STDIN.
/dev/std{in,out,err} also exist as symlinks to the basic in/out/error file descriptors. This is dead handy when something will only accept a filename argument but you want it to write to STDOUT, for example.


After installing the OS(both in general and especially Ubuntu/any Linux) , Do we need to install root certificates separately?

No, users don't need to install any certificates separately to access websites like google.com or Bing.com
This certificate issues were solved by disabling BC Unified Agent


Used recursive chown on the root directory

First to stop the error message change the owner of /var/run/sshd back to to root.

There might be more errors afterwoods, which probably mean you need to change other files too.


How disable blinking cursor in gnome-shell's terminal?

As pointed out by this blog post, you can disable the blinking cursor through a subshell:

gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/ cursor-blink-mode off


To edit your sources.list you can do

sudo vim /etc/apt/sources.list

Then to save click the keys [Shift] + [z][z]. If you are in insert mode, fist click [Esc] to exit insert mode then click [Shift] + [z][z]

That will exit and save changes.

for a full cheat-sheet go here http://www.fprintf.net/vimCheatSheet.html

Also I recommend using the graphical editor gedit

sudo gedit /etc/apt/sources.list

OR

sudo pico /etc/apt/sources.list

They are easier to use in my opinion, it is a nano derivative. To save CTRL+X then click y. It says how on the bottom

for some help with pico go here: http://accc.uic.edu/service/shell-accounts/pico

MAKE SURE TO RUN

sudo apt-get update

after you have made changes to your sources.list file. Otherwise your local database will not be updated.

ALSO

If you get an error about needing to add a key then

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys THE_DISPLAYED_KEY_HERE
sudo apt-get update


libxft-bgra patch for rendering color emoji fonts

I ended up patching, compiling, and installing libxft-2.3.3 in prefix /usr/local and then recompiled st, dmenu, and dwm using the library and headers files there instead of the Ubuntu provided versions. This allowed me to keep the Ubuntu versions around.
Color emojis in dwm bar
Color emojis in terminal in Ubuntu
st on  master➜ cat /etc/issue
Ubuntu 20.04.2 LTS \n \l

dwm on  haplo_dwm [$!]➜ ldd /usr/local/bin/st | grep -i xft
        libXft.so.2 => /usr/local/lib/libXft.so.2 (0x00007f775d893000)

st on  master [$!]➜ ldd /usr/local/bin/dwm | grep -i xft
        libXft.so.2 => /usr/local/lib/libXft.so.2 (0x00007fa4b186a000)

st on  master [$!]➜ ldd /usr/local/bin/dmenu | grep -i xft
        libXft.so.2 => /usr/local/lib/libXft.so.2 (0x00007f2ce7bf1000)

st on  master [$!]➜ apt search libxft
Sorting... Done
Full Text Search... Done
libxft-dev/focal,now 2.3.3-0ubuntu1 amd64 [installed]
  FreeType-based font drawing library for X (development files)

libxft2/focal,now 2.3.3-0ubuntu1 amd64 [installed,automatic]
  FreeType-based font drawing library for X

For dwm and dmenu, don't forget to comment out the iscol code in drw.c  to re-enable color fonts after you have the patch libxft-bgra installed or you won't get color in either of them.
/* Do not allow using color fonts. This is a workaround for a BadLength
 * error from Xft with color glyphs. Modelled on the Xterm workaround. See
 * https://bugzilla.redhat.com/show_bug.cgi?id=1498269
 * https://lists.suckless.org/dev/1701/30932.html
 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349
 * and lots more all over the internet.
 */
FcBool iscol;
if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) {
    XftFontClose(drw->dpy, xfont);
    return NULL;
}

Let me know if you need any more info.  It went pretty flawlessly for me, and it is definitely nice to have the color emojis in my suckless tools.


Since you have an Intel i3 CPU and 4GB RAM I recommend going with a 64bit version of Ubuntu in order to use that RAM well(I haven't been impressed by 32bit PAE on my system running 4gb of RAM).

As for the version of Ubuntu you should use, I recommend 12.04. It has a longer support window and is far more stable. Only get 12.10 if you really want the latest features and don't care about a far shorter support window. Also 13.04 will be out next month so you might as well wait if you want the latest version of Ubuntu.


Uber-Slow wifi connection on Ubuntu 11.10 on my 1310-us

got this thing solved for me (well, I didn't myself, got the solution here) in a terminal, write:

  echo "options iwlagn 11n_disable=1" | sudo tee /etc/modprobe.d/iwlagn.conf
  sudo modprobe -rfv iwlagn
  sudo modprobe iwlagn

hope this helps.

Edit

try the following commands

sudo ifconfig wlan0 down
sudo rmmod -f iwlagn
sudo modprobe iwlagn 11n_disable=1
sudo ifconfig wlan0 up

Try browsing again and if there is an improvement, make this change permanent by
loading this kernel module at boot with the 11n_disable option enabled. This would be done by modifying your /etc/modules file by the following:

echo "iwlagn 11_ndisable=1" | sudo tee -a /etc/modules

If that does not work then-

create an 'options' file:
gksu gedit /etc/modprobe.d/options.conf and add the line

options iwlagn 11n_disable=1

Hope this will help.


For 12.04:

Yes, now you can.

Unfortunately you can't do it by options or theming (even if adding a more CCSM option would be trivial), but you can easily change the plugins/unityshell/PanelStyle.cpp (in 12.04) or panel/PanelStyle.cpp (in later versions) panel_height property, setting it to a value you want. See:

The only thing that doesn't "match" that value, is the icon size. However you can increase their size easily by editing the value defined in PanelIndicatorEntryView::MakePixbuf (currently hardcoded to 22px) and then rebuild Unity:

How do I build Unity from source?


Cannot access Ubuntu web server site from outside network

192.168.0.170 is a private IP address which the server uses in your private LAN. It may be used by anyone, and is for that reason never routed to the internet. To access the internet, you specified your router as the default gateway. You know that already, because you enabled port-forwarding on the router.

When I ping your DDNS address fernweh.ddns.net it resolves to your internal IP

$ ping fernweh.ddns.net
PING fernweh.ddns.net (192.168.0.170) 56(84) bytes of data.

That cannot work for reasons stated above.

I suppose you're already running the NoIP client?. If yes, reconfigure it

sudo /usr/local/bin/noip2 -C

If not, download and install it like described. Since it is not good style to give a link and nothing else:

Download the source tarball to e.g your home folder and unpack

cd ~/Downloads
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar xf noip-duc-linux.tar.gz
cd noip-2.1.9-1/

Switch to root: sudo -s and install

make install

Finally, you need to either run noip2 or make it a service so it runs at boot time. (See the README.first in the source folder)

It will compile the binaries and lead you through configuration.

Furthermore:

You cannot ping a port. ping works by sending ICMP packages. Unlike TCP/UDP, ICMP has no concept of a port. It might well be, that your router and/or ISP block pings to you.
As @Zacharee1 and @Daniel already mentioned in the comments, it may also well be, that your ISP blocks well-known ports like HTTP(S). Run your webserver an a high port. That way you also gain a very slight protection against attacks, since a full port-scan is needed to discover the running web server. Note, that this is not a sufficient security measure! Keep your WordPress and OwnCloud installations up-to-date.


Android File Transfer for Linux will always work!  it just works!

see answer here: https://askubuntu.com/a/1111802/183131


How to automatically put text or job commands into `crontab` file?

You could be try using cloud-init while boot strapping your image. Use cloud-config write_files module to create a cron entry file in /etc/cron.d/ and you need to setup [USER] as user you want to execute your cron jobs.
 #cloud-config

 write_files:
 - owner: root:root
   path: /etc/cron.d/your_cronjob
   content: * */2 * * * [USER] du -s test/


How do I install Canon LBP2900B printer in UBUNTU

Hope you tried these steps in terminal :

sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59787 -E

sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0

sudo service ccpd start

sudo service ccpd status

And finally check the printer status:

captstatusui -P LBP2900


xkb configuration to map Alt + h --> Right

I don't understand if you want that Alt+H map to End or to →
But I know how to do it with AltGr instead..
Anyway it is not a good idea to remap Alt since it is often used in programs..
Try this in your symbol file:

key <AC06> { [ h , H , End ] }; // Map <AltGr>+<H> to <End>

or

key <AC06> { [ h , H , Right ] }; // Map <AltGr>+<H> to <→>

But maybe this is not what you want..
But I'm also interested about the mapping of modifiers..
I try to make Space acting as a modifier..


Screenshot does not work via the GUI in Ubuntu 20.10 Groovy Gorilla

The screenshot UI does not work, however, keyboard shortcuts work: printscreen, alt+printscreen, and shift+printscreen will create .png files in ~/Pictures folder for desktop capture, window screenshot, and area screenshot respectively.


Can you install Ubuntu from a liveCD via vnc or similar?

The only thing that I can think of is booting to the liveCD enviornment, bring up a VPN server like x11vnc, connect remotely, then manage the install.

I'mk confused though what advantage this gives you, as you still require a physical presense to put in the CD and do other things. I suppose you could do enough automation to grub to boot from an ISO, and automate the ISO so that it automatically starts the vpn server, but that seems like a huge amount of work for such a small problem.


Yes, the line with the "ubuntulucid" is a typo, the original has those two seperated.

@sagarchalise:
Thats exactly how I installed Chromium and that does work. However, I would like to have it build by apt-build instead of installing the binary version with apt-get. So it doen't work for me. Adding the repository again didn't work for me either.

EDIT

Solved! Seems like apt-build needs all deb-src repositories it should use inside /etc/apt/sources.list . By adding the PPA via apt-add-repository a separate file for each new repository gets created (inside /etc/apt/sources.list.d). So putting the two line directly into /etc/sources.list and running

  sudo apt-build update && sudo apt-build --reinstall install chromium-browser

fixed the issue for me. Thanks for your ideas nonetheless!

EDIT²

This bugreport on launchpad seems related.


Unable to create directory, /usr/local/cuda/include for tensorflow GPU Enabled

sudo mkdir -p /usr/local/cuda/include/

But that command should be part of the installation process. Either done automatically or part of the commands you need to type manually.

Problem you probably face: the "cuda" in "/usr/local/" is a FILE and not a directory. If so do a ...

ls -l /usr/local/cuda

and confirm yourself it is a file. If you created it yourself or you know it is useless you can do a...

sudo rm /usr/local/cuda

to remove the file "cuda" and you can then create the directory.


move ubuntu 10 from xp dual boot to another drive

This is actually more complicated than you might think. The problem is that XP knows nothing at all about other operating systems, and is totally unaware of Linux, and is unable to dual boot it.  So, when Linux is installed with XP, it replaces the Windows boot loader with GRUB, which can dual boot just about anything.  There is an inherent danger here for a novice, which is that the Windows boot loader is no longer present in the Master Boot Record (MBR).  This is the little bit of code that is read on startup, and has only enough intelligence to branch to a more detailed startup program, part of GRUB which is on the Linux partition.

If you take away the Linux partition, then Windows will no longer boot.  It's not hard to fix if you know how, but most people do not.  So, the first thing not to do is to delete your Linux partition until you have something to replace it with.  This isn't necessarily a problem, but it's definitely something you want to understand.

If you are careful whenever you install Linux on a 2nd drive, you can instruct it to install the boot loader on the 2nd hard drive's MBR, so you can then remove either drive and the other will still boot.  But, that's too late for now, until you replace the Windows boot loader on the 1st drive.  This can be done in a few ways, but some people are simply not capable of doing it for some reason.

I used to do it using a DOS bootable CD with fdisk on it.  You can usually find and download this.  Then, you can simply boot the CD, and run "fdisk /mbr", and this will replace GRUB and make only Windows Bootable.  Another way is to use the Windows XP repair disk and run FIXMBR, or something similar.  I've never done it this way.  You can also find boot disks online that will automatically fix it for you.  I've done this, but I don't remember the site - I'm assuming you can search as easily as me, or maybe someone will fill in some details.

In the future, you can possibly disable the Windows drive when you install Linux, to make sure it doesn't get changed again, then when done, enable it.  It's possible the windows drive will get added to the menu in the future, but it will only show up if you boot from the Linux drive, and never will be the default, so it's no big deal.

Moving Linux is actually much easier than windows, in that it's actuall possible.  :)

Do you really need to move it to a new drive?  You can copy the disk by booting from the Live CD, then installing GRUB on the MBR of that drive.  The easiest way to do that is to make a "System Rescue CD", which is a free product from http://www.sysresccd.org that can do this sort of thing automatically.  Or, you can install Ubuntu from the CD onto this drive, then copy all the directories to it from the old drive, when booting from a live CD.  Just make sure you copy all files, including hidden files.  It's a little risky, but it's doable.

There are several ways to copy a disk; you can do it from gparted using copy and paste, which I've done many times successfully.  You can also just copy your home directories to a new installation, then reinstall any programs, and probably get most all of your settings.  I usually selectively copy a lot of things from an old to a new installation (usually from my home directory, and /etc).

If you need more help or details, you'll have to ask.  I don't really know how much you need right now, and I'm not really patient enough for a step by step guide.


How to install Cisco VPN client on an Amazon EC2 server running 14.04

The install process hangs because it cannot find autoconf on your system. Ensure all if the standard repositories are enabled and then:

sudo apt-get update
sudo apt-get install autoconf

Then rerun your install script.

However, be aware that VPN software is usually against the terms of service for cloud providers. Make sure you carefully read through Amazon's terms before continuing.


Yes, and it is really easy using ubuntu, the only thing is that your ubuntu machine will need a wifi card to act as a personal hotspot.

Here is a link to a tutorial that works, hope it helps.

http://www.howtogeek.com/116409/how-to-turn-your-ubuntu-laptop-into-a-wireless-access-point/


The error message says the program requires Java 11: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11)), but your question says that you are currently using Java 8. To install Java 11 in Ubuntu 18.04 and later open the terminal and type:
sudo apt install openjdk-11-jdk

You can have multiple Java versions installed alongside each other and set the default Java version with update-java-alternatives.
$ update-java-alternatives
usage: update-java-alternatives [--jre-headless] [--jre] [--plugin] [-v|--verbose]
           -l|--list [<jname>]
           -s|--set <jname>
           -a|--auto
           -h|-?|--help


Wine automatically removed from system; cannot reinstall

Try:

ppa-purge ppa:ubuntu-wine/ppa
apt-get update
apt-get dist-upgrade
apt-get install wine


Apt install package from PPA with same release name as official repo?

Your architecture seems to be arm64.

There are no arm64 (only amd64) packages in that PPA.

If you need blender version from that PPA, you'll have to build it yourself from source.


add namerser in resolve and disable ipv6

vim /etc/resolve.conf

nameserver 8.8.8.8

and

I think you may be suffering from a couple different issues. I want you to reinstall the Ubuntu package linux-firmware as that may be more up to date than kvallo's github site

sudo apt-get install --reinstall linux-firmware

A recent change to network manager enables wifi powersave by default, to disable this do

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

reboot


I have managed to make the nvidia driver 460 work again on Version 20.04.2 LTS Focal Fossa (Xfce Desktop)
first off it all, I have not too much experience. At your own risk, just followed troubleshooting part of the link. I have explained how I managed to restore the noveau driver for the resolution stuff in the previous post and I do not know if this is necesary to reinstall the nvidia drivers at all. You may jump that and try the next step rough.
Check this link and go to the troubleshooting part:
https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia
what i have done:
1 Install synaptics.
2 install the linux-headers-xxx
xxx= the version of the kernel you have and you can check it with uname -a
3 Install the nvidia driver from synaptics.
If you don't know wich of them to install run in a terminal sudo ubuntu-drivers devices and check for 'recomended one' and install it.
Note: I don't know wwhat's the difference between a normal driver and the server one. I have installed the normal one.
5 reboot
Now you should have the nvida driver installed but the server setings are not going to work (empty) so:
6 run sudo prime-select nvidia it said that nvidia driver was choosen but i write it here because I don't know if this is important.
7 run twice sudo nvidia-xconfig
the first gives you error and the second one it's done. it works like that.
8  run sudo update-initramfs -u in a terminal.
9 reboot
10 enter in a terminal and type nvidia-settings and if the message ir is that prime it is not and the window appears empty again then you need to load the modules before so close the window and edit the /etc/modules with sudo and add this to the file:
nvidia
nvidia-drm
nvidia-modeset
save the changes and type sudo update-initramfs -u
And that was all. It is working for now.
final note: long live to the synaptics creators! long live to the ubuntu comunity! thanks for you all.


rsync --ignore-times parameter not working on Ubuntu 16.04

--archive equals -rlptgoD  while -t means

-t, --times
    This tells rsync to transfer modification times along with the files and update them on the remote system

But you could combine that with --no-OPTION like this

rsync -avh --no-t --ignore-times src/ dst/

and it should work perfectly

EDIT: actually the --ignore-timesis superfluous, this is enough

rsync -avh --no-t src/ dst/


I just bought an HP 4t-1000 and cannot access the BIOS to change the boot order and install Ubuntu from a USB

Maybe you need to "flash BIOS" (update it) check this link:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00042629&lc=en&cc=us&dlc=en&product=5274535


Why does apt removes unwanted packages when giving * as suffix?

If you don't know exactly what you are doing, you should not use:

sudo apt-get remove package.*
#                          ⤷ or any other character in the place of dot

as this can delete unintended packages and cause more problems than it solves. The package.* will match all packages (and their dependencies) containing the string package in their name. This is from man apt-get, somewhere at the line 110:

       If no package matches the given expression and the expression
       contains one of '.', '?' or '*' then it is assumed to be a POSIX
       regular expression, and it is applied to all package names in the
       database. Any matches are then installed (or removed). Note that
       matching is done by substring so 'lo.*' matches 'how-lo' and
       'lowest'. If this is undesired, anchor the regular expression with
       a '^' or '$' character, or create a more specific regular
       expression.

And this is from Regular Expressions/POSIX Basic Regular Expressions Wikibooks:

  *   Matches the preceding element zero or more times. For example, ab*c matches "ac", "abc", "abbbc", etc. [xyz]* matches "", "x", "y", "z", "zx", "zyx", "xyzzy", and so on. \(ab\)* matches "", "ab", "abab", "ababab", and so on.

Anyway, if you really want to run something like sudo apt-get remove package.* (or sudo apt-get remove packagey*, or sudo apt-get remove packagec* - all are in this case the same), first run it with -s (--simulate) option to see exactly what it will do (see man apt-get for more info).

Now, I think that you can solve your problem using the following two steps:

Reinstall all the packages that you have removed
Remove only ruby:

sudo apt-get remove ruby

Or, if you want to remove all packages starting their names with ruby:

sudo apt-get remove ^ruby

But better to simulate first with:

apt-get -s remove ^ruby


Bluetooth does not detect devices on lenovo with 12.04

Type the following commands in the terminal:

sudo apt-get install build-essential linux-headers generic
wget https://github.com/lwfinger/rtl8723au_bt/archive/troy.zip
unzip troy.zip
cd rtl8723au_bt-troy
make
sudo make install

Reboot and see if it works as there might still be a second part to get it working.

I thought the lwfinger wifi drivers needed to be used so

sudo apt-get install git
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install

Reboot and see if it is fixed

If you get a new kernel through updates, bluetooth will fail until a kernel is made with support for the realtek bluetooth, until then you will need to

cd rtl8723au_bt-troy
make clean
make
sudo make install
cd ~/rtlwifi_new
make clean
make
sudo make install

Then you should be able to reboot and have bluetooth functional again


Can I use Ubuntu touch on my Samsung Galaxy Grand duos gt-i9082?

For learning using a linux based OS, I would recommend to install Ubuntu (or a different distribution, if you want) on a desktop pc, since Ubuntu touch is still kind of experimental and it will be easier to get help for the well established desktop OS.

You might want to try it first in a virtual machine, if you want to keep your old OS and are scared to mess with the partitions for a dual-boot setup.
There are many tutorials on how to do that online.

If you want to install Ubuntu touch on your phone, you should read this question:
What hardware does Ubuntu Touch support?


Unfortunately, no; you've locked yourself out. SSH won't let you log in if the shell is missing. Here's what the attempt looks like in /var/log/auth.log:

Dec 23 15:04:59 ubuntu sshd[5585]: User kees not allowed because shell /bin/fish does not exist

And on-console TTY login will always attempt to launch your configured shell. Without another user with sudo rights, you'll need to boot to single user mode to fix it. :(


When you 'mount' something you are placing access to the file system contained within onto your root file system structure. Effectively giving the files a location. This is similar to the C:/D: drive labels in windows, but more flexible.

Mounting /dev/sdb1 to /mnt/disk1 places all the files and folders contained within the device standard disk B partition 1 into the directory /mnt/disk1 where you can access them.

Modern systems have ways to auto-mount drives just as windows auto-mounts drives to drive letters, but the location mounting system in Unix is much more flexible. And unmounting is obviously the removal of the access to those files/folders from that location. You can find out what file systems are mounted by running the command:

mount

Parts of ubuntu involved: mount, umount, fstab (for fixed mounts), udev, gvfs (for automatic mounting)


How configure Java applet to work behind proxy?

I know this is an old post, but perhaps explicitly changing the setting in the Java control panel might help:

Open the Java Control Panel by running the command javaws -viewer
In Control Panel: General > Network Settings

Then try changing proxy settings.


Keyboard/Mouse not recognised during installation

Unfortunately, I don't know what the problem is but I did come across this program called HIDpoint which is a configuration program for a variety of Logitech input devices (and a couple of others). I can't say if it will help with your issue, but I thought it might be worth investigating if nothing else is working.

HIDpoint's supported devices page lists a Logitech MX5000 keyboard but I don't see an MX5000 mouse there. The download page says that it supports Ubuntu 10.04 and Ubuntu 10.04 64bit.


How to have persistent session settings in SDDM for each user?

These settings are located in /etc/sddm.conf.d/ you should be able to achieve this with some of the settings?

I would try something like the following

/etc/sddm.conf.d/persistent_session
------------------------------------
[Users]
RememberLastSession=true

for reference: sddm.conf


Can't receive UDP broadcast with python on Ubuntu 20.04 LTS, works on Raspbian & Centos on same network

The issue was due to a firewall that was blocking most local traffic with certain exceptions (e.g., ssh). The firewall was modified to allow the broadcast traffic and that resolved the problem.
Specifically, the ufw firewall was previously configured to only allow specified ports from hosts on the LAN (e.g., 80, 443, 53, 22) and drop all other traffic.
To fix the issue, I ran the following command:
sudo ufw allow from 192.168.0.0/24 where 192.168.0.0/24 is my local network.


How to remove the Ubuntu menu of Windows Boot Manager?

You need to use EasyBcd.

http://www.softpedia.com/get/System/OS-Enhancements/EasyBCD.shtml

EasyBCD runs on Windows and modifies the Windows Boot Configuration Data (BCD).

EasyBCD has a number of bootloader-related features that can be used to repair and configure the bootloader.

From the Manage Bootloader section of EasyBCD, it is possible to switch between the Windows 7 and Windows 8 bootloaders from within Windows by simply clicking a button


Empty Ubuntu Unity Dash after upgrade to 19.10 and search doesn't do anything

I had the same issue and noticed that the unity-lens-* packages were removed for some reason, so do the following:

sudo apt-get install unity-lens-*


I have a catch 22 here! No internet unless I update

You might be interested in that I recently stumbled upon by another user here Keryx which will allow you to use an internet capable machine to put the updates onto a USB drive then apply those updates to your computer via USB


Just format the drive with the older Ubuntu and go to /etc/fstab edit the file to remove the occurence of 12.04 and you are done.


How to install LEGO Marvel Super Heroes in Wine?

There are several steps involved to be able to play LEGO Marvel Super Heroes on your Ubuntu box:

Install the latest Wine release from ppa: How to install and configure Wine?
Install and configure Steam for Wine: How can I install Steam?
Run Steam with the -no-dwrite option: Steam not displaying text on wine 1.5 running on Ubuntu 12.04
Install LEGO Marvel from CD (or from an .iso of this CD)
Configure your XBox controller (if available): How do I get an XBOX 360 controller working?


Recent releases of Ubuntu have migrated to GRUB2.
From the wiki:

  Configuring GRUB 2

  Important note: Configuration changes
  are normally made to /etc/default/grub
  and to the custom files located in
  /etc/grub.d. The /boot/grub/grub.cfg
  file should not be edited by the user;
  changes to this file are made by
  configuration scripts. After editing
  /etc/default/grub, you need to run
  sudo update-grub for your changes to
  take effect on the next boot.


Trying to Dual Boot Windows 10 and Ubuntu 18.04.1

Some systems have strange support for UEFI modes which can be resolved by either updating the system firmware or worked around by either running with a special parameter or running in "legacy" mode to disabled UEFI features.

If you want to keep UEFI mode and try to boot Linux, add this to your boot options in GRUB like you tried with the nomodeset option:

amd_iommu=off

Instead if you want to avoid the whole UEFI problem simply enable "legacy" mode in in your BIOS options. Note that if you enable legacy mode you may have to create a different USB thumb drive when booting.

Source: https://bbs.archlinux.org/viewtopic.php?id=224265


My main username is not in the sudoers file

Open a Root Terminal and type visudo (to access and edit the list).

Navigate to the bottom of the sudoers file that is now displayed in the terminal.

Just under the line that looks like the following:

    root ALL=(ALL) ALL

Add the following (replacing user with your actual username):

    user ALL=(ALL) ALL

Now save the file. The procedure for this will depend on your editor:

nano – CtrlO then Enter, then CtrlX to exit
vim – :wq


Systemd ExecStartPre getting variables before ExecStart on next line

Put both lines into a script and run it from a single ExecStart= command.


You have two problems.

Problem #1

On your /dev/sda hard disk, partition sda2/sda5 is not properly aligned. This is a relatively easy fix, because it's your swap partition.

1. In gparted, you can select sda5 and issue a swapoff command
2. then delete sda5, then delete sda2
3. then recreate a fresh primary (not extended) swap partition, select the new partition, and issue a swapon command.
4. in terminal, type `sudo blkid` and note the UUID of the new swap partition.
5. still in terminal, edit your `/etc/fstab` with `gksudo gedit /etc/fstab` and find the line that contains the word "swap", and change the UUID to the new UUID. Save the file and quit gedit.
6. reboot the system, and in terminal, issue a `swapon` command to confirm that your new swap partition is working properly.

Problem #2

You need to recover your sdb1 partition, by changing it from unknown to EXT4. It's best to use testdisk.

1. in terminal, type `sudo apt-get update`
2. in terminal, type `sudo apt-get install testdisk`
3. in terminal, type `sudo testdisk`

You can learn more about the testdisk partition recovery by visiting http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step.


Michael Hall, a Canonical employee, answered this question on Reddit:

  "Snappy is an evolution of click, which will eventually replace clicks
  on the phone. Snappy Personal is to phone and desktop what Snappy Core
  is to cloud and IoT, it's the base install image that provides the
  minimum functionality needed for you to get started." - An important notice for Ubuntu Desktop Next users : Ubuntu


How to turn my touchpad back on in Ubuntu 16.10

Nevermind.  I found it inactivated in the bios.  I activated it there and it reappears (obviously) in the system settings where I was able to turn it back on.


giblib error: Can't open X display on ubuntu 14.04

DISPLAY=:0 scrot

Declare display for scrot.
For more info view this topics.


install ubuntu on a virtualbox without usb or cd drive

Create and start the VM, specify the iso file, and begin installation. Creating a bootable USB or CD is not necessary. Good luck.


Right here goes on how I fixed this.

After uninstalling and reinstalling the drivers multiple times, it wouldn't successfully install the catalyst drivers without some form of issues.

sudo apt-get remove --purge fglrx fglrx-amdcccle

This removed all the AMD drivers or what was left from previous installs.

sudo apt-get --purge remove xserver-xorg-video-nouveau
sudo apt-get purge nvidia-current

Both of these commands then removed what I had from Nvidia drivers.

I then rebooted and instead of installing the AMD drivers from apt-get I used the additional drivers in the system menu. They installed fine and i rebooted again. And boom! They were there.

The thing was I had tried using the additional drivers option before only for it to fail. but not to bother it worked and im now using the latest drivers. I made a complete hash of this one and its not a great solution but a solution nevertheless.

Thanks
Bill


Canonical provides support services that you can use. Check these links for more details:

Training

Ubuntu Advantage

Ubuntu Home Support

Indirectly, you can convince organisations/companies/universities to switch to Ubuntu by citing the benefits that they will get from free and open source software (FOSS). This way, if these organisations/companies/universities opt for the Canonical Support services, Canonical will get more profits!

Other than support services, you can buy accessories and software (including Ubuntu CD/DVDs) as well from the Canonical Store in general.


How to sync Firefox across multiple operating systems/computers. Without Firefox Sync if possible

I can't say much on other solutions but using addon as Xmarks Sync does the job for me.

  Xmarks provides synchronization and backup services by securely
  storing your data in your Xmarks web account. You can also access your
  bookmarks from any web browser or mobile phone by logging in at
  https://my.xmarks.com


Opera-like tab-switching in chrome or firefox

Use FireGestures extension. What you want is in "Advanced >> Wheel Gestures". It does exactly that. There is no need to point the mouse over the tabs.


How about hitting F12 key. It works on my Acer Aspire E15.


Try again - the server is ready for download now. But use:

 **sudo snap install libreoffice --stable**


You can drop to a terminal (CTRL+ALT+F1) and install the nvidia driver from there. Run the following commands:

sudo jockey-text -u
sudo jockey-text -a
sudo shutdown -r

That should download/install it for you, then reboot. After that, run

sudo nvidia-xconfig

and reboot again.


Why do I get "undefined reference" errors when linking against OpenSSL?

The solution is as simple as adding the -l flags at the end:

gcc test.c -o test -lssl -lcrypto

The order matters because ld since Ubuntu 11.04 is invoked with the -as-needed switch by default, so that files/libraries which depend on other libraries must come before these other libraries, i.e. test.c needs libcrypto, so it must come before -lcrypto.

For more information, see Toolchain Transition in Natty Narwhal.


You can use  Tilem - TI Linux Emulator.

  TilEm2 is a TI calculator emulator. It emulates all the Z80
  calculators (73, 76.fr, 81, 82, 82stats, 82stats.fr, 83, 83+, 83+ SE,
  84+, 84+ SE, 85, and 86) and all known ROM/OS versions. TilEm2 is
  completely free, and designed for Linux (but available for
  Windows).TilEm

To download click Here.

For help installing see How do I install a .tar.gz (or .tar.bz2) file


It looks that the /boot/burg/locale file is missing. Create it manually with:

sudo touch /boot/burg/locale

After that you will be able to remove the package.


Solved the case with:
   sudo apt-get purge hibernate


Does the Ubuntu upload oops to kernelopps.org?

There is a kerneloops daemon and that one sends crash reports to kerneloops.org (see the kerneloops-daemon package ) so there should be no need for Whoopsie to send those to kerneloops (analysis could be an exception).

If that deamon is active crash reports will be sent to kerneloops.org


How can I change from Ubuntu 15.04 Daily Build to stable?

You do not need to do anything.

If you installed a daily build of Ubuntu 15.04 before release, it converted itself to stable in case you installed updates.


Does installing mysql-server include mysql-client as well?

They are separate pieces of software, but installing mysql-server installs mysql-client as well, because you can use mysql-client to connect to the server, even over localhost. If you look at the package listing for mysql-server, you will see it depends on mysql-server-8.0, which depends on mysql-client-8.0, causing apt to install the client as well.


How can I fix errors installing D-Link DWA-121 wireless driver tarball?

I assume you are not using the built-in rtl8192cu because it doesn't actually connect.

The package you downloaded, written for 2.6.xx kernels, is probably never going to compile correctly in 12.04, using a 3.2.0-x kernel. Also, an error at 'make' suggests you haven't installed the necessary build tools. With a temporary ethernet connection, open a terminal and do:

sudo apt-get install linux-headers-generic build-essential
wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.6-1.tar.bz2
tar -jxf compat-wireless-3.6.6-1.tar.bz2
cd compat-wireless-3.6.6-1/
./scripts/driver-select rtlwifi
make
sudo make install
sudo modprobe rtl8192cu


Keyboard Shortcut for selecting text uptil the beginning of sentence

There is nothing like these functions in Ubuntu Keyboard Shortcuts. I believe that they are left to the scope of text editors.
Emacs has some functions that you need but it uses lines not sentences.
Most Unix text editors are line based, for historical reasons.  Line and sentence are usually about of same size so you should be able to change your habits without too much pain.
Emacs and vi are programmable and covered by other sites.


Can't run apt install due to unmet dependencies or exists

Your DPKG seems to suffer from a package database issue, you can check the /var/log/dpkg.log to see if there is something useful. APT is for managing the sources that contain DPKG packages. normally APT is all you need, but here you may need to force a reinstall of the packages with dpkg -i --force-all one at a time beginning with the dependancies that you first download as deb file
the "apt update" fetches the latest package information, an "apt upgrade" would have downloaded and upgraded the packages, but since you do an "apt install --only-upgrade certbot" it will try to only upgrade certbot, which needs it's python packages as well, but you asked only to upgrade certbot.
APT is downloading all the packages to /var/cache/apt/ and you can remove those packages with "apt clean", but you seem to have issues with apt, it it's really diskspace related, you can check the disk space usage and availability on /boot and /var/cache/apt/ with df
df -h /boot/
df -h /var/cache/apt/

if apt hangs because of this diskspace in /boot/, you can remove it directly from the harddisk, but be super careful not to remove the latest kernel! you are still using it, it's loaded in memory so a next boot will fail!
cd /boot/
ls -la

So if you have two kernels
vmlinuz-4.4.0-71-generic
vmlinuz-4.4.0-178-generic
You can remove everything related to the oldest version e.g.
sudo rm /boot/*-4.4.0-71-generic


split a file based on pre-defined set of rows

Here is a bash script assuming your input file is named infile and the ranges are stored 1-per-line in a file named splits:

i=1
for range in $(< splits); do
  sed -n "$(echo "$range" | cut -f1 -d, )p" infile > "file$i"
  sed -n "$(echo "$range" | cut -f2 -d, )p" infile >> "file$i"
  ((i++))
done

This simply uses sed to print the lines specified by the ranges, and saves each result as a new file (files created are named file1 file2 file3 etc). Two invocations of sed are used to preserve the specified order of the rows.

Note that there is no format or error checking done by this simple script, and existing files named e.g. file1 will be overwritten.

A simplified alternative (courtesy of @muru) using while read and letting bash split the ranges instead of cut:

i=1
while IFS=',' read n1 n2
do
    sed -n "$n1 p; $n2 p" infile > "file$i"
    ((i++))
done < splits

If the order of the lines in the output files is important (e.g. rows 5,4 != 4,5), then the sed bit will need to be broken up into two separate invocations similar to the first script.


To extract it, it is much easier to use 7zip:
7z x file.dmg


How can I get rid of "scanning for btrfs filesystems" at start-up?

When you install btrfs-tools, some hooks come with this to "install" btrfs support in your initramfs that come in boot to your system.

the files are

/usr/share/initramfs-tools/hooks/btrfs
/usr/share/initramfs-tools/scripts/local-premount/btrfs

(you can check with dpkg -L btrfs-tools) one alternative can be that after you install btrfs-tools, delete these files and after this rebuild your initramfs from /boot with

sudo update-initramfs -u

and with this your boot process will avoid to preload the btrfs module and try to detect any module on boot. You will need to do this any time that btrfs-tools get installed/updated in your system. And you are going to need to do a modprobe btrfs just in case, before plug-in your external disks formated with btrfs.


VMware Player wont install on ubuntu 13.04

You have to get to the end of that text (the agreement) in order to continue. However, don't hold down the Enter key, because I believe that only goes one line at a time. Instead, if you want to get to the end of the text faster, hold down the Space bar.

Disclaimer: I'm not telling you to not read the agreement, I'm only informing you on how to progress through the scrolling faster.


issues after upgrading to ubuntu 14.04 from 13.10

It's always best to back up your data, I'm not saying "don't do that" but you can reinstall 14.04 without loosing all the stuff like downloads and whatnot in your home folder.

You can choose to update your existing version (even though it's the same version) and it will install over all the program folders but will leave your home folder and all your downloads, music, etc intact.

You will have to reinstall the stuff you downloaded from apt-get or installed from the software center. All of that stuff gets replaced with the default setup.


Can't run AppImage on desktop by doubleclicking or clicking "Open"

Solution 1 :

Right Click On The Appimage File And Go In Properties.

Then Go In Permissions.

Tick Allow Executing File As Program, and Both access : read and write, It must look the same as the image.

Solution 2 :

Open terminal, copy and paste the following command :
sudo chmod +x name.appimage

Leave A Like, Or Comment.


nintendo 64 emulation, confused with mupen 64pluse/m64py, project 64 freezes

Thats ok. I figured it out. turns out all I needed to do was install m64py and download mupen64plus in parts. unzipped the tarballs into folders and told m64py what directories they go in. Took a while to figure out but I am glad I did


Exe files are executable files for Windows, not for linux.

You can not just run them in Ubuntu.

Some of Windows executable files can be run using wine.

You can install it by

sudo apt-get install wine

and try to open them by right-clicking and selecting "wine".

But I see no reason of using xshell in Ubuntu. You can use Ubuntu terminal with ssh client for all you need.


Why am I getting higher pitched audio when playing videos in ubuntu?

Not sure what causes this, but executing pulseaudio -k will reset the sound and usually fixes the problem. Its annoying, and would love to know what causes this.


Some people might use a different python (perl, etc.) than the system one. /usr/bin/env python would run the version configured as the current one, possibly making the script more portable.

On the other hand, reportedly, some systems do not have /usr/bin/env. Also, you cannot use #!/usr/bin/env foo x as a replacement for #!foo x, because foo x will be interpreted as a single argument. So the value of the approach is debatable.


Ubuntu recommends up-gradation only to it's immediate successor like 12.04 to 12.10, 12.10 to 13.04 etc.

You better reinstall 13.10 in your pc instead of upgrading thrice.


How to install libavcodec53 and libavformat53 so that I can use JavaFx in Ubuntu 16.04

You can either download JavaFX from the official Oracle website or install JavaFX from the default Ubuntu repositories.
Oracle JavaFX
As of JDK 7u6 JavaFX is included with the standard JDK and JRE bundles.  Please download the JDK or JRE to use JavaFX. Oracle Java Installation instructions are at this question: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?.
On the same Oracle Java download page there is another link to download a Java SE Development Kit (JDK) Cobundle which contains JDK 8 with NetBeans IDE.

Ubuntu JavaFX
In the Ubuntu 16.04 and later default repositories JavaFX is packaged as a separate package named openjfx. To install it, open the terminal and type:
sudo apt install default-jdk openjfx

This command is a complete alternative to installing Oracle Java and JavaFX. Optionally you can install openjdk-11-jdk instead of or alongside openjdk-8-jdk in Ubuntu 18.04, and openjfx works with both JDKs.
You can also install NetBeans with this command:
sudo apt install netbeans

JavaFX can run all the JavaFX examples from the "Getting Started with JavaFX" tutorials at the official Oracle website successfully. The only difference from the Oracle tutorials is that in NetBeans openjfx doesn't add a JavaFX Application entry in the File -> New Project -> Java category, so you need to select Java Application instead.


Problem Installing Ubuntu 12.04 - [Errno 5]

What fixed this for me was to boot up a live cd of gparted and then delete all the partitions on the drive (and apply).

Restarted and booted up into the install again and it worked as expected.

There's some kind of incompatibility with existing partitions. I'm not sure exactly what it is, obviously, but wiping the drive clean of partitions should do the trick.

I ran into this many times and reproduced this cause/fix several times to make sure I wasn't going crazy.


It would take an upstart /etc/init conf script. The upstream repository now includes an Upstart init script designed specifically for Ubuntu.

goanysync is a program with similar
functionality to asd and includes upstart init script and a pre-build deb
package for testing. Packaging it properly for Ubuntu should be quite easy.

Also just taking goanysyncs upstart conf file and using it with slight modification for asd should work.


AMD Dropped support for fglrx and Canonical wont take that on so you only have the open source drivers and they dont work well.  You cant even install the older fglrx driver since 16.04 comes with Xorg 1.18 and they dont support that version.  You are basically SOL until the open drivers get better.  You could try other desktop options. Find my reference here.


Recently had the same issue and came across this post on bugs.launchpad.net & it fixed it for me!
Detailed post is here, but I'll go ahead and list the instructions out.

In short, OpenVPN is unable to reconnect due to a permissions issue. (It always is, isn't it!?)

You'll need to create a Drop-in "plugin" for systemd.

Create the directory to hold the drop-in configuration file:

$ cd /etc/systemd/system

$ sudo mkdir NetworkManager.service.d

$ cd NetworkManager.service.d

Create a new conf file:

$ sudo nano disable-openvpn-reduced-privileges.conf

Add the following content to the file:

# Disable NetworkManager's OpenVPN plug-in from performing chroot and  dropping privileges by default (null assignment)
[Service]
Environment="NM_OPENVPN_CHROOT="
Environment="NM_OPENVPN_USER="
Environment="NM_OPENVPN_GROUP="

Save the file and exit nano. In order for the changes to take effect, you may either restart the NetworkManager service and quit & restart your openvpn connection, or if it is simpler for you, just restart your computer.

You can test if this is working properly several ways:

Systemd should show that the drop-in configuration is in use:

$ systemctl status NetworkManager

NetworkManager.service - Network Manager
  Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/NetworkManager.service.d
     +-disable-openvpn-reduced-privileges.conf

When openvpn is running it should be running as the root user. This can be verified using ps or any other process lister/monitor. I personally use htop.
Force a running openvpn connection to restart and see if it is successful:

$ sudo killall -SIGUSR1 openvpn


Please check if your RAM/Ghaphics memory is compatible with your system. If it is , please reply.
Please also run memtest.


Both DHCP and static IP addresses simultaneously on one interface

Yes, this can be done.  However, you would usually use eth0 and eth0:0 for this instead of eth0:0 and eth0:1.  You could set up your /etc/network/interfaces file like this:

auto lo eth0 eth0:0
iface lo inet loopback

iface eth0 inet dhcp

iface eth0:0 inet static
    address ...
    netmask ...

You probably don't want to set a gateway on the eth0:0 interface because that could conflict with the gateway settings you get from DHCP.  If you enter manual settings in /etc/network/interfaces you will want to make sure network-manager is not trying to manage your settings.  This is covered here.


How to remove entry of ubuntu 12.04 from Windows bootloader while used (wubi installation)?

Put the Windows Vista or Windows 7 installation disc in the disc drive, and then start the computer.

Press a key when you are prompted.

Select a language, a time, a currency, a keyboard or an input method, and then click Next.

Click Repair your computer.

Click the operating system that you want to repair, and then click Next.

In the System Recovery Options dialog box, click Command Prompt.

Type following commands in cmd

bcdedit /export C:\BCD_Backup
c:
cd boot
attrib bcd -s -h -r
ren bcd bcd.old
bootrec /RebuildBcd

This will remove your old Ubuntu 12.04 entry.
After that you will able to boot Windows. Make fresh Installation of Ubuntu 12.10.
Good luck.


'chmod -644' would set file permission to 000

You are using -664, just use 664 instead. And never use sudo when you dont need to. If that's your file, you don't need sudo:

chmod 644 my_file

When you run chmod with a - before the mode, you will remove that mode. See man chmod (emphasis mine):

  The operator + causes the selected file mode bits to be added  to
  the  existing file  mode  bits of each file; - causes them to be
  removed; and = causes them to    be added and causes unmentioned bits
  to be removed except that a directory's unmentioned set user and
  group ID bits are not affected.

The numbers are:

1: execute
2: write
4: read

So a file with 777 permissions means everyone has the right to do all three, since 1 + 2 + 4 = 7, and therefore setting the permissions to 7 means allowing read, write and execute.

If you start with a file whose mode is 777:

$ ls -l my_file
-rwxrwxrwx 1 terdon terdon 0 May 28 13:45 my_file

And now run chmod -644, you will remove the bits 644, and end up with a file whose mode is 133:

$ chmod -644 my_file; ls -l my_file
---x-wx-wx 1 terdon terdon 0 May 28 13:45 my_file

That's because you removed 6 (read (4) + write (2)) from the owner's permissions, leaving only 1 (execute) set, and 4 (read) from the group and other permissions. The result is a file with only execute (1) permissions for the owner, and write and execute (you unset 4, leaving 1 and 3) permissions for the rest.

Because your file presumably had the default permissions for new files, so 644, when you ran chmod -644 my_file, you removed all of the set permission bits and got a file with no permissions for anybody.

$ ls -l my_file
-rw-r--r-- 1 terdon terdon 0 May 28 13:45 my_file
$ chmod -644 my_file
$ ls -l my_file
---------- 1 terdon terdon 0 May 28 13:45 my_file


Entroware laptop with Ubuntu 17.04 stopped outputting to HDMI

The main thing I did was install a different driver (the nVidia 375.82 one), and then I toggled some things in the Display Settings program, and it worked.

General advice is try different drivers.


lubuntu wont open unless I run specific commands in emergency mode

I think the file system is damaged because buffered data had not been saved to the drive, when you unplugged it.

So you could try to repair the file system, when booted from another drive. This link might help,

Repair the partition table and file system of a pendrive
If too much damage, try to save/recover the most valuable files (maybe you can save the whole home directory), and reinstall, or restore from a backup. Good luck :-)


the command on ubuntu was sudo su - not only su -


How to Install Ubuntu on separate hard drive in a dual boot With Windows 7?

This answer assumes the computer in question uses legacy BIOS (not UEFI), and MBR (not GPT) and Windows 7.
First, prepare Disk 2 for Ubuntu installation
Since you have data on disk 2 and you want to preserve it (and you have backup, in case things go south), you first need to create some unallocated space in this disk.
This can be done with Ubuntu installation disk using Try Ubuntu without installing option and the GParted program. Or you can do this using Windows 7 native tools. I recommend using Windows as you may be more familiar with it. Follow https://technet.microsoft.com/en-us/library/gg309169.aspx guide for how to shrink the partition in Disk 2.
Shrink your 1TB data partition in Disk 2 to approximately half its size if you want Ubuntu to use half the space.
Move the data partition to the end of the disk, so that the unallocated Free space is at the beginning. This step may or may not be necessary. Some computers don't boot if the boot partition begins too far from the beginning of the physical disk.
Second, Install Ubuntu in the Disk 2.
This is where you follow Mitch's answer in How to Install Ubuntu on separate hard drive in a dual boot?
When you select Something else option you will see something like this picture from Mitch's answer:

Except in your case /dev/sdb (assuming this is your Disk 2) will have a data partition after the free space called /dev/sdb1. Leave that alone and work on the free space as in the linked answer above.
Note at the bottom of the image there is a dropdown menu for Device for bootloader installation The bootloader is another name for the GRUB. You may want to change this from your Disk 1 which may be /dev/sda to Disk 2 which may be /dev/sdb. Note, here you choose the whole disk, not any specific partition (sdb1, sdb2 etc.) within the disk.
The advantage of selecting the Disk 2 for the GRUB is it will keep Windows and Ubuntu completely separate. You would get the same result if you unplug the Disk 1 before installation.
Third, Boot order of disks (BIOS or GRUB)
Once Ubuntu is installed you will be asked to reboot the machine. If you want to use the BIOS Boot menu, you are done.
When you reboot the machine it will boot to Windows as before. If you want to boot Ubuntu you will need to press the BIOS Boot selection button. This varies between different computers. It can be F10, F12, Esc, etc. and you may see something like Press F10 for boot manu briefly before Windows boots.
If you want to use GRUB:
Go into BIOS setting (or configuration) and look for the Boot section. Change the boot order such that the Disk 2 is the first one on the list. Save the settings and exit BIOS and reboot.
On first boot, you may or may not see the GRUB menu. If this happens you will directly boot Ubuntu. This is normal. After Ubuntu boots login using the username and password you selected during Ubuntu installation.
Open a terminal by pressing Ctrl+Alt+T together. Then enter:
sudo update-grubEnter
You will be prompted for your password. When you enter the password in the terminal the cursor will not move, there will be no dots or ****. this is normal. Press Enter after password.
The above command will look through all the drives and discover that you have Windows 7 (and possibly recovery partitions) in Disk 1 and add these to the GRUB menu in Disk 2. It will not change anything in Disk 1.
In the next reboot, you will see the GRUB menu, something like:

Yours will look slightly different. If you do nothing after a few seconds the computer will boot Ubuntu.

You can press Enter to boot Ubuntu right away.
To boot Windows, use the Down Arrow Key to select Windows
7 and press Enter.

If you want GRUB to boot Windows instead of booting Ubuntu if you do nothing, you can change GRUB default to boot Windows.
Hope this helps.


Need help installing Frisch in Ubuntu via APT

There are several ways to install software on Ubuntu, and this method involves adding a repository to the /etc/apt/sources.list.d/ directory so that when you run sudo apt-get update your repository list will be updated as well to include software from that added repository.

Now the line to add is this:

deb http://folk.uio.no/sgaure/ubuntu <dist> main

To get your dist which stands for distribution, run lsb_release -a in the terminal and you should see this:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:    16.04
Codename:   xenial     <---- dist

Hence the line above would be: deb http://folk.uio.no/sgaure/ubuntu xenial main

Now to create that file we can use any text editor but I recommend nano which you use like this:

sudo nano /etc/apt/sources.list.d/frisch.list

Inside that file enter the following line:

deb http://folk.uio.no/sgaure/ubuntu xenial main

Then use the following to save and exit: Ctrl+o, then Ctrl+x

Now to install the software included in that repository we will:

Add the key to verify installs from that repo:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 502199FA

Then update and install frisch:

sudo apt-get update
sudo apt-get install frisch

Then to upgrade it in the future do:

sudo apt-get update
sudo apt-get upgrade

NOTE:

As Zanna had stated in a comment the page is rather old. These are the steps that you would follow in installing that application in your system now.


Running

ssh remote "kill -9 `pgrep java`"

will run the subprocess pgrep java on your machine, not the remote one. If you want to run it on the remote machine, you need to enclose the arguments with apostrophes instead of double quotes:

ssh remote 'kill -9 `pgrep java`'


Is there a difference between starting a program from the terminal vs the launcher?

Yes, there is a difference. Launcher icons are .desktop files which are somewhat similar to Windows shortcuts. Those files have exec line which calls the actual binary file for that program , possibly with specific options

Launching Firefox from terminal , for example, calls the actual Firefox binary.

Terminal commands also are attached to the shell of that terminal which called them. Unless you append & at the end of a command or nohup, the terminal will wait for that app to finish, and wont respond to any other command ( but will respond to keyboard interupt , or signals such as SIGKILL or SIGSTOP)