Your processor is affected by the c-state bug
which causes total freezes when the CPU tries to enter an unsupported sleep state. It's a problem for many Bay Trail devices especially with newer (4.*) kernels.

There is a simple workaround for this until it gets properly fixed upstream. You just need to pass a kernel boot parameter and the random freezing stops completely.

You do this by editing the configuration file for GRUB:

Boot Ubuntu and open a terminal by pressing ctrl+alt+t then type

sudo nano /etc/default/grub

Find the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

This needs to be changed to include intel_idle.max_cstate=1

So after your edit it reads

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"

If you have other boot parameters already besides quiet and splash, just leave them alone.

Now save the file by pressing ctrl+o then enter and exit by pressing ctrl+x

Now type

sudo update-grub

Then reboot

To revert to an older kernel from a higher version installed manually, reboot the system and enter the GRUB menu by pressing shift. At the GRUB screen select Advanced Options For Ubuntu and select the kernel you want to boot (4.4.0-21-generic in your case)

When the system has booted, before deleting anything check uname -r to be sure you have booted the correct kernel.

The system will boot the highest kernel by default, so you need to delete the newer one yourself. All you need to do is delete the files that relate to it, so find the version string of the kernel you want to delete... if you installed by the debian method:

dpkg -l | grep linux-image

if you installed with make install do ls /boot to see installed kernel versions

Let's say the kernel you want to remove has the release string 4.7.0-040700rc3-generic. You can find all the files relating to this kernel:

sudo updatedb && locate -b -e 4.7.0-040700rc3-generic

to delete them you can use xargs (assuming you've already run sudo updatedb)

locate -b -e 4.7.0-040700rc3-generic | xargs -p sudo rm -r

-p makes xargs ask for confirmation before executing rm -r on the located files. It will throw errors for files which are not directories because you are trying to delete them recursively, but it will still work. Finally run

sudo update-grub


Look through this WIKI, and see if your hardware is there.

https://wiki.ubuntu.com/Touchscreen

But I would say, make a backup of the system, and try it out, the worst that could happen is it does not work, and seeing as it sounds like this is just a have fun machine and see if it works machine, then you really lose nothing.


How to install Vagrant with manual VirtualBox 4.2?

Use:

apt-get install vagrant --no-install-recommends

as a work-around.

See https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1125097


Is it compulsory to add "Cleaning section" while bulding local ubuntu respository

The clean line tells apt-mirror which directories it should check for files which are no longer present in the parent mirror (and so can be deleted).

It is not compulsory, but it is good practice for large, regularly updated mirrors.

For your particular case (mirror of EOL release), you don't need a clean line, since the EOL mirror is never going to change, so there should never be a file for it to delete.


Contiki 3.0 - Sky mote not connecting properly

You need to change your serialdump-linux execution file in the contiki/tools/sky folder and follow the steps given in the link..

1) http://anrg.usc.edu/contiki/index.php/Hello_World
Everey thing is given clearly in the above link

The above documentation is really good as of now I am also a newbie in this area.

http://anrg.usc.edu/contiki/index.php/


Dash does not get focus when maximized window open at the back

Is the window maximized or full-screen? And is your system updated? The question you linked to is from April 2014, so my thinking is that this could be an old bug that has been fixed with an update to Unity.  I am running 14.04 with Unity, and have never had this problem. My other guess is that you are missing a driver. If it is a driver issue, try updating or reinstalling your graphics driver.


rtl8192cu and Alfa AWUS036NHR v2 cannot connect to any network

The kernel driver for this adapter is quite unstable. I suggest that you install a better driver from source.

The newer driver has been packaged to DKMS format and added it to ppa. If you install it from there, you will not need to re-install it after kernel upgrades. It can be installed by

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192cu-dkms

Reboot and your wireless should be working.


Try with

sudo apt-get install mysql-client mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 mysql-source-5.5 mysql-testsuite mysql-testsuite-5.5


Find out the command and location of an installed application

After compiling and installing psensor, if is not in your PATH, it means that you miss the make install step or you have use a custom installation location (./configure --prefix=/installation_path) which is not in your path.

Usually, to compile and install it on the system, you can use:

./configure --prefix=/usr
make clean all
sudo make install

psensor will be in the /usr/bin/.

To autostart psensor, just open the psensor preferences, startup tab, check autostart toggle.


External keyboard/mouse natural scrolling

If you are using one of the latest Ubuntu releases that uses libinput, you should be able to disable it by using xinput.

Try running these commands in terminal:

xinput list

This will give you list of devices connected. Find the one you need to change settings on and note its id number.
xinput list-props ID

Replace ID with the id of your device.  This command will give you a list of the device's options. Find the option "Natural Scrolling Enabled" and see if it has 0 or 1 value. 1 means it is active, 0 means it is inactive. You just need to revert it, i.e. set it to 0 if natural scrolling is activated.
xinput --set-prop ID 'libinput Natural Scrolling Enabled' 0

This will disable natural scrolling on the device. Remember that ID in the example should be replaced with the id of your device.

If this solution works for you, you can make it permanent by adding it into your /usr/share/X11/xorg.conf.d/40-libinput.conf file. Open the file in your preferred text editor, with root privileges. E.g, run:

sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf

You should find content like this:

Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

The section with pointer in the identifier is for mouse, the section with keyboard is for keyboard, the section with touchpad is for touchpad.

To make it set natural scrolling off by default you just add a line with the option you used in the xinput command after the "Driver" line, in this case Option "NaturalScrolling" "off", so it would look like this:

Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "NaturalScrolling" "off"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "NaturalScrolling" "off"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "NaturalScrolling" "off"
EndSection

You can learn about other possible solutions and options here: libinput - Arch Linux Wiki

I do not know drawbacks from directly editing an existing config file, but if you are worried, you might just go for creating a custom .conf file next to "40-libinput.conf". The link above should have all info you need to do that.


Is it possible to un-sudo apps that have been run with sudo?

There is no need to revert anything.

If you run a command prepending sudo, you'll run the command with root privileges.

If you run a command without sudo, you'll run the command with your user privileges.

Example:

$ sudo ls -a /root
[sudo] password for mook:
.  ..  .bash_history  .bashrc  .cache  .local  .profile  .synaptic
~$ ls -a /root
ls: cannot open directory '/root': Permission denied

In this example I use the command ls -a /root, first with sudo, then without sudo. As you can see, in the second command I don't have root-access and get a permission denied, even if I have used the same command with sudo before.


I'm having trouble installing Oracle java jdk

First, you should uninstall all "java" packages from your system.

After that, download the most recent Oracle Java JDK from here for your architecture (32bit or 64bit, you can find that out with executing the arch command in a terminal. Then unzip the ".tar.gz" (should work with your archive manager) and move it to some location like /opt/jdk8.

If you want to make the execution of java more comfortable (at this point, you'd have to type e.g. /opt/jkd8/bin/java -version), you should add the line PATH=/opt/jdk8/bin:"$PATH" in the file in /etc/profile.

Then just execute Java with java %command%.

Have fun with Java, it's a great programming language!

Cheers,
Ignatiamus


Ubuntu packages installation is terribly slow

It's most likely a slow hard drive. To figure out what component in your system is slow you can run hperf
https://github.com/openlvc/hperf
I've used it to find disk bottlenecks on VMWare servers.
When you are running it keep note of what suite causes a noticeable lag in the interface. You can then re-run any individual suites or tests suites to verify that area as the root cause.
Folks were mentioning using top. There are other "better" top like programs. I like htop but there is an even better one called "glances". This will give you a graph of disk/network/cpu IO with colors.
https://github.com/nicolargo/glances


dpkg: --dry-run does not check dependency?

dpkg doesn'not have dependency support. You have two choises;

1- use gdebi with

sudo apt-get install gdebi-core

gdebi install deb package and their dependency.

sudo gdebi package.deb

2- After sudo dpkg -i *.deb you should run,

sudo apt-get -f install


I believe you are looking for something called PLOP Linux.  It will allow you to boot from a USB when the BIOS does not support it.  It's tiny, which is a plus for PXE booting.  Here is a step by step on how to set it up.  Goodluck!  http://www.plop.at/en/ploplinux/networkboot-linux.html


Can not play video, can not figure out why

It's Encrypted. You'll need something which can play DRM video content, and the associated key, in order to decrypt and play the video.


IF you followed that tutorial exactly i.e. answered mykey at the prompt

Enter file in which to save the key (/home/ylo/.ssh/id_rsa):

then it will be in a file called mykey in your current directory.

If you want it to be in the default location ~/.ssh/id_rsa then simply hit Enter at that prompt to accept the default value.


Discovering people connected on hub network

You can use nmap to scan the range of ip addresses in your subnet. For example,

sudo nmap -sP 192.168.1.1-254

Nmap doesn't come installed on Ubuntu by default. If you don't have it, get it:

sudo apt-get install nmap


Fundamental difference between a Ethernet (networking) driver and a pcie driver

PCIe is used to communicate with your local network card. The actual network card uses the ethernet protocol to communicate with external network devices. These protocols can also be used within the OS to emulate such devices as well.

Here is an extremely basic graphical depiction that I put together for you:

Additionally, please note that ethernet is indeed a protocol and not a type of device. For instance, both fibre interfaces and rj45 copper cable interfaces can run via ethernet protocol, to name just a couple.

TCP/UDP stack is handled by the kernel/OS entirely, not by the hardware in between.


lpr not working - scheduler not responding

The Arch Bugtracker knows about this bug/regression which is introduced in the 1.6 cups version:

The default IPP version for requests is now 2.0 (STR #3929)

And most likely your cups server has an older cups version which still defaults to the older IPP version. The workaround from the ARCH wiki:

Using a CUPS 1.6.x client with a <= 1.5.x server
As of CUPS version 1.6, the client defaults to IPP 2.0. If the server uses CUPS <= 1.5 / IPP <= 1.1, the client doesn't downgrade the protocol automatically and thus can't communicate with the server. A workaround (undocumented as of 2013-05-07, but see this bug report) is to put the following in /etc/cups/client.conf:
ServerName HOSTNAME-OR-IP-ADDRESS[:PORT]/version=1.1


You are seeing only directories, rc.local is a file. Please use the command line or any other method (in the GUI program you are using) to view files too, you will get rc.local along with all other files.


Edit connection --> click on B --> edit --> general --> tick Automatically connect to this network when it is available. This should be ticked only for connection B.


Consistent Flash Player Crash ONLY on YouTube

An alternative would be to use Minitube

Its a Flash Free Youtube Player.
It has a nice UI and works well on older systems


How to not install recommended and suggested packages?

If you do not want to install recomended packages you can run apt-get with the --no-install-recommends flag or aptitude with the --without-recommends/-R flag.

If you want these flags to always be enabled (I do NOT recommend this) put the following lines in your /etc/apt/apt.conf file:

APT::Get::Install-Recommends "false";
APT::Get::Install-Suggests "false";

Remember that these packages are recommended for a reason and it is probably not a good idea to ignore it at all times. You would be better off using the flags in the cases where you know that the recommended packages are wrong.


How do I stop Unity from remembering search history?

It's actually designed that way. But if you want to do a new search, then you can just type. It's not configurable.

Press Esc to clear the search though. If there's a previous search, the first time you press Esc, you'll empty the input field. The next time you press Esc, you'll close the Dash.


Can a Ubuntu computer work on a Windows network?

i've stuck my ubuntu laptop on my network at home, and also on client sites never had any bother connecting - also using proxies (some small tweaks needed there). BUT just in case, i installed VirtualBox with a small windows environment - just in case there were any functions i could only do in windows - and i have to say i've found nothing yet that Ubuntu cant handle!


How to install qbittorrent in Ubuntu 16.10?

With the new release of 16.10, I had few problems installing qbittorrent from the Ubuntu Software center as well as from the .tar.gz installation file obtained from original website of qbittorrent. However I got a way to compile it locally in my system, though it showed some warnings, eventually, it happened to be working properly.

First try installing it thorugh this method :

 sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
 sudo apt-get update && sudo apt-get install qbittorrent

hopefully everything should be good and QbitTorrent should get installed successfully.
If not then try compiling it from its source files as follows :

First you must install the required dependencies :

General required dependencies

sudo apt-get install libboost-dev libboost-system-dev build-essential
Qt4 libraries (optional and only if it exists in your distro's repo)

sudo apt-get install libqt4-dev
Qt5 libraries

sudo apt-get install qtbase5-dev qttools5-dev-tools
Python (Run time only dependency, for the search engine)

sudo apt-get install python
Optional Dependencies Geoip Database (For peer country resolution, strongly advised)

sudo apt-get install geoip-database

Libtorrent : Libtorrent is a library written by Arvid Norberg that qBittorrent depends on. It is necessary to compile and install libtorrent before compiling qBittorrent. If your distro packages at least libtorrent 0.16.19 or 1.0.6 you can install it. Otherwise you'll need to compile it yourself.

sudo apt-get install libtorrent-rasterbar-dev

If this dowsn't work, you might probably have to compile it too from its source. Find more instructions here " https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu "
Compiling qBittorrent

First, obtain the qBittorrent source code. Either download and extract a .tar archive from www.qbittorrent.org  or clone this git repo (git clone https://github.com/qbittorrent/qBittorrent)  :

Extract the files in a folder and open a terminal in that location
executre the configure file with this command in the directory containing the extracted files
   sudo ./configure --prefix=/usr

if shows any error, probably try

sudo ./configure --prefix=/usr --with-qt4
execute   make
then      sudo make install

Hopefully this should install qbittorrent in your latest Ubuntu 16.10.

For this answer, I would like to thank Github users Arvid Noberg, Mike Tzou and Diego de las Heras who actively maintain the Github Repo qbittorrent. The instruction I got from the repo's instructions were deephly helpful.

For any other help, refer the source here : How to compile qbittorrrent from source


Do you get any other signs apart from the dialogue coming up. If not then it's probably just old crash logs not getting cleared up. To stop the dialogue appearing hold down alt and press f2 and copy and paste
gksu rm -rf /var/crash/*
Into the search bar that comes up. Then press enter. A box asking for your password will appear, type it in and click OK, nothing will happen, but the dialogue should stop appearing.


The easiest way to run LoL on Ubuntu is PlayOnLinux since they do all the fiddly config settings for you.  For example, I'm not sure if this is still the case, but originally with vanilla wine1.7 the game would crash on opening the shop.

Install PlayOnLinux, e.g.: sudo apt-get install playonlinux
Open PlayOnLinux and click the "Install" button
Make sure the "Testing" box is checked
Search for "League of Legends"
Select it and click "Install"


Why don't I have permissions to view the contents of a mounted ext4 partition (live-USB boot)?

I finally re-created the partitions in the SSD directly from the USB/booted system. Then I had no permissions issue.


Sometimes left click not working on Ubuntu 18.04

Logout user (crlt+alt+del) then login again. That happens to me all the time but re logging in do the work.


Please set JAVA_HOME to a Java 1.5 JDK Install / WEBGOAT

First of, you are trying to install an version of Webgoat and the java you have is ok to run it. Now these are the steps are followed to install it:

Place java in your path so Webgoat would see it.

open your .bashrc file:

In the terminal edit the .bashrc file with nano /home/$USER/.bashrc
Add the following lines to the file:

export JAVA_PATH="/usr/lib/jvm/java-1.8.0-openjdk-amd64"
export PATH=$PATH:$JAVA_HOME

Run this from terminal: source ~/.bashrc

Download Webgoat from here, select the Quick Start - easy run option. The link is in step two.
Run Webgoat with the following commands:

java -jar WebGoat-6.0.1-war-exec.jar

java -jar WebGoat-6.0.1-war-exec.jar -httpPort 9090

Please note: first command runs on port 8080, and second command on port 9090. Which of course you can change to any port of your liking.
When you run either of these, the terminal will spit out lots of error messages please ignore and run step 4.

Verify Webgoat is running:

http://localhost:8080/WebGoat

# or if using second command

http://localhost:9090/WebGoat

Information:

  WARNING 1: While running this program your machine will be extremely vulnerable to attack. You should to disconnect from the Internet while using this program.

  WARNING 2: This program is for educational purposes only. If you attempt these techniques without authorization, you are very likely to get caught. If you are caught engaging in unauthorized hacking, most companies will fire you. Claiming that you were doing security research will not work as that is the first thing that all hackers claim.

Source:

https://github.com/WebGoat/WebGoat-Legacy

https://github.com/WebGoat/WebGoat-Legacy/wiki/Installation-(WebGoat-6.0)


How can I access system mail in /var/mail/ via thunderbird?

In Ubuntu 10.04, with Thunderbird 3, the option is accomplished by:

Select Edit,   Account Settings

Choose Account Actions,   Add other account

Select Unix Spool (Movemail).

The UI to access this menu is slightly different in Thunderbird 2, but I didn't have it handy.

In Thunderbird 2, do the following, adapted from the Gmail FAQ:

Click the Tools menu, and select Account Settings..
Click the Add Account... button to launch Account Wizard.
Select Movemail from the list.


Root cron job not executing script properly. PATH or HOME directories the problem?

Cron seems not to use the environment which you have, try putting
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' before your script in the cronjobs list or add it to your script.

e.g.

* * * * * PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' myscript.sh


I think it is a bug in LibreOffice. I found a workaround. Maybe it will useful for somebody.

Open the original pdf in LibreOffice. The letters are reversed.
Export the reversed file to pdf (File-> Export as PDF…) and save
under different name. Now Document Viewer shows letters in reversed
order, but LibreOffice shows the file correctly.
Edit the reversed PDF in LibreOffice.
Finally, export the reversed file to PDF format. Check with Document Viewer that file looks OK.


Is there a default password for the UBUNTU bootable stick?

Referring through this LiveCd page it suggests the default User available is ubuntu and Blank/Empty password , just press Enter on Password prompt for logging in.


You may wish to give GUCView a try; it is in the default repositories of Ubuntu 12.04 and probably other version. The official website at sourceforge provides comprehensive information about the software but it is very simple to use indeed.

Here's a screenshot of GUCView in action:


To enable existing or nil (or any of the other options), pass them as values for the --backup option:

mv --backup=existing "$src" "$dest"
mv --backup=nil "$src" "$dest"

Be warned that this does not do what you want:

$ mkdir foo bar
$ cp blah/* foo
$ cp blah/* bar
$ mv --backup=nil bar/* foo/* -t blah
mv: will not overwrite just-created ‘blah/a.jpg’ with ‘foo/a.jpg’
mv: will not overwrite just-created ‘blah/b.ogv’ with ‘foo/b.ogv’
mv: will not overwrite just-created ‘blah/cd ef.JpG’ with ‘foo/cd ef.JpG’

You actually want numbered/t:

$ mv --backup=numbered bar/* foo/* -t blah
$ ls blah
a.jpg  a.jpg.~1~  a.jpg.~2~  b.ogv  b.ogv.~1~  b.ogv.~2~  cd ef.JpG  cd ef.JpG.~1~  cd ef.JpG.~2~


Dual booting windows 7 alongside Ubuntu 13.04 after installing Ubuntu

Windows installs only to Master Boot Record (MBR) disks on BIOS-based computers and only to GUID Partition Table (GPT) disks on EFI-based computers. Linux, OTOH, is more flexible; it can install to GPT on BIOS-based computers, and in some cases it's possible to install to MBR on EFI-based computers. (The Ubuntu installer disallows the latter, IIRC.)

In any event, if your computer has an EFI, you should be able to proceed by forcing the Windows 7 installer to boot in EFI mode. You may be able to do this by selecting a CD/DVD boot device with "EFI" or "UEFI" in the description in the firmware's boot manager; or you may need to play games with the installation medium to get it to boot in EFI mode. I don't happen to have any URLs handy, but Googling on "boot Windows 7 installer in EFI mode" might turn something up.

If your computer has a conventional BIOS with no EFI support, your best option is to convert your disk from GPT to MBR format. You can do this with gdisk; see this section of the gdisk documentation for details on how to do this. Note that you may need to resize partitions, and you'll need to ensure that the NTFS partition you created for Windows must be a primary partition once it's converted to MBR form.

In either case, you'll need to re-install or re-enable a Linux boot loader after you've installed Windows. The Boot Repair utility can usually do this. In the case of an EFI-mode boot, you could also try a number of alternative EFI boot loaders.


The error occurs because the ACPI (Advanced Configuration and Power Interface) objects can't be found in the AML DSDT or SSDT ACPI tables, this normally indicates a BIOS bug.  I believe the objects are related to the touch pad over the I2C bus, but I may be wrong.
I've seen these errors before on similar firmware and think the objects relate to getting the status of the touchpad device via the _STA ACPI method.  I don't this this adversely affects the system, so personally speaking, I would not be overly concerned about this.


Audacity v2.1.2 hangs almost instantly when recording second track (overdubbing)

I had edited /etc/pulse/default.pa to work around an issue with an earlier version of Ubuntu.  I had manually remade the edit after updating to 17.10:

load-module module-udev-detect tsched=0

So I changed it back to:

load-module module-udev-detect

Then I rebooted and everything worked fine.  No idea if that was it, or the reboot or what.


Auto mouse click 25 seconds after mouse stops moving

I had the same problem and solved it by disabling hover click.
But until I found solution, I had 2 ways to stop it:

Turning mouse upside-down when not in use.
Running "mousetweaks -s" from the terminal. I had to do it after each restart.


How to get non-image (plain) desktop background?

this answer is targeted for RGB color option

Get your present background picture with the below command

gsettings get org.gnome.desktop.background picture-uri

Example:

pratap@i7:~$ gsettings get org.gnome.desktop.background picture-uri
'file:///usr/share/backgrounds/contest/bionic.xml'
pratap@i7:~$

Make the background picture to none with the below command

gsettings set org.gnome.desktop.background picture-uri ''

now the background picture is none so the background will be the value of

gsettings get org.gnome.desktop.background primary-color

Example:

pratap@i7:~$ gsettings get org.gnome.desktop.background primary-color
'#000000'
pratap@i7:~$

to set the rgb value for primary-color run the below command with your rgb value

gsettings set org.gnome.desktop.background primary-color 'rgb(255, 173, 100)'

Example:

pratap@i7:~$ gsettings set org.gnome.desktop.background primary-color 'rgb(255, 173, 100)'
pratap@i7:~$

other gsettings points to know

gsettings get org.gnome.desktop.background color-shading-type

gsettings get org.gnome.desktop.backgound secondary-color

Alternatively you can use dconf-editor which can be installed with the below command

sudo apt install dconf-editor


At this time, there is no support for "Storage Space", a feature of Windows 8, for Linux. See this question on SuperUser, and this info from Acronis.

Keep in mind that other Windows versions can't use this feature either.


You are behind a proxy server and you have not added your proxy authentication parameters in /etc/apt/apt.conf. Add your proxy authentication parameters in /etc/apt/apt.conf. To do this:

Open a terminal using Ctrl+Alt+T.
Type gksudo gedit /etc/apt/apt.conf (or sudo -H gedit /etc/apt/apt.conf) and type your password when it prompts you.
In the window that opens up, type the following, replacing username by your username, password by your password, host by your proxy host, port_no by your proxy's port number:

Acquire::http::proxy "http://username:password@host:port_no";
Acquire::https::proxy "https://username:password@host:port_no";
Acquire::ftp::proxy "ftp://username:password@host:port_no";
Acquire::socks::proxy "socks://username:password@host:port_no";

Press Ctrl+S to save and exit.


Pc stuck at boot time after canceling 19.04 installation

I booted my pc in recovery mode with the old kernel version then I ran dpkg repair broken packages and it worked !


This happens because this laptop has no wireless hardware switch. Kernel driver can't handle this right. I made a ppa with a patched ideapad-laptop driver. Patch is queued upstream, but it will take time to get into stable kernels. The driver can be installed by

sudo add-apt-repository ppa:hanipouspilot/ideapad-laptop
sudo apt-get update
sudo apt-get install ideapad-laptop

Wireless must work after reboot.


The file you opened has some invalid characters

do not double click this file and try to install it from the text editor.
Instead start the terminal, using cd get to the directory where the file is then type the following command sh Miniconda3-latest-Linux-x86_64.sh (you might have a slightly different version of Miniconda depending on what you downloaded)

you will be prompted some text and licenses, keep hitting enter until the prompt asks if you want to install Miniconda on your system, type yes and then yes to prepend.

restart your terminal and you'll be able to use conda.

next thing you might want to do is conda install jupyter or conda install spyder.

Hope this works for you.


Yes. There are many ways to do it but I would recommend to have a look at the FOG Project.

The basic steps would be:

Create a FOG server (I use a Virtualbox)
Install a machine with your USB
Add that machine as a host to FOG
Change the machine BIOS to boot from the network.
Upload the image (creates an image of the machine in FOG)
Add any other machines you want to install as FOG hosts and set them up to boot from the network.
Create tasks to download your image to those hosts.


IP Adress is 10.0.2.15 and need to acces via browser

Install Apache :

sudo apt-get install apache

Place your work in /var/www

Now you can access the from browser by typing ip or by localhost .

To start or stop service :

sudo service apache2 start

sudo service apache2 stop

Now you can just access the locally or by local network not by Internet .


Cannot connect to Internet but Ethernet is connected

Add a nameserver option to the following file:

/etc/resolvconf/resolv.conf.d/head

nameserver 8.8.8.8

Restart the networking service with:

$ sudo service networking restart

or reboot the computer to restart the networking service


A problem which I encountered in Eclipse

If you don't write struct there - it won't be a valid C code.

Visual Studio doesn't care much about C, it's using a C++ compiler.

So, to avoid writing struct, use the typedef list { ... } list_t to define a list_t typename:

typedef struct list
{
    int data;
    struct list *next;
} list_t;

list_t Listptr;


I'm add file size check. If it is coming too large, I remove this out and kill VLC process. It is strange that now VLC responds on kill message, but it works.


juju ERROR Unable to connect to environment "maas"

Try $ juju destroy-environment maas --force, then bootstrap again.

If it doesn't help, share maas log file (/var/log/maas/maas.log)


How to fix corrupted GUI on Ubuntu Xenial Xerus

you can reinstall desktop
How to restore default Unity
try it but not sure

or
install gnome desktop

http://www.omgubuntu.co.uk/2016/05/install-gnome-3-20-ubuntu-16-04-lts

https://www.techrepublic.com/blog/linux-and-open-source/how-to-install-gnome-38-on-ubuntu/

install gnome-shell on ubuntu 16.04


So AFAIU you have created a USB-installer http://www.ubuntu.com/download/help/create-a-usb-stick-on-windows. You don't need to run anything from your ISO image. Instead you need to restart your PC and boot from your USB stick. There you will see the installation menu.


nm-applet disappeared from awn indicator session area after installing d-bus-1.8.0

I found a workaround that worked. D-bus-1.8.0 creates compatibily issue and needs new packages to get installed.

D-Bus Python-1.2.0
Py2cairo-1.10.0
PyCairo-1.10.0
PyGObject-2.28.6
PyGObject-3.12.1
PyGTK-2.24.0
PyXDG-0.25

But I didn't install them.

I found the workaround here:

https://bbs.archlinux.org/viewtopic.php?id=143985

sudo gedit /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf

I replaced all instances of deny with allow and saved.

I restarted session and it worked.


Think from the perspective of the server, not the client.

The Postfix server receives and processes email for potential recipients on your server and therefore needs to apply checks to that to filter spam, including determining whether or not the received email comes from a known domain. If it doesn't, it's a safe bet it's spam and you can reject it.

To apply the same restriction when your Postfix server sends email for your users would simply mean it checks to see if YOUR domain exists or not, which of course it does, so it's a moot check.


Create bootable USB stick on macOS - stick does not appear as bootable

I finally managed to boot from the USB using rEFInd.

I found rEFInd here. I installed it in the original OS on the Macbook6.1 by running the install-refind script.

More information about refind here.


Trying to install Adobe Flash on fresh Ubuntu 16.10 instance

Add
deb http://archive.canonical.com/ubuntu yakkety partner
 to the end of your /etc/apt/sources.list file.

After updating apt with sudo apt update, you can then do sudo apt-get install adobe-flashplugin.

Note: this also works for 17.10


Both the desktop entry and the shell script should have executable permissions. Do:

$ chmod +x path_to_shortcut/shortcut.desktop
$ chmod +x path_to_script/test.sh

Another way to change permissions for a script is to right click it, go to Properties > Premissions and check Allow executing file as program.


Unmet dependency while installing PostgreSQL on Ubuntu 15.04

Use:

apt-mark showhold

to see the list of held packages and use:

sudo apt-mark unhold <package name>

to un-hold them. After his remove the package causing problem using sudo apt-get remove


preview windows from dock for switching between PDF documents

Although it's not hover, a single right click on the icon in the dock will pop up all windows for said application.

You can also use alt+tabto switch applications. Also, after the first alt+tab press, you will be able to navigate window selection using arrow keys and/or mouse.


A nice looking twitter crawler widget and a feed crawler widget?

As what concerns a feed reader, I would reccomend these, available from the Software Center :

LightRead
Una Reader
Feedivore
Pressboy
Source : OMG! Ubuntu

I did not find Ubuntu twitter crawlers, so I don't suppose they even exist, sorry...

That's all I can do, mjchopperboy


I would advise against this because when you run Windows 7 in the vm it will detect it as a hardware change and may require you to reactivate your license, if the os came with your computer then it's an oem install which means it likely won't allow activation on the vm, additionally if you activate it for the vm successfully then it will detect the host system as a hardware change and may wish to be reactivated again, causing you to enter an endless cycle. Additionally the VM will need Vmware Tools installed, which could cause problems when booting to the host since it will need the drivers you had before installing tools.

As far as your boot problems go, I'm not familiar with the details of the guide you're working on but a simplistic way would be to create a virtual hard drive as the primary drive, and the real-access drive as the secondary. Then using an installation disc, or using the freely available winpe (not recommened) you create a new mbr boot entry for the os on the virtual drives mbr. Before doing anything you should make a backup of your windows installation so you can restore it if things go wrong and ideally have a re-installation disc.

In regards to settings and performance. I've never used cad but it sounds high performance (is it similar to 3D Max?) so you will need to dedicate anything you can to the vm. VMs aren't intended for running high performance applications. However many cores you have on the host dedicate to the vm, this may slightly reduce speed but it will make things run smoother and reduce the chance of freezing. Ram wise you have the right idea, 6gb. I usually run my windows 7 vms on 1gb if I'm just using them to run something light like a web browser (and it's shaky) but when I need to run something more serious I use 4gb or more.

Long story short, you would be better off creating a normal vm and installing windows on it. If you don't have another license/install disc then you can always consider running it in Windows XP. Some versions of Windows 7 qualify for a free download called XP Mode which is actually a Windows XP Professional SP3 install in a Virtual PC VM. According to the AutoCad website Windows XP SP3 is still supported in the 2014 edition of AutoCad, though it won't be in the next version. Since you are using a Mint host there is a slight problem. Virtual PC is only available for Windows hosts, however there are many guides out there for running XP Mode in Vmware or Virtualbox without voiding the vm such as this one: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2014936

The other option would be to if you have access to a windows 7 or 8 installation disc you can install it as a 30day trial, install the program you want, reset the slmgr so the trial starts when the vm boots up next time, create a backup of the vm in a .zip, and then every 30 days just delete the vm and restore it from the backup you made. If you need you can get Windows 7 - Ultimate X86-64 from here: http://msft.digitalrivercontent.net/win/X17-59465.iso

You may also want to consider running AutoCad in Wine?


Multimedia email key doesn't work in KDE

Go to "System Settings" > "Sytem" > "Details":

Then go to "Default Applications" > "Mail" and choose you email app:


AX200 Wifi no longer available on Ubuntu 20.04 after installing Windows 10 on other partition

The suggestion to disable the fast startup of the Windows 10 worked for me. The only question that is in my mind now is why and how did Windows hijack my wireless card? =)


High PCH chip temperature while idle on MSI laptop. What should I do?

+72.0°C isn't too high. If the temperature does get too high and the fan does not kick into action the kernel will try to throttle back the CPU so that the CPU does not hit the critical trip point (this is known as passive cooling).

In theory, the fan will kick in at some firmware controlled trip point and if that is not working the kernel will start to try various passive cooling techniques - so you may notice the CPU gets sluggish if that happens because the CPU frequency gets scaled down.

I believe that modern Sandybridge CPUs have a TJmax critical thermal threshold of 100 degrees C, so your system should work OK in the upper 90 degrees C without much to worry about.


If you have Docker installed, you definitely want to keep a FORWARD drop or reject policy.  I found it a bit cleaner to have Wireguard handle its own iptables rules using the PostUp and PostDown options in the config.  In your wg0.conf under the [Interface] section you should put something like (assuming hassio is your main network interface):
PostUp = iptables -I FORWARD 1 -i %i -o hassio -s 192.168.96.0/24 -j ACCEPT; iptables -t nat -A POSTROUTING -s 192.168.96.0/24 -o hassio -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -o hassio -s 192.168.96.0/24 -j ACCEPT; iptables -D POSTROUTING -s 192.168.96.0/24 -o hassio -j MASQUERADE

This then needs to be paired with a rule that allows the reverse FORWARD traffic: I personally opt for a more generic ESTABLISHED/RELATED rule in the form of -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT.  I really don't know of any situation where I want to do anything other than allow already ESTABLISHED/RELATED sessions to continue.
P.S. - I also use "REJECT" policies for hosts that really are LAN only.  REJECT kicks out a ICMP packet when something isn't allowed whereas DROP just silently drops the connection; REJECT makes debugging quite a bit easier.


The number 2836376023 is the CRC checksum of the file

CRC = cyclic redundancy check

In short, a mathematical operation (polynomial division) is performed on the contents of a file and the remainder is used to generate the checksum. If the file has changed since the last time the calculation was done, the checksum would be different, so it can be used to make sure files have not been damaged in transit. The method is only useful to check for accidental data corruption; it is not secure against deliberate attacks, as it is quite trivial to modify a file in such a way that the CRC checksum stays the same.

To expand on this, the program doing the checksum (such as cksum) defines a generator polynomial to be the denominator in the polynomial division. The contents of the file to be checked are the numerator.

Detailed examples of the computation can be found on Wikipedia:
 Computation of Cyclic Redundancy Checks

If you want to know the exact details of implementation in the case of cksum, you can read the source code online at Savannah

Or download it by enabling source downloads and running (in your home)

sudo apt update
mkdir coreutils-src && cd coreutils-src
apt source coreutils

Then cd into the new directory. cksum.c is in the src subdirectory.


You can just go

sudo apt-get update && sudo apt-get install gnome-sushi

This will install gnome-sushi which enables such preview functionality on nautilus. I'm not sure about other file managers.

It can preview music, photos, videos and folders. It uses a slick window to do this, with all basic functionality available such as pausing and skipping..etc


How to reset configuration for Compiz for another user?

To reset the configuration of the Compiz Config Settings Manager or ccsm you must enter the following command in a terminal:

cd /home/USER/; rm -rf .gnome .gnome2 .gconf .gconfd .metacity .compiz-1 .config/compiz-1 .config/dconf
#replace 'USER' with the account that you want to resolve

I recommend you to enter the above command from your root account entering into a tty or from a Ubuntu Live Edition, doing chroot over your system (follow steps 1 to 5 here) from a terminal.


Python error when upgrading from 18.10 to 19.04

I solved the question by myself.

I find the problemed python script:

/usr/local/lib/python3.6/dist-packages/distro_info.py

Then cover it by:

https://salsa.debian.org/debian/distro-info/raw/master/python/distro_info.py

then run sudo do-release-upgrade, successfully.


Is it possible to install Win8 next to an encrypted Ubuntu?

Yes it is possible. Windows will not overwrite anything, because if it would, you would have a really broken ubuntu in all cases (not just when you encrypt it).

You do need some free space at a 'lower' level. You mention a second partition. If you have that partition (and are not using it), you're all set. If you don't you need to re-partition to get some space obviously.


The Ubuntu installer will give you the option to resize your partitions, there will be a optionto install it next to windows, use up the whole disk, and 1 that says 'something else' in which you can manually set all the partitions you'd like, like that common data one.


Check all modified date of file with in last 5 day in terminal.

find /path/to/files -mtime n is the right way, but have a look on

Numeric arguments can be specified as

       +n     for greater than n,

       -n     for less than n,

       n      for exactly n.

So when you are interested in a period you must use a leading + or -:

To understand how +/- n is working examine these examples:

Suggesting n = 3 and now = 2016/03/15 15:49:00 (24h hour clock) then n = 3 points to exactly one moment in time:

2016/03/15 15:49:00 and n = 3 leads to 2016/03/12 15:49:00

Now let's see what prefix leads to which period:

-mtime -3   results in now-3*24h until now and the future
            (2016/03/12 15:50:00 until all days)

-mtime  3   results in now-4*24h until now-3*24h
            (2016/03/11 15:49:01 until 2016/03/12 15:49:59)

-mtime +3   results in all that is older than now-4*24h
            (2016/03/11 15:49:00 and before it)

So there are no overlappings between the periods resulting from the prefixes -,  and +.


Mouse sticks to top of screen when playing video

You have not described your hardware.  Is there a touch pad as well as a mouse?  These can conflict at times and the touch pad has to be blacklisted.


How can I configure wifi to use random hardware addresses in wifi settings?

Edit /etc/NetworkManager/NetworkManager.conf

Change:

wifi.scan-rand-mac-address=no

To:

wifi.scan-rand-mac-address=yes


Cant run any commands - -bash: ls: command not found

It sounds like you broke your $PATH. That's easy to fix though, you can still use the full path to a command. So, for example, to get the default .bashrc back, you can do:

/bin/cp /etc/skel/.bashrc ~/

Same for nano and vim, just use /bin/nano and /usr/bin/vim. Finally, note that there's no such thing as .bashrc_profiles. There is ~/.profile, ~/.bash_profile (if this file exists, ~/.profile is ignored by bash), and ~/.bashrc.


Windows xp does't let me chose ubuntu using an USB

You may have to go to BIOS of your computer and change the boot order to read the USB before it reads the hard drive.


Unable to enter BIOS setup utility before grub bootloader appears

No, grub is needed even if your only OS is Linux.  Besides selecting the OS to boot, it also gives you the options to boot to Recovery Mode for example, or select any kernel you want in case you have installed more than one on your system.  Grub is the system's bootloader.  It is mandatory.


There is a Network Booting CD image you can download and burn to CDR.  That gets you booted, but not much else.

As an alternative, https://help.ubuntu.com/community/ThinClients introduces how to boot a diskless PC from a Ubuntu server set up to host Thin Clients, and refers you to https://help.ubuntu.com/community/UbuntuLTSP and the Linux Terminal Server Project for information on how to set up an Ubuntu Server for this task.

It uses PXE to boot a machine with no drive at all, uses dnsmasq or isc dhcp to get an IP address for the old machine, sends a compressed image to the old PC to be extracted into memory to run from, and boots faster than booting from CD on most networks.


The first line suggests that OpenGL is not supported on your computer:

Xlib: extension "GLX" missing on display ":0".

You can find a log with more information on the display configuration, and any errors at:

/var/log/Xorg.0.log

It might be worth copying the log to a memory stick, since it will be rather long:

cat /var/log/Xorg.0.log > /media/username/nameOfUsbDevice/Xorg.0.log


Does Sky go/Silverlight still work on Ubuntu

Ive tried all the fixes out there and i'm certain silverlight cant work on ubuntu 16.04. no more development from pipelight is the problem


Dual-head g7 is certified for 12.04: http://www.ubuntu.com/certification/hardware/201209-11634/ - although there are many g7 versions, yours may be slightly different.

Disable SecureBoot, there are known issues with it.

You will likely (but not necessarily) need to install AMD proprietary drivers after installing Ubuntu:

sudo apt-get install fglrx fglrx-pxpress


Issue with text in a Intel 82945G Express Chipset Family

Your problem is that the screen resolution is too high, and your VGA is reaching it's limits. I had the same problem with a pci S3 card when I used it above 1024*768.
The problem is hardware related, you can try increasing the shared memory in BIOS or you can buy an AGP card.


Wubi fails to install Kubuntu: "cannot download metalink..."

If Lubuntu, Kubuntu, Mythbuntu, etc etc is in the list of installable ISO's in Wubi, then they all should be available for installation, if neither of them (with exception to Ubuntu Desktop) is not downloadable, they should NOT be selectable in the drop down list.


Ubuntu shipped with limited x32 support in 13.04.

However, it isn't planning on providing a full port of x32 packages like Debian.

Ubuntu is simply providing a kernel with the x32 syscalls and a functional tri-arch toolchain with GCC and eglibc.

You need a kernel configured with CONFIG_X86_X32=y


How to limit number of kernels shown in boot menu?

You'd need to remove the individual kernel images you don't want.  I have every kernel starting with the one packaged on the 10.04 LTS disc up to the most recent one (including the backported kernel).  There's no automated process to remove old kernels, so you'd have to remove each individual image from your system using Synaptic or some other package manager.


After registering, you have to run:

sudo pam-auth-update

and tick the option "Fingerprint authentication".

It seems to be an Ubuntu bug that this is not activated automatically.


I think you what you are looking for is, "boot-repair"

Boot using a live distro.

Install by running "sudo apt-get install boot-repair" in terminal.

Rest of the process should be clear to you. Its all in GUI.


Can I use the  tag to stream videos stored on Ubuntu One?

Firefox does not support MP4 for the <video> tag.  You will need to convert your video into Ogg or WebM for Firefox to read it.  I recommend using WebM as it has the smallest file format.

Install "Ogg Convert":

sudo apt-get install oggconvert

Make sure you have a local copy of your video.

Open Ogg Convert and select your video file.

2: Make sure "Vido Format" is set to VP8.

3: Click "Advanced" and set "File Format" to WebM

4: Add a name for the file under "File Name" and select a folder to save it too.

5: Click "Convert".

6:  Upload the converted file to Ubuntu One.

You're HTML should now look something like this:

<video width="800" height="600" controls>
  <source src="ubuntuone.com/2GefkbArwA2wtiZTWahXAy" type="video/mp4">
  <source src="link_To_Webm_File" type="video/webm">
 </video>


Apparently I am not able to connect to Ubuntu One behind a proxy...


Kubuntu or other derivatives in ARM form?

I didn't find any arm64 nor arm version of kubuntu ISO
Maybe you can install the server edition of ubuntu and then install the package kubuntu-desktop
sudo apt install kubuntu-desktop

https://packages.ubuntu.com/focal/kubuntu-desktop
I haven't tried this myself but I think it should work
-- EDIT based on comments --
desktopify is an alternative way which might be a more complete solution
https://github.com/wimpysworld/desktopify
Put an Ubuntu Server image for Raspberry Pi on a SDHC card.

Boot the Ubuntu Server SDHC on a Raspberry Pi 2, 3 or 4.

Login to the Raspberry Pi; username ubuntu and password ubuntu
You will be prompted to change the password

Clone the project
git clone https://github.com/wimpysworld/desktopify.git

Change your current directory to desktopify directory
cd desktopify

Convert the server to a desktop
sudo ./desktopify --de kubuntu


After dual boot install data on hard disk is partially gone

Unfortunately, the NTFS-3g drivers that Ubuntu uses were developed through reverse engineering. Although they're pretty reliable, they may well rely on assumptions or conclusions that aren't quite 100% correct. In my comments, I note that your problem sounds like a Windows 8-or-later Fast Startup problem, and I stand by that assessment; however, it could also be that you've run into a bug in the NTFS-3g driver that's causing it to misbehave because of some unusual (but legal) aspect of your NTFS partition.

To minimize the risk of such problems, if you don't need access to an NTFS volume in Ubuntu, you should ensure that it's not mounted. You can do this by editing /etc/fstab and adding a line like this:

/dev/sda1  /media/windowsHDD  ntfs  noauto  0 0

This tells the computer to not mount /dev/sda1 (change that to identify your NTFS partition) at /media/windowsHDD. You could still mount it by typing sudo mount /media/windowsHDD, provided that mount point exists.

To minimize the risk of problems like what you're experiencing, many people set aside a dedicated data-exchange partition, leaving the Windows C: partition unmounted. This may require repartitioning your disk, though; and if you want complete and unfettered access to all your user data from both OSes, all your data will remain at risk. I recommend using FAT for the data-exchange partition if that's practical, because Linux's FAT drivers are older and more robust than Linux's NTFS drivers. The problem, of course, is that FAT is a much more limiting filesystem. In particular, it can't handle files larger than about 4 GB. NTFS also provides more features in Windows, so if you use the partition mainly in Windows, NTFS may be preferable.

As to repair, as noted in my comment, you should ask about that on a Windows forum. There are no good Ubuntu NTFS repair tools (ntfsfix is not a good repair tool!), and the expertise on this matter exists on the Windows forums.


Lock KDE workspace from terminal qdbus command

Here's a command to lock the screen

qdbus org.kde.krunner /ScreenSaver Lock

is that what You wanted?


start another sshd in debug mode (no need to stop the regular daemon)  on a high port number for instance 2222 and connect to that server, you will see at what point the server is stopping. You can play with the debug level by adding more d's.

#/usr/sbin/sshd -dd -p 2222

edit :

Maybe sshd is not the problem but the login process.
Try to bypass all the profile scripting by directly starting a remote shell,  see if it connects faster.

# ssh -t user@servername /bin/bash

(option -t will gets you a tty so you bash will show a prompt and will have command line editing)

Session script should to be the cause as your logs shows the session is opened after


Firefox stops to work after ugrade to version 19 on ubuntu 12.04

I found the problem, it's related to websnapshot extensions. I used to use picuzu shooter, when I take a snapshot firefox freezes and I have to delete the .mozilla directory. I also tried with other extensions:

Awesome Screenshot Plus doesn't save the image using "save" button, if I right click and "Save image as" it freezes firefox.
Pixlr Grabber doesn't save the picture but doesn't break firefox
Screenshot by UploadScreenshot starts trying upload picture and it stops to work

I found a solution (or better a workaround). I can take the screenshot, when I save firefox hangs. I don't know the relation but the process gvfsd-metadata starts to use 100% of CPU.
I kill this process and all is back to normality. Not so confortable but it works!


Please try:

sudo apt-get purge bcmwl-kernel-source
sudo modprobe -rv wl
sudo modprobe -v brcmsmac

if there are any errors please continue with the commands then reboot. your wireless should be working now.

eth1 is showing because you are using the wl driver which is no longer the best driver for your device since 13.04 came out.


On my Ubuntu 16.04.3 LTS I installed R from R-Cran with the following actions

cat <<EOF | sudo tee /etc/apt/sources.list.d/r-cran.list
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/

EOF

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

sudo apt-get update

sudo apt-get install r-base-dev

But at first you should determine from where you got packages from zesty. Or simple remove them with sudo apt-get purge  r-base r-base-core r-recommended.

Update 1:
First of all: if you use Ubuntu 16.04 (xenial) you should not use packages from 17.04 (zesty).
You should find packages installed from zesty (for example with Synaptic in Origin tab), then disable it in /etc/apt/sources.list.
Also I recommend to remove marutter PPA with sudo ppa-purge ppa:marutter/rrutter. Then start over.

Update 2:
Try to find other R packages from zesty with dpkg -l | grep zesty and carefully remove them with apt-get purge. Please update your question with output of ls -alt /etc/apt/sources.list.d/*.list.


Notebook trackpad doesn't work on Ubuntu 15.10

It looks like kernel 4.2 does not support this touchpad.

You have some options to get it work.

First try to boot with Ubuntu 16.04 image LiveUSB. If touchpad works with it, it means that kernel 4.4 does support the touchpad.

It this case you have one of 3 options:

Install Ubuntu 14.04 and update kernel to 4.4 by

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

Install Ubuntu 16.04 beta. It will be released in less than a month.
Install a mainline 4.4 kernel from Ubuntu mainline PPA.


How to List All Virtual Hosts in Apache Web Server installed on Ubuntu 20.04.2 LTS?

On Ubuntu this version works best and produces a list of all sites enabled and their aliases
 sudo apache2ctl -S


Custom session: Window does not capture full screen area by default. 12.04

This is a tricky one, I had a similar problem, when trying to have only a ncurses based interface on a time tracker pc, the problem for me was that when no window manager is present, normal X Window applications behave oddly.
Here's my proposal:

Install ratpoison window manager sudo apt-get install ratpoison

Unbind keyboards that shows a menu or allows you to execute terminals or commands, putting this in $HOME/.ratpoisonrc the home being the user that will run the kiosk mode
unbind c
unbind C-c
unbind exclam
unbind C-exclam
unbind period

Instead of calling directly to google-chrome, put a script like instructables' link you mentioned

[Desktop Entry]
Encoding=UTF-8
Name=Kiosk Mode
Comment=Chromium Kiosk Mode
Exec=/usr/share/xsessions/chromeKiosk.sh
Type=Application

On the script put this (remember to make it executable)

#!/bin/bash
ratpoison &
xscreensaver -nosplash &
while true; do chromium-browser --kiosk http://google.com; sleep 5s; done

Worked for me, with Ubuntu 12.04 and chromium.


I can't change the mirror in the software center

After you get to the country you want, you need to click on the little arrow to the left of the country name. That will open up the list of servers available int that country.

Here is a screenshot of the United States list opened, note the arrow on the left is pointed down as the list has been opened.

All you would need to do is to click on one of the listed servers and then box will be enabled and you can choose the server.

The Software Sources has a built in feature that will test all the servers and select the best one for your location.  That will allow you to use the best server for you without having to test everyone manually.  If you look at the upper right hand corner of the screenshot, you will see the button Select Best Server.  Just click that and the test will start and find you the best server.  This can take a few minutes so let it finish.

After either method of changing your server, you will need to update your package list with the info on the new server.  To do that just open a terminal and run:

sudo apt-get update


Tool to shutdown system when there is no network traffic

There are a few ways to go about this, I have written a very simple bash script that you can use to monitor the speed in KB p/s for a desired interface, when the download speed drops below the minimum (which you can set), then your computer will be shutdown.

Some things to keep in mind here are:

This is a bash script that I put together quickly, there are many different techniques to achieve the same result, however this is an easy one to understand and implement.
You will need to execute the bash script from cron as root, that means you need to open cron as the root user and add a cronjob as desired. The reason it needs to be in root's cron is that you will not be able to shutdown your computer from the command line without being root, and you cannot use sudo while you are away from keyboard. There are ways to get around it but I am trying to keep it as simple as possible.
I use a linux tool called ifstat, so you will need to install this otherwise the script will not work:

sudo apt-get install ifstat

There are 2 options that you can modify in the script below, the INTERFACE and MIN_SPEED. The INTERFACE needs to be set to the interface you are using to download, either eth0 for your wired device or wlan0 for you wireless device, you can use the command ifconfig from the command line to see what interfaces you have available.
The MIN_SPEED is set as desired, in my example I set it to the number 5, which means that if my download speed is less than 5 KB per second then my computer will shutdown.
Lastly, to improve on the script we could use a while loop and check the download speed over a specified period of time and if the average is less than the minimum we would shutdown, as well as run the script as a service, this is a more accurate way of approaching the problem and I will be happy to help you with that if this is the route you would like to follow.

Copy and paste the below code into a file in a directory of your choice on your computer, example i_speed.sh, then, very important, make the file executable, to do this from the command line, if your file was called i_speed.sh as follows:

    chmod +x i_speed.sh

Now you can sudo -i to root and setup your cronjob to call the script at time intervals that you desire.

Code to copy and paste into a file called i_speed.sh:

#!/bin/bash

# Bash script to determine a network interfaces current transfer speed and
  shutdown the computer if the current transfer speed is less than MIN_SPEED

# Set INTERFACE to the network interface you would like to monitor
INTERFACE='wlan0'

# Set MIN_SPEED in KB per second that network interface (INTERFACE) speed
  must be larger than, if speed falls below this number then computer will shutdown.
MIN_SPEED=5

# This is where the work get's done:
CURRENT_SPEED=`ifstat -i $INTERFACE 1 1 | awk '{print $1}' | sed -n '3p'`
INT=${CURRENT_SPEED/\.*}

if [ $INT -lt $MIN_SPEED ]; then
    shutdown -h now
else
    exit
fi

UPDATE

I wrote a small python program as an update to the bash script above which allows you to set additional variables such as retries and interval to get an average min speed over a specified period of time. Further updates will include a GUI for this program. Just copy and paste the code below into a file, example download_monitor.py then run it as follows sudo python download_monitor.py

## Download Monitor v0.1 - March 2012

# Set the interface you wish to monitor, eg: eth0, wlan0, usb0
INTERFACE = "eth0"

# Set the minimum download speed in KB/s that must be achieved.
MINIMUM_SPEED = 15

# Set the number of retries to test for the average minimum speed. If the average speed is less
# than the minimum speed for x number of retries, then shutdown.
RETRIES = 5

# Set the interval (in seconds), between retries to test for the minimum speed.
INTERVAL = 10

import os, time
from commands import getoutput

def worker ():
    RETRIES_COUNT = RETRIES
    while True:
        SPEED = int(float(getoutput("ifstat -i %s 1 1 | awk '{print $1}' | sed -n '3p'" % INTERFACE)))
        if (SPEED < MINIMUM_SPEED and RETRIES_COUNT <= 0):
            os.system("shutdown -h now")
        elif SPEED < MINIMUM_SPEED:
            RETRIES_COUNT -= 1
            time.sleep(INTERVAL)
        else:
            RETRIES_COUNT = RETRIES
            time.sleep(INTERVAL)

worker()


Am I using more than 4 GB on my 32-bit system?

If it's showing that, you're probably using PAE. It's enabled by default.

Why is it 5.8GB instead of 6GB? Do you have onboard graphics? It's probably reserving a chunk.


need help creating an if statment that will work for my purpose in .bashrc

What seem to be a working solution is using the curl command suggested by glenn jackman and the address suggested by Terrance. I haven't run into the hang yet so I don't know if it will through any errors but it seems to work well.. the new line is now

curl --silent --output - --connect-timeout 1 --max-time 2 http://icanhazip.com/

which seems to be working .. I have launched the terminal 10 times without a hang or an error. I think you guys did it again... Man I wish where was something like this forum for Windows... lol you go on their forums and ask a question .. you get a non related  'form letter response' and then nothing.

You guys are great .. I think this has now got the terminal shell just the way I want it and no hanging .. lol I disabled the external IP thing for a while because of the annoyance but now I can have it back again :D

If anyone decides to use the .bashrc I linked  lol its slightly plagiarized but I don't remember the original person I got it from when the script first started out but I have been playing with it ever since.. it was like in 2010 or something.

The file also includes a link to .bashrcc that you can create where you can add  commands and aliases without having to put them in the main file. This was done because I sync my bashrc across several computers and there are times where I want a special alias for one computer but I don't it available on all the PC's that are synced to the file. The .bashrcc will allow me to add it for one user only. Also remember that you will have to change the weather function with your zip code or you will be viewing my area's temps :D


Nikon WiFi transfer protocol (MTP, Hacking, Ports)

Take a look at http://www.testcams.com/airnef/ ...

Haven't used the GUI but works for me to transfer pictures from my Sony RX100M3 to my Synology. It's been written for Nikon so should definitely work for you.


What turned out to do the trick was to disable "secure booting" then purge nvidia and reinstall it using sudo ubuntu-drivers autoinstall.

Now it works like a charm!


How to use fglrx proprietary driver for dual ATI Radeon HD 5670 CrossfireX in Ubuntu 14.04?

(start rant)
I post my solution here if someone stumbles on the same quite annoying issue. This bug has many implications for the efficient running of your Trusty Tahr desktop. If you work at Ubuntu, I am very perplexed as to why your team won't solve this. Many people have this issue, and your LTS, an otherwise fine release, is atrociously slow, unstable and buggy for this issue. (end rant)

This fix for me, it meant better --- no, strike that--- usable --- running of the browsers we all commonly use--firefox and/or chrome.

Follow instructions in this page and install the linux-headers-generic and fglrx-updates and fglrx-amdcccle-updates. Then, you run in to the errors stated in this original question. At this point, you are ready for the simple fix (notwithstanding the fact that it took a week for me to get here-obviously, the fix is obvious once it is stated simply):

sudo ln -s /usr/lib /usr/lib64
sudo mkdir -p /usr/X11R6/lib64/modules/dri/
sudo ln -s /usr/lib/dri/fglrx_dri.so /usr/X11R6/lib64/modules/dri/fglrx_dri.so

When you are done, you should be able to check the following:

root@mysillymachine:/usr/X11R6/lib64/modules/dri# ls -liat
total 8
4198453 drwxr-xr-x 2 root root 4096 Aug 27 10:19 .
4198454 lrwxrwxrwx 1 root root   25 Aug 27 10:19 fglrx_dri.so ->  /usr/lib/dri/fglrx_dri.so
4198452 drwxr-xr-x 3 root root 4096 Aug 27 10:19 ..


Can I convert a Ubuntu 14.04.1 64-bit server to an ESXi 5.5 VM?

Are you trying to hot clone? If so, you need to use VMware vCenter Converter Standalone 4.0.1 I believe. First create an account at my.vmware.com, then search for "VMware vCenter Converter Standalone". On the "License & Download" tab at the bottom of all the 5.x downloads is 4.0.1.

I just tried what you're attempting. I found 4.0.1 to be the last supported version for Linux. I installed it on my Ubuntu 14.04 laptop (that also has VMware player). To run after installing, issue:

sudo /etc/init.d/vmware-converter start

I tried to do the P2V but got stuck on the "destination" section during conversion -- it kept asking me for credentials but didn't realize it was asking for an ESXi host somewhere else on the network to "accept" the VM. I never did succeed though because I don't have hardware support for an ESXi host, and also don't know if I could alternatively use VMware Player on my laptop to "accept" the VM.

I am not 100% positive on my answer I'm just giving feedback because I just did this last week. Or tried to anyway.

See diagram about hot cloning Linux on top of page 15 here, 4.0.1 User guide: http://www.vmware.com/pdf/converter_standalone_guide401.pdf


Problem with VHD mounting: "a single mountpoint must be specified"

You're missing the -f option. It also looks like vdfuse needs to be told what the type of file it is.  The command should be:

vdfuse -r -t VHD -f "/media/mike/DATA/VM-VHD/SGOS.vhd" ~/Test

The -f specifies the file that you're mounting. The -t means what type, since you're using VHD, that is what is specified.

Also make sure that you uncomment the line for "user_allow_other" in /etc/fuse.conf.  To uncomment just paste the line below to a terminal:

sudo sed -i 's/#user_allow_other/user_allow_other/' /etc/fuse.conf

the # is used to comment a line in a file and the sed line above removes the # from that line.

In my example below I am showing step-by-step of how I am able to access the files contained within my VM:

terrance@terrance-Linux:~$ vdfuse -r -t VDI -f "/home/terrance/VirtualBox VMs/Kubuntu 16.04/Kubuntu 16.04.vdi" ~/Test
terrance@terrance-Linux:~$ cd Test
terrance@terrance-Linux:~/Test$ ls -al
total 41939973
dr-xr-x---  1 terrance terrance          0 Jun  9 14:10 .
drwxr-xr-x 61 terrance terrance        4096 Jun 10 16:11 ..
-r--------  1 terrance terrance 21474836480 Jun  9 14:10 EntireDisk
-r--------  1 terrance terrance 17178820608 Jun  9 14:10 Partition1
-r--------  1 terrance terrance  4292870144 Jun  9 14:10 Partition5
terrance@terrance-Linux:~/Test$ sudo mount -o loop Partition1 /mnt
terrance@terrance-Linux:~/Test$ ls /mnt
bin   dev  home        lib    lost+found  mnt  proc  run   srv  tmp  var
boot  etc  initrd.img  lib64  media       opt  root  sbin  sys  usr  vmlinuz

Hope this helps!


For the general case you can stop (suspend a process or process group as below):

Control-Z is
kill pidnumber -SIGSTOP
to continue:
kill pidnumber -SIGCONT

Alternatively, to suspend an entire process group:
kill -groupnumber -SIGSTOP
and
kill -groupnumber -SIGCONT

Of course if you suspend a process with some element that is timed, it may not continue properly. In the use case mentioned, the repository server is timing data transfer acknowledgments, it can time-out the transfer because your client has 'gone away' or slow it down because there is 'network congestion'.

I certainly wouldn't suspend update-manager while it was updating my packages, either.


How to prevent the font size slider for gnome to mess up KDE fonts?

i used to have KDE and gnome installed together untill i started to get similar problems.
it is UNWISE to run to different display managers with the same user. you should create yourself a different user for every environment.


Kludged it via Netbios GitHub: Installing NETBIOS hostname resolution on Ubuntu
That was after trying lots of other search results.  The router for the new ISP cannot be persuaded to return data from its internal DHCP list.
Note: This is practical only if all the Ubuntu machines run Samba.


Ubuntu SDK: Template HTML5 app shows warning

I'll try to give additional details about the other messages:

"unity::action::ActionManager::ActionManager(QObject*):
Could not determine application identifier. HUD will not work properly.
Provide your application identifier in $APP_ID environment variable."

This one is harmless and are related to the HUD as you can see. The HTML5 app launcher uses the HUD as the backend for some of its exposed APIs. The HUD requires some application context data to be set to work properly. Those info are usually set on touch by the environment as an application is started, but in the context of qtcreator it is not. You can set it yourself if you manually start the application, e.g "APP_ID= ubuntu-html5-app-launcher --www=www"

"Cannot create CordovaView object.
Falling back on the plain Webview backend."

Again this is more information than warning nothing to worry about. As you might know an HTML5 application can use the Ubuntu Javascript APIs and also the Cordova APIs. By default the Cordova APIs are not available, you have to enable them (some runtime libs will be additionally packaged in your click app). The runtime backend is internally different whether you use cordova or not. This message just tells you that the cordova APIs are not availble and you will run with the default runtime that "only" packages the Ubuntu Javascript APIs,

"** (ubuntu-html5-app-launcher:16912): WARNING **: Unable to register app: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid application ID"

This warning is the same as the first one, the absence of APP_ID environment variable (usually set by the environment) prevents some minor internal elements from working,

Hope it helps,


Ubuntu 20.04 ACPI errors after suspend: cannot release Mutex

Solved: I found out that it was a problem linked to the "Power On Lid Open" option. You need to disable it in the BIOS.


When the domain[IP]: No route to host error is mentioned in your submitted error report, I think this means that the host is unavailable. I am not a pro, but I think that probably suggests that the mail server is down, so I should try resending it.


Removing the Unmount Partition Disks Prompt During Unnattended Ubuntu Install

This is similar to the line of thinking from another answer but with a complete tested code example.

I was running into the same issue and finally by luck happened upon a set of slides that allowed me to automate this and there was an accompanying code repository with the full preseed file. https://github.com/uweplonus/adia-install/blob/master/initrd/preseed.cfg#L3

Many people suggest using preseed/early_command umount /media/* but this hasn't worked for quite some time due to the timing of when the preseed portion runs compared to the partitioning.

The correct way to do this is to add the following anywhere in your preseed file that is referenced by the boot command.

USBDEV=$(list-devices usb-partition | sed "s/\(.*\)./\1/");\
BOOTDEV=$(list-devices disk | grep -v "$USBDEV" | head -1);\
debconf-set partman-auto/disk $BOOTDEV;\
debconf-set grub-installer/bootdev $BOOTDEV; \
umount /media || true;


'Cpu frequency control' provides what you want, so you should install indicator-cpufreq package.

sudo add-apt-repository ppa:artfwo/ppa

sudo apt-get update

sudo apt-get install indicator-cpufreq

And Launch "Startup Applications"

Then click "Add" to add a new startup application. In command area type indicator-cpufreq , in name area type whatever you want.

Logout and then login or restart your computer.
Also, you can launch this indicator in terminal with the same command.

Now, you can choose cpu freq for power save.

Original Resource: http://handytutorial.com/cpu-frequency-scaling-indicator-on-ubuntu-12-04-12-10/


How do I can install libxcb-render-unil0?

Had the same problem with the missing dependency, but on a 32-bit system.
Here is the missing file> http://packages.ubuntu.com/natty/i386/libxcb-render-util0/download

Also, you might want to check this for further insrtructions.


There are images available for the Raspberry Pi 3 for Ubuntu Core 16, they are in beta quality and will be released soon:

Announcement: https://lists.snapcraft.io/archives/snapcraft/2016-September/001166.html
Images: http://cdimage.ubuntu.com/ubuntu-snappy/16.04/current/


Docker & Ubuntu: How to permanently install software?

You need to create a Dockerfile and script your own container from an existing image.
The syntax goes like this.
FROM UBUNTU:LATEST
RUN <some command like apt install>

You will need to RTFM to understand it fully, because there is more to it then that. Best way to learn, take a look at any project which is present both on dockerhub and github. This way you can see the "finished product" and also the way the container was made.
HTH a little bit,
s1mmel
Here is a live example. This is the Dockerfile from my only Repo I build some while ago. A Minecraft papermc server. This will not get you all the way, but for a starter I think it is good enough.
Take a look


You can try using PlayOnLinux.

PlayOnLinux is a graphical tool supplementing Wine.

To install PlayOnLinux on Ubuntu follow the below steps:

sudo wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -

Add playonlinux repository and install it

sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

In case you get an error, do this  else skip to next

sudo apt-get install curl p7zip-full p7zip-rar

Now run it

sudo playonlinux

iTunes on Ubuntu

Download iTunes
Navigate to the already open PlayOnLinux window and click on Install a non-listed program as shown below.

Browse to the iTunes setup file.

Click on Next and follow the installation instructions

source


How to avoid certain directory or files while copying from main directory?

One way is to run this from within the main folder:
find -maxdepth 1 -type d ! -name "dir" ! -path . -exec cp -i -r {} /path/to/destination/ \;

Change dir with the name of the directory to exclude.
Change /path/to/destination/ with the path to the destination directory.

Another way is to add a custom function like this:
mycp () {
        for f in "$1"*
        do
        grep -qwv  "$3" <(echo "$f") && \
        cp -i -r "$f" "$2"
        done
}

to your ~/.bashrc then source the file or just close and reopen your terminal.
You can then use it like so:
mycp "/path/to/source/" "/path/to/destination/" "dir"

Change /path/to/source/ with the path to the source directory. It must end with a trailing /.
Change /path/to/destination/ with the path to the destination directory. It must end with a trailing /.
Change dir with the name of the directory to exclude.

Bash pattern matching with extended globbing way (be careful):
Bash pattern matching with extended globbing is an option.
I only added this because @bac0n mentioned it in the comments. This kind of bash pattern matching requires enabling extended globbing which is not enabled by default... simple globbing is enabled by default but it wont work with this... I do not like to advise new contributors/simple users to enable and use extended globbing and especially in file operations.
Extended globbing is not by any means in its nature more dangerous than simple globbing. However, users might have scripts and bash code that they might have originally copied and pasted from the Internet and have some extended globbing patterns in them... those might behave differently when the user enables extended globbing and this might be destructive if those scripts/codes deal with file operations. An experienced user should be able to note the difference, but a beginner might not.
To use it anyway, you need to enable bash's extended globbing feature first like so:
shopt -s extglob

then use cp like so:
cp -i -r source/!(name of directory to execlude) destination/

For more information, please see Bash Extended Globbing


Assuming the numbers are newline separated, with awk:

awk '! ($0 % 2)' file.txt

To save the output in a file:

awk '! ($0 % 2) {print >"even.txt"}' file.txt

Example:

% cat file.txt
1
2
3
4

% awk '! ($0 % 2)' file.txt
2
4

% awk '! ($0 % 2) {print >"even.txt"}' file.txt

% cat even.txt
2
4


How to install linberry for Blackberry Bold?

In the software centre> search "blackberry" see the results below
This is what Ubuntu offers

you can download LinBerry which is a third-party application from here: http://linberry.webcindario.com/index.html

I did not see any installation instructions only to sudo dpkg --force-overwrite -i nombre_del_paquete.deb


How to find files that user and group have the same permission

Note: your question is unclear about whether you want to find files with the same user and group permissions, or with the same user and others permissions. Based on your mention of positions 234 and 567 in the mode string, I am assuming the former here - although the same methods may easily be adapted to the latter.
If you wanted to find files whose user, group, and others (ugo) permissions are all the same, that's fairly straightforward using the find command:
find . -type f \( -perm 000 -o -perm 111 -o -perm 222 -o -perm 333 -o -perm 444 -o -perm 555 -o -perm 666 -o -perm 777 \)

Unfortunately to do the same for just ug is much more work - you'd need to test all 8 possible o bytes for each pair of equal ug bytes. You could automate that however using bash brace expansion to construct an array of -perm tests:
perms=( $(printf -- '-o -perm %s\n' {00..77..11}{0..7}) )

then
find . -type f \( -false "${perms[@]}" \)

Probably a better approach is to use something that can work with the mode bits arithmetically - for example via perl's stat function:
find . -type f -exec perl -le '
  foreach (@ARGV) {print $_ unless (((stat)[2] & 00070) << 3 ^ (stat)[2]) & 00700}
' {} +

which extracts the group and user mode bits and XORs them - the result being zero (false) if they are the same.

If you're set on doing it by parsing a textual representation of the file mode, a slightly more robust way than parsing the output of ls might be something like:
find . -type f -printf '%m\t%p\0' |
  gawk -v RS='\0' 'match($1,/([0-7])([0-7])/,m) && m[2] == m[1] {print $2}'

(you could use plain . instead of [0-7] in the regex, but I feel that the latter makes the intent clearer).


Locale settings not working after upgrading to 14.04

I would suspect that the language Norwegian Bokmål is not installed. If so, please go to System Settings -> Language Support and install it.


How to append just hidden files names in a directory to a file?

This command :

find /path-to-directory -name '.*' >outpu-tfile

Change directory name and the name of output file

This will save only the hidden files of directory to output file .


18.04 Ubuntu Operating System does not give me a driver for Dell Mono B1160 Printer

I had exactly the same problem and here's the solution:

Download the driver archive from here:
Unpack it and go to ~/Downloads/B1160_B1160w_UnifiedLinuxDriver_1.01/cdroot/Linux
Execute the installation script sudo sh install.sh
Remove all printers from the system, including the one that was added during the installation.
Click Add new printer and choose Dell B1160 Mono Laser Printer in your printer driver settings
Enjoy


How Ubuntu kernel (3.12) did not trigger realtek 8169 issue?

You did not state which version of ubuntu works for you, so I suppose it is the kernel which come with Saucy (13.10).

To see the kernel tree go to http:kernel.ubuntu.com, then choose git web. In the search box  put saucy and you will have a list of saucy kernel-related repository.

In https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide you see that the official kernel repo for Saucy is ubuntu-saucy.git. Choose this repo in the above list and then you can browse it.

For example, putting "r8169" in the commit search box you have something like that:

Now you can browse here and see which patch(es) you need. Btw, if you have a launchpad issue, search for it; normally patches that fix some launchpad issue have the launchpad issue referenced in the commit, like this one.

If you install git and take a copy of the tree(s) in your computer, git diff  is normally powerful enough to show you what is changed in the directory of the driver from two different versions. So you probably will be able (if you have the Ubuntu tree based on 3.12 --- don't know which one is) to restrict the commit diff to the two versions you're interested to.


Keyboard not working properly in terminal

By default, Ubuntu will install vim-tiny, a bare-bones version of vim. When you type vi in the terminal, it will start this minimal vim in vi compatible mode by default. From a normal vim user's standpoint, this is horrible, since vi compatible means backspace and all the normal vim behavior will behave in the original vi manner.
so, install vim by typing the command :

sudo apt-get install vim

problem solved !! enjoy programming  ;) :)


Conceptual Overview

I'm not familiar with Paperwork, but as a general overview, here's what is probably going on:

Node.js is used for writing server-side Javascript, however, more generally it's used to run Javascript in an environment outside of the browser. Since this particular project seems to be using a PHP/nginx backend, Node is probably just being used for Javascript-based tools that build the frontend.

NPM is used to manage third-party packages in the Javascript world. Running npm install with no additional arguments will try to find a package.json file in the directory the command is run from. It will read a list of dependencies from that file and install them in a folder called node_modules.

Maybe a fix?

From the output you pasted above, it looks like you're running npm install from your /var/log/nginx folder. Since that directory doesn't have a package.json file, npm is confused and doesn't know what to install.

From those directions, the npm install -g gulp bower will do a global (the -g part) install of the gulp and bower tools.

The next step (npm install) is probably the one that's throwing you off. Somewhere you cloned git clone https://github.com/twostairs/paperwork.git. You'll need to cd into the paperwork directory and npm install from inside that folder.


Why will upgrading Ubuntu cause problems?

No, it is not 12.04 with just added hardware support and some cool new stuff. Ubuntu LTS versions are designed to be very stable, and long lasting. LTS versions have a Complete Polish, and are the least likely to have any problems or difficulties running.

The versions between LTS are like "testing" versions. The developers are trying out different software, and Ubuntu 12.10 has changed software a lot. For example 12.10 comes with Python 3 instead of Python 2.7. This has a large impact on the programs that may or may not run. The Ubuntu versions between LTS are like the Ubuntu playground- they try out different things, and do a lot of testing, so that when the next time for an LTS comes (Ubuntu 14.04), then hopefully they will have something that works great again.

http://en.wikipedia.org/wiki/Ubuntu_%28operating_system%29


updated ubuntu 12.04...wireless is not working after that

Please obtain a temporary wired ethernet connection, open a terminal and do:

wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.6-1-snpc.tar.bz2
tar xvf compat*
cd compat-wireless-3.6.6-1-snpc
sudo -i
./scripts/driver-select ath9k
make
make install
modprobe ath9k
exit

Your wireless should now be working.


Is there an online documentation repository for ruby like it is for Matlab?

ruby-doc

1st result on Google. Seems well organized from what I saw.


Try installing the package sox by using the terminal. Open a terminal with Ctrl-Alt-T and use the command:

 sudo apt-get install sox

The description of the packages shows this info:

  Format types that can SoX can determine by  a  filename  extension  are
         listed  with  their  names  preceded  by  a dot.  Format types that are
          optionally built into SoX are marked `(optional)'.
   ......
   ......
   ......

  .aiff, .aif (also with -t sndfile)
            AIFF  files  as  used on old Apple Macs, Apple IIc/IIgs and SGI.
                SoX's AIFF support does not include multiple  audio  chunks,  or
                the  8SVX musical instrument description format.  AIFF files are
                multimedia archives and can  have  multiple  audio  and  picture
                chunks  -  you  may  need a separate archiver to work with them.
                With Mac OS X, AIFF has been superseded by CAF.

Hope this will fix the problem. You may also try using kid3 package. Download and install it from here


I can't find JavaFX jar files on after running apt-get install. I don't even think they got installed

I'm not sure how but it finally installed. Here's the link to the answer that I found:

Openjfx is not installing

The answer is the one by laurenmurphyx64. Here are the commands that I used:

apt purge openjfx
apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2
apt-mark hold openjfx libopenjfx-jni libopenjfx-java


You have a space in your options.  All of the -o options should not have any spaces between them.

Hope this helps


How to format the locked usb flash drive using GParted?

First unmount the USB, Type in Terminal:

sudo umount /dev/YOUR_USB

Where YOUR_USB is the Filesystem, to get it Type in Terminal:

df

Or

df /path/to/your/usb

After the umount you should be able to format the USB using GParted.

Here is an example:

$ df /media/bg/120GB/
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sdb1      115247656 22539168  86831140  21% /media/bg/120GB

$ sudo umount /dev/sdb1


Disabled domain remains active. Varnish:80, Nginx:8080

The nginx serve any subdomain automatically.
To disable this edit vhost file as described here.


If you don't use KDE you can remove the package with
sudo apt-get remove update-manager-kde
and run the update-manager again.


Live data stream from Logitech webcam c110

Install ffserver to stream over HTTP:

apt-get install ffmpeg

Configuration:

Port 8090
BindAddress YOUR_IP_ADDRESS
MaxHTTPConnections 30
MaxClients 20
MaxBandwidth 2000
CustomLog -

<Feed cam1.ffm>
File /tmp/cam1.ffm
FileMaxSize 10000K
ACL allow 12.34.56.78
</Feed>

#-----
# Windows Media Player
#-----
<Stream cam1.asf>
Feed cam1.ffm
Format asf
VideoCodec msmpeg4v2
VideoFrameRate 15
VideoSize vga
VideoBitRate 320
VideoBufferSize 40
VideoGopSize 15
NoAudio StartSendOnKey
</Stream>

<Stream stat.html>
Format status
ACL allow 12.34.56.78
</Stream>

Assuming your webcam is a Video4Linux device at /dev/video0, give the following command:

ffmpeg -f video4linux2 -i /dev/video0 YOUR_IP_ADDRESS/cam1.ffm

At this point, FFMpeg will begin capturing video from your camera. It'll do the transcoding to the proper format locally and send that off to your server.
Leave it to encode for about half a minute and then hit your server's stream URL using a Pideo Player, in this URL: YOUR_IP_ADDRESS/cam1.asf The player will buffer for a bit and your video will start playing.

You're done.


loginscreen after standby wrong keyboard layout

I understand that you have only the ch layout both system wide and in the desktop configuration, and I can't really explain the behavior you describe.

One thing I would have tried, if I was you, is to open /etc/default/keyboard for editing and change the line

XKBLAYOUT="ch"

to

XKBLAYOUT="ch,us"

and reboot.

That would set the US English layout as an alternative, which makes a keyboard layout indicator show up at the top right of the screen. That way, if you at some point find that an incorrect layout is effective, you can use the indicator to get it right.


sudo tar cvpzf exiting with failure due to previous error

What the messages mean

First, let's look at the messages individually:

  tar: removing '/' from front of names

You told tar to archive absolute paths. By default (unless you pass the -P option), tar stores relative paths, e.g. it stores etc/fstab when you tell it to store /etc/fstab. This helps if you want to untar your backup in some subdirectory (the tar program on Ubuntu does this when you extract as well, so storing the absolute path only makes a difference if you extract the archive on a non-Linux system). You can ignore that message.

  tar: /sys/module/bnep/sections/__mount_loc: file sharnk by 4085 bytes; padding with zeroes

This error is within /sys. Like /proc, the files under /sys are not stored on your disk, they are generated on the fly by the kernel and it doesn't make sense to back them up.

  tar: /home/tom/.gvfs: cannot stat: permission denied

~/.gvfs is a mount point used by GVFS, the component of the Gnome desktop environment that allows access to network filesystems, archives and more. There is nothing to back up here.

  tar: /run/synaptic.socket: socket ignored

A socket is a “meeting place” between clients and a server. There is no data stored there, and the server will create the socket when it starts. Backing up sockets is not necessary, so this message is harmless.

  tar: /var/lib/citadel/data file changes as we read it

That message is what it says on the tin. If a file changes while you're making the backup, you can't necessarily expect to have the latest version of the file.

The state of your backup

Most of these warnings are harmless; you can selectively turn them off.

Rather than exclude the directories you know about, exclude all mount points, so that you'll end up backing up only what's on your disk. If you have several partitions (e.g. if you have a separate /home), make sure to list them all.

tar -czf mybackup.tgz --one-file-system /

I would say that you have a complete backup at this point. Of course, you should test it before you erase your data.

Further advice

Unless you're short on disk space, I recommend cloning your installation so that you can run it directly off the USB disk. (See Moving linux install to a new computer; also How to migrate user settings and data to new machine?)

Unrelated note: there are several typos in your post — “file sharnk” (the actual message is “file shrank”), “file changes as we read it” (the actual message is “file changed as we read it”). You should be copy-pasting those! Not doing copy-paste tremendously reduces the confidence we can have that the situation is as you describe. If your system doesn't normally display messages in English, run export LC_MESSAGES=C first to have error messages in English.


Apache Virtual Host With Dynamic subdomains

Apache interprets its configuration in the order in which it is recorded. For example we put on first place the deny directives and on the second the allow directives.

That you need is to put your virtual host configurations in a correct order. For example place the test virtual host configuration in a conf file named 001-test.myapp.local.conf and the regular virtual host in a file named 002-myapp.local.conf. Or if the both configurations are in one file place the test one first:

$ cat /etc/apache2/sites-available/myapp.local.conf

<VirtualHost *:80>
        ServerName test.myapp.local
        ServerAlias *.test.myapp.local
        DocumentRoot /var/www/test.myapp/web
        <Directory /var/www/test.myapp/web/>
            AllowOverride All
            Require local
        </Directory>
</VirtualHost>

<VirtualHost *:80>
        ServerName myapp.local
        ServerAlias *.myapp.local
        DocumentRoot /var/www/myapp/web
        <Directory /var/www/myapp/web/>
            AllowOverride All
            Require local
        </Directory>
</VirtualHost>

Thus the requests that doesn't match to the first virtual host will fall into the second. Here is how it's working on Ubuntu 18.04 with Apache/2.4.29:

additional information about the demo


You can shutdown by terminal by this command:
sudo shutdown -h now


Boot very slow because of drm_kms_helper errors

This is a bug. To avoid delay you can use workaround. From terminal run:

sudo nano /etc/default/grub

Then add the kernel boot parameter: video=SVIDEO-1:d, so it will look like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=SVIDEO-1:d"

sudo update-grub
sudo reboot


How to disable ALT+TAB preview windows in Cinnamon?

1) Right click in cinnamon panel > settings > all settings

2) In the settings settings window, click in Switch to Advance Mode.

3) Got to Preferences and click in Windows

4) Go to "Alta-tab switcher style" and Choose your favorite option: eg (icon only, icon and window preview etc)

NOTE: by default the option is in "icons and thumbnails". So you can choose "icons only".


UDEV rules for launching scripts when DVD loaded (multiple drives)

You can use string globbing to match multiple values and place holders inside assignment:

SUBSYSTEM=="block", KERNEL=="sr?*", ENV{ID_CDROM_MEDIA_DVD}=="1", ACTION=="change", RUN+="/usr/local/bin/makemkv.sh %k"

For more info see “Writing udev rules”.


Install the package gnome-session-fallback then you can select "GNOME Classic" at the login screen.

Note that this is not Gnome2 but the Gnome3 fallback session. There are some differences to Gnome2, like you need to use Alt-righclick instead of just rightclick to edit the panel.
See gnome-panel is dead, long live gnome-panel for more about the new panel.


One of the neatest programs out there to do just what you are asking is called electric sheep. It works in Unity and Gnome3. If you do a Google search you will learn more about what it .
You need to install xwinwrap and xscreensaver in order for the program to work.Most of the stuff you will read shows it as a screensaver but using xwinwrap it can be set up as a backdrop for your desktop . I pipe it to my big screen from the computer and can sit for hours watching it. Go to the electric sheep website first and then here for specific instructions for Unity or gnome 3 installation.

electricsheep screensaver won't start

After installing electric sheep and xwinwrap this will run it.

xwinwrap -ni  -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/electricsheep -window-id WID


I am trying to write a automated java installation script but it's not working, though commands work in terminal

The immediate solution is to take sudo out of the script and run the script using sudo script-file.

A perhaps better solution is to use Web Upd8's package that takes care of installing Oracle's Java 8 for you, including updating it via apt upgrade when new versions come out.

This can be done in the terminal with:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer


best way to install gnome on headless ubuntu server

The ubuntu-desktop package should provide everything you need to run a gui.

sudo apt-get install ubuntu-desktop gnome


Does Canonical have plans to build UI Toolkit APIs for the D programming language

Why would Canonical? Ubuntu is a community driven operating system and unless Canonical is going to focus on creating apps in D themself QML, HTML5 and C++ will do.

  I hear some community members are set to tackle the Vulkan API once it is released.

So the community should create an API/toolkit for D ;)

dlang.org would be a good place to start. They have DWT (D widget toolkit) and several other tools.