How do I set up Qjackctl without using the terminal?

You can create a .desktop file for doing this.

First, create a script using terminal:

mkdir -p bin
gedit ~/bin/jack_control.sh

In the new opened file, add the following lines:

#!/bin/bash

pid=$(pgrep -x jack_control)

if [ "$pid" = "" ]; then
    pulseaudio --kill
    jack_control  start
else
    jack_control exit
    pulseaudio --start
fi

Save the file, close it and make it executable:

chmod +x ~/bin/jack_control.sh

Now you can create your .desktop file:

gedit ~/Desktop/jack_control.desktop

In the new opened file, add the following lines:

[Desktop Entry]
Version=1.0
Name=Qjackctl
Comment=Start or stop jack_control
Exec=/home/your_username/bin/jack_control.sh
Icon=/path/to/icon.png    # <-- this line is optional
Terminal=false
Type=Application
Categories=Utility;Application;

Save the file, close it and make it executable:

chmod +x ~/Desktop/jack_control.desktop

Finally, go to desktop and test your new .desktop file.

More about: https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles


xfce-panel display list of windows of a single application?

I have used the xfce4-terminal, as well as the xfce panel with the openbox window manager on a Ubuntu 14.04 kernel (3.13.53 linux kernel version), and had a similar problem.

I used the default option on the xfce panel initially which displayed the top panel and the second xfce panel as a dock on the bottom. As a work around I deleted the second panel (the dock), and re-added the second panel at the bottom and elongated its dimensions to have identical dimensions as the the top panel.

The xfce panel has settings which you can adjust by right clicking the panel, selecting panel, and selecting panel-preferences. With in panel-preferences you can delete and add panels as well as change each panels settings. This may be the option you are looking for. Another alternative which I employed, which is a work around all by itself and is to install and configure cairo-dock.

Using cairo-dock you can configure it to show each individual occurrence by selecting the integrated option under the behavior setting.
By doing so the dock will show each individual initialized terminal resting on the dock as shown below.

Best of luck and go UBUNTU!

Sorry Rivi, I just read re-post, you might ordersorting:


Can't switch to NVIDIA card in GNOME after installing Weston and/or changing Modeset

It seems to have been caused by Problem no. 2, as I expected.

The solution was:

Remove the modeset line entirely (and update initramfs, of course)
Prime-select intel
Prime-select nvidia again
Reboot


You can build it from sources, of cource, or install via PyBombs. I like the way with PyBombs. You got a most newer version, but i recommend to REMOVE currently installed via apt-get version of gnu-radio:

sudo apt-get remove gnuradio* libgnuradio-*

Do not forget to remove the libraries that depends on gnuradio. If something goes wrong, you can always install them back :)

First, install pip

sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv

Next: PyBombs

sudo pip install PyBOMBS
sudo pybombs prefix init /usr/local -a default_prx
sudo pybombs config default_prefix default_prx
sudo pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git
sudo pybombs recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git

Next, install gnuradio:

sudo pybombs install gnuradio

If you are like to use beautiful gr-fosphor, install it by:

sudo apt-get install libfreetype6-dev ocl-icd-opencl-dev libqt4-opengl-dev
sudo pybombs install gr-fosphor

Thats it, we are done!

PS: to avoid some possible errors, check if you gcc-compiler version are >= 5, but not => 6


Nautilus normally remembers the last Window size. If a window size is near to filling the screen, Gnome Shell (used by Ubuntu 18.04) will automatically maximize. If that is the cause, then turn this of in org.gnome.mutter auto-maximize. With the terminal:

gsettings set org.gnome.mutter auto-maximize false

To undo:

gsettings reset org.gnome.mutter auto-maximize


How do you install SeaBIOS on an Acer Chromebook 11 c720p-2600?

The SeaBIOS is an open source firmware that is used primarily in virtual machines such as with tools like QEMU.  It is not a BIOS replacement for the firmware for your machine.


how to disable 'scanning btrfs filesystem' at system startup

Btrfs isn’t too much stable to be used as deafult file-system. Most Linux distributions, probable all, are still using ext4 as primary file-system. So, you can completely remove it from your computer. Try the given command:

sudo apt-get purge btrfs-tools

This command will remove btrfs-tools from your computer. You may need to wait some minutes to complete the process. Your initramfs should be updated automatically but if not happen, do it by this command:

sudo update-initramfs -ukall

Then make a grub update:

sudo update-grub

All is well. Now make a restart. Hope your Ubuntu will start successfully this time.

Reference: http://www.ugcoder.com/disable-scanning-for-btrfs-file-systems-in-ubuntu/

Let me know if you have some questions still.


Perhaps resize the partition?

This suggests apt-get autoremove, if you have not tried that


HP Scanjet 4890 does not work properly in Ubuntu 14.04

Try hplip tools from Ubuntu Applications Center or from http://hplipopensource.com/hplip-web/index.html


setup pXE boot server and PXE booting for ubuntu server

Are you sure the macbook is handling the DHCP request and not your router? This is important because you have to set some options in your DHCP configuration which makes clients connect to the PXE server. In your config file on the MBA (bootpd.plist) these are options 66 and 67:

<key>dhcp_option_66</key>
        <string>192.168.1.3</string>
<key>dhcp_option_67</key>
        <data>cHhlbGludXguMAA=</data>

Also make sure that you edited the 192.168.1.1 to 192.168.1.3 in this file


"About this computer" shows 15.04 after update to 15.10

Turns out this was an issue for me.  The next day, I got a message informing me to do a "Partial Upgrade".  Instructions for addressing this message can be found here:

Partial Upgrade


On what (main) "engines" are based Ubuntu video players?

The default "main" video player in Ubuntu is totem and it uses GStreamer as the multimedia framework.


From where does Ubuntu install programs when we run sudo apt-get command?

It'll get the latest version of lthor available as defined by its package lists, as of the last time they were updated (eg apt-get update, amongst other commands).

You can see how the decision would go down with apt-cache policy. I don't have lthor in my repos so can't show you a specific example but here's another package that I don't have installed currently:

$ apt-cache policy xubuntu-desktop
xubuntu-desktop:
  Installed: (none)
  Candidate: 2.202
  Version table:
     2.202 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

The Candidate version there is what would be installed. gb.archive.ubuntu.com is the repo it would be fetched from and verified against. Version 2.202 is the version it would fetch.

This table is much more exciting when you have multiple repositories providing the same thing.


Sound driver for motherboard gigabyte ga-g1975x-c (Creative Sound Blaster Live 24-bit) (alsa, ca0106)

sudoedit /etc/modprobe.d/alsa-base.conf change or add the following line:

options snd-ca0106 subsystem=0x10121102

and your sound should work.


I think you will be fine. If you have /var/log directories most programs can create a file.
If you are having issues with another program check the main log for details.


Installing Ubuntu with windows, Need help with partitions

If you see the similar page(or whatever you call it), then you're on the right track. Right click the unallocated space, you should see New from the right-click menu. Select it then you should know what to do. Remember the file system must be ext4. You may also need another 4GB(depending on your RAM) and set the file system as swap.
Now click on install then you're done. If you are unable to boot into Ubuntu, try boot into the live edition again, then run boot-repair. Read this for more information.


Don't have enough cred to post a comment, but search for ubuntu 18.04 yaml, 18.04 and up uses netplan which so far i've found yucky but I'm also partial to liking changes!

This site link may explain more to you about how to go about it, or search for netplan and yaml. https://www.tecmint.com/configure-network-static-ip-address-in-ubuntu/


configure error line 38: sort: No such file or directory

I had a path with a newline in $PATH. Removing it resolved the error.

More information: https://www.postgresql.org/message-id/CAFj8pRBNmayqexB9pqv0NCjaxY-4i3xeQFJoAOcUwott9JA5qg%40mail.gmail.com


I think you have 1024MB installed memory plus 1200MB or so swap.

Use free -m to see the memory and swap amount in megabytes or free -h for a "human readable" representation.

(Use cat /proc/meminfo to see complete details about memory )


Ok, problem solved.

The problem is related to old Bluetooth devices paired with my laptop. For some of these devices, I checked the "Use your mobile phone as a Network device" flag. Unchecking them or simply removing the paired device did the trick.


I think you are one of the Gnome3 ppa victims. It happens when you upgrade your system with gnome3 ppa.
In my case following command brought back menu icons.

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/ButtonImages': <1>, 'Gtk/MenuImages': <1>}"


Basic software to install on computers to be donated

I agree that Edubuntu can be a good alternative.

It also depends on the computers - older computers need a linux distro with a light desktop environment (ultra light Lubuntu, medium light Ubuntu MATE or Xubuntu). I think Ubuntu Budgie is a light weight newcomer in the Ubuntu family.

See this link, Old hardware brought back to life

Newer computers work well and are easy to use with standard Ubuntu.

Try Ubuntu (Kubuntu, Lubuntu, Xubuntu, ...) before installing it

-o-

If you have several similar computers, you can create a master system with the OEM method and install suitable program packages. After that you can clone it to each of the computers. Linux is very portable also as installed, if you avoid proprietary drivers (for graphics and wifi).

See this link, Ubuntu OEM Installation


Wake-on-lan power on the system but doesnt start Ubuntu?

Check your BIOS settings and enable this feature.

Another possible solution is to allow such a feature in your power management settings.

https://help.ubuntu.com/community/WakeOnLan

https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/981461 (Useful??)

EDIT: After looking at your BIOS options, it appears that your system may not support Wake-on-LAN. If you look at the comments for this post (https://superuser.com/a/85559) a user mentions that not all motherboards support Wake-on-LAN (WOL). Because the system is powered off or on low activity, the motherboard is the one that operates such a feature because the OS is not fully on.


Remote Desktop connection from Mac to Ubuntu

You can use Microsoft Remote Desktop from App Store.
Set up your Ubuntu this way:
From DigitalOcean community page.

sudo apt-get update

If you don't have desktop installed:

sudo apt-get install ubuntu-desktop

After that install XRDP:

sudo apt-get install xrdp

Enable XRDP to start on boot:

sudo systemctl enable xrdp

If you have a firewall make sure that the 3389 port is open:

sudo ufw allow 3389/tcp

Now connect with Microsoft Remote desktop to your Linux machine.


I used the PPA :
https://launchpad.net/~mc3man/+archive/ubuntu/avidemux1

sudo add-apt-repository ppa:mc3man/avidemux1
sudo apt-get update
sudo apt install avidemux


OP reported in this comment that running the following command solved the issue for him:

sudo make uninstall


Is there any way to keep launchers synchronized among machines?

Manual Step
Open Terminal Ctrl + Alt + T and run following command:
gsettings set com.canonical.Unity.Launcher favorites "['nautilus-home.desktop', 'firefox.desktop', 'gnome-terminal.desktop', 'gedit.desktop', 'Ubuntu Software Center.desktop']"

Replace .desktop with your application name.
How do I find my application name?
Locate your application at /usr/share/applications

Run the same command to all your desktop.
Logout and login back.

Problem! How to Reset Launcher?!
gsettings reset com.canonical.Unity.Launcher favorites

Make remote script to launch at start up.

ObsessiveFOSS - The master script(the one directly run from Startup applications) is responsible for getting the remote script from the network share. If it can, it overwrites the local copy of the actual script with the actual startup items, and if it cannot connect for some reason, it just runs the old version.

The idea was to execute master script from network.
First you need to create master .launcher.sh that's contain :
#!/bin/sh
gsettings set com.canonical.Unity.Launcher favorites "['nautilus-home.desktop', 'firefox.desktop', 'gnome-terminal.desktop', 'gedit.desktop', 'Ubuntu Software Center.desktop']"

Giving permission:
chmod +x ~/.launcher.sh

Make startup application

Name : Launcher
Command : ~/.launcher.sh

So all you need is to change one script and other machine will follow too. Make sure other machine load the master script on startup from network.


How to get the location of a program in Ubuntu terminal?

Bash and Dash have the command built-in command that can show you the location of a command with the -v switch, if the command refers to an executable. For built-in commands and aliases the result is different. Examples:

$ command -v java
/usr/bin/java
$ echo $?
0
$ command -v echo
echo
$ command -v ls
alias ls='ls -h --color=auto'
$ command -v non-existing_command; echo $?
1

Additionally, all shells derived from Sh, know the type command that tells you about the nature of any command.

$ type java
java is /usr/bin/java
$ type ls
ls is aliased to `ls -h --color=auto'
$ type echo
echo is a shell builtin
$ type non-existing_command
bash: type: non-existing_command: not found

If your shell (e. g. Bash) supports it, type -a lists everything that a command may refer to:

$ type -a ls
ls is aliased to `ls -h --color=auto'
ls is /bin/ls
$ type -a echo
echo is a shell builtin
echo is /bin/echo
$ type -a touch
touch is /usr/bin/touch
touch is /bin/touch


Obviously you can't extend /dev/sda9 because /dev/sda7 and /dev/sda8 are on the way to the unallocated space.
Right click the swap partition and disable swap for a while. Then move the swap partition to the left.
Then move /dev/sda8 to the left.
After that you'll be able to extend the /dev/sda9 partition.
But beware that if you move the / partition, you'll have to reinstall grub.
To fix the boot issue, run:
sudo mount /dev/sda8 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys  /mnt/sys
sudo chroot /mnt
sudo update-grub
exit

Reboot.


Connect to a server using share name not IP not working

I've had a similar issue in the past, in my case, it was due to the window server having multiple IPs addresses, and the SMB stack not being able to handle that well. You could overwrite the name with just one IP in /etc/hosts and retry.

Failing that, take a look in /var/log/syslog and see if there is any more details associated with the error, we'd need more details to help.


Answer is here: https://askubuntu.com/a/1271982/1013762
Simply do:
sudo modprobe -r psmouse && sudo modprobe psmouse proto=imps

More details provided in the answer.


Once it activated, click on network applet and create new connection.

See the image below, It doesn't prompt software installation probably because the software is only for windows.

If you don't see New Broadband Connection , please post result of lsusb & dmesg | tail while the usb connected and activated.


i am not sure but piping yes with part command may work. Try both of these below one by one and tell me whether any of them works or not.

part / --fstype ext4 --size 1 --grow --asprimary | yes

yes | part / --fstype ext4 --size 1 --grow --asprimary


https://launchpad.net/menulibre Menulibre is GUI tool that will accomplish what you need.To install run

sudo apt-get install menulibre

Open the application,click on the games section in the left side and click on the + then add launcher.In the command line add the following: java -jar /path to your game.jar/.Save and exit.If you want to add an icon image click the box on the top left beside "New Launcher" and select any picture.


How to use gnome on top of Ubuntu without having to switch to Ubuntu Gnome

Yes go to the command line and type sudo apt install gnome this will install the gnome GUI at some point you will be given a choice of display manager either lightDM or GDM personally I would recommend lightDM once the install is complete logout and choose which desktop to use.

Edit 1
If you just want the gnome shell with none of the 'bundled' packages then type sudo apt install gnome-shell


Have you tried htop? An interesting & and alternative tool in to use instead of top. htop provides a full list of processes running, instead of the top resource-consuming processes


Gnome 2 apps do not use system theme (ubuntu mini iso + ubuntu gnome)

Okay, The issue was gtk2-engines-pixbuf was not installed. Once it is installed, everything is working fine again.


s.m.a.r.t. data no longer available in Ubuntu 16.04 "disks" application

Open your disks app and you will notice a hamburger menu on the top right:

Left click the "hamburger" and the select SMART Data & Self-Tests from the drop down menu:

You don't have to install anything special this works out of the box with Ubuntu 16.04.


The problem you are having is likely due to the amount of RAM you have.

While Ubuntu 14.04 only requires 512MB to run, having 1GB or less will cause Ubuntu to run slowly due to the graphic intensive Unity packages. More info can be found in this answer here.

It is probably best if you try a distribution such as:

Puppy Linux

It is much more lightweight, as shown in the system requirements.

I expect using a less resource intensive OS like Puppy Linux will fix your problems.

Although if you really want to stay with Ubuntu, it might be worth trying the lxde desktop environment. You can get it by running:

$ sudo apt-get install lxde

Then just log out, and click the button by your name in the log-in window. Choose 'LXDE' and see if it is better for you.


grub rescue in formating a os in dual boot

Live boot from your Ubuntu DVD/Pendrive.
Click on 'Try Ubuntu'
Open Terminal and enter the command sudo fdisk -l. This will list your partitions in the system. Find the partition that contains your kubuntu. It will be something like

/dev/sda7       614408192  3890325503  1637958656   83  Linux

Make a note of the dev/sda7 (this will be different for you). I will be using it as /dev/sdXY from now on
4. Enter the commands:

sudo mkdir /mnt/kubuntu
sudo mount /dev/sdXY /mnt/kubuntu
sudo grub-install --boot-directory=/mnt/kubuntu/boot /dev/sdXY
(For me, it would be sudo grub-install --boot-directory=/mnt/kubuntu/boot /dev/sda7)

Now reboot the system. You will have your grub back and it will boot into kubuntu.

Note: If you have other OSs installed in your system, then you can run sudo update-grub from your kubuntu to generate a grub configuration to recognize the installed OSs in your system


Permissiond denied, try to restore google chrome bookmarks.bak

To restore the Chrome bookmarks you need to rename the Bookmarks.bak file to Bookmarks. To do that you just need to open a file browser and navigate to the .config/google-chrome/Default directory. You'll need to show hidden files by going to View->Show hidden files first as any directory/folder which starts with a . in Linux is hidden. Then with Chrome closed, delete the current Bookmarks file and rename the Bookmarks.bak file.

Alternatively you can open a terminal and use the mv command

mv ~/.config/google-chrome/Default/Bookmarks.bak ~/.config/google-chrome/Default/Booksmarks


At here

After I insert a CD I have to click the 'Show hidden icons' to get the Device Notifier.

Another hickup is: How can I get the Plasma 5 Device Notifier to give me appropriate options for DVDs after upgrading from Kubuntu 14.10 to 15.04?


you may try with ntfs-config. it might work for you. read this


SPSS 22 on Xubuntu 15.04; stats file not runable; errors

Using Ubuntu 15.04 and SPSS 22, I followed the same steps you did, up to creating a new #!/bin/bash script. I got the same errors.

However, I was able to install and run SPSS 23 with no problems. I didn't use gksudo, but I still had these 3 packages installed: lib32z1 lib32ncurses5 libstdc++5


How do I theme the Sound Menu playback buttons?

Alright. It looks like the code for the spinning play button is found (in Ambiance) at /usr/share/themes/Ambiance/gtk-3.0/gtk-widgets.css.

/**************
 * spinbutton *
 **************/
.spinbutton.button:active,
.spinbutton.button:insensitive,
.spinbutton.button {
    border-radius: 0;
}

.spinbutton.button:active:nth-child(last),
.spinbutton.button:insensitive:nth-child(last)
.spinbutton.button:nth-child(last),
.spinbutton.button:active:backdrop:nth-child(last),
.spinbutton.button:insensitive:backdrop:nth-child(last),
.spinbutton.button:backdrop:nth-child(last) {
    border-radius: 0 7px 7px 0;
}

.spinbutton.button,
.spinbutton.button:active,
.spinbutton.button:backdrop,
.spinbutton.button:active:backdrop,
.spinbutton.button:hover,
.spinbutton.button:hover:backdrop {
    background-image: none;
    background-color: transparent;
    border-image: none;
    border-width: 0 0 0 1px;
    border-left-color: alpha (shade (@bg_color, 0.6), 0.22);
}

.spinbutton.button:active {
    background-image: -gtk-gradient (radial, center center, 0.0, center center, 0.5,
                                     from (alpha (@selected_bg_color, 0.2)),
                                     to (alpha (@selected_bg_color, 0.0)));
}

.spinbutton.button:insensitive,
.spinbutton.button:insensitive:backdrop {
    border-left-color: alpha (shade (@bg_color, 0.6), 0.18);

    color: shade (@bg_color, 0.66);
}

.spinbutton,
.spinbutton:hover {
    color: @fg_color;
}

/***********
 * spinner *
 ***********/
@keyframes spinner {
    0.00% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)); }

    12.5% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)); }

    25.0% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)); }

    37.5% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)); }

    50.0% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)); }

    62.5% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)); }

    75.0% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)); }

    87.5% { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)); }

    100%  { background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.875)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.750)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.625)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.500)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.375)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.250)), to(transparent)),
                              -gtk-gradient(radial, center center, 0, center center, 0.5, to(alpha(currentColor, 0.125)), to(transparent)); }
}

.spinner {
    background-color: transparent;
    background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                      -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                      -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                      -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                      -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                      -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                      -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent)),
                      -gtk-gradient(radial, center center, 0, center center, 0.5, to(currentColor), to(transparent));
    background-position: 14% 14%, 0% 50%, 14% 86%, 50% 100%, 86% 86%, 100% 50%, 86% 14%, 50% 0%;
    background-size: 20% 20%;
    background-repeat: no-repeat;
}

.menu.spinner,
.primary-toolbar .spinner,
.primary-toolbar .spinner {
    color: @selected_bg_color;
}

.spinner:active {
    animation: spinner 1s infinite linear;
}


How to replace a particular field in a file based on the content of another field?

Anchor it (^ is start of line) so that the A is only matched if it's the first character:

$ letter=A; id=MYNEWIDSTRING; sed "/^$letter /s/[^ ]*/$id/2" file
A MYNEWIDSTRING EXTERNAL
B CC32480A3247F84A SYSTEM
C EC2A63F12A63B76C EXTERNAL

by the way, if you want to pass variables to sed but you need strong quoting remember you can turn quoting on and off while adding double quotes for the variables - ugly but probably best practice in general:

sed '/^'"$letter"' /s/[^ ]*/'"$id"'/2'


update-initramfs trying to create initrd.img-new

I had a similar problem, and I fixed it like this:

sudo update-initramfs -d -k new

That should remove the bogus /boot/initrd.img-new. Then try your command again:

sudo update-initramfs -u -k all


You have to have unallocated space following the partition to make it larger.  If you want to take space from the earlier partition, you have to first shrink it, then move the later partitions to the left, and
then you can make them larger.


Install the package adobe-flashplugin from Canonical Partner.
This is really easy and you even get automatic updates.


Permission denied on shared memory segments in /dev/shm/

the posted code is missing the statement to call shm_unlink() when done with the shared memory


Expanding a partition on an SD card with GParted fails

The partitions with the keys next to them mean that they are mounted partitions and cannot be deleted, resized, moved, etc.

If you right click on each of those mounted partitions, starting with the partitions that are contained in the Extended partition /dev/sdb2 and choose Unmount, you can then resize the Extended /dev/sdb2 by filling in the Uncallocated space creating the free space inside the Extended partition allowing you to resize partition /dev/sdb7 to use up the unallocated free space.

Hope this helps!


How to remove ttf-mscorefonts completely?

Because of the way the fonts are allowed to be distributed, the package downloads installers and extracts them into their own directory in /usr/share/fonts/truetype/.

To clean up those extracted files, just run this:

sudo rm -rf /usr/share/fonts/truetype/msttcorefonts

You can be more thorough (run locate msttcorefonts to find more places where various helper files are excreted) but the other command should have cleaned up all the fonts.

You might find you need to clear the font cache after this for applications to realise the fonts have gone. Fairly simple:

fc-cache -rv


Wireless Stopped working after 3.2.0-25 upgrade

You'll have to rebuild the driver module for your card. Here's how:

Your adapter has a Ralink RT5390 chipset. You can download the official Linux drivers from this site. Save them to your Downloads folder (default):

Open a terminal with Ctrl-Alt-T, and paste the following, line by line:

sudo apt-get install linux-headers-$(uname -r) build-essential
cd Downloads
tar -xjf 2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO_GPL.bz2
cd 2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO
WPA1=HAS_WPA_SUPPLICANT
WPA2=HAS_NATIVE_WPA_SUPPLICANT
sed -i -e "s/$WPA1=n/$WPA1=y/g" -e "s/$WPA2=n/$WPA2=y/g" os/linux/config.mk
sudo make && sudo make install && sudo make clean
cd ..

Reboot, and hopefully your wireless connection will work!
Then open up the Downloads folder in the File Manager and delete the downloaded Ralink file/folder:


CPU governors are are low level drivers in the kernel.

If you want to add them you have to build a custom kernel including them.


Converting a .gif into a .swf using gif2swf

You run command in your home folder. But is file present exactly there?

Check if you home directory contains animate.gif. If not copy animate.gif to your homedir, or do cd /path/to/file/ before run your command, or use full path: gif2swf -o test.swf -r 12 /path/to/file/animate.gif


Nvidia Optimus on 13.10 Use initial Support or Bumblebee?

The well named "initial support", is an initial support. Basically that means you could use full power of your optimus graphic card without no need of bumblebee/prime.
But, you will soon notice that battery life will strongly decrease (In my case around 1h).

I would recommend you to keep bumblebee installed to keep a "normal" battery life.


"32-bit libraries not found on this system" when trying to install the Intel C++ Composer

The first thing you can try is ignoring this message and continuing to install anyway, which is actually the default option. I did this and it seemed to work, although I haven't thoroughly tested it.

Another possibility is downloading the version that is intended for intel64. I believe you are getting this message because what you are trying to install includes both 32-bit and 64-bit functionality, but you really only need 64-bit. Go back to the same download page, but click this package instead:

l_ccompxe_intel64_2013.1.117.tgz

Direct link (requires login)

I tried this too, and it installed without any warnings or errors.


The popup bar isn't shown any more in Firefox

In this version, there is no "standard" menu item to set this back, so You have to type about:config in address bar, accept the warning and search for:
privacy.popups.showBrowserMessage and set back to "true" (which is standard).
See also: Support Mozilla


Here's a fix And it also uses plain old xinput.

Download xbox360cemu.v.3.0 (search online - it's widely available)
Extract it, and copy these files

dinput8.dll
xinput1_3.dll
xinput9_1_0.dll
xbox360cemu.ini

to the same directory as the game executable within the Steam directory
install xboxdrv
in a terminal, run

sudo xboxdrv --silent --detach-kernel-driver --trigger-as-button --ui-axismap x2=ABS_Z,y2=ABS_RZ --ui-buttonmap A=BTN_B,B=BTN_X,X=BTN_A,TR=BTN_THUMBL,TL=BTN_MODE,GUIDE=BTN_THUMBR


How to PERMANENT remove Rhythmbox, VLC etc under sound

Use this command to compleatly remove programs from your system

sudo apt-get remove --purge "program name"

Then run

sudo apt-get autoremove

To clear useless left over libs


Is my battery really near the point of dead?

That is indeed what it says.  It may not be correct though.  You might try recalibrating the battery by charging it to full, then discharging it to around 3%, then recharging it.  Also, at 34.6 watts, you seem to be consuming a lot of power so you might investigate why that is.  powertop may be helpful for that.


Try sed with the following regex:

$ sed -i.bak 's_\(.*\),[[:blank:]]\([[:alpha:]]\+,[[:blank:]][[:alpha:]]\+[[:blank:]][[:digit:]]\+,[^,]\+$\)_\2 \1_' file.txt
Friday, Mar 13,2015 16:59:42 blah, blah, blah
Friday, Mar 13,2015 16:51:11 yadi, yadi, yada

Here we have used the sed's group substitution method to get the desired output.

\(.*\) will match upto blah, blah, blah as we have ,[[:blank:]] to match , after it.
\([[:alpha:]]\+,[[:blank:]][[:alpha:]]\+[[:blank:]][[:digit:]]\+,[^,]\+$\) will match the remaining portion of the line (the portion we want to put at the start).

Then we have \2 \1 to put the second group at first and then then a space and then the first group.

The original file will be backed up as file.txt.bak, if you don't want that use just -i instead of -i.bak.

**Although you will get the desired output, using Regex/sed will not be the optimum solution in this case.

EDIT: If you have a line like [Internet disconnected] Friday, Mar 13,2015 15:48:34, try this:

$ sed -i.bak 's_\(.*[^,]\),*[[:blank:]]\([[:alpha:]]\+,[[:blank:]][[:alpha:]]\+[[:blank:]][[:digit:]]\+,[^,]\+$\)_\2 \1_' file.txt
Friday, Mar 13,2015 15:48:34 [Internet disconnected]
Friday, Mar 13,2015 16:59:42 blah, blah, blah
Friday, Mar 13,2015 16:51:11 yadi, yadi, yada

In the previous regex we had \(.*\),[[:blank:]] (a comma and a whitespace after the first matching group), now to include the new line in the output we have made the first matching group \(.*[^,]\) to ensure that it does not end with a comma and then we have matched ,* i.e. one or more commas. So, the new sed command will work for all mentioned cases.


In the conf file for the site, I was able to fix this by taking out MultiViews.   Then it started working normally.


Ubuntu 13.04 installation error and data loss

Try to install "gparted" on Ubuntu-Software-Center, it at least let's you see the partition table like in Partition Magic on Windows.
It also offers some repair options for partitions and with great documentation on it's side, as it is a quite old Linux tool.
;3)

Had the same under XP...it was not working after resizing, deleting Linux for a cleaner install and repairing it like usual...had to reinstall it, maybe with gparted you'll be able to escape that fate.


New Cert for company VPN, now openconnect does not work

There is a workaround to use the --servercert option when connecting:

in terminal enter

sudo openconnect --protocol=gp <hostaddress>

and get the message:

Certificate from VPN server "serverhost" failed verification.
Reason:   signer not found To trust this server in future, perhaps
add this to your command line: --servercert pin-sha256:serverfingerprint
Enter 'sì' to accept, 'no' to abort; anything else to view:

and then finally use the fingerprint in your command line option:

openconnect --servercert=sha1:26cfbcdefg... [usual arguments]

or

openconnect --servercert=sha256:a8cfbcdedeadbeefdeadbeeffg... [usual arguments]

Source https://github.com/dlenski/openconnect/issues/60


I'm installing opencv in ubuntu 16.04. After installing the necessary prerequisites I used the following command:-

The CMakeLists.txt file is present in the folder /home/avi/opencv/opencv. So to build in /home/avi/opencv/build (alias ~/opencv/build), you should use:

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ../opencv


Simple question how to limit logging out

At the bottom of the dock is the box of squares. Select it and then go to the settings you want to change.


The following steps are needed to change the display mode using xrandr:

1. Get modeline

To change the geometry of an attached screen we first need to calculate the modeline for a desired resolution with gtf or cvt (whatever is installed):

cvt <xres> <yres> <refresh>

For a resolution of 1400x1050 at 50Hz this will give us the follwing modeline:

# 1400x1050 49.97 Hz (CVT 1.47M3) hsync: 54.11 kHz; pclk: 100.00 MHz
Modeline "1400x1050_50.00"  100.00  1400 1480 1624 1848  1050 1053 1057 1083 -hsync +vsync

2. Define new mode

Copy and paste the modeline to add it as a new mode named 1400x1050_50.0 (or any other name we choose) for xrandr:

 xrandr --newmode "1400x1050_50.00"  99.88  1400 1480 1624 1848  1050 1051 1054 1081  -HSync +Vsync

3. Attach mode to monitor

We then attach this new mode to our monitor, e.g. DFP3 (note that this will error if we had chosen a mode not supported by the graphics card driver):

xrandr --addmode DFP3 1400x1050_50.00

4. Change mode

After this was successful we then can switch to this new mode using

xrandr --output DFP3 --mode 1400x1050_50


How to configure a second IP address and bind it to a VBoxHeadless virtual machine?

The easiest way would be to set the virtual machine to use ‘bridged’ networking on the host's normal eth0 interface. Then set up the guest OS to use the second IP address as a static IP, whilst the host OS continues to the the first static IP.

With this approach, you don't have to set up multiple interfaces on the host OS or NAT rules to map the guest to a particular external IP. The guest and the host use different interfaces on the same shared network adapter.


Ubuntu will not automatically boot from SSD

I am assuming your SSD is external, as is mine.  I should add that if that is the case, most readers here will not understand that.  Some bioses have that issue.  My asus is one fine example of this.  On my asus, I need to press esc every time it boots to bring up the boot selection method.  It takes just a little getting use to, but is worth it.


Ubuntu.com download of ubuntu 12.10 failing

It looks like your particular mirror (or your connection to it) may be having issues.

Assuming you're not trying to download it at work (where this option may be restricted, regardless of its use), one of the best options for downloading is the torrent download option on the alternative downloads page. You can pick up Transmission for Windows (the Windows port of the Bit Torrent downloader used by Ubuntu) if you need a client.

Doing it this way allows you to connect to more than one different place to download it, eliminating connection issues and helping ease the pain of a flaky Internet connection.

However, I don't know if you can get Wubi this way (I've never used Wubi), but this will let you get the normal ISO file.

If you do need a direct download connection for whatever reason, you may be able to try one of the other mirrors, which are also listed on the alternative downloads page that I linked earlier.


How to change uim IME input method using command-line OR programmatically?

To distil what the toolbar apps and libuim are doing:

action=im_change_whole_desktop
input_method=anthy
printf "%s\n%s\n\n" "$action" "$input_method" | \
    nc -NU "$XDG_RUNTIME_DIR/uim/socket/uim-helper"

If you use a non-XDG distribution/environment, the socket will be in ~/.uim.d/socket/uim-helper instead.

$action can be im_change_whole_desktop, im_change_this_application_only or im_change_this_text_area_only.

To get a list of input methods, you can run uim-sh -e installed-im-list.


How to sync a folder to Ubuntu One cloud via command line?

u1sdtool - command line utility for controlling ubuntuone-syncdaemon

First hit on Google when I search for "Ubuntu one from command line". Is it what you're looking for?


Can apt-get dist-upgrade -y cause a restart of the system?

I have never seen this. Even when updating kernels (which gives a message saying you should restart your machine before the new kernel is in effect).
But, apt-get is run with root priviledge, and it executes all sorts of "post install" scripts found in the .deb packages. If one of those scripts would do an 'init 6' or some other command that restarts the system, then yes: apt-get will restart the system. This could even be the case without the -y flag.
Basically, you are trusting the repositories where the .deb packages are, and as a consequence, you are also trusting the people that create those .deb packages to not do anything too malicious...


Wireless & Wired Connection Not Working after upgrade

If you have a wireless switch which you can toggle using your keyboard or in the BIOS, check if that's turned on.
try doing an ifconfig on the gnome-terminal and see if you are getting any io address there.  if there is, eth0 or wlan0 will show any ip address other than starting with 169. Also do a ping to check the response. An ifconfig output will be something like the one below:

.

ifconfig
      eth0      Link encap:Ethernet  HWaddr 84:2b:2k:43:ef:08
      inet addr:10.11.23.80  Bcast:10.20.43.255  Mask:255.255.255.0
      inet6 addr: fe90::832b:2bff:feb5:ef08/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:26968 errors:0 dropped:0 overruns:0 frame:0
      TX packets:18958 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:19431851 (19.4 MB)  TX bytes:3558720 (3.5 MB)
      Interrupt:21 Memory:f7be0000-f7c00000

If you do get any connection then try this. open /etc/network/interfaces and comment out anything present there.

gksudo gedit /etc/network/interface

Restart your computer after the changes and see if you get any connection.


How do I install Brother printer drivers?

Open the terminal and change directories using cd to the Downloads directory.

cd Downloads

The command prompt will change after running this command to show the new current working directory (~/Downloads).
List the contents of the Downloads directory to show the name of the Brother printer driver archive that you downloaded.

ls

Extract the contents of the Brother printer driver archive that you downloaded.

gunzip name-of-brother-driver.gz # replace name-of-brother-driver.gz with the name of the driver archive that you downloaded

You can copy the name of the Brother printer driver archive that you downloaded from the results of ls in step 2 and paste it into the command in step 3 instead of name-of-brother-driver.gz.


I want to see the properties of the file

exiftool is good for pulling out metadata

Example:

sudo apt install libimage-exiftool-perl
exiftool myfile.mp4 | grep -i type

There's also the file command

file myfile.mp4


WIreless USB mouse does't work when laptop is on battery

Your USB is most probably going into autosuspend. Did you install TLP by any chance? If so, edit the configuration file using -

sudo gedit /etc/default/tlp

and change USB_AUTOSUSPEND=1 to USB_AUTOSUSPEND=0.

Alternatively, if TLP isn't installed, to blacklist devices that are not working with USB autosuspend and enable it for all other devices -

sudo gedit /etc/udev/rules.d/50-usb_power_save.rules

Make the following changes -

# blacklist for usb autosuspend
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="9205", GOTO="power_usb_rules_end"

ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"
LABEL="power_usb_rules_end"

where ATTR{idVendor} and ATTR{idProduct} can be found out using lsusb


envivo mini diasscanner driver workaround

I have this device working on linux mint. I downloaded and installed "Cheese" camera via our software manager, and it worked straight off. Prior to that it hadn't even been detected.

Kudos to the guy who pointed out that it is really a camera (on a German Mint forum (in English)). Everything Ubuntu works on Mint. I hope vice versa is true


Thanks! Adding discard to crypttab did indeed help.


Boot Ubuntu from a bootable USB hangs on purple screen

Maybe the pen-drive doesn't support booting.
retry with another one.


The file in /usr/bin isn't the binary itself, but a symbolic link (symlink) to the "real" binary at /opt/scala/scala-2.10.1/bin/scala. In order to execute your command you need to have sufficient permissions on that file, not (only) on the symlink. Otherwise, permissions could be circumvented very easily, just by creating a symlink with less restrictive permissions.


Encrypt Decrypt using Dnscrypt on Ubuntu

You can install Dnscrypt using ppa:shnatsel/dnscrypt PPA

sudo add-apt-repository ppa:shnatsel/dnscrypt

sudo apt-get update

sudo apt-get install dnscrypt-proxy


taskbar cannot be moved to bottom + FSL installation not possible

Try installing Gnome Tweaks and Dash to Panel from the Ubuntu store. Enable the panel extension from the Gnome Tweak, then change the panel position to bottom.

As to running the python installation script, make sure the script is executable before running it.

chmod a+x fslinstaller.py
./fslinstaller.py


My friend had the exact same issue using an Asus eee pad. He complained that after the update to 11.10 the loading time was massively increased. I suggested that he give Gnome 3 a try to see if it fairs any better. He reported that load times were back to being reasonable after the install.

Gnome 3 used to be a little tricky to setup, but I haven't tried in a while. You can try  out Gnome 3 with this command:

sudo apt-get install gnome-shell

Other than that I haven't seen any other solutions. There is talk however of a focus on increased boot times in Ubuntu 12.04. Hopefully, if the matter isn't too urgent and Gnome 3 doesn't work out for you, you can wait just a little longer (April 2012).


I just had the same issue trying to install some dependencies for compiling Ruby.

The easiest way out of this misery is to note down the package and version on the second to last line: zlib1g and 1:1.2.8.dfsg-2ubuntu4, then issue the following command:

$ sudo apt install zlib1g=1:1.2.8.dfsg-2ubuntu4

This will downgrade zlib1g to the required version, and the install should succeed afterwards.


Can I stop battery charging at say 80% and switch to AC?

It will not be possible because the laptop will require hardware support as well, assuming built into the BIOS. The software is mearley showing the charge percentage and rate, but power is flowing to the battery either way unless otherwise told by hardware. Also, if you shut your PC off, how does it know to stop charging without direction of a software utility. Make sense? I was looking for something similar for my Dell Studio, but it is not possible unless built into the motherboard from the manufacturer. Hopefully Dell catches on.


How to automatically restart Gnome Shell every time the PC comes out from suspend

Change your script from this:

case "${1}" in
    post)
         gnome-shell --replace
;;
esac

To this:

#!/bin/sh

case $1/$2 in
  pre/*)
    echo "Going to $2..."
    # Place your pre suspend commands here, or `exit 0`
    # if no pre suspend action required
    sleep 1
    ;;
  post/*)
    echo "Waking up from $2..."
    # Place your post suspend (resume) commands here, or `exit 0`
    # if no post suspend action required
    sleep 2
    gnome-shell --replace
    ;;
esac

For sure you are missing #!/bin/sh at the top of your script. Most of the rest of the proposed changes are not be necessary but informative.


Screen turns black when plugging in a second monitor

Just found the official bug page, with possible workarounds such as installing other kernel versions: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/745112

For the time being, it seems we have to wait or play with other kernels...

EDIT: I've just installed and tried kernel linux-headers-2.6.39-020639rc4 and works like a charm - at least in this regard. I hope it's as stable as the previous one as well!


As you said, you can not boot windows, right? Last installing ubuntu os, i also met the same problem. I have solved it by these steps. Here is that:

First, you must close the security boot and fastboot options in bios.
In terminal, to do sudo add-apt-repository ppa:yannubuntu/boot-repair.
To do sudo apt-get update
To do 'sudo apt-get install boot-repair' for installing boot-repair.
After installed it, you should do sudo boot-repair.
Then, reboot your pc. You can see that the list windows8 UEFI of grub lists in screen. Choose it, and enter.
Now, if everything is ok, your windows will can works well.


How do I install the Instant Messaging application IP Messenger?

When you see an error message like that from pkg-config ("No package 'foo' found"), that means that the file foo.pc cannot be found by pkg-config. The usual reason for this is that you don't have the package which provides this file installed, so you should search either using apt-file or on packages.ubuntu.com for it. In this specific case however, you'll get no results because the old GNOME 2 panel applets have all been removed.

If you pass --disable-applet to ./configure, you should be able to get past this step.


How do I re-add the messaging indicator?

Right click the panel, select Add to Panel, find the Indicator Applet and click add.


I noticed that I has less problems on the third monitor (there were programs that would not run at all on the first two monitors).  The monitor that worked best with several programs was running off a Quadro NVS 290. I pulled one of the graphics cards (NVIDiA GTX 460) and the drag-and-drop issue vanished.  The one card left is an old Nvidia Quadro NVS 290 running two monitors.  I'm currently on Nvidia driver 304.135, which isn't the most current version but proved compatible with these two cards (sort of).

I think the lesson here is to not use two different graphics cards, even from the same manufacturer.  It may also be that older graphics cards are more stable, however neither of these cards is very new.


Basically, you don't need any development libraries to run your system. As the name says, they are for development purposes. The libraries used to run these applications are different ones.

Your command looks fine to me, but anyway APT is giving you a list with the packages to be removed. Just watch it for packages you need (everything without the -dev would be suspicious)


espero ayudarte, verás ,para instalar Ubuntu asi como cualquier distro linux juntu con Windows,  depes particionar el disco duro,  por lo que tendrás que investigar que son particiones, hasta ahi muy bien, luego debes saber configurar la BIOS es posible que usted tenga UEFI que creo que es una BIOS que funciona con una interfaz gráfica o algo así,  pero lo que realmente importa es que tengas en cuenta el orden de arranque de los sistemas operativos,  primero debes poner ubuntu, luego Windows,  si todo sale bien, entonces cuándo enciendas tu máquina veras una interfaz textual , por lo general morada, ese programa de entrada se llama GRUB y permite decidir cual sistema operativo SO correr,

●intenta cuidadosamente configurar la BIOS las formas que sea posible,  pero hazlo con información a la mano.
●no tiene sentido que reinstales Ubuntu.
ESPERO HABERTE AYUDADO :)


How can I install Ubuntu encrypted with LUKS with dual-boot?

First of all, if you want to install Ubuntu encrypted on a hard disk, replacing any existing partitions and operating systems, you can do this directly from the graphical installer. This manual process is only required for dual-booting.

This answer has been tested with Ubuntu 13.04.

Boot from an Ubuntu live DVD or USB stick, and select "Try Ubuntu".
Create two partitions using GParted included in the live disk. The first partition should be unformatted and should be large enough for root and swap, in my example, this is /dev/sda3. The second partition should be several hundred megabytes big and formatted in ext2 or ext3, it will be unencrypted and mounted to /boot (in my example this is /dev/sda4).

In this screenshot, I have an existing unencrypted Ubuntu installation in two partitions: /dev/sda1 and /dev/sda5, highlight in the circle to the left. I have created an unformatted partition in /dev/sda3 and an ext3 partition in /dev/sda4, intended for the encrypted Ubuntu installation, higlighted in the circle to the right:

Create a LUKS container using these commands. Replace /dev/sda3 with the unformatted partition created earlier, and cryptcherries with a name of your choice.

sudo cryptsetup luksFormat /dev/sda3
sudo cryptsetup luksOpen /dev/sda3 cryptcherries

Warning: You'll notice that the luksFormat step completed very quickly, because it doesn't securely erase the underlying block device. Unless you're just experimenting and don't care about security against various types of forensic attack, it is critical to properly initialize the new LUKS container before creating filesystems in it. Writing zeros to the mapped container will cause strong random data to be written to the underlying block device. This can take a while, so it's best to use the pv command to monitor the progress:

### Only for older releases, e.g. not for 19.04, `pv` is not included in the repo must be added first
# sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
# sudo apt-get update

sudo apt-get install -y pv
sudo sh -c 'exec pv -tprebB 16m /dev/zero >"$1"' _ /dev/mapper/cryptcherries

or, if you're doing an offline install and can't easily get pv:

sudo dd if=/dev/zero of=/dev/mapper/cryptcherries bs=16M

Inside the mounted LUKS container, create an LVM physical volume, a volume group and two logical volumes. The first logical volume will be mounted at /, and the second one will be used as swap. vgcherries is the name of the volume group, and lvcherriesroot and lvcherriesswap are the names of the logical volumes, you can choose your own.

sudo pvcreate /dev/mapper/cryptcherries
sudo vgcreate vgcherries /dev/mapper/cryptcherries
sudo lvcreate -n lvcherriesroot -L 7.5g vgcherries
sudo lvcreate -n lvcherriesswap -L 1g vgcherries

Create filesystems for the two logical volumes: (You can also do this step directly from the installer.)

sudo mkfs.ext4 /dev/mapper/vgcherries-lvcherriesroot
sudo mkswap /dev/mapper/vgcherries-lvcherriesswap

Without rebooting, install Ubuntu using the graphical installer (shortcut is on the desktop in Xubuntu 18.04), choosing manual partitioning. Assign / to /dev/mapper/vgcherries-lvcherriesroot and /boot to the unencrypted partition created in step 2 (in this example,/dev/sda4).
Once the graphical installer is finished, select "continue testing" and open a terminal.
Find the UUID of the LUKS partitions (/dev/sda3 in this case), you will need it later:

$ sudo blkid /dev/sda3
/dev/sda3: UUID="8b80b3a7-6a33-4db3-87ce-7f126545c74af" TYPE="crypto_LUKS"

Mount the appropriate devices to the appropriate locations in /mnt, and chroot into it:

sudo mount /dev/mapper/vgcherries-lvcherriesroot /mnt
sudo mount /dev/sda4 /mnt/boot
sudo mount --bind /dev /mnt/dev
sudo chroot /mnt
> mount -t proc proc /proc
> mount -t sysfs sys /sys
> mount -t devpts devpts /dev/pts

Create a file named /etc/crypttab in the chrooted environment to contain this line, replacing the UUID value with the UUID of the LUKS partition, and vgcherries with the name of the volume group:

# <target name> <source device> <key file> <options>
cryptcherries UUID=8b80b3a7-6a33-4db3-87ce-7f126545c74af none luks,retry=1,lvm=vgcherries

Run the following command in the chrooted environment:

update-initramfs -k all -c

Reboot and boot into the encrypted Ubuntu. You should be prompted for a password.
Check that you're using the encrypted partition for / by running mount:

$ mount
/dev/mapper/vgcherries-lvcherriesroot on / type ext4 (rw,errors=remount-ro)
/dev/sda4 on /boot type ext3 (rw)
# rest of output cut for brevity

Check that you're using the encrypted swap partition (not any unencrypted swap partitions from any other installations) by running this command:

$ swapon -s
Filename                              Type      Size   Used Priority
/dev/mapper/vgcherries-lvcherriesswap partition 630780 0    -1

Check that you can boot into recovery mode, you don't want to find out later during an emergency that recovery mode doesn't work :)
Install any updates, which are likely to rebuild the ramdisk and update the grub configuration. Reboot and test both normal mode and recovery mode.


I had a similar problem. And after a week of searching, I discovered what the problem was for me. In the Ubuntu kernel, the USB drivers are built-in. Therefore, upon suspend and resume, the drivers could not be unloaded and then reloaded as modules. So I had to compile the Linux kernel from source and made sure that the USB drivers (xhci_hcd and ehci_hcd) were made to be loadable modules.

From there, I created a file named 20_custom-ehci_hcd in /etc/pm/sleep.d/.

#!/bin/sh
# Inspired by http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19
#...and http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug
# Tidied by tqzzaa :)
VERSION=1.1
DEV_LIST=/tmp/usb-dev-list
DRIVERS_DIR=/sys/bus/pci/drivers
DRIVERS="ehci xhci" # ehci_hcd, xhci_hcd
HEX="[[:xdigit:]]"
MAX_BIND_ATTEMPTS=2
BIND_WAIT=0.1
unbindDev() {
  echo -n > $DEV_LIST 2>/dev/null
  for driver in $DRIVERS; do
    DDIR=$DRIVERS_DIR/${driver}_hcd
    for dev in `ls $DDIR 2>/dev/null | egrep "^$HEX+:$HEX+:$HEX"`; do
      echo -n "$dev" > $DDIR/unbind
      echo "$driver $dev" >> $DEV_LIST
    done
  done
}
bindDev() {
  if [ -s $DEV_LIST ]; then
    while read driver dev; do
      DDIR=$DRIVERS_DIR/${driver}_hcd
    while [ $((MAX_BIND_ATTEMPTS)) -gt 0 ]; do
      echo -n "$dev" > $DDIR/bind
      if [ ! -L "$DDIR/$dev" ]; then
        sleep $BIND_WAIT
      else
        break
      fi
      MAX_BIND_ATTEMPTS=$((MAX_BIND_ATTEMPTS-1))
    done
  done fi
  rm $DEV_LIST 2>/dev/null
}
case "$1" in
  hibernate|suspend) unbindDev;;
  resume|thaw) bindDev;;
esac

I hope this works for you. I might have made another file somewhere, but I can't find it right now.

I found that other file. In /etc/pm/config.d/, I created a file called modules.

modules

SUSPEND_MODULES="xhci ehci_hcd xhci_hcd xhci-hcd ehci-hcd"


From the screenshot,it was clear that you had mounted extended partition.It was not possible to resize a mounted partition via gparted.So you must run a gparted live disk or run a ubuntu live disk and install gparted on it.
Open gparted and right click on the extended partition.Now you can add the unallocated space to the extended partition.The unallocated space comes under the linux-swap partition.
Then rightclick on the ext4 partition,now you can be able add the unallocated space to the ext4 partition.


How to do more with an expect script than just a log in

The main thrust of expect programming is send and expect pairs: you send some text to the spawned process and expect a response. In this case, you send the mkdir command, and expect to see your prompt to know that the command has completed. Prompts are best matched as regular expressions to match the end of it. Since prompts are so configurable, you might want to edit the prompt expression: this one matches a literal dollar sign and a space at the end of the string.

#!/usr/bin/expect -f
spawn ssh debian@192.168.7.2
expect "debian@192.168.7.2's password:"
send "temppwd\r"
set prompt_re {\$ $}
expect -re $prompt_re
send "mkdir -p emma && cd emma\r"
expect -re $prompt_re
interact


How do I configure Gnome Shell to use Super-# for shortcut keys?

I'm not sure how to mark this question as a dupe, but it is a dupe of this question, which now has an answer posted:

Can I get Unity-style Super+[1-9] keyboard shortcuts for launching apps in Gnome Shell?


Third party applications on HiDPI display

No, there is no way to fix this to make applications scale automatically on HiDPI displays. Each application/GUI toolkit needs to be updated to cope with HiDPI. There was some talk of supporting legacy applications by automatic scaling up (as OSX does) but it has not been done yet.


Your .yaml files are incomplete.

You can't "erasing my LAN card configuration".

Remove both .yaml files and try this... keep the same spacing and indentation, and no tabs...

network:
  version: 2
  renderer: networkd
  ethernets:
    enp1s0:
      addresses: [192.168.1.91/24]
      gateway4: 192.168.1.254
      nameservers:
        addresses: 192.168.1.91
        search: [domain.net]
      optional: true
  vlans:
    vlan.11:
      id: 11
      link: enp1s0
      addresses: [192.168.1.92/24]

sudo netplan --debug generate # generate config files

sudo netplan apply # apply new configuration

reboot # reboot the computer


VPN Unlimited failure on Lubuntu 12.04.1


How to get a summary of installed packages by repository and see differences from clean install?

My question is already partially answered at How do I get a list of obsolete packages?.

The answers suggest to use

apt-show-versions | grep 'No available version'   # Show all package not coming from repo
aptitude search '~o'                              # Similar

I guess we can do as well:

apt-show-versions | grep -v uptodate              # All packages that are not up-to-date

This would give packages that are not up-to-date, i.e. packages that are upgradeable from enabled repositories, or packages not coming from such repositories.

To get a list of all available versions for such packages, we could do:

apt-show-versions -a $(apt-show-versions | grep -v uptodate | sed -r 's/:.*//')

I also found a question referencing deborphan -a (How to list installed packages in apt that are not backed by a repository?)

deborphan -a             # List all packages that have no reverse dependencies

So to summarize, I have some answers for item 1 and 2, but still looking for 3 and 4:

apt-show-versions is a good answer
Idem, one of the command combo above. The key step here of course is first make sure that only official repositories are enabled in /etc/apt.
?
?


By default irqbalance uses the /proc/irq/*/affinity_hint to decide on the target CPUs for a given interrupt, so even if you set numa_node=-1 the affinity_hint (set by the kernel based on which numa node the interface is actually connected) may trump that.

You may try adding OPTIONS="--hintpolicy=ignore" to /etc/default/irqbalance.

I'm assuming you are already using --policyscript= option for setting numa_node=-1.


One Ubuntu 16.04 system finds the package libsqlite3-dev, but another does not

Some mirrors may be out of sync.

Try to select other mirror:

open Software & Updates (software-properties-gtk)
on Ubuntu Software tab select other server (for example Main Server) from Download from drop-down menu.
if you planning to compile something check Source code

confirm reloading lists

Then try to install you program again with:

sudo apt-get install libsqlite3-dev


Keyboard not working on Ubuntu 14.10 Live CD

According to my research this issue is resolved through a BIOS upgrade (direct link to file). Unfortunately many people seem to have issues to run this update even with the recommended Windows 7, but this can be resolved by placing an older AMI flashing driver amifldrv32.sys in the same folder (source). I found the whole package on a Russian Linux enthusiast page: https://syslinux.ru/sites/default/files/Lenovo_BIOS_Update.zip


ModuleNotFoundError: No module named 'gi'

Make sure you don't have a conda environment enabled, including the root one, and run it as "sudo dropbox start -i"


Ubuntu 14.04 booting stuck at loading screen

I solved the problem by logging in ( Ctrl+Alt+F2 ) and then upgrading, via sudo apt-get upgrade.

I would assume that some of the files somehow got corrupted previously because of some incomplete update or something similar, and upgrading it properly makes everything work as it should.


Is there a way to access a live command shell for Ubuntu server online?

Install a SSH server (package openssh-server) on your server and a SSH client (package openssh-client on Ubuntu, there's a client for about any other system, too) on the hosts you want to access your server from.

Then you can use something like

  ssh server.example.com

on your local host to get a full remote shell on your server.


Ok I figured it out, I just added zcache to the GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub file, then ran sudo update-grub.

Example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash zcache"


I would do the exact opposite.
Although with 64GB of RAM you probably won't notice the difference.
64GB plus good tmp/swap space and that PC of yours will be screaming fast.
You could do a RAM Disk on the partition as well and that would boost performance as well. You have plenty of RAM to do that and a lot to spare.


you can try installing ubuntu-tweak http://ubuntu-tweak.com/ In Admins->File Type Manager in Text and Program Section select the filetypes that you want to change to handle with Abiword


Execute command before starting terminal copy file

One way to accomplish this is to edit your .bashrc file.

Step-by-step:

Run gedit ~/.bashrc. This will open up the bash configuration file, which gets run every time you open a terminal.
At the bottom of the file, add this:

# Copy wallpaper to .image.jpg in the home folder.
cp ~/.cache/wallpaper/0_4_1280* ~/.image.jpg


How to access GRUB 2 in a computer with only Ubuntu?

According to this, holding the Shift key while booting should bring up the GRUB menu. If the Shift doesn't work, repeatedly pressing the Esc may work.


New laptop (Skylake) cannot boot Xubuntu even with boot parameters

Got Ubuntu 15.10 installed, on this exact same model laptop. Took me most of today to figure this out.

I turned off secureboot and turned on UEFI and PCXE via the Bios. Hit Esc at boot, and choose 'settings' to access this. I also turned on the networking stack -- though I don't know if this was necessary.
You need to turn off fast startup in Windows 10 via the instructions at

http://www.tenforums.com/tutorials/4189-fast-startup-turn-off-windows-10-a.html

This is assuming that you want to dual-boot

After booting, hit escape, and choose the appropriate UEFI entry. In my case, it was the DVD.
Choose either 'Run without installing' or the 'setup' option from the GRUB2 menu. However, instead of hitting enter, type 'e' to edit.

Make the following changes:

"set gfxpayload =  1920x1080 "

and replace the 'quite spash ---' section of line 3 with the following entries (they all force various option on that would not be turned on otherwise, and also enable the latest Intel
    chipset support.

"nomodeset i915.preliminary_hw_support=1 nouveau.blacklist=1 edd=on nolapic pcie_aspm=force tpm_tis.interrupts=0 ---"


Removing the splash screen on shutdown an startup. I want to be able to see the processes

I recommend just editing your /etc/default/grub.

Change

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT=""

Remember to update grub afterward with sudo update-grub at the command line.

Comment:  Originally, I put GRUB_CMDLINE_LINUX_DEFAULT="text".  Note this will end your boot process at the command line.  After (possibly) having to login with username and password, startx at the prompt will start up your usual GUI.


The solution is to install pgpool2 like so:

$ apt-get install pgpool2=3.3.2-1ubuntu1 libpgpool0=3.3.2-1ubuntu1

For some reason the default packages for pgpool2 are broken, but when you specify these versions it installs properly.


You do not have the permissions necessary to view the contents of "HDD"

You should change owners. Run this command:

sudo chown $USER: /media/$USER/HDD

where $USER will complete to your current Ubuntu user and HDD is the name of the partition in question


load xfce-desktop and select XFCE as your desktop on the login screen. It will use less resources.

The only problem you will have after that would be removing UNITY and all the other apps and system services that were installed with it, that may be bogging down your machine.

I would just do fresh install with xubuntu and see how it goes. Backup your files first of course.

You will for sure wand to get rid of zeitgeist and any other service that will automatically index your files and other such services.


Edit the file /etc/postfix/main.cf (sudo nano /etc/postfix/main.cf), search for the line:

inet_interfaces = all

And change it to:

inet_interfaces = 127.0.0.1, 66.66.66.66, 66.66.66.67

Save, exit and restart postfix (sudo service postfix restart).


Nautilus-compatible file "commander" for power users

To browse the Network just open and mount a network location by Bowse Network or choose Go -> Network.
To have an integrated terminal see Nautilus-Terminal, also available from this ppa: ppa:flozz/flozz
Nautilus 3 is able to open directories in a new tab by default (right-click context menu Open in New Tab)
For custom menus see Nautilus Actions


Access files of a debian package from postinst script

To get the list of files installed by a package you can use dpkg -L YOUR-PACKAGE-NAME, and this works as you'd expect during postinst. (So if your package is named example the command is dpkg -L example.)

dpkg -L seems to work even when the /var/lib/dpkg/lock lockfile is locked, and in any case the lock is not held during postinst.

You can also use the file /var/lib/dpkg/info/YOUR-PACKAGE-NAME.list, which dpkg creates during the install of the package before running its postinst. (So if your package is named example the file is /var/lib/dpkg/info/example.list.)

Both of the above give a list of all files (and all parent directories up to the root, which you may need to filter out depending on what you're doing) that are contained within the package.


GRUB won't start with USB storage attached

Change the internal HDD to the first boot in the bios and You should be able to boot without having to unplug the USB HDD because some (not all) USB HDD have the boot flag on them and without a OS on them they will stall and you will have to reboot the machine.


have you tried the "display"? it default on ubuntu, click the dash searc "display", you can change the resolution from it


From your log, it looks like an older version of package  (which maybe unofficial ) is causing issue during installation.

The answer to your question is well explained with the solution here  : askubuntu: libapache-mod5-php- installation issue

Follow the solution there. If problem exists please comment.


Why are Ubuntu Nvidia driver packages so far behind Nvidia official recommended releases?

"Why does Ubuntu wait weeks and sometimes months to release new Nvidia driver updates?"

Other things get in the way - Usually, a specific person or group of people will be in charge of packaging the driver and putting it up, unless the process is automated. Usually, these people also have several other projects and responsibilities and as a result need to prioritize. Believe it or not, the open source world is rather... understaffed, as it were. So there is not really much that can be done about that situation. (Though you, I, and all the thousands of others surely appreciate the hard work of the team of people who work on this.)

The drivers need to be tested - Like all other software, the nVidia drivers not only need to be packaged, but also tested before being put forward to the repositories.

Now, to provide a solution for you:
You can use the nVidia proprietary "blob" from their download server, rather than the version from Ubuntu's repositories. It comes with a feature that automatically detects and installs the latest and greatest driver version:
./NVIDIA-Linux-x86-319.49.run -a --update -X --no-runlevel-check -q

Or, if you just want to check for the latest version:
./NVIDIA-Linux-x86-319.49.run -l

Perhaps a script could be created from this, for example "every day, check to see if there is a new version available, and if there is, tell the user to run the utility"...
Or, you could just check the server every week or so, if this is really that important to you.


Compiz runs almost at 100% and the system is slow, what can I do?

To narrow down the likely sources of problems, create a new user (System/Administration/Users and Groups) and log in as that new user. If it works, the original problem is related to your user configuration - your compiz settings, perhaps. If it's still broken, it's a system-wide problem and presumably related to an update or something else that changed in the system. You could check what updates, if any, you installed lately.


That's because you have used relative paths in your script:

duplicity ../learningbash file://../../../media/kingston

This is working from terminal because you were in the correct directory where you should be to interpret the relative paths correctly.

cron of an individual user sets the user's home directory as PWD.

To solve the issue, use absolute path e.g.:

duplicity /bar/learningbash file:///foo/bar/media/kingston


My laptop (Acer E15-511-P7UX) stopped responding in Ubuntu 16.04

How old is the laptop? Have you ever cleaned it? People tend to forget that dust does enter inside laptops. I think that, before posting any software-relate question here, you should run an errand to the service and ask for a general check for your device. It may need undusting, fans may need to be oiled. Only after eliminating any hardware-related suspicions, you can look elsewhere for your solution.

Also, check on Acer Forum. It may help you: community.acer.com/t5/Discussion-Forums/ct-p/boards

(I've decided to move my comment on the "Answers" section, as it is more adequate here.)


You have run some GUI application that has taken ownership of files in your personal area.  The login manager isn't working because it doesn't have sufficient permission for the configuration files.

You can retake ownership of the files in your personal space by running this command:

$ sudo chown -R $(whoami):$(whoami) ~/

After running this command, you won't have any problems logging in.

Also insure the integrity of your login manager.  You can do this by installing lightdm with:

$ sudo apt install lightdm

At the command configuration prompt select Lightdm.

You can toggle between the Lightdm login manager and the Gnome login manager with this command:

$ sudo dpkg-reconfigure lightdm


Why would you ask about neogrub and settings on Ubuntu forum ?

Is neogrub part of Ubuntu ?

Moreover neogrub is a pirated version of grub4dos as it does not comply to GPL !

Please supply link to source code of neogrub and your question will be answered.


You should be able to edit (or create if it doesn't exist) the file /etc/pm/config.d/module and add the following content:

SLEEP_MODULE=uswsusp

As well as the file /etc/pm/config.d/defaults with the following content:

S2RAM_OPTS="-f"

All suspend functions should now work using s2ram.

Reference


Post dual install, How to view the files on c:/ drive?

Here is a post with info about your windows partition:
Using a Windows partition

If you are just playing around and either don't have lots of video/sound files, you'll be fine with 10GB IMHO.

As to how to increase the space you have allocated- that depends on how you installed it, WUBI, VirtualBox or dual boot.


Please backup (copy) all important files from the card before you start repairing it.
You can analyze the problem according to this link,

Analysis of the problem

I hope you will be able to make the card writeable again by removing some data in the first mibibyte, that make the write tool unwilling to work. Otherwise you will at least understand what is wrong and why the card is read-only (for example that it is 'gridlocked'.)

There could be other problems too, for example 'mounting problems' that might be fixed according to the following link,

Mount NTFS partition in a USB drive with custom permissions and owner

If there is an exFAT file system, the following link may help you manage it in Ubuntu,

Problem: FAT32 has a 4GiB limit for file size - scroll down to More about exFAT


Ubuntu 16.04 Bluetooth Can't find devices

You can use this:

sudo bccmd psset -s 0x0000 0x028c 0x0001

And:

sudo service bluetooth restart


Recording audio output from phone with Audacity and AUX cable

The problem was high input level, after I lowered it from: System Settings > Sound > Input > (Set Input Volume to Unamplified), the noise was gone.
See the noise before and after:plot


first you need to update the package list.

sudo apt-get update

and then you can use the apt to install kmplayer

sudo apt-get install kmplayer

if you still unable to get it. Then you have to enable canonical and universal repository in the updates and execute the above two commands.


Openbox commands to use the media keys (play, stop, next, prev) in Spotify

I worked it out installing mdbus2 and using its commands as it is explained here:

Keyboard play/stop/next/prev buttons does not work with Spotify

Best,


You need to remove the nomodeset option from GRUB's config.


How to install a Brother dcp-135c printer?

I have also a Brother printer (DCP-series) and it only started working after i installed  the Brother drivers. Have you tried that? If not, here's what it takes:

Here you can find the driver for your printer (download the 2 .deb files).
Open a terminal (Ctrl+Alt+T)
If you are using a 64bit system, you have to install ia32-libs

sudo apt-get install ia32-libs

After that just double click in each of the .deb files you downloaded and install it using Software Center. This should make your printer work (if not try restarting the system). Also, you can find a more complete guide here.


open in terminal is not working after upgrading to 19.10

First launch terminal go to Edit -> Profile Preferences -> Command and uncheck the option saying Run a custom command instead of my shell. It will not working with Desktop, but if you're browsing the Desktop as a folder inside nautilus, it will works fine.


How can I simultaneously extract files from .tar files and send them to the same directory?

cat *.tar | tar -xvf - -i

Run the above command from inside the folders which hold the tar files.


Bind character keys to command in Mplayer

The quick answer is no, however you can edit the source code or make a feature request.

The mplayer documentation says this:

  You can get a full list of supported key names by running mplayer -input keylist and a full list of available commands by running mplayer -input cmdlist.

In my computer mplayer -input keylist returns this:

SPACE
SHARP
ENTER
TAB
CTRL
BS
DEL
INS
HOME
END
PGUP
PGDWN
ESC
RIGHT
LEFT
DOWN
UP
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
KP0
KP1
KP2
KP3
KP4
KP5
KP6
KP7
KP8
KP9
KP_DEL
KP_DEC
KP_INS
KP_ENTER
MOUSE_BTN0
MOUSE_BTN1
MOUSE_BTN2
MOUSE_BTN3
MOUSE_BTN4
MOUSE_BTN5
MOUSE_BTN6
MOUSE_BTN7
MOUSE_BTN8
MOUSE_BTN9
MOUSE_BTN10
MOUSE_BTN11
MOUSE_BTN12
MOUSE_BTN13
MOUSE_BTN14
MOUSE_BTN15
MOUSE_BTN16
MOUSE_BTN17
MOUSE_BTN18
MOUSE_BTN19
MOUSE_BTN0_DBL
MOUSE_BTN1_DBL
MOUSE_BTN2_DBL
MOUSE_BTN3_DBL
MOUSE_BTN4_DBL
MOUSE_BTN5_DBL
MOUSE_BTN6_DBL
MOUSE_BTN7_DBL
MOUSE_BTN8_DBL
MOUSE_BTN9_DBL
MOUSE_BTN10_DBL
MOUSE_BTN11_DBL
MOUSE_BTN12_DBL
MOUSE_BTN13_DBL
MOUSE_BTN14_DBL
MOUSE_BTN15_DBL
MOUSE_BTN16_DBL
MOUSE_BTN17_DBL
MOUSE_BTN18_DBL
MOUSE_BTN19_DBL
JOY_UP
JOY_DOWN
JOY_LEFT
JOY_RIGHT
JOY_AXIS0_PLUS
JOY_AXIS0_MINUS
JOY_AXIS1_PLUS
JOY_AXIS1_MINUS
JOY_AXIS2_PLUS
JOY_AXIS2_MINUS
JOY_AXIS3_PLUS
JOY_AXIS3_MINUS
JOY_AXIS4_PLUS
JOY_AXIS4_MINUS
JOY_AXIS5_PLUS
JOY_AXIS5_MINUS
JOY_AXIS6_PLUS
JOY_AXIS6_MINUS
JOY_AXIS7_PLUS
JOY_AXIS7_MINUS
JOY_AXIS8_PLUS
JOY_AXIS8_MINUS
JOY_AXIS9_PLUS
JOY_AXIS9_MINUS
JOY_BTN0
JOY_BTN1
JOY_BTN2
JOY_BTN3
JOY_BTN4
JOY_BTN5
JOY_BTN6
JOY_BTN7
JOY_BTN8
JOY_BTN9
AR_PLAY
AR_PLAY_HOLD
AR_NEXT
AR_NEXT_HOLD
AR_PREV
AR_PREV_HOLD
AR_MENU
AR_MENU_HOLD
AR_VUP
AR_VDOWN
POWER
MENU
PLAY
PAUSE
PLAYPAUSE
STOP
FORWARD
REWIND
NEXT
PREV
VOLUME_UP
VOLUME_DOWN
MUTE
XF86_PAUSE
XF86_STOP
XF86_PREV
XF86_NEXT
CLOSE_WIN

Source: http://www.mplayerhq.hu/DOCS/HTML/en/control.html


The text below has been taken from the OP's question and posted as an answer.

Installing cpufrequtils with

sudo apt-get install cpufrequtils

should lower the temperature, and improve battery life.

Even after this, it may stay at 70°C and occasionally surge to above 90°C which is quite bad for the hardware.

My final solution was to use thinkfan, to control the fan better. It now works perfectly.


What does ClamAV do with Google's Safe Browsing?

According to https://github.com/vrtadmin/clamav-faq/blob/master/faq/faq-safebrowsing.md

  Safebrowsing ClamAV 0.95 introduced support for Google Safe Browsing
  database. The database is packed inside a CVD file and distributed
  through our mirror network. This feature is disabled by default on all
  installations and should be enabled with extreme care.

  All signatures provided by Google Safe Browsing Database will be
  prefixed with the Safebrowsing tag. If ClamAV reports
  Safebrowsing. FOUND, it means that the advisory was
  provided by Google and not by ClamAV Virus database.

  Please note that such reports DO NOT necessarily mean that the data
  scanned contains some malware. You should treat such data as a
  potential risk, that is a suspicious source of malware.

  If you want to know more about the potentially dangerous data matched
  by the signature, you should visit http://www.antiphishing.org (for
  phishing warnings) or http://www.stopbadware.org (for malware
  warnings).

  In order to enable this feature, you must add SafeBrowsing Yes to
  freshclam.conf . There is no option in clamd.conf. If the engine finds
  Google Safe Browsing files in the database directory, ClamAV will
  enable safe browsing. To turn it off you need to update freshclam.conf
  and remove the safebrowsing files from the database directory before
  restarting clamd.


There is a ppa for Python 2.7.10 which is relatively new. Please, read description here:

https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes-python2.7

Add PPA repository

sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7

Update package list

sudo apt-get update

Then Install it

sudo apt-get install python2.7


Script to Notify me when something happens on a shared directory

OK, first install inotify:

sudo apt-get install inotify-tools

Then make a new script on your computer named whatever you want (filename.sh) and paste in:

#! /bin/bash

folder=~/random/test

inotifywait -m -q -e delete -e create -e move -e modify -r --format '%:e %w%f' $folder | while read file
  do
    zenity  --title="Modifaction" --text "$file" --info&
  done

Modify the folder to the one you want, save, and then exit.

Make the file executable:

chmod +x filename.sh

And then you should be ready to rock.


novice Ubuntu-user: beginners assistance

Ubuntu (as any other Linux distribution (Linux is the kernel, a distribution provides a working environment based mostly on other open source applications)) would work well on this PC, especially when you add the SSD. But of course "good performance" is always a little bit subjective, so just try it out. To make things easy start a new installation of Ubuntu on the new SSD, you can then copy any important files via a 2.5" harddisk USB adapter. When you have transfered your files use this HDD for backup.

For web browsing you can install chrome or firefox via the Ubuntu Software Center. For email you can use thunderbird. Linux and Open Source is about freedom so choose the applications that suit your needs at best.

If you discover issues with your hardware you can open a command line (= terminal or console) and you'll get hardware information via the commands lshw, lspci, lsusb. You can then google for help on driver settings or similar.


connect to internet through 3g dongle in ubuntu server

There is an answer here on how to connect via mobile broadband using the network manager through the terminal: How to enable/disable mobile broadband from terminal?.

Network manager doesn't come with Ubuntu server as most server installs just have static IPs set on startup by configuration in /etc/networking/interfaces so you'll have to install it.

However, I am questioning why you would do this. I assume you are installing Ubuntu server to actually run a server that can be accessed from the web.  Since most if not all mobile broadband providers run carrier-grade NAT, you will not have a publicly routable address under your control and thus no one  will be able to access your server.


Is my hardware configuration enough for Ubuntu 64 bit?

I have the same question, but  I can say to you that I installed Ubuntu 14.04 64bits version on my PC with acceptable behavior.

This is my hardware configuration

Memory:  2.9 GiB

Procesador:   Intel® Core™2 Duo CPU E4600 @ 2.40GHz × 2

Graphic card:  GeForce GT 610/PCIe/SSE2

What is the behavior of you laptop?


CUDA 9.1 install on Ubuntu 18.04 on an online Google VM

The installer is looking for a file at ${source-path}/include/linux/version.h

If I do a search for version.h at /usr/src/linux-source-4.15.0, this is what I get:

$ find /usr/src/linux-source-4.15.0/ -name 'version.h'
./linux-source-4.15.0/ubuntu/vbox/vboxguest/include/VBox/version.h
./linux-source-4.15.0/arch/x86/math-emu/version.h
./linux-source-4.15.0/drivers/net/ethernet/chelsio/cxgb3/version.h
./linux-source-4.15.0/drivers/net/wireless/ath/carl9170/version.h
./linux-source-4.15.0/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_system/hrt/version.h
./linux-source-4.15.0/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2400_system/hrt/version.h
./linux-source-4.15.0/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/hrt/version.h
./linux-source-4.15.0/include/uapi/linux/dvb/version.h
./linux-source-4.15.0/include/xen/interface/version.h

So it's not there. :-(

According to the Ubuntu packages directory, the file does exist with that partial path in the linux-libc-dev package.

Try installing that and then specifying the source-path as /usr.


Can I make audio with only one stereo channel play through both speakers?

It will depend very much on what video playback application you are using. This is very easy to accomplish using mplayer, for example:

$ mplayer some_file.avi -af channels=1


Ubuntu requires a lot of resources these days. 1 GB of RAM is nearly not enough anymore to run stock Ubuntu.

Your options could be to:

Install another variant of Ubuntu like Xubuntu.
Remove Unity from your Ubuntu and install a light weight Desktop Environment like Openbox
Install another distro that is light weigh.
Try to tweak down Unity. You could install CompizConfig from Ubuntu Software Center and disable all the fancy desktop effects.


Why I can't use my Nvidia video driver with Gnome-Shell?

I use the same video card and had to blacklist the nouveau driver when installing the nvidia_current driver via jockey.

See here for advice: blacklist nouveau

Hint: After installing nvidia_current, jockey still says it is not in use. This is a jockey bug. You can ignore it.


Blank screen after click option (Install Ubuntu, Try Ubuntu without Installing, etc.) on Ubuntu Installing Grub (Ubuntu 19.04)

It seems like an a bug in microcode_ctl . This is a package which contains both processor ‘microcode’ updates and a loader for such updates, for Intel processors.

There are three possible solutions for it.

You can add dis_ucode_ldr to the kernel parameters to boot into the kernel, and then make it persistent once in by adding it  to /etc/default/grub then update-grub.
You can boot using the above method once then roll back to a previous version of the microcode package and mark it down, using the following commands

sudo apt install intel-microcode=3.20180312.0~ubuntu18.04.1

Then hold the package:

sudo apt-mark hold intel-microcode=3.20180312.0~ubuntu18.04.1

You can update the bios to a version where this issue is fixed. Updating the BIOS is the most recommended and foolproof option in my opinion since it addresses the root cause of the problem. You can find instruction on how to update the BIOS below.

https://www.asus.com/support/FAQ/1008859/

All three solutions worked for me on ASUS Zenbook UX433FN, when I tried them once after the other. I hope it helps you out.


How can I take a full page screenshot of a webpage from the command line?

Here a list of applications that you can use from terminal:

wkhtmltopdf (source)

wkhtmltopdf is a command line utility that converts html to pdf using webkit rendering engine.

sudo apt-get install wkhtmltopdf

wkhtmltoimage (source)

The wkhtmltoimage utility shall take the screenshot of a given url, and save it as a png image. It uses the webkit rendering engine.

Download :
http://code.google.com/p/wkhtmltopdf/downloads/list

Usage :

To use the wkthmltoimage utility simple run the command from terminal, giving the url and the name for the image file.

$ ./wkhtmltoimage-amd64 http://www.google.com google.png

It will create google.png in home directory with the screenshot of www.google.com

Other options :

wkhtmltoimage provides many options to customise the screenshot. Some examples are as follows :

Quality - Controls the quality/compression of the generation image. Default is 94

$ ./wkhtmltoimage-amd64 --quality 50 http://www.google.com google.png

Disable images

$ ./wkhtmltoimage-amd64 --no-images http://www.google.com google.png

Disable javascript

$ ./wkhtmltoimage-amd64 --disable-javascript http://www.google.com google.png

Crop the screenshot

$ ./wkhtmltoimage-amd64 --crop-h 300 --crop-w 300 --crop-x 0 --crop-y 0 http://www.google.com googl

cutycapt (source)

Cutycapt is a utility to take the screenshot of a url, using the webkit rendering engine and save it to an image file.

Install

sudo apt-get install subversion libqt4-webkit libqt4-dev g++ cutycapt

Usage
To use cutycapt, simply run the command from the terminal, providing the url and the name for the output file.

$ cutycapt --url=http://www.google.com/ --out=google.png

It will create google.png file in home directory which would have the screenshot of www.google.com

khtml2png (source)

khtml2png uses the konqueror rendering engine to create screenshots of web pages.

Download

http://khtml2png.sourceforge.net/index.php?page=download

Install

To install khtml2png, the program has to be compiled and build on the system.

sudo apt-get install kdelibs4-dev zlib1g-dev g++ cmake
Extract the khtml2png archive.
./configure
make
sudo checkinstall (this will create a deb file and install it , so that it can easily uninstalled later)

Usage
To use khtml2png run the program from commandline providing the url and other options.

$ khtml2png2 --width 800 --height 600 http://www.google.com/ google.png

This would create a google.png in home directory with the screenshot of www.google.com.

PyWebShot (source)

Pywebshot uses python bindings embedded mozilla ( http://www.mozilla.org/unix/gtk-embedding.html )

Install

sudo apt-get install python-gtkmozembed

Download pywebshot from https://github.com/coderholic/PyWebShot

Usage :

$ python pywebshot.py www.google.com -t 1024x768&lt;br /&gt;<br />Loading www.google.com... saved as www.google.com.png

It should create a www.google.com.png in the directory which has the screenshot of size 1024 x 768.


screen command “No space left on device”

You could create a symbolic link for /var/run/screen, and have it point to another directory on a bigger disk partition.

For example, say you have a lot of room on /home/foo (use the 'df' command to find out how much space is available on a filesystem).

You could:
rm -rf /var/run/screen;
mkdir /home/foo/screen;
ln -s /home/foo/screen /var/run/screen

then, when screen(1) is run, it will put its files in /home/foo/screen

see the ln(1) man page for more information