Having trouble permanently setting gateway

Solution 1 [dirty]

sudo nano /etc/rc.local

put

ifconfig eth0 10.0.2.211 netmask 255.255.255.0 &&
route add default gateway XXX.XXX.XXX.XXX

crtl+O [write] and crtl+x [close nano]. And the end of boot process ubuntu read and execute rc.local

Solution 2 [clear]

sudo nano /etc/network/interfaces

auto eth0
iface eth0 inet static
address XXX.XXX.XXX.XXX
netmask XXX.XXX.XXX.XXX
gateway XXX.XXX.XXX.XXX

crtl+O [write] and crtl+x [close nano].

Your ip and gw can not be same ip address.
If you wish to set only gateway after dhcp, put only this in rc.local

sudo nano /etc/rc.local

route add default gateway XXX.XXX.XXX.XXX

crtl+O [write] and crtl+x [close nano]


How many monitors support the Radeon hd 6870 eyefinity with Ubuntu?

According to this question, Ubuntu handles multiple monitors well, so you should be good to upgrade. According to the docs, you should run this after upgrading catalyst:

sudo amdconfig --initial -f
sudo amdconfig --set-pcs-str="DDX,EnableRandR12,FALSE"


I guess you can't uninstall it but delete the partition of ubuntu.

Boot from live usb/cd of ubuntu or if you still have your windows. Delete the ubuntu partition.

I'm not an experienced user, so i'm sorry if something goes wrong.


Can I exclude system monitor itself from the CPU usage shown?

Is it possible, as an option, to ignore the gnome-system-monitor process itself from the gnome-system-monitor calculation:

No. That would make all the figures inaccurate, wouldn't it? e.g. if gnome-system-monitor was consuming 2% of CPU, so you only had 98% available, but excluding it showed that you had 100% available?

Try the Processes tab sorted by CPU usage.


From the recovery mode , drop to root shell. then type this command

sudo apt-get install --reinstall libapt-pkgso.4.12

restart your PC and try again.


Ubuntu 16.04 desktop won't start after preseed automated installation

I had the same problem and found that the problem was in LVM. In my preseed.cfg I have:

d-i partman-auto/method string lvm

My preseed works without problems in a Ubuntu Server iso but when I use a LiveCD version something goes wrong. If I change the method to regular the problem disappears

d-i partman-auto/method string regular


It looks like the directory /usr/local/share/icons is missing. Create it by running:

sudo install -m 755 -d /usr/local/share/icons

Such an installation rule should be added to the Makefile by the developers of klavaro.


Waiting for other software manager to quit

Do you have synaptic or the ubuntu software center open?Have a look under processes.

To see running processes goto System-->Administration-->System Monitor

Search for the processes that says apt-get or synaptic.If you find any process,select the process and click End Process.

If no process were running but still if you cant install any packages then type the following in terminal..

sudo rm /var/lib/dpkg/lock

This will remove the lock,now you can install packages..

Also See this post


Unable to compile with vbnc on Ubuntu 12.04

vbnc will by default add many references, and apparently some of those are not installed by default on Ubuntu.

I do not know what you have to install to get System.Design.dll, but you can disable the default references by passing -noconfig:

vbnc -noconfig test.vb

Note that this will also disable a few other default features, most notably all the default imports will be disabled too.

So for instance this code:

Class Test
    Shared Sub Main
        Console.WriteLine ("Hello World")
    End Sub
End Class

when compiled like this:

vbnc -noconfig test.vb

will fail with:

test.vb (3,21) : error VBNC30451: 'Console' is not declared. It may be inaccessible due to its protection level.

The fix is easy, just pass -imports: to vbnc

vbnc -noconfig test.vb -imports:System

and now it should compile just fine.


Ubuntu is not found in the dual boot menu in a Windows 10 system

The GRUB bootloader for booting Ubuntu and Windows 10 is already installed on your hard drive, so you don't need to set the BIOS to boot from USB. If you remove the USB drive and set the boot order in the BIOS to boot first from the laptop's hard drive, the computer will boot and show you the GRUB boot menu allowing you to select Ubuntu or Windows 10 using the keyboard, and then the computer will boot the operating system that you have selected.


Fresh install of lubuntu synaptic is missing the search box in the tool bar

sudo apt-get install apt-xapian-index
sudo update-apt-xapian-index -vf

From: http://ubuntuforums.org/showthread.php?t=1178974


Wifi is fine on Ubuntu but very slow on window 7

I have the exact same wireless card that you have. It's an ASUS eeepc 1015PEM with a Broadcom 4313. It looks like an issue with the drivers for this wireless card. I'm no expert in wifi radio, so can't really understand how and why this is happening.

If you are ok with experimenting, take a look at this thread: How do I get my Broadcom BCM4313 working correctly?


Ubuntu 18.04 Connected to Wi-Fi but no internet?

I had this issue  that I can connect to the router but can't connect to other sites (when Im connected to wifi) and it keep saying resolving host and if I switched to the wired connection, internet worked correctly

to fix it I tried many answers, finally, I did the following

go to

sudo nano /etc/network/interfaces

the file should look like this

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

## comment out these things if you have them
#allow-hotplug eno1
#iface eno1 inet dhcp


Redirect an output to a file from command piping grep

Use the --line-buffered option for grep (and also get rid of the useless cat):

hexdump /dev/urandom | grep --line-buffered -i "ffff f" > random

This way the output is not buffered but every line put into random immediately. I would also recommend to use tee in your pipe to see how many lines have been produced:

hexdump /dev/urandom | grep --line-buffered -i "ffff f" | tee random


How does Mutter differ to Compiz in terms of its resource consumption?

I havent found anyone who has done a direct Mutter vs Compiz resource usage study.

Its arguable that Phoronix has done the closest to this looking recently at performance comparison between gnome-shell (Mutter), unity (compiz) & KWin using both NVIDIA and ATI graphics.

My reading of the results - and making the assumption that better performance is equivalent to less resource usage for the same work - is that gnome-shell and unity were perhaps equally resource hungry when using NVIDIA drivers, whereas gnome-shell using ATI was more resource hungry than Unity.

However, KWin was better than both gnome-shell and unity.

Usual caveats should apply when trying to interpret Phoronix results & methodologies - arguments should be directed to the Phoronix forums!


Ubuntu Screen blink in dual boot laptop(windows10+Ubuntu)

@Gyru, thanks for your suggestions man, because of you I was able to explore more to find a solution.

Although the suggestions given to me didn't completely eliminate my issue. I tried the following to get rid of screen blinking.

I tried to downgrade the ubuntu kernel and changed device graphics drivers but none of the worked fine. (Worked for a while but returned after sometime).
I tried uninstalling ubuntu from dual boot, but the problem was still there even after removing ubuntu.
Took backup of my necessary files in windows and installed Ubuntu 20.04 from bootable usb and removed windows 10 completely. (I used android mobile to create bootable ubuntu usb).

Now, I'm happily using ubuntu 20.04 (with no data loss) and I must admit it feels pretty good to use 20.04 compared to 18.04.


btrfs: not enough free disk space, but device not fully used

You're using data raid0, which means striped without parity. Once you fill ANY disk in a raid0 array, the array is full because you no longer have room on that disk to write its piece of a stripe.

That ~3TB device is just too much larger than the other devices you have to make full use of it in a btrfs-raid0 practical. To try to force the system to use the whole disk, you'd end up needing to partition it and then add both partitions as separate disks. DON'T DO THAT, by the way, as it will do weird and awful things to performance, which I would assume is pretty critical to you if you're using raid0...?

Another note: 3.2 is a pretty ancient kernel to be running btrfs IMO.  Btrfs is still in HEAVY development, and you really should be tracking much newer kernels if you're going to run btrfs.

Using Btrfs with Multiple Devices - Filesystem creation:  When you have drives with differing sizes and want to use the full capacity of each drive, you have to use the single profile for the data blocks, rather than raid0:

# Use full capacity of multiple drives with different sizes (metadata mirrored, data not mirrored and not striped)
mkfs.btrfs -d single /dev/sdb /dev/sdc


Removing Empathy from 12.10 wants to remove the Gnome-Core package

No you are not correct.

Removing gnome-core will not break your system.

gnome-core is in fact a meta-package, have a look at this url for adidtional information on the gnome-core package: http://packages.ubuntu.com/search?keywords=gnome-core

Info on meta-packages:
https://help.ubuntu.com/community/MetaPackages

You can safely uninstall Empathy and the gnome-core meta package.

milo


xrdp failed (problem connecting) when package was auto-updated

Check /var/log/apt/history.log, this was part of the upgrade from this morning (2019-01-10)

  xrdp:amd64 (0.6.1-2, 0.6.1-2ubuntu0.1)

I then downgraded:

sudo apt-get install xrdp=0.6.1-2

It now works


systemd-shim Doesn't Remove after rename this file org.freedesktop.systemd1.service.bak

I had similar issue. My solution is similar to presented here http://www.iasptk.com/ubuntu-fix-broken-package-best-solution/

I had to remove systemd-shim package entry from /var/lib/dpkg/status

After that sudo apt-get install -f started working


NOTE: do NOT go to 19.04.  If you go you need to first go to 18.04 and then to 20.04.  Maybe you can go straight there?

Check and Repair

sudo dpkg --configure -a

Looks for and install missing dependencies

sudo apt-get -f install

Sometime the hard disk gets too full
Running the update from the command line you will see somewhere "insufficient space"

sudo apt-get update

sudo apt-get upgrade

(Running updates from muon you consistently get "Could not download packages"
Your root partition is likely too full.) This has often happened during a copy when the target is incorrectly specified and the drive makes it up and fills it up.
Look for the big files/folders that are not needed and delete them.

Sometimes the headers/sources get messed up.

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

No updates appear.
Change your main repo and they will rebuild and may appear.
The package lists may get broken.

sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update


Tap-to-click not working in Lubuntu 14.04

Yesterday i had exactly the same problem, i also tried everything you listed here and nothing worked and i also tried to change the mouse options through the System Settings menu.

But today i connected my mouse to my laptop and he was also not working well, so then again i open the System Settings menu and gone to Mouse & Touchpad and in general changed the Primary Button to the Right and then to the Left again. And awkwardly this worked, now my touchpad and external mouse are working just fine.

I don't know if this will solve your problem, because like i said is an awkward solution/process for an awkward problem...


Either edit the file /etc/hostname or issue sudo echo "my_hostname" >> /etc/hostname (replacing "my_hostname" with the name you want for the system). The file is owned by root so you will have to invoke sudo privileges to make changes to it.


Does Ubuntu contain Non-free kernel blobs and other non-free system components?

Stallman is correct.  The Linux kernel includes several pieces of nonfree firmware for peripheral devices.  This firmware is not stored on the device; it must be copied to the device every time it boots.  Without the "blobs," the device can't be used.  The advantage of downloading firmware to the device is that it allows updating the device by simply updating the firmware on the computer.

The problem with these "blobs" is that they are just that--a chunk of binary distributed by the manufacturer.  The knowledge to run the devices is often kept proprietary.  Richard Stallman and other free software advocates object to this because they are not provided the source code used to create the binaries.  Most distributions, including the official Linux kernel, still ship these blobs because they vastly improve compatibility with devices (there's not an open alternative to them), and because it's "just" firmware.

(Side note: some people note that if you advocate for open firmware then you're only a couple steps away from advocating for open HDL diagrams for FPGAs, which would compromise companies' hardware intellectual property.  However, note that firmware can still be malicious; for example, cellular modem firmware has unrestricted network access and pretty broad access to the system as well.  That's one justification for the absolutist stance of "no non-free software.")

There are many distros that create "truly libre" Linux distributions.  One of the more popular ones is called Trisquel.  They're based on Ubuntu, and have a thorough deblobbing process.  The FSF uses this distro when they want to hand out Live CDs.  The one that I last heard of Stallman using is called GNewSense; it's based on Ubuntu and Debian.  Anything that the FSF endorses will be totally blob-free.


I allocated 36GB to my root and 200 GB to Home but it seems that everything is getting saved in root. How do I switch the allocation?

Root Linux directories follow well-known conventions as to what files get placed where.  /home ONLY contains files that are unique to your user (documents, photos, downloads, etc).  Any packages you install via apt or apt-get never install to /home and, typically, any data files they create go into /var.  It appears a majority of your usage falls outside of files that are created in /home.
Without resorting to really ugly hacks, the only way to "fix" your partitioning is to use a program like gparted to resize your partitions to shrink /dev/nvme0n1p9 (/home) and give the space to /dev/nvme0n1p7 (/).  Although gparted works flawlessly a majority of the time, there is always a chance something goes wrong and you incur data loss.


From the Ubuntu documentation.

To find (and change) system-level keyboard shortcuts, one can run the Keyboard Shortcuts applet, e.g. via System>Preferences>Keyboard Shortcuts on the main menu.


It seems you're using Telepathy PPA, remove it and update your sources and it should work.


xfce: How to get bottom panel (back). How to update time in the upper right corner

What I see in your screenshot looks like Plank. If you want to start Plank automatically, you need to add Plank to your startup applications.

Open the System Settings and choose Session and Startup, there open the Application Autostart-tab. Now click the Add-button.

in the Name field type Plank
in the Description field type whatever you want or leave it empty
in the Command field type plank

Now click Ok.

That's all, you're done. Now Plank will start whenever you login.

Regarding your other questions, please open a new question, the rule here is
one question per post as this is most helpful for future readers.

If you cannot open the system settings via the GUI, open a terminal with Ctrl+Alt+T and run the command xfce4-session-settings, this will directly open Session and Startup.


Launch new instance when there is no instance open on current workspace

You need to "isolate" your current workspace. You can do that by using the Workspace Isolated Dash GNOME shell extension for example. However, since Ubuntu nowadays (version 17.10 and later) comes with Ubuntu Dock (a fork of Dash to Dock), you can activate this by simply running the following command in Terminal, no need to do anything extra:

gsettings set org.gnome.shell.extensions.dash-to-dock isolate-workspaces true


How to find the location of latex installation for use with sphinx?

One way to find out where the latex executable is installed is

which latex


On doing ping in Wine and I am getting error message

It shows that this is a bug in Wine.

Read https://www.winehq.org/pipermail/wine-bugs/2010-September/250327.html

http://osdir.com/ml/wine-bugs/2014-10/msg00689.html

So instead you have just to use the Linux native ping


First, there are two distinct issues involved:

BIOS vs. EFI -- This is the type of firmware on the computer; or in some cases, because EFIs include a BIOS emulation layer, EFI-based computers can boot in BIOS/CSM/legacy mode. The version of GRUB 2 installed on the computer depends on the firmware type. Under BIOS, a 16-bit GRUB 2 (from the grub-pc package, IIRC) is installed; and under EFI, a GRUB 2 compiled to the same bit depth as the EFI itself (32- or 64-bit) is installed from the grub-efi-ia32 or grub-efi-amd64 package.
MBR vs. GPT -- The partition table type affects the details of where parts of BIOS-mode GRUB is installed -- on an MBR disk, the second stage of the boot loader goes in officially-unallocated sectors immediately following the MBR itself; and on a GPT disk, those second-stage files go in a special partition called the BIOS Boot Partition (identified as being type EF02 in gdisk or as having the "bios_grub flag" set in parted or GParted). For an EFI-mode boot, the partition table type is less important; it's just that the EFI System Partition (ESP) has a type code of EF under MBR using fdisk, whereas under GPT, it's identified with a type code of EF00 in gdisk or by a "boot flag" in parted or GParted. (Note that the "boot flag" has an entirely different meaning on MBR disks; an ESP cannot be properly identified on an MBR disk using parted or GParted.)

In all cases, GRUB 2's code is scattered all over the place. Locations where it might exist include:

The MBR -- In this context, "MBR" means the first sector of the disk. This location is used by most BIOS-mode installations, for both MBR and GPT disks. The first-stage GRUB code goes here, but the space is limited (just 440 bytes), so it's impossible to fit all of GRUB in the MBR.
Boot sectors on a Linux filesystem partition -- It's possible to install BIOS-mode GRUB so that its first-stage code goes in a partition rather than in an MBR. This configuration is unusual in Ubuntu.
Post-MBR sectors -- As noted earlier, on an MBR disk, GRUB stores part of itself immediately after the MBR.
The BIOS Boot Partition -- As noted earlier, a separate partition exists to take the place of the post-MBR sectors on a GPT disk. (This is done because the post-MBR sectors under GPT are part of the GPT itself, so they can't be used by GRUB.)
The ESP -- Under EFI, the main GRUB 2 binary goes in a file on the ESP. This file contains the equivalent of a BIOS-mode GRUB 2's MBR and post-MBR/BIOS Boot Partition code. The ESP is not used by GRUB for a BIOS-mode boot.
The Linux /boot directory -- In all cases, parts of GRUB 2 reside in files it can load from a normal filesystem. These files are normally in the Linux /boot directory, typically in /boot/grub or /boot/grub2.

This last point, really, is the "gotcha;" if you delete Ubuntu from a dual-boot installation, GRUB 2 will be partially removed, and so it will almost certainly launch but not work correctly because you will have deleted these configuration and support files. You'll end up with a grub> prompt when you try to boot. Under BIOS, your only choice at this point is to re-install the boot loader for your other OS. Under EFI, you can usually get the system booting again by adjusting the boot order using any number of tools (efibootmgr in Linux, bcdedit or EasyUEFI in Windows, bless in OS X, bcfg in an EFI shell, or system-specific firmware tools in many EFIs). Re-installing another OS's boot loader should also work, but is normally overkill.

Note that most boot loaders lack this particular problem. Under EFI, ELILO, GRUB Legacy, SYSLINUX, gummiboot/systemd-boot, and rEFInd all rely on configuration files stored on the same partition as the boot loader (normally the ESP), so if you delete Ubuntu, the worst that will happen is that you'll end up being unable to boot Ubuntu but you'll still be able to boot anything else you have installed. Under BIOS, LILO should still continue to work; but if I'm not mistaken, GRUB Legacy and SYSLINUX both share GRUB 2's problem.

It's possible to configure GRUB 2 to place its configuration and support files on the ESP rather than on a Linux filesystem. For reasons I don't claim to know, however, Ubuntu's developers chose to put the files on a Linux filesystem, so Ubuntu suffers from this problem.


Why do special characters change the width of trailing/leading space character in Gedit or medit?

It's a bug

Gedit's support for higher Unicode characters is not perfect.  Understand that what you see in gedit is not necessarily what you get in another app.  Gedit is a fun and useful little app, but it's not perfect.

I bet a bug is already reported.  Maybe it's one of these?
https://bugzilla.gnome.org/buglist.cgi?quicksearch=product%3A%22gedit%22%20utf-8&list_id=272617

I don't see one that matches what you're saying.  Maybe you can report a new bug by following these steps: https://wiki.gnome.org/Apps/Gedit/ReportingBugs

If you're writing code, try IntelliJ or another more serious editor.  Even vim might do better.  I tested and your sample works perfectly in both of those.

3-byte UTF-8 character

You're using a 3-byte UTF-8 character:

e2af88

I ran xxd on a test file created by gedit - Version 3.22.1.  xxd V1.10 27oct98 by Juergen Weigert did not display the character correctly either, but cat (GNU coreutils) 8.26 did.

So, let's go through the laborious process of translating the UTF-8 encoding into the Unicode character it represents.

Hx Binary
e2 1110 0010
af 1010 1111
88 1000 1000

Strip off the controls (each ends with a 0):

Ctr  Actual bits  Ctrl Meaning
1110 0010         1110 means: a three-byte character.
10   101111       10 means: continuation of character.
10   001000       10 means: continuation of character.

Concatenate the actual bits:

0010101111001000

Convert back to hex (It doesn't show/matter in this example, but if the number of bits doesn't divide by 4 evenly, you have to make groups of 4 bits starting from the right-hand side, then pad with zeros on the left-hand side):

Hx Binary
2b 0010 1011
c8 1100 1000

Unicode Character

2bc8 is "⯈" or "black medium right-pointing triangle centred" U+2BC8.  So Gedit is saving the correct character, just not displaying the spaces around it correctly.

It looks like 2bc8 was added in Unicode 7.0 in 2014: http://unicode.org/cldr/utility/character.jsp?a=2BC8

Maybe gedit doesn't fully support 7.0 yet?  Or that spaces sometimes get compressed near 3-byte UTF-8 characters?


BQ Aquaris E4.5 won't boot - Screen flashes and phone stops

Maybe my question is a little bit stupid but is the phone charged ?
Because I noticed on my phone that battery can go from 50% to 1% really fast.
Try to do it when your phone is connected to supply power.

If it's not come from battery try to remove SD card and SIM.


Do I need to reinstall language environments?

You need to re-install them.

Ubuntu and Windows talk in different ways, and because almost all of these are compiled, its even worse.

As such, you need to reinstall it.

side note: This is why things like python and ruby are nice, because then you write your code once and it will probably run anywhere


Intel graphic ppa error after apt-get update

I managed to solve it for Ubuntu 16.04 and 16.10 by running following commands

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-GROUP-KEY-ilg -O - | sudo apt-key add -
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | sudo apt-key add -
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-2 -O - | sudo apt-key add -
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-3 -O - | sudo apt-key add -
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-4 -O - | sudo apt-key add -


is there a bug with restart in edubuntu 12.04

1) Open the terminal and run this command to edit grub file:

sudo gedit /etc/default/grub

2) Find this line in the file:

GRUB_CMDLINE_LINUX=""

3) Change its value like this:

GRUB_CMDLINE_LINUX="reboot=bios"

4) Save the file

5) Update Grub by running this command in terminal:

sudo update-grub

6) Reboot your Netbook. Everything must be fine now.


docker ubuntu container exec does not replace command

I found the same question with good answer on stackoverflow.
I don't want to duplicate the answer, just give a short abstract:

The difference is between the default sh, which is dash in Ubuntu and bash in CentOS.
If you run your command with bash it will work as expected:

CMD ["/bin/bash", "/root/test.sh"]


Ubuntu 11.10 unable to reconize monitor while running in VM

@canadiancreed have you tried installing the VirtualBox Guest Additions? That will allow you to add a virtual driver for your monitor so that different resolutions can be supported. In my experience with VBox, that has shown to be a game-changer for usability.

HTH. Have a nice day. :)


How to install the packages that are downloaded during upgradation when the upgradation is interrupted?

You can boot a live session of 16.04.1 and start an install as usual. At the point where the installer asks you what to do, where to install, choose Something else and make sure to select both swap and / to use but do not select format.

Result: Ubuntu 16.04.1 should be properly installed, correcting the errors from the broken upgrade.

Caveats: Although this method won't delete your user data and setting, it will remove user installed software -> mentioned in the warning message you will get (/var, /opt, /etc folders will be reset). Just reinstall all the needed software after getting back the desktop environment.


Ubuntu 14.04 - sound not working, "Dummy Output"

I had to roll back the kernel as well:

sudo apt-get remove linux-image-3.16.0-34-generic

now I have this kernel version

$ uname -r
3.16.0-30-generic

I have tried everything I could find in Internet; nothing helped, only the previous kernel


Have a look at my solution to fixing this error on an Ubuntu Live USB

https://www.reddit.com/r/Ubuntu/comments/7nx165/firmware_bug_tsc_deadline_disabled/dt6d0mm/


Use Python popen to call an image viewer

You can use gvfs-open to launch the default application for the filetype.

e.g. gvfs-open test.png would open test.png in GPicView on my system, and GIMP on a system where the user has set the default application for opening png files to GIMP.


How do I stop my screen from constantly locking up in Focal?

Yeah.  It's now an hour and a half later (I was watching TV) and the screens and still on.  The secret: Go to "Session and Startup" and un-select two of the apps I tried to reconfigure: "Power Manager" and "Screensaver".
I don't know if you need to do both of them, but it certainly worked for 20.04, six years later.


Removing Gnome and it's left overs from Ubuntu 14.04

The bad thing about installing other Desktop environments is they install a lot of extra packages and it is sometimes hard to find and remove all of them.

Start by running this command:

sudo apt-get purge abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview alacarte argyll cups-pk-helper epiphany-browser epiphany-browser-data evolution evolution-common evolution-plugins fonts-cantarell fonts-lyx gdm gir1.2-accountsservice-1.0 gir1.2-caribou-1.0 gir1.2-clutter-gst-2.0 gir1.2-evince-3.0 gir1.2-gck-1 gir1.2-gconf-2.0 gir1.2-gcr-3 gir1.2-gdesktopenums-3.0 gir1.2-gkbd-3.0 gir1.2-gnomedesktop-3.0 gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-ibus-1.0 gir1.2-mutter-3.0 gir1.2-networkmanager-1.0 gir1.2-panelapplet-4.0 gir1.2-polkit-1.0 gir1.2-telepathyglib-0.12 gir1.2-telepathylogger-0.2 gir1.2-upowerglib-1.0 gir1.2-xkl-1.0 gjs glchess glines gnect gnibbles gnobots2 gnome-applets gnome-applets-data gnome-color-manager gnome-desktop-data gnome-dictionary gnome-games gnome-games-extra-data gnome-icon-theme-extras gnome-mahjongg gnome-packagekit gnome-packagekit-data gnome-panel gnome-panel-data gnome-search-tool gnome-session-fallback gnome-shell gnome-shell-common gnome-software-manager gnome-sushi gnome-tweak-tool gnome-update-viewer gnotravex gnotski gnumeric gnumeric-common gnumeric-doc gstreamer1.0-alsa gstreamer1.0-plugins-base-apps gstreamer1.0-pulseaudio gstreamer1.0-tools gtali iagno itstool libabiword-2.9 libaudit0 libcaribou-common libcaribou0 libcolamd2.7.1 libcolord-gtk1 libedataserverui-3.0-4 libevolution libgdict-1.0-6 libgdict-common libgdome2-0 libgdome2-cpp-smart0c2a libgjs0c libgoffice-0.8-8 libgoffice-0.8-8-common libgtkmathview0c2a libicc2 libimdi0 libiptcdata0 liblink-grammar4 libloudmouth1-0 libmail-spf-perl libmozjs185-1.0 libmutter0 libnetaddr-ip-perl libots0 libpst4 libtidy-0.99-0 libtracker-extract-0.14-0 libtracker-miner-0.14-0 libtracker-sparql-0.14-0 libwv-1.2-4 libytnef0 lightsoff link-grammar-dictionaries-en mutter mutter-common packagekit packagekit-backend-aptcc packagekit-tools plymouth-theme-ubuntu-gnome-logo plymouth-theme-ubuntu-gnome-text python-cloudfiles python-packagekit quadrapassel re2c simple-scan spamassassin spamc swell-foop tracker tracker-extract tracker-gui tracker-miner-fs tracker-utils ubuntu-gnome-default-settings ubuntu-gnome-desktop xsltproc yelp-tools

It will purge most of the extra packages you installed.

Then run sudo apt-get autoremove to remove extra packages and dependencies no longer needed on your system.

You might (or might not, depending on if gdm was removed already) need to use these commands to change your login screen back to Unity's default (which is lightDM)  run

sudo dpkg-reconfigure gdm

Hit enter at the prompt and then select lightdm from the options.
After that you can purge gdm with

sudo apt-get purge gdm

Finally run:

sudo apt-get install --reinstall ubuntu-desktop

In case the removal of gnome grabbed any bits of the main desktop.


Save URL to disk in Chrome (under XFCE 4.8)

Click on Customize & control chromium (wrench) > Tools > Create Application Shortcuts


if any software like:

Ubuntu software center
synaptic package manager
Software updater

or any other software manager(that you use to update or install) are running close them. then only you will not get this problem.

even after closing such software problem persist run this command:

sudo rm /var/lib/dpkg/lock

then run sudo apt-get update you should not get any error. now you can get back to the thing you were doing.


Cannot connect to a specific wifi on ubuntu 20.04

Network logs should be sent to /var/log/syslog
You can perhaps try monitoring the log using:
tail -f /var/log/syslog

Then attempting to connect again.
Optionally you can also share the log (tail -n40 /var/log/syslog) and perhaps someone can help further.


Why does wget fail with "wget: symbol lookup error: wget: undefined symbol: psl_str_to_utf8lower"?

As it turns out, libpsl is not installed because it is not an explicit dependency of wget it seems. Installing the library with sudo apt-get install libpsl-dev resolved my issue.

Update

I encountered the issue again on a new session and thought it weird. I tried uninstalling and reinstalling both wget and libpsl-dev to no avail. After a bit more searching, I stumbled upon a hint in this answer to a somewhat related question: after running ldd /usr/bin/wget, I saw that wget was linking to a copy of libpsl that is part of an external package I use for a project I work on (more to the point, I was modifying my environment variables by running a script after the installation of each external package).


How to format my HDD when installing Ubuntu?

When you get to the Installation Type screen, choose Erase and install Ubuntu.  And if you're comfortable, you can go into Something else, and you can manage partitions the way you want.

Click on delete to delete the existing partition first, and then click on New partition table.

After that highlight the created partition and click on add.  Create a partition with the shown mount point

but leave some space for a swap area


SU setgid: PERMISSION DENIED, SUDO: PERM_ROOT 0, -1, 1 PERMISSION DENIED

I just use

sudo -i

to log in as root on a local machine's terminal.


What is the default list of installed packages in kubuntu (14.04)?

Please find below a link providing the output of dpkg --get-selections in a clean kubuntu 14.04 install.

http://pastebin.ubuntu.com/10147788/

I did the installation without a network adapter so that nothing altered the final system setup.


Upgrade to latest tomcat/ JRE or stick with what's provided by LTS?

If you installed Tomcat with apt-get install and have not messed with your sources.list file too much, then you are secure by just letting Ubuntu update regularly.

Apparently the Tomcat7 package is not updated very often, so you might want to check the changelog to see whether they have a history of updating the package as soon as a security vulnerability is discovered:

http://changelogs.ubuntu.com/changelogs/pool/universe/t/tomcat7/tomcat7_7.0.26-1ubuntu1.2/changelog


What does the "Launch Application" window do when downloading software?

Goto Menu > System Tools > Lubuntu Software Centre.

There download the software "AptUrl".

Now, launch Firefox and goto Menu > Preferences.

Then, under Applications (tab) you will see "apt".

Click on "Always Ask", and then, "Use Other".

Now, navigate to Filesystem > usr > bin.

There select apturl and click on open.

Finally, close the Preferences window.

Now, every time you click on any apt link the apturl window will pop up and you will be able to install your software.

Hope! this helps. Thank You!


I cannot reinstall Cinnamon on Ubuntu 12.04. How can I do so?

Hi actually Cinnamon repository not existed in Ubuntu. You have to add its PPA if you want to install it.

So to install that open your terminal and paste these steps one by one .

sudo add-apt-repository ppa:merlwiz79/cinnamon-ppa

sudo apt-get update

sudo apt-get install cinnamon cinnamon-session cinnamon-settings


Check your browser settings and check how it downloads .iso files. set it in such a way that it downloads the file directly as it is and stores it somewhere.

Once done this,mount the file on a cd/dvd/usb.
All you need to know next is here.
Also there is some possibility that you will boot into black screen.If so read this.
And lastly,for all the basic problems you will mostly probably fall into,the frequent questions page.

And not to forget,the bios password won't matter at all.should not until you wish to break your computer with wrong bios settings.


For laptops that don't have a numpad, how can I create one?

have you tried a 3rd party usb plug in numpad
there are a few on the market at about $40
not the prettiest solution but would probably work

you may be able to install an alternate keyboard map and toggle it to a function key
combo (like ctl-caplock etc)

clive


It looks like you need to fetch the CodeLite developer key.

Try adding the key manually with

sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc

After you do this, go ahead and try reinstalling the package you were installing.

Source


Touchpad sensitivity issue even after upgrading to Ubuntu 12.10

I am having the same problem and also tried installing the driver in the link mentioned in the previous comment. I was able to get some good results using the xinput utility to modify the touchpad settings. Specifically with the "Synaptics Noise Cancellation" option. By default it was set to "12, 12". I am currently using a value of "28, 28". And the twitchy pointer behaves a lot better. It's not perfect but usable now. Information on the various driver options can be found here:

http://manpages.ubuntu.com/manpages/precise/man4/synaptics.4.html

I guess you could use the synclient utility as well to do this. FYI the command I used to modify my settings:

xinput set-prop 'AlpsPS/2 ALPS DualPoint TouchPad' 'Synaptics Noise Cancellation' 28 28


Unable to ssh into Ubuntu VM running w/ a NAT ip address even w/ openssh-server installed

The problem is the NAT. When you are using NAT, VirtualBox basically acts like a router making a subnet, and just like with a normal Router setup you can't access a device on a lower subnet. As I see it you have two options here:

Switch your VM to a "Bridged Adapter" mode(can be done even after an OS is installed) and then Reboot or Renew your Server's IP. Your VM should show up with a normal IP on your Network and then you can easily access it. I usually recommend this for Servers anyway because burying a Server defeats the use of one.
Make a Reverse SSH Tunnel. Basically instead of making a tunnel from your Host to the Guest Server, you do it the other way around. This is a pretty straight forward task and there's a nice HowTo to be found here: http://www.howtoforge.com/reverse-ssh-tunneling, Just use your Host's normal network IP and it should work. A user also posted a nice thing in the comments of the article about SSH Tunnels between 2 PCs with both being  behind NATs.

Out of the above I still recommend #1 for obvious advantages to a server setup but if you really want to keep the Server Sandboxed then #2 should work fine.


How to remove encrypted ubuntu 14.04 OS from SSD

Try this

1 boot live CD/USB

2 Choose try Ubuntu

3 Click the Ubuntu icon in the top left

4 Search for Gparted

5 Now right click on the drive you want and choose "unmount" if it only says mound ignore this step.

6 Right click it again and choose delete

7 Right click one more time and choose format then ntfs MAKE SURE TO SET PARTITION TYPE TO PRIMARY.

8 Now click the green tick on the tool bar to apply these changes

After this your disk should be clean


/etc/sudoers is owned by uid 777, should be 0

Have you run anything like sudo chown 777 on any files/directories by any chance? If not, someone has broken into your system. If you did, then don't ever do that again. It's apparent that whoever did it meant to use chmod instead of chown, but even with chmod it is very wrong.

You have to boot into recovery mode, or live session, and change its ownership and permission back to normal

chown root: /etc/sudoers
chmod 440 /etc/sudoers

Make sure you understand what chown does before using it. See https://help.ubuntu.com/community/FilePermissions


Best practice: Dual boot with internal SSD or external SSD (DELL XPS)

A full install of Ubuntu on the internal hard drive has better performance than installing Ubuntu on an external hard drive. Sipping Ubuntu's connectivity with the computer's hardware through a USB cable straw will definitely throttle Ubuntu's performance.
Splitting the internal SSD by installing Ubuntu alongside Windows will not affect Windows except for the bootloader which can be repaired or reinstalled if necessary. Your Windows data on the internal SSD will not be affected unless you accidentally overwrite a Windows partition when installing Ubuntu, so please be careful not to do that. The Ubuntu installer has a graphical partitioning screen that shows how the hard drive space will be split between Windows and Ubuntu. Please study this screen carefully before confirming the partitioning.
Check that:

The correct internal hard drive has been selected.

The changed partitioning gives enough disk space for both Windows and Ubuntu to run efficiently.


With 128GB of physical RAM in my repurposed server, do I need swap space at all?

No you don't need swap, would be my short answer. Unless you are going to do some heavy video editing or similar RAM heavy task, you won't have any speed up benefits of enabling any ram. As you will still have plenty of free ram for file caching.

Do note that you won't be able to hibernate without enabling something like twice the amount of RAM for your swap space, however as you state that you only have 64GB of disk storage, that wouldn't have been possible anyway.


This really sounds like a problem with your graphics driver. Try installing fglrx-installer-updates via the ubuntu software center or via the commandline (sudo apt-get install fglrx-installer-updates). After a reboot the driver should be working.

If this doesn't work, maybe the newest driver from AMD could work, see more information here: (https://help.ubuntu.com/community/BinaryDriverHowto/ATI).

If this doesn't work either, someone else has to help you.


What to do about syslog timestamp anomaly?

Apparent log file time stamp anomalies do occur, albeit rarely. The time stamp portion of the log entry is from when the related operation was initiated, yet the actual line is written to the log, if required, when the operation completes, or times out or whatever.

For your example I assume it took several minutes for the thermald sysfs write to timeout, and meanwhile the CPU1 message had already been entered in the log.

Here is an example from one of my server computers, where the file bot_trap.html takes about 50 minutes to deliver to the client:

$ tail -4 /var/log/apache2/access.log
192.168.111.101 - - [07/Jul/2016:20:41:06 -0700] "GET /about_smythies.html HTTP/1.1" 200 1515 "http://www.smythies.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
192.168.111.101 - - [07/Jul/2016:20:41:57 -0700] "GET /about_smythies.html HTTP/1.1" 200 1515 "http://www.smythies.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
192.168.111.101 - - [07/Jul/2016:19:52:55 -0700] "GET /bot_trap.html HTTP/1.1" 200 17542 "http://www.smythies.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
192.168.111.101 - - [07/Jul/2016:20:43:04 -0700] "GET /about_smythies.html HTTP/1.1" 200 1515 "http://www.smythies.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"


Stuck at Welcome screen to install Ubuntu

You need to mount the Ubuntu iso to a virtual drive location.

When the virtual machine starts, it may ask to specify the optical drive (or virtual optical drive) to install/boot from.

Otherwise, you can press / hold down F12 right after the virtual machine starts, allowing you to manually select several options. First, go to Devices, and make sure that the (real or virtual) optical drive containing the iso is selected. Then, select the option to boot from CD.

This should get you to screen which will allow you to proceed with installation.


Did you install via -Wine or without -Wine?

Anyhow I would just reinstall Steam via the terminal.

sudo apt-get install steam -y

A restart of your computer is needed.

After restart do an update.

sudo apt-get update

As a side note I've experienced that if you are running AMD you should install steam and do updates before installing AMD drivers.

Hope this helps.


How to share a wired internet connection via Wifi?

Click the network icon
Select "Create wireless network"
Choose a name, encryption type and password
Click create
Make sure you're connected to the internet.


Distorted headphone sound when using Skype for Linux

This fix worked for me:

sudoedit /etc/pulse/daemon.conf

and insert:

default-fragment-size-msec = 5


Where is 64-bit Mac (AMD64) version now?

It's not deleted, just moved: http://cdimage.ubuntu.com/releases/14.04/release/

Alternatively, you can click on the Alternative Downloads link, pick a mirror from the Other Images section.


Trying to install Ubuntu 15.10 from USB along Windows 10

It was indeed an issue with the iso file. Downloaded a fresh copy and installed without a hitch. Thanks.


Logging into a profile take more than 45 seconds in Ubuntu 12.04

it may be acceptable if you have an old machine years back, but I guess it's not the point of this topic :,) so let's try to press F7 while booting to track what's happening or any stuff slows down the launching speed.


How to check if my software is 32-bit or 64-bit

You can use the file command to check out what format has that executable. For example:

file /usr/bin/gedit
/usr/bin/gedit: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x5a388215eb6f60b420fc3b6d68ec52d563071f84, stripped


Running a subdomain site from user's home directory

Can you post the actual config?

This is likely caused by Apache not being configured to serve files out of /home; try a2enmod userdir to enable that set of permissions, and have a look at /etc/apache2/mods-enabled/userdir to see what does it (it'll be a <Directory> block and some allow directives).

If the site are using PHP you may need to edit /etc/apache2/mods-enabled/php*.conf and comment out the line that disables PHP in home directories, too.

  /home/%user%/example.com are owned by %user%:%user%, but even though Apache is running with www-data:www-data, it doesn't seem to have any problems reading and running %user%:%user%'s file. Is it because the read permissions of these files are all set to be allowed from all users?

Yes; it's the 'all users' permissions there. Apache reads PHP files rather than executing them, as far as permissions are concerned.


After distro upgrade to 17.10; dpkg --configure -a fails for linux-image-4.13.0-16-generic

You could try installing linux-image-generic instead of linux-signed-image-generic

Is the signed-image UEFI related?


I had the same problem, it was caused by a "plugin" value in "mysql.user" table.

Have you tried with this answer: https://askubuntu.com/a/636579/299538

Here is an explanation for that: https://superuser.com/a/1071043/592085


Format 12.04lts and install newest version

Follow these steps:

Backup all data from your existing precise machine to a disk.
Download latest live ISO of trusty tahr from ubuntu.com and burn it to a bootable medium (usb-drive/DVD).
Boot from the DVD and follow instructions.

The most "newbie-friendly" installation involves formatting the entire disk to do a clean install, so make sure you backup everything beforehand.

(However, my personal advice is - Don't DO IT! Trusty isn't ready for prime-time yet, it will take at least until September for its stability to match that of Precise.)


How do I make an input method for my conlang

An easy way if using IBus for simple substitution input methods is to use ibus-table. So first:

sudo apt-get install ibus-table

This includes a template file in /usr/share/ibus-table/tables/template.txt which you can copy and modify to fit your language. If you copied it to my-lang.txt, you can then build the database with:

ibus-table-createdb -s my-lang.txt -n my-lang.db

This will create the sqlite database. After that,

sudo cp my-lang.db /usr/share/ibus-table/tables/

After that either restart ibus by going to the indicator menu and selecting Restart (if ibus is not running you can start it with ibus-daemon -d). Then either running ibus-setup or selecting Preferences in the indicator, you can add your new input method on the Input Method tab (should be in Other in the dropdown menu), and select it in the indicator.

This is documented a bit here: https://code.google.com/p/ibus/wiki/HowToCreateATableForIBusTable

Also for a slightly better example than the default template, I suggest looking at the source for ibus-table-latex (assuming you have the source repositories enabled),

apt-get source ibus-table-latex

then check out tables/latex.txt in the downloaded ibus-table-other directory.


mplayer can't play audio from cron while ncmpcpp is playing simultaneously

The problem seems to be that mpd runs under user mpd per default (as a system daemon) and is thus unable to join your sessions' pulseaudio mixer, therefore it hogs the sound card output via alsa or even oss. In my answer, I assume that you are logged in and that the crontab is yours and not the system crontab.

MPD

Depending on your priorities, you have a lot of options that mostly circle around the idea teaching mpd to not hog the sound and use pulseaudio instead. See the mpd wiki.

mplayer

You can configure mplayer to default to pulseaudio by placing a line ao=pulse in ~/.mplayer/config but pulseaudio should pick it up nicely with its alsa plugin.


Ubuntu 20.04 on Dell Inspiron 5491 2 in 1, does it work?

Ubuntu 20.04 is only out a few months, there won't be a laptop or desktop in the whole world that it 100% works on yet. There will be little things, like the headphones sound problem on some devices, which you mentioned, for the next few months.

Dell are selling a lot of their new computers with Ubuntu 18.04 pre-installed again now, which means there will be good compatibility across models, even though the type you want doesn't specifically come with Ubuntu.

The only bios setting you need to change to test out Ubuntu on a live disk would be the boot order, that won't break your return-policy (as far as I know... that would be very odd). With the live-disk you'll be able to check that everything works (and that the things you find that might not work have fixes already.) without installing it or making any changes to your computer or hard drive.

I returned a Dell 4 years ago that had a faulty keyboard, it was dual-booted with Ubuntu and they had zero problems, asked zero questions, gave me my money back That maybe be different because it was a problem that they had caused, not me, EU law says any manufacturing fault makes something returnable for 2 whole years. You could always do a clean windows reinstall before returning it.
So yeah, I think that as Piot said, this does apply to you:
Will my device work with Ubuntu?


How to play DVDs which are encrypted (The Lord Of the Rings)

you have to install a package named as  libdvdcss2. open your terminal with CTRL+ALT+T and type as

sudo apt-get install libdvdread4

Then again in the terminal

sudo /usr/share/doc/libdvdread4/install-css.sh

Then restart your system to apply the changes.

You must read this & credit too

Legal Warning: Check with your local laws to make sure usage of libdvdcss2 would be legal in your area.


It is probably enough to overwrite existing data with zeros in the first megabyte, where the bootloader and the partition table reside. This is much faster and causes much wear of the memory cells compared to wiping the whole device. After that you can format the card without problem (as long as the card is not damaged physically).

mkusb-dus can do this job automatically. Either wipe the first megabyte or restore the drive to a standard storage device with an MSDOS partition table and a FAT32 file system. See these links,

help.ubuntu.com/community/mkusb

help.ubuntu.com/community/mkusb/wipe


Firefox bookmarks toolbar option is missing

I've been facing the same problem (no more bookmark toolbar and no option to enable it by right-clicking on the main toolbar like there used to be). Thought of a problem with the new version (as the problem occurred after last update for me) but my wife found a way to enable the bookmark toolbar.

You need to add the bookmark item to the main toolbar, click on it, select "Bookmarks toolbar" ("Barre personnelle" in French, could be a slightly different label), then check "Display the bookmarks toolbar".

See here what I'm talking about (in French):


Can I use Timeshift to go back to a previous release of Ubuntu?

Following @heynnema's suggestion to try the restore I installed Timeshift on the new 18.04 system and during initial configuration of Timeshift I pointed the location to where the previous snapshots were.  This offered me those snapshots and I restored from the one that I had manually created immediately before starting the upgrade.
The restore started properly and I could see all the files being restored inside a Terminal session.  However half way through the screen went blank and I could not log back in again.  The disk drive light was still working so I left it alone and after about 1 hour the system rebooted and .....I've got my OLD 16.04 configuration back!!!
I had been reluctant to try the restore because in one of the comments on this article :
https://itsfoss.com/backup-restore-linux-timeshift/
someone had said that they had tried to restore back from 20.04 to 18.04 but had been left with an unsuccessful and unbootable system.
I hope my experience will be of use to someone in the future and I would like to thank @heynnema for urging me to try the restore.
I would also like to Thank Tony George and all the other contributors to Timeshift for such an amazing and life saving piece of software.


How to request a package upgrade in the next Ubuntu release

File a bug report on Launchpad and tag it with the 'upgrade-software-version' tag.

For other tags see: https://wiki.ubuntu.com/Bugs/Tags


You can try PlayOnLinux for that.  Usually that works well, but not always.  Give PlayOnLinux a shot. To install it run this in Terminal:

sudo apt-get install playonlinux

And there's no way to 'convert' .exe to .deb


The boot manager for Ubuntu, GRUB2, was probably broken when you were installing updates. Try using Boot Repair to fix it. First boot to the Ubuntu live CD. Open a terminal window and run the following code to install and run boot repair:

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

Then follow the instructions and options in the program to repair your boot.

You can visit http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/ for more information.


How to get Eclipse plugins working with Software Center based installation

I would personally recommend not installing through the Software Centre for this very reason. Keeping things up to date for in-development plugins is a nightmare and there's always the chance that you want to stick with a known-working version but the repo version gets updated.

In short, I'd just download it from http://www.eclipse.org, stick it in my /home dir and live happily knowing I have some level of control over my development environment.

This of course comes at the cost of keeping it up to date but this is less of an issue as Eclipse can do this itself.


Solved by installing the Beta drivers instead and activating OpenGL detection from System Settings > Desktop Effects. Now I'm computing in 1080p.


It seems like DSK_VOL5 and DSK_VOL2 are your partition's label name. So run sudo blkid command, it will display all of your partitions along with the UUID and partition's label.

$ sudo blkid
[sudo] password for avinash:
/dev/sda1: UUID="2F4DAFCF02D7EBEB" TYPE="ntfs"
/dev/sda3: UUID="fbfc57fa-7545-49f9-b1d0-812518de8597" TYPE="ext4"
/dev/sda5: UUID="C68C57908C5779BF" TYPE="ntfs"
/dev/sda6: UUID="3EDAD310DAD2C2F7" TYPE="ntfs"
/dev/sda7: LABEL="New Volume" UUID="B0AEE55CAEE51C1A" TYPE="ntfs"

In the above example, the label name given to my /dev/sda7 partition is New Volume.


Why cannot Wubi install Ubuntu as a primary install?

I'm sorry but I don't understand the question. Wubi is an alternative Ubuntu installer through Windows. This is wubi, this is what it do. Install Ubuntu inside Windows (not alongside). Actually this is not even a regular installation. Ubuntu is hosted under Windows NTFS filesystem.

Ubuntu Wubi Installer and Wubi Guide for more info.

If you want to change the boot-order, then you should use carefully a Windows tool →
EasyBCD

I strongly suggest to install Ubuntu alongside Windows = regular dual-boot.


So after a lot of messing about, it seems setting this in sshd_config does the job.
Which is weird because I tried it before but now it seems to work.

AuthenticationMethods publickey

The only issue I have with this, is that it's a hard fail. I'd rather bots send password requests oblivious to the fact they will never be accepted.


No sound from analog output after upgrade to Ubuntu 19.04

I found this other question ( No Sound with Ubuntu 18.04.2 LTS after kernel Upgrade to linux 5.0 ), and its author provides a response that worked for me.

That was the output of running pactl list short sinks for me:

1   alsa_output.pci-0000_00_1f.3.iec958-stereo  module-alsa-card.c  s16le 2ch 44100Hz   IDLE
2   alsa_output.pci-0000_03_00.1.hdmi-stereo    module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED

Running the command pactl load-module module-detect worked for me, after its execution, the output of the first command is:

1   alsa_output.pci-0000_00_1f.3.iec958-stereo  module-alsa-card.c  s16le 2ch 44100Hz   IDLE
2   alsa_output.pci-0000_03_00.1.hdmi-stereo    module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
3   alsa_output.2.analog-stereo module-alsa-sink.c  s16le 2ch 44100Hz   IDLE

I checked and the analog output is available again! :D .

Important: Notice the difference between your command (pacmd load-module module-udev-detect) and the proposed one (pactl load-module module-detect).

EDIT:

Running the following these commands in order (opposed to just executing the one I provided), makes the system to recognize even more output sinks (doing it in the inverse order may cause to replace sinks instead of adding on top without removing the previously added ones):

pactl load-module module-alsa-sink
pactl load-module module-detect

pactl list short sinks:

2   alsa_output.pci-0000_03_00.1.hdmi-stereo    module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
3   alsa_output.2.analog-stereo module-alsa-sink.c  s16le 2ch 48000Hz   SUSPENDED
12  alsa_output.pci-0000_00_1f.3.analog-stereo  module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
13  alsa_output.2.analog-stereo.2   module-alsa-sink.c  s16le 2ch 44100Hz   IDLE


Duplicity error having to do with python?

The core problem is Unicode strings - you've got them somewhere, and Duplicity (or at least, the version you're using possibly) is not configured to handle Unicode strings properly.  This is due to the caveats of Python 2.

In Python 2, there are two separate "string" type classes:

str - This is the typical standard ASCII codec seen in many systems, and is more or less just the standard A-Z, 0-9, some symbols from the keyboard set of characters.
unicode - This is the UTF-8 encoding, the UTF-16, etc. encodings, which have a huge range of international characters, emojis, etc.

Whatever is being passed to Duplicity, in this case, us likely using a character from the UTF charsets that is outside the standard ASCII range of characters.  This is why we get a UnicodeDecodeError in the traceback - we're trying to convert Unicode strings to ASCII strings, and we can't due to characters being outside the ASCII character sets.

I would suggest filing a bug in Duplicity to make a note they don't handle Unicode properly, but I would also look at whatever files Duplicity is handling and make sure you don't have any Unicode characters (or hidden secret control characters) in the strings it's trying to work with.

  NOTE: According to the bugs linked, this is already fixed; it's possible that this was fixed in a later version of Deja-Dup, but not the version you are using, in which case you would need to find a Backported or Updated version to work around the error.

  On one of the bugs, a workaround of renaming filenames with foreign character sets in the Unicode set should be renamed to ASCII-only filenames, for DejaDup to handle them properly.  That's the only known workaround, short of updating to a newer DejaDup verison.


Which file does ubuntu read first after boot?

That is a very complex question that is easiest answered by installing bootchart…

apt-get install bootchart

Now, every time when your system reboots, it will create a .png file in /var/log/bootchart/ that contains not only the answer to your question, but also the time each command took, the CPU&disk utilisation, … everything you could ever ask about the boot process.

Except for the question: "Is upstart a daemon?"  I would say "yes and no" but feel free to make up your own mind…


I figure out my problem. My PWD had a space in it, hence the make command though that PCE-N15 was a target and not part of the PATH name.


In theory, you should be booting just fine, or at the very least getting to a GRUB boot menu when you boot. The fact that you're not suggests you've got a defective EFI. I therefore recommend that you check your manufacturer's site for an update. (Most manufacturers call their EFIs "BIOSes," although really they aren't.) If that doesn't help, try the following, in sequence, stopping once you get Linux booting:

Re-run Boot Repair again.
Boot to an emergency system, mount /dev/sda1 somewhere, create a directory on that partition called EFI/BOOT, and copy EFI/ubuntu/grubx64.efi to EFI/BOOT/bootx64.efi.
Try using a USB flash drive or CD-R version of my rEFInd boot manager. If it boots up, select either of the vmlinuz* options, hit F2 or Insert twice, and add ro root=/dev/sda3 to the boot options. If this boots Linux, try installing the Debian-package version of rEFInd. In theory, this should get the computer booting using rEFInd, and without a need to use F2/Insert to add kernel options.
If rEFInd doesn't come up when you reboot, then boot to Linux via the rEFInd USB/CD-R and type sudo mvrefind.sh /boot/efi/EFI/refind /boot/efi/EFI/BOOT in a Terminal window.
If that doesn't bring rEFInd up, reboot into Linux and type sudo /boot/efi/EFI/BOOT /boot/efi/EFI/Microsoft/Boot.
If that doesn't bring rEFInd up, then return the computer to the store for a refund; it's hopelessly defective. One caveat: If you can get to rEFInd but Linux isn't working, it's possible you've got an encryption/LUKS problem. I've never used this technology, so I'm not sure of precisely how it interacts with boot loaders, particularly on EFI systems.


How do i install and run Opera browser on Ubuntu 10.04?

Opera provides native packages to download for most Linux distributions at their website and even repositories, so updates are automatically pulled in via package management. There is an article on Opera in the Ubuntu community documentation providing information beyond just installing.

To add the opera repository with the signing key and install Opera execute the following commands:

echo "deb http://deb.opera.com/opera/ stable non-free" | sudo tee -a /etc/apt/sources.list.d/opera.list
wget -qO - http://deb.opera.com/archive.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install opera

I just tried it in my Lucid VM, it works and installs without issues.


ubuntu server not resolving LAN hostnames

About your current output

ping wstation
PING wstation.local.domain

Clearly indicates that your pc is appending .local.domain to non-FQDN queries. This is something configured improperly or at least wrong in your set up. (unless you actually use the .local.domain suffix on purpose)

Name resolving and periods

One important thing what a lot of people don't know, is that a full name should always end with a period (.). If you omit it, then the machine will try to resolve it within the local search domain (e.g. mydomain.tld). So in that case, a query for mypc.local would become mypc.local.mydomain.tld. To prevent this, query with the period.

Resolver configuration

The resolver configuration is of great importance here. In Ubuntu (and Debian) this is configured in the file /etc/network/interfaces (assuming you're not running NetworkManager):

iface eth0 inet static
   address 192.168.3.3
   netmask 255.255.255.0
   gateway 192.168.3.1
   dns-nameservers 192.168.3.45 192.168.8.10
   dns-search foo.org bar.com                      # <-- these are the search domains

Name resolving in Linux can also be accomplished in other ways. It's not just that the local DNS server is being queried for all of this. Take a look at your /etc/nsswitch.conf file for the hosts configuration of resolving:

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4

This means that files are tried first (this is the /etc/hosts file), then mDNS and only later the real DNS server is queried. mDNS is implemented using Avahi in Linux and is called Bonjour on Apple devices. It is using the .local suffix by default and works via broadcast messages. Much like ARP works, but then for DNS.

All these systems can be very confusing and even more when using .local in a regular DNS setup mixed with mDNS devices. I guess this is why you're confused now as to why one device works and the other doesn't: they're not all using the same resolving method.

To sort things out

Avoid the use if .local unless you want to rely on mDNS completely. From your question I understand you'd like to keep things configured yourself in a central place, so my approach here is to avoid it.
Configure your local DNS server (the DD-WRT device in your case) to use a special domain name, e.g. my.home. For dnsmasq this is a single setting, but in regular setups this should be configured on both the DNS server as well as the DHCP server (as it's being announced via DHCP).
Configure all PCs to have a simple and unique host name. They use this in their request for DHCP and this is used in the dnsmasq running on your router to resolve them. Alternatively, configure them manually to not to have to rely on DHCP.
Remove any leftover configuration in /etc/resolv.conf in case you fiddled with it in the past.
Configure the PCs in your network to use my.home as the local search domain. This can be done via DHCP automatically, or if using static addresses via the /etc/network/interfaces file or in Network Manager:

Now both simple name resolving (ping hostname) as well as full name (ping hostname.my.home) should work.


I suggest to use the --include option of grep:

grep -lr --include='*.c' search-pattern .


Cannot update Firefox with locale-fr (french)

I backed up my bookmarks and reinstalled Firefox, and the problem was solved.


With: lsb_release -a in Terminal.
You can check version you have. However I do not think there is a separate version for developers. There are updates normally about twice a week but can be more frequent if you have lots of application installed. If you think you those too often you can automate the update process to certain extent. You can go to Software and Updates application and select various updates which can be done without asking you in background.


How to remove rick roll script at terminal startup?

From the readme.

Misc.
If you've astley-overdosed:

./astley.sh stop

And also remove the script.

As far as I can tell is that you need to remove the script from disc.
A reboot will clean the process from memory OR do a ps -ef|grep astley and kill the process-id.


How do I install the GNOME sensors-applet package in Unity?

The sensors-applet package is not available in the 12.04 repositories. As a matter of fact, it is not even in 11.10.

The last release that had it was 11.04.


You can edit and then adjust the screen resolution for DosBox window in:

/home/username/.dosbox/dosbox-0.7x.conf

Please see Line 27 windowresolution=value - simple change the value as suggested from 320x240 to whatever you want, then save the .conf-file. (Please make a backup copy of the original .conf, before changing anything, just in case!!)

See list of possible value options available:

Use fullscreen=true for full screen
Use fullscreen=false for DOSBox in a window
Change fullresolution=original to fullresolution=desktop
When using a window, change windowresolution=original to windowresolution=1280x1024 (or use 1024x768 for a smaller window)
Change output=surface to output=openglnb (uses graphics hardware and maintains crisp image with scaling).
You might try output=ddraw, which in some cases has a lower CPU load.
Scroll down to the [render] section
Change aspect=false to aspect=true (maintains 4:3 aspect ratio, otherwise keep on false if you like the aspect ratio of your screen, mostly 16:9 or 16:10 nowadays)
Save the configuration file with Ctrl+s (or File - Save)
(Re)start DOSBox.

For more detail please refer to: dosboxWiki | dosboxScreen-resolution | Manual Instructions


GUI statistics calculator (binomial coefficient etc)?

Open GNOME "Calculator".
Enter the following as input: nCr(n;r)=n!÷r!÷(n−r)! (I recommend to copy and paste the code I provided.)
You have now defined a new function with name nCr.
You can use it like any predefined "Calculator" function. For example enter: nCr(4;2) to get the output of 6.


Start "chrome" with certain command line parameters?

you will probably have a local desktop file of chrome in /home/yourname/.local/share/applications that overrules the global one.

If you edit that one, it should work.


Problem after upgrading from 11.10 to 12.04

It seems that your Update did not succeed.If you had chosen online upgradeation,this is a frequent error.I faced it too.

The best and safest way to upgrade is using a LIVE CD/USB...

If it is still showing 11.10 you will have the option to upgrade when you start the installation.

I assume you know the process of installation.

The only thing you will have to do after clicking on INSTALL UBUNTU on the first screen is,

In the next screen,you will have to select UPGRADE 11.10 to 12.04

If any further assistance is needed do leave a comment.


What is the command for sleep/hibernate?

All of the following commands require root permissions.  The most common way to do this is prefix the command with sudo.

The command for Suspend (Sleep) is pm-suspend (sudo pm-suspend etc.)

The command for Hibernate is pm-hibernate (Note that Hibernation mode is not compatible with all hardware, please test this before using it.)

The command for the hibrid of them both is pm-suspend-hybrid

The hybrid command saves the session to the Hard Disk (safer storage place), but the system will stay running, allowing for faster resume.  This does not mean you can turn off your computer and have your session saved.  You will need to use the regular hibernate command for that.

These commands are provided by the package pm-utils, installed by default in Ubuntu 12.04LTS

Source: http://manpages.ubuntu.com/manpages/precise/man8/pm-action.8.html

If you have problems with those commands, please see the source.  It states that

  On some hardware putting the video card in the suspend state and
         recovering from it needs some special quirk handling. With the
         --quirk-* options of the pm-suspend and pm-suspend-hybrid commands you
         can select which quirks should be used.

A list of these quirks, and what they mean can be found here


Got it working .... had to install the following, besides the auto-dependencies:

sudo apt-get install libglib2.0-0:i386 libpng12-0:i386 libsm6:i386 libxrender1:i386 libfontconfig1:i386


How to know some app's console command in unity dash?

Navigate to this path in a file manager: /usr/share/applications

For example, with Nautilus you would run (in a terminal)

nautilus /usr/share/applications

Note: some user created application launchers may reside in ~/.local/share/applications
Be sure to check there too, if you've created a custom .desktop file.
Locate your program by name (using search if required).
Right click the file for your program.
Select 'Properties'.
There should be a 'Command' field which shows the command to be executed. If the program has arguments such as %U, those are file arguments passed when that program is used to open a file.


How to update Ubuntu when its installed parallel to Windows 7 on one machine

Follow the normal update process as described here.

Windows will not be disturbed by Ubuntu upgrades. Only Windows upgrades disturb Ubuntu.


Map "Super+ArrowDown" to minimize a window while the window is focused & the window is not in fullscreen

To change only that, you probably would need to write your own extension. However, there is an extension that behaves like you want, besides doing some other things. It is the Gnome Shell extension WinTile: Windows 10 window tiling for GNOME by Fmstrat.

It does exacty what you want, where Super+Down will take the window out of maximized mode, and a subsequent press will minimize it.

It does extra things, but them, you might like these. You can tile left and right as in standard Ubuntu with the Super+Left/Right keys. In addition, using Super+Up/Down on a half tiled window will quarter tile it.


How to access bios on ubuntu (to change settings)

In the case of a VirtualBox you have a virtual BIOS. You will find it in the machine's configuration in VirtualBox.


If you want to run a script as a normal user:

crontab -e

And add the line:

07,37 * * * * /usr/bin/tunlrupdate.sh

If you want to run your script as root:

sudo crontab -e

And add the same line:

07,37 * * * * /usr/bin/tunlrupdate.sh


Unit snap.networkmanager.service could not be found

I'm not sure if you are still looking for an answer. But I think that you might need to connect the network-manager:nmcli plug to the network-manager:service slot by:

sudo snap connect network-manager:nmcli network-manager:service

So that the connections look more like the documentation. See more on connections here: https://snapcraft.io/docs/interface-management. Then I think that you need start the snap version of network manager by first getting the service name from:

systemctl list-units

It should be something like snap.network-manager.networkmanager. You can start it by running:

sudo service snap.network-manager.networkmanager start

I recommend shutting down the apt version of the network-manager first just to be safe:

sudo service network-manager stop

You can confirm that the service is running by:

sudo service snap.network-manager.networkmanager status

Hope this helps!


VirtualBox - I cannot start GUI on Ubuntu Server anymore

The problem might be due to the installed VirtualBox guest additions and may occur when a new kernel gets installed. Reinstall the vbox guest additions, important is that the version matches the installed VirtualBox version. Reboot the virtual machine afterwards ... it should solve the problem.


How change Show Application key to Apple mouse?

Install a package called ccsm (CompizConfig Settings Manager).

sudo apt-get install ccsm

(or using Ubuntu Software Center, of course).

Please note that you should be careful. Compiz is not rock-stable, playing with its settings can result in compiz loosing all settings or shutting down. Ccsm is not recommended by Ubuntu. However, many people, including myself, think that it is a must-have tool necessary to adjust the system to ones needs.

Start ccsm (either type ccsm on the command line, or from Unity dash). In the text field on the left, type "scale" and select the "Scale plugin" on the right. Click on the "Bindings tab". This is what you should see:

The red arrow shows what you need to click to set up your mouse action to initiate window picker for all windows. If you want, in addition, to disable the keyboard shortcut, click on the backspace symbol next to the super-w shortcut.


Trying to install Varnish on Ubuntu 14.04 server LTS

libjemalloc1 is in the universe repositories

sudo apt-add-repository universe

gcc is in the main repositories

sudo apt-add-repository main

After that

sudo apt-get update
sudo apt-get install varnish


Which of these partitions should I delete if my goal is to get rid of my Ubuntu dualboot?

It looks like you only need the first 3 partitions, can you make an image using clonezilla before you start deleting partitions?
This way a partition is removed that was needed you can restore the disk back to when it was working.


To configure fluxbox menu, you need to edit the ~/.fluxbox/menu file.

This file is just a text file, so you can edit it with any text editor. The fluxbox documentation explains the syntax of this file:

  The Fluxbox menu is just a text file that allows you to make subfolders, launch applications, control workspaces, configure fluxbox, and exit X. The menu can take the following commands:

[begin] (MenuTitle)

[submenu]  (SubMenuName) {SubMenuTitle}

[exec] (ApplicationName) {/path/to/program}

[include] (/path/to/meufile)

[end]

[nop] (--------)

[workspaces] (SubMenuName)

[stylesdir] (/path/to/stylesdir)

[config] (FluxboxConfiguration)

[reconfigure] (Reconfigure)

[restart] (Restart)

[exit] (Exit)

  Most of this should be pretty self explanatory as to what it does. The italicized items > are the words that actually show up on your screen. I will explain the harder to understand items further.

  [nop] - This allows you to put text or an empty line if you wish that will not execute anything but just act as a seperator in your menu.

  [reconfigure] - If you use the menu to change your fluxbox configuration, the changes will not stay after you exit fluxbox. They need to be written to the init file to be permanent changes and can be done by hitting reconfigure after you've made changes you want.

  [restart] - I just want to make sure that everyone knows restart only restarts fluxbox, and not your whole system.


Ubuntu 20.04 install on new Lenovo Ideapad 5 AMD - No sreen rotation option, Tablet mode dyfunctional and no fingerprint option

For all AMD Renoir as your Ryzen 4500 you need kernel >=5.8
If you try :
$ glxinfo | egrep "(OpenGL vendor|OpenGL renderer|OpenGL version)"

You will get an answer with OpenGL vendor string: VMware. This is wrong.
Follow this to install the last kernel >= 5.8
$ sudo add-apt-repository ppa:cappelikan/ppa
$ sudo apt update
$ sudo apt install mainline

In the menu go to Ubuntu Mainline Kernel Installer and install a 5.8 kernel
After reboot you will get something with AMD Renoir from glxinfo :
$  glxinfo | egrep "(OpenGL vendor|OpenGL renderer|OpenGL version)"
OpenGL vendor string: X.Org
OpenGL renderer string: AMD RENOIR (DRM 3.38.0, 5.8.8-050808-generic, LLVM 10.0.0)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.0.8

You will perhaps need other steep to get all work fine but this is the first one.


Why some terminals return 4294967295 istead of 1000 for `cat /proc/self/loginuid`?

2 things to note:

4294967295 is -1 unsigned long and means that loginuid was not set.
The user id is set by pam_loginuid

Uncomment pam_loginuid in /etc/pam.d/lightdm and processes will pick it up too.


"How can I use my free Hotmail, Yahoo, or AOL email account via Claws Mail?
FreePOPs should allow you to create kind of a "bridge" between these proprietary email services and Claws Mail. Simply install FreePOPs, which is probably packaged in your distribution and configure it. After that, you can add an POP3 account to Claws Mail, which receiving server will be localhost and set the port to use to 2000 in the Advanced tab. The username to use consists of a complete email address, like johndoe@hotmail.com, so that FreePOP can know which type of account it is. For more information, see FreePOPs' user manual."

http://www.claws-mail.org/faq/index.php/Installation_and_Configuration#How_can_I_use_my_free_Hotmail.2C_Yahoo.2C_or_AOL_email_account_via_Claws_Mail.3F


Possible to collapse the output of tree -h?

You could use the JSON output of tree(1) instead (tree -J) and then render the resulting json using one of the many available JS-based renderers on the web, e. g.:

https://ourcodeworld.com/articles/read/753/creating-collapsible-tree-structures-from-json-into-html-in-javascript
https://gist.github.com/d3noob/8273682


Ubuntu desktop showing default color with no left nav or top navs after login and xrdp install

It looks like the fall back and unity2d options all fail now.  This is likely to be a temporary issue.

Until it is fixed, there is a fairly decent tutorial on how to limp along here: http://c-nergy.be/blog/?p=4448

I found this on the following similar question: 13.10 XRDP problem with gnome-fallback


Ubuntu 14.04 cannot get printing to either Canon LBP3300 or Canon MG5460

Downloading and installing driver software for this printer from the Canon site resulted in an unmet dependency on libtiff4 during the install. I found the key to get the MG5460 working wirelessly on 14.04 under Dependency is not satisfiable: libtiff4 when trying to install Lightworks on Ubuntu 14.04.

So…

Manually install libtiff4 for 14.04 as prescribed in the answer on that post.
Download the install for the printer from the Canon site. (At time of writing, this was titled 'MG5400 series IJ Printer Driver Ver. 3.80 for Linux (debian Packagearchive)'
Unzip and run the installation for the Canon driver.

tar -xzf cnijfilter-mg5400series-3.80-1-deb.tar.gz
cd cnijfilter-mg5400series-3.80-1-deb
sudo ./install.sh

Provided all other dependencies are met, the installation also asks all the necessary questions to setup the printer over WiFi.

Immediately after installation, I was able to print.


I believe the only safe way of upgrading is by using a Live Ubuntu session. The installtion will give you the upgrade option when it's applicable.

Also I would suggest not using your old Home partition when upgrading. This is because some configuration files sitting may cause compatiblity issues with the new Ubuntu version.

Personally, I actually don't think upgrading while the system is mounted should have been possible.


How to set two language spell check in the OS

This depends on the applications you want spellchecking for. For libreoffice install aspell-it and myspell-it with

sudo apt-get update
sudo apt-get install aspell-it myspell-it

Myspell is for mozilla Firefox and Thunderbird.


2 network interfaces but can't access server publicly

Based on output of your route -n command, your default gateway is set to 192.186.10.1 aka eno1 interface. Because of that your server in not Public accessible. You can change via changing metric for default routes.

Metric can change on several place. Best working for me is configuration in /etc/network/interfaces

auto lo
iface lo inet loopback
auto eno0
iface eno0 inet static
    address 192.168.x.x
    netmask 255.255.255.0
    network 192.168.x.0
    broadcast 192.168.x.255
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers 192.168.x.1 192.168.x.5
    dns-search domain.org.pk
    up route add default gw 192.168.x.1 metric 10

auto eno1
iface eno1 inet static
    address 116.x.x.x
    netmask 255.255.255.x
    broadcast 116.x.x.x
    gateway 116.x.x.153
    dns-nameservers 116.x.x.x 202.x.x.x

On this way we add metric 10 to the eno0 interface and on is now second best. Primary route is on eno1.
After this changes restart networking.

 systemctl restart networking.service

Now route -n will be different.

NOTE: If you communicate via eno0 only with 192.168.x.x network you do not need gateway on that interface. I mean, you can simple delete gateway from eno0 interface setup.


Back to login screen when using Xubuntu desktop

Looks like xfwm4 is messed up..Try this

At the login screen, switch to a terminal with control-alt-F1 and login
Type the following rm -R ~/.cache/sessions/* type logout switch back to the login screen with control-alt-F7 try to log in.


error in disk partitioning during ubuntu server 12.04 install

The official guide is https://help.ubuntu.com/12.04/serverguide/index.html

For your current purposes you might find this useful


Weird space on launcher after making a custom quicklist

Answered by OP in a comment:

  Well, removing the .desktop file from my user folder and editing the
  file in /usr/share/applications seems to work.


Try starting the openvpn daemon manually in your terminal by entering

> sudo service openvpn start

This worked for me, but I have no idea why network-manager doesn't start this service automatically since it is necessary for openvpn-connections.

EDIT: i managed to connect to the vpn with actual internet access by disabling the "Use TAP-Device"-checkbox in the advanced-dialog. Maybe this helps someone else, who stumbles upon this problem.
credits to: "Linuxwelt - Muhamed H."


PXE error after installing on Lenovo U410. How to solve it?

I found my mistake, Ubuntu 12.10 (or any Linux) needs a efi partition also if the BIOS has UEFI booting technology.


Crontab not working @reboot with macchanger

Commands have to be prefixed with the directory name and parameters have to be enclosed in double quotes. Assuming your macchanger resides in the regular path, create a file (with any name) in the /etc/cron.d directory containing:

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@reboot root sleep 15
@reboot root macchanger "-r eth0"


You should only have 1 gateway as far as I know. All traffic goes to the Internet through that interface.

route add default gw 192.168.0.1 eth0

Should be sufficient.

Although I'm not sure if it's required as you set the gateway in your eth0 config. See what the route command lists before you try adding it, it will probably have a default listed.

Then as long as you have IP forwarding and iptables enabled, all other computers can route through eth0 OK.

NAT setup in Ubuntu

If you require 2 subnets to talk to each other then you should configure iptables to allow that traffic. Omitting one of the lines of the iptables commands should prevent traffic in both directions.

First enable ip forwarding echo "1" > /proc/sys/net/ipv4/ip_forward

Then configure iptables.

sudo iptables -A FORWARD -i eth0 -o eth1 -s 192.168.1.0/24 -d 192.168.0.0/24 -j ACCEPT
sudo iptables -A FORWARD -i eth1 -o eth0 -s 192.168.0.0/24 -d 192.168.1.0/24 -j ACCEPT

To make this permanent do the following.

sudo iptables-save > /etc/iptables.ipv4.nat

add the line up iptables-restore < /etc/iptables.ipv4.nat to the bottom of /etc/network/interfaces

Then edit /etc/sysctl.conf.

net.ip4.ip_forward = 1

You can put the iptables-save file wherever is best for you.


You just have to run:

sudo add-apt-repository ppa:scribus/ppa
sudo apt update
sudo apt install scribus-ng

in the terminal.


Newer versions of traceroute have limited functionality

traceroute has a -A option in Ubuntu. The manual page for traceroute 17.04 says:

 SYNOPSIS

   traceroute [-46dFITUnreAV] [-f first_ttl] [-g gate,...]
           [-i device] [-m max_ttl] [-p port] [-s src_addr]
           [-q nqueries] [-N squeries] [-t tos]
           [-l flow_label] [-w waittime] [-z sendwait] [-UL] [-D]
           [-P proto] [--sport=port] [-M method] [-O mod_options]
           [--mtu] [--back]
           host [packet_len]
   traceroute6  [options]
   tcptraceroute  [options]
   lft  [options]

and

  -A     Perform AS path lookups in routing registries and print  results
          directly after the corresponding addresses.

It would be pretty odd to remove functionality from commands.

Make sure you TYPE it and do not copy/paste from the web. The - might not be a -.

My system (17.04) shows this:

~$ traceroute -A 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
...
 5  te0-0-0-1-tc1-br1.router.nl.clara.net (212.61.142.218) [AS8426]  8.755 ms  9.239 ms  9.588 ms
 6  core2.ams.net.google.com (80.249.209.100) [AS1200]  10.104 ms  4.409 ms  5.527 ms

So it is the normal one. I removed the first 4 due to the nameservers.


Up Arrow key does not function anymore on my Ubuntu 17.04

The first thing to test is whether the key works at all. From a terminal window run:

xev

A window should pop up. Make sure the window has focus (click on it), and then press the Up Arrow key. If the key works, then you will see a KeyPress event and corresponding KeyRelease event show up in the terminal window from which you ran xev.

They will look something like:

KeyPress event, serial 37, synthetic NO, window 0x1400001,
    root 0x20a, subw 0x0, time 39194549, (284,631), root:(284,683),
    state 0x0, keycode 111 (keysym 0xff52, Up), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x1400001,
    root 0x20a, subw 0x0, time 39194673, (284,631), root:(284,683),
    state 0x0, keycode 111 (keysym 0xff52, Up), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

If you do not see these events, then your issue is probably with the keyboard (check it on a different operating system?).

If you do see the events however, then you should be able to use the keycode given in the event (if you look above, mine says keycode 111 (keysym 0xff52, Up)) to remap the key to your desired functionality.

This answer should be helpful: https://askubuntu.com/a/347382/569198

You can also search to see if any other keycode is already mapped to 'Up' using:

xmodmap -pke | grep Up


Where to find UA token in Ubuntu Advantage?

Review UA status with sudo ua status command
Use your UA credentials to login at https://ubuntu.com/advantage and get the token at "Get your token" block
Apply the token with sudo ua attach [TOKEN] command
Review UA status with sudo ua status command again to see the changes


From ptxdist mailing list

The check for the sed fails for newer sed versions have a different version
string. This was fixed in ptxdist-2013.01.0. If you need to use older
versions, then you need to backport the relveant fix (git commit
"2a89985 configure.ac: change regex for sed version")

So I recommend using  the latest version or modifying the file configure.ac according to the git commit 2a89985.

git log -p 2a89985 will show you the changes in that commit

You can clone ptxdist using

git clone git://git.pengutronix.de/git/ptxdist.git

change current working directory into the ptxdist repository

cd ptxdist

checkout your bsp ptxdist version

git checkout ptxdist-2012.03.0

grab the fix commit

git cherry-pick 2a89985

generate autotools files for the buildsystem, you will need that because the git directory doesn't contains these files.

./autogen.sh

install ptxdist in the usual way (./.configure ... && make && make install)

There should be now a new ptxdist binary in your $PATH on correct install path. Migrate the bsp for that (That's okay because we know there was only one change and this is the bugfix for the buildsystem and doesn't change anything in ptxdist).

source


Panic over, I had typos --- these rules work

iptables -A INPUT -p udp --sport 53 -j ACCEPT
iptables -A INPUT -p udp --dport 53 -j ACCEPT
iptables -A OUTPUT -p udp --sport 53 -j ACCEPT
iptables -A OUTPUT -p udp --dport 53 -j ACCEPT

and from https://serverfault.com/questions/948050/ubuntu-understanding-iptables-rules-to-allow-domain-name-lookup

I'll try allowing port 53 on the loopback to tighten things up. Is that better to secure against random bot IP DDOS ? other answers are welcome.

These are what I have now..

iptables -A INPUT -p udp --sport 53 -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -p udp --dport 53 -m state --state NEW,ESTABLISHED -j ACCEPT


Laptop Asus Integrated Webcam is disabled

Comment out line beginning with GRUB_CMDLINE_LINUX_DEFAULT="quiet...." and put the below instead. Afterwards, run sudo update-grub and reboot.

sudo gedit /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1 acpi_enforce_resources=lax"

In case it doesn't work, run this command in a terminal:

sudo bash -c 'echo -1 > /sys/module/usbcore/parameters/autosuspend'

Reboot.  Good luck.


the problem is the key authenticity on there side.  Server side must have an authorized key from you.  I would ask what method of authenticity they want, but most likely it is a key.  Here is the documentation for that.

https://help.github.com/articles/generating-ssh-keys/

Basically you type.

ssh-keygen -t rsa

Output will be like..

Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A

then copy the key file to the school machine. It will be a .pub file in your .ssh directory.


Installed MATE Desktop, can't select it in login screen

Make sure that you installed MATE DE correctly:

sudo apt-get install ubuntu-mate-desktop^

If session is not shown try to reinstall mate-session-manager package:

sudo apt-get install --reinstall mate-session-manager

and then reboot.


You will need to scale down the laptop display proportionately to make the letters on the laptop screen (173mm total usable height) the same height (in mm) as the external display (268mm total usable height), which works out to be increasing internal display sizing by a factor of 1.5. 1080/1.5 = 720 so make your internal screen 720 tall by 1280 wide to make the character sizes match


The difference should be more apparent if you try it from a terminal without the ampersands. By default, gvim goes into the background so the user can run other commands, but -f makes it wait till the editor window closes.


Gauke non-fullscreen mode went out of screen. How can I resize it back?

Two options here:

Remove its settings:

rm -rf ~/.gconf/apps/guake

Open Guake, make right mouse click on it, select Preferences, General tab, adjust Main Window Height, click Close.


Installing Ubuntu after failed installation with flash drive (no disk drive)

First, log into Ubuntu (yes, you will have no panel and no launcher but we will fix that).

Then, go to Ctrl + Alt + F2
  and execute the following commands:

sudo apt-get update
sudo apt-get install compizconfig-settings-manager
export DISPLAY=:0
ccsm

press Ctrl + Alt + F7

When ccsm opens, scroll down to the unity plugin and enable it.

EDIT:

After enabling the plugin, you may need to go back to tty2 (press Ctrl + Alt + F2) and run the following commands:

export DISPLAY=:0
compiz --replace

If that still doesn't work, you may need to reset compiz:

export DISPLAY=:0
gnome-terminal

That should bring up a terminal on tty7 (press Ctrl + Alt + F7)

Then, start firefox from the terminal so that you can copy and paste the following commands from this page into the terminal:

firefox &

and then copy, paste, and execute the following three commands one by one:

wget https://launchpad.net/~amith/+archive/ubuntutools/+build/3910667/+files/unity-reset_0.1-8_all.deb
sudo dpkg -i unity-reset_0.1-8_all.deb
unity-reset

END OF EDIT

Or, if you need to, re-install the ubuntu desktop:

sudo apt-get install --reinstall ubuntu-desktop

Also, if you already ubuntu installed, don't worry about it. Just select "something else" when you get to the part of the installation that asks if you want to install ubuntu "along side" windows.

Then, right-click on the ubuntu partition, set it as "type" ext-4 and set the "mount point" to "/" and continue with the installation.

If you want to use gparted. You should use the USB you used to install ubuntu in a live session because you will not be able to edit your ubuntu partition while it is currently mounted, you must do that from a live session, from windows, or from another partition which does not exist right now.

Gparted is installed and available from the live session. Choose "try ubuntu without installing" and then access gparted from the apps menu.

Because of the error

Unity is not supported by your hardware

you can install a different version of Ubuntu that will run better on older hardware.

http://ubuntustudio.org/

http://xubuntu.org/

http://lubuntu.net/

All three of these run quite well on older machines.


I am looking for an easy to use graphical data recovery program

The Autopsy Forensic Browser (Available in the software center) is a graphical interface to SleuthKit.


How to upgrade from Ubuntu 14.04 to 15.04?

(tip: change the title in something more directly related to problems with wifi drivers. That's what you're actyally trying to solve)

In general, better/different drivers are not necessarily tied to the Ubuntu release you're using. In fact you may be able to install the same driver on different Ubuntu release.

Since you asked it: to upgrade to the latest Ubuntu release, use the following commands:

sudo apt-get update
sudo do-release-upgrade


How to find unused IP Address on a network?

A fast scanner is arp-scan which uses ARP to "see" other machines on a network. It also returns the MAC address and tries to determine the manufacturer of the network adapter.

Example usage (replace wlan0 by eth0 if needed):

$ sudo arp-scan -I wlan0 192.168.1.0/24
Interface: wlan0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.6 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.1.10    00:90:f5:33:e2:f2       CLEVO CO.
192.168.1.254   00:14:7f:72:cd:05       Thomson Telecom Belgium

2 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.6: 256 hosts scanned in 1.406 seconds (182.08 hosts/sec).  2 responded

Note that this utility only reports machines which are powered on. ping can be blocked, but arp-scan cannot be blocked since it's necessary for a machine to interact with other machines on a network. To be sure that an IP is unused, you'd better look at your router (for static/dynamic addresses) and DHCP server (for dynamic addresses).


Best way to deactivate Bluetooth on system startup? (with systemd and not upstart)

First, stop the service:

sudo systemctl stop bluetooth.service

Then, disable it:

sudo systemctl disable bluetooth.service

Check:

systemctl status bluetooth.service


How to connect laptop to TV using a VGA cable and a 3 RCA cable

VGA

VGA or Video Graphic Array output has separate (Component) colour outputs. It has separate outputs for Red, Green, Blue colours.

Also it doesn't have audio output.

RGB

RGB or Red, Green, Blue cables have one (Composite) video line while having two stereo audio lines. Even though it is called red, green, blue, it doesn't have separate video lines.

So VGA output needs to be converted into one or Composite line before it's connected to a RGB or RCA cable.

Such a converter is called a VGA to Composite converter or Component to Composite converter. You need to have a VGA to Composite converter for your purpose.


No WiFi network detected except Hotspots on Dell Inspiron with Ubuntu 18.04.2

Don't know if you still have and issue or not. I seen your message as I was experiencing the same issue with a dell inspiron 15 5558 laptop using the same wifi adapter (3160) and lost connectivity at the same time as yourself. I'm using Antergos, Arch based distro. Just wanted you to know that removing expressvpn (not sure if you use that or not) resolved the issue. The interesting thing in my case was that when I reinstalled expressvpn again, reenabled and started it in systemd the wifi still worked. I rebooted and all still came back up. This is what worked for me. It may or may not be relevant to yourself. Even if you don't have expressvpn installed you may wish to look at what 3rd party apps you have and look for potential culprits. Good luck.