fn + arrow keys don't adjust actual brightness on an Acer Aspire 5740

It's a known bug. You can view it here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/543294
Well someone posted a workaroudn like this:

1. Open a terminal (Program - Accessories - Terminal)
2. Type in "sudo gedit /etc/default/grub" (without the "")
3. Find the line that says: GRUB_CMDLINE_LINUX="quiet splash"
4. Edit it so it says: GRUB_CMDLINE_LINUX="quiet splash acpi_backlight=vendor"
5. Save and exit
6. Run the command "sudo update-grub" (again without quotes of course)
7. Reboot and enjoy!

and yeah, it worked for me


Ubuntu on virtual machine: ethernet doesn't work Intel Gigabit Ethernet Controller is disabled

Okay I solved the problem with these commands:

ip link set dev eth2 down
sudo dhclient eth2


ifconfig eth0 eth0: error fetching interface information: Device not found

The fact that ifconfig -a does not list eth0 means that your wired adapter hasn't been found. Things to check:

lspci - is you network adapter listed?
Reboot and enter bios setup. Check if the built in network adapter is enabled.


Dell Photo 924 AIO printer not being detected

Not the answer, but a hint could be that most of the Dell printers are rebranded Cannon's. Might be an outside shot if you could figure out what is the closest model to t


What additional software should I install for a Macbook?

1
    Open a terminal (Ctrl + Alt + t) and execute the following commands -

sudo apt-get update
sudo apt-get upgrade

2. Install ‘Ubuntu Restricted Extras’ – codecs/plugins

You need to install the audio mp3 (MPEG Layer 3) decoders as it’s required for playing your mp3 songs), similarly you need to install Adobe flash player on Ubuntu 11.10 for playing flash content such as YouTube Videos (although they are trying to replace the flash dependencies with HTML 5). You can install all these proprietary plugins/codecs by installing the package called ‘ubuntu restricted extras’. Open a terminal and execute the command -

sudo apt-get install ubuntu-restricted-extras

Restricted library/packages for playing encrypted DVD’s

Although you’ve installed ‘ubuntu-restricted-extra’, you still won’t be able to play any proprietary DVD (which is usually encrypted with CSS(Content Scramble System) ). Therefore You also need to install libdvdcss2, a free software library for unscrambling/accessing those DVDs. Open terminal and execute the following commands (You may need to reboot) -

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

3 install cheese – webcam software/driver for your webcam

If you want to use your webcam for taking pictures or recording videos then you must need a webcam software. Cheese is the most popular webcam software, and it’s already there in Ubuntu Software Center, or install it from terminal -

sudo apt-get install cheese

4. Install Chromium Web browser for faster browsing
chromium

Chromium - Browsing with Speed

Firefox is the default web browser in Ubuntu 11.10, which is slow and very unstable (if you’ve multiple tabs and add-on’s installed). On the other hand Chromium is pretty fast and it’s popularity is increasing exponentially. So it’s a must have Application on Ubuntu (or any other OS). Chromium supports all the extensions/themes that you use on Chrome. it’s one of the most popular software in Ubuntu Software Center. So you can install it in a single click from Ubuntu Software Center, or just type the command in terminal (Ctrl+Alt+T ) :

sudo apt-get install chromium-browser

You should install some codecs like FFmpeg for playing multimedia contents on web.

sudo apt-get install chromium-codecs-ffmpeg-extra

If you want to use chrome then go here – I’ve already explained about – installing Google Chrome on Ubuntu 11.10, in detail.

5. Install VLC Player

VLC player is one of the most popular open source media player. It is commonly called as – ‘all in one‘ media player, it has lot of features that you expect from a modern media player. On Ubuntu 11.10 – it’s a must have application – for video player it’s probably the best one. VLC player is capable of playing a wide range media formats such as mp3, avi, mp4, flv etc. Since it’s available in Ubuntu Software Center – you can either install it from there or type the command -

sudo apt-get install vlc

6. Install any Image editing program

An image editing/creating software is necessary for every one, by default no such program is installed. So you’re recommended to install an image editor.

GIMP is the most popular open source and free image editor, having features similar to Adobe Photoshop. GIMP has a lot of powerful features which allows you to create complex graphics designs/images. it is more suitable for intermediate users – those having some experience in image editing. To install gimp – either search in Ubuntu Software Center or install it from terminal -

sudo apt-get install gimp

For some extra set of brushes, gradients and plugins etc execute :

sudo apt-get install gimp-data-extras
sudo apt-get install gimp-plugin-registry


The few models I know, where you can actually upgrade the video cards are usually really high-end. I have tried to find details on your machine, but have not found anything indicating yours can. I have only read that in some efforts to save money, some OEM's shipped your HD 5470 with DDR3 instead of DDR5 memory which could lead to poorer performance. It supports GDDR5, but due to cost savings, the card may often be outfitted with slower DDR3 memory.


Connection attempts on port 80 in router logs but not server logs

This could be a SYN flood attack.

In brief, the remote attacker try to open as many TCP connection as possible, trying to exhaust some resource (memory, log disk, ...).

The default apache2 configuration (as tested on 16.04) does not log such data-less connection.

Your ubuntu box should be protected against that kind of attack, net.ipv4.tcp_syncookies seems to be enable by default on ubuntu, but your router may be at risk.


How to disable interactive dialogs in Ubuntu 1604 and 1804?

You need to set DEBIAN_FRONTEND=noninteractive inside the sudo environment - not before it:

Ex.

$ sudo DEBIAN_FRONTEND=noninteractive sh -c 'echo $DEBIAN_FRONTEND'
noninteractive

whereas

$ DEBIAN_FRONTEND=noninteractive sudo sh -c 'echo $DEBIAN_FRONTEND'
(empty)


Update date and disable automatic updates

Have you installed the VirtualBox Guest Additions? If so, there is a function in there that will regularly update the VM time to match the host, which can result in the situation you seem to be facing. Fortunately, it's not too difficult to disable.

Open Terminal

Disable GetHostTimeDisabled for the VM(s) you do not want to have sync with the host:
% VBoxManage setextradata "{VM Name}" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1

Start the VM

Note: Be sure to replace {VM Name} with the proper name of your virtual machine.
This setting is VM-specific and persistent so, even if you update the Guest Additions software for that VM, you will not need to re-disable the GetHostTimeDisabled function.


You should be able to do this by right-clicking a pdf document, selecting properties in the menu, then open with. In that list, you should find Documentviewer.


Do all webservers running locally rely on the /etc/hosts file?

A few things

1) Django probably isn't referencing your hosts file. ( I say probably, because I don't use Django, but it doesn't make sense for it to reference the hosts file as it shouldn't need to do a lookup on itself).

2) The hosts is for local name resolution. It has nothing to do with ports. If you want those two sites to resolve to your local machine, you should have this in your hosts file.

127.0.0.1     www.my-site.dev    username.my-site.dev

You can then access the site via your web browser by going to

www.my-site.dev:8000

The only way for you to not have to type in the 8000 is for you to make Django listen on port 80 (or providing you are doing SSL, 443). This should be configurable in Django, and shouldn't cause any issues (unless you are already running something that is using port 80).


I filed a bug report and now its expired. What do I do now?

I don't see a reason to report a new bug.

As described in that bug report, you should perform further tests, post the results and then you can change its status. I suggest you use New if the bug persists or Invalid if it has been fixed in new Ubuntu release.


Speaker not working (Dell Vastro14 3000 with Ubuntu 12.04 LTS)

Check your sound Output device - it have probably been upgraded to HDMI or other HiFi device your Vastro support:
Click the small speeker on the Applicationsbar, choose Sound Settings, go to the output Devices Tab, select the Built-in Audio Analog Stereo.
The Port is most likely set to headphones - which works!
Set it to Speakers!

If it still does not work check the Configuration Tab, make sure that Built-in Audio is connected to your Analog Stereo Whatever device!

You should hear your music through the inbuilt speakers - provided you have unplugged your headphones.


I think you should replace "DHCP" with "dhcp" :

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto em1
iface em1 inet dhcp

# This is an autoconfigured IPv6 interface

And restart the network:

sudo /etc/init.d/networking restart


Rote copying the settings/preferences of a user to other users

When you create a new user, files are copied from /etc/skel onto their new home directory. If you want files to appear there by default, just add them to /etc/skel. That goes for default configurations as well, so you can make a prototype user and copy that users home directory onto /etc/skel. Automatic setup of email accounts, etc, will require some scripting, but doesn't necessarily need to be very complicated. If you wanted to provide default web feeds for Liferea, you'd add the feeds to the prototype user and then simply copy the ~/.liferea_1.6 folder to /etc/skel/.liferea_1.6 and it would just work.

Some applications doesn't work like this. You can't do that with Evolution, for instance, but most applications can be configured that way.


How do I install ISO file in Ubuntu virtualbox with 64 bit?

You go to Settings -> Storage
Under Controller IDE, click on Host Drive.

On the right where it says Attributes -> CD/DVD Drive, Click on the cd image, and select 'choose a virtual CD/DVD disk file. Proceed to the File Browser and find the location of your iso file. Once you click open, the iso file will become your virtual CD/DVD drive, and you can install Yosemite from the iso file that way.


Existing laravel 4 project gives 404 in browser

I would like to try a possible solution with you today. Edit your configuration file. At the try_files line replace the whole line with try_files $uri $uri/ /index.php?$query_string;


grep command for a text file in multiple directories

To recursively search using grep, use the -R option.

To search for an exact string, use -F, so that 2* isn't treated as a regular expression.

To search only on specific filenames, use the --include option. Combined:

grep -FR --include=DATA.txt '2* x' main_directory > another_text_file


How to enable booting multiple Ubuntu Wubi?

You can't do it via the Windows boot manager. You can only do it with the manual switching (as you are apparently doing) or via a custom grub entry.

Step by step:

install first release (either 11.10 or 12.04)
copy \ubuntu directory to \ubuntufirst (or to be quicker, rename to \ubuntufirst, and then create a new \ubuntu directory with uninstall-ubuntu.exe, which is required to uninstall the first release)
install the second release
boot Ubuntu and add a custom grub entry to boot the first release. You would edit /etc/grub.d/40_custom and then run sudo update-grub. You can copy the entry from the /boot/grub/grub.cfg on the install you want to boot. An example of the entry would be something like the following:

menuentry 'Ubuntu, Other Wubi' --class ubuntu --class gnu-linux --class gnu --class os {
        set gfxpayload=$linux_gfx_mode
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos3)'
        search --no-floppy --fs-uuid --set=root YOUR-UUID-HERE
        loopback loop1 /ubuntufirst/disks/root.disk
        set root=(loop1)
        linux    /vmlinuz root=UUID=YOUR-UUID-HERE loop=/ubuntufirst/disks/root.disk ro   quiet splash vt.handoff=7
        initrd    /initrd.img
 }

A couple things to note... you change loop0 to loop1 because loop0 will be in use already (with your original install). Also, use /vmlinuz instead of /boot/vmlinuz-3.x.x-x-generic because then you don't have to keep updating it (/vmlinuz points to the latest). The same applies to /initrd.img

Here's my working example (in this case the copy is in the same \ubuntu\disks folder):

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

    menuentry 'Ubuntu - backup precisenew.disk' --class ubuntu --class gnu-linux --class gnu --class os {
            set gfxpayload=$linux_gfx_mode
            insmod part_msdos
            insmod ntfs
            set root='(hd0,msdos3)'
            search --no-floppy --fs-uuid --set=root 18B4B7BBB4B799A8
            loopback loop1 /ubuntu/disks/precisenew.disk
            set root=(loop1)
            linux   /vmlinuz root=UUID=18B4B7BBB4B799A8 loop=/ubuntu/disks/precisenew.disk ro   quiet splash vt.handoff=7
            initrd  /initrd.img
    }

This is what it looks like when booted

bcbc@arcturus:~$ mount | grep ' / '
/dev/loop0 on / type ext4 (rw,errors=remount-ro)
bcbc@arcturus:~$ sudo losetup /dev/loop0
/dev/loop0: [0803]:34470 (/host/ubuntu/disks/precisenew.disk)
bcbc@arcturus:~$

If you use this technique you probably should update /etc/fstab to reflect the updated locations. It won't affect / but if you have a separate /home or you want to use the correct swap.disk.

In my opinion, this isn't a useful solution for most people. Wubi is designed to be simple for beginners. But if you are using it to test different releases, there aren't many options for booting into them, other than renaming the \ubuntu directory and updating C:\wubildr each time.

NOTE: When Grub is updated on a Wubi install, it will rebuild the /wubildr file and this will point to whatever the current virtual disk is. In the above example, it will point at precisenew.disk. This is likely undesirable as it's simpler to have a master install. To avoid this happening you can either keep backups of your C:\wubildr file, or edit /usr/share/lupin-support/grub-mkimage on the secondary install (not your main one):

--- /mnt/usr/share/lupin-support/grub-mkimage 2011-09-20 03:44:44.000000000 -0700
+++ /usr/share/lupin-support/grub-mkimage 2012-10-29 22:02:55.784517389 -0700
@@ -112,7 +112,7 @@
         exit 1
     fi
 fi
-
+exit 0 # for non-primary install, bypass creation of wubildr
 wubildr_partitions="$(find_wubildr)"

 if [ ! -f "$target" ] && [ -z "$wubildr_partitions" ]; then


How to install Android Studio :

1 - Download All Android Studio Packages for linux from here .

2 - Unpack the downloaded ZIP file into an appropriate location for your applications (for instance, in your home directory).

unzip android-studio-ide-141.2117773-linux.zip

3 - Go to the android-studio/bin/ by typing:

 cd /home/<user_name>/android-studio/bin/

(Replace <user_name> by your login user)

4 - And type :

sudo chmod u+x studio.sh

5 - After pressing enter, you will be prompt for root password, after entering password, hit enter and then type :

./studio.sh

Source :

Installing Android Studio
How to install Android Studio in Ubuntu 14.04.1 LTS


Unable to burn iso to disk on OSX DVD +R

Maybe try burning from command line:
Assuming that all you want to do is create a CD based on the ISO 9660 file system standard, you can quickly burn the CD using the following command:

cdrecord -v -pad speed=1 dev=0,0,0 src.iso

source


No option for booting from Ubuntu on dual boot with two HDD, boot loader problem

Your computer may have an EFI, but both your OSes are installed in BIOS mode, so EFI-specific issues are unimportant.

There should be an option to set the second disk as the default one for booting. If such an option is missing, then that's a design flaw of your firmware. I recommend you check again for such an option. (Maybe it's in a menu you've not examined, or is available only when you select some other boot-related option.)

If you can't find such an option, you have several possible solutions:

Install GRUB to /dev/sda with sudo grub-install /dev/sda or by using Boot Repair. This option should produce a working boot to GRUB, which should then enable you to boot either Ubuntu or Windows; however, I can't promise it will actually work as it should. There's a small chance that this operation will make matters worse.
Swap your disks (by swapping the cable connectors) so that /dev/sda becomes /dev/sdb and vice-versa. This should cause GRUB to come up by default, assuming the firmware is booting by device connection order rather than by identifying the disk make/model or serial number. My guess is that this option is less risky than the first, but there's a chance that Windows will become confused when its assigned disk changes.
Use my rEFInd boot manager:

Create an EFI System Partition (ESP) on your GPT disk (/dev/sdb).
Download the USB flash drive or CD-R version of rEFInd and prepare an external medium with it.
Boot to the rEFInd medium. This should enable you to boot to Ubuntu.
In Ubuntu, install the rEFInd PPA or Debian package.
Edit /boot/efi/EFI/refind/refind.conf: Uncomment the scanfor line and add hdbios to the list of options.
When you reboot, you should see a new diamond-shaped option that should boot Windows, and you should still be able to boot Ubuntu.

That last option is rather complex. I wouldn't ordinarily recommend a mixed-mode setup like that. I mention it as an option because the setup process is likely to be a little safer than installing GRUB to /dev/sda. Overall, I'd say your best bet is to swap your disk cables. If that fails, I'd recommend trying rEFInd, although that wins out to installing GRUB to /dev/sda by a rather small margin.


It's not a virus just malware with unexpected or unwated behaviour that can run on Wine like every other Windows software, therefore:

Do NOT execute software from untrusted sources (applies to all software and software packages; is not limited to Windows software; also includes tarballs, debs/rpms and shell scripts).
Think before executing Windows software, even if you trust the source.
To get rid of the nagging behaviour:

Remove Wine entirely or...
Remove the ~/.wine folder, which is equal to reinstalling Windows.
Backup your home folder and start with a clean one (or just create anoher user).


I have a VM (running Ubuntu 16.04) in Hongkong and installed PiVPN and OpenVPN, by following the instruction at https://github.com/pivpn/pivpn.
The setup script curl -L https://install.pivpn.io | bash allows you specify lots of things, such as public IP, interface, tls-crypt (Obfsproxy), very straightforward
To find out your device, run

ip link
ip address

If you still can't get your OpenVPN working, after successfully connected, check your DNS

Hope this helps


Errors when runing apt-get upgrade (Ubuntu 14.04 LTS)

For added visibility, here is what fixed it for me:

apt-get -f install

Thanks, @Kuntal Majumder


Does it make sense to store a git repo on Ubuntu One?

Most likely - there are questions and discussions on StackOverflow about doing this with DropBox (which is extremely similar to what you are asking):

is-this-plain-stupid-git-sharing-via-dropbox

and

using-gitdropbox-together-effectively


MATE System Monitor does not display CPU usage correctly

Go to View → All processes and disable the "Dependencies" checkbox to get them to sort correctly.


CellC data card not recognized if I boot with it in

OP Does not want solution

  Sure thanks, I can live with it. As long as the users know and understand how it works. Its just the first thing I noticed after upgrading from the previous version. Also, the windows environments dont have this problem.


Graphical Login wont show up after installing GTK+ 3.0 ( The GUI creation software )

Sometimes, especially if you have a newer pc, the ubuntu video drivers don't fully work for your graphics card. You could try installing them using the instructions found at the Ubuntu wiki for installing Nvidia video drivers below.

Go to Software & Updates -> Additional Drivers
Once the drivers are downloaded and installed, reboot your computer.

How to install Nvidia drivers in Ubuntu


404 NOT FOUND when I try to access my project's index.php

I got the problem solved. I placed my project folder here: /var/www/html/ and then reloaded localhost/project_name/index.php.


Caps lock indicator does not work in kubuntu 12.04 w/ plasma workspace

Keylock works for me. Type these commands in konsole:

sudo add-apt-repository ppa:tsbarnes/indicator-keylock
sudo apt-get update && sudo apt-get install indicator-keylock

Then go to System setting, Startup and shutdown, click Add program at autostart. Then browse to /usr/share/bin/ and select indicator-keylock and finally reboot your system.

Alternatively, you can try plasma-widget-kbstate .

To install it, run the following command:

sudo apt-get install plasma-widget-kbstate


Block and unblock access to certain domains

There is a Linux version of SelfControl program which essentially does that - blocks a list of domains for a specified number of hours. It does this using iptables, so you may consider it a nice wrapper for shell commands. The difference from your description is that it intentionally makes it difficult to unblock a domain - to make self-control a bit easier :)

Other options, such as editing /etc/hosts or writing a script which adds/removes an iptables rule - are also viable.

At least you can study SelfControl source to see how it manipulates iptables.


Install Ubuntu Single Boot (Without Windows)

It's not hard to have an Ubuntu. First of all delete whatever you have on your PC. Then change format of your hard disk and use EXT 4 format instead of NTFS. After that divide your hard disk into some parts, Like a special space for root ( / ), swap (virtual memory) and home.

My recommendation is to use 50 GB for root, twice your RAM space for swap and rest of it for your home.

Install Ubuntu and Enjoy it!


Can I do filename pattern matching in a bash script?

You need to put a shebang line at the top of the script. Without a shebang line, the kernel doesn't know that your script must be executed with bash. See Shell script fails: Syntax error: “(” unexpected

In addition, the !(…) syntax is not enabled by default, for historical reasons (earlier versions of bash did not support it). You need to set the extglob option.

#!/bin/bash
shopt -s extglob
echo !(exclude*)


See here, at the bottom of the page.
Install faad if needed sudo apt install faad
dd ibs=1 skip=44 if=yourfilename.m4a of=raw.m4a
faad -a newname.m4a raw.m4a
All credits to the author of the link I am pointing to, cause I do not know what I am doing, but I tested it on your bigger file, and it works.  First command takes some time.  Be patient.  Tried it on ubuntu 16.04.

As pointed out in the comments, the result can be opened in VLC, but not in Audacious.  But we can use vlc to transcode it, or rewrite it to another format.  The script below converts all *.m4a files in the current directory to *.mp3.
    #!/bin/bash

quote=\"
executable="/usr/bin/vlc"
argument3=vlc://quit

#transcoding parameters
acodecvalue=mp3
bitratevalue=128
accessvalue=file
muxvalue=raw

for x in *.m4a; do
    inputname="${x}"
    strippedname=${x%.m4a}
    outputname=${strippedname}.mp3
    quote_outputname=${quote}./${outputname}${quote}
    echo ${inputname}
    echo ${quote_outputname}
    qtranscode=#transcode{vcodec=none,acodec=$acodecvalue, # continue line !
    ab=$bitratevalue,channels=$channelsvalue}              # continue line !
    :standard{access=$accessvalue,mux=$muxvalue,dst=${quote_outputname}}
    argument1="$inputname"
    argument2=--sout=$qtranscode
    "$executable" -I dummy "$argument1" "$argument2" "$argument3"
done


Edit the /etc/default/keyboard file:

XKBLAYOUT="us,ua"
XKBOPTIONS="grp:shift_caps_switch,lv3:ralt_switch"

This should be effective after next reboot.


Add to your vsftpd config (/etc/vsftpd.conf):

pasv_enable=YES
port_enable=YES
pasv_min_port=<port-start>
pasv_max_port=<port-end>
pasv_address=<your-machine-ip>
pasv_addr_resolve=NO

In the security config of your instance open port 20-21 for FTP, also enable passive ports to the range you specified above (pasv_min/max_port, eg: 64000-64100).

Restart vsftpd.

if that doesn't work you can try to replace the last two lines with:

pasv_address=<public-address>
pasv_addr_resolve=YES


Solved

The password prompt was actually asking for the samba user password which I had not set then, I think this is not my fault completely cause it the password prompt should have shown and error that enter samba user password not account password.

Just enter this commad to give a password to the samba account

sudo smbpasswd USERNAME -a

where USERNAME is your username and then enter and provide with a password for samba user.


Ubuntu boots to black screen, cannot access Grub

The solution posted by OP.

If Ubuntu is installed in UEFI mode, the key to access Grub is esc, not shift like usual!


MTA questions about POSTFIX, outlook,,smtp, pop, etc

Access your email mailbox(es) using IMAP protocol.

You may consider using Dovecot IMAP server.
http://wiki2.dovecot.org/PrebuiltBinaries#Ubuntu
http://wiki2.dovecot.org/LDA/Postfix


How to run  Samsung Android Kies software on Wine ?

Yeah it's a major pain in the arse (speaking as somebody who has tried everything). Wine doesn't work reliably with things that need hardware connections. If you're trying to upgrade your phone's firmware, it's just plain not worth the risk.

VirtualBox (with Windows installed within, and the USB plugin installed) would normally be a viable option but for some reason VBox really hates my Galaxy S2. If you can get this to work, that's great.

For upgrading firmware I turned to Heimdall. This is essentially an open source replacement for Samsung's Odin tool (that isn't officially available to the public). I had success with this but I'm not sure it supports your phone.

Failing that, borrow a friends Windows laptop and install Keis. I tried this after VirtualBox failed but Samsung's 64bit drivers are awful. Plain wouldn't work. I think they've updated them since but it was too late for me. If you have easy access to a proper install of Windows you should probably try this first.


You can alias anything you like (but check that the command you want to use doesn't already exist first: type open should tell you not found) Make a backup of your ~/.bashrc and define the alias:

cp .bashrc bashrc-bak
nano .bashrc

Add at the end

alias open='xdg-open'

Or if you want to avoid seeing any warnings from the program that is called, discard output with a redirection as suggested by TalkLittle:

alias open='xdg-open &>/dev/null'

Save and exit, then type source .bashrc to use the alias immediately. The alias will take arguments just like the full command, of course.


Two packages want to write to /etc/openni/GlobalDefaults.ini, the libopenni-sensor-pointclouds0 package and the libopenni-sensor-primesense0 package. That should not happen, and is an error in the packets. As a somewhat hackish solution, I would try to do a backup of that file, e.g., like this:

sudo mv /etc/openni/GlobalDefaults.ini /etc/openni/GlobalDefaults.ini.back

then, do the sudo apt-get -f install. With a little bit of luck, it will go through. You should then do a

diff /etc/openni/GlobalDefaults.ini /etc/openni/GlobalDefaults.ini.back

to check whether there are any major differences in the configuration that you need to take care of.


ifconfig cannot update my wireless connection settings

Those settings are applied to the hardware of the Ethernet adapted only as it transitions from DOWN to UP.

sudo ifconfig ens160 down
sudo ifconfig ens160 up

will apply your settings,


Running on low graphics mode after kernel upgrade

Maybe this could help...
Upgrading to Ubuntu 12.04 loses keyboard and mouse

Before you try anything try booting up without mouse and keyboard to Ubuntu and after just reattach them.

For low graphics problem, go to Additional Drivers and try to reinstall or install driver if its not installed.


So I found an answer. By following the steps posted by Pilot6 and then running service network-manager restart I was able to get it to work.


Bluetooth won't turn on on Lenovo G510 with Ubuntu 14.04 LTS

This might need my old work around

echo "blacklist ath3k" | sudo tee /etc/modprobe.d/ath3k.conf

Then edit rc.local sudo -H gedit /etc/rc.local

And add a couple lines so the last 3 lines are

sleep 45
modprobe ath3k
exit 0

Save, exit and reboot


How to rename a group of files with what looks like a Windows file path in their names

I just removed everything up to the last backslash with rename
$ rename -n 's/.*\\//' G*
rename(G:some\really\long\file\path\then\the\file_name.mov, file_name.mov)
rename(G:some\really\long\file\path\then\the\filename.txt, filename.txt)
rename(G:some\really\long\file\path\then\the\name1.jpg, name1.jpg)
rename(G:some\really\long\file\path\then\the\name2.png, name2.png)

Remove -n after testing to actually rename the files.
Notes

-n don't do anything, just print what will be changed
s/old/new replace old with new
.* any number of any characters
\\ The first backslash is to escape the second one.
Since regex are greedy this expression .*\\ eats all the preceding backslashes too.
Since the last two delimiters // are empty everything matched in the search part is deleted


how to create an alias which changes the bash prompt?


Installing Epson Stylus Office BX535WD scanner driver

Updated the links for the latest driver.

To install the right driver, you need to download either of these 2 flies depending on your system architecture, 32bit(i386) or 64bit(amd64).

epson-inkjet-printer-201106w_1.0.1-1lsb3.2_amd64.deb (for Ubuntu 64bit)
epson-inkjet-printer-201106w_1.0.1-1lsb3.2_i386.deb (for Ubuntu 32bit)

You can download these files from Here

Once you download the right file, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the download folder, and run the command:

sudo dpkg -i <package_name>.deb


X forwarding from Ubuntu Server Ed to Windows 7

To forward X11 apps over your ssh connection, there needs to be something on your Windows client to which the X11 applications can connect. In other words, you need to run an X server for Windows, which will translate X11 protocol messages from the ssh connection into graphical drawing commands and send mouse and keyboard actions back across the network.

There are several options for this, one is Cygwin/X: http://x.cygwin.com/


Did not tick mark options during Ubuntu installation. [Read Detail]

Codecs
Install ubuntu-restricted-extras from Ubuntu Software Center. It contains all these restricted codecs, flash and staff.
  Drivers

Ubuntu 12.04

Search for Additional drivers from dash, open the program and it will show you if any of them are available.

 For later versions of Ubuntu

Search for Software Sources in dash, open it. Now go to additional drivers tab and it will show available drivers.

 Updates

You will be informed about updates automatically.
You can also manually check for Software Updater from dash and update Ubuntu.


I just installed bash on windows. When I use sudo, sudo hangs

ok so moments after I typed this up, sudo said it couldn't resolve host name and gave me the password prompt. Is installing packages.


How to install debug flash player 11.1 on 64-bit

I found the workaround:

First install the 'nspluginwrapper':

sudo apt-get install nspluginwrapper

or Using Software Center

Then copy the debug player to the correct location:

sudo cp ~/Downloads/libflashplayer.so /usr/lib/flashplugin-installer/

Next, call nspluginwrapper:

sudo nspluginwrapper -i /usr/lib/flashplugin-installer/libflashplayer.so


Ubuntu 18.04 unable to install python3 tkinter

So I would recommend to install packages from official Ubuntu repositories with:

sudo apt-get install libpython3.6-stdlib=3.6.9-1~18.04
sudo apt-get install python3-tk


18.04 does not shutdown, it goes into suspend modus

I solved it :) finally

steps:

sudo apt-get update && sudo apt-get install laptop-mode-tools

that caused a automatic update popup from ubuntu after having pressed ok button it was something installed, I am posting the log file from this time (of course most of these updates are not related to this issue, but anyway)

-rw-r--r-- 1 root root     224 Mai 17 21:33 rfkill.list
-rw-r--r-- 1 root root    1915 Mai 17 21:33 python3-launchpadlib.list
-rw-r--r-- 1 root root    2058 Mai 17 21:33 python3-lazr.restfulclient.list
-rw-r--r-- 1 root root     653 Mai 17 21:33 python3-oauth.list
-rw-r--r-- 1 root root    4115 Mai 17 21:33 python3-zope.interface.list
-rw-r--r-- 1 root root    1218 Mai 17 21:33 python3-wadllib.list
-rw-r--r-- 1 root root    2973 Mai 17 21:33 python3-simplejson.list
-rw-r--r-- 1 root root    1199 Mai 17 21:33 python3-lazr.uri.list
-rw-r--r-- 1 root root     234 Mai 17 21:33 php7.2.list
-rw-r--r-- 1 root root     423 Mai 17 21:33 libpoppler73:amd64.list
-rw-r--r-- 1 root root     293 Mai 17 21:33 libpoppler-glib8:amd64.list
-rw-r--r-- 1 root root     920 Mai 17 21:33 poppler-utils.list
-rw-r--r-- 1 root root     292 Mai 17 21:33 libpoppler-qt5-1:amd64.list
-rw-r--r-- 1 root root     473 Mai 17 21:33 libcurl3-gnutls:amd64.list
-rw-r--r-- 1 root root    2365 Mai 17 21:33 php7.2-common.list
-rw-r--r-- 1 root root     613 Mai 17 21:33 php7.2-cli.list
-rw-r--r-- 1 root root     679 Mai 17 21:33 libapache2-mod-php7.2.list
-rw-r--r-- 1 root root     478 Mai 17 21:33 php7.2-curl.list
-rw-r--r-- 1 root root     292 Mai 17 21:33 libcurl4:amd64.list
-rw-r--r-- 1 root root     454 Mai 17 21:33 php7.2-gd.list
-rw-r--r-- 1 root root     478 Mai 17 21:33 php7.2-json.list
-rw-r--r-- 1 root root     646 Mai 17 21:33 php7.2-mysql.list
-rw-r--r-- 1 root root     514 Mai 17 21:33 php7.2-opcache.list
-rw-r--r-- 1 root root     526 Mai 17 21:33 php7.2-readline.list
-rw-r--r-- 1 root root     882 Mai 17 21:33 php7.2-xml.list
-rw-r--r-- 1 root root     466 Mai 17 21:33 php7.2-bz2.list
-rw-r--r-- 1 root root     526 Mai 17 21:33 php7.2-mbstring.list
-rw-r--r-- 1 root root     466 Mai 17 21:33 php7.2-zip.list
-rw-r--r-- 1 root root    1198 Mai 17 21:33 gnome-terminal.list
-rw-r--r-- 1 root root   30284 Mai 17 21:33 gnome-terminal-data.list
-rw-r--r-- 1 root root     486 Mai 17 21:33 nautilus-extension-gnome-terminal.list
-rw-r--r-- 1 root root    2278 Mai 17 21:33 gnome-software-common.list
-rw-r--r-- 1 root root    4266 Mai 17 21:33 gnome-software.list
-rw-r--r-- 1 root root     241 Mai 17 21:33 command-not-found-data.list
-rw-r--r-- 1 root root     749 Mai 17 21:33 python3-commandnotfound.list
-rw-r--r-- 1 root root     400 Mai 17 21:33 command-not-found.list
-rw-r--r-- 1 root root     810 Mai 17 21:33 uuid-runtime.list
-rw-r--r-- 1 root root    1004 Mai 17 21:33 mount.list
-rw-r--r-- 1 root root       0 Mai 17 21:33 linux-image-4.13.0-41-generic.list
-rw-r--r-- 1 root root     384 Mai 17 21:33 linux-image-extra-4.13.0-41-generic.list
-rw-r--r-- 1 root root       0 Mai 17 21:33 linux-signed-image-4.13.0-41-generic.list
-rw-r--r-- 1 root root       0 Mai 17 21:33 linux-image-4.13.0-39-generic.list
-rw-r--r-- 1 root root     384 Mai 17 21:33 linux-image-extra-4.13.0-39-generic.list
-rw-r--r-- 1 root root       0 Mai 17 21:33 linux-signed-image-4.13.0-39-generic.list
-rw-r--r-- 1 root root   10305 Mai 17 21:33 util-linux.list
-rw-r--r-- 1 root root     301 Mai 17 21:33 fdisk.list
-rw-r--r-- 1 root root     262 Mai 17 21:33 libsmartcols1:amd64.list
-rw-r--r-- 1 root root     242 Mai 17 21:33 libmount1:amd64.list
-rw-r--r-- 1 root root     242 Mai 17 21:33 libfdisk1:amd64.list
-rw-r--r-- 1 root root     242 Mai 17 21:33 libblkid1:amd64.list
-rw-r--r-- 1 root root     237 Mai 17 21:33 libuuid1:amd64.list
-rw-r--r-- 1 root root     814 Mai 17 21:33 bsdutils.list
-rw-r--r-- 1 root root     436 Mai 17 21:28 sdparm.list
-rw-r--r-- 1 root root     411 Mai 17 21:28 qt-at-spi:amd64.list
-rw-r--r-- 1 root root    3746 Mai 17 21:28 python-qt4.list
-rw-r--r-- 1 root root     396 Mai 17 21:28 python-sip.list
-rw-r--r-- 1 root root    1724 Mai 17 21:28 net-tools.list
-rw-r--r-- 1 root root     372 Mai 17 21:28 libqtassistantclient4:amd64.list
-rw-r--r-- 1 root root     444 Mai 17 21:28 libqt4-test:amd64.list
-rw-r--r-- 1 root root     732 Mai 17 21:28 libqt4-svg:amd64.list
-rw-r--r-- 1 root root     428 Mai 17 21:28 libqt4-sql-mysql:amd64.list
-rw-r--r-- 1 root root     500 Mai 17 21:28 libqt4-scripttools:amd64.list
-rw-r--r-- 1 root root    1123 Mai 17 21:28 libqt4-help:amd64.list
-rw-r--r-- 1 root root     647 Mai 17 21:28 libqt4-designer:amd64.list
-rw-r--r-- 1 root root     872 Mai 17 21:28 libqt4-declarative:amd64.list
-rw-r--r-- 1 root root    1216 Mai 17 21:28 libqtgui4:amd64.list
-rw-r--r-- 1 root root     500 Mai 17 21:28 libqt4-xmlpatterns:amd64.list
-rw-r--r-- 1 root root     436 Mai 17 21:28 libqt4-sql:amd64.list
-rw-r--r-- 1 root root     723 Mai 17 21:28 libqt4-script:amd64.list
-rw-r--r-- 1 root root     774 Mai 17 21:28 libqt4-network:amd64.list
-rw-r--r-- 1 root root     191 Mai 17 21:28 libqt4-dbus:amd64.list
-rw-r--r-- 1 root root     372 Mai 17 21:28 qdbus.list
-rw-r--r-- 1 root root    1565 Mai 17 21:28 qtchooser.list
-rw-r--r-- 1 root root     439 Mai 17 21:28 libqtdbus4:amd64.list
-rw-r--r-- 1 root root     436 Mai 17 21:28 libqt4-xml:amd64.list
-rw-r--r-- 1 root root    1028 Mai 17 21:28 libqtcore4:amd64.list
-rw-r--r-- 1 root root    1095 Mai 17 21:28 qtcore4-l10n.list
-rw-r--r-- 1 root root    5194 Mai 17 21:28 laptop-mode-tools.list
-rw-r--r-- 1 root root     278 Mai 17 21:28 libmng2:amd64.list
-rw-r--r-- 1 root root      63 Mai 17 21:28 tlp.list
-rw-r--r-- 1 root root     104 Mai 17 21:28 tlp-rdw.list


How do I find the chokepoint in my private ethernet network?

have you tired bypassing the hub? the Ethernet card in the 8440p should be auto sensing so you shouldn't have to have a crossover cable


Getting wireless N to work on Dell Vostro 3300?

Actually, I didn't know I needed to set WPA2 with AES encryption.
Anyway, this wireless card is not the best one around - is only capable of 72 Mb/s, which is the speed I have now after setting this encryption type...


tail -f is what I was looking for.

touch ~/foo
tail -f ~/foo

now in another terminal:

echo "hello" >> ~/foo
echo "there" >> ~/foo

Works a charm. Now some programs (vim for example) will close and reopen the file and tail -f will not work, so you will not see additions when you save from vim. In this case, use tail -F, which explicitly follows the filename rather than the descriptor.


Binge.com.au video streams not working on Ubuntu 20.04

Based on the answer from @Aaron_L, I have created an extension for firefox. It can be downloaded here: https://addons.mozilla.org/en-US/firefox/addon/binge-on-linux/
This should hopefully be a more permanent fix to the issue.
Source code: https://github.com/caelwithcats/binge-on-linux
Note: Firefox does not play nicely with binge and glitches alot, so I recommend using chromium. I did not publish the extension to the chrome web store but you can download the crx file here. You can load the extension by turning on developer mode, refreshing and then drag the file into the extensions page in chrome


MySql Workbench on Ubuntu 14.04 Create Table editor not working

Please upgrade your MySQL Workbench to newest version - you can download it from https://dev.mysql.com/downloads/workbench/. Then if problem still exists fill bug report at http://bugs.mysql.com/


Messed up panel. Blank space off right side of xubuntu panel?

Go to panel preferences and edit the separator. You should see an expand box. Select that and it should move the items back to the right.


Realtek Wifi Adapter stops working after 20.04.1 update

From the comments...
dkms info.
dkms status shows...
rtl8188fu, 1.0, 5.4.0-52-generic, x86_64: installed
rtl8812AU_8821AU_linux, 1.0, 5.4.0-52-generic, x86_64: installed

Both drivers are not the correct ones for the Realtek. We remove them...
sudo dkms remove rtl8188fu/1.0 --all
sudo dkms remove rtl8812AU_8821AU_linux/1.0 --all

Then we follow the instructions at the previous question.


bacula is available only in universe repository, you need to enable it first

sudo add-apt-repository universe
sudo apt-get update

then you're ready to go with

sudo apt-get install bacula


Battery Drain, can't adjust brightness, overheating

I had a similar issue. Could you run top on the terminal? If I can't help you, that will make the diagnosis easier for other people.

The top command will show every process running on the system. If I'm right there should be a process called "kworker/X:X" where X is some number, and it's consuming way more that it should (like 70% or something like that). This problem will have your CPU running all the time consuming lots of energy. Sadly this problem is not an Ubuntu bug, it's a Linux core bug. I have found a temporary solution for this. Just run sudo reboot when the kworker process apears, this will reboot your system and (at least in my case) solve the problem until you shutdown or reset your computer

If I'm not right, post the top result anyway, it will help a lot to find out what's your problem.


apt-get count the number of updates available

You could use apt-check from update-notifier-common:

$ /usr/lib/update-notifier/apt-check --human-readable
0 packages can be updated.
0 updates are security updates.

This is the same tool that updates the motd message.


How to create mutiple instance of ssh and how to add specific users to specific instances?

First, reread man  sshd and man sshd_config.

Then, re-think your desire - is this the best/easiest way to do it? It looks like a Hard Way to me.

Then, create multiple versions of /etc/ssh/sshd_config, (e.g. /etc/ssh/sshd_config.Port22, /etc/ssh/sshd_config.Fred, ...) each differing at least in

# What ports, IPs and protocols we listen for
Port 22

the port number. Make any other changes to each version of /etc/ssh/sshd_config that you want to.

Then, look at /etc/init.d/ssh and /etc/init/ssh.conf (which is how sshd gets started), modify them to start multiple sshds, using the -f <configfile> switch to select different configurations.


Here is a link to an answer that helped me. I am running 14.04 and had to install the command-line browser links to get rid of this error:

sudo apt-get install links


Can't select to boot another operative system after installing Ubuntu on a secondary drive

First try to go into your Terminal Ctrl+Alt+T.

Next type in:

sudo grub-install

wait for that to finish, then do:

 sudo grub-update

Finally restart your computer and see if the windows 10 shows up in the boot menu, it might say windows 8 loader which is what mine says.If that doesn't work I will look for something else.


why is my Ubuntu (mate 15.10) installer showing more partition than there actually are? Is there anything I am missing for the Ubuntu dual boot?

I am aware of the fact that hard disk supports only 4 partitions

That's not strictly true. Partitions are defined by data structures known as partition tables. One very common partition table type, the Master Boot Record (MBR), supports a maximum of four primary partitions; however, one of these can be an extended partition, which can hold an arbitrary number of logical partitions. The trick when using MBR is to avoid creating four primary partitions unless one of them is an extended partition. With an extended partition in place, you can have as many partitions as you like, although all but a maximum of three of them will be logical partitions. That's fine for Linux, but Windows can't boot from a logical partition. (Windows can still use logical partitions as data disks, though.)

Other partition table types, such as the GUID Partition Table (GPT), have other limits. GPT supports up to 128 partitions by default. (Since GPT doesn't support extended or logical partitions, the modifier "primary" is meaningless with reference to GPT partitions.) GPT is important because it's more-or-less required when booting in EFI mode, which is the most common boot mode for new computers.

In any event, given your symptoms, you seem to have an MBR partition table.

  I have basically two partitions (I don't know if I should be counting system reserve as a partition or not).

Your screen shot shows you have four partitions. You do count the System Reserved partition, but you do not count the areas shown as "unallocated" in your screen shot. One puzzling thing is that two of your partitions are marked as E:. I don't know if this is some Windows feature that enables you to tie two partitions together or if there's something weird going on.

You have a number of choices for how to proceed, given your current configuration. I recommend you read this question and my answer to it:

Where can I install ubuntu if I have 4 primary partitions?

In your case, if you want to stick with BIOS-mode booting from an MBR disk, you may need to move your C: drive up to the end of the disk. You should then be able to convert your 181 GB disk to logical form using FixParts. You'll then be able to install Linux in the free space. Be aware, though, that partition-moving operations are risky, so before you move C:, you should back it up. It's safest to move it using a Windows tool, but do not use the standard Windows tools to create new partitions; the Windows tools are dangerously buggy when dealing with logical partitions and may convert the disk from a conventional setup to a Logical Disk Manager (LDM) configuration if given half an excuse. The trouble with LDM is that it's pretty much impossible to install Ubuntu on an LDM configuration, and converting back from LDM is another challenge you don't want to face.

Alternatively, if you're accessing your two E: partitions as if they were one partition, you might consider backing up the 181 GB partition (it looks like it's barely used), delete it, expand the 99 GB partition to fill its space (plus the 6 GB between them), and then restore your backed-up data. This will free up one primary partition, enabling you to create an extended partition after your C: partition. You can then put Ubuntu in logical partitions inside the extended partition. If E: is sufficiently weird or damaged, you might delete both of them and create a single new partition in their place, for much the same effect.


RTL8188FU driver for Linux kernel 4.15.x ~ 5.11.x

'Safe' may have several meanings. Is it safe from spyware, malware, adware, ransomeware, etc.? I believe it is. First, it is open source software meaning that we can all read every word of the code and spot anything suspicious. I have read much of it and I see nothing at all harmful or not essential as a wireless driver.
Second, this driver has been downloaded many times, often recommended by me, and I never heard any complaints.
'Safe' might mean, does it compile correctly and drive my device as expected? I know that it compiles on my 5.11 kernel version with a few possibly harmless warnings. I strongly suspect that it also will compile on the mentioned kernels, that is, 4.15 through 5.11.
I haven't the device so I can't tell you if it works properly. Again, I am unaware of any complaints.
Please try it and report back. It can be installed, following the README, in just a few minutes. If it does not work properly, it can be removed in less.


Setting the /home partition in a drive through a LAN

Executive summary: Yes, you can do this, but it will not work very well, because the drive probably doesn't support Unix-style permissions.

You can make your home directory exist on a remote filesystem rather than the local computer. (If you do that, you might want to have another user account, to use for troubleshooting if a problem develops with the remote share.)

However, to work properly, home directories should be on volumes that support Unix-style file permissions. Your router probably uses SMB/CIFS to share the drive. Such permissions can be exposed well enough through Samba, so if you're using SMB/CIFS (Windows file sharing) to share a drive that is formatted with a Unix-style filesystem, this can work (though your router would likely be incapable of that).

The drive probably does not have a Unix-style filesystem. It probably has NTFS, FAT32, exFAT, or (if it's quite small), FAT16. The FAT filesystems don't support any system of permissions at all. NTFS supports permissions, but it's a different system from Unix-style permissions.

So yes, you can do this. You can edit /etc/fstab and put either /home or the specific home directory in /home as a mount point to the networks share. But since the volume being shared probably does not support the permissions needed for files inside an Ubuntu home directory, you probably should not do this.

A better approach may be to make certain folders inside your home directory (like Videos, Pictures, Documents, Downloads, and even Desktop) symbolic links to folders in the network share. (Any folder that contains programs or scripts you want to execute should not be, though, as it wouldn't be able to have execute permissions.)


All my bandwidth eaten up - report included

Assuming your server (the machine from which samples screenshot are coming) is you network gateway, you can try with iptables with a command line like this:

sudo iptables -A FORWARD -s 192.168.1.105 -j REJECT
sudo iptables -A FORWARD -d 192.168.1.105 -j REJECT

This will block all traffic to and from 192.168.1.105.
That will cause you no problem, if you don't have private networks that you need access to, meaning that you're just routing traffic to internet.
You'll have the risk that the machine simply change the IP address, then you'll  have to figure out the mac address, for that you can use arp command:

$ arp -n
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.1.101            ether   00:0f:b0:74:f1:f3   C                     eth0


ralink 5390 card in laptop does not work after installing driver

The source code for the RT5390 driver is currently being managed through the Suse repositories, the link is here.

Ubuntuforums.org has instructions to compile the source code for Natty.  I've reproduced the instructions here to complete the answer.

You'll see 64-bit (x86_64) and 32-bit (i586) packages listed. Download the openSUSE driver package - the source RPM, not the binary package:
rt5390sta-2.4.0.4-6.2.src.rpm

Open your web browser's download directory and double-click the src RPM. Extract all files into a new directory named openSUSE_rt5390sta_driver

Open a terminal and sudo to root:

sudo su -
cd openSUSE_rt5390sta_driver
tar jxvf 2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO.tar.bz2
cd 2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/
patch -p0 < ../rt5390sta-2.4.0.4-config.patch
patch -p0 < ../rt5390sta-2.4.0.4-WPA-mixed.patch
patch -p0 < ../rt5390sta-2.4.0.4-convert-devicename-to-wlanX.patch
patch -p0 < ../rt5390sta-2.4.0.4-remove-potential-conflicts-with-rt2860sta.patch
patch -p0 < ../rt5390sta-2.4.0.4-return_nonvoid_function.patch
patch -p0 < ../rt5390sta-2.4.0.4-reduce_debug_output.patch
mv RT2860STA.dat RT5390STA.dat
vi os/linux/config.mk

Change HAS_ANTENNA_DIVERSITY_SUPPORT to:
HAS_ANTENNA_DIVERSITY_SUPPORT=y

make
mkdir -p /etc/Wireless/RT5390STA
cp  RT5390STA.dat /etc/Wireless/RT5390STA/
cp -i os/linux/rt5390sta.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
echo rt5390sta >> /etc/modules
echo "blacklist rt2800pci" >> /etc/modprobe.d/blacklist.conf
depmod -a


How can I partition a Macbook 2,1 so that it can install the bootloader?

OK I fixed it, firstly by using a different iso, I used Ubuntu 14.04 instead of Ubuntu Mate 16.04. Although the installer behaved in a similar way, it did not crash after failing to install the bootloader. I continued the installation without installing a bootloader and then used the instructions here Boot Repair  to install and run Boot repair from the live disk. This did the trick and I am back with an Ubuntu Macbook!


How to get sensor readings for recent hardware?

These are the primary alternatives:

Wait it out: If you don't consider sensor readings critical you may just wait for the next Ubuntu release, which may include support for the chip by default.

Standalone driver: If you don't want to wait, a standalone driver may be the best option, as it makes minimal changes to the rest of the system. See below for how to install it.

Upgrade the kernel: This is somewhat more risky, as you will be running an unsupported and untested combination of Ubuntu version and kernel version - upgrading the kernel may fix the sensor support while breaking something else. Upgrading the kernel may also work just fine, as long as you are prepared to roll back in case it doesn't.

The simplest way to upgrade the kernel is to use one of Ubuntu's prebuilt kernel packages, see ubuntu.com kernel builds for instructions.

Installing a standalone driver

Read the Ubuntu compiling HOWTO, install compiling tools:

sudo apt-get install build-essential

Download the source code for the driver

    wget [.h, .c and Makefile files]

Compile, install and load the new module. Here w83627ehf is the name of the recently compiled driver, it will differ between systems.

make all
sudo make install
sudo modprobe w83627ehf

Check that it works

    $ sensors
    w83667hg-isa-0a10
    Adapter: ISA adapter
    in0:       +1.18 V  (min =  +0.62 V, max =  +1.47 V)
    in1:       +1.11 V  (min =  +1.05 V, max =  +1.15 V)
    [... snip ...]

Add configuration

It still needs chip-specific configuration, this is the hard part.

Lucky case: Find a ready-made config at lm-sensors.org configurations.
Google hunting: Search for the chip name and you may find someone with the same chip and a working config.
Last resort: Compare with values in BIOS and make an educated guess on which reading goes where.
Configuration goes in /etc/sensors3.conf
Reload (sudo sensors -s) or restart (sudo service lm-sensors restart) to use the new configuration.

Checking post-config

    $ sensors
    w83667hg-isa-0a10
    Adapter: ISA adapter
    VCore:       +1.18 V  (min =  +0.62 V, max =  +1.47 V)
    Vtt:         +1.11 V  (min =  +1.05 V, max =  +1.15 V)
    AVCC:        +3.34 V  (min =  +2.98 V, max =  +3.63 V)
    +3.3V:       +3.34 V  (min =  +2.98 V, max =  +3.63 V)
    IGD:         +1.56 V  (min =  +1.00 V, max =  +2.00 V)
    3VSB:        +3.26 V  (min =  +2.98 V, max =  +3.63 V)
    VBat:        +3.31 V  (min =  +2.54 V, max =  +3.46 V)
    CPU Fan:    1834 RPM  (min =  301 RPM, div = 32)
    M/B Temp:    +30.0°C  (high = +55.0°C, hyst = +52.0°C)  sensor = thermistor
    CPU Temp:    +67.0°C  (high = +72.0°C, hyst = +70.0°C)  sensor = thermistor
    AUX Temp:    +27.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor

Make it work after restart

Edit /etc/rc.local
Add the line modprobe w83627ehf
(Replace w83627ehf with the sensor for your system. Make sure to put it before the exit 0 line, which terminates the script.)

Sanity check the output

Compare the sensors listing with the BIOS readings, verify that they are in the ballpark of each other.
If you dual boot with Windows you can compare CPU temperatures with Real Temp.

Calibrating display values

You can add lines like compute in1 (56/10+1)*@, @/(56/10+1) to sensors3.conf. @ is the sensor value. The first calculation converts a sensor value to display value, the second calculation converts it back.
See man sensors.conf
Getting accurate temperatures would require an infrared thermometer and a few hours of work (see takkat's reply here), but you can normally get "ballpark" values with less effort.

If you know of a way to improve this answer, please do.


How can I open MS Word files in LibreOffice?

In this Wiki article, it says that Microsoft Office documents saved as a .doc or a .docx file can be opened in  LibreOffice. Therefore, you should be able to just open it. Just copy the files onto a flash drive and then in Ubuntu, double click the .doc or .docx file to open it in LibreOffice.

Edit: When opening .doc or .docx files in LibreOffice, be aware that the formatting can be a little off in some cases, so sometimes when opening a MS Word file in LibreOffice it does not look as it was intended/how it would have looked in MS Word..
Thanks to Shaun for pointing that out.


How can I get gedit ready for programming in Ruby and Ruby on Rails?

simply

sudo apt-add-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get install gedit-gmate

and activate the plugins you want from options menu. It will activate sintax highlighting for erb files and many snippets for RoR developing.


Mouse snapping back to upper right hand corner

I also have a Lenovo Erazer X510, and I had the same problem
both in Ubuntu 14.04 and Mint 17.1.  Since this machine doesn't even
have a ps2 mouse (or touchpad), I simply enter the psmouse removal command alone:

sudo modprobe -r psmouse

and this seems to have cleared up the problem -- the usb mouse is still working, and the erratic behaviour has gone away.

To make the change permanent, I added the line:

modprobe -r psmouse

to the file "/etc/rc.local", just above the line

exit 0

So far, so good.
I hope this helps!


Can't connect to the internet in Ubuntu 16.04 (Virtualbox)

Is there any reason you have 2 NICs on the VM? If both are configured with default routes I would assume the guest would not know the best route out of it's LAN.

Could I suggest that you remove the bridged NIC and leave the NAT one in place. Confirm that the guest VM has a good ifconfig, with a ping positive default route and good DNS servers (try dig www.bbc.co.uk from terminal and see if it resolves) then try the web again.


gpm is in the universe repository.

using any method, enable the universe repository , then run

sudo apt-get update && sudo apt-get install gpm


Are you sure you were not trying to boot from the cd/dvd again with no disk. You should change the boot order by going back into bios which stays the same when you first boot the computer up. It can be f2 of other f keys on your computer but varies by manufacturer.

If you get into bios try and select the hard disk you installed it on and boot from that should probably be labeled as a hard drive.

If you cannot find an external usb drive in bios then try this even though it is unlikely to be the way you were trying to install.
One other possibility is if you installed it onto an external hard drive connected through usb your computer might not be able to boot from that natively. http://www.plop.at/en/bootmanagers.html Plop fits on a cd so you will want your bios set to boot to plop in the cd drive then it will come to a menu and select usb if that is what you are trying to boot from.


There are 3 possible solutions for this problem,

I prefer to take a look at:

http://www.ubuntugeek.com/possible-solutions-to-fix-the-missing-network-manager-icon-in-ubuntu-9-10.html`

Regards,
Ilias


How to find identical size files between two directories and overwrite the ones in first directory with the ones from the second?

Try this in a bash script file:
#!/bin/bash

dir1="/REPLACE/THIS/WITH/FULL/PATH/TO/dir1/"
dir2="/REPLACE/THIS/WITH/Full/PATH/TO/dir2/"

echo "Indexing $dir2 ... Please wait ..."

find "$dir2" -type f -follow -exec ls -l {} \; > "dir2_ls_file.txt"

while read f1 f2 f3 f4 f5 f6 f7 f8 f9
                do
                        size="${f5}"
                        name="${f9}"
                        result0=$(find "$dir1" -type f -size "$size"c -follow)
                        result1=$(echo "$result0" | wc -l)
                        result2=$(find "$dir2" -type f -size "$size"c -follow | wc -l)
                                if [ $result2 -gt 1 ]; then
                                        echo "There is more than one file under $dir2 with the same size as $name , so no action is taken!"
                                elif [ $result1 -eq 1 ] && [ "$result0" ]; then
                                        echo "$result0 is the same size as $name , so it will be replaced."
                                #       cp "$name" "$result0"
                                else
                                        echo "There is more than one file or no file under $dir1 with the same size as $name , so no action is taken!"
                                fi
                done < "dir2_ls_file.txt"

If you are satisfied with the result, un-comment cp "$name" "$result0" for the real copying to happen.
Please, first read here for more information and precautions.


GNOME 17.10 Panel is transparent if app is not full screen

Dynamic transparency of the top bar is a feature of GNOME shell version 3.26 (the one shipped with Ubuntu 17.10).

You may try one of the following to disable this feature:

Change the shell theme to one which overrides this dynamic transparency feature and makes the top bar always opaque.
GNOME-LOOK.ORG is a good place to find various themes.
Use "Dynamic Panel Transparency" extension and set 100% for both "Maximized Opacity" and "Unmaximized Opacity".
See my answer to this question for reference: How do I make top bar always transparent like Ubuntu dock in Ubuntu 17.10?


14.04, unity not working after upgrade kernel to 3.13.0-27

Open the console by the following keys:

CTRL+ALT+F1

Then do the following:

Use this to Remove/Uninstall Compiz Unity:

sudo apt-get remove compizconfig-settings-manager
sudo apt-get remove compiz-fusion-plugins-extra
sudo apt-get remove compiz-plugins-extra
sudo apt-get purge compiz*

Then to Re-install Compiz Unity use:

sudo apt-get install unity-2d
sudo apt-get install ubuntu-desktop
sudo apt-get install ubuntu-desktop-2d
sudo apt-get install compizconfig-settings-manager
sudo apt-get install xserver-xgl
sudo apt-get install emerald
sudo apt-get install compiz-fusion-plugins-extra
sudo apt-get install git compiz-plugins-extra
sudo apt-get install compiz-plugins-extra
sudo apt-get install unity


How to solve configure: error: readline library not found?

You probably need to install libreadline-dev.

A quick way to search for packages in cases like this is to use a command like:

apt-cache search libreadline

This command will likely list multiple packages, but if you're interested in compiling things from source then the package ending in -dev probably contains the files the configure script is searching for.


Setting up virtual cam with v4l2loopback

You can stream just a window with gstreamer like this (I'm using /dev/video2):

$ gst-launch-1.0 ximagesrc xid=0x06800005 ! videoconvert ! v4l2sink device=/dev/video2

In order to get the xid of the window you can run:

$ wmctrl -l

Currently gst-launch-1.0 is in package gstreamer1.0-tools and wmctrl in package wmctrl.


Upgrading Using the Alternate CD/DVD

Download the alternate installation CD from http://releases.ubuntu.com/oneiric/

sudo mkdir -p /media/cdrom
sudo mount -o loop ~/Desktop/ubuntu-11.10-alternate-i386.iso /media/cdrom

A dialog will be displayed offering you the opportunity to upgrade using that CD.
Follow the on-screen instructions.

If the upgrade dialog is not displayed for any reason, you may also run the following command using Alt+F2:

gksu "sh /media/cdrom/cdromupgrade"

Source : here


How to Install Node.js without sudo access but with npm 1.3.10 installed?

In order to install Node.js and npm locally without having to use sudo open the terminal and type:

echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
wget -c http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install
wget -c https://www.npmjs.org/install.sh | sh

The curl package is not installed in Ubuntu by default. If you don't have curl installed on your system, replace all instances of curl in the install.sh file with wget -c and save the changes to the install.sh file before running it.

This will install node-v9.2.0 which is a later version of Node.js than the file you already downloaded.


Quickly: share, release and submitubuntu not working anymore

Turns out there was a wrong name+email in my changelog, so I changed that. Quickly didn't work, but I was able to build the package with debuild -S and then dput it to my ppa.

Sorry for asking, but maybe it'll help someone in the future.

I also used export DEBFULLNAME="..." and export DEBEMAIL="..."


How to install Edubuntu on a system with low memory (256 Mb)?

After all I've used Alternate CD and added all necessary packages to it:

How to move packages from the live image to a pool on the disc?


Does the CONCURRENCY=shell tweak work in 11.10?

Ubuntu has had a concurrent (specifically, an event based) init daemon in upstart for a number of releases - since Ubuntu 8.04 at least.  Most of the boot up process is handled by upstart scripts, and has been since Ubuntu 10.04.

In short, no.  CONCURRENCY=shell doesn't do anything useful anymore.


Place your mouse pointer at the lower end of the bar and the icons will scroll up allowing you to choose the one you desire. You can also unlock rarely used icons from the launcher.


You can use xfce4-appfinder or Beagle.

Below is an explanation of the Linux directory structure, and what everyone is used for.  Hope that it helps.

  In the Linux operating system, all filesystems are contained within
  one directory hierarchy. The root directory is the top level
  directory, and all its subdirectories make up the directory hierarchy.
  This differs to other operating systems such as MS-Windows which
  applies a separate hierarchy for each device and partition.

  /bin -- binary applications (most of your executable files)

  /boot -- files required to boot (such as the kernel, etc)

  /dev -- your devices (everything from drives to displays)

  /etc -- just about every configuration file for your system

  /etc/profile.d -- contains scripts that are run by /etc/profile upon
  login.

  /etc/rc.d -- contains a number of shell scripts that are run on bootup
  at different run levels. There is also typically an rc.inet1 script to
  set up networking (in Slackwar), an rc.modules script to load modular
  device drivers, and an rc.local script that can be edited to run
  commands desired by the administrator, along the lines of autoexec.bat
  in DOS.

  /etc/rc.d/init.d -- contains most of the initialization scripts
  themselves on an rpm-based system.

  /etc/rc.d/rc*.d -- where "*" is a number corresponding to the default
  run level. Contains files for services to be started and stopped at
  that run level. On rpm-based systems, these files are symbolic links
  to the initialization scripts themselves, which are in
  /etc/rc.d/init.d.

  /etc/skel -- directory containing several example or skeleton
  initialization shells. Often contains subdirectories and files used to
  populate a new user's home directory.

  /etc/X11 -- configuration files for the X Window system

  /home -- locally stored user files and folders

  /lib -- system libraries (similar to Program Files)

  /lost+found -- lost and found for lost files

  /media -- mounted (or loaded) devices such as cdroms, digital cameras,
  etc.

  /mnt -- mounted file systems

  /opt -- location for “optionally” installed programs

  /proc -- dynamic directory including information about and listing of
  processes

  /root -- “home” folder for the root user

  /sbin -- system-only binaries (see /bin)

  /sys -- contains information about the system

  /tmp -- temporary files

  /usr -- applications mainly for regular users

  /var -- mainly logs, databases, etc.

  /usr/local/bin -- the place to put your own programs. They will not be
  overwritten with upgrades.

  /usr/share/doc -- documentation.1

1Source:Linux or Ubuntu Directory structure


I will suggest you install 15.10 fresh from the live USB. At the time of installation it will give you an option what all you can do. I would say stay with 14.04 LTS(Long term support). Ubuntu Desktop LTS releases are launched every two years, refer to this LTS release cal


This is because grep can operate in two distinct modes:

DESCRIPTION
   grep searches the named input FILEs for lines containing a match to the
   given PATTERN.  If no files are specified, or if the file “-” is given,
   grep  searches  standard  input.   By default, grep prints the matching
   lines.

In ls | grep zip, the grep command sees a list of filenames on its standard input and searches that.

In grep zip $(ls), the shell substitutes the results of the ls command as a list words, which grep treats as filename arguments, searching each one in turn for the pattern zip.

IMPORTANT NOTE: if any of the filenames contain spaces, then the space-separated parts will be treated as separate arguments, resulting in No such file or directory errors. A safer way to search matching files is to use shell globs e.g. grep 'pattern' *zip*


This seems to be something that commonly (but not exclusively) pops up w/ low memory systems. You can check out the bug that's tracking this issue: Bug #1518457: kswapd0 100% CPU usage

There isn't an actual fix yet, but there are a couple workarounds that may fix the problem for you:

Add echo 1 > /proc/sys/vm/drop_caches to a regular crontab and/or run that command manually when kswapd acts up
Comment out line 2 in /lib/udev/rules.d/40-vm-hotadd.rules (see the bug link for more discussion)


Bluetooth is always off, even when switched on

There's currently a bug in Bluez causing this issue on the Pi400, and a fix is currently being worked out and SRUd (hopefully soon).  There's a couple pi 400 specific workarounds we need to land into bluez itself


Windows 10 image too large for Brasero to burn. How can I get around this?

Use K3B as brasero doesn't appear to support overburn. Go to Settings->Advanced and check the allow overburn box as shown below:

k3b is available for all currently supported versions of Ubuntu in the Universe repository. To obtain it First enable Universe then issue the following commands in the terminal

sudo apt-get update
sudo apt-get install k3b

or use your favorite package manager.


sudo command fails in ubuntu 17.10 with keyError

Run:

xhost local:user1

(Replace user1 with your username.)


In what language I can develop a status notifier of a laptop battery?

You can use whatever language you are most comfortable with for the most part.  Perl, Python, C, and C++ come to mind... but there are several other with wrappers for GUI libraries.  Reading battery status can be accomplished through kernel filespace interfaces (easy for any language).

Vague answer, I know.


Important things to do after installing Ubuntu Server

Secure shared memory

/dev/shm can be used in an attack against a running service, such as httpd. Modify /etc/fstab to make it more secure.

Open a Terminal Window and enter the following :

sudo vi /etc/fstab

Add the following line and save. You will need to reboot for this setting to take effect :

tmpfs     /dev/shm     tmpfs     defaults,noexec,nosuid     0     0

Harden network with sysctl settings

The /etc/sysctl.conf file contain all the sysctl settings.
Prevent source routing of incoming packets and log malformed IP's enter the following in a terminal window

sudo vi /etc/sysctl.conf

Edit the /etc/sysctl.conf file and un-comment or add the following lines :

# IP Spoofing protection
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1

# Ignore ICMP broadcast requests
net.ipv4.icmp_echo_ignore_broadcasts = 1

# Disable source packet routing
net.ipv4.conf.all.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv6.conf.default.accept_source_route = 0

# Ignore send redirects
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0

# Block SYN attacks
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 2048
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 5

# Log Martians
net.ipv4.conf.all.log_martians = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1

# Ignore ICMP redirects
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv6.conf.default.accept_redirects = 0

# Ignore Directed pings
net.ipv4.icmp_echo_ignore_all = 1

To reload sysctl with the latest changes, enter:

sudo sysctl -p

Prevent IP Spoofing

Open a Terminal and enter the following :

sudo vi /etc/host.conf

Add or edit the following lines :

order bind,hosts
nospoof on

Harden PHP for security

Edit the php.ini file :

sudo vi /etc/php5/apache2/php.ini

Add or edit the following lines :

disable_functions = exec,system,shell_exec,passthru
register_globals = Off
expose_php = Off
magic_quotes_gpc = On

Web Application Firewall - ModSecurity

http://www.thefanclub.co.za/how-to/how-install-apache2-modsecurity-and-modevasive-ubuntu-1204-lts-server

Protect from DDOS (Denial of Service) attacks - ModEvasive

http://www.thefanclub.co.za/how-to/how-install-apache2-modsecurity-and-modevasive-ubuntu-1204-lts-server

Scan logs and ban suspicious hosts - DenyHosts and Fail2Ban

@DenyHosts

DenyHosts is a python program that automatically blocks SSH attacks by adding entries to /etc/hosts.deny. DenyHosts will also inform Linux administrators about offending hosts, attacked users and suspicious logins.

Open a Terminal and enter the following :

sudo apt-get install denyhosts

After installation edit the configuration file /etc/denyhosts.conf  and change the email, and other settings as required.

To edit the admin email settings open a terminal window and enter:

sudo vi /etc/denyhosts.conf

Change the following values as required on your server :

ADMIN_EMAIL = root@localhost
SMTP_HOST = localhost
SMTP_PORT = 25
#SMTP_USERNAME=foo
#SMTP_PASSWORD=bar
SMTP_FROM = DenyHosts nobody@localhost
#SYSLOG_REPORT=YES

@ Fail2Ban

Fail2ban is more advanced than DenyHosts as it extends the log monitoring to other services including SSH, Apache, Courier, FTP, and more.

Fail2ban scans log files and bans IPs that show the malicious signs -- too many password failures, seeking for exploits, etc.

Generally Fail2Ban then used to update firewall rules to reject the IP addresses for a specified amount of time, although any arbitrary other action could also be configured.
Out of the box Fail2Ban comes with filters for various services (apache, courier, ftp, ssh, etc).

Open a Terminal and enter the following :

sudo apt-get install fail2ban

After installation edit the configuration file /etc/fail2ban/jail.local  and create the filter rules as required.

To edit the settings open a terminal window and enter:

sudo vi /etc/fail2ban/jail.conf

Activate all the services you would like fail2ban to monitor by changing enabled = false to *enabled = true*

For example if you would like to enable the SSH monitoring and banning jail, find the line below and change enabled from false to true. Thats it.

[ssh]

enabled  = true
port     = ssh
filter   = sshd
logpath  = /var/log/auth.log
maxretry = 3

If you would like to receive emails from Fail2Ban if hosts are banned change the following line to your email address.

destemail = root@localhost

and change the following line from :

action = %(action_)s

to:

action = %(action_mwl)s

You can also create rule filters for the various services that you would like fail2ban to monitor that is not supplied by default.

sudo vi /etc/fail2ban/jail.local

Good instructions on how to configure fail2ban and create the various filters can be found on HowtoForge - click here for an example

When done with the configuration of Fail2Ban restart the service with :

sudo /etc/init.d/fail2ban restart

You can also check the status with.

sudo fail2ban-client status

Check for rootkits - RKHunter and CHKRootKit.

Both RKHunter and CHKRootkit basically do the same thing - check your system for rootkits. No harm in using both.

Open a Terminal and enter the following :

sudo apt-get install rkhunter chkrootkit

To run chkrootkit open a terminal window and enter :

sudo chkrootkit

To update and run RKHunter. Open a Terminal and enter the following

sudo rkhunter --update
sudo rkhunter --propupd
sudo rkhunter --check

Scan open ports - Nmap

Nmap ("Network Mapper") is a free and open source utility for network discovery and security auditing.

Open a Terminal and enter the following :

sudo apt-get install nmap

Scan your system for open ports with :

nmap -v -sT localhost

SYN scanning with the following :

sudo nmap -v -sS localhost

Analyse system LOG files - LogWatch

Logwatch is a customizable log analysis system. Logwatch parses through your system's logs and creates a report analyzing areas that you specify. Logwatch is easy to use and will work right out of the package on most systems.

Open a Terminal and enter the following :

sudo apt-get install logwatch libdate-manip-perl

To view logwatch output use less :

sudo logwatch | less

To email a logwatch report for the past 7 days to an email address, enter the following and replace mail@domain.com with the required email. :

sudo logwatch --mailto mail@domain.com --output mail --format html --range 'between -7 days and today'

Audit your system security - Tiger.

Tiger is a security tool that can be use both as a security audit and intrusion detection system.

Open a Terminal and enter the following :

sudo apt-get install tiger

To run tiger enter :

sudo tiger

All Tiger output can be found in the /var/log/tiger

To view the tiger security reports, open a Terminal and enter the following :

sudo less /var/log/tiger/security.report.*

For More Help


How to just gain root permission without running anything?

Use sudo -v:

-v, --validate
Update the user's cached credentials, authenticating the user if necessary.


Error "Can't assign requested address" when ssh-ing to remote server

This might not fix your issue but I had the same error on OSX after it working successfully before. Flushing the routing table helped:

sudo ifconfig en0 down # take the networking interface down
sudo route flush # flush the route table
sudo ifconfig en0 up # take the interface back online

I ran these on the computer that I was connecting from.
Reference: http://codefromabove.com/quickies/osx-cant-assign-requested-address-code49/


upgrade a kernel when in chroot. how to?

In the ISO image, updating the Kernel will create problems with all packages related to that version of the kernel. It is like a waterfall effect. You change the kernel and any packages in your ISO that have relation with the old kernel might show problems when installing them.

In any case I also tried to upgrade the kernel, my case was 2.6.36 to 2.6.39. No luck there was no option for me at that time but for what I have checked here: https://bugs.launchpad.net/uck/+bug/664709 and here: https://answers.launchpad.net/uck/+question/96338 there has been work to accomplish this using some methods.

In all cases, the problems described in those links suggest that doing the upgrade like I mentioned will create other problems: Not booting, problems looking for packages, package managers having upgrade problems with the kernel, etc..


The short answer is no, there wouldn't be a way to install a fresh operating system on the laptop remotely. You could create the installation media remotely, however(through TeamViewer, if you have the remote user plug in a USB stick to target, or insert a blank disc), and then attempt to walk your mother through the initial configuration steps. For Ubuntu, this is simply the keyboard layout, network config, and username / system name IIRC. After that, it's just getting TeamViewer installed again and you can take over from there.
If possible, I might suggest a hardware refresh. A decade is a long time in terms of advancements in personal computing. If the laptop does not have an SSD installed for the primary hard drive, that can provide a huge boost in functionality for a pretty low cost these days. I recently picked up a basic 120GB ssd on Amazon for 21$, and it isn't a very difficult swap on laptops (1 or 2 screws for the plastic door, another holding the disk in place, and the cables/adapter piece that slides on and off). Pursuing this upgrade will require you install fresh, or clone the existing hard drive, however.


how to change left and right volume levels using pactl

To change the volume of the mentioned source with pactl you should use the command

pactl set-source-volume 0 100%

You used

pactl set-sink-volume 0 100%

which sets the volume of the sink #0 to 100%, that's not what you intended to do.


Getting the name of the process, that corresponds to the active window

psutil seems to be what you might want.

What's unclear in your question is whether you want the executable name or the window title.  However, if you're after the executable process's name, you can do it with psutil and some other functions.

First, install psutil with pip (Python 2) or pip3 (Python 3).  If the command isn't found then install the python-pip or python3-pip packages depending on which Python version you're working with:

# Python 2
sudo pip install psutil

# Python 3
sudo pip3 install psutil

Next, we can use psutil in any given Python script, and pass a PID.  This is an example of what it can do, by running python3 in the command line, working with the interactive Python 3 shell, and getting that process's information using Python code right on the Python shell:

>>> import psutil
>>> import os
>>> os.getpid()
6284
>>> p = psutil.Process(os.getpid())
>>> p.name()
'python3'
>>> p.exe()
'/usr/bin/python3.5'
>>> p.cmdline()
['python3']
>>>

As you can see you can get different information from the system about the process on both Windows or Linux with these utilities, though you still need to install the Python package first.

EDIT

We can also chain this with Jacob Vlijm's answer here too, to get the PID and pass it into psutil (Note that I shorten 'subprocess' to 'sp' in my import, but it's still the subprocess module):

import psutil
import subprocess as sp

p = psutil.Process(int(sp.check_output(["xdotool", "getactivewindow", "getwindowpid"]).decode("utf-8").strip()))

... and then continue to use psutil to extract specific data.


Hm. This is precisely and absolutely what the desktopcouch pairing tool is for, so if it's crashing it sounds like you've found a bug. Can you file a bug about this issue, and we'll look into it?


Gnome Shell ignores (mouse-based) copy-paste commands

Performing copy twice (either by keyboard or mouse) in rapid succession seems to do the trick. Disappointing, though.


How can I copy a path out of a open/save dialog and paste it into Nautilus?

Pasting paths into Nautilus' "address" bar

You can activate the "location" view with CTRL+L. To permanently show the path instead of "breadcrumbs" you will have to manually change a dconf key:

gsettings set org.gnome.nautilus.preferences always-use-location-entry true

To revert the changes simply execute the following command:

gsettings set org.gnome.nautilus.preferences always-use-location-entry false

Copying file paths in the Save/Open dialog with Nautilus 3.4.2

As @AliNa pointed out, it used to be that you could access the location of a file or folder in the save/open dialog in the same manner as you can in a regular Nautilus window

This feature has been abolished in recent Nautilus releases as part of GNOME's design philosophy.

However, you can still access the file and directory paths from the context menu:

It seems as though this method has been removed as well in more recent revisions of Nautilus (the ones that ship with Ubuntu >12.10)...

Sources:

How can I copy the current path from Nautilus?

Typing location path instead of clicking directory buttons in the file picker dialog?

How do I change dconf keys without a gui (for a post-install script)?


RESOLVED INFO: I did submit a bug report back on Dec. 7th, 2020 and never heard back. What I did was go out and buy a USB keybord and a couple USB mice and that got me by. I could not find an ergonomic keyboard I wanted at that time! Both of my ergonomic keyboards are PS2 and using a PS2 to USB adapter never worked. I did test a few times in January and February and finally gave up on the PS2 connector that came with my motherboards, figuring it wouldn't ever work again with Ubuntu 20.04.
Then today, May 12, 2021; decided to test it one last time before tossing my PS2 keyboards and mice and HEY! my favorite keyboard works now!!
Took them I don't know how long but eventually the bug report worked I guess and Ubuntu 20.04.2 again recognizes and works with PS2 hardware. YEA!!


returning to upgrade from remove details list

I think that would be esc , q ,or tab  one of the 3 ,,,,,,but it has been a wile sense I did a upgrade with do-release-upgrade .
I keep 4 partitions for going from one release to the next and just do a clean install over the oldest except for the LTS release which gets it on the release of the next LTS


Desktop Feed Reader which can sync with Google Reader

liferea does all of the above.

sudo apt-get install liferea


Proxy tunneling failed: Proxy Authentication Required

You have to provide username and password to authenticate with the proxy. Try the following:

export http_proxy="http://<username>:<password>@proxy.hs-karlsruhe.de:8888"
export https_proxy="http://<username>:<password>@proxy.hs-karlsruhe.de:8888"

then run dropbox start -i.


What is the most sensible graphics driver to install for Nvidia GTX 670MX and Kubuntu 13.04?

You need to install an Nvidia driver first, let's say the nvidia-313-updates, that one works well for me.

sudo apt-get install nvidia-313-updates
Add the Bumblebee repository to your system and install Bumblebee:

sudo add-apt-repository ppa:bumblebee/stable

sudo apt-get update

sudo apt-get install virtualgl bumblebee-nvidia
Reboot your system
Check whether it's working

Run glxspheres and optirun glxspheres and compare the FPS values (Intel and Nvidia GPU respectively). Bumblebee also has a power management function, it switches the discrete Nvidia card off when it's not in use (you don't run any application on it). This power state can be seen by running: cat /proc/acpi/bbswitch.
If it's all up and running, you can try the alternative primus bridge for Bumblebee (the default is virtualgl). It performs better on some GPUs. Install it by:

sudo apt-get install primus

Execute primusrun glxspheres to see it's performance.

Run any application on the Nvidia GPU using optirun app_name or primusrun app_name.


How to open file in existing Atom process from console?

As revealed by atom --help, you can use the -a/--add flag to open a file or folder in the last used window.

Example:

atom -a <filename>


If you just want the newer package this one time and you also want it to be replaced once the right version is released for your current release of Ubuntu you can:

Install the build tools and dependencies:

sudo apt-get install build-essential devscripts
sudo apt-get build-dep vagrant

Download the package source and extract it:

dget -u https://launchpad.net/ubuntu/+archive/primary/+files/vagrant_1.8.1+dfsg-2.dsc
cd vagrant-1.8.1

Add a changelog entry with a carefully crafted local version suffix (replace anatoly and the log message with whatever you want):

debchange --local=~anatoly 'Backport to Xenial'

This will bump the package version to 1.8.1+dfsg-2~anatoly1. The tilde suffix has the property that it is actually considered as a lower version than 1.8.1+dfsg-2:

$ dpkg --compare-versions 1.8.1+dfsg-2~anatoly1 '<' 1.8.1+dfsg-2; echo $?
0

That means the package manager will suggest to “upgrade” the local package once version 1.8.1+dfsg-2 (or newer) becomes available in the configured repositories.
Build the binary package:

debuild -b -j"`getconf _NPROCESSORS_ONLN`"

Install the built package(s) with sudo dpkg -i <DEBFILE>....

P.S.: I didn't try to build the package myself so you may run into issue. For instance, the source package for Yakkety may depend on a package (version) that isn't in Xenial (less likely at this point and since it's the same upstream version). In that case we can look for ways around this.


add below driver to the file (arch/arm/configs/bcm2835_defconfig)

 CONFIG_MMC_BCM2835=y
 CONFIG_MMC_BCM2835_DMA=y
 CONFIG_DMADEVICES=y
 CONFIG_DMA_BCM2708=y

cp arch/arm/configs/bcm2835_defconfig ./.config
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- menuconfig
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-

it works for me.

that's it.


Kubuntu Problem when Installing - metalink unable to download therefore ISO

This could be a bug. Also version of wubi and kubuntu is not mentioned in question.

Follow below steps,

Download kubuntu ISO → http://www.kubuntu.org/getkubuntu
Download appropriate wubi version.
Put them in same folder.
Run wubi.


Nevermind, I figured it out myself. (thanks pilot6)
sudo apt-get remove --purge '^nvidia-.*'
sudo apt-get --purge remove libnvidia-compute-440
Then reinstalled the NVIDIA driver.  Now my driver works on the different versions of kernels I have installed.  Hopefully this helps someone else in the future.


How do I destroy my installation? (render it unbootable?)

To remove a virtual machine completely from Virtual Box we can select it from the Virtual Box Manager:

On right click context menu select Remove or press
Ctrl + R:

On choosing Delete all files all files associated to this machine including snapshots will be irreversibly removed.

In case we had created a VDI virtual hard drive used for other machines as well we may need to remove them separately from the Virtual Box Media Manager Ctrl + D:


What's the difference between KDE packages?

I've checked the packages that apt-get install would install for each of these. These aren't complete lists, but only list the differences from my Unity (ie., without any KDE programs) setup.

plasma-netbook and plasma-desktop differ only by whether they install the netbook or the desktop interface. kde-workspace is identical to plasma-desktop.

kde-plasma-desktop will install a few KDE programs: Dolphin, Konqueror, kde-baseapps, konsole, kwrite, and kde-passwd.

kde-standard installs a bunch of stuff on top of kde-desktop: Akregator, Ark, Dragonplayer, gnupg, Kaddressbook, Kate, KDE wallpapers, Kmail, etc.

kubuntu-desktop installs even more than kde-standard. kubuntu-desktop is the package you would download from the Ubuntu website if you wanted Kubuntu, but if you only want the Plasma interface, not any of the default programs, plasma-desktop might be sufficient.


You have several options. The most-like-Windows options are:

Disk Utility (aka palimpsest) will let you see all your partitions, set up RAID arrays, run benchmarks, etc. It has slightly more features than you'll be used to in Windows but the interface is also slightly different. This is installed by default.
gparted technically has a subset of palimpsest's features but it's older. It won't help you set up RAID arrays but it does display partitions on drives in a relatively simple to understand manner. It also doesn't break things down by controller (as palimpsest does) but I don't want you to deter you from it. It's a very worthwhile tool for examining and changing a disk's partition layout.


Why does Ubuntu use Python 2.6 and not 3.X?

I don't think Python 3 is less popular, it just haven't been around as long..

For a language to be used adoption time is needed, version 3.* is so much different from 2.* that you can't use the modules/extensions without changing them beforehand. Therefore all modules that the current infrastructure depends on needs to be ported python 3.*

"If you don't know which version to use, start with Python 2.7; more existing third party software is compatible with Python 2 than Python 3 right now." -Python.org download page.

Se also: Python 2 or Python 3 and Wikipedia


Can an Avira Antivirus Live CD scan for viruses that would infect Ubuntu?

Avira uses a modified version of Ubuntu. If they didn't remove the ext2/3/4 filesystem support, yes, it will be able to read and scan all your NTFS and ext2/3/4 partitions. Now, if it's cappable of detecting "Linux-only" viruses, that depends of the Virus databases it uses.


As per output mentioned for command

sudo update-alternatives --config java

I can see that you have only JRE installed but you also need JDK to compile and run the code.

You can install JDK for Java 8 using following command :

sudo apt-get install openjdk-8-jdk

And then run

sudo update-alternatives --config java

command and select JDK instead of JRE.


kdirstat is a transitional package, you should look for k4dirstat in Software Center

The package is available for Ubuntu 11.10 in PPA - see ppa:jeromerobert/misc


Usually you have to run a Logitech utility to reprogram the buttons in such case. Works fine through VirtualBox.

(from the experience with my G300 and the fact that the description of M545 says that it is programmable)

Another possibility is the evrouter daemon. It can change the events from input devices on the fly. Can be used to fix the problem or extend the functionality of the buttons even more.


Using start to run node application on startup

Hmm, not the best way to be starting something in
general. A wrapper script with the correct ownership
could do the same work without sudo.

You're problem is in the use of sudo, regardless of
the context as an upstart job. The environmental vars
you're defining aren't being passed on. Add the
'-E' switch to sudo to correct this.

If you used a wrapper owned by www-data to start that
process you wouldn't have this problem because you
wouldn't have needed sudo. There are lots of example
jobs that create vars and pass them on to the
new child process. It's a basic property of fork/clone.


Fatal error after installing Steam via Play On Linux

Install wine 1.3 - the latest development version using the Wine PPA.

Then follow the HOWTO found here Wine App DB Steam


Applications won't run after reinstallation of 16.04 (64 bit)

Work around found. The problem apparently was something with Unity. I switched to Ubuntu Mate and everything is fine.


TTL (TCP/IP time to live) changing in Ubuntu

Looking at here, I see that you need to write to this file: /proc/sys/net/ipv4/ip_default_ttl.

However, I'm not really sure that that will fix your problem.


I can confirm that on 10.10 (32bit) the above fix works:

apt-get install gtkpod ubuntu-restricted-extras

Simply restart Rhythmbox and if the iPod doesn't auto recognize do the following:

  [Music] → Scan Removable Media

and give it a few moments: (mine took 3 minutes to index, not sure what it was doing but took a few moments before it showed up)

Also ensure in the plugins that iPod is ON:

  [Edit] → Plugins → Portable Players - iPod

I have a 6th Gen iPod classic 160GB.

  [EDIT]:

You can also after you verify all of the above, do the following if the iPod is still not showing up...

  Simply click [Music]  →  [Import Folder]  →  (On the left(in Places) of the new window you should see the connected iPod listed) Click the iPod, and CLOSE that window with [Cancel]  *(hopefully you'll see the iPod listed in Devices now.  :)


Install a specific version like this:

apt install packageName=versionName

for example:

apt install bluez=5.43-2+deb9u1

The owner of the ppa would have to say if it's stable or beta - like on the website where you found the ppa name and details.


Unable to remove advertising from Dash searches because of lack of "Security" item in System Settings

You can disable Internet searches in the dash by clicking "Filter results" in the top-right corner of the dash and deselecting all the sources you don't want.


Mysql 5.6.12 Installation from source code

The official instructions for building and installing from source are:

# Preconfiguration setup
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
# Next command is optional
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

Source: Installing MySQL Using a Standard Source Distribution

In your question, you don't mention having run cmake ., make or make install at any point.

I suggest you delete your existing directory and start again from the .tar.gz file following the official instructions to the letter.


How do I disable Automatic Brightness in Ubuntu-Gnome [16.04/15.10]?

I realize this is a bit late but I was googling for this solution and I found the setting when I was messing around. Settings > power then turn automatic brightness off ! Hope it helps.


How do I open PDFs from gnome-shell in evince?

Edit: Instead of using the extension below I also discovered if you type more of the name of what you are searching for, it will display a "Files" section with a duplicate result and if you click this result instead, it will open the appropriate application.

Also, regarding the Documents search results, if you really want to you can remove the search provider and only use the Files search provider, which does as you wish. To remove the Documents provider:

sudo apt-get remove gnome-shell-search-provider-documents

and if you don't already have the Files provider installed:

sudo apt-get install gnome-shell-search-provider-nautilus

Alternate solution:

The best solution to this, at the moment the only solution I know of, is to use the Tracker Search extension:

Gnome Shell Tracker Search Extension

This works with iirc 3.2 and 3.4 and integrates the search results from tracker into the overview. With this method you would then look for the tracker results and click it instead of the "Documents" results which opens Documents.

The Documents search provider is responsible for why it doesn't open Evince, as it was designed to show the results of Documents in the overview. Although I'm not sure if it is actually a search provider, it may be more integrated than that.