I'm curious if you downloaded the calculator/clock snaps from the store? or did you package those locally? I'm assuming from the store, if so, it would be interesting if you could try to package those locally and sideload them.
You can find them from lp:snappy-desktop-examples

Also here's an interesting link on the topic of nvidia gpu and failing to load Problems with libGl, fbConfigs, swrast through each update?


BURG can't detect filesystem in Ubuntu 16.10

I'm told that BURG doesn't work with UEFI/GPT systems. It's way outdated.


How to know if a specific program is supported in 14.04 when it is working in 12.04

You can use the search feature at http://packages.ubuntu.com/ to see if a package exists in a given version of Ubuntu.

In almost all cases a package will continue to be available, it'd be rare that a package is removed completely.


convert with bash - trim/crop and center

Okay, after an other hour of google i came up with my own solution.
In this link there is a script that goes through all images and crops them while the center stays the center.
Now i have my cropped pictures.
With

ww=`convert -ping "$f" -format "%w" info:

And cycling through all ww values for all pictures i get wmax.

wmax=`convert xc: -format "%[fx:max($ww,$wmax)]" info:`

With that and several loops

 convert $f -gravity center -background white -extent ${wmax}x${hmax} ${f}-canvas.png

I get the results. It is not nice, i crop one more time than necessary but it does the job and i have to finish my thesis.

    #!/bin/sh
    # gives the largest x and y values of all  png files in directory and puts them in the center of a canvas. This canvas is 10px*10px larger than the largest png file.

    # We cycle over all pngs to get maximum w and h
    for f in *.png
    do
      echo "Processing $f file..."
      # take action on each file. $f has current file name
    wmax=0
    hmax=0
    # width
    ww=`convert -ping "$f" -format "%w" info:`
    #echo $ww
    # height
    hh=`convert -ping "$f" -format "%h" info:`
    #echo $hh
    wmax=`convert xc: -format "%[fx:max($ww,$wmax)]" info:`

    hmax=`convert xc: -format "%[fx:max($hh,$hmax)]" info:`

    #  centertrim $f
    #  rm $f
    #  mv $f.out $f
    done

    echo $wmax
    echo $hmax
    wmaxp10=$(($wmax + 10 ))
    echo $wmaxp10
    hmaxp10=$(($hmax + 10 ))
    echo $hmaxh10
    # now we cycle through all pictures and add them to a canvas with $wmax+10 $hmax+10
    for f in *.png
    do
      echo "Processing $f file..."
      # take action on each file. $f has current file name
    echo convert $f -gravity center -background white -extent ${wmaxp10}x${hmaxp10} ${f}-canvas.png
    convert $f -gravity center -background white -extent ${wmaxp10}x${hmaxp10} ${f}-canvas.png
    #  centertrim $f
    #  rm $f
    #  mv $f.out $f
    done


How to install on a netbook without a CDROM?

https://help.ubuntu.com/community/Installation/FromUSBStick should have what you need to install ubuntu.

Your EEE should have a recovery partition, so if you want to keep that option you should take care when installing ubuntu not to overwrite it. If you do overwrite it, there are similar ways to create bootable usb-drives for windows, in case you need to revert later.


What should I do when the system says it cannot find /

It seems your system was corrupted somehow - quite possible due to a hardware problem or a power spike.

Without hands on the system its unlikely that someone can diagnose your problem and if you can't do recovery by yourself (and possibly any way) your best bet is to reinstall your system from scratch.

Start by loading Ubuntu from live CD, access your harddrive from the live session and backup all your important data to an external drive or a network share. Then start a new installation and format your drive.

If it happens again then its very likely a hardware problem and you should get your computer to be checked by a professional.


First off, you should download the Emacs 24.4 source tarball:

cd ~
mkdir emacs-src && cd emacs-src
wget http://mirror.team-cymru.org/gnu/emacs/emacs-24.4.tar.gz
tar xvf emacs-24.4.tar.gz

Now, you want to compile the Emacs binary.

sudo apt-get install build-essential
sudo apt-get build-dep emacs24
cd emacs-24.4
./configure
make
sudo make install

If the system complains about any dependencies, just manually install them.

Sources: (Ubuntu Handbook) and @namingFailed's comment.

If you want to be nice to the community, you could always maintain your own PPA with Emacs 24.4 in it. That's another question, however. I might bring one of my own up later...


Trying to run steam on kubuntu 16.04 but it crashes immediately after launch

When I created this thread I saw similar questions but after spending the last four and half hours digging through the forums I found this Steam won't start on Ubuntu 16.04 and I was able to fix my issue by doing the following

enter cd $HOME/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak
cd $HOME/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak

Once I did this it worked fine, the issue was as I thought an issue with the open source driver it seems valve needs to fix this issue by tweaking a few things on their end but for the time being this should help anyone with this issue, I'll check this as answer tomorrow!


How to configure my system so that all windows start maximized?

Install maximus  from the Software Center or from the Terminal:

sudo apt-get install maximus

Then run this command from the Terminal:

maximus

All the new windows will be maximized with that.

Finally, just like in the screen shot at the 5th point in Isaiah's answer, add an entry in the Startup Applications. The name can be whatever you want, and the command will be simply maximus.


Getting error "Perl may be unconfigured" when trying to install dependencies

This is an extremely common question. I've answered this for both steam and Google Chrome. Heres a modified version of my Google Chrome answer.

The first step to fixing this is to enable support for 32 bit binaries. You can do this by running

sudo dpkg --add-architecture i386 && sudo apt update
Now try installing Google Chrome again.

If this still doesn't work, try installing the packages manually.

Open up https://packages.ubuntu.com/ in your web browser.
Scroll down to the Search package directories area.
Select your version of Ubuntu from the Distribution drop down (You can find this by running lsb_release -a in the terminal. Use the codename section).
Type in the package name and click search (In this case it's libgcc1)
Click on the Exact Hit (In this case it's Package libgcc1)
Select i386 in the table at the bottom
Select one of the links on the page. It's probably a good idea to select
the one for your country but it doesn't matter.
Open up a terminal and navigate to the directory that you downloaded the package to.
Run sudo dpkg -i file.deb, where file.deb is the file that you just downloaded.
Once this is done, try to install Chrome again.

If it gives you the depends on error for a different package, just follow steps 1-9 for that package and try to install Chrome again. You may have to do this multiple times.


Unity top panel missing application options

Go to System Settings, then Appearance, then Behaviour. At the bottom there are options under "Show the menus for a window" and click on "in the menu bar"


"Error getting a Request Token: Bad request" when setting up online accounts

Make sure that your date and time in the system clock is right.


cheese
Cheese uses your webcam to take photos and videos, applies fancy special effects and lets you share the fun with others.
Cheese uses GStreamer to apply fancy effects to photos and videos. With Cheese it is easy to take photos of you, your friends, pets or whatever you want and share them with others. After the success of the Summer of Code, the development continued and we still are looking for people with nice ideas and patches ;)


I want to deinstall and clean up after a partial Anaconda install

Yes you need to remove the old install, check in two places:

In your home directory for the anaconda folder, delete that
Look in the /home/$USER/.bashrc for the anaconda export line and delete that.
If in step 2 that line is absent then go ahead with the new install.

Now your good to go with the new install.


Errors were encountered while processing: snapd

I suspect sudo service --status-all may list a snapd instance. In that case, stop it with sudo systemcl stop snapd. It's either this, OR you have a lock set on dpkg. You may check the latter with pgrep -f 'dpkg|apt (successor of ps afx|grep dpkg), and remove the stuck lock with sudo rm /var/lib/dpkg/lock.


It's not recommended to compile your own i915 but rather grab the latest stack.
That said you need to:
Preparing build environment
Use the following line or similar to prepare the build environment for all sources except for kernel:
./autogen.sh --prefix=$MY_DISTRO_PREFIX --libdir=$MY_DISTRO_LIBDIR

$MY_DISTRO_PREFIX and $MY_DISTRO_LIBDIR depends on your Linux distribution and whether your distro is 32 bits or 64 bits.
Check carefully what you should use on your distro. Here are some examples on Fedora 64 bits and on Ubuntu 64 bits:
Fedora 64 bits:
export MY_DISTRO_PREFIX=/usr

export MY_DISTRO_LIBDIR=/usr/lib64

Ubuntu 64 bits:
export MY_DISTRO_PREFIX=/usr

export MY_DISTRO_LIBDIR=/usr/lib/x86_64-linux-gnu

For each package there is a list of dependencies that you must have already installed at your distro to get build components. Names of packages listed below are generic. You should check the real package name for your distribution. Also, the list doesn't include basic build packages such as gcc, autotools, automake and other common build tools.
Building kernel
git clone git://anongit.freedesktop.org/drm-tip

make defconfig

make

sudo make modules_install

sudo make install

Building libdrm
git clone git://anongit.freedesktop.org/mesa/drm

./autogen.sh --prefix=$MY_DISTRO_PREFIX --libdir=$MY_DISTRO_LIBDIR

make

sudo make install

Building 2D driver Xf86-video-intel
Install Build dependencies: libdrm-devel
git clone git://anongit.freedesktop.org/xorg/driver/xf86-video-intel

./autogen.sh --prefix=$MY_DISTRO_PREFIX --libdir=$MY_DISTRO_LIBDIR

make

sudo make install

Building 3D - Mesa
Install Build dependencies: libdrm-devel
git clone git://anongit.freedesktop.org/mesa/mesa

./autogen.sh --prefix=$MY_DISTRO_PREFIX --libdir=$MY_DISTRO_LIBDIR --with-dri-drivers="i915 i965" --with-dri-driverdir=$MY_DISTRO_PREFIX/lib/dri --enable-gles1--enable-gles2  --enable-shared-glapi  --with-gallium-drivers= --with-egl-platforms=x11,drm --enable-texture-float --enable-gbm --enable-glx-tls --enble-dri3

make

sudo make install

Building Xserver
git clone git://git.freedesktop.org/git/xorg/xserver

./autogen.sh --prefix=$MY_DISTRO_PREFIX

make

sudo make install

Building Libva
Install Build dependencies: mesa-devel, libpciaccess-devel, libdrm-devel, libXfixes-devel, libXext-devel.
git clone git://git.freedesktop.org/git/vaapi/libva

./autogen.sh --prefix=$MY_DISTRO_PREFIX

make

sudo make install

Building VAAPI Intel Driver
Install Build dependencies:   libXfiles-devel, libXexet-devel, libva-devel, libdrm-devel, libpciaccess-devel, mesa-libGL-devel.
git clone git://git.freedesktop.org/git/vaapi/intel-driver

./autogen.sh --prefix=$MY_DISTRO_PREFIX

make

sudo make install

Building Cairo
git clone git://git.freedesktop.org/git/cairo

./autogen.sh --prefix=$MY_DISTRO_PREFIX

make

sudo make install

Building Intel-gpu-tools
Install Build dependencies: libpciaccess-dev, libdrm-dev xutilx-dev libcairo2-dev swig2.0 libpython3.3-dev x11proto-dri2-dev, mesa-devel, xorg-xserver-devel, xorg-macros, glib2-devel.
git clone git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

./autogen.sh --prefix=$MY_DISTRO_PREFIX --libdir=$MY_DISTRO_LIBDIR --disable-amdgpu

make

sudo make install


Ubuntu Software frequently freezes in Ubuntu 16.04

Remove locked up instances of Ubuntu Software from memory.

killall gnome-software

Remove the ~/.local/share/gnome-software directory. It will be recreated the next time you open Ubuntu Software.

rm -r ~/.local/share/gnome-software

Uninstall and reinstall gnome-software.

sudo apt update
sudo apt upgrade
sudo apt purge gnome-software && sudo apt install gnome-software

Check occasionally if there is a little square orange notification icon in the Ubuntu Software menu bar next to Updates. If this little orange square icon appears, click on it to switch to a screen that shows available updates and install the updates.


I paste a code in WSL but I get only part of it

As soon as "read -p" line is invoked, terminal clears your original paste buffer because it's expecting meaningful user input, and you cannot just paste it into terminal like this.

If you don't feel like creating a script file, press ctrl-x and then ctrl-e in the terminal, it will bring up the default editor.  Paste it into the editor, save and exit, dash will run you script correctly from a temp file.


Missing dependancies for any program I try to install

According to the search on packages.ubuntu.com you need to get libqt5widgets5 package with

sudo apt-get install libqt5widgets5

Also for your information Recoll is available in official repositories (in universe pocket) too and installable with

sudo add-apt-repository universe
sudo apt-get install recoll

To be completely sure that your system integrity is complete consider to use debsums.


Probably I have fixed this problem.

I added in /etc/default/grub to the GRUB_CMDLINE_LINUX_DEFAULT options i8042.reset and i8042.nomux, so it looks like this for now:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.reset i8042.nomux"

and updated grub by sudo update-grub2 command.

Now keyboard and touchpad works fine.


apt-get issue: duplicate software sources

The first thing to try is to check your sources.list file at /etc/apt/sources.list. Open your sources.list file with

gksudo gedit /etc/apt/sources.list

Remove any duplicates of the lines below that you mentioned:

deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

(You may not have the deb-src enabled; that doesn't matter.)

If that is unsuccessful try these two commands below. The first command removes the lock which could be causing the problem, and the second removes your cached lists, but leaves the folder intact. (The lists will be regenerated when you enter sudo apt-get update.)

sudo rm -f /var/lib/dpkg/lock
sudo rm -rf /var/lib/apt/lists/*

(Make sure you type correctly and remove the right files, or use the -i (interactive) option instead of the -f (force) option with rm)

Finally, to check everything's back to normal, type

sudo apt-get update

NOTE: The lock error also occurs when Synaptic is also running when you try to update and install programs with the command-line, so make sure you are only using one way to update.


No sound ALC294 Asus ROG Strix 512 Ubuntu 20.04.01

On a Asus ROG Strix G17 G712LU-H7009T / Linux Mint 20 (Cinnamon), I faced the same problem (as many Linux users with ALC294 sound chipset). By setting :
options snd-hda-intel model=asus-zenbook

...in /etc/modprobe.d/alsa-base.conf, I was able to have sound on headphones and internal speakers, but the sound volume does not work properly with this modification (100% or 0% only using the OS sound volume control).
So this is a partial solution but this is better than nothing. I tried many solutions involving hdajackretask or alsa-base.conf, or what's described here with no luck. ALC294 seems to be a tough one for Linux :).
I added this configuration on https://doc.ubuntu-fr.org/audio_intel_hda.


First remove the existing drivers:

  sudo apt-get remove fglrx fglrx-updates

Then install the latest beta driver from HERE


How do I redownload Ubuntu on my computer if Ubuntu will not load?

The Passport (TM) external hard drive would have to be created as a bootable hard drive for Linux, and Western Digital doesn't do that. You'd need a booting Linux computer to make the Passport bootable, and the process would erase the entire contents of that hard drive as it came formatted for NTFS instead.

Likewise, you would need a booting Linux computer to make that SD card bootable, and many laptops won't boot from an SD card.

Therefore, your best choice is to find a working Windows or Linux computer and with that, redownload the Ubuntu ISO file and apply that onto a USB Flash Drive ($10 or less at most supermarkets and department stores in the Anglosphere) or a CD-R disc (but in disc-at-a-time mode, not using either packet writing or track-at-a-time mode).


"GPG Error: Clearsigned file isn't valid" When Installing Mongodb

First off, you are better off following the instructions here - the package names have now been updated to reflect the company name change from 10gen to MongoDB:

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

Then, assuming you copied and pasted the error you are getting, you have a typo in your URL: downlaods-distro.mongodb.org should be downloads-distro.mongodb.org - you have swapped the o and a.


What is the user / password to login the live dvd system?

The default username is "ubuntu", and the password is blank on an Ubuntu LiveCD/DVD.

If it doesn't work, you can add a new user like this:

Press Ctrl+Alt+F1 and run this command:

adduser username


How to use a PC workstation, that works with Ubuntu, as server for files and computing on this same server?

To access Jupyter Notebook or Lab by a client (here Windows 7 laptop) while resources are in server (here an Ubuntu PC) an SSH tunnel is needed.

From the server side we can install OpenSHH on Ubuntu as shown in this topic with the command: sudo apt-get install openssh-server.

From the client side, windows 7, we can use PuTTY. This is well described in this DigitalOcean's tutorial. But no need to use the command source ~/environments/my_env/bin/activate as they do.
To know Ubuntu server's IP we write the command ip addr show in its terminal. Look at the tutorial here.
Now, We can use a different port if we want for ssh tunnel settings.

For instance if we want the jupyter lab to be executed through port 9000 in the server side, we write the command: jupyter lab --port=9000 in PuTTY prompt. We must precise in PuTTY SHH Tunnels settings Destination: localhost:9000 where here localhost is the server... it can be confusing if we are not attentive.

Then in the browser we connect at http://localhost:8000, where port 8000 is the one  configured for the client side. After it, normally it opens with a page asking for the token. This token is given by the command jupyter lab in PuTTY's shell (which is the shell to order the server).


How to switch window controls to the left (Gnome Shell)?

For Ubuntu 12.04 and newer

You will need dconf-editor, which is part of the dconf-tools package. Install it first:

dconf-tools

Start dconf-editor:

Alt+F2 → dconf-editor

Go to org → gnome → shell → overrides → button layout. Change it to close,minimize,maximize:

No need to restart the shell.

Note: This also changes the cancel button in the overlay mode.

For 13.10 and higher

As per a few users, it may require a shell restart. Thank you all for pointing that out.

For 15.10 and higher

The schema is now org.gnome.desktop.wm.preferences as per this comment.


Are the alpha or beta releases more/less stable than the daily builds?

If you really don't know the difference between those two, I think you really shouldn't be using Ubuntu+1 after all. (quoting aking1012)

Daily builds are updated pretty live with changes in the main packages that are installed by default.

Alpha / Beta are snapshots of Ubuntu+1 in development. They are generally tested for issues in ISOs (but doesn't guarantee you anything, really). So you are better of using Alpha to install if you are hoping not to run into issues when installing.

Unless if you are really low in bandwidth and cannot afford to update after installing Alpha, you should just install Alpha. Then again, if you are low on bandwidth, updating Alpha would cost you more on bandwidth as well.

Just a closing pointer: If you run into issues with alpha / beta releases (which happens quite often), we can't help you much with the issues.


Is there an embedded board that runs a GUI?

Raspberry Pi! You can install the Debian-based Raspbian or if you're going to use a Raspberry Pi 2 or Pi 3, you can install Ubuntu MATE for the Raspberry Pi 2 and Raspberry Pi 3.

Both of those come with a GUI built-in and have very good support. They're also fairly low power, so a great option for an embedded system.

Another option would be the BeagleBone Black. While they aren't officially supported by BeagleBone, you can install Ubuntu-desktop and GNOME-desktop.


Help with 12.04 and windows 8.1 homegroup?

If your point is only file sharing from Windows to Ubuntu via LAN.You just simply share the folder on the Network,make it accessible from LAN.

And don't forget to set your sharing setting that make it accessible for all computer


Cannot compile CUDA program using nvcc remotely

I was able to solve this issue by creating a new .bashrc file in the new user home directory. Then I exported the CUDA paths as under:

export CUDA_HOME=/usr/local/cuda-7.5
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64
PATH=${CUDA_HOME}/bin:${PATH}
export PATH

After that the nvcc is able to run.


How to solve this N: See apt-secure(8) manpage for repository creation and user configuration details.?

Remove the cdrom entry from /etc/apt/sources.list file.
Regarding the PPA, it doesn't have files for Ubuntu 20.04. Remove it too.


Cloud instances in OpenStack can't import public SSH key

Fixing the issue on an all-in-one deployment

With the help of the good folks at the IRC channel #openstack (zynzel, livemoon) we solved this by simply restarting nova-api:

sudo restart nova-api

You can verify that the metadata server is indeed up by issuing:

lsof -i:8775

from your controller node or

nmap -sS -sV -O -P0 -p8773-8776 <controller_ip>

with your controller node's IP address and checking that port 8775/tcp is open and listened to.

It might be the case that this is a problem with Dodai-deploy, as nova-api has to be installed after nova-compute is installed for the meta-data server to be initialized correctly.

Fixing the issue on a multinode doployment

If you run a multihost deployment and want to use Ubuntu cloud instances that pull in public keys from a metadata server you need this in your controller's nova.conf:

multihost=True
enabled_apis=metadata,ec2,osapi_compute,osapi_volume

and this in your compute node's nova.conf:

multi_host=True
enabled_apis=metadata

Without this you'll get errors in your instance's console output (nova console-log test-instance) about it not being able to reach the metadata server and you won't be able to ssh into them.

Another solution is to tell your instance who you are on Launchpad through the user-data Dashboard form (or file in the terminal) so that it can pull in your public keys from there. The syntax is (not explained anywhere else but in the source code):

#cloud-config
ssh_import_id: [your-launchpad-username]


You can try to put these in your .vimrc:

  autocmd GuiEnter * set background&

  set ttimeoutlen=100
  set ttyfast
  set lazyredraw

  :au CursorMoved
  autocmd BufReadPost quickfix map <buffer> <leader>qq :cclose<cr>|map <buffer> <c-p> <up>|map <buffer> <c-n> <down>
  set synmaxcol=120
  set nocursorline
  set re=1
  :redraw

Another solution can be:

https://stackoverflow.com/questions/19030290/syntax-highlighting-causes-terrible-lag-in-vim

I had the same issue and these worked for me on my 15k drive. On my SSD drive these never worked, do you have a SSD drive by any chance?

My error was similar, I had a SSD drive to another SSD drive using a bad network switch and poor network cables. I changed everything and since then I don't have any issues.


trouble creating directory backups of selected directories

This should fix your Script but this long time not already does what you want to achieve:

DATE=$(date +"%d-%b-%Y")
cd ~/comp232/
tar -caf lab5-$DATE.tgz lab5
mv *.tgz ~/Documents

However assuming all directories you want to .tgzare in the same parent folder you can do something like this:

DATE=$(date +"%d-%b-%Y")
cd ~/comp232/
for f in ./* # for each entry in directory do
do
    if [ -d "$f" ] # making sure $f is a directory
    then
        tar -caf "$f-$DATE".tgz $f
    fi
done
mv *.tgz ~/Documents

Hope this will help you :)


problem booting with failed software RAID 1

I encountered a similar problem (in hardware, not virtualbox) while setting up an unencrypted, bootable 14.04 RAID1. Basically, I needed to add a sleep script to allow mdadm sufficient time to assemble a degraded device. See the instructions in section 6.1 here.


According to man sources.list the main paragraph underTHE DEB AND DEB-SRC TYPES: GENERAL FORMAT and some examples in it says

As an example, the sources for your distribution could look like this in one-line-style
       format:

           deb http://us.archive.ubuntu.com/ubuntu xenial main restricted
           deb http://security.ubuntu.com/ubuntu xenial-security main restricted
           deb http://us.archive.ubuntu.com/ubuntu xenial-updates main restricted

       or like this in deb822 style format:

           Types: deb
           URIs: http://us.archive.ubuntu.com/ubuntu
           Suites: xenial xenial-updates
           Components: main restricted

           Types: deb
           URIs: http://security.ubuntu.com/ubuntu
           Suites: xenial-security
           Components: main restricted

Based on above:

and from the unedited /etc/apt/sources.list file from Ubuntu 18.04

Line 5 has two components i.e.,  main and restricted.

deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted

Line 16 has one component i.e., universe

deb http://in.archive.ubuntu.com/ubuntu/ bionic universe

Line 26 has one component i.e., multiverse

deb http://in.archive.ubuntu.com/ubuntu/ bionic multiverse

The 5th item in the attached pic, source code can be enabled by un-commenting the line number 6

# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic main restricted

Observations:

When you tick and untick these tick marks via GUI, the file /etc/apt/sources.list lines may vary.. like they dont uncomment the line, Instead they will add other line with some comment etc..

If you dont change those settings with GUI, you can always edit the file with scripts with constant line numbers..

So be careful with your scripts while defining the line numbers..


Canonical does not offer bootable USB/CDs any more.

However there's plenty of results on eBay for Ubuntu USB drives and CDs for pretty cheap. Keep in mind some security updates and non-free packages are quite large to download.


Yes. There is a package but as you can see here, the package is for Ubuntu 16.04 and later. You can install it using apt-get command as follow:

apt-get install dpdk

For older versions of Ubuntu you should download DPDK source and compile it like other Linux distributions.

See this for more information about DPDK package in Ubuntu 16.04 and later.


Sure you can, but Windows is known to disregard installations of other operating systems.

You will probably need to edit the Windows 7's Boot Configuration Data (BCD) to add the entry for Ubuntu. The easiest way is to use a BCD editor like EasyBCD: www.softpedia.com
After installing Windows, install EasyBCD and add the entry for Ubuntu.

This will make a dual-boot system but will still use the Windows' Boot Manager. If you would like to use GRUB as a boot manager, you can find more info on reinstalling GRUB here: help.ubuntu.com


How would people give me a gift from the Ubuntu One music store?

The Ubuntu One music store does not currently have a gift/voucher system. Others would need to just give you a general pre-filled gift card, from VISA, Mastercard, or similar, that can be accepted by the store as a credit card, or send you money via Paypal.


Unable to boot to Windows 7 after installing Ubuntu on a separate drive

You just need to add entry in Grub to boot windows.

So just edit /etc/grub.d/40_custom (using SUDO) and add the following lines to the bottom of the file:

menuentry ‘Windows 7′ {
set root=’(hd0,msdos2)’
chainloader +1
}

(hd0,msdos2) Refers to first HDD ( /dev/sda2 ).

After making changes into grub, you need to update grub.cfg by using below command.

sudo update-grub2

Now when you boot your system, you will get Option to boot Ubuntu or Windows.


Want to write a simple SVN update bash script

P.S. I know I should be using SSH public/private key authentication, but the person who runs the server that hosts the SVN repo isn't interested in setting this up for me!

Well that's very mean! I assume you have SSH access to do this though. Most modern installations of OpenSSH don't require any setup on the server to be done (past installing it). I would seriously consider just attempting to set up a SSH key first:

ssh-keygen
ssh-copy-id username@remotehost

Then just try ssh username@remotehost. If it logs you in, magic, if it doesn't, you've only lost a minute of your life :)

After that you've got options like expect and sshpass which are much worse because you're hard-coding your password in plaintext. Yuk.


I had similar problem with my Lenovo Yoga initially but it seems to have gone away after I selected to use Nvidia proprietary driver. Well, at least the lock-up does not happen as often anymore. It may or may not tbe steps that fixed the problem as I also did a few upgrades along the way.

You can try that and if that doesn't work, try upgrading the kernel to the latest supported one using

sudo apt-get dist-upgrade

If that doesn't fix your problem either, try changing the greeter back to lightdm

sudo dpkg-reconfigure lightdm


Ubuntu 15.10 2nd hdmi monitor blacks out

It was my refresh rate. I have HDMI not HDMI 2.0
My refresh rate was 60Mhz which is too high.
3440x1440 60Hz is for HDMI 2.0, not what I have.

xrandr --output HDMI1 --mode 3440x1440 --rate 30

fixed my problem. I just made some scripts I have to run at login to run the command, which isn't too bad...


Getting Screenfetch to Run After Clearing Terminal

The easiest way is to create an alias, like this:

alias clear="clear && screenfetch"

Run the above line as command. Then type clear to test how it works. If it works satisfactorily, append the line to the bottom of ~/.bashrc, then run source ~/.bashrc.

You can add this line to the bottom of ~/.bashrc by the command:

echo -e '\nalias clear="clear && screenfetch"' >> ~/.bashrc

Where:

echo will print to the stdout the string enclosed with the single quotes. The option -e will enable interpretation of backslash escapes, so \n will be interpreted as new line.
>> will redirect stdout and will append it to the end of ~/.bashrc.
&& can be read in this way: if clear is executed successfully then execute screenfetch.


Dell laptop battery backup 1.30 hours only with Ubuntu 12.04. How can the battery backup be increased?

I had the same problem and the reason turned out to be that the graphic card was always ON.

What you need to do is to install bumblebee which turns off your graphic card. You can still use it when you need.

Installing Bumblebee

Open a terminal (Ctrl+Alt+T).
Run the following commands:

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic

Reboot or re-login.

For more information, you can visit the Ubuntu BumbleBee Wiki Page.


C++ not able to install 32-bit gcc-9/g++-9-multilib on Ubuntu 18.04

My bad, I had the following settings in the make file
-I/usr/include/x86_64-linux-gnu/c++/9
The compiler works as expected after I remove the include path


How to share ethernet over wifi without creating access point?

For now, I can access my vm. so, this maybe contains errors or does not fit your environment.

Click the up & down arrows in right upper side and click "Edit Connections...".
It shows "Network Connections", select "Wireless" tab, and click "add" button.
In "Editing Wireless connection 1", change "Connection name:" as you want.
Change SSID as you want.
Mode must be Ad-hoc.
Click "Wireless Security", select "Security" and "Password"
Finally, connect your device with SSID you made.


I managed to get a system-wide solution!
Several steps:

Create a sink

pacmd load-module module-null-sink \
sink_name=SantaClaus \
sink_properties=device.description=SantaClaus

Set it as default (can be done using pavucontrol)

pacmd set-default-sink SantaClaus

ffmpeg (see the doc to output to pulseaudio)

ffmpeg \
-loglevel error \
-f pulse \
-i SantaClaus.monitor \
-af "sofalizer=sofa=/path/ClubFritz9.sofa" \
-f pulse \
-name "3D Audio" \
"3D Audio"

Use pavucontrol to select the output of ffmpeg (named 3D Audio), choose your headphones or speakers

_
Here is a problem I encountered specific to version 0.6 of libmysofa


I got sound working after killing pulse audio. You'll have to get rid of the autospawn feature though.

See :
http://forum.winehq.org/viewtopic.php?t=1457&sid=b61a832efcbda1807f7d3791e7a46a67

Summary:

sudo nano /etc/pulse/client.conf

(Or use editor of choice instead of nano.)

Uncomment and change the autospawn line as follows:

; autospawn = yes
autospawn = no

Otherwise pulseaudio will always restart.

In a terminal, killall pulseaudio . This kills pulseaudio for your current session.


It's updated by pam_motd on login.  The update-motd manual page describes this:

   Ubuntu introduced the update-motd framework, by which  the  motd(5)  is
   dynamically assembled from a collection of scripts at login.

   Executable  scripts in /etc/update-motd.d/* are executed by pam_motd(8)
   as the root user at each login, and this information is concatenated in
   /var/run/motd.  The order of script execution is determined by the run-
   parts(8) --lsbsysinit option (basically alphabetical order, with a  few
   caveats).

   On   Ubuntu   systems,  /etc/motd  is  typically  a  symbolic  link  to
   /var/run/motd.


Granting access to an additional directory to snaps

You can bind-mount additional directories into your home dir or into ~/snap/<snapname>/current to be able to access them.

(snaps use apparmor to achieve the filesystem access confinement, apparmor does not deal with symlinks, but can handle bind mounts very well instead)

For more information on bind mounts, see this answer on the Unix stackexchange.


pybluez is now ported to python3:
http://code.google.com/p/pybluez/downloads/list


How to let Polkit request root password instead users password

This behavior is controlled by PolicyKit's LocalAuthority configuration. From the ADMINISTRATOR AUTHENTICATION section of man pklocalauthority:

   By default, "administrator authentication" is defined as asking for the
   root password. Since some systems, for usability reasons, don't have a
   root password and instead rely on a group of users being member of an
   administrative group that gives them super-user privileges, the Local
   Authority can be configured to support this use-case as well.

   Configuration for the Local Authority is read from files in the
   /etc/polkit-1/localauthority.conf.d directory. All files are read in
   lexigraphical order (using the C locale) meaning that later files can
   override earlier ones. The file 50-localauthority.conf contains the
   settings provided by the OS vendor. Users and 3rd party packages can
   drop configuration files with a priority higher than 60 to change the
   defaults.

At least in my (18.04) Ubuntu system, the two relevant files are 50-localauthority.conf and 51-ubuntu-admin.conf:

$ head /etc/polkit-1/localauthority.conf.d/*
==> /etc/polkit-1/localauthority.conf.d/50-localauthority.conf <==
# Configuration file for the PolicyKit Local Authority.
#
# DO NOT EDIT THIS FILE, it will be overwritten on update.
#
# See the pklocalauthority(8) man page for more information
# about configuring the Local Authority.
#

[Configuration]
AdminIdentities=unix-user:0

==> /etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf <==
[Configuration]
AdminIdentities=unix-group:sudo;unix-group:admin

So, in order to revert to the PolicyKit default, which uses AdminIdentities=unix-user:0 (i.e. root) instead of the Ubuntu default AdminIdentities=unix-group:sudo;unix-group:admin (i.e. members of sudo and/or admin groups), it's sufficient to either rename the 51-ubuntu-admin.conf file so that it is loaded earlier or not at all - for example

sudo mv /etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf{,.ignore}

or comment out the AdminIdentities entry therein. The former option is perhaps cleaner and more maintainable.


I tried reinstalling Vagrant and VirtualBox but it didn't help.

I only was able to run my VM only after I reinstalled Ubuntu and installed VirtualBox and Vagrant in the following way:

sudo apt-get update
sudo apt-get -y install virtualbox-4.3
sudo apt-get -y install virtualbox-dkms

sudo apt-get -y install vagrant


What are the requirements for Ubuntu desktop?

Ubuntu Desktop Edition

700 MHz processor (about Intel Celeron or better)
512 MiB RAM (system memory)
5 GB of hard-drive space (or USB stick, memory card or external drive   but see LiveCD for an alternative approach)
VGA capable of 1024x768 screen resolution
Either a CD/DVD drive or a USB port for the installer media

Internet access is helpful, but not required.

You can read more from this page: https://help.ubuntu.com/community/Installation/SystemRequirements

If your systems does not meet these, there is also lighter version Ubuntu "LUbuntu", I hope this helps.


Unable to use "locate" command to find a file created in my home directory

By default find searches for your defined pattern within the all files and subdirectories you specified in the real time, so even after search has been started you can create a new file somewhere and if find didn't search that place yet it will find that file for you.

on the other hand, as you know locate uses a cached database to speed up this process, however it only caches some specific directories, you can use /etc/updatedb.conf file to define some directories to be excluded from being cached.

updating the data with sudo on a machine with multiple users is a security risk cause we will end up to a database which contains all users data and everyone can search for it.

For me sudo updatedb works fine, so check /etc/updatedb.conf to see if anything has been excluded in your machine.

If you want to create a database only for your user you can use:

updatedb -l 0  --output=/home/username/.mydb.db

then to search withing it use:

locate -d ~/.mydb.db search-pattern

And use aliases to make it more convenience:

alias lupdatedb="updatedb -l 0  --output=/home/username/.mydb.db"
alias llocate="locate -d ~/.mydb.db"


Libre Office and Firefox icons gone on BQ M10 HD tablet

Do you know that new Libertine Scope (with all Ubuntu desktop apps) has been added as part of the Ubuntu Touch OTA-12? You will find LO and Firefox icons there.

The new scope can be activated by swiping up from the bottom of the screen on any scope. You will be in the scope management page. Scroll down until you find the scope named Desktop Apps (the one with the big X as the icon) star it and then move it to just below the Apps scope, and you should be set to go.


sysctl: permission denied on key 'fs.inotify.max_user_watches'

Any Help to increase the limit is highly appreciated.

Not going to happen by either you or anyone on Askubuntu.

  VPS

Take this up with the company hosting the VPS. They do not allow you to change any of those parameters. You are working in a virtual container and those changes to sysctl will affect everyone on that system, not just your container.


Why the directory name was parsed wrong?

It seems that there is already a directory

/windows/wamp/www/wp

In that case "ln -s" takes the name part from the target "/var/www/html/wp" (what is "wp") and tries to create a symbolic link in the directory "/windows/wamp/www/wp" with the name "wp" (what ends up in "/windows/wamp/www/wp/wp") targeting "/var/www/html/wp".

Furthermore it seems that you do not have sufficent rights to create a file in the directory "/windows/wamp/www/wp/".


Odd flickering after video driver update

I think I found the fix. Source: https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1314367/comments/22

so far so good. I'll update this if it starts flickering again.

For those that are wondering, you need to install compizconfig-settings-manager first from terminal. sudo apt-get install compizconfig-settings-manager

Open it and go to workarounds and then place a check on Force full screen redraws (buffer swap) on repaint. DO NOT MESS WITH ANYTHING ELSE! No restart necessary (at least for me).


If at the end of /etc/mdadm.conf you add the following line:

PROGRAM /etc/mdadm_warning.sh

And create the file /etc/mdadm_warning.sh with the following contents:

#!/bin/bash

event=$1
device=$2

echo "$event on $device" | /usr/bin/mailx -s "RAID Notice" some@email.com

Hopefully this is helpful.

You can add checks for specific events and customize the output for each case.  For example:

#!/bin/bash

event=$1
device=$2

if [ $event == "Fail" ];
then
    message="if you get this msg call me!"
else
    message="$event on $device"
fi

echo $message | /usr/bin/mailx -s "RAID Notice" some@email.com

No guarantee this will not break with an update.

Probably a good idea to add the original message in every time just in case.


Location of curl dns cache file and location of ubuntu global cache dns file

Ubuntu does not cache dns information. Neither does curl itself. In my experience, curl along with ssh and other network-related programs on Linux run a fresh dns query every time they run.

I have seen the same to be true on CentOS/RHEL/Fedora which I also use frequently.


Why has Libreoffice stopped being visible in Unity

Libreoffice hasn't played well with Unity for a while now. At times things are fine, then suddenly everything will break. Different problems occur to different people, but they all involve Libreoffice's integration with the launcher and alt-tab.

See this bug:
https://bugs.launchpad.net/unity/+bug/1026426

You could hit alt-f2 and type unity --replace next time you have a problem, but if that works it's at best a temporary fix. Uninstalling/reinstalling libreoffice and/or lo-menubar are sometimes suggested as fixes to these problems, but, again, those are only temporary fixes.


If you would like to start over, then a fresh installation would be suffice. All you have to do is to download Ubuntu (if you don't have it already). After that, you can create a Live USB on your Mac. Then, boot up the OS on the Lenovo PC and you will get to a screen like this:

Of course, the version of Ubuntu will be particular to the one you downloaded. You have four options, but you want is the third option(from the top).

From there, follow the instructions, and you should have Ubuntu up and running in the next 5-10 minutes!

Image reference


What does lint_control_click_version_up_to_date mean?

It looks like the version of click you are currently running is too old. If you run a supported release and have the SDK PPA enabled, you should generally be fine. Find out how to do that here:

http://developer.ubuntu.com/apps/create/get-the-sdk/


DSL connection problem after installing Ubuntu 15.04

It seems that network-manager is broken.

Download network-manager packages by following command while internet connection is active.

sudo apt-get install -d --reinstall network-manager network-manager-gnome

Purge network-manager packages.

sudo apt-get purge network-manager-gnome network-manager

Reboot the system and re-install it.

sudo apt-get install network-manager-gnome network-manager


You should try with wine (http://www.winehq.org/) - I'm playing Starcraft I and Warcraft III with this

You can install it from ubuntu software center.

Good luck :)


Can't run latest Blender on Ubuntu 18.04

Do this to fix dependency error:

sudo apt install llvm-6.0

You can report any bug to the maintainer here: https://bugs.launchpad.net/~thomas-schiex


Log in to your Ubuntu system and insert the dongle. You may hear some kind of sound after detection of the dongle in the system.

look at the top right corner you may see the small network connection icon.

Click that icon and you will see a menu. Click the “New CDMA connection” option at the bottom of this drop down menu and it will take you the Network Management window.

Click the “Mobile Broadband” tab and then click Add. This will take you to the Dial-Up Connection Setup Wizard. Just follow the wizard and it will take hardly a minute. Your Device will be detected automatically, click on Continue.

After it go to top right corner you may see the small network connection icon > Network Connection > mobile broadband > reliance

Choose edit from right pane

Now you have to prvide username password given by reliance it is same as your 10 digit data card No. Provide #777 in dial up No.

save settings and try to connect.


Easy-peasy: You've got a mismatch in ownership: the files should be owned by user root and group ftp:

cd /media/
sudo chown --recursive root:ftp ftpdata

after performing the above and you want to copy files to/from /media/ftproot, just use sudo cp.

Alternatively, you could define a special ftp user and have that one own all files and run the daemon, or have multiple users each with their own directories, but those would be new questions all by themselves!


Script timeout passed, if you want to finish import, please resubmit same file and import will resume

Instead of XAMPP you may use LAMP(Linux Apache MySQL PHP) mostly. Using LAMP you may also face this problem.

In my case(using Ubuntu 15.10), I had configured/set
post_max_size, upload_max_filesize, max_execution_time, max_input_time, memory_limit following my needs using php.ini file which is located at /etc/php5/apache2/php.ini

But still I was faced this proble. Then solved the problem using
 config.default.php file, where you can find out like this line below:

$cfg['ExecTimeLimit'] = 300;

Make it to

$cfg['ExecTimeLimit'] = 0;

Note: You can locate config.default.php file via your terminal(Ctrl+Alt+T) by this commandlocate config.default.php possible path is /usr/share/phpmyadmin/libraries/config.default.php

Hope this helps. :-)


Kernel headers after upgrading kernels from 3.5.7 to 3.9.0

I suggest you download and install the headers appropriate to your architecture; either 32- or 64-bit, from here: http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-raring/


Gnome 3 screwed up Unity, especially Nautilus

Ok. Here is a solution.

Looking through dconf-editor, I realised that gnome is still in control (I do not know how!). Nautilus is not found under apps, anymore. But, rather under gnome.

There are answers suggesting that the minimize-freeze problem can be solved by enabling desktop icons to be shown. So, I tried it by enabling desktop icons under gnome/nautilus/desktop. But that didn't work. To be precise there was no option enable desktop icons. There were only options to enable individual icons such as home, network etc...

After rummaging for a while I found it under gnome/desktop/background. By enabling desktop icons here, the minimize-freeze problem was solved.

Unity Tweak Tool revealed that default fonts were set to gnome default fonts. You can manually set it to Unity default fonts. Note that, 'Restore Default' button doesn't switch to unity font as default is gnome font.


Bash tab completion using environment variables without expanding

This would require modifying bash_completion functions. The behaviour seems to be an effect of the functions expanding the words for completion. If you run bash without the completion scripts loaded, for example using bash --norc, you'll see the behaviour is what you want.

With zsh, on the other hand, completion offers both:

~ echo $HOME/../
$HOME/../       /home/muru/../

For the particular case of $HOME, you might want to use ~ instead, which isn't expanded for me.


issue accessing webcam from guest in virtual box

I re-installed the extension pack, selected xHCI USB controller instead of the OHCI. Both the webcams (integrated and USB) work!


How do I force "top" command to show processes greater than PID XXX

You can run top -o PID to sort by PID (or hit the < key several times while top is running to move the sort column to the right, until it's sorting by PID).

You can filter PIDs interactively while top is running by hitting the o key and typing PID>1000 or whatever minimum value you want, followed by enter.


OTG Y cable provides power but doesn't show devices connected

A Y cable has two wires:

One wire has power & data.
The other wire has power only.

If you plug a data device into the power only wire it will not show up in Ubuntu. You have to plug it into the other wire "power & data".

It is impossible for a Y cable to have two data channels.


Cannot play YouTube videos in Firefox - Opera works?

I was also affected (Ubuntu 12.04). To me it looks like the combination of Firefox and invoking YouTube videos using https fails. If you have HTTPS Everywhere installed, deactivate it for YouTube. But beware: Manual https requests on YouTube videos will still fail, plain http will work.

Cheers.


What's the most lightweight application to mount iso files in Lubuntu?

gmountiso is light and is basically a gui for the mount command
in a terminal, run sudo apt-get install gmountiso


cannot find - No such file or directory - libusb - Ubuntu 32 & 64 bit

I am not entirely sure what you are trying to achieve; do you need libusb to work on both 32 and 64 bit? Or only one of them?
In any case, the library must be installed specifically for the right architecture. The install command by default would only install its "own" version of the library.
You can specifically tell it to install both versions:

sudo apt-get install libusb-1.0-0-dev:i386
sudo apt-get install libusb-1.0-0-dev:amd64

for 32 and 64 bit, respectively.
You could also check directly for the library files, on my system (16.04) they live in

32bit: /usr/lib/i386-linux-gnu/
64bit: /usr/lib/x86_64-linux-gnu

(if you're in doubt, dpkg-query -L libusb-1.0-0-dev shows where they are installed.)

As for the libusb you compiled yourself, you need to keep track that you are using the correct version when linking your program. Maybe you are mixing 32 and 64 bit versions in /usr/local/lib ? gcc / ld wouldn't know to keep them apart then.

As for the debug session, gdb ist just trying to show you source lines but doesn't know where to find the library's source files. Otherwise I can't see anything that's obviously going wrong here.


The kernel is installed to your filesytem partition, not the efi partition. The efi partition contains the grub bootloader files which are loaded before the OS would boot.
 To add Ubuntu to the grub boot-manager first boot into Arch (since your arch installation can boot fine) and ensure the ubuntu linux partition is mounted. After that do a simple

# update-grub

OR

# grub-mkconfig -o /boot/grub/grub.cfg

This would  scan and find the kernels of each OS and add it to
the grub boot menu. So anytime you turn on the pc you just pick which OS to run


What is the advantage of making the user use 'apt update' then 'apt upgrade'?

update is separated by upgrade, because upgrade is not the only command you can run on an updated local package index.

apt upgrade: upgrade all packages
apt list: lists all packages with search name, supports glob
apt search: searches packages with search name or description, supports regex
apt show: shows information on a package
apt policy: shows installation policy for a package

Combining these commands with update would be very inefficient. For todays desktop user with high-speed internet it seems to be obsolete. But for a sysadmin or some scripted solutions this is still relevant.

As a simple "workaround" you could add a function aptup to your bashrc:

echo 'aptup () { sudo apt update && sudo apt -y upgrade; }' >> ~/.bashrc
source ~/.bashrc

(Remove the -y if you want to be asked for confirmation before upgrading).

Then you can run aptup to update and upgrade the system.


MongoDB 2.6 does not start on Ubuntu 15.04

I installed from the debian wheeze repository and it works fine.

First make sure you remove the mongodb-org package and all its dependencies:

sudo apt-get purge mongodb-org
sudo apt-get autoremove

Remove the old mongodb.list you created:

sudo rm /etc/apt/sources.list.d/mongodb.list

Use the Debian repository instead:

echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

Update and install again:

sudo apt-get update
sudo apt-get install -y mongodb-org

After that, you can succesffully start the server:

sudo service mongod start

or

systemctl start mongod

(as clarified by Ernie Hershey in reply to Roman Gaufman's comment here: https://jira.mongodb.org/browse/SERVER-17742)


You must install the nvidia drivers on your PC,if you have a modern GPU open terminal and run these commands for the latest driver,

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot

If you have an older GPU it may not support this driver, in this case you can use the additional drivers application preinstalled in Ubuntu to find the right one for you.

You MUST use the proprietary driver to use Steam.


Run in a terminal
sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi bt_coex_active=N"

and reboot.
That should fix BT and 2.4 GHz Wi-Fi problem.


In Rhythmbox, click Edit->Preferences->Music Tab, and point the Library Location to the music library on your external hdd.


What is the logic behind the user name restrictions in *buntu?

Just to test you could use sudo adduser --force-badname '<whatever-name-you-want>' and add it the relevant groups needed by you (eg. sudo, netdev, sambashare etc)

Log in, look around, see if nothing breaks. If everything is fine then you could even keep using that username.


Can't create any files/folders on Desktop -- Ubuntu-GNOME

You can configure for Gnome if the Desktop should show items/icons or not using several ways

Using gnome-tweak-tool

Install

sudo apt install gnome-tweak-tool

Should look somehow like that

Using gsettings from terminal

gsettings set org.gnome.desktop.background show-desktop-icons

You might need to restart nautilus to finish the change

nautilus -q
nautilus


How do I completely wipe Cuda and CudNN off my ubuntu 16.04?

The official NVIDIA CUDA installation guide gives a similar but more complete method:
To remove CUDA Toolkit:
$ sudo apt-get --purge remove "*cublas*" "*cufft*" "*curand*" \
 "*cusolver*" "*cusparse*" "*npp*" "*nvjpeg*" "cuda*" "nsight*"

To remove NVIDIA Drivers:
$ sudo apt-get --purge remove "*nvidia*"

To clean up the uninstall:
$ sudo apt-get autoremove

(See here for more details: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html)


Ah! The problem was that the System Settings application went missing. Reinstalling that fixed it.


Cron will work very well for this.

Add the below line (with tweaks) to the end of /etc/crontab:

30 23 * * * root shutdown -h now

At 23:30 (11:30 PM), the kiosk will shut down. No matter what user is logged in, the shutdown command runs as root.

(If you don't want to use the global crontab, log in as root and use crontab -e.  Use the same above syntax without the root).

Cron Format:

MM HH DD OO WW command

MM: Minute, 0-59
HH: 24-hour hour
DD: Day of month
OO: Month
WW: Day of Week (Sunday is 0, Monday is 1)
command: Self-explanatory


This driver does not seems to be for Linux for it seems to be for Windows. In the README, they say you must run go.bat but this is a MS-DOS script...

In C you must basically say

$ gcc main.c
$ ./a.out

when you have a source file main.c containing

#include <stdio.h>
int main () {
  printf("Hello world!\n");
  return 0;
}


s(setuid) means set user ID upon execution. If setuid bit turned on a file, user executing that executable file gets the permissions of the individual or group that owns the file.

$ ls -l /usr/bin/sudo
-rwsr-xr-x 1 root root 121144 Feb 28  2013 /usr/bin/sudo

In this s permission was given  to  owner, so it represents the file is executable and set-user-ID mode is set.

Source


How to replace the Activities Overview button with the Applications Menu in GNOME 3?

In order to achieve this the easiest way you will need to install two extensions by following these instructions.

These are the extensions: Applications Menu (which will add back the Applications Menu - this extension is pre-installed so you will only need to activate it, not install it), and Activities Configurator (you will need this to easily remove the Activities Overview button).

Once you have both installed, have opened the gnome-tweak-tool, and are in the settings panel for the Activities Configurator (instructions for all these steps are provided in the first link), click the slider which is labelled Remove Activities Button in order to set it to On rather than its current state Off:

This will remove the Activities Overview button and all which will be left in its place will be the Applications Menu labelled Applications which will have been created when you installed the Applications Menu extension.

And here is the final result!

You will still be able to view the Activities Overview if you wish by click on the Applications Menu and then on Activities Overview at the bottom or by pressing SUPER. And you can of course always reverse these settings as well as disable or completely remove these extensions in the gnome-tweak-tool's Extensions section.


Lubuntu 15.04 with Silicon 771/671 Graphics Card Higher Res?

I have exactly same laptop. There is a video driver, but it works only with xorg version not higher than 1.12. It means that it won't work on Ubuntu higher than 12.04. The driver works well, but without 3D acceleration. It appeared that it is not possible to make this driver for newer versions of xorg, since the adapter does not support some features. I have installed Ubutnu 12.04, it uses unity2d. It will be supported till 2017. I think it is enough for this old laptop. Xubuntu and Lubuntu are not supported that long.

Here is the driver.

I saw some indications that it is possible to get correct resolution on newer xorg only using xorg.conf options, but I did not test it and I doubt it works. Maximum what you can get this way is 1024 x 768 resolution, which is not good for this screen. On 12.04 you can get native 1280 x 800.

I suggest installing Ubuntu 12.04.5 and then install the driver like this:

sudo apt-get install git xorg-dev mesa-common-dev libdrm-dev libtool
git clone https://github.com/hellnest/xf86-video-sismedia-0.9.1.git
cd xf86-video-sismedia-0.9.1
./configure --prefix=/usr --disable-static
make
sudo make install

I did this a few days ago for a friend of mine. It looks like Ubuntu  12.04.5 DVD version is with xorg 1.11, and there is no need to roll back from newer HWE stack. And there were no problems at all. To solve some problems with video playback it is needed also to switch output to X11 in VLC and gstreamer.

If you download a release with a newer HWE stack, then you will need to roll it back. If you see that packages like xserver-xorg-lts- are installed, then run

sudo apt-get install xserver-xorg

and they will be replaced by correct ones.

But these laptops have 2GB of RAM. They were sold with 1, but another 1 has been added. With only 1 GB it should not work quite well. But Lubuntu with the same driver should work. The GUI is not supported any more, but everything else uses same Ubuntu repositories.


Battery not fully charged (it shows 100%)

Your battery is worn out to 30% capacity. Solution: replace the battery.


How can I add "Browse Network" to the files menu in Ubuntu 16.04?

If you're not particularly worried about encryption as it is within a local network, you can try (assuming you have python installed):

cd /folder/to/share
python -m SimpleHTTPServer

Now, with your other machine, you can access that folder with the local IP of the machine you ran the SimpleHTTPServer on with http://LocalIPHere:8000.

More answers and possible solutions to your problem here.


Did you install Guest Additions? Guest additions change resolution of virtual OS dynamically. Maybe it would help.

https://www.virtualbox.org/manual/ch04.html


How do you change the text colour in CLI?

In the Terminal aka CLI (Command Line Interface) different colours are already used to represent file types, directories and message highlighting. I wouldn't want to override these colours.

However you can change the colour of the command prompt which makes it easier to distinguish between the commands you typed and the output from them.

Do do this type:

gedit ~/.bashrc

Then search for this block of text:

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

Remove the # in front of force_color_prompt=yes and save the file.

I've done this on my system and like the result.


Intel PRO/Wireless 3945ABG drops wireless and forgets wireless pass key every 10 seconds

This has happened to me twice on my netbook, thankfully not at home where all has been well.

The answer has been to walk away from the connection with the laptop for at least a few hours. While away from the connection, go into "Edit Connections" by clicking the wireless icon towards top right of the screen and delete the wireless connection you had a problem connecting to. When you next want to connect to it, it treats it as a new connection and works. Well it has for me twice, I hope it does for you.


Autohide the bottom panel in gnome3 classic session

My answer might disappoint you, but as such, you cannot autohide the window list. This officially supported Gnome Shell extension does not support this. It would be required to adapt the source code of the extension.
As a workaround, you could achieve much of the same functionality by using tint2, a lightweight panel and taskbar, instead of the Window List extension. It can be set to autohide. tint2 is available in the Ubuntu software sources, and can be installed with sudo apt install tint2.


Dual Boot Ubuntu and Windows 7: BOOTMGR is missing when I tried to boot in Windows

Sounds like there's a good chance something is broken with Windows which is causing Ubuntu not to recognise it properly. Try following the instructions here to fix Windows and then here afterwards to reinstall Grub.


No Sound on Ubuntu 15.10 running on Acer CB3-111-670 Chromebook

I found the solution by following these instructions. The only thing I did differently was run:

sudo alsa force-unload  (as mentioned by Parker J. Stone in the comments.)

INSTEAD OF the original step of running: sudo killall alsactl

to kill alsa.  All other steps were ran as written by the OP.

Here is the link:

https://plus.google.com/+JamesFuBEEFCAKE/posts/Tf4Pc5Z8reH

Also note: upon reboot after following the mentioned instructions, I got the drum sound from Ubuntu. Then after logging in, I tried to play a YouTube video and got no sound.  I clicked on my sound card in 'Sound' under 'System Settings' then clicked on 'Test Sound' and heard "left speaker" as well as "right speaker."  After doing this, I went back to YouTube and the video played correctly with sound!  Thus far, everything is working GREAT!


After a bit more digging, I found that the intel_pstate driver actually has a totally separate mechanism for this in /sys/devices/system/cpu/intel_pstate/max_perf_pct: https://www.kernel.org/doc/Documentation/cpu-freq/intel-pstate.txt .  It would still be interesting to see if there's a way to make this play nicely with the old cpufreq governors way, and I'm still curious why modprobe appears to have no effect even though it returns no errors, but for now this will work for me.


E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

the file gets locked when a program tries to update, install, remove programs.  usually this just means another window is open which has something to do with updates, software etc, but can also be because the system itself has tried to automatically update at the same time.  waiting should fix; but won't if you've got a window/term open that is paused on an install/remove/update (eg. dpkg* configure/update)


The actual fork forking happens inside the fork() primitive.

You can just imagine that inside the code of fork, a system call actually duplicates the process and start their execution at the same point with a slight difference:

the parent process fork function will return the process ID of the child process
the child process fork function will return 0.

Thus you know where you are during the programming, for instance

  if (fork())
  {
     printf("Parent speaking\n");
     // parent's tasks
  }
  else
  {
     printf("Child here\n");
     // child's tasks
  }


MTP is one of the things that really annoyed me when someone decided that it's better and easier to use than plain old usb storage access profile. I had some success transferring files over MTP but lots of frustrating hangs as well. I just can't have something that works only on 13th day of a month, providing it's not raining and that your phone faces east....

It is simply useless in terms of reliability, at least on Linux.

For this reason I've switched to the app called FolderSync and set it up with my own SSH server. It is absolutely a bliss, because I've never had to worry about the sync again.

Every file I want is uploaded to my server, new files that I drop on the server appear on the device without my intervention. The guy who develops it is really responsive in fixing bugs.

I'm in no way affiliated to this guy but I thought it's worth sharing something that just works.

PS. It supports many other online services for data storage too.


17.10 seahorse-nautilus mime association for "decrypt file", getting really frustrated at the ubuntu way


Automatically unlock other keyring than "Login" on login (not auto-login)

I did not find a solution for automatically unlocking a keyring other than the "Login"-keyring.

A workaround I came up with requires setting the passwords of both keyrings to blank temporarily, thus having plain-text-access to both files in .local/share/keyrings/ (make sure to make backups).

I manually merged both files into the "Login"-keyring with a text editor, making sure that there are no entries with the same identifier. Then I deleted the "Default keyring"-keyring and finally set the password of the "Login"-keyring back to my login password.


Samba share permissions on client not the same as server

I tried using file_mode and dir_mode as described here

The only problem with the link is a missing option since this is Linux to Linux.

If 770 is what you desire on the client give this a shot:

//myserver.local.lan/data        /mnt/data   cifs    username=dataadmin,password=notarealpassword,iocharset=utf8,dir_mode=0770,file_mode=0770,nounix       0       0


Try running this

setxkbmap -option numpad:mac

If it works, here is how to make it permanent.

As this didn't work, another suggestion:
Use XModmap to remap numpad key to only a digit. Xmodmap manual here. If that will not work, I give up.


The answer (that I needed) appeared to be that maybe aptd was fine but the /boot area was a bit too full - fixing this was the "repair" that was needed. I discovered this quite by accident while browsing related questions (and their related questions).

However what I originally thought was that APTD was corrupted and needed to be purged and rebuilt. It's a whole other debate as to if this is even an answer to the wider question that I asked.

What I did

Removed the old config files which, according to an answer here (My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room) is safe to do.

I also tried sudo dpkg -r linux-image-2.* which just seemed to be recursive and broken in some way that was beyond me. Killed it with control+C.

Switched to synaptic package manager and uninstalled a few older kernels. Then tried to get the out of date packages to update. It has been awhile since apt-get has been able to do anything so I felt this was something that needed to be done ASAP.

This had the effect of locking up synaptic and I had to terminate it it with killall -9.

Then a comment on my question about this (Is it safe to remove old vmlinuz.* files from /boot) led me to How do I remove old kernel versions to clean up the boot menu? and this command:

sudo apt-get remove --purge $(dpkg -l 'linux-image-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')

This cleaned up just shy of 3MB of disk space.

I then ran sudo apt-get upgrade which started the upgrade of 1260 packages. Needing about a Gig of archives.

Then I waited.

The next day I came back to it to see that it was waiting for me to respond to a prompt regarding gnome config. I chose the default option.

That completed successfully. I then did a clean, update and clean (because I am a newbi) and did sudo apt-get upgrade again and installed 3 more upgrades.

TL;DR: I think I needed to remove old kernels... that seemed to work.


The subdirectories of /snap are mount-points for your snaps. All snaps are mounted read-only thus you can't edit or delete files inside them.
If you want to remove the directory /snap/gradle you'll have to run the proper uninstall command:
snap remove gradle

Alternatively you could disable the snap:
snap disable gradle

makes the snap unavailable on your system. With snap enable gradle you could then make the application available again without reinstalling it.


Getting error message after upgrading Node.js in Ubuntu!

You need to manually create a symlink /usr/bin/node. Shortcut for bash compatible shells:

sudo ln -s `which nodejs` /usr/bin/node

Or if you use non-standard shells, just hardcode the path you find with which nodejs:

sudo ln -s /usr/bin/nodejs /usr/bin/node

please check: https://stackoverflow.com/questions/18130164/nodejs-vs-node-on-ubuntu-12-04


Well at first I looked into nautilus-python as suggested here. However the sparse documentation left me unsatisfied with being unable figure out how to determine position within the context menu and setting a context (file/mime type).
I ended up with going with a custom script as suggested here.
Creating this file:
~/.local/share/nautilus/scripts/Run
#!/bin/sh
eval "./$1"

Make it executable with chmod +x ~/.local/share/nautilus/scripts/Run
Result:

I'm sure you know how to improve this so please comment!


Uninstalling Ubuntu 14.04, and installing Ubuntu 18.04 in its' place

Following Kulfy's instructions, I went here and here. My process differed a bit from the one here, so I'll give the slight differences below.

On Windows, I downloaded the Ubuntu 18.04 ISO file.

Backed up and removed all files from a (SanDisk) 16 GB USB drive. Created a bootable USB following the instructions here, which required me to download/install/use the free program Rufus. Checked that Rufus worked properly (i.e., if files on the USB were correct) - it did.

Then I rebooted my system, with the USB drive plugged in.

When I got to step #5 here, my options were a bit different. In my OS boot menu (four options: Debian GNU/Linux, Advanced options for Debian GNU/Linux, Windows Boot Manager, and System Setup), I chose "System Setup".

In here, I originally explored "F10 BIOS Setup", which proved not to be useful. Instead, I chose "F9 Boot Device Options", which loaded a menu with three options: OS Boot Manager (which just returned me to the original OS boot menu of four options), USB Hard Drive(UEFI) - San Disk, and Boot from EFI File. I chose the second option of those three. This gave me the options that step #6 here described, even though I was using UEFI. I chose "Try Ubuntu without installing" from here, then installed Ubuntu from within the Ubuntu start up.

A few more steps varied from this tutorial afterwards, owing to my having a Ubuntu 14.04 partition already installed. It gave me the option to completed erase and overwrite the Ubuntu 14.04 with the new Ubuntu 18.04 installation, which I doubled checked was the correct one, then went with it. From here, I followed the rest of the necessary instructions found on the other tutorial, excluding step #7's suggestion that I "may safely disregard the second option 'Install this third-party software'". I opted to let Ubuntu install all of this stuff, updates, etc. etc..

Somewhere in here I rebooted my system, as recommended by Ubuntu. When I did  so, the OS boot menu's four options changed to: Ubuntu, Advanced options for Ubuntu, Windows Boot Manager, and System Setup, and the screen behind these options were now purple instead of blue.

After setting the Ubuntu 18.04 system up, both my Ubuntu and Windows boots are working (minus the bug described below for Ubuntu).

Initial Set-up Bug

There DOES seem to be one bug with my new Ubuntu 18.04 setup, in that the screen will go black for maybe 2-3 seconds, then, the whole displace will rotate horizontally. With my mouse cursor, "up" goes horizontally towards the top of this rotated screen. Rebooting the system brings me back to the normal "up" is "up" display, but then after a short time the screen goes black, and repeats. Have tried rebooting twice now, same results.

Will look for a solution, and if I cannot find one, will post a new, separate AskUbuntu question.

Update

Found the solution, it is here. This worked for Ubuntu 18.04, on a HP 17 Pavilion Notebook. I first titled my laptop until it oriented in the correct, upwards landscape. Then I locked the titled ability with the menu on the top right. Then in terminal I entered:

gsettings set org.gnome.settings-daemon.plugins.orientation active false


Installing software into computer using liveUSB (but not into liveUSB)

You can use a live USB system to clear or change the root password of your computer. The password is stored encrypted in the file /etc/shadow so, you can restore it to whatever you have at the moment after you finish. You don't need to know it, just keep the encrypted value for later.
These instructions use a virtual machine, but you can follow the same steps using a live USB.


searching about specific word in a Directory then delete it

You can use gawk to do this:

gawk -i inplace '{gsub("test", "");print}' file.txt

Here "test" is the word you are trying to delete and file.txt is the file you are trying to edit. You already find this using grep hence, I am not including that part.

I am editing this on the suggestion of @Serg

echo -n "Enter the path to directory (/path/to/dir), followed by [enter]:"
read dir_path

echo -n "Enter the word you are looking for, followed by [enter]:"
read word

cd ${dir_path}

for file in "$dir_path"/*txt; do
    echo $file

    awk -v var=$word -i inplace '{gsub(var, "");print}' $file
done


To save the output of awk to a file, simply use redirection:

awk > /path/to/output/file ...

Since the shell handles the redirection and empties the output file, you cannot use the same file for both input and output - by the time awk gets to it, the file would have been truncated by the shell.

With GNU awk, you can use the in-place editing plugin to save the output to the same file:

gawk -i inplace ...

This works much the same way sed -i does.


There are three ways to configure SSH. Al three ways have the same options wich will be passed as arguments to SSH.

1-System wide configuration file: /etc/ssh/ssh_config

2-Personal configuration file: ~/.ssh/config

3-Command line arguments


Netbook Remix 10.04 to 10.10 upgrade using alternate iso

Solved both the issues.

I edited initramfs.conf for solving the first one and changed the default session to ubuntu-desktop in System -> Administration -> Login Window for solving the second one.


Ubuntu 12.04 installation with windows8.1 pre-installed

If the Ubuntu installation has mostly completed, I recommend you try one or both of the following:

Download a USB flash drive or CD-R image of my rEFInd boot manager, prepare a disk, and boot from it. You should see options for both Windows and Linux. If both work, then you can install the Debian-package version in Linux and forget about GRUB.
Run the Boot Repair tool from an Ubuntu live CD. This should install a fresh copy of GRUB, finishing what the Ubuntu installer failed to do.

If both of these fail, then post back with the URL that Boot Repair provides, along with a description of any errors you see from both approaches. That will give us more information about what might be going wrong, enabling a better diagnosis.


How can we restore If all kernel has removed by mistaken it has RAID10

You're following these instructions.

If you're using RAID you need to replace step 2 (mount /dev/sdXY /mnt) with a command to mount your RAID array.

If it's mdadm, first find out what your mdadm drive is called. The simplest way to do this is to look at the output of cat /proc/mdstat. It'll be called something like md126.  And then just substitude that into the process: sudo mount /dev/md126 /mnt

If it's dmraid, it'll probably be lurking in /dev/mapper/ (run ls /dev/mapper/ to see) and then substitude that in: sudo mount /dev/mapper/1231438jkb4k2g4h2b34 /mnt

After you've got it mounted on /mnt - just continue the process as if it were a normal drive.


How can install ike (shrew soft vpn) on Ubuntu 20.04?

The ike packages were dropped from Debian after Stretch (Released June 2017).

Correspondingly, Ubuntu dropped ike packages after 18.04.


You can't control the writable portion of the usb by a boot kernel option. What you need to do is to expand the persistent file system on the usb drive, the casper-rw file. See this tutorial for a step by step explanaition.


Will Ubuntu One Mobile be available on BlackBerry?

It is not.
We are focusing on Android and iOS platforms exclusively in the mobile arena for the foreseeable future.


Display list of shortcuts in Ubuntu 17.10 gnome

No, there isn't. An overview of keyboard shortcuts for gnome shell is maintained here: https://wiki.gnome.org/Projects/GnomeShell/CheatSheet


How to downgrade php version in ubuntu 15.04

You should run sudo apt-get remove php5, then for 5.5 specifically, which was not used in 15.04, you will need to add a source from utopic by opening /etc/apt/sources.list in your favorite text editor and adding the following lines deb http://us.archive.ubuntu.com/ubuntu utopic main and
deb-src http://us.archive.ubuntu.com/ubuntu utopic main. Next, to ensure you get the proper version, open /etc/apt/preferences in a text editor and add the following lines

Package: *
Pin: release n=trusty
Pin-Priority: 501

Package: php5
Pin: release n=utopic
Pin-Priority: 502

This will ensure that all packages are installed from trusty except for php5, which will be installed from utopic.

As with installing any outdated version of a piece of software, this can introduce security risks that you should consider. Also, this may affect the stability of php5 so keep that in mind.


http://cascadia.debian.net/~vagrant/rpi-ltsp-howto.txt

Install ltsp-server for ltsp-build-client, ldm-server to support LDM,
qemu-user-static and binfmt-support for cross-architecture support.

apt-get install ltsp-server qemu-user-static binfmt-support ldm-server


before you start, purge hostapd and install your dependencies with these two commands:

sudo apt-get purge hostapd
sudo apt-get install libnl-3-200 libnl-genl-3-200

I didn't understand what you were trying to do. Here's the answer:

first, back up your sources list with the following command:

sudo cp /etc/apt/sources.list /etc/apt/sources

then, change your repositories to saucy from trusty:

sudo sed -i 's/trusty/saucy/g' /etc/apt/sources.list

next, update your package list and install hostapd=1:1.0-3ubuntu2.1 with these two commands:

sudo apt-get update
sudo apt-get install hostapd=1:1.0-3ubuntu2.1

now, prevent future updates from changing the hostapd version with this command:

sudo apt-mark hold hostapd

and change your sources list back to the trusty repos and update your package list to trusty:

sudo cp /etc/apt/sources /etc/apt/sources.list
sudo apt-get update

finally, install the webupd8 ppa and install ap-hotspot

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install ap-hotspot

more info from webupd8 can be found here

start ap-hotspot:

sudo ap-hotspot start

to reconfigure ap-hotspot anytime after installation, run this command:

sudo ap-hotspot configure

stop:

sudo ap-hotspot stop

to see a list of commands:

ap-hotspot

Last but not least, the default SSID is "myhotspot" and the default password is "qwerty0987".


How to use USB bluetooth dongle/internal bluetooth chip on a virtual windows xp machine on ubuntu 14.04

I know this is old, but here's a suggestion for anyone else who finds this post.

You said

  ... I am still unable to get any USB device working ...

which suggests you you need to add the user to virtualbox users with the command  sudo usermod -a -G vboxusers username Then you need to activate USB support, disable support for the specific device(s) for the host OS and enable the device(s) for the guest OS. The first answer by Takkat in this post describes it well for different versions of virtual box.


How to use the terminal to change the IP address provided by Tor?

For tor daemon running on Ubuntu, first try this:
killall -HUP tor

If that does not work, enable the control port in your torrc file.
Then, set a password for the control port with tor --hash-password password
Open a telnet connection to the control port and issue the NEWNYM command:
printf 'AUTHENTICATE "password"\r\nSIGNAL NEWNYM\r\n' | nc 127.0.0.1 9051

sources:

SuperUser: How do I tell tor, from the command-line, to give me a new identity in a Mac?
Stack Overflow: How to request new TOR identity in terminal
SuperUser: How to “flush tor circuit”


I have found out that all you need to do is force install from terminal. I feel so dumb facepalm.


How can I change the icons of many folders?

You can do this from the command line:

gvfs-set-attribute -t string <directory> metadata::custom-icon file://<icon-location>

replacing <directory> with the name of the directory you want a custom icon for and <icon-location> with the location of the icon. For example, to change the icon of ~/Documents to a red apple:

gvfs-set-attribute -t string ~/Documents metadata::custom-icon file:///usr/share/pixmaps/apple-red.png

Now, to automate the process a bit, say that you have a directory ~/Videos/Films inside which you have one directory per film, each of which containing a file called icon.png that contains the desired icon. In that case you can type at the command line:

{ while read -r d ; do [ -d "$d" ] && [ -e "$d/icon.png" ] || continue ; gvfs-set-attribute -t string "$d" metadata::custom-icon "file://$d/icon.png" ; done ; } < <(find ~/Videos/Films -mindepth 1 -maxdepth 1 -type d)

Notice that an open nautilus window will need to be refreshed in order for any icon changes performed on the command line to take effect.


Xubuntu stuck after 16.10 to 17.10 update

I'll reply to myself.

I tried reinstall the nvidia driver but I was still stuck.
So I purged it again and install a previous version (nvidia-381).
It gives me access to my session but I had only a 800x600 resolution.
So in the setting I choose the nouveau driver and then it works !


11.04 shuts down after around 15 minutes of online video or less, every single time

It will be very difficult to say what might be wrong. You have not mentioned any thing about the H/W you are using. Desktop PC or laptop, Graphics card etc.

One cause of the shutdown might be over heating. Playing videos using Flash is a quite processor intensive work. Normally playing video heats up the CPU more quickly. One thing you can do is check the CUP temperature while you are watching Hulu.

Install lmsensors : sudo apt-get install lm_sensors
Check the temp: sensors

If you see your cpu temp is shooting up high while playing the Hulu, indicates you have some problem with your cooling system.
Check it out, let us know so that we can debug the issue further.


How to add my own .deb file to my local mirror to use with apt?

Create a directory and place you .deb package within.

Remind yourself of some of the info present in the debian file:

dpkg --info <yourpackage.deb>

Move to your directory and enter sudo dpkg-scanpackages . /dev/null | gzip -c9 > Packages.gz

Add this line to your sources.list: deb file:///path/to/directory / - yes, include the whitespace :)

sudo apt-get update
sudo apt-get install <packagename>


Is there any program available for making bootable USB drive?

unetbootin  is probably the best and the easiest way to make a bootable USB irrespective of the OS you are using to create the USB as it is crossplatform.

It has a very easy interface and options to choose between distributions straightaway from the menu and to select the desired iso image.

Also,creating a bootable USB using Unetbootin will give you a very very simple and easy interface when you boot your machine using the USB.

I would suggest to use this software straightaway without doubt...


How can I update a Network Manager connection from the command line?

All configuration from Network Manager are in /etc/NetworkManager/system-connections/

On this please you will find Wired connection 1 witch is probably configuration file of you lan connection. You can edit it

sudo nano /etc/NetworkManager/system-connections/Wired connection 1

[802-3-ethernet]
duplex=full
mac-address=00:22:64:4E:6F:70

[connection]
id=Wired connection 1
uuid=57a2a340-c113-406f-9abc-eb816e58b3db
type=802-3-ethernet
timestamp=1430138708

[ipv6]
method=auto

[ipv4]
method=manual
dns=xxx.xxx.xxx.243;8.8.8.8;
dns-search=eunet.rs;
address1=xxx.xxx.47.5/24,xxx.xxx.47.254

You can change ip, network mask or gateway.
After change you made, save and restart NM with command

sudo service network-manager restart


Raid 5 mdadm --grow drops performance, no increase in disk size

Make sure you (1) unmount the file system for each array, and then (2) run:

e2fsck -f -v /dev/mdx

Where x is the array in question. Then run resize2fs.  You should then be able to resize the file system.

In my experience, however, growing arrays (I grew one stepwise from 3+1 to ultimately 8+2 with 1TB disks over 2+ years) does seem to impact performance.  This is possibly because things like strip size are dependent on the number of data disks (i.e., n-1 for RAID5, n-2 for RAID6) and thus will no longer be optimized for the new array.

Strip width = [Stride size] × [# Data Disks]

You'll want to address this with tune2fs afterwards, with something like:

tune2fs -E stride=n,stripe-width=m /dev/mdx

See this for more detail: https://raid.wiki.kernel.org/index.php/RAID_setup


You seem to think that there is one issue that wreaks havoc with Windows 10/Ubuntu dual-boots. That's not true; there are many issues, most of which occur on only a small subset of computers. Thus, the only way to completely answer your question is to write a book on the subject. Literally, a book. As the author of over 20 published books on computers, I'm not exaggerating.

In some cases, you can install with little preparation and everything will work normally. Other times, you'll run into one of those many problems. To minimize the risk of your encountering a problem, or to help you recover should you do so, you can read up on the way EFI works and how Ubuntu (or other Linux distributions) works with it:

Adam Williamson's blog entry on how EFI works -- This page describes the theory behind EFI-mode booting.
A question and answers on the differences between BIOS and EFI booting on Superuser.com -- This provides the basics of the preceding, but is more concise.
My page on installing Linux on EFI systems -- This page is a more practical introduction to EFI-mode booting than Adam Williamson's blog.
My page on EFI boot loaders for Linux -- This page describes EFI boot loader choices for Linux systems.
My page on the CSM -- This page covers the CSM, including when it's useful and when it's not.
The Ubuntu community wiki entry on UEFI -- This page is a bit disjointed, but is the most Ubuntu-specific introduction to EFI and its issues.

I know that's a long reading list, and you probably don't want to read all of those pages. If you can read just one or two, I recommend Adam Williamson's blog post and/or my page on installing Linux on EFI systems.

Beyond that, you get into specific problem areas. The biggest of these is buggy EFIs that forget their settings. This problem used to be very common but is now less common -- but more common than it should be. HP used to be a known offender in this area, but I get the impression that recent models are fixed. Dell and ASUS seem to be above average in their EFI implementations. Less-popular brands are often troublesome, as a general rule.

Bad instructions are also an issue. In particular, many sites and posts (especially older ones) recommend enabling BIOS/CSM/legacy mode; but if Windows is already installed in EFI/UEFI mode, enabling BIOS/CSM/legacy support is asking for trouble. My page on the CSM describes why in detail.


Want to try Gnome DE on Ubuntu 16.04 LTS

You can easily switch DE's, just install the ubuntu-gnome-desktop via:

apt install ubuntu-gnome-desktop

after that, you can select which desktop environment to use in the login screen.

ubuntu-gnome-desktop is a meta package which should install everything which is needed to make it run.


Most Videos Will Not Play in Ubuntu 20.04 (or anything later than 16.04)

I have found the solution, but first I would like to share more details regarding my issue:

I was attempting to play video files saved on my Western Digital My Book Live Duo Network Attached Storage drive. In order to access these files I would open up the file explorer (was Nautilus in 16.04, and now it's just called Files in 20.04) and mount a network drive (and mark it as a favourite). Selecting the 'Network' using Nautilus, or '+ Other Locations' in Files would bring up a list of the network drives. I've always had two options: One was "MYBOOKLIVEDUO" and the other was 'MyBookLiveDuo'. Both had the same contents, and I never understood why there was two options for the same drive, and I did not question it either. I would always select the all caps version.

The all caps version MYBOOKLIVEDUO was where the video files were located that I couldn't get to play in vlc (some worked, some did not). If I copied the files to the internal drive they would all play locally.

I tried accessing the files with the MyBookLiveDuo version, and the files would play perfectly right off the network drive.

I looked into this further, and I found that the file paths that were located using MYBOOKLIVEDUO begin with smb. The file paths that were located using MyBookLiveDuo begin with afp.

I guess this is an issue for vlc not liking some files through smb.


How can i install SPE(Stani's Python Editor) for python3.3

Stani's Python editor package in Ubuntu repos depends on Python 2.*

You will not be able to run in on Python 3.

If you install the spe package it will automatically install all necessary packages including python 2.*


How to fix broken encoding in Wine application without changing OS language?

First, the command line:

LANG=ru_RU.UTF-8 WINEPREFIX="/home/uname/.wine" wine /home/uname/.wine/drive_c/GOG\ Games/Worms\ Armageddon/WA.exe

Env variables set in start of command line affect only that command line. You could set it in separate line using export LANG=... but this will affect all commands in that shell after the export.

Second, a .desktop shortcut:

[Desktop Entry]
Name=Worms Armageddon
Exec=env LANG=ru_RU.UTF-8 env WINEPREFIX="/home/uname/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/uname/.wine/dosdevices/c:/users/Public/Desktop/Worms\\ Armageddon.lnk
Type=Application
StartupNotify=true
Path=/home/uname/.wine/dosdevices/c:/GOG Games/Worms Armageddon/
Icon=4948_goggame-1462173886.0
StartupWMClass=wa.exe

Place above worms.desktop file in ~/.local/share/applications/
Note, you used default wine prefix, specifying it in command line not needed

May be you want it in script, here it is:

#!/bin/bash
export LANG=ru_RU.UTF-8
export WINEPREFIX="/home/uname/.wine"
wine /home/uname/.wine/drive_c/GOG\ Games/Worms\ Armageddon/WA.exe

export variable will have effect only inside that script

Reference


Dell XPS 13 9365 can't activate bluetooth on Ubuntu 20.04

I ran across a similar issue. Just installed Pop!_OS (ubuntu based) on my Dell XPS 13 9365. Ran across this solution which worked for me.
rfkill block bluetooth
rfkill unblock bluetooth

Found it on here: https://askubuntu.com/questions/787023/bluetooth-not-working-on-ubuntu-16-04-lts/808114#808114|solution
I also have both wifi and bluetooth checked in the wireless switch section in BIOS (bluetooth was initially unchecked). Doubt it is relevant but I made this change in BIOS before trying out the solution.
Hope it helps.


How do I get gvfs-info to output file metadata when called from cron?

@steeldriver's comment was exactly what I needed (Thank you!).

I lifted the below from How to change Gsettings via remote shell and it was exactly what I needed!

PID=$(pidof -s nemo)
QUERY_ENVIRON="$(tr '\0' '\n' < /proc/${PID}/environ | grep "DBUS_SESSION_BUS_ADDRESS" | cut -d "=" -f 2-)"
export DBUS_SESSION_BUS_ADDRESS="${QUERY_ENVIRON}"

I used 'nemo' because I know it would be running in my desktop environment.


Remove Shortcuts from Menu Bar (Ubuntu 18.04 + gnome-session-flashback)

The "menu bar" is really GNOME Panel.
You have to do right mouse click with Super+Alt on each icon and select Remove From Panel option from drop-down menu.


System boots in fallback mode half of the time

Solution was to upgrade my Nvidia graphics driver to a more recent version. I don't suggest this unless you are experiencing this problem, however the new driver is working perfectly for me and seems to have fixed this issue.

To properly add a more recent nvidia driver:

1) Add the X-swat repo:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates

2) Run an update:

sudo apt-get update

3) and finally an upgrade to bump up your nvidia-current version number:

sudo apt-get upgrade

Whatever you do, do NOT install a more recent version from Nvidia's website, just use this ppa. It won't work without some heavy tweaking and I almost destroyed my installation.


Akonadi (and thus KOrganizer) have direct support for Google Calendar now.

Go to Settings -> Configure KOrganizer

In Settings: Press "General" -> "Calendars" tab -> Add

Search for "Google" and press "Google Calendars and Tasks"

Press "Add" and sign in to your google account


Ubunutu 17.10 - Skypeforlinux 18.14.76.4 - No Device found

Try downgrading your skype version to 8.10 (uninstall your current version first) by downloading it from here: https://repo.skype.com/deb/pool/main/s/skypeforlinux/.

I had the exact same problem you described with the exact same webcam and doing this fixed it.


how to trim few words in 2nd column to display in a text file

One way:

awk -F, '{$2=q substr($2,2,4) q;}1' OFS=, q="'" test.txt

$2=q substr($2,2,4) q - 2nd column is modified wherein we extract 4 characters and surround it with a quote(q)

1 - print every line

OFS=, Use comma as Output field separator


In case there is an ifup active it would interfere with the ifdown command. Waiting 20 seconds would avoid this (ifup is likely to finish or error out without 20 seconds).

As an example: OpenVSwitch uses it.


How can I build PHP5 Dependencies while having MariaDB installed?

PHP packages should compile with Maria-DB just fine. Just pick the build-dep packages by hand from debian/control instead of using apt-get build-dep php5, then change the Build-Depends libmysqlclient-dev to correct development package from Maria-DB.


How do I install python through the terminal?

Python is installed to all of our computers because it
is useful framework for a variety of things .

To use the python interface from terminal just type python .

to check you python version just type python --version

to run a python script you need to type in the form :

./python_script_name.py

but very importantly it has to be executable first

chmod +x python_script_name.py

I hope it helps !


I have the same problem with my Lenovo Laptop that runs on Ubuntu OS.

When I close my laptop lid or press sleep it goes to suspend mode completely and it is normal, But when I open lid and press any key Ubuntu reboots.

I search lots of stuff for this solution and I got a solution that work fine for me, Let me tell you what I was done...

First you have to edit /etc/default/grub file

  sudo gedit /etc/default/grub

Look for the line

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Replace above line with

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_sleep=nonvs"

Just Save file and close it.
Now you want to update configuration of boot loader

  sudo update-grub

After that reboot your system.

I hope this will help you to solve your problem.


I erased osx when i installed ubuntu, how do i set up dual boot

As Chan-Ho Suh mentioned in the comments

  If you haven't found the answer by now, I would suggest just installing Snow Leopard and let the install wipe out your Ubuntu. Then follow the usual instructions to install Ubuntu alongside OS X.

This is your best bet to fix your macbook pro 8