I am not able to delete my folder from Trash

The description in that article "Why can't I delete a folder in my trash?" works only for your local Trash. If the file you want to delete is on an external drive, you need to type

sudo rm -rf /path/to/external-drive-mountpoint/.Trashes/*

replace the path accordingly.

Update

According to the error messages, the problem exists because your external drive is mounted read only. There are many questions around here related to that problem.


apt showsdifferent nvidia package version than nvidia-smi

Did you purge the old installation?

Use locate, or find, and delete specific files.

That being said, what a subtle downgrade in version!  Are you sure it will help, when most folks want the very latest drivers?!

I'm looking for the latest drivers but, I have a GTX 1080 winging its way to me, as I write - I may well have to join you in downgrading, before too long!

Can I ask, what problem have you encountered, and your certainty that downgrading is the solution?


Key-repeat does not work after running OpenGL program with nvidia-331-updates on Ubuntu 14.10x64

The standard Ubuntu NVidia drivers generate some problems on slightly older and slightly newer NVidia hardware.

If you want more then the standard Ubuntu repository drivers, install the xorg.edgers PPA.  As the xorg.edgers group ask not to give installation instructions directly without linking to their page, this is the best I can do (for now)

So please read the warning sign and then add the PPA (**using your own judgement!  Never let anyone tell you what to do with your own machine!)  Then do an apt-get update and then install the driver you want (I'm currently running 346.22 and very happy about it!)


Does Gparted do a True Bit by Bit partition copy

When moving, it does indeed do a bit by bit copy of the full partition (at least, as of writing this), including "empty" sectors.  Therefore if your partition is only 5% full, it will still take as long as if it were completely full.  To get a faster copy, you can shrink the partition before moving it.

When gparted resizes a partition, the empty sectors aren't necessarily preserved.  If you didn't want this to occur and you specifically do want your empty sectors to be left alone, you'd have to make sure it's not resizing the partition, only moving.


How do I change the text color in Pinta?

If the text is plain white, select all of the text with the Rectangle Select tool, hover your mouse over the Adjustments tab and then click the Invert colors button. That should work.


14.04.5 LTS networking broken after dist-upgrade

I fix it with distribution upgrade into 16.04 (How can I upgrade Ubuntu LTS to the next one offline?). WAN and LAN works with new version.


Cannot boot past UEFI when installing ubuntu on HP

Add these options after quiet splash  by pressing "e" at grub screen. It worked for me without downgrade.

iommu=soft mce=off acpi=strict processor.max_cstate=5 idle=nomwait

After ubuntu starts make this changes permanent by editing grub file:

sudo gedit /etc/default/grub

Following line shouldbe edited:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=soft mce=off acpi=strict processor.max_cstate=5 idle=nomwait"

Note:I have reverted /etc/default/grub file after updating kernel 4.20.3 and still working


VirtualBox - run an ova file from command line

An ova file is a complete archive with all of the information to create a VirtualBox VM included inside it. You would use the command:

vboxmanage import test.ova

This will create the VM in your default VM location, with the same settings as the original VM. You can change settings using the --vsys options to this command as mentioned in the VirtualBox manual. To change the VM name you'd use:

vboxmanage import test.ova --vsys 0 --vmname <name>


Thanks @steeldriver for the comment suggesting there might not be any files with that name in the current directory and they might be in subdirectories instead.

It was dumber than that... the files were all .MP4 (note the case).


How to enable CPU platform for OpenCL applications?

Install the AMD APP SDK from the AMD website you should then see your CPU available as an OpenCL device.


build-dep monodevelop fails: libmono-cecil-cil-dev is not going to be installed

Please reference this post to give you some context to my answer.

Run $ sudo apt-get install libmono-cecil-cil-dev.

I don't know why this is necessary, but manually installing the problematic package should get your install of monodevelop to work.

It is possible that after installing the unmet dependency libmono-cecil-cil-dev, other unmet dependencies might pop up, but repeating the process with the new unmet dependencies should finally get you to the point of being able to install monodevelop.


17.10 & HP MicroServer Gen10 (AMD Opteron X3216) amdgpu: [powerplay] pp_dpm_get_temperature was not implemented

I get these messages when I run Psensor. One of the temperature readings doesn't show anything in Psensor, I'm guessing that is what is causing the messages.


Ubuntu 14.10 recognizes, but does not show the USB stick

First, open a terminal and execute the following command:

nautilus /media/$USER/ &

Nautilus should open and on the left, the USB device should be listed as "15.0 GB Volume". Click on "15.0 GB Volume" to open the device.

If the device does not show up in nautilus, you can manually mount the drive.

Open a terminal and execute the following commands.

First, create a mount-point:

sudo mkdir /media/$USER/usb0

Next, mount the device:

sudo mount /dev/sdb /media/$USER/usb0

Then, open the USB device using nautilus:

nautilus /media/$USER/usb0 &

Finally, you will need to change ownership to allow write permission:

sudo chown -R $USER:$USER /media/$USER/usb0

Please post any errors, thanks.

EDIT

Okay let's format the device before mounting:

sudo mkfs -t ext4 /dev/sdb

If it complains, just press enter and ignore it unless it tells you to use -I. If you need to use -I option, you can do so like this.

sudo mkfs -t ext4 -I /dev/sdb

When formatting is done, try mounting the device:

sudo mount /dev/sdb /media/$USER/usb0

You may need to unplug and plug the device back in again if it doesn't work at first.

If successfull, don't forget to chown the device:

sudo chown -R $USER:$USER /media/$USER/usb0


Can't run python programme opening its in text editor

I tried this in 16.04, when started normally the program just does nothing and exits. Do you see the same symptom?
I found out using the python debugger (pdb ./pytypespeed-0.04.py) that the program is missing the glade library. The program unfortunately neglects to print an error message in line 22.

To fix, install glade with sudo apt-get install python-glade2.


Permission denied to execute a .sh file when trying to install a software from a CD

Once the software is burned into the CD and finalized, its permissions, in this case, Read Only, are fixed. You can drag and drop the software to your desktop and then, from the terminal, do:
cd ~/Desktop/software_folder
sudo chmod +x install.sh

And install it with:
sudo ./install.sh

As @LorenzKeel very aptly suggests, if you have the slightest doubt as to the origin or integrity of the software, you may examine it with:
less install.sh

Get out of 'less' with q.


Udev handles devices in the new Ubuntu and it very much needed, check out this link for information on it's use: http://manpages.ubuntu.com/manpages/karmic/en/man7/udev.7.html


Upgrading from a smaller hard drive to a larger one on a dual boot system

clonezilla is an excellent software for duplicating drives.

get a bootable image here http://clonezilla.org

burn the image to disk. and boot it.
it supports all file systems


Reduce CPU frequency in battery mode automatically

yes you can, using tlp:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw

ThinkPads require an additional:

sudo apt-get install tp-smapi-dkms acpi-call-dkms

what you can do with tlp ?

Processor and Frequency Scaling(you can set whether your laptop runs in powersaver or performance or ondemand mode. also you can allow whether your processor uses turbo boost or not)
Undervolting
Runtime Power Management
Advanced Power Management(this feature controls how your various laptop component behave according to whether AC is connected or not)
HDD spin down
Automatic USB suspension

and many other power management settings. tlp changes settings automatically according to power supply is plugged or not.

its better to read tlp documentation before you use tlp, its written in simple language and step-by-step guide manner


Ubuntu 17.10 installer crashes shortly after startup

Once you get to the GRUB menu, hit "e". Then replace quiet splash with nomodeset and hit F10. You should be able to install from there. As far as getting the GPU working after that point, though, I dunno. I've got a 390 and the same issue and this is as far as I've got.


File manager how to SCP,SSH key files,Basic SSH,FTP,Windows Share,WebDAV(HTTP),Secure WebDAV(HTTPS)?

You should be able to do this out of nautilus the same way as you did in Fedora (Note: the menu bar is at the very top with unity)


How to measure performance of a web browser?

Start-up time can be measured with a stop watch and a quick hand. The rest of the benchmarks are generally to do with JavaScript performance. Naturally a company will want to show their product is the best so you need to look carefully at the results.

SunSpider is a type of test that you could run. There are others. I don't know if SunSpider is in fashion or what the latest and greatest is but it will give you some indication.


root or physical access == access to your files, including copy, edit, and deletion.

Your only option would be encryption, although root can access the files when they are decrypted.


Is apt-cacher capable of managing packages which are being requested by clients ?

Typically, apt (and related tools) will download the latest version of a package, and fail if that version couldn't be downloaded; it won't fall back on older versions.

You might be able to play with the pin priorities with something like

Package: *
Pin: release a=trusty-proposed
Pin-Priority: 400

This makes trusty-proposed have a lesser priority than the other repos (default is 500), and will cause apt to pull packages from this pocket only when explicitly requested or when it's the only way.


Just get the PID of the eog process and kill it before the next:

while read p;
    do eog $p &;
    EOG_PID=$!
    sleep 2;
    kill "$EOG_PID"
done < filelist.txt


This will install all available gstreamer plugins.

sudo apt install gstreamer1.0-*


I would invite you to look at Does Microsoft Office 2010 still have incompatibility issues with LibreOffice

But since there is also Office 2013 and several issues when saving Office 2007+ files, I will answer your question first:

Can LibreOffice Writer read Microsoft Documents?

Yes it can. It will read them. The problem is that, depending on what is inside the document and what version of Office it is, you may find a problem or two related to how the document is viewed or set up.
Will LibreOffice Writer read all type of Microsoft Documents correctly?

Not yet. At least, to give you an idea, since LibreOffice 4.0 there has been a lot of improvements over how the Microsoft documents and read, written to and saved/loaded. I would even go so far as to say that 4.x is dedicated to provide the best compatibility between both. Each gradual new version (eg: 4.1, 4.2, 4.3....) has made many improvements regarding this. I had a question (can't find it right now but you can look for it in Ask Ubuntu) where I mentioned that most if not all 2010 documents were read correctly. This was alse when a user sent me one of his documents and after testing his problem it was found that indeed, not all documents, at least to the point of 4.2.0 could not read the document 100% correctly. Problems like footers, headers, some tables and image positions had issues.
Where can I get the latest PPA of LibreOffice to test if it fixes an incompatibility problem?

You can look at Is there a PPA with the latest version of LibreOffice? for more information
Where can I see what updates regarding Microsoft compatibility are found for LibreOffice versions:

you can go to the Release Notes at LibreOffice for the latest stable one or go to the Development Version to see what changes will come. In this case it is the 4.2.3. You can even jump to the newer (future) version of 4.3 where you will find a lot of changes towards compatibility. From footer and header issues, to importing nested comments, to better load/save speed for DOCX files to even improved OOXML support. So, with that you can see how the development is going, what issues are still on the table and what else is needed to fix them. To give you an idea on how many fixes are typically found, we can look at 4.2.3 where we see the following Microsoft DOCX/OOXML fixes:

Microsoft Office and OOXML filter improvements
Numerous improvements to interoperability with Microsoft Word's DOCX format:

Writer now preserves the 'Track Changes ON' when present in a DOCX (track changes data itself is partially preserved) fdo#64826 (Adam Co)

Solid page background color now roundtripped in DOCX. fdo#65257 (Adam Co)
Fix for page border margins in DOCX. fdo#64350 (Adam Co)
Fix for different Odd & Even page flag ignored. fdo#65655 (Adam Co)
Fix for hidden footer being imported to Writer as normal footer. fdo#64238 (Adam Co)
Writer now preserves underline color. fdo#65710 (Adam Co)
Writer now preserves character shading. fdo#65400 (Adam Co)
Writer now preserves page numbers that don't start at '1'. fdo#66543 fdo#44689 (Adam Co)
Fix for export of text-box inset property to DOCX. fdo#66929 (Adam Co)
Fix for DOCX export of page border - (interoperability export case #2) http://wiki.openoffice.org/wiki/Writer/MSInteroperability/PageBorder
Fix for preservation of bullets with level 0 (should not be shown) fdo#66781 (Adam Co)
Fix for page border shadows in DOCX. fdo#64350 (Adam Co)
Borders in headers\footer now not being lost. fdo#67013 (Adam Co)
Text-Box background gradient color now preserved correctly. fdo#65295 (Adam Co)
Preserve rotation information on bitmaps. fdo#70457 (Jacobo Aragunde)
Fix wrong position and size values on exported shapes. fdo#70838 (Jacobo Aragunde)
Preserve Smart-Art information. (Jacobo Aragunde, Andrés Gómez, Miguel Gómez)
Fix wrong alignment and directionality when open DOCX file. fdo#43093 (Faisal M. Al-Otaibi)
Fix wrong directionality after save file created by MS. fdo#71646 (Faisal M. Al-Otaibi)
OOXML floating table improvements. For more details, see this blog entry. (Miklos Vajna)
Ampersand in document title causes corrupt docx fdo#63053 (Abdulmajeed ahmed)
Significant speedups of all OOXML parsing - by splitting parsing / tokenisation into a separate thread, and many other related optimisations to the FastParser (Matus Kukan, Michael Meeks)
Support for the default Microsoft Office 2010 and 2013 Agile decryption mechanism (Tomaž Vajngerl)
Support for OOXML encryption fdo#59524 (Tomaž Vajngerl)
Numerous other improvements have been made to the Microsoft OOXML Import and Export filters as well as for the Microsoft Office binary file formats and the RTF format. Details:

OOXML Filters→ OOXML, DOCX, XLSX, PPTX, VML
Microsoft Office binary file filters→ DOC, XLS, PPT, "ww8"
RTF Filters→ RTF

How will LibreOffice work with Pre-Office 2007 version (97, XP, 2003)

With this particular version it will work most likely 100%. With over 50K documents in 2003, I have not gotten a single problem in the past 4 years of testing. If you do find a bug, please send it to the LibreOffice team, but in my tests I have not found a bug related to 97, XP or even 2003. All or most compatibility bugs started to appear with the arrival of 2007 and the OOXML/DOCX zipped files. So much so that Office 2003 was offered a compatibility upgrade to fix 2003 <--> 2007 DOC problems. Even 2007 received a Service Pack that tried to solve many issues related to DOCX with previous versions.


Deleting contents of ~/.local/share/Trash/expunged .....?

Files can be stuck in ~/.local/share/Trash/expunged when you delete from Nautilus a folder that belongs to you, but contains files which are belong to another user, and it is tricky for Nautilus to handle this situation correctly. To delete them try to use:

sudo -i
rm -rv /home/<your_username>/.local/share/Trash/expunged/*
exit


How to install a bin file to a particular target location?

Generally, you could add args: --prefix=dir if you compile source code to install your software, but if you install it with the apt-get command you can not specify the install location.


How can I enable the touch-pad in 11.10 while I disabled it using touchpad-indicator in 11.04?

I had the same problem and have managed to correct the error message but still do not have touchpad indicator working properly.

I found that after my update to 11.10 the shortcut I had in 11.04 was still there but pointing to the wrong directory.

I went to System settings >Keyboard >Shortcuts and cleared my shortcut which was under Custom.  This fixed the error message, but the shortcut feature in Touchpad-Indicator does not work.


We currently have no "easy" way to export and import Multipass instances.  But it's just data, so it should be possible to manually do it:)

If you'd like everything back to the way it was, I would just save the whole of /var/snap/multipass/common/data/multipassd/ and after doing the clean 19.10 install and installing the Multipass snap, just copy that back to the same location and do a snap restart multipass for the daemon to pick up the changes.

If you want to pick and choose, that'll be a bit more difficult as you'd need to selectively pick the instances in /var/snap/multipass/common/data/multipassd/vault/instances and then modify both /var/snap/multipass/common/data/multipassd/vault/multipassd-instance-image-records.json and /var/snap/multipass/common/data/multipassd/multipassd-vm-instances.json accordingly.

I hope this helps and good luck!


Ondrej Sury at some point changed the naming convention of PHP packages in his PPA; PHP 5.6 packages for Trusty now use the string php5.6 instead of php5. This is why, for example, the package php5 was not upgraded: the newer versions are in the package php5.6, which is a different package.

Thus in order to get the new version, one must remove all php5 packages and install their php5.6 counterparts. A list of all currently installed php5 packages can be obtained with apt list --installed | grep php5.


Where are the Build and Src locations for QtCreator?

First of all you'll need the following packages:

sudo apt-get install qtcreator-dev  qtxmlpatterns5-dev-tools

Start a new Project in Qt Creator (Libraries -> Qt Creator Plugin)

Give it a name:

Confirm the Kit Selection:

Use /usr/src/qtcreator for Qt Creator sources and /tmp for Qt Creator build and deploy in Local user settings. Click Next:

Finally click on Finish to complete the wizard:

You should now see your plugins files, open the project file now (*.pro):

Add the following lines to your .pro file:

LIBS += -L/usr/lib/x86_64-linux-gnu/qtcreator \
        -L/usr/lib/x86_64-linux-gnu/qtcreator/plugins/QtProject

Save the project file and build your Qt Creator plugin:

You now have your plugin files in your $HOME/.local/share folder:

(Tested on 14.04 64 bits)


There is a Authentication Token Manipulation Error when trying to update user's password in Ubuntu because your root filesystem was mounted as read only, which prevents changing the password.

To mount it read/write, enter the command:

mount -o remount,rw /


The question is unclear, so I think you would be well-served by reading up on public-key cryptography (asymmetric encryption).

From the GnuPG faq, 7.1. What’s ‘public-key cryptography’?
From Wikipedia, Public-key cryptography
From Mozilla Developer Network,
Introduction to Public-Key Cryptography

You'll be able to answer this after reading some of the above.
If you read all of the above, you'd have your answer.  Alternatively, check out 8.12. How do I use another person’s certificate?
No. You'll understand after reading up a bit on asymmetric encryption, but basically: you encrypt messages with other people's public keys; you sign messages with your own private key.
GnuPG is one of (IMHO the best) option for managing PGP keys and performing encryption & signing operations. See 3.1. What’s GnuPG?


Where is the bookmarks toolbar icon located?

You should always say which version of an application you're using when you ask for help. Is there any good reason why you were looking for bookmarks.png, or was it just a guess? :)

In order to find out which files that is installed with a package, use dpkg -L. I did dpkg -L firefox | less, and it showed me lots of files, including /usr/lib/firefox-6.0/chrome/icons/default

But that wasn't it, so I moved upwards. I eventually found file:///usr/lib/firefox-6.0/omni.jar which seems to provide the default skin. Skinning Firefox is popular, so you'll probably not have any difficulties finding information about that.


When trying to install on Mac: "No mountable file system."

First in order to create a bootable USB on mac for Ubuntu you should follow these instructions I took from the Arch Wiki:

To be able to use dd on your USB device on a Mac you have to do some special maneuvers. First of all insert your usb device, OS X will automount it, and in Terminal.app run:
    diskutil list

Figure out what your USB device is called with mount or sudo dmesg | tail (e.g. /dev/disk1) and unmount the partitions on the device (i.e., /dev/disk1s1) while keeping the device proper (i.e., /dev/disk1):

diskutil unmountDisk /dev/disk1

Now we can continue in accordance with the instructions above (but, if you are using the OS X dd, use /dev/rdisk instead of /dev/disk, and use bs=1m. rdisk means "raw disk" and is much faster on OS X, and bs=1m indicates a 1 MB block size).

# dd if=image.iso of=/dev/rdisk1 bs=1m

20480+0 records in
20480+0 records out
167772160 bytes transferred in 220.016918 secs (762542 bytes/sec)

It is probably a good idea to eject your drive before physical removal at this point:

diskutil eject /dev/disk1

After that install Refind as that should make booting into the USB installation of Ubuntu easy and then reboot your computer and select the USB.


Will I be able to access my encrypted home folder if I reset my lost password on Ubuntu 16.04.4?

Without the unwrapped passphrase (or your forgotten password), you will be unable gain access to the files in your home directory.

If you have the unwrapped passphrase, it is a different story.


What version of Ubuntu can I run on an old desktop?

I recommend Lubuntu. It uses LXDE (Light X11 Desktop Environment) on top of Ubuntu, meaning you still have the latest software provided by Ubuntu, but it will be very snappy on a Pentium 4 (it'll even run on a Pentium 3). If you do install Lubuntu, I'd recommend installing GParted for whenever you'd like to format pendrives, otherwise it pretty much includes all the features most users need. I've ran Lubuntu in previous versions (Lubuntu 11.04, 11.10) and can certainly vouch for it. I don't think I could recommend anything else unless you want to try Puppy Linux or Damn Small Linux, though they may not offer all the features of the Ubuntu distribution.

You could install Gnome Classic desktop by entering the following command in the terminal: sudo apt-get install gnome-fallback-session, then log out, click on the button next to the username/password and select Gnome Classic. It still won't be nearly as fast as Lubuntu. Gnome Classic wasn't included in Ubuntu 11.10 because it falls back on Unity 2D if 3D acceleration isn't supported by the hardware.


The cron runtime environment is different than the interactive environment which is also different from the at/batch environment.

Run this in each of your environments, then compare the files:

 (echo "=== set ===";set;echo "===env ==="; env | sort;echo "=== alias ===";alias) >a_different_log

I did this, and got:

walt@bat:~(0)$ ll *.environment
-rw-rw-r-- 1 walt walt  10672 Oct 22 13:59 at.environment
-rw-rw-r-- 1 walt walt  10672 Oct 22 13:57 batch.environment
-rw-rw-r-- 1 walt walt   1031 Oct 22 14:00 cron.environment
-rw-rw-r-- 1 walt walt 126378 Oct 22 13:55 interactive.environment
walt@bat:~(0)$ wc -l *.environment
   238 at.environment
   238 batch.environment
    48 cron.environment
  3642 interactive.environment

Some setting in your environment, needed for NCAR to work, is not set in the cron environment. You will have to set it manually, or wrap your command in a bash script that sets up the environment.


GMA 5700 MHD Dell Vostro 3300 externel vga monitor is flickering

First of all, you don't need to look for an Intel driver around, because it is shipped with Ubuntu and installed by default.

There is a bug with the Intel driver and the card you're mentioning (I have the same card), however most reporter have it with their laptop LCD, not the external screen. I also have no problem with external screens...

Anyway, there is a workaround for this bug that works for the LCD internal screen of the laptop, perhaps it is working also for an external LCD, you could give it a try.

Check the following bug report: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/538648

The workaround concerns adding i915.powersave=0 to the kernel parameters, see the [workaround] section in the bug description.


For me, Unity Mail resolved the issue.

apt-get install unity-mail or install it from Ubuntu Software Center searching for Unity Mail.


How can I download the source code for linux-image-3.2.0-*-generic?

Looks like you can use Ubuntu Software Center…

…but it's very slow  ⋯about 1KiB/s


it's in .local like liferea is:
nicholas $
nicholas $ pwd
/home/nicholas/.local/share/feedreader/data
nicholas $
nicholas $ ll
total 1004
drwxrwxr-x 3 nicholas nicholas    4096 Sep 18 14:06 ./
drwxrwxr-x 3 nicholas nicholas    4096 Sep 17 10:35 ../
drwxrwxr-x 3 nicholas nicholas    4096 Sep 17 23:57 feed_icons/
-rw-r--r-- 1 nicholas nicholas 1011712 Sep 18 13:49 feedreader-7.db
nicholas $
nicholas $ sqlite3 feedreader-7.db
SQLite version 3.31.1 2020-01-27 19:55:54
Enter ".help" for usage hints.
sqlite>
sqlite> .schema
CREATE TABLE IF NOT EXISTS "feeds"
            (
                "feed_id" TEXT PRIMARY KEY NOT NULL UNIQUE,
                "name" TEXT NOT NULL,
                "url" TEXT NOT NULL,
                "category_id" TEXT,
                "subscribed" INTEGER DEFAULT 1,
                "xmlURL" TEXT,
                "iconURL" TEXT
            );
CREATE TABLE IF NOT EXISTS "categories"
            (
                "categorieID" TEXT PRIMARY KEY NOT NULL UNIQUE,
                "title" TEXT NOT NULL,
                "orderID" INTEGER,
                "exists" INTEGER,
                "Parent" TEXT,
                "Level" INTEGER
            );
CREATE TABLE IF NOT EXISTS "articles"
            (
                "articleID" TEXT PRIMARY KEY NOT NULL UNIQUE,
                "feedID" TEXT NOT NULL,
                "title" TEXT NOT NULL,
                "author" TEXT,
                "url" TEXT NOT NULL,
                "html" TEXT NOT NULL,
                "preview" TEXT NOT NULL,
                "unread" INTEGER NOT NULL,
                "marked" INTEGER NOT NULL,
                "date" INTEGER NOT NULL,
                "guidHash" TEXT,
                "lastModified" INTEGER,
                "contentFetched" INTEGER NOT NULL
            );
CREATE TABLE IF NOT EXISTS "tags"
            (
                "tagID" TEXT PRIMARY KEY NOT NULL UNIQUE,
                "title" TEXT NOT NULL,
                "exists" INTEGER,
                "color" INTEGER
            );
CREATE TABLE IF NOT EXISTS "CachedActions"
            (
                "action" INTEGER NOT NULL,
                "id" TEXT NOT NULL,
                "argument" INTEGER
            );
CREATE TABLE IF NOT EXISTS "Enclosures"
            (
                "articleID" TEXT NOT NULL,
                "url" TEXT NOT NULL,
                "type" INTEGER NOT NULL,
                FOREIGN KEY(articleID) REFERENCES articles(articleID)
            );
CREATE TABLE IF NOT EXISTS "taggings"
            (
                "articleID" TEXT NOT NULL,
                "tagID" TEXT NOT NULL,
                FOREIGN KEY(articleID) REFERENCES articles(articleID),
                FOREIGN KEY(tagID) REFERENCES tags(tagID)
            );
CREATE TABLE IF NOT EXISTS 'fts_table_segments'(blockid INTEGER PRIMARY KEY, block BLOB);
CREATE TABLE IF NOT EXISTS 'fts_table_segdir'(level INTEGER,idx INTEGER,start_block INTEGER,leaves_end_block INTEGER,end_block INTEGER,root BLOB,PRIMARY KEY(level, idx));
CREATE TABLE IF NOT EXISTS 'fts_table_docsize'(docid INTEGER PRIMARY KEY, size BLOB);
CREATE TABLE IF NOT EXISTS 'fts_table_stat'(id INTEGER PRIMARY KEY, value BLOB);
CREATE INDEX "index_articles"
            ON "articles" ("feedID" DESC, "unread" ASC, "marked" ASC)
        ;
CREATE VIRTUAL TABLE fts_table
            USING fts4 (content='articles', articleID, preview, title, author)
/* fts_table(articleID,preview,title,author) */;
sqlite>
sqlite> .quit
nicholas $


is there a small music video player, fixed on desktop to play music videos while doing other things?

You could take your video player, right-click the titlebar, and check "Always on Visible Workspace".  It wouldn't be pinned to the desktop per se, but you could always see it if you resized your windows to make room.

If want to see videos while browsing, you could drag your player of choice to the bottom-right and click "Always on top".  Then you can maximize your web browser and continue as normal.


I managed to solve a similar issue by killing the everpad-provider process. Try the following command, then see if it works again:

killall everpad-provider


Ubuntu Software Center takes about five minutes to load. Can I make it load faster?

Did you tried starting it from Terminal? Does it get delayed even starting from Terminal?

Try starting Software Center from Terminal and use following command to measure the Time it takes to get loaded fully.

software-center --measure-startup-time

In my system running 12.04 it took 6.71236896515 seconds


Simply do not use GNOME Shell for really productive work!
Use MATE instead. It is very flexible, configurable, modern while staying traditional for retrospective future.
Start with
sudo apt-get install ubuntu-mate-desktop^

then reboot and select MATE session in the greeter.
Then on MATE launch Firefox or any other application(s) to enjoy drag and drop or other basic functionality which is now removed from GNOME sHell.


Just using chsh:

chsh -s $(which zsh)

without sudo should work. If you use sudo it will change the shell not for your working user but for root

Finally, log out of your computer and log back in.

Troubleshooting:

Do you have zsh installed (ii)? dpkg -l zsh
Is your shell set to zsh? Last field of grep $USER /etc/passwd
Is Zsh a valid login shell? grep zsh /etc/shells


Unable to Login as root after mysql service restart

May be you need to reset mysql root password:

Change my.cnf configuration file:

[mysqld]

skip-grant-tables

Restart service, and login with root without password, then change the root password:

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('your_new_password');

Remove skip-grant-tables entry from my.cnf and restart mysql.


Custom .desktop file -- name doesn't show up in Unity dash on Ubuntu 13.04

You can validate your .desktop files with desktop-file-validate *.desktop and then, if there are no errors (it'll tell you what to fix), run sudo update-desktop-database to actually update the system's database.


I too am looking for nftables, but as I understand, with 14.04 we have the 3.13 Kernel, and the 3.13 Kernel is the first version to get Nftables merged into it. Merging does not mean working, it just means the code is to a degree good and can be merged without creating other problems.

iptables is still in the 14.04 and on any other distro until nftables gets a stable release (More so than the 0.3 that was again merged with the Kernel). This, with the fact that nft user-space utils are not there yet will make the wait for nftables a bit longer.

With that in mind, if you don't want to wait you can use the Nftables step by step installation which includes git cloning the Linux kernel and settings other variables so that you can have Nftables working on your end. This information can be found in regit.org

Aside from this, here is a feature request


The Trusted Platform Module TPM offers facilities for the secure generation of cryptographic keys, and limitation of their use, in addition to a random number generator. It also includes capabilities such as remote attestation and sealed storage.

source

TPM is disabled by default unless you want to use it. To enable do the following:

First login as root

> sudo -s

and install Trousers and the TPM Tools:

> apt-get install tpm-tools trousers

Head to the directory where the Kernel modules are located /lib/modules/#.x.y-z-generic/kernel/drivers/char/tpm, there you'll find the modules you need:

ls -la /lib/modules/`uname -r`/kernel/drivers/char/tpm
total 116
drwxr-xr-x 2 root root  4096 Feb  3 07:00 .
drwxr-xr-x 8 root root  4096 Feb  3 07:00 ..
-rw-r--r-- 1 root root 12248 Jan 30 19:54 tpm_atmel.ko
-rw-r--r-- 1 root root 18104 Jan 30 19:54 tpm_i2c_infineon.ko
-rw-r--r-- 1 root root 24864 Jan 30 19:54 tpm_infineon.ko
-rw-r--r-- 1 root root 13496 Jan 30 19:54 tpm_nsc.ko
-rw-r--r-- 1 root root 30344 Jan 30 19:54 tpm_tis.ko

For my machine it was sufficient to load tpm_tis.ko.

> modprobe tpm_tis.ko

Now you should "see" the TPM (tpm0) in /sys/class/misc/ and be able to print the PCRs

> cat /sys/class/misc/tpm0/device/pcrs
PCR-00: xx 82 F8 37 D6 83 21 56 ff F7 FB 94 25 D8 7A 38 47 57 BF 83
PCR-01: yy 93 6D 55 81 BE 16 99 ff 88 DA D1 D9 B5 67 53 54 A7 41 71
PCR-02: zz DE 58 4D CE F0 3F 6A ff AC 1A 24 0A 83 58 93 89 6F 21 8D
PCR-03: aa 3F 78 0F 11 A4 B4 99 ff FC AA 80 CD 6E 39 57 C3 3B 22 75
PCR-04: bb 0B 67 73 D3 6F B5 AD ff 11 F5 43 C5 DA 92 C9 D4 69 E4 33

If tpm_tis doesn't work on your machine, simply use trial and error for finding the right module. You can't damage stuff. Btw: if you like to load the Kernel module automatically, edit /etc/modules and add "tpm_tis" to the list of modules.

If you've got the right module loaded, start the tcsd. Notice: unlike to other distributions you can't invoke the tcsd in Ubuntu by

> /etc/init.d/tcsd start

You need to type

> tcsd

If you like some debugging info, add -f:

> tcsd -f

Now you're ready to go:

> tpm_version
TPM 1.2 Version Info:
Chip Version:        1.2.11.5
Spec Level:          2
Errata Revision:     0
TPM Vendor ID:       ATML
TPM Version:         01010000
Manufacturer Info:   41544d4c

Now you can take ownership of your TPM:

> tpm_takeownership
Enter owner password: OWNERPASS
Confirm password: OWNERPASS
Enter SRK password: SRKPASS
Confirm password: SRKPASS

more information how to use TPM in linux is founded here and here.


How can I show hidden files in my KDE Plasma Desktop's folder view?

Right-click on Desktop
Unlock Widgets
Right-click again
Configure Desktop
Wallpaper tab
Layout: change from Desktop to Folderview


Minecraft Launcher invisible; preview works, alt-tab/alt-space doesn't

Just realized the problem. Had an Oculus Rift plugged into a USB port, and apparently this screws with graphical programs if and only if you had it plugged in at startup, whether or not it has been given power. Removing it and restarting corrected the issue.


"Unable to find a medium containing a live file system"

The same thing happened to me. I was installing Ubuntu from a DVD that I burned, using directions from the Ubuntu web site. My computer kept giving me that error message until I left the DVD in the computer, and then Ubuntu loaded.  But to make it load permanently, and stay on your computer, you have to click on the Install Ubuntu" icon that will appear on your desktop.


NetBeans warning when opening it that the JDK is missing

To summarize the information that was added to the question via comments, you installed Java 9 which is not compatible with NetBeans and then removed it, but NetBeans still shows a warning message that JDK is missing, so you need to update $JAVA_HOME to point to Java 8.

Uninstall NetBeans.

sudo apt purge netbeans

Open the terminal and open /etc/environment file for editing in nano text editor:

sudo nano /etc/environment

Append the following text string to the end of the line that starts with PATH=" It's the first line in my /etc/environment file.

:/$JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" "

The two " characters at the end are for closing the " in PATH=" and the other " after /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java. I used double quote characters in my /etc/environment file, I hope your /etc/environment uses double quote characters too.  You can see that in the /etc/environment file every individual path is separated by the string :/

Also I don't have any $JAVA_HOME for java-9 in my /etc/environment file, I only have $JAVA_HOME for java-8.
Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited in nano to its current location.
Press the keyboard combination Ctrl+X to exit nano.
Logout and then login again in order that the changes in /etc/environment will take effect.
Reinstall NetBeans.

sudo apt install netbeans


How do I remove python3.7 from ubuntu 20.04.1 LTS (python3.8 is bundled with distro itself)?

You can leave python 3.7 installed along side 3.8 without a problem. Many developers have multiple versions installed. Trying to manually remove all of the python 3.7 parts manually, since you compiled from source, may cause more issues so the best solution is to set the default python version system wide.
First, list all the versions you have installed.
ls /usr/bin/python*
Then follow the Change python version system-wide section in this guide, using the info you gathered form the ls command, to make python3.8 the default system wide.


Energy Saving on Ubuntu PC's (not Laptops!)

Yes!

No, not needed.

Easy: just type the following command to get a list of all power-related applications in the Ubuntu repository:
 apt-cache search power | grep --ignore-case --invert-match powerful | grep --ignore-case --invert-match powerpc | grep --ignore-case power

Free extra: Turning off and unplugging your PC not only reduces its power consumption to 0% but also raises its security level to 100%!
;-)


Installed Nvidia driver from website and now Ubuntu won't even start up

When you see the black screen did you try and type "CTRL+ALT+F1" to see if you can acces the terminal?
If you can, then you should remove the nvidia drivers:

sudo apt-get remove --purge nvidia-*

sudo apt-get install ubuntu-desktop

Nouveau can be blacklisted sometimes, so let's be sure it is not:

echo 'nouveau' | sudo tee -a /etc/modules

Last , search for the xorg.conf file and remove it as well.

sudo rm /etc/X11/xorg.conf


Open it with gedit. When it is a binary file you should ask your teacher. When not you should see the content, more or less helpful.


Sound stops if laptop charger unplugged on a Lenovo G570

Maybe it's a drivers' problem, so be sure of install them. If you didn't install any drivers/your soundcard's drivers yet, you can follow the next steps:

Click on the Dash
Search for Additional and click Additional Drivers
Wait a bit, and you'll see a list with all the compatible drivers for your computer. You can install your graphics card drivers (I usually install the post-release drivers) and all your other devices.
Check if your soundcard name appears at that list, select the entry for it and click Activate. After a while, you'll have to restart your computer.

After restarting, it should be working OK if it was a driver-related problem. I hope it works to you and tell us soon!


I can't install anything in Ubuntu 12.04

I had a similar problem here, it happened that Software Center didn't even open. Looked for many answers and tried many of them, until I looked closer to the error message and I saw there was a problem with a package:

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_i18n_Translation-pt%5fBR

Deleting it fixed the problem :)


How do I check if my laptop fan is working properly?

Update to the latest BIOS, if it is a software problem it will fix, because BIOS of a laptop is the driver along with all power supply for fan, But

as it seems to me that it is making some noise after some time of starting the pc, the problem may be with the hardware you must get it fixed with Dell service center, i.e.

there might be any part which get loose as it get heated, and Ubuntu is known for its heating If you run ubuntu it will consume more power than other OSes and produce more heat and less battery efficiency.


How do I disable the trackpad on my MacBook Pro using syndaemon?

You should be able to control this behaviour directly from the Mouse control panel.  On the Touchpad page, there should be a Disable touchpad while typing option that does what you want.


Swap Partition to Swapfile with Hibernation in 20.04:
Increase swapfile size to match RAM size up to 8GB.

Check the swap that is in use:
sudo swapon -s

If swap partition(s) found:
sudo swapoff -a
sudo nano -Bw /etc/fstab

In /etc/fstab add "# " before the UUID of the swap partition(s):
# UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX   none   swap    sw     0       0

Add a line for the swapfile, if one does not exist:
swapfile   none    swap     sw      0       0

Create the swap file:
sudo fallocate -l XG /swapfile*

Where X is the swapfile size in GB
    sudo mkswap /swapfile

    sudo chown 0600 /swapfile

    sudo swapon /swapfile

Reboot:
sudo reboot

Setup Hibernation (Optional)
Add resume location and offset to grub.cfg:

Edit /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX resume_offset=XXXXX"

Use UUID from root.

Use offset from sudo filefrag -v /swapfile |grep " 0:"| awk '{print $4}'

Update GRUB
sudo update-grub

Test hibernation
sudo systemctl hibernate

A hibernate button can be added using gnome extensions.
*There is a slight possibility of getting holes in a swapfile when creating it with fallocate. /var/log/syslog can be searched for the phrase swapon: swapfile has holes to ensure there will be no data loss.
A swapfile can alternatively be created using dd: sudo dd if=/dev/zero of=/swapfile bs=1G count=8 Caution: An error when using dd may overwrite your HDD


Perhaps you would be better off using a dedicated software. I confess that I have not used it but Bless looks interesting, as mentioned by the comment above (just saw it now...).


Why is python-pip kept back in Ubuntu 14.04?

When a package is marked as being 'kept back', this means that apt will not auto-update it as it now has a new, extra dependency that you never agreed to install.
When you install it specifically with sudo apt-get install python-pip, it returns the message saying that the following packages will be installed to satisfy the dependency requirements:

python-chardet-whl python-colorama-whl python-distlib-whl
python-html5lib-whl python-pip-whl python-requests-whl python-setuptools-whl
python-six-whl python-urllib3-whl

These are all new packages that are not present on your system. Rather than assume you want them installed, apt 'holds back' the package until you specifically tell it to install it. If you don't mind these new packages being installed (you probably don't), then agree to the installation.

If you want to upgrade everything and don't mind installing any new dependencies, the command sudo apt-get dist-upgrade will install all upgrades and pull in any new dependencies required for the updated packages. Be careful because sometimes a new dependency means that an entire software package gets pulled in (e.g. gnome-desktop will require downloading and installing a bunch of dependencies).


1) Yes, by using an extension called "Dock" which is available in the WebUpd8 GNOME3 PPA. Install it using the commands below:

sudo add-apt-repository ppa:webupd8team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell-extensions-dock

Then you must restart GNOME Shell or log out and log back in and activate it using GNOME Tweak Tool (see answer 3).

To customize the dock extension, install dconf-tools (sudo apt-get install dconf-tools), then launch "dconf-editor", navigate to org > gnome > shell > extensions > dock and here you can specify the dock position (left or right), enable or disable autohide, specify the hide effect or set the hide duration.

From here.

2) Not that I know of.

3) What exactly do you want it for? I guess the closest thing to CCSM but for GNOME Shell is GNOME Tweak Tool. Install it using the following command:

sudo apt-get install gnome-tweak-tool

GNOME Tweak Tool shows up as "Advanced settings" in the menu.

4) No.

5) The SUPER / WIN key already triggers the activities overview (this also works with Alt + F1). Do you want to use a different key? You can set a custom key by opening System Settings and under Keyboard > Shortcuts > System change the keyboard shortcut for "Show the activities overview" from Alt + F1 to whatever you want (but make sure that keyboard shortcut is not already in use).


How to dual-boot Ubuntu along with Windows 8.1 in a HP probook notebook

NOTE: BEFORE DOING ANYTHING BEST RESOURCE IS BACKUP_BACKUP_BACKUP

Not an answer, can not comment because of lack of reputation.

Following further info might help ubuntu community to understand problem and give you solution. To that effect edit your question.

a.What is the mode of your PC, i.e. either of UEFI or LEGACY. (this is the most important because, booting from both is very different.)

b.can you please provide, the partition details using live USB/CD with help of gparted.

Possible Solution: (only if your existing system is on Legacy Mode not UEFI & assuming you want to go with something else option of installation)

Go for try ubuntu option.
Open gparted.
Make an extended partition.(Entire 40 GB)

a. now, make partition for Swap (recomm:twice of installed RAM), home (as per req)

b. then start the installation, select the remaining unallocated click "+", then make "/" [root] partition.
[Important]- Then select where you want to install boot loader (i.e. Grub) [this will effectively rewrite MBR with Ubuntu's boot loader. Hence be careful.

And finally as you already have Win 8.1, which most of the time is on EFI (or UEFI)mode, could please consider this & possible duplicate


Your Broadcom USB wireless usually works with ndiswrapper. Please obtain a temporary internet connection by ethernet, tethered or whatever means possible and open a terminal and do:

sudo apt-get update
sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9

Now download the files at post #6 here: http://ubuntuforums.org/showthread.php?t=2052594 Drag and drop the file to your desktop so we can find them. Right-click and select 'Extract Here.' Find out if your system is 32- or 64-bit:

arch

Now we install the driver files:

cd ~/Desktop/Broadcom_bcm43xx_USB_32_64bit_v2

If your system is 32-bit (i686), install the 32-bit driver file:

sudo ndiswrapper -i bcmn43xx32.inf

And if it is a 64-bit (x86_64) system:

sudo ndiswrapper -i bcmn43xx64.inf

In either case:

sudo ndiswrapper -ma
sudo depmod -a
sudo modprobe ndiswrapper

Your wireless should now be working.


When will ubuntu fully support high resolution displays

Unity, the default desktop for Ubuntu, does not have much option for scaling displays. Since 14.04 however, you should be able to adjust the scaling of the launcher and panel in Settings:

In the 'Apperance' settings as well, you can change the icon size in the launcher.

You may also want to try Gnome shell, as that has had support for high-res displays since 3.10. You should be able to install it with:

sudo apt-get install gnome-shell

You may want to install other packages as well for full functionality


This is too long to fit in a comment so I'll have to phrase this as an answer. Sorry for the delay in answering but I'm going through old questions to see if there's any hope at finding a resolution.

Crack open your terminal and enter this command:

sudo sed -i 's/NoDisplay=true/NoDisplay=False/g' /etc/xdg/autostart/*.desktop

Enter your password and press enter (note that when you enter your password there are no asterisks or anything).

Now, open your start menu and preferences and then click on Default Applications for LXSession. In there you will see, on the left, Autostart.

Any hidden services and programs should now be visible. Is Firefox in there and hidden? If so then untick the box.

Now, let's put it back because it may complain about updating the database next time. To do that we basically just swap the command around like so:

sudo sed -i 's/NoDisplay=False/NoDisplay=True/g' /etc/xdg/autostart/*.desktop

Of course you can also just look in /etc/xdg/autostart and see if something is amiss but where's the fun in that?

Anyhow, if this doesn't answer your question and you've since resolved the question then please let us know what you did to resolve it so that others may learn from your experience.


GUI Method 1

Install "GDebi Package Installer" from Ubuntu software store.
Right-click on the .deb file.
Select "Open with other application".
Open the file with "GDebi Package Installer".
Authenticate.
Press install.

GUI Method 2

Right-click on the .deb file.
Select "Open with other application".
Open the file with "Software Install".
Authenticate.
Press "Install".

Command Line Method 1

Open terminal.
Type sudo dpkg -i /home/chris/Downloads/passwordsafe-ubuntu18-1.10-amd64.deb and press Enter.

Command Line Method 2

Open terminal.
Type cd Downloads and press Enter.
Type sudo dpkg -i passwordsafe-ubuntu18-1.10-amd64.deb and press Enter.


Is a 5 minute long Live USB boot time normal?

It depends on your usb stick and maybe your usb port is not usb2?

It could take 5 minutes, although in most cases it shouldn't. For it never was faster than a hard-drive boot.

The interest of having portable os is mainly because it is portable... And as opposed to a live cd you can make changes to it that will remain after a reboot.
alt+enter during boot, i get a black screen with nothing written, no console, nothing


Probably the easiest tool to use is Inkscape. There is a learning curve to all software, though. Install it by typing the following command in a terminal:

sudo apt-get install inkscape

Inkscape is free. It is an open source equivalent for Adobe Illustrator. It allows you to draw vectors (stars, squares, cricles,..), to select their colors, to cut and paste them,  to add text, and more.

Once you have designed your logo you can export it as a .png (pronounced ping) file. That file you can use in your website. If it is too large you can downscale it or you can make it a .jpeg file by opening it with gimp and saving it as a .jpeg file.


I found the guidance in this link helpful:
https://www.youtube.com/watch?v=xeH28tVaTwo

The basic repair presented is:

Open a virtual console by pressing CTRL+ALT+F2 (I am not using a GUI, so I logged in using PuTTY)
Log in
Execute sudo apt-get -f install
Execute sudo shutdown -r now

Repeat steps 1-4 as as necessary.

You might try interspersing step 3 with sudo apt-get update and sudo apt-get upgrade until you get the desired results


Is it possible to set two different user accounts on different HD or partition?

Create a user new user.
Open a terminal.
Move the new user's "home" directory to the partition or hard disk you desire...

 $ sudo mv /home/user_home_dir_name /path_to_new_partition
Create a symbolic link in the /home folder to the user's "home" directory...

 $ sudo ln -s /path_to_new_partition/user_home_dir_name /home/user_home_dir_name
Log out and login as the new user.


How to control routes with multiple interfaces having static ip addresses

Let's start

Topology

---------
|  pc1  |--- 192.168.0.10------192.168.0.250/eth1--|---------|
---------                Private                   |         |
                                                   | server  |--172.20.20.20/eth0
---------                                          |         |        Public
|  pc2  |--- 192.168.1.10------192.168.1.250/eth2--|---------|
---------               Management

Like I say, if your server do not need communicate through eth1 except machines from 192.168.0.0/24 network and if do not need to communicate through eth2 except machines from 192.168.1.0/24 network you do not need gateways on this interfaces. Configuration well be

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 172.20.20.250
        netmask 255.255.255.0
        gateway 172.20.20.1

auto eth1
iface eth1 inet static
        address 192.168.0.250
        netmask 255.255.255.0

auto eth2
iface eth2 inet static
        address 192.168.2.250
        netmask 255.255.255.0

To add more route to some interface

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 172.20.20.250
        netmask 255.255.255.0
        gateway 172.20.20.1

auto eth1
iface eth1 inet static
        address 192.168.0.250
        netmask 255.255.255.0
        up route add -net 192.168.18.0/24 dev eth1
auto eth2
iface eth2 inet static
        address 192.168.2.250
        netmask 255.255.255.0

Or if you need gateways on interfaces you can add metric. Interface with less metric have priority

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 172.20.20.250
        netmask 255.255.255.0
        gateway 172.20.20.1

auto eth1
iface eth1 inet static
        address 192.168.0.250
        netmask 255.255.255.0
        gateway 192.168.0.1
        metric 400
        up route add -net 192.168.18.0/24 dev eth1

auto eth2
iface eth2 inet static
        address 192.168.2.250
        netmask 255.255.255.0
        gateway 192.168.2.1
        metric 800

This are example of configuration. Change with your ip net's, metric, routes per interfaces ....

When you do configuration save /etc/network/interfaces, restart network

sudo service networking restart

or you can restart server


Cannot login after upgrading from 16.04 to 18.04

Had similar problem upgrading from 14.04 to 16.04. Logged to TTY and did a shutdown, which lead to other problem. Could log in to TTY anyway (CTRL+ALT+F1). Then I ran:

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade
sudo reboot

Helped in my case.
Solution is based on a related earlier answer. Configuring did the trick.


Couldn't navigate through directories using bash script

If the list of directories is not too large, I'd suggest avoiding the shell loop altogether and simply passing the list to find via an array:

mapfile -t dirs < "${HOME}/conf/DirectoryList"
find "${dirs[@]}" -type f > /home/yesh/Files_"$(date +%Y%d%m)".log

If you still want to use a shell loop instead, then

while read -r dir; do
  find "$dir" -type f
done < "${HOME}/conf/DirectoryList" > /home/yesh/Files_"$(date +%Y%d%m)".log

If the intent of your cd was to remove the leading path components from the output, then you can do that within find by replacing the default print by an explicit -printf '%P\n'


I want to install and get to building a personal MySQL DB

Ideally, you should have some level of experience in SQL coding if you want to hand code. This means you first get mysql-server (click-to-install)

For the most basic sql commands, you would need to install mysql-client as well. After that open a terminal and run mysql -u username -p for running mysql cli. Take a look at mysql documentation for learning mysql.

According to the open-office wiki, Openoffice Base is also integratable with mysql. Take a look here for more instructions. There are other mysql-gui tools available for ubuntu, the most recommended being Squirrelsql. For the export part to csv, I believe Openoffice should be capable of that (I have no experience of using Base)

In case you would like a web based interface, I would recommend phpmyadmin and sqlbuddy as two possible options. They can connect to external servers as well. So you can run them on other machines as well


WSL version 1 Unable to run ansible, module missing

Ive upgraded to version 2 and its working now.


Boot Stuck After Update to 18.04 from 14.04

I am answering my own question in case others searching for a similar answer find this helpful.

I accidentally used the Debian dist-upgrade command instead of Ubuntu's do-release-upgrade. This upgraded packages beyond what apt-get upgrade allows and also moved my home folder from where it was on a separate drive to the drive with the OS. It also replaced the old home directory with grub boot files. No data was lost. If anyone else makes this mistake, your files may have just moved. You may be able to boot using a different grub entry and recover them or use a live CD.

My solution was ultimately to ensure I have a backup of everything and perform a clean install.

TLDR: Don't use dist-upgrade, use do-release-upgrade.


HP Envy 4500 WiFi printer not found using WiFi

I suggest that, rather than having the System Settings > Printers tool attempt to automatically find the wireless printer, you specify the Device URI. I have an HP printer and, although it attaches to my router with ethernet, I think the process is the same.

I assume the 'Wireless Network Test Results' shows the printer's IP address. I suggest you use this to add a network printer:

ipp://<IP address>:631/lpr

Then continue and let the system look for drivers, select HP and, I assume, since the printer worked by USB, the exact model is selectable. Test by printing a test page.


How to use Hybrid Graphic Switch on Sony Vaio Z?

Might want to check this question out:  Problems with graphics of Sony Vaio Z

The quick answer is that you can get both graphics cards to work, but you will have to reboot to switch between them.  Also, from the little googling I did, it looks like a royal pain to set up right now. (see link) Probably in a year the process will be nice and smooth, but right now its pretty messy.


DM-RAID (the variant of RAID in use here, sometimes also known as SATA RAID, BIOS RAID, or fake RAID) creates a separate device for the whole array and suppresses the partitions for the component devices.  In other words, /dev/sda5 is only the redundant half of your old home partition on your first disk, rather than the whole thing.

On Ubuntu 10.10, I believe that partition 5 of your array should be on /dev/mapper/isw_eahifbiigj_datadump15.  From Ubuntu 11.04, this will move to /dev/mapper/isw_eahifbiigj_datadump1p5.


It is pronounced oo-boon-too.

https://simple.wikipedia.org/wiki/Ubuntu


How to check whether port 25 is open or not from ssh access to server

You should check it from your home PC or another computer than your Linux server. you can use several tools like telnet, curl, netcat (nc) etc.

curl:

$ curl ip_or_domain:25

netcat:

$ nc ip_or_domain 25

in any case if you got 220 hostname SMTP Mail Server this shows that the port is open.


I use /etc/anacrontab to run mysqldump. I do not have a solution for gnome schedule.

Below is the relevant portion of my /etc/anacrontab file.

# Custom Backup jobs
# http://www.thegeekstuff.com/2011/05/anacron-examples/
#
1   20  maria_backup      /bin/sh /home/steve/Computer/Shell_Scripts/maria_backup.sh
1   30  ms_windows_backup /bin/sh /home/steve/Computer/Shell_Scripts/ms_windows_backup.sh

Below is a copy of my maria_backup.sh script executed form anacron.

#!/bin/bash

# Executed from /etc/anacrontab
# mysqldump [options] db_name [tbl_name ...]
# https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html

mv -f -u /home/steve/Computer/maria_backup/sfmags_backup.sql /home/steve/Computer/maria_backup/sfmags_backup_old.sql
mysqldump -u'steve' -p'xxxxxx' 'sfmags' > /home/steve/Computer/maria_backup/sfmags_backup.sql

chown -f -R steve:backup /home/steve/Computer/maria_backup


KDE's KWin's System Settings missing icons, 16.04

Using synaptic, I did install kubuntu-desktop package and all the icons showed up, but I am not sure if that is overkill as my system was an Ubuntu iso.

To try to avoid any problems, I also did reinstall ubuntu-desktop while keeping kubuntu.

there were some errors, I read the log, they seem to not be any serious problem.

I just reboot and it is working great (kde in all seems to be working better like decorations and other things), but I am not expert on it, so I appreciate any more info on what I actually did (that worked).


Unable to log into Unity 3D session on Ubuntu 12.04 with NVidia graphics card

The problem you are having is because you have hybrid graphics in your system, which is not very well supported in linux at the moment.  There are a couple of things you can try:

-Uninstall your nvidia driver(this will force your system to use your intel integrated graphics, allowing you to log into Unity 3D)

-Install Bumblebee https://launchpad.net/~bumblebee/+archive/stable (this will make your system use intel graphics, but it will also turn off your nvidia card when it is not in use saving your battery life.  You can also use your nvidia card this way by typing 'optirun ' before you run something.)

I recommend the second method, but I would reccomend reading the https://github.com/Bumblebee-Project/Bumblebee/wiki before you install it.


Update Manager won't let me update to Ubuntu 11.10

The command update-manager -d tells the system you wish to update to the latest devel release, not the latest stable release.

To update to the next stable release using Update Manager, check your Update Manager settings (Software Sources, Updates tab) : The bottom setting is Notify me of a new Ubuntu version, and select the option For any new verison.

To update to the next stable release of Ubuntu using the command line, use the command do-release-upgrade.


I would not recommend compiling Wireshark on Ubuntu(it is possible, but there are too many odd library dependencies for the average user to troubleshoot).

If you are simply looking to be able to sniff multiple interfaces, any version past 1.8.0 will be able do that. Fortunately,  there is a PPA(see below) that will allow you to install Wireshark without the need to compile from source.

You can install a PPA package that provides Wireshark 1.8.2 to 12.04 rather than compiling from source. The latest wireshark version is 1.8.4 and the latest in the Ubuntu 12.04 repositories is 1.6.7. The following provides instruction for installing wireshark 1.8.2

To install the PPA, run the following commands:

sudo add-apt-repository ppa:eugenesan/ppa
sudo apt-get update
sudo apt-get install wireshark

To start Wireshark,  run the command sudo wireshark

Note: It is necessary to run the application as sudo since one needs elevated privileges in order to have access to the raw network stack.

For more information, see Eugene San PPA.

This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release(including smartgit, among others). I recommend taking a look to see if your desired backport/package might be included here.

What are PPAs and how do I use them?
Are PPA's safe to add to my system and what are some "red flags" to watch out for?

Versions after 1.8.2 do not seem to be available without compilation and there seem to be some issues with libraries in 12.04.


By default you are greeted with the Open Source Nouveau driver (If the Nvidia is installed). If you remove the Nvidia card it will default to the Intel video card inside the processor. The Nvidia Nouveau driver is not bad, but for video cards as powerful as yours you need the Proprietary Drivers. in you case you need to follow the steps I provided in this question: How do I install the Nvidia drivers?

Since your motherboard is basically awesome (All DZ77 are awesome!) and had the option to disable UEFI (Intel "Smart" Technology) then you do not have to worry about Windows 8 on it. At least with all the problems it could have caused with UEFI activated.

Note that you actually need the nvidia-313 for this card to work (As shown in the link I provided). I already tested that one with the nvidia-310 and nvidia-304 and had issues with it.

lspci will show all the PCI devices on your system. So it you do the following:

lspci| grep NVIDIA

and it shows something about NVIDIA, like in my case:

01:00.0 VGA compatible controller: NVIDIA Corporation GF114 [GeForce GTX 560 Ti] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF114 HDMI Audio Controller (rev a1)

Then you are using the NVIDIA card. This can be changed in the BIOS if you want, but by default, motherboards first look for a PCI or AGP video card. If not found they go with the onboard one.

I also suggest (Since you have a new system) to run the following command: sudo update-pciids

This will update the list of PCI ID devices. Just in case not all PCI devices appear on the list (Very rare, only occurs on very new hardware).


Converting old BIOS mounted system into UEFI

I am going to assume that you have things set up on your Ubuntu machine, and don't want to do a full re-install. Assuming that you can use a second drive is to do a fresh minimal install of 18.04.2, which will set up the EFI partition and boot instructions, and then rsync your old install on top. There will be a little bit of checking that your EFI partition points at a valid kernel in the installation, but it saves re-configuring everything. I have done it twice, and it has worked both times (with a bit of fiddling).


The new QT GUI for existing applications will be integrated with the Ayatana overlay scrollbars?

fossfreedom posted this as a comment, which essentially answers the question:

  doubtful it will land - according to this blueprint, no progress on
  this:
  blueprints.launchpad.net/ubuntu/+spec/…

– fossfreedom♦ Mar 5 '12 at 10:50

On its whiteboard (main page), that blueprint currently says:

  From Etherpad:

  issues for current implementation users reported: targetting thumb horizontally and vertically

    * fix this by increacing the vertically sensitive area of
  the overlay-scrollbar

    * for the horizontal axis a mouse-friction is introduced
  (Cimi has test-application available) to help the user hit the
  thumbb-target-area

  suggestion to extend this also to resizing windows at the edges to make the UI behave more consistently
  toolkits to target for port: xul (partly uses gtk+), qt (e.g. used by unity-2d), vcl (OpenOffice), swing (java applications), nux (used
  by unity-3d)
  lp:ayatana-scrollbar-qt is a first attempt at porting the gtk+-based overlay-scrollbar to qt

  ACTIONS-items:

  [cimi] share overlay-scrollbar documentation with Qt-developers

  [cimi, tsenyk] make overlay-scrollbar behaviour-logic fully abstracted
  (decouple from current gtk+-implementation)

  [tsenyk] use that abstracted logic-library for a first port to Qt
  (also use as an example to test if the abstraction is good enough)

But even now that it's January '13, there hasn't been much progress yet -- the status is still Not started and the direction is Needs approval.


JDK installation: sudo does not run the bash file properly

The installation instructions say:

  You do not have to be a root user to use this installer unless you choose to install this bundle in a system-wide location.
  (…)
  Note: If you choose to install this bundle into a system-wide location such as /usr/local, you must first login as root to gain the necessary permissions.

It's not saying “You must not be a root user”, however they may have built in a test to assure the script doesn't save files with root permissions and ownership – which would mean a normal user would not be able to use the installation later despite being installed under /home. That's nothing more than a wild guess, but would actually make sense.


I would first recommend to do the following:

sudo apt-get -f update

sudo apt-get -f upgrade

sudo update-manager -d

sudo do-release-upgrade -d

To upgrade do the following:

sudo apt-get install update-manager-core

sudo apt-get -f dist-upgrade


I had the same problem, so I tried installing the newest driver from the intel site.
All you need to know is the name of your device and your kernel version. Use uname --all and lspci and download the driver here, than copy it to your /lib/firmware-folder.
That worked for me.


Wifi keeps asking for password - Ubuntu 12.10

I had this problem. I messed around with drivers and different distros but nothing worked.

I solved it by changing my router settings from n only to g/n.


Try to install ext2fsd on windows. It will detect your ext3, ext4 drives of Ubuntu.
You can download it from
ext2fsd.com


These files belong to the installation of gufw and will be used to create firewall rules for applications. This is just for your convenience.

Example:

You have Blood2 installed and want to play it online. You will need to allow incoming connections on port 6666. You can add the firewall rule in the Preconfigured-tab by choosing the application. When you click the Applications-button you will see a list of applications. You may filter the list with the Category- and Subcategory-buttons.

This is useful as you probably don't know which ports are used by an application, so using preconfigured rules give you the ability to easily add the correct rules for the application you want to use.

So the files in /etc/gufw/app_profiles are just a collection of known applications which will be used to quickly create firewall rules for your applications. If you don't add any rules in the described way, the files will not be used, just leave them where they are, they don't harm your system in any way.


Installed Ubuntu on new hard drive but it does not load

In the short term, try putting my rEFInd boot manager on a USB flash drive or CD-R and boot using it. rEFInd will probably be able to boot your Ubuntu installation without any special configuration or changes; however, you may not want to boot through rEFInd on a USB flash drive in the long term....

As ubfan1 says in a comment, your efibootmgr output shows no evidence of a boot entry for GRUB (EFI/ubuntu/grubx64.efi on your /dev/sda1). Such an entry should exist. The two most likely possibilities for why it doesn't exist are a failure when installing the boot loader or a buggy EFI that "forgets" its boot entries.

To fix the first problem, you must create a fresh boot entry. You can do this after booting your system via rEFInd with the following command:

sudo efibootmgr -c -l \\EFI\\ubuntu\\shimx64.efi -L "ubuntu"

Note the double backslashes (\\) rather than single forward slashes (/) as directory separators. (I'm pretty sure that recent versions of efibootmgr can use forward slashes, but as you don't say what version of Ubuntu you're using, it's best to stick to the lowest common denominator.) Also, if Secure Boot is truly disabled, you can specify grubx64.efi rather than shimx64.efi; but the latter should always work, so it's the safer choice.

Reboot, and if Ubuntu starts up, type sudo efibootmgr to see if there's an ubuntu entry. If there is, you should be able to reboot, or shut down and reboot, and the system will start up again.

If that fails, then your best bet, if your computer is new, is to replace it because it's defective. Be sure to tell the manufacturer why you're returning it for a refund. They've had literally years to fix these bugs, and most have; but a few manufacturers are still shipping broken EFIs, and they'll likely continue to do so until the Sun is a cold ember unless people refuse to buy broken products.

If the computer is not new enough to be returned for a refund, there is a workaround: Back up and rename GRUB to the fallback filename (EFI/BOOT/bootx64.efi on the ESP). You can do so like this:

sudo cp -r /boot/efi/EFI/ubuntu /boot/efi/EFI/BOOT
sudo mv /boot/efi/EFI/BOOT/shimx64.efi /boot/efi/EFI/BOOT/bootx64.efi

Again, you can specify grubx64.efi rather than shimx64.efi if you're certain Secure Boot is disabled; but shimx64.efi should work whether or not Secure Boot is enabled, and so is the safer choice.

This approach has several problems, although they're less significant for your single-boot system than for some. The biggest issue, if you must take this approach, is that updates to Shim and GRUB won't be automatically installed; you'll have to manually copy them from /boot/efi/EFI/ubuntu to /boot/efi/EFI/BOOT, much as in the preceding commands. Most such updates aren't really critical, but there's always a chance that an update will include an important security fix, so you should keep an eye on this.


For Ubuntu phone, how should "device offline" and "device not found" errors be addressed when reflashing?

Instructions for installing Ubuntu on phones are here:

https://developer.ubuntu.com/en/phone/devices/installing-ubuntu-for-devices/


How to add multiple pages which can be switched on press of a button in pyGTK using quickly?

Do you mean a gtk.Notebook?

To switch between pages, just use the notebook API in your button callback.

def on_button_clicked(button):
    # I want to go to page 2
    notebook.set_current_page(1)
    # Let's visit the next page
    notebook.next_page()
    # And back again
    notebook.prev_page()

http://developer.gnome.org/pygtk/stable/class-gtknotebook.html


How to update grub in a encrypted partition

I have posted below before, but was delete, because question asked was similar problem with grub, but without encryption. This is how I solved my grub problem with LUKS encryption:

After updating (by ubuntu software) my laptop today (after not using it for one week) I have the same problem. Only a grub prompt. Also first tried Boot-Repair on Live USB, but didn't work. My laptop is luks encrypted, so searched for other solutions, I found:

grub> ls
(hd0) (hd0,gpt3) (hd3, gpt2) (hd0,gpt1)
grub> insmod luks
grub> cryptomount hd0,3
Enter password
Slot 0 opened
grub> insmod lvm
grub> ls
(crypto0), etc.
grub> configfile $prefix/grub.cfg

This gives normal luks password entry screen, which accepted, but after that it immediatelly gives the following warning:

Welcome to emergency mode! Etc. I have looked at the journal and found (in red):
fsck failed with error code 4 and
Failed to start File System on /dev/disk/by-uuid/etc-etc.

Next thing I did was, enter maintance mode and command:
fsck /dev/sda2
After that I was able to log in normally, update by terminal and reboot. Did get another failure and had to run fsck /dev/sda2 again. After that I was able to reboot normally.

So this solved the above problem (when you have an encrypted LUKS disk).


How can I optimise ext4 for reliability?

No. You can never suppose something to be 100% reliable.

Journaling file systems minimise data loss in the event of an unexpected outage. Extents and barriers help even more, but cannot eliminate all associated problems. Personally, I've never experienced data loss because of file system corruption when using journaling file systems.

Also, journaling is not disabled by default.

Here's a good overview of ext4 and its improvements: http://kernelnewbies.org/Ext4


Cannot copy to USB - every USB stick is read only (16.04)

My head hurts a little from all this, but hey turned out to be this bug. It's a shame to see the community take such a setback from the dismissal of Unity, and while they start over the giants like Microsoft and OS continue to progress down the road.

  killall nautilus

Worked for me.


Cannot change output device after installing Clementine to fix audio

Ok, after some tinkering, I've managed to fix the issue, but clicking on "Test" still produces no sounds (I'm fine with that). I'm not sure what exactly fixed the issue, but I've uninstalled Clementine, reinstalled linux-sound-base, alsa-base, and alsa-utils, and installed the package from OSS.


Note that the message says the problem is google-chrome-stable depends on libappindicator1; however: Package libappindicator1 is not installed. Normally, sudo apt-get -f install is how'd you fix this, but since that's not working for you, you can manually fix it with sudo apt-get install libappindicator1.


After strugling with tutorial around Askubuntu and from another sites unfortunately it still the same.

Then I tried to access recovery process and upstart on previous kernel version in the list on advance option page of start menu. It's working and everything accessible including the internet by command below.

sudo nmtui

Then from command line I remove active kernel

sudo apt remove linux-image-x.x.x-xx-generic linux-headers-x.x.x-xx-generic

Reinstall again the latest and perfect one of my Ubuntu version

sudo apt-get install linux-generic

Then reboot,

sudo reboot

Everything working like before in my case.


You need to install libjpeg62, libjpeg62-dbg, libjpeg62-dev and libc6. These can be downloaded from http://www.ubuntuupdates.org/

Write down or print the following Links. Go to a internet cafe and download the .deb files. Bring them and copy them to a folder. Move to that folder by cd [folder directory] and install with :

sudo dpkg -i [FILE NAME].deb

http://www.ubuntuupdates.org/package/core/precise/main/base/libjpeg62

http://www.ubuntuupdates.org/package/core/precise/main/base/libc6

http://www.ubuntuupdates.org/package/core/precise/main/base/libjpeg62-dbg

http://www.ubuntuupdates.org/package/core/precise/main/base/libjpeg62-dev

Other method :

You can copy them to /var/cache/apt/archives with sudo cp [FOLDEER DIRECTORY]/[FILENAME.DEB] /var/cache/apt/archives.

Then run:

sudo apt-get install libjpeg62 libjpeg62-dbg libjpeg62-dev libc6


How to recover from a partial system upgrade?

When package upgrades are interrupted in midway, normally doing sudo dpkg --configure -a && sudo apt-get -f install && sudo apt-get upgrade will save the situation, but when is a full release upgrade (jumping from a version to another) the steps becomes more tricky.

What's the best solution for this cases? Reinstall. If you are not capable to reinstall, you may want to continue the upgrade using sudo update-manager-text or sudo apt-get dist-upgrade (the last one you shall modify your sources.list from oneiric to precise, see my command at the end), but that I won't guarantee will work. Other option is sudo do-releases-upgrade, but you must make sure that the process is not interrupted this time around.

To use apt-get dist-upgrade

sudo sed s/oneiric/precise/g /etc/apt/sources.list
sudo apt-get update
sudo apt-get dist-upgrade


I downloaded Lubuntu, but can't burn the ISO file

Assuming that you are using a recent version of Windows, right click the .iso file and select Burn Disk Image

Also beware that Windows 10 now has the ability to mount disk images as the default option. When a disk image is mounted it will hide it from the file system. If you are unable to find the .iso file you downloaded check My Computer to ensure the disk isn't mounted and if it is eject/unmount it first.


Ubuntu boot menu wont show up. It directely boots into Windows 8

When you installed Ubuntu, did you answer yes to installing grub, or did you say no?

Sounds like you are using NTloader, which won't see Linux....

Try: https://www.gnu.org/software/grub/manual/html_node/Installing-GRUB-using-grub_002dinstall.html


NVIDIA drivers causing blank screen with X mouse icon

My solution was actually kind of obscure but easy.  I have two graphics cards in my computer, a PCI-express graphics card which I use, and an onboard discrete graphics controller on my motherboard, which I don't use.

Just out of curiosity, I tried plugging in my monitor to the onboard graphics DVI out and suddenly I got a desktop, albeit not a nice looking one.  I'm guessing the drivers attempted to use the first graphics card it found on my computer (the onboard discrete graphics controller) instead of the one I actually wanted to use.

I went into my BIOS settings and disabled the onboard graphics.  Things booted up correctly after that.

I hope this helps anyone in the future having problems with the NVIDIA drivers.


Upgrade to trusty from saucy without full upgrade

I finally did an upgrade manually by changing the distribution to "trusty" from "saucy" in /etc/apt/sources.list and changed the distribution tags of ppa's in the same manner.

Then I manually upgraded the packages through synaptic.


Getting Brother DCP-J140W to scan via USB to Kubuntu 14.4

It seems the main issue was that I need to start brscan-skey as the right user. What one needs to do is start it via

$ sudo su
# brscan-skey

Also I did some mistakes when editing the shell scripts (although this is not directly related to the question). To summarize, the actual command is implemented in /opt/brother/scanner/brscan-skey/brscan-skey. In /opt/brother/scanner/brscan-skey/brscan-skey-0.2.4-0.cfg it is defined which script is started when which option is chosen on the scanner. The respective scripts are in /opt/brother/scanner/brscan-skey/script/, so one needs to edit them if one wants to change settings. A description is mentioned e.g. in https://wiki.ubuntuusers.de/Scanner/Brother/Scankey-Tool/#Scankey-Tool-Optimierung


The PPAs you used to install elementary not only provided elementary specific packages, but also patched many standard Ubuntu packages and with your apt-get dist-upgrade command they all get installed and mixed into your system. Which means some of the core packages are not from Ubuntu repository, but from those elementary PPAs.

For example, This ppa https://launchpad.net/~elementary-os/+archive/ubuntu/os-patches provides many packages that are also available in Ubuntu repository. Since the PPA provides those package with higher version (and patched of course), those are preferred by apt and get installed into your system while you did the dist-upgrade command.

For your specific problem, I identified the package which is responsible for showing the distribution name on top-left corner of Unity Panel. It is called base-files. I tested the elementary PPA by installing it and not surprisingly I too got those elementary marks :D.

But to solve this, you just can't remove it, because this is an essential package and Ubuntu needs it. What you need to do is re-installing from Ubuntu repository. Use this command to do so.

sudo apt-get --reinstall install base-files/xenial-updates

This command will install the package from Ubuntu's xenial-updates archive. After a logout and login, you'll see the changes reverted back.

To completely remove Elementary effect from your system, you should go back to Ubuntu versions for all packages. To do so, use ppa-purge (and not apt-add-repository --remove command, which will just remove the repository entry). For example,

sudo ppa-purge ppa:elementary-os/daily
sudo ppa-purge ppa:elementary-os/os-patches
sudo ppa-purge ppa:elementary-os/testing
sudo ppa-purge ppa:mpstark/elementary-tweaks-daily

ppa-purge will remove packages from these PPAs and install the ones from Ubuntu archives.

Note: If you already removed the Elementary PPA entries (by deleting the lines from sources.list files) add them again and then use ppa-purge.


Rendering Problems: Android Nougat requires the IDE to be running with Java 1.8 or later

You can install a later version of Java with:

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ oracle-jdk8-installer


How to enable snap app permissions to read files on a secondary HDD?

Snap is quite rigid in its permission system. Lacking options for a more granular control on which locations a snap can access, you may mount that internal hard drive under your home folder, or better, especially on multi-user systems, mount --bind specific folders of the second internal HDD under folders where your snap application has access. Symbolic links unfortunately do not work for that purpose.


So, I found my answer to this problem from
here.
TQ.


How do I increase the verbosity level of nvidia's drivers in Mythbuntu 12.04?

I found out how to do this...

From your X desktop (i.e. Ubuntu, Gnome, Xubuntu...) open a console (Alt-Ctrl-F1).

Stop the X desktop (sudo service stop lightdm) or gdm or what ever display manager your X desktion was using.

Run the command startx -- -verbose 5 -logverbose 5  note not with sudo.  Now a new X desktop will open, and...

Now /var/log/Xorg.0.log will have lots more info on what's happening when X starts.

Including the EDID from your monitor or TV, which is what I was looking for...

When done, logout, then restart your X desktop, i.e. (sudo service start lightdm) or gdm or what ever display manager your X desktion was using. Close your console (exit) and rejoin your X destop (Alt-Ctrl-F7).


How to add support for the JPEG image format

I fixed the problem by installing from source the jpeg encoding library available at http://www.ijg.org/files/jpegsrc.v8c.tar.gz.

cd /usr/local/src
tar xvfz jpeg-8c.tar.gz
cd jpeg-8c
./configure --enable-shared --prefix=$CONFIGURE_PREFIX
make
sudo make install

Then I re-installed ImageMagick from source:

cd /usr/local/src
tar xvfz ImageMagick-6.6.9-5.tar.gz
cd ImageMagick-6.6.9-5
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp
make
sudo make install

Now its working, I've tested it like this:

sam@ubuntu:~/RubymineProjects/project/tmp$ identify 1.jpg
1.jpg JPEG 128x106 128x106+0+0 8-bit sRGB 2.22KB 0.000u 0:00.000


auto-completion does not work for "sudo apt-get install"

Bash does support some more kinds of autocompletion, not only filename completion.

In the file /etc/bash.bashrc, you will find a paragraph, like this or similiar to this:

# enable bash completion in interactive shells
#if ! shopt -oq posix; then
#  if [ -f /usr/share/bash-completion/bash_completion ]; then
#    . /usr/share/bash-completion/bash_completion
#  elif [ -f /etc/bash_completion ]; then
#    . /etc/bash_completion
#  fi
#fi

(this example is from debian, but is probably identical to the Ubuntu version)

By removing the # character in the beginning of each line you put a lot of additional completion rules into effect. (Don't remove the # on the first line... thats really a comment ;-)

I believe apt-get completions are among those enabled with this. If not you could think about switching to zsh. I know they support it ;-)


Problems downloading the packages xserver-xephyr

I did it.
another package, xserver-common was required to install this one.
It works perfectly now.

BTW I needed this one to install Ubuntu Builder


Option “-e” is deprecated and might be removed in a later version of gnome-terminal in Ubuntu 18.04

Read the error message:

# Option “-e” is deprecated and might be removed in a later version of gnome-terminal.
# Use “-- ” to terminate the options and put the command line to execute after it.

The error message tells you that -e is deprecated, and may be removed in future versions, and the alternative to -e.

You have the following command line:

Exec=gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h -- output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"

Change this to

Exec=gnome-terminal -t "Disk Manager" --hide-menubar -- "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"


How to activate fingerprint on ubuntu 20.04 for login?

You need to install the fingerprint-gui

sudo add-apt-repository ppa:fingerprint/fingerprint-gui
sudo apt update
sudo apt install libbsapi policykit-1-fingerprint-gui fingerprint-gui

then launch fingerprint gui


The Github page for that package recommends the following if you can't correctly build a project on Ubuntu amd64:

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 lib32z1-dev


The "CD Image" is the DVD image. It is now too big to fit in a CD. You can either burn it in a DVD or put it in an USB stick using  the software described in ubuntu.com.

Download the 12.10 desktop DVD image from: http://www.ubuntu.com/download/desktop


Shell with coloring and showing the git branch?

It's actually a zsh shell

install it with apt-get

sudo apt-get install zsh

download the theme

wget -O ~/.zshrc https://raw.githubusercontent.com/grml/grml-etc-core/master/etc/zsh/zshrc

change the default shell (please note that you will lose your aliases with this)

chsh -s /bin/zsh

update for aliases

if you have aliases in a separate file in your home/<user_name> folder then append this to the end of the .zshrc file in your home/<user_name> folder

if [ -f ~/.aliases_file ]; then
     . ~/.aliases_file
fi


Make a backup of your .profile
Open a terminal and use the cp command as follows:
cp ~/.profile ~/.profile.bak

Edit the .profile file
Open the .profile file in a text editor. The last few lines may look like this:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

Add a new line at the end of the last line and copy the command:
export RSTUDIO_WHICH_R=/usr/bin/R

Now the end of the file should look something like this:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi
export RSTUDIO_WHICH_R=/usr/bin/R

Save the files and close the text file editor.
Log out and log back in so that the changes take effect.
Open RStudio and verify the R version from within RStudio.
If it does not work...
...revert back to the backup version of the .profile using the following command:
cp ~/.profile.bak ~/.profile

If it works...
...you may delete the backup file, or keep it for future reference.
Hope this helps


How to rate apps in ubuntu (phone) store?

You can only post reviews for apps that are currently installed. You can go to the store scope and find the installed app, or long press on the icon in the main apps scope, to get to the preview. Under the information for the app, and above the existing reviews, there is a widget for entering a new review.

There seems to be an issue where for some people, the review entry widget is not appearing. If you are seeing this, it is already reported as a bug. Unfortunately, it is quite difficult to recreate the condition where this seems to happen, so it is very difficult to debug, and thus get a fix deployed.


Can't access to the system after an update

Man, you have no kernel! You can either reinstall your OS, or you could download and create a Ubuntu live cd/usb, mount your root partition, chroot into your root partition and install a kernel, like this (from the live cd/usb):

mount /dev/sdaX /mnt
mount -t proc proc /mnt/proc/
mount -t sysfs sys /mnt/sys/
mount -o bind /dev /mnt/dev/
chroot /mnt
apt-get install -y linux-image


Playing game emulators on a virtualized OS (Qemu/KVM)

Virtual machines are a good way to run another OS side-by-side on an Ubuntu desktop to share data but they all come at a high cost of performance drop on graphics demanding applications such as games are.

How good any game will perform in a virtual machine depends much on your host hardware, VM settings, the game's and your own demands of course. A scale from 0 to 100 is highly subjective, as you may be happy with the performance while others (eventually on other hardware) are not. It is something you have to try out for yourself, but be prepared for much frustration from slow graphics.

If dual-boot is not an option then I'd recommend to install the OS as host where you spend most of your time in, or where your hardware or performance demands are better supported.

The arcade emulator MAME is natively supported from Ubuntu but for release 14.04 you may have to install it from an unofficial ppa. This alone should therefore not be a reason to run Windows in a VM.

Many Windows games will also run with Wine. It is very likely that games not supported by Wine are the same that will also not perform well in a virtual machine.


Can I get Directx 10/11 working on Ubuntu 14.04 or higher?

DirectX is a collection of a runtime and drivers.  As Wine does not support the installation of Micro$oft Windows drivers, you cannot install just any version of DirectX.  :-(

Therefore, DirectX support needs to be enabled inside the Wine environment by the Wine developers.

For more info on the current development of DirectX under wine, read this wine FAQ.

(DirectX9 supported at the time of this writing, DirectX10 being planned)


I would just move some other commands between echo "MIB file found" and else.


Looking at your syslog screenshot, there are physical errors while mounting. Is this card working in any other devices?
You probably want to mount partition (/dev/sde1), not device (/dev/sde) with sudo mount... command.

You can try to list partitions with sudo fdisk /dev/sde -l, but considering the above error of read sector 0, there might be a problem, as partition table is held on sector 0.


Is there a way to open .et files with 14 04 LTS?

Yes, install Kingsoft in Linux. You can open the file in there.

If needed save the file as a txt or csv so you can open it in Libre Office and delete Kingsoft.


Can I tar the whole system, clear everything and untar it back?

In general that should work. Some points to take care of:

Exclude /dev /proc /sys /run
You can usually also exlude /tmp /mnt /media
Create the tar archive with a live cd if possible
If you want the same sizes of your partitions, save your partition table (e.g. with parted /dev/sd... unit b print)
Do not forget to run grub-install


Why does /etc/resolv.conf not update when I change my DNS?

To expand on the other answer here, and to clear up some confusions here, if you are using Network Manager to manage your connections, it also includes a small version of dnsmasq.  This is what the 127.* address is in your resolv.conf - the IP address of localhost, where dnsmasq has bound to.

Network Manager, when configured with the DNS servers, will tell dnsmasq what DNS servers to relay requests to.

If you set 8.8.8.8 as your DNS server in Network Manager's settings, dnsmasq will forward all requests that aren't cached to 8.8.8.8 for actual resolving, while your computer sends DNS requests directly to dnsmasq for handling.

Confusing, I know, but you can't rely on resolv.conf to show the DNS servers in use when you are using Network Manager to manage the connections.


Ubuntu 16.04 installed on phone looks different

Unless your phone can handle it, and the option is available in Linux Deploy (last I remember it wasn't, the Unity DE), then no. Otherwise, try reinstalling the distro with the Unity DE.


Install aptitude using:

sudo apt-get install aptitude

Then do:

sudo aptitude install libgnutls26

Aptitude will show the problems and propose a solution.

The first proposed solution will be to keep everything as-is. Answer 'n' to that question.

The next proposed solution will be to downgrade all of the dependencies that are currently too new. Answer Y to that.

Then, try installing libgnutls26 again.


You could try to rename all directories containing configuration files and cache in your home directory - they should be newly generated after logging in again. I am quite sure that this will work, but ALL YOUR SETTINGS WILL BE LOST.

First, switch to the command line interface using ctrl+alt+F1 and log in.

Then rename all directories containing configuration files (do NOT delete them, just in case) using the following commands

mv .config .config_old
mv .cache .cache_old
mv .gconf .gconf.old

After having done this you have to log out and back in. As this is not possible using the GUI you can run the following command:

sudo service lightdm restart

This will restart the Xserver and you should be able to login. Unity should now work again, but all your settings are reset to their default values.


Officially Pidgin does not support adium themes, and to my knowledge, the plugin has not been updated (or available) for a rather long time. I'd like to be proven wrong, but I don't think you will be able to use this feature.


Here is a solution to open a local X desktop for the superuser from a remote ssh connection. I hope it will be useful since I cannot manage to make it run for a regular user.

1. Log on your machine with ssh

2. Allow anybody to open a local X11 session on the console

You have to edit /etc/X11/Xwrapper.config and change

allowed_users=console

to

allowed_users=anybody

3. Start the session (sudo)

sudo startx

The X11 session starts (as superuser) and you can see normal X11 session messages on your ssh session.

startx doesn't exit until the X11 session exits. If startx exits with error messages, something went wrong.

It usually fails for a regular user

On some systems, you can just use startx ( or startx -- vt[number] to force the virtual console used) but usually it fails.

It seems to be related to access rights to (at least) :

/dev/tty[number]
/dev/dri/card0
/dev/fb0

Those right should be set by some mechanism and forcing them with chown makes some improvements but not doesn't solve the issue.

I was not able to find the difference between the system where startx works for the regular user and the systems where it doesn't. They all run ubuntu eoan and as far as I know, the configurations are identical. Only the hardwares are different, especially the video cards.


Do these file managers warn you when you try to copy files that there isn't enough space for?

This is my experience with Gnome 3.18, it would seem to vary based on desktop environment, i.e. Nautilus does on Gnome and Dolphin does on KDE but not the other way round, best bet is use the file manager that came with your desktop.

With Nautilus, it will warn you first, here is the exact message

For Dolphin, the answer was no, it tried to copy a file larger than the destination, to the destination, it did not even warn me, just stopped as if it had finished, even left the broken file in the folder.

Thunar did warn me first, here is the message

PCman FM did not warn me and the same as Dolphin, just left the broken file on the drive, no error messages.


after a GRUB update you should execute on a virtual terminal:

sudo update-grub

It updates grub.cfg to reflect the new changes in the system.
Since you are excluded from the system, you can try to use a rescue CD/DVD to edit grub.conf: follow the official guide is always a good idea, it will solve!

Bye, good luck.


While compiling TrueCrypt, I get "undefined reference to symbol 'dlclose@@GLIBC_2.2.5'"

Set the environment variable LIBS to -ldl:

LIBS=-ldl make