Double clicking an sh file won't execute it because sh files are really just text files containing terminal commands. It's always kind of annoyed me that certain files aren't able to be executed by double clicking them, but that's just the way Linux works. If you want to run the sh file, you need to use the terminal.

Press ctrl + alt + T to open a terminal. Now there are two ways to execute an sh script from the terminal. One is done by cding to the parent directory and then running it from there, while the other way just points directly to the file. I'll show both of them below.

For these examples I'm using my own user name and path I made up. You have to specify the actual path to your sh file.

By using cd

cd /home/zacharee/Downloads/program/
sudo ./program.sh

By just putting in the full path:

sudo /home/zacharee/Downloads/program/program.sh

Either way will work fine.

Now, if you really want to be able to double click executable scripts from your file browser to run them, you can try this:

Open Nautilus (the file browser) and open the File... menu. From here, select Preferences and go to the Behavior tab. There should be a dropdown menu option named something like Executable Text Files:. In the dropdown, select the Run ... option and apply these settings.

Source: Not executing programs (*.sh ) with double click in 13.04


After update today (19-1-2021) Evolution cannot connect to mailserver

It turned out to be a server side issue. I had set evolution to use TLS on a dedicated port, when I change to STARTTLS it works again.
I will investigate what happened on the server side, but it is not an issue that was caused in updates of my workstation!


How to edit and preview a site on Ubuntu 14.04 Trusty?

To view a local html page exactly like it looks on the web server, you would need to download not just the html file but all associated components, like .css files, .js scripts, webfont files, etc, and even then it is possible for a web page to change its outlook in real time. This is possible to do in a browser.

Also keep in mind that by the time the html file arrives in your computer, all server-side processing has been applied, so what is stored in the server may differ significantly from what you see.

If you use Chrome or Firefox, saving a web page as "Webpage (complete)" will store the html page as a single file and additionally create a folder, in the same location and with the same name, with as many associated files as it can find. The browser will also modify the links in the html page to point to the local files, rather than the files on the server. But even then, the page may be too complex to render exactly like the web page.


how to create a live-usb for ubuntu from a lubuntu system

To install Startup Disk Creator, run the following in the terminal:

sudo apt-get install usb-creator-gtk


Why does my root filesystem keep becoming read-only?

In my experience if he system automatically decides to remount a medium read-only that either means that

the medium is broken
or the file-system on the medium is broken.

In the latter case a fsck run could help. But if a bad block has broken the file system chances are high that it won't be long before another bad block appears - possibly breaking something more vital.


How to restart an exited Docker container as an interactive bash session using a container ID?

I found the answer.  In the terminal:

docker exec -it <container_ID> bash


I wonder if this is because there are a load of dirty pages being written back and this is causing the CFQ I/O scheduler some issues on a slow device. Switch the I/O scheduler to deadline and see if it helps. For example, if you are using block device /dev/sda then use:

echo deadline | sudo tee /sys/block/sda/queue/scheduler

Maybe that will improve things.


Why is Ubuntu_Free_Culture_Showcase owned by root?

The answer is quite obvious. These permissions are set this way because Ubuntu maintainers have set them this way.

The permissions don't stop normal users from playing media files, because everyone can access the files.

Also a user having sudo permissions has full access to that directory.

The reason for setting the permissions is that the directory is provided by example-content package.

You can find this out by running

dpkg -S /usr/share/example-content/Ubuntu_Free_Culture_Showcase

Generally it is strongly not recommended to modify or remove files provided by a deb package.

You can remove the package by

sudo apt remove example-content

if you don't need it.


Can't update Ubuntu server 16.04 to 18.04 due to missing phpMyAdmin PPA

You have to remove PPAs from the system by
sudo mv /etc/apt/sources.list.d/*nijel*.list ~/
sudo add-apt-repository -r ppa:phpmyadmin/ppa

and then revert phpmyadmin package to the version from official repository:
sudo apt-get install --reinstall phpmyadmin=4:4.5.4.1-2ubuntu2.1

Then run sudo apt-get update to ensure that errors gone and next run sudo do-release-upgrade .


Still researching but running it all under strace suggests that the last failure before the Abort is trying to run something snap related - /tmp/ubuntu-release-upgrader-9dqwuool/imported/snap debug connectivity which is dying with error: cannot communicate with server: Post http://localhost/v2/debug: dial unix /run/snapd.socket: connect: connection refused

Ah, in fact, snap debug connectivity blows up when run directly, service snapd status says Active: failed (Result: start-limit-hit); running service snapd start results in a status of Active: active (running) and then snap debug connectivity says Connectivity status: * PASS... and then do-release-upgrade actually makes progress.

Based on other search results, please note that this only applies if your main.log goes immediately from running Quirks.bionicPostInitialUpdate to abort called -- if there's anything else in there it's probably not this.

It looks like this might relate to https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1780841 (which seems to be what implements the feature that doesn't work here.)


What's the difference between unfs3 and nfs-kernel-server?

http://unfs3.sourceforge.net/

UNFS3 is a user-space implementation of the NFSv3 server specification. It provides a daemon for the MOUNT and NFS protocols, which are used by NFS clients for accessing files on the server

UNFS3 being user space based, and not widely deployed, I wouldn't really trust it. nfs-kernel-server is linux's standard nfs server


Light Adwaita theme for Ubuntu Unity - toolbar customization!

The resource file in question is in fact binary, but can be unpacked with a program called gresource-extract.sh
You can find it here:
http://projects.thecodergeek.com/scripts/gresource-extract
Once you unpack it, the text files can be edited. Just remember to change the files that pointed to the binary so that they point to the unpacked versions.


What are the credentials for Ubuntu 19.04 deployed via OVA?

Turns out ESXi ignores the OVF data unless when using ovftool you provide the undocumented flag --X:injectOvfEnv, as explained here https://www.virtuallyghetto.com/2014/06/an-alternate-way-to-inject-ovf-properties-when-deploying-virtual-appliances-directly-onto-esxi.html, or when using govc you set "InjectOvfEnv": true in the spec JSON.


Insert the SD card.  Turn on the Dell, and when the BIOS screen appears press F12.

You will then get a list of devices to boot from.  Select the SD card and continue.

Alternatives:

Enter BIOS (probably F10) and change the boot order so
that the SD card is the first device.
Install Grub2 bootloader onto the hard drive.  It's quite capable of
booting off the SD card.  This might be the best solution as you will
always get the boot list (Windows or Ubuntu) and will not have to
fiddle with BIOS or function keys.  To do this, install Ubuntu onto
the SD card but make sure you install Grub to the first hard drive
(advanced partitioner) in the setup programme.

Be very careful when using the advanced partitioner.  The hard drive will most likely be /dev/sda while the SD card may be /dev/sdb or something else if there is a separate card reader in the machine as well.


Chkconfig alternative for Ubuntu Server?

The equivalent to chkconfig is update-rc.d

The equivalents you seek are

update-rc.d <service> defaults
update-rc.d <service> start 20 3 4 5
update-rc.d -f <service>  remove

See this useful page for more information or check out man update-rc.d


What is the proper way to patch Wine for a custom PPA?

You're pretty close with your example steps, but here's what I'd suggest:

Grab the sources with apt-get source wine and cd into the new directory
Find what sort of patch system the wine package is based on: what-patch; in this case, it tells us we that the wine package uses quilt for patch management
Since we're using quilt, add your custom patch(es) to the quilt series: QUILT_PATCHES=debian/patches quilt import <your-patchfile.patch>If you have multiple patches, do this for each patch, in the order that you want them applied.
Add a suitable entry to the debian/changelog file - you'll need to alter the version number to ensure that your PPA version is differentiated from the official version. Typically, you should increment the last version number, and add a tilde (~) followed by your custom version string (eg ~jbowtie1). The dch -i command can help with this too.
Build the source package:debuild -S
Upload your source package to the PPA build system: dput ppa:<your-ppa> ../wine*.changesThe <your-ppa> parameter is specified on the launchpad page for the PPA you want to upload it to (you'll have to create this beforehand).

It's usually a good idea to do a test build before doing the dput - the pbuilder command allows you to recreate what the PPA build system would do with your package (ie, start from a clean install, add required deps, then build).

In this case you would have to set up pbuilder first (see https://wiki.ubuntu.com/PbuilderHowto), then do this before the dput:

sudo pbuilder build ../*.dsc


How to install Need for Speed Shift 1-2 game?

You will probably be able to run the application using Wine . Wine is a compatibility layer for Windows executables, allowing a number of Windows applications to run on Linux / Ubuntu.

According to the Wine AppDB entry for NFS Shift 1, the application does have fairly good support and (assuming the patch is installed) should play with little or no problems.


Is it possible to install ZSNES Emulator from default software sources?

zsnes exists in the Universe repository for 32bit Natty only.

If you look here on launchpad for the zsnes package, you'll note there is no 64bit package available - just the 32bit (i386) package.

To get this to work under 64bit requires a bit of terminal work...

Download the 32bit package from here into your Downloads folder.

Install all the dependencies:

sudo apt-get install libao4 libc6 libgcc1 libgl1-mesa-glx libpng12-0 libsdl1.2debian libstdc++6 zlib1g

Then do the following:

cd ~/Downloads
dpkg -x zsnes_1.510-2.2ubuntu4_i386.deb zsnes_dir
cd zsnes_dir/usr/bin

You can now run the application by running

./zsnes -ad sdl

source


What are the elements of the GNOME Desktop?

As explained at GNOME Shell - Wikipedia, according to Projects/GnomeShell/Design - GNOME Wiki! the main desktop design components are:

Top bar
System status area
Activities Overview
Dash
Window picker
Application picker
Search
Notifications and messaging tray
Application switcher
Indicators tray (deprecated)

Here's an illustration from Wikipedia:

As of Gnome 3.28.2, the bottom left corner of the screen, below the dash, in place of an Indicators tray, have a "Show Applications" grid button which leads to the applications overview.
Good question. It's nice to use the canonical names when searching for or describing desired behaviors, or reporting bugs.
Update thanks to @pomsky: See also the current documentation on the Visual overview of GNOME.


Which package contains /usr/bin/less for Ubuntu 19.04?

That's because /usr/bin/less is a symbolic link:

$ ls -l /usr/bin/less
lrwxrwxrwx 1 root root 9 Jul 21  2017 /usr/bin/less -> /bin/less

The latter is provided by package less

$ dpkg -S $(realpath $(which less))
less: /bin/less

The symbolic link is one of several created by the postinst script during package configuration:

case "$1" in
    configure)
        for file in lessfile lesspipe lesskey lessecho less; do
          if [ ! -e /usr/bin/$file ]; then
            ln -s /bin/$file /usr/bin/$file
          fi
        done
    .
    .
    .

(The same script installs less as the default pager under update-alternatives.)


Using Linux on Windows XP without installing it

Here are a couple of guides to booting Ubuntu via Live CD without installing it

https://help.ubuntu.com/community/LiveCD
https://help.ubuntu.com/community/BootFromCD

Where and how did you downloaded the ISO image?


How can I be notified whenever the printer is used? Dbus? Something else?

you need system-config-printer-applet.

  system-config-printer-applet is a print job manager for CUPS. Normally
         it will display a printer icon in the notification area, greyed out
         when there are no print jobs for the current user. Clicking on the icon
         displays a simple print job manager for cancelling or reprinting jobs.

For package : https://launchpad.net/ubuntu/quantal/+package/system-config-printer-gnome


Share files - Ubuntu 12.04 and Windows 7 - one network - password not accepted

You will want to install samba and configure the workgroup as explained in the Ubuntu 12.04 Samba help page.  I have had some problems with passwords on Windows-Ubuntu shares, so you might want to consider doing this without password, but set the share as read only so your files cannot be modified or deleted remotely.


Can't run FlightGear from PlayDeb on Ubuntu 12.04 32bits

To solve my problem :

I removed the PlayDeb repository :
sudo add-apt-repository -r "deb http://archive.getdeb.net/ubuntu precise-getdeb games".
Then, I updated the sources :
sudo apt-get update.
Then I removed all fgfs files :
sudo apt-get remove flightgear fgfs*.
Then I reinstalled FlightGear 2.4 :
sudo apt-get install flightgear.
Then I added the PlayDeb repository again :
sudo add-apt-repository "deb http://archive.getdeb.net/ubuntu precise-getdeb games".
And finally, I upgraded :
sudo apt-get update && sudo apt-get dist-upgrade


How can I permanently remove the boot option "quiet splash"?

Open a terminal and type the following:

sudo  gedit /etc/default/grub

Then look for a line like this in the opened file:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

It may have other options there as well, but just remove quiet splash and:

sudo update-grub


I  had the same problem. To fix it un

sudo apt-get install mtpfs

Once that's installed, plug in the phone to your computer. If nothing happens, on the phone go to Settings > Storage > Upper Right Corner (⋮) > USB Computer Connection > Media Device.


When compiling the Linux Kernel, what is the purpose of `make randconfig`?

The messing things up is the point.

It's used for what's called "fuzz testing" - making sure the kernel config can't be put in a state where the kernel can't compile. Rather than rely on pure human ingenuity to break things, they enlist the help of entropy.


Skype with webcam work on Lenovo T450s running Ubuntu?

I am running Ubuntu 15.10 on a T450s and have no problem with the webcam.

I was on Ubuntu 14.10 at first, but had problems with my docking station so I upgraded to 15.04 with latest kernel and that solved most of them. I never had problems with my webcam though.


Mute key mutes Alsa and PulseAudio, but unmutes only Alsa

it is much simplier though.

amixer -D pulse set Master Playback Switch toggle

set this as a hotkey to "Mute\Unmute".
volume controls can be left as they are.

Mint 15 Mate - figured it out by myself, works fine for me.


Terminal command for gThumb Image Viewer

"Image Viewer" is also known as "Eye of GNOME", the command is

eog


Wonderwall app for wallpapers don't change wallpaper

I've done it in the next way:

sudo apt install bing-wall
Opened bing-wall and changed wallpaper
sudo snap install wonderwall
Opened wonderwall and did what it asked using the second method:

sudo snap connect wonderwall:hardware-observe

As a result, I could change wallpaper using wonderwall by first downloading and then setting it as a wallpaper.


What software should I get for web development and design?

You don't always need to use a IDE you can just develop using a simple text editor like ("gedit" on ubuntu). But if you're looking specifically for an IDE there's the "Bluefish" editor that can help you in the development but there are many others also. Since you're gonna be developing PHP websites you'll need a server and probably a database software if you're gonna be making SQL based websites, you can use LAMP (`Linux Apache Mysql and PHP) server, it includes the server and the database, the webserver is the most important and required software for PHP development.

Note that the webserver installed on your personal machine is just for development purposes you should avoid using it for hosting your website online.

For image and graphics - You can use "Gimp"(for image editing) and inkscape(for vectors)

You'll probably need browser plugins like firebug(for firefox) to help you debug you html css and javascript code directly from the browser.

Color Pickers(if you're gonna be doing the design too) like colorzila.

You may also need other kind of tools as you develop different websites according to your need. But to start, this is probably enough.


AWK split file on pattern and name new files after string in first line after pattern

You can read in the next line in awk using getline

Quick'n'dirty illustration (you should really check its return value and act accordingly):

awk -F, '
  /^m,head/ {
    tmp = $0; getline; outfile = "file_" $2 ".txt"; print tmp > outfile
  }
  outfile != "" {
    print > outfile
  }
' example_file.txt

giving

$ head file_*.txt
==> file_12a.txt <==
m,head1,32
dgf,12a,8923

==> file_awq.txt <==
m,head1,11
bsda,awq,902
9as,wea,1732
ax1,awq,2321

==> file_wea.txt <==
m,head1,3
ae,wea,2232
ax1,awq,2321

If the filenames are not unique, you will probably want to append (>>) rather than truncate (>).

If you want to gzip the chunks, then rather than creating plain text files and then executing gzip via a system call, you can print data via standard input to gzip as follows - taking care that you are Closing Input and Output Redirections

awk -F, '
  /^m,head/ {
    close("gzip >" outfile);
    tmp = $0; getline; outfile = "file_" $2 ".txt.gz"; print tmp | "gzip >" outfile
  }
  outfile != "" {
    print | "gzip >" outfile
  }
  END {
    close("gzip >" outfile)
  }
' example_file.txt


Ubuntu has a heavily pixelated screen when I try to use it

Plug in the ethernet cable so that you have an internet connection and start the computer.
Open a text-only console by using the keyboard shortcut Ctrl+Alt+F3.
At the login: prompt type your username and press Enter.
At the Password: prompt type your user password and press Enter.
Now you are logged in to a text-only console, and you can run terminal commands from the console. Run these commands to install the proprietary graphics driver for your NVIDIA GeForce 6150 SE GPU:

sudo apt update
sudo apt upgrade
sudo apt install nvidia-current
sudo reboot


Installing Ubuntu on an external hard-disk is similar to how you install it on your internal hard-disk. The changes you need to make are as follows:

While creating partitions make sure you make them on the external hard-disk. Gparted(the software which helps you create partitions) will show both the devices(internal as well as external hard-disk. It may even show other storage devices connected, if any).
On the bottom part of the partition creation process, you will be given an option to choose where to load the boot-loader. By default, it may be on the internal hard-disk; change this to the external hard-disk so that you can boot to the OS's in the internal hard-disk even in the absence of the external one.

All other steps remain the same, exactly same.


Keyboard shortcuts not working in gnome 3.10

EDIT: The easier way is reloading gnome shell using Alt+F2 (and then r)

Older way:

Same is the case for me. Try this

mv .gconf/ .gconf.bak
Logout and Login back.

It worked for me in Ubuntu Gnome 14.10.

Source : https://unix.stackexchange.com/questions/126127/global-keyboard-shortcuts-in-ubuntu-14-04


Why won't HDMI audio work with Radeon HD 7850?

Never mind, I've finally managed to get sound working! Because I hate when people say they got something working without saying how they did it, here's where I found my answer:
No Sound card detected in Sound Settings, although sound works
Not exactly my problem, but the sound card wasn't showing up, so I gave it a shot and, ta da! Sound through the HDMI port!


Can I simply remove 'IBus Pinyin Setup'?

Try it. If the system lets you remove it then remove it. You know you don't need it. Often other packages insist that completely unrelated stuff are dependencies, so just try and see what it says: it may insist on removing a whole load of packages that you really don't want to remove.

I removed all that garbage without any problems. Nice and clean.

Aside: It makes sense to install it "as default", but it would make more sense for the installer to ask if you would ever need or use it.


How to set DISPLAY variable for a process?

It sounds like you sudo'd to the postgres user then tried to run Pgadmin from there.

Don't do that.

Run PgAdmin as your regular user, without sudo. You might need to create yourself a user account on the DB and/or edit pg_hba.conf to allow connections first, but once that's done you can use PgAdmin.


What tool can i use to scan a network and test wake on lan

You need to gather MAC addresses then power off all the computers and then send out the wol packets. As far as I know there's no tool that will do all those steps but it's trivial to combine:

sudo nmap -sP 192.168.0.0/24 |grep MAC|cut -d\  -f3 > mac
# power off all systems and then...
wakeonlan -f mac


Go with kdenlive

sudo apt-get install kdenlive

It has most of the features like Premiere pro. Range of bitrates, frame rates and formats are supported.


Blank screen after Sleep/Hibernate on ubuntu 18.04

After i close the lid, the screen will not turn on. I followed instructions given by ubuntu faqs and it worked in one shot.
 This will  work for the new 18.0.x.

Pull up a Terminal  and run:

sudo nano /etc/default/grub

to pull up the boot loader configuration

Look for the line GRUB_CMDLINE_LINUX=""
and make sure it looks like this : GRUB_CMDLINE_LINUX="resume=UUID=41e86209-3802-424b-9a9d-d7683142dab7" and save the file with "ctrl + X" and "y". You can use this UUID.

sudo update-grub

and wait for it to finish

sudo nano /etc/initramfs-tools/conf.d/resume

and make sure to add resume=UUID=41e86209-3802-424b-9a9d-d7683142dab7(with your UUID of course in place of mine if you want). Save the file with "ctrl + X" and "y".

 sudo update-initramfs -u

Reboot!

If this saved your life or your girlfriend computer like it did to me, please vote up this unique answer.


What can I do if a repository/PPA does not have a Release file?

The PPA you've added does not support your version of Ubuntu. For example, the ppa:mc3man/trusty-media PPA is only for Trusty (Ubuntu 14.04) only (trusty-media). Obviously, it has no files for Xenial (16.04). You can check the PPA's Launchpad page to see which versions of Ubuntu are supported.
I'd suggest the following:

Remove the PPA for an older release. For this example: sudo ppa-purge ppa:mc3man/trusty-media

If there's a PPA for your curent release, add it. In this case, there's a PPA for Xenial: mc3man/xerus-media. You can add it using sudo add-apt-repository ppa:mc3man/xerus-media


Deleting Giant Log File Didn't Free Up Space

To find large files held open by some process:

sudo lsof / | \
   awk '{if($7 > 1048576) print $7/1048576 "MB" " " $9 }' | \
   sort -n -u

But, you should check for deleted (but open) files as well, with

sudo lsof / | \
    egrep 'PID|\(deleted\)'

These command sequences are so handy that I've made them aliases. The quoting is difficult, so here's what I put in my ~/.bash_aliases:

alias bigopenfiles='sudo lsof / | awk '\''{if($7 > 1048576) print $7/1048576 "MB" " " $9 }'\'' | sort -n -u'
alias deletedfiles='sudo lsof / | egrep '\''PID|\(deleted\)'\'''


Wifi is working but I can't open "Wifi Settings"

I reinstalled the control center with

sudo apt install --reinstall gnome-control-center

As suggested in comments by @Kulfy.  This fixed the problem.


How can I partitioned may SEAGATE hard drive on Ubuntu 14.40 LTS?

You need to unmount the drive by right clicking the ntfs partition and click unmount. Then you will be able to shrink the current partition or delete the drive and make the new ones you want.
.

Edit:: To rename the dive you right click the dive and click label., then a popup windows will appear and there is where you can set the drive name.  You can also rename each partition that way as well if you can


Network Card drive for Intel 1200v3RPS for Ubuntu 12.04 Desktop amd64

The issue is resolved, i used the driver from CD as it had source files. I used the below link as reference.

Ubuntu 12.04 loses ethernet driver after update and reboot

Inside the folder of linux drivers from Intel CD, I ran the following commands, and the network got connected.

sudo make install
sudo modprobe igb


If you have a live cd, boot from this, and run a disk check on the ubuntu partition.

To do this, you need to first run fdisk -l from a root terminal, then once you know the location of the ubuntu partition, run fsck /path/to_drive.

Once the disk check is complete, you can restart your system (without the CD) and it should be working again.


You can have a script (cron job that runs it every minute, or plain loop in the background) that checks the lid state (/proc/acpi/button/lid/LID/state on my Lenovo P50 with 16.04) and if it find it closed, issues a suspend command.

Another way is to disable resume. Normally there is only one key for resume (the Fn key), and there could be a way to disable it in the BIOS (you would still be able to resume with the touchpad).

The low tech way is some thin card put over the keys before closing the lid :)


Suddenly can't paste or create files to any other drive. (Xubuntu dual boot with freshly installed Windows 10)

And of course I find the solution minutes after I post the question.
I just had to go to the Power Settings in Windows and UNCHECK fast startup.
I hope this will help another poor soul in the future.


I don't think it can directly. But you can try using an Android emulator then add the program to it or optionally use one of the many different Ubuntu friendly video editors.
Looking up the Dell Vostro 15, there are several versions. The 4 numbers that follow (15) will help others provide better answers.


Cannot remove file from trash that was put there as root

You will need root access to the trash to be able to delete these files - the easiest way to do this in a temporary sense, is to open a terminal window alt+ctrl+t, and enter the command

gksudo nautilus /home/your_username/.local/share/Trash

This will execute the file manager with super-user permissions and you should be able to empty the trash from here. Delete the root-owned file.

When you are done, remember to close the program!


How to install an ATI 3650 video driver on 12.10?

Either download the dirver from AMD's website, or enable restricted drivers (search "restricted drivers" in Unity).


Removing 'kubuntu-restricted-extas' (Or: Understanding 'apt-get autoremove' in general)

Logs

Ubuntu community: https://help.ubuntu.com/community/LinuxLogFiles

The apt log: /var/log/apt/...

The dpkg log: /var/log/dpkg.log...

Keeping own logs - the logsave

LOGSAVE(8)                                  System Manager's Manual                                  LOGSAVE(8)

NAME
       logsave - save the output of a command in a logfile

SYNOPSIS
       logsave [ -asv ] logfile cmd_prog [ ... ]

DESCRIPTION
       The  logsave program will execute cmd_prog with the specified argument(s), and save a copy of its output
       to logfile.  If the containing directory for logfile does not exist, logsave will accumulate the  output
       in memory until it can be written out.  A copy of the output will also be written to standard output.

At here

When installing/upgrading/removing something I will use the logsave to save the output to the human readable file.

If I want to remove the 'kubuntu-restricted-extras' I would look the log file:

Log of sudo apt-get install kubuntu-restricted-extras libdvdcss2
Sun Apr 20 17:07:16 2014

Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  chromium-codecs-ffmpeg-extra freepats gstreamer1.0-libav
  gstreamer1.0-plugins-bad gstreamer1.0-plugins-bad-faad
  gstreamer1.0-plugins-bad-videoparsers gstreamer1.0-plugins-ugly
  kubuntu-restricted-addons lame liba52-0.7.4 libass4 libchromaprint0
  libcroco3 libdc1394-22 libdca0 libenca0 libfaad2 libfftw3-double3 libflite1
  libfluidsynth1 libgme0 libgstreamer-plugins-bad1.0-0 libgtkglext1
  libk3b6-extracodecs libkate1 libmad0 libmimic0 libmms0 libmodplug1
  libmpeg2-4 libmpg123-0 libnspr4-0d libnss3-1d libofa0 libopenal-data
  libopenal1 libopencore-amrnb0 libopencore-amrwb0 libopencv-calib3d2.4
  libopencv-contrib2.4 libopencv-core2.4 libopencv-features2d2.4
  libopencv-flann2.4 libopencv-highgui2.4 libopencv-imgproc2.4
  libopencv-legacy2.4 libopencv-ml2.4 libopencv-objdetect2.4
  libopencv-video2.4 libpangox-1.0-0 librsvg2-2 librsvg2-common libsidplay1
  libsoundtouch0 libspandsp2 libsrtp0 libswscale2 libtbb2 libtwolame0
  libvo-aacenc0 libvo-amrwbenc0 libwildmidi-config libwildmidi1 libzbar0
  nepomuk-core-ffmpegextractor oxideqt-codecs-extra unrar
Suggested packages:
  frei0r-plugins libchromaprint-tools python-acoustid libfftw3-bin
  libfftw3-dev libportaudio2 libroar-compat2 librsvg2-bin sidplay-base
  xsidplay srtp-utils
Recommended packages:
  flashplugin-installer libavcodec-extra-53
The following NEW packages will be installed:
  chromium-codecs-ffmpeg-extra freepats gstreamer1.0-libav
  gstreamer1.0-plugins-bad gstreamer1.0-plugins-bad-faad
  gstreamer1.0-plugins-bad-videoparsers gstreamer1.0-plugins-ugly
  kubuntu-restricted-addons kubuntu-restricted-extras lame liba52-0.7.4
  libass4 libchromaprint0 libcroco3 libdc1394-22 libdca0 libdvdcss2 libenca0
  libfaad2 libfftw3-double3 libflite1 libfluidsynth1 libgme0
  libgstreamer-plugins-bad1.0-0 libgtkglext1 libk3b6-extracodecs libkate1
  libmad0 libmimic0 libmms0 libmodplug1 libmpeg2-4 libmpg123-0 libnspr4-0d
  libnss3-1d libofa0 libopenal-data libopenal1 libopencore-amrnb0
  libopencore-amrwb0 libopencv-calib3d2.4 libopencv-contrib2.4
  libopencv-core2.4 libopencv-features2d2.4 libopencv-flann2.4
  libopencv-highgui2.4 libopencv-imgproc2.4 libopencv-legacy2.4
  libopencv-ml2.4 libopencv-objdetect2.4 libopencv-video2.4 libpangox-1.0-0
  librsvg2-2 librsvg2-common libsidplay1 libsoundtouch0 libspandsp2 libsrtp0
  libswscale2 libtbb2 libtwolame0 libvo-aacenc0 libvo-amrwbenc0
  libwildmidi-config libwildmidi1 libzbar0 nepomuk-core-ffmpegextractor
  oxideqt-codecs-extra unrar
0 upgraded, 69 newly installed, 0 to remove and 0 not upgraded.
Need to get 52.3 MB of archives.
After this operation, 95.8 MB of additional disk space will be used.
Do you want to continue? [Y/n]

and copy&paste the file list to the

sudo apt-get purge <files>


Contrary the other answer, this particular problem is probably a direct result of using bash-completion. The bash-completion package has several bugs (as noted in this U&L answer about a similar problem, for instance).

If I comment out this section in my .bashrc:

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
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

and start a new instance of bash, then I get:

$ echo *o*<tab><tab>
foo     food    foo.sh
$ echo *o*

And then if I source the /usr/share/bash-completion/bash_completion script like it was in the .bashrc:

$ . /usr/share/bash-completion/bash_completion
$ echo foo

The *o* was immediately autocompleted to foo without showing the other matches.

I'm using 16.04, by the way. I don't know if this has been fixed in newer releases.

$ dpkg-query --show --showformat='${Package} ${version}\n' bash bash-completion
bash 4.3-14ubuntu1.2
bash-completion 1:2.1-4.2ubuntu1.1


Annoying user password authentication every time I open a picture

The picture files have the executable bit set. If you double click on them, they will be treated as an actual binary instead of a picture.

Have you tried to remove the "x" bit from all picture files?
Most likely this is a pscp issue (setting all bits on transferred files).


As I already mentioned in comments, setting DefaultTimeoutStopSec in /etc/systemd/system.conf should solve this problem.


libpng warning: Application jmp_buf size changed Segmentation fault when try to run xampp installation file

Solved this by running the xampp installer with strace:

sudo strace -Ff -tt ./xampp-linux-x64-7.4.2-0-installer.run 2>&1 | tee strace-xampp.log

Opened strace-xampp.log and saw at the very end of the log that NotoColorEmoji.ttf crashed the app

[pid 44306] 06:00:07.874986 stat("/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf", {st_mode=S_IFREG|0644, st_size=7745408, ...}) = 0
[pid 44306] 06:00:07.875040 openat(AT_FDCWD, "/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf", O_RDONLY) = 23
[pid 44306] 06:00:07.875118 fcntl(23, F_SETFD, FD_CLOEXEC) = 0
[pid 44306] 06:00:07.875142 fstat(23, {st_mode=S_IFREG|0644, st_size=7745408, ...}) = 0
[pid 44306] 06:00:07.875183 mmap(NULL, 7745408, PROT_READ, MAP_PRIVATE, 23, 0) = 0x7f2b12e49000
[pid 44306] 06:00:07.875229 close(23)   = 0
[pid 44306] 06:00:07.875325 write(2, "libpng warning: Application jmp_"..., 48libpng warning: Application jmp_buf size changed) = 48
[pid 44306] 06:00:07.875359 write(2, "\n", 1
) = 1
[pid 44306] 06:00:07.875411 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x40} ---
[pid 44307] 06:00:07.875440 <... select resumed> <unfinished ...>) = ?
[pid 44307] 06:00:07.974988 +++ killed by SIGSEGV (core dumped) +++
06:00:07.975443 +++ killed by SIGSEGV (core dumped) +++

So I deleted the whole font by running

sudo rm -rf /usr/share/fonts/truetype/noto

Hope this helps.


Configuring the BIOS before installing Ubuntu

I can't comment on your specific hardware.

You need not disable or enable anything in the BIOS / UEFI before installing Ubuntu.

In particular, if you want to boot both Windows 8 or above that came with the computer and Ubuntu don't mess with your BIOS. See Installing Ubuntu on a Pre-Installed Windows with UEFI for more information.

On the other hand, if you plan to completely remove Windows and replace it with Ubuntu, you may change the BIOS to legacy mode. It does not make any difference.

Please read the Ubuntu community documentation on UEFI and on UEFI Booting for more information.

Hope this helps


yes it is possible to run asp.net mvc3 apps on linux box.
See http://twistedcode.net/blog/post/2011/01/17/Mono-and-ASPNET-MVC-v3.aspx for details
It's not very easy or pleasant process since you will need to install mono 2.10.4 or above.
(install guide http://coderinserepeat.com/blog/archive/2011/Aug-14.html)
AFAIK LinqToSQL will not work, however you can use some alternatives like Nhibernate or something simplier like Massive https://github.com/robconery/massive or ServiceStack.OrmLite https://github.com/ServiceStack/ServiceStack.OrmLite - not to mention all of which will let you use some linux DB engine like PostgreSQL or MySql.


Delayed touchpad scrolling after keypress

OK, I am not 100% sure, but I think I have solved the problem. I just ran syndaemon -i 0 -d with 0 replaced by some other numbers (1, 0.1, ...) and at first it didn't work, then it turned my touchpad off, and after turning it on again, the delay is now reasonable.


Change ext4 to NTFS for installing Windows 7

Just reinstall Windows over it, you can delete the old Linux partitions in the Windows installer.


It looks like your nvidia drivers didn't get updated when your kernel got upgraded; this can happen if you install drivers by hand or via the website.

You can reinstall the nvidia drivers by running jockey-text in a console. From here you can list the available drivers and install them.

jockey-text -l will list the available drivers:

jockey-text -l
xorg:nvidia_173 - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)
xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, In use)

And then you can enable them with the -e flag, for example:

jockey-text -e xorg:nvidia_current or jockey-text -e xorg:nvidia_173


I'm not able to comment on answers yet due to lack of reputation points, therefor do I comment through adding an answer instead.
@Thomas Ward, thanks for your answer, I ran sudo apt autoremove, that didn't remove anything at first glance.
@oldfred, here are the results of df -h:
/boot/efi/EFI/ubuntu# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             16G     0   16G   0% /dev
tmpfs           3,2G  5,0M  3,1G   1% /run
/dev/nvme0n1p6  650G  171G  447G  28% /
tmpfs            16G  189M   16G   2% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/loop0       56M   56M     0 100% /snap/core18/1988
/dev/nvme0n1p2   96M   94M  2,9M  98% /boot/efi
/dev/loop1      219M  219M     0 100% /snap/gnome-3-34-1804/66
/dev/loop2       56M   56M     0 100% /snap/core18/1997
/dev/loop3       52M   52M     0 100% /snap/snap-store/518
/dev/loop6      139M  139M     0 100% /snap/krita/63
/dev/loop7       33M   33M     0 100% /snap/snapd/11402
/dev/loop4       65M   65M     0 100% /snap/gtk-common-themes/1514
/dev/loop5      261M  261M     0 100% /snap/kde-frameworks-5-core18/32
/dev/loop8       66M   66M     0 100% /snap/gtk-common-themes/1515
/dev/loop9      241M  241M     0 100% /snap/zoom-client/142
/dev/loop10      33M   33M     0 100% /snap/snapd/11588
/dev/loop11     241M  241M     0 100% /snap/zoom-client/143
tmpfs           3,2G   32K  3,2G   1% /run/user/125
tmpfs           3,2G   52K  3,2G   1% /run/user/1000


So, if I'm reading this correctly, you're opening the display settings as shown in the image above. You then click on and drag one of the displays to the opposite side of the other display. You click the Apply button and your changes are maintained momentarily before they switch back to the way they were.

After clicking the Apply button, you must also confirm that they display settings look correct

If you don't click the Keep This Configuration button before the countdown reaches zero, your display will revert back to the previous settings. This protects you in the event that you make a change which leaves your displays in a dysfunctional state.


Is it possible to create an installation disk of Ubuntu, from an already existing installation?

We used to commercial package Acronis true image live cd to take one Ubuntu computer full image and deploy onto another computer.

But there is a good alternative for Acronic live CD. That is  Clonezilla Live

Donwnload from here -> Clonezilla live ISO file
Burn it on CD
Prepare external Hard disc to take your computer image.
and, follow the steps to take a backup and restore. Refer this Doc for more info.


Why are (uninstalled) packages listed in the "Local" repository (in Synaptic) after an upgrade?

OK, this seems to be the answer:

http://johnlewis.ie/remove-residual-config-files-in-ubuntu-a-one-liner/

aptitude -F %p search '~c' | xargs dpkg -P

I tried putting something together just like this, but based on deborphan, and I might have left my system in a partially borked state. I'll start another question on that.


Is there any hidden log file in encrypted --vg--root storage?

To find out where on your filesystem this happens, you may use a command like

du -s /*

You'll see, which directories contain most disk usage, and you may want to look at those, which have grown most since yesterday or last week (run this command every day and save it's results).

You may dig deeper into any interestingly growing directoies, until you find out where all your disk space goes each and every day.

If you miss some content, realize that * doesn't cover files/directories starting in "." (that's why they are sometimes called "hidden"'. You can just add them to /*, like du -s /* /.hidden /.whatever.

Have fun exploring and finding out!

TomTomTom


Why do I have to connect to the internet to install Ubuntu?

What says you have to connect to the internet?

If you mean the installer, that's so that you can have the system attempt to apply updated software automatically after installation of the base software.  It'd then download and install the updates.  If you check the box to update while installing then it forces the internet connection.

This does not reign true with the Minimal CD, however, as it does not contain the software for the OS and downloads it from the repositories.


Ubuntu 14.04 unity shows wrong battery status

1.It would not show the battery remaining

I suggest you to use Xfce desktop environment with xfce-power-manager to make sure your battery is fine or not . If in Xfce you get same problem , i think there something wrong your machine or your battery .

2.It would not show the charging icon even when I plug-in the cable

If the charging icon is not show up when you plug-in the cable , i think there are problem with your icon theme.Try other icon theme pack like Faenza to make sure fine your battery .


Your CD has a failed iso image.

Before burning a CD with the ISO image, please check the image.

To verify I suggest you read this article: https://www.howtogeek.com/246332/how-to-verify-a-downloaded-linux-iso-file-wasnt-tampered-with/

To record the CD you can read this article: https://www.tutonics.com/2012/07/how-to-create-bootable-live-cddvd.html


Changes to Ubuntu are mysteriously rolled back

I managed to find out what was wrong so I am posting an answer in case someone faces similar issues. The problem was caused by the VM host provider where by mistake they had put online two instances of my VM. As the two instances had the same IP address, whenever i accessed the server through SSH I was randomly connected to one the two instances, which explains the inconsistencies. After shutting down one instance all problems were resolved.
Thank you all for your comments on this.


Setting action with xbindkeys: sh: 1: Bad substitution and wrong clipboard area

Manage to fix both problems.

For the clipboard problem, I installed the ClipIt sudo apt-get install clipip and in the preferences I checked Use ctrl+c and unchecked Use Primary (Selection)

The problem with the shell command not getting the sub-string properly I used sed instead:

artist=$(banshee --query-artist);title=$(banshee --query-title);echo $artist - $title | sed -e "s/title: //g" | sed -e "s/artist: //g" | xsel

This is probably a lot bad, but works.

If anyone have a more elegant version, feel free to post.


Easiest is with avconv (and no special options):

avconv -i samplevideo.rm samplevideo.flv

(in case someone suggests ffmpeg: Is FFmpeg missing from the official repositories in 14.04? )

Installation of avconv:

sudo apt-get install libav-tools

For all your GUI users (yeah you!):


starting the laptop after sleep while using windows -- grub opens up instead

Just went through the linked article and after a few hits and trials thought I would clear up some of the confusion with the exact procedure I followed to get it working.

Install GParted using

sudo apt-get install gparted

Find the partition among the listed ones (has msftdata flag set)
Image from my system

Right click > Manage Flags

Set the legacy_boot flag.
Set the highlighted flag

Close, and you are done!

Next time you boot into Windows and wake it from sleep, you will directly be taken to the login screen.


How can I reformat this Flash drive to be ext4

This is a longstanding (reported October, 2012), incredibly overlooked bug: see https://askubuntu.com/a/629043/16395. It will be fixed in the next release.

The solution is to use gparted, or format the device with command-line:

mkfs.ext4 /dev/device

(necessary sudo and device name omitted for obvious reasons).

Anyway, I strongly advise against using a whole, unpartitioned device. It will probably not automount or misbehave in a lot of cases. Create a partition table, one big partition, and format it --- you'll lose a couple of megabytes but you'll have a much more standard device.

To use gparted (short guide because How to format a USB flash drive? has a video --- I hate that...)

After started gparted, remember to (1) choose the right device (triple check, and then again) and (2) unmount it if mounted (you can say it's mounted because then option like partition, format, etc are dimmed):

then create a partition table if needed:

and create a big partition with Partition->New. Choose (1) a primary partion, the (2) right type, and if you add a label in (3) this will be the name of the device when automounted.

...and then format it:

Notice that gparted will not do all the operation instantly. It will create a list in the bottom window...:

...and to really do it you have to choose Edit->Apply all.. :

... you're done!

And a final note. If you format your filesystem as ext4, you have to change the ownership of its root directory after the formatting --- otherwise it will be owned by root.

For vfat and msdos-like filesystems this is not a problem, because the auto-mounter will force the ownership to you anyway. In the case of unix-like filesystem this will not happen. So after you mount your new device, you have to

 sudo chown $USER /media/$USER/newdevice/.

...and then be sure that you have the same UID on all the machines you use.


Problems with wpa_supplicant and hostapd. Help!

Check the bottom of the iw list output for something like this:

valid interface combinations:
     * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
       total <= 3, #channels <= 2
     * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
       total <= 4, #channels <= 1

(This is what my Raspberry Pi 3 shows for wlan0.)  Note that the device only supports a single channel between the two (managed and AP) interfaces.

Try changing your hostapd.conf so the channel specified matches that of the network you're trying to join.


crontab -e. Added entries but no /etc/crontab

The command crontab -e does not edit the system-wide crontab file /etc/crontab, it edits a user-specific file in /var/spool/cron/crontabs . The editor used may be changed using the EDITOR or VISUAL environment variable ex.
EDITOR=/bin/nano crontab -e

You can confirm that you changes have installed by listing the crontab file, using crontab -l .
If you want to place your job in /etc/crontab instead, you would edit it like any other system file ex.
sudoedit /etc/crontab

or (to use the nano editor explicitly)
sudo nano /etc/crontab

but remember that the format of this file is slightly different - in particular, because the file is not user-specific it requires an additional (sixth) field containing the username under which to run each job.


Yeah, i had this problem the other day to. You need to reinstall your thing. You can not open kernel from there. So i'd suggest not having to put up with this because you'll waste less time by reinstalling the operating system (i mean deleting the files and putting it onto another or the same USB)


How do I update Nvidia display driver on ubuntu 18.04, if I already installed cuda toolkit 10.2 and its bundled display driver?

The update from 418 to 430 can be done smoothly with an option that is somewhat hidden. Open the main menu with the Super key, and search for "software and updates". The app should have several tabs, including "additional drivers". Go to that page, and you should see the following.

Select the newest driver (in this case 430), apply, and restart.

UPDATE

I just realized if you do it this way, e.g. install CUDA 10.2 first, which comes with the older 418 driver, then install a newer 430 video driver, the next autoremove will remove both CUDA and the older driver. If you try installing CUDA again using the .deb file, it will attempt to replace the 430 with 418 drivers! That is bad.

According to this thread on the nvidia forum, we can avoid the CUDA installer downgrading our display driver by using the local .run file, with the --toolkit option, and not the deb file installer. Also, after installing this way, there will be some missing libraries, which are described in section 7.3.1 here. In short:

sudo apt-get install g++ freeglut3-dev build-essential libx11-dev \
libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev


There is a project called skype-wrappers which not only does what you want but also integrates skype into messaging menu. Here is a blog on its feature.

sudo add-apt-repository ppa:skype-wrapper/ppa`
sudo apt-get update
sudo apt-get install skype-wrapper

If you just want notification, install libnotify-bin and follow the instructions.


Well, the problem seems to have fixed itself. I switched from gdm to lightdm and then back again and then rebooted the computer. The boot took ages but when it was finished there was a new login screen with the choice of Gnome, Gnome on Xorg, Ubuntu, Ubuntu on Xorg. I chose "Gnome" and low and behold running "echo $XDG_SESSION_TYPE" answers "Wayland".


Always you install ubuntu dual boot with windows you must better deactivate secure boot. Yes, supergrub can reinstall your grub but I recommend you:

Rescue your files with an usb Ubuntu life session. Copy to another drive.

Inside windows - disc administrator - erase ubuntu partitions (Swap, \, Home, etc).

Deactivate secure boot by BIOS option. UEFI can be activated.

Install again ubuntu. Better you configure manually partitions. Swap (4Gb), \ (20Gb), and Home (Gb you want, at least 100Gb for your files). All three are essential.

Hope it helps you.


Not able to install Ubuntu 16.04 alongside windows on Dynamic Disk

Dynamic disks and partitions by Windows do not work with linux

You should leave the drive space when you shrink Windows partitions as unallocated space, reboot from an Ubuntu install drive and use gparted to create partitions and file systems for Ubuntu.


How to replace numbers in an XML file with their double value?

Use a proper XML parser. For example, in xsh, you can just write

open input.xml ;
for //text if (. > 0) set . (2 * .) ;
save :b ;


Installation of python3.6.2 on Ubuntu 14.04 - python3 --version still shows 3.4.3

You didn't do anything wrong and things are working as intended. Even after you have installed Python 3.6 from a PPA, the /usr/bin/python3 symlink on your Ubuntu 14.04 system still points to /usr/bin/python3.4, not /usr/bin/python3.6. Therefore, to invoke the Python 3.6 interpreter, you explicitly run python3.6.

I would highly discourage you from changing the /usr/bin/python3 symlink to point to /usr/bin/python3.4 because there is probably a significant number of programs in Ubuntu that rely on Python 3 being actually Python 3.4 and you risk breaking these programs by making the symlink point to Python 3.6.


Can I dual boot from 2 Linux OS from 2 hard drives

I was given the impression that you can dual boot

You certainly can.

  2 Hard Drives with separate operating systems from GNU Grub as long as Ubuntu on 1st hard drive.

That is not needed. "Windows" had that rule when using the old BIOS method. The new method uses a EFI partition so Microsoft also dropped that. Linux never had that rule.

  I was told you can do this with Boot-Repair Disk ?? When I load the DVD, it shows both systems Ubuntu, and CentOS 6.7. on their separate drives.

My experience is that Linux systems (not just Ubuntu) are always added to grub on installing that system. Nevertheless it does not do any harm if you do start it. It is pretty solid as far as my experience goes with this program.

  However, the instructions on boot-repair are vague at best.

Oh? Boot from a live dvd (for instance the one you installed Ubuntu from). You pick "try Ubuntu" and install boot-repair with the PPA that is in your link and start boot-repair.

Does not seem too difficult to me?


Is recovering from the recycle bin/rubbish bin/trash can available with Gnome or not?

The location you gave is correct  ~/.local/share/Trash but the file you are looking for is hidden as signified by the .  Any file names that have a . preceding are hidden unless you force them to be shown.

Showing hidden files in Nautilus is done by pressing Ctrl+H

The ~ in the path signifies that the file is in the current users home directory it is short hand for /home/{your username}/.local/share/Trash

So to get to the trash files the way you were trying to do it it would be  Places>Computer>File System>home>{your username}   (then press Ctrl+H) >.local>share>Trash>files.

However it is easier to Places>Home(press Ctrl+H)>.local>share>Trash>files.

Both of the above are still doing it the hard way.  You can open the Trash(correct name BTW) directly and then right click and select Restore and it will go back to the folder it was deleted from.  Alternatively, you can drag and drop it to any place you want as well.  If I remember correctly(could be wrong I use Unity) the Trash icon is also in Places.
The Trash icon can also be found in any Nautilus Window one the right hand tree menu at the bottom of the Computer section.


How do I plot very big dat file in gnuplot?

Probably too late, but just wanted to put the solution out there:

set terminal postscript size 12, 10 enhanced color
set output 'worked.eps'
plot 'file_with_57k_rows_and_400_columns.tsv' matrix with image

Apparently postrscript terminal works but eps or png don't. This will result in big eps file size, but ps2pdf may be handy later.


Xfce gets really confused about session saving, etc

This question was answered by the OP:

  well I nuked my session cache, did an explicit save from the session widget, and now it works. Well, it doesn't save the workspace location for each client and instead opens them all up on the first workspace, but I think that may be because, in the session, xfwm4 is the last thing in the "Client" list, so before it's started all the other clients just pile up in the first (and only) workspace.


Missing HDMI audio output(device unplugged), NVidia audio card not detected

I had a similar issue with a zotac micro pc with Nvidia card.  In the end, mine had nothing to do with the Nvidia drivers.  It was a default setting issue in the BIOS.  I was able to access the audio settings there.  Mine were set to the external (headphone) jack only.  I switched audio to the HDMI port, saved and exited.
HTH,


Installed TeamSpeak 3, won't open. 14.04

That is not how to run the file in the terminal. Drag and drop the .sh file into the terminal and then press enter.


There is a section in the Lubuntu manual that deals with this :-

https://manual.lubuntu.me/stable/3/3.1/3.1.9/sddm_configuration.html

  Chapter 3.1.9 SDDM configuration

  Sddm is the display manager that shows up when you first log in to
  Lubuntu or logout or choose to another session. This has no graphical
  application to do this.

  Usage

  If you have autologin enabled and want to disable autologin open
  the file /etc/sddm.conf as root. To do this run

  lxqt-sudo featherpad and open /etc/sddm.conf. Then to disable
  autologin remove the entire line [autologin].

To enable auto-login, you do the reverse (ie. add the line) but I would suggest reading it in the manual  (it's better formatted than I can do)


How can I resize 300 images at the same time?

For GUI, Phatch "one click is worth thousand photos" is the best for such quick job.
It is already in Ubuntu repository.

sudo apt-get install phatch

Otherwise for advanced users, as an example to loop through files in shell:

#!/bin/bash

# Configuration
ext="bmp"
count=0
total=0

#loop through all files in the current folder that ends with $ext extension
for i in $(ls *.$ext)
    do
        total=$(($total + 1))

            #replace the 'potrace -s "$i"' with your converting cmd
            #"$i" is the file name
            #it will count +1 if successful
        potrace -s "$i" && count=$(($count + 1))
    done

echo "$count/$total files converted"
#wait
read

This example converts bmp to svg, I wrote it previously for my brother to convert his scanned comic/anime drawings into vectorial form. Before coloring.


Sofware Installation hangs with graphical interface

I recommend to use Muon Package Manager as GUI package management application.
You can install it with sudo apt-get install muon.

For installing single deb-package you can use Gdebi. You can install it with sudo apt-get install gdebi. So if you have deb-package, you can navigate to it with file-manager, then right-click it, then select Open with GDebi Package Installer for installation.

Software center seems to be obsolete as Synaptic. You can see the discussion on mailing-list about software installation problems.


It may not be auto mounting.  In file manager (PCManFM) go to  edit > preferences > volume management.

To show mounted volumes on the desktop go to menu > preferences > Desktop Preferences > Desktop Icons.


When you change apt's sources, you have to use apt-get update to make it aware of those changes. Not doing so can have weird effects, the most straightforward effect being that apt cannot find anything which should be present in the new source.


Any way to revert the behavior of typing in Files?

No, there's no way to restore that behaviour without installing nemo, or compiling your own copy of nautilus 3.4. This "feature" (I find it useful, too), was replaced in favour of the new behaviour. To install nemo: sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable; sudo apt-get update; sudo apt-get install nemo nemo-fileroller

Note: AskUbuntu does not provide support for Nemo, and the only people who do are Linux Mint.


What is the last Nvidia driver for Tesla M2090 video card? Is there a mistake in the official document?

Use driver 390 (official packages in repos): that's what I use for m2090/c2075


Core i9 performs poorly with Ubuntu 14.04

This was solved by upgrading to kernel 4.12.14. Instructions for updating the kernel in Ubuntu can be found here: How to update kernel to the latest mainline version without any Distro-upgrade?


You're going to have to type in your root password when you hit enter, but assuming sudo pm-suspend runs without errors normally, this will run just fine.

I suggest you run sudo apt-get -y upgrade so you don't have to go through the confirmation of the packages after it finishes with sudo apt-get update


apt-get stuck at 0 [Connecting to us.archive.ubuntu.com]

I figured out how to get apt-get to work again.

Edit gai.conf:

sudo vim /etc/gai.conf

change line ~54 to uncomment the following:

precedence ::ffff:0:0/96  100

write and quit:

:wq

CAUTION

Look out line 50 which looks almost identical:

precedence ::ffff:0:0/96  10

This is the wrong line. Go ~4 lines down and you'll find the correct line to uncomment because it ends with 100 instead of 10


Ubuntu 12.04.1 (64bit) only recognizes 7.8gb of RAM from 8gb RAM

It could be either that the system is using IEC Units instead of SI units, or that your Graphics card reserves space for its personal use.

For example I have 2 GB Ram installed, but only 1.7GB is usable because 256MB are dedicated to my Graphics Card.


How do I completely remove my PyTorch and ONNX installations?

pip uninstall onnx
conda uninstall pytorch-cpu torchvision-cpu pytorch


xinput mapping of tablet input device fails 18.04

Oh dear, embarrassingly, it turns out the device name has been changed. My xinput -list output includes:

    $ xinput -list
    ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
    ⎜   ↳ 2.4G wireless USB Device 2.4G wireless USB Device id=11   [slave  pointer  (2)]
    ⎜   ↳ Tablet Monitor Pad                        id=10   [slave  pointer  (2)]
    ⎜   ↳ Tablet Monitor Pen Pen (0)                id=16   [slave  pointer  (2)]
 Virtual core keyboard                      id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Tablet Monitor Pen                        id=9    [slave  keyboard (3)]

and the relevant device had always been 'Tablet Monitor Pen' in 16.04. However, it's actually the 'Tablet Monitor Pen Pen (0)' that works now. So, given that change in the target device, everything is back to working...


What is the difference between amd64 and linux 64 versions?

First off, AMD64 = x86-64; they both refer to the same architecture, not sure why they used a different nomenclature.

Secondly, Oracle Database 10g Instant Client for Linux AMD64 (32-bit and 64-bit) comes with two different packages available for download, while Instant Client for Linux x86-64 comes with a single package available for download.

This is because Oracle Database 10g Instant Client for Linux AMD64 (32-bit and 64-bit) comes with a different package for each architecture (one for x86 and one for AMD64 / x86-64), in fact the size of the two packages amounts roughly to the size of the package in Instant Client for Linux x86-64.

Since you're running a 64-bit version of Ubuntu, just pick the 64-bit version in Oracle Database 10g Instant Client for Linux AMD64 (32-bit and 64-bit), which is only ~32MB vs the ~62/~63MB of the multi-architecture version in Instant Client for Linux x86-64.


apt-get update errors after installing google chrome

Ok I may have an answer for you why this is happening but a solution is not withing my reach.

Look at this.

Similarly

  http://dl.google.com/linux/chrome/deb/dists/stable/

is also not reachable

Also

  http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/

was not reachable when you posted the question. But if you do a sudo apt-get update you should not get an error for

  http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/

This is available now.

So I recommend you to wait for some time till the issues with the Backend Are fixed. There is nothnig wrong with your system. Just the backend repos are broken at the moment.


Problems mounting ntfs hard disk on boot

Your fstab file has an error.

The last line, i.e.

UUID=4C1C26FF1C26E3A4 /media/Programs nfts defaults 0 0

has ntfs misspelt.

The correct line should be

UUID=4C1C26FF1C26E3A4 /media/Programs ntfs defaults 0 0


Where is "Opacity" in CompizConfig settings manager?

Try to install compiz plugins,to do that run the below command on terminal,

sudo apt-get install compiz-plugins
sudo apt-get install compiz-plugins-default
sudo apt-get install compiz-plugins-extra

Or

Remove the ccsm completely and reinstall it,

sudo apt-get --purge remove compizconfig-settings-manager
sudo apt-get install compizconfig-settings-manager


How to debug connection issues caused by ufw/iptables?

I found out the answer to my question and would like to share it.

First ensure that your ufw is creating logs.

sudo ufw logging low

Set up a terminal to observe the logs

tail -f /var/log/ufw.log

Execute the command that was previously causing an issue, for me this was with git.

git clone git@bitbucket.org:xxx/yyy.git

Check the log file, for me this caused a:

  Dec 16 14:05:12 user kernel: [16304.928083] [UFW BLOCK] IN= OUT=eth0 SRC=192.168.0.103 DST=131.103.20.167 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=47499 DF PROTO=TCP SPT=54885 DPT=22 WINDOW=29200 RES=0x00 SYN URGP=0

Which tells me that an out connection to bitbucket was blocked by UFW, trying to access the destination ip of 131.103.20.167 via port 22.

Then creating an exception within UFW to solve this problem.

sudo ufw allow out to 131.103.20.167 port 22

There is a post on Ubuntu forms which explains how to read the UFW log file at: http://ubuntuforums.org/showthread.php?t=2085110&p=12361050#post12361050


hey just off the top of my head, if you can access the command line you can update from there, use the following commands

$ sudo apt-get install update-manager-core

that should give you the update manager then
i'm guessing your gedit may not also work for file editing, if you can use vi do this

$ sudo vi /etc/update-manager/release-upgrades
then change this line "Prompt=lts" to "Prompt=normal" you can use any other text editor

then do this

$ sudo do-release-upgrade

let me know what happens


What are the sites where I can find games for Ubuntu for free?

You can search games in:

GamingOnLinux (website)
Linux Game Database (website)
Lutris (website and platform)
Penguspy (website)
PlayDeb.net (website)
Steam (website and platform)


How do I configure the "Print_to_PDF"-printer and where does it print to?

Generally speaking, there is not need to use the PDF printer anymore, because you should have the generic "Print to file" option in every printer dialog. This option allows you to choose PDF or Postscript and also an output directory. If you have an additional PDF printer, this is because you have the cups-pdf package installed. If you send something to this printer, it should end up in a special PDF directory in your home directory, i.e. in ~/PDF.


Which applications and programs are vital at Startup?

In my opinion, you could safely disable all of them except for 1,4,9,11,12,15,19,20,23, and there shouldn't be any problem. It depends, however, of the programs you usually use and what they depend on.


How can I get my Nvidia Quadro M600m to perform well on Ubuntu?

@ChanganAuto brought to my attention that Nvidia X Server Settings get installed with new videocard in Ubuntu. After setting profile to "High Performance" I can tell the difference now.


How can I change the order Google Pinyin displays characters in Xubuntu?

There is an alternative to Google Pinyin, and that is Sun Pinyin. In Linux, it looks exactly like Google Pinyin, but it seems to have a better memory than Google Pinyin. You can install Sun Pinyin using the following command:

sudo apt-get install ibus-sunpinyin sunpinyin-data


Screen resolution is not saved after reboot

If local screen settings are not "surviving" a reboot or re- log in, your issue is almost certainly the result of a bug. For that reason, it is very hard, if possible at all, to solve without a workaround, since the issue occurs locally, and possible global settings are simply overruled with incorrect local settings.

To solve (workaround) the issue, we need to (re-) confirm our own settings on log in, by adding a command to Startup Applications.

What to do

If your screen is set correctly when using the command

xrandr -s 1440x900

(no need for sudo), just add the following to Startup Applications: Dash > Startup Applications > Add. Add the command:

/bin/bash -c "sleep 10 && xrandr -s 1440x900"

It is a workaround, but it works. The sleep 10 is needed to make sure the screen setting will not be overruled by local procedures on log in. ten seconds after log in, your screen will be set correctly automatically.

Possibly you need to play a bit with the 10 seconds.

To make it work for all users

Create a .desktop file:

[Desktop Entry]
Name=set_screen
Exec=/bin/bash -c "sleep 10 && xrandr -s 1440x900"
Type=Application

save it as set_screen.desktop
Copy the file into /etc/xdg/autostart

Now the command will run for all users during log in.


The easiest way to quickly find large, unneeded candidates that can safely be removed is

cd /var

du -k

This will list the amount of space being consumed in each /var subdirectory.

In your case, you have created partitions for "the most likely suspects".  /var/log, /var/tmp and so on.

At 248M you have quite a lot of free space on /var, just not enough for this particular update.  If you do updates more frequently the amount of space needed in /var should be less helping you to avoid this problem moving forward.  More frequent updating will also help you keep things secure by applying patches for newly discovered vulnerabilities.

In your situation, I'd be looking for a massive core dump file or a runaway log file.  Focus first on any subdirectory that has a big number associated with it's content, like

/var/crash

/var/cache

Then see if there are any big files in them that can be safety removed.


How can I synchronise play counts between Banshee and Rhythmbox

Looking deeply into the problem for you, I have found no existing solution. Rhythmbox has a plugin to sync play counts and playlists to google music service, but banshee does not.

Looking thus further into the code, I can see that a python plugin for Rhythembox to save and load all the play counts, maybe in the file, maybe in ubuntu one or some other location. Then a program which manually opens the sqlite3 database of banshee to sync the data... such a set of tools could be written but do not currently exist.

Programmer Links for anyone wanting to attempt this:

Banshee: Manually set track listen count in Banshee?
Rhythmbox: http://code.google.com/p/rb-google-stats/source/browse/#svn%2Ftrunk%2Fgoogle_stats

If you are not able to build this yourself, it is possible to find a kindly soul or hire a programmer to build such things on your behalf. don't forget to publish the results so everyone can enjoy it and put a link in this question.


google-chrome-stable keeps asking if it should be set to default

For the working fix, see the end of this answer.

INITIAL ANSWER Oct 28th 2015 (outdated fix)

To avoid being asked if you want to use Chrome as the default browser, use the following workaround (proposed here and suggested in the comment section of this question by Yurii Kolesnykov):

Open the file ~/.config/google-chrome/Default/Preferences with a text editor.

Find the line

"check_default_browser": true,

and replace it with

"check_default_browser": false,

In my case, the file was >200k characters, for which reason gedit crashed a few times. If it is the same in your case, you probably want to use a terminal-based editor like vi.

Please note that this is a workaround, the problem itself has to be fixed by the Chrome developers.

UPDATE Nov 24th 2015

As Danilo Piazzalunga mentioned, the bug is confirmed. As NicDumZ suggested, please vote up this bug by clicking on

to raise attention. Thanks!

UPDATE Feb 20th 2016

As reported first by Ron Thompson and 3vi1 in the comment section; and finally confirmed by myself (using Ubuntu 15.10), this workaround doesn't seem to work anymore, at least not for everyone, after reinstalling google-chrome. Everybody who used this workaround should try to avoid reinstalling chrome.

I again encourage you to say that you are affected by the bug on launchpad (currently 302 people).

UPDATE April 5th 2016 (Working fix!)

A fix has been proposed on launchpad that apparently did the job for a couple of people:

To apply the fix, change line #198 in the file /usr/bin/xdg-settings from

command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//'`"

to

command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//' | head -n 1`"

UPDATE July 25th 2016 (Working fix!)

Update to the proposed fix for (K)Ubuntu 16.04:

To apply the fix, change lines #177 and #202 in the file /usr/bin/xdg-settings from

command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word"

to

command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word | head -n 1`"

Then go to Google Chrome settings and set Chrome as default browser.

UPDATE Jun 1st 2017

The Bug has been closed and marked as "Fix Released" as of today. Quoting the user Olivier Tilloy (osomon):

  If I read the report correctly, the issue was fixed in xdg-utils in xenial. Wily has been EOL for almost a year, so I am closing the bug.

  no longer affects: chromium-browser
  no longer affects: google-chrome-beta (Ubuntu)
  no longer affects: google-chrome (Ubuntu)
  Changed in chromium-browser (Ubuntu):
  assignee:  Chad Miller (cmiller) → nobody
  status:    In Progress → Invalid
  Changed in xdg-utils (Ubuntu):
  assignee:  Chad Miller (cmiller) → nobody
  status:    Confirmed → Fix Released


Mythbuntu: Fan Art appearing behind Watch Recordings List

This solves the issue:

https://forum.mythtv.org/viewtopic.php?f=2&t=332

Edit:  /usr/share/mythtv/themes/Your Theme Name/recordings-ui.xml
Comment out the fanart section at the top relating to fanart.

You can also change the same xml file for the other themes, found in the same directory.

The poster suggests that any other upgrades will overwrite this file which explains why the upgrade I did screwed it up in the first place.

Works for me.  :)


Sorry, you CAN'T install this Ubuntu Wily package in Ubuntu Precise. And sorry again for this short answer and to be the harbinger of bad news :\

Remove the Wily repositories in your system.


Make install error: You do not appear to have the sources for the x-y-z kernel installed

sudo apt-get install linux-source linux-headers-generic

That should set you up.

Dahi is also available from the Ubuntu repositories, and can be eaasily installed from the Software Center.


How do I and Can I switch between windows 7 and Ubuntu 12.04 at random?

You cannot randomly switch between the OSs. It is completely deterministic. Every time you boot, you will be given a choice between Windows, and Ubuntu. If you do not do any thing the default OS (Ubuntu, in dual boot, probably Windows in WUBI) will boot after the timeout.

Hope this helps.


How to install deepin system monitor in Ubuntu?

It is available in this PPA.
sudo add-apt-repository ppa:ubuntudde-dev/stable
sudo apt update
sudo apt install deepin-system-monitor

The PPA is provided by the devs of Ubuntu DDE Remix, so I would trust them. If you don't want to add the PPA you can simply grab the .deb files from the above link.


Failure in installation of mesa from source - undefined reference to llvm after running make command

Firstly, it is unnessecary to build mesa from source in Ubuntu. It will already be installed as part of Xorg. The three packages installed are libglu1-mesa, libgl1-mesa-glx and libgl1-mesa-dri.

If you really need to build mesa, then your problem is with the new(ish) c++11 ABI. As the links in this bug report from Red Hat shows, the problem is that your llvm has not been compiled with c++11. You may like to update your llvm-3.8 installation with sudo apt-get install --only-upgrade llvm-3.8. Otherwise, you may like to install a newer version of llvm - llvm-3.9, llvm-4.0 or llvm-5.0 (recommended).


Connect to WebDAV share with Nautilus in Ubuntu 16.04

My guess is that you are simply missing an "s" at the end of "dav":

davs://user@server.company.com:1111/path/to/dir

Incidentally, to check if the server is reachable, you can always go command line with cadaver:

cadaver  https://user@server.company.com:1111/path/to/dir

One last thing (since at least once a year I tend to need to figure out why Nautilus isn't getting to the old WebDAV bookmarks, and this is the most common answer): If you changed your password on the server, you will need to manually update the saved password on your system via Gnome "Passwords and Keys" (command line "seahorse").


Ubuntu 20.04 stuck in boot /dev/sda5: recovering journal

Let's check/repair your file system...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sda5, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


Perform action when moving mouse cursor to certain position in Lubuntu (hot corner)

One way to accomplish this is via xdotool. From xdotool's manual:

  behave_screen_edge [options] where command ...

  Bind an action to events when the mouse hits the screen edge or corner.

  Options are:

  --delay MILLISECONDS

  Delay in milliseconds before running the command. This allows you to require a given edge or corner to be held for a short period before your command will run. If you leave the edge or corner before the delay expires then the time will reset.

  --quiesce MILLISECONDS

  Delay in milliseconds before the next command will run. This helps prevent accidentally running your command extra times; especially useful if you have a very short --delay (like the default of 0).

  Event timeline

  Mouse hits an edge or corner.
  If delay is nonzero, the mouse must stay in this edge or corner until delay time expires.
  If still in the edge/corner, trigger.
  If quiesce is nonzero, then there is a cool-down period where the next
  trigger cannot occur

  Valid 'where' values are:

  left
  top-left
  top
  top-right
  right
  bottom-left
  bottom
  bottom-right

You can combine the behave_screen_edge option with any of xdotool's inbuilt commands, including the exec command:

  exec [options] command [...]

  Execute a program. This is often useful when combined with behave_screen_edge to do things like locking your screen.

  Options:

  --sync

  Block until the child process exits. The child process exit status is then passed to the parent process (xdotool) which copies it.

So to trigger a script when hitting the top left corner of your screen you would use the following command:

xdotool behave_screen_edge top-left exec --sync script.sh

The --sync switch ensures that xdotool waits until the script exits before triggering the action again.

xdotool is part of the official Ubuntu repositories and may be installed via:

sudo apt-get install xdotool


You can try to close the Cairo-Dock and re-open it. This worked for me. I’m running 12.04 though.


How to install cmake 3.7 in Ubuntu 16.04 using its binary archive file?

Remove old version using:

apt-get purge cmake

You can use new version of cmake by adding its bin directory path to $PATH. An alternative solution is to extract tar.gz package and go to the directory made after extracting and run following commands:

cp -r bin /usr/
cp -r doc /usr/share/
cp -r man /usr/share/
cp -r share /usr/

The second method is the same as installation process which .deb package does!


avconv - Extract one video frame and repeat it

I've got a way out, with also 2 steps.

First extract the frame

avconv -ss 00:20:00 -i INPUT_VIDEO -vsync 1 -t 0.01 output.png

There is a chance that avconv extracts more than one frame within 0.01s, and terminates with an error "... Could not get frame filename number 2 from pattern 'output.png' ...". But don't mind since we need only the first frame.

Then convert the image to video

avconv -loop 1 -i output.png -vcodec libx264 -tune stillimage -t 10 OUTPUT_VIDEO


How to use my drive without administartive permission

Here's a solution(Do this in a terminal). It will change the permission of all the files in the drive to your user(So, be careful):

Go to the directory where you have mounted your hard disk.
Change the drive's permissions to belong to you. type this sudo chown -R <your-username> . and then enter your root(admin) password.

And you won't need root(administrative) permissions to change any part of the drive anymore.


how to install the rpm package jdk-7u9-linux-i586.rpm?

In oracle.com there is an option to download a "Linux" version that is a tar.gz file which is the correct option in the case of Ubuntu.

However, it is possible to find 3rd party packages online that have Oracle Java packed as an installable package on Ubuntu, however, since these packages are from 3rd parties, trusting them is your responsibility.


JetBrains Rider hangs indefinitely when Creating solution file on Ubuntu 16.04

I was able to bypass this problem by choosing ASP.NET Web Application instead of Empty Solution.


How you execute multiple of random words for one script?

I'd use the for loop construct. From help for on bash 5.0.16:

for: for NAME [in WORDS ... ] ; do COMMANDS; done
    Execute commands for each member in a list.

    The `for' loop executes a sequence of commands for each member in a
    list of items.  If `in WORDS ...;' is not present, then `in "$@"' is
    assumed.  For each element in WORDS, NAME is set to that element, and
    the COMMANDS are executed.

    Exit Status:
    Returns the status of the last command executed.

Though it's unclear how you will supply the commands to the script, and I haven't the reputation to request clarification. Assuming that the commands will be hard coded in your script, the following would work:

One-line form:

for command in "date" "date blah" "someoneexistingcommand"; do if $command; then echo valid; else echo invalid; fi; done

Multi-line form:

for command in "date" "date blah" "someoneexistingcommand"; do
  if $command; then
    echo valid
  else
    echo invalid
  fi
done

To break this down:

Iterate through the list, temporarily assigning the current value to the variable named "command". Note that "command" could be any valid variable name.
The "list" is every word after "in" and before the command separator (in this case a semicolon, ';')

for command in "date" "date blah" "someoneexistingcommand"; do

The following will be executed for each value of $command.
Run the command and test its exit status at the same time. Using "$?" is redundant.

  if $command; then
    echo valid
  else
    echo invalid
  fi

We're done running commands. Leave the for-loop.

done

The following is roughly equivalent:

if date; then
  echo valid
else
  echo invalid
fi
if date blah; then
  echo valid
else
  echo invalid
fi
if someoneexistingcommand; then
  echo valid
else
  echo invalid
fi


Help please with XEN PCI-device passthough

You have to make sure that dom0 is not capturing the PCI device you are trying to pass-through at boot time.

Make sure this is specified in /etc/default/grub.d/xen.cfg

at the line GRUB_CMDLINE_XEN="pciback.hide=(xx:yy.z)"

run update-grub

and reboot.


Finally i got the answer.
use "Interface_IP" instead of "Interface_name" in ping
example :
use

ping -i 192.168.42.122 www.google.co.in

instead of

ping -i eth0 www.google.co.in


Sounds as though your problem might not be that you've forgotten your password, but that Unity is not starting correctly due to some configuration error. Perhaps your problem started after installing Nvidia drivers or Radeon drivers?

Depending on what is causing your problem there are a number of solutions you could try:

1.) Uninstall your nvidia or radeon drivers:

Hold down CTRL and ALT and F2 together. This should take you to a login prompt where you can type your username, and your password. Once in, type this to remove your drivers:

sudo apt-get purge nvidia* fglrx*
( you may need to do more than that to get rid of the drivers if you installed the binary versions from the AMD and Nvidia websites)

2.) If you've just installed Ubuntu and have never been able to log in with this version, it may be because your hardware is too old to support 3D graphics, and in this case I'd recommend you install Lubuntu instead:
http://lubuntu.net/

3.) If you can't log in at all it may be because you have set your password incorrectly or you've forgotten your password.
Here are some instructions on how to reset your password in Linux:
http://www.cyberciti.biz/faq/linux-reset-forgotten-root-password/

But when you get to the bit where you enter "passwd" put your user name in front of the command. So on my computer it looks like: passwd damonsaccount
Where as for your user account it may look like: passwd Manasbs788

You can also create a new user account while you're there by doing:
useradd Manasbs788

then: passwd Manasbs788
(and entering a password, making sure to write it down somewhere for later!)


Mini.iso Install on to Diskless Machine with NFS Mounted Volume

I was able to find this guide in the official docs.

Edit: it doesn't use the mini.iso image, but it shows how to do what you want to do.


NTFS partition on external drive not automounting (20.10)

It seems that, once again, Gparted managed to ruin a perfectly usable partition table by, presumably, extending the partition to overlap the secondary GPT at the end of the disk.
To summarize, after resizing a partition in Gparted in 2021 you need to:

Manually remove the hybrid MBR that you didn't ask for and replace it with a protective MBR (to prevent future disaster)
...and, if you extended the last partition on the drive, shrink the last partition of the drive in order to manually account for the GPT standard. 1 MB will do.

Thank you to this answer, and to the armhf version of gdisk version 1.0.3 that was sort of correct by pointing out that “Warning! Secondary partition overlaps the last partition by [an unreasonably large number of] blocks”, while peculiarly the newer version 1.0.5 on Ubuntu 64 bit did not produce this warning.


The self-managed option gives you more control, but you need to deal with two things:

Hosting either on your own server in your own network or on a dedicated / virtual server leased from hosting providers on the Internet.

Installation and administration of the software itself.

The other option is (SaaS) which means gitlab.com takes care of the above for you.
More information here and here.
OS and hardware requirements are listed here.
Installation instructions are available here.
Notice:

A server does not need to run 24 hours, but the software / solutions on the server are only available when the server is up and running.

A server does not mean necessarily that Ubuntu server edition OS must be used. You can use Ubuntu desktop edition on a machine and use it like a server.

So basically you can install the self-managed Gitlab on your PC and turn the PC off when you are not using it if that is what you are asking.


Edit crontab with an editor other than the default

crontab should respect the EDITOR environment variable, so you can just do (for the root crontab for example)

sudo EDITOR=vi crontab -e

From man crontab

The -e option is used to edit the  current  crontab  using  the  editor
specified  by  the  VISUAL  or EDITOR environment variables.


Recovering after a format, since you probably selected "remove windows and install ubuntu", should be able with Easeus Data Recovery Wizard. I have heard its possible, but you must not have written something to it. Never had the problem before but I would give it a try if I were you


Installing Ubuntu in a Acer E1 with UEFI

Btw, the only "BIOS" in the boot menu is UEFI.

Are you absolutly sure that you can not change the bootmode in your Acer E1 Series BIOS ?
I am asking you that because i bought an Acer E1-530 too, and i have a BIOS on it where im able to switch bootmode from UEFI to standard. So you may want to doublecheck on this and saving time and money.

Did you try to press F2 or DEL while Booting ?

Ps: I do answer here because i CAN NOT COMMENT yet.

Ps²: @please click this


How can I get working subtitleeditor in Ubuntu 14.04?

First, one needs to decide if the version in Ubuntu is not sufficient. If one does not need to work with keyframes and have subtitles displayed in the video in the subtitleeditor's interface, she does not need to do much (just install  gstreamer0.10-ffmpeg, see below). I am also told 32bit version works better, but I use 64bit version.

First, we need to get build dependencies of subtitleeditor and remove the version from the repositories, if installed:

sudo apt-get remove libsubtitleeditor0 subtitleeditor
sudo apt-get build-dep subtitleeditor gstreamermm subversion

As subtitleeditor now uses Gstreamer 1.0, we need to install it:

sudo apt-get install gstreamer1.0*

We also need updated C++ bindings that are not available in 14.04, that is gstreammermm 1.0, so get it from here.

Install some dependencies and compile and install:

sudo apt-get install libvorbis-dev libtheora-dev libasound-dev libxv-dev libvisual-0.4-dev libcdparanoia-dev
./autogen.sh
make
sudo make install

Then we need to get the source code of subtitleeditor:

svn co svn://svn.gna.org/svn/subtitleeditor/trunk subtitleeditor
cd subtitleeditor

Now let's build and install the application and link newly installed libraries:

./autogen.sh
make
sudo make install
sudo ldconfig


Start by running 'Hardware Drivers' - in Unity, use the search feature in the main system.  The drivers may show up there.  Use the proprietary ones if they exist otherwise use whichever one is recommended.  See if that fixes everything.


Can't set resolution to 1366x768 in ubuntu after crash

I dont know what could be your problem but I guess that you could try to reset your resolution using jupiter.

Jupiter is a program that allows you to change the screen resolution using GUI and is so easy, you can try it and see if this program fix the resolution.

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter


How to install postgresql-9.4 on Ubuntu 16.04?

Create the file /etc/apt/sources.list.d/pgdg.list, and add a line for the repository:

deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main

Import the repository signing key, and update the package lists:

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update

Then do:

sudo apt-get install postgresql-client-9.4 postgresql-9.4 postgresql-contrib-9.4 libpq-dev postgresql-server-dev-9.4

# pgAdmin III graphical administration utility
sudo apt-get install pgadmin3


Upgrading Linux Kernel 3.11 to 3.13 for Ubuntu 14.04

Currently on Ubuntu 14.04, my kernel version is 3.16.0-25.
Try installing this version if you want the latest one.

Have you tried simply the following commands? The first one checks the updates and the second one installs them ?

sudo apt update
sudo apt upgrade

What is the output?


Thunderbird: Reply/Reply all: a couple of formatting questions

(A) Always use the same identity when responding
I think that the only way to do this is with add-ons. There is a way to set a default outgoing account, but this default is overridden depending on the current folder selected.

An alternative is to use the Virtual Identity add-on. This is probably overkill, and I'm not sure if there is a slimmer alternative. I don't know how I'd set it up exactly, but you might be able to set up a wildcard "to:" address, and specify an associated default "from:" address. But I'm not sure.

(B) Suggest an add-on to format response header in particular way
The "Change quote and reply format" add-on may do what you want. If not, there are also additional functions as stated on the linked page.

Again, I'm not 100% sure if this will help, but I thought it better to give you some possible leads.


DHCP + Static IP for DHCP server on eth1?

The interface where the DHCP server is listening must have an Static IP of the same subnet you are using in your DHCP configuration.

To do so, edit your /etc/network/interface as follows: (assuming that 192.168.1.1 is your network gateway)

auto eth1
iface eth1 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
broadcast 192.168.1.255

Then, edit your dhcpd.conf, change the range to 192.168.1.3 192.168.1.254 and add the following option line:

option routers 192.168.1.1;

Let me know if it helps.

Regards


How to configure a firewall that only allows a few webpages and dropbox and U1 services?

This is not the first time somebody wanted to block the distraction of the internet while allowing some websites. Projects like SelfControl and FocalFilter have existed for a while. There has been a port to Linux of SelfControl and we have a few questions that travel down the same path:

http://svn.jklmnop.net/projects/SelfControl.html
SelfControl-like filtering
"Get Shit Done": How to block websites temporarily?
Timed-allowed websites with Squid/Dansguardian: Allowing a particular user to access a blocked site for a limited time


Linux: compressing pdf with GS is very slow?

I compressed the same file on my main Ubuntu desktop (15.04) and it took 49.401 seconds to complete. The machine has an Intel i5-4690k Quad-Core clocked at 3.9 GHz and 12GBs of Memory clocked at 1600MHz. During the compression it never maxed out more than one core and only ever used two cores at any given time.

For comparison I also ran it on my Mini-ITX machine (Ubuntu Server 15.04) and it took 3 minutes and 16.050 seconds to compress the file. This machine has an Intel J1800 Dual-Core Processor clocked at 2.41GHz and 4GBs of Memory clocked at 1333MHz.

Below is the output I got from running the time command in front of the gs command:

Ubuntu Desktop

real    0m49.401s
user    0m49.084s
sys     0m0.208s

Mini-ITX Machine

real    3m16.050s
user    3m14.684s
sys     0m0.924s

All of this suggests that a more powerful processor definitely makes a difference to the compression time but given that only two cores were used on my desktop machine I'd say clock speed is much more important to the compression time than number of cores but without knowing the exactly model of processor it is hard verity this against your setup.


Ubuntu EFI boot problem - Dell Inspiron 13-7359

You've installed Ubuntu in BIOS/CSM/legacy mode. I recommend you disable the Compatibility Support Module (CSM; aka "legacy boot support" or similar terms) in your firmware. Doing this will render some boot media unbootable. If you run into this problem, the solution is to fix the boot media. If you want to boot in EFI/UEFI mode, enabling the CSM is the worst thing you can do. For more on this subject, see my Web page about it.

Note that in EFI mode you do not boot from a "device"; you boot from a boot loader file, which is stored on the FAT EFI System Partition (ESP) and referenced in an NVRAM boot manager entry. There is one sort-of kind-of exception to this rule: EFI supports a "fallback" boot filename, which is EFI/BOOT/bootx64.efi for 64-bit (x86-64) systems. If no other boot entry is valid, or sometimes if there's an explicit entry for this loader, the system will boot it. This feature enables booting from OS installation media. It's also sometimes used to boot systems with badly broken EFIs that ignore or forget their NVRAM entries. This fallback entry may appear in the computer's built-in boot manager much like a traditional BIOS boot-from-device entry, but it's not quite the same thing.


Without discussing the merits of secure boot, IMO the advice to disable secure boot is poor. More likely than not you can keep secure boot enabled.

If you use 3rd party unsigned kernel modules you would either need to sign them yourself or disable secure boot. Examples would be ndivia or ATI graphics drivers, wireless drivers, and perhpas virtualbox.

To self sign modules see

https://computerlinguist.org/make-dkms-sign-kernel-modules-for-secure-boot-on-ubuntu-1604.html

How to sign kernel modules with sign-file?

https://insights.ubuntu.com/2017/08/11/how-to-sign-things-for-secure-boot/

https://wiki.ubuntu.com/SecurityTeam/SecureBoot

https://www.kernel.org/doc/html/v4.10/admin-guide/module-signing.html

Although IMO it is easy to sign modules, most people (erroneously) advise you disable secure boot. See first link to automate - https://computerlinguist.org/make-dkms-sign-kernel-modules-for-secure-boot-on-ubuntu-1604.html


PHP 5.6 not used by Apache instead it uses PHP 5.5

I found out that I have the following files inside /etc/apache2/mods-available/

php5.6.conf
php5.6.load
php5.conf
php5.load
php5filter.conf
php5filter.load
php7.0.conf
php7.0.load

so what I did is the following

sudo a2dismod php5.load

and then

sudo a2enmod php5.6.load

that switched the version the apache was using to 5.6 and voila problem solved : )


How to close a GNOME terminal tab from the keyboard?

When the shell process inside the terminal tab exits, it will close. If it was the only tab, the entire window will close. So you just have to quit the Bash session.

Your Bash session quits...

when you type the command exit.
when you press Ctrl+D to send an EOT ("End Of Transmission") code.
Note that it must be pressed when the command prompt is empty, i.e. you haven't typed anything else on that line yet.

Please also note that you can nest multiple interactive shells. You can start a new shell inside the current one by running e.g. bash, sh, python, bc, ... The exit and Ctrl+D will always only terminate the currently active shell, which is usually the innermost one.


Permission denied in my O.S /etc/default/locale not configured

There is an error in your /usr/sbin/update-info-dir: The line

./etc/default/locale

should actually be

. /etc/default/locale

Note the space after the dot.

As root use

nano /usr/sbin/update-info-dir

(or whatever editor you prefer) and change that line.


Bash script doesn't run from nautilus, but does run from terminal

The property Allow executing file as program is not enough.

Change the settings in Nautilus Preferences

or via terminal:

gsettings set org.gnome.nautilus.preferences executable-text-activation ask


Unable to install fail2ban on Ubuntu 16.04 LTS server!

OK finally I resolve it with :

apt-get remove fail2ban
apt-get autoremove
apt-get install fail2ban


Unable to run Sublime Text 3 on Ubuntu 18.10


Adapting and using half of  this solution.

Step 1 - at terminal

I need to read the external disk at sdb5  and not be confused with my main disk and system. Lets use the name Ana for this external disk.

sudo apt install lvm2
sudo vgscan (sudo lvdisplay and sudo fdisk -l)
sudo vgrename /dev/ubuntu-vg /dev/ubuntu-vg-ana
turn off and turn on the external disk (supposed Ana)
check again sudo vgscan to see ubuntu-vg-ana
sudo vgchange -ay ubuntu-vg-ana

And only it, not need more (!).

Step 2 - at Nautilus

After step 6 above, use filesystem GUI (Nautilus) to see the disk with the ~120 Gb.  navigate there... Copy from there (external disk) to the main disk, to backup the files.