Popping up the folder when clicking "Show in Folder"

Focus Prevention Level of compiz prevents active windows from getting on top.

You'll need to turn Focus Prevention Off. To do that follow instructions below

Install CompizConfig Settings Manager

sudo apt-get update
sudo apt-get install compizconfig-settings-manager

Then run CompizConfig Settings Manager.

Go to -> General > General Options > Focus & Raise Behaviour -> You will find: "Focus Prevention Level" set it to "Off"


Downgrade to kernel 5.4.0 because kernel 5.8.45 doesn't like my bluetooth controller

Run in a terminal
sudo apt install linux-generic

This will install the latest 5.4 Ubuntu kernel.
Then reboot and select a 5.4 kernel in advanced options of grub menu.
Then remove the 5.8 kernel packages including headers, modules and modules-extra


Steam indicator not showing anything ubuntu 16.04 LTS

I was having the same problem.

I found this open unity bug that has several suggestions.

For me, installing libdbusmenu-gtk4:i386 fixed it.
Open up a terminal window, and type the following:

sudo apt-get install libdbusmenu-gtk4:i386


Right-click on K, then Edit Applications, then expand the submenu of interest.  Now (here's the nonobvious part) widen the window to show all the possible actions, one of which is Sort (with various kinds of sorting).  If you don't widen the window you'll never see the Sort action.


cloning my ubuntu image to HDD alongside win10

Not recommended.

Windows 10 will be UEFI, and old Ubuntu is probably BIOS with MBR.

And UEFI has gpt partitioning so you cannot easily clone a MBR partition to gpt. Better to do new install in UEFI mode and copy /home and/or data into new install.

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

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

Be sure to use Windows tools to shrink NTFS partition and reboot immediately. Then use gparted or installer to create partitions. Also make sure Windows fast startup  or always on hibernation is turned off.


Does an LTS desktop get any updates after three years?

12.04 LTS and future releases

12.04LTS and further LTS releases are planned to have upgrades both for the desktop and server version for 5 years after release date.

You can read in the Ubuntu LTS wiki page:

  A new LTS version is released every 2 years. In previous releases, a Long Term Support (LTS) version had 3 years support on Ubuntu (Desktop) and 5 years on Ubuntu Server. Starting with Ubuntu 12.04 LTS, both versions will receive 5 years support. There is no extra fee for the LTS version; we make our very best work available to everyone on the same free terms. Upgrades to new versions of Ubuntu are and always will be free of charge.

Non LTS release will still be maintained and will receive updates for 18 moths after release date.


11.10 : no window manager, no applications, just tty

Greg, not knowing which default DM you are using, it could be several things at fault. Unfortunately lacking enough information to answer with confidence, but would suspect that the desktop-manager session has become a mess somehow.

Knowing what was occurring prior to the problem would be helpful. Was this just post-upgrade or had there been recently installed packages, or was there something else occurring prior to login?.

Depending on which DM you are using by default (gnome-shell or unity) you might want to drop down into a recovery console and try to reset the DM, if you believe that is the root of the problem.

Know that the command: unity --reset should restore the unity DM defaults, but have not had any luck while the X server is running and trying that command from a tty.

Seems it does not quite finish. Know there is a command to replace the gnome-shell as well, and if you should also load the gnome-session-fallback just in case. HTH, not sure if this answers, but trying to.


How do I tell if my laptop fans can be controlled by Ubuntu

Controlling the fan speed using fancontrol is not possible with many laptops because of the design of the fan control hardware. So how do you tell if it is possible on your laptop? I am going to use an example of an MSI GS60 laptop to show the steps to take to find out. I also intend to update this answer with the results of answering this sort of question so you may find out instantly from this answer.

First the safest and often the best way of controlling the fan speed is to use the BIOS, not fancontrol. If you are having issues with a fan that runs too slowly or too fast it is important to determine if there is an underlying problem causing this. Fans running too fast is often a sign of a power management issue that needs to be resolved in the BIOS or by installing tlp or laptop-mode tools. It can also be caused by a fan or vent clogged with dust.

Step 1 determine the exact model of your laptop. sudo dmidecode | grep -A 9 "System Information"

Step 2 Go to the manufacturers website and read the owners manual. For the MSI G60 it is here. This shows that some models of this laptop have a "cooler boost" button that controls the fan speed. It also shows that pressing Fn+F5 cycles the laptop through different power management modes. If I was the user of this laptop I would stop here as this is a fast reliable method of controlling the fan speed and performance.

Step 3 Determine the chipset used on the laptop's motherboard. In the Owners Manual this is given as "Intel Lynx Point HM8 series". Now if you google this the top hit takes you to a page showing that the chipset may be any one of a number of products. We need to find the exact product used. If you are the user of the laptop lspci will tell you this information. I cant do this. Next try the specifications page on the manufacturers site. This states it is Intel HM87.

Step 4. Read the datasheet for the HM87 chipset on Intel's Website here. This may take you a while as it has 822 pages. The index tells us that PWM is on page 247 and this immediately states (Server/Workstation Only). If you read the introduction it is clear that this chipset comes in three versions mobile, workstation and server. As you have a laptop you have the mobile version and thus there is no PWM hardware for Ubuntu to use to control the fan speed. This is a deliberate decision as manufacturers don't want laptops returned under warranty when a user has been doing high utilisation tasks but has turned the fan off as it was too noisy.

Step 5. If it is not already there update the following table.

Chipset               PWM hardware     Used in
Intel H76 (mobile)    No               Asus K75VM
Intel HM97 (mobile)   No               MSI G60
Intel Q87 (mobile)    No               Lenovo T540p
Intel QM87            No


Boot up with a liveUSB (try Ubuntu without installing) and launch gparted

Use it to extend the previous partition and thus reclaim those 111GB


Desktop is now enabled after editing the /ect/X11/xorg.conf


Installation of Matlab R2012A in Ubuntu 12.04 lts

Possibly you have to make the install script executable:

chmod +x /media/MATHWORKS_R2012A/install

And probably you also need to make executable java:

chmod +x /media/MATHWORKS_R2012A/sys/java/jre/glnxa64/jre/bin/java

Normally you don't need to specify the architecture (-glnx86) to install matlab, unless you want to force a 32 bit Matlab on a 64 bit machine


Accidental loss of trash icon on Ubuntu 17.10

I Finally found out! The trash icon WAS on the desktop all along, but invisible because I have dual screens with different resolutions, that are aligned along the bottom. The trash icon was on top of the narrower screen, i.e. in the "not displayed" area of the smaller screen. Aligning the screens along the upper sides solved the problem.
It would be helpfull to have an automatic relocation of the icon when screen resolution puts them "out".


Uninstall a pre-installed Ubuntu 12.04 to replace it with dual boot of Windows 8.1/Ubuntu 13.10

I'm not clear what is the problem with fresh Windows 8.1 installation on your system. You should be able to create/delete partitions during installation.

In case, you don't have that option then use any other OS install image/CD to delete the Ubuntu 12.04.

Remember to create total of 3 partitions excluding DELLUTILITY partition. One NTFS for Windows 8.1, one later, ext4, for Ubuntu and on for swap.

Hope this helps..


When trying to run Android Studio sh file, chmod +x and checkbox just instantly fails (as root too)

Open the terminal and run:

cd android-studio/bin

./studio.sh


Probably some error during the upgrade or with the grub.
Upgrades are very buggy sometimes, download a fresh 12.04 Live CD and reinstall it.
Before reinstalling you can backup your files using the Live CD and a pendrive or something.


Yes, you can.
Please look up how to set up openldap to use LDAP to distribute password file, group file etc to all your machines. You could also use Kerberos to get singel sign on to all the machines.
Actually, Microsoft has based AD on those tools, and utses CIF (smb) to distribute config files and users files.

You would also want to distribute your users home directories too. You could use NFS for that. You might want to use NFS in combination with autofs so the users home directory get mounted when needed.

So yes, look at openldap and/or kerberos and NFS/autofs to get what you asked for.


Migrating contacts on Windows 10(thunderbird) to Ubuntu(thunderbird)

You could simply copy your Thunderbird profile from Windows to Ubuntu and edit ~/.thunderbird/profiles.ini accordingly. This should not only copy your contacts but also all account settings and some more data.


Where are all Ubuntu resources linked together?

You left out a few such as wiki and irc =)

It is a large community and people tend to gravitate to their interests, some prefer forums, others irc, others ask Ubuntu. Developers seem to prefer Launchpad, well at least that is how they follow bug reports.

With that said, there are ongoing discussions about community building / coordination including summit meetings

http://uds.ubuntu.com/

And between UDS meetings people seem to be coalescing on irc, join

#ubuntu-community-team

#ubuntu-beginners-team

It is great to see people continue to become involved in the Community, what would you like to contribute ? If you can answer that we can better direct you to some entry points.


I had this problem too and  the fix for me was to open dconf-editor and reset the filebrowser plugin settings:

I believe the problem for me was a root directory existing but not having sufficient permissions to read it. If that doesn't work you should probably go through all gedit settings for the user and reset to default.

EDIT

After this bug reappeared for me I did some grunt work and tracked this down to the "Code comment" plugin. To solve this open dconf-editor and navigate to org=>gnome=>gedit=>plugins=>active-plugins and either remove 'codecomment' or click "Set to Default".

The GNOME Bugzilla report is here: https://bugzilla.gnome.org/show_bug.cgi?id=700867


Enable and disable a VPN-connection with one Shortcut (nm-applet)?

I just found the solution, very straight forward.

Simply creating two shortcuts, with the commands below:

for VPN ON: nmcli con up servername

for VPN OFF: nmcli con down servername


How can I change the default wallpaper for new users?

The default wallpaper in Ubuntu 18.04 is warty-final-ubuntu.png, and the most easy approach to change it would be to convert (if necessary) your wallpaper to png format, rename it to warty-final-ubuntu.png, then rename the original default wallpaper and copy your wallpaper to the default location.

sudo mv /usr/share/backgrounds/warty-final-ubuntu.png /usr/share/backgrounds/warty-final-ubuntu-old.png
sudo cp /<path-to-your-wallpaper>/warty-final-ubuntu.png /usr/share/backgrounds/warty-final-ubuntu.png


Ubuntu 15.10 Cinnamon DE menu not functioning properly

...the solution became evident to me after research and trial and error.  When having Ubuntu 15.10 with Cinnamon desktop environment installed and then adding both a top and bottom panel to the desktop, ONLY 1 panel can have customized panel size. if both top and bottom panels are re-sized, then above problem is experienced.  Top or bottom is ok BUT not both.


If you can't open preferences from the indicator menu, you can edit ~/.config/touchpad-indicator/touchpad-indicator.conf, or use Synaptic to do a "complete removal" and reinstall touchpad-indicator.

Here is the (formatted) output of my .conf file...

{"disable_on_exit": false,
 "show_notifications": true,
 "is_working": true,
 "on_mouse_plugged": false,
 "disable_on_typing": true,
 "VertEdgeScroll": true,
 "start_hidden": false,
 "enable_on_exit": true,
 "HorizEdgeScroll": true,
 "natural_scrolling": false,
 "shortcut_enabled": false,
 "first-time": false,
 "TapButton2": 3,
 "seconds": 5.0,
 "VertTwoFingerScroll": true,
 "TapButton1": 1,
 "HorizTwoFingerScroll": true,
 "disable_touchpad_on_start_indicator": false,
 "shortcut": "c",
 "touchpad_enabled": true,
 "CircularScrolling": false,
 "version": "1.1.0-0extras15.04.3-src",
 "autostart": true,
 "theme": "dark",
 "TapButton3": 0}

For what you want, set "disable_on_typing" to "true".


Ubuntu issue- blank screen, inactive showing no signal

Try this:

Make sure to remove modeset from grub parameters:

radeon.modeset=0

and add

radeon.cik_support=0 radeon.si_support=0 amdgpu.cik_support=1 amdgpu.si_support=1 amdgpu.dpm=1 amdgpu.dc=1

Source: https://forums.linuxmint.com/viewtopic.php?t=293729


From Windows disable Fast Boot:

  Search for and open “Power options” in the Start Menu.
  Click “Choose what the power buttons do” on the left side of the window.
  Click “Change settings that are currently unavailable.”
  Under “Shutdown settings” uncheck “Turn on fast startup”.

Then boot from a live Ubuntu CD (or USB) then install Boot repair tool

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

Run boot repair by typing boot-repair command then click on Recommended repair button.
Good luck.


How to change "niceness" while perfoming top command?

Press r. That's it! :-)

Reference: The 9th item in 12 TOP Command Examples in Linux


The only intra-relationship between the two OCR tools was that prior to v0.4 of OCRopus, it used Tesseract as its character recognition tool via a plugin.

OCRopus has since replaced Tesseract with its own engine primarily for future capabilities such as additional languages and handwriting tools.  However you still have the option of using Tesseract.

OCRopus is a full GUI based application.

Tesseract itself is a backend-engine - various front-end GUIs use Tesseracts' capabilities.  Thus you cannot directly compare the two.

The last major release of OCRopus was March 2010 - but it does have major plans for a future v0.5.

In terms of activity - Google are reporting high developer activity for Tesseract whereas OCRopus is slower with a medium rating.


Assuming you have checked in wikipedia, ubuntu forum, linux forum, linux sites about this very common question, i leave you here with a quick breakdown of the common ones:

POINT 1

You already know that ext4 is the enhanced version of ext3 which is the enhanced version of ext2 which is the enhanced version of.. you guessed it, ext (Extended File System) which was a better implementation of the Minix File system.

I wil just copy paste a lot of stuff found in wikipedia / ubuntu+ linux forums /etc... since it is found easily but has a LOT of reading to be done to find the good points.

Ext - Solved 2 big problems that were found in the Minix System:

maximum partition size
filename length limitation to 14 characters

Ext2 - Added several things that lacked in Ext:

Support for separate access
Inode modification and data modification timestamps

Ext3 - Added More thing missing from Ext2:

Journaling file system
Online file system growth
Htree indexing for larger directories missing from Ext3
Faster Performance Overall

Ext4 - Added a whole bunch of things, including but not limited to:

Large file system: Support volumes with sizes up to 1 exabyte and files with sizes up to 16 terabytes.
Break 32,000 subdirectory limit found in ext3.
Faster file system checking
Multiblock allocator

ReiserFs - Very good File System that showed potential and i tested some years back. you could see as an end user the speed difference between it and Ext3 for example. But after some "problems" the company working on the file system had to make some changes. Sad story really. Anyway the final problem right now is the lack of tools for it.

Reiser4 - Not available easily but is the "Version 2" if you can call it that of ReiserFS. Have not tested yet but some benchmarks show good progress.

BtrFS - The illegitimate  child of everyone. This file system has taken the good of Ext3, Ext4, ReiserFs and Reiser4 added some sugar, mixed with chocolate and PRESTO! you have some super mutant ninja System. This is not a stable file system YET but it shows a LOT of potential and has some pretty amazing benchmarks. You can have a look here: http://www.phoronix.com/scan.php?page=article&item=ubuntu_1010_btrfs&num=2 but it still needs a lot of work before it can be called stable. Anyway some of the amazing things that it has, for my case, would be the Online volume growth and shrinking, Online defragmentation, Snapshots...

I am using Etx4 right now since I already tested ReiserFs, Ext3, Ext2 and maybe 2 or 3 more.

For many small files in a partition I recommend Reiser since it worked wonders for me BUT you might get a problem that if it happens to you (It happened to me 2 times. That was enough.) you might loose everything forever. And I mean like FOREVER!.

Ext4 a year ago might have not sounded like fast and steady but right now it is very VERY good for almost any time of work in a desktop.

So my recommendation for your POINT 1 would be stay with Ext4. In the future, you might start looking at Btrfs but for now stay with Ext4. There is also the case of performance. As of December 2012, BtrFS does not yet have a similar performance as Ext4 does. In this case I am talking about cases like Copy/Paste speed, moving files, reading thousands of files, the stuff that end users do from time to time. BtrFS is more oriented towards scalable scenarios where we can play with several HDDs or huge space sizes, resize, snapshot and more. But even with that in mind, the work put in BtrFS is huge, so much so, that there are a couple of Ext4 developers that promote BtrFS for several case scenarios. In the future, the performance of BtrFs and stability will have improved to the point of becoming the default one.

POINT 2

For you POINT 2. I do not recommend it if you want to share files between Windows and ubuntu. For that case use NTFS or FAT32. Windows has some programs that can read Ext2/Ext3 systems but I have had (And 2 more friends had) a couple of problems with them, reading wrong, writing wrong, etc.. So for safety sake, stay with NTFS or FAT32 to be on the safe side.

NOTE: What I mean with this is do the Ubuntu partition with ext4 BUT leave a small partition in FAT32 or NTFS to share files between them both. If you are working on the same PC for both Windows and Ubuntu, then there is no need to make a third partition for them. Just install Windows First leaving space for Ubuntu and then install Ubuntu. Ubuntu will be able to see the files in Windows (But Windows will not be able to see the ones in Ubuntu, but since you are running in the same PC anyway you will not mind anyway). Remember that FAT32 is limited to file sizes of 4.2GB or less. If you try to copy a file bigger than that it will throw an error. This can affect you if you want to store ISO files of DVD/Bluray. For this I would then recommend NTFS.

POINT 3

For you POINT 3 - If you want performance you can add noatime and nodiratime to your fstab for the ext4 partition so you get a small performance boost. This will eliminate the access times for files and directories (I think noatime removes both so there might not be a need for nodiratime) If you want more journal options you can check the GIT for the Linux Kernel where it shows you all options: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/filesystems/ext4.txt;h=7be02ac5fa36d7f4c07856fe9cf89391e08986f7;hb=HEAD

That will help you since it gives a brief summary for each option.

Hope this helps. Sorry for the long post.


UbuntuOne for Windows does not work - I got "Problem opening the ping_url" error

"OK. Solution is:

execute 'uninstall.exe'
kill ubuntuone processes (there were few processes - probably because of proxy) OR restart computer
remove 'C:\Program Files\ubuntuone' if exist
install again and works." - thm, October 4th, 2011.


Since 2011, ShipIt, the old Canonical service that allows you to get free Ubuntu CDs has closed. However, you can still buy one (Canonical Free softwares are definitively not free as in free beer).

However, it seems that some local communities continues to provide the shipment service for free. Use the Ubuntu Local Communities website to find a team near of your country.


The problem was here:

unable to execute 'x86_64-linux-gnu-gcc': No such file or directory

I have solved it using the following commands I found in other answers:

sudo apt-get update --fix-missing

sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev

sudo pip install airflow


Are you asking for a delivery of an Ubuntu Live CD that you ordered?  Where did you come from (link/URL) that you were trying to order something through?

This is typically a forum/QA site specifically for issue/questions about using Ubuntu OS... not really as much about Canonical (Ubuntu designer/devs) support.

I think you want to go here, whatever your specific question might be:

http://www.ubuntu.com/about/contact-us

Cheers!  :)


The answers to this question might help you.


AVConv X11Grab Issues: Unable to find a suitable output format for 'pulse'

avconv is assuming that your output is named "pulse", so you need to add some additional options to indicate that it is an input. I use ffmpeg from the FFmpeg project and not avconv from the fork so I'll use ffmpeg for my examples.

ffmpeg -f x11grab -s hd1080 -r 30 -i :0.0 -f pulse -i default recording.ogv

Unfortunately this won't work with avconv from the repository because it was not compiled with --enable-libpulse as far as I know. So instead you can try:

ffmpeg -f x11grab -s hd1080 -r 30 -i :0.0 -f alsa -i pulse recording.ogv

If you find that you need to use -f pulse then you will have to compile. See How To Compile FFmpeg and x264 on Ubuntu for a complete guide. You will need to additionally add libpulse-dev as a dependency and --enable-libpulse to the configure line. Also see HOWTO: Proper Screencasting on Linux for some good x11grab examples. It's for ffmpeg but should probably work for avconv.


Do I need to check the integrity of a Ubuntu install?

Media Checks
As KGIII said - modern releases (20.04 and later) automatically scan.  I for sure let that scan occur (on the first boot of the day; I tend to skip it if rebooted in the same box on the same day).
If you don't want to check beforehand, you can switch to a terminal (post-install) and always do a
dmesg |grep squashfs

and look for errors.  A standard install should find only the copyright messages when dmesg is scanned; if any other lines appear with squashfs I'd read them as the install is likely not trustworthy.
ISO image Validation
As for ISO image validation pre-write, or How to verify your Ubuntu download, I download using zsync and it checks the integrity of the ISO image at the conclusion of download; I tend to trust that, and just do the self-scan on boot.
If using an older release (pre-20.04), I'll always also do a manual CD integrity check, primarily as the write to USB-media I've found the most troublesome (I have 10+ failures per year, even if that's a smallish percentage of writes; it's still significant).
If I download via a torrent, I tend to do a quick sha256sum check against the checksum file I downloaded using wget on a different device. I tend to perform this check on ISO image files downloaded previously anyway.
Why do it?
The checks take seconds to maybe a minute.  If you have a single bit wrong, the debugging the installation or corrupted data could take hours if you're lucky, but more likely days-weeks-months.
There are generally at least one bug report filed per day (on launchpad; I monitor via #ubuntu-bugs-announce), reported by users who've been having problems with they consider a bug that would have been prevented by these checks. The bug reports are just marked INVALID and given a quick paste with a couple of lines from their dmesg output).  So I see on a very regular basis users wasting hours trying to repeat processes that will never work (often over days), because they skipped these checks and thus are starting with corrupted media where problems should be expected.
I see it as a very cheap insurance.


Clickpad not working on Dell Inspiron 13 7000, running Ubuntu 14.04

This won't help, but only to provide some info about what's happening.

The latest "Precision touch pad" (PTP) devices, which were developed according to Microsoft's PTP spec for Windows 8, are i2c devices.  But, they also have a required fallback to PS/2 mode, which allows them to work with non-i2c-aware OSes.

In PTP mode (i2c), the device simply reports three to five individual X/Y coordinates for touch.  No relative mouse data is reported.  Windows 8 (and other driver-supported OSes) use these points to either compute a relative mouse delta (single point) or gestures.

In PS/2 mode, obviously, it works like a normal touchpad.

The problem here is that Linux is i2c-aware, but does not have the proper driver to get the HID report descriptor and other necessary data to work with the PTP device.  The attempt to work with the i2c device fails, but the device is stuck in i2c mode and won't respond to the Synaptics PS/2 driver.

I have this same laptop, and am going to attempt to install Linux Mint 17 (after I finish imaging the stock install with G4L)  I will attempt the 'blacklist i2c-hid' solution/workaround described here:

http://trustdarkness.com/wordpress/dell-sputnik-xps-13-touchpad-settings-not-working-in-updated-ubuntumint/

...and see what happens...

[UPDATE]

The touchpad is working with the blacklist entry (and the touch screen continues to work as well).  This is not an ideal solution, because a PTP touchpad running over an i2c bus is capable of so much more than a simple PS/2 touchpad.  But, I'm hopeful we'll get a proper driver for i2c and be able to use the full capabilities in Linux soon.

[UPDATE 2]

Doing more research, I found out that the clickpad is part of Synaptics' RMI4 line of products, and the latest kernels have driver support.  So, I followed this guide to downloading, building and installing the latest Linux kernel:

http://forums.linuxmint.com/viewtopic.php?f=42&t=131433

After installing, and before rebooting, remove the blacklist entry you created for the clickpad.  Reboot, and... now it works better.

The acceleration and speed settings will need to be readjusted, but I've found that tapping and two-finger scrolling works MUCH better in i2c mode than PS/2.

On a side note, the newer kernel/driver for the Intel wireless module in this laptop also seems to provide better performance than what I had in place before.


DNS Resolution fails, and /etc/resolv.conf isn't persistent, how can I force the use of certain DNS servers?

Edit: This answer is assuming you are connected using DHCP, which most people are

You have two options;

First, properly setup the DHCP server that is giving your machine it's local IP address.  If you use a router, go into the router's settings and make sure it is providing its clients (you), proper DNS servers.

If you are not using a router and get your DHCP directly from your ISP, call your ISP.

This is most likely the issue you have.

Second, solution if you can't do the first solution is to manually edit the connection rather than /etc/resolv.conf.  Doing it this way should survive a reboot.

On the top panel, click on the network applet and go to Edit Connections.  Choose the connection that you're having issues with and click Edit.  On the IPv4 Settings tab, choose Automatic (DHCP) addresses only and fill in the DNS servers you want to use.

This will restart the connection, only pulling an IP address, while still using the DNS servers you just specified.


I had the same problem right after the installation. One needs to download and install the corresponding drivers from "Software Updates > additional drivers" making use of cable connection. I would also sudo apt-get update before and after.


You are going to need to boot Ubuntu live from any removable media then you'll be able to use gparted normally


Can I edit which icons appear in the Unity dash?

To change default applications, click the power/settings menu in the top right corner of your screen (the one with the OFF symbol) and select last item (System Settings).

Select Preferred Applications in the window that will appear, so you can change them.

As far as I know, it is not possible to add additional items in the Unity Dash.


Updating path for virtualenvwrapper 19.10

I just figured it out. I needed to put

export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3

on the line just above

source /usr/local/bin/virtualenvwrapper.sh


I had the same problem because I had changed the icon size in a window. So I fixed it back from top-right of an open file browser window!

Changing icon size in any file browser window will affect all your windows including Desktop!


Cannot use dpkg - "E: Sub-process /usr/bin/dpkg returned an error code (2)" on Ubuntu 18.04

I solved this issue by following the steps shown here.

cd /var/lib/dpkg
cp status ~/status.copy
Edit the status file by removing the lines corresponding to the problematic package (in my case "libgs9-common"). Just remove the lines from this package, not the lines from other packages having this package as a dependency.
Save the status file
sudo dpkg --configure-a
sudo apt-get -f install

Now, dpkg will work normally. So, you can run: sudo apt-get upgrade.


Cannot get gsettings set to work at boot using cron, rc.local, or autostart

Instead of using:

DISPLAY=:0
GSETTINGS_BACKEND=dconf
sessionfile=`find "${HOME}/.dbus/session-bus/" -type f`
export `grep "DBUS_SESSION_BUS_ADDRESS" "${sessionfile}" | sed '/^#/d'`

try to use:

PID=$(pgrep gnome-session)  # instead of 'gnome-session' it can be also used 'noutilus' or 'compiz' or the name of a process of a graphical program about that you are sure that is running after you log in the X session
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)

See the explanation in my answer here.


Access secondary EBS volume and change permission of /.ssh directory - AWS

Note: If you have attached EBS to EC2 instance then to access it first you have to mount it and then you can change the permission using chmod command.

I followed below steps:

Created a new directory using following command.

  mkdir /mnt/xvdf1

Mounted secondary volume to /mnt/xvdf1 using following command.

  mount /dev/xvdf1 /mnt/xvdf1

Changed the permission of centos and /.ssh directory using following command.

  chmod 700 -R /mnt/home/centos
  chmod 700 -R /mnt/home/centos/.ssh

Done


incorrect password for sudo and on screen lock, but correct while logging in right after reboot

It looks like a keyboard mapping issue.
You probably set your password with a default keyboard layout, that is active by default when you reboot.
But after you connect, your user's keyboard layout is put on, explaining why sudo and unlocking don't work anymore.
At connection screen after you reboot, you can check the language and keyboard layout used by default, typically at the top right of the connection screen.
So you can verify what your password actually is (checking your default keyboard layout), connect, and then change your passwordin terminal:
 passwd <your_user_name>


Starting Eclipse from the Unity launcher doesn't work correctly

There may be two things going on here:

Ownership: Files located in the user's home directory may be owned by root, when they should be owned by the user.
Location: Files may be located in root's home directory (/root) when they should be located in the user's home directory. (The OP figured this out, but accepted this answer,  so I've augmented it to include this for the benefit of others experiencing this problem.)

Fixing Ownership

sudo eclipse runs Eclipse as root, but it still uses your (that is, not root's) home directory to save its files. Since it runs as root, files it creates are owned by root, and users other than root cannot access them. The result is that if you've run sudo eclipse once, Eclipse can only be run via sudo eclipse afterwards, until the problem is fixed.

This is not actually a permissions problem, it is an ownership problem, and the solution is to retake ownership on the affected files and folders. It's usually safe to be the owner of all the files inside your home folder. So, with Eclipse not running, run this command:

sudo chown -R $USER:$USER ~

$USER will be expanded by the shell to your username, so you can run that command exactly as-is. Alternatively, if you want to replace $USER with your actual username (in this case, engine), that works too.

How that command works:

chown is the command for changing ownership on files and directories.
~ is shell shorthand for your home directory.
-R means it's not just changing ownership of your home directory, but that the operation is to apply recursively, to all files contained anywhere within your home directory.
The first $USER means you will be the owner of the files. The second $USER (after the :) means your user's group (the group created with your user account, to be the default group-owner of your files) will be the group owner.

For future reference:

If you must run a graphical application as root, you should use a graphical sudo frontend like gksu/gksudo or kdesudo. This sets the $HOME environment variable to /root--root's home directory. (It also makes a copy of ~/.Xauthority.)
However, it's best not to run complex applications like Eclipse or Firefox as root at all, for security reasons. Some graphical utilities must run as root to work, but Eclipse is not an administration tool, and you should never need to run it as root. If you do, something is wrong.

Fixing Location

As @Engine wrote:

  The problem wasn't the whole directory, but only the folder /tools in
  android-sdks. I copied it from the root folder and then I gave my
  user the ownerships rights with:

chown -R $USER:USER ~

That is to say that, when eclipse had been run as root, it had (at least at some point) used root's home directory (not the user's home directory), and the Android SDK had been stored inside root's home directory.

Either that, or the Android SDK could have been manually installed as root beforehand.

For the benefit of others with this problem:

The tools folder can be copied from inside /root with:

sudo cp -R /root/android-sdks/tools ~/android-sdks/

Or you can move the tools folder (rather than copying) with:

sudo mv /root/android-sdks/tools ~/android-sdks/

Then fix ownership as described above. Or, just for the relocated tools folder, with:

sudo chown -R $USER:$USER ~/android-sdks/tools


Yours rancid has standard Ubuntu package - rancid from universe repository (since Ubuntu Trusty Tahr - 14.04 LTS).

By the commands below you will get version 3.7 on your Ubuntu 18.04 LTS:

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install rancid # rancid-cgi


Ubuntu 20.04 with Intel RST systems - implications of running bcdedit command while safe boot has already been activated through msconfig

From the comments...
RST
Recommend following the instructions (Choice #2) found in this answer without deviation.
In Windows
To disable FAST BOOT and HIBERNATION...

boot into Windows
open the Power control panel
choose change what the power buttons do
choose change options that are unavailable
uncheck fast startup
close the Power control panel
open an administrative command prompt window
type powercfg /h off

If you wish to check your C: drive, and others...

type chkdsk /f c:
approve to run chkdsk at next reboot
type chkdsk /f x: (replacing "x" with drive letters of other visible NTFS partitions)
reboot into Windows to let chkdsk run on drive C:

In BIOS

disable SECURE BOOT


Is the Ubuntu direct download exactly the same as the torrent?

Yes, no matter where you download it (so long as it's an official source) the ISO will be the same.

You can check the hash to make sure the download is correct:

Where to find the checksums of Ubuntu ISO images?
How to verify that the ISO I downloaded is bootable before I burn it?


"Appearance" icon has vanished from "System Settings"

Try installing these packages in the terminal:

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

and

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

That should bring it back.


These buttons are hard coded, so I would suggest you report a bug and tag it as wish-list for indicator-sound.


Mounting the hard drive when booting from a cd

Assuming you are booting from Ubuntu 12.04 CD, open nautilus (the folder icon on the launcher at the left edge of the screen). On the left panel of nautilus you should see your hard drive partitions. Click on the one you want to mount. It should open in the right panel of nautilus.


Installing TexLive 2016 on Ubuntu 16.04 LTS

Unfortunately Ubuntu 16.04 only ships the older version of TexLive. However for Ubuntu 16.04 you can install TexLive 2016 by adding the following PPA:

sudo add-apt-repository ppa:jonathonf/texlive-2016
sudo apt-get update

and then installing TexLive as usual. Bear in mind that the same gentleman has separate PPAs with TexLive 2015 and 2017 also available for Ubuntu 16.04...


Disabling Webcam by blacklisting driver - what are the consequences?

You can install/uninstall kernel modules (we don't call them 'drivers') anytime using the modprobe command.

The blacklist merely lists modules to not install at boot. YOU are not governed by the blacklist - after boot you can change anything anytime. For a webcam, a restart should not be necessary.

See man modprobe for how to install/remove/list modules.

To disable hardware by default, blacklist the module.
To enable the hardware temporarily, install the module...and then uninstall the module when complete.

Of course, you can also just put a piece of opaque tape over the webcam, too.


Any way to make vim work as vscode (at least close )?

I'll try to address your questions here, let's see if I can help you with some of them.

Match whole word

You can match a whole word while searching in Vim by using the \< and \> anchors around the word.

For example:

/\<withColumn\>

But an easier way around that is to use the * and # commands, which will search for the word under the cursor (* forward, # backwards) and will automatically use the \< and \> anchors when doing so. I find these tend to be the most useful when I'm writing code, since I usually have occurrences of the function/variable/class name I'm looking for close by, so I can just navigate there and use * to find the next occurrence, and then repeat with n to keep finding further occurrences.

If you tend to use the / search more often and you'd like to save on typing \< and \>, consider adding a mapping, such as:

nnoremap g/ /\<\><left><left>

The g/ key sequence will start a search, then type the \< and \> for you and finally go left twice so the cursor is right at the middle of them, ready for you to type the search term, which will then be searched as a whole word only.

Case sensitivity

You didn't really go into details there... But by default searches in Vim are case sensitive. But it's possible you're using a .vimrc that is configuring them as case insensitive, or case insensitive in some situations, so it's good to understand the settings that control that.

set ignorecase: This will make searches case insensitive, so make sure you don't have that set if what you want is case sensitive search. You can check the current status of this setting with :set ignorecase? and you can disable it with :set noignorecase (or :set noic.)
set smartcase: This one makes searches case insensitive only when there are only lowercase letters in the search term and 'ignorecase' is also set. So, more precisely, this makes them case sensitive when there are uppercase characters in the search term, even if 'ignorecase' is set.

It's possible you have both of these set (it's quite a popular setting) and you're seeing case insensitive searches when your search terms are all lowercase... So you might want to look into removing 'ignorecase' from your .vimrc or overriding it explicitly with set noignorecase if always case sensitive is what you want.

You can also override these in particular searches, with \C and \c as part of your search term.

If you want your mapping for searching for entire word to always be case sensitive, consider this mapping:

nnoremap g/ /\C\<\><left><left>

That does not depend on the setting of 'ignorecase' at all.

Multiple cursors

You linked to another question, but I'm not sure if you saw the answer mentioning a plug-in that does exactly what you want. The top voted answer there only talks about visual block mode, which is very useful but doesn't work when you're dealing with identifiers that are not aligned and not on consecutive lines.

This answer, on the other hand, mentioned the vim-multiple-cursors plugin, which, as far as I can tell, does the exact same as multiple cursors in VSCode or Sublime.

(I'm not really a user of this plug-in, or a user of VSCode, or a user of Sublime, so I couldn't tell for sure, but looking at the video, it looks like what you describe.)

I'd encourage you to take a closer look at this plug-in and see if it fits your use case.

However, I'd like to point out that, even without multiple cursors, you can perform large scale changes to files in Vim by just using the basic commands, without the real need for any plug-ins at all.

I recommend the article "You don’t need more than one cursor in vim" by Christoph Hermann for a great take on this topic, with many particular examples and advanced use cases far beyond what you'd be able to accomplish with multiple cursors.

So, in short, if you want multiple cursors, check out the vim-multiple-cursors plugin, but if you want to learn commands in Vim that can take on the same kind of editing tasks, read the article (or look for it online, you'll surely find more posts about efficiently refactoring code with Vim.)


Xorg starts in failsafe mode when nvidia-current is active

Just to make sure, check that you have the nvidia package installed.  The following command should show ii at the far left on the nvidia line:

sudo dpkg -l nvidia-current

Assuming you do have the nvidia package installed, I'd give the "nouveau" driver a try.  It's open source, and seems to have fewer issues than the binary one, but it's not as fast.  To try it, edit /etc/X11/xorg.conf and change the "Device" Driver line from "nvidia" to "nouveau".

Before restarting X, make sure nouveau is installed:

sudo apt-get install xserver-xorg-video-nouveau

You might need to remove the binary driver(s) in order for "nouveau" to work:

sudo apt-get remove nvidia-current nvidia-current-updates

You may need to reboot after any of the above changes to see it working as expected (unless you are very familiar with Ubuntu kernel module (un)loading).

Btw, there are known issues with nvidia-current.  See Launchpad bug #980298.  Also, you state that nvidia-current-updates is 295.49, but packages.ubuntu.com seems to think that it is 295.40.  So, you may have better luck when Ubuntu officially rolls out 295.49.  Alternatively, the Launchpad bug has a link to a deb for 295.49.


Errror hd0 read .press any key to continue

Simple solution just change place hdd sata cable from slot 0 to 1 in motherboard.
I worked i my case.


Internal & Microphone Jack not working on HP Pavilion dv1000 Laptop

I solved "External" mic problems for Ubuntu 12.04.

I don't have internal mic for my dv1000 but the internal mic should work too.

Though I cannot get my dv1000 for Ubuntu 10.04 LTS work at all till now. (No matter with all possible how to, including updating alsa ppa.)

Open a Terminal Ctrl+Alt+T
Enter this command: gksu gedit /etc/modprobe.d/alsa-base.conf
Copy the below "option" and add it to the last line of that alsa-base.conf file:

options snd-hda-intel model=auto enable=yes

Reboot
Go to "Sound" and go to "input" setting.
"Insert" your external microphone (ext.mic) jack into the "Mic in Jack hole" of the dv1000.

If you don't insert the ext.mic, the Line In (ext.Mic) option will not be there.
You must select Line In Input (it is for our ext.mic), in order to enable External Mic.
Don't forget to un-mute the "mute" microphone option, if it is still checked.
(mine is always muted)
Test new setting with Sound Recorder.

Source: This is taken from http://ubuntuforums.org/showthread.php?t=2018599 with an additional warning in step 6, and slight rewording elsewhere.


I can guess the cause of the crash is a addon:

error Add-ons: ubufox%40ubuntu.com:3.0,%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:39.0,langpack-en-ZA%40firefox.mozilla.org:39.0,langpack-en-GB%40firefox.mozilla.org:39.0

Usually when Firefox updates these need to be upgraded, and this is usually done automatically, but in this case it won't. To try and fix it:

Start Firefox in Safe Mode - you can probably also do this using the command firefox -safe-mode in terminal, and then selecting Safe Mode. Then try to uninstall or disable the problematic addons in the Extensions/Languages sections of the Addon Manager. Close Firefox and open it again to see if it worked.
Make a new profile (use firefox -P), or reset firefox (use firefox -safe-mode again, but select Refresh). This is issue probably is just with the one addon so I would recommend trying normal Safe Mode and trying to disable it first.


How to forward an Internet connection to another network?

This is how I worked it out...

Create a new wireless network (aka hotspot) using the network manager.
Enable IP forwarding by executing the command below:

echo 1| sudo tee /proc/sys/net/ipv4/ip_forward

Identify the device which connects your computer to Internet, by using ifconfig command. (My one is ppp0, because it has an IP address.)
Finally tell iptables to forward ppp0's internet traffic to everywhere!

sudo iptables -t nat -A POSTROUTING -s 10.10.0.0/16 -o ppp0 -j MASQUERADE

Disconnect & reconnect the Wifi connection(Hotpsot) you made earlier.
Internet should be flowing to the wireless network now!
If you did it correctly, the output of sudo iptables -L should be similar to this:

Chain FORWARD (policy ACCEPT)
target.....prot opt.....source....................destination
ACCEPT.....all  ---........  anywhere.............10.42.43.0/24.........state RELATED,ESTABLISHED
ACCEPT.....all  ---........ 10.42.43.0/24......anywhere

An external guide is available here.
Thanks to web-E...!


If Kile's interface is what you're interested in, then its online documentation is a good starting point. You can find it on Kile's sourceforge page.

If, however, you'd like to learn more about LaTeX itself, then I highly recommend the LaTeX companion (available on amazon) or, available online, the Not So Short introduction to LaTeX (1).


Still getting input out of range error in grub

Run this command:

gksudo gedit  etc/default/grub

A proper grub file should look like this:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="acpi_osi=Linux"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

The only differences I see in your file is that there are "" at places not needed at all.

Just edit those lines and save. Then reboot.

Hope it works for you this time.


Ubuntu 18.04 Live USB - wallpaper only, no cursor, no Try or Install choice

Found the answer.

Despite that I set my BIOS to use the PCI graphic card, Ubuntu still finds the MB display adapter, and uses that. When I attached a second monitor to the MB display adapter, I could see the Live CD Try or Install option.

Is there a way to interrupt the Live CD grub boot, and specify a display adapter to use?


How to extract a rectangle of text from a file in CLI?

You could use sed, it is very flexible.
For instance, to print lines 2 to 5, and 4 columns starting at column 3:

sed -n '2,5 s/^.\{3\}\(.\{1,4\}\).*$/\1/p'

-n means do not print the line if no match
2,5 means only for lines 2 to 5
s/1/2/p means substitute 1 by 2 and print it
^.\{3\}  match at start of line (^) any character exactly 3 times
\( \)  selects what we will output using \1 in replace part
.\{1,4\} select any character once up to 4 occurences
.*$      match any character up to the end of line

All together, this will do what you want.

EDIT:
The previous solution is missing lines with less than 4 characters.
A better solution is:

sed -n '2,5 s/^.\{0,3\}\(.\{0,4\}\).*$/\1/p'

This one will put empty line if the line is less than needed characters, by allowing 0 columns before output, and 0 columns in output.


Cant login to ubuntu 16.04 (this is fifth time in last week)

Thanks to @Byte Commander,
I found the error.

In my /etc/environment
I had added export parts:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

export JAVA_HOME="/usr/local/java/jdk1.8.0_171"
export ANT_HOME="/usr/local/ant"

export PATH=$ANT_HOME/bin:$PATH
export PATH=$JAVA_HOME/bin:$PATH

I removed export paths and it worked.

I think I should put / to end of them. I am not sure about it. And I don’t know how can I be sure after again adding them.

I removed export parts

https://stackoverflow.com/a/23384301/9103745

like that

  JAVA_HOME="/usr/local/java/jdk1.8.0_171"
     ANT_HOME="/usr/local/ant"

     PATH=$ANT_HOME/bin:$PATH
     PATH=$JAVA_HOME/bin:$PATH

but it did not work.

UPDATE

This is my .profile , lastversion:

 ...
# set PATH so it includes user's private bin directories
    PATH="$HOME/bin:$HOME/.local/bin:$PATH"

    PATH="$ANT_HOME/bin:$PATH"
    PATH="$JAVA_HOME/bin:$PATH"

this is etc/enviroment

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

JAVA_HOME="/usr/local/java/jdk1.8.0_171"
ANT_HOME="/usr/local/ant"

and for .zshrc
i added those to bottom

     source /etc/environment
  source ~/.profile

Now it seems it is working. When i open a new terminal, it will source both. I dont know if this is a good idea but could not find any other way.


Unable to install yum on Ubuntu 20.04 (AWS EC2)

I try it successful.
I must install rpm first：
sudo apt-get install rpm

And then install the yum：
sudo apt-get install yum


Disabling Clipboard completely in Ubuntu - Openbox environment

You will need to intercept the appropriate X11 selection event and return a null response to any requests.


How to connect raspberry pi into Ubuntu?

You need to connect both the PC and the Pi to a router and then browse the network for each other.  DHCP should give the Pi a pretty predictable IP address.  You might have to SSH in.

But you cannot just connect the Ethernet from the Pi to the back of your computer

Unless of course you have a dual-NIC setup with an internal network setup on one and WAN on the other.


This is more a long comment than an answer.

You have an scheduling while atomic bug, this always means that there is a bug in some driver that you are using. It means that some code that was supposed to be atomic (it shouldn't be interrupted) has called the scheduler.

I can't see from the screenshot what driver is causing the problem.

As some kind of workaround you can try the new 12.04 beta, maybe the bug is resolved in it. You can find the Wubi installer inside the ISO. But be careful, it is a beta and there is no guaranty that it will solve your bug.


The binary wrappers (and service files) define the SNAP_ARCH environment variable for you. Unfortunately not an ideal solution since they're not triplets, but it should be enough information for you to get there with a case statement or something.


How can i use dyndns and send emails from it?

karthick87 linked to a good post on getting dyndns up for others connecting to you.  the problem with sending emails, however, is "what mail relay is going to trust a dyndns domain?"  I would talk to my internet provider and see if they'll allow that sub-domain to send emails on their mail relay.  until you find an amicable mail relay the rest of the configuration is a moot point.


How to read the filepath into the variable?

Below Code worked. I have moved cd command before FTP command.

clear
while IFS="," read SRC_IP SRC_UNAME SRC_PSWD SRC_PATH SRC_FILE DEST_PATH
do
cd $DEST_PATH
ftp -n $SRC_IP <


Docky
I think Docky is the best dock on Linux, fully configurable and theme-able with many useful add-ons. You can easily give it a try, you'll find it in the Ubuntu Software Center.


I need help setting up my wireless card driver

Wine isn't used to install drivers.  Go to "Additional Drivers" in settings, and install any drivers not installed.  Note that you will need an alternate connection temporarily (e.g. plugging in to the router via an Ethernet cable) for this to work.


Ubuntu 18.04 gnome-shell in login crash loop with libmutter-2

I messed up with mutter today and could not login from the GUI.
I do see .xsession-errors file under my home directory. You may want to check if you have that file.


I think you can give a try to the solution suggested here, installing the flash-aid plugin on Firefox, that was developed by an ubuntu-forums member and applies some tricks to improve Flash performance on Ubuntu:

http://ubuntudigest.blogspot.com/2011/10/how-to-solve-flash-problems-on-ubuntu.html


You can restart your computer through dbus, no password required.

(Taken from a previous answer of mine)

#!/usr/bin/env python

import dbus

def main():
    answer = raw_input("Do you really want to shutdown your computer? (Y/n): ")
    if answer in ('y', 'Y', ''):
        bus = dbus.SystemBus()
        bus_object = bus.get_object("org.freedesktop.Hal", "/org/freedesktop/Hal/devices/computer")
        bus_object.Shutdown(dbus_interface="org.freedesktop.Hal.Device.SystemPowerManagement")

if __name__ == "__main__":
    main()


How to re-create the repositories in /etc/apt folder in Ubuntu 18.04

You can create sources.list in /etc/apt directory.

sudo touch /etc/apt/sources.list

Open file with nano.

sudo nano /etc/apt/sources.list

Copy following content in file.

#------------------------------------------------------------------------------#
#                            OFFICIAL UBUNTU REPOS                             #
#------------------------------------------------------------------------------#

###### Ubuntu Main Repos
deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse

###### Ubuntu Update Repos
deb http://in.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse

Save it and You will be able to run

sudo apt update

and install any packages.


How to add a hyperlink to an action button?

This is  from Oracle's OpenOffice Help TNT blog:

Right-click the new push button and    choose Control from the context menu.
This opens one of the two main
properties windows.
Right click the Action list button    and select "Open document/web page"
from the list.
The URL text field is now enabled.    Click the […] button next to the URL
text field to select the document
that should be opened when a user
clicks the button.

The last step here is applicable only if you want to link to a document. If you want to link to a web page, enter the url in the "URL" field, right below where you selected the action.
Now you've got to leave design mode (button in the form controls toolbar) for the button to work.


Graphics showing as VESA: BONAIRE, but I have AMD

No you do not need extra drivers, these should be fine. Bonaire is a code name for a certain chip. AMD and Nvidia do a whole lot of re-branding of older models on a yearly basis (because OEMs force them to come up with updated model numbers that suggest significantly more performance), so don't be confused when you find this code name in earlier generations.

  Radeon R7 260X

  Radeon R7 260X was announced on September 25, 2013. With a launch
  price of $139, it is based on the Bonaire XTX chip, a faster iteration
  of Bonaire XT that the Radeon HD 7790 is based on.

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


Ubuntu.Components version 1.1 is not installed

Ubuntu Components 1.1 is not available for Ubuntu 14.04.
You have to upgrade to 14.10


First, run apt-get -f install

Once you do that, try to uninstall it again: apt-get autoremove --purge wordpress

If it still fails, run sudo aptitude to try and figure out what the problem is.

Another solution is to do a complete force remove that will remove anything that gets in the way: sudo dpkg --remove --force-remove-reinstreq wordpress


$ java -version
will tell you which version of java is being used. Since the java icon is still there , it might be still present on your system.


Kubuntu upgrade in Ubuntu Studio environment

This is the preferred method:

sudo apt-get install update-manager-core
sudo do-release-upgrade

You can also use the update-manager (all editions):

sudo apt-get install update-manager
sudo update-manager -d

You can also use:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade


Editing GRUB2 listing and background-image?

You could try Grub Customizer.

  Grub Customizer is a graphical interface to configure the GRUB2/BURG
  settings and menu entries

Features:

move, remove or rename menuentries (they stey updatable by update-grub)
edit the contents of menuentries or create new ones (internally it edits the 40_custom)
support for GRUB2 and BURG
reinstallation of the bootloader to MBR
settings like default operating system, kernel params, background image and text colors etc.
changing the installed operating system by running on a live cd

References:

Launchpad Project Link


Install 32 bits libs (ia32-libs in some distros, moving to this: http://wiki.debian.org/Multiarch/HOWTO in others, more on that if you ask for it).
Be sure to add the i386 library path to your LD_LIBRARY_PATH env. variable. (most certainly export  LD_LIBRARY_PATH = ${LD_LIBRARY_PATH}:/lib32:/usr/lib32:/usr/lib/i386-linux-gnu and so one).
Be sure to add the i386 include path to your LD_INCLUDE_PATH environment variable.

Feel free to look for these libraries (once installed of course), using:

find / -iname "*libstdc++.so*" 2> /dev/null

for instance for the libstdc++.so library. find should report some path that you will be able to add to your LD_LIBRARY_PATH environment variable.


Based on the manual page of clamscan(1):

#!/bin/sh
clamscan -r -i --stdout / > /path/to/clamav.log
exec poweroff

Mark the script file with the above content as executable,

chmod +x scan-and-poweroff.sh

and execute it as super-user,

sudo scan-and-poweroff.sh


Weird message on terminal after installing ROS Melodic

I did this while installing ROS:
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc

the solution was to do: nano /.bashrc and comment the last lines related to that, then the problem was solved.


Setup and hosting multiple zones using own Bind Nameserver

It's an old question but answering for people who coming to this post via search engine.

To point your domain to VPS you need to configure your VPS to server names-server DNS records, shared hosing comes with name-server but for unmanaged vps you have to setup your own.
To serve DNS records we need to install DNS server package like BIND9

Install BIND9, ignore if you have already

apt-get install bind9

Configure and Create Zone File for domains to add records
open file name.conf.local and insert zone file name for domain

cd /etc/bind/
vi name.conf.local
zone "mynsdom.com" {
        type master;
        allow-transfer {none;};
        file "/etc/bind/pri.mynsdom.com";
};
zone "zyx.com" {
        type master;
        allow-transfer {none;};
        file "/etc/bind/pri.mydom2.com";
};

save and close file.

Create Zone File for domain

touch pri.mynsdom.com
touch pri.mydom2.com

To create name server ns1.mynsdom.com and ns2.mynsdom.com. added NS and A records. replace 000.000.000.000 with server IP

 vi pre.mynsdom.com

$TTL        3600
@       IN      SOA     host.mynsdom.com. info.mynsdom.com. (
                        2015062803       ; serial, todays date + todays serial #
                        7200              ; refresh, seconds
                        540              ; retry, seconds
                        604800              ; expire, seconds
                        86400 )            ; minimum, seconds
;

mynsdom.com. 3600 A        000.000.000.000
mail 3600 A        000.000.000.000
sv4 86400 A        000.000.000.000
sv4 86400 A        000.000.000.000
www 3600 A        000.000.000.000
mynsdom.com. 3600      MX    10   mail.mynsdom.com.
mynsdom.com. 3600      NS        ns1.mynsdom.com.
mynsdom.com. 3600      NS        ns2.mynsdom.com.

Now add ns1.mynsdom.com and ns2.mynsdom.com as child nameserver in domain register panel and also add in nameserver address in domain register.

To add another domain to same vps

vi pri.mydom2.com

$TTL        3601
@       IN      SOA     host.mynsdom.com. info.mynsdom.com. (
                        2015062813       ; serial, todays date + todays serial #
                        7200              ; refresh, seconds
                        540              ; retry, seconds
                        604800              ; expire, seconds
                        86400 )            ; minimum, seconds
;

mail 3600 A        000.000.000.000
mydom2.com. 3600 A        000.000.000.000
www 3600 A        000.000.000.000
mydom2.com. 3600      NS        ns1.mynsdom.com.
mydom2.com. 3600      NS        ns1.mynsdom.com.

service bind9 restart

You can also add your MX records for email in the zone file of any domain


Could someone explain to me in simple terms how to install this specific Java platform?

Try installing OpenJDK and IcedTea Plugin from Software Center. It's easier to do if you have no experience. https://apps.ubuntu.com/cat/applications/openjdk-7-jre


Huawei E303C 3G modem device - Mobile partner unable to start(no GUI), calling, USSD issue

I use a huawei K3772 modem and this is how i was able to make a USSD to check balance and also make a call in ubuntu.modem-manager-gui and mmcli didnt work for my modem

I use AT commands.It is usually a foolproof method to check ussd, send and retrieve sms and also make calls.

Checking USSD

ALT1----using modem-manager-gui:

sudo apt install modem-manager-gui

ALT1 does not work for some modems

ALT2----Using AT commands (works for all modems)

To send AT commands in linux i prefer picocom (others are putty, minicom, screen):

sudo apt install picocom

insert your dongle into pc and should be detected by Network manager applet

Find out the various ports of the modem:

ls /dev/ttyU*

usually the dialogue port is /dev/ttyUSB0. We would "talk" to the modem on this port

start picocom on that port:

sudo picocom -c /dev/ttyUSB0

the -c means local echo on, so that you can see the AT commands as you type

check USSD with:

AT+CUSD=1,"*124#"

This should give you a reply such as "Your balance is ..."

Tip:- Some modems do not give this human readable reply but instead give something like "0933737ADRE35338..." which is hex

To fix such a problem your modems char set has to be set to GSM

check the current character set mode:

AT+CSCS?

check available modes:

AT+CSCS=?

To use plain-text USSD, modem must be in GSM

AT+CSCS="GSM"

Now check ussd:

AT+CUSD=1,"*124#"

for subsequent replies where you have to give a reply to the network
for instance after checking ussd you get a reply like 1.Top up 2.check wallet

to choose Top up do:

AT+CUSD=1,"1"

To quit the session do:
ctrl+a followed by ctrl+x

To make a voice call on huawei modem on ubuntu linux go here Huawei make voice call on linux


lubuntu 16.04, 64 bit: Libreoffice 5 crashes desktop session

So far how I could solve it was by downgrading libreoffice to a previous version. For that I followed this answer: How to "properly" downgrade LibreOffice versions suggested by Cipricus.

I installed version 5.1.1 and it seems to work better.


Ubuntu 14.04 does not start installation

First things first, did you disable Safe Boot/Fast Boot? If not, do so.

Second, check your install medium. If there are any errors (bad files, scratches, etc...) Ubuntu could fail to boot.

Finally, make sure you are not using Legacy Bios/CSM with your Ubuntu UEFI install disk, it simply wouldn't boot.


Right after posting the comment on your OP I solved the issue for me:
$ sudo ethtool -s eth0 speed 1000 duplex full autoneg off
After executing that, I ran a speed test and got the same exact speeds I expect on Windows (slightly lower, but that could just be the time of day, it is a negligible difference).
The one downside is that now the driver is entirely confused:
$ ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: Unknown!
        Duplex: Unknown! (255)
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: off (auto)

I'm not too worried about that right now, I have a big project I need to finish. If I figure out the exact process of resolving the driver having no idea what I am asking of it, I will update this post. Hope this helps!
EDIT: Briefly wanted to note that if you try to use the ethtool command as I did, it appears it will not remain as you want it the next time you boot up and you will need to execute the command once again. I believe with autoneg off, the settings should have remained even after reboot but its likely that it is resetting itself due to the speed and duplex args being out of bounds. Like I said, I'll update with a fix for that once I figure it out.


how do I image a drive to an uncompressed file?

If you're talking about something like https://wiki.archlinux.org/index.php/Disk_cloning#Create_disk_image you see

# dd if=/dev/sdX conv=sync,noerror bs=64K | gzip -c  > /path/to/backup.img.gz

Which is getting the data, passing it through gzip, and writing it to a file. Now, watch this:

# dd if=/dev/sdX conv=sync,noerror bs=64K > /path/to/backup.img

Cool, huh? No no, hold your applause.


How can I install applications, share files on a remote computer?

If you are familiar with the command-line, you could just use SSH to get to his box and install stuff with apt-get ?

Basically you need to

run the sshd (ssh daemon) on the target computer
have the router route your traffic (port 22 is the default port)
have access (username/password) to the machine
use ssh the.target.ip (-p port) to gain access.


This update is for the Logitech Unifying wireless dongle. As such, you should not move the mouse/keyboard during the update, or the update will fail.

The system may require a reboot, or a re-plug of the dongle, after the update.

Note: If need be, if you have Windows, use the Logitech Unifying Software to update the firmware in the Logitech Unifying wireless dongle.


Touchscreen not working on Toughbook CF-C2

Well, I got it.

How to get Bamboo Pad working on Ubuntu 14.04

I went as far as the first step - update grub. I did NOT have to alter /usr/share/X11/xorg.conf.d/50-wacom.conf or build input-wacom. Everything works. I see:

xinput
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Wacom Co.,Ltd.       MultiTouch Sensor   touch    id=9    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ USB HD Webcam                             id=10   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=11   [slave  keyboard (3)]
    ↳ Panasonic Laptop Support                  id=13   [slave  keyboard (3)]

Now I can play around with the multi-touch stuff, but I'm happy to have basic touch.


May seem silly, but have you sudo apt-get install lightdm unity-greeter? If I recall correctly lightdm should be downloaded as a part of the ubuntu-desktop meta package - so if you've missed that package, try installing it. You should also have the unity-greeter packaged. It should drop right into place after installing.

You might need to manually switch to lightdm:

How can I make LightDM the default display manager?


How to update the multiple files without changing file date?

I don't think there is a clear solution for you.

But as a workaround solution.

Get the modification date of a file

stat file.txt | grep Modify

Now After completing what you did restore the previous modification date

touch  -m -t [[CC]YY]MMDDhhmm[.SS]

he following explains the above format:

CC – Specifies the first two digits of the year
YY – Specifies the last two digits of the year. If the value of the
YY is between 70 and 99, the value of the CC digits is assumed to be
If the value of the YY is between 00 and 37, the value of the CC digits is assumed to be 20. It is not possible to set the date beyond
January 18, 2038.
MM – Specifies the month
DD – Specifies the date
hh – Specifies the hour
mm – Specifies the minute
SS – Specifies the seconds

For example: changind modification date of a file of mine called url.txt

stat url.txt | grep Modify

output

Modify: 2015-05-04 09:42:28.148281881 +0300

change modification to 04/05/2016 20:05:04

touch -m -t 201605042005.04 url.txt

Get sure that works

stat url.txt | grep Modify

output

Modify: 2016-05-04 20:05:04.000000000 +0300


personally, I use Stacer to clean up space. it's very friendly

sudo apt install stacer


When you create a Linux Container it exists within its own network space. That is why the IP addresses look so different. Your Virtual Machines have 192.168.1.x while your Linux Containers are assigned 10.0.3.x.

One way of solving this is to create a dedicated virtual network card on the Linux Container which will then pull an address from the 192.168.1.x network.

Below are the core instructions, but detailed steps and background come from this Bonsai Framework article.

  Create a Permanent macvlan on the Host

  Add to the bottom of the /etc/network/interfaces file of the host,

# Creates a macvlan interface called macvlan0 without an IP address
iface mvlan0 inet manual
   pre-up ip link add mvlan0 link eth0 address 8a:38:2a:cc:d7:aa type macvlan mode bridge
   post-down ip link del macvlan0
auto mvlan0

Reboot your system to have the change take effect. You will notice a mvlan0 now when viewing your network devices with ifconfig -a.

Connect Container to macvlan on Host by modifying the config file located in /var/lib/lxc/[container]/config.

  The entries to add for your new network card,

# macvlan for external IP
lxc.network.type = macvlan
lxc.network.macvlan.mode = bridge
lxc.network.flags = up
lxc.network.link = mvlan0
lxc.network.hwaddr = 00:16:3e:8d:4f:51
lxc.network.name = eth0

For the hwaddr, generate a unique locally administered unicast MAC Address via a free website like helion.org.

Finally, adjust the interfaces file within the container to bind via static or if you prefer use dynamic.

In my case, I adjust my home router so that 192.168.0.1 to 192.168.0.20 are not dynamically assigned and use static in my LXC.

So I modify my containers interfaces file as follows,

auto eth0
iface eth0 inet static
address 192.168.0.12
gateway 192.168.0.1
netmask 255.255.255.0

auto eth1
iface eth1 inet dhcp

Restart your Linux container.


It looks like the external devices are falling offline and then when they come back are added as a different device.

Have you tried to use labels instead?

http://www.cyberciti.biz/faq/rhel-centos-debian-fedora-mount-partition-label/


Maybe this thread could help:

http://ubuntuforums.org/showthread.php?t=1967277  (comments #5 and #7)

The issue seems to be due to a bug. To get around this issue you need to copy your wallpaper to /usr/share/backgrounds and then set the permissions to read only (there's 3 permissions sections, set the last two to read only and leave the first on as read/write). That should fix it. Make sure your folder containing the pictures isn't set so only your username can read the files. Set to anyone can read-only and it should work.


In KDE there's a setting where you can set up a monitor for each application to be opened on startup. you can even set the exact position, heigth, width, workspace, ...

That's something I missed in other GUIs, too.


Yea upgrade to 12.10 the Gnome Online Account in that supports way more other accounts too than just these two.


I had problems the xRDP package for 10.4.  I downloaded an installed the package from 10.10 and it works well.   I also had problems with some of the VNC servers.  I am currently running vnc4server successfully.

See my setup for Remote Desktops with VNC and RDP for more details.


SSH: StrictHostKeyChecking is set to no, but prompt still appears

From the docs:

  StrictHostKeyChecking

  [...] If this flag is set to “no” or “off”, ssh will automatically add new host keys to the user known hosts files and allow connections to hosts
  with changed hostkeys to proceed, subject to some restrictions. [...]

You need to add that setting on the client, either by putting the lines

# for all hosts
Host *
    StrictHostKeyChecking no

or

# for a particular host
Host 123.123.123.123
    StrictHostKeyChecking no

into your local ~/.ssh/config.

You can also supply the option directly in your ssh command (thus overwriting any settings in the config file):

ssh -o StrictHostKeyChecking=no ubuntu@123.123.123.123 -i ./travis/id_rsa

The host key tells the client that the target host is actually the host it pretends to be. In theory you could call the server's admin and ask him (on the phone or something) to tell you the output of ssh-keygen -lf /etc/ssh/ssh_host_ecdsa_key.pub and then compare that string with the fingerprint shown on your client. If they match, then you are safe and can add that key to your known_hosts file. With StrictHostKeyChecking=no you simply tell the client to just believe/trust the target machine and accept its key.


For the first sets of lines, read the actual error message.  You have entries in both /etc/apt/sources.list and /etc/apt/sources.list.d/google-chrome.list.

Either comment out the lines in your /etc/apt/sources.list.d/google-chrome.list or comment the lines out in /etc/apt/sources.list.  (I'd suggest commenting out the offending line in /etc/apt/sources.list and let the google-chrome.list in /etc/apt/sources.list.d/google-chrome.list alone).

The last one though about GPG signature being weak is a different issue, and is not one you can fix.


coniure-up canonical kubernetes never ends

Somewhat resolved: trying the install from scratch in a new VM ended correctly using ubuntu 16.04 and conjure-up snap updated to 11 March 2017


You can disable it via systemd:

$ sudo systemctl disable hybrid-sleep

If you change your mind in the future you can enable it again:

$ sudo systemctl enable hybrid-sleep

More info:

man systemd-hybrid-sleep.service


Installing Ubuntu on an Asus Vivotab Smart Windows 8 32-bit processor tablet

I haven't checked the latest Ubuntu release, but the last one I did check did not include EFI support in the 32-bit installation medium. You can add it yourself, though. The medium will need a FAT partition (it may already use FAT; I don't recall offhand) with the boot loader stored at EFI/BOOT/bootia32.efi on the FAT filesystem. Ubuntu uses GRUB 2 by default, but that will be very difficult to get working on an Ubuntu install medium. Instead, I suggest using ELILO or rEFInd. I describe both in my Managing EFI Boot Loaders for Linux page. Whatever you use, you'll need to figure out the appropriate options to pass to the kernel. You can find these in the boot/grub/grub.cfg file on the Ubuntu install medium (at least, that's where it is on the 64-bit version that I've just checked).

I don't know offhand if the 32-bit version will install an EFI version of GRUB. If not, you'll have to manually install an EFI boot loader on your hard disk (or SSD or whatever your computer has) using an emergency system.


Open the terminal and type:
uncompress -c codg0010.17i.Z | sed -n '/START OF TEC MAP/,/END OF TEC MAP/p'

To output the results to an output file instead type:
uncompress -c codg0010.17i.Z | sed -n '/START OF TEC MAP/,/END OF TEC MAP/p' >> output.txt

The -i option of sed is used for editing files in place. To extract the file from the archive and edit it in place instead of writing the output to output.txt:
uncompress codg0010.17i.Z # This archive has only 1 file in it named codg0010.17i.
sed -ni '/START OF TEC MAP/,/END OF TEC MAP/p' codg0010.17i

This prints all the text between START OF TEC MAP and END OF TEC MAP, however this file contains not the data of just one TEC MAP but the data of 25 different TEC MAPs arranged sequentially and the above command prints the data of all 25 maps together.
Explanation
The sed part of the command has the following form:
sed -n '/WORD1/,/WORD2/p' /path/to/file

WORD1 is the beginning string ( START OF TEC MAP )
WORD2 is the end string ( END OF TEC MAP )
p is a sed command to print specific lines, in this case all lines including and between START OF TEC MAP and END OF TEC MAP
/path/to/file is the either the path to the file or simply its name if your current directory is the same as the directory which contains the file.


bash: ./xampp-linux-x64-7.2.7-0-installer.run: permission denied

This is what I did.

In the file properties->Permissions tab selected the group permission to read and write
checked the checkbox next to execute option.

See the screenshot here.

then opened a terminal in the directory and typed the following commands

sudo su
./xampp-linux-x64-7.2.7-0-installer.run

See the screenshot here

installation started like a charm!

Note: I tried this when the file was in a non-system partition. It didn't work. So I copied the file into my home directory and did the above things. they worked.


No WiFi adapter found - Ubuntu 18.04.1 LTS - Intel Corporation Wireless 7260 (rev 83)

I resolved my issue it was not related to VMWare installation.

Actually I setup a DSL connection on my laptop through pppoeconf 1 week before this problem happened and didn't restart my laptop since then but on the day of VM installation when I restart my laptop this problem appears so I thought that it's related to VM installation.

I just edited the interfaces file in /etc/network and commented out the last two lines which resolved my issue.

auto lo
iface lo inet loopback

auto dsl-provider
iface dsl-provider inet ppp
pre-up /bin/ip link set wlp3s0 up # line maintained by pppoeconf
provider dsl-provider

#auto wlp3s0
#iface wlp3s0 inet manual


This should do what you want:

find . -perm -u+x -type f

If you want to find everything that could possibly be executable, you could look at mime-types or file output.  That would be counter-productive though since you couldn't possibly catch every script.

References:
The man page
Stackoverflow


Maybe your backend servers are listening to a server name instead of IP.
Try this

 location / {
    proxy_set_header HOST $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://192.168.1.16/;
  }


pingtest.net gives "Packet Loss Test Error"

Most consumer routers also perform NAT.  They also normally ignore pings by default.  You either can configure the router to respond to pings, or you may be able to configure the DMZ to forward the ping ( and everything else ) to your computer so it can respond.


How to SymLink multiple Folders together

dont make the directories in the users folder .. if the folders already exist it wont be able to create the link ... also you probably need to use the sudo

so delete the folders you made in User1 and User2

and create the following links

sudo ln -s /mnt/storage01 /home/User2/Archives
sudo ln -s /mnt/storage01a /home/User2/Documentation
sudo ln -s /mnt/storage02 /home/User2/Sources

and so on

link works as ln (link) -s (softlink/symbolic link) (this folder or file) to (this area/ folder) or

ln -s /FolderYouWantToHaveLinkedTo /FolderWhereYouWantTheLinkToGo


What do the ActivityWatch and InactivityWatch plugins do?

InactivityWatch
This new plugin was developed as described in this bug-report.

"Watch for silence" is useful in the following scenario: Suppose you
have a long-running job that produces output while it is running, for
example building some software. Then it would be cool to select the
"Watch for silence" action. This would continuously monitor activity
in the terminal, and when no output arrives for some configurable
time, it would mark the window as urgent so that it flashes in the
Gnome taskbar.
"Watch for activity" complements "watch for silence" and is useful for
long-running jobs that seldom produce output, and you want to be
alerted when output happens. Perhaps "tail -F /some/log/file | grep
SomePattern" is a typical example.

Looking at the plugins source-code (/usr/share/terminator/terminatorlib/plugins/activitywatch.py), it is actually not configurable - it is hard-coded to display a notification 10 seconds after a file was last updated.  Once this notification has been displayed, no further notifications are shown until the next file update.

ActivityWatch
When monitoring a log file, it is sometimes useful to be prompted when it has been updated.

A notification is sent whenever the file has been updated.
N.B. once a notification is displayed, another notification is not sent for another hard-coded 10 seconds, thus you dont have a continual stream of notifications being displayed for a continually updated file.
How to enable
Perhaps slightly confusing, the inactivitywatch and activitywatch plugins are displayed not by their plugin names.
Right-click a terminator pane - you can individually set to either watch for silence or watch for activity or both.


I'm not sure what exactly your problem with GNOME might be, but to answer your general question: You can have different DEs in Ubuntu (and Linux in general) without any problems.

Only when using PPAs, you sometimes can run into trouble with library dependcies and stuff.


So with the help of oldfred I was able to fix this problem. It was indeed the nvidia driver that made problems. So the solution was to use the nvidia drivers from the repository, rather than the .run file.

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-430
sudo shutdown -r now

Done!


Which Ubuntu Boost Package includes the UUID library?

According to the search results on packages.ubuntu.com you have to install the libboost1.71-dev package to get uuid.hpp header file.

When online search fails you can use local search by installing apt-file:
sudo apt-get install apt-file
sudo apt-file update

to get something like

$ apt-file search uuid.hpp
libboost1.71-dev: /usr/include/boost/uuid/uuid.hpp
libcaf-dev: /usr/include/caf/detail/get_root_uuid.hpp
libqpid-proton-cpp12-dev: /usr/include/proton/uuid.hpp


The package libpam-systemd needs to be reinstalled

Aptitude is a high level package manager, that you can use instead of apt.

Open terminal, Crl-Alt-T

sudo apt-get install aptitude

Then run

sudo aptitude install -f

This should find and fix any broken packages and identify any unmet dependencies.


Remove adwares ( taboola, outbrain etc ) from Chrome/Firefox on Ubuntu

The (disgusting) "around the web" is added by websites themselves to make money off ads.

The only thing you can do is to install an ad-blocker.

I recommend the open source uBlock Origin (Chrome and Firefox; code at GitHub). Get uBlock Origin, not uBlock — that is a discontinued fork.


How can I make symbolic links in one folder for multiple files in another folder

You don't need a loop at all here. Just run this ln command:

sudo ln -s /usr/share/themes/Yaru/gnome-shell/*{png,svg} /usr/share/gnome-shell/theme/

Brace expansion is handled by the shell, before launching any command. So the command above becomes:

sudo ln -s /usr/share/themes/Yaru/gnome-shell/noise-texture.png  /usr/share/themes/Yaru/gnome-shell/checkbox-dark.svg [...] /usr/share/themes/Yaru/gnome-shell/ws-switch-arrow-up.svg /usr/share/gnome-shell/theme/

In other words, it becomes ln -s f1 f2 ... fN /path/to/target/dir and that is all you need to link all your files. For example:

$ ls foo/
file1.svg  file2.svg  file3.svg  file4.png  file5.png  file6.png
$ ln -s $HOME/foo/*{svg,png} bar/
$ ls -l bar/
total 0
lrwxrwxrwx 1 terdon terdon 26 Dec 26 12:16 file1.svg -> /home/terdon/foo/file1.svg
lrwxrwxrwx 1 terdon terdon 26 Dec 26 12:16 file2.svg -> /home/terdon/foo/file2.svg
lrwxrwxrwx 1 terdon terdon 26 Dec 26 12:16 file3.svg -> /home/terdon/foo/file3.svg
lrwxrwxrwx 1 terdon terdon 26 Dec 26 12:16 file4.png -> /home/terdon/foo/file4.png
lrwxrwxrwx 1 terdon terdon 26 Dec 26 12:16 file5.png -> /home/terdon/foo/file5.png
lrwxrwxrwx 1 terdon terdon 26 Dec 26 12:16 file6.png -> /home/terdon/foo/file6.png

If you just have to have a loop for some reason, use globs instead:

for file in /usr/share/themes/Yaru/gnome-shell/*{png,svg}; do
    sudo ln -s "$file" /usr/share/gnome-shell/theme/
done

This way, you don't need to worry about any weird file names, as you would when using ls. Also note how I am quoting "$file" which is also essential for strange file names.


Problem when upgrading from ubuntu 12.04 to 12.10

Same problem I have faced before 4 Days. Grub boot loader has been failed to boot ubuntu. Fix it with using this post.


Just click on the Display-name (Ancor Communications ...)  to the right of "Primary Display" :)


Desktop icons disappear when using wallpaper plugin

Unfortunately, this is not possible. To get desktop icons back you will have to disable the Compiz Wallpaper plugin and allow Nautilus/Files to draw your desktop.

The Compiz Wallpaper plugin can draw your background, which can allow you do do some cool stuff (like have a different background image for each workspace). But this conflicts with Nautilus' ability to draw the desktop, and only Nautilus can display desktop icons.

For more information, see the answers to this question. Apparently people have tried to make Nautilus draw a transparent desktop so you can see the images from the Compiz Wallpaper plugin behind the Nautilus icons, but those efforts have not yet been successful.


Why are there deb files in /var/cache/apt/archives/?

Background Information
There are two things in Ubuntu (and in Debian, on which Ubuntu is based) that are commonly called "the package manager": dpkg, and APT.
dpkg is a program that installs and removes packages and maintains a database of what packages are installed, at what versions. When it installs packages, it does so from .deb archive files. These archives are the way packages are distributed.
dpkg does more than copy (or delete) files and update its database--it will also run installation scripts and removal scripts. It may be considered pretty sophisticated. But what it will not do is find and download packages.
APT finds and downloads packages, and runs dpkg appropriately to install, upgrade, and remove them. APT is not really any single piece of software, though there is an apt  package that provides its essential parts.
APT includes a library (libapt-pkg) that provides core functionality, accessed by various tools. Some such tools, like apt-get, are also provided by the apt  package. Other tools are installed separately. APT also provides various configuration files that control how its core library, and programs that use it, work.
More than that, APT is a system for storing and retrieving data about what software sources provide what packages in what versions, and for acting on those data to automatically perform package management tasks like installing and upgrading packages. This includes keeping track of what packages are needed for other packages to work, and automatically picking and installing appropriate packages to satisfy these dependencies.
For example, when I tell the apt-get utility to install the chocolate-doom  package, it figures out what other packages have to be installed for it to work, and will automatically retrieve and install them too:
$ sudo apt-get install chocolate-doom
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  doom-wad-shareware libmikmod3 libsdl-mixer1.2 libsdl-net1.2 libsdl1.2debian
Recommended packages:
  doom-engine
The following NEW packages will be installed:
  chocolate-doom doom-wad-shareware libmikmod3 libsdl-mixer1.2 libsdl-net1.2
  libsdl1.2debian
0 upgraded, 6 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/2,846 kB of archives.
After this operation, 8,626 kB of additional disk space will be used.

Graphical tools like the Software Center, Software Updater / Update Manager, and Synaptic perform functions similar to apt-get. They also use the APT system--through a combination of observing its rules and utilizing functionality provided by core libraries--to change what packages are installed, to give the user what s/he (usually) wants, in such a way that things (usually) continue to work.
How and When the /var/cache/apt/archives Folder Is Used
When apt-get, aptitude, Software Center, Synaptic, Software Updater / Update Manager, or any other package management utility downloads packages (and the other packages they depend on) from configured software sources and installs them, the downloaded packages (i.e., the .deb archive files from which they are installed) are stored in /var/cache/apt/archives.
If you have a .deb file on disk and you install it with dpkg, that does not cause a copy of it to be made in /var/cache/apt/archives. But when a program that uses or implements the APT system of automatic dependency resolution and package retrieval downloads packages, that's where it stores them.
While .deb files for automatically downloaded packages are stored in and installed from /var/cache/apt/archives, they are not actually downloaded directly to that location. Instead, incomplete (i.e., in progress) .deb file downloads exist in /var/cache/apt/archives/partial and are then moved to /var/cache/apt/archives when finished.
.deb package files remain cached in /var/cache/apt/archives even after successful installation in case they're needed for future use. But you can safely remove .deb files that are old enough they're unlikely to be needed again with sudo apt-get autoclean, or clear out the cached .deb files entirely with sudo apt-get clean. See man apt-get for more information.
To illustrate the function of sudo apt-get autoclean and similar commands, as well as to determine if you wish to run them, you can simulate their actions by running then with the -s flag. It's best to pass this flag before the autoclean (or whatever other) action verb. It's not typically necessary to run a utility as root with sudo when using -s, because no actual changes are being made.
For example, on my system:
$ apt-get -s autoclean
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Del libubsan0 4.9.1-15ubuntu1 [83.7 kB]
Del cups-server-common 1.7.5-3 [519 kB]
Del python2.7 2.7.8-9 [205 kB]
Del g++-4.9 4.9.1-15ubuntu1 [17.4 MB]
Del libstdc++-4.9-dev 4.9.1-15ubuntu1 [1,121 kB]
    ....

The listed packages would not be uninstalled; instead, just cached .deb files would be deleted. (In fact neither happened when I ran that command, as it was merely a simulation.)
Other Downloaded Files
Software installed via dpkg (via APT or otherwise) is not actually run from the .deb file that provides it. As noted in the Background Information section, .deb files are extracted. This is why they can be removed and the installed package continues functioning.
Files throughout the system that are installed from .deb packages aren't downloaded to their current locations--rather, they are extracted to them from the .deb files that provide them (or perhaps specially created during installation or afterwards, as is the case for some configuration files).
But .deb files aren't the only files downloaded by package management utilities. Often other files are downloaded that provide information about where packages exist.
For example, when I run sudo apt-get update, the output includes lines like:
Get:13 http://us.archive.ubuntu.com utopic/main i386 Packages [1,341 kB]

This means a file like http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-amd64/Packages.bz2 was downloaded and examined to help update the APT database with information on what packages are available (and in what versions) from that particular software source. You can find Packages files, and other such files, in the /var/lib/apt/list directory. The copies stored there are given distinguishing names like us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-amd64_Packages, as there may be many such files.
You asked about apt-cache specifically. It queries the package database, but it does not make any changes to the system or download any files.
Downloaded Files Specific to the Software Center
When the Ubuntu Software Center downloads data for its own use, specific to it and not relating to general APT (or dpkg) functionality, it stores them in /var/cache/software-center.
For example, on my system (and on most systems), that folder contains a xapian subfolder:
ek@Ilex:/var/cache/software-center/xapian$ ls
flintlock       postlist.baseB  record.baseB    spelling.baseB  termlist.baseB
iamchert        postlist.DB     record.DB       spelling.DB     termlist.DB
postlist.baseA  record.baseA    spelling.baseA  termlist.baseA

The Software Center uses Xapian to index information for quick searching.
Downloaded Files for Other Related Utilities
Some additional utilities that work with the APT system download and store files as part of their operation. apt-file is not installed by default in Ubuntu, but may be installed from the apt-file  package.
apt-file stores information on what files are provided by what packages (even for packages that aren't locally installed). It obtains this information about the contents of packages by downloading compressed Contents files:
$ sudo apt-file update
Downloading complete file http://us.archive.ubuntu.com/ubuntu/dists/utopic/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 29.6M  100 29.6M    0     0   856k      0  0:00:35  0:00:35 --:--:--  832k

When apt-file update is run as root (as above), these files are downloaded to the /var/cache/apt/apt-file directory. To discover this, I ran:
$ sudo updatedb
$ locate Contents-amd64
/var/cache/apt/apt-file/us.archive.ubuntu.com_ubuntu_dists_utopic-proposed_Contents-amd64.gz
/var/cache/apt/apt-file/us.archive.ubuntu.com_ubuntu_dists_utopic_Contents-amd64.gz

Note that the information provided in this post gives a number of examples of data files dowloaded and stored by package management utilities on Ubuntu, but should not be considered an exhaustive list of instances where such files are used and stored.