Can't install several development libraries

You should try cleaning up your packages and package list. Try the following commands:

sudo apt-get update
sudo apt-get autoremove
sudo apt-get install -f

The first command will update your package list, the second one will remove all packages that are no longer necessary and the third command will install all packages that are needed by other packages, but not yet installed.


Thanks gio900. But, I have figured it out now. Those were the bluetooth paired devices over which networking was allowed.


Try through a terminal

$ gksu pluma /var/www/html/cms/drupal8/core/themes/bartik/bartik.theme


My user password is not accepted when connecting to a wireless network

The root user does not have a password by default in Ubuntu. Instead, your normal user gains root privileges through sudo or PolicyKit, entering the normal user's password.

You may have forgotten your user's password, or your user may not have sufficient rights to gain root privileges. If both are true, see this question: How do I reset a lost administrative password?

You shouldn't need root privileges to connect to a wireless network, though. Make sure "Available to all users" is unticked in the settings of the wireless connection.

Like Ari Malinen said, your user also has a keyring with a different password. By default, it is set to the same password as the user, but if you change the user's password, the keyring's password won't change with it. Run seahorse to view your keyring.

Another issue might be that you are actually being asked for the wireless network's password, which is completely independent from your user's password or your keyring password.


Ubuntu broken: Cannot get machine working or retrieve data?

Seeing you have other machines, I would try to install Ubuntu onto a external hard drive and then boot the problem machine with it.  If it sees your data, you can just copy what you want to the new hard drive, make sure it is big enough.


You need to install the package, which contains header AL/al.h - use packages.ubuntu.com with sudo apt install libopenal-dev.

But if you need the gosu Gem to be compiled successfully, the installation of libopenal-dev is not enough.

You need to consult official documentation to install other build-dependencies with:

# Dependencies for both C++ and Ruby
sudo apt-get install build-essential libsdl2-dev libsdl2-ttf-dev libpango1.0-dev \
                     libgl1-mesa-dev libopenal-dev libsndfile-dev libmpg123-dev \
                     libgmp-dev

# To install Ruby itself - if you are using rvm or rbenv, please skip this step
sudo apt-get install ruby-dev

# If you are using a Ruby version manager (i.e. rvm or rbenv)
gem install gosu
# If you are using system Ruby, you will need "sudo" to install Ruby libraries (gems)
sudo gem install gosu


How can I access the files on my Ubuntu laptop from my phone if I am tethering?

Use Python module to run a basic HTTP server and use a web browser on mobile phone to access the localhost PC via USB tethering.

Overview of setup and usage

A mobile phone is connected to localhost PC via a USB cable.

Setup on mobile phone (USB tethering is enabled)
Setup on localhost PC (see Part A.)
Access from mobile phone (see Part B.)

When user has finished access, go to localhost PC and press Ctrl+C to stop the HTTP server that is running in the terminal. Or simply closing the terminal may terminate the process as well.

Part A: Setup on localhost PC

Ensure that Python is installed on the localhost PC (Run python --version in a terminal to check the version, which will affect step 3).

Open a terminal
First, check the IP address of localhost PC using ip or ifconfig command (whichever works). The following example output shows 192.168.XX.YYY is the IP address that has been assigned to a localhost PC via USB tethering.

$ ip addr show usb0
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether **:**:**:**:**:** brd ff:ff:ff:ff:ff:ff
inet 192.168.XX.YYY/** brd 192.168.XX.ZZZ scope global usb0
   valid_lft forever preferred_lft forever
inet6 ****::****:****:****:****/** scope link
   valid_lft forever preferred_lft forever

$ ifconfig usb0
usb0      Link encap:Ethernet  HWaddr **:**:**:**:**:**
          inet addr:192.168.XX.YYY  Bcast:192.168.XX.ZZZ  Mask:255.255.255.0
          inet6 addr: ****::****:****:****:****/** Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          ...

Then, start an HTTP server using Python module with any available port number i.e. 31415 (Easy to remember as 'pi'). The following example shows http.server module is used for Python 3, otherwise use SimpleHTTPServer module for Python 2.

$ python -m http.server <port_number>
Serving HTTP on 0.0.0.0 port ***** ...

Additionally, if localhost PC has enabled firewall, add a new rule to allow incoming connection from the port number and IP address (This would be another set of question and answer). Else temporarily disable firewall would just work for simplicity in exchange of low security.

Part B: Access from mobile phone

Ensure that USB tethering remain enabled; No further configuration.

Open a web browser
Go to http://192.168.XX.YYY:<port_number> in which 192.168.XX.YYY is the IP address used by localhost PC and <port_number> is any available port number on localhost PC.
The web browser will show Directory listing of current working directory, which by default is Home directory of current user.

User can now access any files and directories in the current working directory for browsing and download purpose.

Limitation and compatibility

An HTTP server will allow read-only access, which is good enough for browsing and download purpose. User will not be able to modify files on the localhost PC. Should user need both read and write access, then use other method (Perhaps using SFTP or SSH, which I do not know).

The HTTP server method will work as long as USB tethering is enabled (IP address is known), regardless of Airplane Mode or Cellular Data is turned on or off. Likely work for mobile phones with any Android version (not sure for other mobile operating systems).

Tested using Python 2.7 and Python 3.4, with UFW enabled and disabled on Xubuntu 14.04 and USB tethering enabled on Android 7.1.1.

References

SimpleHTTPServer — Simple HTTP request handler from Python 2 documentation.
http — HTTP modules from Python 3 documentation
How do you decide what port to use? on Stack Overflow has discussed what port to use.
How to check opened/closed port on my computer? on Ask Ubuntu has mentioned commands to check opened or closed port on computer.

Related posts on SE network

How do I share a folder with another Linux machine on the same home network? on Ask Ubuntu has one of the answers that mentioned SimpleHTTPServer but somewhat lack of explanation.
How can I access my desktop computer when its tethered to my Android phone? on Super User has discussed port forwarding using iptables.
How can I access my localhost from my Android device? on Stack Overflow has mixed answers that deal with emulator and real device.


mozart-stdlib : Depends: mozart (>= 1.4.0) but it is not installable

First try to install emacs23 by using sudo apt-get install emacs23:i386 then re-run that command.

Please make sure you don't have any PPAs that might contain versions of packages that doesn't fit the dependencies.


Can't get past splash screen on 13.10 boot

You should try logging in a terminal session (Ctrl+Alt+F1 to get to it) and read the content of /var/log/Xorg.0.log to get some more clue regarding your problem.

Also, once you get to the terminal session install the package jockey-common and then run jockey-text -l to get a list of the available drivers and the one that's been used.


To avoid searching your PATH every time an executable command is called, bash saves previously used commands in a lookup table, or hash.

If you subsequently move the executable or install another version elsewhere on the PATH, it is sometimes necessary to force the shell to 'forget' the old location - running help hash in the bash shell:

     -r                forget all remembered locations

or to forget just a single command

hash -d <command>

In this case, you seem to have had a previous version of pytest at /usr/bin/pytest: running hash -r pytest forced the shell to re-examine your PATH and find its current location /usr/local/bin/pytest.


Gray desktop after updating XFCE on Xubuntu

I spent hours trying to upgrade and downgrade packages, but the solution appears to have been a lot simpler than that. While researching, I found this question. The specific answer that helped is this one. All I did was:

sudo apt-get install xfdesktop4

and after a reboot, the icons and wallpaper appeared on my desktop. I hope this will be helpful for users experiencing the same problem in the future. Cheers.


I've exactly the same pc stick and I solved the issue like this:
In the Windows partition search for the file c:\Windows\Sytem32\drivers\4345r6nvram.txt; then copy it to /lib/firmware/brcm/brcmfmac43455-sdio.txt in your Linux distro. Unload the module (rmmod brcmfmac), then load it again (modprobe brcmfmac).


Remote terminal into a ubuntu system via internet

As suggested in the comment a reverse SSH connection is probably the easiest if your computer has a internet routeable IP (it seems like you're saying you do).  If you go down this route, you'll want to run it inside an infinite while loop, so that if the connection dies, it will start up again.

However, if your machine isn't directly on the internet (eg. have an internet routeable IP) or you don't want to allow your other computer to login to your machine, here's a couple other ideas:

If the other router has UPnP turned on, you might be able to use a tool to send a upnp request to the router to map an external port to a port on the internal ip.
Setup a Tor Hidden Service.  This is a pretty reliable method that doesn't rely on router configurations, but it will be slower.


Storage Groups are a streaming method of transmitting material to a frontend, meaning they don't provide block-level access to the file in question. An ISO is a disk image, and libdvdnav/libdvdcss, the libraries used to view DVDs/DVD images, requires block-level access. See MythVideo - Disadvantages

This is resolved in MythTV 0.24 and later


Problem mount error 13 trying to mount NAS share

EUREKA !!!

Because my NAS is a Netgear reaadynas 1100, it's running it's own CIFS unix system. The username and password I had to use are NOT of the domain, but actually of the NAS system.

So I changed to the NAS admin user + password and all is working !!


can you try it with ssh -v username@ip ?


Repeating error: Can't install desktop-icons@csoriano

I ran into the same issue, and fixed it by manually rebuilding the desktop-icons@csoriano folder using their git repository.
Apparently you cannot really remove desktop-icons@csoriano and other extensions in /usr/share/gnome-shell/extensions/ from the system. They are expected by Ubuntu 20.04 to exist globally. It seems to me like their changes can only be actively overwritten by other (global and local) extensions. Another approach whould be rebuilding a "modified" version of the extension that simply does nothing.
Here are the steps to fully reconstruct the original /usr/share/gnome-shell/extensions/desktop-icons@csoriano/ after deletion:
# Corona-like I stayed at home for this. You can also do this in another location, doesn't matter much for the following steps...
cd ~
# Install the building tools used by the makers of desktop-icons@csoriano
sudo apt update
sudo apt install meson git
# Clone their repository to ~/desktop-icons/.
# MAKE SURE there is no file or directory in home called "desktop-icons"!
git clone https://gitlab.gnome.org/World/ShellExtensions/desktop-icons
# Enter the cloned repository.
cd desktop-icons
# Prepare building the extension using meson.
# This will set the location of the build in it's config. So even if /usr/ is a root location, we don't need sudo for now.
meson --prefix=/usr/ --localedir=share/gnome-shell/extensions/desktop-icons@csoriano/locale .build
# Build the extension. You can execute this using sudo, otherwise you'll be asked for the root password by ninja.
ninja -C .build install

# We're technically done. Now let us clean up what we needed for the above.
# Remove the cloned repository.
rm -rf ~/desktop-icons/
# Remove building tools. You can keep these packages if you like, but they aren't needed for the extension anymore.
sudo apt remove meson git
sudo apt autoremove

# Apply changes (you might do that after you continued reading this post to the end).
# Alternatively you can just restart gnome, for that see https://stackoverflow.com/q/46565019/7638119
sudo reboot

For more information and if you got in trouble while following these steps, visit the official repository and maybe their issue page.
Here are the steps to modify the extension so that that it simply does nothing:
cd /usr/share/gnome-shell/extensions/desktop-icons@csoriano
# empty its entry script
sudo mv extension.js extension.js.old
sudo touch extension.js

(This might causes issues in future updates of Ubuntu 20.04. To undo this modification, just run cd /usr/share/gnome-shell/extensions/desktop-icons@csoriano; sudo mv extension.js.old extension.js.)

You mayhaps got in this situation because you followed the official workaround to fix the Ubuntu 20.04's desktop icons by installing nemo alternatively, like I did. I highly recommend you to undo this and wait for an official patch. Updates on a patch can be seen here on launchpad.net. Other workarounds can be seen there as well.
If you want to uninstall nemo and wait for an official patch of the issue, do the alternative installation in reverse:
# Remove nemo from local autostart.
rm ~/.config/autostart/nemo-autostart-with-gnome.desktop
# Remove the nemo package.
sudo apt remove nemo
sudo apt autoremove

# Apply changes.
# Alternatively you can just restart gnome, for that see https://stackoverflow.com/q/46565019/7638119
sudo reboot


Windows disappeared after installing Ubuntu encrypted

To answer the OP question: No, windows is not encrypted. Either it has been wipe out by the ubuntu installation or it is still there waiting to be boot up.

You need to look at other thread to look for your windows and how to enable booting it


vgaswitcheroo not selecting discrete card

this worked for me (hybrid with i915 - radeon redwood (5000), ubuntu 11.10 64, unity)

most laptop "hybrid equiped" boot with both gpu ON (could explain why batteries last so few with a fresh install of ubuntu and default GRUB settings), but with IGD (i915) connected (seems to be by default with no BIOS tweak)

Well, lets say your're allready logged in Unity (or Gnome):

Just want to power off DIS to save your batt (you'll probably gain about 30 to 40%+ time) ? issue that in a terminal

echo "OFF"|sudo tee /sys/kernel/debug/vgaswitcheroo/switch

But I can guess your're waiting for more than that... switch from IGD to DIS!

Ok, read : first logoff unity... yes, you need!

open another terminal with

CRTL-ALT-F1

login and stop lightdm (on which runs the Unity shell)

sudo service lightdm stop

connect discret gpu (right after pressing ENTER, your screen may flicker... that sounds good! or it may ... just freeze! depend your setup.

echo "DDIS"|sudo tee /sys/kernel/debug/vgaswitcheroo/switch

verify the status

sudo cat /sys/kernel/debug/vgaswitcheroo/switch

should get

0:IGD: :Off:0000:00:02.0
1:DIS:+:Pwr:0000:01:00.0

then what you need is start the lightdm-Unity GUI

sudo service lightdm start

At that point you should get a regular Ubuntu 11 login screen, if not, try pressing

CRTL-ALT-F7 and login running on the DIS GPU

if it don't work, your computer may have frozen. Try back

CRTL-ALT-F1

to get the terminal and restart.

If you succeed to connect and use your DIS GPU, you will switch back to default both gpu ON with IGD connected setting next time you'll restart...

That's a really poor hybrid GPU switch support... but it works. Should be possible to force your prefered GPU setting during boot, just after vgaswitcheroo is available and before lightdm starts.

Better could be with GRUB and menu choice... if anyone knows how to?

Greater could be a script to run inside Unity... I'm afraid it'll be hard to do, because lightdm must be restarted!


How do I add a custom context menu for 'git gui' in Nautilus?

You need to markup your working directory. This is how I would do it:

Path: /usr/bin/git

Parameters: gui

Working directory: %d/%b

This will use the current directory, then the basename of the directory selected.


Protected Videos not Playing Ubuntu 13.10 (Amazon Prime)

I found this answer over at http://ubuntuforums.org/showthread.php?t=2144347 and it worked like a charm in Chromium.  I haven't tested it in Firefox.

Basically, you have to manually download and install HAL, since it doesn't exist in the 13.10 repository.


How do I fix my package state after the installation process (dpkg) was interrupted?

Run the command sudo dpkg --configure -a in terminal, just like the error message says to do.


Gyachi is no longer maintained, and will be rather difficult to install on current versions of Ubuntu/Linux in general. You would be better off using Empathy or Pidgin.


Installing lvm on luks by "something else"

I have successfully installed but every time I update the system, Ubuntu installs the signed version of grub and it causes to unsuccessful boot.  Is there any way to make Ubuntu not install the signed version of grub?


Missing dependencies - Can't insall Mutate launcher

The package: libcheese7:

Description-en: tool to take pictures and videos from your webcam - base library
 A webcam application that supports image and video capture. Makes
 it easy to take photos and videos of you, your friends, pets or whatever
 you want. Allows you to apply fancy visual effects, fine-control image
 settings and has features such as Multi-Burst mode, Countdown timer
 for photos.
 .
 This package contains the base shared library.

The package libcheese-gtk23:

Description-en: tool to take pictures and videos from your webcam - base library
 A webcam application that supports image and video capture. Makes
 it easy to take photos and videos of you, your friends, pets or whatever
 you want. Allows you to apply fancy visual effects, fine-control image
 settings and has features such as Multi-Burst mode, Countdown timer
 for photos.
 .
 This package contains the base shared library.

Open the terminal and do the following:

sudo apt-get remove --purge libcheese-gtk23 libcheese7
sudo apt-get update && sudo apt-get dist-upgrade

Then install whatever you're trying to install. To check if those packages were installed back automatically during installation process simply run:

sudo apt-get install libcheese-gtk23 libcheese7


I initially tried editing /usr/share/applications/vim.desktop. I commented out #Exec=vim %F and added Exec=xfce4-terminal -e 'vim %F'. This worked for a while and then it started opening both Xterm and Xfce4 Terminal.

Instead in Thunar I right clicked on a txt file. I went to Properties > Open With: > Other Application > Use a custom command. I added xfce4-terminal -e 'vim %F'. This now works perfect.

To access the .desktop file you just created you can go to ~/.local/share/applications/. In the file you will see Exec=xfce4-terminal -e 'vim %F' %f. You can remove the %f if you'd like. Mine initially used a folder icon in Thunar. I changed it to use the Xfce4 Terminal icon instead by adding the line Icon=utilities-terminal.


Refind not working on dual boot macos/ubuntu

You've run into what I call a "boot coup" -- see this page of the rEFInd documentation for details. You may be able to get rEFInd booting again by typing sudo refind-mkdefault in an Ubuntu Terminal window. If that doesn't work, you could try re-installing rEFInd from either OS X (preferred) or Ubuntu (if necessary). The page referenced earlier provides additional methods of recovery.

Given the order in which you installed software, you may want to install the ext4fs (or whatever filesystem holds your kernel) driver for EFI, as described on the rEFInd drivers page. As it is now, chances are this driver isn't installed, which means rEFInd will boot Ubuntu only via GRUB; but a more direct boot of the kernel is sometimes more reliable and easier to maintain. To do this more direct boot, though, the EFI filesystem driver is required.


Is there a way to monitor or document screen time?

There is also an app called ActivityWatch that may be interesting.


No Wifi on Acer Aspire E5 573 on any Linux Platform

It appears that you need but are missing the required firmware. With a working internet connection by ethernet, tethered or whatever means possible, open a terminal and do:

wget https://github.com/kvalo/ath10k-firmware/archive/master.zip
unzip master.zip
sudo cp -r ath10k-firmware-master/QCA9377 /lib/firmware/ath10k/
sudo mv /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin_WLAN.TF.1.0-00267-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin

Reboot and your wireless should be working.


Is it possible to view Google Chrome bookmarks and history from the terminal

The Bookmarks is a UTF-8 plain text file  in JSON format:

$ file ~/.config/google-chrome-beta/Default/Bookmarks
.config/google-chrome-beta/Default/Bookmarks: UTF-8 Unicode text

google-chrome-beta

Depending on your version of Chrome
Default

Depending on your profile

To view the bookmars use this command:

less ~/.config/google-chrome-beta/Default/Bookmarks

or with jq, a lightweight and flexible command-line JSON processor:

sudo apt-get install jq

and run with this command to see the whole structure:

jq '.' ~/.config/google-chrome-beta/Default/Bookmarks

or with this command to see an entry, eg. checksum:

jq '.checksum' ~/.config/google-chrome-beta/Default/Bookmarks

or all bookmarks in the bookmark bar:

jq '.roots.bookmark_bar.children' ~/.config/google-chrome-beta/Default/Bookmarks

The History is a binary file in SQLite format 3:

$ file ~/.config/google-chrome-beta/Default/History
.config/google-chrome-beta/Default/History: SQLite 3.x database

google-chrome-beta

Depending on your version of Chrome
Default

Depending on your profile

To query the database, Chrome must be completely closed. Or you have to  create a copy of the file and use that copy.

To view the history you need to install sqlite3:

sudo apt-get install sqlite3

Start sqlite3 with:

sqlite3 ~/.config/google-chrome-beta/Default/History

and list all tables:

sqlite> .tables
downloads             meta                  urls
downloads_url_chains  segment_usage         visit_source
keyword_search_terms  segments              visits

or to see all downloads:

sqlite> SELECT * FROM downloads WHERE 1;

Alternatively, a GUI may be used:

sqlitebrowser

sudo apt-get install sqlitebrowser

and start with:

sqlitebrowser ~/.config/google-chrome-beta/Default/History

sqliteman:

sudo apt-get install sqliteman

and start with:

sqliteman ~/.config/google-chrome-beta/Default/History


how tell Thunderbird to open links in a certain Firefox instance?

I found a fix at the link below. The additional instructions in comment #4 were necessary for me and hopefully will make it work for you.

http://hsmak.wordpress.com/2009/09/03/howto-force-thunderbird-to-open-links-in-firefox/


I would think that all operating systems and most bootloaders would work with bios, but the question is that would your hardware work with coreboot, that, I do not know.
It goes like this

OS ->Bootloader ->Bios ->hardware

so I think the OS just needs the BIOS to boot up the bootloader, so the OS itself could load. So the OS is bios-agnostic.


How do you make my root system behave like a live system?

You can still use a usb and get fast speed.

Install Ubuntu to a usb drive, then install overlayroot. overlayroot allows you to toggle booting into ram or with persistance. Persistance will be slow (like you've experienced), but booting into ram will give you speed you want.

I would use gparted to make a separate partition on the usb install so you can save documents.

Grab overlayroot and configure it so you boot into ram:

sudo apt-get install overlayroot
sudo pico /etc/overlayroot.conf

With the latter file open, page down all the way to the end. There is a pair of empty quotes. Add tmpfs between them. Then reboot.

Now you will be booting into ram each time. If you want to save things, save them on a partition on the usb or another drive. If you want to customize the user account, you must do this:

sudo overlay-chroot
pico /etc/overlayroot.conf

Page down to end of file and remove tmpfs from the quotes leaving the quotes empty: ""

Reboot and then customize user account, the turn tmpfs back on when done and reboot.

If you want to save all modifications for the user at the end you can do this to.

You have to create a user account. At the end of each live session, just:

cp -purv /home/user /media/persistant/drive/

When you boot up again:

cp -purv /media/persistant/drive/ /home/

Create the user using the command drive and make sure you use the home folder you copied over.

If you create a script it will be much easier each time.


How to send a file from my computer to my phone using KDE Connect?

Open KDE Connect on the panel, and from there you will see a small folder icon on the right hand side , click on it, it will open you files on your phone.

If you are running Dolphin file manager split the screen so that you have your android on one side and your computer files on the other side. Drag-drop, copy-paste and have fun.

I found that I had to restart my phone after copying the files over to my phone to actually show up on my android system, but copying from phone to computer was instant.


Wow, it's been so long that I forgot I asked this question.

I tried Debian and I couldn't even install it because it froze so much. I was able to install Arch but it still crashed somewhat often. Long story short, I believe that I've fixed the freezes by properly configuring systemd and I am running stable.

EDIT: Previously I hadn't been using a bootloader, I had only used my motherboard's function of changing boot devices as I had usually only used Windows due to its stability. Information on systemd: https://wiki.ubuntu.com/systemd


I don't believe you should to start xboxdrv as a service. Instead, just type from a terminal

sudo xboxdrv

and you should be able to  test it.
You may need to run

sudo rmmod xpad

first.

When you want to use it for gaming, mind that you run

sudo xboxdrv --silent

instead, as printing the events to a terminal hogs a lot of CPU.

Note on what you were trying to do: I have xboxdrv successfully installed, but running

systemctl enable xboxdrv.service

gives me

Failed to enable unit: Unit file xboxdrv.service does not exist.


When i tried to uninstall ubuntu i accidentally uninstalled the incorrect version

First of all you have to install windows8 before installing Ubuntu just to avoid boot problems.

boot to ubuntu using Live-usb then, install os-uninstaller and uninstall the OS you want to remove. after that go ahead like this.

open the terminal by pressing ctrl+alt+T

then copy past this commands to it one after another,

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

and by this you will install a tool called boot-repair.

open boot repair from dash and you'll get this window

choose the recommended repair and follow the steps.

Note you have to be connected to they Internet when using boot-repair.

Note2 if you still want to install windows8 after Ubuntu, and grub goes missing do the steps above to fix it.


How do I download drivers for Broadcom 4311 802.11 from another PC and install them on 13.04?

You can either download the source .tar.gz from the Broadcom website or the in my opinion much better way is to download the .deb with:

apt-get download broadcom-sta-common

It is then in the directory from where you called it and you can copy it onto the flash drive.

If you have no other linux available use packages.ubuntu.com to download the .deb.

On your other machine simply open the .deb with the Software Center or use

sudo dpkg --install /path/to/your/XX.deb


Once you have installed a package, it is possible to see what files that package has installed on your system.  You can do this:

with the graphical synaptic package manager:

install synaptic (it is not installed by default).  Use apt-get install synaptic, or install it through Software Center. I like it better than the Software Center, but YMMV.
finding the package in question (try typing the name or a keyword in the search bar)
right-click on an installed package (green square next to package),
select Properties
click on the "Installed Files" tab

with command line tools (see this question)

(once) install apt-file: sudo apt-get install apt-file
(once) apt-file update
(for any package) apt-file list

Yes, the packages in the software center are (edit: mostly) the same as those in apt-get.  The repositories that ubuntu gets software from are configured in a common location (System Settings -> Software & Updates).  apt-get, synaptic, the Ubuntu Software Center, etc... all use that system.

Edit: The dpkg subsystem is what is actually responsible for installation and removal of packages.  Synaptic, the Software Center, and apt-get all use this to actually perform operations.  This means that these three methods are all views into the same set of data about installed packages.
the only caveat: the Software Center can have apps in it that cost money, and synaptic and apt-get will not be able to install these packages as they have no payment mechanism in them.  There thus are apps available in the Software Center that are not available by synaptic or apt-get.  I believe (but am not 100% positive) that Software Center still uses dpkg under the hood to install these packages after they have been paid for, meaning the apt tools and synaptic will see them at that point.
Just for clarity, it is of course possible with root access to modify the system any way you wish, including manually installing software that is not contained in a .deb package file. Software installed outside of the dpkg system in this fashion will not be visible by any of the package management tools I mentioned.


Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.) With UEFI press (perhaps several times) the Esc key to get to the GRUB menu. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GRUB screen, and then pressing Shift is unnecessary.

The timing when to press the left Shift key can be tricky, so sometimes if you miss it you need to try it again. If that doesn't work try the answers to I can't get the GRUB menu to show up during boot.
From the GRUB screen select Advanced options for Ubuntu and press Enter.

A new purple screen will appear showing a list of kernels, which includes options of booting the kernels normally or in recovery mode.


After a little of learning how to use GnuPG, it appears that this 8719FCE4 key has not been updated on keyserver.ubuntu.com since it expired therefore the only solution is to wait for the key to be updated :

$ gpg --batch --search-keys --keyserver keyserver.ubuntu.com 8719FCE4
gpg: searching for "8719FCE4" from hkp server keyserver.ubuntu.com
q(1)    home:stevenpusser OBS Project <home:stevenpusser@build.opensuse.org>
      2048 bit RSA key 8719FCE4, created: 2016-09-28, expires: 2018-12-07 (expired)
Keys 1-1 of 1 for "8719FCE4".  gpg: Sorry, we are in batchmode - can't get input


failed to sudo update-initramfs -u -k 4.2.0

After you have unzipped the source, cd to the source dir and type as normal user:

export CONCURRENCY_LEVEL=4
fakeroot make-kpkg clean
fakeroot make-kpkg --initrd kernel_image kernel_headers

Then install ../linux-image and ../linux-headers packages with sudo dpkg -i

However, mine  4.2.0 gives after grub:

kernel panic: not syncing: init killed

Maybe there is some incompabilites in initrd or elsewhere in tools with Debian Stretch with kernel 4.1.3.


How to change the date/time format to English, while preserving my own country's regional settings?

Open your ~/.profile file for editing, add this line:

export LC_TIME=en_DK.UTF-8

and relogin. That will result in date and time formats in accordance with ISO 8601. If you like those ambiguous American date formats, set en_US.UTF-8 instead, etc.


What's the statue of Wifi Direct in Linux/Ubuntu

Wifi Drivers supporting Wifi Direct are available for ubuntu as well.For details see the question How to get wifi direct( wifi p2p) on my HP DM1 laptop?


How do I prevent git from requiring sudo on every git command

A couple of things are going on here:

When you sudo git checkout ..., all those files are owned by the root user and root group. With the standard permissions, that's why subsequent alterations to those files require you be root.
/var/www/ by default is owned by www-data group. Something your user is not by default.

The easiest way to write in /var/www/ is to just add your user to the www-data group. You can of course, change the directory to be owned by your user but this can have some nasty knock-on effects if you're not pre-empting them.

You'll need to re-log in after adding your user to the www-data group.

In your case specifically, you're going to need to fix your current mess of root-owned data. You can either delete it as root (and re-checkout) but if you have unsaved work, it'll just be cleaner to pull everything back to your user. The following example is extremely lazy and assumes what we're talking about is the only thing in /var/www/:

sudo chown -R www-data: /var/www/


Bumblebee : Module bbswitch could not be loaded

bbswitch is the kernel module that is used for disabling the nvidia GPU. Be sure to install the Bumblebee PPA as described in Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?. Installing Bumblebee from that PPA also retrieved the bbswitch-dkms package. If you do have this package installed, the likely reason of failure that the kernel headers for the installed kernel are missing.

In that case, update your kernel including headers:

sudo apt-get update
sudo apt-get install linux-headers
sudo apt-get dist-upgrade

Reboot. If the problem still persists, try explicitly installing the headers for the loaded kernel:

sudo apt-get install linux-headers-$(uname -r)

If the module is still not loaded, try removing bbswitch completely and reinstall it:

sudo apt-get purge bbswitch-dkms
sudo apt-get install bbswitch-dkms


What are the features of Crossover Office?

Original answer:
The main thing you get for paying for this software is support. Commercial software has better support because of course, you paid, so they have to give you something worth paying for, so to speak. Just a note though, it is not run on wine, but rather based on WINE, and developed from the same code, with some additions and gui features to make it easier for inexperienced/casual users to install software on WINE with it.
You could of course do quite fine without it (I do), or you may require it for the greater support it offers (this depends on your skill level etc).
One more thing, paying for such a product as CrossOver Office will support the development of WINE, so it is one of those things where even though you don't have to do it, you do it cause it's for a good purpose =).

Updated answer:
Is it worth paying for? Yes, and no. If I'm very honest here, it is worth it if you want to help the development of WINE, and it is worth it if you need the support. Yet, (see below) there are alternatives, as always.

In response to your comment:
You can try various tools for running applications that don't run well out of the box with WINE, for free.
The best in my personal opinion (and most maintained) is PlayOnLinux.

PlayOnLinux main window.

PlayOnLinux install window.

You will find a pretty simple gui for installing many different applications on wine (mostly games, unfortunately). If you can't find an application in that list, then you can check the playonlinux forum, and see if there is a script download for it. If you need further, direct assistance, there are several places you can go, including winehq, where you will find a good support forum, ubuntuforums.org, or even here, AskUbuntu.


Why can't I create a Wi-Fi hotspot with Ubuntu 11.10

Your lshw output says that the  brcmsmac driver is being used.

AP support is one of the TO-DO features for this driver, so this probably means that, unless some other driver (from Broadcom?) offers the AP feature under Linux, you likely can't create APs under Linux with your card.


Can't access internet in KVM virtual machine running RHEL

So finally the issue is resolved.
go to /etc/sysconfig/network-scripts/ifcfg-eth0 and edit the file, enable eth0 onboot. And then run chkconfig network on . While I tried doing the same by adding a network interface at the VM app UI : Edit > Connection Details > Network Interfaces, and tried adding eth0 to the network interfaces, I kept receiving errors, and it couldn't be moved to active state. But it was achieved from the terminal. So now my question is, why was I not able to make it happen from the GUI itself?

EDIT : Now again, I faced the same challenge with RHEL6.0, where in the /etc/sysconfig/network-scripts/ifcfg-eth0 file the settings for BOOTPROTO ; and interface type were missing so entered those as BOOTPROTO=dhcp and TYPE=Ethernet and it is also working now.


Solution :

libfontconfig1:i386 libx11-6:i386 libxrender1:i386 libxext6:i386 libgl1-mesa-glx:i386 libglu1-mesa:i386 libglib2.0-0:i386 libsm6:i386

 Depends: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.6)
                        Recommends: libgl1-mesa-dri:i386 (>= 7.2)

&

http://community.linuxmint.com/tutorial/view/1710


Webcam light turns on, when I use media applications like Banshee and Rhythmbox

These programs are activating the webcam in order to get some information and do a light hardware scan. There isn't much you could do about it, but you could ask them in a bug report to provide an option to stop hardware checking every time they load.


it seems like your dnscrypt-proxy -E -R cisco-ipv6 need networking and your init script running before network and other needed service so write you script like

start on started networking

or

start on network-interface-up INTERFACE=eth0

if your service need file system then you can write

start on filesystem and started networking

and
if this depend on other service also then include

start on started other-service

you can learn from here


How do I turn off thumbnails in the file manager?

Install dconf-tools , then launch the dconf-editor

And then navigate to:

org.gnome.desktop.thumbnail-cache

From there you can set the number of days the system will keep thumbnails around.

Alternatively, you can achieve the same via the command line by running this command:

gsettings set org.gnome.desktop.thumbnail-cache maximum-age 180

replacing 180 with the desired amount of days.


Quake Live under Firefox 17, Ubuntu 12.10

I'm having this problem too. I don't have specific answers to both of your questions but I can suggest a workaround by using qlprism (http://www.qlprism.us/). This works beautifully for me (I added a shortcut to quake live on my Unity bar).


Mixed criticality system based on Ubuntu

I don't think that there is something Ubuntu-specific. The tool for that is cgroups of the Linux kernel.

Try and see if it is enough.


In reality I would more go with Fusion because the concept definitely will pay off as the software gets better.

However, as you say, Atom has the better CPU - but there is a catch. Atoms are not very good at handling large loads, so if you will be using a lot of tabs, you might find some trouble there. Also, there are some higher end Fusion APUs with more power (according to what I read) than equivalent Atoms.*

I would suggest you wait a little (a few months?) and get a system such as Acer's new ultrathin (forgot the name sorry) with more powerful hardware (for example, Core i3 or i5, and possibly stronger graphics). That would be a better fit for you go forward, especially in light of the improvements/additions to the software stack that are sure to come. Or you could get a good system from System 76 or ZaReason with good specs and a small size, without compromising too much.

* See this link:

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


GlassFish 5 doesn't support JDK 9 yet. Work on supporting JDK 9 is ongoing and will be part of the version 5.0.1 - see the notice at https://javaee.github.io/glassfish/download

Payara Server, an actively maintained fork of GlassFish, runs on JDK 9 since version 5 - Alpha 2. This is a pre-release and not yet fully tested but if you need JDK 9 support it's probably the only released server that does it until GlassFish 5.0.1 is out.


Yes, there is a real possibility. gparted has been tested on many systems and drives, but it does occasionally fail. Boot failure is not the worry, as grub can be reinstalled from a livecd. The potential problem is your partition table or file system being corrupted. You should regularly backup important data anyway, in case you have a drive crash, or house burn down, etc.


Windows 7 Install USB won't boot after installing Ubuntu

I think that Startup Disk Creator doesn't work well with Windows.

You can try creating the usb via winusb as instructed here : How can I create a Windows bootable USB stick using Ubuntu?


Blank Desktop on Lubuntu 14.04 - But works with guest account

If you are getting a complete black, as it was in my case. Try pressing the "connect to projector" button(s) on your keyboard.
Your system may have been switch to projector only mode.


Can't control Ubuntu UI - because of hidden layer

I really don't know what happened to Ubuntu default Gnome UI...I tried to reinstall it - but it didn't help anything...the weird issue described above persists.
I solved the issue by installing and switching to: Ubuntu-Mate-Desktop.


Ubuntu 15.10. Failed to start LSB: AppArmor initialization

The solution to this problem was to boot in recovery mode, and then select the recover option.

I have no idea why the problem occurred.


Google marks Email clients as less secure way of accessing Gmail. The most secure way would be using latest browser.

All you have to do first login in Google and visit Less secure apps  and select Turn ON
After this try to setup Gmail account in Kmail again


Screen rotation on Ubuntu 18.04 LTS, Lenovo Ideapad Miix 510

Occasionally see this question.

A fix from me has been merged into systemd and this issue should be fix on systemd>=240

https://github.com/systemd/systemd/pull/11108


In fact you can do almost anything in Ubuntu from the GUI, the reason why you see so many referrals to terminal commands for fixing issues, installation etc. is the simple fact that it is easier to transport a concrete solution, instead of putting up screen-shot after screen-shot or even describing which icons to click, what to enter and so on.

So for the casual usage cases you can do everything you want via the GUI already. But take my advise learn to use and love the terminal, its is all in all a quicker solution on Linux, as it is in Windows too, if user would learn to use Windows command line or power-shell, ah and I nearly forgot the new kid on the block Bash for Windows.


Seemingly random system crashes on Ubuntu 12.04

generally hard freezes like this are hardware related or in this case something related to your kernel upgrade. see the linux-image-generic (3.2.0.34.37, 3.2.0.35.40) line of your log.

also the lack of logs is very odd indeed. what does df -h say for your / partition. also if you do not have logs check

dmesg | less


Warnings while launching gedit from the Ubuntu terminal

Updating gir1.2-gtksource-3.0 solved the problem for me; the errors no longer appear.

sudo apt-get install gir1.2-gtksource-3.0


Wine Install error ubuntu 12.04.1 32-bit

sudo apt-get -o Dpkg::Options::="--force-overwrite" -f install wine1.6

All credit goes to this users post on Ubuntu Forums.


In View->File System Support, exFAT currently doesn't have support in gparted (0.28.1) for anything other than moving or copying.

No "required software" is listed, so it doesn't (yet) know about exfat-utils.

However, because:

the partition is a valid partition, and
its perfectly safe to move or copy (since the internals of the filesystem are not affected by a move)

the partition must be listed in the list of filesystems, but greyed out in this context.

Unfortunately, at this point, the Gnome team have decided not to build further support due to concerns about breaching Microsoft patents in their other products (e.g. Gnome Live) which would require them to ship supporting binaries.

If you must format a partition as exfat, then you can use gnome-disks (a.k.a. "Disks") as in this question: GUI tool for formating to exFAT


Upgrading from 16.10 (yakkety) to 18.04 (bionic) - Can't upgrade directly?

Looks like it's too much trouble to upgrade stepwise like this so gonna take an alternative route. I looked into how to install from an ISO located on a harddrive partition and found this:
https://help.ubuntu.com/community/Grub2/ISOBoot


How to install the "Links 2" browser in Lubuntu?

There is the package links2 in Ubuntu universe repository. To enable universe repository:

First way: Open Software & Updates and under Ubuntu Software tab check the box Community-maintained free and open-source software (universe). When you close Software & Updates, click reload to update the cache.
Second way: Run in terminal sudo add-apt-repository universe and then sudo apt-get update in order to update software cache.

To install links2 package run in terminal sudo apt-get install links2 (you can also use software center or synaptic package manager).
In order to use it run links2 command from terminal.


You need to install single package with

sudo apt-get install i965-va-driver


Ubuntu 20.04 - After last update, speakers are buzzing unless I open the sound settings window

I've had the same thing and followed the instructions on this solved thread and it hasn't had any fuzz/buzzing since.
https://ubuntuforums.org/showthread.php?t=2417018
Really simple open the terminal, sudo su and then password. Then enter gedit /etc/modprobe.d/alsa-base.conf. It will open a text document, at the end of the document copy and paste the following code:
options snd-hda-intel power_save=0 power_save_controller=N
Save, restart and it should be fixed!
Hope this helps.


I had the same problem and this fix helped:

  In the file /usr/share/phatch/phatch/lib/pyWx/wxPil.py I changed the
  words fromstring and tostring to frombytes and tobytes.

  Now Phatch seems to work with the latest python-imaging and
  python-pil libraries in Sid.

  Below is my new /usr/share/phatch/phatch/lib/pyWx/wxPil.py:

# Copyright (C) 2007-2009 www.stani.be
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see http://www.gnu.org/licenses/

# Follows PEP8

import Image
import wx

def pil_wxImage(image):
    if image.mode == 'P':
        image = image.convert('RGBA')
    if image.mode == 'RGBA':
        wx_image = wx.EmptyImage(*image.size)
        wx_image.SetData(image.convert("RGB").tobytes())
        wx_image.InitAlpha()
        wx_image.SetAlphaData(
            image.convert("RGBA").split()[-1].tobytes())
    else:
        wx_image = wx.EmptyImage(*image.size)
        new_image = image.convert('RGB')
        data = new_image.tobytes()
        wx_image.SetData(data)
    return wx_image

def pil_wxBitmap(image):
    return wx.BitmapFromImage(pil_wxImage(image))

def wxImage_pil(wx_image):
    size = wx_image.GetSize()
    image = Image.new('RGB', size)
    image.frombytes(wx_image.GetData())
    if wx_image.HasAlpha():
        alpha = Image.new('L', size)
        wx_alpha = wx_image.GetAlphaData()
        alpha.frombytes(wx_alpha)
        image = image.convert('RGBA')
        image.putalpha(alpha)
    return image

def wxBitmap_pil(wx_bitmap):
    return wxImage_pil(wx.ImageFromBitmap(wx_bitmap))


Why am I getting this error message when searching for a library?

So the package that needed to be installed is libsdl1.2-dev.

sudo apt-get install libsdl1.2-dev


What other options are there apart from localnet in dnsmasq?

If you are also using dnsmasq as your DHCP server, you can configure dnsmasq to send a list of DNS servers to the clients. For example, this line in /etc/dnsmasq.conf sends the primary DNS as 10.0.0.1 and Google's Public DNS servers as secondary and tertiary:

  dhcp-option=6,10.0.0.1,8.8.8.8,8.8.4.4


Where is apache web root directory on Ubuntu?

The default document root for Apache is /var/www/ (before Ubuntu 14.04) or /var/www/html/ (Ubuntu 14.04 and later).

See the file /usr/share/doc/apache2/README.Debian.gz for some explanation on how the Apache configuration on Ubuntu is done.


Two hard drives, WIN10 have already installed, now I want to install ubuntu to the other SSHD

Generally it is recommended to install all your operating systems on the same hard disk drive.

If nevertheless you want to install Ubuntu to another drive you can do it, if you really want to.

Boot into Windows, disable hibernation and fast boot before you start the Ubuntu installation.

When starting Ubuntu installer choose Something else and select the other drive for Ubuntu.

IMPORTANT : Install the boot loader to the same drive where you installed Windows before !

Note : You can select the operating system you want to boot from GRUB menu when finished.

Update with a detailed explanation requested in the comment of Luffy Tse :

To disable hibernation open command prompt as administrator and execute :

powercfg /h off

To disable Fast Boot open Control Panel (the old version - not the modern design),
select the Energy Settings, enable show hidden settings and uncheck Fast Boot.

After these disabling actions shutdown the machine (do NOT reboot) completely.


There is an application which is shipped by default in Ubuntu called transmission

You can open transmission by searching for it from the Dash(the top left Ubuntu logo). just click that logo and start writing transmission

So just open it locate the .torrent file and make some configuration like speed ,time ,etc... and transmission will take care of rest.

Here you can see a list of GUI based Torrent client


Wubi is no longer supported for Ubuntu 13.4 and above, see the answer on this question.
Is there a reason that you don't want to use a normal installation? you could install 12.04 via wubi but there are some bugs and problems in wubi so I would strongly advice to do a normal installation and click the install along windows option.


Ubuntu 12.04 won't boot at all for the first time

I prefer not to use wubi (the windows installer). It has a lot of issues like no hibernation, slower data I/O rate, etc.

Download the Ubuntu iso.
Create a partition in Windows allocating at least 20 GB HDD space for Linux.
Boot into live and click on Install icon on the desktop. Then select the install alongside Windows option and follow the on-screen instructions.

NOTE: Your default bootloader (BOOTMGR) will be replaced by GRUB. You can always remove Ubuntu. Install EasyBCD on your Windows and in the deployment section, select 'Write to MBR'. Then format the Linux partition.


Working Network Card NOT Recognized by Ubuntu

There are some suggestions for that parcticular card here though it is unclear if the solution offered fully solved the problem.

You can also search for "Atheros" and browse the list of issues reported. Most seem to center on wifi, but there may be a solution within those questions.


How to mark some file in debian package as config?

You can create a file called debian/conffiles and list the files in it. This will cause dpkg to check the file for changes before overwriting it. From Debian Policy:

  For each file it checks to see whether the version of the file
  included in the package is the same as the one that was included in
  the last version of the package (the one that is being upgraded from);
  it also compares the version currently installed on the system with
  the one shipped with the last version.

  If neither the user nor the package maintainer has changed the file,
  it is left alone. If one or the other has changed their version, then
  the changed version is preferred - i.e., if the user edits their file,
  but the package maintainer doesn't ship a different version, the
  user's changes will stay, silently, but if the maintainer ships a new
  version and the user hasn't edited it the new version will be
  installed (with an informative message). If both have changed their
  version the user is prompted about the problem and must resolve the
  differences themselves.

If you really never want dpkg to touch the file again, another approach is to just create the file in the postinst script on first install and don't do anything on upgrades. Just remember to also create a corresponding postrm script that will delete the file on purge.


What steps should I take to fix my desktop not working?

This is just a suggestion for a try out:
Boot from an Ubuntu Install ISO.
If successful, chroot into the partition where Ubuntu is installed (Check internet for guides for your type of installation).
Remove ubuntu-desktop package from terminal and re-install the package.
Please note that, this may not be possible in chroot, but worth a try.
Even if removing that package is possible, you should be able to reach a terminal.
If it is just installed yesterday, if nothing else helps, re-installing doesn't seem to be a big inconvenience unless you worked on the installed system for many hours.


How to enable tap-to-click (touchpad) on Awesome Window Manager between logins?

Tapping and other touchpad settings are configured either through XInput2 as "device properties", or through Xorg.conf as settings for the 'libinput' driver.
Replace Touchpad_Device_Name with the device name (not ID number) that you see in xinput list.
xinput set-prop "Touchpad_Device_Name" "libinput Tapping Enabled" 1


Okay, there is a difference between your password and the root password (the password of the account "root").

When you first installed Ubuntu, you specified your username (let's say you chose Ele) and your password; this is the password that you would use to log in. Since you have Ubuntu to log in automatically, you won't be asked for this password when booting Ubuntu.

The default installation of Ubuntu makes your user an admin; that is, it makes you able to install and remove applications and all that. The password that is asked when you install/remove components is usually your password, Ele's password. Take a look at these screenshots:

This program is asking you to Enter your password, so this would be the password of Ele, that you used to install Ubuntu, which is the same password you use to log in.
If you did not set a password when you were installing Ubuntu (and I think this is where your problem is Ele), then you need to set a password for your user. To do so, simply type the following command (commands can be typed in a terminal which you can open by Ctrl+Alt+T):

passwd

And enter your new password. Note: you won't see any stars *** or anything; don't worry, just continue typing.

Now, let's look at another kind of prompt that could ask you for a password:

This program is asking you to Enter the administrative password, which is the root password, the superuser password, the password of the account "root". This password is NOT set by default.
It is generally not advisable to set a root password unless you really need to, because it essentially opens doors to lots of accidental, harmful tasks. But, if you really want to set the root password, you would do this:

sudo passwd root

It will first ask you to enter your password, in order to carry out this command (because you typed sudo). Then, it will ask you to specify a new root password.

If your account does not have a password set in the first place, this command will not work, because you are performing a sudo command, which will require your password first.

Note1: if you have set a root password and you want to remove it and go back to how it was, do this command:

sudo passwd -dl root

It will, again, ask you for your password, because you are doing a command that starts with sudo. This command deletes the password and locks the root account.
Note2: you should rarely see this second screenshot, the one that's asking for the root password. Usually, you'll be asked to enter your user's password. That is how Ubuntu is set up, so that you don't need to log in as the root (superuser) to perform administrative tasks, you only "borrow" the root privileges by using the command sudo.


How can I give windows permission to one of my EXT3 partitions in ubuntu?

What I suggest you do is to find the folder you need, and mark it 'anyone can read/write'
So run 'chmod -R 0776 /path/to/folder' in terminal to free up permissions

While I do not suggest it, Doing a quick 'chmod -R 0777 /' should unlock every file on the partition...
But this might mess up some things and cause programs to go "WHOA THERE" I'm looking at you SSHD


Just do the following:

stop all package-management processes

 killall -9 apt* kpackage dpkg software-center

if you use synaptic package manager, add it to that list

killall -9 apt* kpackage dpkg synaptic software-center

Having confirmed that there were no "rogue" pkg. managers running, I checked, removed, & rechecked the lock file:

ls -l /var/lib/dpkg/lock
rm -f /var/lib/dpkg/lock
ls -l /var/lib/dpkg/lock

Finally, just fix it up:

aptitude safe-upgrade
dpkg --configure -a

In the end if required just update the file database using

 sudo updatedb


Seemingly you started Wireshark with sudo wireshark. A detailed answer to similar problem is here. In short you should execute:

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR wireshark

Because typing it each time might be cumbersome, you should consider adding a shell alias to your environment. For bash add this to .bashrc:

alias ws='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR wireshark'

and run ws for Wireshark.


locale problem when running xterm in Ubuntu 10.04

Try launching with LANG=C and see if that changes anything: LANG=C xterm -T mytest -geometry 200x30+200+30 -e .//mytest

"Warning: locale not supported by Xlib, locale set to C" hints that it's already falling back to this, and the crash you're experiencing may be unrelated. Do you see any other errors or messages when the program quits?


Bash script for multiple tabs program running

You can shorten your script to:

#!/bin/bash

cd /home/me/experiment

args=()
for ((step=200, s=593000; (f=s+step)<=594000; s+=step)); do
    cmd="./new_path.py -s $s -f $f";  printf -v title '%07d_%07d' $s $f
    args+=(--tab-with-profile=Default -t $title -e "sh -c \"$cmd; bash\"")
done

gnome-terminal "${args[@]}"

To eliminate repetition, I got rid of the cmds and titles arrays altogether and moved construction of those strings into the loop, where it could be automated.

I did test this of course; though in my test I used mate-terminal instead of gnome-terminal. They are very similar, mate-terminal being a fork of gnome-terminal, and I'd be quite surprised if any problems arose from that difference; mate-terminal's features are a subset of those provided by gnome-terminal. Most importantly, both accept the same --tab-with-profile, -t, and -e options.

A more detailed explanation of how the above code works, and why  chose that implementation, follows, in case you're interested.

Instead of looping over the sequence 1 2 3 4 5, which is meaningless to the problem, I made the loop variable s, the value passed to ./new_path.py after -s. I also defined f and ensured it took on a value 200 greater than s in each iteration of the loop; this is the value passed to ./new_path.py after -f.

That made it easy to construct each iteration's cmd and title strings. (cmd is the value passed to gnome-terminal after -e, and title is the value passed after -t.)

Making cmd was particularly simple. s and f could just appear in the string without modification, dereferenced as $s and $f within the double-quoted expression.
For title I noticed the leading zeros in your manually written strings (e.g., "0593000_0593200"). I inferred you probably want the title numbers zero-padded whenever they're fewer than seven digits, and used bash's printf builtin to achieve this.

There were several possible constructions to choose from, in writing the loop. In addition to the more common for variable in list syntax, bash supports C-style for with (( initialization; condition; increment-or-other-action)) syntax, which I decided to use.

My goals in deciding how to write the loop included:

making it so that when the loop is modified later, each number can be changed in just one place (e.g., avoiding having 200 appear multiple times in the code), and
reflecting the logic of the underlying problem being solved.

In bash, sequences of numbers are usually best generated with {start..end..step} (or just {start..end} for contiguous sequences). But brace expansion is performed before shell parameter expansion, so start, end, and step cannot be variables (like $step).

A for s in seq 593000 593800 $step loop (and setting f=$((s+step)) inside the loop) would've worked for this, and I would probably have done it that way if easy code maintenance were my only concern.

Based on your original script, it seems the underlying problem being solved is, or is something like, this:

Perform runs (of some experiment or calculation).
Vary some important parameter, whose starting and final values are specified to ./new_path.py via -s and -f.
The important parameter ranges from 593000 to 594000.
Vary sequentially in chunks of 200. Cover the range by running five such tasks in parallel.

This suggested it would be valuable to write the loop in such a way that the lowest -s value and highest -f value were specified (rather than the lowest and highest -s values). I used a C-style for ((...)) loop, which facilitated that in a reasonably concise and readable way.

Note that this was not the only way to do it, nor is there any one "Right Way." In particular, I could've instead defined step and max (and initialized s to its minimum value) before the loop, then used a while loop with arithmetic comparison (via (( with <=, or [[ with -le) in the condition.

I made a few other changes, compared to your original script, by they are minor and entirely a matter of stylistic preference.

I renamed options to args because "options" is often used specifically to mean flags (such as those starting with - and --) rather than all command-line arguments.
Since the += operator is being used to build an array of arguments rather than the final command string itself, no leading or trailing whitespace is needed in its elements. So I removed the leading space before --tab-with-profile.
In the flags passed to gnome-terminal, I changed --title to -t for consistency with the choice of -e. (-t is the short form of --title=; -e is the short form of --command=.) This also made it a little easier to read because it let $title be a separate array element instead of having to be combined into a string as "--title=$title".
I used sh -c ... instead of bash -c ... as the command passed to gnome-terminal, since the generic sh (which in Ubuntu is the simpler, lighter weight dash) is sufficient to the task of chaining two simple commands with ;. (I didn't change the bash after ; to sh, because the interactive shell that runs in each tab after ./new_path.py finishes should of course still be bash.)

In this context, this is definitely not a performance consideration, but just a matter of style. I am not suggesting that using sh -c instead of bash -c for this is the right way or that it is objectively preferable.


Android Network remote controls for clementine and amarok not connecting

You might want to check your firewall settings to see if the port is allowing the connection. I know this is an old post, but I just downloaded the clementine remote.


Installing .tgz driver for Asus USB-N13 Wifi adapter

The .tgz is an archive. In most file managers you can just try to open the file and it will show its contents, and from there you can extract it to a folder. Otherwise at the command line you can use the following to extract all the contents. I do this in a folder called src (for 'source') in my home directory, but you can do it anywhere you like.

tar xvzf [filename]

I've downloaded the driver from the site you mentioned and had a look. So you start with Linux_2302.zip and that contains DPO_RT3070_LinuxSTA_V2.3.0.2_20100422.tgz, right?

If you have a look in the archive you will see a text file called README_STA_usb, which has instructions on how to install your driver.

EDIT: By the way, are you sure your USB adapter won't just plug and play? I've had a look at the README above and it is designed for old Linux kernels. It's possible that the newer Linux kernels which ship with the latest versions of Ubuntu might just support your hardware out of the box.

EDIT: There is already a post on installing the USB-N13 with one chipset on Askubuntu without having to follow the detailed instructions in the README. Connecting Asus USB-N13 Wireless Adapter


Can't boot after installing Ubuntu into separate partition

If you can boot into the USB Ubuntu without a problem, I'd open terminal and attempt the following:

sudo update grub

This will solve the problem if it's simple.

Also - not sure on this, but I think Ubuntu needs to be run from a Primary partition.
If possible, re-install Ubuntu as a primary partition.

I recognize that command line, it's the GRUB command line.

This may help then:  Stuck on GRUB Command Line


You don't say what the app is actually doing, but it sounds like you really want it to be a service, no? You can do that with a slight tweak to the YAML, for example:

    apps:
        my-app:
            command: my-binary
            daemon: simple

Now my-app will be a systemd unit, starting on boot.


Nautilus could not create the following required folders

You're going to want to log in as root to do this

Firstly, make sure the home folder of your old username does not exist.

ls /home

If you see a folder with your old username, issue the command

mv /home/[oldusername] /home/[newusername]

Then issue the command

usermod -d /home/[newusername] [newusername]
usermod -d /home/[newusername] [oldusername] (just for good measure)

If you still can't log in after this, you'll have to edit the /etc/passwd file

nano /etc/passwd

Find the line that starts with either your old or new username
Make sure the first field is your new username
Make sure the 6th field (after the 5th colon) is your new home directory - /home/[newusername]
Take note of the UID and GID fields (the second and third respectively), this is usually 1000 on single-user systems. If it's not, write it down or remember it. I denote these fields as [UID] and [GID] below.

chown -R [UID]:[GID] /home/[newusername]


What is the simplest way to set up a mail server?

Your question is subjective, so I will propose some possible solutions based on a couple assumptions:

You are trying to learn how to manage an email server to further your education. This is assumed because if you don't know how to set one up you probably don't know the long list of reasons why you probably shouldn't run your own mail server.
You are aware of services like G Suite, which are reliable, cost efficient and robust in terms of management tools and decided they don't meet your needs even though they cost less money to run than your own server.
You understand that there are different ways to setup mail servers, and those ways come with unique pros and cons. So while some methods are simpler than others, you ultimately need to consider the pros and cons before you can choose the simplest of those options.

My Preferred Method

My preferred method is to install Webmin & Virtualmin, which provide a GUI for email server management (among many other things) once they're installed. It's well documented, well maintained, allows you to use the GUI or CLI seamlessly and without repercussion. It installs all of the necessary software to run a basic web server and does a good job of guiding even the most novice through the process.

Others

There are many other ways, such as using pre-built servers via services from providers like Digital Ocean.

And on the more complex side of things, you can use services like Vagrant and the respective Vagrant Playbooks that automatically deploy and configure such systems for you. But I suspect that's well beyond what you're looking for even though it definitely simplifies the process if you're running a professional email server.


I tried it out. I just noticed that the Wordpress directory as extracted from tar.gz file is owned by nobody:nogroup. Is that the case with you? If so, change it to sftpwp:www-data. Note that we're setting the group to www-data, but we could add the www-data user to the sftponly group as well and use www-data:sftponly as the owner. In either case, this is to allow write permission to the server, for media upload and such. So you'll at least need to do:

chmod g+w wordpress/wp-content

Further, we can apply setgid. When a directory is setgid, any file created within it inherits the group of that directory, irrespective of the active group of the user who created it. So this guarantees that any file add to the Wordpress folder retains the www-data (or sftponly, if you so choose) group. Do:

chmod g+s wordpress/wp-{content,includes}

I only included these two folders since uploaded content usually affects them. I noticed that uploaded media had www-data:www-data as the owner, so you might want to use sftponly as the group owner and then do setgid - then the sftp user can also access them.


How to enable higher CPU frequency on Lubuntu 12.04?

First make sure that you are connecting to a quality AC source. I had my machine plugged into a long extension cord, and that was par of the problem.

Next, assuming the Dell Bios is getting in the way, try this:

Edit /etc/default/grub

Add processor.ignore_ppc=1 to the GRUB_CMDLINE_LINUX_DEFAULT line.

run sudo update-grub

Reboot the computer.

This is from http://www.woolie.co.uk/article/dell-laptop-stuck-800mhz-linux-fix/


No, you should not be worried, and yes, it can be checked. Checking a hash is a universal procedure. While not technically correct, a hash is basically a "one-way encryption" that give a short, usually-unique code to check if the file became garbled. If it installed properly, chances are it's a good file. If you still have the ISO file around, checking the hash is quite easy. Copy it to your home folder and call it ubuntu-hashme.iso. Now, open Terminal, and when you get thee user@computer:~$ prompt, run the following:

md5sum ubuntu-hashme.iso

and it will give a string(it could take some time depending on the speed of your computer). It should correspond to the strings on https://help.ubuntu.com/community/UbuntuHashes/, depending on what file you downloaded. It's most likely:

d791352694374f1c478779f7f4447a3f    ubuntu-12.04-desktop-i386.iso

or

128f0c16f4734c420b0185a492d92e52    ubuntu-12.04-desktop-amd64.iso

but it could be something else on that page.

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


tar Exiting with failure status due to previous errors

I suggest a command line as the following:

tar -cvpzf sysbackup-20110821.tar.gz --one-file-system \
    --exclude=/sysbackup-20110821.tar.gz \
    --exclude=./run \
    --exclude=./tmp \
    --exclude='./home/*/.gvfs' ./

As you see, every exclude pattern becomes a relative path, and the --one-file-system option excludes /dev, /proc, /sys, and everything mounted under /media or /mnt.

Nevertheless, if you have a separate home partition, this is not backed up.

Tested on 11.10 (Oneiric, alpha3). Probably, in previous ubuntu versions you should exclude ./var/run, instead of /run.


kernel panic and Stack with CapsLock and ScrollLock

Finally I was lucky. After some trials and boot-repairs  (e.g like the description in Recovering GRUB after installing Windows 7?) I found out that the problem was caused by the version of the kernel.

On grub menu I selected advanced options where there was the choice between
the 3.19.0-25-generic version which did not work (and was the same as the default option from grub) and the 3.13.0-77-generic version which ACTUALLY WORKΕD OK !!!
:)

So I changed the default version in Ubuntu option from the grub menu as well and
everything is OK!


The problem using the function pow is that it's a function from another library, not from the C language. So, you need to link to the math library. But I don't get why you can't run the program. What complete command are you using to compile and what to run?

About using an IDE, I recommend you not to use it while you're learning, or you can miss the understanding of how everything works.


How do I sync my desktop Simplenote with that on my mobile phone?

Generally in Ubuntu: set up a google account in Ubuntu to use features from google. Link syncing bookmarks between systems and gmail.
On the simplenote site they explain how to share notes, so logically I would assume if you tag it with your own mail address it will be shown everywhere you use simplenote with that mail address:
I would assume you use your mail address as a tag:

How can I share a note or collaborate with others?
If you’d like others to view and edit one of your notes, add their email address as a tag. The shared note will then pop up in their list of notes. They’ll need to have their own Simplenote account first. Similarly, if you’d like to work on a note together, have them add your email address as a tag to collaborate. In the iOS app, instead of adding your email address as a tag, you can tap the Info panel icon when viewing a note, then tap Collaborate.


I deleted /etc/php5. How do I restore the folder?

Is some cases the problem is related to the installation system {apt-get, dpkg} which remembers that you have deleted configuration files and make you pay for this sin forever.

Try something like:

apt-get install php5-cli php5-comon php5-cli -o Dpkg::Options::=--force-confmiss

The --force-confmiss flag is supposed to make dpkg reinstall files that where detected as deleted.

Please check out the man page for more information.


/etc/sudoers is owned by uid 33, should be 0

Boot into single user mode to gain the root privilege
Run chown root:root /usr/bin/sudo
Reboot


Has anyone updated 20.04 with new kernel 5.4.0-39 yesterday resulting in nvidia driver problems?

I have the same Graphics. Already resolved in update few hours later for me. There's no need to downgrade Kernel. You should also check for updates in Software center & Software updater. I had to update my Snapd application manually, to be fully complete.
Then just type into Terminal :
sudo apt update

sudo apt upgrade

sudo apt autoremove

reboot


Ubuntu 18.04 toolchain has Python3.6 installed by default. The default Ubuntu repositories have NVIDIA CUDA Runtime Library (libcudart9.1). TensorFlow 1.15 stable release for either CPU or GPU can be downloaded manually from https://github.com/tensorflow/tensorflow. Don't install any other supporting packages for TensorFlow before checking the requirements of the TensorFlow package that you intend to install.

At OpenStack Summit held on November, 2018 Canonical and Ubuntu founder Mark Shuttleworth said in a keynote that Ubuntu 18.04 Extended Security Maintenance support lifespan would extend Ubuntu 18.04 support from 5 years to 10 years. Extended Security Maintenance (ESM) is free for personal use on up to 3 machines (limitations apply). All you need is an Ubuntu One account.


I think that's normal.

try reloading the shell when you changed the theme (alt + F2, r)

check http://ubuntuguide.net/ubuntu-11-10-oneiric-enable-altf2-run-command-prompt if your alt-f2 isn't working


Actually, you were confused between lvm UUID and block UUID.

The below command will display your lvm UUID, it point to specific item under lvm.

$ lvdisplay Logical-Volume

The below command will display your blcok UUID, it point to specific block device in your system.

$ blkid /dev/YOUR-Virtual-Group/YOUR-Logical-Volume

You should always use block UUID or device file instead of lvm UUID to modify the /etc/fstab record.


Using a CSV file to move files to different directories

Here is a bash script that should do what you want:
#!/bin/bash

fileNameIndex=0   # set to index of file name
categoryIndex=1   # set to index of category

IFS=",""$IFS"     # add comma to break lines at commas

while read -a tokens;    # read a line and break it into tokens separated by commas
do
    file=${tokens[$fileNameIndex]}       # get the file name
    category=${tokens[$categoryIndex]}  # get the category
    if [ ! -d $category ]; then         # check if directory with category name exists
        mkdir $category;                # make the category directory
    fi
    mv $file $category                  # move the file into the category directory
done

Save this script in a file, perhaps do_moves.sh, edit it to set the correct values for fileNameIndex and categoryIndex, then run it as:
./do_moves.sh < data.csv
where data.csv is your CSV file. Make sure that you do not have any files that have the same name as a category before you run this.


Some packages contain repeated meta data

They are not duplicate,they are different files(may be different versions) in same package.

If you run apt-cache show libelf1 you will get,

Package: libelf1

Filename: pool/main/e/elfutils/libelf1_0.158-0ubuntu5.2_amd64.deb
Size: 37966

Filename: pool/main/e/elfutils/libelf1_0.158-0ubuntu5_amd64.deb
Size: 38320

Please refer launchpad.net/ubuntu/trusty/amd64/libelf1


If you check man sudoers it states that the timeout can be changed by changing the timestamp_timeout variable.

In /etc/sudoers, add this line:

Defaults rootpw

in order that the default password is the root password and not the user password.


How to permanently add CSS to some pages using Firefox?

There's a great extension called Stylish that does exactly what you're looking for. It allows you to add custom CSS to the pages you visit.


What environment do I need to deploy the virtual-maas charm?

The virtual-maas charm does need a MAAS/Juju environment set up. Virtual MAAS just allows you to use the nodes in a MAAS server to be used as MAAS servers but with KVM instead.


It's written in C++ and QML, you can get the source code yourself here: http://unity.ubuntu.com/getinvolved/development/unitynext/

You can run the phone and tablet shell on your desktop, no need for a virtual machine.


How to install Hp laser jet 1020 plus printer?

Connect your computer to the printer.  Open a terminal (Ctrl+Alt+T) and enter the command

hp-setup

The program will guide you through the steps of setting up the printer.


Touchpad breaks on resume - Why doesn't synclient work in shell script?

Is the script running from within an X server? If not you need to set the DISPLAY variable

Is the hardware still initialising? You could try adding a sleep after the modprobe to make sure it is fully working before the rest of the commands run. (This probably isn't the case as the kernel should fully initialise the device before handing it back to usersspace)

Is the modprobe command working? Try adding --first-time so that it reports if it's already loaded, also try replacing rmmod with modprobe -r (for your use rmmod should work but modprobe -r is the recommended tool)

Sorry these are mostly questions but I don't have enough kudos to add a comment


Use pkexec instead. If the current user doesn't have privileges, or if there are multiple users who can authorize an action, it will prompt you to select the user:

$ pkexec true
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/bin/true' as the super user
Multiple identities can be used for authentication:
 1.  muru
 2.  sysad, (sysad)
Choose identity to authenticate as (1-2): 1
Password:

pkexec, of course, does not follow the sudo configuration, but its own. However, if you added admin users by adding them to the sudo group, they will also be granted Polkit admin rights by Ubuntu's default configuration.


Adding /usr/share/mibs/cisco to snmp mib search path

Came out very simple, thanks to rstory-work at #net-snmp irc channel:

Just add the line

mibdirs +/usr/share/mibs/cisco

to /etc/snmp/snmp.conf.


matlab 2014b glnxa64/jre/bin/java: Syntax error: "(" unexpected

You need to change the JRE_LOC variable value and it works fine.

For this,
comment the line (inside the install file)

JRE_LOC=$NEW_JRE_LOC

and add path of the jre inside the matlab folder you have. For example:

JRE_LOC=/home/madhav/Desktop/study/Matlab_2011a_Linux/java/jre/glnxa64/jre/

and then run

sudo ./install -glnx86 -v

and it should work fine.


XPS 2720 is not giving 1440p resolution in Ubuntu 18.04

After a lot search I think the problem is still with the graphics driver. However, I found a temporary solution. cvt somehow shows incorrect result (modeline) for 2k resolution on this particular computer (XPS 2720 all in one). After reading this thread I used the following commands (both on terminal and in the ~/.profile file)

xrandr --newmode "2560x1440_60" 241.50 2560 2608 2640 2720 1440 1442 1447 1481 +hsync +vsync
xrandr --addmode HDMI-1-2 2560x1440_60

Here the modeline is different than what cvt 2560 1440 shows.
If you are on Dell XPS 2720 I am pretty sure this trick will give you a temporary fix.


Not root user does not have access on Mounted SSD

As you automount the disk, with default options, from fstab, the plugdev (or other) groups don't enter the picture.  This is a standard mount.  It is strange though, that it doesn't mount as root:root.

The permissions on /media/lex and /media/lex/mystorage are fine, and given that the other user is member of group lex, it should have rwx access to both directories.

I suspect what is blocking access is the ACL set on /media/lex.  Your ls -l output shows a + on /media/lex.  This indicates additional permissions have been set, possibly preventing non-owners from accessing the path.  Use getfacl /media/lex to see the permissions, and setfacl to change them.

If you simply want to get rid of the ACL, setfacl -b /media/lex should do the job.


I can't connect to Virtual Ubuntu Server from smartphone

If you want to access the guest from outside the host you need to use "bridged adaptor". This will give an independent IP for the guest. Have a look at this useful post: How do I access Ubuntu server running in VirtualBox from outside


---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00

Same issue, the VM (ubuntu 16.04.4) kernel panic frequently on a ZFS file system.


cannot use npm to install redis and moment

Have you created a package.json file? Maybe I Think run this command first again.

LPB_Tandn_IT:~ tannetto$ npm init

This is command creates a package.json file in your folder.

Then run,

LPB_Tandn_IT:~ tannetto$ npm install redis --save

The --save ensures your module is saved as a dependency in your package.json file.

I hope you will find this article useful and this works.


IS it possible to stream Netflix 18.04 / Nvidia card?

I think the problem is that the GPU is overheating and turning itself off and then the CPU has to take over. That explains why the CPU will tootle along at 30%-ish and then suddenly zoom up to 100% and stay there.


You can install Gparted and create a NTFS partition to install Windows on. But I once tried to do that and came across this error :

  windows cannot be installed on this disk. The selected disk is of the GPT partition style.

Since you installed Ubuntu first the whole disk is probably in GPT partition style. The solution I found was to backup data and create a live Gparted USB. Use that to create MBR partition table and then install Windows and later Ubuntu.

Hope this helps. :)


What to do to get grub multiple booting?

It is easiest to go with the defaults and install grub to the MBR as you install Kubuntu. When you do so all 3 OS should show in the grub boot menu and you will be able to select which OS to boot.

By default, the grub menu may be hidden, if that is the case hold down the shift button as you boot.

See The Ubuntu Wiki grub page for information on how to configure grub.

Alternately you can install kubuntu, then boot your old Ubuntu install and run

sudo update-grub

should recognize kubuntu.


You need to install HPLIP from HP Linux Imaging and Printing site. Hit the link. It will take you to the DeskJet 1010 page. From there just download HPLIP and follow the instruction.

Note: You need to run it with root privileges.


Can't install anything because of JDK9 unsuccessful installation

sudo apt-get purge oracle-java9-installer

solved my issue.
Later I also changed Ubuntu Software center server to "Main Server".


Copy files from a directory from one system to another system on the same network

To transfer a file myfile from your local directory to directory /foo/bar on machine otherhost as user user, do:

scp myfile user@otherhost:/foo/bar

Stolen from Simplest way to send files over network.

To set up a cron job with that command, see How do I set up a Cron job?.


Apt-get update fails after installing Ubuntu 20.04

So, here's what worked for me...

Go to your Software Updater settings (Software & Updates).
Under Ubuntu Software, in "Download from" the default selected option will be the "Server from <your_country>".
Just select "Main Server", and apply the settings.
Software Updater will ask for permission to refresh software cache; grant it.
After refreshing software cache the Software & Updates window might freeze and the refresh cache progress bar window has no close option.
Ignore it, and open up a terminal.
Do sudo apt-get update.
Do sudo apt-get dist-upgrade
Reboot.

Installing gnome-tweak-tools works fine now.
The local servers are mostly out of sync. The default option on new installation should be the main server but Ubuntu 20.04 seems to like to set it to the server of your geographical location. Anyone installing Ubuntu 20.04 should do this first.


Try disabling the floppy drive in your BIOS - many people have resolved the same problem this way. First of all, disable the floppy drive, then boot from the USB again, wait 3-4-5 minutes when the boot animation shows up and the installer shoud start.

This can happen because of a bug from the USB Startup Disk Creator. If the above does not resovle the problem, you can try to put the ISO of Kubuntu with UNetbootin.

You can read more on Launchpad: https://bugs.launchpad.net/ubuntu/+bug/500822


How do I install gcc 4.8 in Ubuntu 18.04?

Open the terminal and type:
sudo apt install linux-libc-dev
sudo apt-get -f install
sudo apt install gcc-4.8


Does Comodo Antivirus support Ubuntu 14.04

It does.  I downloaded the 32bit .deb file, and used Gdebi ti install.  If you don't have Gdebi installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install gdebi


Try sudo depmod -a command, sometimes it helps after updating kernel in ubuntu.


Deleted Ubuntu Partion from dual boot with windows, stuck in grub recovery

Go into BIOS and move the windows boot manager to the top using F6 and F7 keys.
Save and exit
Then you will be able to normally boot into Windows OS


I think that this message, which I wrote yesterday on the ubuntu-translators mailing list, applies to your question as well. You'd better give us a couple of specific examples, and we may be able to check out if something is wrong.


Okay so I've searched around a bit more and found that the "make" command doesn't work because the previous ./configure command doesn't work. I read the full error in the terminal and it said to install gmp, mpc and mpfr (Newest versions). In the gcc directory there is a file that downloads them for you and installs them nicely. Here's the link, It'll guide you on how to install these packages

https://gcc.gnu.org/wiki/InstallingGCC

Good luck.


I can not find scanner (brother DSmobile700D) driver for Ubuntu

It appears that your scanner is unsupported in Linux:

no manufacturer support,
no SANE back-end support


How can I restore the password in xubuntu 18.04.1, by not finding the rw command at startup?

You can change you password under chroot mode.

Enter chroot mode by:
    - sudo mount -o /dev/sdxX /mnt where xX is you drive and partition number where a root partition is;
    - sudo mount /dev/sdxX /mnt/boot/efi if your system is installed in EFI mode;
    - for i in /dev /dev/pts /proc /run /sys; do sudo mount -B $i /mnt$i; done;
    - sudo chroot /mnt;
    - for i in /dev /dev/pts /proc /run /sys; do sudo mount -B $i /mnt$i; done;
    - sudo chroot /mnt.
Now run passwd and change the password.


How to set a gif/video as a terminal background?

Apparently, terminology can do this. Install it with:

sudo apt install terminology

Then, if you really, really want to do this, and on your head be it, but yes, you can set an animated background if that's really something you want to inflict upon yourself. right click on the terminal, then choose settings and then "Wallpaper". Now, enter the path of the animated gif you want to use. I used this one (I saved it in ~/.config/terminology/backgrounds).


Good evening. Maybe you have a problem of brightness so you can test it by increasing the brightniess whith you keyboard shorcut for it (Fn + F3 for me).


You can resolve the error message by sending the output to /dev/null. Here's how:
* * * * * sh ~/myscript.sh >/dev/null 2>&1

That's all there is to it


Change desktop background to a solid color (e.g. pitch black) in GNOME 3

Simple solution
First create an all-black image (jpg or png) using Gimp for example and save it to a convenient location. Alternatively you may download one from the internet.
Then open GNOME Tweak Tool (aka GNOME Tweaks, you may have to install it first) and go to the 'Desktop' section (or the 'Appearance' section depending on your Ubuntu version). Look for 'Background Location'. You can select the image you created/downloaded to load as the desktop background.

Advanced alternative
GUI way:

Launch dconf Editor either from your application list or using dconf-editor command (you may have to install it first).
Go to /org/gnome/desktop/background/.
Select 'picture-options'.
Disable Use default value and select 'none' in the 'Custom value' option.
Get back to /org/gnome/desktop/background/ and select 'primary-color'.
Disable 'Use default value' and put the hex-code for your colour, e.g. #000000 for pitch black in the 'Custom value' box.

CLI way:
You can achieve steps 1-4 of the "GUI way" by running the command
gsettings set org.gnome.desktop.background picture-options 'none'

in Terminal and then steps 5 & 6 by running the command
gsettings set org.gnome.desktop.background primary-color '#000000'


Where are Upstart log messages on Ubuntu 13.X?

Edit 2016-06-02

If you're trying to find "Upstart log messages" in general, check /var/log/upstart/. That's where Upstart saves stdout and stderr from Upstart services. Thanks to leopd's answer for pointing this out.

If you're looking for log messages from Upstart itself, that are configured by initctl log-priority and emitted by initctl emit, read on!

Short version

The log entries should actually show up in dmesg. Despite that, they do not show up by default in /var/log.

If you want them in /var/log too, add $KLogPermitNonKernelFacility on to rsyslogd's config. I suggest creating a custom file like /etc/rsyslog.d/60-custom.conf to avoid editing /etc/rsyslog.conf, since that's managed by dpkg. Now Upstart messages should show up in /var/log/syslog, once you set Upstart's log-priority to info or so.

Long version

This took me days to track down, but apparently Upstart (1.5) does not log to syslog, that is, it doesn't call the glibc function syslog(). Instead, Upstart logs to the kernel ring buffer, which is what dmesg reads. Now, I didn't think it was possible for user space processes to write to that buffer, but apparently they can by writing to /dev/kmsg, and that's exactly what Upstart does. So that's the first part of the puzzle.

The second part is that there's a widely-held belief that messages written to the kernel ring buffer are automatically copied to syslog by the kernel (at least that's what I always thought). Turns out this is actually done by a user space daemon, traditionally klogd, which operates in tandem with syslogd. Obviously rsyslogd replaces syslogd but apparently it replaces klogd as well (sort of: see notes at the end).

The third part is that messages written to the kernel ring buffer from user space actually look different from messages written from kernel space: they have a different facility. dmesg has a few options that interact with this: -x will show the facility (and the priority), while -u and -k tell dmesg to show only user facility messages and kernel facility messages, respectively.

Now here's the clincher: by default, rsyslogd ignores messages with a non-kernel facility when it's reading messages from the kernel ring buffer. The relevant config option is $KLogPermitNonKernelFacility, which is off by default and needs to be turned on if you want rsyslogd to process these messages. Note that the rest of rsyslogd's config will treat all messages from the kernel ring buffer as having the kern facility, irrespective of the facility they had in the kernel ring buffer.

More information

syslog

Code can write to syslog by calling the glibc function syslog(), described in man 3 syslog. Apparently these functions write to /dev/log. Code can read from syslog by reading /dev/log, and this is what syslogd and its replacements do. rsyslogd reads /dev/log using its imuxsock input module.

Kernel ring buffer

Kernel space writes to this buffer by calling the kernel function printk(), so it's sometimes called the printk buffer. User space can write to it by writing to /dev/kmsg. User space can read from this buffer by several methods: it can read from /proc/kmsg (what dmesg does by default), or it can read from /dev/kmsg, or it can call the system call syslog(), which is described in man 2 syslog and is completely different from the glibc function syslog() described in man 3 syslog. glibc actually provides a wrapper to the system call syslog(), called klogctl(), to help alleviate this confusion.

Traditionally, klogd reads from one of these interfaces, then calls the glibc function syslog() to copy them to the syslog. rsyslogd reads one of these interfaces through its imklog input module but AFAIK doesn't bother calling the glibc syslog(), which is why it's not exactly like klogd; it just processes the output of imklog just like it processes output from any other input module. There is the added caveat that all imklog output has the kern facility irrespective of the facility messages had in the kernel ring buffer.

References

http://upstart.ubuntu.com/cookbook/#initctl-log-priority (Incorrectly states that Upstart logs to syslog)
https://www.kernel.org/doc/Documentation/ABI/testing/dev-kmsg
http://www.gnu.org/software/libc/manual/html_node/Overview-of-Syslog.html
http://www.rsyslog.com/doc/v5-stable/configuration/modules/imklog.html (Note that this is for v5, used in Ubuntu 12.04. These options are considered legacy in recent rsyslog versions)


How to read mouse movement data using bash

You can just use xdotool command like so:

xdotool getmouselocation

You can either use watch xdotool getmouselocation for interactive polling or if that's for bash script - write an infinite while loop.

while true
do
     xdotool getmouselocation
done


Transfer, edit and access files from 2018 ipad >onto pc with ubuntu 18.04

You will need to transfer it over iCloud storage. Sync the file over to iCloud storage and download them from iCloud in Ubuntu. https://www.icloud.com/

Just tried by simply connecting iPhone 6+ to Ubuntu 18.04, iPhone prompted for me to trust or not trust the connection. Selecting trust requires entering of the iPhone PIN. After connection is establish, all non-protected content is accessible via Ubuntu file manager by simply click on the left tap that say "Document on

There it shows that music memo app is sharing the recorded memo. So it depends if the app you are using to record the lectures is sharing the files or not.


Create PDF from Inkscape SVG without destroying fonts and effects

You should upgrade your Inkscape to the PPA version Pre-0.49, my testing produced results using masking, clipping and a reference path difference:

To upgrade your inkscape, open up a terminal and issue the following commands:

sudo add-apt-repository ppa:inkscape.dev/trunk
sudo apt-get update
sudo apt-get install inkscape-trunk

This should remove the 0.48 version of inkscape and replace it with the pre-0.49 version you need for your pdf file.


So I changed 2 shares to use a guest account and the third I removed the space from the share name. Now things are working great. If I had to guess I'd say it was the space in the share name that caused the issues. My new /etc/fstab file looks like.

//WindowsFileServer/Media /mnt/Media cifs guest,uid=1000,iocharset=utf8 0 0

//WindowsFileServer/Media2 /mnt/Media2 cifs guest,uid=1000,iocharset=utf8 0 0

//WindowsFileServer/PlexOptimized /mnt/Optimized cifs credentials=/home/drew/.smbcreds,uid=108,iocharset=utf8 0 0