Can't create anaconda shortcut to launch from desktop on ubuntu 17.10?

Following steps work in Ubuntu 16.04, but I don't know if it works in 17.04.

Create a shell script /home/paygilant/bin/anaconda.sh

export CONDA_PYTHON_EXE=/home/paygilant/anaconda3/bin/python
export PATH=/home/paygilant/anaconda3/bin:$PATH
python /home/paygilant/anaconda3/bin/anaconda-navigator

Create a desktop file /home/paygilant/anaconda.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Exec=/bin/bash "/home/paygilant/bin/anaconda.sh"
Icon=/home/paygilant/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true

Run sudo desktop-file-install anaconda.desktop.
After 10~20 seconds, you can see Anaconda shortcut in dash.


Missing icons for headless Xfce session via VNC

I had the exact same issue and finally managed to resolve it. The weird thing was it is simply the order of these two lines in the configuration file.

# Starting X session must come before export statement
/etc/X11/Xsession

# This line comes second
export XKL_XMODMAP_DISABLE=1


Gedit not found on launchbar when I minimize, Ubuntu 12.10.

Maybe it's not exactly what you want, but you can right-click on Gedit's launcher icon and choose Lock to Launcher. Now Gedit will remain there no matter if you currently use it or not.


How to remove duplicate entries in dash?

In Dash, applications are represented by .desktop files. These files are located in either /usr/share/applications or ~/.local/share/applications. For snap programs, also look at /var/lib/snapd/desktop/applications

What you see in Dash is not the filename of these .desktop files, but the (application-) name that is defined in the Name= line, inside the file.

When you have duplicate appearances of the same application in Dash, it almost certainly means that you have desktop files in either /usr/share/applications or ~/.local/share applications (or even the snap folder) with a different file name, but representing the same application, and with the same Name= line.

This is for example the result when I copy the gedit.desktop file, rename it to monkey.desktop and copy it into /usr/share/applications:

In your case it is probably the result of installed new versions of applications you already had installed, these new versions install new .desktop files, but with a slightly different (file-)name.

What you should do is look inside both directories, find these "almost duplicate" .desktop files, remove the oldest and keep the latest.

Some more information

From the two locations: /usr/share/applications and ~/.local/share/applications, the latter takes precedence. If two .desktop files with the same filename exist in both directories, the local one shows up in Dash (if just copied, it takes a logout / login). That is why it is normally good practice to first copy a .desktop file to the local directory (to add items to the launcher's quicklist for example) before editing, and leave the global one untouched.

If you install a newer version of some software, and the newly installed .desktop file name differs from the old one (and the old one is not removed for some reason), the application will have multiple occurrences in Dash. The same happens when the .desktop file is replaced, but people forget they have a local (edited) version of the .desktop file.


Open a song in Rhythmbox without importing it?

To the best of my knowledge this is not a current function of Rythmbox.  If it plays a file, it will remember where it is so you can use it again.  Not sure why you'd not want this.

Unless you are using removable media or a network share that is not always present, then you may wind up with files in your catalog that cannot be played.

Why not email the team upstream and request this function?  Be clear why you think it would be beneficial to the community, because you are asking someone to spend time to code this function it is good if you have a compelling reason.


Ubuntu 15.04 - Won't allow 2560x1440 on Intel anymore

Also, it's helpful to cut out adapters when testing. I experienced the exact same issue as James; my problem was a DisplayPort to HDMI adapter capping the graphics to 1920x1200.

A digital media professional explained to me there are capability negotiations going on behind the scenes and the cheaper adapters take a lot of shortcuts, hence the low price.

HDMI to HDMI had worked fine with this monitor on a previous system.
Cutting out a DisplayPort to HDMI adapter and using a DisplayPort cable helped to get my new system running flawlessly at 2560x1440.


You can create a ssh keypair in the terminal with the command:
ssh-keygen. Then you have to add the public key(.pub).

see man ssh-keygen for more options


losetup: raspbian-20200505.img: failed to set up loop device: Device or resource busy

It is giving you that message because /dev/loop0 is already in use.  If you run the command of df -h (disk free) which shows you all your mounts that are in use as well as all the /dev/loop# mounts.  Pick the next /dev/loop# that is not in use for your command.
Example:
df -h
Filesystem                 Size  Used Avail Use% Mounted on
udev                       7.8G     0  7.8G   0% /dev
tmpfs                      1.6G  6.9M  1.6G   1% /run
/dev/sde1                  212G   92G  109G  46% /
tmpfs                      7.9G   49M  7.8G   1% /dev/shm
tmpfs                      5.0M  4.0K  5.0M   1% /run/lock
tmpfs                      7.9G     0  7.9G   0% /sys/fs/cgroup
/dev/loop0                 9.2M  9.2M     0 100% /snap/canonical-livepatch/95
/dev/loop1                 172M  172M     0 100% /snap/qt551/27
/dev/loop2                 161M  161M     0 100% /snap/gnome-3-28-1804/116
/dev/loop3                 227M  227M     0 100% /snap/wine-platform-runtime/136
/dev/loop4                  63M   63M     0 100% /snap/gtk-common-themes/1506
/dev/loop5                  94M   94M     0 100% /snap/core/9066
/dev/loop6                 173M  173M     0 100% /snap/qt551/28
/dev/loop7                  55M   55M     0 100% /snap/core18/1705
/dev/loop8                  94M   94M     0 100% /snap/core/8935
/dev/loop9                  55M   55M     0 100% /snap/gtk-common-themes/1502
/dev/loop10                 74M   74M     0 100% /snap/wine-platform-3-stable/6
/dev/loop11                141M  141M     0 100% /snap/gnome-3-26-1604/98
/dev/loop12                 55M   55M     0 100% /snap/core18/1754
/dev/loop13                 55M   55M     0 100% /snap/bitwarden/24
/dev/loop14                227M  227M     0 100% /snap/wine-platform-runtime/123
/dev/loop15                 55M   55M     0 100% /snap/bitwarden/23
/dev/loop16                157M  157M     0 100% /snap/gnome-3-28-1804/110
/dev/loop17                141M  141M     0 100% /snap/gnome-3-26-1604/97
/dev/sdf2                  224G  173G   51G  78% /media/Windows
/dev/sdh1                  932G  774G  159G  84% /media/1TB_SHARE
/dev/sdg1                  466G  268G  199G  58% /media/WD500GB
/dev/sda1                  233G  177G   57G  76% /media/250GB_SHARE
/dev/sdd1                  466G   85G  382G  19% /media/ST500GB
/dev/sdc1                  466G  284G  182G  61% /media/500GB
/dev/sdb1                  2.8T  963G  1.8T  35% /media/Seagate

as we can see in the above /dev/loop0-17 are all in use, so the next one we can use is /dev/loop18 for the command.
sudo losetup /dev/loop18 raspbian-20200505.img -o $((532480*512))


Go to: System settings > Text Entry. Then use the arrows to select default keyboard. Alternatively, use -/+ to add or remove keyboard respectively. See:

Make sure that your preferred keyboard layout is number one on that list. Alternatively, remove all the keyboard layout you don’t need from that list of keyboards. Then restart you systems for the changes to take effect.


"Canon UFR II/UFRII LT Printer Driver for Linux" is a Linux operating system printer driver that supports Canon devices. It uses the CUPS (Common Unix Printing System) printing system for Linux operating systems.

Download UFR II/UFRII LT Printer Driver for Linux V3.40. There are both 64-bit and 32-bit drivers included in the same .tar.gz archive. Start the download and immediately copy the download link to get the link for downloading the latest driver for the Canon i-SENSYS MF212w printer. I already completed Step 1. and typed the download link for you in Step 2.
Open the terminal and type:

wget -c http://gdlp01.c-wss.com/gds/8/0100002708/17/linux-UFRII-drv-v340-uken.tar.gz
tar xvzf linux-UFRII-drv-v340-uken.tar.gz
cd linux-UFRII-drv-v340-uken/64-bit_Driver/Debian/  # for 32-bit OS replace `64-bit_Driver` with `32-bit_Driver`
sudo apt install ./cndrvcups-common_3.80-1_amd64.deb
sudo apt install ./cndrvcups-ufr2-uk_3.40-1_amd64.deb
sudo apt install ./cndrvcups-utility_1.00-1_amd64.deb
sudo service cups restart

Add the Canon MF212w printer from System Settings -> Printers -> Add -> Printer.


How to write a script as a string and save it in variable ten echo it to any file during run time and execute it in a terminal

probably the main problem in both cases is that the $variables will be expanded before you want. Try

script=$(cat <<'END_OF_SCRIPT'
# your script goes here.
END_OF_SCRIPT
)

The single quotes on the first END_OF_SCRIPT essentially single-quote the entire here-document.

Next, it is highly important to quote $script whenever you use it:

echo "$script" > some_file

Otherwise all sequences of whitespace, including newlines, will be collapsed to a single space.


Ping works, wget, curl and apt do not... firewall disabled to make sure not the problem

this is my running config:
auto eno1
iface eno1 inet manual
bond-master bond0
auto eno2
iface eno2 inet manual
bond-master bond0
auto bond0
iface bond0 inet manual
bond-mode 4
bond-miimon 100
bond-xmit_hash_policy layer3+4
bond-lacp-rate 1
bond-slaves eno1 eno2


First
Check your shortcuts at System Settings > keyboard > shortcuts

Second
Install gconf-editor (sudo apt-get install gconf-editor), open it (press Alt + F2 and type gconf-editor.
Then go to Edit > Find and search for Ctrl (make sure to check "Search also in key names" and "Search also in key values")

Third

xbindkeys has caused trouble for others too, see here.
You said that you have tried to uninstall it, but have you purged it?

sudo apt-get remove --purge xbindkeys


Will Android apps be compatible with the Ubuntu Phone OS?

So far, the Ubuntu QML toolkit is just a preview, so there is no definite answer possible.
But Richard Collins, head of Ubuntu mobile products, has stated in an engadget interview:

  Q: Since Android is also Linux-based, is there any plan for Ubuntu to
  run Android apps?

  A: Many Android developers already use Ubuntu as their desktop OS and
  we have a very close affinity with them. We intend to encourage them
  to make their Android applications run on Ubuntu, but we won't
  engineer any middleware for running Android apps. Developers are
  intelligent and capable enough to make their apps run on our devices.
  We have an active initiative right now to directly help them achieve
  this.

So this makes it pretty clear: the apps should be either web apps or ported to Ubuntu.


Cannot Boot - VFS: Unable to mount root / need help with GRUB2 boot

I found the answer to question #2 here:
https://sites.google.com/site/installationubuntu/general-issues/grub-default-older-kernel

I edited the GRUB_DEFAULT line in /etc/default/grub
GRUB_DEFAULT="1>2" to skip through the menu to the last best kernel.


I can't update wine from 1.5.10 to 1.5.11 due to a dpkg lock file

open your terminal and type this

sudo rm -rf /var/lib/dpkg/lock

then try again .
hope that helps .


May be best I don't know but I always prefer terminal for that.

As you specified GUI I refer to use KRENAME. It renames all types of files and especially Track, year,genre,... can be easily edited for  music and Exif for images.


Problem running .net Core on Ubuntu Server

My bad - I've just realised that if I run the following command it works fine:

dotnet HelloWorld.dll


I believe that your issue revolves around one of two things: the GPU drivers for your Intel GPU or Flash (Steam runs on a special version for most of the client), so try re-configuring/re-installing both.

For the GPU, try this: sudo apt-get install xserver-xorg-video-intel (You may need to get rid of the existing one)

As for Flash, the Steam option instructions can  be found here, and the standard player version can be found on Adobe's website.

NOTE: I have heard of Flash issues on Chrome for Linux before, you can read a detailed support document here off Adobe's help site.

Restarting the machine in both cases is likely necessary.


How can I create a shared folder using command line?

Creating a directory is done with the mkdir foo command.
you could make a new group of users with the addgroup bar command and add root to the new group.
Then you change the owner of the new directory by chown root:bar foo.
Finally set the permissions: chmod 770 foo


Electricsheep Not Working in Raring 13.04

Here's what I did:

Get rid of xscreensaver: apt-get purge xscreensaver
Get rid of old electricsheep: apt-get purge electricsheep
Reinstall by following these directions precisely: http://electricsheep.org/node/51

Warning: This install process is why the software center was invented! ;-) It works but it takes quite a few steps. No need for xscreensaver, unless you want to use other modules. Electricsheep installs as a default screen saver with this installation method.

Good luck!


Through GUI:

Install dconf-editor

sudo apt-get install dconf-editor

Follow paths one by one, Click Set Default button on bottom right edge.

/org/compiz/integrated/show-hud
/org/gnome/settings-daemon/plugins/media-keys/window-screenshot

Using CLI:

dconf reset /org/compiz/integrated/show-hud
dconf reset /org/gnome/settings-daemon/plugins/media-keys/window-screenshot

References:

man dconf
A hint to get where any shortcut is stored, use dconf watch / Then try changing them from System Settings → Keyboard → Shortcuts
Use -f option to reset a path or directory at once, example:

dconf reset -f /org/gnome/settings-daemon/plugins/media-keys/

BTW, for HUD the default shortcut is Alt L, which is the Left Alt, not Alt+L.


HP Mini upgrade from 12.04 to 13.?? failed

You can try running sudo apt-get update && sudo apt-get dist-upgrade and see if it continues the upgrade from where it left off if you can get to a terminal. Since you have no wifi see if you can find ethernet.


How to enable Nautilus in Ubuntu 18.04 to share a folder?

I found my answer here.
So after performing those installation steps mentioned in my question, I next had to type the following commands in the terminal.
First, quit nautilus:
$ nautilus -q

Next, restart nautilus:
$ nautilus

Thereafter, whenever I right-clicked a folder in Nautilus, the Local Network Share option appears.


You should try to get a static display up first, see instructions at How can I get a DisplayLink USB monitor work under Ubuntu?
Then work on improving the primary question on this topic at:
How can I get a DisplayLink USB monitor work under Ubuntu?


Netgear A6210 (Mediatek MT7612U). & Ethernet Realtek RTL8111/8168/8411 devices not found above kernel 5.4.0-42- LTS 20.04.2

This has been fixed in Ubuntu kernel 5.4.0-65
There is a fix released for this bug but I am not sure when a new kernel will have the fix, for now check in terminal mokutil --sb-state as Secure Boot needs to be disabled, then in terminal do
sudo apt install git build-essential
git clone https://github.com/jeremyb31/mt76.git
cd mt76
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
sudo cp mt76x02-lib.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless/mediatek/mt76/
make -C /lib/modules/$(uname -r)/build M=$(pwd) clean
Reboot, if after another kernel update it fails to work do
cd mt76
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
sudo cp mt76x02-lib.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless/mediatek/mt76/
make -C /lib/modules/$(uname -r)/build M=$(pwd) clean


If this router is wireless then the ID and password (or the Key) are written on the back of it. If this is an Ethernet then all you have to do connect your computer to it via a network cable.
Ubuntu by default is set so it will take an IP address automatically form the router (I dont know about that particular moel but most router have DHCP built in which gives IP addresses).
Ubuntu usually comes up and ask if you want to join a wireless network and shows a list pick your router enter the info and in few sec, you will have Internet.


Getting an error when I do sudo apt-get upgrade

You have some old kernel(s) from a previous Ubuntu release installed that cause(s) compatibility issues when DKMS tries to compile kernel modules for it. You should delete them.

Start with

sudo apt-get purge -f 'linux-*-3.19*'

and/or see How do I remove old kernel versions to clean up the boot menu?.

Apt may refuse to delete these packages because of unconfigured packages (because a kernel module couldn't be compiled for them). In that case please update your question with what you tried to do and any error messages encountered in the process and ping me in the comment section of this answer.


A JavaScript error occured in the main process while trying to run GeoGebra 6 Portable

This fix worked for me :

sudo touch /usr/share/geogebra-classic/resources/app/ggb-config.js

for the same error with geogebra-classic_6.0.400.0-201711172340_amd64.deb version, found here.

source : https://help.geogebra.org/topic/geogebra-classic_6-0-400-0-201711172340_amd64-deb-is-broken


Menus and icons don't display on Kubuntu

This could also be the outcome of a Java OpenJDK7-bug.
Possible reference:
Question 697515 Graphical Issues with Kubuntu


This comment on the forums confirms that the camera works when you're plug it in. The older C500 shows up as supported in Linux on the Logitech page, but unfortunately that page hasn't been updated for the C510.

However mrubli from Logitech posts on their forum:

  All these cameras are UVC compliant and work well on Linux.

So you should be good to go with support; as far as being able to encode with the GPU and all that you might want to split those off into seperate questions so we can get down to specifics.

I personally have had great success with Logitech webcams in Linux and I can do Cheese, Skype, and Google Talk, etc with an older Quickcam STX, if you end up with this webcam please leave a comment on how well it works!


How to setup pulsaudio to stream to other pc?

Solved it.

For some reason the server settings done in paprefs were not saved to /etc/pulse/default.pa.

Uncommented in /etc/pulse/default.pa on the server:

load-module module-esound-protocol-tcp
load-module module-native-protocol-tcp
load-module module-zeroconf-publish

Now everything works fine.

Thanks for your help!


There are 2 solutions you have for solving this:

1) Install steamos xpad patch: http://ppa.launchpad.net/mdeslaur/steamos/ubuntu/pool/main/s/steamos-xpad-dkms/

2) Install Xboxdrv:

2.1) Easy installation for Ubuntu:

sudo apt-add-repository -y ppa:rael-gc/ubuntu-xboxdrv
sudo apt-get update
sudo apt-get install ubuntu-xboxdrv

2.2) Without using other repos:

sudo apt-get install xboxdrv
sudo gedit /etc/modprobe/blacklist.conf

Add "blacklist xpad" to the end of the file, and reboot. Afterwards to start xboxdrv just type in "sudo xboxdrv --silent --mimic-xpad" in terminal.


It looks like your encrypted swap is no longer encrypted. Encrypted swap typically shows up as Unkown in GParted, so if it didn't, something went wrong somewhere. Assuming you don't need encrypted swap and normal swap will do, you can do this:

Edit /etc/fstab, delete the line mentioning /dev/mapper/cryptswap1.
Uncomment the line just above it: remove the # at the start of the line, before UUID=d7f4327f-7c60-494e-9425-6462faecdd96. Save and exit.
Edit /etc/crypttab. Delete the contents. Save and exit.

Now, enable swap:

sudo swapon -a

Test if it worked:

swapon -s


Is there an image and video viewer like on smart phones in Ubuntu?

You can use gThumb. gThumb can view images and play videos directly.

Install it with the command

sudo apt install gthumb

Take a look at its project page https://wiki.gnome.org/Apps/gthumb


Is it possible to reconfigure web server after phpmyadmin installation?

I've found on google at page 3 how to see my actual phpmyadmin conf and then reconfigure it:

See current config:

sudo debconf-show phpmyadmin

And then, reconfigure it:

sudo dpkg-reconfigure phpmyadmin

I didn't need to reconfigure my dbs, so I've hit no and then web server selection has appeared to be reconfigured.


How do I install Ubuntu on a Windows XP laptop with no boot disk?

Sure. Ubuntu could download an XP image, and burn it to a CD. It could even create a bootable USB stick with either XP or Ubuntu on it, so you could use it to repair the XP installation.


Why does my laptop freeze and restart unexpectedly on its own at random times?

Once I ran into the same problem, Ubuntu 14.04 restarted on its own. The reason why that was happening was that the ISO from which I installed it became corrupt when transfered to the USB stick I meant to use. It could install Ubuntu, but not properly. My solution was trying a new download and doing a fresh install again using a different stick.

Hope that helps, although you probably had thought that already!


Fresh Ubuntu 13.04 installed, login not working

I have had something similar happen to me. Look in your home directory using ls -al. There should be a file called .Xauthority (its a hidden file). If this file is owned by root this could be causing your problem. You can fix it by using sudo chown <username>:<username> .Xauthority to regain ownership of the file or you can rename it mv .Xauthority .old.Xauthority and a new file with correct ownership will be created when you login. When I had this problem this worked for me, hopefully it works for you.


You have enabled the saucy-updates repository, however clearly the above two links don't make any sense, since saucy (13.10) can't match with xenial (16.04).

You need to edit your /etc/apt/sources.list/ and comment out the two lines that caused you to get the E: Failed to fetch error messages by inserting a # character at the beginning of both of the lines that start with: http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/.

From the terminal run the following command to edit /etc/apt/sources.list/ with nano text editor:

sudo nano /etc/apt/sources.list

The instructions for using nano editor are always found at the bottom of every page. The only two nano keyboard shortcuts that you need to know are for WriteOut and Exit. Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Press the keyboard combination Ctrl+X to exit nano.
Update your software sources.

sudo apt update


Error on apt-get upgrade and install runit package

runsvdir is the application included by runit to launch the assigned service directory (i.e.: /etc/runit/service/default ). This should be ran independent of upstart/sysvinit/systemd/openrc with runit and runit-init or as a helper service by the runsvdir-start shell script or configuration file for Runit. It works in conjunction with runsv and sv and is not supposed to be classed as unknown.


Difference between "daily-live", "daily-preinstalled" & "daily"?

daily-live:

  The desktop CD allows you to try Ubuntu without changing your computer at all, and at your option to install it permanently later. This type of CD is what most people will want to use.

daily:

  The alternate install CD allows you to perform certain specialist
  installations of Ubuntu. It provides for the following situations:

  setting up automated deployments;
  upgrading from older installations without network access;
  LVM and/or RAID partitioning;
  installs on systems with less than about 384MiB of RAM (although note that low-memory - systems may not be able to run a full desktop
  environment reasonably).

daily-preinstalled:

  The preinstalled-desktop image allows you to unpack a preinstalled
  version of Ubuntu onto a target device.

  There are five images available, each for a different type of
  computer:

  Texas Instruments OMAP3 preinstalled desktop image
  Texas Instruments OMAP4 preinstalled desktop image
  Freescale i.MX5x preinstalled desktop image
  Texas Instruments OMAP3 (Hard-Float) preinstalled desktop image
  Texas Instruments OMAP4 (Hard-Float) preinstalled desktop image

daily and daily-live are available in:

PC (Intel x86)
64-bit PC (AMD64)
64-bit Mac (AMD64)
Mac (PowerPC) and IBM-PPC (POWER5)


Creating a GTK theme, but Qt and Java apps are not affected, and title bar button layout is ugly

A usually problem whith Gnome,
Its a gnome-centric or GTK-centric. If Qt programs are nice in a Gnome, is for Qt, not for Gnome.


how to share a folder between windows 10 and an Ubuntu which is installed on virtual box?

I assume that Windows 10 is the Host system for Virtualbox and Ubuntu is the guest.  If that is the case:

You may use the "shared folders" feature from the Guest Additions to provide this functionality. (Obviously this means that Guest Additions must be installed in the guest.)

Under Devices in the top menu, select Shared Folders and Shared Folders Settings.  Click on the green folder with a plus on it on the left of the screen and browse to the folder on the Host you wish to share. Once located, tick the boxes for your chosen options Read-only, Auto-mount, Make Permanent.  If you wish to use the folder in the future, I suggest ticking Auto Mount and Make Permanent.

There is one additional step that is sort of hard to find to make this work.  You must add your user to the shared folders group in the Ubuntu guest and reboot it.

sudo adduser [username] vboxsf


Seems like a good idea, but I don't think it would be widely used. For one, I'm pretty sure that programs compiled for Linux don't run under HURD. This would force people to change their system with a clean install. Not many people want to do so. This leaves new users. Most new users don't know much about this system, so why would they use the not-quite-ready HURD system over a Linux system that everyone here won't shut up about? The only way people would use this is if they can set up dual-boot and use their old programs without a clean install (it would have to be a quick sudo aptitude install hurd-kernel).

I was reading about GNU HURD and its advanced structure, Debian is deploying DEBIAN GNU HURD and it would be very interesting to se how it works as a desktop system althou it is "still" (about 15 years) in developement and still not production ready (missing support for a lot of hardware - no sound support).

more info about HURD can be found on wikipedia or on http://www.gnu.org


apt-get tries to get InRelease which does not exists anymore

Well, lots of things have been tried, many times. Last attempt to fix it by renewing /var/lib/apt/lists/* worked. I don't know why, because it didn't worked previously...

Nothing more to explain, sorry.


Download a file from a share download link with wget

I found a solution: https://superuser.com/a/1239026
It's an firefox plugin that captures the link with session ID etc..
and it provides a command you could paste in the console for curl or wget.

If anyone has a better suggestion please let me know.


The system browser in the phone/tablet images is based on the Chromium Content API, and so is roughly the same experience as one would have with Chromium.

If you wish to use Chromium as a legacy X11 app, you should be able to install it inside the legacy apps container with Libertine, in the same way that Firefox/Libreoffice are available.

Google does not provide generic ARM builds of Chrome, so the proprietary Chrome browser version will not be usable.


Photofilmstrip not starting on Ubuntu 20.04

I have found a solution by installing the deb version 3.7.3-1 of photofilmstrip for groovy on UbuntuUpdates.org. It works for me on Linuxmint 20.


access to Canon i-Sensys MF645 scanner via network

With some help I found the solution (Ubuntu 18.04): What I forgot was to upgrade after adding the external repository:
sudo add-apt-repository ppa:rolfbensch/sane-git
sudo apt-get update
sudo apt upgrade

This seems the be the decisive change. The firewall can actually be disabled:
% sudo ufw status
Status: inactive

No changes have to be made to config files in /etc/sane.d. (I cannot say whether installing the two Canon packages or the group membership is important since I didn't revert these steps.)
Then xsane starts and seems to works fine with the Canon i-Sensys MF645Cx.
The only strange thing was a flood of error messages when xsane started such as Cannot adopt OID in UCD-SNMP-MIB: .... I followed the advice on colord errors in /var/log/syslog in 18.10 and installed the package snmp-mibs-downloader using sudo synaptic (plus another package that was added as a dependency). Then the messages disappear.


Fastest way to read help on not installed program (I'm Feeling Lucky)

There's also dman from the bikeshed package.

sudo apt-get install bikeshed

It lets you read manual pages from the internet, without the need of installing the corresponding packages:

dman remind


How to return status 301 on port 80 without webserver

You can use netcat as a very simple web server:

yes | xargs -i printf 'HTTP/1.0 301 Moved Permanently\nLocation: http://example.com\n\n' | sudo nc -k -l 80


No sound from headphones on Ubuntu 18.04 with Realtek ALC668

I solved this issue:

Check device configurations in Pulseaudio volume control

pavucontrol -t 5

If you are not using Built-in input device, change it from duplex to output

Also change any webcam/microphone to input only and reduce playback devices.

Maybe you'll find the nvidia card is detected in there but set to off.

For the output switching when plugging in USB mic, check what Pulseaudio modules are loaded:

pactl list short modules

There might be module-switch-on-connect showing in 18.04.


Ubuntu 14.04 : wifi, change DHCP to static

By default, your interfaces are assigned their address by Network Manager.

Network Manager is incompatible with /etc/network/interfaces.

So, Ubuntu solves it like this. If an interface is not mentioned in /etc/interfaces at all, it is left on the hands of Network Manager.

With Network Manager, you can use Ubuntu's graphical utilities to configure it...

Click on the Control Gear, then select System Settings.
Click on the Network folder.
Options.
IPv4 Settigs tab.
Manual method.
Make sure the Available to all users is checked.
Set the fields as you desire.

On the other hand, it you desire to use the /etc/network/interfaces method, just add the correct lines as appropiate. Network Manager will see that you have configured it, and will refuse to touch it with a 10 foot pole.

Note however that it is enough for you to mention an interface on the configuration files for Network Manager to react like this.


How to Block a range of IP address with UFW

I don't think there's anything wrong with the syntax of your command (either of the ufw command itself, or the bash loop - although it would be good practice to quote the $line variable i.e. ... from "$line" to any ...).

The ERROR: Bad source address error indicates a problem with the address string itself, and we can guess that it might be due to DOS-style CR-LF line endings - which you were able to confirm by opening the chinaiprange.txt file in nano

The solution is to fix the line endings, using any of the well known methods such as:

running your file through the dos2unix command
using tr or sed - for example sed -i 's/\r$//' chinaiprange.txt
opening the file in vi and executing :set ff=unix followed by :wq to re-save


How to remove kubuntu-desktop completely?

Yes, this command will remove kubuntu-desktop completely. Even if it says 41 kb of data will be removed, a lot of it will actually be removed. But there is a problem: KDE will be removed, but other programs installed with it will not.

I suggest that you look for every program that came with kubuntu-desktop and remove them one by one. That is the most safe way (KDE programs usually have a 'K' in the beginning of their names).

A pro tip: whenever you want to test a Desktop Enviroment, do not install it as recommended in most guides. Google for  core/minimal version. The core or minimal versions come only with the desktop, no extra software, making it way simpler to remove afterwards. These versions take a lot less disk space, too. For example, you can install 'xubuntu-core', for XFCE, 'lubuntu-core', for LXDE, 'ubuntu-desktop --no-install-recommends' for Unity, etc., etc.


How to update my ubuntu desktop from 12.10 to 15.04?

Two issues:

1) 12.10 is a Short Term Release.

Upgrading on Short Term Releases is less reliable than doing fresh installs.
Upgrading on Long Term Releases such as 10.04, 12.04, and 14.04 is however perfectly fine and supported.

2) 12.10 is an old release, and no longer officially supported.

Support ended long ago in 2014:
It is very likely that even if you could some how get this to upgrade, that you will have severe issues with stability. I am speaking from experience.

It is recommended that you do a fresh install of the Ubuntu Operating System to replace a short term release. Instructions can be found here:

http://www.ubuntu.com/download/desktop


Change the site configuration file to block listing out files in the directory - apache2 + Ubuntu

In the appropriate <Directory> stanza. For instance it may look like this:

<Directory /www/somefolder>
    Options Indexes FollowSymLinks
    AllowOverride None
</Directory>

Change this into

<Directory /www/somefolder>
    Options -Indexes FollowSymLinks
    AllowOverride None
</Directory>

If there is no Options... line, you can add one with the content Options -Indexes for any <Directory...> stanza. The options are separated by a space ().

Note the - in front of Indexes. This is also covered briefly in the Apache documentation.

The index are generated by mod_autoindex.


Why don't I have permission to copy to my ext4-formatted external drive?

reformat the drive using diskutility , And make sure that you cheked 'take the owner ship of the file system' check button


If you would like a gui tool I would recommend you use gparted

This is a great tool to easily manage all you partitions.
You can resize, format, delete, etc.

To install type this into the command line

sudo apt-get install gparted

To run type this

sudo gparted

Now you would probably need to shrink your NTFS partition (the one with Windows)

Right-click on it and select resize or move.

Now drag the slider to make space for your new EXT4 partition

Click the resize or move at the bottom to apply changes.

Now right click on the empty space and select new

Now choose EXT4 as the partition and click add

Finally after you have properly formatted your drive with all of its partitions, click the green tick at the top to apply changes.


Where/how do I get chrome for ubuntu 16.04

You can visit this link, or, go to google and search for "chrome".

Click the download link, and choose your required version (64bit deb).

You can save it, and then afterwards open the file in Nautilus, or, just choose "Open File" with your current browser to open it with your package installer.


Update manager: "Could not download all repository indices"

Several possibilities:

Your internet connection is spotty or went down during the update.
The repository's internet connection is down.
The You've added repositories that are no longer maintained.

You can try

a) deselecting the repositories that are causing you trouble.

b) selecting a different location for the main Ubuntu repositories.

c) a combination of a and b.

I'd try (c). In dash, type Software Updates and click on it.


How do I reset the network adapter using a terminal command?

If you really want to reset the network adapter you usually need to unload and reload the kernel module that it uses.

If you just want to reconfigure it you can usually do:

sudo /etc/init.d/network-manager restart

But if you just want a new dhcp lease (that's the technical name for obtain a new IP from the router), you just need to use:

sudo dhclient -v eth1


By trying the answer of Senio I had no luck.
But with little modification I hit the jackpot :

sudo -i
xhost +SI:localuser:lightdm
su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-user-backgrounds 'true'
gsettings set com.canonical.unity-greeter background 'path-to-image'
exit

path-to-image is actually the path where the image you want as log in screen wallpaper is stored e.g. : /usr/share/backgrounds/x.jpg

I tested it and it's working

I found this page which offers some tips regarding this problem :
Ubuntu13.04 LighDM


Shutdown fails after upgrading from lucid to maverick?

There are 3 (or more?) ways to turn off a computer, and not all of them work with all hardware.  Apparently on your girlfriend's PC the wrong method is chosen in Maverick.

Best you can do is file a bug against the kernel with the following command (run on the computer with the problem—it will collect necessary info about the hardware, the kernel, etc.):

apport-bug linux

And answer the questions & explain the problem on the Launchpad site when asked for it.


Cronjobs from centos to Ubuntu, having hard time

The underlying issue is that source is a Bashism - which is a problem in Ubuntu because the default shell for cron is /bin/sh - and that resolves to the dash shell.

The best way to handle that depends on a number of factors IMHO. The fix that you found elsewhere using command -v bash to run your command explicitly with the (fully qualified) bash shell is one option (although as noted in heemayl's answer, you missed the -c before the command string; based on the syslog entry

Jan 13 12:11:01 crawler2 CRON[2906]: (crawler2) CMD (-v bash)"  'source /home/crawler2/env/bin/activate && cd /home/crawler2/project_spiderahridderkerk && scrapy crawl spiderahridderkerk')

it actually looks more like your crontab entry was

01 22 * * * "($command -v bash)" source /home/crawler1/env/bin/activate && cd /home/crawler1/project_spiderrooy && scrapy crawl spiderrooy > /home/crawler1/online/flask/static/logs/spiderrooy_log_$(date '+\%Y-\%m-\%d').txt 2>&1'

such that ($command -v bash) expanded to ( -v bash) which attempted to execute -v bash in a subshell as well, rather than running command -v bash inside a command substitution).

In practice, it's unlikely (given cron's rather restricted default argument) that plain bash is going to resolve to anything different from $(command -v bash), so IMHO plain bash -c '. . .' or /bin/bash -c '. . .' would also be acceptable.

In comments, you noted your own solution was to add SHELL=/bin/bash - personally I have no problem with that: if you are concerned about the overhead of bash versus dash you can always limit the scope to a particular entry or group of entries e.g.

# default shell
*/3 * * * * /bin/echo "Job 1 run with \$SHELL=$SHELL" >> $HOME/crontab.log

SHELL=/bin/bash
*/5 * * * * /bin/echo "Job 2 run with \$SHELL=$SHELL" >> $HOME/crontab.log

SHELL=/bin/sh
*/7 * * * * /bin/echo "Job 3 run with \$SHELL=$SHELL" >> $HOME/crontab.log

results in

$ tail -f ~/crontab.log
Job 1 run with $SHELL=/bin/sh
Job 3 run with $SHELL=/bin/sh
Job 2 run with $SHELL=/bin/bash
Job 1 run with $SHELL=/bin/sh
Job 1 run with $SHELL=/bin/sh
Job 2 run with $SHELL=/bin/bash
Job 3 run with $SHELL=/bin/sh

Finally, if /home/crawler1/env/bin/activate is in fact a POSIX script (or can be made so relatively easily) and the remaining commands in your job are either binary executables or scripts with their own valid shebang lines, then you could simply change the source command to its POSIX-equivalent . such that everything runs in the default dash shell.


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

If you want it to be executed on double click, go to Nautilus > File menu > Preferences > Behavior,  and change the preferences there: set "Executable Text Files" either to "Run executable..." or to "Ask each time" (thanks to Pablo for improving the answer).


I solved it by temporarily disabling my UEFI Secure Boot in the BIOS, instead of signing the kernel modules.

Then I could uninstall it with:

sudo apt-get purge virtualbox-6.1:amd64

And everything went OK. Then, I enabled my Secure Boot again.
(If you want to know, It didn't solved my boot time)


After upgrade, the system does not start

If your desktop is completely stuck, you can press alt+ctrl+f1, which will present you with a text login. Enter your username and password, and enter the following command: killall gnome-session. That should bring you back to the login screen. If it doesn't, try: killall -9 gnome-session. Only use the latter if the former doesn't work. That way, you're logged out cleanly.

Once you're at the login screen, select your user, but don't log in. At the bottom of your screen, you will see something called Sessions. Click it and select Ubuntu Classic. This will present you with the shell used in previous versions of Ubuntu, and that should work. I'll also mention that in 11.10, we have Unity 2D which is almost as good as Unity, but better suited for older hardware.


aero snap left and right in metacity ubuntu 14.10?

You can use
Ctrl+Super+left or Ctrl+Super+right


The service is listed as disabled.

Have you tried running:

 sudo systemctl start mysql
 sudo systemctl enable mysql

To start and enable the process?

It's weird that it would be disabled as it is enabled and started by default on most Ubuntu installations (and you can see in your output: vendor preset: enabled). BTW which Ubuntu version are you running? If this does not fix the problem, please list the output of systemctl status mysql and sudo journalctl -u mysql.service as suggested already, after running the above commands.


Is it safe to force shutdown when on grub screen?

Absolutely no problem.
There are virtually no operations current on your hard disk (if any!), so there aren't any files on your hard disk that will be messed up by having the computer shut down suddenly.  In fact, shutting down the computer with the power button is the recommended method on Ubuntu forums (when the computer is in grub).


Which latest version of ubuntu is suitable for my old system?

I think you might like to try Lubuntu, which is intended for lower-powered computers like yours. See this question: How much faster is Lubuntu?


How can I install Railo and Apache on Ubuntu and have it pass a basic Authentication username to Railo?

So, I finally figured it out. Like it said, it took me at least a week to get this. So, I'm sharing my notes on how to set up a fresh machine for this, so no one else has to spend as much time as I did figuring this out. The key thing seems to be that you want to proxy to railo using the AJP protocol instead of HTTP and you want to tell tomcat that it doesn't need to do authentication (which will let it pass the variable through untouched).

Let's get started:

apt-get install apache2 mysql-server apache2-utils
a2enmod proxy_ajp
service apache2 restart

.

Install Railo:

Download the standard installer 64 bit version listed on the page at http://www.getrailo.org/index.cfm/download/.

Make it executable:

chmod +x <file_you_just_downloaded>

Run it:

./<file_you_just_downloaded>

Pick all the defaults.

.

Ok, now edit the config files like this:

=== modified file '/etc/apache2/apache2.conf'
--- /etc/apache2/apache2.conf 2014-10-10 00:22:11 +0000
+++ /etc/apache2/apache2.conf 2014-10-10 00:27:48 +0000
@@ -223,18 +223,24 @@
<IfModule mod_proxy.c>
<Proxy *>
Allow from 127.0.0.1
+
+ AuthType Basic
+ AuthName "Employee Login"
+ AuthBasicProvider file
+ AuthUserFile /etc/apache2/.htpasswd
+ Require valid-user
</Proxy>
ProxyPreserveHost On
- ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ http://127.0.0.1:8888/$1$2
- ProxyPassMatch ^/(.+\.cfchart)(/.*)?$ http://127.0.0.1:8888/$1$2
- ProxyPassMatch ^/(.+\.cfml)(/.*)?$ http://127.0.0.1:8888/$1$2
+ ProxyPassMatch ^/(.+\.cf[cm])(/.*)?$ ajp://127.0.0.1:8009/$1$2
+ ProxyPassMatch ^/(.+\.cfchart)(/.*)?$ ajp://127.0.0.1:8009/$1$2
+ ProxyPassMatch ^/(.+\.cfml)(/.*)?$ ajp://127.0.0.1:8009/$1$2
# optional mappings
#ProxyPassMatch ^/flex2gateway/(.*)$ http://127.0.0.1:8888/flex2gateway/$1
#ProxyPassMatch ^/messagebroker/(.*)$ http://127.0.0.1:8888/messagebroker/$1
#ProxyPassMatch ^/flashservices/gateway(.*)$ http://127.0.0.1:8888/flashservices/gateway$1
#ProxyPassMatch ^/openamf/gateway/(.*)$ http://127.0.0.1:8888/openamf/gateway/$1
#ProxyPassMatch ^/rest/(.*)$ http://127.0.0.1:8888/rest/$1
- ProxyPassReverse / http://127.0.0.1:8888/
+ ProxyPassReverse / ajp://127.0.0.1:8009/
</IfModule>

=== modified file '/etc/apache2/sites-available/000-default.conf'
--- /etc/apache2/sites-available/000-default.conf 2014-10-10 00:12:20 +0000
+++ /etc/apache2/sites-available/000-default.conf 2014-10-10 00:31:59 +0000
@@ -26,6 +26,13 @@
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
+ <Directory /var/www/html>
+ AuthType Basic
+ AuthName "Employee Login"
+ AuthBasicProvider file
+ AuthUserFile /etc/apache2/.htpasswd
+ Require valid-user
+ </Directory>
</VirtualHost>

Using the htpasswd program, create a .htpasswd file in /etc/apache2 If you want some sites to be authenticated and some not, you can put the proxy section inside the virtual hosts definition and tweak as necessary per virtual host.

Edit /opt/railo/tomcat/config/server.xml

=== modified file '/opt/railo/tomcat/config/server.xml'
--- /opt/railo/tomcat/config/server.xml 2014-10-10 00:34:48 +0000
+++ /opt/railo/tomcat/config/server.xml 2014-10-10 00:36:33 +0000
@@ -89,7 +89,7 @@
-->

<!-- Define an AJP 1.3 Connector on port 8009 -->
- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
+ <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" tomcatAuthentication="false" />
+ <Connector port="8010" protocol="AJP/1.3" tomcatAuthentication="false" secure="true" scheme="https"/>

<!-- An Engine represents the entry point (within Catalina) that processes -->

Restart Railo/Tomcat:

/opt/railo/railo_ctl restart

Now, Railo should put the basic auth username in cgi.remote_user. I thought I might have to try putting something that copies that to #REMOTE_USER# in localconfig/application.cfm. But that already seems to be the same thing. The second AJP connector on port 8010 is for you to proxy to from SSL enabled virtual hosts in Apache. So if you have a SSL enabled virtual host, proxy to port 8010 instead of 8009. That way, Railo will set variables that lets the ColdFusion it's running know it's using SSL.


Can GRUB be installed to separate drive that doesn't contain a Linux system?

Yes, it can.  When I first installed Linux (before I switched to Ubuntu), I had a full HDD with Windows and several storage partitions, and a smaller drive with room for Linux.  Since the system booted from the Windows drive, when I installed Linux, GRUB went on the Windows drive.  That was what's now called Legacy Grub, and worked fine, but it will also work with GRUB 2.  All that's required is that Grub be on a bootable partition, your system's startup ROM knows to boot from the volume with GRUB, and GRUB must have the correct volume identification (UUID is most reliable) for each system it will launch.


Why not put the same cycle inside?

#!/bin/bash

while :
do
echo "Main Menu:"
echo -e "\t(a) More Menu Options "
echo -e "\t(b) Exit"
echo -n "Please enter your choice:"
read choice
case $choice in
    "a"|"A")
    while :
    do
    echo "Secondary menu"
    echo -e "\t(c) Print this menu again"
    echo -e "\t(d) Return to main menu"
    echo -n "Please enter your choice:"
    read choice1
    case $choice1 in
        "c"|"C")
        ;;
        "d"|"D")
        break
        ;;
            *)
            echo "invalid answer, please try again"
            ;;
    esac
    done
    ;;
    "b"|"B")
    exit
    ;;
        *)
        echo "invalid answer, please try again"
        ;;

esac
done

There is also select command which creates menus:

select i in ant bee cat
do
    echo $i
    break
done

Let's run it:

$ select i in ant bee cat; do echo $i; break; done
1) ant
2) bee
3) cat
#? 2
bee


Normally the first few hard disks would appear in sequence (/dev/sda for the first, /dev/sdb` for the second, etc).

A likely source of extra entries are card readers - there appears to be a variety of card reader architectures, some of which emulate an open USB port when no media is inserted, and some which emulate an empty device. In the latter case, you may have a number of /dev/sdX devices corresponding to card readers.

You can look in gparted (graphical partitioning tool) or use dmesg | grep sda in a terminal to look for information about how your system detected each disk. For a hard disk, you should see some lines like:

[    2.877980] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)

(indicating /dev/sda is a 2TB hard disk). Repeat for sdb, sdc etc.

Providing you ensure that you are installing on/partitioning the disk you intend to, what it is called should not matter.


Using indicator-appmenu in maximized mode only

I'm afraid that's not possible right now.


Reinstalling GRUB 2 from a Working System

If Ubuntu is operating normally, boot into the working installation and run the following command from a terminal.

X is the drive (letter) on which you want GRUB to write the boot information.OP you placed your SSD /dev/ in the command. If you want to know that , after connecting your SSD to Ubuntu machine type df -h there you can find your SSD /dev/ code.

sudo grub-install /dev/sdX  # Example: sudo grub-install /dev/sda

This will rewrite the MBR information to point to the current installation and rewrite some GRUB 2 files (which are already working). Since it isn't done during execution of the previous command, running sudo update-grub after the install will ensure GRUB 2's menu is up-to-date.


Ubuntu not starting after running script for brightness

The command you used is this:

$ echo 5 > /sys/class/backlight/acpi_video0/brightness

Here the number after echo (5 in this case) is the brightness level. If you keep it too low then obviously you won't be able to see anything except black screen. Just increase the brightness of your PC by pressing the physical button for brightness increase and then after you login edit the command to increase the brightness level to maybe 20 or 30 or more, according to your needs. The new command will look like this:

$ echo 30 > /sys/class/backlight/acpi_video0/brightness


What kind of PGP key does ubuntu 2016 come with?

About your questions:

Ubuntu 16.04.3 LTS comes with GNUPG (GNU Privacy Guard) and the specific version can be found in the list of packages per distro.

  GnuPG is a complete and free implementation of the OpenPGP standard as defined by RFC4880 (also known as PGP). GnuPG allows you to encrypt and sign your data and communications; it features a versatile key management system, along with access modules for all kinds of public key directories. GnuPG, also known as GPG, is a command line tool with features for easy integration with other applications. A wealth of frontend applications and libraries are available. GnuPG also provides support for S/MIME and Secure Shell (ssh).

This text was extracted from its official website.
You can verify your GNUPG version by introducing the following commands:

apt policy gnupg gnupg2

The output of the first command will contain something similar to this:

gnupg:
  Installed: 1.4.20-1ubuntu3.1
  Candidate: 1.4.20-1ubuntu3.1
gnupg2:
  Installed: 2.1.11-6ubuntu2
  Candidate: 2.1.11-6ubuntu2

The 2nd way to get the version that you're using is with this command:

gpg --version # or gpg2 --version for gpg2

The output of this command will contain something similar to this:

gpg (GnuPG) 1.4.20 <--[HERE IS THE VERSION].
Copyright (C) 2015 Free Software Foundation, Inc.


How to move active window to another display in XFCE

XFCE does not have a built-in command that allows you to move a window to another monitor, however there is this Python script that can do that.

The script is used as:

movescreen.py <up|down|left|right|prev|next|fit> [win_id|mouse]

First, make sure the script's dependencies are satisfied:

sudo apt install python xrandr xwininfo wmctrl xdotool

Download the script and move it to the folder that you want, for example ~/scripts/ (I am assuming this as the script's folder for the next steps, you may, however, use whatever you want).
Give executable rights to the script:

chmod u+x ~/scripts/movescreen.py

Open Keyboard and select the Application Shortcuts tab.
Click the Add button at the bottom left.
In the Command pop-up window enter the command to move the window, using the absolute path to the script. For example, to move the window to the monitor left, enter:

/home/<your_username>/scripts/movescreen.py left

Press OK and assign the shortcut you want, for example Ctrl+Super+Left.
Repeat the steps for all other directions.

The script is not perfect, but works reasonably well. Also, being built in Python means that it is relatively easy to tweak it.


If you are using Virtual PC then go to Tools/Settings on the left you will see two columns setting and current Value. Go to the Networking setting.. On the right you are now able to choose your Adapter. Open drop-down and choose your Adapter. should be the name of your Ethernet Port something like Broadcom Gigabit Ethernt etc. After that you should be able to get updates.

Hope this helps :)


Ubuntu 16.04 LTS very slow at everything - How to fix?

There's an excellent chance that your problem was caused by the upgrade from 14.04 to 16.04.  An operating system is a complex beast, with thousands of components, and Ubuntu runs on a staggering variety of hardware configurations; it's impossible for the writers of the upgrade script to test the script against all the variations of hardware and software found in the field before releasing it.  The upgrade script seems simple and convenient, but it causes lots of problems, and unfortunately many people don't seem to know how dangerous it can be.  (Don't feel bad, I learned the hard way too.)

I'm sure that you'd prefer a targeted fix that neatly solves your problem, but if the root of the problem is a flawed OS installation, then you might be forced to use a blunter instrument: wiping the hard drive, and installing 16.04 from scratch (after backing up all your important files, of course).

Here's the outline of how to do it:

In a terminal, do aptitude search '~i!~M' > ~/top-level-packages-before.txt.  (You'll need the aptitude package, if it isn't installed.)  This creates a file containing a list of all the installed packages, not including dependencies.  (Kudos to this answer.)
If you don't have /home in its own partition, back up the entire /home hierarchy.  Also back up /etc/X11/xorg.conf, if it exists, and /var/www if you use your computer as a web server.  Back up /usr/local/bin, if you have local scripts in there.
If you dual-boot another OS, then boot to an Ubuntu install DVD or USB stick, choose "Try Ubuntu", run GParted, and use it to delete the Ubuntu partitions (except the partition that mounts /home, if /home has its own partition).  If you're not dual-booting then skip this step, because the Ubuntu installer needs to see how the computer boots.
Install Ubuntu.  Use the installer to wipe out any partitions from the old Ubuntu installation that weren't wiped already, except the partition that mounts /home, if /home has its own partition.
Copy your important files from the backup to the new installation.  Unfortunately lots of programs pollute your home folder /home/<username> with junk (type Ctrl+H in Nautilus to see the hidden files and folders; that's where most of the junk is), and copying old config files blindly can cause problems, so you should probably just copy what you need, rather than restoring every last file.
Install aptitude if it isn't installed, and do aptitude search '~i!~M' > ~/top-level-packages-after.txt.  Restore ~/top-level-packages-before.txt that you created in the first step, if you haven't already.  Do diff ~/top-level-packages-before.txt ~/top-level-packages-after.txt to compare the two files, or use diffuse (kudos to this answer) to discover which packages were installed previously that aren't now.  Consider installing those packages.

By the way, many people choose to have /home mounted in its own partition, because it makes installing a new version of the OS from scratch easier.  (The popularity of this approach with experienced users shows that many people have come to distrust the upgrade script.)  If you're taking my advice and installing the new version of Ubuntu from scratch, you might choose to give /home its own partition while you're installing Ubuntu, just to make the process easier next time.  If for some reason you want to move /home to its own partition before installing Ubuntu from scratch, then there is a procedure to do so, but it's a lot of work, and in my opinion it's easier to move /home to its own partition as part of the process of installing the new version of Ubuntu from scratch.

The gist of this answer is borrowed from this Ubuntu forums thread, which has more information.  Good luck.


Your laptop model has hybrid graphics system. In linux both the graphics card is on all the time and causing overheat and reduced battery life.

If your system has graphical multiplexer, (change grphics card in BIOS) You can use vgaswitcheroo mechanism of kernel to turnoff it. But this feature is available in newer kernel. I recommend you to upgrade ubuntu to 12.04.

Read more:

https://launchpad.net/~hybrid-graphics-linux

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

http://linux-hybrid-graphics.blogspot.in/2012/01/improved-support-for-amd-hybrid.html

http://ubuntuforums.org/showthread.php?t=1930450


I have a question about the [multiple] screensaver app(s) I have installed

xscreensaver and xfce4-screensaver are two different screen saver and locker apps. xfce4-screensaver is listed as recommended package for xubuntu-desktop since 19.10 and that is why it was installed in the upgrade. However, there are some issues with xfce4-screensaver in Xubuntu 20.04 (and maybe in 19.10, too). Can you tell there, if the following bugs affect you?
https://bugs.launchpad.net/ubuntu/+source/xfce4-screensaver/+bug/1876602
https://bugs.launchpad.net/ubuntu/+source/xfce4-power-manager/+bug/1877556

If you want to use less experimental software, you could uninstall xfce4-screensaver and use light-locker or xscreensaver, instead.


You can disable mouse acceleration this way.

Create a file /usr/share/X11/xorg.conf.d/50-disable-mouse-accel.conf with this content

Section "InputClass"
    Identifier "My Mouse"
    MatchIsPointer "yes"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
    Option "AccelSpeed" "-1"
EndSection

and restart session.


nfs-kernel-server installation : file does not exist

Try:

apt-get purge nfs-kernel-server
apt-get install nfs-kernel-server


you could look into using Wine (a windows emulator) and install itunes to that. Then, I believe, you could transfer the mp3s from itunes to your pc. (I could be wrong here though, because I don't use Apple products and am not 100% sure as to how iTunes completely works).


A. the commands you entered do not install reaver, just download it's source code.

B. if you really installed reaver from source code, you can remove it by downloading the tar (the second commend you stated), decompress it (run tar xf reaver-1.4.tar.gz) enter the src directory (cd reaver-1.4/SRC) and run sudo make distclean.

This will remove any file created by reaver installation on your system.


Intel graphics installer for Ubuntu 14.04

Most Intel integrated cards don't require a driver to work. If you can get to Ubuntu Desktop then it means your card is working properly.


DHCP Discover ethernet frame check sequence incorrect

As you can see from here this is kernel issue, try to manually update the kernel.
Work fine with next:

uname -r
4.15.18-041518-generic


You should automount /dev/sda2 at system startup.
You can achieve this in two ways,the GUI or terminal(edit /etc/fstab)
I'll take you through GUI
Go to Disks (gnome-disks)
Tap on /dev/sda2
Select "Additional partition options"
select "Edit mount options"
Uncheck "User session defaults"
Check "mount at system startup" and "show on user interface"
Select "Okay" and enter password when prompt.
Reboot.


I assume that gnome-terminal relies on it

No, that's a false assumption. GNOME Terminal uses its own built-in list of encodings.

I recommend to define two GNOME Terminal profiles which only differ in their Encoding (under the Compatibility tab), and switch between these profiles (e.g. using the right-click menu).

Another possibility is to have an intermediate layer that converts between encodings, whereas GNOME Terminal still works in UTF-8. luit is such a piece of software, but screen (and presumably tmux, not sure about that) also have options to convert between encodings.

  but "locale -m" still outputs 236 charmaps, like MAC-CYRILLIC for example, which I really don't need

You can never be sure which ones a piece of software you're running actually needs. Whereas for locales it's absolutely fine to only have English and French available on your systems, you shouldn't try to get rid of charmap definitions. For example, browsers might need them whenever the webpage you're visiting is sent in that encoding.


Video from webcam showing black screen in kazam screen recorder

Try to drag and drop recording on Google Chrome to check if the recording is actually black or not. In my case in VLC Medi player was playing recording as black screen but it played like a normal video in Google Chrome.


Moving folder and subfolder to another path

The mv command doesn't have an -R flag, it moves folders recursively:

sudo mv fromPath/ toPath/

Edit

If you want a file not to be replaced, use the -i for being prompted in case a file with the same name exists.


Benchmark it. There are maufacturer performance numbers. If you hit those, you know it's working.

In short, install fs_mark and dbench, run them and compare those to known values.


MySQL script does not stop, reboots mysql

Open /etc/init/mysql.conf and comment out the respawn lines:

# respawn
# respawn limit 2 5


Check BambooInvoice or SimpleInvoices. They are both free, open source, web based invoice mangers. You will need to host them on your site or you will need to setup a LAMP server on your machine. If you don't need a server for anything else and won't be allowing external access to it, then you can use XAMPP, which is pretty easy to setup.

Demos:

BambooInvoice | SimpleInvoices

BambooInvoice

SimpleInvoices


"Possible missing firmware" message while fixing Plymouth splash screen

Do you have an intel graphics card?

This message means that a kernel module (i915) need a firmware file, but it can't find it.

If you do not use the i915 module or your graphics card does not use this particular firmware, you can ignore the error.


You can back up windows 7 to an other drive, but windows does not like to run  from it.  It is a lot more easy to put Ubuntu on an second drive and run it.  I am assuming you are talking about an external hard drive.  If you have the space you, can partition your drive for Windows and Ubuntu. Ubuntu needs 5 to 10 gb to install, but you should give it as much as you can.  Back up Win 7 first and then you can use Ubuntu's installer to partition your primary drive, or to install Ubuntu to the secondary drive.  Please backup first, and read carefully the installers questions.  Primary drive should be label sda, and secondary will be sdb.  Good luck.


How can I prevent hibernating if CPU usage is above say 40%? (Plex, Couchpotato, Transmission)

I had a similar problem, I needed the backup server to stay awake for a long backup before suspending to ram.

You can use Keep.Awake https://launchpad.net/keep.awake.
However it doesn't work yet with hibernate and only works with suspend to ram.

I will be updating the program to allow hibernation as well in the near future.
There's still no snap or deb package because I haven't gotten around to packaging it up but you can download the program here.
Just uncompress and run the python3 program.

It works like a proper command. Type --help to see a full listing of what can be done. The examples underneath are only a few:

./keepawake.py --help

To run interactively:

./keepawake.py

To run as a background service:

nohup ./keepawake.py -r > /dev/null 2>&1 &

To run as background service and set 15 min (900 sec) as the user activity idle time before it determines that the user is idle:

nohup ./keepawake.py -u 900 -r > /dev/null 2>&1 &

To run as background service and set minimum CPU load as 13%:

nohup ./keepawake.py -c 13 -r > /dev/null 2>&1 &

To run as background service and set minimum network traffic as 5KB (5120 bytes):

nohup ./keepawake.py -s 5120 -r > /dev/null 2>&1 &

To run all three settings above (network, CPU, User idle) in the one go:
nohup ./keepawake.py -s 5120 -c 13 -u 900 -r > /dev/null 2>&1 &


Run the bash script every time when command lines are executed

You need to set PROMPT_COMMAND variable. From man bash:

PROMPT_COMMAND
              If set, the value is executed as a command prior to
              issuing each primary prompt.

For example, this will write current date into /tmp/PC every time a command is executed:

 $ PROMPT_COMMAND="date > /tmp/PC"


Add to your .bashrc or run at a prompt:

PS1='\W: '

For background information, run man bash and search for PROMPTING.


From the menu at the top of the screen, you can choose Go -> Network.

You can also type the address in manually:

Press ctrl + L
Enter the location network:///
Press Enter


How to switch between 12 and 24-hour time in Ubuntu Touch?

It's actually a missing feature till now. It is supposed to be fixed with upcoming OTA-13 update. As a bad workaround you may try switching the display language (UK English shows 24-hour clock, while US English shows 12-hour clock as I remember).


There is a patch for the VirtualBox code here:
https://www.virtualbox.org/pipermail/vbox-dev/2019-July/015297.html

It patches the following files:
/usr/share/virtualbox/src/vboxhost/vboxdrv/r0drv/linux/mp-r0drv-linux.c
/usr/share/virtualbox/src/vboxhost/vboxnetflt/linux/VBoxNetFlt-linux.c

After applying the patch (which required some manual work for me), I ran 'sudo /sbin/vboxconfig' and everything worked.


The solution is quite simple.

Temproarily connect to internet and run in a terminal:

sudo apt update
sudo apt install linux-generic-hwe-18.04

Reboot.

That will install the 5.3 kernel. It supports this wireless adapter.


How do I find logs that report the cause of a system crash?

You can look at the logs leading to the last boot with

journalctl -b -1 -e

Of course, read man journalctl first.


How to change Calendar settings to start with Monday?

Google Calendar allows you set the day on which the week begins...


Clearing accumulated dotfile clutter in $HOME

Although ~/.config is large:

$ du -hs ~/.config
155M    /home/user_name/.config

You will probably find the largest is ~/.cache:

$ du -hs ~/.cache
1.4G    /home/user_name/.cache

You can delete ~/.cache when no applications are running and sections of it are rebuilt as need be. There are some caveats raised by other users though:

Is it okay to delete the ~/.cache folder?

You definitely don't want to delete ~/.config which some users confuse with ~/.cache.

Caches exist in other places:

How to Free Up a Lot of Disk Space on Ubuntu Linux by Deleting Cached Package Files


How do I force Gnome Commander to use VLC instead of Movie Player by default?

This feature is currently broken in GNOME Commander.

Since GNOME has changed to follow the freedesktop.org standard of handling mimetypes, the editing of preferred programs in GNOME Commander is currently broken (v 1.1.7). We do have this in our TODO file, but until GCMD can handle edititing of preferred programs, there are two other ways of managing this on user basis; use nautilus or manually edit the configuration files that controls mime types in your home directory. Using Nautilus for doing this can feel quite awkward for GNOME Commander users, we usually do not use GNOME Commander because we like using Nautilus." - GNOME Commander

Here is how to do it manually: https://gcmd.github.io/doc.html#mime


No unity after login to main user account

install unity-tweak-tool
terminal : sudo apt-get install unity-tweak-tool

reset unity by running this command :     unity-tweak-tool --reset-unity


Ubuntu One v2 for Windows doesn't install or run properly

Ok, that looks like you are getting a 500 error from the ubuntu one server when trying to retrieve your account information (let it be account info, which devices you have, or shares and folders).

I'd say we should file two different bugs for this issue:

That dialog is a horrible user experience.
We should take a look of why your are getting that 500.

I have filled bug 1 but I cannot fill bug 2 for you. Can you please go to the bugs page  and explain the steps you followed and zip the folder in C:\Users\%your_user%\AppData\Local\xdg

Please do make sure that you mark the bug as private until we make sure that there is no important data there.


Asus G73gj Fan runs full speed all the time.

Suppose you have already configured lmsensors by running sudo sensors-detect answering yes to insert detected modules into /etc/modules

Now load your modules, install and configure fancontrol:

sudo start kmod
sudo apt-get install fancontrol
sudo pwmconfig

Set your interval to something between 1 and 4 seconds when running pwmconfig. Run: sudo service fancontrol start


"skype: symbol lookup error: skype: undefined symbol"

This is not a complete answer, but at least a workaround:

Run skype from the commandline, manually making sure it is pointed to the i386 libraries:

LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu/ /usr/bin/skype

This is assuming you have the skype:i386 package installed (it sounds like you do).

The real solution still eludes me, but may be different depending on the machine...

The problem has to do with the current transition to multiarch (which allows libraries of different architectures on the same install - such as i386 and amd64.)

The skype installed from Ubuntu Software Centre is skype:i386 and needs to link against i386 versions of libaries. What I suspect is that somewhere along the line it loads an amd64 library instead of the i386 version.  (Perhaps a broken install left over from an old package, or badly-packaged 3rd party product?)

Iwan


I had the same problem once before. Did you install any new programs or updates, or a new kernel version Here is the answer. "Most possible a bug, sound similar to Unity doesn't load, no Launcher, no Dash appears. Here is the link Unity doesn't load, no Launcher, no Dash appears


how to get cpu usage percentage on ubuntu

You should add the numbers that I circled. You get one value, for one second. Then, you do that for all other seconds, and get the average number, by adding all those numbers(for each second) and devide that number by the number of seconds. So, the sum of circled values is one value, which is used to calculate the average.


The information is stored in /etc/cups/printers.conf and you can use http://localhost:631 to set it up.

If you're going to copy the configuration between machines, watch out that you also need to copy the directory /etc/cups/ppd/ and possibly copy the drivers themselves (e.g. for Brother printers that's in /opt/brother), unless they're shipped as part of CUPS.


Trying to mount/unmount USB drives so that their contents can be seen in a docker container while it is running

I know the question is old, but a solution would be using bind-mounts and setting the "bind propagation" to "shared".

Example:

docker run --name mycontainer -it --mount type=bind,source=/some_folder,target=/some_folder,bind-propagation=shared ubuntu bash

More info about bind-propagation: https://docs.docker.com/storage/bind-mounts/#configure-bind-propagation


Set temporary environment and/or path in Ubuntu

The easiest solution:

PATH=/opt/hdf5/hdf5-1.8.21/hdf5/bin:$PATH <your-special-case-program>

Make a shell script or a .desktop file easy launch.


can't minimize Firefox in 13.04 (LiveDVD)

Uße this as a guide to report a bug if thats the case

How do I report a bug?

But its probably the CD, try burning another copy


updated - PPA has been updated with oneiric support - no longer need to edit software sources with natty repo

to install

sudo add-apt-repository ppa:ferramroberto/sopcast

Run in a terminal:

sudo apt-get update
sudo apt-get install sopcast-player

Note - see this bug report for 64bit workaround if required.

The start sopcast:


Can not connect to Windows HomeGroup and Internet at the same time

This sounds to me, from the information that you provided, as if your internet connection is in some way changing the IP address of the network interface that you use to access your homegroup.

This would happen if you are using any form of a dial-up technology, or if your router device is not in fact on the same IP range as the Windows 7 machines.

Without more information regarding your network setup, this is roughly as far as I can speculate for now...


How to show ascii art at the top of the terminal when it's opened?

Open your terminal with CTRL+ALT+T and type as

nano ~/.bashrc

There type as

echo " Hi Zignd" then close and save it.

then type this command to reload bashrc .

source ~/.bashrc

You will what you want.

for example :I made my self.


How do I save a modified buffer for video resolution uncommented?

That is normal behavior – Nano asks you about filename under which to save file. So just press Enter and it will save the file.

For exiting Nano, press Ctrl+X.

Also, do not forget to mount / filesystem in Read-Write mode:

mount -o rw,remount /


I have the same problem, but the touchpad works if I boot the laptop after disconnecting the power cable, unplugging the battery and waiting for a while. The touchpad stops working if I shut down the laptop, but works still after a reboot.


No Audio when booting from Windows or vice versa

It is a known bug with the I2S Audio Interface.

For the moment there is no workaround. Just wait for the bug to be fixed (let's hope for Ubuntu 16.04).


Can't boot into GUI after removing Ubuntu Desktop to get pure Lubuntu

Its possible you removed the lightdm, which is the login window. This is what gets you into any flavor of Ubuntu, its where you login. Try reinstalling this. And, the apache2 has nothing to do with this problem, thats a whole nother problem completely. You most likely removed as well, many key files...I would back up your files using a live boot and re-install lubuntu, purely...


How to keep your terminal running when laptop lid is closed

you have 2 ways to do it:

you can use one of the real terminal in front end by type ctrl+alt+F1
you can deactivate the action on lid close on power setting. this will allow your laptop to run even the lid is closed


Help starting Unity via Exceed on Demand

3D composited desktop managers like Unity, Gnome 3 and KDE 5 are not supported by the current version of Exceed on Demand. A new application software from Opentext called TurboX supports 3D desktops. So, all users should upgrade to the new one.
Details available here

  Exceed (with Exceed 3D) does not work well with GNOME 3.8+ or other 3D
  composited desktop environments. The session may fail to launch and
  the connection will consume a large amount of network bandwidth. The
  same problems affect all remote X servers.

  Exceed onDemand™ cannot launch GNOME 3.8+. This problem affects all X
  servers based on older versions of the X.Org codebase.


Ubuntu 14.04 - icedtea-6-plugin:i386 : Depends: icedtea-netx:i386 (= 1.5-1ubuntu1)

try this

  sudo -i

dpkg -i --force-overwrite /var/cache/apt/archives/icedtea-netx_1.5-1ubuntu1_i386.deb

apt-get autoremove

apt-get update

apt-get upgrade


"Corrupted shell" after cryptdisks_start

It's a bug that's only been fixed in the 14.10 version of cryptsetup, see https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1301086

I modified the setup to use a key file as the problem comes from askpass that is handling the interactive password.


You don't need solve LSB problem... install driver directly and then add printer (automaticaly).

See https://askubuntu.com/a/763268/238367


Recover files from one drive from a raid1 array

If your main goal is to recover the files, I would first try the accepted solution at stackexchange. It is read-only so it sounds safe enough. Replace /dev/sdb1 with the name of the partition on your drive. Use parted -l to figure out the latter.


How to fix GRUB default booting Windows XP instead of Ubuntu?

Use your Live CD and boot from it. Next download this:

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

This is what you are going to get:

Follow the instructions here : https://help.ubuntu.com/community/Boot-Repair


I do not know about actual support, but if the question is whether memory is allocated to the graphics, then at least on my laptop with Intel i3 processor and HD4000 graphics that does happen.

On Ubuntu 12.10 and 1.8 GiB of my total RAM is always reserved for the graphics (unfortunately leaving only 2.1 GiB of memory to use). I have not seen any sign of it changing dynamically, ever.

The behaviour on Ubuntu seems to match the behaviour on Windows 7 (on Windows 7, the Resource Monitor reports 1853 MB of being "Hardware Reserved").

My laptop BIOS does not have settings related to this, so I have no control over this. Personally I would like to allocate less memory to the graphics, since currently it only leaves 2.1 GiB to use.


Using Ubuntu Software Center seems to force my laptop to a black screen then reopens login screen

You need to add the output of some of your logs to gauge possible issues.

A good start is the dmesg log.

Type the following to get the last 2000 lines of the log, if the problem occurred more than a day ago 2000 lines might not be enough lines. Ideally you do this after the problem occurs so we have a snapshot of the most recent issue.

dmesg | tail -n 2000 > output.txt

This will generate a file called output.txt

Instead of adding that output to your question use Ubuntu paste bin http://paste.ubuntu.com/ which will give you a link that you can paste into your question


Can I upgrade from Windows 7 to Windows 8.1 with ubuntu 13.10 already installed?

Yes, you can, but keep in mind, that there is quite chance that Windows will overwrite Master Boot Record during upgrade process and hence disable GRUB, so you will have to reinstall GRUB after that. Beside that, you Ubuntu installation will remain intact.

I you need instruction how to fix bootloader, look into the last section of my GRUB2 Cookbook quick memo.


Not able to upgrade from 16.04 lts to 18.04 lts

Upgrades from LTS releases are scheduled after the first patch - 18.04.1 which is usually a month after the first release. THey need to make sure everything goes smoothly and then the software manager will allow it.

If you're anxious, which based on my experience you shouldn't be cause there are probably tons of bugs, you can still force that upgrade, but that's not recommended.

sudo do-release-upgrade -d

What I would recommend is a fresh (format) install, since anytime you upgrade you'll face incompatibility issues.


Ended up figuring out the issue with trial and error. I ended up having to reinstall a fresh copy of Jetpack, install the correct pipversion, and download the RPi.GPIOlibrary, then everything worked!


How can I receive an update notification for new versions of installed Flatpak applications?

GNOME Software will notify you of available Flatpak and DPKG updates if you install the Flatpak backend (apt install gnome-software-plugin-flatpak). This is installed by default in most Linux distributions with GNOME Software; except Ubuntu since they want to promote Snap instead (gnome-software-plugin-snap).


How to reinstall Ubuntu with UEFI in a correct way?

If there's already an efi partition, you do not need to do any thing. Just mount it to /boot/efi. Then installer should do everything for you.

For me, sda3 is \efi and sda8 is /boot,
so what I need to do is

mount /dev/sda8 /boot
mkdir /boot/efi && mount /dev/sda3 /boot/efi

finally it looks like:

housezet@arch: ~
$ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 931.5G  0 disk
├─sda1    8:1    0   260M  0 part
├─sda2    8:2    0   1.5G  0 part
├─sda3    8:3    0   260M  0 part /boot/efi
├─sda4    8:4    0   128M  0 part
├─sda5    8:5    0 845.1G  0 part /home/win
├─sda6    8:6    0   392M  0 part
├─sda7    8:7    0  33.9G  0 part
├─sda8    8:8    0   500M  0 part /boot
├─sda9    8:9    0  19.5G  0 part /
├─sda11   8:11   0    27G  0 part /home
└─sda12   8:12   0     3G  0 part [SWAP]
sr0      11:0    1  1024M  0 rom

and

housezet@arch: ~
$ ls /boot
efi  initramfs-linux.img  vmlinuz-linux

For 'msftres' flags, refer to this question:
Is it safe to format msftres, msftdata and hidden partitions?


"Invalid video format" after installing Ubuntu

We first need to find out if your system recognizes the current resolution. If it does then perhaps we can force it.

Run the following commands in the terminal.

sudo apt-get install xresprobe
sudo ddcprobe

This should reveal the supported resolutions.

Then find out the name of your interface, like VGA1 or HDMI1 etc. as an example I am using HDMI2.
Also make note of the Resolution and refresh rate. (I assume you know these already).

Now issue this command:

xrandr

Now replace the resolution and refresh rate in the command below with your own.

gtf 1920 1080 59.9

From the output copy every thing after the word "Modeline"

What you copy will be something like this: "1920x1080_59.90" 172.51 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync

Having done that run this one after another in Terminal using your outputs.

xrandr --newmode "1920x1080_59.90"  172.51  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync

xrandr --addmode HDMI2 "1920x1080_59.90"

xrandr --output HDMI2 --mode "1920x1080_59.90"

This should give you your desired monitor resolution. This is only temporary.

To make this permanent you will have to write a script and save it as follows:

mkdir ~/Scripts
gedit ~/Scripts/fixresolution.sh

This will open a blank document with gedit. Add following to the document and save it:

#! /usr/bin/env sh
xrandr --newmode "1920x1080_59.90"  172.51  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync
xrandr --addmode HDMI2 "1920x1080_59.90"
xrandr --output HDMI2 --mode "1920x1080_59.90"

Now to load this file at each start-up run following in terminal:

chmod +x ~/Scripts/fixresolution.sh
sudo ln -s ~/Scripts/fixresolution.sh /etc/X11/Xsession.d/45fixresolution

Try restarting with your wide-screen and see with xrandr if it is using 1280x1024.
If it is then use your old dell monitor and see if it works.

Good Luck


New installation of 12.04 unable to find autorun

I solved the problem. It seems the Roxio image burner for Windows doesn't set the disc up right, so I used isoburner and the CD loads perfectly. Ubuntu 12.04 then installed perfectly from the newly burned disc. Thanks for your advice.


processing lots of images which have their names stored in a csv file from terminal

echo ",subDirectory_filePath,expression
0,689/737db2483489148d783ef278f43f486c0a97e140fc4b6b61b84363ca.jpg,3
1,392/c4db2f9b7e4b422d14b6e038f0cdc3ecee239b55326e9181ee4520f9.jpg,6
2,468/21772b68dc8c2a11678c8739eca33adb6ccc658600e4da2224080603.jpg,6
3,944/06e9ae8d3b240eb68fa60534783eacafce2def60a86042f9b7d59544.jpg,3
" |  sed -r '1d;s/,(.*\.jpg),.*/\1/' | while read f; do echo "copy $f to dir/$f"; done

1d; deletes the first line (headline).
s/from/to/ substitutes the filename with prefix postfix to a pure filename.
The while-Loop echos a copy command but could do the copying as well instead.

Maybe the directory names do not exist (689, 392, ...). If you want to flatten the file hierarchy, that is possible to, but might lead to overwritings. cp --parents generates the parent dir(s) if they don't exist, afaik.

Working on the path directly would look like

sed -r '...' modified_training_for_FER2013.csv | while ...

Using 12 processors won't help much, afaik, since the bottleneck should be File-IO, harddrive usage.


How do I add unallocated space to another partition

Your unallocated space is living on a Extended (Another) partition.

Get a backup from /dev/sdb5.
delete /dev/sdb5.
delete /dev/sdb3.
Get a backup from /dev/sdb2.
Resize (Extend) /dev/sdb2.
Create a new "2G" primary partition (instead of your old /dev/sdb5).


Perform some operation as soon as eth0 is up

AFAIK, you must to place your script in /etc/network/if-up.d/ directory:

sudo cp /path/to/your_routine /etc/network/if-up.d/

Then add the following line after you defined eth0 interface in /etc/network/interfaces file:

post-up /etc/network/if-up.d/your_routine

where post-up command run command or shell script after bringing the interface eth0 up (see man interfaces for more info - somewhere at the line 149).

Here is an example about how the /etc/network/interfaces file should look after you edited it:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
name Ethernet LAN card
address 192.168.10.1
netmask 255.255.255.0
broadcast 192.168.10.255
network 192.168.10.0
gateway 192.168.10.254
post-up /etc/network/if-up.d/your_routine
# some more interfaces
auto eth1
iface eth1 inet dhcp
# ...

After these changes, restart the networking service:

sudo service networking restart


Picking a torrent application for a server

OpenVPN should be transparent to the application, so it should work regardless of which client you choose.

Personally I use transmission(-daemon). It has a well written interface with both web, stateless command line and ncurses command line interfaces. It is also very easy to set up.

It works great for me at least ;)


"This script starts an http server on a specific port and I can launch a comand from outside network."

Are these two things related?
Can you elaborate?

The IP's you shared are all private.
How is this traffic going to get to your server from the outside world (if that is even what you want).
You might consider that firewalls are more than just traffic blockers anymore.
I use iptables to control traffic direction on my linux router.
Squid caches much of my static traffic making my connection seem faster than it really is but iptables listens for traffic on a particular nic and port and forwards it on as needed.
Disabling ufw was a good test but you might see if ufw can do port forwarding which is what it sounds like you need.
On your server, run the relevant "ip" command to see if there is a service listening on port 2020.
For example, "ip addr" will display your ip addresses and nic info.
There is another "ip" command that will display ports that are being listened to and which of your IP addresses is doing the listening.


Redirect stdout to a file and stderr to another file

That's simple. Use the following command:

find /proc -type d 2> errors.txt > directories.txt

or

find /proc -type d 2> errors.txt | tee directories.txt

More obout:

BASH Programming - All about redirection


hp pavilion dm4-1160us black screen while booting

when the purple screen showing press enter and its setup 9.10.Before installition start press F6 and there is a new menu.In the menu select "nomodeset" and setup ubuntu normally.


How do I remove the Twitter icon from indicator-messages?

In order to remove unneeded indicators from the Messaging Indicator you can:

a) Delete or move somewhere items from /usr/share/indicators/messages/applications/ (sudo is needed).

b) Non-destructive way: make symlinks to each undesired item in the blacklist folder ~/.config/indicators/messages/applications-blacklist/ (you should create it beforehand if it is absent). For example, to remove Gwibber (Twitter client) you should run in terminal:

ln -s /usr/share/indicators/messages/applications/gwibber.indicator ~/.config/indicators/messages/applications-blacklist/gwibber.indicator


Having similar issues, I downloaded and installed the drivers from Nvidia itself.

http://www.nvidia.com/download/driverResults.aspx/75821/en-us  (for your model)

Follow their instructions to-heart, especially the part of not running X when installing (try "init 3") and everything should work as expected.

Hope it helps!


Package appears upgradeable but cannot upgrade

Nothing should happen since this:

dotnet-runtime-2.0.0/xenial 2.0.0-1 amd64 [upgradable from: 2.0.0-1]
dotnet-runtime-2.0.0/zesty,now 2.0.0-1 amd64 [installed,upgradable to: 2.0.0-1]

two lines are both saying: 2.0.0-1, run sudo apt update to update your package index.


So I am finally able to see HBO nordic on my computer.
I followed the instructions in the last post on this question:HBONOW on Ubuntu 16.04LTS
that is installing playonlinux from the repository. The simplest solution I've come across. Though it in the end just installed pipelight I asume it has a constant version of it, and probably the one I downloaded from the repository isn't working on my laptop or something.


autounlock luks encrypted drives upon startup with keyfile

This is done in /etc/crypttab, something very similar to /etc/fstab

Just have a look at the man page.

So a line like that would do it.

myzfs UUID=e758456d-eb80-4eea-947c-9ac914643b61 /root/mykeyfile luks

where the UUID is the uuid of your LUKS volume, that you can find with blkid.

The unencrypted LUKS volume is available at /dev/mapper/myzfs. The name you gave to it above, in crypttab

Don't forget to add a line in /etc/fstab

/dev/mapper/myzfs /where/to/mount/it  fstype defaults  0 2


Log in here to download the Debian-package
After logging in, you should also find your serial key there
After successful downloading the package, double-click on it
Ubuntu Software Center should start and as if you trust this package
Click the install button
After installing, play the game

I hope this helps


Is it possible to install LXD directly on a Ubuntu Snappy Core?

LXD is now packaged as a snap and updated reasonably often to match new upstream releases. You can install it with:

sudo snap install lxd

More details here too:

https://stgraber.org/2016/10/17/lxd-snap-available/
https://linuxcontainers.org/lxd/getting-started-cli/


Trouble downloading packages list due to a "Hash sum mismatch" error

Just remove all the content of /var/lib/apt/lists directory:

sudo rm -rf /var/lib/apt/lists/*

then run:

sudo apt-get update


login phpMyAdmin to MySql getting error in Ubuntu 18.04 kubernetes nodes

You are defining PMA_HOST=mysql as an environment variable on your PHPMyAdmin deployment, so make sure to have a service using this name, and use the proper selectors to match the MySQL deployment.

For example, apply the following service:

apiVersion: v1
kind: Service
metadata:
  name: mysql
  labels:
    app: mysql
spec:
  ports:
  - port: 3306
    targetPort: 3306
    protocol: TCP
  selector:
    app: mysql

Then you can log in using the following credentials (as per your secret):

  User: root
  Pass: demo


"Reboot or select proper boot device" Error after install Ubuntu on Win 8 Drive

Issue was solved using a utility called efibootmgr. I had to run this to remove the windows efi boot partitions. I hope this can help someone else avoid the headache I went through trying to solve this issue.


Windows 10 / Linux Dual Boot - Boot-loader Problems

The reason for my problems was that Windows Fast Boot was turned ON. I turned it off by going to Control Panel->Hardware and Sound->Power Options->System Settings and deselecting Turn on fast startup under Shutdown Settings. Grub has been loading flawlessly for the past five days and their have been no conflicts between Windows and Linux.


CPU Scaling in Unity with indicator-cpufreq

It may be an icon issue.  Try running the following:

sudo gtk-update-icon-cache /usr/share/icons/ubuntu-mono-dark
sudo gtk-update-icon-cache /usr/share/icons/ubuntu-mono-light


How to change the icon of a .jar file/application

Right click on that file and choose properties. In the opened dialogue click on the box shape and in the new window choose your new Icon.


Enable Num Lock At Login Screen For Lubuntu

This is now easily available in Lubuntu 20.04.2 LTS: Start Menu > Preferences > LXQt settings > Keyboard and Mouse > Keyboard. Then check the box "Turn on NumLock after login".


If you run ifconfig, what do you see with the original .yaml? My expectation is that your IP address is rendered as 10.46.0.5. Or are you even able to ping an outside address with the original .yaml file (as it looks strange to me).

I would try something along the following:

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: false
      dhcp6: false
      optional: true
  bridges:
    cloudbr0:
     interfaces: [eth0]
     addresses: [10.46.0.5/16]
     gateway4: 10.46.0.1
     nameservers:
       addresses: [1.1.1.1, 8.8.8.8]
     dhcp4: false
     parameters:
       stp: false
       forward-delay: 0

For Ethernet, all that is really required is to set DHCP to false and optional to true; this allows for your new bridge config to set up the network and the optional setting will prevent Linux from waiting during boot for eth0 to fully activate (since it won't, as we're configured in the bridge).

From here I've made a best guess at your desired IP address and gateway. Not really sure how it would work with letters in it (though I'm no networking expert), as I don't believe IPv4 should allow for letters.

Once done, save the file and run:

sudo netplan --debug generate


Run find /search/dir -user root and check it lists the appropriate files.

Automatically changing system files from root ownership will do bad things to your system, so make sure this only finds files you want to change.

Then sudo find /search/dir -user root -exec chown myuser {} \; will change the ownership of those files.


FYI, you can install ati proprietary graphics drivers through apt-get. First, perform all system updates and upgrades before you begin:

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

reboot

Then, run the following commands:

sudo apt-get update
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo

Alternatively, and to set back to default, you should be able to open
"additional drivers" in your system settings. Wait a few moments for the drivers to be detected. Then, it should list the available, in use, and recommended proprietary and opensource drivers available.

The default drivers are the opensource drivers.

source


There is a screenshot tool in the livecd. Click the button in the top left to open the dash - start typing screenshot - it should appear. If you can't find it then the PrtSc button will take a whole desktop shot.

To get a shot of the partitions there is no need to start the install procedure - search for gparted in dash and take a shot of that instead.


Grub rescue: broken system not rebooting

/boot/efi/ is just a mount point for the EFI system partition, simlinking it has not effect on space. and may be what caused the failure of updating shim.
Check available space in (hd1,gpt1).

Assuming that (hd1,gpt1)/EFI/Ubuntu/grubx64.efi or (hd1,gpt1)/EFI/Ubuntu/shimx64.efi still exists, try copying the contents of /boot/grub/ from your install CD to (hd1,gpt2)/grub/. and see if it will boot.


No brightness control in Ubuntu 12.04, Lenovo V570

I had the same problem on my ThinkPad x240 running Ubuntu 14.04, and created a script that outputs and lets you step brightness up or down.

This assumes that the manual method of putting a number into /sys/class/backlight/intel_backlight works, so test that first:

sudo tee /sys/class/backlight/intel_backlight/brightness <<< 500
sudo tee /sys/class/backlight/intel_backlight/brightness <<< 300

The script is here:

https://gist.github.com/emning/5d3301a3f3c9420414f7

Save it as 'brightness' somewhere in your path, make it executable and run:

brightness
brightness up
brightness down

You can also bind these commands to shortcut keys, even the standard brightness keys seem to work fine. I used Custom Shortcuts in KDE, but any desktop environment should work.

NOTE: For this to work when using shortcut keys, sudo without password has to be enabled for your user.


Any news about a Grooveshark scope for the Music lens?

Yes!  To install the Grooveshark lens in Unity open a terminal (Ctrl+Alt+T) and enter the following commands:

sudo add-apt-repository ppa:scopes-packagers/ppa
sudo apt-get update
sudo apt-get install unity-scope-grooveshark

Found on http://www.webupd8.org/2011/11/grooveshark-scope-for-unity-music-lens.html

"David Callé has released a Grooveshark scrope for the Unity Music lens which lets you search for music on Grooveshark from Dash. The new scope uses the free Grooveshark API and clicking on a search result opens a new tab in your default browser, playing the selected song.

According to David, there are a few known issues though, such as:

the results open in different tabs and aren't enqueued
results in the local collection are not deduplicated
some searches don't display any results due to some encoding errors
sometimes cover art isn't displayed the first time you search for something"

Thanks to Andrew and David


Of course each situation will be different, but I just had this same thing happen with a USB flash drive. It's one I'd had for several years, and I would often have to unplug/replug it several times to get it to work. This time it wouldn't work at all.

My solution was to clean the contacts of the drive with rubbing alcohol. After that it worked perfectly.

In case it helps, here are a few of the errors I was getting:

[47908.871713] usb 3-1: can't set config #1, error -71
[47924.750591] sd 5:0:0:0: [sdc] READ CAPACITY failed
[47924.750678] sd 5:0:0:0: [sdc] Asking for cache data failed


Open the terminal and type:

sudo apt update
sudo apt upgrade
sudo apt install apt apt-utilslibapt-inst2.0 libapt-pkg5.0 libdrm-amdgpu1libdrm-intel1libdrm-nouveau2libdrm-radeon1libdrm2libgl1-mesa-drilibgl1-mesa-glxlibglapi-mesa

If any of these packages need to be upgraded the third command will upgrade the obsolete version packages to the current version. Otherwise the third command will do nothing if all the packages are already the latest version.