Nautilus (11.10), getting the old icon-list-small menu back on panel?

About Cinnamon and features that you might like.

It is level up from the classic gnome, much better in my opinion.

You get normal desktop bars, very nicely configurable.
It has Nemo instead of Nautilus, they are quite similar and will guive you that list menu you are looking for;
Menus don't have the same look but the structure is close from the classic one you areused to;
One down point is that compiz will not work, although some of the desktop related features are automatically implemented. The feature that I miss the most is the grid;
Applets and screenlets are  available online and easy to install, just copy past folder;
You can configure almost everything by right clicking on it.

Here is a review about it,
http://www.dedoimedo.com/computers/ubuntu-cinnamon.html


Why don't applications opened as root use global menu?

For an application to use the global menu the environment variable $UBUNTU_MENUPROXY needs to be set to to the name of the menuproxy library to be used. For security reasons this variable is cleared when using sudo etc. to run a program as root.

As a side effect this indicates which programs are run as root, otherwise it may be not always clear that the items in the global menu belong to a program running as root.

As this are good reasons for the current behaviour I don't expect it to be changed.


You need to recover your GRUB, Windows overrides the bootloader when you install it after Ubuntu. You can find a Tutorial here:
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows


irc.freenode.com and irc.ubuntu.com refer to the same collection of irc servers. They are both CNAMEs (DNS aliases) for chat.freenode.net. The current setup is as following

andreas@stilgar:~$ host irc.freenode.com
irc.freenode.com is an alias for chat.freenode.com.
chat.freenode.com is an alias for chat.freenode.net.
chat.freenode.net has address 93.152.160.101
chat.freenode.net has address 82.96.64.4
chat.freenode.net has address 208.82.117.76
chat.freenode.net has address 213.92.8.4
chat.freenode.net has address 213.232.93.3
chat.freenode.net has address 130.239.18.172
chat.freenode.net has address 38.229.70.20
chat.freenode.net has address 84.240.3.129
chat.freenode.net has address 89.16.176.16
chat.freenode.net has address 130.237.188.200
chat.freenode.net has address 94.125.182.252
chat.freenode.net has address 50.22.136.18
chat.freenode.net has address 78.40.125.4
chat.freenode.net has address 140.211.167.98
chat.freenode.net has address 140.211.167.99
chat.freenode.net has address 216.155.130.130
chat.freenode.net has address 86.65.39.15
chat.freenode.net has address 213.179.58.83
chat.freenode.net has IPv6 address 2001:19f0:feee::dead:beef:cafe
chat.freenode.net has IPv6 address 2a03:280:0:1::1
chat.freenode.net has IPv6 address 2001:1418:13:1::25
chat.freenode.net has IPv6 address 2a02:2498:3a3:1b96::1
chat.freenode.net has IPv6 address 2001:820:2::6
chat.freenode.net has IPv6 address 2001:6b0:5:1688::200
chat.freenode.net has IPv6 address 2001:6b0:e:2018::172
andreas@stilgar:~$ host irc.ubuntu.com
irc.ubuntu.com is an alias for chat.freenode.net.
chat.freenode.net has address 213.232.93.3
chat.freenode.net has address 94.125.182.252
chat.freenode.net has address 140.211.167.98
chat.freenode.net has address 208.82.117.76
chat.freenode.net has address 216.155.130.130
chat.freenode.net has address 78.40.125.4
chat.freenode.net has address 140.211.167.99
chat.freenode.net has address 50.22.136.18
chat.freenode.net has address 213.92.8.4
chat.freenode.net has address 130.237.188.200
chat.freenode.net has address 84.240.3.129
chat.freenode.net has address 89.16.176.16
chat.freenode.net has address 82.96.64.4
chat.freenode.net has address 213.179.58.83
chat.freenode.net has address 86.65.39.15
chat.freenode.net has address 130.239.18.172
chat.freenode.net has address 38.229.70.20
chat.freenode.net has address 93.152.160.101
chat.freenode.net has IPv6 address 2a02:2498:3a3:1b96::1
chat.freenode.net has IPv6 address 2001:6b0:e:2018::172
chat.freenode.net has IPv6 address 2001:6b0:5:1688::200
chat.freenode.net has IPv6 address 2001:19f0:feee::dead:beef:cafe
chat.freenode.net has IPv6 address 2001:820:2::6
chat.freenode.net has IPv6 address 2001:1418:13:1::25
chat.freenode.net has IPv6 address 2a03:280:0:1::1
andreas@stilgar:~$


IR camera not working in Ubuntu with Howdy "No suitable IR camera found, aborting install"

Many device access problems can be resolved through group membership changes.
Specifically, if ls -l  shows that the group permissions (the second "rwx" triplet) is "rw" (e.g."-rw-rw----"), then, adding oneself to the group that owns the device will grant rw access.
Here's how:
device="/dev/whatever"
sudo adduser $USER $(stat -c "%G" $device)

This allows you membership in the group that can rw the device, but there is one more step.
To make all your processes members of the new group, logout and login. Group memberships are set up at login time.
To create a single process in the new group (for testing, prior to logout/login):
newgrp $(stat -c "%G" $device)

or, just type the group name. See man newgrp.


Is it normal for Software & Updates to always show I'm up to date?

This is often to be expected, especially if updates are being installed automatically behind the scenes (which you can configure in the Software Updater). And sometimes, a month or more goes by without any updates being released.
Why does so much time sometimes pass with no new updates? With default settings, it is intended that users of stable releases only get updates for security bugs and serious stability/usability bugs; in Ubuntu, updates to provide new features are not typically rolled out after the end of a release's beta phase.
It's a good idea to check to make sure updates are working properly on your system, though.
Check Your Update Settings
To check your settings, run the Software Updater [Update Manager for people using old versions of Ubuntu] and click Settings.... You might have to wait for it to automatically check for updates, before being able to do that.

The Software & Updates window is shown (called some different things on some other versions of Ubuntu). Under "Install updates from:", there are checkboxes for the different kinds of updates that can be installed. At least "Important security updates" should be checked, and you probably want "Recommended updates" as well.
Under that, you can choose how often to check automatically for updates, what to do when new security updates are found, and what to do when other (non-security) updates are found. If you have something relatively frequent chosen for "Automatically check for updates" and you have "Download and install automatically" chosen for "When there are security updates:", then most likely any important security updates are being installed behind the scenes for you.
But if you have "Never" selected for "Automatically check for updates," then you're not getting updates installed or even checked for automatically.

After making sure your settings are however you want them, click Close. Then I recommend checked your Ubuntu's systems record of what updates have been installed recently. That should answer the question as to whether or not you're getting updates.
Checking If Updates Are Being Installed
If your settings look good, then you should check to see if the updates you'd expect to get are really being installed automatically.
To see when updates were last installed, you may be able to see a list of everything installed recently (including updates) in the Software Center.
Or you can look at the package manager's logs, especially history.log in the /var/log/apt folder. You can view that file by double-clicking on it in Nautilus (the graphical file browser), or in the Terminal with:
less /var/log/apt/history.log

If the file is empty, there's still typically no need to worry; in that case, look at history.log.1.gz, the most recently "old" log. To examine it graphically, you can double-click it, drag the .log file inside anywhere (e.g. the desktop), and double-click the extracted file (since a .gz file is compressed).
Or you can easily view it in the Terminal with:
zless /var/log/apt/history.log.1.gz

If the dates in the log(s) show updates installed in the last couple of months, then most likely everything is fine.
If they do not, then maybe something isn't working. In that case, please edit your question to include the full contents of sources.list in the /etc/apt folder. You can view that graphically, or have its contents shown on (and copyable from) the Terminal with:
cat /etc/apt/sources.list

(For readers with this or a similar problem other than the poster of this question, of course you shouldn't edit this question. Instead, you should post your own question, fully describing your situation; you can include the contents of that file in your question.)


You can modify your .bashrc as follow:

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;$(tty | cut -d/ -f3,4) | ${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

Now new gnome-terminal will look like this:

Note that gnome-terminal uses Pseudo-Terminals, see What does "pts/" in the output of w mean?


Can I make a 'Virtualbox' Guest OS see and use directories and files from the Host OS?

Share a folder through guest configuration.

http://www.virtualbox.org/manual/ch04.html#sharedfolders

That should do the trick


How do i make my existing ubuntu in a bootable installation CD? I tried remastersys but fails with 11.10

Another two possibilities:

Relinux (a fork of Remastersys).

Or, what I do to clone a machine, is copy the entire disk with CloneZilla and clone the disk. Ubuntu is good at automatically reconfiguring when it finds itself on new hardware. There is one change you would have to make in three different files on each machine that you have cloned:

Change the computer name in /etc/hostname, /etc/hosts and /etc/samba/smb.conf (otherwise you will have conflicts on the network).


I just moved the close/minimize/maxmize buttons to the right, how can I undo the action?

gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:'


Ubuntu installation succeeded, but HDD boot option disappeared from BIOS

Your problem is mostly related to the bootloader rather than the HDD itself

To fix that, boot into your Ubuntu Live-usb and from there do this

open the terminal by pressing ctrl+alt+T

then copy past this commands to it one after another,

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

and by this you will install a tool called boot-repair.

open boot repair from Dash and you'll get this window

choose the recommended repair and follow the steps.

Note you have to be connected to the Internet when using boot-repair.

Note it can take some time, be patient


Both Thunderbird and emacs throw d-bus errors unless sudoed (X OK!)

I fixed this by installing dbus-x11  (Click to install)

or

sudo apt-get install dbus-x11


"Can I install Ubuntu touch on any tablet?"

No

  "I don't see any reason why it wouldn't work with any device."

There are a myriad of reasons, like different screens, chips, RAM etc, the same reasons you must have Android built for that specific device, not just any old Android rom.

  "Is it risky? Does it work? If not, why?"

Yes it is, there is the same risks as flashing anything, bootloop, brick etc... See answer above for the why.

  "Why is there no instruction on Ubuntu's website about how to install
  touch on a tablet?"

There are

  "And more generally, is it or not possible to install Ubuntu touch on
  any device? If not, will it ever be?"

It will never be possible to just install on any device, not all devices are created equally and compatibility is a big issue. More devices will get support in the future but never everything.

Although, if you have exceptional programming skills, you could in theory port it to any device but it would be a lot of work.

Info on porting touch to your device and currently supported devices, plus 3rd party roms on XDA.


the most easy way is to use gparted on a live usb or DVD. to resize a partition you need to unmount and since you cannot unmount your root partition you cannot do it from your normal Ubuntu install. in the answer to this question is a quick overview how to use gparted.


First you need to download that directory to your home folder and add it again:

sudo dkms add ./<directory_name>
sudo dkms install <module_name>/<version>

You can find the module name and version in dkms.conf file.

You can install same driver from another source

git clone https://github.com/lwfinger/rtl8192cu.git
sudo dkms add ./rtl8192cu
sudo dkms install rtl8192cu/0.1

But you need to make sure that rtl8192cu is not blacklisted in /etc/modprobe.d by the previous driver.


1: The file (actually a symbolic link) /etc/resolve.conf should be named /etc/resolv.conf.  Make sure it is a symbolic link to ../run/resolvconf/resolv.conf.

2: Disable the NetworkManager-controlled local forwarding nameserver. Edit NetworkManager.conf

sudo gedit /etc/NetworkManager/NetworkManager.conf

and comment out the line dns=dnsmasq

#dns=dnsmasq

and then restart NetworkManager.

sudo restart network-manager

Ref: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1003842


How to enable Ubuntu Classic and Compiz-Config?

These are many questions and should really be asked as such. But I'll provide a generic answer anyway.

There are heavy underlying changes in 11.10, following the switch to Gnome 3. Theming has become much easier, because it's now just CSS, which is the same as all websites use to define looks. This means that a lot more people will be able to make themes, so we should expect to see some dashing ones in the future. Unfortunately, this also means that old themes do not work.

Themes are just one of many things that have been upgraded in Gnome 3 and hence Ubuntu 11.10. The configuration system itself is one of them, meaning that some settings are no longer available and that new ones have been added. Startup applications is one area that have been changed to become more user friendly. Applications can choose if they should appear in the list or not, for instance. This reduces unnecessary clutter.

This is a large upgrade, much bigger than anything in Ubuntus history. In fact, there's been no change like this for over ten years, in case you joined Ubuntu in 11.04 and think it's a little unsettling with so big changes. They happen very rarely, and you can expect to not see changes like this for many years. It has been very important to get this done now because of the LTS version that is scheduled for April and will be supported for a long time and sold with new computers, etc. Because of that, some thing may be a little unpolished and there are some rough edges still. The good thing is that all the technology is now in place, and now it's time to polish and fix minor issues.


Sound do not work and sound test fail HP notebook

This issue is solved after killing the pulseaudio using following command

killall pulseaudio
rm -r ~/.config/pulse/*
rm -r ~/.pulse*

I followed the SoundTroubleshootingProcedure in the ubuntu site for it. Thanks for all the directions.


How to Install Microsoft SQL Server in Ubuntu

Microsoft have a set of instructions and link to their PPA at https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu for installing MSSQL on a Ubuntu system.
The instructions dont work so well with 17.04, but haven't run into problems with 16.04 (I've installed it on 3 servers at the office.)

Update:
Yeah, the terminal isn't the easiest to getting to know your way around. Stick with it, the more you use it - the easier it gets.

I've used a couple of editors in Ubuntu to connect with MSSQL databases that are straightforward to install.
Atom.io is a generally useful editor with a good selection of SQL packages available to install.
Microsoft's Visual Code code has quite a few useful SQL connection and query extensions available too.

HTH


How to automatically reposition my-weather-indicator desktop widgets for external monitor

Here is a sample startup script

that can be entered into the Exec= line of ~/.config/autostart/my-weather-indicator.desktop file instead of the command /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator:

#!/bin/bash

while true
do
    MONITORS="$(xrandr | grep -v "eDP1 " | grep -c " connected ")"
    if [[ "$MONITORS" -eq 0 ]]                              # no external monitor, LCD panel only
    then
        MONINTX="$(xrandr | grep "eDP1 connected " | sed -e 's/^eDP1 connected primary //g' -e 's/x.*$//g')"
        MONINTV="$(expr $MONINTX - 316)"
        MONINT1="$(grep -c "\"wp1-x\": $MONINTV" "/home/$USER/.config/my-weather-indicator/my-weather-indicator.conf")"
        if  [[ "$MONINT1" -eq 0 ]]                          # widget1 not configured for LCD panel
        then
            sed -i "s/\"wp1\-x\"\: [0-9]*/\"wp1\-x\"\: $MONINTV/" "/home/$USER/.config/my-weather-indicator/my-weather-indicator.conf"
            echo "REFRESH" > "/tmp/my-weather-indicator_mon-int"
        fi
        MONINT2="$(grep -c "\"wp2-x\": $MONINTV" "/home/$USER/.config/my-weather-indicator/my-weather-indicator.conf")"
        if  [[ "$MONINT2" -eq 0 ]]                          # widget2 not configured for LCD panel
        then
            sed -i "s/\"wp2\-x\"\: [0-9]*/\"wp2\-x\"\: $MONINTV/" "/home/$USER/.config/my-weather-indicator/my-weather-indicator.conf"
            echo "REFRESH" > "/tmp/my-weather-indicator_mon-int"
        fi
        if [ -f "/tmp/my-weather-indicator_mon-int" ]       # marker file
        then
            if [ -s "/tmp/my-weather-indicator_mon-int" ]   # content
            then
                PID="$(ps -e -o pid,cmd | grep "/usr/bin/python3 /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator" | egrep -v grep | awk '{print$1}')"
                if [[ "$PID" -eq 0 ]]                       # not running, start
                then
                    rm "/tmp/my-weather-indicator_mon-int"
                    "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator" &
                else
                    kill -9 "$PID"                          # running, re-start
                    rm "/tmp/my-weather-indicator_mon-int"
                    "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator" &
                fi
            fi
        fi
    else                                                    # external monitor connected
        MONEXTX="$(xrandr | grep " connected " | grep -v "eDP1" | sed -e 's/^e*[A-Z]*[A-Z][A-Z][0-9] connected primary //g' -e 's/x.*$//g')"
        MONEXTV="$(expr $MONEXTX - 316)"
        MONEXT1="$(grep -c "\"wp1-x\": $MONEXTV" "/home/$USER/.config/my-weather-indicator/my-weather-indicator.conf")"
        if  [[ "$MONEXT1" -eq 0 ]]                          # widget1 not configured for external monitor
        then
            sed -i "s/\"wp1\-x\"\: [0-9]*/\"wp1\-x\"\: $MONEXTV/" "/home/$USER/.config/my-weather-indicator/my-weather-indicator.conf"
            echo "REFRESH" > "/tmp/my-weather-indicator_mon-ext"
        fi
        MONEXT2="$(grep -c "\"wp2-x\": $MONEXTV" "/home/$USER/.config/my-weather-indicator/my-weather-indicator.conf")"
        if  [[ "$MONEXT2" -eq 0 ]]                          # widget2 not configured for external monitor
        then
            sed -i "s/\"wp2\-x\"\: [0-9]*/\"wp2\-x\"\: $MONEXTV/" "/home/$USER/.config/my-weather-indicator/my-weather-indicator.conf"
            echo "REFRESH" > "/tmp/my-weather-indicator_mon-ext"
        fi
        if [ -f "/tmp/my-weather-indicator_mon-ext" ]       # marker file
        then
            if [ -s "/tmp/my-weather-indicator_mon-ext" ]   # content
            then
                PID="$(ps -e -o pid,cmd | grep "/usr/bin/python3 /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator" | egrep -v grep | awk '{print$1}')"
                if [[ "$PID" -eq 0 ]]                       # not running, start
                then
                    rm "/tmp/my-weather-indicator_mon-ext"
                    "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator" &
                else
                    kill -9 "$PID"                          # running, re-start
                    rm "/tmp/my-weather-indicator_mon-ext"
                    "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator" &
                fi
            fi
        fi
    fi
    PID="$(ps -e -o pid,cmd | grep "/usr/bin/python3 /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator" | egrep -v grep | awk '{print$1}')"
    if [[ "$PID" -eq 0 ]]                                   # not running, start
    then
        "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator" &
    fi
    sleep 12
done

CAUTION: This script has only been tested on a DELL Latitude laptop with 2 desktop widgets using the superclock theme, and might require some further fine-tuning, and it might be a good idea to check if the variables used here will also work in other systems by checking the terminal output of the command xrandr


Intel Core M underclocking at 10% battery

First of all install: The pm-utils package comes with scripts for managing low-power modes.

To install it:

sudo aptitude install pm-utils

From a Terminal you can do:

sudo pm-powersave false

to run in high-performance mode.

And to run in powersave mode:

sudo pm-powersave true


The problem was that the following packages were due to be updated:

➜  ~ sudo apt list --upgradable
Listing... Done
opendistro-alerting/stable 1.0.0.0-1 amd64 [upgradable from: 0.9.0.0-1]
opendistro-performance-analyzer/stable 1.0.0.0-1 amd64 [upgradable from: 0.9.0.0-1]
opendistro-security/stable 1.0.0.1-1 amd64 [upgradable from: 0.9.0.0-0]
opendistro-sql/stable 1.0.0.0-1 amd64 [upgradable from: 0.9.0.0-1]
opendistroforelasticsearch/stable 1.0.1-1 amd64 [upgradable from: 0.9.0-1]

Unfortunately, this could not happen in practice:

➜  ~ sudo apt install opendistro-alerting/stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
Selected version '1.0.0.0-1' (. stable:stable [amd64]) for 'opendistro-alerting'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 opendistro-alerting : Depends: elasticsearch-oss (= 7.0.1) but 6.7.1 is to be installed
E: Unable to correct problems, you have held broken packages.

I temporarily removed elasticsearch-oss and the opendistro- packages, and then do-release-upgrade worked as expected.


What are ways to detect running under windows 10 emulation?

The WSL faq does not show anything about identifying bash on windows.

Notable though:  Bash for Windows will have a mount point for the Windows devices. So when a ...

/mnt/c:

exists you are using bash on Windows (remark: that FAQ from Microsoft is probably wrong and it is /mnt/c and not /mnt/c:. Same applies for D: and other drive letters (that are disks).


Blinking visibility of icons in Lubuntu 14.04

It looks like that you have checked either by accident or intentionally "hide when not in use"  To see the LXPanel all of the time, right click an open space on the LXPanel.  Choose Panel Settings and then Advanced.  Untick minimize panel when not in use.  Close and you should be good to go.


How can I permanently disable the mounting of USB storage devices?

You can disable the use of all USB sockets via your Motherboard UEFI or BIOS.

Steps to do this:

Shutdown your system.
Start it up again and press F1 or F2 to go into your motherboard BIOS/UEFI. This process is to happen before Ubuntu even boots up.
Once in side search for section on USBs and disable them or the relevant one.
Save your new settings and quit (this will reboot your system and you can test if the USBs would still work or not).

Best to you.


Why few commands (eg: fdisk -l) do not inform user "you do not have privilege"?

Many of these commands are old, and for historical reasons, have been available to only systems administrators. While it is a good idea to use sudo over logging as root, many old applications that are not specifically made for just Ubuntu/Debian are not made aware of there being a sudo functionality. While it would be trivial to make such a change, it would require quite a bit of work for many programs, some very obscure or forgotten. It is best to use gpart or a GUI in lieu of fdisk now.


I managed to install Rethinkdb on Ubuntu 18.04 with the help of a project collaborator and locate on GitHub, which I think is necessary for Obionic and can install with dpkg -i,
and then following the steps that are normally followed for the compilation, which are described in the official Rethinkdb website:
https://rethinkdb.com/docs/install/ubuntu/
I leave the link of the site where I get the .deb file
https://github.com/srh/rethinkdb/releases/tag/v2.3.6.srh.1
  Thanks for the help given by all, which made me keep looking for a way to solve the problem, and it took me to GitHub, which was where I found a solution.
Thank you


Ubuntu 12.04 LTS not showing up in boot menu, Windows 8

If it is on a flash drive you need to press f12 (or your computer's equivalent) and select the usb to boot from it. Overall that is the easiest solution, as even just dual-booting normally with windows 8 has been a pain for a great many people.


We cannot test this due to lack of harware but it seems that the updated Voria Tools >2.0 support brightness control on NC110 (see this post on Voria forums). You can install the Voria tools by adding the following ppa to your sources:

ppa:voria/ppa

Please also read: What are PPAs and how do I use them?


How to get 640x480 Resolution using 12.04 and Intel card

I'm not sure you can...  however, making starcraft run at 1280x800 might be an easier choice.

High Res Patch for Starcraft


Is there a way I can install tomcat7 on Ubuntu 18.04?

Add the following lines to the bottom of your /etc/apt/sources.list file

deb http://us.archive.ubuntu.com/ubuntu/ xenial main
deb http://us.archive.ubuntu.com/ubuntu/ xenial universe

Then run

sudo apt-get update
sudo apt-get install tomcat7


XDG_RUNTIME_DIR not set in the environment

I was able to make it work, I just set the following environment variables on the script before calling the binary.

export XAUTHORITY=/var/run/lightdm/root/:0
export DISPLAY=:0

Please tell me if this is safe.


Uninstalling a eclipse manually (no package manager)

I suppose that you had installed eclipse by just extracting files . if this is the case then you can simply delete those extracted files .

if you ran some install.sh script and not finding uninstall.sh then type the following commands

whereis eclipse
which eclipse

By this you will get idea of where are files are installed and thus you can remove those file.if you are seeing orphan desktop entry of your software then read this

Also eclipse stores its configuration files in ~/.eclipse folder which you might want remove cause they can clash with eclipse installation from apt repos

EDIT:-

if environment variable are set in ~/.bashrc and ~/.profile and in some cases  /etc/environment . you can unset those


The standard Ubuntu NVidia drivers generate some problems on slightly older and slightly newer NVidia hardware.

If you want more then the standard Ubuntu repository drivers, install the xorg.edgers PPA.  As the xorg.edgers group ask not to give installation instructions directly without linking to their page, this is the best I can do.

If you don't know what a PPA is or need some guidance after reading their page, leave a comment below.


The new EA games cannot be found in the Software Center

The only thing the installation does is creating a shortcut to the games. The games are browsers games, so no installation is needed.

Here are the links:

Command and Conquer

Lord of Ultima


Just a note: grub2 does support hotkeys - although I haven't figured out how to add them using grub customizer (you could directly edit the custom script file in the proxifiedScripts folder - but that only provides access to non-linux menu entries and I'm not sure if those changes cause problems in grub customizer).

It's possible to directly edit grub.cfg (but the edit will be overwritten on the next grub-update cycle). For example, adding this text after the relevant menu entry in grub.cfg assigns the key "7" to boot into that menu item:

menuentry "Win7" --hotkey=7 --class windows --class os $menuentry_id_option 'osprober-chain`...


My laptop shuts down when I remove the charger

Your laptop shutting down when it's unplugged sounds like a battery issue. I've had the battery in my laptop burn out before as well and this is the symptom. Simply order a new battery from your manufacturer and you should be all set (also, eBay has lots of aftermarket batteries on the cheap).

The message you receive at boot could be two things:

1) You might be using an encrypted swap partition. If you don't know what this is then it's probably not the case (and it usually shows up as /dev/cryptswap1). This is the issue I get upon startup and it is because the swap partition is being wiped.

2) More likely, there is an invalid entry in your /etc/fstab file. At boot Linux attempts to mount all entries in the /etc/fstab file. Obviously, if it can't mount something it's going to produce an error similar to that. In order to remove the message, edit your /etc/fstab file (as root) and remove the line that contains /media/3936-3939 as it no longer exists due to being removed (it maybe be a flash drive, those 8-character UUID's are usually FAT32 disks), deleting the partition, reformatting the partition, etc.


How do I create a bootable Ubuntu USB using Trisquel?

Trisquel is sufficiently similar to Ubuntu that you can use essentially the same technique recommended for making an Ubuntu USB on a pre-existing Ubuntu system.

How to create a bootable USB stick on Ubuntu

Or you can use the Trisquel GNU/Linux instructions for writing a Trisquel ISO to a USB flash drive, but write the Ubuntu ISO image instead of a Trisquel ISO image:

How to Create a LiveUSB

The Ubuntu instructions say to search for Startup Disk Creator in the Unity dash. The Trisquel instructions say to run it from System Settings (in the GNOME Control Center).
If you don't use a GNOME-based desktop (includes Unity), you can run it directly by pressing Alt+F2, typing usb-creator-gtk, and pressing Enter.
If you're using KDE as your desktop environment, run usb-creator-kde instead.
usb-creator-gtk and usb-creator-kde are available for all versions of Trisquel GNU/Linux. If you don't have them, you can install them with the package manager--for example, in Add/Remove Applications. But they are installed by default; it's quite unlikely you don't have them.
Here's a summary of what to do once you have successfully launched the utility:

Then click Other, find the ISO image, and back on the main screen, select which device you want to write it to. (Be careful not to select the wrong one, as this overwrites whatever data are already there.) Click Make Startup Disk.

Or use the terminal-based instructions:
The CLI instructions there work too. As it says, run:
sudo dd if=/path/to/image.iso of=/dev/sdX bs=8M;sync

/path/to/image.iso should be replaced by the actual path. (One way to get this is to drag the ISO image into the terminal window from a file browser window or the desktop.)
X should be replaced by the letter (a, b, c, ...) representing the physical disk to which you are writing the image.
It is very important to avoid accidentally writing the image (or any part of it) to the wrong drive. Like on Ubuntu, when you run sudo dd ... in Trisquel GNU/Linux, there is no protection against a typo that could potentially cause substantial data loss. While an equivalent mistake using the GUI utility (explained above) is possible, the interface makes it somewhat less likely. If you're not already comfortable using the command-line, I recommend the GUI way instead.


Try xrandr --newmode 900p  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync

or

xrandr --addmode 900p  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync

Also related: Can I force VGA signal output even when xrandr shows 'disconnected'?

According to the Specifications for your screen.

Supported Computer Resolutions
1024 x 768 (XGA), 1152 x 864, 1360 x 768, 640 x 350, 640 x 480 (VGA), 720 x 400, 800 x 600 (SVGA)

You might find 1360x768 gives better results. (that's the resolution I use when using my TV as a monitor)

Source:

https://stackoverflow.com/questions/851704/xrandr-errors-badname-named-color-or-font-does-not-exist


Changing Ctrl-Win-Alt keys to Win-Alt-Ctrl

The OP answered the question and posted the solution in the question.

I ended up solving this problem by remapping Windows to Control and Caps Lock to Hyper in Keyboard Layout. I then used CCSM to remap the Unity dash key to Hyper. I also remapped things like Alt-Tab to Control-Tab (which is now physically Windows-Tab if you're still following) to get a more Mac-like experience. I no longer have a Windows key but after the CCSM remapping I have no use for one.


Write to existing Adobe PDF document,Ubuntu 18.04

Try libreoffice-writer
If comes default but in case you've deleted it, install it using sudo apt install libreoffice


Triple Boot Windows, Ubuntu, and Mac OS X ML on Macbook Pro (9,1)

You might be able to do it by not using BootCamp. Bootcamp uses the Mac's EFI Compatibility Support Mode that turns your disk from a GPT one to a hybrid MBR which brings with it a whole swag of problems (one of which you have discovered being the 4 partition limit - others include slow boot times, limited multi gpu support, limited partition sizes).

Your aim would be to install all 3 OS using EFI mode (so that the disk remains as a GPT). I have yet to see a guide that shows how to do it - maybe I need to write one.

To begin your project a good start is Rod's Books who has written a ton about EFI booting.


You can

Burn a boot DVD disk. Make sure to 'burn an iso file'. (Do not create a data DVD with the iso file.)
Create a boot USB drive. You can use mkusb-nox or mkusb-dus alias mkusb version 12. See these links,

help.ubuntu.com/community/mkusb/v7#Making_a_USB_drive_to_install_Windows

help.ubuntu.com/community/mkusb/12

help.ubuntu.com/community/mkusb/gui#Installation


How python finds its modules

Strictly taken, a module is a single python file, while a package is a folder containing python files, accompanied by a (can be empty) file named __init__.py, to tell python it is a package to import modules from. In both cases, modules need their .py extension, but importing them is done without (see further below).

By default, Python looks for its modules and packages in $PYTHONPATH.

To find out what is included in $PYTHONPATH, run the following code in python (3):

import sys
print(sys.path)

How to add a directory

Occasionally

From within a python file, you can add path(s) occasionally to the default path by adding the following lines in the head section of your python application or script:

import sys
sys.path.insert(0, "/path/to/your/package_or_module")

For example:

if I have a folder: /home/myname/pythonfiles, and I want to import the file module_1.py, located in that directory, I add this to the head section of my code:

import sys
sys.path.insert(0, "/home/myname/pythonfiles")

And I can simply import the file module_1.py by:

import module_1

When I create a package and want to import module(s) from the package, I need to create a folder in $PYTHONPATH, containing the modules, accompanied by a (can be empty) file called __init__.py

For example:

To import from a package (folder) called my_package in /home/myname/pythonfiles , add the /home/myname/pythonfiles path to your $PYTHONPATH, like in example 1, and import the module called module_2.py (inside the package folder) simply with: `

from <packagename> import module_2

Adding directories to $PYTHONPATH permanently:

Add the following line to your ~/.profile file.

export PYTHONPATH=$PYTHONPATH:/path/you/want/to/add

Subdirectories

From within a package, subdirectories are not included just like that; you need to "chain" the directories. To import a module module_3.py, inside folder subfolder inside folder packagename:

import packagename.subfolder.module_3

Given the fact that all subfolders in the package include their own __init__.py file.

When a module is in the same directory as the script or application

There is no need to insert the path to a module when it is in the same directory as the script or application, it is automatically added.

Example:

If I have a folder, containing script.py and module.py, I can simply import the module by:

import module


Can't log in: Can I get files using tty1?

Sudo apt-get install, but i had something like you have now in the past. Did it happened while you where running a update and the screen locked by automatic screenlocker? That was what happened to me, and had the same problem, but i did run the update again in tty and problem was solved. Maybe it works also with you.


shell script to move a set of folders into one folder and timestamp it

mv command has -t flag , synonym for --target-directory=DIRNAME.

 -t, --target-directory=DIRECTORY
              move all SOURCE arguments into DIRECTORY

Basic idea is that you can specify destination to all the items, like so: mv -t DESTINATION ITEM1 ITEM2  ITEM3. . .

So the two step process would be create the Main timestamped directory  Main_$DATE and then mv all the folders you want. Like so,

xieerqi@eagle:~/testdir$ DATE=$(date +%Y%m%d_%H%M%S)
xieerqi@eagle:~/testdir$ mkdir Main_$DATE
xieerqi@eagle:~/testdir$ ls
20161  20162  20163  Main_20160109_114336
xieerqi@eagle:~/testdir$ mv -t Main_20160109_114336/ 20161/ 20162/ 20163/
xieerqi@eagle:~/testdir$ ls
Main_20160109_114336
xieerqi@eagle:~/testdir$ ls Main_20160109_114336/
20161  20162  20163

Of course you could put everything into a small script or even a bash function inside .bashrc. Something like

function collectStuff
{
  CENTRALDIR="/home/sina/Desktop/Recordings"
  DATE=$(date +%Y%m%d_%H%M%S)

  MAIN="$CENTRALDIR"/"Main_$DATE"
   mv -t "$MAIN"  "$@"

}

"$@" will expand all the command line argumens, so that way you could run something like collectStuff dirname1 dirname2 dirname3


Can I recover windows after Ubuntu installation?

You can choose to install Ubuntu 12.04.4 LTS inside Windows on any of your NTFS partitions using wubi installer. This way you can keep your Windows installation, and have Ubuntu installed and/or removed like any other regular piece of software designed for windows. A wubi installation is as fast as a normal Ubuntu installation but you cannot allocate more than 30GB space for the whole thing. This is the only limitation, other than that you can test Ubuntu as long as you like, and when you decide it is time to get rid of Windows for good you can finally install Ubuntu for real.


Upgrade to Precise leaving system unbootable

I had a problem like this concerning my laptop after I put Precise on there.  I'm not sure if it's the same for servers, but have you tried downloading and running Boot-Repair?  Here is a link to the article that I use: https://help.ubuntu.com/community/Boot-Repair


Is it possible to use Broadcom BCM43142 wifi in Ubuntu 16.04?

Although I have read some questions that suggest it is troublesome, I have not yet read any report that says it absolutely will not work. It is easy enough to find out. Install the driver and see!

With a working internet connection by ethernet, tethered or whatever means possible, open a terminal and do:

sudo apt-get update
sudo apt-get install bcmwl-kernel-source

The installation of the driver does the required blacklisting for you. However, if you wanted to undertake it manually, I suggest:

sudo gedit /etc/modprobe.d/blacklist.conf

Use nano or kate or leafpad if you don't have the text editor gedit. Add the following lines at the very end to the existing text:

blacklist b43
blacklist bcma
blacklist ssb

Proofread carefully, save and close the text editor. Reboot and tell us if the wireless is working.


How can I edit apache settings file on 17.10?

Please see: Why don't gksu/gksudo work with Wayland?

  It is a feature not a bug ! It is a design feature of Wayland that you
  can not start graphical applications as root from the terminal.

The solution is to edit the file with a non-GUI application, such as:

sudo nano /etc/apache2/apache2.conf

Or, alternatively:

sudo vim /etc/apache2/apache2.conf


You wrongly entered the ppa name. The correct one is

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine


Ubuntu 17.10 GNOME won't start : required virtual size does not fit available size

I solved by issuing:

dpkg-reconfigure lightdm && service lightdm restart

Maybe the same can solve for gdm


Getting error while trying to install packages using sudo apt-get

My internet connection was LAN and maybe the firewall blocked access. However, when I try to install over wifi, it works. My bad, I should I have tried it before


How To Install Ubuntu Server 14.04 Offline

I'm having the same problem. I'm in an isolated room with no internet access. When I try to install the image ubuntu-14.04.3-server-amd64.iso from USB (written to USB thumbdrive with Universal-USB-Installer-1.9.6.2) and after skipping the network config (after choosing language and keyboard layout), it simply insists on choosing a regional mirror on the internet, and gives me no alternative, and won't continue without connecting to one. I can't find any other image to allow "offline" installation. What can I do?

EDIT: I finally found out, after reading many other posts, that the solution is: It seems that all the Windows imaging tools (I tried 3) can't handle this ISO image correctly. Finally I gave up and went to a coworker with a native Linux PC and he copied the ISO via dd and now everything works offline without demanding a mirror. Apparently the installer is not robust and misleads instead of simply reporting there is a problem with the local media.


Is viewing system files like "/sbin/init" safe?

Yes. It's safe to view any system file(s), especially if you don't use sudo or root.

prakhar@aS4v4g3wOrld:~$ ll /sbin/init
-rwxr-xr-x 1 root root 265848 Jul 18 15:16 /sbin/init*

The owner of /sbin/init is root. The only way you can modify this file is either via logging as root ($ sudo -s) or by giving an editor superuser permissions using sudo.

Besides, /sbin/init is a binary file, not meant for reading. If you still want to view this, use a hex editor like

$ sudo apt-get install ghex
$ ghex /sbin/init


Selectively bypassing VPN for certain sites (specifically NetFlix)

This depends on how your VPN is configured. Openvpn lets you exclude certain IP ranges for example, as is described here: Link.
The easiest way would probably be to use a SOCKS proxy, since there are various Add-Ons for most browsers that allow you to configure the routing through those in great detail and with an easy user interface.


Dual boot Windows 8.1 with Ubuntu on last partition with legacy boot mode

Even I want help for the same issue.I want to install ubuntu on unallocated  free space while I have windows 8.1 installed in legacy mode.


How to install HP Scanjet 8270 in ubuntu 12.04

If you cannot get free drivers working (and I'm having trouble finding any for your scanner), you could use VueScan, which is  commercial (proprietary) scanning software that works on Linux. It appears to support the HP ScanJet 8200 Series.

There is a free trial of VueScan downloadable at https://www.hamrick.com/ that you can try out to see if it works with your scanner; however, to remove the watermarks on scanned images you will need to buy a license, which is normally $49.95 for the Standard Edition (but is currently on sale for $39.95).

(I have no affiliation with the makers of VueScan, but I have used it to get my HP scanner working)


Screen goes black as soon as I log in to access my Work on Citrix via icaclient

I had this issue, also crouton on a chromebook.

What made it work in the end was getting the version of the ica client that my particular CAG offered (v11.x rather than the most current v13.x in my case).

I had to then extract the tar.gz and install.

I had to use firefox with the older client, not chrome (chrome seemed ok with the v13 client).

I also had to do the 5th step shown at https://help.ubuntu.com/community/CitrixICAClientHowTo

the first command deals with ICA client error 61, the second command deals with error 5.


No wifi found ubuntu 18.04 lts Centrino Advanced-N 6230

You have a broken /etc/modprobe.d/iwlwifi.conf file.

Run sudo nano /etc/modprobe.d/iwlwifi.conf and remove the line

“options iwlwifi disable_msix=1”

Ctrl+O to save, Ctrl+X to exit.

The option is wrong and the quotes are wrong.

I wonder where so many people get this crap? There is no disable_msix option in iwlwifi.

Reboot and Wi-Fi should work.

Also I suggest to run

sudo apt purge bcmwl-kernel-source

This will remove Broadcom drivers that are not relevant.


Logical Volume now has two segments after lvextend

LVM is an abstraction layer to get you away from PVs and best run on RAID(0+1) or RAID5 systems where you have an enormous amount of disks and the LV which you build upon is more important then the PV.

And if you have spare PVs you can then move your LVs around as you see fit and as need shrinks or grows.

So if you're running on one PC with 4 disks, and you're never going to grow to 10, LVM is something extra to know just for the heck of it, but has no real tangential benefits.  It's always good to put on your CV though!  ;-)

If you're more worried about system performance then logical groupings and disk management, or only have 2 disks then just use tried-and-trusted disks, partitions and file systems.  :-)


Get a list of network manager network connections with Bash?

All NetworkManager connections are located in: /etc/NetworkManager/system-connections/

So you can easily use ls to get a list of them:

ls /etc/NetworkManager/system-connections/

then remove the one you want:

sudo rm /etc/NetworkManager/system-connections/some-connection

You can also use nmcli tool, which is a better idea:

To get a list of connections:

nmcli connection

To get informations about a connection:

nmcli connection show connection-name

You can pip it to grep to look for specific info:

nmcli connection show connection-name | grep ipv4.dns

To modify a connection:

nmcli connection modify connection-name config-name new-alue

Example:

nmcli connection modify HomeNetwork ipv4.dns 8.8.8.8

To delete a connection

nmcli connection delete connection-name


How to prevent 'check disk for defects' to run

Preventing a check for disk defects would be... bad.

Ubuntu only runs fsck on its own if it finds something wrong in the drive(s). If you had bad blocks in a drive, run a SMART check to see if the problem is growing, and budget for a new drive, soon.


You have a few options, but I would not recommend several of them for a new user.

First, the 68 GB unallocated space is not part of sda5 anymore. sda5 is now just under 1 GB. You might be able to delete sda5, thereby increasing the size of the unallocated space by 993 MB. But the question is why sda5 is the way it is.

If you simply chose to make it that size or were unsure if you could delete it and chose to just make it small, you can probably go ahead and delete it. But...if when you shrank the partition, gparted would not let you make it any smaller, trust gparted and leave it alone.

Keep in mind that you will need to perform any actions from live media, since you will not be able to work on a logical partition without unmounting the logical partitions with a higher number.

Option 1) Move sda6 to the left and then resize it to to fill the space.

This is not recommended for a beginner. Moving a partition can cause data loss, can take an extremely long time, and will almost certainly leave the computer unbootable into either OS until you reinstall grub.

Option 2) Make an new ext4 partition in the unallocated space, move the contents of sda6 into it, and then delete sda6 and increase the size of the new partion.

This is also not recommended for a beginner, but is arguably better than Option (1). For instructions, see Move the whole installed files to another partition. If you are interested, be sure you understand the steps before doing anything. Note that it will also render the computer unbootable until you reinstall grub.

Option 3) Use the live media to do a clean install into the unallocated space.

For a beginner, this is the easiest and safest thing to do. You can make a new ext4 partition either during the install or before.

I would recommend backing up all of your data to external media. Then using Try Ubuntu, then use gparted to create an ext4 logical partition in the unallocated space. Give it an easily recognizable label, like NewInstall.

After that, run the installer, choosing the Something else option so you can specify the partition you want.

Then move your data to the new install and reinstall your packages and programs. This step might be time consuming, but IMO it is much simpler for a beginner than trying the other options.

Once you are satisfied that the new install is correct and that your data are safe, delete what is currently sda6 (be careful since the numbering may change) and resize your new partition into that space.

Menus for deleting, creating, or resizing partitions are found in gparted by right clicking the partition or using the Partition menu.

Option 4) Deleting the swap partition, expand sda6 into that space, and create a swap partition in the unallocated space.

This is generally safe, but is problematic for a couple of reasons.

a) You have filled 50 out of 52 GB already. I would guess that either you have a lot of data or have installed a lot of packages. In either case, I doubt the extra 7 GB will be enough and you will find yourself in the same position before too long.

b) Deleting the current swap space will require changes to your fstab file. Again, this is not recommended for a beginner.


12.04 on Intel Celeron NUC. Can't boot from drive if I move it to another

EFI relies on NVRAM entries to point it to boot loaders. See this page, and in particular the section entitled "The EFI Boot Process," for details. To fix your problem you must either create new NVRAM entries by using an emergency disc and efibootmgr (or a similar tool in another OS or environment) or install a boot loader as EFI/BOOT/bootx64.efi (assuming an x86-64 CPU and 64-bit EFI).


idk ,run from terminal

3-rd m-button / shift-insert

don't worry ,it holds well,just don't look at the monitor and press enter


system("history > wow.history") not editing my file

The "history" command is built into the shell you are using and is not an external executable.  Hence it cannot be exec'd by the system() call.


Ubuntu 14.04 guest in Hyper-V host will not run apt-get

This question is pretty old, but my guess would be that you're not getting DNS resolution.  When you're pinging out, are you pinging an IP address or an FQDN?

If you're using a static IP, you need to add the dns-nameservers to the interfaces file

example:

auto eth0
  iface eth0 inet static
  address 192.168.0.150
  netmask 255.255.255.0
  gateway 192.168.0.1
  network 192.168.0.0
  broadcast 192.168.0.255
  dns-nameservers 8.8.8.8 8.8.4.4


How can I talk to a gtalk user with skype?

In short the answer is no, not because there aren't many great applications available for Ubuntu, but because Skype is a proprietary software owned by Microsoft, and they do not provide an API to allow for third party clients to use Skype in the manner.


Firefox freezes on various sites, what to do?

Try reinstalling firefox or thunderbird.

I sounds like something wasn't installed properly which could lead to these problems.

If the problems don't occur with firefox in safe mode, then try disabling the ubuntu firefox modifications addon.


Why does NickServ on FreeNode IRC ask me to identify every day?

FreeNode will require you to authenticate to NickServ each time you connect to the network to be recognised as a registered user, so most likely you are occasionally being disconnected.

If you would like to identify with NickServ automatically, you can use your nickname password as the network password when connecting to the network.

In Empathy, this can be done with the following steps:

Choose Accounts from the Edit menu.
Select your FreeNode IRC account from the accounts list.
Click the Edit Connection Parameters... button.
Enter $master_nickname:$nickserv_password in the Password field (substituting the correct values), and click Apply.

Once this is done, you should be able to verify that you get identified by disconnecting and reconnecting: NickServ should tell you that you have successfully identified shortly after connecting.


Terminator - keyboard shortcut to open multiple tabs

Define a couple of profiles and a layout for terminator:

[profiles]
  [[default]]
    # Your default profile remains untouched...
 [[command1]]
    use_custom_command = True
    custom_command = "watch date"
 [[command2]]
    use_custom_command = True
    custom_command = "top"
[layouts]
  [[default]]
  # Your default layout remains untouched...
  [[your-layout]]
    [[[child0]]]
      type = Window
      order = 0
      parent = ""
    [[[child1]]]
      labels = None, None
      type = Notebook
      order = 0
      parent = child0
    [[[terminal3]]]
      type = Terminal
      order = 1
      parent = child1
      profile = command1
    [[[terminal2]]]
      type = Terminal
      order = 0
      parent = child1
      profile = command2

Now if you launch terminator thus:

terminator --layout your-layout

It should open a Terminator window with two tabs running the two commands. Now set the above command to a shortcut key or an alias.


The swap partition is not needed.

The swap partition is not needed for cloning. To find out why, let's find out what swap does. If you have programs running, and not enough RAM, they are put in swap. At every boot, and through normal operation, data in swap gets cleared time to time, comes and goes, not being needed for data (similar to RAM). Keeping SWAP is like taking a snapshot of RAM, which is only useful for debugging. You only need to backup any non-swap partitions related to Ubuntu. If you need to restore, you can make a new swap partition, just like the one you had before, without risking important data.


Instead of trying to learn how to install packages that you downloaded from the internet and possibly may even require compiling, you should install your applications from the default Ubuntu repositories whenever possible. Just because you can't find an application to do a specific job in the default Ubuntu repositories doesn't mean that a suitable application is not there. In fact it usually is there. You just have to know how to search for it. The technical phrase that is used to describe this is "software recommendation".

Regarding Apache OpenOffice, you should stick to the default LibreOffice that comes with the default Ubuntu install. It is very nearly 100% compatible with OpenOffice in every way, and receives its updates in the usual way through Software Updates.

Finally, if you have to install a file that you downloaded that has a .deb extension, just double-click on it to install it using the Ubuntu Software Center. If the file that you downloaded has a .tar.gz extension, you will have to open it with Archive Manager and look for a README file in the archive where the instructions for installing the package are usually found.


One tool to the list Anturis, a cloud-based tool to monitor the company network. It lets you to monitor

Use ICMP Ping to check routes within your LAN or WAN.
Check open ports (with a TCP monitor) to make sure network services are running and accessible.
HTTP, SMTP, IMAP, POP3, SSL, FTP, SSH services monitoring.
Here are only a few details of the tool.


F-Spot: Can't view my photos anymore after update to Quantal

Maybe is this caused by the new mount point of external usb devices - not directly in /media, but in /media/<yourName>?


Unmounting of a file system removes it from the mount point, and deletes the entry from the /etc/mtab. Some file system administration tasks can't be performed when the file system is mounted.  Such as checking and repairing of the file system, formatting, and more

File systems are automatically unmounted when the system is shut down. To manually unmount file systems, use the umount command.

Edit:

Warning:  Always be careful when dealing with partition.  Make sure that you have a backup available just in case.

Unmounting is necessary to partition the drive, and create space for Ubuntu.  It is OK to press Yes, but you need to be careful when partitioning, that you don't wipe that whole drive.  I would recommend that you boot from the install DVD/USB, click on Try Ubuntu, use Gparted to shrink the partition, and create a partition for Ubuntu.

If you like, that can also be done from within Windows.  See here for instructions.


xubuntu not showing minimize, maximize and close buttons

I had the same problem this fixed it for me:

gsettings set org.gnome.desktop.wm.preferences button-layout "close,minimize,maximize:"


Terminal emulation requires an ASCII compatible encoding, which UTF-32 is not. See https://unix.stackexchange.com/q/448745 for explanation.

That being said, nothing stops an application that runs inside the terminal (e.g. text editor) to read and write files encoded in UTF-32. These apps just have to internally convert it back and forth between UTF-32 and UTF-8 in order to display it in the terminal, and to interpret the keypresses arriving from the terminal.


How to auto mount with full permissions using gnome-disk-utility?

Alright.  This isn't a complete answer, but it works.
Based off another answer, I tried adding users assuming all users are in that category.  I guess this is only the case for users that have no other group (https://unix.stackexchange.com/a/326782/132794)
I do not know how to add a permission that makes it so any user can have read/write permissions on this mount.  So that's why this is not yet a complete answer.
Anyways, the trick was uid=1000.  You can get your user id with echo $UID or just id.

Further, if you get your username with whoami, you can see what groups you are in with groups [username].  Perhaps one of these groups is applicable to all users?  Perhaps not.


Try with this drive - Download Scanner Driver  core package&data package

install this file iscan-data_1.17.0-2_all.deb followed by this iscan_2.29.1-5~usb0.1.ltdl7_i386.deb


Are there some packages I need to install to run apps compiled with mono C#?

Mono programs require the Mono runtime, which is provided by the mono-runtime package. Like other programs, they may also use shared libraries provided by other packages.

MonoDevelop is itself a program written in C# that uses Mono. Any Ubuntu system with the monodevelop package installed will also have mono-runtime and some other support packages installed. This happens automatically when you install monodevelop using Ubuntu's package manager, because it declares the other packages it needs as dependencies.

So you likely don't need to install anything else just to run programs that use Mono. If you're developing Mono applications, though, then I suggest installing the mono-complete package, which will give you most of the development tools you're likely to want to use.

If you want to install less than what mono-complete gives you, then you can just install mono-devel. If you want to install less than that, and just get the C# compiler and the libraries it requires, then you can install mono-mcs. The C# compiler is called mcs; if you want to run it directly from the command line, you would use the mcs command.

It sounds, from your question, that you already have these things installed.

As for the .exe suffix that the C# compiler automatically appends to the binaries it produces: yes, you can remove that and they will still run just fine. You might not always want to, though. Having .exe at the end isn't necessary, but it doesn't do any harm. It makes your programs more readily portable to other systems, which you may or may not care about, depending on what you are doing.

In particular, if you copy those executables to a Windows system, they will probably still run, but if you've removed the .exe suffix, then Windows won't know what to do with them. This is because Windows uses file extensions to determine if a file is considered a program. (Of course, you could rename them back.)


How to configure Ubuntu server to accept only LAN connection through SSH?

Unless your router is configured to forward traffic to your server, it should be inaccessible from outside your LAN already.

However for an extra layer of security, you can configure the default firewall to only accept LAN connections by specifying an appropriate IP range, either via iptables or via ufw e.g.

sudo ufw allow from 192.168.1.0/24 to any port 22
sudo ufw enable


I upgraded Ubuntu on my laptop and I have to use the old GRUB entry for it to work

you have to know the number of the working item

For example: The First line has number 0 , the second 1 etc.

Now

sudo gedit /etc/default/grub

And change the line    GRUB_DEFAULT=0
to

GRUB_DEFAULT=THEWORKINGNUMBER

now execute  sudo update-grub

Everything should work now.


/usr/bin/x86_64-linux-gnu-ld: gen_context.o: unknown type [0x20] section `'

On my clean Ubuntu 16.04.4 LTS I do not have any problems.

At first you need to install build-dependencies

sudo apt-get install git autoconf libtool-bin libdb++-dev qt5-default \
qt4-linguist-tools libboost-program-options-dev libboost-thread-dev \
libboost-test-dev  libevent-dev qttools5-dev-tools protobuf-compiler

Then clone repository, run configure and make:

cd ~/Downloads
git clone https://github.com/dashpay/dash.git
cd dash
./autogen.sh
./configure --with-incompatible-bdb
make -j4

Then test it (optionally):

src/test/test_dash
src/qt/test/test_dash-qt

And install to the system:

sudo make install


Intel WIFI stop working after update 14.04 LTS Dell Inspiron 5558

"Package not installed" from modprobe hints at a problem with module signing (Ubuntu kernels ship with module signature checks).

I don't know exactly what broke with the last update, but I've fixed this problem by downgrading the "dkms" package (from 2.2.0.3-1.1ubuntu5.14.04.10 to 2.2.0.3-1.1ubuntu5.14.04.5). This also pulled in downgrades for grub and shim packages.

I suspect dkms 2.2.0.3-1.1ubuntu5.14.04.9 would also work, but I couldn't find a .deb for that version on Ubuntu mirrors.

After downgrading dkms it was also necessary to rebuild iwlwifi modules:

rm -r /var/lib/dkms/iwlwifi-3.16.2
dkms build iwlwifi-3.16.2/1.0
dkms install iwlwifi-3.16.2/1.0

After that iwlwifi module started working for me again.


Many applications, like webcams, doesn't seem to work well (or at all) with V4L2. But luckily there is a simple workaround to avoid the problem, through installing and loading some libraries with backward-compatibility with V4L, so that Flash sees again your Webcam, as it used to do until Ubuntu Hardy.

  sudo apt-get install ld.so.preload-manager

after that execute:

  sudo ld.so.preload-manager /usr/lib/libv4l/v4l1compat.so

Then, you have to switch the video mode to V4L from the multimedia systems selector, through executing the following in a terminal:

  gstreamer-properties

Go to the Video tab, and change the default value to V4L.


terminal won't launch after install python 3.5

Step 1: Opening a terminal
You said that you could not open a terminal any more. That is because the standard terminal emulator in Ubuntu is gnome-terminal, which can't run without a working python3, as that's one of its dependencies:
$ apt-cache depends gnome-terminal | grep python
 Depends: python3
 Depends: python3-gi

However, there are alternatives:

Use another terminal emulator:
You can simply use another terminal emulator than gnome-terminal, for example xterm which should also be installed by default. Search it in the dash's application lens (Super+A) or just run xterm from the HUD (Alt+F2).
A new terminal window will open from where you can undo your previous operations. It's (in my opinion) less comfortable than the default gnome-terminal, but surely does its job without depending on any Python components:
$  LANG=C apt-cache depends xterm | grep python
$

Use a TTY terminal:
Instead of using a terminal emulator (terminal window in a graphical environment) you can also temporarily switch to a real terminal (console only, no graphics) by pressing Ctrl+Alt+F1 (or any F [n] key with n in the range of 1 to 6).
You switch back to the graphical surface (usually TTY7) with Ctrl+Alt+F7 (or another F [n] key with n in the range of 7 to 12, depending on your user sessions).
In the TTY, you will have to log in by typing your username and password again first. Then it works like a normal terminal. Don't forget to log out of the TTY session again with Ctrl+D or the command exit when you're done.

Step 2: Restoring the original python3
Whatever method you used to get a terminal, the following reparation step is the same.
You have to restore the original /usr/bin/python3 file, which was actually a symlink to python3.4 (or absolute path /usr/bin/python3.4). This is done by the following simple command:
sudo ln -sf /usr/bin/python3.4 /usr/bin/python3


Alt+Tab and Super+Tab not working after upgrade from 17.04 to 17.10

Update:
You can try reloading Gnome via ALT-F2, pressing R and then Enter.
Thanks to Rob Hendricks for this hint.

Original Answer
Interestingly, after issuing the above commands, a reboot fixed it, when reloading the desktop environment didn't.
So for anyone encountering this, set your preferred settings using:
gsettings set org.gnome.desktop.wm.keybindings switch-applications "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab', '<Super>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward  "['<Alt><Shift>Tab', '<Super><Shift>Tab']"

And reboot.


It would much easier to install those apps from the internet. There's a big difference between 10.04 and 16.04. Many of those apps may have newer versions which work in 16.04, but which may not work on the old 10.04. Why use old software instead of newer one?

Install ubuntu-edu-tertiary in 16.04 by opening a Terminal window and type:

sudo apt-get update
sudo apt-get install ubuntu-edu-tertiary


creating a keyboard shortcut to open a specific folder/directory

Have you tryed the nautilus command with the path you want?

nautilus Dropbox/

Here is the usage : nautilus [options] URIs...

Check Nautilus man Page.


Theme changes after resuming from suspend

This sounds like the gnome-settings-daemon is crashing upon resume from suspend, which could be this known bug (probably caused by libappindicator).


By setting my login to Autologin OFF and removing Gufw from Startup Applications my login hassles stopped. Only one password is needed to get going.
Apologies for not reading previous answers carefully enough.


If you click on View > Device Information in gparted, it should show you a side pane of how the drive is partitioned.

If the drive is partitioned with msdos and not gpt it will only support 4 primary partitions but as many logical partitions as you want contained in the extended partition.

As you can see with my setup, I only have 1 primary partition, then 1 extended, which technically you could say is a primary partition.  Then I have a swap partition in the extended partition starting at sda5 the first logical partition.  So, if you had 3 primary partitions and 1 extended then your first 3 would be sda1, sda2 and sda3.  If you wanted to do more, then the extended would now be sda4 with sda5, sda6 and so on in the extended partition.  Yours is showing sda3 as the extended so by default the partitioning scheme shifts to sda5 in the extended since it would be the next after all 4 primary partitions are used.

Hope this helps!


How can I access a program from server through Firefox browser?

First you should know the port of the software.
Then type in the address bar of firefox:

<Address of the host>:<port number>

To find the software port it is easy to use "Nmap":
first install Nmap and then type in terminal:

nmap <host name or Ip Address>

Then you can see the ports of softwares on the host.

Probably, It is on the port 8080, and you should type in the address bar:

http://<Domain name or Ip address>:8080/oscar or https://<Domain name or Ip address>:8443/oscar

Or if it is on your own machine, type localhost for Domain name.
Complete information is here.


Upgrade to 12.10 fails with grub fatal error

the same applies to me :-)

this is because of the new grub version, which is a bit taller and cannot find enough space. best is to keep 12.04 and not to move, or move without using the new grub version. Moving lvm is quite dangerous and time consuming, don't do that.

for next time try not to allocate the entire disk to lvm...


Remove it from Chrome.

Go to chrome://apps, right click the app you want to remove and select Remove from Chrome.

Those are Chrome desktop apps, not Ubuntu apps installed through Software Center or from deb package. That's why you can't remove them from Unity.

If it doesn't work, go to ~/.local/share/applications and look there for specific desktop files by ID. For example:

has the shortcut chrome-njkkjobcechefaoknodniidfjapgfoco-Default.desktop


Mount partition at startup the same way the file manager does it - NOT with /etc/fstab

The answer is really easy if you know what to look for. A DE-agnostic way to automount disks at login is to use udisksctl. It is often used to mount loop devices, but it can also mount drives. The necessary polkit rules are already present since udisks2 is used under the hood for the automount mechanisms of the file managers. Therefore, it can be run without elevated access rights.
udisksctl mount -b /dev/sdn1 or udisksctl mount -b /dev/disk/by-label/<disklabel> mounts the disk from the command line under /media/<username>/<diskname or UUID>.
The line udisksctl mount -b /dev/sdn1 2>/dev/null added to the user's ~/.profile, which is run after each graphical, non-graphical or remote login, attempts to mount the disk and fails silently if already mounted so the user is not irritated by an error line.
For completeness, ~/.bash_logout with a udisksctl unmount -b /dev/sdn1 could unmount this disk at logout if desired.
For a broader solution, put this in ~/.profile:
# mount disk with specified label if unmounted and present
userdisks=( "disklabel 1" "disklabel 2" "disklabel 3" )
for disk in "${userdisks[@]}"
do
    if ! lsblk -l | grep -q $disk ; then
        udisksctl mount -b /dev/disk/by-label/$disk
    fi
done

and add this to ~/.bash_logout:
# unmounts disks at last logout of user
count=$(who | grep -c $(whoami))
if [ $count -eq 1 ] ; then
    userdisks=( "disklabel 1" "disklabel 2" "disklabel 3" )
    for disk in "${userdisks[@]}"
    do
        if lsblk -l | grep -q $disk ; then
           udisksctl unmount -b /dev/disk/by-label/$disk
        fi
    done
fi

You have to put all the labels of devices you want to mount in the space-separated userdisks array. Make sure that a label with spaces is surrounded by quotation marks.
This lets the user know that the disk is mounted on the command line, silently skips mounting when disk is already mounted and gives an error when disks are missing.
Only when the last user session gets logged out, the disks are unmounted.
This setup has been a convenient timesaver when logging in via ssh to a laptop with removable devices, for example.


How do I bind .sh files to keyboard combination?

You can use the keyboard shortcuts interface to do this. Remember to add the full path.


Eclipse's toolbar is displaying incorrectly unless I run Eclipse as root

Same issue - https://stackoverflow.com/q/19452390/

Short answer is that it's a known bug in Ubuntu 13.x, and a workaround would be to set the environment variable UBUNTU_MENUPROXY=0, either in the terminal or in the desktop shortcut. Here's a sample:

[Desktop Entry]
Version=4.3.1
Name=Eclipse
Comment=Eclipse IDE
Exec=env UBUNTU_MENUPROXY=0 /path_to_eclipse/eclipse
Icon=/path_to_eclipse/icon.png
Terminal=false
Type=Application
Categories=Utility;Application;IDE

Credits to the contributors on the question URL above for the solution.


How can I specify the home directory in Ubuntu, like I can specify %APPDATA% in Windows?

Both "$HOME" and ~ point to the current user's home folder, but technically, they are different things. While these will work in the terminal and in scripts, your graphical application may or may not interpret these in the same way. In dconf-editor, "$HOME" may work to retrieve the full path to your home directory if the application using the information interprets it. In your case, where you change settings for Gnome Screenshot, it will work. But again: this is not universal, so if one day you find it doesn't, try ~, or else you may need to spell out the full path.


How can i uninstall phpstorm from Ubuntu 18.04?


AMD stopped providing support for Radeon 9800 in 2009, whihc means there won't be any proprietary drivers available. The card should work with the free radeon driver, but that still has some way to mature before becoming a gaming alternative to the proprietary ATI driver.

benchmarks

A more recent ATI or Nvidia card would probably be a better choice for gaming.


concatenate the argument of date into one string

Update:

Please try the following snippet instead:

TIMESTAMP=$(date --date='40 days ago' '+%F %T')
TARGET=/opt/db_maintain/main.sh
source $TARGET "$TIMESTAMP"

To avoid quoting your TIMESTAMP argument why not using the iso8601 T delimiter?

Date and time can be one string: 2014-02-04T13:49:40

And you can use such format as date input:

$ date --date='2014-02-04T13:49:40'
Tue Feb  4 13:49:40 CET 2014

If your target script can only understand datetime with a space, store it this way:

TIMESTAMP="$(printf "%q" "$(date --date='40 days ago' '+%F %T')")"

The space will be escaped:

$ echo $TIMESTAMP
2015-02-04\ 14:04:51

Alternatively you can escape quotes like this:

COMMAND="$TARGET \"$TIMESTAMP\""


Upgraded to 14.10, brightness control quit working - Intel HD 4400

Open a terminal with Ctrl+Alt+T and write:

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

Type in your password, then copy-paste the following text into gedit:

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

and save again!


Can't convert `.bin` file into `.iso` format with the command `bchunk`

type bchunk IMAGE.bin IMAGE.cue IMAGE.iso

Changing IMAGE for the right directory and filename


I have sound but no way to change volume - Xubuntu 20.04 LTS

Right click on the panel and choose Panel -> Panel Preferences
Click on the Items tab, check for the PulseAudio Plugin.  If it is not there then click on the + on the right

Scroll down and find the PulseAudio Plugin and double click it or click the + Add button to add it:

Hope this helps!


Ubuntu 18.04 - move a window left-right in the same workspace

super+Left Arrow
super+Right Arrow
super+Up Arrow
super+Down Arrow

Will snap to the half left, half right, full screen and the initially opened window position.


Can I drag a window onto another workspace?

You have a few options:

Use keyboard shortcuts

Use Ctrl+Alt+Shift+Left/Right/Up/Down to move the current window as you change workspaces.

Use the Workspace Switcher

Open the Workspace Switcher (Click the "Workspace Switcher" icon in the launcher or press Super+S) and then drag-and-drop windows between workspaces.

Disable edge resize actions

Install the CompizConfig Settings Manager, set the options in Grid ▸ Edges ▸ Resize Actions to None, and check Desktop Wall ▸ Edge Flipping ▸ Edge Flip Move.


Can I use a .settings file for my Ubuntu Touch application?

In the near future the SDK will provide a GSettings backend to store your application's settings.

Until then, I'd recommend using the LocalStorage module to store your settings in a database.

You can see an example of how the calculator core app uses LocalStorage.


gedit-developer-plugins on Ubuntu 13.10 Saucy Salamander

I'm afraid things may depend on the developer responsible for the plugin. But, you could first try the solution presented here: Problem With Gedit Plugins and Python3 on 13.04.

I updated to Lubuntu 13.10 and installed the gedit version available in the software center (v 3.8.3). Then I tried to install doublesave and markdown-preview both of which worked for me in Lubuntu 13.04. I ran into the same problem as you and changing Loader= as suggested in the first link didn't help me.

I did an internet search and concluded that the issue maybe something that the individual plugin developer has to modify unless the Loader= fix works for you.


How to extend the battery life on my laptop when running Ubuntu?

I have had great utility with powertop. It is available to be installed on ubuntu. One might need to be careful about what one is doing with it though. As powertop might recommend things which it thinks as a effective optimization but might cause a loss of feature like usb hangups etc.
To install powertop run

sudo apt-get install powertop

Then run

sudo powertop

and follow instructions to speed up the computer speed.


How to use mv command to move only selected files?

You have an extended glob pattern, !(*.trg), which will only work if the extglob shell option is enabled.

As the output of shopt extglob shows:

extglob off

you don't have the option enabled.

So you need to enable extglob by:

shopt -s extglob

Then your command should work.

Also, your command can be made more compact by:

mv -t tgtdir !(*.trg|tgtdir)


How do I install amdgpu-pro in ubuntu 16.04 LTS with a 400 series card?

It tells you what to do if you read the next few sentences:

  The script will use the package manager to install the components of the graphics stack, with a short delay during the DKMS (Dynamic Kernel Module Support) installation. From the directory where you extracted the archive, issue the following command:

amdgpu-pro-driver/amdgpu-pro-install

But it turns out these instructions are more than a little misleading and confusing.

Instead of following them, follow these:

Download the driver. At the time of this answer, the filename is amdgpu-pro-16.40-348864.tar.xz, but this will change.
Extract the driver.

Enter the directory where you downloaded the driver file (default is ~/Downloads). Use cd dirname, where dirname is the name of the directory.
Use the command tar -Jxvf filename to extract the driver in the current directory. filename is the name of the name of the driver file downloaded.

Install the driver.

In the same directory, run cd foldername. foldername is the name of the folder that was created when the driver file was extracted. It should begin with amdgpu, so type cd amdgpu and then press Tab so that it completes the folder name

Reboot.

Once the terminal returns to a prompt, restart the computer. AMDGPU-PRO will now be installed.


How to determine obsolete kernels and remove them to clean up disk space

Get a list of all kernels that are installed on your Ubuntu:

dpkg -l "*linux-image-*" | grep ^ii

check which one of them you are running:

uname -r

Remove everything except the one which is in uname -r outputs:

sudo apt autoremove --purge linux-image ...


Can Ubuntu be installed on Windows 7 drive that is encrypted with Truecrypt?

have you seen this howto in the Ubuntu forum?
http://ubuntuforums.org/showthread.php?t=761530

It describes how to setup an dual boot environment with full encryption.


The partitions of Windows is not seen in Ubuntu 18.04 dual boot

The partition /sda7 is not formatted; your file manager can only view and interact with partitions which are formatted for usability. Those are
/sda1 (NTFS, recovery partition, hidden)
/sda2 (FAT), and
/sda11 (Ext4, Linux).


As far as I know, that isn't built in to UpdateManager anywhere.

You may find this to be related, although not identical.


How to install virtualmin on UBUNTU 20.04 LTS

wget https://software.virtualmin.com/gpl/scripts/install.sh

sudo /bin/sh ./install.sh

The script will display a warning message about existing data and compatible operating systems. Press y to confirm that you want to continue the installation.
The script will take some time to complete all the steps as it installs various software packages and components.
Once the script completes, you can configure the root password.


Images are too dark and saturated in Image Viewer

Execute the terminal command:
xprop -root -remove _ICC_PROFILE


Why can't I install any packages using apt-get?

google-chrome-stable must be broken. First, run apt-get update to ensure APT's package lists are up to date (to avoid dependency issues), then download a new copy of Google Chrome and install it by running:

cd Downloads  # <- The directory where the file was downloaded to
sudo dpkg -i google-chrome-stable_current_i386.deb


Using that file, you just right-click and extract the tar.gz (same as .zip). In the new folder, locate the file called stencyl and make sure it's marked as executable. You can do that by right-clicking it, opening preferences and looking at Permissions tab. You'll find a checkbox "Allow execution" or something like that.

Alternatively, there is a PPA (installer, updater) that you can add. The fastest and simplest to explain is to open a terminal (alt+ctrl+t) and pasting these three lines:

sudo add-apt-repository ppa:upubuntu-com/games
sudo apt-get update
sudo apt-get install stencyl


Sort files into subfolders acoording to name [script]

Use the following bash script.

#!/bin/bash
for file in *\\*
do
    destFile="${file//\\/\/}"
    destFolder="${destFile%/*}"
    [ -d "$destFolder" ] || mkdir -p "$destFolder"
    mv -v "$file" "$destFile"
done

The code basically replaces all the \ in the source file with / to get the destination file path. Then it gets the destination directory of the file and creates it using mkdir -p. Finally the file is copied to the destination folder.

Write the code into a file (let us say script.sh) and then in terminal do

$ chmod +x script.sh
$ ./script.sh


You can use my ppa, that I have created for this purpose. Please take notice of the pinning that is necessary. Also, aptitude will not recognize the pinning. You must use the aptitude specific method if you want to use it.

Note - this is for 10.04 (lucid) only


i am not able to install windows7 after installing ubuntu on dell latitude d430

U just have to put your DVD or USB device.
Then U have to select Boot to UEFI mode from Boot device menu. U will find it in your boot setup options.
Then using Shift+F10 switch to CMD prompt.
There u will type "diskpart".
After that identify the drive to reformat using "list disk" command.
Then select the drive, reformat it using following commands,
     select disk
     clean
     convert gpt
     exit
After that close the command prompt.
Continue the Windows Setup installation. When choosing installation type choose CUSTOM.
The drive will appear as a single area of un-allocated space. Select the unallocated space and click Next. Windows begins the installation.
During reformat step, choose the drive in which u have installed Ubuntu. After that it removed from your PC. If you want then u can dual boot your PC with W 7 and Ubuntu.


I believe a fatal error with the graphics drivers. On the login page, press Ctrl+Alt+F1. Thus will open a terminal. Type "sudo ubuntu-drivers autoinstall" (without the inverted commas.) and a large process should begin. When finished, press Ctrl+Alt+F7 and you should soon return to the login page. Reboot the computer. You might notice a slight difference with the Ubuntu logo on boot. No need to fear, this is normal. You should now be able to log in. :)


Is there a "Edit mount options" (cog icon) in palimpsest in 12.04?

As far as I remember, gnome-disk-utility had no edit mount option at that time. It had Edit FileSystem Label, FileSystem type etc options.

I have one 12.04 ISO still now, but I think this question's screenshot will prove it. The OP here was running 12.04 and the screenshot is from gnome-disk-utility. There was no cog icon. It was later introduced.

What does the term "Extended Partition" mean? Is it safe to use this type of partition?

And the Ubuntu handbook was featuring a 14.04 gnome-disk which is different than 12.04's gnome-disk-utility


Apt-Get using Apt-Cacher NG fails to fetch packages with hash sum mismatch

I would suggest to switch away from APT-cacher-ng and check out Squid-deb-proxy.

APT-cacher-ng has proven to be very buggy in my experience and tons of bug reports are outstanding. Only recently it has been proposed again to get unblocked in Debian now that some major bugs are squashed. For Ubuntu I've switched to Squid-deb-proxy a long time ago and I don't regret it. It's a great alternative and the best APT-cacher I've come around.

For Squid-deb-proxy, just install the package squid-deb-proxy and add allowed destination domains in a new file in /etc/squid-deb-proxy/mirror-dstdomain.acl.d. As a bonus, clients can auto-discover caching-enabled machines in the local network by having the squid-deb-proxy-client package installed.


How can you schedule regular tasks to execute when available?

Two possible alternatives to cron would be anacron or systemd timers. With both solutions, you can trigger jobs at certain times and configure what to do, when a scheduled job has been missed.


Explanation: Let's disassemble the actual error output:
./scripts/smashing.sh: line 5: smashing: command not found

This means that on line 5 of the script, the interpreter found a command (smashing) that it could not locate a binary for.
You're right -- it's a $PATH issue. Cron is the other piece of the puzzle.
Cron does not use most of your environment variables when it runs jobs. This means that cron does not know about changes to your $PATH (changes like installing smashing).
This is a classic learning point for users new to cron jobs.
Old hands recommend always using full paths in cron jobs (and the scripts they trigger) for precisely this reason.

Solution: In your script, use a full path:
Use whereis smashing to learn the full path.
Then edit your script.
OLD:  smashing start
NEW:  /full/path/to/smashing start


aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Elementary/next

Uninstalling the pantheon-desktop package is not enough, because it also installs dependencies that will stay. You have to clean up the sytem.

Install ppa-purge:

sudo apt install ppa-purge

Then remove the Elementary PPA with that tool:

sudo ppa-purge ppa:elementary-os/stable

or whatever ppa you used, e.g. daily --> ppa:elementary-os/daily

(via)


Ubuntu detects 4th monitor, but doesn't detect the 4th monitor when plugged in

I got this from reddit user /u/ProblyAThrowawayAcct, the issue was my HDMI -> DVI cable was passive which caused it took take 2x my cards output bus. Replacing that with a VGA -> VGA w/ DVI adapter cable resolved the issue.


I recommend making acquaintances with your:

Log file viewer

You might find the answer there. Just check times.


IBus avro Bangla writing problem in libre office

Based On comment the solution is here:

Change the locale setting to Bengali (Bangladesh)

This option can be accessed under Tools>Options>Language Settings>Languages>locale setting and  changed all the Basic Fonts (CTL) to SolaimanLipi.


I am trying to remove OpenOffice to go back to LibreOffice, but I keep getting an error message

Try these commands in a terminal :

sudo dpkg -r libreoffice-common
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade

SOURCE:Getting "'file' is different from the same file on the system" when I attempt to update through synaptic


What is the best way of monitoring GPU temperature in Xubuntu 14.04 when using the OpenSource driver?

I use xfce4-sensors-plugin:

It needs lm-sensors installed and configured, and it is in the standard (universe) repository.

The ATI sensor (when used with the radeon open source driver) should be called something like radeon-pci-0100 --- Notice however that with recent kernels the card is kept off when not used, so the sensor is not read in that conditions --- see https://askubuntu.com/a/469439/16395

You can check if the sensors are working activating the offloading as explained in this post: http://xpressrazor.wordpress.com/2013/10/08/enable-and-use-open-source-radeon-drivers-in-a-muxless-hybrid-graphics-intelamd-setup/:

List the graphic providers:

xrandr --listproviders

make a note of the id hexadecimal codes
Activate them:

xrandr --setprovideroffloadsink 0x53 0x79

(you have to substitute the codes of the Intel and ATI providers, in that order)
Open a terminal window and run

DRI_PRIME=1 glxgears -info

Now using sensors in another window you should see the temperature reading of the radeon card going up.


Internet not working on my laptop (xps 9570) just at home, works fine on all other networks

this could be a dumb answer, but did you try using command dhclient? maybe it will repair the connection by rerefreshing your adapter config and apply dns trough dhcp again. seeing a laptop doesn't usually need fixed IP/DNS, why not use DHCP


How to enable global menu for PhpStorm in 13.10

Simply install the "jayatana" package and restart the system.

sudo add-apt-repository ppa:danjaredg/jayatana
sudo apt-get update
sudo apt-get install jayatana

You will also need to enable the "GTK+" theme in PHPStorm (File -> Settings -> Appearance), otherwise I don't think it will work.

Source


So far as I know, your graphic card is not supported my AMD. So installing the proprietary driver would not work. Therefore you need to downgrade your X server and install the Legacy driver.(See this)

But I would suggest you use the open source drivers itself. If your Ubuntu install is not detecting your maximum screen resolution with open source driver(and that is why you are trying to install the driver from AMD site)then follow this answer.


Laptop screen brightness change seems to affect color, not backlight

OK, seems I figured out how to change the brightness after all, all you  have to do is:

echo 100 | sudo tee /sys/class/backlight/intel_backlight/brightness

the path should be /sys/class/backlight/ and whatever the path is relevant for your monitor.

the echo 100 is the amount for the screen brightness, I think max is 976 or something, I don't know what the lowest is, might be 1 or something, but this finally worked for me, despite browsing countless forums and stack questions I finally found it.

EDIT:
decided I'd like to share with you, how I modified my discoveries to make the brightness increase and decrease when called:

$ screenlight=`cat /sys/class/backlight/intel_backlight/brightness`; echo `expr $screenlight - 100`  | sudo tee /sys/class/backlight/intel_backlight/brightness

750

The 100 in here can be replaced with any suitable value for you, with 100 you would have approximately 10 brightness steps.

Now you can just map this command to a keyboard key or keyboard shortcut and you have a working screen brightness control on your laptop...


initramfs after installing ubuntu server 18.04 with LVM

I would recomend first and foremost against :

having all these mountpoints (/, /boot, /home, /tmp, /usr, /var, /var/log, SWAP). The moddern popular approach is / (30GB) and /home (the rest) and that's all. (of course if the BIOS and the OS support UEFI then first comes a 500mb EFI patrition, if you're in LEGACY, ignore this.

(As a personal preference I go / alone, but this removes the posibility of salvaging and reusing /home on several reinstalls of the OS)

Then I'd recommend agaisnt SWAP. especially in your senatio where your hardware (Intel Xeon x5560 8 cpu's x 2,8GHz and 150GB of RAM) indicates that it'll never see any use.

Lastly I personally recommend against LVM. If you don't really need it, you shouldn't care about it. It makes boot much more iffy, and in your case I think the issue came from too many mountpoints + LVM.

of course using it is at your discretion.


Try to specify a DISPLAY variable:

#!/bin/bash
sleep 30
export DISPLAY=:0
xinput set-prop "XP-PEN G430S Pen Pen (0)" --type=float "Coordinate Transformation Matrix" 1.155756, 0.000000, 0.000000, 0.000000, 1.529, 0.000000, 0.000000, 0.000000, 1.000000
echo "xinput command execution for $DISPLAY" | logger

Use $ echo $DISPLAY to find out what it is in your case.

After reboot you could check if your command have been executed:

$ journalctl -b | grep xinput | grep execution

If cron runs your script too early, you could add sleep 30 before xinput command to wait 20 seconds when your desktop environment would probably be loaded or create the next systemd service:

Create the new systemd tabletd.service:

sudo vim.tiny /lib/systemd/system/tabletd.service
sudo ln -s /lib/systemd/system/tabletd.service /etc/systemd/system/

Paste the next to it:

[Unit]
Description=Start tablet service
After=multi-user.target

[Service]
Type=simple
User=<youruser>
ExecStart=/home/<youruser>/scripts/tablet.sh
RestartSec=10s
Restart=on-failure

[Install]
WantedBy=multi-user.target

Enable and start the newly created service:

sudo systemctl enable tabletd && sudo systemctl start tabletd


Ubuntu 21.04 crashes with grub-install /dev/sda failed fatal error during install

This is probably because you didn't allocate enough space to your /boot partition. Try allocating more space (I would do at least a gig).


ubuntu drop to root shell prompt asks for password

If your hard drive isn't encrpyted (home folder encryption doesn't matter for this), boot into a live session and manipulate the file from there. Make sure to manipulate the file you find on your internal partition, not the one of the live system.


Finally after some more searching found the answer for my question on the disks gitlab page, provided by user advantes.

"Found it! I didn't pay attention before to the fact the Gnome Disk Utility is a graphical front-end for udisks. Searching the udisks source code I found the password at storaged-project/udisks:src/udiskslinuxdriveata.c#L1895. After some months with the HDD locked, everything good now.
Password used in ATA Enhanced Security Erase: xxxx"

Need to double check that info, will update this post after checking if it still works.

Kind regards,
Ł. Wolny


You have installed OpenJDK correctly. Java 8 and Java 1.8 are one and the same thing. It is just a naming convention as explained in this post on Quora.


I solved the problem:
At the next day, I rebooted the client and than it worked.
I cant say what happend. Sorry


Ubuntu recently renamed MokManager.efi to mmx64.efi, and added fbx64.efi (which just launches GRUB through a new path). rEFInd recognizes MokManager and handles it in a special way, and ignores some known-redundant boot loaders, but this renaming results in both of these programs appearing when they aren't necessary or should be handled in new ways.

I've fixed this problem and released it in rEFInd 0.10.6 -- but please use the latest version available (currently 0.10.7), since 0.10.6 had an unrelated bug that could cause it to hang on some systems.

After you install that and reboot, the fbx64.efi and mmx64.efi options should disappear from the OS list and a new key icon should appear on the second row for mmx64.efi (although that's a tool related to Secure Boot, so it's useless on a Mac, since Macs don't support Secure Boot).

Note, however, that the refind-install script will normally install an EFI filesystem driver for ext4fs, which will normally enable you to launch Linux kernels directly. The result will be one icon to launch GRUB and another to launch your Linux kernel directly. These are redundant, but they also launch Ubuntu in different ways, so there is some value to having them both available -- if one method stops working, the other may continue to work. If you don't want two options to be on the menu, though, you can remove one by deleting the EFI filesystem driver or by using dont_scan_volumes, dont_scan_dirs, or dont_scan_files in refind.conf. See the rEFInd documentation for details, and especially:

http://www.rodsbooks.com/refind/configfile.html
http://www.rodsbooks.com/refind/linux.html


Samsung Series 9 NP900X3A NO WIFI INTERNET

There is a problem with some Intel wireless cards (that use the iwlwifi driver) and the Wireless N implementation on some routers.  Often you can get the Wifi working well by simply disabling N.

You can try running the following commands.  If these work, download this script and run it each time you boot up.  You can set it up to run automatically if you'd prefer.  Run these:

lsmod | grep iwlwifi

If you don't get anything out, then you aren't using the iwlwifi driver and the following steps will not work unless you replace "iwlwifi" with the driver in use.

If you do get something back, run these commands:

# Put eth0 down
sudo ifconfig eth0 down

# Remove iwlwifi module
sudo modprobe -r iwlwifi

# Reinstert iwlwifi module with n disabled
sudo modprobe iwlwifi 11n_disable=1

If these work, there is a script here you can use for the future:  https://github.com/FreedomBen/handy-bash-scripts/blob/master/fixTheInternet.bash


I'm not familiar with Anaconda. What is it? Where did you download it from? You may not have gotten what you wanted.

If it's supposed to be a .deb installation file, rename it from .sh to .deb, right-click on the file icon, and see if Archive Manager can open it.

If it's a pure binary file, rename the file from Anaconda_blah_blah_blah.sh to Anaconda, and in the file manager (Nautilus), right click on the file, choose Properties, and under the Permissions tab, check the "Allow executing file as program".

postnote: according to the Anaconda download page, it says to do the following in terminal:

bash Anaconda3-4.1.1-Linux-x86_64.sh