Used up software Linux Downloads folder?

You have downloaded a .deb file; the next step would be to do sudo dpkg -i nameofdebfile.deb. If you have done that, the contents are moved elsewhere and it's OK to delete the .deb file. If you haven't, the OS is not using it.

As for the .ppd file: this was copied to a system location (under /etc or /usr) when you installed the printer. If the printer works fine, you can delete it.

Suppose you were not the only user of your computer. Somebody else might like to use that printer as well. So it wouldn't be logical to leave these configuration files in the private folders of a common user. As an administrator, with your sudo hat on, you placed them in a location that is "system-wide" and can be used by any user.


Batch Rename Using Regex but Mainaining Some Substring

A much easier way would be to just delete _door using rename:

rename -v 's/_door//' *

This searches for _door and replaces it with nothing, essentially deleting it.


If I am not mistaken boot sequence is like this:
Boot loader or uefi partition dispatches booting sequence to initramfs and vmlinuz (compressed linux running on tmpfs ram disk file system) in /boot
from there it loads your linux system and Xorg GUI ...

Details are here:
https://www.thegeekstuff.com/2011/02/linux-boot-process/

If you install on bios booting machine you install boot loader at the begging of MBR, to /dev/sdx and boot loader files to /dev/sdx1/boot

If you install on uefi , efi dispatches boot to /dev/sda1 (which is fat32 uefi partition 128-512 mb of size)  and the boot loader files are also in /dev/sda1/EFI/boot

So it seems impossible to have 2 boot loaders in bios mode. It is also not possible to use one disk both for uefi and bios as far as I know because uefi requires GTP partition scheme and uefi partition on it ...

sudo apt-get autoremove
sudo apt-get autoclean

moves unused kernels and their initramfs files also vmlinux files it usually keeps the newer one ... These are linux boot images not boot loaders there is only one boot loader. And in your case it seems to be grub ...


I ran into the same problem. Just to make sure I had all related PHP packages installed, I ran:

sudo apt install php libapache2-mod-php php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-mysql php-cli php-zip php-curl

After that I restarted apache2 which still did not do the trick. PHP 7.3 needs to activated fpr apache manually. You might have seen the following message:

Processing triggers for php7.3-fpm (7.3.8-1) ...
NOTICE: Not enabling PHP 7.3 FPM by default.
NOTICE: To enable PHP 7.3 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.3-fpm
NOTICE: You are seeing this message because you have apache2 package installed.

So, following the advice

a2enmod proxy_fcgi setenvif
a2enconf php7.3-fpm
service apache2 restart

and restarting apache2 was succesful in the end.
I hope this helps.


How do I access gparted during live usb installation.

To solve your problem, you need to get the Ubuntu installation disk you used to install Ubuntu on the USB and boot it up. Then, click on Try Ubuntu. When the desktop loads up, head over to the terminal and type in sudo apt-get install gparted gpart. If asked, hit y followed by return. Then, launch gparded with sudo gparted. After gparted loads, click on GParted on the top menubar, Devices, and the USB device you installed Ubuntu on. Then, unmount the partition by rightclicking on the partition and then hitting "Unmount". Then, right click again on the partition and click on "Manage Flags". Finally, click on the boot flag option and press close. The boot partition should now have the needed boot flag.


How do I get these virtual domains working in Tomcat?

I managed to get multiple instance working follow this link if you are looking to do the same.


It's partitionmanager . Take a look at this.


Booting to Windows from BIOS menu works, but booting to Windows 10 from GRUB gives error

I figured it out - I needed to burn a Windows ISO image to a DVD in order to get it to work. I tried multiple times through the USB Windows ISO I had and it never worked. From there, repair the windows install through GRUB and it worked from there.


How to restore lock screen option in settings?

try this:

    gsettings set org.gnome.desktop.lockdown disable-lock-screen false


Simple answer to close this thread off.  It should solve all xprintidle issues on Wayland or X when using Gnome!

You can run in the command line:

dbus-send --print-reply --dest=org.gnome.Mutter.IdleMonitor /org/gnome/Mutter/IdleMonitor/Core org.gnome.Mutter.IdleMonitor.GetIdletime

If you want just the integer value then you can use python3...

import subprocess

def get(cmd):
        return subprocess.Popen(["/bin/bash", "-c", cmd], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)

get_idleTime = "dbus-send --print-reply --dest=org.gnome.Mutter.IdleMonitor /org/gnome/Mutter/IdleMonitor/Core org.gnome.Mutter.IdleMonitor.GetIdletime"

idleTime = int((get(get_idleTime)).communicate()[0].rsplit(None,1)[-1])

print(idleTime)


Deactivated wifi drivers, now they won't activate again on a Dell Mini 10v?

OP posted:

  After deciding to reinstall few hours ago I just did something similar, I plugged in my ethernet cable and ran sudo apt-get install bcmwl-kernel-source and it fixed it straight away. Thanks to the two of you above who tried to help.


I am not familiar with bumblebee but anyway take a look to these tools: TLP, lm_sensors and indicator-cpufreq. All of them easy to google and handy in use for contolling speed and temperature of your cpu.

And btw I suppose you using latest distro? Because very old distros (with kernel < 2.3x) had problem with pcie_aspm parameter on latest hardware which may cause increasing temperature.


How do I pin a window that is opened by another command?

It took me a while before I understood what you actually meant, but here is the answer:

Missing WM_CLASS

When you say:

"when I click on it in the Dash, it opens first the actual μTox process, but that then hides itself and opens a different window called μTox (Alpha) (version: 0.8.1)"

...it is a small misinterpretation of what is happening; there is no second process, but the launcher you created and the application do not "meet" each other in the Unity Launcher. In other words: the home-made launcher does not recognize the window, μTox is calling, as "his".

How to solve

You can simply solve it by including the WM_CLASS to your launcher, so it will correctly recognize the μTox -window:

StartupWMClass=utox

A simple launcher that worked fine here:

[Desktop Entry]
Name=Some Tox
Exec=/home/jacob/Downloads/utox
Type=Application
StartupWMClass=utox

Of course you need to replace the path in the line Exec=/home/jacob/Downloads/utox

...But you might want to include an icon. If so add the line:

Icon=/path/to/toxicon.png

...and your issue should be solved :)

How to find the WM_CLASS?

Open a terminal, type

xprop WM_CLASS

Press Return and click on the μTox window.


The easiest thing to do in the case of an interrupted install is just to start over as trying to fix a partial install will lead you into dependency hell.

Therefore:

Boot again from USB
take "something else"
Re-format the EXT4 partitions you created taking care not to remove your Windows partitions
let the install finish while the toddler is sleeping.


I suggest you to use virt-manager package for KVM/QEMU virtual machine GUI management tool.

To know how to install it please follow the guide in this post on askubuntu


I have the same problem before. The way I solve it is about the setting issue. Your internal (eth0) interfaces setting in the clusters page is not correct. In your case, the location is http://172.16.1.128/MAAS -> Clusters (on the top) -> choose your cluster -> Edit your Internal port at Interfaces -> Change your IP.
Your IP should be 172.16.1.128. After I modifying the setting, I don't have this issue anymore.


Is there a way to add repo to Snappy ubuntu core?

No, at the moment all you see is all you get. Snappy has just been launched, and it will take some time before applications get packaged for it.

As you can see, APT is not installed, and if you try to use apt or apt-get, you will get this message:

Ubuntu Core does not use apt-get, see 'snappy --help'!

snappy is the new package manager, and that is the one that you should use. In particular, snappy does not have the concept of 'repository': i.e. all packages come from the same source.


My PS3 controller malfunctions when I connect it to my laptop

This has been solved by reinstalling Steam: Steam conflicted with controller input and after reinstalling this it works fine.


What's the Ubuntu equivalent of Active Directory?

You will probably want to create an OpenLDAP server for clients to authenticate against. Webmin is just a frontend (or rather, it has a plugin that is a frontend) to LDAP.
I didn't really find a good GUI frontend for OpenLDAP (if that is what you are looking for).


Test if operating from live session or not inside a shell script

There are many distinguishing features between a live session and normal session. At the first shot it comes in my mind that there is no real user in a live session. One can exploit this.

So, there would not be any gid greater than 999 in /etc/passwd corresponds to any real user except nobody user.

$ awk -F: '($3>=1000){print $1}' /etc/passwd
nobody

The following script should work,

#!/bin/bash

var=$(awk -F: '($3>=1000){print $1}' /etc/passwd | wc -l)
if [[ $var -gt 1 ]]; then
    echo "normal session"
else
    echo "live session"
fi


You can create an alias of the full command by running the following in the terminal:

alias viber=/home/nazar/Software/Viber/Viber.sh

Now you can run the script by just typing viber.

Note that this will be working for the current session of the shell only. To make it permanent save it in ~/.bash_aliases (or ~/.bashrc):

$ echo 'alias viber=/home/nazar/Software/Viber/Viber.sh' >> ~/.bash_aliases
$ source ~/.bash_aliases

The first command will save the alias permanently in ~/.bash_aliases, the preferred file to save aliases. It will create the file if not exists already. The second command will make the alias working from the current shell session.

An alternate method is to create a symbolic link of the executable script in the /usr/local/bin or /usr/bin directory(given they are in your PATH environment variable).

sudo ln -s /home/nazar/Software/Viber/Viber.sh /usr/local/bin/viber

As the directory is owned by user root and group root, make sure /usr/local/bin/viber has execute permission for all others (a+x).

By using any one of the above methods, you can run the script by simply typing viber.


Without more information about your video card and Xorg setup, the only thing that comes to mind is bad video drivers.

If you don't mind using the proprietary drivers, look here:
https://help.ubuntu.com/community/BinaryDriverHowto/ATI
https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia

If you prefer the free drivers try this:
https://help.ubuntu.com/community/BinaryDriverHowto

After having read (one of) those, feel free to update your question and post your progress. I'd be willing to lend you a hand (but not hold your hand).


How to convert .lit files in other formats?

Calibre is what you are looking for! It can also handle your whole library.

Search for it in the Software Center and install it.
Then - once you started it - add your .lit files to the library.

Now you can convert your books into other formats, readable by your new e-reader:

First select a book in the list you want to convert and click on Convert books.
In the new window that pops open, you'll have multiple possibilities to the final resulting eBook.
The most important part though is the output format in the upper right corner - by default it is set to EPUB - change it to the needed format.

Play around with this little piece of software, try different settings, etc.

This only works for non-DRM eBooks!


Why does Users Theme Extension not show up under Gnome Tweak Tool?

Comment converted to an answer

After installing the user theme extension, you should restart gnome-shell. Only then would the extension show up in the GNOME tweak tool.

To do that, press Alt + F2 and enter r in the dialog box. Now gnome-shell would restart and the extension will show up in the tweak tool.


No command 'update' found, what should I use instead?

That's not a command. You have to edit the /etc/initramfs-tools/conf.d/resume file and replace the UUID (the big string with letters, numbers and "-") with the one you got in the previous step.


How to do a simple mathematical operation on all lines of a specific column?

Assuming nvo.gro is single tab delimited, (if it's not, run it through tr -s ' ' '\t'), and the num-utils package is installed:

paste <(cut -f -8 nvo.gro) <(cut -f 9- nvo.gro | numprocess /+.5/)


I would set up your disk using LVM2 so you can make virtual partitions and resize them as you need. Logical volumes are easy to set up, remove and resize. Without the hassle that ordinary partitions have, like you have set up now.  I would also consider using quota systems in the file system instead of different partitions. File system doesn't matter that much, use ext4 would be a safe bet.

As to sharing file systems I would look into Samba and NFS. Samba for MS Windows machines and NFS for Mac and Linux.

Media, I have no clue as I never used Plex.


Will the new Unity desktop be programmed in Qt?

Unity is built using some GNOME technologies like GTK and gmenu, and some other technologies that are not officially part of GNOME, such as Compiz, Zeitgeist, Software Center, and other bits from the Ayatana project.

However for people who use older hardware or have driver problems the Unity 2D interface will be available in 11.04 and is programmed in Qt.


How can you add an additional static IP to a DHCP configured interface with network-manager?

This can be achieved with the network manager CLI. Eg:
nmcli connection modify "$PROFILE_NAME" +ipv6.addresses fc00:b:c:0::5/64 +ipv6.routes 'fc00:b:c:1::/64 fc00:b:c:0::1'

Once the profile has been modified reactivate the profile with:
nmcli connection up "$PROFILE_NAME"

Check the result with ip -6 addr and ip -6 route.


get an ubuntu .iso image.
use any program to write the iso to your usb drive
reboot through your usb drive
you will get a screen having title ubuntu
select install on hard drive
follow the steps of installation
reboot, this time ubuntu on your bootloader.


run terminal window and execute as root or with sudo below command without quotes "apt-get -f install" or "dpkg-reconfigure -a". This usually solves problem with broken upgrade, and no, they will not eat your files :)


With Optimus enabled and OS detection on in the BIOS, I've got 2 external DVI connected monitors (docking - Nvidia card) and the laptop LCD (Intel card) to work. I did also get the VGA (Intel card) on the docking working, but was not able to not have it as a clone of the laptop LCD.

Here is my xorg config with Xinerama enabled:

Section "ServerLayout"
    Identifier     "Layout0"

    Screen      0   "ScreenNvidia0" 0 0
    Screen      1   "ScreenNvidia1"  RightOf "ScreenNvidia0"
    Screen      2   "ScreenIntel"    RightOf "ScreenNvidia1"

    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "true"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "MonitorNvidia0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     50.0 - 63.0
    Option         "DPMS"
EndSection
Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "MonitorNvidia1"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     50.0 - 63.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "MonitorIntel"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 81.0
    VertRefresh     50.0 - 63.0
    Option         "DPMS"
EndSection
Section "Device"
    Identifier     "DeviceNvidia0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "1:0:0"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
    Screen         0
EndSection
Section "Device"
    Identifier     "DeviceNvidia1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "1:0:0"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
    Screen         1
EndSection

Section "Device"
    Identifier     "DeviceIntel"
    Driver         "intel"
    BusID          "0:2:0"

       Option          "monitor-VGA1"  "VGA1"
    Option          "monitor-TV"   "TV"
    Option          "monitor-LVCD1" "LVCD1"
Option "Clone" "off"
EndSection

Section "Monitor"
    Identifier      "VGA1"
EndSection

Section "Monitor"
    Identifier      "LVCD1"
    Option          "DPMS"
EndSection

Section "Monitor"
    Identifier      "TV"
    Option  "Ignore" "false"
EndSection

Section "Screen"
    Identifier  "ScreenNvidia0"
    Device      "DeviceNvidia0"
    Monitor     "MonitorNvidia0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1920x1200"
    EndSubSection
EndSection

Section "Screen"
    Identifier  "ScreenNvidia1"
    Device      "DeviceNvidia1"
    Monitor     "MonitorNvidia1"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1920x1200"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "ScreenIntel"
    Device         "DeviceIntel"
    Monitor        "MonitorIntel"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1900x1200"
    EndSubSection
    SubSection "Display"
    Depth 24
    Modes "1920x1200"
    EndSubSection

EndSection

In the "DeviceIntel" section is my last attempt to get more than one monitor on the Intel card.

Here is an extract of my "lspci":

$ lspci |grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: nVidia Corporation Device 1057 (rev a1)


"cd" redefinition causes infinite loop in bash

Unless you have a directory named $'2\n' in your current directory, I don't understand it.

The syntax *(pattern) is an "extended globbing" pattern (ref) that returns zero or more of the given pattern. Given your pattern (a 2 and a newline) I would expect that to return null. And then calling your function with no arguments should simply cd to your homedir.


Ok, so thanks to  @Brian I have resolved the issue.
ripgrep has a built-in ignore logic, automatically ignoring the files it finds in .gitignore.
To save my dotfiles via git, I had setup a repository in my home directory, which by default ignores all files except the ones that I add using git add -f ....
I.e. in my .gitignore file in the home directory I ignore all (*) files, which then in turn caused ripgrep to ignore them as well.
I don't think that all too many will experience the same problem, but maybe this will help someone someday.


Ubuntu 18.04 not working with Intel Integrated Graphics

If I understand correctly, your first wish is to run on the IGD exclusively, then sort the remaining issues.  The following steps should achieve the first goal to increasing degrees of thoroughness.

Check for improvement after each step, and stop when it works.  Don't needlessly blacklist the kernel modules, as this could mean the discrete card won't be powered down. In fact, you may want to swap steps 3 and 4.

1. Configure Xorg to prefer the Intel

Create file /etc/X11/xorg.conf.d/10-intel.conf (this may require mkdir /etc/X11/xorg.conf.d), containing:

Section "OutputClass"
   Identifier "Intel"
   MatchDriver "i915"
   Driver "intel"
EndSection

2. Disable modeswitching out of IGD

Edit /etc/default/grub and add xdg.force_integrated=1 to GRUB_CMDLINE_LINUX_DEFAULT. When done, run sudo update-grub before rebooting.

3. Blacklist the nouveau kernel driver

Edit /etc/default/grub and add modprobe.blacklist=nouveau to  GRUB_CMDLINE_LINUX_DEFAULT. When done, run sudo update-grub before rebooting.  (For AMD blacklist radeon, amdgpu, etc..)

4. Uninstall the Xorg nouveau driver

sudo apt remove xserver-xorg-video-nouveau  # or radeon, amdgpu ...

This will trigger removal of the xserver-xorg-video-all meta-package, which by default is installed. That is alright, but you may want to keep xserver-xorg-video-intel installed (but see update below):

sudo apt remove xserver-xorg-video-all
sudo apt install xserver-xorg-video-intel

Update 2019 the package description for xserver-xorg-video-intel now recommends against installing the package.  It should only be needed on old (pre 2007) hardware.

Note: this is an edited copy of my answer to this question, which may have useful pointers for your follow-on steps, as it is about resolving issues with the discrete card.


If you are sure your installation of Ubuntu completed,

remove live usb and change the boot preference order.


I've seen these symptoms before, and typically it indicates that the controller is having trouble writing to the disk, most likely because that disk is bad.  Sometimes it is due to a fall, other times, just a bad batch of disks. Also please let us know if you have recently tweaked a BIOS setting related to disks, like AHCI/Legacy mode or similar. I recommend using an external tool to diagnose your disk issue.

1) Back up everything important off that disk.  Do not wait.

2) Get Parted Magic - the last 'free' version is 8/2013.  I've seen it on Major Geeks, or you can contribute to Patrick and get the latest version at partedmagic.com.

3) Burn it to a CD or use UNetBootIn (on Linux/Windows) or Rufus (Windows Only) to write it to USB.  I recommend USB. But please don't use the one you backed your stuff up on from step one, because this requires a USB format.

4) In Parted Magic, use the GSmartTool to identify if your disk is dying.  If any attributes are pink, it is probably time to replace the disk.  Especially reallocated sectors or Read/Write failure.  Don't wait for a SMART error from the BIOS.  I've only seen one in 20 years of working on computers.

Good luck!


If I were you I would create a single partition on the SSD, format ext4 and mount it at /,
create a single partition on the HDD format ext4 and mount it at /home. You will likely have to play with the BIOS options to turn off SecureBoot and/or UEFI as well as choosing the SSD as the Boot device. Install grub into the MBR of the SSD


Why does apt-get keep waiting for headers on Oracle repository?

What I think is causing the problem:
The problem is that oss.oracle.com enforces use of HTTPS which is a good thing. The bad thing about it is that the certificate that is being used isn't considered trusted (either because it's expired or is self signed etc).

Proposed solution:
If I knew how to make apt accept all HTTPS certifiates, I'd post that here as a solution (but I'm still search myself for info on how to do this).

After some digging:
I did find out how to make APT not verify certificates: Acquire:https::Verify-Peer false; but that didn't help.

The workaround:
Regardless, I downloaded the deb files manually and installed them. It's an old version of Oracle Express and I can't get it to run on a virtual Debian Squeeze machine. I'm giving up on trying to use this deb archive.


There was a bug reported - https://bugs.launchpad.net/charm-containerd/+bug/1883663
The fix is released in Rev88 of Containerd Charm.
command juju upgrade-charm containerd upgraded the containerd app on all the nodes in the mode, which fixed the issue.


Accidentally deleted all partitions, how can I restore the operating systems?

Sounds like you installed grub on the master boot record.

You will need to run
    fixmbr or fixboot
from a windows 7 recovery command prompt (located under repair my computer on windows 7 install disc). This will remove grub from the master boot record. You will then be able to re-install windows.


Ubuntu 19.04 LTS - Displaylink before LUKS drive encryption password

One solution or a work-around is not to use password asked on prompt on screen, but a key file on USB key/SD card/whatever, for example.

The boot will automatically find the key on USB to boot. Then, you remove the key once boot is finished (by umounting if need be).

You can either use a binary key hidden in post-MBR gap of a MBR key or a file in a fs on the key.

I don't know the details of your install so I can't guide you through this; and I don't know well the full -encryption setup in ubuntu either.


How can I change the encoding of a subtitle file?

For subtitle edition/translation (text-based subtitles, that is), I strongly suggest Gaupol.

sudo apt-get install gaupol

Besides of gaupol, you can also try Subtitle Editor and Gnome Subtitles.

However, from the screenshots, it is clear that your .srt file is not encoded in Unicode.

As it turns out, iconv does change the encoding of the file to UTF-8, but the converted file will still have the same characters you see when opening in Gedit.

The solution I found is this:

Open Gaupol and go to menu File → Open or click on the button Open.
There is a selection menu in the lower part of the open window, titled Character encoding. Click on Other... (last option).

Select an appropriate encoding for your file, e.g. Greek ISO-8859-7, and click on the button Accept.

Now open your .srt file and make sure all characters are correctly rendered. Otherwise, repeat the above procedure with another encoding. You can run the command file -bi yourfile.srt to determine the correct encoding of your file (although I've read the results are not necessarily exact).
With your subtitle file open in the correct character encoding, now go to the menu File → Save as... and change the character encoding option (again, at the bottom of the window) to UTF-8 and save the file (possibly with a new name, for safety).

This same procedure of adding the codepage will work for Gedit. Yet I leave the instructions for Gaupol since this question is about subtitle files.

Good luck.


How to disable the default action of the right alt key in gnome

How I solved this:
'Settings' -> 'Devices' -> 'Keyboard' -> 'Windows' -> 'Move Window' and set this to 'Disabled'.
Before it was set to 'Level3 Shift'.


Saving SSH shell links in launcher like putty

Access of list of your favorite SSH servers quickly.

Create a new file with gedit, in the Terminal type:

gedit ~/.local/share/applications/ssh-launcher.desktop

Copy & Paste this text into the above file:

[Desktop Entry]
Version=1.0
Name=Remote Servers
Comment=Login to my servers
Exec=gnome-terminal --disable-factory --sm-client-disable --class=remoteserver -x ssh -t minibox.local
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=utilities-terminal
StartupNotify=true
StartupWMClass=RemoteServers
X-Ayatana-Desktop-Shortcuts=Server1;

[Server1 Shortcut Group]
Name=SSH into minibox.local
Exec=gnome-terminal --disable-factory --sm-client-disable  --class=remoteserver -x ssh -t minibox.local
TargetEnvironment=Unity

Comment=You can create more of these. Just add to X-Ayatana-Desktop-Shortcuts a "Server2", "Server3" etc, then change the domain name (in this case, "minibox.local") to the name of your server. You'll also notice that the default action (When you just click the icon in the launcher) is to SSH into minibox.local - you'll need to change that to your most used server.

Drag and Drop onto the launcher by navigating to
~/.local/share/applications/ in
Nautilus.

Source 1, Source 2

 (From an answer by Jorge Castro, Nik and Cas)


Compare two files, show lines in file1 but not in file2

Sort each file
Use comm with the -23 option to show what's not in common, only the lines in file A which are not in file B; comm -23 fileA fileB


Why does my grep -E command not work with a regex pattern containing a lookbehind?

Lookaheads and lookbehinds are not part of the Extended Regular Expression (ERE) syntax. You need Perl-compatible regular expressions (PCRE) using the -P option.


Ubuntu 10.04 - Problem creating Xorg.conf for DualView

You have to stop xserver first. The procedure goes something like this:

Switch to tty1 by pressing ctrl-alt-f1
Become root: sudo -i.
Stop xserver: service gdm stop.
Run Xorg -configure.

A config file will be written into /root/xorg.conf.new. Copy that to the proper location.

Copying: cp /root/xorg.conf.new /etc/X11/xorg.conf
Restart xserver: service gdm start
Exit from root: exit
Return to tty7: ctrl-alt-f7.


Steam game: Adventureland, flickers to a black screen and is unplayable

I found this:
https://adventure.land/linux

It has directions for what to do in the event on black screen.

I ended up opening the game on Steam on a Windows device, activating the game, and then I could simply log in on my browser.


Mount a directory in another partition as /home directory

Instead of adding /dev/sda10/ubuntu /home ext4 nodev,nosuid 0 2 to your /etc/fstab you can add these two lines:

/dev/sda10 /all-homes ext4 nodev,nosuid 0 2
/all-homes  /home none bind 0 0

You need to make the directory with sudo mkdir /all-homes and be sure that there is no other fstab entry that mounts in /home

The bind type in fstab (and as an mount option) makes the kernel "mirror" one folder in to an other and it seems to me that what just what you wanted (btw this approach should work on all modern linux's, as far as I remember from kernel version 2.6 and forward..)


SOLVED:
git clone https://github.com/joseluis/huion-linux-drivers.git

That's it, it started working for me.


Remap Fn key to Insert key on Apple aluminium keyboard

The simple answer is: you can't remap Fn key.

The long answer...

The purpose of Fn (short for function) key  is quite different: for example to change display or audio settings quickly, such as brightness, contrast, or volume, and is held down in conjunction with the appropriate key to change the settings. When you press only the the Fn key, this doesn't send any data to the computer and for this reason xev can't detect it.

According with this post, in general there is no way to know that Fn was pressed and the keycode of key-combinations including Fn depends on the individual keyboard design.

So unfortunately, you can't remap it to another key.

More about: http://en.wikipedia.org/wiki/Fn_key.


Trying to install Ubuntu Touch, what is sources.list?

Just use the command:

sudo add-apt-repository ppa:phablet-team/tools

Thus, is not necessary to edit manually sources.list which is located in /etc/apt directory.

From https://help.ubuntu.com/community/SourcesList:

  The sources.list file is a key factor in adding or upgrading
  applications to your Ubuntu installation. This is also used by your
  system for system updates. The file is basically the roadmap for your
  system to know where it may download programs for installation or
  upgrade.

Also, in the future when you hear about a file and you don't know exactly where is located, you can use the the following command ion terminal to find it:

locate file_name


I can't find ./usr/bin/wine executable after I installed it

This is a known bug.

https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/852101

Workaround:

reinstall libc6-i386 by running: sudo apt-get install --reinstall libc6-i386


Unable to open local .swf in any browser

In order to make it work in Firefox:

I followed the steps written in https://askubuntu.com/a/555559/286232
I executed
sudo apt install --reinstall flashplugin-installer

and it worked.


What is a simple, free SOAP client (GUI)?

You can still use SOAPUI.

Download the installation script and save it on the disk.
then either

from a terminal

cd /path-to-directory-where-you-downlaod-it
sudo chmod +x soapUI-x32-4_0_0.sh
sudo ./soapUI-x32-4_0_0.sh

Or if you don't like command you can do it graphically:

Right-click on the downloaded file, select Properties, go to the Permissions tab and Allow to execute as a program.

Once that is done double click on the .sh file and select 'Run in terminal' or Run

Then follow step by step instructions to finish the installation.

source

Alternatives

Membrane SOAP Client is a generic SOAP client written in Java. It provides a dynamic form generator for SOAP requests.

source
You can use jmeter  a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions. Jmeter is in the Ubuntu repositories.

getting started


It's probably not the best way, but the way I do it is to let Windows have it's way and install, hiding Ubuntu from me in the process. Then I switch off and reboot into Super Grub Boot Disc. This finds all the OSs, including Ubuntu, and so I choose Ubuntu to boot into, and then just re-install Grub. It works at least. You need to burn a copy of S-G-B-D, but it's very handy to keep in your toolkit anyway!!


How to set up Apache, MySQL Servers (Ubuntu 12.04 LST)

Check this out. LAMP means "Linux Apache MySQL, PHP".

http://www.howtoforge.com/ubuntu_lamp_for_newbies


Interacting with a linux input kernel driver from userspace

You need to implement character device injected into the kernel standard input subsystem. Please check this book. The read(), write(), ioctl(), etc. are typical char drivers operations, any char driver has at least open() and close().
 Anyway, what subsystem of kernel did you use in your last driver version? Most useful way for any kernel development is to read related documents in Documentation/ of kernel sources directory and read the kernels drivers code of area related with your tasks.


want to change Maximum Upload Size of owncloud on Ubuntu 14.04

If you're on the latest Owncloud log in, click your username at the top right and then press 'Admin'. If you scroll down you will see 'File handling' and you can change the max upload size there.

If this box is grayed out, ssh into your web server (or open a terminal to whatever system is running the web server) and type:

sudo chown -R www-data:www-data /var/www/owncloud

Afterwards repeat the steps above and find 'File Handling', you should now be able to change the max upload size.


I was having a similar problem with Deja Dup using my public IPv6 address. I solved it by changing /etc/hosts to this:
127.0.0.1   localhost
127.0.1.1   computerName
::1         localhost ip6-localhost ip6-loopback

The backups are now getting named properly to computerName and no longer changing.
Related links:
Backup stops because of claim 'Computer name changed', which is it not true
Deja Dup resolves host name incorrectly, adds ISP hostname


Kxstudio installation errors in Ubuntu 17.10

Use the repositories rather than downloading .deb

There is a detailed page on how to do this here - http://kxstudio.linuxaudio.org/Repositories

And for your missing package:

  All Debian and Ubuntu users can enable our repositories by installing
  this deb file: kxstudio-repos.deb

And instructions

# Install required dependencies if needed
sudo apt-get install apt-transport-https software-properties-common wget

# Download package file
wget https://launchpad.net/~kxstudio-debian/+archive/kxstudio/+files/kxstudio-repos_9.4.6~kxstudio1_all.deb

# Install it
sudo dpkg -i kxstudio-repos_9.4.6~kxstudio1_all.deb


Is there an unzipped Ubuntu 11.10 available for download?

You do not have to decompress the .ISO file to install it on a USB drive.
Go to this web site and download the USB pendrive installer
USB installer

You did not say if you were using Windows or not. This little guy should do the trick.


How to integrate Pidgin and Evolution into the message indicator?

This is likely related to the bug: https://bugs.launchpad.net/ubuntu/+source/indicator-messages/+bug/1040259

In 12.10, the libindicate API was deprecated and a new API was introduced (libmessaging-menu). If you look at the bug page, many applications are in the process of being ported to this new API, including Evolution and Pidgin.

Looks like the Pidgin bug is in progress at least, so we'll have to wait this out.


You can use the twofingers scroll, but in my case the scroll wasn't very smooth and usually the page go up to top and down to bottom too fast when you scroll..

I found this to have a perfect and smooth (only vertical not horizontal) scroll:

http://forum.ubuntu-it.org/index.php?topic=416075.0

Pratically you can load the mouse module like the way ubuntu 10.04 did with this:
(plug an external mouse becasue the touchpad will disconnect after the frist command..)

sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps

The two fingers scroll will work until the reboot, to have permanent change write:

gksu gedit /etc/modprobe.d/options

then write on the file just opened:

options psmouse proto=imps

Save and reboot your pc..

This will load the psmouse module like ubuntu 10.04
(this worked for me after loooong searches..)

But i don't know if this will fix edge scroll too..


Unable to install anything on Ubuntu 14.04

Delete that "format" file, or if you're paranoid, back it up (move it to the RAM disk):

sudo mv /var/lib/dpkg/info/format /dev/shm

Mine only contains the number 1 and a carriage return (\n), resulting in a two byte file. You can create this from the command line:

sudo printf "1\n" > /var/lib/dpkg/info/format

If it fails, then simply restore your backed up "format" file over the top of the new one you created.

sudo mv /dev/shm/format /var/lib/dpkg/info/


Ubuntu Desktop vs Ubuntu Server for development

Are you developing using a GUI or not?

If you're developing on a computer where you need/want a GUI, such as Gnome/KDE, you'll need Ubuntu Desktop.

Ubuntu Server is the same as Ubuntu Desktop (even uses the same repository), but it doesn't have a GUI, and is a much more minimal install, with less overhead, primarily meant for computers that will be servers (e.g. a webserver).

Also, instead of downloading packages from sites, just use apt-get to install packages from the main repository. If needed, you can find other repositories with deb packages on launchpad.net, and add the repository (looks like ppa:abc/123) with the command add-apt-repository.


Why is Ubuntu 16.04 so slow to boot on my Dell Inspiron 6000?

Ubuntu 16.04 comes with systemd as the start-up manager.

The following command can show you all the startup services of your system from longest to shortest to help you determine what can be causing your slow boot:

systemd-analyze blame

Here is an example output of that command:

terrance@terrance-ubuntu:~$ systemd-analyze blame
          5.077s NetworkManager-wait-online.service
          3.921s postfix.service
          1.806s winbind.service
          1.789s nmbd.service
          1.540s samba-ad-dc.service
          1.405s dev-sde1.device
          1.393s fail2ban.service
          1.222s upower.service
          1.210s accounts-daemon.service
          1.169s vmware.service
          1.034s smbd.service
           895ms apt-daily.service
           797ms media-500GB.mount
           768ms media-250GB_SHARE.mount
           762ms ModemManager.service
           758ms networking.service
           683ms media-Seagate.mount
           639ms NetworkManager.service
           592ms vboxdrv.service
           578ms media-320GB.mount
           453ms grub-common.service
           450ms gpu-manager.service
           420ms vmware-USBArbitrator.service

Hope this helps!


The simplest option is to try to use the backup GPT table. This is stored automatically on the disk. The gdisk utility can do all of this for you. Simply load as normal,

# gdisk /dev/sdb

And enter the recovery and transformation menu (r), and option c to load the backup table. If it's successful you can write the correct table back out again. It won't write anything until you tell it to.


Bionic Beaver Install Python 3.7.1 with pyenv

install missing build tools

sudo apt-get install build-essential git libreadline-dev zlib1g-dev libssl-dev libbz2-dev libsqlite3-dev libffi-dev

then install python 3.7.1 via pyenv

pyenv install 3.7.1

not to be cocky, but you're probably just missing libffi-dev


Whenever I install Ubuntu it says please use a kernel appropriate for your CPU

I've seen similar messages when attempting to install Ubuntu on hardware with a processor that doesn't support physical address extensions.  This can also happen when attempting to install a 64-bit image on 32-bit hardware.

If the issue is PAE-related, you can attempt the steps outlined in the linked documentation.

The first step is to attempt adding the kernel flag forcepae to the kernel boot options
If this doesn't help, since modern Ubuntu releases no longer support non-PAE hardware, you can try some options the documentation recommends, such as Xubuntu 12.04, nOS, Bodhi Linux, Lubuntu 12.04, or Puppy Retro.  The linked documentation also provides some more difficult steps you could potentially take to get Ubuntu 12.04 installed.


Cant install Ubuntu 12.04.4 on Lenovo T61 Nvidia Quadro NVS 140M

I have been experiencing similar graphics glitches on the exact same computer model (as described in https://askubuntu.com/questions/400044/nvidia-x-server-flickers-hangs-and-segfaults-on-start-up).

The gist of it is to try to find a way to not use the Nvidia proprietary drivers, but some fallback driver, in the hope to switch on the display. Also try to use older kernels when possible (they seem to behave better with older hardware).

Alternatively, you could use the Alternate install CD. For Xubuntu, the .iso image that you'd need to download would be called xubuntu-12.04.3-alternate-i386.iso. The advantage of this image is that it doesn't require to load X to allow you to perform the system installation. Once the system is installed, you can use the workaround described in the above question to load X.


Lenovo G50-80 laptop: cooling fans are working for almost all the time

When it comes to sensors most of the "extras" it reports are for desktop systems.

For my two laptops all I have seen so far are in cat /sys/class/thermal/thermal_zone*/temp:

27800
29800
71000

For thermal zones 0, 1 & 2 which sensors also reports. In this case Thermal Zone 0 is incorrect which Conky also reports. It's a glitch in my system I haven't figured out yet but the last one Thermal Zone 2 is accurate.

As far as your fan running at full speed your kernel boot parameters are:

BOOT_IMAGE=/boot/vmlinuz-4.4.0-36-generic.efi.signed root=UUID=b606c0de-3f11-439e-bdd2-c17579566c57 ro quiet splash acpi_enforce_resources=lax vt.handoff=7

The parameters of note are:

ro - read only
quiet - don't display system messages overtop of splash screen.
splash - display a splash screen with plymouth (Ubuntu logo with
moving dots usually)
acpi_enforce_resources=lax - Run fan at full speed (as best I can
figure)
vt.handoff=7 - keep messages flowing from boot to terminal screen
(which are controlled not to appear anyway with quiet and splash options
earlier).

The first step is to remove the acpi_enforce_resources=lax kernel parameter.

In the terminal type:

gksu gedit /etc/default/grub

Search for this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_enforce_resources=lax vt.handoff=7"

Erase the acpi_enforce_resources=lax and save the file. We don't have to write down what we are erasing because AskUbuntu is our giant notepad.

Back at the terminal prompt type:

sudo update-grub

Now reboot your laptop and report back on progress.

Edit 1:

Removing the =lax variable didn't change the fan setting. Now the next step is to tell your Lenovo that ACPI is supported. Some laptops look for Windows and if it doesn't see it doesn't implement ACPI services (such as fan control). We'll tell your laptop Windows is running and turn over control to Linux. On the same Kernel Command line add the option acpi_osi=Linux before the vt.handoff=7

Now your line looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=linux vt.handoff=7"

Once again update grub and reboot.

Report back on progress.

Edit 2:

After much searching I came across someone who has ten Lenovo G50-80 laptops and one of them had the same problem: Cooling-fan-stays-on. Tech support first advised to upgrade the BIOS to the current version (now it is # B0CN99WW dated August 25, 2016). The user had updated the BIOS and problem persists so he returned it for a new one.

BIOS (Basic Input Output System) contains the ACPI (Advanced Configuration and Power Interface) discussed above.

If your fan works properly in Windows then checking compatibility with Linux is the next step. You can google the question but no answers come up. You can check: Ubuntu certification Lenovo but as of today The G50-80 model doesn't appear on the list.

With any luck another Lenovo G50-80 user will be able to offer advice.


Other than reinstalling the global menubar, each program you use has it's own settings for their menus (the "app menus").

Terminal
Right click and de-select "Show Menubar"

FireFox
Go to ▸ View ▸ Toolbars ▸ Menu Bar

VLC
Right click ▸ View ▸ Minimal Interface

Nautilus
(File manager) Not possible in current versions.


How to create a shared repository in dumb server mode in Bazaar?

bzr init-repo sftp://server/tmp/repo

rsyncing it up should also work.

Yes if you push two branches into the same repository then they revisions will be stored in the repo and will not need to be pushed again (unless you hit a re-pack which happens from time to time and that will cause it to be uploaded again).
So sftp can be slow with big branches. If you see that it is too slow, you can try out bzr+ssh:// which requires bazaar to be installed on the server. It may be possible to install bazaar in the user's home directory.


Firefox always restores windows and tabs after reboot

Normally Firefox will Restore the Session even if you don't have that option selected if it crashes.
Try to open Firefox and select Quit from the menu.
Is possible that you have a plugin that is making crash Firefox on exit.
So before Rebooting KDE, make sure to Quit from Firefox. It should start clean the next time.
Update: Add the link to all the situations where Firefox reopen the open Tabs: https://support.mozilla.org/en-US/kb/restore-previous-session


14.04 Loud Constant Fan After Upgrade - Thinkpad W500

What I ended up doing was reinstall 14.04 but this time I did not update - this is not optimal but the fans are quiet again.


Installing BSNL UTStarCom 300R2U ADSL2+ Modem via USB port

If the DSL modem is not immediately recognize as an Ethernet interface when you plug it in (or when it's started an initialized and all), there's not much you will be able to do. This will probably require extra work to have a kernel driver support the modem since there is no ethernet interface exported and not serial device.

With no serial device (like ttyUSB0 or something), you won't be able to use wvdial either.


Get (last) CUPS printer error programmatically

For python, there is the pycups lib. I needed to install libcups2-dev (on Debian 9) to successfully install and compile it. The PyPi page example (https://pypi.org/project/pycups/) is pretty straightforward:

import cups
conn = cups.Connection ()
printers = conn.getPrinters ()
for printer in printers:
    print printer, printers[printer]["device-uri"]

For what you need, I believe that the relevant info is:

printer-info: Printer name

printer-state: numeric representation of the state.

printer-state-message: a string, informing the state.

printer-state-reasons: a list of strings.


Check that the download was OK with md5sum in a terminal window

Code:

md5sum filename.iso

Use the real filename of the downloaded iso file instead of 'filename' in the command. You can find the md5sums to check with at this link

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

Check that it will be possible to write the Ubuntu system to your hard disk drive

If there is not enough empty space on the disk, you need to move / remove some data.


How do I show the pwd at the top of a terminal?

I was able to get this to work by invoking lxterminal with sending pwd in backticks with the -t flag, like this:

lxterminal -t `pwd`

Now of course you wouldn't want to have to invoke lxterminal from terminal (that would be silly).  So you'll want to add it to your launcher panel, and edit the command properties of the lxterminal laucher to include the -t flag.

Note that this also works with (regular) terminal as well.


Login loop with gdm and lightdm, startx works

The ~/.xsession-errors.old reveals errors found on your ~/.profile file. You should check the syntax and fix the offending line.


Assuming you end up with a non-responding system, you could do the following to get past the file check:

Reboot the system in recovery mode, see help page on recovery mode  or boot with a live USB/DVD
Check and repair the sda1 file system see page on filesystem check. Basically run fsck -p -C0 /dev/sda1
Reboot normally and see if the console passes

If it still hangs, it might be another cause. I have seen it in virtualbox when Ubuntu is updated but I forgot to update the vbox drivers. If you are on virtualbox and this is indeed your first install, I would re-install, update the system and than update the vbox extension pack before rebooting. Afterwards you can hold shift and select an older kernel to boot and update.

Otherwise we would need more details...


Not hearing sound on my laptop with my os Ubuntu

First step, just to verify, check if the sound is not muted. Once you verify this, go to
Sound Settings:

In the Sound Settings, you’ll find that you have practically nothing here except a dummy output. Quite frustrating. It means that your sound card is not even recognized. Puff!

No worries. The one shot solution which fixed the sound problem for me on my Intel powered Dell Inspiron N4010 is to force reload Alsa. To do that, use the following command in terminal (Ctrl+Alt+T):
sudo alsa force-reload

The output will be like this.

You may think that it is hanged or still in processing but it takes only couple of seconds. You can simply close it afterwards by using Ctrl+C. Now, you need to reboot your computer. If at the next start up, you hear the login sound at the lock screen, you know it worked like a charm.

First Alternate method to fix no sound in Ubuntu 14.04:
If the above problem did not fix it for you, try reinstalling Alsa and Pulse audio in the following manner:
sudo apt-get remove --purge alsa-base pulseaudio
sudo apt-get install alsa-base pulseaudio

And force reload Alsa again:
sudo alsa force-reload

Restart and enjoy the world of sound, again.
Second Alternate method to fix no sound in Ubuntu 14.04:
Open the terminal and edit speech-dispatcher file by using the following command:
sudo gedit /etc/default/speech-dispatcher

In here, change RUN=yes to RUN=no
Reboot and enjoy sound.
[source]


Problem with internet connection in ubuntu 18.04

If you have another pc connected to internet, here you can download network manager packet: https://packages.ubuntu.com/bionic/net/network-manager

Save to a pendrive, copy in your ubuntu machine and install the packet. Reboot after installation, and you have network manager installed. When you can connect your ubuntu machine to internet, run:

sudo apt-get update && upgrade
reboot

NOTE: on the same website you find dependecies for network manager packet. Download all the dependencies required to make it work.

How to install packages

Uncompress the archive, then install the package as follow:

tar -Jxf <compressed_archive>.tar.xz
sudo dpkg -i <uncompressed_package>.deb


To prefer the need to reset your network, suggest you:
Shutdown, disconnect power, open the case and remove then reseat the card.


Update not working on Ubuntu 14.04.4 LTS

You have a problem with your /etc/apt/sources.list file. In the sources lines, you shouldn't have any lines with in.archive.ubuntu.com|security.ubuntu.com in them.

Save a backup of your sources file with:

cp -a /etc/apt/sources.list /etc/apt/sources.list.bak

Then use sed to correct your current sources file:

sed -i 's/in.archive.ubuntu.com|security.ubuntu.com/in.archive.ubuntu.com/g' /etc/apt/sources.list

followed by

sed -i 's/archive.ubuntu.com|security.ubuntu.com/security.ubuntu.com/g' /etc/apt/sources.list

Your apt-get commands should work properly after this.

Actually I've only just noticed that all of the India mirrors (in.archive.ubuntu.com) are commented out, these commands have fixed those entries anyway, but they're not being used.

The problem was coming from the wrong entries concerning the security updates.
You will receive security updates now when you update, and the rest of your updates will come from the main Ubuntu mirrors, it may be quicker to update from your local mirrors, which are the in.archive.ubuntu.com entries.


Highlighting and copying chunks instead of lines?

I'm not 100% sure if you're asking about doing this in vi or from some other terminal input. If you're talking about some terminal input, well I'd say just pipe it to vi or write to a file you open in vi.

As for highlighting a column in vi I have a screencast episode that covers it. It's called visual select mode and you can do column visual select:
http://lococast.net/archives/241

You basically want to use ctrl-v to start the mode and then move as you normally would to get your selection.


Why is '127.0.0.1' trying to connect to '10.0.0.2'?

If http://127.0.0.1 gets redirected to http://10.0.0.2 then it means that the web server listening on 127.0.0.1:80 is doing such redirect.

So the fault is not of the TCP stack implementation of Linux, nor is there anything wrong with /etc/hosts. (Do not confuse host names with IP addresses: host names are resolved, IP addresses are not. In other words, there is no way to make 127.0.0.1 "resolve" to 10.0.0.2 without using a high-level protocol such as HTTP, which allows redirection from one IP address to another.)

Try using wget which will give you many useful details. You should see something like the following.

$ wget http://127.0.0.1
--2013-01-09 15:55:38--  http://127.0.0.1
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://10.0.0.2 [following]
...

Of course, the exact output will vary depending on the situation. However, if you see a similar output, it is evidence that a web server is doing the redirect.

Therefore, to solve the problem, you should look into your web server configuration.


I couldn't fix the problem at all... got a problem with my installation and "reinstall" the whole thing again

I know this isn't an answer to the problem, but i can't replicate the issue anymore, so by now, i'm going to add menu entries using .desktop files


GMA3150 on Samsung N100 (Atom N435) not working

sudo apt-add-repository ppa:glasen/intel-driver
sudo apt-get update
sudo apt-get install xserver-xorg-video-intel
sudo apt-get install mesa-demos

Then reboot. Wait for update checker, update the packages, and then System Info showed Graphics as Intel IGD.

Are PPA's safe to add to my system and what are some "red flags" to watch out for?


Can awk treat values in records differently based on the first value?

First, the code:

#!/usr/bin/awk -f

$1 == "NAME" { printf "%s ", $2 }
$1 == "PAY" { total += $2 * $3 }
$1 == "END" { print total; total = 0 }

If you call the script tally, mark it executable with chmod +x tally, and you are in the directory that contains it, you can run it on the input file file with:

./tally file

On the input text you showed, it gives the output you wanted:

Jane 30
John 82

You have not stated what you want the output to look like when there are multiple names with no END in between, but I assume you want to output the first name for each. Consider this input file:

NAME Jane Doe
NAME Clark Kent
PAY 5.77 9
END
NAME John Doe
PAY 14.22 6
NAME Linda Lee Danvers
PAY .25 4
END

That produces this output:

Jane Clark 51.93
John Linda 86.32

What it does, and why:

In the problem you are trying to solve, each of what should conceptually be thought of as a record is a "stanza" of multiple lines, where a line may consist of multiple fields. Each datum therefore has three "coordinates": ⟨stanza, line, field⟩

But AWK's fundamental abstraction is instead ⟨record, field⟩. AWK is still a good choice for this problem, but you will have to decide how you want to map the natural abstraction of the problem to the abstraction your tool supports directly. In your code, it looks like you may be trying to treat each stanza as a single record, since you've made END the input record separator (RS = "END"). That can be made to work, and I hope other answers are posted that show how. But I suggest having awk treat each line as a record instead.

The reason is that there is already another way to think about your input data: as a list of commands, one per line, where:

Your NAME command outputs the word that follows it. Conceptually this is a first name.
Your PAY command accumulates products into a variable total. Specifically, it multiplies the two values that follow it and increases total by that amount.
Your END command prints total, ends the line, and resets total back to zero.

How it works, line by line:

#!/usr/bin/awk -f

In Ubuntu, awk is located in /usr/bin and not /bin. The -f flag is required (on any OS) to tell AWK that the next argument, which is the filename of the script itself, is to be interpreted as a script rather than as the name of an input file to process.

No BEGIN rule

You could make one and set tally = 0 in it, but you don't need to because AWK allows arithmetic on uninitialized variables and treats them as zero. (If you were running gawk --lint -f tally file then you might want to include the assignment explicitly to avoid a "reference to uninitialized variable" warning.) I put a blank line here, but you don't have to.

$1 == "NAME" { printf "%s ", $2 }

When the first field is NAME, print the second field $2 as a string (%s) followed by a space.

$1 == "PAY" { total += $2 * $3 }

When the first field is PAY, increase the value of total by the product of the second and third fields.

$1 == "END" { print total; total = 0 }

When the first field is END, print the value of total. The print statement automatically appends the output record separator, which is a newline since you haven't set ORS otherwise. Then set total back to zero to prepare for the next stanza (if any).


Note for other searchers landing on this page: this is apparently peculiar to the de-us layout in the Unity environment, because for some reason it lacks an entry in a particular configuration file.

How keyboard data is stored in Ubuntu

In Ubuntu, there is a folder called /usr/share/X11/xkb/symbols which contains a few subfolders as well as a number of text files, each representing a different layout.  Most, if not all, of these layouts, have a number of variants.  The one we're interested in is the us variant of the de keyboard, so we open the file de and scroll down to the following entry (it was at line 686 for me, but I'm not on 15.10).

partial alphanumeric_keys
xkb_symbols "us" {
    include "us"

    name[Group1]="German (US keyboard with German letters)";

    key <AC01> { [           a,          A, adiaeresis, Adiaeresis ] };
    key <AC02> { [           s,          S,     ssharp,     ssharp ] };
    key <AC10> { [   semicolon,      colon, odiaeresis, Odiaeresis ] };
    key <AC11> { [  apostrophe,   quotedbl, adiaeresis, Adiaeresis ] };
    key <AD03> { [           e,          E,   EuroSign,   EuroSign ] };
    key <AD07> { [           u,          U, udiaeresis, Udiaeresis ] };
    key <AD09> { [           o,          O, odiaeresis, Odiaeresis ] };
    key <AD11> { [ bracketleft,  braceleft, udiaeresis, Udiaeresis ] };
    key <AE03> { [           3, numbersign,    section,    section ] };
    key <AE11> { [       minus, underscore,     ssharp,   question ] };

    include "level3(ralt_switch)"
};

This defines the keyboard to be identical to the standard QWERTY variety us, with changes to

keys 1 (A), 2 (S), 10 (;), and 11 (') on the home row
keys 3 (E), 7 (U), 9 (O), and 11 ([) on the top row
keys 3 (3) and 11 (-) on the numbers row
the ALT key used to access the special characters

We check that it's properly formatted, not missing any brackets or anything, and it is.  This is why setxkbmap de us succeeds, if only temporarily.  We'll copy the description from this entry later on.

How Ubuntu accesses that data

Ubuntu has a registry setting where it saves the name of the keyboard or keyboards the user wants.  However, we have to fix an entry in another configuration file before Ubuntu will accept our preferred keyboard.  The file that needs to be modified is /usr/share/X11/xkb/rules/evdev.xml.

This file has three major sections:

a list of known keyboard models (describing the physical arrangement of buttons)
a list of known keyboard layouts (describing the logical assignment of characters to keys)
a list of options (describing possible modifications to the layout)

We need to open this as root so we can save it later.  Since we want to use the us variant of the de layout, the relevant portion of the file is going to be the second section- specifically, we modify the German layout (in my copy, this begins on line 3176).

<layout>
  <configItem>
    <name>de</name>

    <shortDescription>de</shortDescription>
    <description>German</description>
    <languageList>
      <iso639Id>ger</iso639Id>
    </languageList>
  </configItem>
  <variantList>
    <variant>
      <configItem>
        <name>us</name>
        <description>German (US keyboard with German letters)</description>
      </configItem>
    </variant>

Notice the structure of this section.  Each layout contains a configuration and multiple variants.  I've added a new variant entry (the last six lines), immediately after the tag opening variantList, the content of which matches what I found in the keyboard data file above.

After saving, change the registry setting to select our newly added entry:

gsettings set org.gnome.desktop.input-sources sources [('xkb', 'de+us')]

I found it necessary to log out and back in for this change to take effect, but after that, the layout worked as one would hope, including surviving suspend/resume cycles.


Wifi drivers not working/ wifi disappeared in panel

I don't know what is your exact solution but I have faced a similar problem and I am fixed it. Try this link to solve your Wifi Issue.
WIFI Driver install


What is the easiest way to install new theme on 12.04

You will want to download a theme that you like. Just google for Ubuntu Themes and find one to your liking. (Ensure that it is both gtk-2.0- and gtk-3.0-compliant. Mostly, the author will make that clear. If not, after extracting the files as described below, you will have to check that the theme has folders for both gtk-2.0 and gtk-3.0.)

Extract the theme because most themes come as compressed files.

Then open your home folder and create a new folder titled .themes. Then move your downloaded and uncompressed theme into that folder.

When you've done all that you will need to install an advanced edit tool such as Ubuntu Tweak. It is installable from the Ubuntu Software Center.

Once installed, run the program and navigate to the "themes" tab and select the appropriate theme.
Enjoy.

If you want to change your Icon theme you must download a new Icon Theme then create a .icons folder within your home folder. Then place the new Icon theme folder inside the .icons folder and you can change that in Ubuntu Tweak as well, under the Themes tab.

Remember that putting a . in front of a folder will make it hidden and you will need to press Ctrl+H to show hidden folders.

You may also want to make a few logical links so that programs running system-wide will pick up your theme and icons:

sudo ln -s ~/.themes /root/.themes

sudo ln -s ~/.icons /root/.icons

sudo ln -s /home/<username>/.gtkrc-2.0 /root/.gtkrc-2.0

These steps are based on advice here.


There is no official release of latest VLC 3.0.2 for Ubuntu 16.04 LTS. However, you can get the latest VLC from the third party packager. To install VLC 3.0.2 in your system (Ubuntu 16.04 LTS) write the following commands in your terminal:

sudo add-apt-repository ppa:jonathonf/ffmpeg-3
sudo add-apt-repository ppa:jonathonf/vlc-3
sudo apt-get update
sudo apt-get install vlc

Now you are done! But, please note that according to the statement by the  packager, there is no Chromecast support for this particular package of VLC Media Player on Ubuntu 16.04 LTS. If you want that, then please upgrade to Ubuntu 18.04 LTS.


If all other options fail, do what i did.
other info, i got myself here by trying to install the rpm jdk8 pachage on linux mint 17(ubuntu)

sudo rm -ri /usr/java/

it will ask for password
then ask to make sure you want to delete that directory. press "y" and enter/return

then open /var/lib/dpkg/info/ as root and delete any files with
"jdk1.8.0-xx.xxxx"
once done deleting run

sudo dpkg -r --force-all jdk1.8.0-45

if you are trying to install jdk 8.
this page will be of help because it worked for me.(linux mint 17 cinnamon 64bit)
http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/


NTLDR is missing while installing Ubunttu

try using Unetbootin, it usually solves problems with burning linux bootable USB under windows if that`s your situation.

also if your BIOS supports force booting from your USB, try booting that way instead of configuring boot order.


I followed the instructions in https://help.ubuntu.com/community/SoundTroubleshootingProcedure step by step (until step 4). After that the sound was back, but I heard a loud static noise. I fixed that by changing the mic volume settings with alsamixer.


I just installed some applets but how do I use them?

The guide you mentioned is written for GNOME 2 desktop environment for an old Ubuntu release (Ubuntu 7.04). So it may not be the right guide to follow to add applets to Budgie desktop in 2018.

To add applets to Budgie, go to the top-panel and click the square icon at the very end of the panel to reveal the settings pane. From here, click the gear icon. The gear icon opens to the general settings area for the desktop. Then go down to the “applets” section of the settings, and click the + sign. This will open a menu, where the user can select a new applet to add.

To remove an applet, click on the desired applet, then click the – sign to remove it.

It is also possible to re-position the applets. Highlight an applet, then click the up and down arrows to move it around.

(Source)


As per exchange with steeldriver above,I got the usual way to work:

I just followed this link more or less exactly reused the fstab entry but with the ip of my drive and mounting to subset of media:
How can I mount an NFS drive via fstab

Apologies in that case for the repeat of question - I'd tried following fstab guides including a couple on here and just not got it to work... not sure what I could have been doing wrong...


How to tell whether your computer is using wifi or ethernet to access the internet

If you use the command route there will be and entry in the table with the value 'Default' or '0.0.0.0' as destination field, then the 'Iface' field will be the interface (Ethernet or wifi) your computer is using to reach the internet.

Example:

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.10    0.0.0.0         UG    0      0        0 eth0


I'm not sure but I'm guessing this has nothing to do with Ubuntu: you have to press some keyboard key to activate the card (for example, Fn+F12 keys)


duplicity --progress not working properly

This is a very long standing bug in duplicity (since at least 2015). See https://bugs.launchpad.net/duplicity/+bug/1482841


gedit-latex in ubuntu repos works only with gedit-2.x, however ubuntu 11.10 comes with more recent gedit-3.x. Try to use this one https://launchpad.net/ubuntu/oneiric/i386/gedit-latex-plugin/3.3.1-1~oneiric1


You can create the SSH keypair with the file name desired
ssh-keygen -f ~/.ssh/ben@bmwlaptop

You can also rename the existing keypair and still use it.  Simply rename the files
mv ~/.ssh/id_rsa ~/.ssh/ben@bmwlaptop
mv ~/.ssh/id_rsa.pub ~/.ssh/ben@bmwlaptop.pub

To use the keypair, you can specify the file explicity with the -i option
ssh -i ~/.ssh/ben@bmwlaptop localhost
Enter passphrase for key '/home/ben/.ssh/ben@bmwlaptop':

To use the keypair automatically, update the IdentityFile setting for SSH
cat >> ~/.ssh/config << EOF
IdentityFile ~/.ssh/ben@bmwlaptop
EOF
ssh localhost
Enter passphrase for key '/home/ben/.ssh/ben@bmwlaptop':


/var/log/apt/history.log

Just open in your favorite file viewer/editor.


Chrome on Ubuntu 19.10 is blocking cookies and third-party cookies for all websites

You have to visit the Settings of Google Chrome - chrome://settings/content/cookies.

Here on my Ubuntu 16.04.6 LTS with the same Google Chrome version I have allowed cookies:

but newer versions will block third-party cookies in 2 years.

If I set first slider to Block and third to Block third-party cookies I get the special icon  in the address-bar.


Nope, apt-config is read-only (as its --help will tell you):

 apt-config is a simple tool to read the APT config file

To persist an Apt configuration change, you need to edit/add to the configuration files in /etc/apt/apt.conf.d/. Before you start creating new files, you might want to check to see if that variable has already been set. Here's a quick grep looking for "Periodic":

$ grep -R Periodic /etc/apt/apt.conf.d/
/etc/apt/apt.conf.d/10periodic:APT::Periodic::Update-Package-Lists "1";
/etc/apt/apt.conf.d/10periodic:APT::Periodic::Download-Upgradeable-Packages "1";
/etc/apt/apt.conf.d/10periodic:APT::Periodic::AutocleanInterval "0";
/etc/apt/apt.conf.d/10periodic:APT::Periodic::Unattended-Upgrade "1";

This may differ from your computer so run it. If I were going to make any changes, I'd run sudoedit /etc/apt/apt.conf.d/10periodic. Apt should pick those up the next time one of its commands runs.

Note: the above obviously applies to the apt.config side of things. There are other settings lurking around in /etc/apt/ (the parent directory of above) that may be applicable if you're trying to set other things.


how to install Nvidia GTX 750 ti drivers in ubuntu 14.04.4 32 bit system

If you dont mind installing properietary drivers, I would always recommend to use the Nvidia precompiled binary drivers which can be found at http://www.nvidia.com/

You can also find some excellent info on using nvidia drivers on ubuntu at https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia


Ubuntu Live CD works well, but once installed it requires acpi=off

Hoo boy. I am copy pasting my answer from here -> Ubuntu 16.10 Acer Swift-3 multiple problems

The answer is simple, but first a little bit of backstory.

I too, own one of these machines, and I was famished when I found that Ubuntu would hang and would boot 1/10 percent of the time.

The reason is the following. The Acer Swift 3 firmware and the ACPI firmware in Linux 4.11 & below have a bit of a conflict...

But the solution is this! Linux kernel Devs fixed it in Kernel 4.12 and above! Ubuntu 17.10 officially comes with the latest kernel, but it will release after a few months.

so a TEMPORARY solution (not recommended by me, see below why) is to boot an Ubuntu ISO with the Mainline / unstable 4.12 or above kernel, or boot Ubuntu with acpi=off, use a separate mouse and keyboard, install the Mainline Kernels, and remove that acpi=off from the grub boot commands.

Why is this not a good solution? because Mainline kernels have many bugs and stuff, and I got harsh karma from using Mainline kernels. my new Acer Swift 3's battery total went from 100% to 98%!!! I can never charge my laptop to its full potential now! And that is to be expected in any laptop, but the reason why this is such a big problem is because the battery went down in 1 day!! within a day, the total of my new laptop took a hit.

that is why I will use Linux on MY Acer Swift 3 only once Ubuntu 18.04 releases (for stability, but 17.10 will also work) But you are free to go ahead and use risky software and kernels.

LINK for Ubuntu ISO with mainline kernel -> http://linuxiumcomau.blogspot.com/2017/06/interim-ubuntu-1704-iso-with-mainline_29.html

TIP - Install That ISO, and upgrade its Mainline kernel to the latest, or at least to 4.12, because it comes with 4.12RC7.

Or maybe try an "unstable" Ubuntu kernel, but be warned, battery life takes a hit when using these kernels, so remember to use TLP ;) Good Luck!


You would have to update the gcc configuration to make that your default compiler.
Add the compiler to the list of available compilers.
sudo update-alternatives --install /usr/bin/gcc gcc /path/to/installation/bin/gcc-6.3 6

Activate the compiler. This will prompt you to select a compiler.
sudo update-alternatives --config gcc

Verify whether the changes have taken effect with gcc --version
For security reasons, it is not recommended to add directories especially to the beginning of the path, as explained in this answer.


How I can install "Internet Download Manager" on Ubuntu 14.04?

...I'm going to show you how to use latest version of IDM in any linux OS, yes you heard it right "latest version of IDM".
Till wine 1.7.4x, it only supported an older version of IDM which was IDM 5.05, It was functional but *** version when we look at newer versions of IDM with added new features.

So just follow this step by step guide to get your IDM working.
So I have divided this Post in 3 parts:

Installing "Internet Download Manager"
Integrating IDM with Firefox.
Make IDM look Good.

Installing "Internet Download Manager"
As you know IDM is a window's application. So to run IDM on linux we need something that supports Windows apps in linux. Wine (Wine is not an emulator) is a free and open source compatibility layer software application that aims to allow applications designed for Microsoft Windows to run on Unix-like operating systems.

To install wine run following commands:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get install wine1.7 winetricks

Note:- Make sure the Wine version installed is atleast 1.7.44. Because the older version of wine even 1.7.43 may not support latest version of IDM.

After you are finished with installing wine, you need to install IDM. Get latest version of IDM from internetdownloadmanager.com

Open the downloaded setup file with "Wine Windows Program Loader" and follow instructions. after installing IDM it will look as shown in screenshot below:

Alrighty you have installed IDM but it doesn't look good. does it??. Don't worry we will handle this look thing just after we will be done with Firefox integration Part.

Integrating IDM with Firefox Web Browser.
Downloader's integration with Web Browsers is a must thing. Copying links from Browsers and pasting them in Download Managers would be a stupid thing to do. So let us integrate IDM with Mozilla Firefox.

To integrate with Firefox we need an Extension named Flashgot. Flashgot is an Extension that allows you to download all links with your favourite Downloader with a single click.
To install Flashgot goto Tools>Add-ons and type flashgot in searchbox and install FlashGot Mass Downloader x.x.x.xx.

Next thing we need to do is to enable Wine Apps for FlashGot in order to use IDM. To do this type about:config in Firefox address bar and search for "wine". Now Toggle the value of Flashgot.useWine to true.

Now goto Extentions and edit flashgot preferences. Under General Tab In Download Manager select "Internet Download Manager" and under Download tab Select "Intercept all Downloads". Click OK.

Congratulations you have completed the IDM installation with full firefox integration.

Make IDM look Good and Verifying IDM Setup:-
This part is pretty easy. Just follow some simple steps:

Download Luna theme for wine and extract the downloaded file. (if
this file is downloaded with IDM then our configuration is done
properly and IDM Setup is also verified).
Open "Configure Wine" from launcher . Go to "Desktop Integration" tab
and hit install button and select your theme with ".msstyles"
extension.
Now from drop down list select VistaPerfectionX4 and hit apply.

You can see how IDM will look after applying this theme:

Source : http://amittoor.blogspot.de/2015/07/how-to-run-any-version-of-internet.html


Atheros AR2413 not working after upgrade

I used to encounter exactly the same problem, before 11.04, everything was fine with my AR2413 card, after upgrade, no more Wifi connection available.
What I did to correct the problem was :

upgrade to the last kernel 2.6.38-10
remove everything in my /etc/network/interfaces that was related to my wifi network
delete the wifi connection in Network Manager
reboot ;)
recreate a Wifi connection with Network Manager
wait to get an IP
browse the Web with my Wifi connection :D

I think the major correction came from the new kernel ;)


Grub Rescue Error:no such partition not allowing to boot from CD/USB

Is there any key combination to activate F2 or F12 in Lenovo, confirm that. Issues like these don't usually happen.

And if you remove Hard Disk, you may be able to boot from USB but it can't be permanent solution. Because to fix boot error the MBR should be installed in Hard Disk.


The question is quite unclear, but the way I see it your /var/www does not contain any wordpress files. This means that the ln failed.

Simply run ln -sf /usr/share/wordpress /var/www/wordpress to force the link.


When you run an application in eclipse, it creates a separate thread in the OS. The RAM usage of that thread cannot be controlled by eclipse.

One way to avoid your system from crashing is to increase the swap partition size. Even in this case the system gets very sluggish but does not crash.

There are other ways to control the ram usage of an application, say kill the program when the usage goes beyond a certain value. If you set such hard limits on memory usage, then you might run into some unpredictable behaviour/crashes. See the links below that talk about limiting RAM usage.

https://unix.stackexchange.com/questions/44985/limit-memory-usage-for-a-single-linux-process

https://stackoverflow.com/questions/26860822/how-limit-memory-usage-for-a-single-linux-process-and-not-kill-the-process

I would recommend trying to optimize your code to make it use less ram or think of some way to dump the data to hard disk and read it when required instead of retaining it in RAM. Even better is to increase the RAM!


Got it figured out Just put this 'Domain\ Admins ALL=(ALL) ALL' without the ' '


How to extract certain strings from hyperlink and create a folder with same string in bash?

while read url; do
    newname="$(basename "$url" .htm)"
    mkdir -p "/home/$newname"
    wget -O "/home/$newname/$newname.htm" "$url"
done < web.txt


There are many

There are many task managers for the KDE.

The Icon only task manager has a scale for the icons.

:~$ apt-cache show plasma-widgets-addons

Description: additional widgets for Plasma
 This package contains additional Plasma widgets shipped in the Plasma
 addons module. Install it if you want a variety of widgets on your Plasma
 desktop.
 .
 This package provides the following widgets:
  * Binary Clock
  * Black Board
  * Bookmarks
...
  * Icon Tasks
...

Also the smooth tasks task manager has a scale for the icons.

Package plasma-widget-smooth-tasks: http://packages.ubuntu.com/search?keywords=plasma-widget-smooth-tasks&searchon=names&suite=all&section=all


If you cannot ping your router but connected to it, the issue is more on the router than the firewalls on your machine. Normally firewall would not block the sending machine from sending out the packets.

Some routers have firewall features called Block Ping from WAN. Check your router.

Hope this helps.


Create a Ubuntu PPA with C# (.NET Core)?

Launchpad doesn't in general care what language your code is written is, as long as you can declare (and provide, if they aren't in Ubuntu) build-dependencies on whatever you need to build it.
Can you use Mono rather than the .NET SDK?  It's in Ubuntu (with various versions depending on the Ubuntu release), and it supports C# and a fair amount of .NET.


Try the following:

Modify /etc/modules and add:

 apm power_off=1

Edit /etc/default/grub and add this after quiet splash:

acpi=force apm=power_off

Finally update grub:

sudo update-grub


persistant live-USB doesn't save my wifi password

The next time I rebooted everything was saved including the wifi settings. I don't understand what happened because I didn't change any settings but at least it's working now.


Download software failed after system upgrade

Use the code it gives you to run manually AKA sudo dpkg --configure -a character for character.

Then run sudo apt-get update.

This is what I did for the exact same problem and error message and it worked.


How do I apply themes to gtk applications when I'm using Awesome WM?

Try installing lxappearance

sudo apt-get install lxappearance


Disable removable device notification for hard drives

The solution is to change the mount point to /mnt/"something". Modify your fstab and it shouldn't show the unmount option any longer.

Then you may bind mount it to the directory you want:

UUID=your_uuid_here /mnt/DATA ext4       defaults        0       2
/mnt/DATA             /home/yrogirg/DATA   none bind 0 0


Is there a way to join multiple Nautilus windows into one window with different tabs?

try this:
secNautilusRestartAndRestoreTabs.sh -a
that scritpt be found here.

you may need to install its latest dependencies from here.

will do exactly what you said, but you have to be a bit patient waiting it end running, and... that script is experimental but works very fine here.


Try installing Wine via the Ubuntu Software Center: here.


I have just installed Ubuntu and I cant install any apps

You must run a repositories update before you can install anything.

To run an update, go to the update manager, and click on Check for updates.

Alternatively, on the terminal type sudo apt-get update


How do I use the Discoverer module with pygi GstPbutils?

The error MSG states "python 2.7" but you are importing python3 modules. Make sure you use something like

#!/usr/bin/env python3

At the top of your script, or invoke it with python3 explicitly.
Mind you, there seem to be a problem with python3's GstPbutils too :(


How to install steam through Ubuntu Software Center without logging into Ubuntu One

Download Steam from here: http://media.steampowered.com/client/installer/steam.deb.

After download, if you double click on the downloaded file, this it will be open with Ubuntu Software Center and you can install it without logging into Ubuntu One.


dnscrypt-proxy - check what resolver I am using

The best way to check which resolver you are actually using is to visit this website.

https://dnsleaktest.com/

Further explanations are in a webupd8.com article :

Encrypt DNS Traffic In Ubuntu With DNSCrypt [Ubuntu PPA]


Has any one tried ATI 12.2 Proprietary Display Driver for Ubuntu 11.10 64 bit?

I'm using gnome-shell and I had installed 12.1 drivers working well. I updated to 12.2 yesterday. I had to downgrade this morning to 12.1 again because everything wents very slow.
My system was slow/sluggish, cpu was always high with 100% peeks as Freaky said.

I'm not happy with this new version :/

UPDATED: 2012-03-16

Seems that my problems were because the dual monitor configuration. After disabled one monitor everything went smooth again (as 12.1).


Best to just install this ntp server snap:

sudo snap install ntpserver


Should I install Ubuntu on primary or logical partition

If by speed you mean access time, it only depends on the type of the hard drive (SSD or HDD) and the controller model ( manufacture, technology, etc. ), so being logical or primary is irrelevant.


Ctrl+C doesn't actually run any command. It sends SIGINT, i.e., Interrupt signal to the process running in foreground.
From Signal (IPC) - Wikipedia:

SIGINT
       The SIGINT signal is sent to a process by its controlling terminal when a user wishes to interrupt the process. This is typically initiated by pressing Ctrl+C, but on some systems, the "delete" character or "break" key can be used.

If you want to copy text from terminal, you should use Ctrl+Shift+C.


Do you mean to control the playback and record levels of an application? You can control them through the sound menu>sound settings and the application tab. you could also install the gnome-alsamixer:

   sudo apt-get install gnome-alsamixer

If you are referring to more specific control settings the applications you are using should provide that.


Xububtu 12.04 Internet super slow on wireless but fast on wired

Might be the 802.11n driver issue, happened to me too (regular ubuntu). Try this:

sudo rmmod iwlwifi
sudo modprobe iwlwifi 11n_disable=1

if that did the trick you can make the change permanent as shown here by running:

sudo su
echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi-disable11n.conf

then you should still have working wifi after a restart


Run these commands:

VBoxManage list usbhost ## command 1
VBoxManage list vms ## command 2

With the information from these two commands, run the following:

VBoxManage usbfilter add 0 -target <vmsnumber> -name <[0000]> -action hold -active yes -vendorid <0x0000> -productid <0x0000>

replacing the <> items with their respective values from the commands 1 & 2. Let us know what the command returns.


It is most likely that your netbooks' hardware is failing. I would run a memory test in the least but that sounds like it could be a NIC (Network Interface Card) failing.


For serving VNC off of a headless server, you'd best go with tightvncserver; so install that.
Also, make sure that you have a desktop installed already.

Then, switch to the user account you want to start a server for:

root@box $ su some_user
Password:

(If you need to create a new user first, see Adding a new user on Ubuntu server.)

As the user, create a VNC server instance:

some_user@box $ vncserver -geometry 800x600 :5

Then finally, as the client point your VNC client to box:5.


Ubuntu Studio does not start with XFCE desktop but the other one. How to fix?

Just slide up/down users and button goes to active? and you can choose a session


Java application launcher not staying in Unity launcher

This is a problem in all JetBrain IDEs. In PyCharm (the one that I use) it's solved in the 2.0 version. It's likely solved in the corresponding IntelliJ version (likely 11, but I'm not sure).

You will need to go into the Tools Menu and select Create Desktop Entry. It will create a correct Desktop file in the correct place, so it will be added to your DE menu (including Unity Dash). Afterward you can initiate it from the menu and pin the icon or drag and drop it to the bar.

Note that the menu names are those in PyCharm as I don't use IntelliJ, but they are likely the same.


It depends on what you do with your computer. When you install software, it will be installed in the root partition. It's a very personal thing. For example, I use about 15gb. If you can, with the hard disks that we have today, I suggest you to create a partition about 20gb for your root.


I installed lubuntu on a different partition but on the same drive as windows 7 and no boot menu

Try this.

You need to Re-install grub to the MBR booting from the liveCD /dev/sdaX, where X is the root partition.

sudo mount /dev/sdaX /mnt
sudo grub-install --root-directory=/mnt /dev/sdXX
sudo umount /mnt

And then reboot the machine, grub menu should come up now.

Note: windows 7 loader is listed in grub.cfg so re-installing grub will also give access to windows.

Based on your last comment, I would try to get a backup of all important files, just in case, and then re-install Lubuntu.

Source: Grub 2 Basics


All the repositories are listed in the .list files in the /etc/apt/sources.list.d/ directory.


You can use remastersys to create a custom ISO.


SSH from my Mac into Ubuntu: X forwarding not working correctly?

This appears to be a problem with XQuartz. Apparently they are severely understaffed, and don't have barely enough time to keep the project on life-support. If you are also facing this issue, try reverting back to XQuartz 2.7.8, as that worked for someone in the bug report.

Your other options could be to use VNC, as Amias Channer suggested.

https://bugs.freedesktop.org/show_bug.cgi?id=93953#c6

As per the lead developer for XQuartz:

  Given that the issue is with indirect rendering, it is either a change
  in xorg-server in XQuartz or a change in libGL or the X11 stack on the
  remote system.  My hunch is that the remote libGL changed and possibly
  something in XQuartz's IGLX support changed.  If you can try running
  older versions of XQuartz to see if it works with an older version of
  XQuartz, that might point to a change that could be made to get this
  working again.  Although as I mentioned, IGLX is on life support in
  general, not just in XQuartz.

And:

  Yeah, as I mentioned in the bug report, there's not much chance of
  things like this getting fixed soon because there aren't many people
  working on the project.  I have maybe 2-3 hours every month or so,
  which is about just enough time to pull in security fixes, do some
  testing, and send out an update.  Adding support for OpenGL Core in
  our direct rendering path is more work than I can sign up for.  What
  you are asking for is adding it to the indirect rendering path, and
  that's even less likely to ever happen.  Xorg is actively deprecating
  AIGLX and even removing it from the default configuration, so I
  suspect the solution there will be to just remove support for AIGLX
  completely.


How to uninstall a program whose content already deleted?

first run sudo apt-get autoremove in case there are some non used packages left

then sudo rmdir /path/to/folder inorder to ReMove the dir of the folder.


The resolved address seems to be the issue, 98.124.245.24 is not working for me as well. However telnet 40.100.29.34 587 works fine. 40.100.29.34 is the ip-address resolution for smtp-mail.outlook.com on my machine. You should check the resolved ip of server on Mac as well.


This topic is discussed in these two questions:

key bindings - link key to a bash script
Bind key to a bash script


The count of bad sectors that the utility displays is the sum of the sectors that are:

Reallocated
Unrecoverable
Pending

When reading a sector fails, it is placed on the pending list.  The next time you try to write to the sector, the drive will try to write there, and if writing fails, it will reallocate the sector from the spare pool, if there are any spare sectors left.  If writing worked, then the count of bad sectors would go down.  This can happen because the sector was scrambled, but physically fine.  Often this will result from sudden loss of power in the middle of a write.


just open windows 10, then open a command prompt in administrator mode (right click of the mouse) and write:

powercfg.exe /hibernate off

It's because Windows 10 is not really shut down but in an hibernate mode.

Have a good day ;)


How to disable dedicated GPU in Ubuntu 12.10?

Depending on how your notebook is wired up (obviously you can't disconnect the monitor cable from a mobile GPU), you may not be able to do this. If you can do it, it wouldn't be from within Ubuntu -- it'd be in the bios.


How to enable check box in file managers?

Ubuntu has no such feature like Windows to select multiple selections using check boxes; however, few alternative file managers have similar features.
Multiple selections by using mouse click only is available in Dolphin file manager and the relatively new PCManFM-Qt, and using keyboard shortcut only is available in some file managers. Perhaps Dolphin is the only file manager in Ubuntu that is similar to Windows counterpart.
Dolphin

Dolphin is the default file manager in KDE Plasma and Kubuntu. As of 18.04 release, this is the only file manager in Ubuntu and the official flavours that natively supports multiple selection by mouse click.
Hover the mouse cursor above file or folder icon, and click the emerging plus sign (+) to select and minus sign (-) to deselect. The hover-and-click method works in any view mode (Icons, Compact, Details). Multiple selections seem to persist even when switching between the view mode.
Although, Dolphin has one usability issue: icon theme must be compatible to make the sign visible on mouse hover in non-KDE environment.
Dolphin make use of certain icons to make the plus and minus sign visible on mouse hover. Newer versions of Dolphin use emblems instead of action icons, and the corresponding icon name may vary.
Dolphin can be installed from the Universe repository.
sudo apt-get install dolphin

Then install any icon theme that is compatible with Dolphin.
sudo apt-get install oxygen-icon-theme  # all releases
sudo apt-get install breeze-icon-theme  # 16.04+ only
sudo apt-get install numix-icon-theme  # 18.04+ only
sudo apt-get install papirus-icon-theme  # 18.04+ only

The above screenshot is showing Dolphin with Numix icon theme.
PCManFM-Qt

PCManFM-Qt is the Qt port of PCManFM. Based on this closed issue dated Aug 2018, the feature was likely made available between release 0.13.0 (May 2018) and 0.14.0 (Jan 2019). From end user point of view, Ubuntu 20.04 (not 18.04) is the first LTS release to see this feature.
PCManFM-Qt does not require any additional icon theme for this feature. Multiple selection by mouse click works with many icon themes by default. The following icon themes have been tested working with PCManFM-Qt.

Desktop independent icons (tango-icon-theme)
LXQt/LXDE default icons (breeze-icon-theme, lxde-icon-theme)
MATE default icons (mate-icon-theme)
Xfce default icons (elementary-xfce-icon-theme)

At time of testing (0.14.1 as of Ubuntu 20.04), the hover-and-click method works in Icon view and Thumbnail view only. Multiple selections seem to persist when switching between all view modes, except Detailed list. This inconsistent behaviour may be improved in the future.
PCManFM-Qt can be installed from the Universe repository.
sudo apt-get install pcmanfm-qt  # featured in 20.04+

The above screenshot is showing PCManFM-Qt with nouveXT2 icon theme (LXDE icon theme) to show high compatibility with any default icons.
Double Commander

Double Commander is a cross platform open source file manager with two panels side by side. Double Commander in Ubuntu has two versions: GTK+ and Qt.
Double Commander can toggle selection by Space, Insert, Shift+Up, or Shift+Down keys. Some of these shortcuts are configurable. Multiple selections by mouse clicks only are not possible.
Double Commander can be installed from the Universe repository.
sudo apt-get install doublecmd-gtk  # GTK+ version
sudo apt-get install doublecmd-qt  # Qt version

User can install either one, but not both at the same time.
Sunflower

Sunflower is another twin-panel file manager for Linux. This alternative file manager depends on Python with GTK+ widget bindings.
Like Double Commander, Sunflower can toggle selection by Insert, Shift+Up, or Shift+Down keys. Except Sunflower use Space key to type immediately for a quick search, instead of toggle selection. The shortcuts are configurable. Multiple selections by mouse clicks only are not possible.
Sunflower can be installed via PPA (noted "usually late by a version or two").
sudo add-apt-repository ppa:atareao/sunflower
sudo apt-get update
sudo apt-get install sunflower

Sunflower is also available from the download page (latest), PPA (newer releases are delayed), and source code on GitHub.
Other file managers
Besides Dolphin, PCManFM-Qt, Double Commander and Sunflower, most probably no other graphical file manager in Ubuntu that can do multiple selections like so. One exception is Pantheon Files in elementary OS, which does not seem to be reproducible for Pantheon Files installed via PPA for Ubuntu and the official flavours.
This answer intends to mention only graphical file managers, mainly because of Windows-like experience which requires mouse clicks. Terminal-based file managers may have such capability, but the user experience might vary and therefore will not be covered in this answer.
TL;DR Dolphin can do Windows-like multiple selections. PCManFM-Qt may be able to do in near future. Very few file managers actually support multiple selections by mouse click only. User experience may vary.


How can I install a package with specific PHP versions if the package itself does not contrain it?

If the repository contains more than on version it is possible to install that certain version with:
sudo apt install <my-package>=<X.Y> e.g.
sudo apt install php=7.2
but the chances are low that there are more versions of php. (They must be compiled against the current libraries, so maintenance of different versions costs quite some time)
You could add a ppa which is compatible with 20.04, or you can download the appropriate deb files.
Those files can be installed either with the gdebi installer (GUI frontend( or by hand:
`sudo dpkg -i <name-of-debfile.deb>


How to set wifi security options in Ubuntu?

How can I find out actual values for security tab in Wi-Fi connection?

Check your router. All the information you need will be there and the log in there will also tell you why you can not connect.

  However, I have a Windows computer, that connected to the same Wi-Fi.

We are not windows experts but I do not understand why you have issues if that is the case. Windows also tells you how the connection is set up in the network settings (that is in the popup you get from "properties" on the network icon for your card).