Ideally, I'd suggest you take space from Windows, permanently, and give it to Ubuntu by repartitioning the hard drive. That's far easier to use once completed, and not that complex to do. However, here's what you asked for.

https://www.maketecheasier.com/write-windows-partition-linux/ explains you will be able to read from and write into the NTFS partitions from Ubuntu, if you use Restart to exit from Windows instead of Shut Down.  Please, however, avoid writing into C: because that's where Windows itself is, and you don't want to break Windows by changing some essential bit of code.

When you Shut Down, the default settings of Windows prevent the system from actually completely shutting down. Instead, the Fast Boot option of Windows copies from the contents of the Windows OS into the hard drive (or SSD if you have one of those), so Windows starts up much faster next time. It's a convenience for users and makes Windows look much better than Linux.

However, that means the drive partitions are locked and you can't write into them from the Nautilus File Manager or other Ubuntu apps if you boot into Ubuntu.

You can disable that feature from within Windows by right-clicking on the {START} button, choose Power Options, then Additional Power Options. Pick 'Choose what the power button does" then click on “Change settings that are currently unavailable.” Deselect “Turn on fast startup,” and then click the “Save changes” button at the bottom-right of the window so Windows won't lock those drives.  This is shown at the web link in the second paragraph of this post.

You should also open your BIOS/firmware settings of your PC's hardware to turn off Fast Boot or Fast Start if those appear as options in the BIOS/firmware. I don't know which model of PC you have so I can't tell you how to get into the BIOS, but when the PC is turned back on in a cold start (when fast startup is disabled), most models will tell you what key to press to get into Setup.

PS: Do NOT use Hibernation, either in Windows or Ubuntu, as that locks up drives just like Fast Start does.


You need to have an application that works with a web cam. I use cheese  for that matter.

Install cheese by running the following command in a terminal:

sudo apt-get install cheese

After installing it, open it and you can now use the web cam.


To make completely disabling ipv4 entirely impossible.
After a quick check on make menuconfig on kernel 4.4.189.
I could not find a way of disabling ipv4 without disabling the entire TCP/IP stack.

But you can disable IPv4 on interfaces with Network Manager:
To list the active connections:

  $ nmcli connection show --active

NAME     UUID                                               TYPE                     DEVICE
Wired1   63e9c617-f3f8-416c-a40c-fbb460549169               802-3-ethernet           ens33

Modify the property of ipv4.method to disabled

  $ nmcli connection modify 63e9c617-f3f8-416c-a40c-fbb460549169
  ipv4.method disabled

To apply the new settings. Let’s restart the networking:

  $ nmcli networking off

  $ nmcli networking on


Unable to change the position of page numbers in a LibreOffice Impress presentation

I opened View -> Master -> Master Elements and unchecked the Footer box and the Slide number box.  Then, looking at View -> Slide Master, I was happy to see that the slide number field had disappeared. However, to my surprise, the slide numbers were still visible on normal view.

Back story:  The file was originally created in PowerPoint.  I opened the .pptx file in LibreOffice and saved as .odp.  I wonder if LibreOffice didn't know how to handle the .pptx slide numbers, or something else is to blame.

So I manually deleted the slide numbers, one at a time, and then proceeded to insert a new slide number field in the Slide Master.  The newly inserted numbers look good.


From Terminal

cd /etc
ls

Look for resolv.conf, if it exists then,

sudo mv /etc/resolv.conf /etc/backup.resolv.conf

This copies the file to a new file name in case you need it back.

Exit Terminal, go to Firefox and try your URL.  It should work fine.


I am currently unable to help with rename the shortcut Super+t to trash in the launcher, but I am working on it.  However, I can point you in the direction of where to change the shortcut for the terminal.

To change the default shortcut CTRL+ALT+T, you will need to ensure you have the 'Compizconfig Settings Manager' (CCSM) installed.  To install, issue the following command from a terminal:

sudo apt-get install compizconfig-settings-manager

Once installed, or if it is already installed, start CCSM.  In CCSM, select 'Gnome Compatibility', and select the 'Commands' tab.  Here you can change the terminal launcher shortcut.

UPDATE
There is indication that the shortcut for trash is currently hard-coded in Unity.  See => How do I change the trash keyboard shortcut?


Mixing onboard Nvidia and an ATi card, each connect to one monitor

I'm running my on board Nvidia card with an ATI quad monitor card for a total of five monitors on a digital audio workstation in Windows 7, and aside from a few quirks (my favorite screensaver Flurry won't run), it seems to be stable.


How do I find out what App just connected to internet?

There is no log like that. If there were it would be several gigs in size. Your best bet is to run something like iftop or nethogs neither of which is installed by default.

If your really, really paranoid, then you could cat /proc/net/tcp but this doesn't log.

There's also netstat -tapn but again that's only "what is connected right now".

Then there's also this article that will tell you how to log outgoing connections via iptables.

Again, this is likely not that smart of an idea, the log will be huge.


I've been working extensively with containers recently. I don't think you will be able to set sysctl settings on docker since they do share a kernel.


You need to install the wacom-dkms package from my PPA

https://launchpad.net/~doctormo/+archive/wacom-plus

You can do this by using the following commands:

sudo add-apt-repository ppa:doctormo/wacom-plus
sudo apt-get update
sudo apt-get install wacom-dkms

There is also an updated xorg driver for lucid available in the same ppa to fix a bunch of issues in the LTS. Please don't compile your drivers, seek help packaging them up instead so we can provide the driver fixes to everyone and hopefully fix them forever.


How can I add or edit chapter markers with an m4v file?

click the chapters tab in handbrake. turn the check mark on for chapters. and then write your own chapter names and times in the timetable.


You certainly can, it's pretty much just like installing it normally. I took a few moments and found a pretty decent site that will help you out.

http://www.fernhilllinuxproject.com/guidesandhowtos/installubuntutousbdrive.html

They've even taken the time to make a handy video of the process. It's pretty simple, really. Let us know how it goes.


Screen brightness isn't taking effect on a Lenovo Z570

For those of you having this problem with an Intel card, look at this fix:

You can see whether you use an Intel card with the following command. If you see "intel_backlight", you probably have an Intel card.

ls /sys/class/backlight/

If so, execute the following command:

sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf

You may check first if that file exists, but touching it won't do any harm. Then edit the file:

sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf

Insert the following code:

Section "Device"
    Identifier  "card0"
    Driver      "intel"
    Option      "Backlight"  "intel_backlight"
    BusID       "PCI:0:2:0"
EndSection

Save the file, log out, log back in. This worked for me on Ubuntu 14.04, and it should work on 13.10 as well.

Credits to It's FOSS


Problem setting alias, ~/.bash_aliases file not found

The lines

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

mean if the file .bash_aliases exists then use it. In your case it doesn't exist so it's ignored.

If you want to add to it just create the file. How you do that is up to you but I'd suggest gedit ~/.bash_aliases from the terminal. Add in any aliases you want, then save the file and open a new terminal. Your new aliases should be working.

If you want the new aliases in an existing terminal use source ~/.bash_aliases.

EDIT: I've just noticed you've referred to the file by both bash_aliases and bashrc_aliases. It doesn't matter which you use as long as the filename matches the line in .bashrc.


Try right-clicking on a .doc file, go the open with tab and select Libreoffice Writer


This cured my problem:
I stumbled on to another forum that said to try changine the default settings for gpsd at [/etc/default/gpsd] to this.
# Default settings for the gpsd init script and the hotplug wrapper.

Start the gpsd daemon automatically at boot time
START_DAEMON="false"
Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"
Devices gpsd should collect to at boot time.
They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyUSB0"
Other options you want to pass to gpsd
GPSD_OPTIONS="-n -G -b"
GPSD_SOCKET="/var/run/gpsd.sock"
end of file gpsd
to my surprise it worked.


"Couldn't find java at" error, when Java exists

Okay I figured it out. I had not set the correct value for JAVA_HOME in the /etc/environment file. This is the file which is global for all users. I thought it would be updated automatically.


How can I enable Multitouch features on My Desktop Touch Screen

first of all install utouch

sudo apt-get install utouch

I have a touchscreen computer too and I use "touchegg" for the gesture recognizer, it work great. Unfortunately, right now there aren't too much apps for ubuntu focused on touchscreen.
If you are interested in touchegg you can download it

sudo apt-get install touchegg

and configure the .conf file placed "/home/"user"/.config/touchegg/touchegg.conf


How Can I Run an Shell Script With .desktop Config File?

Few potential issues:

Your script needs a shebang on its first line... it should look like:

#!/bin/bash
/usr/bin/java ...

Your script needs to be marked as executable:

chmod +x /path/to/script.sh

Your .desktop file also needs to be executable (security policy stuff apparently):

chmod +x /path/to/desktop-file.desktop


Error 255 when installing openSSL from source

Nearly 2 years later and this question is not closed! I had the exact problem.

Changing

  make install

to

  make install_sw

will install OpenSSL without the man pages, thus alleviating this issue. The man pages are not required.

Here is the source:
https://github.com/shadow/shadow/issues/206


I have a directory path, (~/.factorio/mods) how do I access this folder in order to copy a ZIP file into it?

You are not seeing the .factorio directory because it is invisible. That is because it starts with a ..

Simply navigate to your home directory and press Ctrl + H. This will toggle invisible items on and off.


How do I force BIOS to boot to shimx64.efi file when you turn OFF the computer? No dual boot needed

Ok so after much searching I found out that if you try and install ubuntu and it works, but then when you shut down your computer, you can not boot, it may be because 1. You never installed an EFI partition (if you have a EFI system). or 2. During the installation wizard, you didn't select the location of your EFI partition (to be the location to install your boot loader files).

Once I did that it finally worked. Hopefully this helps someone out there!


How should I install the latest CMake in Ubuntu 14.04

The default version of CMake in Ubuntu 14.04 is 2.8.12. However, 14.04 also supports CMake 3.5.1 using the package cmake3. To install it, use the following command:

sudo apt-get install cmake3

It should automatically uninstall the current version of CMake – check the output before confirmation. (Unfortunately, I don’t have any 14.04 machine available to check it for you now.)

If it wouldn’t uninstall the current version of CMake, cancel the installation and use this command first:

sudo apt-get remove cmake


Figured from some other posts, it's because of windows 10 update which somehow erases the grub menu.

this post helped me resolve the issue

Restoring Grub Launcher After Windows 10


Hibernation doesn't power off the laptop

I finally fixed it. It seems that there is some problem in S4 sleep mode for this chipset. So I set to skip it and set it to poweroff after suspending to disk.
So edit /etc/systemd/sleep.conf
Uncomment the line
#HibernateMode=platform shutdown

to be
HibernateMode=shutdown

and reboot.
All is fixed.


No way of getting Nvidia GPU activated on Ubuntu 17

after fresh installation i added repo:
http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64

Than in synaptic (because i forgot which 2 I installed) select nvidia-cuda, nvidia-dkms-390, nvidia-compute-utils-390, nvidia-utils-390, nvidia-driver-390 nvidia-prime, nvidia-setting, xserver-xorg-video-nvidia-390.

(now is 06/2018)

now 2 important remarks :)

Is NV listed in system ? (not disabled in Bios or disable intel vga, make NV primary)

Wayland not support current nvdrivers drivers so don't use WYL.


xfce4 "tiling windows when moving to screen edge" not working

Tiling (snapping) windows can be enabled or disabled under Settings > Window Manager Tweak > Accessibility.

But it seems that snapping windows to the margins of the screen becomes difficult or impossible when the changing of  workspaces by dragging the window is also activated in "wrap workspaces when reaching the screen edge" - "with a dragged window" under 'Settings > Window Manager > Advanced' because the two actions interfere and the workspace-changing has precedence when the edge resistance level is very close to "small".
It seems to me a bit too much to ask that the same action (dragging a window to the screen edge) should be able to trigger without problems two different results.
To avoid the interference use a different option for workspace:"wrap workspaces when reaching the screen edge" - "with the mouse pointer" - if you must keep a screen edge action for changing workspaces.
Or even disable it completely. That will certainly ensure window snapping/tilling:

If the option "wrap workspaces when reaching the screen edge" - "with a dragged window" is enabled but the edge resistance is increased towards "wide", the window snapping/tiling takes complete precedence and at this point it's the "wrap workspaces" action that is not achieved at all.

Finding the edge resistance level where both actions are easily accessible is possible, but not very practical in my opinion, as you often get one instead of the other. (That may also depend on the hardware as well as human factor.)

Summing it up:
In order to get the window tiling working:

Be sure you have it enabled in Window Manager Tweaks->Accessibility.

Disable "wrap workspaces when reaching the screen edge" - "with a dragged window" under Settings > Window Manager > Advanced OR keep it enabled but set the edge resistance wide enough to make the tiling take precedence over wrapping workspaces.

My version of xfwm4:  4.12.3-2.


Graphics issues with live boot USB on Macbook Pro Retina

Update 1

I assume you are using rEFInd to bypass grub. One solution would be to add a manual entry to the refind.conf file. This will allow you to boot to grub from rEFInd. I assume you still have grub installed in your EFI partition. Add the following lines to the end of refind.conf. Reboot and look for "Boot Linux Ubuntu from EFI".

menuentry "Linux Ubuntu" {
        icon \System\Library\CoreServices\icons\os_ubuntu.png
        volume "EFI"
        loader \EFI\ubuntu\grubx64.efi
        graphics on
}

Original Answer

This took about 5 minutes to figure out. Maybe it will help.

You state: My Macbook pro model is Early 2015, or 12,1.

That makes it a Macbook Pro 13" Early 2015;
Graphics and Video Support: Intel Iris Graphics 6100.

I did a Google search using: Intel Iris Graphics 6100 ubuntu

My third hit was: Question #263770 : Questions : Ubuntu - Launchpad Answers. Below is a copy of the given solution.

      Hey, I managed to find a solution for this problem, first I booted up into GRUB, (hold left shift after you turn the device on) went into advanced and selected Ubuntu recovery mode (second one down for me). Once it loaded up I hit resume and was able to access my desktop properly. I then went into the terminal (Ctrl +Alt + T) and entered exactly without quotations: "gksudo gedit /etc/default/grub". I navigated to the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and modified it to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset". I then saved the file and exited gedit, I then entered another command without quotations: "sudo update-grub". I restarted my system and it worked. (source: http://ubuntuforums.org/showthread.php?t=1613132)

A better explanation of the changes are given at the source link http://ubuntuforums.org/showthread.php?t=1613132. I included a copy below.

How to permanently set kernel boot options on an installed OS (not wubi)

To permanently change the default kernel boot options, press ALT+F2 or open a terminal from system > accessories > terminal. Type in the following command:

gksudo gedit /etc/default/grub

a text editor will open with the grub configuration file. Near the top of that file you will see something very similar to this:

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

add your custom boot options to the GRUB_CMDLINE_LINUX_DEFAULT line, so for instance:

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
GRUB_CMDLINE_LINUX=""

Save the file and exit gedit. If you have to add kernel options that contain quotation marks, add them as such:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_osi=\"Linux\""

Now in the terminal, run the following command to update your grub configuration with the new default settings:

sudo update-grub

Thats all.


Sending an alert email if time for a curl command exceeds 1 sec

From the look of it, the result of curl does not seem to matter.

So I propose to kill the command if it spans more than one second by using timeout. Here is the one-liner:

timeout 1s curl {URI} || mailx -r me@domain.tld -s ALERT

If it timeouts, it returns an error and the mailx command is run.

No tested but that should work.


Ubuntu 14.04 and 15 possibly incompatible with MSI 970 SB950 motherboard

I don't know about the AMD 970 but I did have a similar problem with Ubuntu 14.04 and AMD A10-7700K (mobo is A88XM-A, with Radeon 7 graphics).

Screen worked at the BIOS level (I tried tweaking many settings there) but every boot into 14.04 resulted in various errors plus black screen.

After a week of battling, I gave up and tried 14.10 and hey presto everything worked; I'm now on 15.04 and everything is still good.

So there are bugs in 14.04/3.13 kernel that affect at least some AMD processors. The later kernels (14.10/3.16, 15.04/3.19) fixed my problems.


Easiest way to make the CD just a nice table coaster is throw it in the microwave for 15 seconds. Seems much easier than trying to trick your computer into writing over what was already there.

Not the answer you were looking for but an answer nonetheless.


Solution: Open dconf editor and go to: org>gnome>desktop>wm>keybindings and set
switch-input-source to

['<Alt>Shift_L']

and switch-input-source-backward to

['Alt+Shift']


Dualboot or Virtualbox any performance differences?

Yes, running on bare metal will be significantly faster, especially in areas of graphics or CPU/RAM intensive tasks.


Make locally compiled programs request password graphically

The binary might be in YOUR path but not in roots path. Try using an absolut path with sudo:

sudo /home/you/bin/some_binary


Shell script that open xterm, cd into a folder, run a command, and keeps me there

I solved the issue. I had the following lines in my .bashrc:

PROMPT_COMMAND='pwd > "${HOME}/.cwd"'             # Save current working dir
[[ -f "${HOME}/.cwd" ]] && cd "$(< ${HOME}/.cwd)" # Change to saved working dir

The reason I have them is due to i3. I want i3 to open new terminal in the recent working dir.

I solved the issue by deleting the .cwd file:

xterm -e "cd /tmp && ls && rm ~/.cwd; bash" &


Can't download anything from the Ubuntu Software Center

Apparently, the apt https package is missing. You can install it using:

sudo apt-get install apt-transport-https


Unnecessary packages on my Ubuntu VPS server from host. How to diff with standard Ubuntu?

You get all packages available in the server release CD, but not all installed by default

wget -q -O - http://releases.ubuntu.com/12.04/ubuntu-12.04.5-server-amd64.list | xargs -I{} basename {} | cut -d _ -f1 | sort > pkg-available.cd.list

To compare to a running machine you can.

Generate the list of installed packages

dpkg --get-selections | grep -v deinstall | cut -f1 > pkg-installed.server1.list

and for 2nd machine

dpkg --get-selections | grep -v deinstall | cut -f1 > pkg-installed.server2.list

Compare them

diff -y pkg-installed.server*.list

or to the available ones in the CD

diff -y pkg-installed.server1.list pkg-available.cd.list


I don't know much about the specifics of Nautilus and their CSS, but overall the .css file only has things that are styled specifically, so the color of the tabs is probably defaulting from some other system property.

Try creating a rule for the .tab class and setting it's background color to something exotic to test:

.tab {
    background-color: red !important;
}


Change which linux install "controls" grub

You'll have to reinstall the xubuntu-grub on the Master Boot Record of your hard drive. Just type sudo grub-install /dev/sda from ubuntu and ubuntu will be back in control.


How to back up LXD containers on Ubuntu 16.04

I was searching for this as well and found this page.  For now, the upstream LXD devs have this page on LXD backups.

The simplest and easiest for me is:

Secondary LXD

This requires a second LXD instance to be setup and reachable from the LXD instance that is to be backed up. Then, all containers can be copied to the secondary LXD instance for backup.

So basically, lxc copy <container> remote:<container>


openssl s_client -connect gmail.com:443 -ssl3 not working

SSLv3 has been permanently disabled in the version of openssl distributed with Ubuntu 16.04, so the -ssl3 option no longer has any effect.

From /usr/share/doc/openssl/changelog.Debian.gz:

openssl (1.0.2g-1ubuntu1) xenial; urgency=medium

  * Merge with Debian, remaining changes.
    - Disable SSLv3 without changing ABI:
      + debian/patches/no-sslv3.patch: Disable SSLv3 without using the
        no-ssl3-method option
      + debian/rules: don't use no-ssl3-method, don't bump soname
      + debian/patches/engines-path.patch: don't bump soname
      + debian/patches/version-script.patch: don't bump soname
      + debian/patches/soname.patch: removed
      + debian/lib*: don't bump soname


Unable to load web pages from local Apache server running Ubuntu 11.10

From the desktop browser, you should be accessing http://netbook.ip.addr.here:80/
From the netbook browser, you should be accessing http://127.0.0.1:80/

running netstat -tulpn on the netbook should yield a line like this:

me@GAMMA:~$ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:80           0.0.0.0:*               LISTEN      1167/apache2

However running the same command on the desktop should yield nothing.

After attempting to make a connection, check the log file at /var/log/apache2/access.log and see if the access attempt made it to apache or it is being stopped by a firewall. If you see an entry in netstat for apache then it isn't likely a firewall but you never know (crazy stuff happens with iptables).


errno=-32 is showing up on installation of ubuntu 12

Errno 32 is: EPIPE, Broken pipe. So I suspect a process that is reading or writing on the pipe died unexpectedly and caused this error message. How it relates to the install is hard to tell without further details.


Same here I am also new to Ubuntu 20.04 and I was also having the same question but  sorted out according to my resources like ram and cpu.I have a low end pc so I felt that I should dedicate my full resources to a single operating system so I have installed both OS and access them by dual boot.As I have a low end pc the VM splits the resources into two and I already I knew that my resources are not capable for that as the main OS crashes the secondary OS running in the virtual-machine also crashes so I prefer dualboot.But if you have a high end pc and wanted to operate more than 2 operating systems to do just a certain task or just to try it I would prefer using virtual machine.So according to your needs the answer depends on you,if you are supposing to sit hours and hours on the second OS in virtual and doing resources hungry task like gaming it is not suitable on a VM.
I am not giving drawbacks of VM I am just trying to explain the needs because the answer depends on it.


Nvidia probably isn't recognized properly.
Did you "install third party software" during OS installation ?


If you check the Wine headquarters, they have an entry on Malwarebytes.

Did you already read the information there?

EDIT:

googling for your missing DLL, it turns out that using winetricks (a script which you can download, see this page), you can install this missing library by running:

$ winetricks vb6run


How to get username back on the Unity panel?

To re-enable the username on Unity panel, in terminal:

gsettings set com.canonical.indicator.session show-real-name-on-panel true

To disable, simply change true to false:

gsettings set com.canonical.indicator.session show-real-name-on-panel false

Note: You must reboot for these changes to take effect.


Fresh installation of ubuntu 16.04 gives me warning about locale. Unable to fix

This is a guess, since I don't know how AWS Lightsail works.

Apparently the LC_CTYPE variable has been assigned a value ("UTF-8") which is invalid in Ubuntu. So let's clear that variable.

Open the ~/.profile file for editing, add this line:

unset LC_CTYPE

and relogin.


Can't browse the internet although I can ping www.google.com

Well, a good step is to start at the bottom and work up.

Apparently you do have ip connectivity and routing because you can ping an external machine.
Apparently you also have working DNS because you can resolve google.com to ping it.
Can you open a tcp socket?  Try telnet google.com 80 from the command line and see if you get 'connected' or not.
Can you do http from the command line?  How about wget -v http://google.com/robots.txt?
If those all work, check a different graphical browser.

My guess is your firewall rules pass forwarded packets but block some essential packet to or from localhost.


Partitioning for Ubuntu -- question about partitions

I can help you with the problem. The partitions that you are seeing here are of NTFS format which is compatible with windows. For ubuntu, this wont work. You will have to create an EXT4 partition. You will get this option during installation. For linux systems it is necessary to create a swap partition for better performance. The biggest problem for you is the limit to the number of partitions you can have in one hard drive, which is 4. So layout is:

1st partition - NTFS for windows

2nd partition - EXT4 for ubuntu

3rd partition - swap area

In your case, you can reformat your unusable space as ext4 for ubuntu. I cant see which of your partition has windows, most probably /dev/sda2. If thats the case then split your unusable space into an ext4 partition and a swap partition. Also while installing boot loader for Ubuntu, make sure you overwrite Windows bootloader which is /dev/sda1. Windows bootloaders create a lot of problems. Also can you tell me if your system has UEFI boot enabled or not? You can check this from bios menu. Let me know if you need any more help.


How to open Ubuntu in second screen via VirtualBox?

first show it in non-full screen mode. Drag this window to Your second screen. Then make it show in the full screen mode.
Options choose from View menu.


Use the Ubuntu Amazon EC2 AMI locator to find a suitable AMI and AKI


Where do I find my files?

Where -you- put them ;)

  My user-created documents from the various programs, in the Documents and Download folders. I cannot find them by search or poking around.

You only need to know the name of 1 of your files and the others will be near them though I would expect your files to be at

/home/$USER/

and in there inside a directory (Downloads/ or Documents/) but there is a command to have the system tell you:

locate {part of a file}

and it will list all found files since the last time a database where locate gets its information from was updated. If the files are not yet in there you can force an update first and then locate a file ...

sudo locatedb
{admin password}
locate {part of a file}

The same can be done from the file manager: there will be a magnifier. This search will search real time but from the place you start it so you can miss out on a file if it is outside your search scope.


Some packages can't be uninstalled if some dependencies are gone, or some configuration files have been deleted for some reason. You will end up with a package that is not completely installed nor completely uninstalled.

The solution, in this case, is to sudo apt-get install the package. If necessary, do sudo apt-get install --reinstall [package]. Missing files will be added to the system, and any missing dependencies installed on the fly. Then the package can be uninstalled completely in the usual way: sudo apt-get remove [package].

If apt-get refuses to re-install the package because of other (dependency) issues, you can only use apt-get to download the package and use dpkg directly to install it:

apt-get download mysql-common
sudo dpkg -i mysql-common_*.deb
sudo apt-get install -f

Sometimes you can skip the download because Apt tends to keep an archive of previously downloaded and installed packages in /var/cache/apt/archives/ so you can start directly from the 2nd step:

sudo dpkg -i /var/cache/apt/archives/mysql-common_*.deb


You may start any script from

/etc/rc.local

Better you create an upstart .conf file. These are stored in

/etc/init/*.conf

As an example, here are the contents of the file /etc/init/hostname.conf:

#
# This task is run on startup to set the system hostname from     /etc/hostname,
# falling back to "localhost" if that file is not readable or is empty     and
# no hostname has yet been set.

description     "set system hostname"

start on startup

task
exec hostname -b -F /etc/hostname

Another solution is using the crontab feature @reboot, find out more about crontab here


(by "change" I mean get rid of Win and permanently change to Ubuntu) while keeping all the data in my computer (Videos, Pictures and some movies) intact and accessible while using Ubuntu.

I would advice against this. If you want to keep your data and keep using a Windows formatted partition you will at some point need to fall back to Windows for maintenance of those partitions.

If you want to keep this data make a backup and format d:, e: etc into ext4 so it is native Linux and restore that backup to the Linux versions of these folders.

Otherwise I would suggest you shrink the windows partition, create an unallocated partition and install Ubuntu into that. You will then have a system with 2 operating system (or a dual boot) and Ubuntu will happily let you use the Windows partitions to store and retrieve data from. That can be used to clear out your Windows partitions by moving your data to Ubuntu and then reformating those partition to a Linux version (ext4).

  Like wordpad, excel, word, spreadsheet, database etc., you know for projects and stuff)

If you want to keep hanging onto Windows: go dual boot. WINE is not worth your time.

Wordpad you do not need in itself as it is just a text editor. We got plenty that do a better job. Excel(=spreadsheet) and Word can be done with LibreOffice Calc and LibreOffice Writer. It is sort of the same but also a bit different (and some of the basic things are done differently so it can be annoying if you are used to Word). But the learning curve is not that difficult. Database: MySQL is the leading database and available. If you are familiar with Access the learning curve is not too difficult.

Again: I would advice to go dual boot. Get the hang of Ubuntu, get used to the software in Ubuntu, move your files over to Ubuntu, shrink Windows as much as possible and if you ever reach a moment where you can say "hey I do not need Windows anymore" remove it either from grub or actually from your system.
Prepare for a disappointment but do your best to get the hang of Ubuntu. If you can not switch for whatever reason you can easily revert to Windows.

As an alternative you can also install Windows INSIDE Ubuntu using virtualization (with VMWare or VirtualBox). Works best with solid machine with lots of RAM though.


Just use xkill.

You may run it from a terminal window or from the Alt+F2 Unity HUD.

It will transform your mouse cursor into an × and whatever window you click next with the LEFT mouse button (1) will be killed. You abort this by clicking anywhere with the RIGHT mouse button (2).


vboxdrv is part of the package virtualbox-dkms

sudo apt-get update
sudo apt-get install --reinstall virtualbox-dkms

The --reinstall option will remove the package (but not the packages that depend on it), then re-install the package.


How to make Ubuntu not to lock the screen while running VMware in fullscreen?

I think installing Caffeine could help you. It's a nice application which blocks your PC from going to suspend/lock-screen/black-screen when selected applications are running.

You can install it like this (available for precise):

sudo add-apt-repository ppa:caffeine-developers/ppa

sudo apt-get update

sudo apt-get install caffeine

After that just run the program. You will have a little indicator of a coffee mug in your panel.

You can manually activate Caffeine by clicking on the indicator and selecting "Deactivate screensaver" or you go to Preferences and select the applications for which it should activate itself automatically. It's also great for video players or Flash videos.

You can also read all about it on OMG!ubuntu.


From reading this ubuntuforums post and my own experience, I believe you can safely restart the system at this point without ill effects.


Sorting files and directories differently in the file browser

It is not possible, in Nautilus, to have a different sorting for directories and folders in the same window. You can open two windows and maintain a different sorting order in each of the windows, though.


I don't think transmission should start with Ubuntu, but transmission-daemon does.

sudo apt-get remove transmission-gtk

should remove it.


init.d bind9 aborting: "loading configuration: address not available"

The following answer was submitted by the question's author who originally posted the answer as part of the question:

Solution:
Actionable clues were found at
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
[The opening of the post is a screed describing the underlying misunderstanding of a specific systemd configuration parameter.  Specifically, it notes the "network.target" argument in the *.service files does NOT mean what any normal human might expect the term "network.target" to mean. "loaded.bananas" would mean as much. So it's really not the bind9 distro managers' fault. It's not; they're normal humans, probably. Maybe?]
If you're really in a hurry, skip down to, "Cut the crap! How do I make sure that my service starts after the network is really online?" There, you'll read about what to do about the problem. To summarize for bind9 --
Edit:

vi /etc/systemd/system/multi-user.target.wants/bind9.service

replace:

After=network.target (See the FUBAR? No? Hence the screed.)

with:

After=network-online.target
Wants=network-online.target

Save the file.
Reboot:

init 6

log back in, verify bind9 has started as you'd like.

root@cygnus:/etc/bind# ps ajx | grep named
    1  1704  1704  1704 ?           -1 Ssl    121   0:01 /usr/sbin/named -f -u bind
or maybe:
root@draco:/etc/bind# ps ajx | grep named
    1  1258  1258  1258 ?           -1 Ssl    110   0:02 /usr/sbin/named -f -u bind -t /var/lib/named -c /etc/bind/named.conf

P.S.: Distro folks -- please review all of the *.service configs; this insidious "network.target" misinterpretation is probably not unique.
P.P.S.: Grr: "Creating the new tags 'listen-on named network.target' requires at least 300 reputation. Try something from the existing tags list instead."


Sound isn't working in Super Meat Boy (native 64bit)

The included libopenal binary is dodgy. I fixed the sound by replacing it with a link to the Ubuntu version like so:

sudo mv /usr/local/games/supermeatboy/amd64/libopenal.so.1{,BAK}
sudo ln -s /usr/lib/libopenal.so /usr/local/games/supermeatboy/amd64/libopenal.so.1

And that's that. Working sound.

This assumes you downloaded the deb and installed it. If you downloaded the tar or have done this another method, you can still do the above but you'll need to edit the paths to point to your installation. Or go and get the deb.


I'm assuming you are working on machine A. From there you can connect to machine B. And from B you can connect to machine C. That you want is to establish a connection directly from machine A to machine C. Here is my suggestion:

Create SSH connection from machine B to machine C and forward a local port on B (20022 - for example) to the remote SSH port on C (22).

machine-b~$ ssh machine-c -L 20022:127.0.0.1:22 -fTN

Or issue the command through SSH directly from machine A:

machine-a~$ ssh machine-b "ssh machine-c -L 20022:127.0.0.1:22 -fTN"

Create SSH connection from machine A to machine B and forward a local port on A (10022) to the remote port 20022 on B.

machine-a~$ ssh machine-b -L 10022:127.0.0.1:20022 -fTN

Create SSH connection or use SSHFS from A to its loopback iface (127.0.0.0/localhost) on port 10022 to connect to C.

machine-a~$ ssh -p 10022 <machine-c-user>@localhost
machine-a~$ sshfs -p 10022 <machine-c-user>@localhost:/target/dir/ /dest/dir/

According to this scenario below are presented few little bit more advanced ideas and explanations.

1. Setup machine B to connect to machine C by using ssh key pair (without passphrase), if this is not previously done. For this purpose use the following sequence:

SSH to machine B and generating RSA key pair, don't enter passphrase:

mkdir -p ~/.ssh/machine-c-key/
chmod 700 ~/.ssh
chmod 700 ~/.ssh/machine-c-key/

ssh-keygen -t rsa -b 4096 -f ~/.ssh/machine-c-key/id_rsa   # do not enter passphrase
chmod 600 ~/.ssh/machine-c-key/id_rsa

Transfer the id_rsa.pub key into the ~/.ssh/authorized_keys file on machine C, by using ssh-cipy-id. On machine B execute the command:

ssh-copy-id -i ~/.ssh/machine-c-key/id_rsa '<user>@<machine-c>' -p '22'

Now try logging into the machine C, with:

ssh -i ~/.ssh/machine-c-key/id_rsa -p '22' '<user>@<machine-c>'

If this works, if you wish, edit /etc/ssh/sshd_config and set: PasswordAuthentication no
Copy the generated key from machine B to machine A, we will use it later. On machine A use rsync in the following way (pay attention to the slashes /):

rsync -r machine-b:/home/<user>/.ssh/machine-c-key ~/.ssh/

Deal with the permissions (on machine A):

chown -R $(id -u):$(id -g) ~/.ssh
chmod 700 ~/.ssh/machine-c-key/
chmod 600 ~/.ssh/machine-c-key/id_rsa

2. Create ~/.ssh/config file on machine B, and setup port forwarding. Add these lines into the mentioned config file:

Host machine-c-port-fwd
        HostName 192.168.100.100
        IdentityFile ~/.ssh/machine-c-key/id_rsa
        User user
        Port 22
        LocalForward 20022 127.0.0.1:22

You should provide the actual IP-address or domain name of machine C and the actual user.
The Port 22 is the ssh port on machine C.
The directive RemoteForward 20022 127.0.0.1:22 means that the port 22 of remote loopback interface (on machine C) will be forwarded to port 20022 on  machine B.
Note if you already have configuration for Host machine-c it is a good idea to create a separate one for the port forwarding setup.

Now you should be able to connect to machine C from machine B by using of the command:

ssh machine-c-port-fwd

We can push this connection into the background by adding the options -fTN (reference). We could use also the tool autossh to be sure the connection will be kept alive for a long period of time (sudo apt install autossh - reference):

autossh machine-c-port-fwd -fTN

Use killall autossh to disable it :)

At this stage you should be able to connect to machine C from machine B through its loopback interface:

ssh -i ~/.ssh/machine-c-key/id_rsa -p '20022' '<machine-c-user>@localhost'

3. Establish connection from machine A to machine C (through the machine B). Perform the following steps on machine A:

Issue a command via SSH to machine B to establish a connection to machine C:

ssh machine-b "autossh machine-c-port-fwd -fTN"

Yo can add the following job in the user's Crontab (crontab -e) on the machine B to establish the port forwarding on system reboot:

@reboot sleep 15 && autossh machine-c-port-fwd -fTN

Establish SSH connection to machine B (from A) with port forwarding and push the connection into the background:

autossh machine-b -L 10022:127.0.0.1:20022 -fTN

In this way the local port 10022 (on machine A) will be forwarded (bind) to the remote port 20022 (on machine B) that is bind to port 22 on machine C. We can use the same port number (20022 - for example) on A and B...
Note that everywhere we are limit the port forwarding only to the loopback interface (127.0.0.1), but this could be done for all interfaces (0.0.0.0 or \*) or for certain interface (by using its IP).
You can create ~/.ssh/config file on machine A, analogical to the description in section 2, to simplify your commands in the future. Alco I would prefer to use SSH key based authentication...

Connect to machine C from machine A through its (on machine A) loopback interface:

ssh -i ~/.ssh/machine-c-key/id_rsa -p '10022' '<machine-c-user>@localhost'

Or use SSHFS in this way (note, sshfs can use the hosts from ~/.ssh/config):

sshfs -p 10022 <machine-c-user>@localhost:/target/dir/ /destination/dir/ -o IdentityFile=~/.ssh/machine-c-key/id_rsa

To automate the execution of the above three commands you can create a function as the follow in your ~/.bashrc file:

mount-machine-c() {
    ssh machine-b "autossh machine-c-port-fwd -fTN" && sleep 1
    autossh machine-b -L 10022:127.0.0.1:20022 -fTN
    sshfs -p 10022 <machine-c-user>@localhost:/target/dir/ /destination/dir/ -o IdentityFile=~/.ssh/machine-c-key/id_rsa
}

source ~/.bashrc and mount-machine-c will be available as shell command. You can add additional logic and arguments to test whether /destination/dir/ is already mounted, etc...


Setting up a static Ip on Ubuntu 16 server inside a VMWare Workstation

Change your network adapter settings to

Custom -> VMnet8 (NAT)

on vm

sudo nano /etc/network/interfaces

and insert

auto ens33
iface ens33 inet static
address 192.168.150.130
netmask 255.255.255.0
gateway 192.168.150.2
dns-nameservers 192.168.150.2

save it then

sudo service networking restart


Please check this article: The two clipboards in Linux

X clipboard

The X window system has its own clipboard. It is also known as a cutbuffer. Any text or content you mark by highlighting with the mouse cursor is automatically copied to this clipboard. This is known as the PRIMARY selection or X Window selection or just selection in X jargon. When you middle-click the mouse cursor at the destination location, this copied content is pasted there.

Window manager clipboard

In addition to the X clipboard, your window manager or desktop environment (like KDE or GNOME) typically maintains its own clipboard. It might even have a clipboard manager which can maintain a historical buffer of content copied to the clipboard.

Typically, text or content is copied to this clipboard when you highlight it and use the keyboard shortcut Ctrl+C or right-click with the mouse and choose Copy. Content from this clipboard is pasted when you use the keyboard shortcut Ctrl+V or right-click with the mouse and choose Paste.


There is an similar question here on ask ubuntu, you can try using the answers there muon package manager thinks that other package manager is open, and is not


how do you run a program in the terminal

Ubuntu, and other Linux systems, have a terminal that generally uses this syntax:

COMMAND [OPTIONS] [ARGUMENTS..]

For instance, copy, or cp. If you were to do this command:

cp -r folder1 Documents/folder2

Which would:

cp - the 'copy' command
-r - the recursive option, used on folders
folder1 Documents/folder2 - the arguments, which are the source folder, and the destination folder.

Simple ;-)

You can also autocomplete commands, using the Tab key. If you were to type:

apt-g

and then press Tab:

apt-get

it should autocomplete the command. In this case the command is VBoxManage. There are tutorials on it here and here. Here is one example:

VBoxManage startvm "Windows XP"

which would start the Windows XP virtual machine, if it existed.

To install libquantam, you should be able to use:

sudo apt-get install libquantum

if that does not work, try:
    sudo apt-get install libquantum-dev
    sudo apt-get install libquantum*


There are some relatively new tools and protocols that are designed to address this issue, but they require support in the computer's firmware, and that support is still fairly uncommon. You can see if your computer supports this feature by typing:

fwupdate -s

Unfortunately, the feature is rather poorly documented, so even if your computer supports it, I'm not 100% sure how it works. Based on the scant documentation, I think that you pass fwupdate the name of a firmware file (such as firmware.cap):

sudo fwupdate firmware.cap

I think that this tool is dependent on a matching EFI program, fwupx64.efi, which does the actual firmware update when you reboot.

If your system doesn't support this mechanism, then you may just need to follow whatever instructions the manufacturer provides. I have an old HP ProBook 6470b that was particularly obnoxious to update: I had to install Windows on a spare hard disk, in BIOS/CSM/legacy mode, and run the firmware update tool from there. Based on the page to which you linked, it looks like your HP may be from a similar era and may need a similar approach -- or some obscure procedure I never discovered.

I have seen systems that provide undocumented, but obvious, firmware update options in their setup utilities that will work when fed the right file extracted from a DOS or Windows .exe file provided by the manufacturer. I never discovered such an option on my HP 6470b, though.


In GIMP it's not letting me fill certain pixels

Two main reasons:

the pixels are not included in the selection
the pixels are outside the boundary of the active layer

Another (somewhat rarer) reason is that one of the layers is not in "Normal" mode, and the combination of your paint color with the colors in existing pixels on other layers doesn't change the visible result.


In my case it was yarn screwing up the binaries in the path.

I had the following line in my .profile:

PATH=/home/user/.yarn/bin:$PATH

The directory ~/.yarn/bin contains all the globally installed yarn binaries. Among those is also one called which and I think that's the one causing the problem.

So I changed the path in .profile to this:

PATH=$PATH:/home/user/.yarn/bin

This way yarn will not override any system binaries (like which). So far everything seems to work fine.


I used to have the same problem with my old computer. Since you are upgrading your OS, it can be argued that your system requires overall more power. Make sure that your PSU (power Supply) is able to handle your system. Did you make any recent changes to your hardware?


GUI doesn't start in Ubuntu server 16.04

If you installed the GUI properly, then it should be an error at the lightdm.

Simple restart the lightdm service with the following command line:

$ sudo service lightdm restart

If this keeps happening, you can try to reinstall your GUI or add a simple script at init.d that performs this action.


From Unity forums:

  Right now, the rendering backend is forced to OpenGL 2.1, until we work out some remaining issues with OpenGL core in the linux editor.

And:

  Unity has multiple rendering backends, even on the same platform. The OpenGL 2.1 is supposed to be removed in near future, superseded by "glcore", which handles features provided by modern OpenGL versions, like tessellation and compute shaders, thus the deprecated in the name. For now glcore has some serious issues so the editor is fixed to the legacy, but battle tested renderer.
  So no worries, it doesn't mean there's anything bad with your GPU or driver.

Update:
Since version 5.5.0b1, Unity now uses the OpenGL core rendering backend. This means that your development environment must support OpenGL core profile 3.2 or later.


You can try using this program Traffic monitor applet for GNOME

The only easy solutions is that each player has installed this applet, and have a look every week.

There'are professional solutions as a netflow analizers for accounting all of your traffic, but isn't easy solution. In all of cases you will need a server, and I think isn't a communal residence solution.


Ubuntu Installer cannot see windows os partition and sees my hard drive as blank?

I never heard of installing to an SD card before that's an interesting idea but it could also be your problem, I would recommend installing the .iso to a USB [also called a pendrive] with at least close to a gig of free space [it's easer if it's empty but that's not mandatory] you can find some software for doing this at pendrivelinux.com [YUMI is my favourite] also make sure if you have a 64bit computer you download the 64bit .iso . Some computers [mine included] do not work well with the 32bit version [64bit does not work at all on 32bit computers!]

Good Luck!!!!


Have you tried to use rdesktop directly?. It's the real program doing the talk to Citrix.

You can try it from the command line:

$ rdesktop -f computer-name-or-ip

Where -f is the switch for full screen. If it works, then there are other frontends for rdesktop in the repos, you could try them to see if some one behaves correctly, just search for rdp in the Software Centre. If it doesn't maybe the nxClient from NoMachine could work, it's a free (as beer) but closed source product.

I don't know any other implementation of rpd that works on linux. But maybe there is some nice java or flash client out there.


Adobe has now announced that they will remove Flash Player for Linux and make it available only for Google Chrome. Adobe agreement with Google to release a plugin dedicated to Chrome (available for both 32-bit and 64-bit) through Pepper Plugin API (PPAPI) with which they can benefit other browser. In the next few hours Flash Player for Linux will be removed from the official repositories of Adobe

Install Lightspark Instead.
Lightspark is an LGPLv3 licensed Flash player and browser plugin written in C++/C that runs on Linux. It aims to support Adobe's newer Flash formats and AVM2 virtual machine.

Try this on your terminal:

sudo add-apt-repository ppa:sparkers/daily
sudo apt-get update
sudo apt-get install lightspark browser-plugin-lightspark

or check the project page:
sourceforge.net/projects/lightspark/


Error when trying to install .sh file for USB wifi driver

Check mokutil --sb-state as Secure Boot needs to be disabled, then in terminal do
sudo apt install git dkms
git clone https://github.com/morrownr/8821cu.git
cd 8821cu
sudo ./install-driver.sh
Reboot


Create desktop shortcuts for media streams

There is something basic missing here, .m3u format itself is a list of shortcuts/URL's. No need going in such long way.

Right click on that link and save as copy of A03H.mp3.m3u file.

If the streaming URL doesn't have known extension. Copy its URL, paste it in a text file and save it with .m3u file extension.

Just click on it, and it will start straightaway playing with default player.

If you want more control like play with different player than default, Use launchers (.desktop files)

It is a text file, here format info: How do I add a custom launcher?
Change important line similar to: Exec=<player> <streaming-URL>

For default player: Exec=xdg-open <streaming-URL>

References:

Wikipedia: M3U
How do I add a custom launcher?
man xdg-open


Replace Win7 w/ Win8 after setup w/ Ubuntu 13.10 dual boot

Install windows 8 in your C drive. Download   Ubuntu boot repair disk.Make a liveCd or live USB(you can do this from windows using softwares like unetbootin, or you can make a liveUSB from Ubuntu before installing windows.)

Restart and boot into liveUSB or live CD, and do a recommended repair to recover your grub and Ubuntu.

Usually everything should be ok by this procedure


Is it possible that running Ubuntu on my Windows computer from a USB stick could cause damage to my computer?

No, nothing will be modified on the Windows side unless you as a user perform an action to do so.


music sound quality is bad under heavy cpu load

Icrease priority
We are able to increase the priority of the pulseaudio server (at the cost of other applications) by editing /etc/pulse/daemon.conf to values like e.g.:
high-priority = yes
rlimit-nice = 31      # maximum 31
nice-level = -11      # -11 by default

realtime-scheduling = yes
rlimit-rtprio = 9     # range from 1 to 99
realtime-priority = 9 # default  5

Be careful with a priority set too high as this may render your system unresponsive.

Change sampling method
It may already be sufficient to change the resampling method of pulseaudio in the daemon.conf:
resample-method = speex-float-1

to a value that consumes less CPU power (e.g. src-sinc-medium-quality, or different values for speex-float).


Output channel for audio resets after every reboot

You can have pulse audio stay on the last selected output source no matter what:

sudo -H gedit /etc/pulse/default.pa

Find this line:

load-module module-switch-on-port-available

and change it to:

# load-module module-switch-on-port-available

An additional step is needed as listed in:

Sound configuration is lost on restart

We need to add the line:

set-sink-port <name|index>  analog-output-headphones

The name or index of the active sink, and available ports can be displayed with pactl list sinks. The way I spelled analog-output-lineout may be incorrect.

Save the file and exit.

Restart pulse audio with:

pulseaudio -k

In your sound settings select "Line Out" and it will always stay connected even if you physically unplug it.


Unfortunately Java Web Start is no longer included since Java 11 SE. Excerpt from Java Client Road Map (Update 2018-03-05):

  Java Web Start has become a migration path for developers as browser
  vendors continued to restrict plugin support over the past several
  years.

  Since it is predominantly a desktop technology,Web Start has some
  limitations. In particular, it requires a standalone JRE to be
  installed and maintained on the user’s desktop.

  However, over the past decade,vendors of the most popular desktop
  operating systems have emphatically pushed for applications on their
  platforms to be delivered bundled with integrated, sandboxed runtimes.
  Increasingly they require desktop applications to be distributed
  through their own private "app stores".

  The notion of an application being distributed separately from a
  standalone JRE is,therefore,quickly fading.

  Consequently:

  Oracle will extend support for Web Start in Java SE 8 from March, 2019, through at least March 2025.
  Oracle products that have dependencies on Web Start will remain on Java SE 8 and continue with the support timelines as indicated by
  those products.
  Oracle will not include Java Web Start in Java SE 11(18.9LTS)and later.
  Oracle will begin encouraging application developers and users to transition away from Java Web Start and encourage non-commercial
  consumers to remove any unused or non-supported Oracle JRE
  installations from their desktops.
  Developers who deploy desktop applications to individual consumers (eg, games, personal banking, or other B2C applications) will need to
  transition to other deployment technologies such as the jlink and/or
  third party packaging and deployment solutions before the end of 2020.
  Application developers who target applications for internal data processing, business, commercial, or production purposes, will either
  need to seek commercial license with Oracle, or transition to other
  deployment technologies by January 2019.

Therefore, if you really need Java Web Start you need to switch to Java 8.


Synfig Studio

You can use Synfig Studio to make the text animation video.

sudo apt-get install synfig


WakeOnLan not working on Asus M4A79XTD EVO with Kubuntu 12.04 64bit

The ethernet LED lights should not turn off completely after the shutdown. If they are then your network card is turned off and you will not be able to wake the machine.

Make sure you paste this line before the exit 0 command of /etc/rc.local (and after the #!.. line):

ethtool -s eth0 wol g

Then wake it up with:

wakeonlan 00:11:22:33:44:55

Some cards need the following:

sudo sh -c "echo enabled > /sys/class/net/eth0/device/power/wakeup"

source: https://wiki.archlinux.org/index.php/Wake-on-LAN


For memory at least, this can be done in the settings for the VM - in 4.3.10 atleast, this can be found under 'System':

You may also want to increase the video memory:

For the hard disk, if you chose 'Dynamically Allocated' it should automatically increase its size up to the fixed size you gave it when you first set up the VM. You may be able to resize it with modifyhd or something else - see here or here. A bit more information on that can be found here. You can view info on the VM's storage under 'Storage' in settings:


Installation: file not found but it exists

A possible solution is that mssEnc.sh has encoding problem.
Converted the script's encoding by dos2unix.

sudo apt-get install dos2unix -y
dos2unix mssEnc.sh


Why is this `cp` command trying to remove files?

@rafalcieslak
Thank you for your help.I had searched for the wrong alias(cp=rm -i) only in bashrc & it was not there. following your advice I tried alias on CLI & there it was the misfit.
Unaliasing it did it.


I have been fighting with the newer version of gedit 3.18.3 for some time now. Other forum answers have been to revert to version 3.10. My solution has been to use Notepadqq:
Applications->System Tools->Software
or
Show Applications -> Software

Open the Software app and search for Notepadqq
To completely remove gedit go to terminal and enter the following:
sudo apt autoremove --purge gedit

Now that you have an application that solves your immediate problem you can take your time and find a text editor which may even be better. Honestly, however, don't spend more time with gedit. The online documentation is obsolete. Also there appears to be a different GUI depending on which OS you are using, so everyone says something different. Personally I am using Ubuntu Gnome 16.04 and my gedit version is pretty much usless unless you just want to type text and nothing else.
Once you have decided on your final text editor. You need to open Files (Nautilus), right click any .txt file, select properties, then "open with" and select your new default text editor.


How to launch the terminal automatically on startup?

If you are using Ubuntu open "Startup applications".
Open the dash and search for "Startup applications".
Click on "Add" and add a gnome-terminal entry.

Name : Terminal
Command : gnome-termnial

See here for more information on how to launch applications on Ubuntu startup.


Now that Mesa 9.2 stable is a out, is there a way to upgrade to it in Ubuntu 13.04 without using unstable ppas?

This instructions are meant to read twice before doing anything.

You can build mesa yourself, of course this will require lots of wits and brace yourself in case something goes wrong.

For this just download the mesa sources (you must make sure that the deb-src entries in your sources.list are enabled):

wget https://launchpad.net/ubuntu/+archive/primary/+files/mesa_9.2.orig.tar.gz https://launchpad.net/ubuntu/+archive/primary/+files/mesa_9.2-1ubuntu1.diff.gz https://launchpad.net/ubuntu/+archive/primary/+files/mesa_9.2-1ubuntu1.dsc

Now we will need the building dependencies:

sudo apt-get build-dep mesa

Since the package is already debianized, it will give you a scapegoat to revert back any change made by the installation. Now we should extract our sources:

dpkg-source -x mesa_9.2-1ubuntu1.dsc
cd mesa-9.2/
dpkg-buildpackage

Now, we can build with dpkg-buildpackage. The process will leave you with a bunch of .deb files in the parent directory. You should install the ones that you need. Done.

If in any case you hit:

  dpkg-checkbuilddeps: Unmet build dependencies: llvm-3.3-dev (>= 1:3.3-4) libelf-dev
  dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting

This means that your libraries are too old to build the package. You can download the file and install it from saucy at your own risk.

TL;dr: having the bleeding edge on software is nice, but it has it risk. I would wait until they get released in Saucy. (I'm using Debian and the package is already on experimental, so I just have to chill out for a bit)


With the ubuntu bootable USB select the option Try ubuntu without installation. Then I believe you can access files of windows OS from there, now attach other USB stick/portable hard drive and copy all your important files.


In 11.04, open your keyboard preferences and select the "Mouse Keys" tab. Make sure that "Pointer can be controlled using the keypad" is unselected.


System restore/system rollback - possible in my scenario?

There's no back-up or system restoration process set up in Ubuntu out of the box. If you didn't set one up yourself there's no back-up.

If you selected ext4, the default file system type, for the user home directory during Ubuntu's installation (or had Ubuntu partition the drive for you) any change to Firefox’ on-disk password store was overwritten in place. On a hard disk drive that means the previous data is gone and there's no significant chance for recovery. On a solid state drive there's a slim chance that a well equipped data recovery lab may be able to extract the old data from the recycled storage blocks.


Disable KDE Chat application and system tray icon

If chat is starting at login, you can open the settings window from the contacts list, go to the "General" section, and uncheck "Restore last presence on login".

That doesn't disable the instant messaging icon in the panel (it just shows "offline" when it's not running).  To get rid of the icon, right-click an empty space in the system tray (e.g. between icons) and choose "System Tray Settings".  Go to the "Display" section and uncheck "Instant Messaging Presence".


There was not an Ubuntu based solution. The problem came from a virus in the computer. The only solution was to use some tools from the antivirus supplier that didn't perform exactly as needed. Not a good solution but a solution.


No wifi with xubuntu 12.04 on Dell Inspiron 8600

Your device does not require b43legacy. Please get a temporary wired ethernet or other internet connection, open a terminal and do:

sudo apt-get install linux-firmware-nonfree

Detach the ethernet, reboot and let us hear your report.


Get back to gnome/Enlightenment from the command line

You should be able to restart Enlightenment by opening a command line and running the following command:

/usr/bin/enlightenment_start &


Dual boot with windows 7 no boot options

Sounds like you need a boot loader or manager. I have always screwed up dual boot, and have had great success with rEFInd. http://www.rodsbooks.com/refind/index.html


I can't use snap packages, even if installed

[SOLUTION to QUESTION1]

There is some kind of bug in I-do-not-know-where.
To temporally solve this, I had to copy programname.desktop from /snap/programname/current/programname.desktop to /usr/share/applications (with sudo) and then all was fixed: programname shows in the gnome menus.

See more here

[SOLUTION to QUESTION2]

The snap binary and desktop directories will not automatically be added to your environment variables. In order to solve this, I added the following line to /etc/zsh/zprofile:

emulate sh -c 'source /etc/profile'

See more here


If you modified or deleted a config file in your home folder. You could do:

backup old config files: mkdir /home/(oldUser)/hidden_config && cp /home/(oldUser)/.?* /home/(oldUser)/hidden_config

copy config files from new user:
 cp /home/(newUser)/.?* /home/(olduser)/


How do I remove any Ubuntu brand and trademark from my Ubuntu install?

Its not clear whether you intend to distribute the unbranded distro, so apologies if this isn't your intention.

A new distribution with the branding removed would also need to recompile all the binaries from the source code.

https://www.ubuntu.com/legal/terms-and-policies/intellectual-property-policy

If you are going to use internally then it's just a job to locate all the text/image references but that isn't simple. All programs handle their text resources in various individual ways, so you aren't going to find it easy to identify all the branding to remove it.

Best to compile a list of everything that you consider 'brand', identify the underlying program delivering it and then you'll just need to start going through the code to find where it gets it from.

good luck


Dual boot: Grub minimal bash-like only after rebooting

Check your boot setup with grub-customizer. Maybe grub console is a default boot entry.


It looks like you have removed localhost from /etc/hosts, don't do that, instead just add whatever additional name you need at the end of the line.

So have:

127.0.0.1 localhost wp.dev

It's important for your system to have "localhost" resolve correctly (whether this is needed in /etc/hosts I don't know, but I'd assume it should be left in place).

Secondly, don't use .dev anymore.  It's now been registered as an official TLD on the internet, so there is now the potential for name clashes between local and external sites.  Using localdomain is an option, or using some domain you own is another (even if just using it locally and not serving it from any DNS server, it'll still avoid collisions).

The error message you're actually getting in Chrome doesn't seem to be related to the above problems.  Instead it looks like there isn't a web server responding at that address.  To verify check it by typing 127.0.0.1 into Chrome.


Lock screen will not unlock in Ubuntu 20.04

I followed @Nmath advice to systematically go over everything I've tried so far to provide better background info, and while I was checking that, I remembered I had installed a bunch of new Gnome extensions when I upgraded to 20.04. I know they are notorious for causing problems, so I decided to check if they were the cause of the problem. Sure enough, disabling them solved the issue. After a bit more testing I found the one that was causing the issue. It's the Time++ Gnome extension. I will be filling a bug report with the developer shortly.
TLDR; disabling the Time++ Gnome extension solved the issue.


When you get that garbled screen, do this:

Switch back and forth to the tty7 (ctrl+alt+F1 and then ctrl+alt+F7) fixes the display.

Then you can install or try Ubuntu successfully.

Cheers, Al


yeah you can see what you have installed , open software-center > history > Updates will gives the information of what you have installed through the updates .


Perhaps you could hit Alt+Ctrl+F3, which gives you a console. Then log in, and then do:

sudo apt-get update
sudo apt-get dist-upgrade
sudo dpkg --configure -a

This could help if the installation is stuck somewhere.


You could use the packages provided by liquorix.net.


To get the module to load automatically on boot, it is not necessary to amend dkms. Please open a terminal and do:

sudo -i
modprobe wl
depmod -a
echo wl  >>  /etc/modules
exit

You should be all set.


From the comments...

Looks like you've got a jammed key on your keyboard, or a defective keyboard. If this is not a laptop, unplug your keyboard and see if the problem goes away. Otherwise, look closely at your keyboard for a jammed key.

response: yeah, its my keyboard broken. the DELETE key always pressed


Installation Failure on MacBook Pro (2Ghz/Core i7)

Use the 64 bit Mac iso.  Here's an explanation of what is different about it.


Upgraded to 13.10, screen regularly flashes between red, green, blue, greys after boot. No X11 or Unity

Article explaining the issue and solution: http://neogregious.blogspot.com/2013/05/korean-ips-monitors-and-nvidia-under.html

Here is a short summary of the solution(credit goes to Greg Fawcett):

Create an xorg conf:

sudo nvidia-xconfig

Now you need to edit the new xorg.conf file:

sudo vi /etc/X11/xorg.conf

Find the section below, and add the - Option "IgnoreEDIDChecksum" "DFP" - line :

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "IgnoreEDIDChecksum" "DFP"
EndSection

Save the file, and reboot.


Remove ubuntu one from messaging indicator

If instead of blacklisting the menu item you completely want to get rid of Ubuntu One, remove the following packages:

sudo apt-get purge ubuntuone-client python-ubuntuone-client python-ubuntuone-storageprotocol

After logging out and in again, Ubuntu One (and the menu item) should be gone.


Missing Canonical partners and independent repositories in ubuntu 14.04

Open a terminal (Ctrl+Alt+T) then run:

sudo gedit /etc/apt/sources.list

Replace all the text with this:

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ trusty universe
# deb-src http://archive.ubuntu.com/ubuntu/ trusty universe
deb http://archive.ubuntu.com/ubuntu/ trusty-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ trusty multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
# deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
# deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
# deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
# deb-src http://extras.ubuntu.com/ubuntu trusty main

Save, close gedit, then run:

sudo apt-get update


Nautilus fonts messed up each time after reboot

Have you tried disabling auto-login while booting? This seemed to work for someone in the link you've given.


Failure during ssl handshake while sending mail using openssl

You are using the openssl s_client program which is for testing purposes only. The capital R letter has a special meaning in openssl s_client (see man s_client), it triggers a renegotiation as you can see.

Solution: SMTP accepts lowercase commands too, so use lowercase r as in:

rcpt to: <some@example.com>

Alternative solution: use GnuTLS instead of OpenSSL as a SSL/TLS client:

gnutls-cli -p 465 smtp.gmail.com


xkeyboard-config: command not found and can't install it either

The source package named xkeyboard-config is available in all Ubuntu releases:

1. see its page on packages.ubuntu.com.
2. see output of locally ran rmadison xkeyboard-config:

$ rmadison xkeyboard-config
 xkeyboard-config | 2.5-1ubuntu1            | precise         | source
 xkeyboard-config | 2.5-1ubuntu1.5          | precise-updates | source
 xkeyboard-config | 2.10.1-1ubuntu1         | trusty          | source
 xkeyboard-config | 2.16-1ubuntu1           | xenial          | source
 xkeyboard-config | 2.23.1-1ubuntu1         | bionic          | source
 xkeyboard-config | 2.23.1-1ubuntu1         | cosmic          | source
 xkeyboard-config | 2.23.1-1ubuntu1.18.04.1 | bionic-proposed | source
 xkeyboard-config | 2.23.1-1ubuntu1.18.10.1 | cosmic-updates  | source
 xkeyboard-config | 2.23.1-1ubuntu1.18.10.1 | disco           | source

The following binary packages are built from this source package:

  xkb-data
        X Keyboard Extension (XKB) configuration data
  xkb-data-i18n
        X Keyboard Extension (XKB) configuration data translations
  xkb-data-udeb
        X Keyboard Extension (XKB) configuration data

but they do not contain executables, only configuration data.

About your original problem with xkbcomp - it is available from x11-xkb-utils package. Install it with:

sudo apt-get install x11-xkb-utils


How to repair Grub if yannubuntu doesn't exist?

In my case i forgot to connect to the internet. After connecting to the wifi it worked.


How to prevent Ubuntu Server sleep/hibernation

I understand this is an old post, but I had this same problem and had a hard time finding a decent answer.

My laptop with Ubuntu Server would go into a white screen saver, and soon after everything would lose connection to the server. As soon as I exited the screen saver with the keyboard on the laptop, everything was able to once again connect. The acpi=off, setterm -blank 0, and other options described on similar questions never worked, until I found a working answer from the Unix and Linux SE.

After this solution, my laptop still goes to the white screen saver, however I no longer lose connection to any of the services running on it (SSH, SFTP, HTTP).

This command disables suspend:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

and this command brings it back:

sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target


A .java file is a Java source code file, which is a plain text document. It is not executable.

To run it, you would have to install a JDK (Java Development Kit) like the openjdk-8-jdk package, if you don't have one already:

sudo apt-get install openjdk-8-jdk

After that, you can use the Java compiler javac to compile the source code BNCApplet.java file to a byte code .class file:

javac BNCApplet.java

After that, you can run the compiled BNCApplet.class file using the java command, but without the .class suffix:

java BNCApplet

Further reads about how to compile and run .java files on Ubuntu:

How to run a Java program in Ubuntu

How to compile and run .java files in ubuntu?

I'm not 100% sure, but this way Applets should run in a separate Applet Viewer window. To be able to run Java Applets in your browser if you use an OpenJDK Java implementation, you need the additional IcedTea package that provides a browser plug-in for Firefox-like (NPAPI) browsers. Oracle Java already includes this plug-in.

To install the plug-in for OpenJDK 8, run:

sudo apt-get install icedtea-8-plugin


When you originally installed Ubuntu 19.04, the download page offered you two choices: 18.04 LTS and 19.04.

Both choices were clearly explained, including that 19.04 was supported for only nine months.
On an unmodified, stock Ubuntu system, the Update Notifier applet nags the user to release-upgrade when the next release of Ubuntu becomes available. Some folks do not remember disabling (or haywiring around) this useful feature. Update Notifier is well tested in every supported release of Ubuntu -- it works.

Upgrades from 19.04 to 19.10 were available October 2019 - January 2020. Folks who use Standard (non-LTS) releases of Ubuntu mark their calendars every April and October.

You waited too long: We do not provide support for release-upgrading from one EOL release of Ubuntu to another EOL release of Ubuntu.
The only supported method available to you is to back up your data and clean-install a supported release of Ubuntu.
You can do anything unsupported that you wish; it's your system. But we obviously won't provide support for it.


no graphics driver for 4650G with 20.04 LTS

When installing Proxmox 6.3 on an AMD 4650G CPU/APU and having no other GPU installed while running in UEFI-mode, this helped me:
Just select your the boot-option in the grub-menu (do not hit enter yet), hit e to edit the boot-settings and add amdgpu.exp_hw_support=1 at the end of the linux-line. When that is done, press F10 to progress. After that I was able to progress with my system, might work for Ubuntu too.


How do I set a default Chrome Person (user) to open URLs as?

Ubuntu Unity Desktop uses *.desktop files set the default programs for file types. In order to achieve what you desire you can create a custom *.desktop file for google-chrome just for your user.

This will take a couple of steps:

1. Verify Default Program

Verify that google-chrome.desktop is your default program for opening links:

In Terminal enter: cat ~/.local/share/applications/mimeapps.list.

  Output should be something like this:

    [Default Applications]
    text/html=google-chrome.desktop
    x-scheme-handler/http=google-chrome.desktop
    x-scheme-handler/https=google-chrome.desktop
    x-scheme-handler/about=google-chrome.desktop
    x-scheme-handler/unknown=google-chrome.desktop
    x-scheme-handler/mailto=google-chrome.desktop
    text/x-c++src=gedit.desktop

    [Added Associations]
    text/x-c++src=gedit.desktop;

If like in the example google-chrome.desktop is handling the web links then proceed as described. If not you need to set the default program first.

2. Create Custom *.desktop File

Creating a custom google-chrome.desktop file at ~/.local/share/applications/ based on the original /usr/share/applications/google-chrome.desktop file.

In Terminal enter:

  cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications/

Doing this you will only change the settings for your user and not all users in the machine.
If a *.desktop file name from /usr/share/applications/ is duplicated at ~/.local/share/applications/ then the local one takes priority.

3. Edit new *.desktop file

This file will contain many lines for names of options in different languages. We will need to edit all lines starting with Exec=.

Example from my computer at: /usr/share/applications/google-chrome.desktop

  Exec=/usr/bin/google-chrome-stable %U

  Exec=/usr/bin/google-chrome-stable

  Exec=/usr/bin/google-chrome-stable --incognito

In the new file at ~/.local/share/applications/ change these lines by adding the option --profile-directory=Default.

  Exec=/usr/bin/google-chrome-stable --profile-directory=Default %U

  Exec=/usr/bin/google-chrome-stable --profile-directory=Default

  Exec=/usr/bin/google-chrome-stable --profile-directory=Default --incognito

This will make it so every time you open a link it will be opened by the Default user.

Different User

The option --profile-directory= can be set to the name of anyone folder at ~/.config/google-chrome/ that holds user configuration. Examples:

Default
Profile 1
Profile 2
etc...

Example:

  Exec=/usr/bin/google-chrome-stable --profile-directory=Profile\ 1 %U

  Exec=/usr/bin/google-chrome-stable --profile-directory=Profile\ 1

  Exec=/usr/bin/google-chrome-stable --profile-directory=Profile\ 1 --incognito

Observe the backslash\ in Profile\ 1 to indicate the folder name includes a space.


For better performance should I install 32-bit or 64-bit?

There are no big performance differences between 64 bit and 32 bit in Ubuntu. I tried both for years now. Let me point to the actual PROS and CONS for the 64 bit since you have been in the 32 bit already:

64 bit PROS:

Support for more than 4 GB RAM (without any kernel modifications, 32 bit PAE support, etc..) The sucker supports more than 1 TB.
Gives performance boosts ONLY if you are doing some very intense work that needs more than 4 GB Ram. Am not talking about playing, watching videos or listening to music. Am talking about server with a million users, rendering shrek 7 christmas edition or something very big like making a 3D version of the galaxy.... from scratch.

64 bit CONS:

In the past (2012 or less) a whole bunch of programs had issues. For example flash (even the 64 bit version) had some glitches and more. If you thought you had issues with 32 Bit on those times, changing to 64 bit increased your chances of having more. For me it was a nightmare on PC street. This obviously changed and it changed very quickly. Since 13.04 I would say, 64 bit got much more stable, easier to work with and it was very hard to get a 64 bit problem. On 13.10 I did not have any issues whatsoever. Now on 14.04 it is more recommend than ever before to move to 64 bit but only if you have the following hardware:

Have a PC with 4 GB or more of RAM
Have a motherboard that supports 64 bit (Most motherboards after around 2005 do)
Have a CPU that supports 64 bit (Most CPUs after around 2004 do)

Recommended for the average user that has 4 GB or RAM or more and hardware that supports 64 bit architecture. There are many issues still in the 32 bit that will get even bigger in the 64 bit one. Apart from that 64 bit is still very new (Even if it came out around 2000) but the majority of the programs made (Even today) are mostly for 32 bit.. Nowadays, 64 bit is the best move. When I wrote this answer it was January 2011. We are now in April 2014 and I can really say that 64 bit is much better than 32 bit in terms of performance, stability and more. Of course, the need for a program to use even close to 4 GB is not yet a big problem and the real need to use more than that applies to intense apps.

Test out 32 bit if you want but if you have a computer with enough RAM, CPU and a good motherboard (From 2005+) then I would really recommend 64 bit for you.

Hope to have helped.


Script to automatically write file upon extracting some folder

inotify-tools package contains command-line tools to monitor file modification messages from kernel's inotify module. You can use inotifywait to monitor some file for changes

inotifywait filename.ext

the script will block at this line and will only continue when the file is modified.

Just a general idea... the script would look something like

#!/bin/bash
while [ 1 ]
do
    inotifywait ~/Desktop/filename.ext
    echo "Hello" > ~/Desktop/a.cpp
done


Ubuntu 11.10 Random reboots how to find root cause?

Try looking in the system log /var/log/syslog


query last LTS version with Launchpad API

I'm afraid Launchpad doesn't really know about this itself in a straightforward machine-readable way, so it can't export that information right now.  Your best bet is probably going to be something like filtering on the description, although I believe that most scripts that need to know this right now simply hardcode the list since it changes infrequently.

Also, please don't use "edge", as it's long-obsolete and exists only for compatibility.  Use "production" instead.


Can I boot Ubuntu from external drive if Windows is hibernated?

No, the Linux live system will not change anything on the PCs hard disk (unless you tell it to).

I do it frequently to use a company laptop for private purpose.

Only thing is that some windows drivers on DELL Laptops have problems when Linux was booted in between. The display might  flicker a little afterwards.


Flickering with Ubuntu 16.04 on Mid-2015 MacBook Pro Retina 15-inch

Try addingacpi_osi= to boot parameters. Installing the package xbacklight might also help


Laptop boots at low color depth, close lid and reopen and voila--normal?

This seems to happen to me on the identical machine when booting in UEFI mode. A temporary workaround is to replace grub-efi with grub-pc and use refit or refind to boot. Of course, that is subideal, as the boot process takes much longer.

I suspect that this needs to be fixed in the i915 kernel code.


I can't change audio/volume preferences?

Problem is that pulseaudio daemon is not running.

Go to Startup Applications

Click on Add.
Click on Browse and select /usr/bin/pulseaudio and click on Add.

Finally logout and then login the system.


sudo apt-get clean
it will clean the repository
or
you dpkg is installing another package in Ubuntu software center or in another terminal. or you break any package during installing.
check that and run
sudo apt-get update


Where is it best to install a Windows program in the Ubuntu Operating system?

I would advice against this.

When using another operating system use the software included in that operating system. In case of Microsoft Office there is a perfect solution: Libre Office. It has close to 100% compatibility and supports xls(x) and doc(x). It is different yes and will need you to relearn using office (since LO does things a bit different).

  if there is a spot, which is best to use for installing programs, made for windows.

Software from 3rd parties should be installed in /opt/ but this is for Linux software. There is no place to install Windows software in Ubuntu/Linux since that software is not made for it. We do not have a Windows runtime environment in Linux itself.

If you need to use Windows software you can do this using a tool called WINE. It is an attempt to mimic Windows but it is difficult to set up, hard to get working perfectly. It will make you cry if you want to use it for anything than the basic tools. Experience is important when dealing with WINE.

If you need Windows software and can not do without use Windows for it. Optinally you can do this with a dual boot (Windows side by side with Ubuntu) or with virtualization (Windows installed in virtualbox installed in Ubuntu).

But if I was you I would start with Libreoffice. You can even install it in Windows, get used to it and then decide to fully switch to Ubuntu. Same goes for other software: most of our software also is available on Windows.


Windows users are usually stuck with the flexibility of IDM when we switch to linux.
When I moved to Linux I have to find alternatives.

youtube-dl (Its available in the command line- $ man youtube-dl to see usage)
VideoDownloadHelper. --Firefox addon
4kdownloader. I use this everyday. Download playlist and individual files, extract only the audio as well. Its paid app but the trick is, look for an older version and install. It works so well.
I am using version 4.2.0


If you want to delete all the recently used items entries in a defined range (for instance: last hour, last day, etc), or just disable this feature you can use the Privacy application (installed by default on 12.04).

If you only want to delete specific entries i recommend you to use Activity Journal (available in Software Center). Just left click on the entry you want and choose "Delete".


Can I use Ubuntu to unlock files locked by a Windows Trojan ( “paytordmdb”)?

Yes, any malicious code written for Windows will have no effect on anything with a Linux Header and Kernel.  When you write code, you must write the code for the platform its intended.  Since the Trojan is meant for Windows, the code wont even activate in a Linux environment.  I would also like to recommend that randomly and blindly downloading anything is dangerous and reckless on a Windows Computer.  If you do download something and it's something your not familiar with, put it in a Virtual Machine and run it.


Just try restarting snap service.

sudo systemctl restart snapd.service

Most likely it will resolve if updating snapd doesn't work


limits.conf file Changing Max Memory Option

I'm going to assume that you're talking about bash's ulimit. From the manual:

  -m
  The maximum resident set size (many systems do not honor this limit).

Of the entries in your question, rss is also max resident set size.


sdb and sdc only show at 238G. These are 256G drives

256×10^9÷1024^3=238,418579102

Why are hard drives never as large as advertised?

lsblk's representation is correct. Posting text output of commands like lsblk as text or code is much more appreciated by the  way.

  There are two /boot's per RAID drive. One is /boot/EFI. When I boot my device I'm presented with 6-7 options for booting. Should be just 2-3.

I'm not sure about your setup, a dm software raid should represent both disks as one to processes like update-grub, but it reads like another grub.cfg is also picked up, a screenshot or photo of the grub menu might help clarifying things. You could add GRUB_DISABLE_OS_PROBER=true to /etc/default/grub to not look for other operating systems bootloaders and run update-grub to see if that helps.

  My boot partition is full and i'm getting errors.

Which errors exactly? No it's not always obvious and there may be the cause of you other problems buried deep down there.

Your setup looks complex (dm-raid, efi and boot partitions, LVM on LUKS with nested cryptswap), are you sure do need all of this and that you want to main all of the possible breakage (distribution upgrades)? My guess is you checked all of the boxes in the installer after setting up dm-raid before, not knowing the implications and also possibly setting up encryption twice (LUKS + eCryptfs).

Instead of dm-raid you could use LVM or btrfs' RAID functionality, though I have been unable to get a working system using the desktop install media for the past few hours testing LVM and btrfs individually several times.

There is one advice I can give: You won't need more than 100MB¹ for the UEFI partition. You could create a new FAT16 partition mark it as boot and esp in gparted and copy the data from the backup of the old partition onto the new one. This will gain you 412 MB more space for the boot partition. Since 488 MB seems to be the default for all LVM setups on Ubuntu you should check why the partition got filled up, usually old kernels are removed automatically on recent releases and you can also remove them with apt autoremove.

Fedora's LVM setup configures 200MB for EFI and 500MB for /boot.


There are two separate fixes for firefox and chrome.
First you need to install ghex

sudo apt-get install ghex

For chrome:

sudo ghex /usr/lib/flashplugin-installer/libflashplayer.so

For firefox

sudo ghex /usr/lib/firefox-addons/plugins/libflashplayer.so

The next is the same for both

Now search for _NET_ACTIVE_WINDOW and replace it with some other string of the same length, e.g. __ET_ACTIVE_WINDOW.  Restart enjoy!

For chrome:
Disable /libpepflashplayer.so
 in chrome://plugins/


I strongly recommend to use a small script to make your backup instead. /run location is not mostly used by the system and cannot be considered as a real path location. Here a sample of the backup script:

#!/bin/bash
TMP=$(mktemp -d)
mount -t cifs //192.168.1.56/share/LUCA/backups/ "$TMP" -o username=samba_login,password=samba_password
tar cpzvf "$TMP"/scripts.tgz /home/luca/Scripts/
umount "$TMP"
rmdir $TMP

Paste this content in a file by example /usr/local/bin/my_backup and add execution permission with chmod +x /usr/local/bin/my_backup.

Finally create a crontab file by exemple in /etc/cron.d/my_backup and paste the following content.

00 21 * * *   root    /usr/local/bin/my_backup

You might need to install extra tools named cifs with sudo apt install cifs-utils.


Wifi Problems with Acer Aspire E15 575G Ubuntu 16.04

I would disable the power management for wifi with this in terminal
sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Reboot

I would agree with CelticWarrior about disabling TKIP if disabling the power management doesn't completely fix the issue


How to open shared files from windows connected pc on LAN

There's help for this at the following location:

https://help.ubuntu.com/stable/ubuntu-help/nautilus-connect.html

In order to connect to a network share, you would open Nautilus ("Files" on the launcher), and click "Connect to Server" in the left pane. When prompted, enter the samba share protocol followed by the IP address of the computer (or FQDN...):

smb://192.168.1.16 (for example)

Hope this helps.


Windows dual boot with Ubuntu as native OS

Well,it is generally advised to Install windows first since GRUB detects Windows. If you install windows later, the windows boot manager doesn't detect Ubuntu and automatically starts Ubuntu. But there is a solution.

Don't erase the Ubuntu partition.
Create another partition for windows.
Install windows.
Burn an iso of Ubuntu on a usb stick or a DVD.
After Installing windows boot ubuntu live session from the USB.

Boot from the live CD. Open the terminal

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

-Press Enter - Then type:

sudo apt-get install -y boot-repair && boot-repair

Then open boot repair. Perform recommended repairs. This Will solve the problem and Show you Grub menu with the option of choosing either windows or Ubuntu. If that doesn't solve it(Which I highly doubt that it wouldn't solve your problem), paste the link provided from the boot repair here.


How can I import my old OS on VirtualBox?

A .vdi (virtual disk) file is a disk image used by VirtualBox. You can think of it as representing one piece of your virtual hardware--the hard disk.

If you only have one piece of the machine, that's the important one--it's a virtual machine, after all, and new virtual parts don't cost anything.

Open Virtual Box. Create a new virtual machine. When you get to the point where are asked about its hard disk, specify that .vdi file as the disk. Or make a virtual machine and, later, add it as a disk and remove whatever unused virtual disk was originally created for it. (If you do it that way and you want to delete the new blank disk, make sure you don't delete the .vdi file that has your data on it by accident!)

By the way, if you can manage to recover the whole virtual machine (i.e., the other files from it as well), then you can import it into VirtualBox by opening the virtual machine file (ending in .xml).

Your question may be considred off-topic, as you're asking how to reconstruct a VirtualBox VM in OS X. Which operating system the VM is running (in this case Ubuntu) is irrelevant, so this isn't really about Ubuntu. On the other hand, VirtualBox is also Ubuntu software--for Ubuntu users who want to have virtual machines. Answers to your questions won't really be host system specific either, so I suppose this might be considered on-topic, which is why I've posted this answer. Better sites for it may be Ask Different and Super User, but please don't have the same question open on more than one SE site at a time.


wlan0 not created when using Ubuntu 19.10 netboot (HP Notebook 14-cf1599sa with Intel Wireless-AC 9461)

I solved this myself.

It turns out the the iwlmvm driver is not present on the netboot mini.iso, and this is required, in combination with the iwlwifi driver, to get the hardware working.

I used the following steps to resolve this:

On a separate computer, download the linux-modules-extra-5.3.0-18-generic package for amd64. This matches the kernel version present on the netboot iso.

This was a file named linux-modules-extra-5.3.0-18-generic_5.3.0-18.19_amd64.deb.

Extract the .deb file and copy the file lib/modules/5.3.0-18-generic/kernel/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko to some removable storage.
On the computer running the netboot installer, start a shell (e.g. via main menu, or pressing Ctrl+Alt+F2 or similar) and mount the removable storage on /mnt.
Run modprobe mac80211.
Run insmod /mnt/iwlmvm.ko.
Continue the installation — the network should now be recognised.


Installtion of gr-ieee802-11 using Pybombs with errors

I recommend to install GNU Radio via pybombs. The version in the repo is usually pretty outdated.


How to install driver for Linksys ae6000 wireless usb adapter

Steps:

Unplug WiFi dongle from USB
Update your sources and upgrade if any:

sudo apt-get update
sudo apt-get upgrade

Install GNU compiler collection:

sudo apt-get install build-essential

Install git:

sudo apt-get install git
Get sources:

git clone https://sanrath@bitbucket.org/sanrath/mediatek_mt7610u_sta_driver_linux-64bit.git

Build driver:

cd mediatek_mt7610u_sta_driver_linux-64bit
make clean
make
sudo make install

After the last command connect your USB WiFi adapter to any USB port.
If you still can't see it:

sudo ifconfig ra0 up
sudo service network-manager restart

Then you should have it working and seeing the wireless networks.

Thanks to pintu for making this possible