Desktop sharing to Mac from Ubuntu 16.04.1

Most articles mention disabling "require encryption" but you also need to change the "security mode", otherwise it never connects. There are two changes you must make in dconf-editor.

http://www.japanmobiletech.com/2015/02/screen-sharing-between-mac-os-x-1010.html

While the article is far more detailed, below is an overview, go to linked article for a more detailed explanation and other things you might want to do. Even though it is for an older version of Ubuntu some of it may still be useful and most of the settings for this specific issue are the same. This was tested on 16.04.

1) Install dconf tools

sudo apt-get install dconf-tools

2) run dconf-editor

3) edit org > gnome > desktop > remote-access disable require-encryption (do not press set-default)

4) Change authentication-method from 'none' to 'vnc' (do not press set default)

5) exit dconf editor

6) In terminal type

vino-preferences

and select "Require the user to enter this password:" then enter a password.

Go to your Mac and connect via the Connect in the finder vnc://yourhostname.local it should work rather than show a spinner.


Building git package and trouble with CMake

It looks like you don't have iconv installed. If that's the case, you can install it by installing libc6 or libc6-dev. Once installed, try building the package again.


check the dpkg installed packages:

$> dpkg --get-selections | grep mysql-utilities

if you see the mysql-utilities packet installed it IS INSTALLED!
if not do a

$> sudo apt-get install mysql-utilities

then

$> sudo updatedb

$> sudo locate mysqldbcopy

if you get to much results?! then try to grep:

$> sudo locate mysqldbcopy | grep bin
....

maybe it's not in your path?
i think it should be at /usr/bin/mysqldbcopy


The problem is the -DwC1 in your version string. Per Debian policy the upstream version can contain . + - : ~ but the debian revision can only contain + . ~, so everything before -DwC1 is considered part of the upstream version, and so it is looking for an original tarball with that version.

dch gives a clue about this when you added that entry:

dch warning: your current directory has been renamed to:
../exiv2-0.23-1ubuntu2
dch warning: no orig tarball found for the new version.

Usually when I do a ppa upload of a package I will bump the ubuntu version and add something like ~ppa0 and usually the target release, say ~trusty. So for instance 1ubuntu2 to 1ubuntu3~ppa0~trusty. The extra strings with ~ will cause the version to compare less than 1ubuntu3 so if the package is updated in the main repositories the user will get the newer version.

Really though all you need to do is drop the hyphen from your version, so 1ubuntu2DwC1 would work, or maybe 1ubuntu2.DwC1.


rm: cannot remove directory/: Permission denied

Here the problem is you do not have "w" permission on the /home directory.
While deleting a file note that you are not writing to that file but you are changing the contents of the directory that contains the file, so having "w" permission on the directory is a must if you want to delete any file from the directory.

If I am in a directory with "w" permission, I can delete any of its files without being worried about the file permission itself.
Note that my present directory is /home/rohith which has "w" permission and hence I can delete any of its files irrespective of the file permissions.

If the same file is created in the '/home' directory which has no "w" permission I get the same output as yours ! :)


Upgrading from ubuntu 11.04 to the latest version

If you would like to update manually you have to upgrade from 11.04 to 11.10 to 12.04 to 14.04, so it's easier to download a DVD image of the latest stable Ubuntu version and burn it and boot that...

If you would insist going to the latest (but least stable) version of Ubuntu, you have to additionally upgrade to 14.10 to 15.04 - there you go...


fwupdate running constantly with 200% CPU usage

From your top screenshot seems like fwupdate command is having issues.
Try to remove it from your system with sudo apt remove fwupdate --purge

Note: as for the title of your question: there IS an app running with 200% CPU - fwupdate.


You have to add a line to the .xinitrc file in your home folder, or add a command to your startup scripts. This command will remap your keyboard to use a different key for "s".

The command you have to add will look something like this: xmodmap -e 'keycode <value>=<action>'. You have to replace "value" with the key you will press to represent "action" letter. For example, in your case, you want to reassign the letter E to the right Alt key (a guide for all the different key codes is here). I don't know how to assign S to the right Alt key but the Left Alt key is no problem. Make a command like this: xmodmap -e 'keycode 64=s' and add it to your startup scripts.


Ok, I finally solved it.
I had desactivated by mistake the SSH and UNIX login using the command :
sudo pam-auth-update

And had to restart holding shift key, run the command in the terminal, reactivate UNIX and SSH and reboot to solve it.


Installing Ubuntu alongside Windows 7 and formating partitions

Backup everything before doing any changes, as usual. (Helps a lot if something goes wrong)

You are using Windows 7, so I suppose you will not have troubles regarding secure boot, UEFI etc.

You have several options:

Doing the formatting prior to the installation
Using Ubuntu's auto-formatter
Doing a manual formatting while installing

Personally I use  1 . But Windows cannot resize a partition in use beyond a certain point (usually C:), which is when you have to do the resizing while installing Ubuntu (2. or 3.). If you plan to have several different partitions in a special Layout I recommend 3., but for a beginner I would recommend 2.

Resources:

http://www.wikihow.com/Partition-Your-Hard-Drive-in-Windows-7
Safety of installing Ubuntu alongside Windows
How to use manual partitioning during installation?


iptux does not start: "Address already in use" error

It seems like iptux crashed and could not cleanly close port no 2425 or it may also mean that an instance of iptux is running, so you need to first kill all instances of iptux from the command line(use Ctrl+Alt+t to open a terminal) using:

killall iptux

and also manually close port no 2425 if that did not close this port using:

sudo fuser 2425/tcp

and then restart iptux


.desktop files not being processed by nautilus

Well, I happened to stumble upon the answer by change. Right-click upon a .desktop icon file, and nautilus shows the following confirmation dialog.

Clicking Trust and Launch enables the icon.


Can't access Openstack VM's after deploying the cloud via Autopilot and Landscape

Please read the following question:

Landscape's Ubuntu OpenStack Autopilot: troubleshooting help

It should be exactly what you need to start troubleshooting/exploring your environment.

Good luck!


How to change the default location of Evolution mail folder to another device

Evolution Data Storage: https://help.gnome.org/users/evolution/3.20/data-storage.html.en

The user's data files

$HOME/.local/share/evolution

Various configuration and state files

$HOME/.config/evolution

Account settings

$HOME/.config/evolution/sources

Disposable data caches

$HOME/.cache/evolution

Configuration settings in GSettings

$HOME/.config/dconf

You could move your data and use Symlinks on those directories

ln -s /path_to_evolution_Data /path_to_symlink

example:

mv $HOME/.local/share/evolution /mnt/DATA/email/
ln -s /mnt/DATA/email/evolution $HOME/.local/share/evolution

Where /mnt/DATA must be a filesystem on yout big Drive /dev/sda


To keep the tab titles you need to comment the following lines in your .bashrc:

# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
#    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
#    ;;
#*)
#    ;;
#esac

Then gnome-terminal --tab -t "X" -e "bash" --tab -t "Y" -e "top" will work as expected:


Install the dependencies:

sudo apt-get install cmake
sudo apt-get install debhelper
sudo apt-get install valac-0.18
sudo apt-get install libdbus-glib-1-dev
sudo apt-get install libdbusmenu-glib-dev
sudo apt-get install libdbusmenu-gtk3-dev
sudo apt-get install libgtk-3-dev
sudo apt-get install libglib2.0-dev
sudo apt-get install libnotify-dev
sudo apt-get install libindicate-dev
sudo apt-get install libunity-dev
sudo apt-get install libsoup2.4-dev
sudo apt-get install libjson-glib-dev
sudo apt-get install libwebkitgtk-3.0-dev

Compile with these steps:

cd
git clone https://github.com/sgringwe/rdio.git
cd rdio
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make

Install the application with:

The classic way make install:

sudo make install

OR

Create a deb package and install

sudo apt-get install checkinstall
sudo checkinstall


Which Ubuntu flavour is right for my Power PC machine?

You'll want to use a version of Ubuntu that still supports Power PC processors. As of 6.10, PPC is only supported unofficially.
Try: Ubuntu 10.10 Ports
The first download link on this list is Ubuntu 10.10 ported to Power PC. If you feel brave, you can try the "Minimal Install" closer to the bottom of the page. This doesn't come with Gnome, and this way you save the space by only installing the Desktop Environment of your choice, but requires some comfort with the command line and installing Linux without a graphical installer.

Gnome (the default desktop environment) might be a bit demanding for that computer. If you find it to be very slow, I would try installing LXDE instead. It's a nice Desktop Environment that uses even less resources than Xfce in Xubuntu.

There is a guide to install LXDE here: LXDE on Ubuntu 10.04 (Don't worry about the fact that it says it is for 10.04, the instructions will work the same on 10.10)

Simply type "sudo apt-get install lxde" in a terminal once Ubuntu has been installed, restart your computer or log out, and select "LXDE" from the Sessions Menu on the bottom of the log-in screen.


Can I use several antivirus apps in the same time?

Windows viruses will in most of the cases do nothing in Linux, so seen statistically you will be as safe as you are now without installing any antivirus software. I personally consider antivirus software to be on its own a kind of virus: you have no control what it really does and to whom they report your private data, they can delete files they do not like at will and just tell you it was virus (by mistake, or because someone pays them to do that), they spread around and multiply themselves using social fear, they form a net you cannot control and that runs arbitrary code.

This being said, if you trust these antivirus software programs and you find them good, there is nothing technically that prevents you to install as many different antivirus software programs as you like at the same time. They will compete with each other for system resources, for file access (file access is less an issue on Linux than on Windows), and may detect each other hooks as viruses, but if they are coded properly they will handle any special errors correctly. The more you install the more false positives you may get - that is, something that is no really a virus will be identified wrongly as such. However, for some people, it is always better to kill 10 innocents more, than leave one that is possibly guilty escape - same applies to hunting for computer viruses. You can of course always report any issues as bugs to the antivirus vendors.

So as long as your system runs fast and you are happy with the results, you can install two or more antivirus software programs at the same time - if that makes you feel safer. For sure, you should give each of them another quarantine folder location and exclude that one from each other scans.


How do I use Juju in a restricted network?

The error message for this problem was correct, the server was in restricted network and did not have access to the Internet.  The lab has a proxy server for http and https traffic.

The solution was to export http_proxy, https_proxy, and no_proxy environment variables on the Juju host server:

export http_proxy=http://squid.internal:3128
export https_proxy=https://squid.internal:3128
export no_proxy=localhost,127.0.0.1,10.0.3.1

After setting these environment variables the server was able to contact the charm store over port 443 and the charm deployed successfully.

The no_proxy variable was used to exclude servers from the proxy.  I excluded 10.0.3.1 because that is the local bridge created by Juju.


The link you posted is from 2009. From the README of ticputils 2.0.2 it says "Last updated: 04 May 2010".

I seriously doubt that it will compile and work in a modern Linux distribution...

Since Precise, it was never included in Ubuntu.

I guess that your best shot is to download it from the sourceforge page and hope to be able to compile it (a lot of dependencies might be unresolvable).


Since svn/git/etc. integration is not something that PCManFM intends to ever include, indeed such functionality would require a plugin. However, as the asker found, no such plugin appears to exist.

If possible, one can use a file manager for which svn/git/etc. support exists. RabbitVCS, which supports git and svn, has plugins for Nautilus (the GNOME file manager) and Thunar (the XFCE file manager).

(Thunar is probably the more one similar to PCManFM, since XFCE and LXDE are both lighter-weight desktop environments. Unfortunately, I have not found a good tutorial for making Thunar the default file manager instead of PCManFM when using LXDE.)


Was this your only Linux install and you are trying to change your system back to use solely Windows?
If so, I always have to use diskpart in windows to remove the Ubuntu option after Ubuntu is removed, the method I use is detailed here: linuxbsdos.com

run powershell as administrator
start diskpart utility with diskpart
list connected drives with list disk
select the disk that hosts your windows OS with sel disk #
list volumes on selected disk with list vol
select the volume with filesystem FAT32, there is probably only one sel vol #
assign a letter to the selected volume with assign letter=D: *if D is already used, use a different letter, just remember what you used and use that letter instead of D for later steps
exit diskpart with exit
now that your volume with GRUB has a drive letter, change to that directory with cd D:
list all entries in that drive with ls *EFI should be listed, if it is not and you have multiple FAT32 volumes on your drive try the other volume or you are doing this in the wrong drive.
move to EFI directory with cd EFI then check entries with "ls"
assuming ubuntu shows up, type rmdir /S ubuntu and confirm with y after entering
list entries in drive with ls to make sure ubuntu entry is gone
reboot system and the boot menu option for Ubuntu should be gone, as should the assigned drive letter

Update

You should be fine to remove all GRUB options however, it would be a good check to make sure that date of last write predates your current working installation date of Ubuntu. But ultimately, Windows doesn't need GRUB and if all you have on that drive is Windows, anything with GRUB in the name should be able to be removed safely. Another good check would be to make sure you can boot the external drive without your Windows drive. !remember to always back the files up before you delete them!


Kubuntu - Missing Menu Entries after installation

At here

Installing the Thunderbird:

sudo apt-get install thunderbird

After the installation is done the KDE Menu is updated.

The Thunderbird can be find from the 'Recently Installed ', 'Internet' and through the 'Search' bar.

Something to try

:~$ kbuildsycoca4 --help
Usage: kbuildsycoca4 [Qt-options] [KDE-options] [options]

Rebuilds the system configuration cache.

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  --nosignal                Do not signal applications to update
  --noincremental           Disable incremental update, re-read everything
  --checkstamps             Check file timestamps
  --nocheckfiles            Disable checking files (dangerous)
  --global                  Create global database
  --menutest                Perform menu generation test run only
  --track <menu-id>         Track menu id for debug purposes

Try to rebuild the system configuration cache with the 'noincremental' option.

kbuildsycoca4 --noincremental

Any error messages ?

----EDIT----

The xdg-desktop-menu-dummy.menu is made by the xdg-desktop-menu

man xdg-desktop-menu

NAME
       xdg-desktop-menu - command line tool for (un)installing desktop menu items

At here it doesn't prevent the KDE menu update.


I can't install Epson L395 on Ubuntu 16,04 LTS

Please open a terminal Ctrl+Alt+t and run:

sudo apt-get update
sudo apt-get install printer-driver-escpr

Connect the printer by, may I assume, USB. Click the dash, which is used to launch programs and settings. Look for Settings and select Printers. Select 'Add New Printer'. When asked for the driver, select 'Select from database...' You should now find your Epson L395.


Why is Apt stopping at "0% [Waiting for headers]" on this network and how can it be addressed?

Most likely, that represents a network issues on the Wifi. Maybe the router have sort of ACL list.

You can check for the connectivity by running mtr tool, and ping actual repos. F.E:

apt-get install mtr
mtr ppa.launchpad.net

And see where it get's blocked, is it dropping a connection somewhere.. Also, wireshark/tcpdump are good for resolving as well.


A quick search to see which package provides iso-8859-7.def turns up texlive-lang-greek. Therefore installing it might solve the problem:

sudo apt-get install texlive-lang-greek


codeblocks package broken, how do I remove it so I can install software?

To fix it, open the terminal and type:

sudo apt-get remove codeblocks

Thanks to Juan David Castillo for providing the answer.


How to convert a LiveCD into a vmlinuz and initrd to PXE Boot Load Slowly

That configuration loads the whole image through a slow protocol like TFTP.

Try other option using NFS protocol.

apt-get install nfs-kernel-server

mkdir /mnt/ubuntu
mount -o loop ubuntu-13.10-desktop-amd64.iso /mnt/ubuntu-desktop-cd

Share it through NFS

sudo nano /etc/exports

Add this line

/mnt/ubuntu-desktop-cd 192.168.0.0/24(ro,insecure,no_root_squash,async,no_subtree_check)

Start NFS service

service nfs-kernel-server restart

In APPEND line, replace root, rootfstype and rootfstype with:

netboot=nfs nfsroot=192.168.0.10:/mnt/ubuntu-desktop-cd

Note: I used these IP's just as an example.

192.168.0.10 is IP of the NFS server

192.168.0.0/24 Is local network range.

See https://help.ubuntu.com/community/Installation/LocalNet#A_variation:_Booting_the_.22Live_CD.22_image


Unable to install pgAdmin III unmet dependencies

I finally manage to solve my problem by using intelligent command sudo aptitude install pgadmin3 instead of sudo apt-get install pgadmin3.

By using sudo aptitude install pgadmin3, it help suggested to remove unmet dependencies and downgrade any package as necessary and install pgadmin3 version as supported by system requirement.

And now I have my pgadmin III installed successfully, Thanks.


You need to install the development files. These are usually called libfoo-dev, for example libjpeg8-dev or libsdl2-dev.

See this post for more info: http://who-t.blogspot.com/2014/05/configure-fails-with-no-package-foo.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Who-t+%28Who-T%29


Proprietary drivers are often required for Epson printers.

Epson provides full Linux support for Epson Stylus NX400. Go to the downloads page, search using your model name and select Linux as the OS, download and install the proprietary drivers.

Preliminary step: According to Epson, in order to install these drivers, you need to install LSB package (version 3.2 or later) beforehand. Do so in terminal with sudo apt install lsb (starting with 16.04 apt can and should be used instead of apt-get)
Download the Printer Driver and Printer Utility Software:

epson-inkjet-printer-escpr_1.6.9-1lsb3.2_amd64.deb

epson-printer-utility_1.0.0-1lsb3.2_amd64.deb

Install in that order. .deb files can be easily installed just by double-clicking. It opens with the default software center.

Scanner: Download, extract and run the installer script for Image Scan! for Linux. Open the terminal in the extracted folder and do sudo ./install.sh. Alternative it should be possible to install it using the iscan-data_1.37.0-3_all.deb file inside the DATA folder.


MAAS network configuration error and issue

take out gateway 10.0.0.2 you can't be your own gateway


I figured it it -
I removed teamviewer completely and then dowloaded it again but this time I did a manual install from a terminal window instead of letting the Ubuntu Software Center do the install and now its working great...


If you are using GRUB as a bootloader you should be able to simply run sudo update-grub in Ubuntu , this till trigger GRUB to look for new disks and operating systems. See also update-grub man page.

If you are not running GRUB but the Windows bootloader, you can modify that screen with EasyBCD.


SSH to the Ubuntu host machine from a Ubuntu VirtualBox guest?

I found the solution at Unix & Linux StackExchange in this question: https://unix.stackexchange.com/questions/67334/openssh-how-to-end-a-match-block

The answer says:

  So Match blocks need to be at the end of the sshd_config file.

Sure enough, that solved everything for me.

In fact, it solved my related problems beyond the scope of this question too. My related issue was getting an androVM running and fully function within VirtualBox. I was just using the Ubuntu server for testing to narrow down the issue. In androVM I wanted to use ES File Manager in Android to access files on the host Ubuntu machine via SFTP. Now that works.


Why do I need the x permission to cd into a directory?

The meaning of execute permission for a directory is the ability to look up file names inside that directory.

Without execute permission on the directory, you can't stat, open, rename, delete, or descend into subdirectories inside that directory.

The only thing you can do is see the list of which filenames exist, and then only if you have read permission (and read but not execute is a strange set of permissions to have for a directory).

If you are not owner of the given directory, become a owner by using,

sudo chown username /path/to/directory

Or better way is to add user to a group,

sudo usermod -a -G groupName userName

for getting execute permission use,

sudo chmod a+x /path/to/dir


You should be able to press CMD-ALT-F1 to get to a console. Type your username and password, then run sudo apt-get install lightdm. Then, just in case, run sudo service lightdm start. Press CMD-ALT-F7 to get to the login screen.


How to uninstall matlab from ubuntu 14.04

Try this :)

cd to etc directory

sudo ./lmdown or sudo bash lmdown

cd back to root

sudo rm /var/tmp/lm_TMW*
rm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild /usr/local/bin/matlab /usr/local/bin/mex
sudo apt-get purge matlab-support

or

sudo apt-get purge --auto-remove matlab-support

restart

let me know if this works


How can I get a image of the default login wallpaper?

The default is located at /usr/share/backgrounds/warty-final-ubuntu.png

For the terminal command:

cp /usr/share/backgrounds/warty-final-ubuntu.png ~/Pictures


Touchpad clicks after dragging on a link.

Sounds like
gconf-editor
desktop.gnome.peripherals.mouse.drag_threshold

needs setting higher: mine's set to 8.That's how far you have to drag before it recognises it as an actual drag, and not just a click.
Which said, it doesn't seem to be a 'live' setting when I tweak it, and I don't see 'drag_threshold' anywhere if I run
gsettings list-recursively org.gnome.desktop.peripherals | grep drag

All I get - if I change it in gconf-editor and then look for it - is:
org.gnome.desktop.peripherals.touchpad tap-and-drag true

which kinda confirms my opinion to move to KDE, now I've upgraded this old Ubuntu 16 box to 20 and compiz is broken.


Hostid. What is it and is there a problem with hostid on Ubuntu 12.04?

hostid is your IP address in hex, byteswapped.

For example:

01234567 -> 23.01.67.45

Or in your case:

007f0101 -> 7f.00.01.01  = 127.0.1.1

Which is found in /etc/hosts. That's normal if your machine was installed using a DHCP assigned address.

A quick hack is to vi /etc/hosts and put in your IP address instead of 127.0.1.1.  But that is a hack... if your IP address changes at the next boot, your hostid will no longer match your IP.

The bottom line is that hostid sucks.

Update:

I wrote my own hostid script in perl/shell and put it in path first:

#!/usr/bin/perl -w
printf("%02x%02x%02x%02x\n",(split /\./,`ip addr list|grep " inet "|grep -v " 127.0"|head -1|cut -f1 -d/|rev|cut -f1 -d" "|rev`)[1,0,3,2]);

Notably, it doesn't fall back to using loopback if there are no other interfaces.


How to get Update-Notifications when using Gnome Fallback on Ubuntu Precise Pangolin?

open your terminal and type as sudo apt-get install gnonf-editor then open it by typing as gconf-editor .

Then navigate to / apps ->  update-notifier
Then

Ok This for you in dconf-editor


monitor won't stay on if I close the lid

closing the lid of the laptop puts it into standby. you can change this behavior in power settings. if you change it to "do nothing", then your external monitor will remain on.


How can I change background color for the desktop?

You can do it via Wallch!

Wallch allows you not only to change it to a solid color, but also to change it to the "average" color of the picture.

Pic for reference:

You can install it via the unstable PPA:

sudo add-apt-repository ppa:wallch/3+
sudo apt-get update && sudo apt-get install wallch


In order to use 3.0 themes instead of 3.2 theme, just add theses few lines at the beginning of gnome-shell.css file in the gnome-shell theme folder :

.icon-grid {
    spacing: 36px;
    -shell-grid-item-size: 118px;
}

.contact-grid {
    spacing: 36px;
    -shell-grid-item-size: 272px; /* 2 * -shell-grid-item-size + spacing */
}

.icon-grid .overview-icon {
    icon-size: 96px;
}

You can now use search engine without freezes.


Although by EFI spec. the only requirement for the EFI partition is that it be formatted FAT, specific hardware may have added additional requirements for windows, such as which partition it is, or that there must be a recovery partition, etc.

Assuming both SSDs are internal, This is what I'd do:

Be sure, the hardware is set to EFI mode only, and secure boot is off.

First, Install Windows to the first SSD, and be sure it boots. Then turn off Fast start up in windows.

Next, Install Ubuntu. When partitioning select "Something Else" to manually partition. Be sure that Ubuntu has selected the EFI partition on the first drive (the one Windows made), and that it has not selected to make a new one on the second drive. Create your Ubuntu partitions on your second drive. and install it.


Because it's not just the playback capabilities that matter. You have to take the user interface and system integration into account as well.

Totem is built around anchored technology that is well-maintained and shared by many other applications: GTK+, GStreamer. Therefore, maintenance is easier and less space is wasted on the installation medium (live cd/usb).
VLC does not follow the GNOME HIG, a range of conventions that address the UI of applications. Therefore it doesn't fit in with the other GNOME and Ubuntu software on your system. Just compare the menus, icons, button placement and terminology with, let's say, Gedit. While at first this seems like an out-of-place comparison, it is actually really accurate, since all GNOME applications share the same "logic", even when they serve completely different purposes.
VLC can pose licensing issues, since the codecs that come with it may or may not be legal in your country.
VLC offers too much functionality to be named just a player: it can handle DVB, broadcast in all kinds of formats, deal with screen recording, can convert files, and so on. It goes way beyond the simple qualifications a media player has to meet to be included by default, which in fact is not a good thing. Less is more when it comes to default applications. More can confuse the average user.


Ubuntu software for writing ISO image to SD card?

Hallo  Akman6 please check this :https://www.ridgerun.com/developer/wiki/index.php/How_to_boot_a_board_from_a_SD_card

i guess this will help you.


Try:

rsysinfo [ host | -v ]displays  a summary of the kernel statistics of a  particular
       host.
       The output shows how long the system has been up,  load  averages,  cpu
       usage  in  jiffies, pages from and to the disk, the number of interupts
       recieved, and the number of context switches.
       The load average numbers give the number  of  jobs  in  the  run  queue
       averaged  over  1,  5 and 15 minutes, all other fields are appropriatly
       labelled.

See also: CLICK!


Does the Wacom Bamboo Pen (only pen) Tablet work with 11.04?

The Wacom Fun will work, it's a part of the same set of tablets that were added to the supported driver in the wacom kernel module in the 2.6.38 kernel. Also available as a dkms package from my wacom ppa for those still on 10.04 or 10.10.

If you can find the usb ids for any wacom device you want to ask about, please do add them to your question as they make finding the answer easier.


Taking screenshot of higher resolution than actual display resolution

Step 1

Try changing the resolution in Settings first. Go into Settings, and, depending on what version you're on, work your way into Displays. For 18.04, this is under Devices/Displays. Change screen resolution to  the resolution you want, for example 1920×1080. Take a screenshot with that new resolution, and then change it back when you're done.

Step 2

If the resolution you need is not available, use this command to calculate the CVT mode lines for the resolution you want:

cvt 1920 1080

This example is for 1920×1080. It should output something like this:

1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

Copy all of the text after Modeline (here, it is "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync) and remember to include the quotation marks in the beginning. To add the new mode so you can use it, run this command:

sudo xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

Use your modeline output in place of mine. Then, to add that new mode to your display so you can use it, you will need to know what the name of your monitor. To do that, run this:

xrandr

This will output a few lines. On the second line, you should see something like this:

(monitor_name) connected primary ...

That monitor name is your monitor's device name. To add the new resolution you added to your monitor, run this command:

sudo xrandr --addmode (monitor_name) "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

Again, substitute in the monitor name you get from the previous step and the stuff after that from the cvt command. You have added the new resolution. Now, go back and try step 1.


Ubuntu 16.04 LTS in not working for me. I want to go back

In your launcher click on System Settings, then pick the Power icon. A screen like this appears:

If it says to suspend when inactive for 5 minutes when plugged in click the down arrow and change the value to Never.

Dell tech support may say you need a new motherboard when you really don't. The person on the phone doesn't actually have to do the work. That said when my Dell laptop was new in 2012 many users got new motherboards and touchpads but in the end it was a BIOS upgrade that made it purr properly when I bought it used in 2014. Good deal for me getting a $2K laptop for $400. Not so good for the seller I guess.


Run:

apt show apt-mirror

Output on my system:

qwerty@qwerty-Inspiron-3520:~$ apt show apt-mirror
Package: apt-mirror
Version: 0.5.3-1
Priority: optional
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Brandon Holtsclaw <me@brandonholtsclaw.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 65.5 kB
Depends: adduser, wget, perl:any
Homepage: http://apt-mirror.github.com/
Download-Size: 14.1 kB
APT-Sources: http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 Packages
Description: APT sources mirroring tool
 A small and efficient tool that lets you mirror a part of or
 the whole Debian GNU/Linux distribution or any other apt sources.
 .
 Main features:
  * It uses a config similar to apts <sources.list>
  * It's fully pool comply
  * It supports multithreaded downloading
  * It supports multiple architectures at the same time
  * It can automatically remove unneeded files
  * It works well on overloaded channel to internet
  * It never produces an inconsistent mirror including while mirroring
  * It works on all POSIX compliant systems with perl and wget


I now have a different notebook which easily runs C&C using Wine. The other notebook is not used anymore.


How to I install a 64-bit OS on my Ubuntu 64-bit with vm?

Just choose the standard Windows 7 entry. If your host system is 64 bit, VirtualBox will always expose that to the guest, no matter what your settings are (see the VirtualBox manual, Chapter 3. Configuring virtual machines).


For restoring: you could try to:

make the (new) partitions on your pendrive (swap and ext3/ext4) using fdisk /dev/sda for example
mount the new created partition (mkdir /mnt/tmp1 && mount /dev/sda1 /mnt/tmp1/)
Mount the data-partition from your .iso/.img (mkdir /mnt/tmp2/ && kpartx -a imagefile.img && mount /dev/mapper/loop0p1 /mnt/ -o loop,ro )
copy the data from mounted image to the new data-partition (cp /mnt/tmp2 /mnt/tmp1 -r )
Unmount the image (kpartx -d imagefile.img)
Install grub to the MBR of the usbstick  (grub-install /dev/sda) (see: https://www.gnu.org/software/grub/manual/html_node/Installing-GRUB-using-grub_002dinstall.html)

These are just example commands. Make them fit to your needs!

For backing up, you could try to just backup the data-partition (/dev/sda1 for example), it will make it easier to extract the data to anywhere, and not just a complete suitable USBstick


I've set up a Gentoo. The laptop accepts GRUB1, but GRUB2 makes the problems. I am suspecting UEFI trouble.


If your script is executable, then you don't need to have your crontab running /bin/sh file.sh.

Also, file.sh probably isn't in the directory crontab runs on. You'll prefer using /path/to/file.sh

Redirecting your crontab output, you'll want to catch stderr as well. Having caught both stdout & stderr, I seem to recall crontab no longer complains about its ability to relay output.

30 * * * * /path/to/file.sh >> /home/john/log.log 2>&1


How to show hidden menu items in the menu bar?

In Unity it is called Global-menu.Application menu shows on the Unity panel instead of on the application window itself.If you want to disable it,please follow this answer.This should solve your problem


You copied the same command... twice. This is what you should have run:

sudo apt-get install ipython ipython-notebook python-pip

at the end of your command you added sudo apt-get install again. This produced the errors of the packages:

python-pip + sudo = python-pipsudo


What's the default kernel version that comes with Ubuntu 16.04.6

There are two different kernels that could be seen as 'default' for Ubuntu 16.04 LTS (with or without HWE enabled).

For prior releases upgraded & 16.04 & 16.04.1 installs - no HWE (4.4)

If a system was installed with Ubuntu 16.04 LTS or Ubuntu 16.04.1 LTS install media, or it was an older system upgraded to 16.04 (ie. Ubuntu 15.10 or Ubuntu 14.04 LTS release-upgraded to 16.04) then HWE is disabled by default and kernel is 4.4.  This of course can be changed by enabling HWE (default is off for upgrades or <16.04.2 media installs)

For later installs with Ubuntu 16.04.2 LTS or later media - HWE & 4.15

If the Ubuntu 16.04.2 LTS or later media was used for installation, then 4.15 is the default kernel.

For more information on HWE or hardware enablement stack, see https://wiki.ubuntu.com/Kernel/LTSEnablementStack

If your Ubuntu 16.04.6 system was installed with 16.04.6 media then HWE is enabled and you'll be using 4.15.  If however a 16.04.1 or older install media was used; and system fully-upgraded so it reports 16.04.6 you'll only have the 4.4 kernel.  The kernel used by a 16.04.6 system thus depends on install media used, OR if HWE was enabled post-install.


Ubuntu 13.10 with Cinnamon Desktop Environment

This is the default behavior. To show the shutdown menu for example, change the setting for the respective button:

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


Running SCP via Perl system() call when running as a service

Answer: setup key-less login for scp and ssh under local root account, to the remote user account being logged into.

Got it!

when I was testing it, I was logged in as my user ID, but when it was running as a service, it was running as root.

I changed the open commands that open STDOUT and STDERR to /dev/null and wrote them to a file.  When I did this, I got the output form -v from scp.  What was happening was, scp was running ssh, but was not passing my identity file -i command, so it was getting access denied, because the effective user id was root, and root had no key on the remote machine for my user account on that machine for ssh to use.

I went through the steps for setting up password-less login, but locally as root, to my remote normal user account.

So, my remote login (non-root) had both keys for my local normal user account and the local root account, after that, it started working.

The process is now working perfectly using scp as a server service.  scp not passing the -i option to ssh is what caused this mess.

Hopefully this helps anyone trying to use scp form cron or other server service type script.


How to list extensions of X server in ubuntu 16.04?

You can use the -queryExtensions parameter of xdpyinfo:
SYNOPSIS
       xdpyinfo  [-display  displayname]  [-queryExtensions]  [-ext extension-
       name] [-version]

DESCRIPTION
       Xdpyinfo is a utility for displaying information about an X server.  It
       is  used to examine the capabilities of a server, the predefined values
       for various parameters used in communicating between  clients  and  the
       server,  and the different types of screens and visuals that are avail‐
       able.

       By default, numeric information (opcode, base event, base error)  about
       protocol extensions is not displayed.  This information can be obtained
       with the -queryExtensions option.  Use of this option on  servers  that
       dynamically  load  extensions will likely cause all possible extensions
       to be loaded, which can be slow  and  can  consume  significant  server
       resources.

Ex.:
$ xdpyinfo -display :0 -queryExtensions | awk '/^number of extensions:/,/^default screen number/'
number of extensions:    29
    BIG-REQUESTS  (opcode: 133)
    Composite  (opcode: 142)
    DAMAGE  (opcode: 143, base event: 91, base error: 151)
    DOUBLE-BUFFER  (opcode: 145, base error: 152)
    DPMS  (opcode: 147)
    DRI2  (opcode: 154, base event: 102)
    DRI3  (opcode: 149)
    GLX  (opcode: 155, base event: 104, base error: 169)
    Generic Event Extension  (opcode: 128)
    MIT-SCREEN-SAVER  (opcode: 144, base event: 92)
    MIT-SHM  (opcode: 130, base event: 65, base error: 128)
    Present  (opcode: 148)
    RANDR  (opcode: 140, base event: 89, base error: 147)
    RECORD  (opcode: 146, base error: 153)
    RENDER  (opcode: 139, base error: 142)
    SECURITY  (opcode: 137, base event: 86, base error: 138)
    SGI-GLX  (opcode: 155, base event: 104, base error: 169)
    SHAPE  (opcode: 129, base event: 64)
    SYNC  (opcode: 134, base event: 83, base error: 134)
    X-Resource  (opcode: 150)
    XC-MISC  (opcode: 136)
    XFIXES  (opcode: 138, base event: 87, base error: 140)
    XFree86-DGA  (opcode: 153, base event: 95, base error: 164)
    XFree86-VidModeExtension  (opcode: 152, base error: 157)
    XINERAMA  (opcode: 141)
    XInputExtension  (opcode: 131, base event: 66, base error: 129)
    XKEYBOARD  (opcode: 135, base event: 85, base error: 137)
    XTEST  (opcode: 132)
    XVideo  (opcode: 151, base event: 93, base error: 154)
default screen number:    0


Yes, works with 18.04 - with some restrictions. I turned off the GPU in the BIOS.
Out of the box this graphics card will only be supported with Kernel 4.18 - likely to be early September.

You can also try the RC releases see:
Graphics drivers for Intel NUC Hades Canyon NUC8i7HVK (AMD Radeon RX Vega GH)


Answer:
1. Create new Ubuntu VM with a spare, second disk
2. Load into Ubuntu, go to disks and click Restore Image on the second disk
3. Once disk has restored, shutdown and boot into Live CD
4. Run Ubuntu, install boot-repair
5. Run boot-repair on second disk, choosing this location for GRUB to be placed - fix any errors that appear (these are prompts and copy+paste)
6. Shutdown machine, boot into BIOS, select second disk as boot priority #1
7. It should boot into the said disk without issues.
8. The disk is now bootable, and in vmdk format (I used VMware), so a new VM can be created using the existing disk.


How Do I Link to /usr/lib or /opt From /usr/bin?

After this forum.
This is an application bug.

It works fine if I symlink directly to
.../FreeFileSync/Bin/FreeFileSync_x86_64

sudo ln -s /opt/FreeFileSync/Bin/FreeFileSync_x86_64 /usr/bin/FreeFileSync

Workarounds:
How-To install freefilesync on Kubuntu 18.04


Looping wc through multiple folders counting the words for each text file

You could make use of find command to execute wc recursively:

find -type f -name "*.txt" -exec wc -w {} \;

Alternatively, via recursive glob in bash:

shopt -s globstar
wc -w **/*.txt


I want to make a portable version of Linux Ubuntu

Full Install vs Persistent install

Consider doing a Full install to USB, It does not suffer from the irritating 20.04 disk check problem when booting.

A Full install USB and a Persistent install USB both save data and installed programs after reboot.

Comparison between Persistent and Full install USB

Advantages of a persistent install:

1) You can use the persistent pendrive to install Ubuntu to another computer.

2) A persistent install takes up less space on the pendrive.

3) You can reset the pendrive by overwriting the old casper-rw file with a new one.

4) The install to pendrive takes less time.

Advantages of a Full install:

1) You can update and upgrade.

2) If you have problems or wish to modify, the solution is the same as with an internal install, (You can ask for help in these forums).

3) No ugly startup / install screen.

4) Better security, you can use full encryption

5) You can use proprietary drivers.

6) Hibernation works.

7) A persistent install is limited to a 4GB casper-rw and a 4GB home-rw persistence file, to get more persistence requires persistence partitions. Once casper-rw is full, the drive will not boot.

8) More efficient usage of disk space. Does not require reserved space for persistence.

9) Faster boot, no automatic disk checking or Try Ubuntu/Install Ubuntu screen.

10) You can run VBox and use virtual machines.

Note that once booted, both methods run at about the same speed.

Full Install Method

One method for creating a Full install USB: How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step


pip3 present for Python 3.8 altough removed and purged

I tried to remove pip3

  .... how do I get rid of pip3?

When pip3 cannot be removed with apt it's usually because it was installed manually, or with pip3. I.e. only packages installed with apt ( or dpkg ) can be removed with apt.

Suggest : $ pip3 uninstall pip (or $ sudo pip3 uninstall pip)


In the last year, several mail providers (most notably GMail) have started to put all Emails received without TLS into the spam folder. Try adding the following lines to your postfix configuration:

smtp_tls_security_level = may
smtp_tls_loglevel = 1

After doing systemctl reload postfix follow the instructions at
https://www.port25.com/authentication-checker/
to validate your setup.


Why does tar complaint that it cannot find the file while extracting the archive?

Most likely the dir in the terminal (identified by pwd) does not contain the archive that you're trying to unpack. You need to cd /path_to_archive_dir/, and then execute the command there (tar -xzf xampp-linux-1.8.3-2-installer.run.tar.gz -C /opt).


USB tries to install onto itself (dual-boot with Win10)

For detection of NVME drive on your Dell laptop, please choose SATA Operation from "RAID" to "AHCI" in the BIOS settings. For more information, you can check following link Unable to detect PCIe M.2 NVMe SSD - Dell XPS 13 (2016)


sudo sanitizes the environment before running any command. In doing so, if the value of the directive secure_path is set, it will be used as the PATH for the sudo commands, not the current PATH.

In my system:

% sudo grep -E 'secure_path' /etc/sudoers
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

So i have:

% echo $PATH
/home/foobar/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

% sudo bash -c 'echo $PATH'
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

What you can do to keep your current path or add /usr/.../anaconda3/bin to sudo's PATH:

Pass PATH in the environment of the which command:

sudo PATH="$PATH" which pip3

Any desired PATH can be set too.
Keep the current environment while running sudo by:

sudo -E which pip3

Disable the secure_path value by putting a # in front or remove the line to keep the current PATH:

# Defaults        secure_path="....."

Instead, you can also modify the secure_path to just add /usr/.../anaconda3/bin to it, at the beginning.
Add PATH to the env_keep directive to keep the PATH in the sudo provided environment:

Defaults        env_keep += "PATH"


You can re-label file systems with Gnome Disks:

If you really want to use the command line, the command depends on the affected file system type. For ext2/3/4 it's

sudo e2label <DEVICE> <NEW_LABEL>

In a similar fashion there are fatlabel, exfatlabel, ntfslabel, btrfs filesystem label, swaplabel for other file system types with the same command syntax.


How do I get Graphics drivers / bluetooth / card reader working on an Acer Aspire V3-571G?

Try this to correct the brightness adjustment problem:

Open a terminal (Ctrl + Alt + T).
Then type sudo nano /etc/default/grub. It will ask for your password. Type it in.
Around the 11th line, there will be something like: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash". Change it to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
Save the file by Ctrl+O followed by Ctrl+X. Then run sudo update-grub in the terminal.
Reboot and see if backlight adjustment works. If not, undo the changes you did above, by invoking the text editor as in steps 1 and 2.

Hope it helps.

Works for Acer Aspire v3-571,Acer Aspire v3 571g,Hewlett Packard Bell EasyNote TS,Acer Aspire 4755G,Acer Aspire 5750-6866


How can I get rid of the motd message "*** /dev/sdb1 will be checked for errors at next reboot ***"?

It does look like it might be a swap problem.  Can you manually fsck the drives from single-user mode (e.g., by booting into recovery mode)?

You can do a sudo mv /var/run/motd /var/run/motd.old to force a clear of the current /etc/motd file.

Also, can you add output of your from cat /etc/fstab ?

For swap operations, see these answers:

delete old swap partition

How to delete a second swap partition safely?

A nice graphical swap repair guide using gparted is here.


You can achieve various window placements by holding Ctrl-Alt and pressing a numpad number which corresponds to the place you want it. For example, Ctrl-Alt-Numpad4 will tile your window to the left side of the screen, Ctrl-Alt-Numpad6 to the right side, and so on.

Ubuntu 12.04 is planned to include a simple Super-LeftArrow / Super-RightArrow binding to achieve the same effect. However, if you can't wait or want to configure this behavior yourself, see the "Can I define keyboard shortcuts using the Super key?" question.


Installing and configuring Snort, Barnyard2 on ubuntu 13.10 in AWS EC2 VPC

I hope you upgraded to 14.04
I am new too
I only have a few guides, to share

http://sathisharthars.wordpress.com/2014/05/03/configuring-snort-with-barnyard-snortreport-acid-in-ubuntu-14-04/
http://www.rivy.org/technologies/snort/


you have added ppa for node.js and currently that is not available on that link . thats why is it giving 404 Not Found error. you can see here. there is no vivid repository.

solution :

remove that ppa file from /etc/apt/sources.list.d/ or if there is no file related  chris-lea/node.js then open file /etc/apt/sources.list and search entry related chris-lea/node.js and delete that line .
then do update

sudo apt-get update


How can I query mplayer about the currently playing song?

Something like this crazy script should work:

lsof -c mplayer | fgrep ".mp3" | awk -F"/" '{ print $NF; }' | cut -d'.' -f1

Basically it works this way:

lsof part looks for all open files that are opened because of mplayer
fgrep grabs the .mp3 assuming it is an mp3. I used fgrep because I need the dot symbol to also be taken into consideration.
awk comes in and basically delimits everything based on the slashes from where the files are located and then the $NF takes the last occurrence of this.
Since you wanted the file without the mp3 part I put a basic cut there for it, but this could also be done with the awk.

So now you have a way of grabbing the songs from a mplayer.

Note that the mplayer needs to be running for this to work since lsof checks open files.


Connect via DHCP via LAN cable between a Windows and Linux device

This only works if your Windows PC acts as a DHCP Server (which means you would need to install a DHCP service on the PC). The 169.254... IPs are APIPA adresses, and while they might work between two Windows machines, they probably won't with Linux.

I would suggest one of the following options:

1) Assign static IP adresses (would be the easiest).

2) Install a DHCP server on one of the two machines (e.g. dhcpd on Linux). Be aware though that without proper configuration that PC will probably have problems once you connect it to, say, your DHCP-enabled home router (so you might have to turn the server back off in that case).

3) Enable IPv6 on both machines. IPv6 has a proper way of auto-assigning IP adresses, which actually work ;)

Tobi


Here's some documentation from QtCreator about how to do this: http://qt-project.org/wiki/How_to_create_a_library_with_Qt_and_use_it_in_an_application


Instead of a reboot try this command:

sudo /etc/init.d/lightdm restart

If this doesnt work restart the module :

lsmod | grep amd               <- search for the module name
sudo modprobe -r *module-name  <- unload the module
sudo modprobe *module-name     <- load the module


I had php7-fpm installed, and in my /etc/init.d directory there was a file called php7-fpm it seems like removing that fixed the issue.

After removing I was able to install php5-fpm without getting that error.


Bejeweled is available as an app for Google Chrome (which also runs on Chromium), as well as being available as completely platform-independent HTML5 content:

http://bejeweled.popcap.com/html5/0.9.12.9490/html5/Bejeweled.html


Howto add recent into Nautilus Ubuntu 12.04.3?

You can try to upgrade several important packages (gvfs, glib, etc.) from the webupd8team/gvfs-libmtp ppa, to mount the "recent:///" URI in Nautilus 3.4.

NOTE: Due to you are going to upgrade important packages of your system, I strongly recommend to do this in a Virtual Machine or in a Test Machine to see is everything is OK.

In this example I'm running Ubuntu 12.04 with Nautilus 3.4.2.

Add PPA & upgrade packages.

1) Open a Terminal window and type the following in order to add the ppa and upgrade the packages.

sudo add-apt-repository ppa:webupd8team/gvfs-libmtp
sudo apt-get update && sudo apt-get upgrade
sudo apt-get dist-upgrade

2) Reboot your system.

3) Test if you can mount the recent uri.

Open nautilus, then Ctrl+L, then type recent:/// , then Enter to see if you can mount the recent files location.

Then to add as a Bookmark... in the recent uri mounted just press Ctrl+D.

NOTE:Now if you want to add recent not in bookmarks... just in the side panel under computer, above the Home directory like Nautilus 3.6... You should edit the nautilus 3.4 source code.

Nautilus 3.6:

Add Recent Files to Nautilus Panel.

1) Make sure you have enable the Source code repository

Open the Ubuntu Software Center
In the Menu Bar choose Edit -> Software Sources. Click to enable "Source code repository".
Just in case I use the "Main Server" to Download.

Open a Terminal window and type:

sudo apt-get update

2) In the Terminal window type the following to install the necessary packages.

sudo apt-get install build-essential quilt

3) Install build dependencies.

sudo apt-get build-dep nautilus

4) Create a folder to download the source code.

mkdir ~/Downloads/src
cd ~/Downloads/src

5) Download the source code & Export variables.

apt-get source nautilus
export QUILT_PATCHES=debian/patches
export EDITOR=gedit

6) Create the patch and Edit the source code.

cd nautilus-3.4.2/
quilt new 99_my_custom_recent.patch
quilt edit src/nautilus-places-sidebar.c

After line 694 add:

/* Recent Files */
mount_uri = "recent:///";
icon = g_themed_icon_new ("document-open-recent");
add_place (sidebar, PLACES_BUILT_IN,
       SECTION_COMPUTER,
       _("Recent"), icon, mount_uri,
       NULL, NULL, NULL, 0,
       _("Recent files"));
g_object_unref (icon);

BEFORE:

AFTER:

Save the changes and close gedit.

NOTE: If you are not using English Language.. feel free to translate and write the string "Recent" and the tooltip string "Recent files" in your Language.

7) Build the deb packages.

quilt refresh
fakeroot dpkg-buildpackage

8) Install the deb packages.

cd ..
sudo dpkg -i *deb

9) Finally you can logout and Login to see the changes.

RESULT:

Hope this helps.


Using Ubuntu via USB. Will all downloads/saves be saved to USB?

With live USB creators that use Syslinux bootloaders, like UNetbootin and Universal USB Installer, the FAT32 filesystem imposes a limit of 4GB on the maximum size of the space used for persistent storage. If you have allocated space on the USB for persistent storage, then any package that you install from the Ubuntu Software Center while running the Ubuntu live USB will be saved persistently on the same Ubuntu live USB device, and settings and stored files will also be persistent. The persistence feature is not supported in Ubuntu 16.04-19.04, but persistent storage is supported again in 19.10 and later.

You can also use the same persistent storage space for storing files downloaded from the internet or locally created files. Because you're a web developer, you are going to have to exercise self-discipline in order to not waste the limited amount of available persistent storage space on the USB drive.  Since the persistent storage space is limited, you will very quickly fill up the available disk space if you install too many applications or you update the software using the Software Updater.

I believe that "having to stay marketable" as a web developer is going to force you into to having a full installation of Ubuntu on a normal hard drive or in a virtual machine in the long run because of the available disk space issue.


Couldnt find a way to open blender software

Goto the download page of blender and select whether you want the 32bit or 64bit versions. Download it - let's assume to your Desktop. It will be a tar.bz2 package.

Right click on it and select 'Extract here'. You can also open it first in the archive manager and extract from there. You will get these files:

To run blender, double click on the blender file - highlighted above.

Another way would be to open up the terminal and run it directly:

~/Desktop/blender-2.70a-linux-glibc211-i686/blender


Try systemctl reboot --firmware-setup

Documentation: https://www.freedesktop.org/software/systemd/man/systemctl.html#--firmware-setup


Permission error trying to instaling flutter

I think the easiest way to solve this problem is to start over.

First, delete your current flutter directory:

rm -r /home/dinushi/flutter

If you get a permission denied error, please post a comment to let me know.

Next, run the following commands to download and extract flutter to your user's home directory:

wget 'https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.12.13+hotfix.5-stable.tar.xz'
tar xvf flutter*xz

Now, run your flutter commands:

flutter precache

Also, you can run the following command to tell you if you are missing any dependencies:

flutter doctor


how to associate a file type "sh3d" with an application Sweet Home 3D?

When you go to the "open with" dialog, there should be an option to "use a custom command". In there, enter the name of the command for starting the application (i.e. "sweethome3d").


I cannot boot Ubuntu 14.04 because HDD is too full, I can open the terminal, but cannot delete folders

Test this:

Create a bootable Ubuntu DVD/USB stick.

Boot from it and select Try Ubuntu without installing.

Once you get to the Ubuntu desktop, open a terminal.Press Ctrl+Alt+T

Run it:

sudo -i
fdisk -l

Fdisk will tell you which is your /, suppose it is /dev/sda1, continue run:

umount /dev/sda1
fsck -y /dev/sda1
mount /dev/sda1 /mnt
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
OLDCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
LINUXPKG="linux-(image|headers|ubuntu-modules|restricted-modules)"
METALINUXPKG="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL)
apt-get clean
apt-get purge $OLDCONF
apt-get purge $OLDKERNELS
rm -rf /home/*/.local/share/Trash/*/** &> /dev/null
rm -rf /root/.local/share/Trash/*/** &> /dev/null
apt-get update
apt-get dist-upgrade
apt-get install --reinstall deborphan
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
apt-get autoremove
apt-get clean
reboot

Source


Ubuntu keeps crashing on my Dell Inspiron-15 laptop

There are a number of bug reports of the Inspiron 15 not resuming after suspend.

Here's one:

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


Convert mp3 file to wav? using the command line?

Using ffmpeg - installed by default

ffmpeg -i input.mp3 output.wav

Alternative - mpg123

sudo apt-get install mpg123

Then to convert mp3 to wav (using -w option)

mpg123 -w output.wav input.mp3


I went to http://www.geogebra.org/cms/en/download and selected the Web Start. Firefox asked me how I wanted to run the file and I selected Ice Tea Java (that's OpenJDK 6 in the software center).

After that it downloaded some stuff in a window and then loaded. And it put an icon on my desktop. I'm good to go.

In short: Install Java and use the web start.

How do I install Java?


How to troubleshoot "failed to load session" errors?

What worked for me was to remove the references to unity-2d-launcher entirely from my /usr/share/gnome-session/sessions/xmonad.session (which I had configured for 11.10 the way Mark Hansen suggested):

[GNOME Session]
Name=Xmonad Unity
RequiredComponents=gnome-settings-daemon;
RequiredProviders=windowmanager;panel;
DefaultProvider-windowmanager=xmonad
DefaultProvider-panel=unity-2d-panel

I always use the shellPrompt instead of the unity launcher anyway, so I don't miss the launcher at all.


Unable to install software--Getting error code 1

First clean the programs which is causing the issue using the below command,

sudo apt-get clean

sudo apt-get -f install

sudo apt-get update

After this try to install the software.


Which graphics driver should I install in Ubuntu 14.04.5 LTS?

Can You Try Below like this

Please Find a Application

After Select That application

After Select Tab Drivers --> there u can find required Drivers


installing CUDA on Ubuntu 12.10 GeForce GT 630

Installing the CUDA toolkit:

Downloading the CUDA toolkit:

First download the CUDA toolkit for Ubuntu 11.10 from here. Also there is a CUDA toolkit available from repos so maybe this will work but I haven't test it yet:

sudo apt-get install nvidia-cuda-toolkit

After you have downloaded the *.run file place it where you can find it easily, for example on the desktop.

Prerequisites:

Before installing the CUDA toolkit, first install freeglut3 as it is needed by CUDA Samples:

sudo apt-get install freeglut3 freeglut3-dev

Then it is recommended that you make a sim link to this version of freeglut just in case, but you might be OK if you don't have any other versions of freeglut:

First remove the existing sim link:

sudo rm /usr/lib/libglut.so

Then add your own sim link:

sudo ln -s /usr/lib/x86_64-linux-gnu/libglut.so.3 /usr/lib/libglut.so

Now it is necessary to remove existing gcc and g++ sim links because they already exist by default:

Remove the existing sim links:

sudo rm /usr/bin/cpp
sudo rm /usr/bin/gcc
sudo rm /usr/bin/g++

Then install gcc-4.6 and g++-4.6 (you have the option to install gcc 4.4 as well but in my opinion 4.6 is better):

sudo apt-get install gcc-4.6 g++-4.6

Then make a sim link to these compilers so that CUDA use this compiler as it's primary compiler:

sudo ln -s /usr/bin/cpp-4.6 /usr/bin/cpp
sudo ln -s /usr/bin/gcc-4.6 /usr/bin/gcc
sudo ln -s /usr/bin/g++-4.6 /usr/bin/g++

Installing the CUDA toolkit:

Press Ctrl + Alt + F1, this will take you to the first virtual terminal. Enter your user and password, and navigate to the folder which you've located the file, for example in case you have placed it on Desktop use:

cd ~/Desktop/

Then add execution permissions to the *.run file:

sudo chmod +x cudatoolkit*.run

Replace cudatoolkit*.run with the actual name of the downloaded file, in your case cuda_5.0.35_linux_64_ubuntu11.10-1.run .

Then stop the lightdm service:

sudo service lightdm stop

and finally run the CUDA toolkit:

sudo ./cudatoolkit*.run

again replace cudatoolkit*.run with the actual name. Then follow the onscreen instructions.

Note:

In case something goes wrong, even with gcc-4.4 you can remove it using:

sudo apt-get remove gcc-4.x g++-4.x

Replace x with your version.

Finally you can revert it back to the way it was by reverting the sim links to original:

sudo rm /usr/bin/cpp
sudo rm /usr/bin/gcc
sudo rm /usr/bin/g++
sudo ln -s /usr/bin/cpp-4.7 /usr/bin/cpp
sudo ln -s /usr/bin/gcc-4.7 /usr/bin/gcc
sudo ln -s /usr/bin/g++-4.7 /usr/bin/g++


How to add custom action to open folder as root to Thunar?

It appears that this is indeed possible. Following are specific instructions to add such an action, taken from the Xfce site.

Opening a root Thunar
Name: Open a root Thunar here
Command: gksu thunar %f
File pattern: *
Appears if selection contains: Directories


Tracking data sent to remote host over time?

That greatly depends on how you transfer it. If you have some sort of a VPN, then vnstat can track traffic per interface. These are for example monthly statistics from a VPN I'm using:

# vnstat -m -i tun0

 tun0  /  monthly

       month        rx      |     tx      |    total    |   avg. rate
    ------------------------+-------------+-------------+---------------
      Sep '12     26.36 GiB |  894.47 MiB |   27.23 GiB |   88.12 kbit/s
      Oct '12     49.80 GiB |    1.90 GiB |   51.70 GiB |  161.92 kbit/s
      Nov '12     25.93 GiB |    1.20 GiB |   27.12 GiB |   87.78 kbit/s
      Dec '12     27.64 GiB |    1.24 GiB |   28.88 GiB |   90.46 kbit/s
      Jan '13     17.11 GiB |  745.23 MiB |   17.83 GiB |  125.83 kbit/s
    ------------------------+-------------+-------------+---------------
    estimated     38.54 GiB |    1.64 GiB |   40.17 GiB |
    ------------------------+-------------+-------------+---------------

Of course, this is per network interface, not per host. vnstat can be configured to keep a persistent database (flat files).

Another way would be to set up a forward rule in iptables and read iptables traffic statistics (iptables -nv).

But a proper solution would be to use dedicated software with traffic accounting. DrFTPD has a quota plugin.


ARC Welder app showing blank page on Ubuntu 14.04.1

Delete the app, logout of your account, then reinstall ARC Welder. This is what worked for me.


How to make the workspace toggle indicator disappear in Ubuntu 18.04?

You may use a GNOME shell extension called Disable Workspace Switcher Popup. This extension

  Disables the overlay displayed when switching between workspaces.

Check out this extension at GitHub.

Another similar extension is No Workspace Switcher Popup. Note that this one has not been updated for a long time, but it still works with recent GNOME shell versions (3.26/3.28/3.30).


Why can't I change permissions for share

"It is plugged into the usb on my TVpc"

The access permissions are set by whatever is "sharing" out your disk filesystem on that machine.

You cannot change permissions on your remote disk filesystem from another computer unless the TVPc gives you permission to do so.

Please be security-wise and do not just make the permissions on your disk world writeable (or perhaps even world readable if there is sensitive material on the disk) to anybody who can access the local network.

If the PcTV is sharing using CIFS/SMB protocol, you could apply settings in the smb.conf file to require authentication with a password to some generic account eg "nobody"   On your other PC you can easily setup autofs to automagically mount the exported CIFS share with the user/password combination in a secure root only readable file.

The same is also possible with NFS exports and autofs mouting of them.

The threat now is not just via the local ethernet/wireless network but also now via signals received by the TV itself.

It has been discovered that it is possible via the broadcast Hibb TV protocol (this is a service transmitted over the air and via satellite) to get access to TVs and to perhaps even open devices on the local network.

http://www.itnews.com.au/News/345632,hbbtv-holes-make-tellys-hackable.aspx


Command tab completion of arguments from folder

You can use the following bash function, add it in you .bashrc

Note the directory path for PROJECTS_DIR variable

# bash completion for sublime projects in ~/projects
_subl()
{
    local cur=${COMP_WORDS[COMP_CWORD]}
    PROJECTS_DIR="/home/mreq/projects/"
    LOOK_FOR="*.sublime-project"
    cd ${PROJECTS_DIR}
    PROJECTS=$(ls ${LOOK_FOR})
    COMPREPLY=( $(compgen -W "${PROJECTS}" -- $cur) )
}
complete -F _subl subl

What it does:

when you type subl TAB TAB TAB it lists all projects at the projects directory
when you type subl ANY_LETTER TAB it auto completes the project name if the ANY_LETTER_TAB matches with project's first character.

For example if you have inside ~/projects the following: test.sublime-project and foo.sublime-project and type subl t TAB in terminal you will get subl test.sublime-project

UPDATE the script bellow does not change the PWD i am leaving both for future reference.

# bash completion for sublime projects in ~/projects
_subl()
{
    local cur=${COMP_WORDS[COMP_CWORD]}
    PROJECTS_DIR="/home/mreq/projects/"
    LOOK_FOR=".sublime-project"
    # cd ${PROJECTS_DIR}
    PROJECTS=$(ls ${PROJECTS_DIR} | grep "^${cur}.*${LOOK_FOR}")
    COMPREPLY=${PROJECTS_DIR}${PROJECTS}
}
complete -F _subl subl

The second script looks for a typed character after subl and replaces it with the matched filename's full path. For example if there is a test.sublime-project in ~/projects by typing subl t will be replaced by subl /home/USERNAME/projects/test.sublime-project


Ubuntu 14.04 Headphone and PC speakers are working together

I remember having the exact same problem on my netbook when I was on the train.

I as organising some party music, and was jumping through the music with my headphones in. Then someone asks me to turn down my music, and I look rather bemused at them, not realising that I was sharing my music with the rest of the train!

The only solution I found was to use the advanced mixer whereby I could adjust the volume of the headphones and external speakers independantly.

In the end I used the hotkey on my netbook to switch between headphones or speakers, rather than using it as a mute function.

I've updated my system since, clean install,  and haven't had the same problem, but I woildnt be surprised if it would have been possible to get the change to be automatic using dmesg alerts somehow.

David

Edit :

The 'advanced mixer' is an option in the sound / volume system that comes as standard in ubunut - I've never had to download anything special. See this ask question.
Is there a volume mixer?

Dmesg : this is part of the system log in Linux system. When an event occurs a message is often sent to dmesg and also any appropriate other log in the system. See this page on the official help.Ubuntu pages.
https://help.ubuntu.com/community/LinuxLogFiles.

Hope that helps for you.


Problem : Installation ubuntu 12.04 as a virtual machine

In the virtual box tool bar click devices, then cd/dvd, and click remove disk if you still have it attached.  You'll want to change the display settings as well.  While the VM is not running go to the virtual box manager (the window that opens when you first launch virtual box).  Highlight your vm in the list and click settings.  In the new window click display from the options on the left.  Move the video memory up (I recommend at least 128mb) and check the Enable 3d acceleration box.


How to change into directory owned by root if I have sudo?

It is not possible, because sudo runs a single command as root; your shell is still owned by your user.

What you can do is to open a new shell as root, by running sudo -i or sudo -s. From man sudo:

 -i, --login
               Run the shell specified by the target user's password data-
               base entry as a login shell.

  [...]

 -s, --shell
              Run the shell specified by the SHELL environment variable if
              it is set or the shell specified by the invoking user's pass-
              word database entry.  If a command is specified, it is passed
              to the shell for execution via the shell's -c option.  If no
              command is specified, an interactive shell is executed.

Either of these will give you a new shell, with root privileges, where you can freely change directory and run new commands as root.


You might want to reinstall dpkg by doing the following:

sudo -i
mkdir /tmp/dpkg

cd /tmp/dpkg

Mind that you might want to look whether the download links are still up-too-date

If you are running a 32 bit version of ubuntu

wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.17.5ubuntu5.2_i386.deb

For 64 bit

wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.17.5ubuntu5.7_amd64.deb

then

ar x dpkg*.deb data.tar.gz

tar xfvz data.tar.gz ./usr/bin/dpkg

Now copy the binary to /usr/bin with

sudo cp ./usr/bin/dpkg /usr/bin

And finally run

sudo apt-get update
sudo apt-get install --reinstall dpkg


I can login using su in other accounts, but not using login screen

Problem solved! I didn't think it was as just simple as it! I changed my password from Settings app (User settings), and now I can log in to my account. However, I guess because I moved some files and directories (including .profile, .config and .cache) somewhere as a backup (e.g., .profile.back), my desktop screen returned to its default state.


nginx service is not starting (error = (code=exited, status=150))

I encountered similar error and I ran the command in the service file:
/usr/bin/dotnet /path/to/dotnetcore.dll

The result was:
The specified framework 'Microsoft.AspNetCore.App', version '2.2.6' was not found.

Probably you are missing the correct framework.


Package 'vncviewer ' has no installation candidate

All this means is that there is no package that exists in your sources list that matches that name exactly. The best approach (IMHO) to take when faced by an issue like this is to begin by checking Ubuntu Package Search using the keyword of what you were trying to find. In this case "vncviewer" is actually embedded in the valid package name. Even if it wasn't you can still search the package contents for specific filenames which can also be a successful way of locating which package contains a command/program you are attempting to locate. Either of which should get you where you are attempting to go.

In your specific case, you have a couple of easy options. Both of which require enabling the Universe Repository first.

Once that is complete, you can either install the gtk version with sudo apt install gvncviewer or the X version with sudo apt install xtightvncviewer

The GTK version has fewer dependencies and a smaller package size. There's a decent (if somewhat dated) Community Help wiki on VNC Clients.


After Permission & Ownership Changes system starts giving me errors

Files inside /bin/ need to be 755 except for symlinks those needs to be 777 and all are owned by root:root.
Files inside /etc/  need to be 644 and owned by root:root except for (if you have any of these that is):

-rw-r----- 1 root     daemon      144 2007-02-20 13:41 at.deny
drwxr-xr-x 2 root     root       4096 2007-11-14 11:01 libpaper.d
-rw-r----- 1 root     fuse        216 2008-02-26 18:25 fuse.conf
drwxr-xr-x 2 root     root       4096 2008-03-26 18:23 lsb-base
drwxr-xr-x 2 root     root       4096 2008-04-01 14:45 jvm.d

(there might be other files for you). Again: symlinks those needs to be 777. directories need to to be 755.

With this you should be able to manually reset them from a live dvd. If you have a 2nd similar operating system it is also possible to copy the permissons from that system. This answer from jlovi can be used to create a file with the permission in them. And executed on the broken system to restore the permissions.

If this is not possible you can also re-install without formatting. That will keep your documents safe but will re-install the Ubuntu system files.


Copy all files from one folder to another

Try using a wildcard to grab everything in the folder.

!cp -r /content/COVID-19\ Radiography\ Database/COVID-19/* /data

The original command is interpreted as copy this folder (COVID-19) to folder /data. The wildcard will say to take all of the files in that folder and copy them to /data.


Further information on the Ubuntu Phone SDK

I think the Qt documentation answers a lot of questions.

Data: http://qt-project.org/doc/qt-5.0/qtdoc/topics-data-storage.html
Internal Communication: well, communication is difficult and different depending who talks to whom and how much do they know about each other. But many parts are answered in http://doc-snapshot.qt-project.org/5.0/qtdoc/topics-network-connectivity.html
Sensors: though they say Qt 5, I think they also include some Qt Mobility http://doc.qt.digia.com/qtmobility/sensors-api.html
Environment: vague question and scattered answers
Threading: no problem? http://doc-snapshot.qt-project.org/5.0/qtcore/thread-basics.html
Testing: It's gonna be awesome? Don't know. I believe so?

For HTML5 apps there are also many drafted APIs concerning these aspects.


Is it possible to run currently installed Ubuntu from Windows?

You can use coLinux  and run your Ubuntu kernel with colinux:

I installed Ubuntu as normal on a separate partition and configured the computer to dualboot between Ubuntu/XP.
I installed coLinux with the Debian with backports image that is available on the coLinux website.
Configured coLinux so it could mount the Ubuntu partition, the trick here is to figure out the correct partition number. The partition number in coLinux seems to be lower that the partition number used when booting the computer with Ubuntu. In my case I had to setup:

<block_device index="1" path="\Device\Harddisk0\Partition5" enabled="true" alias="hda7"/>

Boot coLinux with the Debian with backports image and after boot mount the ubuntu partition in my case /dev/hda7
To make it possible to boot ubuntu inside coLinux you need to turn of some services autostarted at boot, most of them har hardware related in some way and is not supported inside coLinux. You still want to run these services when not running ubuntu inside colinux. I did this by first creating a /etc/inid.d/colinux script according to http://wiki.colinux.org/cgi-bin/DualBootSystem
This script should of course be created in the /etc/init.d directory on the ubuntu partition and not on the "debian with backports" image.
When this script has been created you also need to edit the default.colinux.xml file so it contains a COLINUX=1 boot-parameter, in my case:

<bootparams>root=/dev/hda8 COLINUX=1</bootparams>

This script now makes it possible to turn of some autostarted services when starting inside coLinux but still run these services when dualbooting the computer with ubuntu.
You also has to make sure to run this script at boot time by inserting links in the /etc/rcS.d directory.
The next step is to turn of services by inserting if-statements inside the service scripts in /etc/init.d (on the ubuntu partition).

if [ -f /var/local/colinux ] ; then
exit 0
fi

I had to turn off the following services when booting inside coLinux to make it boot, coLinux crashed during boot when any of these services were running:

/etc/init.d/gdm
/etc/init.d/powernowd
/etc/init.d/hotkey-setup
/etc/init.d/pcmcia
/etc/init.d/vbesave

Create colinux customized versons of some other files, the colinux script in init.d mentioned above makes it possible to have a colinux-version and a non-colinux version of some different files.
In my case I have special versions of the following files:
/etc/fstab (coLinux mounts the ntfs partitions using smbfs instead of ntfs read-only mounting)
/etc/network/interfaces (I didn't get colinux to work using DHCP so it has hardcoded IP numbers instead)
/etc/gdm/gdm.conf (I am not really sure this is used since gdm can't be started at boot, but I have a special version for coLinux with all [servers] disabled. It may be used when using vnc but I am not sure if it is needed)
It is important to remember to edit correct file when setting up these files this way because the normal files will be overwritten with *-colinux or *-non-colinux versions at each boot. It might be possible to setup symbolic links instead of overwriting the files but I have not tested this.
Finally you will have to setup coLinux so it boots using the Ubuntu partition instead of the "debian with backports" image, this is done by setting a boot partition in the default.colinux.xml file, in my case it pointed to /dev/hda8
<bootparams>root=/dev/hda8 COLINUX=1< /bootparams>
It should now be possible to either start Ubuntu by selecting it in the dualboot(grub) menu when booting the computer or by starting XP and startup coLinux. Observe that when running inside coLinux the Ubuntu kernel is actually not used instead the coLinux kernel is used. This is important to think about for example if you need to recompiling kernels and kernel modules.

Finally, don't do the same mistake as I did. As described in this thread, I put XP/coLinux into sleep in hibernate mode and then dualbooted into Ubuntu. My Ubuntu file system got corrupt at next boot of XP and I decided to do a total reinstallation of Ubuntu.


How to add second music folder to Cantata player?

try add a folder link in main music folder ;)


Where did the Config Editor go in Thunderbird 52.1.1 on Ubuntu 17.04?

For me there is a "Config Editor..." button in the Preferences window if I select "Advanced" (on TB 52.1.1).

Edit:

The "Advanced" tab has four sub tabs:

General
Data Choices
Network & Disk Space
Certificates

In the screenshot above you have the "Certificates" sub tab open. Click "General", and you'll hopefully see the "Config Editor..." button.


Oracle JDK 11 Install and Setting to Default (NOT openJDK)

It looks like you are trying to install package from PPA, but forgot to add the PPA.

So you have to do the following:

Download the jdk-11.0.7_linux-x64_bin.tar.gz from https://www.oracle.com/java/technologies/javase-jdk11-downloads.html and copy it to cache location

sudo mkdir -p /var/cache/oracle-jdk11-installer-local
sudo cp jdk-11.0.7_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/

sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt-get install --reinstall oracle-java11-set-default-local

and then reboot.

To force Oracle Jave default use

sudo update-java-alternatives --set /usr/lib/jvm/java-11-oracle


Re-install.  Select "do something else".  Set your partitions as you desire.  Do not create a /boot partition since it won't be used.  Use the drop-down (ubuntu 16.04.3) to select your windows device as the location for the boot installation.  If you have an existing Windows installation, this problem will always occur.  You must put the boot on the partition of the Windows installation.  It's the only solution that works every time.

This is relevant for 14, 15, 16, 17 (all versions) and probably earlier releases.


You can find the official Ubuntu AMI's at https://cloud-images.ubuntu.com/locator/ec2/


Keyboard isn't working in GRUB after putting computer back together

Update: The GRUB bootloader will only work with the keyboard that is installed on the laptop, and not a USB keyboard (At least with EFI booting and without access to the traditional BIOS). After an Ubuntu reinstall I was able to determine the cause of the problem was not software. I fully removed the cable that was was linked to the logic board and found there to be creases and wrinkles along a single fold towards the forward end of the ribbon. I am suspecting that this is what caused the damage, and the only solution is to order a new ribbon.


On long sessions it becomes very tiresome as there is so much lag so the image is very jerky.

That has less to do with Ubuntu software and more with the quality of the connection and the hardware (your videocard(driver) will be crucial for a perfect experience).
I use Teamviewer and Remina on a daily basis and can not say it is jerky or laggy. The images are smooth and pleasant to read. Only thing that lags is when I copy/paste text from my session into the remote one. That takes 2, 3 seconds to pick up and the text is showing slower on the screen than I can type (including the many backspaces to correct typos).

Here is a list of 7 RD clients. It includes a rating system wheren NoMachine NX Client gets an 8 out of 10 and Remina a 10 out of 10. The score explicitly notes "speed" as a winning factor:

The winner, by some distance, was Remmina. Performance was exemplary, but that's not the full story. It had the best feedback and responsiveness of any client, and if you didn't know better, the remote desktop might have been a normal-speed local machine.
More than the performance though, this client had the best mix of features, and a sensible and well thought-out interface. Although it did split into multiple windows, the controls are always accessible.
As well as discovering clients on the network, it has a good way of storing connections, which would still work well if you had to deal with lots of desktops. Support for NX makes this an all-round winner.


unable to open ubuntu after installation

While booting the PC, press Esc or go to the BIOS/UEFI boot options and change the boot option to enable multi-booting.


How can I remove a specific known_hosts entry without deleting the file

Use this command to remove entries from known_hosts:

ssh-keygen -R hostname


Ubuntu 14.04 Asus G550JK SonicMaster External Subwoofer not working

I found the solution to your problem!

Install alsa-tools-gui (sudo apt-get install alsa-tools-gui)
Start hdajackretask (either enter that in the terminal or find it in Unity)
Select the codec: Realtek ALC668
Check Options -> Show unconnected pins
find Pin ID: 0x1a
check Override and select Internal speaker (LFE)
press Apply now

If it works fine, select Install boot override and reboot.

Have fun with your subwoofer!


Install Qt development packages qt5-default qtdeclarative5-dev through apt-get.


How can I find out which cards are supported by the nouveau driver?

Here is a list of Nvidia chipsets and supported features by the nouveau driver: http://nouveau.freedesktop.org/wiki/FeatureMatrix

You can see the specific devices by clicking on the chipset name.


Proposal to update from 11.04 to 11.10 is not shown

Press Alt + F2 and run the following command:

update-manager -c

You should see a window similar to this:

Click on the 'Upgrade' button and start the upgrading process.

The update-manager manpage states that the parameter is for:

-c, --check-dist-upgrades
              Check if a new distribution release is available


Routing internet protocol with either bird or quagga packages

Depends on what you want. I left the net eng game a few years ago, but used Quagga heavily for my labs and route-servers.

I loved how the config was very much akin to a Cisco config, and had nearly full blown v6 support which I was heavily into at the time. It also has (had?) ISIS support.

It boils down to what you need. I've heard bird is focused very heavily on BGP, but Quagga is definitely no slouch in that area either.

Here's a NANOG list thread from 2010 that I was a part of with some info on the Bird vs. Quagga dilemma, and another thread from the same group dated only a couple of years ago.


PlayOnLinux Unable to find 32bit opengl libraries Dual ATI Videocards

I'm going to suggest possible solutions that are merely trial and error. I am no expert in the matter, so take caution when implementing any of my suggestions.

First, I would like to suggest doing the following command:

sudo apt-get install ia32-libs

This should pull in some 32-bit libraries; perhaps the one you need? If this works, hooray! Don't touch anything else.

If that didn't work, completely remove the AMD proprietary drivers. I have no idea how you installed them, but this link is fairly sufficient: http://wiki.cchtml.com/index.php/Ubuntu_Precise_Installation_Guide#Removing_Catalyst.2Ffglrx

sudo sh /usr/share/ati/fglrx-uninstall.sh
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo rm -rf /etc/ati

If the fifth command doesn't work, replace with:

sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core

Then reinstall your proprietary driver. In 12.04, open the dash and open the "Additional Drivers" application (or alternatively, run "jockey-gtk" from the command line). Install the latest driver from that program (fglrx-updates). You will NOT get the latest and greatest driver, but you WILL get a driver that has been tested by Canonical and just works. You could get newer drivers (the link I've provided is able to show you one such method. You could also use an x-swat or xorg-edgers PPA, but they're beyond the scope of this question).

One tip, though: Don't mess with graphics drivers. A clean install has the best possible set-up for graphics in most of the cases. Drivers downloaded from websites are always shaky unless you know what you're doing. Drivers from PPAs are generally unstable. The only drivers you should really be using are the drivers Ubuntu ships with (i.e., the open source ones) or the ones downloadable through the "Additional Drivers" program.

I do not know whether the fault of PlayOnLinux lies in a bad driver set-up, but I personally think that's the culprit.

One last thing, since you're using an AMD APU:

sudo apt-get install amd64-microcode

This nifty little package solves a lot of problems with AMD APUs.


Since you're using a Trusty installation with a graphics stack back-ported from Xenial (as is the case in all fully updated Trusty LTS installation) you need to install the backported versions of the packages:

sudo apt install -f libgl1-mesa-{dri,glx}-lts-xenial


grep the man page of a command for hyphenated options

Type the below command on terminal:

man grep

Then type slash character, /, and write your search, like -i, followed by Enter. This will position the cursor at the first occurrence of the search string. Pressing n moves the cursor to the next occurrence. Pressing Shift+n moves the cursor to the previous occurrence.


The mkdir command not allowing to make changes in any of its files

You apparently created the files as root.

You can reassign ownership of foldername to your user ("username") by

sudo chown -R username:username foldername

First navigate to your desktop in the terminal of course.

An alternative is to grant you the rw rights which could be done by:

sudo chmod o+rw foldername
sudo chmod o+rw foldername/*.asm

Again, navigate to your desktop in the terminal prior to executing the commands.


You can simply double click the file via GUI after you have made it executable. This is the fastest and hassle free option you can choose, it lets the system handle the dependencies. If you insist on GUI solution use gdebi for installing which does the same. So in your situation, let sudo apt install -f remove it and then do the following.

# get the right package for your Ubuntu version 16.04 if this step fails
# because you not have 'wget' installed do 'sudo apt install wget' and retry
wget https://mega.nz/linux/MEGAsync/xUbuntu_16.04/amd64/megasync-xUbuntu_16.04_amd64.deb
#update the package archives
sudo apt update
#if the next step tells you that gdebi is already installed skip to the line after that
sudo apt install gdebi
# installing it with gdebi
sudo gdebi megasync-xUbuntu_16.04_amd64.deb

This should install all the necessary dependencies and the package itself.


In Ubuntu 16.04 and later composer can be installed from the default Ubuntu repositories. Open the terminal and type:

sudo apt install composer

This command will also install the required PHP and JSON dependency packages along with it. Composer dependency manager for PHP helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere.


MailServer that doesn't store any data outside database?

Search for mail server here:

http://en.wikipedia.org/wiki/Comparison_of_mail_servers

And since this is open source software why don't you just delete code responsible storage of log files outside of database.


Using usb-wifi adapter instead of built in wifi Ubuntu 18.04

You're seeing fewer networks because your built-in wifi is 802.11ac (Intel 7260), while your external wireless is 802.11n. Sparing the heavy details, 802.11ac is newer, faster and typically cards that support it are backwards compatible, but 802.11n is longer range, but struggles with speed in areas dense with networks like apartments and tightly packed neighborhoods.

It's entirely possible that the network you're trying to connect to only supports the 802.11ac standard, which would mean your external interface wouldn't be able to see it, and why you get disconnected after turning off only your internal wifi.

You'll either need to connect to an 802.11n network with the external or buy a chip that supports 802.11ac. They aren't much more expensive, but typically have an antenna that makes them bulkier to compensate for the reduced range.


You can ignore this warning.
It means that Qemu in your version of Ubuntu was compiled against SDL 1.2, which is deprecated (but still functional). In future versions Qemu must be compiled against SDL 2.0 instead.
This is something that the Ubuntu package maintainers must do (and in fact already have in 18.10, apparently by removing SDL support). There is no action that you need to take.
You can add -display gtk to get rid of the warning and also get better performance than SDL would have offered.


Problem with QtWebkit and QML in PyQt5 App Ubuntu for Devices (Ubuntu Touch)

QtWebKit is not the supported API in the SDK to use for phones. You need to use Oxide instead.

You can do this with:

import com.canonical.Oxide 1.0

It provides mostly the same API as QtWebKit does.