If you type about:cache in the address bar of Google Chrome and hit enter, you'll get a page of the items stored in cache. You can then use control+F to search for "favico". You can then copy and paste the relevant url into a new tab to load the favicon and then save it to your disk using control+S.

Edit:
If you want to recover "favicons" corresponding to bookmarks, first export the bookmarks using Wrench, Bookmarks, Bookmark Manager, Organize, and Export Bookmarks to HTML file.
Now, open the exported HTML file with a text editor like gedit or Geany.
Inspect the file for the bookmark of interest. Here is an example of an entry in my exported bookmarks.html file:

<A HREF="https://wiki.ubuntu.com/BasicSecurity" ADD_DATE="1320507266" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC50lEQVQ4jXWTW0wUdxTGfzM7u+wNRAHRRm3FLMHsavABKjE1W7pITWyivog2Xh681WuMaMD0qZpgoo1gYm2pNNib1of6oCYootioUQyBVjegVDCriJvIoruz7M7OMNMHsrCCPW//75zvO+f/nRyBCRF+2pUfa/lxW9zf6lV7OwoBzHmLOq1ub6vtsy0/ZMyb/yS1Xkh9DP55fF/o5+oaQVPTJgoDGJJZmbahpjprdeWJdwT8fr9lyu97rsT/bvG9jwgw+1QXgiipgZ35JttC3/U3a2u/cLvdCQkgq/nYd3IqWRTIKN2J1V2CIIrIty6ApoLVYgaIdTYvy57TUAPsF+QnbYWvKj9uRzdEAMtHJVhm5JFetgF78TIAEoFuQg2HUJ79gxZ6mmyi537bvkCSr575KkkW7dnk7KhFtDnpr/Yh2jIwFBlH8SqmH2zE0BL0HyhFHXgIuiHGbv+x3rTrg1CdHn0zFSBzZRXpvnUMnT9G3H8VfXgQQ4mg9LYx8jpE+qdrkLJmId8+B8BI+HW2qAX78qatO8rcCzJKTzuJQDeRG/WTTJTv/kq4qREtGBjD1Ff/zpMMk0k1YlEz+ggj0beIVgeGGpu8wsQw4aaf0OORca9NFlU0Zc4IDl08TF/FFOyeT5Cmz8bmWT5JIM3lZVbtX2Su3DuGmXLmBES7x9uaBN42nUR53M7UiipE50xMmR8iSBYcxRXkVjagDb5k6NyRcVGPt1WIPrpTNFC1pC0JOhd/iWB1YC8qx7l09egaex8S+uUblOd+tGBXyho7FkoOz5IHAyc2NkZbzm4CkO/9Npq32NCHw6OTXTpNzo46APqrSkYblW05k+4q9EsA8oqvt1tfdBcoj+8vHvvOtTq4Nu6BIJkxNFUHxLSCkruDpXt3Q/34MfX09KQ5Lx/5PjnJ/4WzfGt95PMDe1wulwITrhEg+uhOUeTm2c3xzmafFuzLA5By5/ZaC8uuO8s3n3bmF3em1v8H+XggfuBXdsAAAAAASUVORK5CYII=">BasicSecurity - Ubuntu Wiki

Note the ICON="data:image/png;base64. In other words, the favicon image is stored as a data URI. Copy the contents between the double quotes that follow ICON= and that precede >BasicSecurity (exclude the quotes) and paste it into the address bar of Chrome or Firefox and hit enter to view the favicon as an image. The image can be saved as usual by right-clicking and choosing save image as ...

You don't need a net connection for this or even the browser's cache.

I should mention that the answer was based on Kari's answer over here.

  Export your bookmarks to the desktop.
  Open the bookmarks file in notepad.
  The structure is self-explanatory once you study the file.
  The long streams of random characters are the image data for each favicon.


Ubuntu 18.04 Gnome hangs on VirtualBox with 3D acceleration enabled

VirtualBox devs basically threw their hands up over 3D Acceleration with regards to X11 guests, as stated in this post from over 2 years ago: https://www.virtualbox.org/wiki/X11Guest3D

There are dozens of tickets created on the VirtualBox site, and all of them have gone ignored. Plenty of forum posts as well. The same reply has been given every time, the latest one I can find posted 3 weeks ago by one of the devs (michael):

  I am afraid that there is currently no one on the team with enough
  free time to investigate this (and no sign that it will change in the
  foreseeable future). It should be something which interested users
  with skills in OpenGL programming in C should be able to track down
  and fix. Questions (technical ones) or patches welcome on the vbox-dev
  mailing list.

Going forward, the current consensus is that you have 4 options:

Disable 3D Acceleration (easiest)
Use any other desktop environment besides GNOME x11, such as GNOME Wayland or Unity
Use any of the other virtualization products
Contribute to the VirtualBox project yourself

Links:
https://forums.virtualbox.org/viewtopic.php?f=3&t=84198
https://www.virtualbox.org/ticket/15417
https://www.virtualbox.org/ticket/17014
https://www.virtualbox.org/ticket/17577
https://forums.virtualbox.org/viewforum.php?f=3


Ubuntu 18.04 stuck on empty purple screen on boot

Remove all the nvidia packages and reboot.
sudo apt update
sudo apt remove '^nvidia'
sudo apt autoremove
sudo reboot

After rebooting Ubuntu will be using the built-in Nouveau open source graphics driver instead of the proprietary Nvidia graphics drivers.
If this doesn't work, the other possibility is that the boot problem is caused by a kernel update that is answered in this answer.


How does ubuntu determine inactivity before suspending?

Good question. Let's find out!

Beginning by investigating the "Suspend when inactive for" option,

<property ...>Suspend when inactive for</property> ...
<object ... id="combobox_sleep_ac">

we can learn that it sets a GSettings key called sleep-inactive-ac-timeout:

widget = GTK_WIDGET (gtk_builder_get_object (..., "combobox_sleep_ac")); ...
g_object_set_data (G_OBJECT(widget), "_gsettings_key", "sleep-inactive-ac-timeout");

The documentation for this key provides a brief description:

  The amount of time in seconds the computer on AC power needs to be inactive before it goes to sleep. A value of 0 means never.

but still doesn't explain what "inactive" means.
Searching for sleep-inactive-ac-timeout leads us to GNOME Settings Daemon,

timeout_sleep = g_settings_get_int (..., "sleep-inactive-ac-timeout");

which periodically checks a property of GNOME Session called Presence.status:

result = g_dbus_proxy_get_cached_property (...->session_presence_proxy, "status");

If it finds that the status is idle, it puts the system to sleep:

idle_set_mode (..., GSD_POWER_IDLE_MODE_SLEEP);

So we need to learn how GNOME Session decides whether the system is "idle."
Following backwards from where GNOME Session updates the value of Presence.status,

gsm_presence_set_status (presence, GSM_PRESENCE_STATUS_IDLE, ...);

we can see that it uses the IDLETIME counter from Xorg:

if (... && strcmp (counters[i].name, "IDLETIME") == 0) {
    ...->counter = counters[i].counter;

The IDLETIME counter's behavior is summarized in a blog post by the author of GNOME Power Manager:

  gnome-power-manager uses a counter inside Xorg called IDLETIME. This counter is incremented only when the user does not move the mouse, or click some keys. When the user clicks something, the IDLECOUNTER is reset.

This tells us that Ubuntu determines inactivity by measuring the amount of time that has passed since the last keystroke or mouse motion. CPU usage and network activity do not factor in.


Not using 17.04, but under 16.04 there is a "Startup and Shutdown" item in "System Settings". There is an "Autostart" item under there that allows you to specify scripts or programs that you want to run at startup.


How to drag a folder to the launcher from Nautilus

I'm not sure if it's possible to drag and drop a folder onto your unity bar - but you can have the same functionality with a bit of editing.

Edit Nautilus .desktop file
1) In a terminal (Ctrl+ALT+T) type: gedit ~/.local/share/applications/nautilus-home.desktop
2) If this already exists, edit the following line to add your NEWFOLDER shortcut:

X-Ayatana-Desktop-Shortcuts=Videos;Documents;Music;Pictures;Downloads;Dropbox;NEWFOLDER

3) Below X-Ayatana-Desktop-Shortcuts add a new shortcut group:

X-Ayatana-Desktop-Shortcuts=Videos;Documents;Music;Pictures;Downloads;Dropbox;NEWFOLDER
[NEWFOLDER Shortcut Group]
Name=New Folder
Exec=nautilus ~/Documents/newfolder
TargetEnvironment=Unity

Where ~/Documents/newfolder is the location of the shortcut you want to add.
(N.B. if this file doesn't already exist you can use a copy of mine.)
4) Type into Run prompt (ALT+F2): unity --replace

Now when you right click your home folder/nautilus shortcut you will see an extra option for new folder.

Create a new .desktop file for your folder shortcut.
1) Run gedit again: gedit ~/.local/share/applications/folder-shortcut.desktop
2) Fill in the file with a sample as follows:

[Desktop Entry]
Exec=nautilus Documents/newfolder
Version=1.0
Name=New Folder
GenericName=ew Folder
X-GNOME-FullName=ew Folder
Comment=Open New Folder
Icon=/usr/share/pixmaps/gnome-computer.png
StartupNotify=true
Terminal=false
Type=Shortcut

2) Save the file and open the location in nautilus.
3) Drag it onto the unity bar.
4) Right click the new icon and click Keep in Launcher

N.B. you do not need to refresh unity for this one.


Steam (via Wine) crashes after login - any troubleshooting tips?

Not that this is a guarantee, but but you could try installing steam using Playonlinux . I have Steam installed using this tool and I don't have any problems with it so far (except for it being heavy on resources).

Since Playonlinux takes care of all the major setup for you, it should just work, and if it doesn't, then you know the problem lies in your hardware or your Ubuntu install.

UPDATE
Since you see you do not have 3D acceleration in your comments, I'm going to guess that you do not have proprietary drivers installed? If you don't this can lead to some of the problems you are facing. You would want to install these (if possible) for your graphics card, and then try and see if steam works again.


Titlebar of the windows is not showing up

You have not mentioned the version of ubuntu and whether are you in unity. I assume that you are in unity as its a frequent problem in unity and ubuntu version is equal to or more than 11.04

Press Alt + ctrl + F1
Login using your username and password
Reset compiz by executing gconftool-2 --recursive-unset /apps/compiz-1
Reset unity , by executing unity --reset
Optionally you can reset launcher icons by executing unity --reset-icons
Press Alt + ctrl + F7 to get back to login screen. However I recommend a restart by executing sudo reboot

Probably you have set something wrong in compiz. If so include more details for help


Take possession of the mounted share so that it's owned by you not root.

Change this:

  $ sudo mount -t cifs -o username=myusername,password=mypassword
  //192.168.###.###/kubuntu_home /mnt/kubuntu_home

To this:

  $ sudo mount -t cifs -o
  username=myusername,password=mypassword,uid=1000
  //192.168.###.###/kubuntu_home /mnt/kubuntu_home

By adding uid=1000 to the list of options.

Note: Your uid number on the Lubuntu machine may not be 1000. To verify that number run id in a terminal and change the mount command if necessary.


android command is deprecated as shown by the output.

Use

$ANDROID_HOME/tools/bin/sdkmanager <option>

 Usage:
 sdkmanager [--uninstall] [<common args>] [--package_file
 <file>] [<packages>...]
 sdkmanager --update [<common args>]
 sdkmanager --list [<common args>]
 sdkmanager --licenses [<common
 args>]

You can also set the path to sdkmanager command in your $PATH variable for direct use.


Why does the Software Centre ask me to install untrusted packages?

It turns out it was a network problem, which explains the 407 Proxy Authentication errors.

From System Settings I went to Network. I clicked on my proxy connection, selected Configure, and noticed the proxy was set to "Connect Automatically". I disabled the automatic proxy connection and was able to update and install software again without problems.

Thanks for all your help.


Recovery of deleted folders in home folder

OK, to restore deleted directories

edit ~/.config/user-dirs.dirs ,

gedit ~/.config/user-dirs.dirs

it should look like this:

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

If that fails, install and run Ubuntu Tweak

http://ubuntu-tweak.com/


vlc doesn't work after `sudo snap install vlc`

You can simply faulty VLC version by:
sudo snap remove vlc

and install deb-package with
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install vlc

and use it instead.


Icon size increased (too large) after update

Got the culprit, The newer version of nautilus is not good. Reverted back to the older version of nautilus and now its working perfectly fine.
Also in the newer version there is no option for Edit->preferences->Icon view defaults->Icons zoom level.

nautilus-data:amd64 (1:3.18.4.is.3.14.3-0ubuntu5, 1:3.18.5-0ubuntu1~xenial1)

nautilus:amd64 (1:3.18.4.is.3.14.3-0ubuntu5, 1:3.18.5-0ubuntu1~xenial1)


How to convert the iso file into rar or zip or tar?

You are mixing things up: an ISO is a data dump (often from a dvd/cd/bd). You mount ISO's as you would mount a hard disk. And when mounted you can "cd" into the directories and copy files from it.

If you are unsure about command line install software that can mount ISOs. Examples: furius, gmount-iso, acetoneiso, gisomount. All are available in Ubuntu Sofware Center and will show up if you search for "iso mount".

Regarding mounting ISO: How to mount an ISO file? There is a command line method in there too. If you mount it in your own /home/$USER/ folder there is no need for sudo. Example:

mount -o loop file.iso /home/$USER/Downloads/

will mount file.iso in your ~Downloads.


Any way to restore connect to windows share as a different user?

If you open up your /etc/samba/smb.conf file you should see at the bottom the share definition. Generically it looks something like this:

[share-name]
comment =
path = /media/[some-name]
read only = No
guest ok = yes

What you want to do is add a "force user" line to that share definition so that the remote user appears to be you:

[share-name]
comment =
path = /media/[some-name]
read only = No
force user = [your-user-name]
guest ok = yes

Then restart samba:

sudo service smbd restart

Official sources: http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#FORCEUSER


Will Nexus 7 with Ubuntu run Eclipse and FDT and compile out via OTG USB to another android device?

You would need to compile adb for arm, which is quite doable.

As for actually using eclipse, I'm not sure how practical that is it's very memory intensive.

However using something like ant, in connection with adb might be a better solution.


apt get is not working unmet dependencies

Apparently, cleaning the cached packages was a solution, and the following command does just that.

sudo apt-get clean


Am I being served a beta release of 13.10?

The problem here is that the message has not been updated already. The files are the official 13.10 release but since the message still shows the previous text (when it was Beta) it shows like that to any users that tries to update.

The same thing happened with 12.10 to 13.04 and 12.04 to 12.10. If you do wait about a day (up to a week) the message should change to "Welcome to the Ubuntu 'Saucy Salamander'".

Give it time while the developers work on this "high priority" bug ;). It confused me too until I updated.


When you ran:

 ls -al /etc/resolv.conf

Your result was:

wxrwxrwx 1 root root 29 Jan 13  2018 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

In your case, resolv.conf is not pointing to systemd as expected. Therefore, I suggest that you remove and recreate the link:

sudo rm -f /etc/resolv.conf
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

Reboot and show us:

ping -c3 8.8.8.8
ping -c3 www.ubuntu.com

NOTE: From my machine, your DNS nameservers,  209.18.47.61 and                        209.18.47.63 are not pingable and I wonder if the numbers are valid.


How can I boot back into Ubuntu after Windows 10 upgrade?

I actually found an odd solution in Windows.

Go to Settings -> Updates & Recovery, and look around until you find advanced boot options. Click restart now, and choose Ubuntu. That should work


Clock stops ticking when inactive, causing drift

Your CMOS battery seems to be dying.  Open the computer, and there's a little thing that looks like a large watch-battery on the motherboard.  Replace that.


Lenovo X1 Carbon 2015 3rd gen 20 BS - trackpoint, clickpad and wifi

I recently purchased an X1 Carbon 3rd generation.  I fought the issues you mention plus a few more.  I kept a text log of all of the fixes and post as follows -

TrackPad Buttons:

/etc/modprobe.d/touchpad.conf:

options psmouse proto=imps

update-initramfs -u

vertical and horizontal scrolling

http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint#Configuration_using_xinput

create /usr/share/xsessions/mouse.sh (sudo chmod +x mouse.sh) with the following content:

xinput set-prop "PS/2 Synaptics TouchPad" "Evdev Wheel Emulation" 1
xinput set-prop "PS/2 Synaptics TouchPad" "Evdev Wheel Emulation Button" 2
xinput set-prop "PS/2 Synaptics TouchPad" "Evdev Wheel Emulation Timeout" 200
xinput set-prop "PS/2 Synaptics TouchPad" "Evdev Wheel Emulation Axes" 6 7 4 5

Backlight Brightness

http://ppa.launchpad.net/indicator-brightness/ppa/ubuntu/pool/main/i/indicator-brightness/

/etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

update-grub
sudo gedit /etc/rc.local
echo 167 > /sys/class/backlight/intel_backlight/brightness

fingerprint reader

http://www.saltycrane.com/blog/2014/12/setting-lenovo-thinkpad-x1-carbon-2nd-gen-fingerprint-reader-ubuntu-1404/

$ sudo apt-get install libmagickcore-dev
$ sudo apt-get install libusb-1.0.0-dev libnss3-dev libglib2.0-dev
$ sudo apt-get install libxv-dev
$ sudo apt-get install libtool
$ sudo apt-get install fprintd
$ sudo apt-get install automake
$ cd ~/Downloads
$ unzip fprint_vfs5011-faa090818200ca3ea6bfac8bb510e5e01a246c34.zip
$ cd fprint_vfs5011-faa090818200ca3ea6bfac8bb510e5e01a246c34
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
$ sudo cp /lib/udev/rules.d/40-libfprint0.rules /etc/udev/rules.d/
$ sudo vi /etc/udev/rules.d/40-libfprint0.rules
# Validity VFS5011
SUBSYSTEM=="usb", ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0017", ATTRS{dev}=="*", ATTR{power/control}="auto", MODE="0664", GROUP="plugdev"
$ sudo apt-add-repository ppa:fingerprint/fingerprint-gui
$ sudo apt-get update
$ sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui
$ fingerprint-gui

wifi disable 11N

add the following line in /etc/modprobe.d/iwlwifi.conf:

options iwlwifi 11n_disable=1


Can't get classic gnome desktop set permanently?

Do you use Oneiric (Ubuntu 11.10) with autologin on lightdm? It seems similar to https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/834515 which just got fixed in a proposed update to Oneiric, if that's the issue the fix should reach stable updates in the next week.


edited rc-sysinit.conf system won't boot

Boot using a live CD / USB
Mount partition of the installed Ubuntu
Change back DEFAULT_RUNLEVEL=2 in rc-sysinit.conf
Reboot.

Now, it should get back as it was. To install the graphic driver (no need to do such thing):

Press Ctrl+Alt+F1 to switch to tty1 terminal
Stop X server

sudo stop lightdm

Install needed driver
Then reboot

sudo reboot


How to migrate passwords from Kwallet to the GNOME keyring?

According to http://www.keepassx.org/faq

What password database formats are compatible with KeePassX?
KeePassX currently uses the KeePass 1.x (Classic) password database format as the native format.
It can also import KeePassX 1.x XML exports, PwManager databases and KWallet XML databases.
KeePass 2.x database format is not supported.

Shouldn't the import option work seamlessly ?
(as i cannot replicate on my side,this is all the help i can give.)
Maybe try with a "Classic" version of the database to see if this one imports better than the newer one.
you could also look at the xml structure of the file  you want imported and make a shell script to extract the data from it or to process it into another format which can more easily imported (in a case where the import direct from the KWallet file isn't working..)
the source file of the import function (Import_KWalletXml.cpp) might give some clues of the steps to accomplish for a successful import..
http://www.koders.com/cpp/fid79C723FF3B0D62F83C9CD5F65CB87DE2D8F3D713.aspx


You should try installing the NVIDIA proprietary drivers.  If you can't download it via that computer, download it to a USB via another computer and then put it on your PC.

I've found that manual installs work best for installing nvidia drivers, so go to here and download the latest drivers.  By default, it'll most likely go into /Downloads, but if not, just know where it is.  Then, you'll want to press

  ctrl + alt +F1-F6 (each is a different login)

And then sign in to your account.  Then, you'll want to use

  sudo stop lightdm (or sudo service lightdm stop)

This shuts down the things that are using the GUI, so they can be updated.

Then run

chmod +x ~/* Folder that said driver is located in * / * Driver *

For example,

  chmod +x ~/Downloads/NVIDIA-Linux-x86_64-343.13.run

Make SURE that you have the entire name of the driver, otherwise this will not work!  Caps do matter!

What you just did was make the file executable.  Next, you'll want to run the following command, changed of course like the example above to fit your directories/driver versions.

  sudo sh ~/Downloads/NVIDIA-Linux-x86_64-343.13.run

For me, tabbing the rest of the NVIDIA-Linux-x86_64-343.13.run file does not work for me, but it is CRUCIAL THAT YOU DO THIS.  If nothing happens after you run the second command, check your caps and spelling to make sure they are right.  You have to go through the program using the keyboard to correctly install it.  For me it will tell me that something went wrong right on the bat, just keep going and see if it still works.  If it asks you to install 32 bit libraries, do so.  Some programs (like steam games) will not run unless you have these installed.

After all of the above has been done, one final command must be completed, or of course you could reboot.

  sudo start lightdm (or sudo service lightdm start)

Then, you'll do

  ctrl + alt+ F7-F9ish (F7 is usually default, some people have different F keys though)

This should have worked for most people, if not keep looking, there's always a fix.  If anyone knows something about getting virtual 7.1 audio to work, please message me somehow.  Thanks.  Hope I helped someone.

Edit:I've also heard x-swat repositories work better at times.  Not sure about that, but worth a try.

(Pro tip, whenever Nvidia related stuff goes wrong, watch this.)


dpkg: error: unknown option --add-architecture.

Did you try to install Skype this way?

Add repository via terminal

sudo sh -c 'echo "deb http://archive.canonical.com/ubuntu trusty partner" >> /etc/apt/sources.list.d/canonical_partner.list'

Tell your system to pull down the latest list of software from each archive it knows about via the terminal

sudo apt-get update

Install Skype via terminal

sudo apt-get install skype

Maybe this way of installation will help you.


What is the best way to observe energy usage of a program on Linux?

Have you seen powertop? powertop is a process monitor like htop, or top, but it gives you an estimate power consumption in watts for each process. You can use the csv mode with --csv=output.csv to collect data in csv format. Check it out here:

Powertop info and download site


As the title does not mention NVidia, (and for those who can run WebGL on Firefox but can't on Chrome) another option is to try enable Override rendering software list in

  chrome://flags

Hope it helps


You might compile from source code if the program you want is not available in the repositories; if the latest version isn't available; or if you wanted to modify or patch the source code for a particular purpose.

Most but not all programs are installed to run from /usr/bin; some from /usr/sbin; some even elsewhere. When you compile form source code, the last few lines after you execute the install script will indicate where it installed.

To remove a program installed from the repositories:

sudo apt-get remove some_program

To remove the program and configuration files:

sudo apt-get purge some_program

To remove a program installed from source code:

cd Desktop/lmms_XXX
sudo make uninstall

There may be variations and the INSTALL file usually included with source code explains it.

Since source code is written for many kernel versions and many different Linux distributions, it doesn't always go perfectly.

Unless you are certain there is something you need in the tar.gz, I assume 0.4.15, I strongly suggest the repo version:

sudo apt-get install lmms lmms-common

It installs 0.4.14.


After you see "Booting system without full network configuration" press CtrlAltF1. It should get you to the shell prompt. Use a shell text editor to change /etc/network/interfaces.

For example, with nano text editor it would be

sudo nano /etc/network/interfaces

Press CtrlO and CtrlX to save changes and exit nano after you've done with it. (Pressing CtrlX and then N discards changes) sudo reboot restarts the system.

The default contents of the /etc/network/interfaces file look something like this:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp


Open the NetworkManager file with your text editor:

sudo -H gedit /etc/NetworkManager/NetworkManager.conf

add lines

[device]
wifi.scan-rand-mac-address=0

Save and close file then reboot.


Ryzen 4000U Series failing to enter suspend/modern-standby correctly

Unfortunately this is an apparently known, but yet unfixed kernel bug in amdgpu. See here: https://gitlab.freedesktop.org/drm/amd/-/issues/1230
It isn't even fixed in 5.12.
You could try to patch and compile the kernel with the patches mentioned int the thread above. Good luck!
For those who do not want to compile their own kernel or are not capable to, I attached patched and compiled kernel here:
https://gitlab.freedesktop.org/drm/amd/-/issues/1230#note_902370


windows loader loads grub2 dual boot with windows 10

You may find solace in this link from Microsoft Answers. I take no credit for this answer:

I suggest you to boot the computer to WinRE from the elevated command prompt, and try running this command and check for the issue.

Use the Windows 10 DVD to start the computer in Windows Recovery (WinRE).
In WinRE, open a command prompt. To do this, follow these steps:

On the Install Windows screen, select the appropriate Language to install, Time and currency format, and Keyboard or input method options, and then click Next.
Click Repair your computer.
Click the 10 installation that you want to repair, and then click Next.
Click Command Prompt.
At the command prompt, type the following commands, and then press ENTER:

cd /d Partition:\Windows\System32

bcdedit /timeout 5

You may also change the timeout value to anything below 30.
Now you may restart your computer and check if you are able to boot to the desktop.

Refer:

Change the default operating system for startup (multiboot)


Can't connect to wireless network ubuntu 12.04

Do a search for "linux-backports-modules-wireless" in the Ubuntu Software Installer and make sure you select the correct version that matches your OS kernel version by typing "uname -r" on the terminal

f you are still experiencing wireless problems after installing the modules, follow the link below and install the drivers...the site holds instructions on how to do the installation

http://wireless.kernel.org/en/users/Download/stable/


How can I configure my server so that my domain points to it?

If your registrar has DNS, you just need to create an A Record in your DNS entries for your domain. This A record would point to your static IP address. Consult your registrar documentation on how to do this.

If it is not the case, you will have to setup a nameserver, or have to use a 3 a DNS service like dnsexit


Appearance, Online accounts disappeared in System Settings in Ubuntu 13.10

The solution for me was to install that specific package that was missing:

sudo apt-get install unity-control-center-signon gnome-control-center-unity


First change the wep encryption to just wpa2 (CCMP)(AES) not (TKIP) if you have that option it will work best.

If your router is capable of N speeds, it is better to use a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz.

Second set your wireless channel in the router to 1 or 11 then save the router configuration and reboot it.

Third go into network manager at top right corner of the screen and click on edit connections>wireless tab and set IPV6 to ignore.

Fourth turn power management off:

gksudo gedit /etc/pm/power.d/wireless

(this will create or edit a configuration file that will override the default power management behavior) and enter the following:

#!/bin/sh

/sbin/iwconfig wlan0 power off

above exit0, then save gedit, close and reboot.


Is there a way of limiting the Kernel's memory manager to use only 75% of memory?

The only way I can think of is to tell the Kernel 25% of the memory is bad and not to use it.

This Unix & Linux Q&A has excellent instructions. Here is a snippet:

If there's bad RAM at 802M and 807M, you can disable a 10M section of RAM starting at 800M like this:

memmap=10M$800M


How do I redirect command output to vim in bash?

You can use process substitution (this also works with applications that can't read from STDIN):

vim <(ls -la)

Or use vim's function to read from STDIN:

ls -la | vim -


How to make ubuntu one work with gnome 3?

From the Launchpad page for that PPA:

  This PPA is EXPERIMENTAL and MAY BREAK YOUR SYSTEM. There is no
  downgrade process.

I'd say you might be a little stuck. I'm not an expert by any stretch here, but I'm guessing the Ubuntu One client that comes with 11.04 is not fully compatible with whatever new version of Nautilus that comes with GNOME 3. I doubt that a new version of the client will be released for 11.04 that will include GNOME 3 compatibility, so I'd say your options at this point would be:

maybe try writing and applying your own fixes to the Ubuntu One client source to give it GNOME 3 compatibility, or
reinstall your OS to return everything to a previous working state.


It's because an update came out literally this morning (11/14/13) that Jetty has problems with.

apt-get install libcommons-fileupload-java:amd64=1.2.2-1

That'll downgrade it and that error should go away after you restart the Jetty service.


Bluetooth not working after upgrade from 12.04 to 14.04

You have not mentioned model number correctly after 15R-?.

Click on this link and select operating system and system type to download drivers Inspiron 15R 5521 , If your model is not this click here and select your model and do the same.


Why all my iphone contacts aren't synced with Ubuntu One Contacts?

We've been seeing problems with contact syncing on iphone and nokias for a while now, and have been chasing these cases individually. The problem is, with our current infrastructure, it's usually hard to reproduce and fix.
While we continue trying to resolve each case individually, we've started to look into more in-depth solutions that provide a nicer debugging environment.

More on this within the next few months.

In the mean time, I'd suggest you wipe out the contacts database (hop in irc on freenode, #ubuntuone and we'll help you do that), so you can start fresh.

I'm sorry about the troubles you're having, we've been investing a lot of time into fixing the core problems.


How do I fix a "E: impossible to read the sources list." error?

OP posted:

After asking the question, I tried the following procedure and it worked, so maybe it can be useful for others:
I had in the source.list file this error:

52 ## respective vendors as a service to Ubuntu users.
53 # deb http://archive.canonical.com/ubuntu precise partner
54 # deb-src http://archive.canonical.com/ubuntu precise partner

and

59 deb http://archive.canonical.com/precise partner
60 deb-src http://archive.canonical.com/precise partner

I changed them as follows:

52 ## respective vendors as a service to Ubuntu users.
53 deb http://archive.canonical.com/ubuntu precise partner
54 deb-src http://archive.canonical.com/ubuntu precise partner

...

59 # deb http://archive.canonical.com/precise partner
60 # deb-src http://archive.canonical.com/precise partner

And now everything works!


This is bug and its related to alsa-driver. Look at: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1553685

We have to wait till alsa team fix it.


Is Bumblebee-Project that lets you configure Nvidia Optimus completely safe to use?

Although it is unofficial, Nvidia knows of the Bumblebee project.

A quote from their PR response (I do not fully agree with it, but that is not relevant here):

  Recently, there have been some questions raised about our lack of support for our Optimus notebook technology. When we launched our Optimus notebook technology, it was with support for Windows 7 only. The open source community rallied to work around this with support from the Bumblebee Open Source Project http://bumblebee-project.org/. And as a result, we've recently made Installer and readme changes in our R295 drivers that were designed to make interaction with Bumblebee easier.

If Bumblebee was dangerous, there should be a lot complaints from users. However, this is not the case so you may assume that Bumblebee is safe.

Currently, Bumblebee consists of two parts:

allowing you to use the nvidia card using the optirun program
disabling the nvidia video card when the card is not in use

The first feature is as safe as the nvidia driver. Aside from an extra (software) layer, the process is equal to systems with a nvidia card as primary card.

The second feature uses a custom kernel module, bbswitch, which interacts with the ACPI subsystem. When using bbswitch in combination with Bumblebee, the card is disabled on boot and enabled on shutdown. As an author of the bbswitch module, I have not received any signals of hardware damage when using bbswitch in combination with Bumblebee.

When using bbswitch without Bumblebee, one must take care of enabling the card on shutdown for some machines. This can be done by sending the OFF command to the bbswitch module. If this is not done, some machines could make the nvidia card disappear on the next boot. On some machines, this can be undone by pulling the power off the machine. Others need a BIOS reset. Again, this only occurs when using bbswitch without Bumblebee or when using bbswitch only without special measures. A bugreport for this issue can be found on https://github.com/Bumblebee-Project/Bumblebee/issues/224

The same issues from laptops with a nvidia card as primary video card may apply. This means that laptops with a bad thermal design may overheat when putting the nvidia card under heavy load. This is not an issue limited to Bumblebee though.


You may download this library package:

apt-get download libexpat1-dev

Then unpack it:

ar x libexpat1-dev_version_.deb
tar xf data.tar.gz

Then find expat.h header files and copy them into /usr/include:

find . -name expat*.h -exec cp {} /usr/include/ \;

Then find libexpat.so and copy it into /usr/lib:

find . -name libexpat.so -exec cp {} /usr/lib/ \;

Then configure Apache

./configure


Ubuntu 12.04 lts cannot build a wireless connection

Please enable this in your router:

  disabling HT as WMM/QoS is not supported by the AP

Then copy and paste one line at a time:

echo "options rt2800pci nohwcrypt=1" | sudo tee /etc/modprobe.d/rt2800pci.conf
sudo modprobe -rfv rt2800pci
sudo modprobe -v rt2800pci


ubuntu 15.10, trendnet TEW-648UBM, internet drops

I suggest you remove the addition to /etc/network/interfaces as it is ineffective.

You can install a better driver by running in terminal

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192cu-dkms linux-firmware

and reboot.


How do I set group permissions on a shared folder?

Ok, here is what you do

Open terminal (ctrl+alt+t) and type

sudo chmod g+rw (folder path)

Where folder path is the full path of the folder. ex: home/user/folder.
This basically gives (+) the group (g) read and write (rw) permission to the folder. Now type

sudo chmod uo-rwx (folder path)

this removes (-) read, write, and excecute (rwx) permissions from the owner (u [stands for user]), and others (o).

Note: you will need to type in your password. this is normal.


If /etc/netplan is empty then netplan does not configure your network.
Your network is probably configured in old ifup/ifdown style.
That means you find the network configuration in /etc/network/interfaces.
In addition there is systemd-resolve with its DNS configuration file /etc/systemd/resolved.conf where you can put your DNS configuration in.
[Resolve]
DNS=8.8.4.4 8.8.8.8 2001:4860:4860::8844 2001:4860:4860::8888
#FallbackDNS=
Domains=example.com
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
#DNSStubListener=yes

You can check your DNS settings with
systemd-resolve --status

You can restart systemd-resolve with
systemctl restart systemd-resolved

Alternatively you can put your settings in /etc/resolvconf/resolv.conf.d/tail which will be added to /run/resolvconf/resolv.conf during boot.


Connection activation failed: (5) IP configuration could not be reserved

Install dnsmasq and then try it again:

sudo apt install dnsmasq


How does one fill and sign PDF documents on a Ubuntu?

Not with Adobe unless you get them to add support for it.
Alternative:

Install and open Xournal  (sudo apt install xournal)
Choosee "Annotate PDF" from the File menu and select the PDF to sign.
Click the "Image" button in the toolbar
Click on document
Select an image of your signature


Backgrounds & Emblems / Emblems tab disabled?

Seems like the feature has been removed by gnome3 folks...

http://mail.gnome.org/archives/nautilus-list/2010-July/msg00023.html

How do I tag files with custom emblems in Nautilus?

that's bad, I don't think people should remove features like thas from software, many people used it a lot...


Nexus 10 gets stuck "Google" boot screen

How to fix the boot loop on the Nexus 10:
https://www.youtube.com/watch?v=T1Se7Hr9Cww


What's the replacement for lightdm service in Lubuntu 20.04

It is sddm

  sddm is the default display manager that shows up when you first log
  in to Lubuntu or logout or choose to another session. There is no
  graphical application to do this currently.

Lubuntu Manual


Upgrade Nag - Xubuntu 13.04 (XFCE) continually asks about updating to 13.10

Launch Software & Updates from the Settings Manager, on the Updates tab, use the bottom drop down menu and select Never.


Ubuntu users login blocked, How to recover?

Some VPS providers allow 'console' access, which is the only way to recover from this kind of permissions mistake. Try contacting AWS to ask if they support this, or if they can roll your VPS instance back to a previous snapshot. I don't believe AWS supports either of these options so this may not be something you can recover from, and you'll need to start over with a new instance instead.

  Actually i want to know what happened after writing these codes, and how can i copy the ssl certificate into '/etc'. (from comments)

For future reference, a better way to copy those files to protected directories is to scp them to your (non-root) user's home from your local machine, then move them with sudo privileges on the server sudo mv ~/file /etc/destination.

AWS is great but it is not very forgiving if you are still learning, and you might be better off at a different provider that offers more recovery options.


Setting ServerTokens and ServerSignature in Apache

These configuration directives are now under:

  /etc/apache2/conf-available/security.conf

which is then symlinked by the a2enconf command to:

  /etc/apache2/conf-enabled/security.conf

Here are the associated Apache 2.4 docs:

ServerSignature
ServerTokens


It seems that you have some problems with /etc/default/grub.  So start up with your recovery mode an then select resume normal boot.  Go to the terminal, type sudo nautilus.
Go to /etc/default/grub and open it. Search for the line GRUB_CMDLINE_LINUX_DEFAULT, and put # in the first position of the line.  Then type or copy this line : GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=800x600-24, mtrr=3, scroll=ywrap"

Save it, close and come back to terminal.  Then in the terminal sudo update-grub.  And restart. If not working fine, you have to return to  /etc/default/grub and chage mode_option=800x600-24 to the values of you display.  Do not forget afterxard to do sudo update-grub.


BlenderCookie
The interface explained
Official Blender website
Blendernation

All found on the first page of a Google search...


Get linux 'screen' to recognize xterm mouse-click cols > 95

The legacy mouse protocol uses raw bytes for each coordinate (the coordinate plus 32). As such, it only supports coordinates up to 223 (223 + 32 = 255, the biggest value a byte can hold).

In certain situations, e.g. when a character set conversion happens, or when some component requires that the data passing through is valid UTF-8, bytes in the 128-255 range also become problematic. As such, clicks only work reliably up to column and row 95.

I'm not familiar with xterm.js and your whole environment to tell whether you can tweak it to support coordinates up to 223 (e.g. by changing character encoding, although switching away from UTF-8 would also be a stupid move).

The proper solution would be to add support of the SGR 1006 mouse mode extension to screen, see https://savannah.gnu.org/bugs/index.php?37206. This new protocol encodes the coordinates using ASCII digits, therefore removes the upper limit and gets rid of character encoding issues as well.

Until they address this, you might consider trying tmux. It's a more modern, more actively maintained alternative to screen and supports the said extension.


Installing Ubuntu in pen drive without disturbing windows xp

Install Unetbootin from the repositories

sudo apt-get install unetbootin

On windows you can download from below link:

http://unetbootin.sourceforge.net/

Start it, select an ISO file or a distribution to download, select a target drive (USB drive or Hard Disk), select persistence if you wish, then reboot once done. If your USB drive doesn't show up, reformat it as FAT32.


Severe graphics and application problems after update

I would do a fresh install. if possible try backing up everything you want to keep, unless you have dual boot with a shared partition. If you already tried a live-cd as an upgrade tool, my guess you'll have to do a fresh install.


Can't enable selinux on Ubuntu server 18.04

Just arrived here from a Google search.

Do NOT use SELinux with Ubuntu. It is not tested at all. After enabling SELinux, many package installations fail. In particular, anyone that runs "groupadd" to add a group specific to a service. See https://bugs.launchpad.net/ubuntu/+source/libselinux/+bug/1769301

SELinux is tested and enabled by default with CentOS and Redhat Enterprise Linux. Ubuntu offers AppArmor as alternative security mechanism. If you prefer SELinux, use a distribution that enables it by default, like Redhat or CentOS.


Forgotten Username and Password in Ubuntu 7

Don't worry. You will need to reset your password. First restart your PC, wait for the GRUB menu to appear(similar to this)

Now, from the list, select the Advanced option for Ubuntu and click Enter
There will be two options, select the option to go to recovery mode.

Now you will be present with different options of recovery mode. Now you have to  choose Root Drop into root shell prompt

You need to have write access to the root partition. By default, it has only read-only access using the command

mount -rw -o remount /

Now, list all the users that are present in the system

ls /home

Use the command

passwd username

where username is the user from the list whose password is to be reset. passwd is used to set a password for the user.

It will prompt for a new password. Enter the new password twice (there will be no visual feedback i.e: you won't see any characters on the screen)

Then exit the root shell prompt by typing exit

When you exit, you will be back to the recovery mode menu. Select resume for normal boot option.


How to disable release upgrade notification emails?

By default cron sends mail to the email address mentioned in the MAILTO environment variable on crontab, presumably you have set the email address, so any STDOUT/STDERR from any cron job will be sent to the email address.

The output is from /usr/lib/ubuntu-release-upgrader/release-upgrade-motd script (run by the weekly job /etc/cron.weekly/update-notifier-common) that checks for a new version, and dump the content of /var/lib/ubuntu-release-upgrader/release-upgrade-available file.

You have a few options:

Disable the job
Redirect STDOUT/STDERR from the script to /dev/null
Set MAILTO="" so that no mail will be sent. As /usr/sbin/anacron exists the script will be run by anacron, so setting this in /etc/anacrontab would do too.


acpi_call is not a regular program but a kernel module. Kernel modules must be compiled to a specific kernel version, else they are deemed incompatible and will not load.

DKMS (Dynamic Kernel Management System) will manage your custom kernel modules and recompile them within the current running kernel version and do so automatically whenever you download a new version. It will also update initrd which is part of the bootstrap loader process (nick-named boot). A unique initrd is in your /boot directory for each unique kernel version you have installed.

As CelticWarrior pointed out you can read detailed installation instructions for Ubuntu in: help.ubuntu.com/community/DKMS.

The project page itself is at: linux.dell.com/dkms/ and it contains some additional links you will find helpful.

I used DKMS for keeping EnhanceIO (A HDD to SSD caching program previously used for facebook servers) up to date. DKMS automatically compiled for various kernel versions and it works very well. Pay attention to error messages because parameters can change between kernel versions and new source code patches may be required from github.

For interested readers, the thought of compiling Kernel modules seems daunting at first but, once you get into it you'll feel comfortable.


Ubuntu Installation on dual-Harddisk computer

I guest you install root partition Ubuntu on HDD and boot in SSD. EFI Partition on HDD can't found root partition to start.
There are two option for you:
1 - Re-install Grub boot on HDD and you laptop boot windows longer normal. Ubuntu will boot faster, you dont wait 15 ~ 20 minutes
2 - You re-arrange partition on your SSD and make one partition 20GB to install Ubuntu. This way make your laptop boot fastly and you have a best performance for WWindows. You dont need to make a partition for swap more

I have a laptop with the same Storage. I created 4 partition on SSD 250GB: EFI, WWINDOWS, BACKUP (of Windows) and UBUNTU. Another SSD 500GB, I have DATA (NTFS) for Windows User Folder, HOME (Ext4) for Ubuntu HOme and MEDIA (NTFS) for storage my media files. It boot very well and fast


Can't access certain sites on Ubuntu 16.04 LTS

It looks like you can access only sites with IPV6.

This means that your guest system doesn't have IPV4 access to the internet.

Most likely you are not using a router and your ISP doesn't allow more than one computer to connect using IPV4.

It can be solved by changing network settings from Bridge to NAT in VirtualBox.


Will GRUB be upgraded if I upgrade my system to a newer release?

If your Ubuntu version is 11.10, it's unlikely you have GRUB "classic" installed, unless it is installed by another, separate operating system. Ubuntu started using GRUB2 in 9.10.

One point of confusion is that a GRUB installation with version number 1.98 or later is GRUB2. It's only GRUB1, or GRUB legacy, if the version is 1.97 or earlier.

Furthermore, in Ubuntu, the normal package providing GRUB2 for machines with BIOSes is called grub-pc. (Traditionally, BIOS is a major part of what's thought to make a computer a "PC," which may explain this naming convention.) The GRUB package for GRUB legacy is called grub.

There is a grub2 package but currently it is a dummy package with grub-pc and grub-common as dependencies.

I am composing this answer from an Ubuntu 11.10 system. My system definitely has GRUB2, but the grub-pc version is 1.99-12ubuntu5.1. That's perfectly normal.

If you upgrade your Ubuntu 11.10 system to a later version of Ubuntu, the version of GRUB it provides will also be upgraded. It will take on a version number that starts with 2. But it was GRUB2 before that, too.


How do I get around administrator priviliges are required for this task when installing real vnc?

You should never use normal sudo to start graphical applications as Root. You should use gksudo to run such programs.  So after you download the program to your hard drive in your case you would Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below.

sudo dpkg -i VNC-Viewer-5.0.0-Linux-x64.deb

Now to be able to run the application with administrator privileges after its installed you would type

gksudo vncviewer

To run VNC Viewer, and to run VNC Server with administrator privileges you would type

gksudo vncserver-x11

Source: MozillaZine (which cites RootSudo)


fb: conflicting fb hw usage inteldrmfb vs EFI VGA - removing generic driver

Whilst on the GRUB selection screen (where you select your operating
system, recovery mode, etc) use the arrow keys to navigate to the normal boot entry, bur rather than pressing enter, press the letter 'e'.
Delete the line gfxmode $linux_gfx_mode
Press F10 to boot

If this doesn't work, try again, but first disconnect all USB devices (other than keyboard!) and extra monitors if you have them.

If you can not reboot, once booted, run the following, so that hopefully you won't have to do the steps above everytime you boot.

sudo grub-install
sudo update-grub


Ethernet says it's connected but can't access the internet

Although more details about network status would have been better, but anyway you can try running the following command in terminal

sudo service network-manager restart

This command restarts the network manager service which generally solves the connection problem.


Samba4 AD DC for roaming profiles or openLDAP? which is better?

Since your setup seems to be using Linux only , I would suggest looking into FreeIPA

Instead of running a pure OpenLDAP solution or Using Active directory

FreeIPA contains a ldap backend, kerberos DNS and a administrative web-interface but all wrapped together in a more easily managed solution

Similarly to Active directory it supports:

Delegate permission handling of groups to users ( to lessen admin
burden)
Support for nested groups
Full multi master data replication support


Fresh Ubuntu 14.04.1 Install - No Additional Drivers Available?

I ended up downloading the newest drivers straight from NVIDIA from here and installing them manually. Obviously, this won't automatically update in the future (AFAIK).

The path I had to take was actually quite convoluted, involving adding the nomodeset flag to GRUB, then killing lightdm, and then running the installer. I followed some suggestions from here and was provided some help from @Mateo and @Seth in chat.


Re-enable TeamViewer autostart on Xubuntu 16.10

Yes, running systemctl enable will enable a service, in this case teamviewerd.service which will allow you to remote in using Team Viewer even when the application itself isn't running.


Unattended grub configuration after kernel upgrade

I was able to get around this by using export DEBIAN_FRONTEND=noninteractive, before running apt-get upgrade -y.


You seem to have changed to a very basic shell for that user (e.g. /bin/sh). Try changing to a more common shell, e.g. Bash, using

chsh -s /bin/bash username

On a regular Ubuntu installation, the shell prompt is decorated in the .bashrc file in your home directory. However, not all shells are sourcing/supporting that file/configuration.

For more details on this decoration in Bash, see the occurrences of PS1 in the ~/.bashrc file.


Is it possible to edit same juju environment on different machines?

I think you either have to (in addition to copy the information in the environment file), either use the same SSH key at home, or add multiple administrators keys, see juju and keys for multiple administrators (that probably only works for new deployments).


Do it using this command:

mysqldump -hlocalhost -uroot -p DBNAME > file$(date +"%d%m%Y").lst

Sample output:

file19072016.slt

Thanks to @terdon.
See edit history.


I decided to follow the advice of kanehekili and went in search of picom. I have solved two questions in one:
I learned how to clone git, before I had to install git

$ sudo apt install git
The address to clone comes from the clone button or download Zip (how silly I am). So:

$ sudo git clone https://github.com/yshui/picom.git

The download is saved in the personal folder, with the name picom

Then I installed the dependencies for Ubuntu:

$ sudo apt install libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-randr0-dev libxcb-composite0-dev libxcb-image0 -dev libxcb-present-dev libxcb-xinerama0-dev libxcb-glx0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre2-dev libevdev-dev uthash-dev libev-dev libx11-xcb -dev

I also had to install cmake and meson

$ sudo apt install cmake meson

Then following the instructions:

$ git submodule update --init --recursive
$ sudo meson --buildtype = release. build

The Meson build system
Version: 0.53.2
Source dir: / home / rau / picom
Build dir: / home / rau / picom / build
Build type: native build
Project name: picom
Project version: 8
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program git found: YES (/ usr / bin / git)
Has header "stdc-predef.h": YES
Compiler for C supports arguments -Wall: YES
meson.build:63: WARNING: Consider using the built-in warning_level option instead of using "-Wall".
Compiler for C supports arguments -Wcast-function-type: YES
Compiler for C supports arguments -Wignored-qualifiers: YES
Compiler for C supports arguments -Wmissing-parameter-type: YES
Compiler for C supports arguments -Wnonnull: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wno-type-limits -Wtype-limits: YES
Compiler for C supports arguments -Wold-style-declaration: YES
Compiler for C supports arguments -Woverride-init: YES
Compiler for C supports arguments -Wsign-compare: YES
Compiler for C supports arguments -Wtype-limits: YES
Compiler for C supports arguments -Wuninitialized: YES
Compiler for C supports arguments -Wshift-negative-value: YES
Compiler for C supports arguments -Wunused-but-set-parameter: YES
Compiler for C supports arguments -Wunused-parameter: YES
Compiler for C supports arguments -Wimplicit-fallthrough: YES
Compiler for C supports arguments -Wno-unknown-warning-option -Wunknown-warning-option: NO
Compiler for C supports arguments -Wno-missing-braces -Wmissing-braces: YES
Compiler for C supports arguments -Wconversion: YES
Compiler for C supports arguments -Wempty-body: YES

| Executing subproject test.h method meson
|
| Project name: test.h
| Project version: undefined
| C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0")
| C linker for the host machine: cc ld.bfd 2.34
| Build targets in project: 0
| Subproject test.h finished.

Found pkg-config: / usr / bin / pkg-config (0.29.1)
Found CMake: / usr / bin / cmake (3.16.3)
Run-time dependency libev found: NO (tried pkgconfig and cmake)
Library ev found: YES
Library m found: YES
Run-time dependency x11 found: YES 1.6.9
Run-time dependency x11-xcb found: YES 1.6.9
Run-time dependency xcb-renderutil found: YES 0.3.9
Run-time dependency xcb-image found: YES 0.4.0
Run-time dependency xext found: YES 1.3.4
Run-time dependency pixman-1 found: YES 0.38.4
Run-time dependency xcb-render found: YES 1.14
Run-time dependency xcb-damage found: YES 1.14
Run-time dependency xcb-randr found: YES 1.14
Run-time dependency xcb-sync found: YES 1.14
Run-time dependency xcb-composite found: YES 1.14
Run-time dependency xcb-shape found: YES 1.14
Run-time dependency xcb-xinerama found: YES 1.14
Run-time dependency xcb-xfixes found: YES 1.14
Run-time dependency xcb-present found: YES 1.14
Run-time dependency xcb-glx found: YES 1.14
Run-time dependency xcb found: YES 1.14
Has header "uthash.h": YES
Run-time dependency libconfig found: YES 1.5
Run-time dependency libpcre found: NO (tried pkgconfig and cmake)

src / meson.build: 47: 1: ERROR: Dependency "libpcre" not found, tried pkgconfig and cmake

A full log can be found at /home/rau/picom/build/meson-logs/meson-log.txt

I did not find the libpcre dependency in the repository. I found libpcre3 and Installed it, looked for it by synaptic.

$ sudo apt install libpcre3

Then:

$ sudo meson --buildtype = release. build
The Meson build system
Version: 0.53.2
Source dir: / home / rau / picom
Build dir: / home / rau / picom / build
Build type: native build
Project name: picom
Project version: 8
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program git found: YES (/ usr / bin / git)
Has header "stdc-predef.h": YES
Compiler for C supports arguments -Wall: YES
meson.build:63: WARNING: Consider using the built-in warning_level option instead of using "-Wall".
Compiler for C supports arguments -Wcast-function-type: YES
Compiler for C supports arguments -Wignored-qualifiers: YES
Compiler for C supports arguments -Wmissing-parameter-type: YES
Compiler for C supports arguments -Wnonnull: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wno-type-limits -Wtype-limits: YES
Compiler for C supports arguments -Wold-style-declaration: YES
Compiler for C supports arguments -Woverride-init: YES
Compiler for C supports arguments -Wsign-compare: YES
Compiler for C supports arguments -Wtype-limits: YES
Compiler for C supports arguments -Wuninitialized: YES
Compiler for C supports arguments -Wshift-negative-value: YES
Compiler for C supports arguments -Wunused-but-set-parameter: YES
Compiler for C supports arguments -Wunused-parameter: YES
Compiler for C supports arguments -Wimplicit-fallthrough: YES
Compiler for C supports arguments -Wno-unknown-warning-option -Wunknown-warning-option: NO
Compiler for C supports arguments -Wno-missing-braces -Wmissing-braces: YES
Compiler for C supports arguments -Wconversion: YES
Compiler for C supports arguments -Wempty-body: YES

| Executing subproject test.h method meson
|
| Project name: test.h
| Project version: undefined
| C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0")
| C linker for the host machine: cc ld.bfd 2.34
| Build targets in project: 0
| Subproject test.h finished.

Found pkg-config: / usr / bin / pkg-config (1.6.3)
Found CMake: / usr / bin / cmake (3.16.3)
Run-time dependency libev found: NO (tried pkgconfig and cmake)
Library ev found: YES
Library m found: YES
Run-time dependency x11 found: YES 1.6.9
Run-time dependency x11-xcb found: YES 1.6.9
Run-time dependency xcb-renderutil found: YES 0.3.9
Run-time dependency xcb-image found: YES 0.4.0
Run-time dependency xext found: YES 1.3.4
Run-time dependency pixman-1 found: YES 0.38.4
Run-time dependency xcb-render found: YES 1.14
Run-time dependency xcb-damage found: YES 1.14
Run-time dependency xcb-randr found: YES 1.14
Run-time dependency xcb-sync found: YES 1.14
Run-time dependency xcb-composite found: YES 1.14
Run-time dependency xcb-shape found: YES 1.14
Run-time dependency xcb-xinerama found: YES 1.14
Run-time dependency xcb-xfixes found: YES 1.14
Run-time dependency xcb-present found: YES 1.14
Run-time dependency xcb-glx found: YES 1.14
Run-time dependency xcb found: YES 1.14
Has header "uthash.h": YES
Run-time dependency libconfig found: YES 1.5
Run-time dependency libpcre found: YES 8.39
Run-time dependency gl found: YES 1.2
Run-time dependency dbus-1 found: YES 1.12.16
Program meson / install.sh found: YES (/ bin / sh /home/rau/picom/meson/install.sh)
Build targets in project: 1

picom 8

  Subprojects
    test.h: YES

Found ninja-1.10.0 at / usr / bin / ninja

I did not find the dependency libev in the repository or another similar one as in the case of libpcre but it seems that it was not very important because I ran the command again:
$ sudo meson --buildtype = release. build

And returned:

Directory already configured.

Just run your build command (e.g. ninja) and Meson will regenerate as necessary.
If ninja fails, run "ninja reconfigure" or "meson --reconfigure"
to force Meson to regenerate.

If build failures persist, run "meson setup --wipe" to rebuild from scratch
using the same options as passed when configuring the build.
To change option values, run "meson configure" instead.

Then I executed:

$ sudo ninja -C build

ninja: Entering directory `build '
[1/28] Compiling C object 'src / 25a6634 @@ picom @ exe / picom.c.o'.
../src/picom.c: In function ‘main’:
../src/picom.c:2419:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
 2419 | write (pfds [1], & tmp, sizeof tmp);
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6/28] Compiling C object 'src / 25a6634 @@ picom @ exe / utils.c.o'.
../src/utils.c: In function ‘report_allocation_failure’:
../src/utils.c:29:2: warning: ignoring return value of ‘writev’, declared with attribute warn_unused_result [-Wunused-result]
   29 | writev (STDERR_FILENO, v, ARR_SIZE (v));
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[11/28] Compiling C object 'src / 25a6634 @@ picom @ exe / log.c.o'.
../src/log.c: In function ‘file_logger_writev’:
../src/log.c:258:2: warning: ignoring return value of 'writev', declared with attribute warn_unused_result [-Wunused-result]
  258 | writev (fileno (f-> f), vec, vcnt);
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[28/28] Linking target src / picom.

And later:

$ sudo ninja -C build install

ninja: Entering directory `build '
[0/1] Installing files.
Installing src / picom to / usr / local / bin
Installing / home / rau / picom / bin / picom-trans to / usr / local / bin
Installing /home/rau/picom/compton.desktop to / usr / local / share / applications
Installing /home/rau/picom/picom.desktop to / usr / local / share / applications
Installing /home/rau/picom/media/icons/48x48/compton.png to / usr / local / share / icons / hicolor / 48x48 / apps
Installing /home/rau/picom/media/compton.svg to / usr / local / share / icons / hicolor / scalable / apps
Running custom install script '/ bin / sh /home/rau/picom/meson/install.sh'
Linking picom to / usr / local / bin / compton
Linking picom-trans to / usr / local / bin / compton-trans

Ready!!! accomplished!!!

Later I copied the existing picom.sample.conf file into the picom folder, renamed it to picom.conf and saved it in the ~ / .config folder.
I'm still messing around with the settings. I must say that it feels more fluid than Compton and I liked the description included in the sample configuration file better. Many of the settings are applied just by clicking save, without having to kill picom and run it again. Sorry to put all the code, but I think it may be useful for other beginners like me, it could help them get familiar with the process.

Thank you all very much for the help provided. I really really enjoyed it.

Should I change the name of the opening question to picom?

I have other questions like: What about all the dependencies I had to install for compilation? Should I uninstall them?
If I had to reinstall the system at some point would I have to recompile it or is there a way to save it maybe in deb packages?
Maybe I should open a new topic for these questions but I think they are related and may be doubts about it for others.


Mounted Android System.img unable to edit

If the img file in your /etc/fstab? If it is it may be listed as being mounted in a read-only state (ro). You can either edit fstab to change ro to rw or you can explicitly state to mount the img file as read-write from the commandline by adding rw option after -o in your mount command.

sudo mount -t ext4 -o loop,rw system.img sys/

If you are still short on free space you may need to resize the image file. This can be done with GUI GParted via sudo gparted /dev/loop0 then use menus to make the file larger so you have some free space to work with.


Do it in a subshell:

$ (. /path/to/envsetup.sh; runtool)

If there's just a handful of environment changes, you can do them on the command line:

$ FOO=a BAR=b runtool # FOO and BAR will be set only for runtool

You can also use an actual subshell if you anticipate doing a number of things:

$ bash
$ : this is a subshell
$ . /path/to/envsetup.sh
$ thing1
$ thing2
$ : ...
$ exit
$ : this is the original shell

You may want to include $SHLVL in your $PS1 for the latter, so it's easier to tell that you're in a subshell.  I also check for a (nonstandard) environment variable $PSYS and print it if set, as a sort of "label" for the environment.


How to set "always on top" on VLC by default?

Open VLC Media player and open Tools -> Preferences (keyboard shortcut - Ctrl+P)
Open the video tab in the Preferences window
Check the Always on Top option and click save, then close it.


Seems you lost your partitions. You can try to recover your lost partitions if no more actions have been done to the disk (format, write...).

Boot from your new Ubuntu install on that machine, open a terminal and install testdisk with sudo apt install testdisk.

Then run sudo testdisk and follow the on screen menu-like instructions, to try to recover your partitions with this tool.

If you still can't recover them or want to see more options, check this link about partition recovery from Ubuntu wiki.

Hope it helps.


Log in to Ubuntu and install Gparted
you can find it in the software center or install it via terminal:

sudo apt install gparted

after installing you can run gparted and resize the partition of ubuntu to the size you want it to have. This should work without a problem on a fresh install since the overall partition usage should be way below 100GB.

After the Resizing of the Ubuntu Partition you should be able to use gparted or windows to create a NTFS partition that you can then use/mount in Ubuntu too.


The simple answer is: Yes

The more complicated answer is: It depends

While Ubuntu 16.04 will install and run on that system, you are going to be potentially running into issues when your 32 GB storage fills up (and if you are not careful, that can happen quite quickly).

Also, I am guessing that the 32 GB is one of those eMMC drives which do not take too friendly to lots of changes (they are basically an SDCard on a stick.) If you are not planning on installing much software, and are very mindful, you will do fine.

For a beginning user, you might frustrate yourself with those specs (the storage in particular).

Hope that helps!


Xubuntu 20.04 LTS Cant Change Login-Screen Resolution (Thinkpad P50)

After many blackscreens of trying different fixes, this workaround seems to resolve the issue kinda How to adjust display settings for LightDM greeter on 18.04?
I also had to chmod +x monitor-config.sh. Without that I ended up stuck in boot
(Right now, the fix works with xubuntu 20.04 LTS, however, I installed manjaro and tried it there and it didnt work. I believe it's a hardware/driver issue.)


How do I disable telnet on Ubuntu Server?

Ubuntu has a no open ports policy which covers the default installation.

The instructions do not work because telnet is not enabled on Ubuntu Server. You do not need to disable telnet unless you've installed a telnet daemon on your own and enabled it.


try the following:

echo "sleep 60" > /etc/initramfs-tools/scripts/init-premount/delay_for_raid_array_to_build_before_mounting
chmod a+x /etc/initramfs-tools/scripts/init-premount/delay_for_raid_array_to_build_before_mounting
update-initramfs -u

Taken from here:
http://ubuntuforums.org/showthread.php?t=2241430

basically you are trying to introduce a delay in bootup (60 seconds in the example given here) for the system to find/load any devices that may take a little longer to get ready, such as an mdadm raid1 / raid device / encrypted disk / or other random issue that may be caused by the system booting too quickly for something and devices it needs not being ready yet.

I had the problem on a fresh install of a 14.04.1 LTS server with mdadm raid1 (in degraded mode using only one drive to begin with until I had the 2nd drive to put in).

If you can't boot at all, you may need to use a mix of steps using a LiveCD to be able to do the following steps in your installation, or you could try the "boot from first hard-disk" in the Livecd boot menu and see if that works first.

Otherwise, using some examples from the following thread might help using a LiveCD to get the following steps done on a "broken" system that won't boot:

http://ubuntuforums.org/showthread.php?t=2241460

I assume you may have moved on or otherwise solved this by now (4 week old thread), but figured I would document a fix that worked for me in a hopefully related scenario, so others might find it easier.

This is the google search that I used to find the solution I used:
mount mounting dev/disk/by-uuid on /root failed device or resource busy


This video is currently unavailable - Youtube

The issue seems to be either cookie or chache based.

You should be able to simply play the video in incognito mode (private browsing).
If you want to play the video without using incognito you may have to clear your cache and cookies every time you run into an error.

To open an incognito window go to file > New incognito window.


Ubuntu Server 20.04 no internet connection/network unclaimed

Your netplan .yaml file is broken.
ls -al /etc/netplan # get .yaml filename
sudo lshw -C network # identify ethernet device name, enxxxxxx
Edit it with:
sudo pico /etc/netplan/*.yaml <-- change the * to your filename
Initially make its content the following, with EXACLY the same spacing, indentation, and no tabs:
network:
  version: 2
  renderer: networkd
  ethernets:
    en01:
      dhcp4: true
      dhcp6: true
      optional: true
  wifis:
    wlp6s0:
      dhcp4: true
      dhcp6: true
      access-points:
        "YourWifiNetworkName":
          password: "WifiNetworkPassword"

sudo netplan generate
sudo netplan apply
reboot
Update #1:
BIOS
You have BIOS version F1.
The current BIOS is version F2a, dated 6/16/2020, and can be downloaded here.
Note: Confirm that I have the correct web page for your motherboard model #.
Note: Have good backup before updating the BIOS.
kernel
With the newer ethernet controller that you have, you may need to run with a newer kernel than stock from Ubuntu 20.04.1.
Go here to download the latest 5.8.3 kernel. Get the 4 regular .deb files, not the lowlatency files.
Update #2:
Word is that not even kernel 5.8.3 supports the RTL8125! Kernel 5.9 is supposed to support it, but there is only a 5.9-rc2 (rc2 means release candidate #2) version available now... see https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9-rc2/.
In the mean time, download this Linux driver from Realtek, and it should work. https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software. Get the one for "2.5G Ethernet LINUX driver r8125 for kernel up to 5.6"... and use your original 5.4.x kernel.
Update #3:
Ordered a $13 TP-Link USB 3.0 Ethernet dongle to be able to connect and download/install required Ubuntu packages. https://www.amazon.com/dp/B00YUU3KC6
Update #4:
Installed USB to Ethernet adapter. Installed build-essential. Built driver. Everything works. Wireless will be completed when the need arises. Will need to install wpasupplicant.


Mouse slow proportionally to network usage

I strongly suspect the network load itself is not the issue here. More likely, it's the network activity's effect on your HDD (as data is read and written to it). Try doing some intensive HDD activities, checking the mouse symptoms under load.

Writing a large file via dd is a simple solution. Here's a succinct guide on how to do so.

You could also watch process stats via top while you're seeing the undesirable behavior, to check if any processes are misbehaving (excessive RAM or CPU usage).


The act of extracting text from images is called OCR and Ubuntu has a wiki page dedicated to OCR. From that page:

Available OCR tools

The Ubuntu Universe repositories contain the following OCR tools:

gocr - A command line OCR
fuzzyocr - spamassassin plugin to check image attachments
libhocr0 - Hebrew OCR
ocrad - Optical Character Recognition program
ocrfeeder - Document layout analysis and optical character recognition system
ocropus - document analysis and OCR system
tesseract-ocr

The Ubuntu multiverse respositories also contain:

cuneiform - multi-language OCR system

Some packages are outdated, but unofficial fresh ones can be found in Alex_P PPA (PPA adding code: ppa:alex-p/notesalexp). If you never used a PPA check how to add software from a PPA.

edit:
As shown in comment Clara OCR exists too but it got stuk at Hardy and their website has 2009 as last updated.


Well on 12.xx all the old mechanisms work (not 16.04).

Add the user to the video group (not sure this is needed, but...)

sudo adduser username video
Authorize users to start the X server (wont work 16.04)  Now you could run with sudo, but that will leave all sorts of root owned files in your home directory, and will eventually mess up your login (go to a virtual term to fix things).

sudo dpkg-reconfigure x11-common
Maybe just edit the /etc/X11/Xwrapper.config to put allowed_users=console or everyone
That file does not exist in 16.04.
Start an xterm on the new display.  The existing display is :0, so just grab the next number :1 etc. and put it on virtual term 8

xinit /usr/bin/xterm -- :1 vt8
Switch to the new screen on virtual term 8 (crtl  alt f8) and in the xterm, start the window manager you want (maybe not unity though).
You might need to change the DISPLAY variable to :1 if things open back on the original vt7 screen.  You can start things on the display you select with a -display :1 &  from the main :0 display.

I took a quick look at 16.04 and didn't see how to authorize users to start X, things have changed since the last time I did this.


First, let's clarify, a wireless device does not have an IP, if it's not connected to a network (which is why you can't identify it).

Now, the mannual provides the SyncThru™ Web Service, and the steps are as follows:

  Check whether or not the network cable is connected to the machine. If not, connect the machine with a standard network cable.

  Start a web browser such as Internet Explorer, Safari, or Firefox and
  enter your machine’s new IP address in the browser window.

  For example, 192.168.1.133

  Click Login on the upper right of the SyncThru™ Web Service website.

  Type in the ID and Password then click Login. We recommend you to
  change the default password for security reasons.

ID:  admin

Password:  sec00000

  When the SyncThru™ Web Service window opens, click Network Settings.

  Click Wireless > Wizard. [Note]

  Wizard will help you setup the wireless network configuration.
  However, if you want to set the wireless network directly, select
  Custom.

  Select the one Network Name(SSID) in the list.

SSID: SSID (Service Set Identifier) is a name that identifies a wireless network, access points, and wireless devices attempting to

  connect to a specific wireless network must use the same SSID. The
  SSID is case sensitive.

Operation Mode: Operation Mode refers to the type of wireless connections (see Wireless network name and network password).

    Ad-hoc: Allows wireless devices to communicate directly with each other in a peer-to-peer environment.

    Infrastructure: Allows wireless devices to communicate with each other through an access point.

  [Note]

  If your network’s Operation Mode is Infrastructure, select the SSID of
  the access point. If the Operation Mode is Ad-hoc, select the
  machine’s SSID.

  Click Next.

  If the wireless security setting window appears, enter the registered
  password (network password) and click Next.

  The confirmation window appears, please check your wireless setup. If
  the setup is right, click Apply. [Caution]

  Disconnect the network cable (standard or network). Your machine
  should then start communicating wirelessly with the network. In case
  of Ad-hoc mode, you can use a wireless LAN and wired LAN
  simultaneously.

Insert the supplied software CD into your CD-ROM drive, and follow the instructions in the window to set up the wireless network.


Show only right side of --side-by-side diff

What you seem to want is not a side-by-side diff at all - but rather one in which you customize the format to exclude lines from either the old or the new file completely. For example, given

$ cat file1v1
  2 Africa
  3 America
  3 Asia
  4 Antarctica
  4 Oceania
  7 Europe
$ cat file2v1
  3 Africa
  3 America
  3 Asia
  4 Antarctica
  4 Oceania
  7 Europe

Then

$ diff --new-line-format='| %L' --unchanged-line-format='  %L' --old-line-format= file1v1 file2v1
|   3 Africa
    3 America
    3 Asia
    4 Antarctica
    4 Oceania
    7 Europe

while given

$ cat file1v2
  3 Africa
  3 America
  3 Asia
  4 Antarctica
  4 Oceania
  8 Europe

$ cat file2v2
  3 Africa
  3 America
  4 Antarctica
  4 Asia
  4 Oceania
  8 Europe

then

$ diff --new-line-format='> %L' --unchanged-line-format='  %L' --old-line-format= file1v2 file2v2
    3 Africa
    3 America
    4 Antarctica
>   4 Asia
    4 Oceania
    8 Europe


Error while upgrading from Ubuntu 20.04 to 20.10

I had this issue too, but in my case it was looking for Ubuntu.info.
My solution is not a solution, but a workaround: pause do-release-upgrade (simply press Crlt+Z in the terminal) during it checks the exisiting repos, look in /tmp for the latest ubuntu-release-upgrader-* directory and create an empty info file there (touch /tmp/ubuntu-release-upgrader-*/Pop.info, or something like this). Finally you can un-pause the release-upgrade process with fg.


What's a good way to run a virtual copy of Ubuntu on Windows 7?

You can download VirtualBox to run a virtual copy of Ubuntu.

Download a disk image of the Ubuntu 64-bit install CD here. Then open VirtualBox and create a new machine with the disk image as the start up disk.

I use this to run Ubuntu on Windows 7 every day and it works very well.


Firefox Group of Tabs: how to save and open as a group?

You can specify they all open when you click on Home, or you can put them all in a folder on your Bookmark Bar, and when you want them all, right-click and choose Open All.


How can I run Snapchat on my Ubuntu Desktop?

You cannot run Snapchat on pc or linux directly. for that you need an emulator called blustacks. But currently blustacks is not available in ubuntu. But you can install blustacks with wine. Then install snapchat with blustacks.

1.$sudo apt-get install wine

Install blustacks inside wine`
Install snapchat inside blustacks emulator.

you can download blustacks windows version from here

if you have any doubt about installing wine read this answer

if you have any doubt installing a windows software inside wine read this article

if you have any doubt about installing an app in blustacks visit here


Kernel didn't upgrade between 14.04 LTS to 16.04 LTS

For an unknown reason, you have version 4.4.0.67.72 of linux-headers-generic installed on your system, however the latest version on the official Ubuntu 16.04 repositories is 4.4.0.66.70.

When you try to install the latest kernel from the repositories, which is also version 4.4.0.66.70, it requires the corresponding version of the headers. However, since you already have a higher version, the installation fails because Apt never automatically downgrades a package.

The solution, hence, is to manually install the correct version of the headers, with sudo apt install linux-headers-generic=4.4.0.66.70 (Apt will warn you about the downgrade, but will proceed when you confirm it).


how to screen mirror my Android galaxy phone on Ubuntu via wifi

You can use a free application called Airdroid.
It allows you to complete remote access and control of your Android devices from Windows, Mac OS, wireless and without rooting.

Once you install it, you can connect your mobile to the computer using WiFi or USB. Once connected, you need to navigate to https://web.airdroid.com/ and access the device


What's the easiest way to package files into a deb?

I am not sure if I understand you correct, but have you read about puppet:
http://en.wikipedia.org/wiki/Puppet_(software)
https://puppetlabs.com/puppet/what-is-puppet/

Puppet is designed to share config-files and other configurations from a server to several clients for an automated configuration, but it can do this with every file or folder you want.

The beginning with this software is a little bit tricky, but if you worked with it for a time it is very useful.


What is the default repositories on Ubuntu 16.04 LTS 64-bit?

Simply uncheck or remove everything with ppa.launchpad.net in its name. All the standard repositories are configured in the Ubuntu Software tab and not in the Other Software tab where you are looking.


I keep losing the Internet connection in Ubuntu 11.10

It's the same driver (rtl8192ce) as in this question - and a very similar behaviour. Best solution up to now is to use kernel 3.0.0-14. It's not perfect but better than any of the later kernels.


I can't get "apt-get install php5-suhosin" to work

Suhosin for PHP 5.4+ has never been finished by upstream developer in time for Debian/Ubuntu release and thus the php5-suhosin package has been dropped from Debian (and Ubuntu).

Just remove the leftovers and forget about php5-suhosin.

You don't need php5-suhosin to run the website(s) in php.

EDIT: The suhosin.org has made a new release supporting PHP5.4+ after several years of inactivity.  If you really think you cannot live without it, you can compile suhosin extension yourself from source.


I tried install ubuntu 20.04 but get error

It means the partition on the /dev/nvme0n1p1 is not formatted vfat a requirement of the EFI boot specification. To solve it before doing the partitioning steps in the Terminal program sudo mkfs.vfat /dev/nvme0n1p1 be aware this will wipe everything on this partition, if it already has a boot loader it will be erased. Then try your partitioning again to see it it accepts it. If still complaing about the mount then sudo mount /dev/nvme0n1p1 /boot/efi before doing the partitioning steps again. Making certain it has selected or you have, the partition to be used as the System boot partition, however that option is worded, my memory fails me for the exact naming. All of this is conditional on you wanting to install to an NVM-e drive if trying to do this on a SSD it is installing the boot loader on a different drive and the NVM-e should be disconnected until the install finishes.


Spotfy for Linux is actually unmaintained, so it may be a very long time till it gets fixed:

http://www.omgubuntu.co.uk/2016/03/spotify-linux-no-development

In particular:

  Spotify’s rep also says the company do ‘want to fix’ some minor issues, like incorrect MPRIS data being passed to sound applets in GNOME, Unity, Cinnamon, etc, but when this may happen is as-yet unknown.


gedit not opening any file when launched from terminal, not only system files

@rancho since i am new user to askubuntu, i can't comment on your question...
All i know whenever you log-in into ssh server, you cannot open gedit due to DISPLAY error as stated in the link of @JonasCz. And the reason it worked after you rebooted your system because you automatically logged out from openssh server.
Whenever you want to log out the openssh server after login, simply logout the ssh using "exit" command and then use gedit..
Thank you


Enabling .htaccess file to rewrite path (not working)

For apache version 2.4 and later, you have to go to

/etc/apache2/apache2.conf

You have to edit that file (you should have root permission). Change directory text like this;

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Now restart apache.

service apache2 restart

Hope it works.


How to search and view docs installed in usr/share/doc

You can run Apache (either the one from XAMPP or from Ubuntu) on a different port, this is an easy config change.

Info on Listen directive

On my machine, the file which contains the directive is /etc/apache2/ports.conf. Just edit it using

gksudo gedit /etc/apache2/ports.conf

change port to, say, 88:

NameVirtualHost *:88
Listen 88

and restart Apache:

sudo service apache2 restart

Then you can access it at http://localhost:88/

Or you can use Ubuntu's Apache and other packages instead of XAMPP - I never understood the need for it on a Linux system anyway.


Is there any Ubuntu version for a PC with 248 MB RAM?

You can see older releases here http://old-releases.ubuntu.com/releases/

There is a pretty new version 16.04.3 LTS x86 (http://old-releases.ubuntu.com/releases/16.04.3/ubuntu-16.04.1-desktop-i386.iso). For this one end of life is April 2021 (https://wiki.ubuntu.com/Releases).

If computer is very old and the OS will require to many resource, consider using Lubuntu with LXDE desktop (https://lubuntu.net/). You can even get 18.04  (http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04-desktop-i386.iso).


Recommended fstab options for /home partition

nodev and nosuid are simply added layers of security that bar the creation or recognition of devnodes and suid executables on the fs.  They are typically used for removable media to prevent untrusted users from inserting a disk crafted to allow them to elevate their permissions.  There is little to no point in using them for /home.

As always, unless you have specific needs for other options, defaults should be just fine.


Can't login after AMD catalyst driver installation

I had the same issue a couple of months ago after installing the Catalyst drivers. Try this:

From the LightDM login screen, hit Ctrl-Alt-F1 to switch into a console. Login with your administrative username and password.

From there, try running the following commands:

sudo mv ~/.Xauthority ~/.Xauthority.backup
sudo service lightdm restart

Then try to log in again.

Let me know if this works for you!


Unable to connect my dell bh200 blue tooth head set

This is a bug in bluez which still shows incomplete in the tracker.


Is there a problem in wireshark with logical interface?

Probably not.  You'll probably see the same problem with tcpdump, netsniff-ng, or anything else that uses PF_PACKET sockets for sniffing on Linux (Linux in general, not just Ubuntu in particular, or even Ubuntu, Debian, and other Debian-derived distributions).

Given that those are two logical interfaces on the same machine, traffic between them will not go onto the Ethernet - no Ethernet adapters I know of will receive packets that they transmit, so if the packet were sent on the Ethernet the host wouldn't see it, and there wouldn't be any point in wasting network bandwidth by putting that traffic on the network even if the Ethernet adapter would see its own traffic.

So if you're capturing on eth0, you might not see the traffic.  Try capturing on lo instead.


Sharing my experience with it so far: Ubuntu 14.04 - Bonding 2 WIFI cards.

No luck yet, but I'm probably not too far since the 2 wifi cards seem connected when running iwconfig.


Every reboot alternatives for x86_64-linux-gnu_gl_conf and i386-linux-gnu_gl_conf are dropped to mesa

Check here regarding uninstalling nvidia drivers, it is about "installing" but also contains how to remove what is present before that - might be you have missed something.


Finally i managed to compile glibc with linuxthreads. I'll post the steps on how to do it:
I use Ubuntu 6.06.2 LTS (Dapper Drake)
live cd ubuntu dapper
modify /etc/apt/source.list
deb http://archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
...
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted

to
deb http://old-releases.ubuntu.com/ubuntu dapper main restricted
deb-src http://old-releases.ubuntu.com/ubuntu dapper main restricted
...
#deb http://security.ubuntu.com/ubuntu dapper-security main restricted
#deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted

then
sudo apt-get update
sudo apt-get install gcc g++ make

download and extract:
glibc 2.3.6
libin 2.3.6
linuxthreads 2.3.6
copy the plugins linuxthreads, linuxthreads_db and libidn to the folder glibc-2.3.6
create a build folder
mkdir build && cd build
../glibc-2.3.6/configure --prefix=/home/ubuntu/glib --enable-add-ons=libio,libidn,linuxthreads --without-__thread
make
make install

Check if the libc.so.6 actually have the addon on it.
run the shareable object
/home/ubuntu/glib/lib/libc.so.6
and you will get this output
libc with linux threads


Using ChrootDirectory option in sshd_config requires some basic understanding of written text.

This is snapshot from manual page for sshd_config(5):

  ChrootDirectory

  Specifies the pathname of a directory to chroot(2) to after authentication.  All components of the pathname must be root-owned directories that are not writable by any other user or group.  After the chroot, sshd(8) changes the working directory to the user's home directory.

This is your error log:

fatal: bad ownership or modes for chroot directory component "/var/www/"

And when you add one and one you will understand, that not only /var/www/webiste needs to be owned by root, but also /var/www and /var directories, as mentioned many times around here.


This is not a Ubuntu specific question, anyway on a clean install of the newest Filezilla do it exist a button on the toolbar to do a recursive remote search after files. Also exist a record to do the same in the menubar item Server. The shortcut is also F3.


Errors were encountered while processing: intellij-idea-community

If you're fine with removing intellij-idea-community.

sudo dpkg --remove --force-remove-reinstreq --dry-run intellij-idea-community

Does the --dry-run output seem ok? If so run

sudo dpkg --remove --force-remove-reinstreq intellij-idea-community


Help to disable the multi-touch gestures in 14.04?

From the terminal, run synclient to view all touch-pad properties.

Now, according to the official touch-pad support docs in order for multi-touch gestures to work, the touch-pad property ClickFinger3 must equal 0. So we will do the exact opposite:

synclient ClickFinger3=2


Where are the debug symbols for plasmashell (Kubuntu 19.04)?

Well, apparently the missing debug symbols has been a confirmed bug for almost 2 years now (see bug #1701788).  Would be nice if it could be fixed....


Is it possible to create a 'shortcut link' instead of 'symbolic link' to a folder?

Right-click on Desktop (or in any folder in Nautilus), Create Launcher, set Type to Location, set the name type and type in the location (annoyingly if you click Browse it will only accept a file), click OK.


Unable to connect to mongo on remote server

The issue was bindIp didn't change. There was some issue in restarting mongo from my side.

The habit should be to verify if the bindIp actually changed or not. (using sudo netstat -tulpn | grep 27017)

Thanks steeldriver for pointing it out.


19.10: I think I messed up installing BlueGriffon

The publisher of Blue Griffon does not make their application's user manual freely available; it must be purchased. Therefore, these instructions are provided on a 'best available' basis.

Open the Nautilus file manager by clicking on the file drawer icon. Look in /usr/share/applications and in ~/.local/share/applications for bluegriffon.desktop.  Once found, please right-click on it and check its Properties. It should be set as Executable; if it is not, make it so.

Alternatively, open a terminal window, change to the bluegriffon directory and launch the app with

cd ~/bluegriffon
sudo ./bluegriffon


Broken packages while installing Gazebo 8.0 on Ubuntu

In my setup, the libsdformat5-dev had a conflict because a previous version had also been present. There was also conflict in libignition-math3 package that was meant as requirement for libsdformat5-dev. After resolving the conflicts in dependencies, everything got installed alright.


How to share my home folder between two Ubuntu PCs via ethernet cable

Samba is not difficult just install it :

sudo apt-get install samba samba-common system-config-samba python-glade2 gksu

You can follow this tutorial :

Site


How to use Mac printer driver in ubuntu?

I managed to extract the PPD file from the OSX cups drivers. Since I don't know whether I can post it for license reasons, here are the steps to reproduce.

I haven't managed to get the printer to work yet however, but I'm posting this with the hope that someone might be able to solve the remaining bits of problems.

download OSX CUPS driver from Canon site: http://support-id.canon-asia.com/contents/ID/EN/0100700802.html
7z x mcpd-mac-g1000-13_13_0_0-ea21_3.dmg (or whatever the file you got is called)
7z x "2 - disk image(Apple_HFS：2)" which was extracted from original .dmg file
cd "PrinterDriver_G1000 series/"
7z x "PrinterDriver_G1000 series_131300.pkg" which gives you a G1000.pkg folder among other files
cd G1000.pkg
zcat Scripts | cpio -i
cd CIJModules
tar xzf CanonIJPPD.tgz gives you CanonIJG1000series.ppd.gz which is the PPD you want. It still needs editing as it includes a number of lines pointing to OSX paths ("/Library/...")

I am still trying to figure out what is wrong with my setup, but at least you can work on the PPD now :)


How to keep application running on external monitor when ubuntu locked

I haven't tried it myself, but you could  probably have a background service which would periodically output an image (jpg, png, etc) which you could then set as the lock screen wallpaper.  The service would just overwrite the image to update the screen.

Granted, it's untested and there's the chance that the lockscreen won't refresh when the image changes.  Also, it doesn't answer the question of keeping the monitors from sleeping (I'm looking for that answer as well, which is how I found your question).


Try disabling apport, as it reports even the most unimportant of crashes

See: How do I enable or disable Apport?


Multiboot not recognizing windows 7 as installed

You did not boot the installer into UEFI mode. I had no luck doing so, but I can change the bios. Give me the brand of laptop you have if you wan't to do so.

If you do not wan't to do so, do the following:

In the installation option menu, click "Something Else"                                                                                Once opened, create a new ext4 partition in the unallocated space and mount it at /

It should look something like this

Continue with the installation, and voila!


Will apt-get upgrade change the major version of a software in Ubuntu LTS?

Basically, versions from Ubuntu's main package sources will always stay the same save for some exceptions like Firefox.

Security- (and sometimes bug-) fixes will get backported into those versions, though.

If you want to use more recent versions of any kind of software, you can always add a PPA (personal package archive) as a package source that makes minor or major updates available, depending on what you want.


Upgraded Ubuntu 16.04 sometimes fails to sleep

I still have this problem, but have tested many possible fixes. The essence of the problem is that the suspend job fails, hangs.

I've tried fishing through kernel logs line by line, still don't know for sure what is causing this. I thought problem was video, but now suspect it is network and/or USB-C support.

When the suspend fails, log in again, open a terminal. If in ps aux output, you see something like this, then you are in same situation.

$ ps aux | grep sus
root     22926  0.0  0.0   8668   840 ?        Ss   23:07   0:00 /lib/systemd/systemd-sleep suspend

That job, 22926, can be killed, which will cause the PC to suspend immediately.

$ sudo kill -9 22926

This week, I've found a pretty good way to avoid this.  Create a script file like this:

sudo /etc/init.d/network-manager stop
sudo /etc/init.d/networking stop
sudo systemctl suspend

For me, this reduces the delay when suspending and it has never failed yet

When you restart, you need to remember to re-start network manually.

sudo /etc/init.d/network-manager stop
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
sudo /etc/init.d/network-manager start

This again tells network to close down, just for fun, and restarts it.

This is a high level solution. I've been into the weeds, changing lots of details within suspend scripts.  Nothing has worked as well as this.

The other interesting thread I found on this was that the hardware devices are malfunctioning and causing a false wakeup.  I tried that, but no benefit.  I do not think the suspend job would still be failed if this were the real issue.

Quite a few people have this same problem, seems like there might be many possible causes. Check out this Ask Ubuntu search. Some of my favorites:

16.04 - systemd suspends system but upon resume kernel then enters sleep and wake-up
laptop fails to suspend or hibernate (wakes up after 2-5 seconds without user interaction)
Immediate wake up from suspend caused by USB 3.0 devices
wakeup - How do I prevent immediate wake up from suspend and/or hibernation?
14.04 - Ubuntu wakes up after few seconds of sleep


open another terminal and kill the first one?

ps ax | grep bash # use the shell you are using
kill -9 that process


How much gigabytes do I need to dedicate for the OS?

For a more or less basic Ubuntu with some main programms always needed about 20GB at least. Ofcourse depends on what you are going to install / update...


dpkg makes this easy.

sudo dpkg -i -R directoryname

Where directoryname is the directory where you have stored all the dependencies will -i install -R recursively. You may wish to move the gimp.deb out of that directory and install it separately once you've successfully installed all the dependencies.

Other methods include writing a script to loop through the packages in the directory and creating a package list to install from but I don't believe these are necessary.

Sources:

man dpkg

http://www.tecmint.com/dpkg-command-examples/