Can I access a Windows 8 crashed partition from Ubuntu?

This probably means you have put your Windows 8 to hibernate and are trying to mount it in Ubuntu, which gives an error message asking you to shut down windows or mount it as a read-only file-system. Since, your windows has crashed, it won't be possible to shut it down. To manually mount it as a read only file-system type the following on the terminal in ubuntu:
sudo mount -r <your windows partition on the device> <mount-path>
in your case, to find out the windows partition, if you don't know what it might be, type
sudo fdisk -l on the terminal. You can make out if you remember the size of the windows partition, it should be of type NTFS. If you have gparted installed in ubuntu, you also see the partitions as below:

And the mount path is usually /media/user where user is your user-name

For example, if you know your windows partition is on /dev/sda2 and want to mount it on /media/user, just type this on the terminal:

sudo mount -r /dev/sda2 /media/user.
This will mount the file system, then go to the folder where it got mounted, and then you can copy the folder you want to by cp -r <source> <destination>


Can't find my bootloader (GRUB) after updating Windows

Replace the HDD references with you particular partition information.

Ok, from grub type ls (hd0,1)/
you should see a file named vmlinuz or linux, and initrd.img

Type linux (hd0,1)/vmlinuz root=/dev/sda1 or linux (hd0,1)/linux root=/dev/sda1 depending on what you found with ls (hd0,1)/, then:

initrd (hd0,1)/initrd.img
boot

Use gparted to check your file system, if it reports an error, then you need to boot from a LiveCD or other media to fix it .... DO NOT attempt to repair a mounted partition.

The following three commands fix many grub boot problems. They run quick so just do all three instead of trying to find which one you need.

For  and EFI system:

sudo install-grub && sudo update-grub && sudo update-initramfs -u`

Reboot and see what you get.


Screen sharing not painting properly on client

The VNC server cannot handle the 3D effects. The VNC client actually controls the desktop, but updates don't come back to the VNC client screen. To get the updates to come back to the client do the following:

On the server side, log out. Now change the session type. After you have entered your user name,  press the wheel in the upper right corner of the login box and choose "Ubuntu 2D" as the session type.

Now when you log back in, VNC clients will see the changes they make. Any session type that disables 3D effects should work.


Can you limit which MAAS nodes can be used as part of a juju environment?

MAAS accepts one constraint: "name" (for the machine's hostname).  Use that to tell MAAS which machine you want it to allocate for you.


Shortcut key to simple textbox to perform Google search

Since Google Desktop stopped working, I've been forced to look for another solution.
Here's what I've done:

Setup

I installed Guake, a drop down terminal that can be triggered by F12.
I installed surfraw, a command-line search program.
I wrote a simple script called g.

The script looks like this; it's not perfect but it seems to get the job done.

#!/bin/bash
# Usage g search-terms
#
# short command designed to perform a google search from the command-line

surfraw -browser=chromium-browser google  $* 2>/dev/null &

Using this approach

To do a quick google search I do the following

F12 to bring up terminal
g search term to perform search
F12 to hide the terminal


Short of a clean install, is there anyway to revert everything back to the original packages and settings?

I actually had to do this a while back (a couple years ago, so excuse the not quite perfect commands) and this is what I did.
First:

dpkg --get-selections > installed.txt

I then happened to have a fresh installation around that I did the same thing on. If you don't have one, you could probably find a list somewhere for your distribution. Then:

sdiff [your install list] [clean install list] --suppress-common-lines > differences.txt
sdiff [clean install list] [differences] --suppress-common-lines > remove.txt

The second sdiff is to allow for default packages you might have removed from your installation. Just wanted to avoid more errors then necessary. The next part is really whatever your favorite method for search and replace is, I like vim so that's what I used.

:%s/install//g

This is because the dkpg leaves the install word after every package in the list, and we don't want that. I also ran a couple more commands in vim to remove excess white space and replace the line breaks with spaces, just to make it a bit cleaner. You then run this file through apt-get remove (add in --purge if you want).
If you want to be extra thorough you can use different cleaners to get rid of crap, and also run the comparison differently so you can add the packages back that you may have removed [from the default package list].
All in all, after I did all that I decided it wasn't worth the effort compared to the relative ease of reinstalling Ubuntu.


Please specify the "name" of the available display to connect, :9 in the case above, and have it defined before running the glxinfo command, something like: DISPLAY=:9 /usr/bin/glxinfo -v -B


Why isn't aircrack identifying my wireless interface?

It has already identified eth1 as the wireless interface (says 802.11). You're on the right track :)


Software Updater - Not all updates can be installed

The problem got solved after running sudo apt-get dist-upgrade.

What does this do?

From apt-get man page:

  dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions
  of packages; apt-get has a "smart" conflict resolution system, and
  it will attempt to upgrade the most important packages at the
  expense of less important ones if necessary. The dist-upgrade
  command may therefore remove some packages.


Why netstat lists xinetd IPv6 TCP listen port, but not IPv4 port?

The IPv6 socket listens also on IPv4, as long there isn't a IPv6-only flag set.


Hybrid iso - can it be created by isohybrid?

Hybrid iso file and program isohybrid

The program isohybrid from the package syslinux-utils converts

an iso file that can be burned to a bootable CD/DVD

to

a hybrid iso file, that can be

burned to a bootable CD/DVD and
cloned to a bootable mass storage device: USB pendrive, USB SSD, memory card, internal HDD, internal SSD ...

It is possible to use the robust cloning method to create a boot drive from a mass storage device (most often a USB pendrive).

isohybrid adds some code near the head end of the iso image in order to make this possible.

Please notice that isohybrid should be used only once. Do not you use it on an iso file, that has already this hybrid feature. Most (but not all) linux distros are distributed as hybrid iso files.

I don't know the history of the word isohybrid, but I have used this tool myself, when I made bootable iso files 'from scratch', and I have used it to convert CD/DVD-only iso files for years. Nowadays I seldom use it, because most iso files that I download are already 'isohybrid' iso files, that boot also when cloned into a USB pendrive.

Links

wiki.syslinux.org/wiki/index.php?title=Isohybrid

wiki.osdev.org/El-Torito

A hybrid disc is something else

The link in your question about 'hybrid disc' is describing something else, not a hybrid iso file. The similar names can cause confusion.


Moving localhost to new directory: 403 Error with permissions set

Add this config in this virtual-host
<Directory "/home/x/Dropbox/Sites">
    Require all granted
</Directory>

so final config will be:
<VirtualHost *:80>
    ServerName localhost

    ServerAdmin webmaster@localhost
    DocumentRoot /home/x/Dropbox/Sites

    <Directory "/home/x/Dropbox/Sites">
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


If the file you are trying to create or edit does not require root privilege, run this:

wine /home/jon/.wine/drive_c/Program\ Files/Notepad++/notepad++.exe

If it does require root permission at all, install the notepad++ with your root account after having been logged in as root (e.g. by executing sudo -s -H), log out, and run:

sudo wine /home/root/.wine/drive_c/Program\ Files/Notepad++/notepad++.exe

But usually, as has been pointed out, running wine applications as root is not recommended since
wine apps rely on wine and the source code of wine apps may or may not be reviewed, meaning
there is an increased amount of risk involved in doing so.


I managed to solve the problem by opening a terminal and typing the following:

 sudo su

 echo "blacklist peaq_wmi" >> /etc/modprobe.d/50-blacklist.conf

After a reboot, everything works fine.


Replacing (not upgrading) Ubuntu 12.04.5 with 14.04

It is quite easy, just boot the 14.04 installation media, choose install, select the linux partitions and mark format in the parttition manager.


Note: It is mainly for grub rescue for the systems having multiple OS but it worked for me. It Needs an active Internet Connection
Run Commands :

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

launch Boot-Repair from either :
the Dash (the Ubuntu logo at the top-left of the screen)
or by typing 'boot-repair' in a terminal
Then click the "Recommended repair" button.
When repair is finished, note the URL (paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and check if you recovered access to your OS.
If the repair did not succeed, indicate the URL to people who help you by email or forum.
Hope It Helps.
Source - : https://help.ubuntu.com/community/Boot-Repair & https://www.youtube.com/watch?v=mFEg4Hbw2kk


I've removed the following packages and now it works.

linux-image-3.5.0-26-generic (3.5.0-26.42)
linux-image-extra-3.5.0-26-generic (3.5.0-26.42)


Is it possible to get/where can I get consumer level paid support

There is something called Desktop Management in Ubuntu Advantage priced $105/year/machine

Source: http://www.ubuntu.com/management/ubuntu-advantage

If you want to know what is included in this price, there is a service description page, checkout Appendix 3 - Desktop support scope details:

http://www.ubuntu.com/legal/ubuntu-advantage/service-description#appendix-3


Thanks to @pilefrocks, the problem is with Pepper Flash. Disable this plugin from the about:plugins (type in Chrome's address bar and click "details" in upper right corner) and enable the Adobe's Flash Plugin. Hope this helps someone with the same issue.


This depends on whether your container is running systemd or sysV or upstart.

Valid choices at this point are

/etc/init.d/nginx restart

and

systemctl restart nginx


Cannot Install Ubuntu - dump_stack+0x45 (?)

Do you see the Grub2 boot menu or does it crash without showing it?

This is some newer Intel CPU and Nvidia card I assume.
In my case, I was able to boot Ubuntu Live CD/USB and install it. But on restart I would get stuck on black screen seeing same as you.

I had this issue when installing and NOT clicking on "Download updates while installing". Also check your BIOS /UEFI settings, if the machine is new, maybe it has UEFI Bios. Disable "Secure Boot" and set the boot mode to "Legacy".

After I changed this and reinstalled Ubuntu clean, the problem was solved.

Try it and report ;)


Mouse works but clicks are not registered

Workaround:

I tried almost all desktop environments and KDE Plasma was the one that finally worked properly. No more click/focus problems.

Ps. this desktop GUI feels really nice.


Network devices unmanaged after resume from hibernation in Ubuntu Gnome 13.10

I'm having the same issue. killall NetworkManager is a workaround you can use.


You should be able to change the permissions (by terminal on the machine or over SSH) by running this so that users other than root can access it:

sudo chmod -R 757 /var/www

or this so that it is owned by your user (which should be defined by $USER):

sudo chown -R $USER:$USER /var/www

You need to do this as only the owner+group can read, write and execute in /var/www, but other users can only read and execute - including the user you are using to try and the folders.

For more info, look at man chmod and man chown


How to share folder with Windows 10 guest using virt-manager (KVM)?

You can not add a shared folder in virt-manager like it is described in your article because the filesystem passthrough doesn't work well with a windows guest.

To solve your problem you have several options:

You can share a folder in the local network at your linux wirt system via SAMBA and access it over the windows filesystem directly.
You can use spice-webdav to share a folder like it is described in this article from Guy Rutenberg. This is not recommend for transferring large files.
If you only want to transfer data one or two times insted of having a permanent shared folder you can pack the data in you wirt system into a .iso file and add it in virt-manager as a disc to access it in the windows guest system.


Centre, left and right align text in GIMP

Text alignment can be set in the "Tool Box" for the text tool:


From the Upstart cookbook (steps 9-11):

  Since the start on condition for the rc-sysinit job is:

start on filesystem and net-device-up IFACE=lo

  Upstart will then start the rc-sysinit job.

  The rc-sysinit job calls the telinitcommand, passing it the runlevel to move to:

telinit 2

  The telinit command emits the runlevel(7)event as:

runlevel RUNLEVEL=2 PREVLEVEL=N

So, the runlevel is emitted once the filesystems are mounted and the loopback device is up.

To dig up more information, read the Upstart cookbook (completely, not bits and pieces).


Configure mouse speed (not pointer acceleration!)

KDE has not built this into its control center yet, but you can use xinput from the command line. First, run xinput list to find the device number of your mouse:

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=10   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=9    [slave  keyboard (3)]

On my laptop, the device id I want is 10 (SynPS/2 Synaptics TouchPad). On your system, you will have to decide which device is the correct one. Next, run xinput list-props <your device id> to see the current settings for that device:

$ xinput list-props 10
Device 'SynPS/2 Synaptics TouchPad':
    Device Enabled (144):   1
    Device Accel Profile (266):     1
    Device Accel Constant Deceleration (267):       2.500000
    Device Accel Adaptive Deceleration (268):       1.000000
    Device Accel Velocity Scaling (269):    12.500000
  [ many more settings omitted ]

The property you are interested in is "Device Accel Constant Deceleration (267)". To slow your mouse down, the value must be increased by running xinput set-prop <your device id> <property id> <value>:

$ xinput set-prop 10 267 5.0

In this example, the value is increased from 2.5 to 5.0 and the mouse moves at half-speed.


How can I run sudo hidd --search without a password?

You can run it without a password by editing the /etc/sudoers file as you mentioned.  One step further would be to append alias hidd='sudo hidd' to your  ~/.bashrc file.

I don't know of any other way besides sudo.

If it needs root to run, I do believe groups won't help you.  However, if it has a daemon running as root [Like wicd], groups might help you out, but I would tend to doubt it.


Error trying to install wine in Ubuntu 14.10: missing or conflicting packages

Please try running sudo apt-get -f and/or sudo apt-get update followed by sudo apt-get dist-upgrade and - if no errors occured - try installing wine again and inform us what happened. Greetings!


It is possible to add password show in zenity linux


hook failed: "shared-db-relation-changed" when using OpenStack in the same system as Juju/MAAS

Using --to flag without containerization is a really bad idea. We've likened this "Hulk Smashing". Basically you're layering a ton of services on top of each other that all expect to own the machine.

So, what can you do to achieve isolation and still keep everything on one machine? Containerization!

The --to flag has a finesse about it which allows you to do co-location without the potential for catastrophic collisions. --to supports a syntax like --to lxc:0 and --to kvm:0 which will place the service in containers on the machine listed. Almost all the charms in the OpenStack deployment can be safely placed in LXC (or KVM) containers, with the exception of Ceph and nova-compute. Nova-compute because it in itself will provision VMs (and KVM inside LXC is weird) and Ceph because it needs to own disks. You can do an OpenStack deployment without Ceph so that's not a problem and you can nest KVM so nova-compute on KVM to create KVMs (or LXC) should work.

At this point it's all about performance and you won't really get a lot of that with this setup. It should, however, be enough to pilot the process.


Installing ubuntu 13.10 64 bit with windows 8.1 32 bit?

If your computer is a 32-bit computer it's perfectly fine. Ubuntu will run just fine along with windows 8.


It's propably your gpu card that's getting hot. Ubuntu uses the open-source radeon driver for the amd cards. It's a relatively good driver but it doesn't support automatic power-management and so your car is working full-power unless you set a power-level yourself.

Since you have a good laptop and want to fully take advantage of your hardware, I would suggest that you install amd's catalyst proprietary driver.

system settings--> Additional-drivers and select ATI/AMD proprietary FGLRX graphics drivers. Once the installation is complete you must restart you computer in order for the driver to be activated.


Sorry to hear that you're experiencing a misbehaviour in Ubuntu One.

You shouldn't have conflicts in Ubuntu One if you're using only one machine (and not touching the files through the web interface, of course). Currently we don't know about any bug about this situation if your system is fully updated (we had bugs about this).

If this is happening to you for files that previously were ok, we may have a bug that we don't know about! These kind of situations are very difficult to debug, so we normally ask for logs in TRACE mode.

So, the best way to continue with this and help us to find the reason of the problem you're experiencing is to put the logs in TRACE mode, and if this happens again, open a bug in the following URL and attach the logs there:

http://bugs.edge.launchpad.net/ubuntuone-client/+filebug

Here are instructions to put the log in TRACE mode:

stop the syncdaemon client ("u1sdtool --quit") and be sure it's fully stopped ("ps -eaf | grep ubuntuone-client" should give you nothing).
put a file named syncdaemon.conf  in your $HOME/.config/ubuntuone directory with the following information:

[logging]
level = TRACE

restart the client and keep it using it normally.

To collect the logs just zip your $HOME/.cache/ubuntuone/log/ folder.

Thanks for your time and help!


How do I share a folder on a NTFS partition over the network?

After a bit of searching, I found the solution myself:

First, I had to give myself the ownership over /dev/sda4, and I had to give group and others read and execute permission. I did that by changing the partition entry in /etc/fstab.

To do that, I had to know my uid and gid. So the first thing I did was writing the following command in a Terminal:

id $USER

This will give an output like this:

UID=1000(myname) GID=1000(myname) groups=1000(myname),4(adm),24(cdrom), ...

So now I knew that both my uid and my gid were 1000.

Do you already know the name of the NTFS partition? If not, type this command in a Terminal:

sudo blkid

and write down the NTFS partition on a piece of paper.

Now, to change the permissions, I edited /etc/fstab with the nano text editor. So, the next command you have to type in a terminal is:

sudo nano /etc/fstab

Go all the way down and type this line:

/dev/sda4 /media/Data ntfs defaults,umask=0022,uid=YourUIDHere,gid=YourGIDHere 0 0

(You should replace /dev/sda4 by the NTFS partition that you wrote down earlier).

 Explanation: umask=0022 sets the directory's (d) permissions permissions to drwxr-xr-x, to make sure that the user (me) can read, write and execute (rwx) while the group and others can only read and execute (r-x) the directory, which is what I wanted.

After that, I could mark the three checkboxes without any errors, and the folder would be shared over the network. Because I was not sure whether the sharing settings would be kept after a restart, I unchecked the checkboxes and added some lines in /etc/samba/smb.conf instead. I did that this way:

In a terminal, I typed sudo nano /etc/samba/smb.conf

I scrolled down to the last line, and pasted the following there:

[MyShare]
    comment = My Share
    path = /media/Data/FolderToBeShared
    browseable = yes
    guest ok = yes
    read only = yes
    create mask = 0755

I saved the file, and then rebooted. The folder was accessible from the network now.


Unable to send a email through the command line on (Ubuntu Desktop)

I routinely send email from within Ubuntu using the command line using mailx and gmail, perhaps this will be useful for you?

Create the file: $HOME/.mailrc by running:

touch $HOME/.mailrc

Then open this file with your favourite text editor and add the following:

#---------------------------#
# Setting mailx for gmail!! #
#---------------------------#
set smtp-use-starttls
set smtp-auth=login
set smtp=smtp://smtp.gmail.com:587
set from="your_gmail_username@gmail.com"
set smtp-auth-user=your_gmail_usernameg@gmail.com
set smtp-auth-password=your_gmail_password
set ssl-verify=ignore
set nss-config-dir=/etc/ssl/certs

Remember to use your own gmail username and password, and making sure you have installed the Ubuntu ca-certificates package. Then you can send email easily from the command line as follows:

echo "Testing, Testing, Testing" | mailx -s "My test..." someone@whatever.com

The $HOME/.mailrc could easily be configured for other mail servers if you don't have a gmail account, but using gmail in this way means not having to bother with Postfix and friends.

Below is a test, demonstration email using a verbose setting, I have masked the email address as it is my own:

andrew@ilium~$ echo "Testing, Testing, Testing" | mailx -v -s "My test..." xxx@gmail.com
Resolving host smtp.gmail.com . . . done.
Connecting to 173.194.72.108:587 . . . connected.
220 smtp.gmail.com ESMTP u64sm18738348pfa.86 - gsmtp
>>> EHLO ilium.andrews-corner.org
250-smtp.gmail.com at your service, [203.158.63.248]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
>>> STARTTLS
220 2.0.0 Ready to start TLS
>>> EHLO ilium.andrews-corner.org
250-smtp.gmail.com at your service, [203.158.63.248]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
>>> AUTH LOGIN
334 VXNlcm5hbWU6
>>> YW5kcmV3LmRhdmlkLnN0cm9uZ0BnbWFpbC5jb20=
334 UGFzc3dvcmQ6
>>> Pz8lPTQyMDk1WnhpdXlxbQ==
235 2.7.0 Accepted
>>> MAIL FROM:<xxx@gmail.com>
250 2.1.0 OK u64sm18738348pfa.86 - gsmtp
>>> RCPT TO:<xxx@gmail.com>
250 2.1.5 OK u64sm18738348pfa.86 - gsmtp
>>> DATA
354  Go ahead u64sm18738348pfa.86 - gsmtp
>>> .
250 2.0.0 OK 1455275914 u64sm18738348pfa.86 - gsmtp
>>> QUIT
221 2.0.0 closing connection u64sm18738348pfa.86 - gsmtp
andrew@ilium~$

Pretty cool?


script in shell downloaded by won't execute

I think you meant to type, cd /home/Desktop/ or cd /Desktop/. Notice the capital letter D!!! Ubuntu has tab completion to help you out for situations like this, basically you type the little you can remember and then press TAB for suggestions of what you want, eg cd followed by TAB.


Shut down problem on my Lenovo Ideapad 100-14

Hi I had the same issues with my Lenovo ideapad 100-15IBY.
 Below is link which explains how to resolve the issue:
 http://tuxicate.blogspot.bg/2015/12/ubuntu-1404-on-lenovo-ideapad-100-14iby_9.html

In short:
 In the "Exit" menu of the firmware setup, right under "Load Defaults" there is an parameter called "OS Optimized Defaults" which was set to "Other OS". The other option is "Windows 8 64-bit". This is only used when someone activates "Load Defaults" and as  expected, it enables Secure Boot, sets UEFI only boot mode and some other settings found on the setup screens.

Change the "OS Optimized Defaults" to "Win8 64bit" then load defaults and "save and exit". As expected, it activated Secure Boot but did not change any of the other values on the setup screens. This should fix the  ACPI issues. Return to the firmware setup screen, disable Secure Boot, change "OS Optimized Defaults" back to "Other OS" - but do not load defaults. After booting Ubuntu, suspend, resume, reboot and shutdown sould work well.

This solution was provided by: Tibor Bősze.


wifi not connected with correct password 14.04 LTS on Intel Corporation Centrino Wireless-N 130 (rev 34)

Try fiddling with WiFi settings of access point more. Restrict "n" or "bg", switch off exotic and vendor-specific options, change channels or so on.


How to enable scrolling with Wacom touch strips and Gnome Shell?

To stop gnome from intercepting Wacom pad events you could try this:

Switch to Xorg
Run dconf-editor
navigate to org.gnome.settings-daemon.plugins.gsdwacom
set this value to false


The process remains in the process table until you call wait() in the parent process (this is called "zombie state") or until that parent process exits as well, in which case it is reparented to systemd (formerly init) which does that wait() for such orphaned processes.
A zombie process has actually died, but its process table entry contains performance statistics and will stick around until the parent process has collected them with wait().  You can spot these with ps -eO stat and look for things with a Z in the stat column.  Zombie processes are not using any system resources except for the process table slot.


I have published a startup script to setup an Amazon EC2 instance with IPSec/L2TP VPN. You can do it in less than 5 minutes, you dont even need to actually log into the machine.

The good thing with IPSec/L2TP: it works out of the box for most clients (tested with Mac OS Lion and Mountain Lion, not Linux yet).

You can get it here and get some background information about it on this site


Replacing MeeGo with Ubuntu on a netbook for development?

Having used both I am sure that you will more than fine. You could always try the meego installation for a little first and then if you do not like it download Ubuntu and try that perhaps from a pen drive and see what you prefer.

I have used both and they are both brilliant on a netbook. Ask perhaps yourself what you like about the Meego installation and then try the Ubuntu from a pen drive and see if there is any difference.

Meego can have some issues with wifi and graphics cards just like Ubuntu but as it is preinstalled it will be fine but you may need to be aware of them prior to any upgrades you do as that can get tricksy afterwards if your wifi or graphics card drivers need updating too. That said that can also be the same in Ubuntu. You can look both on here

Meego Netbook Forum

and perhaps have a look at other sites and blogs to see what trouble and solutions people have with the hardware that is in this new Meego device. I did a Meego blog (check my profile for details) of common things I had to do.

I have to say I was pleased to see a netbook release of meego on hardware and this looks like a nice model.

I have no doubt that you will enjoy it and if you do not ...stick Ubuntu on. :)


I need to install Skype, how can I do it?

very easy: go to the ubuntu softwarecenter and search for Skype.


Have you checked the network manager connection settings under [Network icon]->edit connections->[your connection]->edit->IPv4 settings?

If the DNS domains/addresses are hard coded to google's DNS there, you can try selecting the "Automatic(DHCP)" option in the "Method" dropdown and saving the connection?

Try: dpkg-reconfigure bind9-host and then rebooting.


How to compress images without losing quality

The very powerful command line utility convert allows extremely high quality bulk image processing.

Your only option to compress images without loosing any quality is keeping the image intact, and compress it using lossless compression.

However, that may not be what you are after. You refer to a website, and a concern of quick loading. If you want to address that issue, you probably will need to accept loosing some quality. There is limited scope to reduce image file size without loosing quality.There is huge scope to reduce image file size for websites without loosing perceptial quality, i.e., without noticing the loss in quality compared to showing the original image on the same website.

If, unless what you ask, the above has persuaded you that you are prepared to "loose some quality" nevertheless, then

Reduce the resolution of the image to match the resolution of a computer screen.
Use lossy jpeg compression. Tune the compression to achieve maximum compression without introducing unacceptable quality loss.

Depending on the original resolution of your graphics, that may reduce the file size to a tiny fraction of the original, without anyone noticing on the website except for the immediate loading.

convert is perfectly suited for these tasks, and can be automated for bulk processing.


How to get native screen resolution with Intel Z370 Exress Chipset

I had the same problem with Ubuntu 17.10 and asus z370-h motherboard.

I solve this by installing Ubuntu 16.04.
Why 16.04? because I needed to install Intel Graphics Update Tool for Linux* OS v2.0.2 which is not supported in 17.10. Once you install this tool, you can update the Intel drivers but this is not all. I had to update the Linux kernel. You can do it this way:

To check the actual kernel version type in a terminal: uname -sr

In the terminal, download the last and stable files:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.8/linux-headers-4.14.8-041408_4.14.8-041408.201712200555_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.8/linux-headers-4.14.8-041408-generic_4.14.8-041408.201712200555_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.8/linux-image-4.14.8-041408-generic_4.14.8-041408.201712200555_amd64.deb
Now execute sudo dpkg -i *.deb
sudo reboot
Check again the new version of kernel uname -sr

I hope this help


How to connect to TeamViewer instance (on Windows XP) without installing it on my machine?

TeamViewer is proprietary. But there is a client, which doesn't need to be installed: TeamViewer Quicksupport


Can I scroll to new lines using mouse wheel inside git diff?

Thanks to @edwinksl's answer I managed to find a solution to the problem.

So by default git uses LESS as a pager and I believe the default arguments are FRSX.

On git 1.8+ you can remove options with less -+<option>, in my case I need to remove the X option so:

git config --global --replace-all core.pager 'less -+X'

but as @pcworld mention this can cause problems with diffs that fit on a single page, thus:

git config --global --replace-all core.pager 'less -+FX'

fixed the scrolling issue for me.


Kubuntu 18.10 and Kubuntu 19.04 - Grub Error: Couldn't find suitable memory target

Ok, so the problem is most definitely centered around the bootloader grub. However, I am unable further debug the issue without a serial connection to my computer.

The good news is that there is a way to work around this problem. Shrink the initrd.img image. 3 steps are needed

reconfigure initramfs-tools to use the 'xz' compression algorithm. This is achieved by editing the /etc/initramfs-tools/initramfs.conf file. Set COMPRESS=xz
You will need to update the initrd file by running command: 'update-initramfs -u'
If installed, uninstall cryptsetup-initramfs, this will update the initramfs image for you.

These two steps alone shrunk for me a 72M initrd image down to 37M. Which allowed me to boot my desktop successfully.

The last step will only gain you a few megabytes but its something.
Goto the modules directory for you current kernel and run the command:
' find . -iname *.ko -exec strip --strip-unneeded {} + '
You will need to update your initramfs image after this command is run, see step 1.

If you have to do this from a livecd/USB then you will have to mount you root partition and run the following commands. It is assumed that your root filesystem is mounted at ' /mnt '

sudo mount --bind /dev /mnt/dev

sudo mount --bind /dev/pts /mnt/dev/pts

sudo mount --bind /proc /mnt/proc

sudo mount --bind /sys /mnt/sys

sudo chroot /mnt

Run the 3 steps mentioned above, check the size of you initrd image to ensure everything worked, unmount all devices and reboot.

This should due the trick. This doesn't fix the bootloader issue but it works around it.


Is there a way to tell how a program in Synaptic was originally installed?

You can select the "origin" button in the lower-left corner, and the list above will show the repositories for your packages. If the program you are looking for is under Local it was installed manually using a deb package.

For the RStudio desktop application case I'm pretty sure it has to be install/update by hand.


Dark pictures in ImageViewer and Firefox

Go to System Settings > Device Colour Profiles and select your display, then click the Add profile button and change the display profile to D65.


Manually check your Chrome extensions for any suspicious or unknown add-on. If there are any, do remove it.
You'd better see into the pop-ups and check whether they have anything in common like showing 'ads by blabla'. Then search your system for its file folders to clear. Show all folders at first.


Opening Simple screen recorder fills up the panel with multiple icons

FWIW, a similar thing happened to me.  I have Lubuntu 15.10 and the multiple panel icon thing happened to me with AutoKey.

IIRC, the way I got rid of it was to do a

  Ctrl+Alt+T

to bring up the Terminal.

Then I typed

  lxpanelctl restart

to restart the panel.

After this one time, it never happened again.


Broadcom card-reader BCM57765/BCM57785 doesn't work on ubuntu `12.04 LTS

The workaround from the bug report at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1307674?comments=all works for me, but I needed to change the file name to include the extension .conf, e.g. sdhci.conf.

The modified workaround:

Add the following to /etc/modprobe.d/sdhci.conf:

  options sdhci debug_quirks2=4

Re-generate initrd:

 sudo update-initramfs -u -k all

Reboot or reload sdhci module:

 sudo rmmod sdhci-pci sdhci
 sudo modprobe sdhci
 sudo modprobe sdhci-pci


Press Ctrl+Alt+F1 to get to a terminal and capture the logs:

sudo zip -r /host/ubuntu/logs.zip /var/log

Then sometimes returning to the installer unfreezes it allowing the install to complete: Ctrl+Alt+F7

When you've got the logs, please file a bug and attach the logs (C:\ubuntu\logs.zip) to it: https://bugs.launchpad.net/wubi/+filebug

If you get stuck, you can return to the terminal and run sudo reboot


Convert a directory of JPEG files to a single PDF document

From the imagemagick package, use the convert command:
convert *.jpg -auto-orient pictures.pdf

You will get a single pdf containing all jpg in the current folder.
The option -auto-orient reads the image's EXIF data to rotate the image.
Install IM with:
sudo apt-get install imagemagick

sources: stackoverflow
imagemagick options
Edit: Note that images will be out of specific order if they are not numbered. if you have 10 or more you need to name them ending filename01.jpg...filename99.jpg etc. The leading zeros are required for proper ordering. If you have 100 or more 001...999.


Not detected second screen after update, Quadro RTX 3000 Mobile , Lenovo hinkpad p15 g1, Ubuntu 20.04

The problem was having Secure Boot enabled in UEFI and unsigned drivers (Nvidia's).
Either disable Secure Boot in UEFI (easy) or use mokutil to enable "trust" for the Nvidia's driver modules (not easy).

Other thing that worked:
After experimenting with the available drivers I report that my second monitor was detected successfully using r'the xorg open drivers, though I am not sure if this happens with gpu drivers which I think are still not detectable by the system.
I opened a separate issue since the original question regarding the monitor is solved.
(new question is  here: nvidia drivers not working on ubuntu 20.04 with Nvidia quantum rtx 4000)


wifi options not being set to disable power / how to reload wifi setting changes without rebooting

Use
sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
to disable power management for wifi.  Reboot and the power management should remain off.  The results of modinfo iwlwifi does not reflect any changes made by module options in the /etc/modprobe.d/ conf files use

grep [[:alnum:]] /sys/module/iwlwifi/parameters/*

To see those changes
Changes to the conf file can be loaded by removing and reinstalling the driver
sudo modprobe -r iwlwifi wait ten seconds and sudo modprobe iwlwifi


"Wi-Fi is disabled by hardware switch" Asus X551C(X551CA) Ubuntu 14.04

Let's get the sequence of commands to run automatically on boot. Please open a terminal and do:

gksudo gedit /etc/rc.local

Use nano or kate or leafpad if you don't have the text editor gedit. Right above the line exit 0, add these three lines:

rmmod -f ath9k
rfkill unblock all
modprobe ath9k

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

Is it working as expected?

If this is ineffective or only partially effective, let's try a different technique. Please edit /etc/rc.local as I outlined above and remove the lines you added. Proofread carefully, save and close the text editor.

Now do:

sudo -i
echo "options asus-nb-wmi wapf=1" > /etc/modprobe.d/asus.conf
exit

Then the Fn+F2 (or some such) key combination to enable and disable wireless should be working properly.

There are other possible values for wapf, so if =1 is ineffective, we will try the others.


bluetooth headset: connect/disconnect problems

Try the answer from here Blueman connection error (bluetooth issue)

  rm -r ~/.config/pulse; pulseaudio -k


Why do I have grub file in my home directory?

Yes, it is safe to remove this file from your user directory.

There is no value to keep it there, unless as a backup copy.


How do I start pulseaudio on barebones X11 server?

I am not familiar enough with how xmonad is configured on Ubuntu, but the command you want to run is

/usr/bin/start-pulseaudio-x11 &

I am not sure where you would put that command, you can use ~/.xinitrc or add it to your xmonad start script, depending on how you configured it (w/ or w/o gnome, etc).


MSI GS63vr won't boot after installation

After finishing the installation of your new OS [Ubuntu] you should wait 2 minutes before pressing restart.

It will freeze anyways but it will help grub finish.

After it freezes you need to force the shut down of your computer, turn it on and press the left shift multiple times while the Laptop is restarting.

This will get you in the Ubuntu safe mode, Press the "e" key and you need to add nouveau.modeset=0

you will  find this code splash $vt_handoff, what you need to do is add the nouveau.modeset=0 (Use the arrows of the keyboard to move)

It should look like this [splash $vt_handoff nouveau.modeset=0] then you need to press F10 to save changes and restart.

I will leave a picture to help you spot the code where you need to add the nouveau.modeset=0.


I need a netspeed indicator for Ubuntu 14.04

There is a Command-Line Speed Test Utility on GitHub that tests both the upload and download speeds.  You'd want to check the link for the correct checksums, but here's what I did:

wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x speedtest-cli
sha256sum speedtest-cli

You can list available servers using ./speedtest-cli --list, or you can just run it with no options to let it determine the best server to use.


Not able to connect to Wireless in Ubuntu 15.10 with laptop Acer Aspire V 15

you will need to provide preliminary data and details in order for anyone to help you here. No one has the crystal ball so they don't know what you have.

Pls post the output of the following commands (just run it in your shell):

 lspci -nn | grep -i net;lspci -k;sudo lshw -C network;lsmod;iwconfig;ifconfig;sudo iwlist scan;uname -r -m;cat /etc/network/interfaces;nm-tool;sudo rfkill list

==============

Thanks for providing the data.

So this is your wireless devise

 03:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 20)
    Subsystem: Lite-On Communications Inc Device 0804
    Kernel driver in use: ath10k_pci

And these are modules loaded to kernel for such device:

 ath9k_common           36864  1 ath9k
 ath9k_hw              471040  2 ath9k_common,ath9k
 ath                    32768  4 ath9k_common,ath9k,ath10k_core,ath9k_hw
 mac80211              733184  2 ath9k,ath10k_core
 cfg80211              548864  5 ath,ath9k_common,ath9k,mac80211,ath10k_core

As you can see there are 2 different versions and they are conflicting with each other of course (kernel doesn't know which one to use exactly unless you don't take one of them off).

So I am not sure what drive you have installed. If you remember the version of drive and kernel module you installe then all you have to do is to remove the previously installed kernel modules and blacklist them in order to make sure they don't load again during the boot time.

Alternative, if you don't know which one you installed and which one was already there, I'd suggest to clean all of the moduls and re-install the new one. but you still need to blacklist the old one because it will load after reboot of the system again.

As you can see from the snippet here:

  wlp3s0    Scan completed :
      Cell 01 - Address: 28:28:5D:F3:40:48
                Channel:1
                Frequency:2.412 GHz (Channel 1)
                Quality=40/70  Signal level=-70 dBm
                Encryption key:on
                ESSID:"ZyXEL_4048"
                Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                          18 Mb/s; 36 Mb/s; 54 Mb/s
                Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                Mode:Master

 0: acer-wireless: Wireless LAN
    Soft blocked: no
    Hard blocked: no

your wireless is working perfectly but as I said the modules are conflicting with each other, so you need to remove the oldest one.


If you don't care to see what the application is doing, you can supply it with a "virtual" x server with xvfb:

  Xvfb provides an X server that can run on machines with no display
  hardware  and no physical input devices. It emulates a dumb
  framebuffer using virtual  memory. The primary use of this server was
  intended to be server testing,  but other novel uses for it have been
  found, including testing clients  against unusual depths and screen
  configurations, doing batch processing with  Xvfb as a background
  rendering engine, load testing, as an aid to porting the  X server to
  a new platform, and providing an unobtrusive way to run  applications
  that don't really need an X server but insist on having one  anyway.

After installing it, you can start it with:

sudo Xvfb :10 -ac -screen 0 1024x768x24 &

it'll run in the background, then you start your clients with:

DISPLAY=:10 your-client


Open terminal - Type this command and hit enter key

sudo gksu nautilus

Now, enter your password, After you can go to "opt" directory and delete it


Looking at your top output:

Turn off stacer
Turn off your dropbox client
Close the chrome tabs
Turn off the music

...and you should find your Mate Desktop CPU usage considerably lessened also.
You can also turn them off one at a time to see the impact of each on your desktop CPU usage.


Nginx installation error in Ubuntu 16.04

Shutting down apache2 first before installing nginx should fix this problem:

sudo service apache2 stop


By convention, ./configure scripts provide a --prefix option fo this. So for example

./configure --prefix=/usr/local

or

./configure --prefix=/opt

(for much software, /usr/local is the default).

You can usually run ./configure --help to see this and other options that may affect the installation path e.g.

$ ./configure --help | grep install
  --prefix=PREFIX         install architecture-independent files in PREFIX
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
By default, `make install' will install all the files in
an installation prefix other than `/usr/local' using `--prefix',
Fine tuning of the installation directories:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]


Firstly, there should be no necessity for you to "View" the localhost from within the Host System.

  Therefore, to see the guest's localhost, I'm trying to access
  localhost from a browser on my host.

Instead, you can use a "bridged-mode" in the OVM and assign a local ip (or configure it to get one from the same DHCP server where your host system gets.) Thence, you can access it with the same url in your specified port.

Also., I remember configuring Apache to Listen in 8080 and Varnish in 80 with drupal and other php applications. So it would be better if you can check your Varnish as well as nginx's configuration.

Try editing your varnish config in your Terminal by typing,

sudo nano /etc/varnish/default.vcl

It should be something like

  backend default {
      .host = "127.0.0.1";    .port = "8080"; }

Chances are if you try this port in your host machine browser, it would be up.
If not You can simple try restarting Varnish by

sudo service varnish restart (or start if status is down)

Let me know if this doesnt helps.


Is this sha256sum from an official ubuntu iso?

20.04.2.0 ISO has fix as per https://lists.ubuntu.com/archives/ubuntu-announce/2021-February/000265.html

Shortly after the release of Ubuntu 20.04.2, on Thursday February 4
2021, a regression was discovered[1] which means that on certain
systems and under certain specific conditions the Ubuntu installer can
fail to install a Linux kernel. This renders the system unable to
boot.

For the sha256, download it yourself and check https://releases.ubuntu.com/20.04.2.0/
Personally I'd zsync the older ISO to update it (ie. zsync will download only the differences) so your 20.04.2 ISO will be updated to 20.04.2.0 ISO (unless bandwidth quotas don't impact you, in which case you can download the fixed ISO)


How to completely disable unity launcher in Ubuntu 16.04?

Answer to my own question:

It can be done by editing the source code and remove the lines that are used to show the launcher.

I edited the files and recompiled the package. You don't have to reinstall the complete package, it can be done by replacing only one file.

libunityshell.so

Download the file with given link and replace the file
/usr/lib/x86_64-linux-gnu/compiz/libunityshell.so with downloaded file.

Backup the file before replacing.

Set the launcher in autohide mode and restart your pc.

After restart :

No launcher revealing when you move mouse pointer to left side.
No launcher wake up while launching unity dash.
No icon popped out from launcher while minimizing an application.

Means, this will completely disable the unity launcher.

This package is compiled in ubuntu 16.04 (x64) Unity 7.4.0. It works fine for me.

For other than Ubuntu 16.04 (x64) Unity 7.4.0 use the following link

Compile Unity without launcher

It is not working with unity 7.4.5


Update #2: You shouldn't need the 4.1.0-wl-ath+ kernel fork anymore. My Wi-Fi works on a stock Linux 4.3.0 kernel. Ensure you're running kernel 4.3+ and your linux-fimware package contains the correct firmware files for your device

UPDATE: Firmware now works!

I've created a fork of the ath10k firmware repository on github and added the new firmware under ath10k/QCA6174/hw2.1/

See: https://github.com/sumdog/ath10k-firmware

The following is taken from laag's comment in the launchpad bug tracker and has detailed instructions on how to extract the firmware from the Windows driver (which I've done in the repo listed above) and compiling a new kernel in Ubuntu. please note the skip_otp=y option for the ath10k_core module is required!

I got it working as described in this thread: http://lists.infradead.org/pipermail/ath10k/2015-April/004958.html
Using xubuntu (14.10 upgraded to 15.04) Anyway distro shouldn't be much different. Basically to make it working you need to do (what i did):

1. Get the windows drivers from your notebook manufacturer, in my case MSI GS60. http://download.msi.com/nb_drivers/lan/KillerSuite_1.1.49.1068_Win7_Win81-MSI.zip
2. Get the needed phyton scripts to extract windows firmware:
dissect.py https://gist.github.com/kazikcz/8e5845ad84ca251aa295
assemble.py https://gist.github.com/kazikcz/c970cbf3a863ebbc4495
3. Get kvalo's kernel tree from https://github.com/kvalo/ath

4. Unpack Killer suite and run the following commands: (run commands as root , sudo / sudo su)
python dissect.py < drivers/Production/Windows8.1-x64/k1525w81/qca61x420.bin
mkdir /lib/firmware/ath10k/QCA6174/hw2.1
python assemble.py killer-n1525-fw 0 fw-2.bin fw-1.bin 4 > /lib/firmware/ath10k/QCA6174/hw2.1/firmware-4.bin
cp drivers/Production/Windows8.1-x64/k1525w81/eeprom_qca9377_1p0_NFA435_olpc.bin /lib/firmware/ath10k/QCA6174/hw2.1/board.bin

5. Unpack kvalo's kernel and compile it with:

sudo apt-get install libncurses5-dev gcc make git exuberant-ctags

To simplify things copy your current kernel config to ath-master root folder:
cp /boot/config-`uname -r`* .config
you can configure if you want with: (not needed)
make menuconfig
then compile with: (where X is the number of cores of you processor, i used 6)
make -jX
# then take a coffee or even better a cold beer, anyway it just took about 20 minutes for me.

6. Install the new kernel:
sudo make modules_install install

7. Create config file with:
nano /etc/modprobe.d/ath10k.conf
Write to it:
options ath10k_core skip_otp=y

8. Reboot using your new kernel 4.x.x-wl-ath

9. Run ifconfig

10. Voila wlan0 should be there waiting for you, now try to connect to you AP.

If its not working try to check if you missed something, check log file (/var/log/dmesg) for more details of what failed.

Give thanks to the guys who made this possible for me: http://lists.infradead.org/mailman/listinfo/ath10k

I followed the steps and it worked fine on my MSI WS-60. You can see my comment at the bottom (#122) for more details:

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


Ampps first run errors. Control panel blank

There are two way first
to run Ampps every time you need to run this command

sudo QT_X11_NO_MITSHM=1 /usr/local/ampps/Ampps

It will start Ampps application without any errors.

Permanent solution is to add the below command

export QT_X11_NO_MITSHM=1

to /etc/environment file as this is your setting environment variable for Ubuntu OS.


BASH Array behavior different when using Command Substitution

I would do one of:
IFS=$'\t' read -ra banana < <(jq -sr '.[] | @tsv' test.json)'

which gives the expected:
$ declare -p banana
declare -a banana=([0]="One Entry Here" [1]="Two Entry Here" [2]="Three Entry Here" [3]="Four Entry Here")'

Or use declare which is kind of like eval but just for variable assignments:
declare -a "banana=($(jq -sr '.[] | @sh' test.json))"

This forces the shell to do a 2nd round of expansions so that the quotes emitted by jq will be process properly by the shell. Otherwise you get:
$ banana=($(jq -sr '.[] | @sh' test.json))
$ declare -p banana
declare -a banana=([0]="'One" [1]="Entry" [2]="Here'" [3]="'Two" [4]="Entry" [5]="Here'" [6]="'Three" [7]="Entry" [8]="Here'" [9]="'Four" [10]="Entry" [11]="Here'")

or
$ banana=("$(jq -sr '.[] | @sh' test.json)")
$ declare -p banana
declare -a banana=([0]="'One Entry Here' 'Two Entry Here' 'Three Entry Here' 'Four Entry Here'")


Why has Ubuntu 18.04 disabled Mozillateam PPA?

Ubuntu disables all PPAs and unofficial repositories during a release upgrade, to ensure it does not install incompatible packages.

If the respective PPA or repo provides packages for your new Ubuntu release version as well (i.e. bionic in your case), you can of course re-enable it after the release upgrade was successful and install/update your packages from it.

According to https://launchpad.net/~mozillateam/+archive/ubuntu/ppa, the specific PPA in question supports bionic, so you're good to go.

You might also want to have a look at Is there a tool to update my PPA sources.list entries after upgrading?


this fixed my problem sudo modprobe -r floppy

source: http://www.webupd8.org/2010/05/fix-usb-devices-automount-not-working.html


JRiver Media Center

JRiver Media Center works with ALSA. Unfortunately it's not free. You need to purchase JRiver License (either Linux Licence or Master Licence). You have 30 days to try the full feature set.

Guayadeque

sudo add-apt-repository ppa:anonbeat/guayadeque
sudo apt-get update
sudo apt-get install guayadeque

after install, go to the terminal and run

 aplay -l

find your bit perfect device number and sub number.

Open Guayadeque and go to the View>Preferences>Playback and set device to the ALSA and hw:DeviceNumber,subNumber. For example, hw:0,0.

GMusicBrowser

sudo apt install gmusicbrowser

After install, just go to the Settings>Output Device>output device (ALSA)> advance options and set ALSA device (For example: hw:0,0).


Is there any posssible way to remotely control my own android device using terminal?

You can install an ssh client on the android device,
but i think you want to simulate mouse moves and clicks,
those are a little more complicated,
I think you would need adb tools to do that
There is a java tool called adbcontrol, its gui, but you can get
the code and make something for terminal to your purposes


Broken Nvida-Driver-455 Package On Fresh Install of Ubuntu 20.04

Run
sudo apt update
sudo apt-get remove 'nvidia.*'
sudo apt install nvidia-driver-455

And I recommend to disable Secure Boot.


May be and ACPI Problem. Can you disable the ACPI in the bios and try once again. Or go to the boot menu and edit kernel parameters and add acpi=off then try install 14.04.


Lost session to Ubuntu upgrade 18.04.LTS sudo do-release-upgrade -d

Thanks Arul Selvan for your post.
Tried
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get update
sudo apt-get dist-upgrade

So what I got after reboot was a black screen.
Created a install usb disk and booted it up, created a boot repair log
http://paste.ubuntu.com/p/M2yv3dXjqs/
Not sure how to proceed. If I go to repair it says

The current session is in Legacy mode. Please reboot the computer, and use this software in an EFI session. This will enable this feature. For example, use a live-USB of Boot-Repair-Disk-64bit (www.sourceforge.net/p/boot-repair-cd), after making sure your BIOS is set up to boot USB in EFI mode.

So what I did was changed the BIOS to EFI mode on the usb disk, rebooted into the live disk and installed boot-repair again.
https://help.ubuntu.com/community/Boot-Repair
and it fixed my issue.


I just solved the very same problem by switching to ntpd, as it is suggested in the DO's article How To Set Up Time Synchronization on Ubuntu 18.04. The commands are:

sudo timedatectl set-ntp no  # 1. Turn off 'timesyncd' before installing 'ntpd'
timedatectl                  # 2. Verify that 'timesyncd' is of
sudo apt update
sudo apt install ntp         # 3. Install 'ntp' package

ntpd will be started automatically after install. You can query ntpd for status information to verify that everything is working:

ntpq -p


C++ system() function for further arguments in ubuntu

I suggest you use the format such as following format.

system("echo \"name=travis&age=45&hobby=football\" | lynx www.somewebsiteidunnowhatever.com -get_data");

using pipe(|), you can give a any command's output to any commands as it's input.


Why does PHP's composer require command hang?

To see why composer hangs, use the -vvv argument to make the output more verbose.

composer -vvv require robmorgan/phinx


Display resolution stuck at 640x480 about install

You will edit the file /etc/default/grub file

Step 1- Press  CTRL+ALT+T to open terminal

Step 2- Enter the command

sudo nano /etc/default/grub

Step 3- change the contents from

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

to

# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console

Step 4- Enable the services by running

sudo update-grub

Step 5- Finally, reboot the computer.


upgrade from ubuntu 12.04 to 12.10 failed, now loads "grub rescue"

It looks like you might just have a UUID problem. So it might be a good idea to try this by booting from USB including live Ubuntu, Parted Magic, Rescatux, etc. (see, for example, http://liveusb.info/), starting Gparted to check the UUID of your Ubuntu partition against the value in the file /etc/fstab in that Ubuntu partition on your hard disk.
If UUID values are the same, you can then move on to "boot-repair" and then "rescatux" as mentioned.


The only thing that would change if you were to go to a single boot is that you would get to use the disk space that Vista is installed on.

It's not going to change the performance of Ubuntu to single boot.

Once the OS boots it is the king of the castle. All of the computers resources belong to it. You only share the storage space on your hard drive.


Synaptic 'initialize', 'initialise' - why the difference?

Theoretically, there should be separate spellings depending on your system's locale settings. If it's set to Australia, you should get "initialise", while you should get "initialize" if your system is set to the United States.

That said, English varieties sometimes get a bit mixed up, so you might not actually see what I've described above. If so, it's a bug, so you should report it.


Try setting a driver parameter

sudo -i
echo "options rtl8188ee msi=1"  >  /etc/modprobe.d/rtl8188ee.conf
exit

Reboot and check


is it possible to scp any file type in all subdirectories starting from root?

You should use rsync instead of scp because it offers more options:

rsync -avm --include="*/" --include="*.pf" --exclude="*" / user@10.10.10.10:CP/

Unfortunately, it is a bit complicated when it comes to rsync's include and
exclude parameters. Please refer to this question over on Stack Overflow
for details.

They say (for *.sh files instead of *.pf files):

  So if we only want *.sh files we have to exclude all
  files --exclude="*", include all directories --include="*/"
  and include all *.sh files --include="*.sh".

To get a preview first, add the -n switch to the call. This will
instruct rsync to only tell what it would do whithout actually
doing it:

rsync -avm -n --include …
           ^^

Further reference:

ubuntuforums


Installing windows 7 on virtual Box in my Ubuntu 18.04

You can install from iso, mount it with the optical drive of the virtual machine

An ISO file can be mounted in virtual optical drive


Browser tends to download PHP files instead of displaying them, while using XAMPP for Linux

If you try to access a PHP file saved in your home folder, it will be downloaded instead of saved. Just move it to your www folder commonly found in /var/www and give it 644 permissions and try again.


Which LTS version is supported? 18.04.1 or 18.04.2? both?

The article might be a little misleading.

Version 18.10 is supported for 9 months.

It says 18.04 is supported for three more years because it is LTS. This includes 18.04.1, 18.04.2 and 18.04.3 when it comes out, etc. They would all be good until April of year 2021 according to comments below.

It says the advantage of 18.04.2 over 18.04.1 is some of the kernel and driver enhancements in 18.10 have been back-ported to 18.04.2. In reality I'm on 16.04 and can install kernels and drivers newer than 18.10 as can anyone.


How to switch Z and Y key in Serbo-Croatian (US)?

Found it!
It is inside file: us, under "hbs"
I replaced Z with Y and added Z to what was previously Y.
After modification it looks like this:

// Serbian charecters added as third level symbols to US keyboard layout.

partial alphanumeric_keys
xkb_symbols "hbs" {

  include "us"
  name[Group1]= "Serbo-Croatian (US)";

  key <TLDE> { [ grave, asciitilde ] };
  key <AE06> { [ 6, dead_caron, asciicircum, asciicircum ] };
  key <AE08> { [ 8, asterisk, multiply, division ] };
  key <AE11> { [ minus, underscore, endash, emdash ] };
  key <AC09> { [ l, L, U1C9, U1C8 ] };
  key <AB06> { [ n, N, U1CC, U1CB ] };
  key <AB01> { [ y, Y, U1C6, U1C5 ] };
  key <AD06> { [ z, Z ] };
  key <AD03> { [ e, E, EuroSign, cent ] };
  key <AC03> { [ d, D, dstroke, Dstroke ] };
  key <AC11> { [ dead_acute, quotedbl, apostrophe, apostrophe ] };
  key <SPCE> { [ space, space, nobreakspace, nobreakspace ] };
  key <AB08> { [ comma, less, U3003, guillemotright ] };
  key <AB09> { [ period, greater, ellipsis, guillemotleft ] };

  include "level3(ralt_switch)"
};


I use DocuSign, which is free web app (for single signatures). It also serves as a (hopefully) trusted third party.
From DocuSign - Wikipedia:

DocuSign, Inc. is an American company headquartered in San Francisco, California that allows organizations to manage electronic agreements. As part of the DocuSign Agreement Cloud, DocuSign offers eSignature, a way to sign electronically on different devices. DocuSign claims it has over 475,000 customers and hundreds of millions of users in more than 180 countries. Signatures processed by DocuSign are compliant with the US ESIGN Act. and the European Union's eIDAS regulation, including EU Advanced and EU Qualified Signatures.


I went back to the nouveau drivers and tty works again (MBP 11,3 late 2013). Now trying to decide if i prefer nvidia drivers or working tty :s


No boot option after installing Ubuntu 12.04 LTS on Acer Aspire 4736z with Live CD

while you come to partition screen go to last choice something else and next screen you have to make two partitions / and swap.while making / partition select ext4 file system ,format partition and install.down u have boot loader partition  selection .Put it to first partition sda1.when re booting you get grub menu .


Manually copy software (.deb files) from apt-get archives from one machine to another causes fetch error

Go to /var/cache/apt and delete the lock file. Clear the "updates" folder.
Thats it.


akonadi server doesn't start after kubuntu upgrade to 13.04

I've changed in ~/.config/akonadi/akonadiserverrc path to socket, to match with the one generated by akonadi

Options="UNIX_SOCKET=/home/deric/.local/share/akonadi/socket-d630/akonadiserver.socket"

then start the service:

akonadictl start


Can't get Autokey to reassign ctrl+c to ctrl+j while using Dvorak

Found the answer! In the keyboard layout handler I had QWERTY first in the list of keyboard layouts. When I put Dvorak first, Autokey worked properly.

screenshot of the keyboard layout handler


Can't fix GRUB for dual-boot - keep booting directly into Windows

EFI expects the default boot loader to be /efi/boot/bootx64.efi. Windows is particular about making sure it boots.

Fist off, from 8.1 on windows does not really shut down, it suspends to disk ( like a hibernate) so that it boots faster. second it changes EFI to make entry 0000 (windows) first in the boot order. You should turn off Fast Boot in Windows if dual booting.

One work around: rename grubx64.efi to bootx64.efi then replace the file efi/boot/bootx64.efi.This makes grub the default boot loader. Save the original efi/boot/bootx64.efi in the windows folder in case you want to replace it later.

second: When in ubuntu, use efibootmgr to delete all Windows and Ubuntu entries. and reboot your computer. Make sure the first system you boot into is ubuntu so that it is placed in entry 0000. then boot windows.

On some newer systems, OS selection is allowed if the default path is empty.
Temprarily, move /efi/boot/bootx64.efi to another place to see if the EFI settings will let you select OS to boot.

PS: I did have an older system that refused to boot grub after a BIOS update. Installing grub to /dev/sda fixed it. This is considered an odd ball though. EFi shouldn't be looking at the MBR for a bootloader.


Now that I actually know what I'm doing I understand better how powertop works.

Here's what you should look out for if you're having trouble with Powertop:

Keep Powertop running while your laptop is on battery, Powertop needs to collect information about your battery and laptop. Neither auto-tune or calibrate will run unless Powertop has recorded enough information
When running auto-tune, Powertop still gives me some errors as if it had failed. It actually worked just as intended.
There is no way to make auto-tune settings permanent, but what you can do is add them to /etc/rc.local, a script that will be launched on boot.

Here's mine for reference:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo powertop --auto-tune
exit 0

You may need to check "Allow executing file as a program" from the file's properties.

To be sure if it launched, reboot and open powertop. Switch to the "Tunables" tab, if all the options there are set as "Good", then it worked.

EDIT: By the way this actually improved my battery life by about 100%. Better than I ever got with TLP, which I am no longer using as it throttled my laptop without actually improving battery that much.


How do I tell what type of touchpad is in my notebook

You can use the xinput command to list all of your input devices including mice and keyboards:

xinput list

My output looks like this:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=11   [slave  pointer  (2)]
⎜   ↳ Macintosh mouse button emulation          id=12   [slave  pointer  (2)]
⎜   ↳ Wacom Intuos3 4x6 eraser                  id=15   [slave  pointer  (2)]
⎜   ↳ Wacom Intuos3 4x6 cursor                  id=16   [slave  pointer  (2)]
⎜   ↳ Wacom Intuos3 4x6 pad                     id=17   [slave  pointer  (2)]
⎜   ↳ Wacom Intuos3 4x6 stylus                  id=18   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ USB 2.0 Camera                            id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]
    ↳ LITEON Technology USB Multimedia Keyboard id=13   [slave  keyboard (3)]
    ↳ LITEON Technology USB Multimedia Keyboard id=14   [slave  keyboard (3)]


Convert folder symlink to a regular folder

There is no direct filesystem command to do that, so maybe the easiest way to do covert the myDir symlink to a regular folder is:

cp -Lr myDir myDir-COPY &&
rm myDir &&
mv myDir-COPY myDir


install postfix and store all incoming mails in MySQL DB

Since you want to use node.js anyway, take a look at this simple smtp-server written in node.js: https://github.com/baudehlo/Haraka


The 10.0.0.x range is reserved for private local networks. These addresses are not public internet addresses.

Your machines are behind a NAT firewall. You need to configure your firewall to route the ports you want to the machines inside your network, and discover your machines gateway address from your router configuration

IP addresses issued to home ISP customers are typically dynamic - they will change without notice. Registering a domain to such an address has it's own special challenges. In addition, most domestic ISP contracts forbid you to run a commercial service from your connection.

The domain you want is already registered, although it's "on hold". The entity holding the registration has probably acquired it speculatively in the expectation that they can extract a good price from someone who wants it.

I think you need to learn more about how TCP/IP networks work, how the DNS system works, and you need to obtain a commercial ISP service, or a hosted server from a company specializing in such things.


There is no package called libc++. It is libc++1.

So run the command as :

sudo apt-get install libc++1 multiarch-support libc6 libc++-dev libc++-helpers libc++-test libc++abi-dev libc++abi-test libc++abi1


Why isn't Startup Disk Creator working in 12.04?

There is a alternative way to make StartUPdisk

You need to install UNetbootin. Go to software center and search for it. Then install....

Run it.....from application

You will see this window

Click on Diskimage.
Select iso.
Give 3 GB of space in Space used.....
Then select your USB Drive from dropdown menu. Click ok. And wait until finished. Hope it helps.


You may like Kuickshow.

"KuickShow is an image browser/viewer with a nice filebrowser to select images to be shown, slideshow support and the ability to display the following image formats: jpg, gif, tiff, png, bmp, psd, xpm, xbm, pbm and eim. Images can be displayed either in their own window, as large as the image, or fullscreen (which shrinks images too large to display). KuickShow also has a slideshow mode."


How to get the path to a file in your system

Just drag and drop the file in the terminal.

         or

You can also use the below command to find the path of the file.

find . | egrep filename


How do I fix black desktop after installing Gnome3?

I think you know the answer already.  Working with computers can be a pain but you sometimes you gotta do things over and over again before you get the result you desire.  Computers are no different.


Could someone tell me whether my OS is communicating with the internet?

I think you're worried about the 8 packets transmitted message.

The ping application generates packets and submits them to the kernel for processing. Those are the "transmitted" packets reported in ping statistics. When packets enter the iptables' chains they can be accepted, dropped or rejected.

Ping says sendmsg: Operation not permitted because packets sent by the application were not accepted. So the answer is no, packets sent by ping didn't leave your computer.

But, as said by Alaa, you pinged www.yahoo.com and the name was successfully resolved to an address (206.190.36.45). This only happens if your computer sends a DNS query and receives a reply or if the name is in the DNS cache, which shouldn't happen by default (thanks @Alaa).

Are you sure all the traffic is blocked if VPN is disconnected? Maybe you didn't block DNS. You should only accept output traffic destined to your VPN gateway.


I never heard of the programs your talking about.
At least i found tty0tty that worked great for me,
but i didn't have to link two programs, just wanted
to simulate a nullmodem cable between to serial ports.

https://github.com/freemed/tty0tty


remmina 1.2.31 cannot connect RDP ERRCONNECT_CONNECT_FAILED [0x00020006]

Doh!

Solution found.

The target-laptop had its wired ethernet adapter network configured in Windows with Network-Type (network category) PUBLIC.   Changing this to PRIVATE allowed remmina and RDP to work correctly.

Evidently the network had changed within the past month.


How to grant mount.cifs to normal users and whether unmounting is mandatory before logout

I followed what wanadium suggested in comments (many thanks!) which solved the issue for normal users being unable to mount/unmount. Here is the line that had to be added to /etc/fstab
//remote-usrs-srv/Users$   /home/mylinux_username/drive_usr    cifs    users,noauto,rw,suid,exec,dev,iocharset=utf8,username=my_windows_username,domain=AD,vers=2.0                            0            0


There's no way to "upgrade" your current installation of Ubuntu.
You would need to reinstall.
But you do not need to format the whole drive.

If you have done a /home partition, you can keep it, with all your files.


You get the connect failure because the server is not running.  Run this:

sudo service mongodb restart

If that does not succeed then you will need to examine the log files for the server to see what is stopping it from starting.  You can find the log in /var/log/mongodb/mongod.log and if it is not an obvious cause, then please add the relevant snippet to your question and I'd be happy to take a look.

If I were to guess based on your description, I would suspect you did not set the correct permissions on /var/lib/mongodb - when you recreated it.  It should look like this:

drwxr-xr-x 4 mongodb mongodb 4096 Nov 26 18:52 mongodb

If it has incorrect permissions, then you can fix it with the following command:

sudo chown -R mongodb:mongodb /var/lib/mongodb


Try this:

sudo apt-get purge thunderbird; sudo apt-get install thunderbird


Whatsapp needs a phone number to function:

All WhatsApp accounts are tied to mobile phone numbers. Since it is common for phone numbers to be recycled by mobile providers, it is possible that the previous owner of your current phone number used WhatsApp.

What this means, that Whatsapp is tied to phones to work. If you don't use phones you don't get Whatsapp.
There are efforts to make Whatsapp work using a system account, of course you must already have an account with your phone, so, no, you can't have a independent account for your PC (unless you connect a SIM-Card to your computer).
Whatsapp has been creating clients for Windows, apart of their Web Whatsapp that requires a browser. Both limited in functionality and focused only on chats.
WhatsApp FAQ - Why is my phone number already in WhatsApp?


How do I disable my Intel graphic card in Asus k53sv?

This thread should provide the answer to this and any other issues you may have:

http://ubuntuforums.org/showthread.php?t=1791081

If bumblebee doesn't work with the configuration of Thomas Krutz, you really should provide some details. (I have an Asus K53SV and it worked pretty much flawlessly.)

In addition, note that you can't actually disable the Intel graphics card. Both Optimus and Bumblebee run everything through the Intel graphics, but automatically (Optimus) / manually (Bumblebee) allow to run heavy graphical programs on the Nvidia.


Trying to enter a directory from the first line of another file

To capture the output of the head command into a string that you can assign to a variable, you need command substitution.

In csh, that is done by enclosing the command in backticks:

set a = `head -1 jvar.txt`        # csh

The backtick syntax also works in bash, but is deprecated in favour of $(...). Also note that in bash and similar Bourne/Korn derived shells, it is an error to include whitespace around the = operator:

a=$(head -1 jvar.txt)             # bash, ksh, sh etc.


Change the configuration location of vsftpd?

The location of vsftpd can be specified as a command-line parameter. To do so, you'll need to override the default command in /etc/init/vsftpd.conf (assuming you're not on 15.04 or later):

printf "exec /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf\n" |
  sudo tee -a /etc/init/vsftpd.override

Now restart vsftpd and it should pick up the new location.

sudo service vsftpd restart


Recover files after uninstalling ubuntu-desktop with tasksel?

Having done something similar myself, if you can access the Ubuntu console via recovery mode or login screen console via Ctrl+Alt+F2, you may be able to either:

manually mount another drive to back up your files (via the console) and then install Ubuntu over your broken installation

or

attempt to fix Ubuntu by reinstalling what you uninstalled.

Option 2 would be easier if you hadn't rebooted and the console was still up since you would know what was uninstalled (though I guess you could repeat the steps in a virtual machine on another computer to find out).

If you need to access the Internet via the console to download missing files, this requires manually building a connection by configuring a certain text file and then manually updating, but I don't recall how to do the configuration at the moment.


Repeated internal errors in 12.04 - worth reporting every time?

I think it is, indeed, useful to do. Because there is obviously something wrong and if you continue sending reports, whoever receives them can see what is going on. It might take ages for them to be able  to do anything about it but you are at least putting some effort in, even if just a button click.

However, you also might want to try disabling the Ubuntu One store and Magnatune store plugins, there is a confirmed bug that they can cause Rhythmbox to crash. (https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/820191)

I've also seen around that some of the other plugins such as Cover Art, Cover Art Search, and Replay Gain might be effecting the frequency of crashes, but I'm not entirely certain if disabling them will help or not.

In either case, you hopefully won't be getting these crashes and having to continuously send bug repots. :3 Idk if it will fix your problem, but it can't hurt to try.


md5 hashes are different with iso-images of 14.04 amd64 server and desktop

The MD5 hashes for the Ubuntu 14.04 iso from the Ubuntu Hashes website that you linked in your question were lasted edited on 2014-04-18 22:44:22. Since then an updated Ubuntu 14.04.1 point release has been released that has different iso files with different iso file names and different MD5 hashes as you can see in the below text block. The MD5SUMS for the Ubuntu 14.04.1 release are as follows:

dccff28314d9ae4ed262cfc6f35e5153 *ubuntu-14.04-desktop-amd64.iso
c4d4d037d7d0a05e8f526d18aa25fb5e *ubuntu-14.04-desktop-i386.iso
01545fa976c8367b4f0d59169ac4866c *ubuntu-14.04-server-amd64.iso
08d25bf879e353686a974b7b14ae7d81 *ubuntu-14.04-server-i386.iso
119cb63b48c9a18f31f417f09655efbd *ubuntu-14.04.1-desktop-amd64.iso
a4fc15313ef2a516bfbf83ce44281535 *ubuntu-14.04.1-desktop-i386.iso
ca2531b8cd79ea5b778ede3a524779b9 *ubuntu-14.04.1-server-amd64.iso
3aa14ca13d52df070870d39306f4a4eb *ubuntu-14.04.1-server-i386.iso
b31731ea6cdbebe1d02f8193db420886 *wubi.exe

This shows that the MD5 hashes that you got from  WinMD5Sum and fileVerifier++ are correct.


Why can I successfully ping stats.nba.com and not stats.nba.com/stats

As far as i know...you ping hosts, not paths or hosts + paths.

You may try curl o wget to "ping" a host+path and parse the http code in the response.

UPDATE 1:
You may want to check the path.
For stats.nba.com/stats , host exists, but path doesn't.

Doing a curl call, i get 2 redirects
1.- http to https
2.- /stats/ to /error/, which return 200 OK instead of the expected 404 Not Found-

curl -sSL -D - stats.nba.com/stats -o /dev/null 2>&1 | grep -E '^HTTP|^Location'

Filter headers

HTTP/1.1 301 Moved Permanently
Location: https://stats.nba.com/stats
HTTP/1.1 302 Moved Temporarily
Location: https://stats.nba.com/error/
HTTP/1.1 200 OK


Ubuntu switched from eth0 to eth2 after changing network adapter

The file you are looking for is probably /etc/udev/rules.d/70-persistent-net.rules


Firefox won't play MP4 files from the server

You should check if your server properly configured and sending right MIME type for video files you serve. For MP4 its generally video/mp4.
As for "its works in Chrome" - Firefox is picky with mime types.


Try to remove snapd completely with:

sudo apt-get purge snapd snapd-login-service

Re-enable main repository with:

sudo add-apt-repository main

Then install it again:

sudo apt-get update
sudo apt-get install snapd snapd-login-service

This should make /snap directory available again.


Realtek RTL8723BE Wifi Disconnecting After few minutes

Sayan Dutta, I also faced the same problem. But i manage to solve this by adding a file in system folder. Process is given below.

Download the following file from Dropbox and unzip the zip file.
https://www.dropbox.com/s/lhk02dxj1vdei6d/rtl8723be.zip?dl=0
Then open the terminal by pressing Ctrl+Alt+T and run following command

  gksudo nautilus

hit Enter and give the password.

Then a window will appear, then navigate to "/etc/modprobe.d"
Copy the extracted file and paste in the folder.

Then you have to restart the system and then your problem will be solved.


Remove window title / window decorations in Gnome 3.10

Sorry but that's not possible with Gnome 3. The extension Maximus doesn't work with latest versions of Gnome either. The only way is switching DE for another with offers you that alternative.


How do I get an Evolve Mars TV Tuner working?

Yes, this is possible, with kernel > 3.3 ( kernel 3.5 is currently available in backport package linux-generic-lts-quantal ): see http://linuxtv.org/wiki/index.php/ITE_IT9135. In short: you need to download the firmware from http://www.ite.com.tw/uploads/firmware/v3.6.0.0/dvb-usb-it9135.zip, unzip, and then

dd if=dvb-usb-it9135.fw ibs=1 skip=64 count=8128 of=dvb-usb-it9135-01.fw
dd if=dvb-usb-it9135.fw ibs=1 skip=12866 count=5817 of=dvb-usb-it9135-02.fw

Copy the two resulting .fw files to /lib/firmware ; replug device. You should see /dev/dvb/adapter0/frontend0 show up (along with messages in dmesg); then just fire up Kaffeine and it will work (or whatever app you use to watch TV on your computer).


If you are new with ubuntu, I recommend you to use Playonlinux to easy setup Wine.

sudo apt-get install playonlinux

It has a good catalogue of popular games and Windows applications.

Each Windows Application is different and may works well with an specific wine version, if you want to do it the right way, you could search for compatibility details of each one on https://www.winehq.org/ based on user tests and comments.

With PlayOnLinux you can easily make a separate profile (wineprefix) for each windows applications using different wine versions, requirements and configuration.


Do the tasks on the active workspace have higher priority?

Workspaces are just something to structure your windows better. They don't group processes, or edit their priority.


Can't boot/access Ubuntu LTS 18.04 after erasing Windows

I see your laptop is an Acer. In order to disable secure boot follow these steps:

Make sure your UEFI is up to date.
In UEFI, you must set a supervisor password. Once the supervisor password is set, some new menus are accessible.
Enter the "Select an UEFI file as trusted for executing" menu. It will allow you to declare the newly installed Ubuntu boot image as trusted on your laptop.
Select EMMC >> EFI >> Ubuntu and select the file shimx64.efi. You will be prompted to give it a name of your choice (which will appear in the F12 boot options).
Type the name press Enter and then "Yes" should be highlighted.
Press enter again. Restart the computer without any boot disk and tap F12 during the boot process.
You should now get the boot option menu with the name you chose.
You can change the boot order in UEFI now so that it boots directly to the Grub screen.
Either disable the supervisor password, or save it in a secure place.


You need at least HDMI Version 1.4, taken from here: http://de.wikipedia.org/wiki/High_Definition_Multimedia_Interface

I would be eager to test mp4 "Big Buck Bunny 3D" with Bino3D or 3Dtv, available here: BBB 3D


Try this.

Open the Terminal (Ctrl+Alt+T) and type:

gksu gedit /etc/default/grub

Change the line:

GRUB_CMDLINE_LINUX=""

To:

GRUB_CMDLINE_LINUX="acpi_osi=Linux"

Save the file and quit the text editor.
Now in the terminal run:

sudo update-grub

Restart Ubuntu.

Based very closely on this article: living in java


You can create a symlink of your upstart file from /etc/init/sidekiq.conf to /etc/init.d/sidekiq and then run sudo service sidekiq start .

A better way to debug your upstart script is to put pre and post block as mentioned here http://upstart.ubuntu.com/getting-started.html .

Here is a sample sidekiq.conf https://github.com/mperham/sidekiq/blob/master/examples/upstart/sidekiq.conf .

Put the below code in your exec part to send all the output and errors to a file .

exec 2> /tmp/rc.local.log  # send stderr from this file to a log file
exec 1>&2                      # send stdout to the same log file
set -x


Why is my laptop losing so much power while in suspend mode?

By default Ubuntu is not very power efficient, so, installing any third-party software will solve your problem. The best third-party software as such available is TLP.

To install TLP install:

sudo add-apt-repository ppa:linrunner/tlp

sudo apt-get update

sudo apt-get install tlp


BCM4313 wireless not working on Dell Inspiron 4010

Connect your PC to the internet via LAN. Open terminal and run this command:

sudo apt-get install b43-fwcutter

Reboot and Wifi should work.


Is it possible to update Ubuntu Live USB stick?

Boot with your live USB, open a terminal and use:

sudo apt install mkusb

Then run mkusb and create a new live USB with persistence using a new stick on a different USB port. Pay careful attention to using the correct USB port with the new USB stick.

Follow these instructions.


mount --bind /dev sometimes "kills" tty until unmounted

If the propagation type of /dev is shared, then mount and unmount operations will be copied from /dev/ to other/dev and vice-versa, unmounting other/dev will therefore unmount from /dev everything that was mounted after the bind mount.

To solve this set the propagation type of other/dev before unmounting it:

mount --make-rprivate other/dev


Bluetooth and 2.4 GHz Wi-Fi share the same radio frequency.

Some wireless drivers can handle it well, but sometimes the coexistence technology has to be enabled in configs.

With Broadcom Wi-Fi+BT chips there is no way to change anything there. The only way to improve BT performance is to disable Wi-Fi, or use only 5GHz.


It might be simpler to use:

Type=Application
....
Exec=firefox "http://askubuntu.com"

instead of Type=Link & URL=https://askubuntu.com/. When I last tried using link launchers all kinds of weird stuff occured (opened most of the links in Chromium, Firefox new windows all rest of the time, etc)

An alternative to adding the #!/usr/bin/env xdg-open line to the top is to make the file executable using this command:

chmod +x "/PATH/TO/LAUNCHER.desktop"

or by making sure this is ticked in the file's properties (under 'permissions'):

See also: Desktop launcher documentation?


Error when copying from Desktop to any other location

The article quoted above at Ubuntuforums is a very old discussion and is not really applicable to current Xfce. The following discussion is made up from my experimentation and with reference to the nautilus --no-desktop discussion at the xfce forums.

It depends whether you want to run xfdesktop and nautilus together, or let xfdesktop handle the desktop and use nautilus just as a filemanager. On my 12.04 machine, which has the ppas for xfce 4.10 and 4.12, nautilus seems to work well. However, there are some possibilities if you have problems.

I note you said that you had already made nautilus the default filemanager and removed xfdesktop, but you should be able to run nautilus and xfdesktop in the same session if you use the --no-desktop option when you run nautilus. If you apply any of the commands below, you should logout and then login again to see any changes.

IMPORTANT NOTE:  you must find what exactly are your own CLientCommands in your xfce session by launching xfce4-settings-editor and going to the xfce4-session tab and noting which ones currently refer to Thunar and xfdesktop, then modify the number in the commands below accordingly.

Scenario 1) no xfdesktop installed and nautilus is the default filemanager.

You may need to look at your xfce4-session, and alter the failsafe defaults for the Client Commands that define an Xfce session. You also have to do this if you wish to replace the window manager with another one, and I think it might help in this case.

As an example, you could change the Client_Commands that refer to Thunar and xfdesktop to nautilus --no-default-window using xfconf (The --no-default-window option just stops a nautilus window being opened at login).

Remember to use the numbers of the Client_Commands on your own system-see xfce4-settings-editor.

xfconf-query -c xfce4-session -p /sessions/Failsafe/Client2_Command -t string -s "nautilus" -t string -s "--no-default-window" -a
xfconf-query -c xfce4-session -p /sessions/Failsafe/Client3_Command -t string -s "nautilus" -t string -s "--no-default-window" -a

Upon logging in you will get a blank desktop, but you can set a desktop wallpaper by using gnome applications such as gthumb.

This is the best way to ensure that nautilus is running the desktop and nothing else is interfering.

See the end of the article for how to reset them. Logout and login again to see any changes.

Scenario 2) xfdesktop is installed and you wish to use it to manage the desktop and nautilus as a filemanager.

Find the number of your own Client_Command for the filebrowser (Thunar) by refering to the xfce4-session part of xfce4-settings-editor. As an example, my Client_Command was 2, and so this was changed to nautilus --no-desktop --no-default-window.

xfconf-query -c xfce4-session -p /sessions/Failsafe/Client2_Command -t string -s "nautilus" -t string -s "--no-desktop" -t string -s "--no-default-window" -a

Logout and login again to see any changes.
Remember to use the numbers of the Client_Commands on your own system-see xfce4-settings-editor.
Whenever you launch nautilus in your session you should use nautilus --no-desktop.

If you need to Reset Changes

Select the appropriate section in xfce-session in the graphical xfce4-settings-editor or use xfconf-query. You must use the actual numbers of the Client_Commands on your own system, not necessarily these ones given in the examples below:

xfconf-query -c xfce4-session -p /sessions/Failsafe/Client2_Command -t string -s "Thunar" -t string -s "--daemon" -a
xfconf-query -c xfce4-session -p /sessions/Failsafe/Client3_Command -t string -s "xfdesktop" -a

Logout and login again to see any changes.

The options suggested above might be useful for you, although very often problems with nautilus on Xubuntu are not always easily solved. The first scenario that makes nautilus manage the desktop and act as filemanager might be most useful, assuming you have made nautilus the default filemanager.


http://support.citrix.com/proddocs/topic/receiver-linux-13-0/linux-install.html

It's not as simple as it should be. I can't get the Citrix Receiver Engine to always open the "launch.ica" file in Chromium, and in Firefox it is necessary to click the block at the left-hand end of the address bar and select "Allow and remember", but it's certainly much easier to get it running in Firefox.


How can I install the Realtek RTL8111E version 8168 driver?

Assuming your r8168 was compiled correctly, do the following:

Create dependency list of kernel modules:

sudo depmod -a

Add this line to /etc/modprobe.d/blacklist.conf:

 blacklist r8169

Edit /etc/initramfs-tools/modules and add line:

r8168

Update existing initramfs:

sudo update-initramfs -v -u -k `uname -r`

Note that in command 4, those are not quotation marks, but grave accents. That is the key to the left of the one key on the alpha part of the keyboard.

Reboot. You should come up running r8168. To verify, run

sudo lspci -v


How to write a script that generates a text file and opens it?

Something like:

#!/bin/bash
today=$(date "+%Y-%m-%d")
echo "Work Plan $today" > work_plan_"$today"
gedit work_plan_"$today"

Don't forget to make it executable with chmod +x gen-work-plan.

To run it without path, either add the directory containing the scrip to your $PATH in ~/.bashrc (recommended for security):

export PATH=$PATH:_Location_of_the_file_

Or symlink it in /usr/bin:

ln -s _location_/gen-work-plan /usr/bin/gen-work-plan


How can I configure the default transmission rate for 802.11 (“WiFi”)?

Please (after you created the backup copy) edit your /etc/network/interfaces file to the following state by adding the last three lines:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
  pre-up iwconfig wlan0 rate 1M

I am not sure if this works as I can't try it out here. Maybe you will lose your wlan0 connection because I missed some necessary additional lines. If this happens, reset the file to the backup state and it should work again as before.


How to use i2cset to display the ip address

If you run the command as sh ip.sh, it will be run using sh, not with bash (making the shebang line pointless). Either run it with bash:

bash ip.sh

Or make it executable and run it directly:

./ip.sh

The traditional Bourne shell (sh) doesn't support the function keyword for function definition.

Aside from that, "echo $IP | grep -o ." doesn't run that command, it simply is that string. You need to do:

for i in $(echo $IP | grep -o .)

It might be easier to read in one character at a time:

hostname -I | while read -n1 i
do
    hx=$(hex $i)
    i2cset -y 1 0x3e 0x40 $hx
done


It is known as CVE-2019-14287 and already fixed as backport.

All you need - is to run:

sudo apt update
sudo apt upgrade

(but is more likely that unattended-upgrades was already installed all updates)

See USN https://usn.ubuntu.com/4154-1/ :

and was indicated in changelog of sudo 1.8.21p2-3ubuntu1.1 for 18.04 LTS.


Why my kernel is not the latest for 14.04?

Apparently I didn't have the meta package linux-generic installed... A simple

sudo apt-get install linux-generic && sudo apt-get install --reinstall nvidia-346

Did the trick!
Amazing, didn't think I somehow managed to remove that meta-package...

Now I gotema@scv:~$ uname -a
Linux scv 3.13.0-46-generic #75-Ubuntu SMP Tue Feb 10 15:24:04 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Result!


If you can access a terminal use sudo poweroff. You can access a TTY by pressing Ctrl+Alt+F1; TTY is just a terminal. You can return to the graphical desktop by pressing Ctrl+Alt+F7.

Otherwise you can use kernel interupts to safely shutdown the computer:

Ctrl+Alt+Print Screen+R,E,I,S,U,B (Hold down Ctrl, Alt, and Prnt Scrn then press REISUB in that order with about a second pause between each letter)

The keyboard has to be plugged into the computer you want to shut down. The command above will restart the computer. Unfortunately, it's not so easy to just power-off this way. Hit the power button after the computer restarts to keep it from rebooting all the way.


answer, you need to use that horrible Unity interface in order to install printers and perform other tasks.  If you've installed the Gnome Classic interface, you can see printers, but it will not allow you to install/modify any.

Log out, log back in using the Unity "Ubuntu" desktop and you can manage your printers, once that's done, escape to sanity back to the Classic Gnome.


With a working internet connection by ethernet, tethering or whatever means possible, open a terminal Ctrl+Alt+T and do:
sudo apt update
sudo apt install build-essential git dkms bc
sudo git clone "https://github.com/RinCat/RTL88x2BU-Linux-Driver.git" /usr/src/rtl88x2bu-git
sudo sed -i 's/PACKAGE_VERSION="@PKGVER@"/PACKAGE_VERSION="git"/g' /usr/src/rtl88x2bu-git/dkms.conf
sudo dkms add -m rtl88x2bu -v git
sudo dkms autoinstall

You may safely copy and paste each command and execute them one at a time. Remove and reinsert your USB wireless and it should now be working.


Ubuntu crashing - memtest86 shows failed tests - can tweaking UEFI help or Grub BadRam?

If you look in /etc/default/grub, you'll find a GRUB_BADRAM= parameter where you can identify what bad memory locations there are.
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

Also see How to install Ubuntu on a laptop with soldered RAM module that has damaged cells

Source: https://help.ubuntu.com/community/BadRAM#BADRAM_setting_in_Grub2
BADRAM setting in Grub2
The GRUB2 config file in Natty has a line for configuring kernel bad ram exclusions. So, I will assume that is the preferred way of mapping out a section of memory that is showing errors. The line I set was
GRUB_BADRAM="0x7DDF0000,0xffffc000"

The suggested way on every web site I could find was to set this was to run memtest86 and let it show you the BadRAM settings. memtest86 gave me a page of stuff I would have had to enter. I could see that all the addresses were in one 16K block, so I just wanted to map that 16K block out of action. Here is how I generated the correct entry.
The first parameter is easy. That is the base address of the bad memory. In my case, I could see that all the bad addresses were greater than 0x7DDF0000 and less than 0x7DDF4000. So, I took the beginning of the 16K block as my starting address.
The second parameter is a mask. You put 1s where the address range you want shares the same values and 0s where it will vary. This means you need to pick your address range such that only the low order bits vary. Looking at my address, the first part of the mask is easy. You want to start with 0xffff. For the next nibble, I will explain with bit maps. I want to range from 0000 to 0011. So, the mask for badram would be 1100 or a hex c. The last 3 nibbles need to be all 0s in the mask, since we want the entire range mapped out. So, we get a total result of 0xffffc000.
After setting this line in /etc/default/grub, I ran sudo update-grub and rebooted and my bad memory was no longer being used. No kernel patches are needed to map out bad memory using this method.