Your question is similar to this one. Please have a look at it.

And if you just need the commands to do the job, you can visit this blog, but before executing a command you should always know what you are doing.


Can't Copy, paste or delete the files in NTFS partitions

With Ubuntu, you should by default be able to read and write on a partition that is formatted in ntfs, the file system of Microsoft Windows. The condition, however, is that the volume should be "clean", i.e. in a properly closed, cohesive state.

In a dual boot system, the ntfs partition may not be clean if Windows "Faststart" is enabled, or if the Windows system is hibernated instead of powered down. In these conditions, files on the volume may still be open. While Windows will cope with that on the next restart. Linux will mount such drives as read-only, or not at all.

Thus, to solve the issue:

Load MS Windows. Have the partition checked with the Windows drive checking tool.
Make sure "fast start" in Windows is disabled (only enable it if you do not plan to use the drive with Linux).
Fully shut down MS Windows (i.e., no Sleep or Hibernate).

Next time you boot into Ubuntu, the drive should mont without issues.


my update manager say "Requires installation of untrusted packages"

Run the command directly from the terminal emulator of your choice (personally, and as an example, I use Konsole). The command is sudo apt-get upgrade ORsudo apt-get dist-upgrade. Run man apt-get for more information.


Configure Brother HL-1212W wireless printer via Ubuntu

This link made everything work: instructions; instructions backup link, with one unfortunate exception (see end of the answer)
To get the printer to work wirelessly:

Download the installer for your printer (either searching for it or navigating the categories): http://support.brother.com/g/b/productsearch.aspx?c=eu_ot&lang=en&content=dl
Unzip  it (gunzip file from the command line interface).
Run the file as root (sudo  bash file)
Answer the questions: hl-1212w for printer name; yes to set device URI; auto for the selection of URI
Reset your computer

Unfortunately, according to the link, the initial setup that connects the printer to your wi-fi router has to be done via windows.


Can not access to Internet on virtual XP

From Ubuntu 12.04 dns name resolve changed so that you should add "dns-nameservers" parameter to your /etc/network/interfaces file, like :

dns-nameservers 8.8.8.8 8.8.4.4


The only solution that I know of is BadMem (by Rick van Rein), who is able to block bad memory sectors in Linux.

It works by instructing the kernel to lock those memory addresses you specified. This effectively stops Linux from ever addressing those addresses when allocating (and deallocating) memory.

You can read all about at  the BadMEM-HOWTO page!

Possible auxiliary documentation can be found at:

BadRAM - Community Ubuntu Documentation.

Linux Journal - Running Linux with Broken Memory By Rick van Rein


It ends up that there is a delay of 2ms set in the alt-tab switcher (called the Static Application Switcher) by default.

To change it, use you can use CompizConfig Settings Manager . After you install it, run it via the dash by searching for compiz or just run ccsm from alt-f2:

And then set Popup Window Delay to 0 in the behavior tab.

And crank up the speed:


Why won't Ubuntu tweak delete my Thumbnail Cache?

The ~/.cache/thumbnails/fail directory has somehow been owned by root when you(your user) should have been the owner. Ubuntu tweak crashed because it was trying to delete a file/folder which it is not permitted to and this has probably not been handled in it(might be bug, consider filing if not already filed against ubuntu-tweak).

First change the ownership of the folder by opening a terminal using Alt+F2 and typing "terminal" and then in the opened application, type the following:

sudo chown $USER:$USER ~/.cache/thumbnails/fail -R

and then reopen ubuntu tweak and try to clear the cache again.

Here the first $USER represents you as a user(is an environment variable set on boot and represents the user logged in) and the second one represents your group(the name of your group is same as your username, so can reuse the variable).

Refer to man chown for more.


Is there a way to enable the ability to move the terminal cursor using the mouse in the CLI?

You can place the cursor at a given a location using tput cup:

See:  Posix command that moves cursor to specific position in terminal window on Unix & Linux.


Turning off auto-maximizing of windows in 14.04

After trying to switch of several options which didn't solve the problem, what finally worked for me is to go in CCSM to 'Grid', then click on the tab 'Corners/Edges', and change 'Top Edge' from 'Maximize' to 'None'. Have you tried this yet?


Can't open gnome-control-center on Ubuntu 17.10

Settings app = gnome-control-center (and gnome-control-center != unity-control-center).

Nothing happened after running gnome-control-center because I presume you have Settings already open.

To check this, close Settings first and then run gnome-control-center. It should launch Settings again.


Whitelisting ports for detection in rkhunter

You edit /etc/rkhunter.conf

# command line
sudo -e /etc/rkhunter.conf

# graphical
gksu gedit /etc/rkhunter.conf

Under the WHITELIST_PORTS section , add your whitelist. The configuration file has examples.

# Syntax /full/path/to/binary Protocol:port
# Protocol = TCP / UDP
# You may use wildcards

PORT_WHITELIST=”/usr/sbin/privoxy TCP:8118″

#for multiple binaries / ports , list them as per the config file
PORT_WHITELIST="/usr/sbin/privoxy /usr/sbin/squid TCP:8118 TCP:3128"

# Alternate
PORT_WHITELIST="* TCP:22 TCP:80 TCP:443 TCP:8080"


Lubuntu won't install using wubi (pastebin of log file included)

That's a problem with Wubi 12.04 and Lubuntu. Ubuntu 12.04 is an LTS (long term support), but Lubuntu isn't LTS. So it hasn't been updated to 12.04.1 and 12.04.2.

Long story short, wubi.exe is looking for a Lubuntu 12.04.2 and not finding it so it fails. This is a bug in Wubi, but you can workaround it by using the original 12.04 wubi.exe from here: http://old-releases.ubuntu.com/releases/12.04/wubi-12.04.exe

It is better to install with the live USB, so you might want to look at this thread for help with this: my-computer-boots-to-a-black-screen-what-options-do-i-have-to-fix-it


I used on ubuntu 18.04

gsettings set org.gnome.mutter overlay-key 'Alt_R'

to deactivate super, and it retain shortcuts too.


Ill just throw this here for anyone having the same problem as me. When you start winbind and it just says "Failed to start Samba Winbind Deamon." you are having a problem whith the log being deprecated and therefore aren't seeing what is really going wrong.

Run testparm (just as andreas said). It will show you a warning about deprecated stuff. What you are looking for is syslog being deprecated. It might not show up at first until you solve other warnings.

'Syslog = 0' should be 'logging = syslog@1 /var/log/samba/log.%m'
Now, when starting winbind you will get a message about what went wrong in journalctl -xe. See: WARNING "syslog" option is deprecated for more information.


Just for the record, here's an alternative solution if you don't see the "Make Default" option:

This command lists all the connected monitors:

xrandr --prop | grep "[^dis]connected" | cut --delimiter=" " -f1

And this command sets the default monitor immediately:

xrandr --output VGA1 --primary

(replace VGA1 with the monitor name)


How to recover dpkg from corrupted downloads?

This line is a clue:

xz: (stdin): Compressed data is corrupt

Perhaps something happened to the .deb during transfer. Execute a sudo apt-get clean and then try again to force it to redownload the debs.

There are similar reports in Launchpad on these kind of errors for OpenOffice lately. This is likely a bug and should be reported as such.


Is it possible to view PDFs right in Chrome without downloading them first?

Google have recently released this feature for Chrome, however there are currently several bugs associated with it, especially on Linux. This feature will come, but may take time (anything from days to months, though Chrome is usually quite good at fixing such problems).

Alternatively you could use the official Docs PDF/PowerPoint Viewer to automatically view PDF files in Google Documents.


How to recover deleted files from CF card？

Photorec is exactly that searching you for. One thing should be mentioned, however, its console application so you will have to be ready for it.
You can install it by using sudo apt install testdisk and start by typing sudo photorec in terminal emulator.

There is some step-by-step guides which may help you https://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step ,

https://recoverit.wondershare.com/photo-recovery/how-to-use-photorec.html (this one recommends another software as ad, but i'd rather stick with Photorec)


I've been stuck in the same situation but I've solved it.

Set your proxy in /etc/envirnment (or export http_porxy="http://username:password@proxyURL:port")
Check it with bash echo $http_proxy
sudo snap set system proxy.http=$http_proxy
sudo snap set system proxy.https=$http_proxy

With that configuration I could pass the proxy with authentification.


how to connect to wi fi in dell vostro 2420?

First, install the prerequisites by opening a terminal and pasting, one line at a time:

sudo apt-get install linux-headers$(uname -r | grep -Po "\-[a-z].*")
sudo apt-get install build-essential dkms

Please download the appropriate DEB file from Dropbox here:

32-bit/i386

64-bit/amd64

Open a terminal, and install it with sudo dpkg -i.

Hopefully it works!

Edit: 12.04 now has an updated bcmwl-kernel-source package that reportedly supports BCM43142.


How can I disable the Windows key from opening the Activities overview?

gnome-tweak-tool > Keyboard and mouse > Switch between overview and desktop offers only 2 options:

Left super, Default
Right super

Switching the option to 'Right super' should do the trick.
However you may set up custom shortcut using:

dconf write /org/gnome/mutter/overlay-key "'Alt_R'"

or

gsettings set org.gnome.mutter overlay-key 'Alt_R'


Better to use the official repositories:

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install wget gdebi-core libgl1-mesa-dri:i386 libgl1-mesa-glx:i386
sudo apt-get install lib32gcc1

Then, you are ready to go.

EDIT

This only works for Ubuntu
For any raspberry devices (not 100% sure if it works or not), better to compile the steamCMD (check link1, link2)
The more you know: Steam is only written for x86_64/x86 not ARM.


Can't switch to TTY / virtual console on Mac Book Pro, 14.04

I ended up being able to resolve this with the help of xinput and figuring out that the keys were working, I just needed to be holding down the fn key.


Keyboard starts skipping characters after wake from suspension/sleep, restart required.

Found a solution by running:

sudo modprobe -r psmouse
sudo modprobe psmouse

so i put it in a script and placed it in /etc/pm/sleep.d/ and named it 20_keyboardquickfix
#!/bin/sh
#put it in /etc/pm/sleep.d/ and name it 20_keyboardquickfix
#make sure it is runnable. by running "sudo chmod 755 20_keyboardquickfix"

#this scipts removes and then inserts the module psmouse, this is a #quick fix for keyboard working strangely after wakeup from sleep
#solution was found on askubuntu:
#http://askubuntu.com/questions/77143/keyboard-issues-after-resuming-from-sleep-on-a-dell-vostro-13?rq=1

modprobe -r psmouse
sleep 3
modprobe psmouse


Click on sidebar opens last opened application

This does it:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews'

Thanks to this answer:
How to change the behavior of clicking on grouped apps in launcher


i had same problem but this does it from terminal command line:

sudo apt-get purge cairo-dock cairo-dock-plug-ins && sudo apt-get autoremove

from : Cairo-Dock - Uninstall | Glx-Dock

hope it helps


Depends on your hardware raid controller, but more likely then not you can find this information.

You first need to identify your raid card

lspci -vv | grep -i raid

This will show the hardware.

For Debian/ Ubuntu systems IMO this is the next page you should go to

https://wiki.debian.org/LinuxRaidForAdmins

More likely then not you will need to download and install vendor specific software and that page will tell you what to download and where to obtain and install the software.

Then you need to read the man page or find a tutorial on the tool. My only experience is with megaraid and to be honest the documentation was not great and took a while for me to work through. At the end of the day you may need to read the man page.

Here is a referance for what megaraid will do - https://hwraid.le-vert.net/wiki/LSIMegaRAIDSAS

If you need more specific information you need to identify your hardware or at least post the output of lspci -vv | grep -i raid

See also this discussion about hardware / software RAID - https://unix.stackexchange.com/questions/139271/how-to-get-details-of-raid-devices-both-soft-and-hard


Try adding or changing flat-volumes=no setting in pulseaudio's daemon.conf:
The "daemon.conf" can be found in the following paths:
User definitions:
~/.config/pulse/daemon.conf

~/.config/pulse/daemon.conf.d/*.conf

System definitions:
/etc/pulse/daemon.conf

/etc/pulse/daemon.conf.d/*.conf

About flat-volumes:
pulse-daemon.conf(5)

flat-volumes Enable 'flat' volumes, i.e. where possible let the sink volume equal the maximum of the volumes of the inputs connected to it. Takes a boolean argument, defaults to yes.

Pulseaudio Arch Wiki

flat-volumes scales the device-volume with the volume of the "loudest" application. For example, raising the VoIP call volume will raise the hardware volume and adjust the music-player volume so it stays where it was, without having to lower the volume of the music-player manually. Defaults to yes upstream, but to no within Arch.
Note: The default behavior upstream can sometimes be confusing and some applications, unaware of this feature, can set their volume to 100% at startup, potentially blowing your speakers or your ears. This is why Arch defaults to the classic (ALSA) behavior by setting this to no.


Does mysql comes with the default installation?

MySQL will be installed if you pick certain server roles during installation, like the LAMP role (Linux Apache MySQL PHP).


A quick restart should correct any potential issues. If the problems persists feel free to reply.
sudo systemctl restart networking.service


Firstly a lot of people work on Ubuntu in their free time (many of them programming, but also those of here for instance answering people's questions). Also some people donate to Ubuntu.

However there is more to the story. Canonical Ltd. is a private company that created and continues to pay for Ubuntu. We know Canonical hadn't been making a profit, but Canonical was initially founded by multi-millionaire Mark Shuttleworth which meant it didn't have to focus on making money right away.

However Canonical is now looking towards to making Ubuntu profitable. (After all, they have 600+ employees to pay every month!) There are some indications this has been successful. Their key revenue streams offer services around Ubuntu:

Support services (mostly to business) alongside which they sell Landscape
Contracting services to businesses (for instance working with OEMs such as Dell, or helping Google with Chrome OS). As Ubuntu makes its way onto mobile phones and TVs then this will grow.
Ubuntu Software Centre's paid section (Canonical takes a cut of purchases)
The Canonical Store (selling physical Ubuntu branded items) - discontinued
Closed-source projects wishing to use Launchpad.net can purchase a license
Ubuntu One (online file storage and synchronization service) and Music Store (selling music from within Ubuntu) - discontinued.
Amazon referrals. When you search the Ubuntu Dash, you may see Amazon products (unless you have turned it off). Ubuntu takes a cut of these.[ref]

All of these are areas that Canonical hopes will grow.


option "-O filename"  will set the output name
-O is capital o, not zero


HowTo repair GRUB in triple boot with two encrypted LVM?

I have found the solution:
1) reinstallation of Ubuntu followed by Debian
sda2 NTFS (210Gb) Win7
sda3 extended partition where both Linux distros are installed into to LVMs:
sda5 boot (250Mb) for Ubuntu
sda6 encrypted LVM (with separate Ubuntu swap and root partitions)
sda7 boot (300Mb) for Debian
sda8 encrypted LVM (with separate Debian swap and root partitions)

Debian testing has newer GRUB version 2.x than Ubuntu 12.04 (1.98) so this installation brought up Debian GRUB loader with all 3 OS recognized.

Before updating in Debian I decrypted and activated the Ubuntu LVM (but without mounting) and Debian again recognized all 3 OS.

Booting in Ubuntu: before updating the system the Debian LVM was decrypted and the volume group activated (same as before with Ubuntu during Debian update) and Ubuntu recognized again all 3 OS (such a relieve).

So each time before any update the other encrypted LVM needs to be decrypted and activated to avoid problems.


How to set Ubuntu Server to ipv4 network address

If it were my machine, I would edit the /etc/network/interfaces file.  Here's an example of what the eth0 entry should look like:

iface eth0 inet static
    address 192.168.1.50
    netmask 255.255.255.0
    gateway 192.168.1.254

Somewhere towards the top of the file, there should be a line that says

auto eth0

Or something like

auto lo eth0 (basically, "auto blahblahblahblah eth0")

This will automatically bring up eth0 with the IP you specify under address.  Make sure you choose the right netmask (sometimes referred to as subnet mask) and gateway (usually the IP address of your router).

If you do all this, you should have a fully functional IPv4 connection.


How to automatically configure the keyboard, in order to get "¿?" by just pressing "?"

Sadly no. At least there isn't a way to make it work in all text editors. There are some that will "Autocorrect" the wrong ? at the start but no one actually adds both when you press one.

I would recommend you to use a spanish layout instead, or if you are stuck with the english one, at least use it with AltGr dead keys, that has a key combination to add the ¿:

In the image is chopped off, but besides Shift R, when you press AltGr + / it sends ¿.


How to check if sudo password has been entered for this terminal session?

You can use:

if sudo -n true 2>/dev/null; then
    echo "I got sudo"
else
    echo "I don't have sudo"
fi

The -n (non-interactive) option prevents sudo from prompting the user for a password.  If a password is required for the command to run, sudo will display an error message (redirected to /dev/null) and exit. If the password is not required, then this expression is true: sudo -n true 2>/dev/null.


I'm running Ubuntu 20.10 Groovy Gorilla. Mysql packages aren't installing/updating

I assume that you have run sudo apt update and sudo apt upgrade and got the result you described in your question.
This is most likely the issue:
In order to upgrade the mentioned packages, other packages need to be uninstalled (dependency issues most of the time). Since this is a thing the user potentially does not want, it doesn't happen automatically.
In order to upgrade the packages, run the following command:
sudo apt-get dist-upgrade

Check the output for packages to remove. If you're OK with removing the packages, proceed.


Can't find the files i had on Windows 7 in Ubuntu 11.10 with Dual Boot

Depending on what options you chose when installing, you may have just overwritten all those files. It its generally recommended to install an OS in an empty partition and keep files you want readable from both operating systems in a separate partition formatted using a filesystem both can read.


How to make wget faster or multithreading?

Why not try axel? It is a fully fledged Command line based Downloader.

Install axel and spawn download by

axel -a -n [Num_of_Thread] link1 link2 link3 ...

where '[Num_of_Thread]' is the number of parallel connections to create for each link you want to download.

-a just show an improved progress bar.

Unlike many other download managers, Axel downloads all the data directly to the destination  file, using one single thread. This saves some time at the end because the program doesn't have to concatenate all the downloaded parts.


This site is primarily for technical support questions and answers from the community.

This webpage has information about Ubuntu Advantage support from Canonical; it is advisable you speak with a Canonical Sales rep directly, rather than ask for pricing from a community of volunteers and enthusiasts.

http://www.ubuntu.com/server/management


Wifi not working Ubuntu 14.04, no wifi detected

The answer to the question Lenovo Z50-70 realtek dirver RTL7823BE wi-fi does not connect… works perfectly nice for lenovo z50-70. in ubuntu 14.04

update kernel is essential I guess.


how to get rid of "open in terminal" choise in Thunar

As you are using Thunar, I suppose you are using xfce (or xubuntu) so this behavior is when you open thunar from the launcher panel using Directory Menu launcher. In the panel menu, you can add 2 different launchers for Thunar, one with the additional submenu you have (called Directory Menu) and the other (called Locals) without the additional submenu (the way you want). You can edit your panel and change the Directory Menu launcher to Locals launcher.

Obs: not sure of the English names of the launchers... may be something similar but not exact.


How to write multiple backups in one tape?

This happens because after performing a task /dev/st0 will rewind to begining of tape. So when you run tar to write a new backup the tape is overwritten from the beginning.

Before writing a new backup position the tape at end of the recorded media:

mt -f /dev/st0 eom

Then next backup will be written after previous one.

You can also use /dev/nst0. In this case the tape will not be rewind, so you can write one backup after another without searching for the end of media.

Before restoring a backup, position the tape at the one you want:

mt -f /dev/st0 rewind
mt -f /dev/st0 fsf <bkp # -1>

When you rewind the tape will be positioned at the first backup, so if you want to restore the third one run mt -f /dev/st0 fsf 2 before tar.


Very slow wifi Broadcom BCM4352 Ubuntu 16.04 Dell XPS15

Looks like I've figured it out. I found a post on the Dell support forums where someone was showing that they were getting 801.11abg only and not n despite having an 802.11n-capable router. This comment suggested checking router settings that might be not-quite-persnickety-enough.

In my Verizon FiOS router there's a compatibility mode setting, which, when toggled to strict 802.11n "performance mode" is now allowing me to get the full expected throughput on my connection.

screenshot for reference

Thanks for the debugging assistance though @waltinator and @chili555


if filename have space use your command with quotes:

gzip -d "file name.deb.gz"

and make sure you are in current dirrectory with this file:

ls . | grep "file name.deb.gz"


No Try/Install Option - Live CD on PowerPC

When I tried this a month ago, on an iMac G5, I found that the 12.10 iso and my graphics driver wouldn't let me get to the try/live desktop - or if it did, with no hardware acceleration, the colours on screen were posterised and practically unusable. I found two solutions, one of which you'll probably like, one you won't:

First, (and this worked for me) you could try downloading the alternate PPC install iso and running from that. It allows you to install using the non-graphical installer, with a debian/DOS-like interface. Once installed, you should be able to boot up into the OS, but will need to tweak any parts that don't function correctly. In my case sound, wifi and graphics. The solutions are out there and are google-able. I settled with a 98% perfect install, just having to disable the hardware acceleration in yaboot every time I boot. For a glorified word processor and email client that's fine, but for youtube, DVDs and flash its game over.

Second, you could try downloading the 12.04 version and running the older installer. That one worked fine for me using the graphical try/live desktop. Once installed, you could try updating the whole operating system to 12.10 if you wish, using "sudo do-release-upgrade" but a word of caution: when I tried using this technique, the nouveau graphic package got corrupted, so I had to start from scratch.


The problem with your cronjob is that .xsession_errors is most likely still opened by some applications or system services which is why it will be hidden from the filesystem table when deleted, but it still is on disk and still errors will be written to it.
So it will fill up the disk, but now you can't see it anymore.

@rinzwind aims for exactly this behaviour when he (correctly) suggests to remove the cronjob and look for the errors. This is the only way to fix this problem properly.

As a workaround you could truncate the .xsession_errors file with a cronjob like this:

17 */2 * * *  truncate -cs 0 path/to/.xsession_errors

But before doing this you REALLY should try to fix the underlying problems that create those error messages in .xsession_errors


Confusion over installation of new desktop environment

Every Desktop Environment comes with its own set of software. However, Unity and GNOME Shell actually share most of them.

When you install new packages, and there are conflicting packages installed, the package manager will ask you what to do. (Btw. I don't know whether USC does so, I prefer using Synaptic, an APT frontend) At least apt-get and Synaptic do so.

Since Unity and GNOME Shell (what you mean by "GNOME 3") are both shells for the actual GNOME 3, they share most of their packages.

It wonders me how you're going to install GNOME Shell. If you want to install the package ubuntu-gnome-desktop, it will install all of the packages that are incuded in a full GNOME Shell desktop. If you, however, only want to install GNOME Shell, without all this additional software, you should only install gnome-shell and gnome-session.

Even though Unity and GNOME Shell are so close, be warned: Multiple desktop environments can mess each other up.

The programs you installed by yourself, like WineHQ, should remain unaffected by this change, unless they conflict with a package from GNOME Shell. In this case, Synaptic will ask for your confirmation; what Ubuntu Software Center will do, I don't know. Also, the core system (Linux kernel, Debian stuff, drivers, ...) will certainly not be affected.

PS: A personal side note from me: Even though I can't tell you what DE to use, I recommend you to first try GNOME Shell from a Live System. Many users have problems with the "unholy mess that is GNOME 3" (quote by Linus Torvalds).


I have a Live USB of Lubuntu, and want to make it persistent to the same USB. Can I do that?

A cross-platform application for this is Netbootin

I found that there are a a lot of tools very simple to use in Windows (it is possible that someone who wants a new Linux installation does not have a Linux OS installed yet)
One that I have tested is Live USB Install (also cross-platform). In my opinion it is the best in creating the "persistence".

And there are others, like LinuxLiveUSB.


Can I erase Windows 8 and install Ubuntu instead?

As far as you do not want to dual boot it should be a piece of cake. When you will boot from live usb/cd just follow basic installation steps and when it will come to "Installation type" you should choose "Replace Windows with Ubuntu" option rather then "Install alongside" one. So take your courage and do it!


If you're willing to, and nothing was already working, just try re installing everything including Apache2, MySQL, and PHPMyAdmin using the commands

sudo apt-get remove apache2 phpmyadmin mysql

Then, just reinstall it (making sure to update things really quick before you do so)

sudo apt-get update && sudo apt-get install apache2 phpmyadmin mysql


How to move minimize maximize and close button to left in ubuntu 17.10?

Got answer from https://ubuntuforums.org/showthread.php?t=2348381

gsettings get org.gnome.desktop.wm.preferences button-layout

gsettings set org.gnome.desktop.wm.preferences button-layout close,minimize,maximize:


weechat fresh installation OR reset all settings to default

You'll need to delete the weechat directories in your Home directory.

There may be a .weechat directory in your home directory.  If not, feel free to search for it with the command find ~ -name '*weechat'* -type d and delete any directories it returns.


Press Ctrl + Alt + F2 - and you will get be able to log into the terminal. Once you are logged in, reinstall unity by doing the following:

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity

Once that is done, restart your machine. If that doesn't solve your problem then:

If you have Compiz, you might also need to reset all changes made by Compiz:

sudo apt-get install dconf-tools
dconf reset -f /org/compiz/

If you have Unity tweak tool, you might also need to do reset it:

sudo apt-get install unity-tweak-tool
unity-tweak-tool --reset-unity

If that also fails, then maybe deleting the settings files:

rm  -rf ~/.compiz-1
rm -rf ~/.config/compiz-1

Lastly, you could try the following:

sudo apt-get install dconf-tools
dconf reset -f /org/compiz/
unity --reset-icons


How to know the motherboard BIOS version using the command line

I got the solution.

Using dmidecode (of course), but the problem was with the result...

I don't want to list block result about my bios I just need the version..

The command is:

sudo dmidecode -s bios-version

The output will just print the version:

  SIX7910J.86A.0537.2012.0723.1217


How to determine the right dpi for a display?

Apparently Xorg might try to determine your screen size but will not always manage to do that correctly. In that case, one should set the correct screen size for that particular monitor so Xorg will know the dpi.

https://wiki.archlinux.org/index.php/xorg#Display_size_and_DPI


Mounting means that you associate specific part of your hard drive with a folder on system. If you mount USB drive, it will be associated with some folder , for example /mnt/usbdisk. You then can go into that folder, and browse files (if disk is mounted with appropriate permissions). But until you mount it, you cant go there.

Disk can be physically inserted into machine, but mounting is software concept. So even though a disk might be connected physically, you cannot use it until you mount it.

You can mount any filesysyem, in general. It could be a network drive, for example,too.


you can make a launcher to open it in firefox.

Open your favorite text editor. type the following lines:

#!/usr/bin/env xdg-open
[Desktop Entry]
Name=HipChat
Comment=Work Chat
GenericName=HipChat
X-GNOME-FullName=HipChat
Exec=/usr/lib/firefox-esr/firefox-esr www.hipchat.com/sign_in
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox-esr
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Firefox-esr
StartupNotify=true

Save the file as HipChat.desktop. From the file manager, right click on the file and set as executable.You should now have a working launcher that opens HipChat in Firefox. To have it appear in your menu, open a terminal navigate to where your file is and type:

sudo cp hipchat.desktop /usr/share/applications

NOTE: if you are not using ESR, or if it is located in a different folder on your system, edit the references to firefox as is needed.


When does Ubuntu 12.04 run network if-pre-up.d and if-up.d scripts?

I would use an iptable frontend instead of writing iptables-commands directly. I usually use ufw or shorewall. I use ufw on servers and shorewall on machines that forward networks, as iptables itself is unnecessarily complicated for a simple one-interface firewall.
Both of the aforementioned front-ends usually take care of all needed settings. ufw also sets up the firewall for IPv6.

if-pre-up.d and if-up.d are only run for interfaces that are managed by ifupdown. That is, they must be mentioned in /etc/network/interfaces. As mentioned in the manpage of interfaces, they are executed before and during setup of the interface that is being brought up.


Why is cups sometimes unable to read its TLS key and certificate depending on location of symlink?

Turns out this was a problem with the apparmor profile of cups, which was not allowing the process to read files in the /etc/letsencrypt directory.

I recently installed livepatch which installed snapd which installed and enabled apparmor.

The solution is to allow these in the profile. E.g.

$ sudo tee -a /etc/apparmor.d/local/usr.sbin.cupsd <<EOF
>   /etc/letsencrypt/live/** r,
>   /etc/letsencrypt/archive/** r,
> EOF
$ sudo systemctl restart apparmor


How to run the btsync service as the local user?

I've been reading about the systemd issue and the fork. It seems there's been a bit of a row over the thing. Myself I'm not partial—if I can accomplish what I need, then I'm happy.

This is a friend's older laptop anyway... I'll just wipe it clean and put the latest Lubuntu on it, which as I've discovered comes with systemd by default. Problem solved.


Can't Pass bashrc defined arguments to the terminal

Bash aliases are not "real" executables and cannot be called from outside of bash.  You either need to access environment variable(s) from within your C++/Python/whatever program to rebuild the full path to headas-init.sh, create an actual bash script that calls headas-init.sh and then call that script in your own program, or call /bin/bash and pass in your alias as code to be executed using something like -c bash argument.


Alt+tab, switching between applications in 14.04

It looks like your configuration is broken. To test this, create a new user and log in as the new user. Check if the keyboard combinations work now (hold Super to see some available combinations).

If it works for the new user, I'd recommend resetting Unity for the old user. Just install unity-tweak-tool from the repositories and run unity-tweak-tool --reset-unity from a terminal.


Will a sideloaded snap get upgraded to a newer version in the store?

First, a disclaimer: I've only tested this in the current Snappy Ubuntu Core edge-- not on the desktop.

I believe the version of the snap in this situation is actually irrelevant-- the important part here is the developer/publisher of the snap as far as the store (and snappy) is concerned. The snap coming from the store is associated with a specific publisher (e.g. your store account), whereas the one being sideloaded isn't (or maybe you could say it's associated with the "sideloaded" publisher, heh). This is reflected in the Developer column of snap list.

If you sideload snap "foo," and a snap by the same name is also in the store, the one you sideloaded is considered a different package and I believe it will not update automatically-- you'll have to install the one published in the store (note that you'll first have to uninstall the sideloaded one since they have the same name). However, if you install snap "foo" from the store and then sideload another snap "foo" over the top of it, it'll treat it as a new version and you'll notice snap list says it's now sideloaded. I expect this means it'll no longer update from the store.

Note that if you sideload the same version as the snap you installed from the store, it seems that the store version is overwritten.


Can I legally use Ubuntu Server to create a commercial web application on Amazon EC2?

Absolutely you can do this.  Many companies all over the world run a portion (sometimes all) of their commercial infrastructure on Linux distributions.  Ubuntu in this sense is no different from Red Hat, Debian, SUSE, and the rest.

Just because the kernel and many system components are under the GPL, that in no way means the code you run on top of it must also be free or open source software.  A simple search for commercial software and commercial web services that run on Linux will prove this quickly.

One simple example would be Google.  Virtually their entire server infrastructure runs on Linux, but clearly that hasn't forced them to give out the code to their web indexing software, or Gmail, or G+ (not to mention the entire Android platform which runs on Linux).

As for being sure enough to convince your legal department that it is ok to run Ubuntu Server, you might consider buying an Ubuntu Advantage support contract from Canonical.  They (ok, we) include legal indemnification with each support contract.  Please see:

http://www.canonical.com/enterprise-services/ubuntu-advantage/assurance-terms

http://www.canonical.com/enterprise-services/ubuntu-advantage/overview

Also: I didn't mention EC2 specifically because there is no reason to think that hosting it on EC2 would be any different compared with running it "in house" from a legal standpoint.

Also, too:  In the case of Android, let me clarify.  Android's modifications to the Linux kernel are GPL'd, however the rest of the platform is on a very permissive Apache-style license, and obviously a great many companies sell paid, closed-source software that runs on it.


How do I set uget as a startup application

The command to run uGet is:
uget-gtk

To find the command to run a (globally installed) application, simply look into its .desktop file in /usr/share/applications, and look for the first line, starting with Exec=.
In this case, the file is /usr/share/applications/uget-gtk.desktop. To open the file with gedit, drag it over an opened gedit window.
Alternatively
to find the (complete) command, you can make an "educated guess" on what the command should start with, in this case, typing:
uget + Tab
will complete the command into:
uget-gtk
Adding it to Startup Applications
This part you probably already know, but to be complete:
Open Dash > Startup Applications, click on the "Add" button, add the command uget-gtk


NetworkManager: How to share internet connection with IPv6?

This has been fixed in the master branch of NetworkManager; the next release (1.22?) should have this work out of the box.

Starting with that version, the below workaround becomes only relevant to connections that are shared to more interfaces than the router provides in a single prefix (one should always work, typical routers seem to cater for four subnets).

Original post

NetworkManager can do IPv6 forwarding by doing prefix delegation. Currently, though, the default DHCP client used by NetworkManager can not do that, so you may have to install isc-dhcp-client and configure NetworkManager to use it by adding a line

dhcp=dhclient

in the paragraph after the [main] line in /etc/NetworkManager/NetworkManager.conf.

Then, NetworkManager can ask for a prefix from your router on the WiFi link, use that as addresses on the Ethernet link and will forward messages between those interfaces -- provided the router can provide such a prefix (which home routers should).


Cannot access files after extracting from .zip in Ubuntu 14.04

it happened that extracting these files have a different owner with whom the user logged on Linux.

You have to do so, open a terminal (press Alt + F2 and write

gnome-terminal

in the box and hit enter).

In the terminal run the command id:

[lillox@lillomachine ~]$ id

take note of your uid and gid, again in the terminal write

cd ../Desktop

and then (using your values instead of  and  )

chown -R <uid>:<gid> *

This command changes the owner to all files and directories on your desktop


Fan speed in ubuntu: pwmconfig no pwm-capable sensor modules installed

I partially solved the problem using i8kutils. Here's a guide about it:

Keenformatics -  How to solve Dell laptops fan issues in Ubuntu

and a discussion here on askubuntu:

Dell Inspiron 5521 i7-3317U Fan CPU too Noisy

Here are the main steps as written on Keenformatics site (my blog).

How To solve Dell laptops fan issues in Ubuntu

First of all, let's download and install i8kutils. Open your terminal and write:

sudo apt-get install i8kutils
Now you've got to add i8k to your modules. Open the modules file:

sudo gedit /etc/modules

and add the string "i8k" (without quotes) to the file. Save and exit.
Create an i8k.conf file

sudo vim /etc/modprobe.d/i8k.conf

and fill it with this code:

options i8k force=1

Note: Some older guides will tell you to create a /modprobe.d/options file. The "options" file isn't used anymore on Ubuntu. What does matter is that you create a file with a .conf extension (the filename isn't important, but I decided to name it i8k.conf for clarity). So beware of older i8kmon configuration guides.
Now restart your computer, or run this code to make i8k run:

sudo modprobe i8k force=1
We will now create a i8kmon.conf file which will tell the i8kmon utility how to behave.

sudo gedit /etc/i8kmon.conf

Paste the following code in it:

# Run as daemon, override with --daemon option
set config(daemon)      0

# Automatic fan control, override with --auto option
set config(auto)        1

# Report status on stdout, override with --verbose option
set config(verbose) 1

# Status check timeout (seconds), override with --timeout option
set config(timeout) 20

# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
set config(0)   {{-1 0}  -1  40  -1  40}
set config(1)   {{-1 1}  30  60  30  60}
set config(2)   {{-1 2}  53  128  53  128}

# For computer with 2 fans, use a variant of this instead:
# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
# set config(0) {{-1 0}  -1  52  -1  65}
# set config(1) {{-1 1}  41  66  55  75}
# set config(2) {{-1 1}  55  80  65  85}
# set config(3) {{-1 2}  70 128  75 128}

# end of file

This has been edited to match my Dell Inspiron 15r 5521 fan configuration (and I hope I did it well). If you want more informations take a look at the documentation on Ubuntu Manuals: http://manpages.ubuntu.com/manpages/gutsy/man1/i8kmon.1.html
Now you should be able to run i8kmon from your terminal and see if (and how) it's working. Simply run:

i8kmon

Finished!


shell script to remove files didn't work

Some issues here: Firstly, the expression in a […] test needs spaces around it (pitfall #10), and secondly
the comparison < doesn't work with […] tests (pitfall #7). You either need -lt (less than)
or use [[…]] instead, which is a bashism. Also, the for loop should be replaced (pitfall #1).

So:

for i in ./*; do
    if [ -e "$i" ]; then
        if [ $(identify -format "%w" "$i") -lt 228 ] && [ $(identify -format "%h" "$i") -lt 228 ];
        then
            rm -- "$i"
        fi
    fi
done

You may also want to avoid calling identify twice to get the two dimensions (pitfall #58) but call
it just once instead and let it print a string ready to be used as variable assignments in shell syntax.

If we write

identify -format "width=%w height=%h" "$i"

it will print something like width=50 heigth=250. When we evaluate that string then we have set two variables with just one call and the condition can be written as:

eval "$(identify -format "width=%w height=%h" "$i")"
if [ $width -lt 228 ] && [ $height -lt 228 ];
then
    rm -- "$i"
fi

See also: common bash pitfalls.


I still don't know why this is happening.  In the meantime, here is how I decided to work around it:

cd /etc/cron.d/
sudo vi workaround_to_start_x

Copy-and-paste the following:

# see: https://askubuntu.com/questions/1093808/x-wont-start-after-upgrade-to-18-10
MAILTO=""
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@reboot root    sleep 30 ; init 3 ; init 5

Save the file, then reboot the device.  30 seconds after boot, X now starts up.

(No idea if the 30 second pause is necessary, but I figured I would give it a half decent chance of starting up whatever else needs to start up at boot time.)


Can I save my Tweaks, themes, icons, customisation, softwares etc. like a backup and restore them if i do fresh install?

OK, the setting for the installed applications are stored in the folders in your home folder that start with a dot like .config or .mozilla, etc. So If you back up and move them to a new computer, the applications work just like before. This is for example what I did with my Firefox  and XFCE desktop settings when I moved to a new laptop.

There are a few more things to consider:

1-You should back up the list of installed packages as well, as explained in the link in my comment above.

2-Some of your "system" settings are not restored in the home folder, for example the network (ethernet, wifi, etc) and their passwords are stored in /etc/NetworkManager/ so you may want to back them up as well.


How to delete both partitions from grub-rescue screen?

If what you say is correct - you deleted your only partition and created two new ones - you have left yourself with no operating system. Try installing an OS from scratch.


Ubuntu 15.04 install error. stuck in the third step.. please help

Try restarting the computer and disabling the check for enabling third party software then you can install it manually after installation via 'Sudo apt-get install rythmbox'


Why does moving some files in a folder take longer than moving the whole folder?

TL;DR: No

For a smaller amount of files, you would not need find but, even in this simplified and smaller case, if you just

mv *.jpg ../../dst/

it will take more time than moving the whole directory at once.

Why? The point is to understand what mv does.

Briefly speaking, mv moves a number (that identifies a directory, or a file) from an inode (the directory containing it) to another one, and these indices are updated in the journal of the file system or in the FAT (if the file system is implemented in such a way).

If source and destination are on the same file system, there is no actual movement of data, it just changes the position, the point where they are attached to.

So, when you mv one directory, you are doing this operation one time.

But when you move 1 million files, you are doing this operation 1 million times.

To give you a practical example, you have a tree with a many branches. In particular, there is one node to which 1 million branches are attached.
To cut down these branches and move them somewhere else, you can either cut each one of them, so you make 1 million cuts, or you cut just before the node, thus making just one cut (this is the difference between moving the files and the directory).


MAAS "Failed deployment" on node with 16.04 LTS

If I were you, I would take a look at the screen (display/SOL/IPKVM) of the machine being deployed. I bet you will see some interesting info there.

You can also change Ubuntu version used for commissioning to 16.04, recommission your machine with option "Allow SSH access and prevent from powering off" checked. That will give you a chance to look at the situation with your machine and Ubuntu 16.04 "from inside".


I've finally gotten to the bottom of this and the answer is that with the information provided, I did everything right.

The catch was that my network is funky. My router is linked to a modem, as most networks probably are. However, my modem doubles as a router. What had happened was all of the ports were being blocked by my "modem". I forwarded all of the ports on my modem to my actual router, and things are running just fine now. I've also fixed a lot of other problems related to this.

Thanks for trying to help guys, I really appreciate it. And my apologies for asking such an unsolvable question. (Moderators: I'm fairly new to Stack Exchange, so I am not sure if I should delete this question, as it will not help other people, or what. I'm not sure what is the best way to move forward while not harming the community, if that makes sense.)


Grub and Ubuntu disappeared after Windows update

Windows 10 Anniversary Update, and I understand that Windows 10 Creators Update is the same, both can delete Linux partitions for no particular reason. It's not fully understood what factors trigger this action, however it might be related to MBR formatted disks.

Your sda4 is an extended partition that currently contains sda5 swap partition, and also held the previous Ubuntu partition, presumably sda6... which was located between blocks 253681662 and 484151295.

You can try using testdisk to recover your partition.

Boot to a Ubuntu Live DVD/USB, and in the terminal type:

sudo apt-get update

sudo apt-get install testdisk

sudo testdisk

See http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step for help on how to use this tool.


Install GPIO ports drivers for 12.04 on 14.04

The driver uses the asm/system.h header, which was removed from the kernel in version 3.4. So it will not compile as is with newer kernels. However after changing this header file, I managed to compile it.

Before you start

You will need to install the necessary build tools for the later steps:

sudo apt-get install build-essential

Modifying the mxe5400_wdt.c file

You need the change only line 47 in /drvsrc/mxe5400_wdt.c

BEFORE: #include <asm/system.h>

AFTER: #include <asm/switch_to.h>

The original readme file

The package contains a Readme file, which tells you what you need:

1.Close Ubuntu WatchDog
    (1). cd /drvsrc
    (2). cp -f mei.conf /etc/modprobe.d/
    (3). Restart
2.Install driver
    (1). cd /drvsrc
    (2). insmod ./mxe5400_wdt.ko
3.Install dll
    (1). cd /Lib
    (2). cp -f libadlmxewdt.so /usr/lib

However it needs some changes, as we will recompile the source.

Necessary changes

The driver installation part looks like this:

cd /drvsrc
make clean
make
insmod ./mxe5400_wdt.ko

The shared object file installation looks like this:

cd /lib_src
make clean
make
sudo cp -f libadlmxewdt.so /usr/lib


How to show the window title when switching windows in GNOME 3

I found that the LLIax's answer to the How do I "alt-tab" between windows using Gnome 3? solves this problem and the main problem in that answer.

Note that the title shows up in the middle of the whole window but that is actually good and correct: If the title is a large string of text, you need that whole strip of real-estate for the whole title to be shown:


20.04 - Trying to install npm I keep getting 403 forbidden error

One of the answers to this post suggests that it could be due to a corrupted partial dowload.  Try sudo rm -r /var/cache/apt/archives/partial
Also, make sure you have done a sudo apt update recently.


Overtemp

There's really nothing wrong with 40°C.

If you've overclocked your CPU or GPU, set it back to default.

Make sure that you only have one thermal process. ps auxc | grep -i therm. If you have two, then purge thermald with sudo apt-get purge thermald.

BIOS

You have BIOS E16S3IMS.106.

BIOS E16S3IMS.108 can be download from here. Confirm your exact model # on this page.

Note: Have good backups before updating the BIOS.

Nvidia

You have Nvidia GTX 1650.

The current driver is 440.82, and can be downloaded here.

To cool things down, select the Intel video subsystem, when the Nvidia is not needed for games, etc.


Ubuntu 16.04 and Windows 7 dual boot problems

I've resolved my issue.  Thank you for the pointers oldfred.  I'm not totally sure what solved my problem, but here is what I did:

I changed my bios to have my hard drive as the first boot device instead of my previous setup where I had all my other devices ahead of my hard drive.  I noticed that doing this seems to have fixed the partition name assignments to actually show sda for my hard drive partitions and sdb for my thumb drive.  I think this might have been one of the fixes since grub works best with this sequence.
I then also used my linux live drive to start gparted and I changed my bootflag back to the 100mg windows loader drive.
I then reinstalled ubuntu with my original hard drive partitions.  I formatted all my ubuntu partitions again while doing the reinstall:

/dev/sda3 = /boot (primary partition)
/dev/sda6 = / (root partition)
/dev/sda7 = /home

In looking through several posts several users suggested that not using the /dev/sda partition for the grub 2 installation can cause problems like the one I had to begin with, but I still insisted on installing to the /dev/sda3 linux boot partition I created.  I wanted to really set it up this way because I want to keep the ubuntu grub to partition totally separate from the windows boot loader partitions.

Once the install finished, I did not have to do anything else.  Grub seems to have picked up my windows install successfully and added it to the Grub boot menu.  Both systems are now booting fine and everything is perfect.

My hope is that in the future if I need to reinstall or upgrade either windows or ubuntu there will be no interference with either boot loader.

I would be interested to hear from someone more expert about grub if my assumption that it automatically picked up the windws drive and setup it up in the boot screen is accurate.  I did not have to run boot repair or do anything else after installing ubuntu.  It just worked.


Hauppauge WinTV-HVR-2250 tuner firmware to work in 12.04 Mythubuntu?

Well it's a lot easier than compiling it, here's the result:

The firmware did not make the upgrade.  A new version has to be installed.

LowSky, long term supporter of this driver and Mythtv provides the download and instructions here.  He says he will update if there is a change!

Thanks to crbnrod on mythbuntu forums for the answer.


You need add a space (at least) between a command and their argument(s) or option(s).

You are doing :

cd..

You need :

cd ..

Again you are doing :

cd-

while you need :

cd -

To go to your home directory you can do :

cd ~

or simply

cd


How do I make the clock stop chiming every hour on the hour?

It was not GNOME Shell at all.  It is the timer applet 'Happytimer', which would explain why no one else has this problem.  Honestly, it did not occur to me that a tea-timer applet would be this intrusive...then again, it's right there in the settings.  I found the culprit by looking in the /usr/share/sounds directory.


Can i install ubuntu touch in meizu mx4?

Sure you can. Ubuntu touch has just been launched for Meizu 4. I did it on a Nexus 4 with android previously installed. All you need is to follow

https://developer.ubuntu.com/en/start/ubuntu-for-devices/installing-ubuntu-for-devices/

which is easy.

Don't forget the backup before installation.

Beware: Ubuntu touch not yet as developped as Android is !!

Nicolas


Drivers for Realtek wireless module for Toshiba C850-A965?

Ubuntu 13.04 and newer
As of 13.04, the driver need not be compiled and installed separately, and comes integrated with the kernel as the rest of the drivers.

12.10 and older
Congratulations, you have the super-brand-new RTL8723AE-BT card!

As far as I am aware, even hardware requiring proprietary drivers to function would at least be recognized in lshw output and such.

Yes, unless the hardware is so new that it's not even in the lshw database yet :)
The only recent wifi card I know of that causes such havoc is the Realtek RTL8723AE-BT. It's so new that even the Realtek website does not mention it or make Windows drivers available (must be downloaded from Toshiba/OEM). You can verify with the -numeric switch to lshw that the last 4 digits of the product (PCI) ID are 8723:
sudo lshw -C network -numeric

This is also supported by the DriverIdentifier listing for your laptop model and the official specifications of the C850-A965:

However, Realtek Support has made their internal driver available via Dropbox (for now) and it seems to work well on 12.04 as well as other recent Linux distros.
Steps to download, build and install RTL8273AE-BT driver:

Note: I'm not sure how well this will work on a live CD, since a reboot is typically a good idea after installing new kernel modules. But it should work on an installed system (don't forget to upgrade to the latest kernel on that first though!)

Open a terminal, and type/paste one line at a time:

sudo apt-get update
sudo apt-get install build-essential linux-headers-generic linux-headers-`uname -r`
wget -O- http://dl.dropbox.com/u/57056576/DRIVERS/REALTEK/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012.tar.gz | tar -xz
cd rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/
make
sudo make install
sudo modprobe rtl8723e

The Ubuntu LiveCD should detect the wifi-card now, and in a few seconds you'll be able to choose the network to connect to. In that case, later on, you can delete the rtl_92ce... folder created in your home directory.


Tried installing Ubuntu w/o CD/USB. Tried Unetbootin and no success on Win10.

If you have Windows and if your computer is powerful enough, you can install VirtualBox in Windows. In VirtualBox you can create a virtual machine, and can connect the Ubuntu iso file as a DVD disk, and boot from it and run a live session 'Try Ubuntu'.

If it looks good, you can stop the virtual machine and create a virtual disk. Start the virtual machine again and you can install Ubuntu to the virtual disk.

-o-

Alternatives

Maybe you can borrow a USB stick, and make it into an Ubuntu boot drive and install Ubuntu from it to the internal drive of the computer.
Or if you have a second (maybe old) hard disk drive, you can use that drive instead of a USB stick.
Some computers (but far from all) can boot from the SD card slot, so if you have an SD card, you might be able to make it an Ubuntu boot drive.
It is also possible to boot via the network, but it is not easy.

Can you do this together with someone else, who is also interested in trying Ubuntu? In this case there are more options, depending on the hardware that both of you have and can borrow. Maybe you can find a local Linux user group or some other computer club.


Assuming that your Linux file system is on (hd0,1)
If you want to list files in the partition try the following command:
grub> ls (hd0,1)/

(It will only with the filesystem containing Linux)
grub> set root=(hd0,1)

Also check the name for your vmlinuz and initrd files.
grub> linux /boot/vmlinuz root=/dev/sda1

(sda1 will change according to your Linux filesystem)
grub> initrd /boot/initrd.img
grub> boot

After you boot into you Ubuntu update your grub config.


Any explanation for why X fails every couple of weeks ? Ubuntu 18.10

If your graphics driver is not getting updated with your kernel, it will stop working after a kernel upgrade and your system will revert to the nouveau or frame buffer drivers to run your video hardware.

This happened to me when I installed drivers by downloading them from the NVIDIA website. To solve the problem I added the Graphics Drivers PPA and installed the NVIDIA drivers through ubuntu-drivers command.

Start by uninstalling your old NVIDIA driver,

sudo apt-get purge nvidia-*

and then follow these steps:

1. Add the PPA

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

2. Install Video Drivers For Your Card

Now as posted in this answer, you need to install the recommended driver for your card.

sudo ubuntu-drivers devices

This will output something similar to this:

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==

vendor   : NVIDIA Corporation
modalias : pci:v000010DEd00000DDAsv000017AAsd000021D1bc03sc00i00
model    : GF106GLM [Quadro 2000M]
driver   : xserver-xorg-video-nouveau - distro free builtin
driver   : nvidia-304-updates - distro non-free
driver   : nvidia-304 - distro non-free
driver   : nvidia-331 - distro non-free **recommended**
driver   : nvidia-331-updates - distro non-free

Then just install the driver labeled "recommended", so in this example it would be:

sudo apt-get install nvidia-331

Once this is done reboot and you should be good to go. Next time your kernel gets updated, your video driver will get updated with it.


Error While Upgrading 12.04 LTS to 12.10

Open System Settings (a.k.a. Gnome Control Center), select Software & Updates, select tab Other Software and uncheck Canonical Partners repository.

You can also uncheck Source Code on the previous tab.

Run in the Terminal sudo apt-get update && sudo apt-get dist-upgrade.

Then you can do the update procedure.


I just installed 12.04, and all of the text on the screen is displaying the incorrect characters. Would anyone know how to fix that?

you seem has got wrong keyboard layout while you were setting keyboard layout in installation setup session.

to fix it :

go to system settings > keyboard layout
delete current keyboard layout by clicking - button.
add new keyboard layout by clicking + button
choose based on your country and your keyboard layout and finally click add button


You can "install" whatever wallpaper image you want easily by right-clicking on the desktop and selecting change desktop background from the menu

and in the popup window, on the right side - where all the default wallpapers are listed - you'll find a + button at the bottom (where you click on), in the following popup windows you can chose from any folder on your hard disk any new picture you have already downloaded.

As for the "where" you download them, use your good friend Google.


This error message indicates you likely have a hardware problem with your system.

This problem could be with the drive itself (it is not unheard of for even a brand new drive to have a fault), or with something else such as your computer's motherboard.

Troubleshooting steps which could help narrow it down include trying the same on a different drive (removing the problem drive from your system). You could even try installing onto a USB drive to see if it's a problem even when not using your SATA interface.

You could try partitioning and formatting the drive from a live CD and see if there are any problems.


Compiling C code for ARM processor on Ubuntu 12.04

Your file has .cpp extension, so gcc will try to compile with some settings for c++. cc1plus comes with g++ package, try installing it. I've faced a similar problem before.

Install ARM g++ cross compiller

sudo apt-get install g++-arm-linux-gnueabi

Then use g++ instead gcc to get correct linking

arm-linux-gnueabi-g++ test.cpp -o test


Unable to edit "/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf" to get Windows Domain Users to login to Ubuntu 16.04 Desktop

Generally, when configuring lightdm, it's not a good idea to edit the existing files in /usr/share/lightdm/lightdm.conf.d, since they belong to various packages and changes will be overwritten next time respective package is updated. The recommended way is to create new files in /etc/lightdm/lightdm.conf.d instead.

In your case you can create such a file with a single command (copy and paste to get it right):

sudo sh -c 'printf "[Seat:*]\ngreeter-show-manual-login=true\n" >/etc/lightdm/lightdm.conf.d/50-manual-login.conf'


Lost master password in Preferences> saved log-ins

I found the answer here. Than you for your patience.
https://support.mozilla.org/en-US/kb/reset-your-master-password-if-you-forgot-it


Ubuntu unable to update and upgrade to 14.04: GPG Error

I have had the same problem. Run following command to resolve it.

sudo dpkg-reconfigure -a
sudo apt-get update
sudo do-release-upgrade -d

and it might work fine this way.


How to create PPA packages for ARM or PowerPC in Launchpad?

To enable ARM builds
As of 8 November 2016, enabling ARM builds is self-service: you can change an option in the PPA settings to get it to build for any of the following architectures automatically (documentation link):

AMD x86-64 (amd64)
ARM ARMv8 (arm64)
ARM ARMv7 Soft Float (armel)
ARM ARMv7 Hard Float (armhf)
Intel x86 (i386)
PowerPC64 Little-Endian (ppc64el)

Log in and select "Change details" in the upper right corner of your PPA page. At the bottom of the page that follows, you'll see the above options that can be enabled.

The following entries are ones that only an administrator of Launchpad can enable for your account.

PowerPC (powerpc)
IBM System z (s390x)

For these, you still request access on the forums, although searching the forum indicates that Canonical previously only did this under special circumstances (only if you're a Canonical employee or have a contract in place with Canonical). Another forum post suggests that powerpc and s390x builds should be available to all users by now, but I'm not sure if the security concerns of building your (possibly malicious) package on non-virtualized Canonical hardware have been resolved.
To build already published packages for ARM
Once you have enabled ARM in the Launchpad PPA settings, click "copy packages", and copy the packages to the same PPA (click on "copy existing binaries", so that Launchpad will simply copy the already built packages for amd64 or i386, and will only build new packages for ARM).
When the next version of your package is released, you won't have to repeat this procedure, Launchpad will automatically build it for all architectures you had selected.


How to show an message box from terminal in Ubuntu

Using zenity:

sudo lsof | tee >(zenity --progress --pulsate) > out

zenity --question --text "Are you sure you want to shutdown?"; echo $?

zenity --warning --text "This will kill, are you sure?";echo $?

ans=$(zenity --scale --text "pick a number" --min-value=2 --max-value=100 --value=2 --step 2); echo "$ans"

sudo lsof | zenity --text-info --width 530

Using yad

Install yad

sudo apt-add repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install yad

Create a example script example and add the lines below

#!/bin/bash
frmdata=$(yad --title "Test Form" --form --field "Address" --field="Name")

frmaddr=$(echo "$frmdata" | awk 'BEGIN {FS="|" } { print $1 }')
frmname=$(echo "$frmdata" | awk 'BEGIN {FS="|" } { print $2 }')

echo "$frmaddr"
echo "$frmname"

Or more complex:

yad --width=400 --title="" --text="Please enter your details:" \
--image="/usr/share/icons/Tango/scalable/emotes/face-smile.svg" \
--form --date-format="%-d %B %Y" --item-separator="," \
--field="Last name" \
--field="First name" \
--field="Date of birth":DT \
--field="Last holiday":CBE \
"" "" "Click calendar icon" "Gold Coast, Bali,Phuket, Sydney, other"

Using notify-send

notify-send "Hello" "Hello world"

Using dialog

dialog --msgbox "Hello world" 10 30

Using whiptail

whiptail --msgbox "Hello world" 10 30


Why is my perfomance too bad in Virtual Box?

It's because if Ubuntu can't use graphics card for acceleration (probably that's what happens in Virtualbox), it uses CPU for rendering graphics trough LLVMpipe. It makes it appear really slow.

In Ubuntu 12.04 and earlier Unity2D was used if hardware graphics acceleration couldn't be used, but in 12.10 and 13.04 Unity2D is dropped in favor of LLVMpipe.

Some desktop environments that don't need compositing (like XFCE) are still fast even without graphics acceleration. That's why few Ubuntu derivatives, like Edubuntu, Xubuntu, Lubuntu, etc. are still fast in Virtualbox.

But if you install Virtualbox Additions, 3D acceleration will be available to Ubuntu inside a virtual machine and it will run at normal speed.


Take a look at this: How to clean a hard drive before reinstall

Placed here for your convenience:

  If you refer to a fresh reinstall,
  when reinstalling you will find
  several options for the usage of your
  hard disk drive, which includes but
  not limits to:

  "Side by Side" install, which will
  install your new OS sharing the hard
  disk drive but without losing your
  current installation. This way, GRUB
  will be updated or installed as
  required.

  "Use the entire disk" which will
  physically erase the whole disk in
  order to use all its space for the new
  OS install.

  If what you wish is to use the hard
  disk drive for a data tasks such as
  BackUp or other data handling, you can
  achieve that by first erasing the
  whole partition and do it from
  scratch. Formatting the disk will also
  do the trick.

  Several tools will help you to achieve
  this task in Linux and other OS's.

  In Maverick, under
  "system/administration" you will find
  a "Disk Utility", inside of which you
  will find a disk drive and other
  devices tree on the left and its
  characteristics and tool list in the
  right side, where you can find both
  "Delete Partition" and "Format Drive"
  options.

  You can do this from a Live Session.

  A screenshot is placed here for your convenience.

Addittionally, take in consideration that some wireless devices has stopped working as a part of an update from Maverick. That's my case with a Compaq Presario V3000 (V3617LA) which wireless isn't working anymore even with all my efforts and all the web/forums tricks.

Good Luck!


WIFI gets HARD BLOCKED on Ubuntu 20.04.2, HP-15 series

hard blocked it is a physical problem... usually.
Possibly you have switch button on the laptop case


Black screen at boot on an HP Probook 4530s

Try putting in startx as a command, press enter and see what it says. If there is an error (Which seemingly there is) post it here.


Try this:

Open terminal, sudo -H gedit /etc/default/grub
Change the resolution you need in GRUB_GFXMODE=
Add this line right below it >> GRUB_GFXPAYLOAD_LINUX=keep
Save & Exit
Type in terminal: sudo update-grub
Then finally: sudo grub-mkconfig -o /boot/grub/grub.cfg
Reboot


Pictures uploaded from phone to PC show in Shotwell, but I can't find them in my home folder

Typically shotwell saves your photos to /home/[username]/Pictures, take a look on there.


Qt5 Qtcreator using a c++function in main.qml to create a file /tmp/

I found the solution myself and I want to explain what I did wrong.

I forgot in:

main.c

    #include <QQmlEngine>
    #include <QQmlComponent>
    #include "stringhelper.h"
   to
    qmlRegisterType<StringHelper>("MyStringHelper", 1, 0, "StringHelper");

stringhelper.h:

    ...class...
    .....public slots:...
           Q_INVOKABLE void stringxx(void){
              qDebug() << "  stringhelper.h:stringxx GOT YOU !! :-) ";
           }

now in main.qml :

    import MyStringHelper 1.0

    StringHelper {
            id: my_StringH
    }

    my_StringH.stringxx();

now I am able to call my stringxx-function and more powerfull functions im .qml

regards
Sascha


Try to (re)start the MySQL with the following line in a terminal:

/etc/init.d/mysql restart

Get also a look to this question and the answer.


How to include a file when writing a custom man page?

There is a soelim command provided with groff to do exactly this.

  soelim reads files and replaces lines of the form
       .so file
  by the contents of file.


From man avconv, Audio Options section:

-ac[:stream_specifier] channels (input/output,per-stream)
           Set the number of audio channels. For output streams it is set by
           default to the number of input audio channels. For input streams
           this option only makes sense for audio grabbing devices and raw
           demuxers and is mapped to the corresponding demuxer options.

So you basic command line would be:

avconv -i <input file> -ac 2 <output file>.wav

You may also play with downmixing settings for the AC3 decoder, ie, the options where you can configure how the 6 channels from 5.1 will be merged (downmixed) into the 2 of stereo. Check for -dmix_mode and the -*mixlev* family of options under the Audio Encoders / ac3 section of the manual


Ubuntu 14.04 running slow on a 64 bit processor

You probably don't have 3D acceleration, which Ubuntu needs. If 3D acceleration is not found, Ubuntu uses the CPU instead of the GPU to let appear some image on your screen. That's very CPU-intensive, so that's probably why your computer is so slow.

Also, the hardware architecture (64 bit vs 32 bit) won't matter.

You can try installing the proprietairy driver. Start the application Driver Manager and install the proprietary driver.

If that doesn't work to speed up your computer, you might want to do this:

Install Lubuntu. This does not require 3D hardware acceleration. Your computer will be amazingly fast:
http://lubuntu.net

If you want long support, consider downloading the LTS version (long term support). That's the same as downloading 14.04.

Good luck.


Installing dashboard for openstack errors

The slightly older version of python-django in your output indicates that you may need to refresh your package lists.  To make sure your packaging system is always working with current information, it is advisable to do this before package installations:

sudo apt-get update -y


Filesystem creation fails when trying to install Ubuntu over Windows

This is an answer I wrote for someone else but it will help you for certain so I am copying it here.
Hello
It would be easiest to just start from the beginning so lets do that, okay?
First, boot to your USB  or DVD and let Ubuntu start a live session. You will see an icon on the desktop that says Install Ubuntu on your desktop. Launch (click on) it.
When you get to the screen where it asks you if you want to replace an existing install or install next to it or Something Else, choose Something Else.
Now you will see a screen that will let you see the hard drive you want to install to. Make sure you choose the correct drive you want to install ubuntu on! On that screen you will need to first delete any existing partitions so you can start fresh.
Start at the bottom of the listed partitions and right click on each one and choose Delete. After you have done this to all the partitions, click on Apply.
When you have deleted everything your drive will show as completely unallocated space! Sometimes some partitions cannot be deleted right away so delete all you can at first and click Apply, then start over from the bottom until they are all deleted.
Now you want to create the necessary partitions for you to install Ubuntu.
Create the following partitions:

a boot partition /boot and give it 250 MB of space, choose ext4 for the format.

a root partition /root and give it 15000 MB of space and ext4 format

a swap partition /swap and give it 4096 MB of space (it will format to swap)

a home partition /home and give it the rest of the space and format it to ext4.
Now just finish the install and it will run beautifully.


Firefox Bookmarks on Ubuntu 12.04 Start Page

Different ways to use bookmarks on Firefox :
A) Bookmark's menu

Drag your mouse to the top of the screen, the black menu-bar will change

Click on "Bookmark", the usual bookmark's menu will open.

B) Personnal toolbar

Drag your mouse to the top of the screen, the black menu-bar will change

Click on "View" > "Toolbar" and activate 'personnal toolbar' where you will be able to drag&drop tabs.

C) Keyboard shortcuts

Press ShiftCTRLO to open the Bookmark's Library

On any website, press CTRLD to add the page to bookmarks.


Are you using network manager?  If so, try using wicd.  (I literally just had this problem 2 days ago, and this is how I solved it.)

sudo apt-get install --reinstall wicd
sudo service network-manager stop
sudo apt-get remove --purge network-manager network-manager-gnome
sudo service wicd restart

I think network manager struggles with WPA for some reason.


so my problem is solved by
"dev/sda1: clean, ..." This message appears after I startup my laptop, then it won't continue booting

they suggested to run a command sudo service gdm3 status which showed gdm inactive (dead) so I gave another command sudo service gdm3 start and bang I'm in the system again.


Automatic mount of newly added HDD is failing - 14.04.3

Thankyou Craig, thankyou Thomas W.

I think I found the source of my trouble, and it is self inflicted :(. Although I don't remember checking the box when I did the install, it appears that LVM is activated. I think this is preventing me adding a drive in the normal way.

Although several years ago I understood enough about LVM to use it properly, I don't want to use it now, because I'm concerned about the diffence in performance of the SSD vs the HDD - I don't really want to merge them into one storage pool. I shall just have to reinstall the system, and get it right this time !:(.


How to integrate libvirt with libxl of Xen 4.4?

two quick google searches brought up a host of info. I am not sure if you have looked through these sources so I thought I would point you to them.

Jim Fehlig of Suse has a long post explaining "libvirt support for Xen’s new libxenlight toolstack" (http://jfehlig.wordpress.com/2014/01/05/libvirt-support-for-xens-new-libxenlight-toolstack/)
Anil Madhavapeddy has a very long and detailed note about libvirt here (http://comments.gmane.org/gmane.comp.emulators.xen.devel/201602)

Why don't I just copy the contents here? Because I think you will be able to get more from those notes than I could care to explain. :)

Please read those and let us know if those notes resolve your problem.

Thanks


Can't install Astropy for Python: where is the git repository?

Astropy is in the default Ubuntu repositories in Ubuntu 14.04 and later. To install Astropy open the terminal and type:

sudo apt-get install python-astropy # for Python 2.x

or:

sudo apt-get install python3-astropy # for Python 3.x

The python-astropy and python3-astropy packages contain core functionality and some common tools needed for performing astronomy and astrophysics research with Python. Astropy is expected to be extended by a number of "affiliated packages" that are intended to work with the core package. python-astropy-doc, python-h5py and python-wcsaxes are suggested packages for python-astropy.

The following Python code1 is a simple test to check if the cosmology and units built-in functions of astropy are working correctly.

from astropy.cosmology import WMAP9 as cosmo
H0 = cosmo.H(0)
H0.value, H0.unit

The expected output is:

(69.32, Unit("km / (Mpc s)"))

1Source: Cosmological Calculations (astropy.cosmology)


assert.h no such file or directory (Ubuntu 20.04 arm64)

Install libc6-dev-arm64-cross with
sudo apt-get install libc6-dev-arm64-cross

The file list includes assert.h.
So if you install this package, the file will be in your system.
If, when compiling, the header is not found, then it is because it is not in the search path.
So you should clarify exactly which commands/package you used to try compiling.
Check your include path with
avr-gcc -xc -E -v -

or
echo | gcc -Wp,-v -x c++ - -fsyntax-only

Also check where is assert.h located with
sudo updatedb
locate /assert.h | grep assert.h$

If these do not match (I wouldn't know why this is not set correctly automatically), as a workaround you can add the path by hand.
You can also try setting it more permanently.
See also

https://stackoverflow.com/questions/558803/how-to-add-a-default-include-path-for-gcc-in-linux
https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
https://commandlinefanatic.com/cgi-bin/showarticle.cgi?article=art026
https://www.avrfreaks.net/forum/how-does-avr-gccg-know-default-include-directories

It helps if you post the output of the following commands
dpkg -l | grep libc6-dev
dpkg -L libc6-dev-arm64-cross | grep assert.h

It is much more useful if you copy-paste the text and format as code, instead of images (a little more work for you, though).


Try reinstalling the nvidia-173 module:

sudo apt-get install --reinstall nvidia-173

and reboot

That worked for me!!


Unstable wifi, tries to load nonexisting firmware?

You are missing the experimental -10 firmware. The driver accepts several versions, if available. Failing to find -10, it found and loaded -9:

  loaded firmware version 23.214.9.0 op_mode iwlmvm

In this context, the .9 refers to the -9 firmware. I am not sure where the -10 firmware is even available.

There are a limited number of things to try to help stability aside from settings in the router. I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.

If these changes do not help, please try:

sudo modprobe -r iwlwifi
sudo modprobe iwlwifi 11n_disable=8

If it helps, make it permanent:

sudo -i
echo "options iwlwifi 11n_disable=8"  >>  /etc/modprobe.d/iwlwifi.conf
exit

If you'd like to try to disable N capability completely, then do:

gksudo gedit /etc/modprobe.d/iwlwifi.conf

Use nano or kate or leafpad if you don't have the text editor gedit. Change the last line that currently reads: 'options iwlwifi 11n_disable=8' so that is now reads:

options iwlwifi 11n_disable=2

Proofread carefully, save and close the text editor. Reboot.


After more googling I finally found the solution. Apparently something has changed in default power management options making my mouse and keyboard be autosuspended to cut power usage and the functionality works even without manually installing any of the power saving software. The solution is here:

http://www.hecticgeek.com/2012/06/fix-usb-mouse-not-working-laptop-mode-tools-ubuntu/

modify etc/laptop-mode/conf.d/usb-autosuspend.conf to add your devices to the blacklist.

VERY IMPORTANT: your usb devices must be unplugged while running sudo service laptop-mode restart!


Changing ls highlight colors in Windows Terminal with WSL

Do this first:
$ dircolors --print-database > ~/.dir_colors

Then use your favorite editor to edit ~/.dir_colors
In my .dir_colors, the line you'd be looking for is line #61:
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky

I changed 42 to 40 to go from green to black background.  The color codes are in the file itself (.dir_colors). The first number is not used (it's for style, underline, bold, etc). The next number (34 in this case) is the foreground, and the last one (42) is the background.
You'll have to close your wsl terminal and re-open to see the new color output.
Hope that helps.


LAMP 403 forbidden access on custom folder

This happens after you upgrade to apache 2.4.9+
basically just replace
Order allow,deny
allow from all

with
Require all granted

should fix this issue.
something like,
<Directory /home/tom/Dropbox/web>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
    AllowOverride All
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Require all granted
</Directory>

Here is a note from http://httpd.apache.org/docs/2.4/howto/access.html

If you wish to restrict access to portions of your site based on the host address of your visitors, this is most easily done using mod_authz_host.
The Require provides a variety of different ways to allow or deny access to resources. In conjunction with the RequireAll, RequireAny, and RequireNone directives, these requirements may be combined in arbitrarily complex ways, to enforce whatever your access policy happens to be.
The Allow, Deny, and Order directives, provided by mod_access_compat, are deprecated and will go away in a future version. You should avoid using them, and avoid outdated tutorials recommending their use.


System Restore in Windows will affect other partition?

From the official Microsoft Recovery options in Windows 10 webpage:

Restore from a system restore point
This option takes your PC back to an earlier point in time, called a system restore point. Restore points are generated when you install a new app, driver, or Windows update, and when you create a restore point manually. Restoring won’t affect your personal files, but it will remove apps, drivers, and updates installed after the restore point was made.

Removing updates may include removing updates to the Windows bootloader which in turn can cause Ubuntu's grub bootloader to stop working. If this happens grub can be repaired by following the instructions in How can I repair grub? (How to get Ubuntu back after installing Windows?).
If you restore back to a system restore point before a major update such as Windows 10 Anniversary Update and the more recent Windows 10 Creators Update, then Windows may try to reinstall the removed major update which can wipe out Linux partitions on MBR disks and also cause Ubuntu's grub bootloader to stop working.


Will a Ubuntu install disk made on Windows run on a Mac?

Yes, so long as you burn the .ISO image properly there is no reason why the Windows burned image of a Linux operating system wouldn’t work on your Mac... Aren’t computers just amazing!


How to restore the raid superblock back to the disk

This isn't a difficult problem to solve by mdadm itself, it's just no one has contributed the code to do the work. Your options are outlined here:

https://raid.wiki.kernel.org/index.php/RAID_Recovery

None of them easy.

You'll want to create a dd image of your disks if possible, which understandably is easier said than done because of the sheer volume of data.

In the future, you can back up your superblock and send it off box for later disaster recovery. Hope this helps.


That's not a big problem. The Danish and Swedish layouts are quite similar.

å is available on the same key as with the Danish layout
To type æ, press AltGr+Ø
To type ø, press AltGr+Æ

HTH

Edit:

For the case you use the English (US) layout, you can try to use code points instead.

Ctrl+Shift+U followed by 00e5 followed by Enter => å

Ctrl+Shift+U followed by 00e6 followed by Enter => æ

Ctrl+Shift+U followed by 00f8 followed by Enter => ø


Look at the owner not root in the error.

Did you install the Adobe Flash plugin? If so check the directory ownership of /usr/. This needs to be owned by root and is more than likely changed by Adobe Flash plugin.

cd /
sudo chown root:root usr

And try again. There could be more directories involved.

More information:

Virtualbox website (is also about Mac systems)
Virtualbox website
Ubuntuforums (states /usr and /usr/lib)


To completely remove anaconda from your path:

Check for the anaconda entry in both ~/.bashrc and ~/.bash_profile and remove the line:

export PATH="/home/sbendl/anaconda2/bin:$PATH"

For complete removal:

Remove the entries in the files stated above then get rid of the ~/anaconda2 dir.

And that should correct the issue.


Ubuntu 18.04 is not shutting down due to some firmware issue and occasionally freezes during casual tasks

I found the issue, it is caused by Intel bay trail cores.
Now I have the solution too which isn't the best yet it is decent for now.

Solution:

Onpen terminal
sudo gedit /etc/default/grub
EditGRUB_CMDLINE_LINUX_DEFAULT="quite splash"into GRUB_CMDLINE_LINUX_DEFAULT="intel_idle.max_cstate=1"
Save and close it
sudo update-grub
Turn your computer off forcefully for one last time

I had this problem since I have installed Ubuntu 18.04 and I was kind of motivated to erase it but I am a newbie and it is serious bug. The solution isn't the best but good for now at least.


Ubuntu isn't on Google's list of Summer of Code participants

As far as I know Ubuntu did not get through. It is not there in the list.

Ubuntu got through last year(2010) where we had a few projects (one I can remember was Harvest)

In 2010 openSUSE did not get through. They got through this year.

Ubuntu did not get through in 2009.

This all fine. Ubuntu is a pretty big project. GSoC is a initiative to boost FOSS mentality.

This time Google themselves said that smaller organizations should also apply. Looks like Google thought that Ubuntu doesn't need GSoC students.


How to install a Brother HL2270dw laser printer?

Open a terminal: Ctrl+Alt+T
Download the driver installation script:

wget http://download.brother.com/welcome/dlf006893/linux-brprinter-installer-2.0.0-1.gz

Unzip it:

gunzip linux-brprinter-installer-2.0.0-1.gz

Run it as root:

sudo bash linux-brprinter-installer-2.0.0-1

Enter HL2270-DW as "model name", then y to continue
When asked "Will you specify the DeviceURI?" choose "No" for USB connection or "Yes" for network connection.


It seems your graphics card has a problem with Unity in Ubuntu 12.10.

You have a few options:

I think the best option boot 12.10 on a live USB and test your hardware. If it works well, upgrade.
If unity is slow you might need to consider an alternate desktop such as k/x/lubuntu. Again testing before you upgrade is the way to go.

I also advise you make backups before you upgrade in case you do have a problem.


Ubuntu SDK: Having difficulty getting images to work in 'QML only app' when deploying to armhf device

This is what I did to embed an image in the "binary":

I'm using a qmake project with the default folder structure in Ubuntu SDK. I made a directory to store my images: project_name/backend/your_click/images. With the backend folder I created a new resource file resource_file.qrc that contains the following:

<!DOCTYPE RCC><RCC version="1.0">
<qresource>
    <file>images/bigredbutton.png</file>
</qresource>
</RCC>

To create the qrc file I think you can right-click, Add New ..., Qt, Qt Resource File and manually edit the file, or manually create it from scratch. I don't remember which one worked for me, try them out and let me know, I will edit the answer for others that may run into the same problem in the future.

In my Main.qml file I use the image like this:

Image {
    id: btn
    width: 250; height: 250
    fillMode: Image.PreserveAspectFit
    source: "qrc:images/bigredbutton.png"
    MouseArea {
    ...
    }

Here's a screenshot of my project structure, it might help.


After upgrading to Ubuntu 19.04 from 18.10 always showing the GRUB window. How can I fix it?

I got an temporary solution and applied. Now GRUB window is not showing.

The solution is:

Delete old kernel: I have deleted old kernel 4.18 by using Synaptic. link
Set GRUB_TIMEOUT = 0 at sudo gedit /etc/default/grub


From this answer on Launchpad:

  Michael Bienia (geser) said on 2007-06-23:     #1

    The ext3 filesystem reserves an amount of the total space for root. If some user (or daemon) fills the disk then a login couldn't be possible anymore. So even root couldn't login anymore to fix it. Therefore ext3 reserves an amount of 5% (default) of the filesystem for the root user to prevent it (it doesn't work if root fills the disk).

    Available space is now the total free space including the reserved space for root.
    Free space is the free space that you as a user can fill :)

    It is possible to change this with tune2fs (PLEASE consult the manpage before using this tool).

I suspect this also true for ext4 filesystems. In the case of btrfs, the btrfs docs say that df and other tools can't report free space correctly, so that maybe it (unless gnome-system-monitor uses the btrfs filesystem df command.


You can do that very easily , while you are creating the connection for Mobile broadband ,look at the 1st TAB[ General ]  there you can have the option as Automatically connect to this network when it is available .

so you even because of network problem you got disconnected your connection , it will reconnect again after sometime when network is available. so you can automate it very easily.


running linux on virtual machines for experimentation

You can use Virtualbox in Linux and run any linux based OS. I myself use Ubuntu and run Centos in Virtualbox, there isn't any issue.


Ubuntu 16.04: "Setting up snapd.." and dpkg freezes

This is a known bug, it is already fixed in -proposed. You can wait until the fix makes it's way to stable, enable testing or use a workaround:

start a rootshell with sudo -i
run echo "bash -c 'service snapd.boot-ok start'" | at now + 4 min
run apt install snapd (if it argues about canceled dpkg processes use  dpkg --configure -a)
wait for at least 4 minutes

Or just run sudo service snapd.boot-ok start from a different console after seeing Setting up snapd... on the first console.


This worked: use the drivers PPA and install v 375. I did it from the command line.

tim@raffles:/ uname -r
4.8.0-32-generic

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

sudo apt purge nvidia*
sudo apt install nvidia-375

(via https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa )


Problem using miniDisplay port adapter to VGA on Dell XPS l502x

According to Hanynowsky, this is a hardware issue, which should be solved by replacing the cable. (If that is correct, then this answers the question and solves the problem.)

  It's a cable issue eventually (Poor quality miniDP to VGA adapters).
  You're not the only one having this issue. You need a good quality
  adapter that preserve didigtal signal quality and properties when
  converting into analog signal. Generally, if you got a 20 bucks cable,
  it wouldn't do the job.

– Hanynowsky Apr 8 '12 at 23:34


Started GNOME Display Manager Issue on Ubuntu 18.04.02

By Using the USB Flash Drive, I created a ISO Ubuntu boot stick.
By the help of boot stick, I choose the last option during installation to override my old installation without any lose of data.

I got my work space back with all the data.
I just got to do the rework on Nvidia driver installation with new Kernel.
Cuda and cuDNN are already there.No need to reinstall.
I am able to continue my work but one more issue.
On reboot i am getting complete black page after login to Desktop from Ubuntu.
So i am managing to go inside by recovery mode ...

Any help to resolve the black screen would be appreciated.


How to check when a process stopped running?

Key point that should be understood about processes is that their metadata is not logged by default. You can, however, obtain certain information while process runs.

As has been stated in related StackOverflow question in wlk's answer, start time can be obtained via -o flag to ps and ltime format specifier:

ps -eo pid,lstart,cmd

Stop time, however, is not tracked by the system usually, so that's something you'll have to track yourself. Knowing PID of a process, you could poll for that PID existence, and echo the timestamp when it disappears

while kill -s 0 $pid ; do : ; sleep 0.25 ; done && date

See also: https://stackoverflow.com/a/5207048/3701431


Youtube-dl doesn't download the playlist

You are actually downloading the video at index 1. Remove the index parameter so you can download the whole playlist. Follow the link
Don't forget to add --yes-playlist

 $ youtube-dl --yes-playlist https://www.youtube.com/watch?v=3ez10ADR_gM&list=PL8dPuuaLjXtPNZwz5_o_5uirJ8gQXnhEO


How to create log file from a command (through alias)

Run the command in a subshell:

(ud) > file.txt 2>&1

This will have the commands in the alias ud to run in a subshell and the STDOUT and STDERR of all the commands will be directed to the parent shell so that we can redirect the STDOUT and STDERR of all commands to the same file from our parent shell at once.

Or as @steeldriver suggested you could also set the alias as following so that all the commands are grouped together and their STDOUT and STDERR will be redirected at once:

alias ud='{ sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get clean -y ;}'

Now you can run the command as:

ud > file.txt 2>&1

Now, lets get what you were doing wrong:

You have set the alias as:

alias ud='sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get clean -y'

Now as you run :

ud > file.txt 2>&1

Only the last successful or failed command's STDOUT and(or) STDERR gets redirected to file.txt, all previous commands run and depending on that command's exit code (success &&) the next command will run. So, in your case all commands succeeded and as sudo apt-get clean -y removes all the .deb files from /var/cache/apt/archives silently without showing any STDOUT you were getting an empty file.


How do you permanently activate all AppArmor profiles?

To permanently put all profiles into enforce mode:

sudo aa-enforce /etc/apparmor.d/*

To permanently put all profiles into complain mode:

sudo aa-complain /etc/apparmor.d/*

To verify the current status of apparmor:

sudo aa-status

complain mode will log violations against the application profiles, whereas enforce mode will strictly enforce the application profiles.


Built-in microphone not detected on Ubuntu 18.04 HP Elitebook 840 G6

You need recent version of alsa, pulseaudio and the linux kernel. On Ubuntu 18.04, you may manually install the respective programs from Ubuntu 20.04. This relies on the Sound Open Firmware support in recent kernel versions. Do not do this if you don't understand what you are doing:
Create
~# cat << EOF > /etc/apt/sources.list.d/focal.list
deb [arch=amd64] http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ focal main restricted
EOF

and
~# cat << EOF >> /etc/apt/preferences
Package: *
Pin: release a=focal
Pin-Priority: 100
EOF

And finally run
sudo apt update && sudo apt install -t focal alsa-topology-conf pulseaudio

If you have the option, just update to Ubuntu 20.04 (or install Ubuntu 20.04 kernel).
OR
Compile kernel 5.6 from source
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.6.5.tar.xz
tar xf linux-5.6.5.tar.xz
cd linux-5.6.5
cp /boot/config-$(uname -r) .config
make deb-pkg -j$(nproc)
cd ..
sudo dkpg -i linux-headers-5.6.5_5.6.5-1_amd64.deb  linux-image-5.6.r_5.6.5-1_amd64.deb  linux-libc-dev_5.6.5-1_amd64.deb

And reboot.
Thanks to Pierre-Louis Bossart from Intel & SoF, who verified this can't be fixed without updating the alsa and pulseaudio packages: https://github.com/thesofproject/linux/issues/1994


Try with "boot-repair".

Boot from a live-cd/usb, and run:

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

I found it in:
https://askubuntu.com/a/182863/287964

More information:
https://help.ubuntu.com/community/Boot-Repair


Automatic keyboard input to Linux system

Try using xdotool

Start of by installing xdotool

sudo apt-get install xdotool

Then create the following script and run it at startup.

#!/bin/bash

while true
do
    sleep 300
    xdotool  key Return
done

All this does is waits 300 seconds, then presses the Enter key, then repeats.

If you do not want to save this as a file, you can simply type the exact same code line by line in to a terminal window and it would do the exact same thing until you close the terminal.