Input/output error when accessing a directory

Work out the exact drive name if you are not sure from Disks.
In my example the assessment says

  one bad sector

Under volumes the device name is /dev/sdb2
The file system is ext4
The drive must be unmounted

Run> fsck.ext4 -f -C0 /dev/sdb2
(if you don't want to be prompted all the time add the -y option)

Note: After running this command I can use the drive although I seem to have lost a few files.


Look to this side:

extundelete --restore-all /dev/sdb1


Try playing around with settings.

I'm on Xubuntu so I'm flying blind here as far as locations and exact names of stuff is, but you can try:

From the launcher go to System-Settings -> Sound. You should get a dialogue with a number of tabs that read "Output", "Input", and so on. Select the "Input" one and you should get a drop-down menu with a selection of devices or ports. Try them out one by one, testing the microphone until you get the right setting.


Wow indeed out-of-the-box Opera borders are utterly ellusive. (also Opera seems to ignore system theme, which doesn't help the issue. you should bring it up as a bug with them : https://help.opera.com/en/computer-bug-wizard/)

there is a quick fix for this though, which is using the keyboard shortcuts for this :

Alt + F8 to start resizing, then use the arrow keys to resize the window. Pressing Return will save your resize, pressing Esc will revert the resize back.

the menu is brought up with Alt

this on the other hand makes sense to me. it's a Linux standardisation issue.


Do not use standby, suspend or hibernate on Ubuntu. It does not work well on most computers, especially if ran from external hard drives. Odds are it didn't have time to dump the RAM onto it before shutting it down. Most likely it's because Ubuntu still can't properly implement none of the three features above. Don't suspend/standby/hibernate, you should be fine.


Where can I customize window sizes of Notifications in KDE?

First, I would restart.

if that doesn't resolve the issue, try
chaning the file in ~/[.kde|.kde4]/share/config rename kde.notifyrc & knotifyrc

and restarting.
That should reset the notifications.


How to mute sound effects in 14.04 via the command line?

It's a bug and you need to report it. I test that on Ubuntu-Tweak tool and capturing by dconf watch / it's capturing correctly but I see no changes from default sound settings, it's still don't change to Mute.
see the screen shot: if I turn off it:

And if I turn on:

And as you see the default path is correct(org/gnome/desktop/sound/event-sounds), but the changes not take any effect on turning off/mute the "Sound Effects" and in both state I have no changes. I also tested it by rebooting system but no luck.
So it's a bug.


Problems installing Telegram on Ubuntu 16.04 LTS (defunct icon in Dash)

It looks like you have basically undone all the steps, so you should be back to a clean slate. Perhaps even restart your computer before proceeding just to make sure.

The following steps worked for me on Ubuntu 16.04. To install Telegram, try:

sudo add-apt-repository ppa:atareao/telegram
sudo apt update
sudo apt install telegram

You should be able to find Telegram in your dash. If you can't, press Alt+F2 and enter unity to reload Unity. Try finding Telegram in your dash again.


Touchpad is not showing up in the dconf Editor?

With Synaptics, use xclient in terminal to adjust. No reasonable gui exists to match that. Run 'xclient -l' to see current. Then new values are tested from cli with key=value pairs. When you find what you like, then you put in a config file.

I am not running Synaptics anymore, but I there is a template config under /usr/share/synaptics/X11 (or similar). You copy that to /etc/X11/xorg.conf.d. Then put in your settings.

If you have trouble finding that config file, get a file list from the Synaptics package (dpkg -l synaptics). If you get stuck, while back here and I will get a link for you.


Installed Ubuntu 18.04 the white color is too intense

Install the Gnome Extension Adjust Brightness Icon

After installation and setting to ON you will find a lightbulb icon on the top bar.

Left click with the mouse to reduce the brightness to that required and keep clicking to reset to default. 4 clicks completes the cycle.

Don't forget that you can also set the Night Light ON with the right most menu drop down on the top bar.

The Night Light On utility helps considerably in reducing glare from over-white background screens.


Software/games compatibility with Ubuntu from Windows platform w/out emulator

Firstly, Wine Is Note a Emulator :) And should be able to do what you need (otherwise just run Windowz in a Virtual Machine or Dual Boot setup)

You can check the Wine AppDB to see if it will work - e.g. WoW should work with a small workaround, but Autodesk, EA Games and Bioware vary. Generally stuff that works on WinXP should work well.

You may also find PlayOnLinux helpful as installs apps with workarounds etc for you.

Not all software devs support Linux (and if they sometimes do not support it very well...), many of them do not support as they do not think it will make them money (WARNING: opinions), or are lazy, or they find it difficult to implement stuff so that the game's files cannot be taken apart and used/do stuff in OpenGL instead of DirectX etc....


I solved the issue by installing knemo:

sudo apt-get install knemo

then adding it to my startup applications (autostart)

It is the best netspeed!!


/dev/dri/card0: No such file or directory

This error message is because you disabled Kernel Mode Setting with nomodeset. Nouveau requires KMS to work correctly. From Nouveau TroubleShooting

  Xorg fails to start with "(EE) [drm] failed to open device"

  Your DDX does not work with your current kernel and/or libdrm. There
  are at least three possible reasons for this: the nouveau DRM kernel
  module is not loaded, a version mismatch between the Nouveau DRM and
  libdrm, or KMS being disabled.

  First check, that lsmod command lists nouveau. If not, do modprobe
  nouveau to load the nouveau DRM kernel module, and check the kernel
  log for possible errors.

  If the kernel module nouveau is loaded according to lsmod command, but
  there are no kernel messages about nouveau at all, then most likely
  Nouveau KMS is disabled. This prevents the driver to work at all.
  Possible places to disable KMS are:

  kernel command line with: nomodeset, drm.modeset=0, nouveau.modeset=0 or similar
  modprobe.conf or modprobe.d/ adding the module options drm modeset=0 or nouveau modeset=0
  initramfs carrying the above module options

  Check and remove all those that you may find, and retry.


Ubuntu remembers every drive ever connected and every dvd ever inserted and PCmanFM shows it in folder panel

You probably didn't unmount the drives appropriately; this is a common misconception when people are switching from Windows. This usually results in the mountpoints still being available, and shown in file managers.

Just make sure, before you remove an external drive, to hit the unmount or eject button next to the drive name in PCManFM, or in the drive list in the system tray.

To remove the remaining mountpoint directories,

make sure no external drives are currently plugged in/mounted,
perform this command:

sudo rmdir /media/*


Mouse pointer does not adjust to context on screen

I have the same problem with Firefox 80.0.1 on Ubuntu 20.04.1 since two days. For testing I also installed Chrome which shows the same behavior. As long as I can say, no other programs seem to be affected. The mouse cursor often is stuck in its last state, mostly resize when moved into the window, but sometimes other cursors also. No matter if it is an arrow or another curser, it doesn't change on mouseOver on Webpages e.g. above links or in input boxes. Rebooting and changing the mouse don't solve the problem.
The perpetrator seems to be the Gnome extension "Soft brightness". Maybe the alpha-layer it puts over the screen to darken it interferes with the layer the browsers operate on and the layers the mouse is working on. Disabling this extension seems to solve the problem.


Ubuntu provides a system level auto-start file in /etc/xdg/autostart. This is the source of the duplicate process without the --no-daemon flag.
This becomes annoying as it starts mpd even if you disable all the services and when you reboot with a song playing in the background there will be duplicate mpd playing the same song.
To stop mpd from auto starting you can create a corresponding auto start desktop file.
First copy the file provided by ubuntu to your home directory
cp /etc/xdg/autostart/mpd.desktop ~/.config/autostart/mpd.desktop

Then open this newly copied file in a text editor
nano ~/.config/autostart/mpd.desktop

And then change the following line to false:
Hidden=true
X-GNOME-Autostart-enabled=false

The first line will disable it for all desktop and the second is specific to gnome. Changing the first is probably enough, but I have changed both in my file.
Now on next reboot you will only have one mpd instance.


Where does Ubuntu store the default groups new users are added to?

By default any new user created with adduser (or from the GUI) will be in this user's group only. There is no list of additional groups.

We can add additional groups we wish a new use should be in in the configuration file /etc/adduser.conf. Just uncomment the line to define the variable EXTRA_GROUPS and add groups you need there.

# This is the list of groups that new non-system users will be added to
# Default:
#EXTRA_GROUPS="dialout cdrom floppy audio video plugdev users"


What is Gconf?

GConf is a system for storing application preferences. These preferences are stored in XML files under the user's home directory, ~/.gconf. Each preference is represented as a key-value pair.

GConf is meant to be a way for developers to easily store user preferences and system administrators to set default values for particular preferences. In most cases, there is no need for a user to edit Gconf keys directly.

The vast majority of keys correspond to entries in the various applications' preference menus. Though on occasion, developers will use Gconf keys as a way to enable undocumented features. These are "hidden" from users for a number of reasons. Sometimes the feature is still a work in progress. Other times it is a feature that the developer wants to do away with but still leave accessible to users that don't want to give it up. Frequently, the features are targeted at "power users," and the developer simply doesn't want to clutter up the normal preference dialog.

In some ways it is similar to Windows' Registry. One major difference is that, unlike the Windows' Registry, Gconf does not store system settings. It only stores application preferences. While editing Gconf keys may potentially cause minor issues with specific programs, it should never lead to system wide issues such as rendering your system unbootable. In fact, deleting the entire ~/.gconf directory will simply revert all programs using Gconf back to their defaults.

Managing Gconf from the command-line.

The program gconftool-2 allows the user to interact with Gconf from the command-line. It is often simpler to enter a one line command in the terminal than digging around in Gconf's GUI tool. For instance, if you would like to show the icon for you trash on the desktop simply run:

gconftool-2 --set /apps/nautilus/desktop/trash_icon_visible --type=bool true

This also illustrates what I meant by key-value pair above. In this case, the key is /apps/nautilus/desktop/trash_icon_visible which has a value of true.

You can perform a variety of operations with gconftool-2. If you'd simply like to see a key's value, use --get:

gconftool-2 --get /apps/nautilus/desktop/trash_icon_visible

If you'd simply like to reset a value to its default, use --unset:

gconftool-2 --unset /apps/nautilus/desktop/trash_icon_visible

gconftool-2 can be particularly useful for system administrators. For instance,  /etc/gconf/gconf.xml.mandatory can be used to set mandatory preferences for all users. Further information on more advanced uses can be found with man gconftool-2 as well as in the GNOME Desktop System Administration Guide

How do I use the Gconf editor?

What was your question again? Oh, that's right: How do I use the Gconf editor?

gconf-editor is the graphical interface to manage Gconf settings. By default, it is not displayed in the menus. The easiest way to start it is by pressing Alt+F2 to bring up the "Run Dialog." Next, enter gconf-editor.

gconf-editor allows you to browse through the key-value pairs in a tree. Let's look at the example from above. Browse to apps > nautilus > desktop and you will see the trash_icon_visible key.

Ubuntu docs on gconf-editor
GNOME docs on gconf-editor


Software-installation error (makefile) on Ubuntu 20.04

Ok, so you are talking about http://www.geopsy.org/download/archives/geopsypack-src-3.3.0.tar.gz .
Follow their guide http://www.geopsy.org/wiki/index.php/Installation:Linux .
To get it compiled use commands below:
sudo apt install qt5-default qttools5-dev-tools qtscript5-dev qtdeclarative5-dev \
libqt5svg5-dev g++ gfortran libfftw3-dev liblapack-dev zlib1g-dev

cd ~/Downloads
wget http://www.geopsy.org/download/archives/geopsypack-src-3.3.0.tar.gz
tar -xf geopsypack-src-3.3.0.tar.gz
cd geopsypack-src-3.3.0
./configure -prefix /opt/geopsy-3.3.0

make -j8
sudo make install


Problems with login: unreadable flashing error

have you installed any gtk dev packages recently? this looks like a deprecated version error, or it's a problem with emerald. Try changing your theme. If that doesn't work, try reinstalling glib, something like this: sudo aptitude install glib should list the availible packages for install, or wget http://ftp.gnome.org/pub/gnome/sources/glib/2.30/glib-2.30.1.tar.bz2 then build from source or use aptitude. If it still doesn't work after that than post the full /.xsession-errors file


You have more than one  right?
Check the boot order in your Bios and select Linux storage as primary. If this does not work reinstall the Linux, it will repopulate the grub and should be fine.


This link below explains how to get firefox4 from packages from a ppa and install.

http://www.ubuntugeek.com/how-to-install-firefox-4-in-ubuntu-using-ppa.html

Just reproducing here for making it easy.

Install firefox 4 using GUI

Go to Applications > Ubuntu Software Center from the top panel go to Edit > Software Sources and click the ‘Other Software’ tab.Press ‘Add’ button and then paste the following line

ppa:mozillateam/firefox-stable

After adding the PPA you will be prompted to update your sources.

Once the update is done you can head to System > Administration > Update Manager to perform an upgrade.

Install firefox 4 using terminal

Go to Applications > Terminal in the terminal just enter the following commands

 sudo add-apt-repository ppa:mozillateam/firefox-stable

    sudo apt-get update

`sudo apt-get upgrade` (or `sudo apt-get install firefox` will upgrade current version)


Where is the GUVCVIEW configuration file?

The documentation is wrong, or at least out of date. For the version of guvcview currently in the ubuntu repositories (1.7.1), the configuration files are written to:

~/.config/guvcview/videoN

where videoN corresponds to the device (/dev/video0, /dev/video1, ...)


Problem with deprecated auto_ptr when installing cpptest on 18.04

The messages are warnings, not errors.

They can be suppressed by passing the -Wno-deprecated compilation flag:

   -Wno-deprecated
       Do not warn about usage of deprecated features.

ex.

./configure CXXFLAGS=-Wno-deprecated
make

Alternatively, you can install and use an older version of the compiler which doesn't deprecate these code features

./configure CC=/usr/bin/gcc-5 CXX=/usr/bin/g++-5


Blank purple screen on boot, can only boot from specific sequence

Doesnt look like I was able to fix this. For anyone who is just starting to have this issue, use alt f5 or a similar combo to get to a terminal and shutdown using the -h flag!! much less likely to cause damage then the hard reboots I was doing.

http://www.binarytides.com/linux-command-shutdown-reboot-restart-system/


Those are multicast packets, sent by machine 192.168.1.1, which may be your router. They are sent to multicast address 224.0.0.1.

From the Multicast over TCP/IP HOWTO:

  224.0.0.1 is the all-hosts group. If you ping that group, all multicast capable hosts on the network should answer, as every multicast capable host must join that group at start-up on all it's multicast capable interfaces.

So there is a machine on your LAN, presumably your router, that is trying to identify other multicast-capable hosts on the network. Yours won't respond to the ping since the request is blocked by your firewall UFW.


That package is not available for ubuntu 10.04,It is the development libraries of GTk3 whereas 10.04 is a Gtk2 distro, So you can't install it in 10.04


An encrypted home directory is just like an encrypted hard drive. It simply adds a level of encryption to that in order to protect the files in that directory. There is a very negligible performance degradation that is probably so low that you wouldnt even know unless you measured it with a non encrypted directory


I have been having a similar experience, after upgrading to Ubuntu 16.04 LTS.

I had wicd running as a background process, so I ended the process it.  I used System Monitor to do this.

Note, System Monitor might only show you processes running on your home account on Ubuntu (i.e. 'my processes').

Be sure to ALSO end the 'wicd' and 'wicd-monitor' processes that are running in 'All Processes' not just from 'My Processes'.

To switch to 'All Processes', on the 'Processes' tab within System Monitor, at the top right-hand corner, select 'All Processes', the default is usually 'My Processes'.  Other items on the menu drop-down include: 'Active Processes', 'All Processes', Refresh, Show Dependencies; be sure to select 'All Processes'.

Note: you might need to repeat this process if you restart your computer.

Another option is to uninstall wicd from your completely.


How to change Power-Button to Suspend in 16.04?

It is best if you set it via the command line:

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


I have a similar problem now. When I log in, the desktop session crashes and throws me right back into the login screen.

My solution:

ctrl-alt-f1 to get to console.
Log in and type "sudo apt-get install xubuntu-desktop"
When finished, reboot or type "sudo /etc/init.d/lightdm restart"
When login screen appears again, choose xubuntu-desktop instead of Ubuntu desktop, and everything should work again. Though you have to get used to a different desktop environment.


How to fix login screen (lightdm) orientation and prompt with my two monitors?

For screen rotation restoration; Try this...

For the initial text console?

Check:  http://askubuntu.com/questions/237963/how-do-i-rotate-my-display-when-not-using-an-x-server

... and/or check the content of /etc/default/grub
and make sure it contains something similar to

GRUB_CMDLINE_LINUX_DEFAULT="noplymouth video=efifb fbcon=rotate:3"

then do

$ sudo update-grub

This should make all after the grub menus/screens be rotated accordingly.

For X?
Arrange your screens with the "System Settings" > "Displays"
Then make sure that /var/lib/lightdm/.config/monitors.xml is lightdm-owned copy of $HOME/.config/monitors.xml. Take into use: reboot to see the effect.


Laptop not compliant with package profiles through Landscape

It turns out the hash ID database on the server wasn't populated with entries for Ubuntu 18.04 Bionic Beaver. I edited /opt/canonical/landscape/configs/standalone/hash_id_databases.conf and added entries for [bionic] and [bionic-arm], and ran /opt/canonical/landscape/scripts/hash_id_databases.sh, which solved my problem.


How do I use wget/curl to download from a site I am logged into?

The easy way: login with your browser,and give the cookies to wget

Easiest method: in general, you need to provide wget or curl with the (logged-in) cookies from a particular website for them to fetch pages as if you were logged in.

If you are using Firefox, it's easy to do via the Export Cookies add-on. Install the add-on, and:

Go to Tools...Export Cookies, and save the cookies.txt file (you can change the filename/destination).
Open up a terminal, and use wget with the --load-cookies=FILENAME option, e.g.

wget --load-cookies=cookies.txt http://en.wikipedia.org/wiki/User:A

For curl, it's curl --cookie cookies.txt ...

(I will try to update this answer for Chrome/Chromium users)

The hard way: use curl (preferably) or wget to manage the entire session

A detailed how-to is beyond the scope of this answer, but you use curl with the --cookie-jar or wget with the --save-cookies --keep-session-cookiesoptions, along with the HTTP/S PUT method to log in to a site, save the login cookies, and then use them to simulate a browser.
Needless to say, this requires going through the HTML source for the login page (get input field names, etc.), and is often difficult to get to work for sites using anything beyond simple login/password authentication.
Tip: if you go this route, it is often much simpler to deal with the mobile version of a website (if available), at least for the authentication step.


Change login screen styles in Ubuntu 18.10

in Ubuntu 18.10 this file /usr/share/gnome-shell/theme/Yaru/gnome-shell.css makes the changes that you are looking for as opposed to /usr/share/gnome-shell/theme/ubuntu.css

18.10 lock screen after tweakings.

after few more tweakings..


How to install ooVoo on ubuntu 12.04 64 bit

OOVOO currently only have version for Mac and PC.  To run it in Ubuntu, you need Wine.

Wine allows you to run Windows applications on a Linux operating system. For more information on Wine check their Website. You can install Wine from the Ubuntu Software Center.

Also you may want to check out OpenTok.  Its the Linux alternative to OOVOO.


Terminal: running processes interpretation

When you run the process in a terminal, its process state is marked with a + because it is the foreground process in that terminal. This means, among other things, that the terminal can be used to control the process. For instance, pressing Ctrl-C will result in an SIGINT signal being sent to the process. Depending on the signal handlers in the program, this will usually terminate the process. Also, closing the terminal will send a a SIGHUP* signal to the process.

When you run the process from Eclipse, the + is not there because the process is not in the foreground process group of any terminal. In fact, unless you have started Eclipse from a terminal (and not backgrounded it with & or ^Z), Eclipse itself will not have a controlling terminal, and so will none of its child processes.

*) HUP for "hang up", from the days when terminals were physical machines that connected to computers over serial dial-up lines


So, I ended up abandoning this setup, but as I've learned more about the interplay between routers, DNS, etc., I believe the issue I was experiencing was a NAT/IP forwarding issue. When, from behind the double NAT, I typed in the domain I would have liked to use (e.g., cloud.domain.com), the query would return the public IP of the network (e.g., 1.2.3.4, at the top of the double NAT), which because of IP forwarding would cause issues.


Toshiba Satallite c660 - problems with fan

You could rebuild the kernel with Toshiba support. sudo apt-get source linux-image-3.0.0-16-generic (or -pae if you're using it).

Then cd to the directory where the source is, should be something like linux-3.* in the folder run make menuconfig go to Device Drivers -> X86 Platform Specific Drivers -> Toshiba Laptop Extras. Hit the 'M' key. Then keep hitting Exit until it asks you to save your config. Tell it "yes" and save it as .config. Then, use a text editor to open .config and find the line: #CONFIG_TOSHIBA is not set and change it to CONFIG_TOSHIBA=y. Save and quit the text editor.

make
make install

^ I'm not totally sure about that last part. You may want a second opinion there. I've built kernels, but I've never installed them. However, if it's sensible and like everything else then that command should get the modules and the re-built kernel installed.

After that, you should hopefully have the modules you're looking for.

Oddly enough I was scouring the menu for the kernel and I couldn't find the option for that CONFIG_TOSHIBA anywhere (it was referenced by the Toshiba ACPI driver, but not in the menu... odd)!


How to erase one partition not all of the disk in a safe way on ubuntu

The free space shown in the picture is an unpartitioned portion of the disk.
To securely erase it:
1 - Create a partition on free space and format it ext4
2 - Write randoms on all space
3 - Delete created partition

Here is more details for step 2 : how to write randoms on all the free space
Let's say that the partition created from free space is /dev/sda1

Option 0 : not randoms but fill with zeros
The Ubuntu gnome-disks manager have an 'Erase' option which fill with zeros
Its quite secure but there is more secure : filling with randoms

Option 1 : Fill with randoms using dd:
sudo dd if=/dev/urandom of=/dev/sda1

Option 2 : Fill with randoms using the secure deletion tool shred
If not present on the system, install it, its part of the package coreutils
sudo apt install coreutils
Usage:
sudo shred -v -n 1 /dev/sda1
option -n 1 is for 1 pass, can be increased for more security and longer process time...


can't boot due to Shim UEFI key management tool

I have two thoughts on this:

Filesystem damage

Some EFIs are highly sensitive to filesystem damage, which might make it look as if a new GRUB binary was improperly signed. This would then trigger the MokManager display you've shown. (It's not technically Shim that's showing that display, but MokManager.) In this case, you may be able to fix the problem by doing:

sudo dosfsck /dev/sda2

You'll need to do that from an Ubuntu emergency disk, of course. Also, this type of damage can occur if you failed to both disable Fast Startup and disable hibernation. Thus, it's important that you disable these Windows features to prevent a recurrence.

Note also that if the filesystem is damaged, you might need to re-install GRUB -- but do so after fixing the filesystem problem. Boot Repair should be able to help with this.

A new bug

It could be there's been a recent update to Shim and/or GRUB that's causing it to flake out on your particular computer. In this case, reverting to the old version may help. This may require copying the shimx64.efi binary from another computer or re-installing GRUB in some way. Alternatively, if the bug is in GRUB, you could install another boot manager entirely. I describe several on this page. I haven't noticed any recent updates to either Shim or GRUB, but I may have missed something.

With Secure Boot off, you can bypass Shim entirely by creating a new boot entry with a command like this:

sudo efibootmgr -c -d /dev/sda -p 2 -l \\EFI\\ubuntu\\grubx64.efi -L GRUB

This command tells the computer to boot via grubx64.efi on partition 2 (-p 2) of /dev/sda (-d /dev/sda). Your current setup boots via Shim, which is necessary to handle Secure Boot; but with that feature disabled, a direct call to GRUB can bypass any Secure Boot flakiness -- assuming there's nothing wrong with the GRUB binary. As noted earlier, if that binary is damaged, it could create the symptoms you're seeing, and this procedure would not help -- the system would simply fail to boot in some other way.


How to add a "Type" column to the file dialog?

Umm it seems you can't:

I'm still searching for another solution...

gsettings has a nautilus config line (among others):

org.gnome.nautilus.icon-view captions

and has the value

['none', 'size', 'date_modified']

I tried changing this to include type:

['none', 'size', 'date_modified', 'type']

but it still didn't work. I'm not sure how it can be enabled.


What is hammering the CPU when top is not running?

If you do something while top is closed, like type slowly in kedit/gedit and the cpu usage goes down then this supports the theory that some on-idle process is running and running top is not counted as being idle.  While doing nothing while top is closed is counted as being idle, so the on-idle process roars to life.

What does the following command reveal?

sudo ps -efH


Where can I configure Chromium's default command line arguments?

You can store those arguments in /etc/chromium-browser/default

sudo -e /etc/chromium-browser/default

Then set it appropriately

CHROMIUM_FLAGS="--incognito --password-store=gnome"


Mythmote wont connect to mythbuntu 12.04, seems frontend is not listening on all interfaces

I just now found out (thanks to your sleuthing) that a temporary solution is to port forward with ConnectBot.

Port Forwarding is a bit tricky, there's a menu entry, "Port Forwards", that shows up once you're connected. You should also be able to get to it by "long pressing" a host before you connect.

This Port Forward screen is empty. To add entries to it, press the menu button and click "Add port forward"

Once you have port forwarding setup, you'll need to modify the mythmote to connect to '127.0.0.1' now that you're actually connecting to the port on your android (that is a "tunnel" to the external host).

Edit: since this post has gained some traction, let me consolidate:

1) a simplier solution is to run sudo mythtv-setup as the user that runs mythtv. Then configure the backend address to be the external one.

Also note the following bugs:

Proxy: http://code.mythtv.org/trac/ticket/10633
IPv6: http://code.mythtv.org/trac/ticket/11030


Your question is about how to upgrade Python3 without breaking apt as mentioned in comments by @user535733. You can just install several versions of python in parallel on your machine.

You can easily fond tutorials for that:
https://www.freecodecamp.org/news/manage-multiple-python-versions-and-virtual-environments-venv-pyenv-pyvenv-a29fb00c296f/


The MK802 III (Wikipeda) (Amazon) is one such device. It has a newer processor and the manufacturer is the Chinese-based Rikomagic. The processor is based off the AllWinner-A8, and it supports the newest version of Ubuntu (12.10). The MK802 III is the newest version of the MK802, and goes for about $80 USD + S&H. You can find older versions for less money. It has built-in wifi and HDMI support.

The Cotton Candy is another such device that also has built-in wifi and HDMI. It, however, was originally meant as a device for developers, and can go for around $200 USD. Its processor is based off the ARM Cortex-A9 Exynos processor created by Samsung.


I use the latest proprietary NVIDIA -updates driver shown in the Driver Manager instead of the X.Org X server Nouveau driver. In my system Linux installed, the keyboard was not working when it is resumed from Sleep/Suspend when using Nouveau. With the proprietary driver this problem does not occur.


The following question covers much of the same ground, but is not *ubuntu-centric:
https://serverfault.com/questions/1634/ipv6-for-home-users


Eventually you need to make an entry for Win10 in grub if the reconfiguration did not add one. Further, you might want to check if the BIOS (EFI or legacy) has a specific boot-order that queries your Linux HDD first. This shows Grub first and lets you decide which system you want to boot.


18.04 Unable to connect to server due to "Temporary failure in name resolution"

I think I had this issue before. I used the first answer in this question to resolve it:
Wrong nameserver set by resolvconf and NetworkManager

The answer is to change the resolv.conf symlink:

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


Try with installing the related packages with bluez:

sudo apt-get install bluez bluez-alsa bluez-audio bluez-btsco bluez-compat bluez-cups bluez-dbg bluez-gstreamer bluez-hcidump bluez-pcmcia-support bluez-tools bluez-utils python-bluez bluewho indicator-bluetooth libbluetooth-dev  libgnome-bluetooth11 libbluetooth3 python-gobject python-dbus


What packages do i need to install on an ubuntu desktop for it to "become a server"?

You can install such server packages on a desktop system using the apt-get tasksel mode (don't forget the final ^):

LAMP server (Linux, Apache2, MySQL, PHP)

sudo apt-get install lamp-server^
Mail server

sudo apt-get install mail-server^
OpenSSH server

sudo apt-get install openssh-server^

Note that you can check which packages are going to be installed using apt-get install --dry-run <name of the task>^ before calling the above commands.


I cannot solve the "Install these packages without verification" problem

To upgrade an End of Life release, look at the https://help.ubuntu.com/community/EOLUpgrades page. From that page they have links to each version jump.

You are most likely getting the error you are because apt can no longer find package lists (which are missing because they are no longer on the server which is because you are on a EOL release.) All the packages for old releases have been moved to old-releases.ubuntu.com when they reached their end of official support from Canonical.

While you could probably change your /etc/apt/sources.list to using the old release servers, you should just upgrade (be it through all the steps or through backing up your data and reinstalling) so that you get the latest security fixes and better support.


How do I pass a variable to a shell expression run with `sh -c`?

There is this brilliant answer from Stéphane Chazelas on Unix & Linux SE.
I don't want to duplicate it, just the essential parts:

  Never embed {} in the shell code! That creates a command injection vulnerability.

Rather use

xargs -I{} sh -c 'echo "$1";' xargs-sh {}

or

find -exec sh -c 'echo "$1";' find-sh {} \;

The name xargs-sh / find-sh is just a name and can be anything (you will see _ a lot for it), but it will make errors more easy to track, as this will be part of the error message.

Btw: When using find, you should better use -exec instead of piping to xargs. If you still do it for any reason, use NUL-delimited output to avoid your script to choke if your file names include newlines which is not very common but valid:

find ... -print0 | xargs -0 ...

Regarding on how to add $date to your sh -c script:

Variables in single quotes won't get expanded. Read this or this.

But in this case, it is imo safer to add the date as argument to your sh -c script:

find -exec sh -c 'date="$1"; file="$2"; ...' find-sh "$date" {} \;


Maybe your access point / router / modem is not connected to the internet. You are connecting to it, so you have some kind of network running, but if there's no internet connection you cannot reach anything beyond your router. Check your router, restart it and if it says that it has no internet connection call your Internet Service Provider.

If you have wifi enabled, try to see if your smartphone can connect and have an internet connection. If this is the case, your cable may not be correctly inserted. Make sure to test the connection of the cable on both your computer and the machine you connect it to.

If you can test the computer in another network with the cable connection go ahead and do it. This will allow you to discard a ethernet card or cable error.

You should try with another cable to make sure that it is not the cable that is faulty.

If you or a friend have another computer at hand with an ethernet port, try it too, this will help you find out if it is a problem with your computer or with the network.


Please just install usb-modeswitch package.

sudo apt-get install usb-modeswitch

After that your modem device will be recognized as ttyUSB.


Fortunately I found how to fix my problem, I did these things:

1) went to my home directory and deleted contents of these folders:
   .cache .compiz-1 .config .dbus .gconf .local (I wasn't sure which folder contains     default theme, so I had to delete contents of all these folders)

2) went to system settings->Appearance and chose my theme

that's all


In this case it was an issue with Hyper-V. Removing and re-adding the feature fixed it.


I haven't tried the DS (only the DG which use another chipset) myself but I have no reason to believe that it shouldn't work. According to http://www.alsa-project.org/main/index.php/Matrix:Vendor-Asus the DS is supported since kernel 2.6.37.


How to auto reconnect WiFi after the router restarts

Maybe not the cleanest way of doing this, but you could make a little script and let is execute every 5 min using cron. If pinging the router is not successful then the network manager is restarted.

ping -c 3 -W 10 192.168.2.1 >/dev/null

if [ $? -ne 0 ]; then
  service network-manager restart
  sleep 5
fi


How to stop umount all when I exit ssh session?

however, seems that it doesn't unmount the folders at all..

well let's do a read to ``man on_exit man page, maybe some configuration on the machine you are log in is playing with you.


How do I install my wireless card driver offline

I have done it on Xubuntu 12.10 (Quantal Quetzal):

Download firmware-b43-installer and b43-fwcutter from Ubuntu, choose the target release version (I chose Quantal) and architecture.

Alternatively, if you have a Live CD or installed *Ubuntu of the same release with Internet access, you can do: apt-get -d install firmware-b43-installer and then look for both packages in /var/cache/apt/archives. Do not use packages from different releases.
Do not download from Debian. Being a derivative does not imply that they are compatible, and does not imply that Debian's packages are suitable for Ubuntu.

On the target machine, do dpkg -i b43-fwcutter* && dpkg -i firmware-b43-installer*

b43-fwcutter is a dependency of firmware-b43-installer, so it must be installed first.


Battery indicator ALWAYS says Using Battery Power - even when plugged in - ASUS laptop

I would turn the laptop off and take out the battery and plug it in to see if it thinks it is on battery power that should make work I think.


There's no file hidden in sector 2047. There may be data, but it's not part of the file system.

To recover it:

Figure out sector size of disk
Read sector with e.g. dd

Figure out sector size

sudo fdisk -l will show you sector sizes:

$ sudo fdisk -l
[sudo] password for root:
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SAMSUNG MZ7TY256
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt

Here we have 512B sectors. This is probably the most common; some newer devices will have 4KB sector sizes. This is the reason we need to know the sector size of the device - we have to specify it in the next step, so dd knows how many bytes to skip.

Read out said sector

This dd can do for us.

sudo dd if=/dev/sda of=sector2047 bs=512 skip=2046 count=1

if=/dev/sda tells dd to read from /dev/sda
of=sector2047 tells dd to write to the file sector2047
bs=512 tells dd to read in 512B increments (block size)
skip=2046 tells dd to skip first 2046 512B-blocks
count=1 tells dd to read 1 block of 512B.


Any software to run Tv tuner USB in Ubuntu 12.04..? If anyone know about it then please suggest me

There are so many software's that allow you to watch TV on Ubuntu, like TV with Kaffeine, TV with Me-TV ,TV with VLC, TVtime, MythTV, mplayer, Gnome's own DVB Daemon. You could refer to this link for downloads and installation instructions.


How should I transfer photo (jpeg) files from my ubuntu 14.04 PC and display them on my iPad, without using iTunes?

A FTP client can transfer files both ways, you can download or upload files. So yeah, you can definitely move the photos TO the smartphone. Greetings.


Installing Ubuntu Server, the installer won't boot

Some hints :

Reburn your DVD
Check your DVD once burned with md5
Try your DVD on another workstation

But afaik, you dvd listing files looks not complete

You said you downloaded both version, I guess you will have to choose one.


Rails production server not responding to internet requests

After hours of searching in the wrong place, I traced it down to an external dns issue - it was pointed to an old ip.


Yes, you will be able to find your lost Ubuntu laptop if prey was installed on it beforehand.

Install prey with one of the methods below:

Via the Software Center, click the below  button:

Run the below commands in a terminal to install prey,

sudo apt-get install prey

Install from a .deb file.

After installing prey, make an account and you're done.

The free account allows you to use prey on 3 machines. If you need more functions or more machines you need to pay for the pro version of prey.

Prey can only be uninstalled if the thief knows the administrator or super user password. To prevent him from doing so they encourage you to add a BIOS password and disable booting from removable devices on your PC, so that the thief will be forced to boot into the previous installation and thus, not be able to format your hard disk easily.

Reference

For any further questions about prey, see: FAQ – Prey.

UPDATE: Prey version(0.5.3) available in the Ubuntu repository is not working properly, so download .deb file of prey(version 0.6.2) from the link I mentioned above.


How do I move the status icons to the top?

Yes, there is! :)

Install the extension Status Icon Fixer.

Then go to the extension's file and edit with a text editor.

$HOME/.local/share/gnome-shell/extensions/status@gnome-shell.2jk.org

Or:

/usr/share/gnome-shell/extensions/status@gnome-shell.2jk.org

Inside extension.js you'll find a line like function enable() {.

After that line, add a line with what you want to be on the top bar:

StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['audacious'] = 'audacious';

Remove audacious and put what you want.

Another example:

StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['dropbox'] = 'dropbox';


You can install an Hindi-Hindi dictionary with Goldendict

First install Goldendict:

sudo apt-get install goldendict

Then download the Hindi-Hindi dictionary file from Here

Then follow This article for install the dictionary file in Goldendict.


What causes a newly installed application not to launch when run the first time?

This is really not possible to answer as a blanket statement. For some reason, the application fails to load. This could be because it is missing a dependency, hasn't been configured yet, or for some other reason.

You would need to include the name and log files from an application to see why it isn't starting. You may also be able to see why it isn't starting by attempting to start it from the command line.


Live USB Not Working (Black Screen before grub menu)

Have you ever been able to boot from any USB on that computer? If not, then maybe it just doesn't like USB booting, or hates that particular USB device.

I'd try a cd/dvd/dvd-rw disk, should definitely work for any computer that can run WinXP.

But if your computer is really that old, the regular Ubuntu might be too slow, may want to look into Xubuntu, Lubuntu, or a ubuntu-derived distro that's "lighter", or even Debian-based CrunchBang (that uses the Openbox WM). See http://distrowatch.com/ to search.

Just thought it could be your old computer is only 32-bit, and if you're trying a 64-bit Ubuntu (or any 64-bit OS) it won't be able to boot either...

According to ark.intel.com for "Intel® Pentium® 4 Processor 2.40 GHz, 512K Cache, 533 MHz FSB" (could be yours from your comment) it's "Instruction Set" is 32-bit, so you should use 32-bit OS's. I think it supports PAE so should be ok even if have >4GB ram, and some distros require PAE support too (Linux Mint & Ubuntu?).

(32-bit seems to use less RAM anyway, and only a little bit slower, I prefer it)


Save and restore nautilus server connection bookmarks

Nautilus uses URIs for bookmarks. File is located in your home directory:

~/.gtk-bookmarks

Add that file to Ubuntu One and you should be good with locations. Passwords are stored in Passwords and Keys and can be sync'd with a key server. Or you can comment them in the file above.

Example:

ftp://{userid}@ftp.site.com/ {Comment}


VirtualBox: Why are some USB devices disabled?

Disclaimer: I don't own an iphone, and have no way to test any part of this answer. So it is all theoretical knowledge, quite possible wrong.

DFU is a standard way of updating device firmware. The device will appear as a DFU device to the host, the host will upload a firmware update to it, it will apply the update and appear as a new device to the host. So what it's likely happening is that VirtualBox is not seeing the new device, not the DFU one.

This are the steps that I would take to resolve/debug the problem:

Go to VirtuabBox configuration, in the USB section delete everything. This will allow VirtuaBox to catch all the USB devices. See the screenshot.

Start VirtualBox, connect the device. It should appear on the Devices->USB Devices Menu as a DFU device. Click on it. Now the guest OS will install it's drivers and upload the firmware to it. Wait patiently.

Go again to the Devices->USB Devices menu. It should be there as a different device. Click on it. Enjoy.

Sorry for the screenshots language, if you don' understand then just ask. The devices are disabled on the second screenshot because VirtualBox is running under an user not member of the virtualbox group.


HP laserjet p1006 stopped working after updates

As posted in question

  Reinstalled the foomatic files on spec and all is well. It's still a mystery to me though.


On Ubuntu 16.04 Baobab configuration is available inside 'org/gnome/baobab/preferences' from dconf-editor (as wjandrea suggested).

Available options are listed in /usr/share/glib-2.0/schemas/org.gnome.baobab.gschema.xml :

$ gsettings list-recursively | grep -i baobab | sort | uniq
org.gnome.baobab.preferences excluded-uris @as []
org.gnome.baobab.ui active-chart 'rings'
org.gnome.baobab.ui window-size (960, 600)
org.gnome.baobab.ui window-state 128


Torrent Not Downloading(Network Problem)

After a whole day of frustrations i've been able to finally figure it out, the problem was the router firewall was set to high(High chance i set it when i changed ssid and passwd  but i don't remember it) and blocked all incoming connections. It only allowed connections from a predetermined list of ports by the firewall.

When i set the firewall setting to "off" it changed to No Ports Restricted  and torrents started downloading immediately. I even disabled uPnP and removed port forwarding and it's still working.                                                                                The issue was with the router firewall. I hope this helps someone avoid the frustration i have had.


How to install Pantheon without messing up GNOME

I'm sharing my experience with installing pantheon desktop on top of Ubuntu Budgie 19.04. Ubuntu's main GNOME edition should work similarly.

First, add these two ppas ppa:elementary-os/stable and ppa:elementary-os/os-patches.
When you install the first ppa with this command sudo add-apt-repository ppa:elementary-os/stable, it will create the repository source file in /etc/apt/sources.list.d. Edit that file to change the distro name from disco (19.04) to bionic. Then re-run sudo apt update
After installing both ppas, add Ubuntu 18.04's main repository source line. You can edit /etc/apt/sources.list file or edit one of the elementary's source file in /etc/apt/sources.list.d/ directory. Add this line (or any other bionic mirror of your choice)
# ubuntu bionic repo for some packages
deb http://archive.ubuntu.com/ubuntu bionic main

Then run these
sudo apt update
sudo apt install elementary-desktop

Bonus tips
Add elementary's appcenter's source to get some more elementary apps.
In /etc/apt/sources.list.d/appcenter.list, add these
deb http://packages.elementary.io/appcenter bionic main
# deb-src http://packages.elementary.io/appcenter bionic main

Then refresh the package index and open appcenter to find curated elementary apps


There is an issue with the Radeon HD 6xxx series.

Take a look at the post and reply here. It might help you get started.


Can I mount a disk from more than one os?

Find out what partitions you have.  Open the application launcher and type partition or disks.  From there find the disks you want and look for their UUIDs.  That is how the system identifies that partition.  There are other ways but that is the most standard.
Now you need to open a terminal.  Go to Applications again and type terminal. Open it and type the following command to open the fstab file. Now add lines as needed to automatically read/write mount the drives/partitions you want. NOTE.  fstab needs an empty line at the end.  Hit the return key a few times after the last line and then save.

sudo nano /etc/stab
Now save and exit the file.
From the terminal mount all the drives.

sudo mount -a

Here is a good introduction to fstab and mounting disks.


A "loop" device in Linux is an abstraction that lets you treat a file like a block device. It's specifically meant for a use like your example, where you can mount a file containing a CD image and interact with the filesystem in it as if it were burned to a CD and placed in your drive.

You can find more information on Wikipedia.


Text editor for writing film screenplays

Amazon Storywriter is a free screenwriting tool distributed by Amazon as a web application for Google Chrome and Chromium web browser. This app can be used offline even when there is no connection to the internet.

Storywriter automatically formats your screenplay as you type - you don't need to tell Storywriter what kind of element you want to use. Each element gets formatted when you move to the next line.


I could not install Wine due to EULA message

You can navigate the cursor with the tab key in console and 'click' buttons with space or enter.

So you basically hit the tab-key to get to the accept Button and then you hit enter.


ubuntu 12.04 cant install dual boot on raid0, installer cant detect windows7

All you have to do is going to ubuntu.com to download the file WUBI.EXE. Or you can use this link to download the file

http://www.ubuntu.com/download/desktop/windows-installer


sftp Broken pipe Couldn't read packet: Connection reset by peer

Please try moving Subsystem sftp internal-sftp line from your existing block to # override default of no subsystems in sshd_config

It worked for me.


Why do the headphones not work on my HP Pavilion DV6?

A friend of mine has a dv6-2153el, and he solved this problem running

echo "options snd-hda-intel model=hp-dv5" | sudo tee /etc/modprobe.d/snd-hda-intel.conf

then rebooting.

If this doesn't work for you, you can undo with

rm /etc/modprobe.d/snd-hda-intel.conf


Ubuntu security: "antivirus" in official statement?

I think it's referring to apparmor which is indeed installed by default (not sure if it goes under the antivirus category though).

See What is apparmor? for further details about the kind of protections it provides.


duplicate file exists,while on updation shows on ubuntu 12.04 LTS

Try these commands on terminal,

sudo rm -rf /var/lib/apt/lists
sudo apt-get update


gedit - show file path for recently opened files

A quick hack, just open all files you think you want, then at the top right menu you can find the path of each file, so you can keep what you want and close others.


Dual Screen issues - Nvidia - Ubuntu 19.10

Though it would be helpful to others, i had a dual gpu the below script helped me to fix the xconf automatically.

https://devtalk.nvidia.com/default/topic/1024318/linux/-solved-nvidia-prime-on-dual-gpu-configuration-giving-a-blank-screen/post/5210971/#5210971

Updating the thread details here.

https://devtalk.nvidia.com/default/topic/1022670/linux/official-driver-384-59-with-geforce-1050m-doesn-t-work-on-opensuse-tumbleweed-kde/post/5203910/#5203910


Security updates are set "download and update automatically" yet some security updates don't get installed

flashplugin-installer package is in trusty-security section of repositories and it should be automatically installed.

But adobe-flashplugin package is not. It is in partner repository.

If you install flashplugin-installer, that should fix this issue.

You can also set up the system to automatically upgrade packages from other sections of Ubuntu repositories.

This setting is in /etc/apt/apt.conf.d/50-unattended-upgrades

If you already clicked to "Download and install automatically" in GUI there must be an uncommented line

"${distro_id}:${distro_codename}-security";

If you uncomment the next line

//  "${distro_id}:${distro_codename}-updates";

by removing //, all updates should be downloaded and installed automatically.

There are also other settings in this file, that are well commented right there.


There is a guide here for installing from a USB on Windows:

USB installer - Windows

Download Pendrive Linux, install it and open it.

Select Ubuntu Desktop Edition, for the version you downloaded:

Select Browse:

Select the iso image. Go back to the PendriveLinux window, and then select your USB drive. Make sure that you have no data on it you want, as it will probably be wiped. The USB drive also needs to be larger than the image file.

Press Create

USB installer - Mac

For Mac, instructions are available here.


Terminal command 'login' fails with error message

The login command in Ubuntu requires root permissions. Try $ sudo login.


press and hold the super key to check if Closes Current Window is bound to ALT+Q

If you can see your shortcut set there, try to disable compiz shortcuts


Why does the output of journalctl sometimes include 'skipping...'

The skipping results form your pager. journalctl uses less per default.

Those "skipping" lines are perfectly normal.

as posted by michas
Further:

Searching for some string is much faster than displaying each and every line on screen. Therefore if you search for a word, less will scan the file for that word and once it finds a line it will display only that page of lines where it found the word.

If you scroll back using your terminal you will see those "skipping" lines.

If you want to go backwards in your text just use the proper keys like arrow keys. This will move you through the text as it is without any "skipping"s.

I also suggest to repaint the screen by pressing the r key.


Pay no attention to fstab, it isn't supposed to be listed there.

Your drive is only a CD-ROM; it can not write discs.


Chipset support and other drivers are part of the Linux kernel - you do not need to install a separate driver package for the majority of hardware. Intel hardware in particular is well supported. If your hardware works, you already have the best available support for your distribution (short of messing about with custom kernels).


Ah! Nice puzzle!

Just say "exit", and all your files will be there (and the output you miss in a file called echo).

Explication:

 su > echo user

is the same as

 su user > echo

So you are starting a (sub)shell with su (switch user) to your user, with all output redirected to a file called echo!

Look:

[romano:~] % cd tmp/dvd-usa-hd
[romano:~/tmp/dvd-usa-hd] % ls
dvd-usa-hd_01_01.avi
[romano:~/tmp/dvd-usa-hd] % su > echo romano
Password:
[romano:~/tmp/dvd-usa-hd] % ls
[romano:~/tmp/dvd-usa-hd] % exit
[romano:~/tmp/dvd-usa-hd] % ls
dvd-usa-hd_01_01.avi  echo
[romano:~/tmp/dvd-usa-hd] % cat echo
dvd-usa-hd_01_01.avi
echo
[romano:~/tmp/dvd-usa-hd] %


Jamendo works in Firefox but not in Chromium

I solved the problem by reinstalling the chromium-browser:

sudo apt-get purge chromium-browser
sudo apt-get install chromium-browser

I don't know why, but I did not lose any of my settings. I also did not have to log-in to the google-sync to get my bookmarks and stuff back, which is not supposed to be the case with apt-get purge as far as I know.

Also, the "problem" with the cookie-icon is still there. I think it's a bug or something.

At least, I still have no idea what caused the problem. All my plugins and extensions are active again, Jamendo still works.


Why can't I update applications without upgrading the whole OS?

This is actually a feature of Ubuntu.

There is no problem with updating the software with its latest version, and Ubuntu developers might do it easily. And, actually, it is done in several other Linux distributions, including Arch.

As you have noticed, Ubuntu software is updated only with security updates and critical bug fixes. All features are "frozen", and after a Ubuntu release no software is updated to a new major version. Although it seems like a disadvantage of Ubuntu, in fact it's one of its pros.

Why freeze applications' versions and not update the features? There are several reasons.

New versions are frequently less stable then older ones. Using a slightly older version ensures it has been well tested.
One can trust that Ubuntu will not significantly change within a particular version. This is very important e.g. for large companies, that want to be able to rely — if they use Ubuntu 10.04 — on its always working the same way, and its containing the same features all the time.

That also means that Ubuntu 10.04 is always 10.04, as opposed to Windows, where Service Packs change a lot in your system, and you need to take care of them.

Ubuntu developers take special care to provide you with the most stable software
available. On Windows it's usually a third party's decision when to release an update. This means some may want you to use the latest version, with new cool features, and others may release features only when they have been tested for a longer time. That means you never really know what's going on with the updates there.
This makes it easier for Ubuntu developers to manage releases. Ubuntu is released each 6 months, and during that period Ubuntu developers prepare the new version for release, packing it with tons of new features and newer software. They add it only to the version that is currently in development, and not to all supported (older) Ubuntu versions: this requires less work.

For example, if they wanted to update GNOME in 10.04 to version 3, that would mean hundreds of other applications' completely breaking, and would require reorganizing the system.

The updates are provided by Canonical and Ubuntu developers, and not by software's developers, as it's done in Windows. Personally, I trust Ubuntu developers much more than developers of software ABC, and can be sure that the new version provided by Ubuntu will do no (even accidental) harm to my computer.

All of the above are one of the main parts of Ubuntu quality. You get the best quality software and OS, and to balance it out you use not the newest, but just a few months older software.

Also, remember that when you update to a newer Ubuntu release, all software is again in the newest version (but stays at it until the next release), so it's not a major issue that the software does not contain the newest features. And as others suggest, you can use PPAs to fetch newer software from other sources, if you need to.


Cannot run script from command line despite script being set to executable -- I get "command not found"

As you have run the command sudo assumes you want it to look in the directories defined by the PATH variable. If the command was sudo ./launch_16GB.sh, sudo would know to look in the current directory.


Installing multiple versions of sun java

Yes. you can.  Check this article. http://lj4newbies.blogspot.com/2007/04/2-jvm-on-one-linux-box.html

Hope this helps.


networking - Ubuntu 18.04 VPN Connection

Open the gnome Control Center and find the Network section. You will find here the VPN section. You may need some technical information about the VPN you want to connect to.

Open the gnome control center from a terminal or [Alt]+[F2]:

gnome-control-center -s network

Ubuntu Help: Connect to a VPN

Ubuntu Help: VpnClient


How to find and replace a string by increasing its numerical part?

It might be easier to use perl for this:

$ perl -pe 's/(\d+)/$1+1/eg' foo
ami22 ami66
ami68 ami67
ami89 ami77 ami30
ami56
ami55
ami33

-pe: loop through the file, line by line, printing each line after evaluating the expression
s/(\d+)/$1+1/e: match a number (\d+), and replace it with its increment ($1+1), with e being used to tell Perl to evaluate the replacement.

With awk, you have to include the whitespace in the record separator:

$ awk -v RS='[[:space:]]*ami[[:space:]]*' '$0{$0++;}{ORS=RT}1' foo
ami22 ami66
ami68 ami67
ami89 ami77 ami30
ami56
ami55
ami33


ubuntu 14.04 disconnect wired connection when I try to connect broadcom 4311 wifi

The package bcmwl-kernel-source actually blacklists the ethernet driver!! It is incorrect for your Broadcom 4311 device. Please open a terminal and do:

sudo apt-get purge bcmwl-kernel-source
sudo modprobe b44

Your ethernet should now be working so that you can install the firmware for your wireless:

sudo apt-get update
sudo apt-get install firmware-b43-installer

After a reboot, both devices should be working.

The 'Additional Drivers' tool will happily offer to install the wrong driver for your wireless. Please ignore it.


No graphical login after upgrading to 16.04

Try this:

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

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

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

    sudo fdisk -l

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

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

In the open file paste these lines:

nameserver 208.67.222.222
nameserver 208.67.220.220

Ctrl+O Save File

Ctrl+X Close nano

Continue running:

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


booting

If you cannot boot into the GUI mode, you can choose the recovery mode from your Grub menu.

Choose root mode - then go your log directory and delete the syslog file.

You should be able to boot into the GUI mode again.

get rid of the root problem

I neither know what the error message means, but it is clearly issued by the docker demon.

I'd suggest to deinstall docker for now.

Then you have time to google for the reason or try to get help elsewhere.


Looks like Tamil support made it into 12.04 or even earlier. Though not everything is completely translated. I would recommend you get in contact with the localization team if you can help them out translating. Translating dialogues isn't very difficult, I have done some translations myself a few years ago for my language.

Last activity for Tabuntu on its sourceforge project page was logged 5 years ago. I consider that project abandoned. However there is an Ubuntu Tamil Team and a group on Launchpad. They seem to have plans for 12.04, I suggest you get in contact with them via IRC or Email. Ask them about the status of Tamil support in Ubuntu and ask yourself what can be done to improve the current status.


Adding video card and Ubuntu stuck on boot

just re-read your post
--you are trying to add a second video card, or swap it out?

If this is a second card it's possible you might also be creating an IRQ resource
   conflict on your motherboard - check your bios to verify.

You also should try changing the boot options in grub

If you don't normally see grub at bootup, hold the shift key during boot.

Once at the grub2 menu select a kernel you want to boot, and press e.

Between all the gibberish will be a huge line beginning with "linux /boot/vmlinuz-". Put the cursor at the beginning of that line and press the End key to get at the end of it (it probably ends with "quiet splash").

Edit and/or following parameters: nomodeset noacpi noapm pci=noacpi acpi=off apm=off

Press Ctrl-x to boot.

Once logged in, you can edit grub permanently.  Press ALT-F2

gksudo gedit /etc/default/grub
There should be a line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
add your parameters there (between the quotes). Save, and exit the editor. Then run:

Update grub:

sudo update-grub

If the above doesn't help you can also try starting with recovery mode:

Once at the grub menu choose "recovery mode" if available, or go to "Ubuntu Advanced Options" and then choose recovery mode.  Hopefully in this mode you'll see the errors causing the problem.


As your changes and the output indicate, you have a permissions problem. What files did you chmod/chown? It seems like the webroot isn't accessible.  I believe the default webroot is /var/www/, so try reverting your changes or changing the ownership back to the apache user.


Which media player has seek preview with thumbnails?

ExMplayer is an MPlayer GUI with thumbnail seeking. The graphical user interface is Qt-based and it depends on mplayer or mplayer2 package.

Features and performance
As version 5.0.1, it lacks some advanced features that you might expect it to have. While it plays any typical H.264/MPEG-4 video clip smoothly, it is not quite a replacement for VLC media player for three reasons below.

Somewhat high memory usage

Significantly high CPU usage

Relatively no option to adjust performance

These are based on my brief experience, when comparing ExMplayer 5.0.1 (more than 90% CPU usage) to other players such as VLC media player 2.0.8 and GNOME MPlayer 1.0.5 (both were barely at 10% CPU usage) in Xubuntu 12.04.
Not tested for ExMplayer 5.5.0.
Availability
ExMplayer 5.0.1 (released on 2015-07-28) is available via older PPA on Launchpad for Ubuntu 12.04 until 18.04.
sudo add-apt-repository ppa:exmplayer-dev/exmplayer
sudo apt-get update
sudo apt-get install exmplayer

ExMplayer 5.5.0 (released on 2020-07-21) is available via newer PPA on Launchpad for Ubuntu 20.04 or newer releases.
sudo add-apt-repository ppa:exmplayer-dev/exmplayer-qt5
sudo apt-get update
sudo apt-get install exmplayer

Else, visit download page of their project site. While the project site is hosted on Sourceforge, the packages and source code for Linux distributions are linked to Launchpad and GitHub.
TL;DR ExMplayer is responsive and able to playback video clips without problem. But it is resource hungry, when compared to similar Qt-based VLC media player with default settings and GTK-based GNOME MPlayer.


Multi HDD/SSD Partitioning Scheme - where the partitions live?

/boot          (md0) is on SSD and iHDD and eHDD (via RAID 1)
/              (md1) is on SSD and iHDD and eHDD (via RAID 1)
/var           (md2) is on iHDD and eHDD         (via RAID 1)
/swap          (md3) is on iHDD and eHDD         (via RAID 1)
/home          (md4) is on SSD and iHDD and eHDD (via RAID 1)
/mnt/work-data (md5) is on SSD and iHDD and eHDD (via RAID 1)
/mnt/bulk-data (md6) is on iHDD and eHDD         (via RAID 1)

So:

internal SSD as SSD = /boot (md0) + / (md1) + /home (md4) + /mnt/work-data (md5)
internal HDD as iHDD = /var (md2) + /swap (md3) + /mnt/bulk-data (md6) + RAID 1 of [/boot, /, /home] (md10) + RAID 1 of [/mnt/work-data] (md50)
external HDD as eHDD = RAID 1 of [/var, /swap, /mnt/bulk-data]  + RAID 1 of [/boot, /, /home] + RAID 1 of [/mnt/work-data]


Confirm that a user has read and write access to current directory

Via test command:

# doesn't  echo OK, because no read-write permissions
$ [ -r /proc/28127/task/28189/fd ] && [ -w /proc/28127/task/28189/fd  ] && echo "OK"
# echoes OK, because my user has read-write permissions to the directory
$ [ -r $HOME ] && [ -w $HOME  ] && echo "OK"
OK

This can be put into a function and store that into ~/.bashrc or used in a script:

check_dir() {
    [ -r "$1" ] && [ -w "$1" ] && echo "OK"
}

And used as so:

$ check_dir $HOME
OK

Via find command:

# Doesn't return directory name because I don't have read/write permissions
$ find /proc/28127/task/28189/fd -maxdepth 0 -readable -writable

# Returns  directory name, because I can write/read there
$ find $HOME  -maxdepth 0 -readable -writable
/home/xieerq


How can I change mouse sensitivity permanently with xset?

You will need to modify /etc/X11/xorg.conf to make it permanant.
There should already be settings for mice in there (see below), you would just need to change the acceleration options.
Section "InputClass"
    Identifier "My Mouse"
    MatchIsPointer "yes"
    Option "AccelerationNumerator" "1"
    Option "AccelerationDenominator" "1"
    Option "AccelerationThreshold" "0"
EndSection


16.04 - curl: (35) gnutls_handshake() failed: Error in the pull function

I got that exact message when I was trying to access the stats page of a https://mmonit.com/monit/ installation over https, while not having white listed my client IP to monit's configuration file.

Your question does not relate to monit of course, but maybe there is something blocking the request in the same way (e.g a firewall), thus the ssl handshake doesn't go through.


The Linux kernel underlying Ubuntu will automatically "swap in" those pages from disk to RAM as needed, so in general I'd say just let it happen naturally.

However, if you really feel that you need to force it, (I can see a scenario where you would want to know the system will be responsive later) you can momentarily disable and re-enable swap

sudo swapoff -a
sudo swapon -a

OR alternatively as a single line

sudo swapoff -a; sudo swapon -a

Be careful doing this, as you may make your system unstable, especially if its already low on RAM.


ubuntu crashes during bootup if Nouveau drivers are not configured

Setting kernel boot parameter nomodeset fixes the problem.


You can't. Ubuntu Core ships without locale support; /etc/default/locale in core is readonly, hardwired to C.UTF-8.

There exists a locale-control interface that is for use on classic, that is, it allows a snap to control the default locale of a classic system. It does not work on an ubuntu core system.


Can I have more clarity re what update does?

apt-get update only updates your software lists, ie. packages that should be available and can be downloaded, are the latest etc. It does NO upgrades of packages at all; as upgrade, full-upgrade & dist-upgrade do that role.

Yes apt-get update is limited to sources found in /etc/apt/sources.list & files within /etc/apt/sources.list.d/ but it does not upgrade any packages. apt-get update also does not look at whatever packages you have installed; it's only touching software lists of what's available.

If you're using a badly outdated mirror; which can lead to package problems, it won't know or check for that (the output from the apt-get update can be useful to check https://launchpad.net/ubuntu/+archivemirrors yourself for those problems).

From man apt-get

   update
       update is used to resynchronize the package index files from their sources. The indexes of available packages
       are fetched from the location(s) specified in /etc/apt/sources.list. For example, when using a Debian archive,
       this command retrieves and scans the Packages.gz files, so that information about new and updated packages is
       available. An update should always be performed before an upgrade or dist-upgrade. Please be aware that the
       overall progress meter will be incorrect as the size of the package files cannot be known in advance.

Note: This was copied from my 20.04 system, if you use man apt-get on your own box you'll see the reference manual page that perfectly matches your release.


I don't think there's any general way to turn an arbitrary binary file into human-readable form - you would need to know the byte-by-byte format in order to unpack and convert it. (There is the strings utility, but that will only extract ASCII sequences that happen to be embedded in the file).

In the specific case of Mozilla Firefox, it appears to use SQLite 3 - this is likely what you are seeing at the top of the file - this is one time where strings is useful:

$ strings ~/.mozilla/firefox/dhjktlo7.default/storage.sqlite
SQLite format 3

although you could also use the file command to identify the content type:

$ file -b ~/.mozilla/firefox/dhjktlo7.default/storage.sqlite
SQLite 3.x database, user version 65536, last written using SQLite version 3013000

Probably the best way to display / search these specific files is to use the sqlite3 command line client (from package sqlite3) to .dump them e.g.

$ sqlite3 ~/.mozilla/firefox/dhjktlo7.default/storage.sqlite .dump
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
COMMIT;


Script for compressing new folders in the parent folder

Explanation to use commands of the answer (at the end of the answer) :

We would use the date command, because each backup is named as YYYYMMDDT000001 :

date '+%Y%m%d'

To define which backup must be compressed, we use the find command, and we use the -exec option to compress it at same time :

find /backup -iname $(date '+%Y%m%d')T000001 -exec zip -r $(date '+%Y%m%d')T000001.zip $(date '+%Y%m%d')T000001 {} \;

Further explanation of the command :

/backup is your backup folder
-iname ask find command to search each directory/file which is named as said by his parameter (here, it's the result of the command date '+%Y%m%d')
-exec would execute the command with find output
zip -r would created a compressed file which would be named with result of date '+%Y%m%d' and with .zip extension after (you can define an absolute/relative path, in order to have a folder for compressed backup and backup separate), and the file which would be compress has the name defined by date '+%Y%m%d' command

For example, the command would be generate like that :

find /backup -iname 20191206T000001 -exec zip -r ../compress_backup/20191206T000001.zip 20191206T000001 {} \;

date '+%Y%m%d' would return 20191206, so find search for 20191206T000001 file, and compress it in ../compress_backup folder (which is next to /backup) with the name 20191206T000001.zip

Commands for answer :

Now, we can create the cron job, which would run 1 time per day (and as said by OP in comment, % character as got a special meaning inside cron command - forcing newlines, which we don't want to - so we had \\ character each time to force cronjob to use the command literally like that):

0 4 * * * find /backup -iname $(date '+\%Y\%m\%d')T000001 -exec zip -r $(date '+\%Y\%m\%d')T000001.zip $(date '+\%Y\%m\%d')T000001 {} \;

This would execute this command each day at 4:00 AM, and as mentionned in comment, we can removed backup that are older than 5 days with this command :

0 5 * * * find /backup/ -mindepth +1 -mtime +5 -delete

This command would remove each file inside /backup folder that are older than 5 days, and would be executed each day at 5:00 AM


Ubuntu freezing with command sudo docker-machine create --driver virtualbox myvm1

Fixed:

Change Virtualbox-5.0 to Virutalbox-5.2

Ubuntu 16.04


You may just need to install exfat drivers:

sudo apt install exfat-utils exfat-fuse

And then unplug the drive and plug it back in. Can you browse it now?

If that doesn't work see if you can remount it flowing these directions:

  Mount a FAT32 partition with write permissions for
  everybody

sudo mkdir -p /mnt/sd1  # only if you want a new mountpoint
sudo umount /dev/sdb1   # only if already mounted (but with bad permissions)

sudo mount -o rw,users,umask=000 /dev/sdb1 /mnt/sd1  # mount

  Check permissions

ls -ld /mnt/sd1

  Test

sudo bash -c "echo 'Hello World' > /mnt/sd1/hello.txt"  # test writing with sudo
cat /mnt/sd1/hello.txt                   # test reading (as user)
ls -l /mnt/sd1                           # check permissions of the content
rm /mnt/sd1/hello.txt                    # test removing (as user)
echo 'I am a user' > /mnt/sd1/user.txt   # test writing (as user)


I clone many machines in my work and I have great success with simply using tar from the command line.

Mount the partition of the source hard drive to (say) /mnt.

tar cvfpz /home/me/documents/mybackup.tar.gz /mnt

I recreate the partitions on the new HDD. Untar my Tarball to the new partition and re install grub.

Mount new hard drive to /mnt

cd /

tar xvfpz /my back up.tar.gz

All in all it is relatively quick and painless.


bc in script doesn't show decimals when dividing

Since you are using bc for the calculation, there is no need to use the bash arithmetic expansion ( $((...)) ).
Furthermore, the syntax of your arithmetic expansion is wrong as ; is no arithmetic operator. Second, this method only can output integers.

The correct script would look like as follows.

#!/bin/bash
read -p "Dividend? " dividend
read -p "Divisor? " divisor
    if [ $divisor = "0" ]
        then
            echo "∞"
    else
        echo "scale=4;$dividend / $divisor" | bc
    fi


All my virtual host go to the same site?

You have to create a virtual host for all the sites

<VirtualHost *:80>
  ServerName domain1.com
  ServerAlias www.domain1.com
  ServerAdmin domains@domain1.com
  DocumentRoot /mnt/volume1/domain1

  ## Rest of the settings here for domain1
</VirtualHost>

<VirtualHost *:80>
  ServerName domain2.com
  ServerAlias www.domain2.com
  ServerAdmin domains@domain2.com
  DocumentRoot /mnt/volume1/domain2

  ##rest of the settings here for domain2
</VirtualHost>

restart apache and you should have the domains pointing to the right directory...

You might have to to use the sudo a2ensite domain1 command to enable the sites in

/etc/apache2/sites-available

that way you can set up seperate files for all your virtual hosts ... easier to manage... :)

apache2 allows you to make seperate sites... so check the

/etc/apache2/sites-available/000-default

if you don't have the sites enabled everything by defaults gets pointed to that 000-default virtual host

you have to make sure there is a link in

/etc/apache2/sites-enabled

folder to the config files in

/etc/apache2/sites-available

folder... :)

Cheers...


What is the difference between sudo -i and sudo -s?

The major difference between sudo -i and sudo -s is:

sudo -i gives you the root environment, i.e. your ~/.bashrc is ignored.
sudo -s gives you the user's environment, so your ~/.bashrc is respected.

Here is an example, you can see that I have an application lsl in my ~/.bin/ directory which is accessible via sudo -s but not accessible with sudo -i. Note also that the Bash prompt changes as will with sudo -i but not with sudo -s:

dotancohen@melancholy:~$ ls .bin
lsl

dotancohen@melancholy:~$ which lsl
/home/dotancohen/.bin/lsl

dotancohen@melancholy:~$ sudo -i

root@melancholy:~# which lsl

root@melancholy:~# exit
logout

dotancohen@melancholy:~$ sudo -s
Sourced .bashrc

dotancohen@melancholy:~$ which lsl
/home/dotancohen/.bin/lsl

dotancohen@melancholy:~$ exit
exit

Though sudo -s is convenient for giving you the environment that you are familiar with, I recommend the use of sudo -i for two reasons:

The visual reminder that you are in a 'root' session.
The root environment is far less likely to be poisoned with malware, such as a rogue line in .bashrc.


CUDA 8.0 may be unpacked ("installed") into its own directory, without affecting the 7.5 installation.  Change your PATH and LD_LIBRARY_PATH to include the new CUDA 8.0 bin and lib directories, (and remove the CUDA 7.5 additions), test the 8.0 functionality and compatibility, and remove the CUDA 7.5 when you are happy with 8.0

My only experience is with the CUDA 8.0 deb, but I assume CUDA 10 would have the same installation options.


Open your search dash and type grub customizer.

If you do not have it, install it with:

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

From there you can grafically customize your grub. You can also edit the entries. Remember to save a few older kernels.


Open a web browser and navigate to http://localhost:631. This is the real interface to your printing system. If you want to do anything fancy, do it here. You are eliminating a lot of potential error stemming from bugs and flaws in the gnome printer dialog. Mostly the gnome dialog is just oversimplifying on some advanced functions.

If you don't see a website on localhost:631 your cups daemon (the printing system) is not running at all. Make sure it is installed.


how to share a folder between WIN10 and ubuntu installed with VMWare 12?

Step-by-step instructions on how to share a Windows folder under Ubuntu 17.04

Under Windows create a shared folder, say winshare, and enable it in the VM config.
In the VM install open-vm-tools with sudo apt install open-vm-tools
Create a folder on your desktop with mkdir ~/Desktop/share
Add the following line to your .bashrc:

mountpoint -q ~/Desktop/share || vmhgfs-fuse .host:/winshare ~/Desktop/share

And that's it!


Running Xubuntu, the network icon is missing and can't get it back

Right click on the panel and select Panel -> Panel Preferences
Then choose the Items tab and go down and double click on the Status Notifier Plugin

Then in the Status Notifier Items for the Known Items block, scroll down and make sure that the Network Manager Applet hidden check box is not selected.  If it is, unselect it.

I recommend a reboot after unselecting it.


How to install packages within pbuilder/cowbuilder chroot environment?

You can use /var/cache/pbuilder/hooks file to install missing packages in chroot via package manager.


How to fix boot message [RAID partition] not ready yet?


What does Ubuntu mean by "support" for its releases?

It means that you will only be able to get security updates during that period. One it is over, the repositories are closed and moved to an archive.

Apt-get will stop working unless you change your software-sources, and even then no one will fix bugs or security problems.

You can still use an unsupported version, but expect some problems.

You can still use 10.04 until April 2013 in desktops or 2015 in servers. That means that Firefox (and similar packages) won't be updated after April 2013, but Apache and MySQL (for example) will get updates until 2015. You can check the status of each release here.


Download utility with dynamic bandwidth control

No. The main tools for this are wget and curl and those are not interactive.
Both wget and curl do understand that you can kill and resume the download: if you want to change the speed in the middle of a download and you used the -c switch with the --limit-rate=x (for wget) or --limit-rate x (for curl) then you can stop wget or curl and restart it with a different speed.
There is another tool called tc (netem also uses tc) but this will limit the rate for the network interface of the computer. It uses a Token Bucket Filter (TBF). 1 example (more here)
# tc qdisc change dev eth0 root netem delay 100ms 10ms 25%

This causes the added delay to be 100ms ± 10ms with the next random element depending 25% on the last one. This isn't true statistical correlation, but an approximation.

Mind that the issue of not stressing out your system can be avoided with another option --wait=seconds. From the wget manual:

Wait the specified number of seconds between the retrievals.  Use of this
option is recommended, as it lightens the server load by making the
requests less frequent.  Instead of in seconds, the time can be specified
in minutes using the "m" suffix, in hours using "h" suffix, or in days
using "d" suffix.
Specifying a large value for this option is useful if the network or the
destination host is down, so that Wget can wait long enough to reasonably
expect the network error to be fixed before the retry.  The waiting
interval specified by this function is influenced by "--random-wait", which
see.

It is similar to the usage of the Crawl-delay directive in robots.txt.


Server /boot partition is filling up, Can i apt-get remove images inbetween the current and the latest?

Yes, you can un-install all kernel+header packages, except the currently running kernel+header. This is fine even though you might not have ever booted into those kernels. There are no cross-dependencies between the different kernel packages. Each kernel package only has dependencies for it's own version.

So, if you are currently using the "3.2.0-24-generic" version, I would advise you to remove the following kernel packages and the corresponding "linux-headers" packages:

linux-image-3.2.0-36-generic
linux-image-3.2.0-37-generic
linux-image-3.2.0-38-generic
linux-image-3.2.0-39-generic
linux-image-3.2.0-40-generic
linux-image-3.2.0-41-generic
linux-image-3.2.0-43-generic
linux-image-3.2.0-44-generic

I always keep at least two older kernels, in case I ever need to go back.


Can Rhythmbox fetch cover arts from YouTube?

Sort of is the strictest answer.

If you have a closer look at the screenshot, the song title, artist and album are a little messed up.

You need to:

Either right click the track in rhythmbox and change those values that you see to what they are seen within LastFM / MusicBrainz, Or
use an track editor such as Picard or EasyTag and actually change the ID3 tags (if an .mp3 track) for the song title, artist and album

The latter option is better since this actually changes the audio track itself.

The first option changes sometimes does not write the tags to the audio track - it writes it just to the internal database.  Writing to the audio track is only supported for some audio types - think from memory .ogg and .mp3.

Once corrected - make sure you have the coverart search plugin enabled and play the track.  You album art should be found ... again this is dependent that the album art is actually available on LastFm / MusicBrainz.

If the album art is not available then you can update the album art by dragging and dropping a suitable .png/.jpg file onto that white square.

Thus grab a screen-shot from the youtube video and save as a .png and drop the .png/.jpg onto that square.

These Q&A explains further:

How do I change or delete the album cover image shown in rhythmbox?
How can I get Rhythmbox to display the correct album cover art?


Copy files inside a folder iteratively - Bash

If you are not restricted to bash I would look at rsync, you can exclude certain files using pattern matching [https://www.howtogeek.com/168009/how-to-exclude-files-from-rsync/].
as for your Bash script issue,
orig="$folder/dmri.bedpostX" - $folder is an absolute path (starts with / )
did you mean to prefix it with $DIR/ ?


How do I compile & install the newest version of Transmission?

Looking at the ./configure file reveals the following:

##
##
##   MANDATORY for the GTK+ client
##
##

GTK2_MINIMUM=2.22.0

GTK3_MINIMUM=3.2.0

GLIB_MINIMUM=2.28.0

GIO_MINIMUM=2.26.0

Looking at the lucid packages, GTK2 currently is 2.20.  Since GTK2 is so fundamental to all of Lucid applications, I would not recommend that you try to uplift your GTK version (it will require a major recompile of all sorts of stuff).

You cannot simply reduce those minimum version values - I've tried... the compilation will fail because the code requires the newer GTK libraries.

If you want a relatively newer version (v2.33) that will work with Lucid, can I suggest this ppa:

sudo add-apt-repository ppa:transmissionbt/ppa
sudo apt-get update
sudo apt-get install transmission

Run transmission-gtk reveals:


http://www.gattis.org/Work-and-Tech/service-monitoring-and-security/monitoring/smokeping

# Install smokeping and sendmail (the latter is required to be present because of a smokeping bug)
sudo apt-get install smokeping sendmail

# Link in the smokeping apache config (apache2 was installed above as a req for smokeping)
cd /etc/apache2/conf-available
sudo ln -s ../../smokeping/apache2.conf smokeping.conf

# Enable the config and mod_cgi
sudo a2enconf smokeping
sudo a2enmod cgid

service apache2 restart


Try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
apt-get update
apt-get install alacarte

Open it from the Dash by runing Main Menu.

It shows the programs which are installed in the Dash.

You can do these operations from here:

-- Add or remove an application to launch from the Dash
-- Change the command used to launch the application
-- Change the icon
-- Specify if it should be launched from terminal


How to fix non-working USB (keyboard, mouse) after grub menu for full-disk encrypted installation?

This is only half the answer, as it solved the problem at hand, yet introduces another.

For the 3.19 kernel, one needs the linux-image extra:

Since I have the version 3.19.0-31 (see uname -a), I intalled it via:

sudo apt-get install linux-image-extra-3.19.0-31-generic

Then the USB starts working again after grub and makes my external keyboard work.

Yet it broke gdm and Ubuntu booted in low graphics mode, and gnome-shell won't start.

That's why I followed the how to fix low graphics mode, and the relevant part for me was the Intel driver:

  For Intel it is recommended to do the following after doing all the
  steps mentioned above but before installing anything (When you are in
  the Terminal). You can choose Xorg-Edgers which is a PPA that brings
  many improvements, latest video drivers and more:

  Warning: This PPA is very unstable for some things. So do it with that
  in mind.

  sudo add-apt-repository ppa:xorg-edgers/ppa -y

  After that sudo apt-get update and you should receive several updates.
  X-Swat currently does not have Intel drivers in the latest versions of
  Ubuntu.

I also reinstalled gdm and and after reboot, I finally had working system again.


"listen" notification area icon is somehow green-ish

The tray icon (it is not an application indicator) is supposed to be transparent.
There is a bug report on this: https://bugs.edge.launchpad.net/listen/+bug/562621.


How to configure xubuntu panel network to a specifc network interface

I have been looking for a dropdown with network interfaces selection and have overseen the input field. I needed though to lookup the connection wihh ifconfig as the UI network monitor was showing a verbose message like "cable connection #3"

In the picture it's the freetext input field Netzwerkschnittstelle.

So I pasted the adapter name like abc1234abcdef and now it works!


System trashed after recommended Ubuntu updates- what do I do?

Open the virtual console by pressing Ctrl+Alt+F1 while the screen says Running in low graphics mode.
Login with your username and password.Then run the below commands,

sudo rm /etc/X11/xorg.conf
sudo shutdown -r now

OR

  sudo apt-get update
  sudo apt-get install --reinstall ubuntu-desktop
  sudo apt-get install --reinstall unity

After rebooted,you will get back to your original screen.


It appears that it has some pre-built binaries which are linked a newer version of libpng than is available in Ubuntu 12.04.

If you installed to /usr/local though, and didn't uninstall it from there, it will still be using that version if you installed from packages afterward (which probably install to /usr instead). You will need to uninstall the version which was installed to the /usr/local prefix first.


Mouse lags in Draftsight for Ubuntu 64 Bit 14.04

The OP managed to fix the problem themselves, as posted in the original question:

  Go to Nvidia X server settings; OpenGL Settings; and uncheck Sync to VBlank. Reboot, this fixed my mouse problem in Draftsight. -tfsron


How do I move a directory to another internal SDD?

Figure out which sdd Windows 10 is installed on: This can be done using the command sudo lsblk and look for the windows partition.
Next type in sudo mv /PATH/TO/DIRECTORY /mnt/sda{step one}/Users/WINDOWSUSERNAME/


apport-gtk 100% CPU usage on startup on Ubuntu (14.04 LTS)

Take a look and delete all files in /var/crash/:

rm /var/crash/*

I suddenly had the same problem apport-gtk taking 100% on every restart.

Seemed there was a huge (2GB+) bogus crash file in /var/crash/ that couldn't be parsed. After several minutes of waiting I always ended up with this rather mysterious dialog:

This problem report is damaged and cannot be processed. Error('Incorrect padding',)

After I deleted the file in /var/crash/ both issues were gone.


Ubuntu Server 16.04.1 software RAID10 (4*4TB) boot issues

Apparently this seems to work:

Booted USB flash drive in UEFI mode.
1MB Reserved BIOS boot area on each disk.
The rest on each disk as physical volume for RAID, which is then configured as RAID10.
The resulting 8TB partition was configured as an LVM volume group, with two logical volumes. One for SWAP the other as root.
Install GRUB to the MBR

Tested and working with Ubuntu server 16.04.1 and 14.04.4


What language is the Ubuntu Software Center written in?

Go to http://packages.ubuntu.com/
Search for "software center" and click on the one with exact name. It should be software-center

  Package software-center

  trusty (14.04LTS) (gnome): Utility for browsing, installing, and removing software

  13.10-0ubuntu4: all

On the right side, look for External Resources (Home Page[launchpad.net])
In Project information, Browse the code
In root folder, it is clear that it is a Python project.

setup.cfg
setup.py

No Makefile, Autotools, cmake...
src not there, looking for an interesting folder name. softwarecenter seems so, in python folder with __init.py__ could be used as module.
Looking inside then ui folder, it has two GUI interfaces gtk3 & qml
For wrappers used, see app.py in each folder

gtk3

from gi.repository import GObject
from gi.repository import GLib
from gi.repository import Gtk

qml

from PyQt4 import QtDeclarative
from PyQt4.QtCore import QUrl
from PyQt4.QtGui import QApplication, QIcon
from PyQt4.QtDeclarative import QDeclarativeView

Note:

An alternative way, if you don't want to browse the web. You can activate source code repository then download its source using:

apt-get source software-center

(Notice NO sudo)


You should definitely switch your device over to the UBports version of Ubuntu Touch. Even though now updates are published for the 15.04 packages, some important security patches were backported, and all the package sources are changed to old-releases.ubuntu.com in OTA-3, so you can still install packages. A new version of Ubuntu Touch based on 16.04 is also in development and the Nexus 4 will be supported.

To switch to UBports' version of the Operating System, use the UBports Installer. Select the 15.04/stable channel and make sure not to tick the "Wipe" box to keep the data in your home folder. Your root-filesystem will be reset though, so any deb packages you installed before you will have to install again. In the future, you might want to use OTR.


Many screenshots within a limited time saved directly, without asking for a filename

Shutter  has an option to automatically save screenshots, incrementing the filename each time.

Edit ➜ Preferences ➜ Main ➜ Save :

To make Shutter take the screenshots when you hit PrtScr,
go to Edit ➜ Preferences ➜ Keyboard and check the Capture checkbox:

If you don't want the Shutter window to pop up every time you take a screenshot, go to Edit ➜ Preferences ➜ Behavior and uncheck Present main window after taking a screenshot :


LXPanel Volume Control tells me to install alsamixer

Check if xterm is installed, the LXPanel volume control plugin needs it to open alsamixer:

sudo apt-get install xterm


How can I disable the purple bootloader splash at boot?

Try this

sudo mv /etc/init/plymouth.conf /etc/init/plymouth.conf.disabled


How to use ArrayList in Vala using Anjuta as IDE?

Maybe you need to add

--pkg gee-1.0

in src/Makefile.am under VALAFLAGS, then reconfigure and build.

So far, I experienced that I have to add any libraries I use there. Otherwise, it won't find the references.


External display is not working under Ubuntu with a Thinkpad W530

I gave up on trying to use Optimus on my Thinkpad W530.  They key is to enter the Bios Setup, go to Display, disable Optimus, and enable the NVidia card only.

This blog post http://blog.pearce.org.nz/2012/08/enabling-external-monitor-on-lenovo.html has the super quick instructions for adding a PPA to get the current nvidia driver.

I followed those instructions and am happily using multiple monitors again.


Cannot install R in Ubuntu 20.04 in Windows 10

Check your internet connection. The screenshot shows connection failed, so check your internet connection. Here are some tips:

Turn off any VPN.
Turn off Windows Firewall in Windows Security.
Check your router or wifi connection.
Make sure that you have not set a static IP.
Make sure that you dont have an http://archive.ubuntu.com entry in your hosts file that is located under C:\Windows\System32\drivers\etc.
Also, check the /etc/hosts file in your Ubuntu installation.

I hope that this information will be useful to you and other people who are visiting this question.


Installing software for 14.04 from 16.04 or newer repositories

According to https://people.canonical.com/~ubuntu-security/cve/2017/CVE-2017-5618.html you are not affected.

  Package Source: screen (LP Ubuntu Debian) Upstream:   released (4.5.0-3)

  Ubuntu 14.04 LTS (Trusty Tahr):   not-affected

  Ubuntu 16.04 LTS (Xenial Xerus):  not-affected

  Ubuntu 17.04 (Zesty Zapus):   not-affected (4.5.0-3)

I do not know if you can install anything newer than 4.2.1-2~ubuntu14.04.1 , but if the backports team says no, then it is unlikely you can upgrade as I would assume they know that status best.

You could try pinning and / or installing from source code. Pinning is not as easy as it sounds and can break your system (I generally advise pinning to advanced users only)

There are examples of pinning and how to use pinning here:

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

In your case, skipping from 14.04 to 16.04 or higher, and considering backports team advises against upgrading to a higher version, I would advise against it as well.


EDIT:
first do:

modprobe -r psmouse
modprobe psmouse

If it will not help, boot into grub (by holding shift) and perform RAM check.
another possible solution would be reinstalling drivers:

sudo apt-get --reinstall install xserver-xorg-input-mouse


It could be that your LiveUSB is corrupt. What software did you use to create the LiveUSB? Try using UNetBootin. Click on "Try Ubuntu without making any changes" in the menu.

If it still does not work try using a liveCD instead.


Packages having unmet dependencies: Broken Packages

Try removing gcc and install it again:

$ sudo apt-get remove gcc g++
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential
$ gcc -v


According to blogs recomentation about this error, I edited de line GRUB_CMDLINE_LINUX_DEFAULT in
sudo gedit /etc/default/grub
adding the word nomodset,    "nomodset quiet splash"
sudo update-grub
And after reboot ubuntu works.!!
But I do not understand why this problem?