Dual run Ubuntu 14.04 64 bit on non- virtualization supported processor

Yes, but you'll need to shrink the windows partition (or add another disk) for Ubuntu to install on. If you get the normal Ubuntu media, you can start a Live session from it, without installing. This is a good way to try it out, and verify that it runs fine on you machine.

BTW, if you CPU is not very old, it should support HW virtualization. This is often disabled in the BIOS settings of the machine. Have a look the, and see if you can activate it.


K3b actually works very well once you get use to the program. However if you are looking for a Windows like dvd maker (point and click) I would recommend Open Shoot. Its very easy to use and a more windows program feel.


Sorry for "necroposting" but the problem still persists so I'd like to suggest a workaround for everyone still concerned with Viber appearance.

If you need to run Viber (and some other QT apps) on Linux machine with HiDPI screen, try this:

env QT_DEVICE_PIXEL_RATIO=2 /opt/viber/Viber

QT_DEVICE_PIXEL_RATIO environment variable, if set to 2, will make sure the app looks good on a screen with "proper" HiDPI resolution (i.e. screens with "doubled" number of pixels both on x and y axes). Hope it helps.


ifconfig sets wrong broadcast until ran again

Usually you don't need to specify broadcast. The broadcast address is the last address in subnet. The network mask already specifies the range of the subnet. When you configure an interface, you may set the IP address and network mask only.

The order of the parameters in your command is wrong.

You tell your NIC to set broadcast and netmask before ip address. That's why you run into this problem.

ifconfig sets broadcast and netmask and after that sets the ip address.

IP address 172.23.6.1 is B class of address, more here, and the default network mask is 255.255.0.0. You have to set your broadcast to 172.16.255.255 before setting the IP address.

With the right order of parameters you'll not have that problem.

ifconfig ethX xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.yyy netmask yyy.yyy.yyy.yyy

or

ifconfig ethX  xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy

You don't need to specify the broadcast


Alt-Tab behaviour in KDE 4.8.2 after upgrade to 12.04

You can choose from several different styles for task switching in KDE 4.8. Refer to the first screenshot. In a nutshell, the Wrench button of "Layout based switcher" allows you to customize how to display windows when pressing Alt+Tab.


Tailing Apache Logs - What is the number after the IP address

This is the client port for sure. To link client port and your service port  use for example iptraf.


Your .yaml file is wrong, because you mix NetworkManager and networkd syntax.

The following two .yaml files are for a pure server installation... no Desktop, no GUI.

Your .yaml file should look like this...

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      dhcp4: true

And if you REALLY want to use eth0:

sudo pico /etc/default/grub or sudo -H gedit /etc/default/grub

Search for "quiet splash" and change it to "quiet splash net.ifnames=0"

sudo update-grub

And then use this .yaml...

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: true

Then...

sudo netplan --debug generate

sudo netplan apply

reboot

Update #1:

If you decide to use NetworkManager, and the GUI to setup your network, then you need this .yaml...

network:
  version: 2
  renderer: NetworkManager

Remember to always use the sudo netplan... commands that I gave earlier.


Loading Wi-Fi Drivers by Configuring the Kernel

Your kernel is not supported any more and does not support the wireless adapter. You need to upgrade it. Run in terminal

sudo apt-get install linux-generic-lts-xenial

and reboot.

The wireless adapter should work if you updated the system and have the latest linux-firmware package.


Only real way to default to a Wired connection is to cut on Airplane mode, and then connect the wired connection. I do this all the time, because my wifi in my house could be a lot FASTER!


First Method:

Launch an SSH tunnel

To initiate your SSH tunnel, simply open terminal and connect to your remote server via SSH with the following flags:

ssh -D 8080 -C -N username@example.com

Browse the Web with Your SSH Tunnel (Chrome)

Now, let’s start browsing the web using our new SSH tunnel.

Open Google Chrome
Select the wrench icon on the top right
Select ‘Settings’
Select ‘Show advanced settings…’
Select ‘Change proxy settings…’
Select ‘SOCKS Proxy’
Enter ’127.0.0.1′
Enter port ’8080′
Save changes by selecting ‘OK’

Search Google for ‘my ip’ and take a look at what your IP address is now.

This will launch our SSH tunnel on port 8080 and route all traffic (securely) through the server at example.com.

Exiting the SSH Tunnel

To exit the SSH tunnel, simply disable the SOCKS proxy within your browser.

source

Second Method:

You can do it easily using Shellinabox

Ensure that you have checked Universe Repository

To install

 $ sudo apt-get install openssl shellinabox

Configuring Shellinabox

By default, shellinaboxd listens on TCP port 4200 on localhost.During installation a new self-signed SSL certificate automatically created under “/var/lib/shellinabox” to use HTTPS protocol.

$ sudo vi /etc/default/shellinabox

# specify the IP address of a destination SSH server
SHELLINABOX_ARGS="--o-beep -s /:SSH:172.16.25.125"

# if you want to restrict access to shellinaboxd from localhost only
SHELLINABOX_ARGS="--o-beep -s /:SSH:172.16.25.125 --localhost-only"

NB: replace the ip 172.16.25.125 with yours

Starting Shellinabox

Once you’ve done with the configuration, you can start the service

$ sudo service shellinaboxd start

Verify Shellinabox

Now let’s verify whether Shellinabox is running on port 4200 using “netstat” command.

$ sudo netstat -nap | grep shellinabox
or
# netstat -nap | grep shellinabox

tcp        0      0 0.0.0.0:4200            0.0.0.0:*               LISTEN      12274/shellinaboxd

Now open up your web browser, and navigate to 'https://"Your-IP-Adress:6175"'. You should be able to see a web-based SSH terminal. Login using your username and password and you should be presented with your shell prompt.

source


Cannot login after modifying /etc/environment

This is the kind of "papercut" that has held Linux back for years.  Yes, we can fix it, but we shouldn't even have to waste time on this sort of problem.  But I digress from what you need.

If you cannot login, I'd try these steps in escalation-as-needed order.

Boot to RecoveryMode and attempt your fix.  Success?  Then your done.
If that doesn't work, boot to a LiveCD or Bootable USB (e.g., how you installed Ubuntu in the first place).  Mount the partition that contains the problem file, and sudo edit from there.

Provided you have not encrypted your drive, the latter will work, but is for the more experienced.


I am using UBUNTU 13.04 not able to install airtel 4G LTE dongle

*Goto settings--> network--> and add a new connection named airtel by configuring your network with india airtel configuration *

  then try to connect the data card with that connection


Two of the the shortcuts (in Nautilus) should do what you want already:

Ctrl+T - opens new tab
Ctrl+W - closes current tab

To select the next tab, you can use Ctrl+Page Down. You may be able to edit this by editing the file at ~/.config/nautilus/accels - though it may not be possible to use the Tab key in a shortcut - you need to edit this line:

; (gtk_accel_path "<Actions>/ShellActions/TabsNext" "<Primary>Page_Down")

I think you also need to remove the ;.


Check the serial number of VGA2USB device from ubuntu command prompt

The below command does the job,

dmesg

Example:

[ 9196.128103] usb 1-1.2: Product: Cruzer Glide
[ 9196.128107] usb 1-1.2: Manufacturer: SanDisk
[ 9196.128110] usb 1-1.2: SerialNumber: 200512339104E9136420
[ 9196.203755] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 9196.203866] scsi7 : usb-storage 1-1.2:1.0
[ 9196.203985] usbcore: registered new interface driver usb-storage
[ 9197.205535] scsi 7:0:0:0: Direct-Access     SanDisk  Cruzer Glide     1.26 PQ: 0 ANSI: 5

To get the exact lines,

$ dmesg | awk '/.*Manufacturer: SanDisk.*/ {for(i=1; i<=2; i++) {print; getline}}'
[ 9196.128107] usb 1-1.2: Manufacturer: SanDisk
[ 9196.128110] usb 1-1.2: SerialNumber: 200512339104E9136420

To get the exact Serial Number of your connected USB,

$ dmesg | awk '/.*Manufacturer: SanDisk.*/ {for(i=1; i<=1; i++) {getline; print $NF;}}'
200512339104E9136420

Note: In the above replace SanDisk with your usb manufacturer name.


How to verify the position of characters from the column?

You can match this with a single regular expression (split over multiple lines for clarity). You may need to match case insensitive depending on your input data.

^               # Start of string
[0-9]           # Number
[a-z]           # Letter
[a-z0-9]        # Letter or Number
[0-9]           # Number
[a-z]           # Letter
[a-z0-9]        # Letter or Number
[0-9]           # Number
[a-z]           # Letter
[a-z]           # Letter
[0-9]           # Number
[0-9]           # Number
$               # End of string

Or as a single line

^[0-9][a-z][a-z0-9][0-9][a-z][a-z0-9][0-9][a-z][a-z][0-9][0-9]$


Broken dependencies after installing netatalk

First, you do what it told you to do:

Try 'apt-get -f install' with no packages (or specify a solution).

(This message is from Debian; you should actually run sudo apt-get -f install.)

If this doesn't correct the problem, then do all of the following:

Check /etc/apt/sources.list and make sure you are on a single version (e.g. precise) and haven't tried to mix in sources from e.g. quantal, etc.
Disable any third party PPAs you may be using.
Run sudo apt-get clean.
Run sudo apt-get update.
Run sudo apt-get dist-upgrade.


Generate a random alphabetic character.

tr -cd '[:alpha:]' < /dev/urandom | fold -w1 | head -n1

Generate a random alphabetic string 10 characters in length.

tr -cd '[:alpha:]' < /dev/urandom | fold -w10 | head -n1

Some of the alternative POSIX character classes to use instead of the alpha in [:alpha:] are:

alnum - alphanumeric characters
alpha - alphabetic characters
digit - digits
graph - visible characters
lower - lowercase characters
upper - uppercase characters

Generate random numbers in a specific range (example 1-10).

shuf -i 1-10 -n1

Compared to the first two bash examples, the shuf command offers fewer options for generating random strings , although shuf can be used to generate random permutations.


Just go to System Settings -> Software & Updates and remove the CD from the software sources.

Then you will be able to install everything.


Where can I find Chromium binary tarballs?

All the Chromium builds for different systems are stored here as zip archives.

Binaries for Linux: 32 bit | 64 bit
(It takes a while to load the list)

The latest 64-bit version is located here:

http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LATEST/chrome-linux.zip

Where LATEST is contents of the file located here:

http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE

If you need the 32-bit version, remove _x64 from those links

This allows us to make a script to automatically download the latest build:

#!/bin/bash
CHROMIUM_ROOT="http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64"
CHROMIUM_LATEST=`wget -q -O - "$CHROMIUM_ROOT/LAST_CHANGE"`
wget $CHROMIUM_ROOT/$CHROMIUM_LATEST/chrome-linux.zip


I find the easiest way of resizing and moving is to press the left Alt key and then click anywhere in the window with the first button (move) or the second button (resize). I even completely remove the window decorations to have less clutter on my screen.

If it does not work for you, install ccsm (compiz config settings manager) and enable the plugins "resize window" and "move window". Also, resizing does not work in some laptops where wheel emulation is switched on, for example on Thinkpads wwith a Trackpoint you need to turn it off with the command

xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 0


How can the font size in empathy be configured?

This bug has been reported. However, if you are using the adium theme there is a workaround here.


Terminal appears with much delay when shortcut is used

Temporary workaround discussed in comment 16
https://bugzilla.gnome.org/show_bug.cgi?id=729101#c16

run gnome-keyring-daemon in terminal with no command line options.
Then everything works as normal after entering password to unlock keyring.

On my system I have to open HUD before the password prompt shows up. If I open the HUD before the terminal command, the password prompt dialog shows immediately.

Output of journalctl -f shows
gnome-keyring-daemon[12913]: Gkm: using old keyring directory: ...

Now Solved:
For me and many others the solution to this issue has been to remove dbus-user-session which was added along with a recent install of software that is not needed.  For me, it was added when I installed flatpak

Solution:

sudo apt-get remove --purge dbus-user-session
Reboot

More context is available starting at comment #67 in this thread.
https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1689825


Removing graphics Nvidia/Radeon driver without going headless

To safely switch between graphics drivers, you should switch to the generic Noveau driver. That will remove the old driver while still keeping access to the desktop.

Unless you manually installed drivers, you can switch by opening Software and Sources, and going to the Additional Drivers tab.


You can't really, the Ctrl + C has nothing to do with the graphical environment, it is a much more basic command and involves sending a particular signal (SIGINT).

These can't really be modified by the user. I mean they can, but you would need to modify the source of /usr/src/$(uname -r)/include/linux/signal.h and recompile your kernel probably.

Just don't use Ctrl + C for copy.


Move many large media files from Windows 10 laptop to Ubuntu Server 20.04?

If you just want to do a one-off copy of files rather than using samba mounts just use scp to do remote copy. See man scp but a basic recursive scp command something like:

scp -r user@server:/source/path/files /target/path/files


How can I restore one file from my crashed bacula system

Do you have a volumes with your backups available? If yes, use a bextract utility for that.


Ubuntu 18.10: How do I get the old icons back

Open a terminal and type:

sudo apt install light-themes

to install the old theme and icons. Also install the GNOME Tweak Tool if you haven't installed it yet. Open the GNOME Tweak Tool, and go to the "Appearance" tab. Set "Applications" to "Ambiance", set "Cursors" to "DMZ-White", and set "Icons" to "Ubuntu-mono-light"


Try this:

Open a terminal (Ctrl + Alt + T).
Then type sudo nano /etc/default/grub. It will ask for your password. Type it in.
Around the 11th line, there will be something like: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash". Change it to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
Save the file by Ctrl+O followed by Ctrl+X. Then run sudo update-grub in the terminal.
Reboot and see if backlight adjustment works. If not, undo the changes you did above, by invoking the text editor as in steps 1 and 2.

Hope it helps.

Works for Acer Aspire v3-571,Acer Aspire v3 571g,Hewlett Packard Bell EasyNote TS,Acer Aspire 4755G,Acer Aspire 5750-6866, Acer Aspire 5739, Lenovo T540p


Failed to create Ubuntu virtual machine in Oracle Virtual Box on Windows 10

Considering the solution from this thread is for Insider Preview builds ( which I am on, and it fixed my issue ), even if you run on a stable w10 version, you could try disabling the following features from "Turn Windows features on or off":
Application Guard
Credential Guard
Device Guard
<any> Guard
Containers
Hyper-V
Virtual Machine Platform
Windows Hypervisor Platform
Windows Sandbox
Windows Subsystem for Linux (WSL)


Any chance of repairing a broken LUKS encrypted SD?

Looks like the problem is the SD card is somehow locked to read-only. Maybe the "read-only" switch (write protect switch) is on, maybe the card reader is dirty and the "ro" switch is stuck, maybe the card itself is failing (I've read that sometimes cards & USB drives fail that way).

I have a card where the little switch broke & fell off completely. It was always read-only, and I had to put a little piece of tape over where the switch used to be, then it was read-write (rw) and still works ok.

If it happens again, double-check the card's swtich, and definitely look in the syslog &/or dmesg | tail

This page (Hack: Why Is My SD Card Write Protected?) has more info on the write protect switch, how it works and how to "hack" it to always writeable.

And for the future, definitely keep a copy of the LUKS header, just in case there's some problem reading the drive/card in the future. At least you'll be able to decrypt whatever is left readable if the header is ever damaged. A full backup of the data on the card is an especially good idea now too, in case it is failing.


"unable to find a medium containing a live filesystem" while trying to install

I understand what you're saying because I've recently been working with a Dell that had the same issue (which is what led me to this post in the first place.) The only things I would recommend are:

try to reburn (which you mentioned you did),
check the MD5 sums, or
rebuild the filesystem image.

I did finally get a 64-bit DVD working right this way, so with a bit of luck I'd imagine this would help you.


How to format USB stick to exfat in Ubuntu 18.04 (now with kernel 5.3.0-42)?

I use something like this when manullay mounting USB Devices.
Code:

sudo mount -t vfat /dev/{usbdevicename} /media/external -o uid=1000,gid=1000,utf8,dmask=027,fmask=137

The options following the "-o" give you ownership of the drive, and the masks allow for extra security for file system permissions. If you don't use those extra options you may not be able to read and write the drive with your regular username. Use the correct location/path instead of {usbdevicename}

If you need the correct path you can use:

sudo fdisk -l

It will be something like sdb1, sdc1. The 3rd letter depends on the amount of storage devices in the system.


Unable to install hcxtools on my Raspberry Pi 4 with Ubuntu

You should be able to install the package by doing the following:
Download the latest Debian package manually:
wget http://ftp.br.debian.org/debian/pool/main/h/hcxtools/hcxtools_6.0.2-1_arm64.deb

Install the package manually:
sudo apt install ./hcxtools_6.0.2-1_arm64.deb

As far as I can see, all dependencies should be ok for this to work.
I've done this with several other packages, and everything is working perfectly. Just remember these packages has to be updated manually with the above method.


Permissions problem installing python 2.5.4 from source

You need to make

sudo make install

Without using sudo, you do not gain the root privileges necessary to install files in system directories.


You were close to the real package name.

According to search on https://packages.ubuntu.com you need
to install the GNOME Startup Applications package:

sudo apt-get install gnome-startup-applications

as it contains needed gnome-session-properties executable with needed desktop-file.


upgrade requires 525M free disk space on /boot while boot is only 230M in total there are also dependencies with previous kernels

The manner in which you managed to "force delete the old kernel files" was probably not the best method for opening up some space on your /boot partition. There is a guide at this answer to help free up some space.

For the 6 packages listed in your error message, remove them one-by-one, using the commands

sudo apt-get remove --purge linux-image-extra-3.19.0-25-generic
sudo apt-get remove --purge linux-image-extra-3.19.0-28-generic
sudo apt-get remove --purge linux-image-extra-3.19.0-30-generic
sudo apt-get remove --purge linux-image-extra-3.19.0-31-generic
sudo apt-get remove --purge linux-image-extra-3.19.0-33-generic
sudo apt-get remove --purge linux-image-extra-3.19.0-37-generic
sudo apt-get autoclean
sudo apt-get autoremove


GNOME extension to make top-bar items have their own status menus?

The GNOME Shell extension Extend Panel Menu does just that!
Follow these instructions in order to install it.

Once you've installed it you will see that all your top-bar status items have their own dedicated menus:

And if you go to the menu which has your username on it (the one which says Unknown on mine) you can access the Extension Settings:


Making ubuntu installation with mac terminal

Just remove "~" and never try to to convert it on same folder ,  Use Rdxx instead of UDRW  as.

hdiutil convert -format Rdxx -o /Volumes/"NO NAME.img" /ubuntu-12.04.3-desktop-amd64.iso

hope it will work.


Problem with changing resolution on Ubuntu Virtual Machine

Turns out changing resolution messes up RDP connections. I greped all the connections via
ps -ef | grep vnc

and killed all the extra connections with different resolutions, which helped.


Apparently that is not supported

Operating system requirements

The following or later versions of the operating system are required for Oracle Database 11g Release 2 (11.2):

Asianux Server 3 SP2

Oracle Linux 4 Update 7

Oracle Linux 5 Update 2

Oracle Linux 5 Update 5 (with the Oracle Unbreakable Enterprise Kernel for Linux)

Red Hat Enterprise Linux 4 Update 7

Red Hat Enterprise Linux 5 Update 2

Red Hat Enterprise Linux 5 Update 5 (with the Oracle Unbreakable Enterprise Kernel for Linux)

SUSE Linux Enterprise Server 10 SP2

SUSE Linux Enterprise Server 11

2.2.2 System Architecture

To determine whether the system architecture can run the software, enter the following command:

uname -m

Note:
Verify that the processor architecture matches the Oracle software release to install. If you do not see the expected output, then you cannot install the software on this system.


Realtek RTL8188CE wireless not working on Toshiba Satelite L655-s5153

How to install Realtek RTL8188CE WiFi drivers

The link is for Lenovo ThinkPad Edge laptops but works just as well for Toshiba if followed, the essences are the same.

Realtek Homepage


I wouldn't worry so much for installing the canon printer software via wine. Your best bet would be to look up how to install a printer in Ubuntu and leave the software alone. For your wine question, check out a program in the software catalog called "Play On Linux". It is a very simple way to use Wine and will even help you to install prerequisites needed for programs.


The picking from all workspaces when left clicking on launcher icon was intentionally removed. Actually the process to do so began early in Natty dev, just took a while but was inevitable

Bug report that started it - https://bugs.launchpad.net/ubuntu/+source/unity/+bug/689733

Additionally one cannot directly set a binding for it in scale, initiate_all from all WS's was also intentionally removed in the scale plugin source starting in compiz-0.9.4

It is however possible to patch scale.cpp, rebuild the plugin & get window picker for window group from all Ws's thru a command, dbus & keyboard combo, do so here & it works just fine.

Method to patch & enable will be maintained thru 12.04 release in this thread concerning a cuberotate hack, if interested read post 1 & 15, ask there if need be - http://ubuntuforums.org/showthread.php?t=1938942

Otherwise you can use the Alt-Tab switcher & disabling  the bias alt-tab to prefer windows on the current viewport option in the unity plugin settings to get from all WS's


If you have the option to use PowerPlay in your ATI Catalyst Control Center, then you could change the plugged in state to "Maximize Battery Life".


USB Boot Failure after using pendrivelinux

Perhaps you can try install to USB stick using UNetBootin, that is much more easier to create a working bootable USB stick.


I also had this problem once. Try this solution from Lokal on Super User:

  Okay, seems that the HUE is has been set to zero.

  Open totem Menu:Edit->Preferences:Display [Reset to defaults] Button

  This adjusted everything for me, vlc, mplayer etc.


repository 'http://miktex.org/download/ubuntu xenial InRelease' doesn't support architecture 'i386'

For you information. If you have 64-bit CPU and 64-bit only repository you should have the following line in sources.list:

deb [arch=amd64] http://miktex.org/download/ubuntu xenial universe

Here [arch=amd64] did the trick.

But texlive is better.


I would like to thank Salem who was very helpful in suggesting me various solutions for my problem.

I was unable to resolve my issue using those suggestions. And as I had very important data which I did not want to lose data.

Here is what I eventually did

Created a copy of /var/lib/mysqlThis helped me get back all the tables and the data inside without having to import the data again.

To get permission to access the files and folders in mysql ran the following:

sudo chmod 777 /var/lib/mysql

To get permission to access the files within folders in mysql ran the following:

sudo chmod 777 /var/lib/mysql/*

Removed/Uninstalled mysql using the following commands:

sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get remove --purge mysql-client-core-5.5
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /var/lib/mysql

I had to remove the mysql-client-core-5.5 separately even if I used autoremove and autoclean as it used to give me an error when i was setting the root password as it said it was unable to create root user.

Install/Reinstall mysql server and client

sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install mysql-workbench

Copied the files required (folders with the files relevant to my database names) back into the /var/lib/mysqlfolder.

Make sure you don't replace the base files from the new installation. As this again creates the same issue again where the server stops running again.


I want to use MS Power Point and Excel In Ubuntu

Ubuntu comes with LibreOffice which is compatible.
There are other options also... WPS is a fine office suite and can be downloaded HERE


How to boot Ubuntu when stuck on line dev/sdaX: clean, XX/XX files, XX/XX blocks

Here is what I did to solve the problem. The first solution might be required, but it might be worth testing if you have the same problem.

I reinstalled Ubuntu following this answer to create a second EFI part for my Linux to boot independently from Windows: https://askubuntu.com/a/843649 I also disabled fastboot and secure boot previously as said in this answer

I realized that I could only start my live version with the (safe graphics) option. Found that it starts thanks to a grub option named nomodeset. I then followed this answer to finally be able to boot by setting the grub nomodeset option manually: https://askubuntu.com/a/38834

Once finally on my booted Ubuntu, I followed this answer so that it will always boot with the nomodeset option enabled: https://askubuntu.com/a/38782/841934

Hope this will help some people, at least me when I maybe will encounter the problem again in some months/years.
EDIT: as said by heynnema the nomodeset solution was only a temporary fix. What I did next was update my NVIDIA graphic drivers by following the graphical method of this guide:
https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux
I then reverted my changes to my grub config to remove the nomodeset option, and rebooted without problem.


ubuntu-device-flash fails on Nexus 7 2013 (Android 5.0.2) - can't copy image to /cache/recovery/

So I also wanted to play with Ubuntu Touch a few days ago and ran into this exact issue.

Problem: Ubuntu Touch as of 09/17/2015 doesn't install correctly following official guide on my Nexus 7.

Nexus 7 is a "reference" device, so it definitely should, and is known to be working.  What's wrong with mine?

Poking around the internet (xda, #ubuntu-touch, #ubuntu-kernel) I found that newer Nexus 7 "flo" models, made in/after late 2014 and shipped with Android L have a different revision to their eMMC controller/hardware/something.  Asus posted a kernel change:

mmc: add 5.0 emmc support

bug: 17968808 Kernel change for new eMMC v5.0 parts for FLO/DEB

Change-Id: Ia18152457fe3ff70401b199c267fa37374b9d544
Signed-off-by: hsuan-chih_chen <hsuan-chih_chen@asus.com>
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index dc4b125..ea1eca7 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -293,7 +293,7 @@
    }

    card->ext_csd.rev = ext_csd[EXT_CSD_REV];
-   if (card->ext_csd.rev > 6) {
+   if (card->ext_csd.rev > 7) {
        pr_err("%s: unrecognised EXT_CSD revision %d\n",
            mmc_hostname(card->host), card->ext_csd.rev);
        err = -EINVAL;

So I had a hunch that this was it.  The kernel you're getting using the official tool doesn't have the patch applied.  We need to build a patched kernel, and replace it in both the boot and the recovery images.  The flo branch of the Ubuntu kernel doesn't have the fix applied (yet?).

I built a patched kernel using ubuntu-wily source on the flo branch and created boot and recovery images that appear to work.  We aren't touching the bootloader so this should be safe, but I carry no responsibility if the following procedure bricks your device.

Again, follow these steps ONLY if you have a Nexus 7 (2013) "flo" that shipped with Android L.

Download boot.img and recovery.img from here:
https://github.com/ddagunts/UTCWM_N7_patch/blob/master/boot.img?raw=true
https://github.com/ddagunts/UTCWM_N7_patch/blob/master/recovery.img?raw=true

1) Return your device to stock:

a. Obtain Google Factory image "razor-lmy48m-factory-7c77e178.tgz"

b. Unpack the archive and run "flash-all.sh" with device in the bootloader

c. Let the tablet boot up, then power it off.

2) Boot to bootloader.

3) Run 'fastboot flash boot boot.img'

4) Run 'fastboot flash recovery recovery.img'

5) Boot device to recovery

6) Run 'ubuntu-device-flash touch --channel=ubuntu-touch/stable/ubuntu'  # This should run through and say: "Rebooting into recovery to flash" - wait until the program exits.

7) The device should reboot automatically and start spinning the Ubuntu logo.  Wait this out - takes 5 to 10 minutes.  I believe this is Ubuntu installing itself.

8) The device will reboot and get stuck on the Google logo.  Power the device off.

9) Boot the device into the bootloader.  Repeat steps 3 and 4 to reflash the boot and recovery images.

10) Power off and start the device.  Ubuntu should start booting.


Missing settings windows (Ubuntu 17.04 gnome)

From my understanding of https://wiki.gnome.org/Design/SystemSettings/Keyboard my settings pages are fine. As to why the answer I linked mentions other pages, I believe it's just outdated.

As to how I managed to solve my original task of switching lanuages with CapsLock: method 3 in post scriptum worked after I set shortcut for switching languages to default in Keyboard menu.


Add the graphics drivers ppa and try the different nvidia drivers till you find the one that works. When I had that setup it was nvidia-358


I get no output when I compile Java code from the Terminal

You can see from ls that you already compiled your program with the compiler javac. The command you used

javac hello.java

creates hello.class without sending any output to stdout, so there won't be any messages in your terminal unless there are errors - what you see is the expected behaviour. If you actually want to see some output, you can add an option: javac -verbose hello.java as mentioned by @Frisky (thanks!)

Now you can run that file hello.class with

java hello


Possible to create a command to open clementine and have it create a playlist of 50 random songs?

It is possible, but not without some coding at least for this solution.

What you would do is write a script that would look at your library, pick X songs by filename (i would so this by using ls folder, and the parsing the file locations with a "random function" like milliseconds.) When this parsing is complete, it should have stored it as a single string of files seperated by a space. This string would be tagged onto

clementine --append "your-string-of-music-"

All these pieces would be in one executable script.

Maybe there already is a random functions for this. If not, good luck and have fun!


The Ubuntu Startup Disk Creator in 14.04 LTS is buggy, but the version in 16.04.1 LTS and 16.04.2 LTS is completely different, and works well for me to create USB boot drives from Ubuntu iso files. The old version is an extracting tool, and the new version is a cloning tool.

You can try another tool to create a USB boot drive. If you want a tool that works with all current versions of Ubuntu, 12.04 LTS, 14.04 LTS, 16.04 LTS and 16.10, you can try mkusb. It uses the cloning method to create live-only USB drives, and an extracting method to create persistent live USB drives.

mkusb can create live-only USB boot drives of most linux iso files (all linux distros that provide hybrid iso files) and also installer USB drives for Windows 7-10. Persistent live drives are limited to Debian and Ubuntu (and some but not all distros and re-spins based on Debian and Ubuntu).

See the following links,

help.ubuntu.com/community/mkusb

mkUSB-quick-start-manual-12.pdf


Problem solved by following steps I found here:

https://superuser.com/questions/425181/php-code-is-returned-instead-of-executed

... where fellow developer suggested to change file's extension from .html to .php and all my code should be interpreted just fine. And it worked.


Disable Network Time synchronization in Ubuntu 16.04

This command will help you find the time zone:

timedatectl status | grep "Time zone"

After getting the time zone, check the status of Network Time on. The following command will help you verify if it's enabled or disabled:

timedatectl status

Network time on: yes
NTP synchronized: yes

Now check the available time zones. use the following command

timedatectl list-timezones

Use this command to choose a time zone:

sudo timedatectl set-timezone America/New_York

Once you are done with the above command, use the following command to enable or disable the network time:

sudo timedatectl set-ntp on


If the NTFS drives are mounting as read-only, its probably because Ubuntu thinks their filesystems are unclean, probably due to hibernation, or a damaged file system. Do this...
in Windows...

boot into Windows
open the Power control panel
choose change what the power buttons do
choose change options that are unavailable
uncheck fast startup
close the Power control panel
open an administrative command prompt window
type powercfg /h off
type chkdsk /f c:
approve to run chkdsk at next reboot
type chkdsk /f x: (replacing "x" with drive letters of other visible NTFS partitions)
reboot into Windows to let chkdsk run on drive C:


Get the current linux source code by

apt-get source linux-image-unsigned-$(uname -r)


How to unistall a program installed by a .sh installer?

How do I uninstall?
The .sh file is an installer script. It does various actions to install the game. (like copying files to the /usr/local/games/)
Remove using an remove script (recommended)
Most applications that ship with a .sh installer also have a .sh remove script. Sometimes you can find the location of the remove script in the README of the application. Otherwise, you will have to search it yourself in the installation directory (/usr/local/games/<NAME_OF_GAME>). It's named uninstall.sh or something similar.
If you find the script, you can excecute it by typing ./<NAME_OF_SCRIPT>.sh in the terminal.
Remove manually
If the application does not have an uninstaller script, you can remove the application manually by removing the complete directory /usr/local/games/<NAME_OF_GAME> and removing the launcher. However, it could be that the application also has some files in other directories.
You can use the command in Terdon's answer to find all the directories that the installer script changes.
Can i uninstall using xdg-desktop-menu?
No. From the man-pages (man xdg-desktop-menu)

The xdg-desktop-menu program can be used to install new menu entries
to the desktop's application menu.

So it is only used to install/remove the menu entry, not the complete program itself


If you recently added a PPA or somehow lost the keys to the Ubuntu official repositories you just have to run:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com keynumber

The keynumber for the default repositories is 437D05B5


How to enable wl option of broadcom-sta-dkms?

Do

% See https://wiki.debian.org/wl
sudo vim /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu xenial main restricted contrib non-free
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted contrib non-free

% unload conflicting modules
modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl

which works if there is no conflict with PatrikJacobsen's fix described here i.e. backlight.
If it works as expected, the wifi also works as expected. I have noticed unstable powerconfigurations also with the complications of the non-i915 backlight control in Macbook Air 2013-mid.


How to list the simplest way of hardware specification?


$JAVA_HOME resets after every terminal login

Login to your account and open .bash_profile file

$ vi ~/.bash_profile

Set JAVA_HOME as follows using syntax export JAVA_HOME=<path-to-java-bin-directory>/java
If you want changes effected without logout, enter command below:

$ source ~/.bash_profile


How can switch user when login to ubuntu server

To truly switch user ID use:

$ sudo -s -u new_user

or

$ su --login new_user

If you only need to switch your current directory:

$ cd ~new_user

To do this automatically at login add the commands to ~ubuntu/.bashrc


GNOME Software won't install Google Chrome

Why don't you use dpkg to install Google Chrome?

I suspect you put your Google Chrome package in ~/Downloads and you downloaded it from chrome.google.com. Open your terminal and type:

sudo dpkg -i ~/Downloads/google-chrome-stable_current_amd64.deb

Enter your password when prompted and that should be it!


ssh authentication with id_rsa key not working

The problem is in the ssh server. The authorized key file is set as /opt/gitolite/.ssh/authorized_keys but the file contains the path to the public key of the client rather that the key itself.

To solve this issue you need to copy the public key as it is to the /opt/gitolite/.ssh/authorized_keys file removing all other existing irrelevant contents of the file. Note that this file should be owned by the appropriate user and the permission bits should be 600.


Can't find documet scanner application that replaced the simple scan application

The package for the Simple Scan Utility is named simple-scan.

You have to install it with command:

sudo apt-get update
sudo apt-get install simple-scan

And what is interesting - its simple-scan.desktop file contains name Document Scanner in the Name field. So it is a new name for the  Simple Scan (simple-scan) utility.


The F character indicates that the partition is to be formatted. Under normal installations on a new machine, this is the desired setting, however, if you were to be reinstalling the OS on a machine with a previously used partition for /home, for example, you would go into the manual partition options and specify that partition should not be formatted.
The root partition on the SSD is usable as-is with the default settings.  There are some tweaks which could be done, post installation, to reduce the amount of writes to the SSD.  Often, the logging options for various system services is scaled back or the noatime filesystem option is turned on to avoid constantly updated access times of system binaries/shared libraries/etc. which are unnecessary.
As Linux is a singly-rooted operating systems, all directories will appear on the root partition.  If, for example, user home directories are on a dedicated partition, that partition would be mounted into that directory as its mount point.

Based upon your graphic, it looks like the root partition is a little small and the /var partition is quite large.  For basic test setups such as you are likely doing with this VMware virtual machine, I would probably encourage you to not dedicate a partition to /var.  You will have too little flexibility when you fill your root partition and you have an extra gigabyte of free space in /var.  You can always create a dedicated disk image for /home to reduce overall disk usage.


How to reboot Ubuntu from Android using SSH?

I am using without problems the sudo reboot and sudo poweroff commands.


First of all.

Do not mix different repositories.

Ubuntu and Debian packages have differences in the way they are built. You may have unexpected results if you don't know what are you doing. The best way to install these packages are:

Waiting for Ubuntu to catch up with upstream.
Using the Ubuntu's mono PPA.
Chroot or create a virtual machine with Debian
Build from sources.

Those are the recommended methods to do things around. If you want to mess with your system, please do so, but don't argue that we didn't tell you if something goes wrong. Actually Murphy's Law says something will go wrong.


Getting this error message before am able to install ubuntu desktop 16.04.1

Looks like a possible kernel bug related to external USB 3.0 hard disks.  If you do have a USB-connected hard disk, you might try removing it while you install Ubuntu.

If that lets you install Ubuntu, but you get the same problem when you plug the USB hard disk back in, then you might try the workaround in this forum thread (see #12).  Good luck.


I ended up refreshing my HOME directory, cleaning out all kinds of old "junk" from it, paying special attention to cleaning out the .config directory.  I also created a new user so I could get a fresh copy of the .bashrc and .profile files.  This appears to have solved this (and another) problem.


How do I get Shotwell to stretch small pictures to fill the screen in fullscreen mode?

You appear to be correct - no automatic way to do this.  Perhaps contact the developers for this option (contact page on their website)

The best you can do is to manually zoom in when in full-screen mode i.e.


Your command line should be:

mysql --host=localhost -p

From the mysql man page:

   ·   --host=host_name, -h host_name

       Connect to the MySQL server on the given host.


How to get a list of embeded subtitles from a group of ".m4v" videos?

I dug around and found out how to do it using "exifTool.exe".

The command line would look like this,
exiftool -a -medialanguagecode *.m4v >SubtitlesList.txt


youtube-dl not working since Ubuntu 16.04 upgrade

Many users on similar QA all had problems because they didn't follow the official installation instructions.

If you used apt-get, remove the old version like this :

sudo apt-get autoremove --purge youtube-dl

Install the new one by using these commands :

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

Try again  : youtube-dl https://www.youtube.com/watch?v=KV2ssT8lzj8

source


type sudo visudo in a terminal and place to the end of the file:

user ALL=(ALL) NOPASSWD: ALL

Save the file and start a test with:

service ssh restart


Constancy of all installations of the same software

You didn't say what 'app' you're talking about, but on one box the app may have been installed with

snap install app

where as on the other it was with

apt install app

ie. snap installs installs a snap, apt install install the deb in simple terms, though some debs are wrappers that installs snaps too.

If using a software store, some 'stores' have indicators to tell you it's referring to a snap; and there are applications that list more than once (deb & snap; snaps can also offer versions were as with deb it'll always be the latest available for your release).


why does "gedit" doesn't work for reading *.FASTA file?

Btw, this is rather an bioinformatics question and as such better placed in an appropriate community like https://bioinformatics.stackexchange.com/.
However, the answer is most likely trivial: Your trying to view a file of 6.2Gb, so your gedit might run out of memory. You may want to try less, maybe in combination with head and tail, in case you really want to go through the raw sequencing reads.


Server 16.04 crashing during Samba operations - General protection fault

Found 2/4 memory sticks failed via memtest. Removed them and completed a transfer with no issue.


Difference of output of apt-rdepends and apt-get install

Since Ubuntu 8.10 apt defaults to not only install strict dependencies, but also recommended packages. If you don't want apt-get to install Recommends you can use the flag --no-install-recommends

apt-get install --no-install-recommends python-epydoc

You can also make that setting persistent by setting APT::Install-Recommends "false";. It can either be in /etc/apt/apt.conf or in a dedicated file under /etc/apt/apt.conf.d/. Also see the following part of the 8.10 Release notes.

https://wiki.ubuntu.com/IntrepidReleaseNotes#Recommended_packages_installed_by_default

You can tell apt-rdepends to also follow as well as show Recommends. This will give you a more complete output. Do note that that it will contain a fair share of duplicates, etc.

apt-rdepends -p --follow=1,2,4 --show=Depends,PreDepends,Recommends python-epydoc | grep NotInstalled

The reason I use --follow=1,2,4 instead of actually naming Depends,PreDepends and Recommends is Launchpad Bug #315567


The following commands are to be run from a terminal window to install the latest (BETA) NVIDIA drivers:

First, set up the graphics-drivers ppa:

sudo add-apt-repository ppa:graphics-drivers/ppa

Then update and install drivers:

sudo apt update
sudo apt install nvidia-370

Hope this helps!


DaVinci Resolve on Ubuntu 18.04 doesn't start

I've tried to install DaVince Resolve 16 on the Ubuntu 18.04 and came across the same problem.

The solution was to create this link:

sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib64


How to create workspaces in Ubuntu 20.04

I would advise to install gnome-tweaks to manage desktops

sudo apt install gnome-tweaks

I'm also using the extension Workspaces to Dock: https://extensions.gnome.org/extension/427/workspaces-to-dock/

It makes switching between workspaces really easy!!


Difference between commands for removing empty directories

rmdir removes empty directories, not files, and not directories unless they are empty.

rm will remove files and/or directories, use the -R or -r flag for directories.

To remove non-empty directories: rm -rf

the option --dir is the same as -d , it will remove empty directories, same as rmdir

As far as I know the commands do the same thing and it is user preference which one you use, personally, I use

rm -rf

I also alias rm to rm -i

Careful with that command. It is unforgiving if you make a mistake, especially when combined with sudo (which is why I alias it to rm -i, the -f overrides the -i).

I suppose rmdir might be safer in that it will not remove a directory unless it is empty first, forcing you to review the contents first.


Turns out I finally remembered, by adding NOMODESET to my kernel boot I am able to bypass the video driver check and get into the live cd.


Use:

mv "old location" "new location"

mv /home/user/my_static /home/user/static

That command is used for moving and renaming files and directories.


Issue with choice of AP when connecting to university wifi on Lenovo X230/Ubuntu 16.04.2

You can lock your computer to a specific access point by placing the mac address of a specific access point into the BSSID field in your connection profile.


Dual boot Windows with Ubuntu 12.10 UEFI

You need to purge and reinstall GRUB this way:

run Boot-Repair --> Advanced options
go to the "GRUB options" tab, tick "Purge GRUB then reinstall it"
click Apply

Indicate the new URL that will appear if any problem.


What are the official Ubuntu Derivatives?

There are eight official derivatives. They are:

Kubuntu
Xubuntu
Edubuntu
Ubuntu GNOME
UbuntuKylin
Lubuntu
Mythbuntu
Ubuntu Studio

See the Ubuntu derivatives page.


Not sure what, if anything you might have done to cause this. Upgrade Ubuntu? How did you install UFW? From the repos?

At any rate , that is sort of a non-specific error and might occur with other packages as well.

As a first step try updating (“dist-upgrade”) to see if you have outdated or held packages.

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

If that fails as a second step try re-installing python-apt

See https://packages.ubuntu.com/zesty/python-apt

sudo apt-get install --reinstall python-apt

You could shorten those two commands, but I hope it is more clear to demonstrate the reinstallation of python-apt.


How to set up Unikey the same way as VPSKeys in Windows

ibus-unikey is packaged for Ubuntu and available in the Ubuntu archive, so the first thing I would like to say is: Install it from the Ubuntu archive instead of downloading it from e.g. Google directly.

Actually, if you install the Vietnamese language in Ubuntu, ibus-unikey gets automatically installed.

I have absolutely no idea if there are differences compared to VPSKeys. But judging from the positive user feedback from some users of Ubuntu 12.04, it's probably easy to handle.


CURL not working in the latest version of PHP 7.2!

I tried this and it worked for me!

$ sudo apt-get install curl
$ sudo apt update
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt install php7.2-curl php7.2-mysql php7.2-dev php7.2-cli php7.2-intl
$ sudo service apache2 restart


How do I remove youtube from the volume indicator?

Search for unity-webapps-youtube in the software centre

[ubuntu] How to remove the "Youtube" firefox app? (12.10)


You can use KVM instead of WINE to run windows on you linux machine. I find it better than Virtualbox


Documents went missing from top left bar in nautilus. user-dirs.dirs updated but no results

You have set XDG_DOCUMENTS_DIR="$HOME/Documents" and, a few lines below, you set it again as XDG_DOCUMENTS_DIR="$HOME/". The last setting effectively overrides the previous.

Just delete the XDG_DOCUMENTS_DIR="$HOME/" line and you should be fine.


How to mount external HDD with fat32 owner rights

I have solved it. I used the guide mount guide

Ok. Here is the steps I used.

Unmount drive. Used this command in terminal sudo umount /media/your disk.
I checked the partition table to see what path it was on with this command sudo fdisk -l in terminal.
I created a mount point sudo mkdir /fat. Just called it fat.
Then I created a backup of my fstab file using the command sudo cp /etc/fstab /etc/fstab_backup.
Then I opened fstab with this command sudo nano /etc/fstab.
Then I added this to my vfat HDD iocharset=utf8,umask=000 0 0

And voila, when I mounted the HDD again I was the owner and not root :)`

The site I added also explains how to do this for NTFS HDD's too.


You might be suffering from this bug or this bug.


How to move a file via sftp to windows server?

You can set sftp to login using key which will allow you to perform the ftp like operation without the need for a password (you can also use scp - secure copy over ssh)

For that you'll need to create private and public keys, and to place your public key on the server.

Create keys:
Execute the following commands on Ubuntu server:

$> ssh-keygen -t rsa

Press ENTER for all options prompted. No values need to be typed.

Now copy .ssh/id_rsa.pub to your windows server

Assuming that you have OpenSSH on your windows server:

Navigate into a .ssh subdirectory of your account home directory. You may need to enable showing hidden files to see the directory. If the directory does not exists, you need to create it first.
Once there, open a file authorized_keys for editing. Again you may have to create this file, if this is your first key.
select all of the text in the Public key for pasting into authorized_keys file box, and copy it to the clipboard (Ctrl+C). Then, switch back to the editor and insert the data into the open file, making sure it ends up all on one line. Save the file.
Ensure that your account home directory, your .ssh directory and file authorized_keys are not group-writable or world-writable. Recommended permissions for .ssh directory are 700. Recommended permissions for authorized_keys files are 600. Read more about changing permissions.

To set OpenSSH server on windows: https://winscp.net/eng/docs/guide_windows_openssh_server

Set up SSH public key authentication: https://winscp.net/eng/docs/guide_public_key

Generating SSH public/private keys: https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/


Ubuntu refuses to boot with acpi_backlight=vendor

This happened to me once and I found an answer here:
How do I adjust the screen brightness on an Acer Aspire One D270?

It was about brightness issues and this fixed it for me:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux i915.i915_enable_rc6=1"

There are a lot of other parameters suggested as well.


Unfortunately there is nothing you can do about this. The key is what is needed to read your otherwise encrypted data, and there is no way around it. Even the Mozilla Foundation, that maintains the firefox sync servers, can't access your data without said key.

Such a mechanism is incredibly useful, as it guarantees you that nobody other than you will be able to look at your data. The downside is that, if you fail to keep the key, you lose all your data without any possibility of recovering it.

I would suggest that you write down your new key in a safe location, in case such a thing happens again. Keeping good backups is also essential.


I'm having the same problem, i believe the culprit is dhclient, which gets
run automatically by wicd. whenever the dhcp lease expires, dhclient overwrites
/etc/resolv.conf with what it gets from the the dhcp server.

to verify that this is indded your problem, do "ps aux | grep dhclient", you should
an entry pop up, referencing a configuration file for dhclient (on my machine it's
at /var/lib/wicd/dhclient.conf).

to fix this, you need to edit  /etc/wicd/dhclient.conf.template
(NOT /etc/wicd/dhclient.conf.template.default)

and add a line like the following:

supersede 208.67.222.220 208.67.222.20;

then restart the wicd service with

  sudo service wicd restart

this will instruct dhclient to set resolv.conf to the manually specified servers,
rather then to what your dhcp server (i'm guessing the home router at 192.168.1.1?)
is sending you.

wicd should really handle this for you, but this will solve your problem for now.
seems to solve the issue for me.


viewing multicast mpeg ts streams in ubuntu 16.04 with either ffplay or vlc media player

Reverse path filtering could be a factor. You can disable (to test)

sysctl net.ipv4.conf.default.rp_filter=0
sysctl net.ipv4.conf.all.rp_filter=0

it can be permanently enabled via /etc/sysctl.d/30-rp_filter.conf

http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.kernel.rpf.html


How to disable balloon popups/tooltips ubuntu 16.04

The popup/balloon window that pops up when I was trying to select links is caused by Cairo Dock. Not really an Ubuntu problem. It is caused by the Clipboard History add-on.

To get rid of it you can select Advanced Mode (at the bottom of the settings window) and scroll down to Accessories and select Clipboard History. Move to the Configuration tab. At the top right there is a drop down menu change it from [Selection] to [Clipboard]. Also scroll down to Actions and disable everything in Actions. Popup is now gone.

Cant figure out exactly how to get rid of the other tooltip/popup yet but I will get that sorted as well and update this answer.


I uninstalled Ubuntu 20.10, but it remains in my boot menu and selecting it brings me to GRUB

Use your Ubuntu install disk/usb and open Terminal then the efibootmgr to delete the entries not needed.
https://www.linuxbabe.com/command-line/how-to-use-linux-efibootmgr-examples
You can install it with in a live session on usb if it is not there, no clue on optical media never have tried to install a program on them, never use them anymore.
For the grub mount the drive in the live session and in the EFI directory there delete the ubuntu you see in it.
sudo mount /dev/sda1 /mnt
sudo rm -r /mnt/EFI/ubuntu

You may need to repair the windows boot loader too.
https://www.howtogeek.com/howto/33433/restore-the-windows-boot-loader-after-an-ubuntu-update/
Be careful when removing the ubuntu directory that you have the correct /dev/sd??.


Cannot install or remove packages( terminal, synaptic or software center)

Unable to install any updates through update manager/apt-get upgrade
Check it

So the solution is the following:

Go into the /var/lib/dpkg directory
Make a backup of the status file
Edit the status file
Search the package that gave the error
Just delete the lines from this package (but let all other lines
that concern other packages even if they contains the broken package
in their "Replaces" or "Depends" fields)

[…]

Save changes in the status file
Run: sudo dpkg --configure -a
Force the re-installation of missing dependencies (because now,
there are some):

sudo apt-get -f install

I think that if the broken package does not depend on any other package (could be rare), just reinstall it:

sudo apt-get install the_package

Everything is fine now can update, upgrade, or install new packages!


'sudo apt-get build-dep ffmpeg' fails because of libjack0 in Ubuntu 12.04

Just install the package libjack-jackd2-dev. It will provide the missing lib, and then you will be able to install the others through apt-get build-dep ffmpeg.


Can we use svn2cl on launchpad buildbots?

Is the changelog really important in daily builds?

But no, you can't really do this. The package build happens from a source package, without any bzr history available.

Actually, it's possible that the recipe build calls debian/rules clean, and you could do something in there. I can't remember if it does or not.


How do I take a screenshot with dimensions?

Shutter

Shutter is a feature-rich screenshot program. You can take a screenshot of a specific area, window, your whole screen, or even of a website - apply different effects to it, draw on it to highlight points, and then upload to an image hosting site, all within one window.

You can set the size of default selection in it's Preferences. Go to Edit > Preferences > Advanced and change the value of start with selection size of.

You can get more details about Shutter on it's website.


Date format in file open menus in Ubuntu applications

Oh I found it. Mistakenly, I was looking under the date related ones.

I need to change this in System Setting->Language Support.

From this go to tab Regional Formats and choose your preferred format. Click on Apply System Wide.

Please remember that one needs to logout and then login for the changes to take effect.


You should add a startup item to your startup application list, as mentioned by Mladen B.

The command is:

/opt/telegram/Telegram

Or, if you've installed Telegram via the software center or snap:

telegram-desktop

To start hidden:

/opt/telegram/Telegram -startintray

There is a -now closed- bug in Telegram using Unity: a sequence of "Open Telegram --> Minimize to tray --> Open Telegram" will show the window.


Just modify the value of timeout in your boot.ini file.


Bluetooth keyboard and mouse keep popping up and then going away

When you go to bluetooth set up a new device, you need to put 0000 as PIN options.

Eventually the popping up and going away thing just stopped, for some reason.


Always on Visible Workspace (or Sticky) button for Unity

If you open dconf-editor, and go to /org/gnome/desktop/wm/preferences in the tree, you'll see a button-layout setting in the right pane. If you edit this setting, and add "stick" as one of the button strings in the setting, it should appear in the appropriate place on the window title bars. you probably want to put it after the : in the string, to have it on the far right, assuming you have the default settings of buttons on left in the title bars.

This may require changing the window manager theme to something capable of showing the button though. It seems many themes don't have support for it.


sync folder /home/vagrant with project root?

I had to switch them (got confused with host/guest in the docs):

config.vm.synced_folder "/home/test/kata", "/home/vagrant/kata"

Also I could not map everything to /home/vagrant, because then I can't login into the VM, see https://stackoverflow.com/questions/50271150/vagrant-permission-denied-publickey


Yes.  They got rid of the menu structure where you could find the application information by right clicking on the menu item.

I do know for a fact that Lubuntu still uses menus.

If you have that window manager installed, you can pull that information from there.

I'm sure there is a better way, but you could install Lubuntu desktop boot into it at the login screen and find out where it is.

another way is by using find |grep warzone


Trying to boot from USB on a Dell XPS 13 9380

Fixed it. I went out today and bought a new USB C stick, and it's booting from that just fine. I don't know if it's because the other one was a USB A going through an adapter, or was just a "dodgy" stick. I had tried burning the old one a couple of times, with Ubuntu 19.04 and 18.04 but it was having none of it, so I don't think I was doing anything wrong originally.

Interestingly, using 19.04 it booted just fine even with secure boot enabled.

It refused to partition the disk once it was booted, but that's a separate problem. I think I'll need to take RAID off and use AHCI instead, which means I'll need to re-install Windows as well.


What happens with an interrupted upload to UbuntuOne?

As far as I know you just have to reconnect your PC to your internet connection and let ubuntu one finish the upload. I mean that ubuntu one is able to continue an interrupted upload process, so you don't need to wait again for the 677 MB, but only for the remaining 212 MB.


Get all file paths from a certain point and pipe to text file

The command

find -printf "%P\n" > file

will list all files and directories below the current directory and redirect the list to file. From the printf section of man find

  %P     File's name with the name of the command  line  argument
         under which it was found removed.


It's not totally clear that you are running MySQL - the command that is referenced, mysql_upgrade is apparently a MariaDB command.

If, in fact, you are running MariaDB, then apt is instructing you to run mysql_update with the force option, as

mysql_upgrade --force

The documentation for mysql_upgrade indicates that the dB should be stopped and restarted after the command is run - this may be most easily done by rebooting your machine...

Please refer to man mysql_upgrade


You need to update package list first.

Run in terminal

sudo apt-get update

and try again.


I'd like to destroy some data quickly and reliably. How?

shred from GNU coreutils was specifically designed for this purpose.

From man shred:

  Overwrite the specified FILE(s) repeatedly, in order to make it harder
  for even very expensive hardware probing to recover the data.

shred actually reads random bytes from /dev/urandom and overwrites the files content with those, at the end optionally overwrites the contents by zeroes (from /dev/zero). So if you want to reinvent the wheel, you can do this by hand but better to use shred which is optimized already for the task.

For example, for any given file my_secured_file.txt, you can do:

shred my_secured_file.txt

Here:

-v for verbosity
-z for overwriting the file with zeroes afterwards, to hide shredding
-n 5 is for number of iterations, default is 3

You can increase the number of iterations if you want although the default is enough or even remove the file (-u, --remove).

Check man shred.

As shred operates on files, for doing the operation on all files of a directory (recursively) e.g. my_secret_dir:

shopt -s globstar
for f in my_secret_dir/**/*; do shred -vzn 5 -- "$f"; done

Or find:

find my_secret_dir -type f -exec shred -vzn 5 -- {} +

Note:

shred has the caveat that it can't work properly on the journaling, caching, RAID, compressed file systems. Quoting man shred:

  CAUTION: Note that shred relies on a very important assumption: that the file system overwrites data in place.  This is the
  traditional way to do things, but many modern file system designs do
  not satisfy this assumption.  The following  are  examples
         of file systems on which shred is not effective, or is not guaranteed to be effective in all file system modes:

  log-structured or journaled file systems, such as those supplied with AIX and Solaris (and JFS, ReiserFS, XFS, Ext3, etc.)
  file systems that write redundant data and carry on even if some writes fail, such as RAID-based file systems
  file systems that make snapshots, such as Network Appliance's NFS server
  file systems that cache in temporary locations, such as NFS version 3 clients
  compressed file systems

  In the case of ext3 file systems, the above disclaimer applies (and shred is thus of limited effectiveness) only in data=journal
  mode, which journals file data in addition to just metadata.  In both
  the data=ordered (default) and data=writeback modes,
     shred works as usual.  Ext3 journaling modes can be changed by adding the data=something option to the mount options for a particular
  file system in the /etc/fstab file, as documented in the mount man
  page (man mount).

  In addition, file system backups and remote mirrors may contain copies of the file that cannot be removed, and that will allow a
  shredded file to be recovered later.

In Ubuntu, if you are using ext4 filesystem which is also a journaling filesystem, the journal mode is the default for metadata, not for data (data=ordered is the default), so you should get the expected result with shred-ing unless you changed the default.

As a side note, you can find the default filesystem options by:

sudo dumpe2fs -h /partition |& grep 'Filesystem features'

Example:

% sudo dumpe2fs -h /dev/sda3 |& grep 'Filesystem features'
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize

The has_journal indicates that this is a journaling FS and the default journal option(s) are:

% sudo dumpe2fs -h /dev/sda3 |& grep 'Journal features'
Journal features:         journal_incompat_revoke

Both at once:

% sudo dumpe2fs -h /dev/sda3 |& grep 'features'
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Journal features:         journal_incompat_revoke


No sound in headphones after moving to Ubuntu

So I opened pavucontrol and between two output devices (HDMI and stereo output) chose stereo output. Then I plugged headphones in the third port (on the other side of pc, don't know what it is for) and it worked


What are the Ubuntu 13.04 32-bit desktop system requirements?

Minimum System Requirements  (OUTDATED)

300 MHz x86 processor

64 MB of system memory (RAM)

At least 4 GB of disk space (for full installation and swap space)

VGA graphics card

capable of 640x480 resolution
CD-ROM drive

Recommended Minimum System Requirements

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

Recommended System Requirements  (OUTDATED)

1.2 GHz x86 processor
256 MB of system memory (RAM)
8 GB of disk space

NOTES
I am trying to look up a non outdated version!

Sources

http://forum.freeeducation365.info/Thread-system-requirements-for-ubuntu-linux-13-04-versioin
http://www.ubuntu.com/download/desktop/install-desktop-latest
https://help.ubuntu.com/community/Installation/SystemRequirements

(Outdated)  https://help.ubuntu.com/community/Installation/SystemRequirements/GutsyGibbon


Why do my menus have little icons next to the items?

There are two ways to do that.

If you have gnome-tweak-tool installed, open gnome-tweak-tool
and select "Theme"

Unmark "Menus have icons" and "Buttons have icons"

If you don't have gnome-tweak-tool installed, and don't want to install it, because it would also mean installing gnome-shell, you can use gconf-editor.

Install gconf-editor with

sudo apt-get install gconf-editor

Now, launch gconf-editor

Alt+F2gconf-editor

Go to desktop/gnome/interface and unmark buttons_have_icons and menus_have_icons


Cannot use sudo from GUI terminal emulator only

Figured out my own problem. Found this in the comments on the linked page:

  harningt says:     01/11/2013 at 06:25

  Got this setup, awesome  However, I had to make some modifications
  since creating a tty is breaks things in Ubuntu 13.10

  I edited the decrypt_luks.sh file and added –no-tty and dropped the
  tty setup code. And things work great

Making that little change solved my problem! Hope this helps anyone else in the same boat.


Make command run when MySQL database connection is made

Probably there are better solutions, and i don't know if this would be an optimal solution for you, but one way to accomplish this would be to simply call shell_exec() after each mysqli_connect():

$link = mysqli_connect('127.0.0.1', 'root', '', 'db');
shell_exec('<command>');


How to partition external USB without losing data?

Use the gparted utility on the ubuntu live-cd to resize (shrink) your FAT32 partition. Resizing is possible without the loss of data. After you finish, you'll be having some free space for a partition for ubuntu installation.


I believe the SiSu homepage itself has a very thorough document on using sisu: http://www.sisudoc.org/sisu/sisu_manual/sisu_intro.html


ubuntu & asus laptop graphics card problem

Fist step after an installation always is to upgrade all packages including open source graphic drivers to get bugs fixed. This can be done from a terminal or TTY even if graphics are not working:

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

In general, for an AMD card, the Open Source radeon driver is supported very well and should only be replace by a proprietary driver in case of issues.

If after that we still had grahics card issues we should proceed using the tested drivers from the official Ubuntu repositories accessible via System settings > Software & Updates > Additional Drivers (proprietary drivers (restricted) repository needs to be activated first):

Here shown for Nvidia

If after that the issue was not resolved we may look for a repository, a ppa or a Debian package providing a more recent graphics driver for your specific AMD card. This will already introduce a high risk of making your system instable but in case your system breaks at least it can usually be reverted.

Only if after all that the issue still was not resolved we may try our luck with downloading the bleeding edge untested newest and possibly buggy driver from the manufacturer website. This may also involve runnign a proprietary installation with a custom-made install script. In case our system does not work afte that we can not easily revert the changes we had made. So this step really should be a last resort reserved for rare cases that can not be resolved otherwise (e.g. a brand new high end card). Before you do that you should read other people's experiences, and you should also be sure that your issue will be resolved.

Also see

What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD?
AMD/ATI drivers from website vs. proprietary drivers in Ubuntu 12.04 Repos?


Ubuntu doesn't suspend when battery is low

It's probably a bug of Ubuntu of hardware support. Finally, I used the following script to suspend ubuntu when battery is low :
https://unix.stackexchange.com/a/289129


How to trash some file from a different directory without typing the directory each times?

Use Bash brace expansion:

git rm --cache Assignment_3/Apriori/{boden_trie.pdf,farhanSir.pdf}


How I do resolve this error while running Exodus cryptocurrency wallet on linux?

sudo apt-get install gconf2

seems to be the fix


How to purge previously only removed packages?

I just found the following command which worked:

sudo apt-get purge $(dpkg -l | grep '^rc' | awk '{print $2}')


Ubuntu 20.04 gnome sound: how to prevent device switching

From the manual: "The  PulseAudio  sound  server  interprets  a configuration script on startup, which is mainly used to define the set of modules to load. When PulseAudio runs in the per-user mode and ~/.config/pulse/default.pa exists, that file is used. When PulseAudio  runs  in the  per-user  mode  and  that  file  doesn't  exist,  /etc/pulse/default.pa is used."
So, copy /etc/pulse/default.pa to ~/.config/pulse/default.pa and comment out the line containing "load-module module-switch-on-connect".


Black screen after grub menu since 3.16.0-36 kernel update

Install the 3.16.0-37.51 kernel (notice the 51) that released yesterday with apt-get update and upgrade. It worked for my broadwell cpu.


Is it possible to “Turn off display” with power button without locking screen like in Windows. (Ubuntu 18.10)

Workaround:

It is possible, if the Menu key could be sacrificed.

First set a custom shortcut for Menu key as xset dpms force off

This means, when you press Menu key, xset dpms force off command will run and turn off the display.

Now the trick is to map this Menu key to PowerOff key with xmodmap

run xmodmap -pk | grep PowerOff to know the keycode for PowerOff button.

Example:

pratap@i7-6550U:~$ xmodmap -pk | grep PowerOff
    124     0x1008ff2a (XF86PowerOff)   0x0000 (NoSymbol)   0x1008ff2a (XF86PowerOff)   0x0000 (NoSymbol)   0x1008ff2a (XF86PowerOff)
pratap@i7-6550U:~$

In my case 124 is the Key code for PowerOff Button with my Keyboard.

now run the below command in terminal to map the PowerOff key to Menu key.

xmodmap -e "keycode 124 = Menu"

at this stage you literally have two Menu Keys in your keyboard which will run the command xset dpms force off.

Now you can check, if you press Menu Key or PowerOff key the display will be turned off.

the command xmodmap -e "keycode 124 = Menu" will not survive logout or reboot.

So, Create a startup preferences with command xmodmap -e "keycode 124 = Menu" like below and then Reboot.

When ever you want to remove this mapping, just delete the entry from startup preferences.


Thanks for sharing the link to the latest drivers. I have MP287 and I was looking for the correct drivers to detect the scanner.

I installed scangearmp-common_1.80-0~11~precise1_i386.deb and scangearmp-mp280series_1.80-0~11~precise1_i386.deb from there and it all works now.

Running /usr/bin/scangearmp detects the scanner and I was able to scan a few documents as well.

Perhaps this will work for you, as well.


How to install zpanel 10.1.1 for Ubuntu server 16.04

Support for ZPanel officially ended in 2014 when it was reported that it would only be supported for HostWinds customers.

It was subsequently forked by some of the original developers to create Sentora.  They even have a forum for ZPanel and there is some support there.

At this point, there have been major releases of Sentora (now version 1.0.3), but they warn that php7 is not yet supported due to a bottleneck with the development of suhosin (a type of jailshell mechanism).  This makes installing on Ubuntu 18.04, where php7 is the default, difficult but still technically possible.

See this question for installing php 5.6.


How do I limit thumbnails size and life time?

ok. I've found it in dconf-editor  http://itmages.ru/image/view/723527/4294c4e2

In words, run dconf-editor in a terminal after installing dconf-tools. In the window that opens, click on org, gnome, desktop,thumbnail-cache and set the desired values.


How to fix wifi on surface pro 2 Ubuntu 14.04

I believe your device Bus 001 Device 007: ID 1286:2044 Marvell Semiconductor, Inc. is driven by the driver mwifiex_usb. I am not sure that the driver version included in Ubuntu 14.04 yet covers it. Please load it and check the log for messages.

sudo modprobe mwifiex_usb
dmesg | grep mwi

Is it missing firmware? If so, please download this file to your desktop: http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.149.3_all.deb Now, back to the terminal:

cd ~/Desktop
sudo dpkg -i linux*.deb

Reboot and your wireless should be working.


I think it is a problem of restricted software. DVD playback is not included in Ubuntu by default, because it is copyright protected.

From the softwarecenter install Ubuntu-restricted-extras.


How do I disable a Nvida GPU and use the Intel one instead?

If you install the propriatary drivers from Nvidia in Ubuntu, you can switch between graphics cards in the Nvidia control panel. This option can be found in the Nvidia PRIME tab in that control panel.


Firefox, Ubuntu Gnome: Alt conflict with input method and HUD

Found answer:
type in adres bar
about:config
Hit Enter. Click Yes.
Then click on search string on this page. Type this (or paste it):
ui.key.menuAccessKeyFocuses

Then click on "true" to make it "false". Done, now when you push "Alt" key in firefox, menu dont appears and u can easy change language or make another action with Alt key.

Gratz!


Not sure about Clementine as I don't use it. However I believe it's based  on Amarok 1.4 which IIRC did not have native ipod support.

http://www.clementine-player.org/

suggests that you can copy the files to the ipod which means the ipod should see and play them. Remeber that when you copy files to the ipod you need to hit save otherwise the ipod's database won't get updated and so the new files won't be seen. Also, you might need to install libgpod to provide the functionality you need.

In my experience If you simply want to manage your Ipod then  I can confirm gtkpod is specifically designed for that purpose and works very well with my 80Gb Ipod classic. Also Amarok 2 works fine as well.

Hope this helps


Short battery life of the laptop from ubuntu 18.04

It is a known effect. You can install TLP.

Open a Terminal with Ctrl + Alt + T

sudo apt install tlp

For setting the TLP you can use the command line or an GUI. For the GUI you need to install TLPUI

sudo add-apt-repository ppa:linuxuprising/apps
sudo apt install tlpui


How can I repair my damaged Ubuntu desktop without an internet access and aslo get Ubuntu 12.04

This answer explain a lot of ways to install packages offline!
This was the best to me (credits to @Javier Rivera)
Check out Keryx, it's an offline repository manager.

How does it work? It lets you download updates and new programs (with dependencies) to your flash drive.

Its interface is similar to synaptic but it works from a pendrive (it doesn't need installation). Unfortunately, the GUI needs wxwidgets, which don't come preinstalled on Ubuntu (they're cross-platform and installable from here and ubuntu repository here). It can only install software in a Ubuntu system, but you can download the updates or new packages in any Linux, Windows or OS/X.

Here you can find a tutorial.

Another detailed step-by-step tutorial in this answer.

Launchpad also hosts downloadable files.

A screenshot:


Add a GPG key for an Artifactory debian repo

Since the keypair it was created by me, I simply had to add my key by running:

cat mykey | apt-key add -

and then run apt-get update


The Linux version environment variable to refer to the current user is USER.

To get the output you'd like to see use $USER in your command:

echo $USER

And to use it in another string such as a path:

/path/with/$USER/in/it

Will expand the username within the string. Though you should protect variable expansions with curly braces when a variable is directly next to other characters. It's not so important in this example as the USER variable is bounded by non-alphanumeric characters, but would be important in the following case:

/path/to/${USER}directory

(Thanks to ByteCommander for the tip in comments)

Another useful one to know is $HOME for the user's home directory.


When in a terminal just run the following command.

uptime

This will display your current uptime plus a little ekstra information.

Mine says.

08:44:21 up 1:05, 2 users, load average: 0,00, 0,01, 0,05

So my uptime is 1 hour and 5 minutes. In a bash script to only get the uptime I'd use

uptime | awk '{print $3}'

This will show only the 3rd section of the uptime command.


Depends on how the app was compiled and with what resources.  The app in question was compiled/developed when CC2.0 was current and probably checks for that as minimum requirement.  When the app checks current hardware and software drivers, the returned values are outside the minimum requirement because the app wasn't written for  >2.0 as a possibility.

Your statement about the code still working as backwards compatible is only correct if it was written to do so.

Also your statement about Nvidia guaranteeing that their drivers are backwards compatible is not true.  They have regularly deprecated both hardware and drivers after a reasonable length of time after the models were sold.  Seems like 10-15 years is typical.


What shell use if I run a script with sudo before

I tested this as well and if the example.sh is not marked as executable it gave me the same error.

This command should make the file executable.

sudo chmod +x example.sh

Also you should add the shebang #!/bin/bash as steeldriver mentioned in the comments.


For the sake of completeness. Turns out it's called ukuu.

And under Settings, there is an option to change notification frequency.


How do I install latest OpenConnect in Ubuntu 18.04?

install latest OpenConnect in Ubuntu 18.04

OpenConnect ppa listing : https://launchpad.net/ubuntu/+ppas?name_filter=openconnect

There is v7.08-3 with added GlobalProtect support → https://launchpad.net/~lopin/+archive/ubuntu/openconnect-globalprotect

And OpenConnect 8 for Ubuntu 18.04 → https://launchpad.net/~phusen/+archive/ubuntu/openconnect


Unable to create working installation media for Ubuntu

As a general recommendations, check md5sum - you need to compare both: first, the md5sum of a downloaded file first.
Second, the md5sum of a CD/DVD after you burn it. Both must match the original one, taken from Ubuntu hashes:

If you run Linux currently and want to check this ISO without having CD/DVD ot USB, you can run it as LIVE from you hardrive. It will cover all the compliance, because my the time it has started, Kernel, modules, drivers, apps and most subsytems(audio, video, network) are running, which is the same for your machine after installation.

Place your ISO file to /live:

sudo mkdit /live

sudo cp somelinux.iso /live

Add new menu entry to the grub.cfg

sudo gedit /etc/grub.d/40_custom

menuentry 'ISO Ubuntu 14.04 2014 Live' --class os --class gnu-linux --class gnu --class os --group group_main {
                set isofile="/live/ubuntu-14.04-desktop-amd64.iso"

         insmod ext2
         insmod loopback
         insmod iso9660
                loopback loop (hd0,msdos5)$isofile

                linux (loop)/casper/vmlinuz.efi  file=(loop)/cdrom/preseed/ubuntu.seed noprompt boot=casper persistent iso-scan/filename=/$isofile quiet splash --
                initrd (loop)/casper/initrd.lz

}

TO DO:

change in the menu entry above the code name for your partition, holding /live/somelinux.iso, in my case it's hd0,msdos5 because it is on /dev/sda5/
change the file name from somelinux.iso to yours, in my case I have: ubuntu-14.04-desktop-amd64.iso

update GRUB

sudo update-grub

reboot


What is the difference between Cinnamon and Cinnamon (Software rendering) when choosing a desktop enviornment before logging in?

That one use Hardware Acceleration awesomesauce, while the other use your CPU to draw effects (boo!).

Now explaining:

Cinnamon (Software Rendering) the only characteristic is that it uses software rendering to do more of the graphical work, like drawing window borders, moving windows, the bar, etc., and this cannot be changed if you don't have Hardware Acceleration capable GPU.

The Cinnamon has Hardware Acceleration capable techniques available. Is more eye-candy and powerful that the software render, since it uses a dedicated graphics card to make that all the effects looks fluid and fast. The advantage of this is that you can fallback to no-effects environment without problems.


How is Ubuntu tracking progress towards 200 million users?

No, there is no way to count users of Ubuntu. There are sources from which you can extrapolate more or less realistic estimates, though. For instance, the number of users of Ubuntu One will be known to Canonical, and I'm sure their services are able to identify clients, like any other. They're also opening a lot of shops in China that will sell computers with Ubuntu preinstalled. That's another reliable number. Then you have the software center, where you need to have an account in order to either purchase software or rate existing software. All of these are reliable numbers for a minimum number of users.

The real number can never be known, since Ubuntu is free software and doesn't come from one source. For instance, when I download a new CD image or updates, I do that from the University of Oslo. I don't think it's very important to know the exact number of users, though there is a prize for user # 200.000.000: he or she gets a lot of free software! :)

Hardly anyone knows the real number of users of their services, though. Skype, for instance, is said to have 5-600 million users or something, and about 100 million active users. I haven't used Skype in about ten years, but I'm sure I'm being counted as a user anyway. In other words, such numbers are never entirely reliable. They do portray the situation in their own way, however, and as long as you understand the nature of these numbers, they do tell a story.


Have you tried:

[Desktop Entry]
Version=1.0
Type=Application
Name=Appy
Comment=
Exec=/home/[username]/path/file.py
Icon=/usr/share/icons/hicolor/48x48/apps/pic.jpeg
Path=/home/[username]/path
Terminal=false
StartupNotify=false

Maybe try terminal=false .. I have a script that runs using this setup with terminal false and you may want to add the path line


The naming convention changed, see https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

  Starting with v197 systemd/udev will automatically assign predictable,
  stable network interface names for all local Ethernet, WLAN and WWAN
  interfaces. This is a departure from the traditional interface naming
  scheme ("eth0", "eth1", "wlan0", ...), but should fix real problems.

and https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c#L20

  Two character prefixes based on the type of interface:

  en -- Ethernet
  sl -- serial line IP (slip)
  wl -- wlan
  ww -- wwan

See the link for types of names, in your case (some of the code was edited)

  P (domain) p(bus)s(slot)PCI geographical location

so wlan0 became wlp16s0

wl == wlan

p16 == bus 16

s0 == slot 0


Change multiple filenames by replacing a character in folder and subfolders

Use find:

find folder -type f -iname '*.png' | rename -vn 's/\:/-/g'

Or:

find folder -type f -iname '*.png' -exec rename -vn 's/\:/-/g' {} +

Or bash's recursive globbing:

shopt -s globstar
rename -vn 's/\:/-/g' folder/**/*.png


Well, *.local are not resolved.

So on Client machine (Notebook)

Install avahi-dnsconfd

sudo apt-get install avahi-daemon avahi-dnsconfd avahi-discover avahi-utils

avahi-dnsconfd listens to the publishing and passes them to resolvconf.
Install libnss-mdns (This library was missing, Installing it fixed the problem in this case)

sudo apt-get install libnss-mdns

  nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality
  of the GNU C Library (glibc) providing host name resolution via Multicast
  DNS (using Zeroconf, aka Apple Bonjour / Apple Rendezvous ), effectively
  allowing name resolution by common Unix/Linux programs in the ad-hoc mDNS
  domain .local

Check /etc/nsswitch.conf

hosts:     files wins mdns4_minimal dns [NOTFOUND=return] mdns4

It should have mdns4_minimal or mdns4 before [NOTFOUND=return] and before dns if you have a DNS server that  configured resolve *.local.

Remove wins if you are not using winbind/samba to resolve
Windows share hostnames.
Reboot

Debuging hints:

Client machine (Notebook)

Check avahi-dnsconfd service status

$ service avahi-dnsconfd status
avahi-dnsconfd start/running, process 1548

Run avahi-discover, Your desktop should be listed in IPv4→local→Workstation

Example in screenshot mx5 is my PC where salah-Aspire-5738 is an other machine.

See if Avahi can resolve host names

avahi-resolve -4 --name yourdesktop.local

Ping test

$ ping salah-Aspire-5738.local
PING salah-Aspire-5738.local (192.168.1.3) 56(84) bytes of data.
64 bytes from salah-Aspire-5738.local (192.168.1.3): icmp_seq=1 ttl=64 time=2.69 ms

Server machine (Desktop), In case avahi-discover in Client machine did not list Server entry.

Confirm that avahi-daemon is installed

sudo apt-get install avahi-daemon avahi-dnsconfd avahi-discover avahi-utils

avahi-daemon provide services publishing.
Check its service status

$ service avahi-daemon status
avahi-daemon start/running, process 1517

By default avahi publish _workstation._tcp service. check using avahi-discover locally, if not listed try enabling it in /etc/avahi/avahi-daemon.conf (remove #)

publish-workstation=yes

Then restart daemon:

sudo service avahi-daemon restart

Check again.


how can I create a deb package from click qml application?

Yes it is absolutely necessary to create a .deb package to get into the Debian archives.  And after you've entered it there, you'll have to sign the Ubuntu code of conduct and then it'll go to the Ubuntu repositories.  (That one's easy: e-mail only)

For more info on the first step: https://wiki.debian.org/HowToPackageForDebian

However, if I'm not mistaken, you also have to show up in person to one of the Debian events with ID and have your public key signed by at least 2 other Debian developers.  That's how they keep out the virus boys...


How to sort lines in a text file alphabetically with gedit

answer for gedit 3.10.4 - ubuntu 14.04 && gedit 3.18.3 - ubuntu 16.04
you'll first have to install a plugin for gedit. it just takes a few clicks and no reboot.

Open gedit

Click Edit, select Preferences

Click Plugins, check Sort

Open the text file you want to work with or be sure changes are saved before you test it as you're unable to undo anything after sorting with gedit. (update - it seems that changes can be reverted in 16.04, not sure since what gedit version)

If you want to sort a portion of the file, highlight what you want sorted else leave all selected by default.

(gedit 3.10.4 - ubuntu 14.04) Click Edit, Click Sort..., Click Sort
(gedit 3.18.3 - ubuntu 16.04) Click Tools, Click Sort..., Click Sort


(I've asked more experienced people to look at this question but here's my kneejerk fast-response that might or might not be the right answer.)

Juju doesn't really do what you want here, it's the wrong tool for the job. Juju is for deploying to clouds, it's not really designed for you to be able to mess with individual client machines.

Your idea about custom .deb's seems like a better idea, however this sort of "I need these packages installed on these machines and then I want to configure them this exact way" looks more like a use case for puppet or chef.

You can install the stock mysql packages and then do all your database-y things as scripts. If you had custom mysql debs then you'd end up having to maintain these debs over time.

Given the amount of work being put into security updates and maintenance, you're probably better off using the stock packages and chef/puppeting to your needs post installation than maintaining your own custom debs. I'm not sure what your requirements are, just something to think about.


This kind of problem is hardware specific, without knowing your hardware information it is impossible to help.

First of all, have you fully updated your system?

If the problem persists after you have done a system update, you are highly suggested to report a bug at Launchpad. If you have not done so before, please read the instructions at https://help.ubuntu.com/community/ReportingBugs, the command to report bugs is called 'ubuntu-bug'.


What is the Interface "any" that I can see with Wireshark, and is it safe

I'm sure this is more clearly explained in man wireshark, but Any is used on systems with more than 1 interface, e.g. eth0, eth2, wlan0, like my firewall.


Storage partition: mount point during installation or later?

Could you link to the article, so we can see exactly what is explained?

Anyway, I would recommend to set up all the partitons during the install, then everything is taken care of with gparted and /etc/fstab is correct - you do not have to edit it manually afterwards. Other than that, creating a partition is the same, no technical difference between doing it during or after installing the OS.

Edit: After reading the article, it does not change anything, really. When you create your partition does not matter, but doing it after the installation will create extra manual work (which you can mess up :-))

And as a comment above noted: Instead of using symbolic links, you may want to mount the partitions with bind.


I just tried this steps, and it seems to work now!
Hope someone finds this useful!

Actually, it was still failing 'cause I've installed the wrong drivers.
When I installed this one, seems to be working fine (Hope this is it).
Anyway, if you check launchpad (Version 1.164.1), you'll see this very same issue listed in the changelog.


Bash: read values from a file after markers

You can do this purpose with many tools like:

grep

grep -oP '(?<={ ).*(?= })' FILENAME

awk

awk -F '({ | })' '{print $2}' FILENAME

sed

sed 's/.*{ \(.*\) }/\1/' FILENAME

All of above commands have an output like this:

value1
value2

Also you can save these commands output to another file by redirecting or with tee command.

For example:

grep -oP '(?<={ ).*(?= })' FILENAME > OUTPUT

Or:

grep -oP '(?<={ ).*(?= })' FILENAME | tee OUTPUT


The problem resolved by restarting containerd service :
systemctl restart containerd

The problem came from when I changed systemd , containered daemon was affected , and without restarting the daemon , I could not restart docker service


I have compiled a complete list of commandline and other lightweight tools for linux: Best Lightweight Applications for Linux. It also has a list of other music players.

Here is my personal favorite: cmus.


Unable to login in a Ubuntu server 16.04.5

It's a known bug:

  console login loop after entering username followed by RETURN

https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1812095

  Userspace break as a result of missing patch backport

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1813873

Check your kernel version to see if you're affected. 4.15.0-43-generic is good, 4.15.0-44-generic and 4.15.0-45-generic are bad.

$ uname -r
4.15.0-45-generic


Error while finding java version on ubuntu

try running sudo apt-get install --reinstall openjdk-7-jre-headless


Replacement for deprecated juju sync-tools command in juju 2.0

juju sync-tools is available in Juju 2.0 (it may not have been at the time the question was asked, however). Aside from a couple deprecated parameters, this should work the same as with Juju 1.x.

The commands documentation can be found here:
https://jujucharms.com/docs/2.0/commands


Comparison of dpkg/APT/aptitude/Ubuntu software centre/synaptic package manager

dpkg is tool to install/remove/configure... only a sigle package
apt and aptitude are tools for working with software repositories -- they can download packages from them, solve dependecies, calculate updates etc. they're using dpkg to install/configure packages (there are some differences between apt and aptitude, but in general, they are doing the same)
Synaptic is simple GUI for apt
Software Center is also GUI for apt (I think it's using python-apt) and it's much more "user friendly" than Synaptic


I can't Install Lubuntu 13.04 and 12.04 . Don't Boot what Im missing?

Try to use Unetbootin with an .iso of 13.04 or 12.04 as you want on an USB Flash Drive.
If that won't boot either, try Universal USB Installer. One of these should work. After the process of copying files etc. on an USB see if there is a grub or boot folder. If there is one, you should be good to go. Make sure to set up boot from USB :)