Simple gnome panel applet to fetch data periodically over http?

I think if it's going to be usable in any future distributions of Ubuntu it would be better if it was a Application indicator

You can check some examples at DesktopExperienceTeam ApplicationIndicators

and if you have any problems Jorge Castro one of the users here is one of the Desktop Experience Team. So he should be able to point you in the right direction.

hope this helps

Edit: there is a Weather-indicator in Launchpad already and if its not exactly what you are looking for you could give them some feature suggestions or if you are any good at coding you could give them a hand.


Cannot install Ubuntu 20.04 LTS to an external HDD

Install Ubuntu from a Pre-built Image File that boots BIOS and UEFI
It looks like you are doing everything right. At this point it might be  worth installing Ubuntu from an image file. The image file will turn tour disk into a clone of a working, external Full install system, that boots in both BIOS and UEFI modes. It is quick and simple and always works.
If working in Windows:

Download Image File: https://phillw.net/isos/linux-tools/uefi-n-bios/dd_unb_ubuntu-20.04_15GB_2020-06-26.img.xz

Download Rufus*: https://github.com/pbatard/rufus/releases/download/v3.11/rufus-3.11.exe

Double click Rufus exe file.

Select USB drive as Target drive in Rufus.

Select above Image File in Rufus.

Click Rufus start button.

Wait for flashing to complete... Done.

Password is "changeme", change it

The USB drive should boot on almost any modern X86-64 computer.
Thanks to sudodus for the image file.
In Windows it may be necessary to install 7Zip before proceeding. Rufus will use it when working with the .xz image: https://www.7-zip.org/a/7z1900-x64.exe
If working in Ubuntu: you can use mkusb, Disks or Etcher to flash the USB drive. P7zip may be needed to extract the image.


Upstart service says running but doesn't actually start

You have followed a tutorial on reverting to Upstart despite a bold warning that it may render your system unusable. Now that your system is broken, it's a good time to re-consider the choice to use Upstart.

Even if you get this working, your system may quit working during a maintenance upgrade, because things expect systemd to the init system on Ubuntu 16.04, not Upstart.

It looks like you have rather simple needs. Your time is better spent converting your Upstart script to a systemd config file. There's a page on systemd for Upstart users here:

https://wiki.ubuntu.com/SystemdForUpstartUsers

As long as you are installing things scratch, consider starting over with Ubuntu 18.04, the newest LTS release.


What does "use keystrokes to scroll on alternate screen" mean?

Robert solved the problem (as seen in his question):

  Hahaha.. It should be "enable the use of mouse scroll on alternate screen (an alternate screen is a screen superimposed when you read man pages for example)" and not “use keystrokes to scroll on alternate screen” . Hahaha. the meaning is the opposite. What is going on with quality control in UBuntu? They are ruining the prestige of Linux.


i guess you can try synaptic package manager
(search for it in the Ubuntu software center) .


Error 131:4 when running Photoshop CS5 with wine?

As it looks this is still a problem not resolved in Wine and from the look of the data provided by the last user test in Wine, in 1.5 it has other problems. Your only solution is to go back to the specific 1.3 version that had CS5 working (including the workaround to get it working) or wait for Wine to fix problems related to CS5.

I suggest to file a bug report in Wine and upvote CS5 to help development.


Those are two alternative versions of the Nvidia driver.
You currently have the 'nvidia-current' package installed which is stable and preferred over the other one (a beta version).
You can't install both. If you choose the 'post-release' it will replace the 'current'.


Boot a live DvD/USB.
Use Gparted and delete the Kali partiton.
Resize the Ubuntu partition so it takes up the rest of the drive.
Apply the changes.
Use Boot Repair to fix GRUB.


Two 12.04 machines have the same display settings but different results

I would suspect that you have a problem in your font configuration. Your terminal may be looking for a font that is not present, or one with badly broken kerning.


You can use the -X option to forward graphical applications. People typically forward single applications or the taskbar or panel rather then the entire desktop. For applications such as Firefox people typically "tunnel".

ssh -X user@server

Then you can

startkde &

To use Xephyr :

sudo apt-get install xserver-xephyr

Start a Xephyr session

# change "1280x1024" to the size you desire
Xephyr -ac -screen 1280x1024 -br -reset -terminate 2> /dev/null :1 &

Set your $DISPLAY (assuming Xephyr is on :1)

DISPLAY=:1.0

ssh in to your server and start kde

ssh -XfC -c blowfish user@server startkde

-X = forward X
-f = puts your ssh session into the background
-C = use compression -c blowfish = use blowfish (I am told this is the fastest)

If you are using ssh, be sure to understand the security risk, and I personally advise you use keys and disable password authentication.

If you want an entire desktop I would suggest FreeNX. FreeNX is both fast and secure.

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


To enable "Sticky Windows", enter terminal, then type ccsm. This will open the compiz settings manager. Then scroll down to window management, and select "Snapping Windows".

You may need to log out and then back in to load the changed settings.


How do I map Linux Kernels to Ubuntu Kernels?

Go to this page and search on 4.15.5 and you will see:

Ubuntu Kernel Version   Ubuntu Kernel Tag     Mainline Kernel Version
4.15.0-11.12            Ubuntu-4.15.0-11.12   4.15.5

I'm not totally convinced this page is complete or updated on a timely basis but it is the closest answer I've found so far.


This was what came, when i tryed to run, what Wild Man purposed:

Module                  Size  Used by
dm_crypt               22555  1
rfcomm                 59026  0
bnep                   19210  2
bluetooth             341971  10 rfcomm,bnep
parport_pc             32114  0
ppdev                  17423  0
arc4                   12509  2
snd_hda_codec_realtek    50931  1
ath5k                 141236  0
snd_hda_intel          43326  3
snd_hda_codec         169608  2 snd_hda_codec_realtek,snd_hda_intel
ath                    19435  1 ath5k
joydev                 17329  0
snd_hwdep              13276  1 snd_hda_codec
snd_pcm                94597  2 snd_hda_intel,snd_hda_codec
mac80211              534922  1 ath5k
snd_seq_midi           13132  0
snd_rawmidi            25157  1 snd_seq_midi
snd_seq_midi_event     14475  1 snd_seq_midi
snd_seq                55716  2 snd_seq_midi,snd_seq_midi_event
snd_timer              28930  2 snd_pcm,snd_seq
snd_seq_device         14137  3 snd_seq_midi,snd_rawmidi,snd_seq
cfg80211              416271  3 ath5k,ath,mac80211
snd                    61270  16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq_midi,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
psmouse                92648  0
soundcore              12600  1 snd
snd_page_alloc         18398  2 snd_hda_intel,snd_pcm
serio_raw              13189  0
shpchp                 32265  0
mac_hid                13077  0
lp                     13359  0
parport                40930  3 parport_pc,ppdev,lp
vesafb                 13540  1
pata_acpi              12886  0
sata_sis               12711  2
sis190                 22570  0
mii                    13693  1 sis190
video                  19046  0
sis_agp                13165  1
Apr 15 15:05:48 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  (eth1): DHCPv4 state changed nbi -> preinit
Apr 15 15:05:49 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  (eth1): DHCPv4 state changed preinit -> bound
Apr 15 15:05:49 aamand-HP-Pavilion-dv6000 NetworkManager[866]:    address 100.82.185.157
Apr 15 15:05:49 aamand-HP-Pavilion-dv6000 NetworkManager[866]:    prefix 20 (255.255.240.0)
Apr 15 15:05:49 aamand-HP-Pavilion-dv6000 NetworkManager[866]:    gateway 100.82.176.1
Apr 15 15:05:49 aamand-HP-Pavilion-dv6000 NetworkManager[866]:    nameserver '89.249.14.50'
Apr 15 15:05:49 aamand-HP-Pavilion-dv6000 NetworkManager[866]:    nameserver '89.249.14.54'
Apr 15 15:05:49 aamand-HP-Pavilion-dv6000 NetworkManager[866]:    domain name 'emnet.dk'
Apr 15 15:05:49 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  Activation (eth1) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Apr 15 15:05:49 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  Activation (eth1) Stage 5 of 5 (IPv4 Commit) started...
Apr 15 15:05:50 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  DNS: starting dnsmasq...
Apr 15 15:05:50 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  [1397567150.723027] [nm-dns-dnsmasq.c:393] update(): dnsmasq not available on the bus, can't update servers.
Apr 15 15:05:50 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  [1397567150.723083] [nm-dns-dnsmasq.c:395] update(): dnsmasq owner not found on bus: Could not get owner of name 'uk.org.thekelleys.dnsmasq': no such name
Apr 15 15:05:50 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  DNS: plugin dnsmasq update failed
Apr 15 15:05:50 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  (eth1): writing resolv.conf to /sbin/resolvconf
Apr 15 15:05:50 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  (eth1): device state change: ip-config -> activated (reason 'none') [70 100 0]
Apr 15 15:05:51 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  Policy set 'Wired connection 1' (eth1) as default for IPv4 routing and DNS.
Apr 15 15:05:51 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  Activation (eth1) successful, device activated.
Apr 15 15:05:51 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  Activation (eth1) Stage 5 of 5 (IPv4 Commit) complete.
Apr 15 15:05:51 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  dnsmasq appeared on DBus: :1.21
Apr 15 15:05:51 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  (eth1): writing resolv.conf to /sbin/resolvconf
Apr 15 15:06:08 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  (eth1): IP6 addrconf timed out or failed.
Apr 15 15:06:08 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  Activation (eth1) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Apr 15 15:06:08 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  Activation (eth1) Stage 4 of 5 (IPv6 Configure Timeout) started...
Apr 15 15:06:08 aamand-HP-Pavilion-dv6000 NetworkManager[866]:  Activation (eth1) Stage 4 of 5 (IPv6 Configure Timeout) complete.

And also:

#### wireless info START

release

Distributor ID: Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:    12.04
Codename:   precise

kernel

Linux aamand-HP-Pavilion-dv6000 3.11.0-19-generic #33~precise1-Ubuntu SMP Wed Mar 12 21:17:09 UTC 2014 i686 i686 i386 GNU/Linux

lspci

00:04.0 Ethernet controller [0200]: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter [1039:0191] (rev 02)
    Subsystem: Fujitsu Technology Solutions Device [1734:1125]
    Kernel driver in use: sis190

02:00.0 Ethernet controller [0200]: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express) [168c:001c] (rev 04)
    Subsystem: Qualcomm Atheros AR242x 802.11abg Wireless PCI Express Adapter (rev 01) [168c:3067]
    Kernel modules: ath5k

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

PCMCIA Card Info

rfkill

iw reg get

interfaces

auto lo
iface lo inet loopback

iwconfig

route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth1

resolv.conf

nameserver 127.0.0.1
search emnet.dk

nm-tool

NetworkManager Tool

State: connected (global)

Device: eth1  [Wired connection 1] -------------------------------------------
Type:              Wired
Driver:            sis190
State:             connected
Default:           yes
HW Address:

Capabilities:
Carrier Detect:  yes
Speed:           100 Mb/s

Wired Properties
Carrier:         on

IPv4 Settings:
Address:         192.168.1.101
Prefix:          24 (255.255.255.0)
Gateway:         192.168.1.1

DNS:             89.249.14.50
DNS:             89.249.14.54

NetworkManager.state

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

NetworkManager.conf

[main]
plugins=ifupdown,keyfile
dns=dnsmasq

[ifupdown]
managed=false

iwlist

iwlist channel

lsmod

modinfo

modules

lp

blacklist

[/etc/modprobe.d/blacklist-ath5k.conf]
blacklist ath5k

[/etc/modprobe.d/blacklist-bcm43.conf]
blacklist b43
blacklist b43legacy
blacklist ssb
blacklist bcm43xx
blacklist brcm80211
blacklist brcmfmac
blacklist brcmsmac
blacklist bcma

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac

udev rules

PCI device 0x10de:/sys/devices/pci0000:00/0000:00:14.0 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth", NAME="eth0"

PCI device 0x1039:/sys/devices/pci0000:00/0000:00:04.0 (sis190)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth", NAME="eth1"

PCI device 0x168c:/sys/devices/pci0000:00/0000:00:06.0/0000:02:00.0 (ath5k)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan", NAME="wlan0"

dmesg

[   28.752731] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   28.753226] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   38.816059] sis190 0000:00:04.0 eth1: mii ext = 0000
[   38.840024] sis190 0000:00:04.0 eth1: mii lpa=45e1 adv=01e1 exp=0007
[   38.840032] sis190 0000:00:04.0 eth1: link on 100 Mbps Full Duplex mode
[   38.840052] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

#### wireless info END

But it did not help on my wireless connection. Still no driver that finds the router.


How to fix configuration issues of an old kernel in order to make upgrade possible in Ubuntu?

According to this post (Apt fails to remove partially installed kernel and can't install any other packages),

I created a back up of the status file in case something goes wrong:

sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.backup
I opened /var/lib/dpkg/status with gedit and searched and deleted ONLY the references of the broken packages. Here is the code to verify such packages: (the status will tell you if they area really broken):

dpkg --status linux-image-4.4.0-109-generic

dpkg --status linux-image-extra-4.4.0-109-generic
I ran sudo apt-get update and sudo apt-get upgrade to make sure that issues are fixed.


PDF Chain is just a GUI for pdftk so you could try using that directly:

pdftk input_file*.pdf cat output output.pdf


I've finally fixed it. What took me too long was that the installer couldn't detect my installation in my disk and I was not able to run /fixboot, until I found this http://www.sevenforums.com/tutorials/71363-system-reserved-partition-delete.html


How do I screenshot Wifi Network Authentication Required window's Authentication menu? (apparent bug; Ubuntu 16.04)

Although not resolving the key functionality problem, one workaround is to execute the following command in the Terminal to take a screenshot after 10 seconds:

gnome-screenshot -d 10

(or search 'screenshot' in the Launcher (top left button) to open the graphical user interface to accomplish the same task).


Something like this should do the stuff :

gconftool --set --type=bool /apps/gnome-screensaver/idle_activation_enabled False

thus, you will disable the gnome-screensaver.

If you want to reactivate it after :

gconftool --set --type=bool /apps/gnome-screensaver/idle_activation_enabled True


Try the following

on your top panel

Go To connections.
Edit Connections
Pick "Wired connection 1 (or whatever name it has)" and click on edit.
Change MTU Value from Auto to 1492, and click on save.

I had the same problem before where it just showed me the animation with the little circles running and a few moments after, the message "there has been an error, try again later", if you have the same problem, then doing that should fix it, I was pointed in the right direction by a friend in this Question, just click on it and you'll see the comment.

Hope this solves your problem.


after going through the code in all the files I managed to find what dll's it was looking for and grabbed what I could from a legitimate version of Windows XP. Apparently the wine version I first used was a slightly customized fork. Now, running the standard repository version and the new dll package the programs work. And no, the built-in variations wine offered didn't work, so the real deal was needed. Now the school is (un)happily running Ubuntu (it breached into their network...) but they plan to use Linux in the future now so, hooray for Linux.

I do apologize if what I asked was not even close to sufficient for the response requirements.

Edit: if anyone someone magically gets a copy of these (as far as I know the last copies are with "us") then I can either tell the dll's or give a drive link to the ones used.


What could make ike-scan see an IP that is an L2TP/IPSEC VPN show up like a non-IPSEC VPN?

If you use ike-scan without specifying the proposal you want to test against, it will default to 3des-sha1-modp1024. Looking at the output, your VPN server doesn't seem support to support that proposal.

Try the following ike-scan.sh script which iterates through a number of proposals. You can run it like sudo ./ike-scan.sh [vpn address] | grep SA= or sudo bash ike-scan.sh [vpn address] | grep SA=

#!/bin/sh

# Encryption algorithms: 3des=5, aes128=7/128, aes192=7/192, aes256=7/256
ENCLIST="5 7/128 7/192 7/256"
# Hash algorithms: md5=1, sha1=2, sha256=5, sha384=6, sha512=7
HASHLIST="1 2 5 6 7"
# Diffie-Hellman groups: 1, 2, 5, 14, 15, 19, 20, 21
GROUPLIST="1 2 5 14 15 19 20 21"
# Authentication method: Preshared Key=1, RSA signatures=3
AUTHLIST="1 3"

for ENC in $ENCLIST; do
   for HASH in $HASHLIST; do
       for GROUP in $GROUPLIST; do
          for AUTH in $AUTHLIST; do
             echo ike-scan --trans=$ENC,$HASH,$AUTH,$GROUP -M "$@"
             ike-scan --trans=$ENC,$HASH,$AUTH,$GROUP -M "$@"
          done
      done
   done
done


GroupWise support on Evolution Ubuntu 13.10

Ubuntu 13.10 has reached its End of Life (EOL) and is no longer supported.

The repositories for older releases that are not supported get moved to an archive server and are available at old-releases.ubuntu.com instead of archive.ubuntu.com, which is why you are unable to install packages.

Kindly refer to this page for steps to install software on an unsupported release.

However, I would advise you to install a supported release like 14.04 or 14.10 instead. It is preferable to go for Ubuntu 14.04 since it is an LTS (Long Term Support) release and is supported till 2019.


How do I get sound from speakers instead of TV over HDMI

Download and install PulseAudio - you'll find items in the output tab that will help. I found setting to HDMI vs. internal speakers helped on the last version of Ubuntu. Seems to have fixed it now. :)


Problem oracle installing from windows directory in ubuntu 13.04

So you want to install java?  I am not sure why you want to do it from a windows directory. I also have a dual-boot, and Ubuntu does not play nice with it. I am not sure that this is what you want, but just install Java using these steps.

1.) If you’ve already installed OpenJDK in Ubuntu Software Center. Remove it by running this command:

sudo apt-get purge openjdk*

2.) To add the ppa, run:

sudo add-apt-repository ppa:webupd8team/java

Then update:

sudo apt-get update
3.) To install Oracle Java 8:

sudo apt-get install oracle-java8-installer

To install Oracle Java 7:

sudo apt-get install oracle-java7-installer

To install the Java 6:

sudo apt-get install oracle-java6-installer

If you are unsure which one I suggest java 7. Let me know if this solves your problem.
Source: http://ubuntuhandbook.org/index.php/2013/07/install-oracle-java-6-7-8-on-ubuntu-13-10/


try updating the system by

sudo apt-get upgrade or use Software updater/Software manager

the updates replace every bug found in the system by clean program and you get the secure and bug free enviroment. I recommend checking updates for every 8-10 days, so that your system remains bug free


Filter any system log file by date or date range

With systemd we got journalctl which easily allows fine grained filtering like this:
journalctl --since "2 days ago"
journalctl --since "2019-03-10" --until "2019-03-11 03:00"
journalctl -b # last boot
journalctl -k # kernel messages
journalctl -p er # by priority (emerg|alert|crit|err|warning|info|debug)
journalctl -u sshd # by unit
journalctl _UID=1000 # by user id

Examples can be combined!


How do I start banshee in the mode where I can get a crash log

Open a terminal and type banshee --debug.

If you need any further help with the output add it the your question by pressing the edit button under it and change the title to reflect your problem.

You can also save the output text by running banshee --debug > ~/banshee_debug, it will save the output to a file called banshee_debug in your home folder.


Update your kernel to 4.8 by running

sudo apt install linux-generic-hwe-16.04

and reboot. This wireless adapter works well on this kernel.


man uses a pager to show its contents, like less, more or most. Ubuntus default pager is less, but you can configure that in the alternatives system. Additionally, you can tell to use another pager on a case by case basis with the -P switch

man -P more ls

or by setting the PAGER or MANPAGER environment variables

export MANPAGER=more
more ls

So to solve your color problem, you can either choose a pager whose default color settings suit you better, or you can look into adapting the color settings of pager you want to use. For example, you can use a bunch of environment variables and termcap to configure the use of color in less.


Can't change WiFi username after entering incorrect credentials (Ubuntu 13.10)

Go to network settings:

and Click the arrow next to the network name:

then Click Forget Network


I think you're a bit confused about what configuration files do, and what programes (commonly referred to as binaries) actually do.

Binaries or programs are programs that do something. They actually are executed, and the statements evaluated. That may be as simple as 2+2, or more complex, such as ls, which lists contents of current directory.

Configuration files modify what programs do. For instance ls may be configured to show colors, columns, and so on. The program ls supports all these things, but they can be activated or deactivated depending on configuration.

For more complex programs, such as apache, which is a webserver, the configuration files may change behaviour of the program to an extreme degree.

Programs are not configuration files, and configuration files are not programs. A configuruation file does not perform any task, it instructs some program on how to behave.


Running script upon startup ubuntu using crontab

Apart from what steeldriver wrote, a well known problem is that cron needs the full path.  So, try:

@reboot /bin/sh /home/ubuntu/script


I edited 2 or 3 files as described in stoneage posts, and the first one of them seems to work.
 - from https://ubuntuforums.org/showthread.php?t=1897012 anno 2011 the
   line "options snd-hda-intel power-save=0" added to
   /etc/modprobe.d/alsabase.conf

FORGET THE REST
 - from the same https://ubuntuforums.org/showthread.php?t=1897012 in /usr/lib/pm-utils/intel-audio-powerave the line INTEL_AUDIO_POWRERSAVE=false The latter seems to be a typo in the filename, so it won't do the job.
 - in /etc/default/tlp the lines SOUND_POWER_SAVE_ON_AC=0 and SOUND_POWER_SAVE_ON_BAT=0


How to reload variables from /etc/environment without re-logging in?

You cannot change the environment of a different process, as gnome-session, you can only change the environment of the current process and subsequent generated childs.

So, you are restricted to launch every process from the terminal where you sourced the new environment, to benefit from modifications.


There are a number of ways to go about that and most, if not all require matching, software on both the Lunix and Android devices. There is a very extensive and straight-forward article about one of your options at THIS LINK called SoundWire posted on LiNUX.COM.


"Open in terminal" Keyboard Shortcut not working in 17.10

The issue is with the Compiz, Install the compizconfig-settings-manager

sudo apt install compizconfig-settings-manager

Open CompizConfig Setting Manager  and disable the Command plugin as below

Unselect the Commands plugin and it should work.

Hope this helps!


on 17.04, default volume commands won't work, because on ~/.config/openbox/lubuntu-rc.xml the amixer command is wrong. In order to fix it, find "XF86Audio" key tags

<keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>amixer -q sset Master 3%+ unmute</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>amixer -q sset Master 3%- unmute</command>
      </action>
    </keybind>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>amixer -q sset Master toggle</command>
      </action>
    </keybind>

change amixer -q option to "amixer -D pulse". the file must be like the following:

<!-- Keybinding for Volume management -->
    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>amixer -D pulse sset Master 3%+ unmute</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>amixer -D pulse sset Master 3%- unmute</command>
      </action>
    </keybind>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>amixer -D pulse sset Master toggle</command>
      </action>
    </keybind>


Is it safe to remove the SSH folder under /etc after uninstalling SSH?

The files under /etc/ssh are required if you still have the SSH client installed on your system.  If you've removed the SSH client and the SSH server then you don't need the files but there's no security vulnerabilities that flat configuration files (text basically) are going to cause.
You can remove them, but I would err on the side of caution and leave them alone as they won't do any harm or introduce any vulnerabilities - without the ssh or sshd binaries installed on your system having the leftover host ssh fingerprints and any leftover flat-file (text) configuration data in the folder is not going to introduce a security vulnerability.


Using Upstart like old fashion init script

There is no direct equivalent in Upstart terms. If you want to do something similar, you can put your optional deps into pre-start section in your job.

Example (add to your conf file):

pre-start script
  set +e
  start <dep1>
  start <dep2>
  start <dep3>
  start <dep4>
end script

That makes Upstart try starting said optional services and if they are missing, the error is ignored.


how to protect a folder using password in ubuntu 20.04

I took the easy way to encrypt my files.  I installed the snap 7zip and made an archive of my files and encrypted them with a strong password at the time of zip creation.

Works for what I need it for just a bunch of files I need to access one at a time because I can just double click the one I want from within the archive.


I think the package you want to install is obsoleted and left on the PPA repository. This is the first problem there.

The source package can generate multiple binary packages at once. For example, the source package of apache2 consists of multiple packages including apache2, apache2-bin, apache2-dbg, apache2-dev, apache2-mpm-worker, apache2-mpm-prefork, apache2-mpm-event... and so forth. It's reasonable for  they all share the same version number to depends each other.

In your case, you want to install the apache2-mpm-worker 2.4.12-1 package, but it is missing apache2 (2.4.12-1). Why? Because the upstream has removed all the transitional packages including apache2-mpm-worker.

apache2 (2.4.12-2) unstable; urgency=medium

  [ Jean-Michel Nirgal Vourgère ]
  * d/control:
    + Update Vcs-Browser.
  * d/copyright:
    + Change d/debhelper/dh_apache2 to dh_apache2.in.
    + Drop paragraph about inexistant itk patches.

  [ Stefan Fritsch ]
  * Remove all the transitional packages:
    apache2-mpm-worker, apache2-mpm-prefork, apache2-mpm-event,
    apache2-mpm-itk, apache2.2-bin, apache2.2-common,
    libapache2-mod-proxy-html, libapache2-mod-macro, apache2-suexec
    This also fixes the dependency problems caused by a recent version
    of debhelper (see #784803).

The newest version of apache2 (2.4.16-3) has already built on PPA repository. You can't have two different versions in one repository, so apache2_2.4.12-1 is superseded by apache2_2.4.16-3. This is a known limitation of apt; since PPA is an apt repository, it has this limitation too.

Therefore, package apache2_2.4.12-1, the dependencies of apache2-mpm-worker_2.4.12 is missing. This is why that your installation was broken according to your description.

The following packages have unmet dependencies:
 apache2-mpm-worker : Depends: apache2 (= 2.4.12-1+deb.sury.org~trusty+5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I think you already have apache2_2.4.16-3 installed. The following steps is the new approach to change MPM to worker:

$ a2enmod mpm_worker

Considering conflict mpm_event for mpm_worker:

Considering conflict mpm_prefork for mpm_worker:

ERROR: Module mpm_prefork is enabled - cannot proceed due to conflicts. It needs to be disabled first!

$ a2dismod mpm_prefork

Could not remove /etc/apache2/mods-enabled/mpm_prefork.load: Permission denied

$ sudo a2dismod mpm_prefork

Module mpm_prefork disabled.

To activate the new configuration, you need to run:

service apache2 restart

$ sudo a2enmod mpm_worker

Considering conflict mpm_event for mpm_worker:

Considering conflict mpm_prefork for mpm_worker:

Enabling module mpm_worker.

To activate the new configuration, you need to run:

service apache2 restart

$ sudo service apache2 restart

Restarting web server apache2   ...done.

$ apache2ctl  status

Can't create config directory (/.w3m)!Apache Server Status for localhost (via 127.0.0.1)

Server Version: Apache/2.4.16 (Ubuntu)
Server MPM: worker
Server Built: 2015-08-18T00:00:00

-------------------------------------------------------------------------------

Current Time: Thursday, 20-Aug-2015 07:20:23 UTC
Restart Time: Thursday, 20-Aug-2015 07:19:38 UTC
Parent Server Config. Generation: 1
Parent Server MPM Generation: 0
Server uptime: 44 seconds
Server load: 0.00 0.01 0.05
Total accesses: 0 - Total Traffic: 0 kB
CPU Usage: u0 s0 cu0 cs0
0 requests/sec - 0 B/second -
1 requests currently being processed, 49 idle workers

_____W____________________________________________..............
................................................................
......................

Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process

Back to the problem of apt preferences. Your configuration seems good to me, but it doesn't work as expected. This is the interesting part to me. After doing some digging, it changes my mind for my past experience of apt. It could be some lack of feature or buggy for pinning particular package.


Why does step 8 of making the bootable USB take so long for my MacBook Air?

Step 8 says:

  Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
  (replace /path/to/downloaded.img with the path where the image file is
  located; for example, ./ubuntu.imgor ./ubuntu.dmg).

  Using /dev/rdisk instead of /dev/disk may be faster
  If you see the
  error dd: Invalid number '1m', you are using GNU dd.
  Use the same command but replace bs=1m with bs=1M
  If you see the error dd:
  /dev/diskN: Resource busy, make sure the disk is not in use. Start the
  'Disk Utility.app' and unmount (don't eject) the drive

If the command has yet to end, this means that it is still writing into your USB drive. Be patient. The above dd command does not have a progressbar and this can be frustrating, but it has never failed me to finally end the writing.


How to update Windows 7 to 10 without affecting GRUB and Ubuntu installation?

If you want to get GRUB working again, you could start a Ubuntu Live System (via a LiveUSB, DVD, etc) and run sudo update-grub to re-install the GRUB bootloader.


Windows 10 in LEGACY mode + dual boot Ubuntu Studio 20.04

You can convert Windows 10 to UEFI through command prompt. I have tried this and it worked perfectly for me. After converting Windows 10 to UEFI you won't have conflict issues between UEFI and BIOS.

How to convert Windows to UEFI

This will only work if you have windows 10 version 1703 or higher.

Enter windows recovery environment by holding shift and selecting restart.
In Troubleshoot-->Advanced open command prompt with your admin account.
type mbr2gpt /validate and press enter.

type mbr2gpt /convert and press enter.

Exit the cmd and select turn off the pc.
Power on and go to firmware setting by pressing F2.
Change the boot mode to UEFI
Save and exit (F10)


Installation of Ubuntu 16.04 in windows 10 MSI (UEFI)

Working Solution:

Use deletekey to access bios mode
Disable fast boot.
keep secure boot -> enabled
select either CD DVD or USB boot option
F10 to save settings
Esc to exit bios mode
start Windows 10
Follow general Ubuntu installation instructions: Create new partition:free space (Ex.20 GB).
Use DVD iso image or USB to boot Ubuntu 16.04 in windows
After Ubuntu installation: Restart

Error: After reboot, UEFI mode won’t display installed Ubuntu. Instead shows following:

Once removed install media, shows blank screen or freezes. To fix above error. Use delete key to access bios mode.
Select UEFI Hard disk drive  BBS Priorities

Select Ubuntu as first OS.
F10 to save and Esc to exit
displays

17.Next, Select Ubuntu from the list to launch Ubuntu, and select Windows Boot Manager (on /dev/sda1) to launch Windows 10.


Banned from Ubuntu forums for spam. Could my Ubuntu have a virus?

This has been explained to you in multiple emails.

We do not blacklist IP addresses for single spam posts. We block IP addresses for sustained spam over days or more often weeks.

If we unblock your IP, you will post once or twice on the forums, then the spam will start, and we will then have to block the IP again.

So the solution is to either :

Ask you to stop spamming the forums. You say you are not and I believe you. So ...
You will have to wait until the party or parties responsible stop spamming the forums. We review banned IP addresses from time to time and will reverse the ban when the spam stops.

In the mean time you will have to use other support methods such as Ask Ubuntu, irc, or launchpad.

Why are you re-installing your OS ? I never advised that. How does that stop some third party from spamming the forums from your IP ?

You can lodge a complaint with your IP provider or you can contact the local authorities, but often they are disinterested. If you do identify the spammer, and get them to stop, I will unban your IP. Otherwise we wait them out. They usually go away eventually .... Sometimes they come back and are re-banned. In the case of your IP, with the previous history, it is likely to remain banned for some time.

We are blocking an 'block' of IPs - so in other words, because of the way your ISP gives you an IP address, someone on your block of IPs (aka, someone in your internet phone number area code) is spamming and so it's easier for us to block the entire block instead of just the specific spammer IP, since it changes every day.

Possibilities:

Your WiFi is not secure.
Your ISP is cycling IPs in a really odd fashion.


Remember Each Window/Browser size and location

This seems like a duplicate of How do I save/remember last-used window position and size for applications?, check that out and see if it is the same.


How do I backport/install a newer version of clang?

Clang 3.2.1 is currently available for 12.04(Precise), 12.10(Quantal) on Launchpad.

Clang 3.2.1 for 13.04(Raring) is available from the universe repository and can be installed normally through Synaptic or apt.

For 12.04, You can add the PPA to your repository through Synaptic using the following line(with instructions provided in the link below):

deb http://ppa.launchpad.net/kxstudio-team/builds/ubuntu precise main

Or, from the command line(Ctrl+Alt+t):

sudo add-apt-repository ppa:kxstudio-team/builds
sudo apt-get update
sudo apt-get install clang

For 12.10, you can either download the more recent deb files from here and install with sudo dpkg -i <package name> or install from a PPA.

To install the PPA on 12.10, run the following commands from the terminal(Ctrl+Alt+t):

sudo add-apt-repository ppa:georgekola/clang
sudo apt-get update
sudo apt-get install clang

In Synaptic, add the following line:

deb http://ppa.launchpad.net/georgekola/clang/ubuntu quantal main

Note for the 12.10 packages: The deb files are named 3.2-1~exp5ubuntu1 from February 2013, while the PPA is 3.2-1~exp1ubuntu3 from December 2012. Personally, I am using clang 3.2.1 on 12.04 and cannot currently give a recommendation over which package to use on 12.10.

What are PPAs and how do I use them?
Are PPA's safe to add to my system and what are some "red flags" to watch out for?


Need Google Input Tools to type Telugu in Celtx

First install Chromium Web Browser, and after that install the Google Input Tools extension for Google Chrome (it also works in Chromium). Google Input Tools lets you type in the language of your choice in Google Chrome and Chromium web browsers.

You can try Google Input Tools in your web browser before you install it at Try Google Input Tools online. To try it out, choose your language and input tool from the dropdown menus and begin typing.

Install Chromium Web Browser

Chromium Web Browser is the open source version of Google Chrome. Open the Ubuntu Software Center and search for chromium-browser.
Select Chromium Web Browser and click on the button that says Install
Authenticate with your user password to install Chromium Web Browser.

Install Google Input Tools extension for Google Chrome

Open Chromium Web Browser.
Visit the Google Input Tools extension for Google Chrome webpage.
Click the blue button that says + FREE to add the Google Input Tools extension to Chromium Web Browser.

If you used Google Input Tools to type in Asian languages when using Microsoft Windows, you might wonder how to do it in Ubuntu applications. See this question: How do I enable writing in Indian languages?.

For using the Malayalam language in Ubuntu applications see How to type Malayalam in Ubuntu?.


HP Envy Touch Smart 15 heat on bottom screen

I manage to fix the issue by installing ubuntu 15.04 LTS 64bit, without installing anything. it still a little bit warm on the HP logo on the monitor but i think its ok!


Creating a wifi hotspot from a wired connection on Macbook for iPhones

install ap-hotspot :

//if you are not running ubuntu 14.xx

$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install ap-hotspot

update it for ubuntu 14.04 if you are using it :

amd64 : http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
32 bit : http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb

example on amd64 :

$ cd /tmp
$ wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
$ sudo dpkg -i hostapd*.deb
$ sudo apt-mark hold hostapd

usage :

$ sudo ap-hotspot start

// follow the configuration for password & ssid

if u want te re configure it again :

$ sudo ap-hotspot configure

to stop it :

$ sudo ap-hotspot stop

to check the configuration :

$ ap-hotspot


Will formatting my hard drive to install Ubuntu also get rid of my recovery partition?

When you are installing ubuntu, you have the option to manually manage the partitions. If you don't delete the recovery partition there, then it won't be wiped out. Moreover, if you choose to 'install alongside windows', it is safe to. I do not, however, know if 'erase entire disk' deletes the recovery partitions or not


From research, there are many possible answers to this question, but the one I decided up on was the following.

1) Change permissions to 2770 chmod -R 2770 /directory/ and change group owner to data, so my persmissions would read drwxrws---.

This results in any new folders created by any user to take on the group of it's parent directory.

2) I added all the users to my common data group which is smbgrp with.
'usermod -aG smbgrp plex'
'usermod -aG smbgrp debian-transmission'
etc

Hope this helps someone - Do correct me if I'm wrong.


How to split a large mp3 into the different tracks (also in mp3)

Take a look at this: How can I split a mp3 file? May be helpful for your case.

This will work on both wav, ogg, mp3 and other formats.

Good luck!


Problems reformatting a USB with React OS

I fixed this issue via Fedora Media Writer (USB Restoration Option). When you open Fedora Media Writer just click the Restore button when your USB is plugged in.


How to use File Expert to select a file for upload in ubuntu-one on android?

Having tested using Ubuntu One for android and File Expert you can select which file you wish to upload by clicking "Add File" from within the Ubuntu One app, and selecting File Expert from the options given. Then simply navigate to the file you wish to upload and tap it. This will cause that file to be uploaded by the Ubuntu One app to your personal cloud.

In regard to the second point it isn't possible using File Expert to select a folder to upload, only selecting individual files will work.


It seems you mixed up Adobe Flash hardware acceleration with acceleration with Firefox itself. Thing is that hardware acceleration does NOT work in Flash for Linux from around version 11 which was supposed to be last long term supported. After supported period ended Adobe decided to not drop Flash on linux, and even update it to "current" version but with limited capabilities. Features which was expensive to maintain like hardware Acceleration was disabled completely.


Can we make a folder and its contents remain locked for certain times of the day and unlocked for the rest of the time?

One solution could be setting up cronjobs to lock/unlock the game directory. To do so follow the steps below.

Make sure cron-daemon is installed

sudo apt-get install cron

Prepare the game directory to be owned by root (alter the paths to fit your situation)

sudo chown -v root:root ~/GameDirectory
sudo chmod -v u+rwx ~/GameDirectory
sudo chmod -v go-rwx ~/GameDirectory

Setting up the cronjob to run for root

Start editing the cronjob by issuing following command:

sudo crontab -e

Add the folowing lines into the editor:

00 11 * * * chmod go+rwx ~/GameDirectory
00 14 * * * chmod go-rwx ~/GameDirectory

The above lines will make the cronjob unlock the directory at 11 am (hour setting is the second number from the left 0-23 hr style) and lock the directory at 2 pm.

Be advised that, since you have the ability to elevate your rights with sudo, you still need discipline to not overgo your own restrictions.

I never did set up cronjobs myself yet so if anyone finds an error in my solution, comment on it and I will correct it.


This may not be a complete answer (it is too long to post as a comment though), as the error you are getting is a segmentation fault and it is hard to figure out the issue without more info.

However, all the times I used to get this problem ended up being due to some conflicting modules.

You can check which modules are enabled on Apache by running the following command:

apache2ctl -M

However, it is more than likely that this command will actually break and give you the following output:

Segmentation fault (core dumped)
Action '-M' failed.
The Apache error log may have more information.

If that was the case, you will need to use the following command:

ls /etc/apache2/mods-enabled/

Make sure there aren't mods that would conflict with each other, for example php5.6 and php7.0, or mpm_event and mpm_prefork.

To disable them, use the a2dismod <module_name> command. For example:

sudo a2dismod php5.6


Word Splitting with Double Quotes vs Having Quotes

The variable packages includes multiple lines, separated by newline characters - when you echo the quoted expansion, that's exactly what you see, since the whole multiline string is passed as a single argument to the echo command.
When you echo the unquoted expansion, it is subject to word splitting (and glob expansion - although that's not relevant here since your input doesn't contain any globbing characters). Word splitting is based on the value of the IFS variable, which by default consists of space, tab and newline. Each IFS-delimited token is passed as a separate argument to echo, which outputs each of them in turn, separated by a single space.
Further reading:

Expansion of a shell variable and effect of glob and split on it

When is double-quoting necessary?


Ubuntu Desktop 18.04 LTS kernel does not upgrade

The kernel you mis is on your system.

  linux-image-4.15.0-55-generic                               4.15.0-55.60                                 amd64        Signed kernel image generic

sudo update-grub

Then reboot.

Change boot device in Bios so the harddrive of bionic installation is the 1. Device. Or boot xenial and run sudo update-grub where.


Asus X555UJ Laptop internal microphone and 3.5mm stereo jack sound input not working in ubuntu 16.04

I have the same laptop and the same problem. I didn't find any permanent solutions on the web. However, you can activate your 3.5 mm jack manually:

Type in terminal:

alsamixer

And now you can set speaker volume to 0%, and headphone volume to 100%.
I wrote 2 scripts that toggle headphone and speaker volume automatically:

This one is for headset:

#!/bin/bash
amixer set Headphone 100%
amixer set Speaker 0%

This one is for speaker:

#!/bin/bash
amixer set Headphone 0%
amixer set Speaker 100%

Then I accorded those scripts to keyboard shortcuts. The command for shortcut is:

gnome-terminal -e "path-to-script"

It's better than nothing.

I'll keep searching for a real solution to the problem and I'll share it here if I find.


Can the Canonical Distribution of Ubuntu OpenStack be installed via 7 docker containers?

Can you build an OpenStack cloud in Docker containers using the OpenStack Autopilot? No.

There are multiple ways you can build and deploy OpenStack on Ubuntu:

(easiest) use the OpenStack Autopilot. As you noticed, currently this requires 7 machines.
Juju.  You can use Juju to deploy and configure OpenStack services. You need to install MAAS and Juju, but you do not need to know about OpenStack as much.
(hardest) Apt. follow the installation guide for Ubuntu on OpenStack.org, and build your configuration manually. You will need to learn quite a bit about OpenStack.

All three solutions require hardware, because OpenStack is infrastructure, and while it can be faked to test patches, OpenStack with almost no hardware is... hardly useful.

If you want to test OpenStack in the small scale, not for production, I recommend for now you use:

apt-get install openstack

and try the single system cloud configuration you can build there. In alternative, you can try DevStack, which also gives you a (hardly realistic) cloud packed into one box.

Finally, I hear the next beta of the OpenStack Autopilot may require fewer hardware resources for non-HA configurations. You may want to wait a few weeks until that's out and see if we managed to bring the bar low enough for you - you will still need a few machines, but not 7.


Autostart synergy server on ubuntu 16.04

Adding Synergy as startup program fixes my problem.

Open Startup Applications and click on Add
Enter name: Synergy
Enter command: synergy
Click on save

Next time you restart the computer, Synergy will automatically start.


I removed x permission from everything, can I recover my error?

create to @Sorin:

Actually, it seems that you can run the loader directly and make chmod executable again without booting from something else: /lib64/ld-linux-x86-64.so.2 /usr/bin/chmod +x /usr/bin/chmod Note that the loader may be located somewhere else, or for 32 bits it might be /lib/ld-linux.so.2 instead. –


Install docbook2x-texi:

sudo apt-get -y install docbook2x

That's all I needed to do.


Save opened images and reopen them after reboot

Extract the list of start commands and save the output in a file:

ps aux|grep -oP "[f]eh.*" >~/feh_commands

Make it a proper script by adding a shebang, quoting the file names and adding & to each line to run them simultaneously:

sed -i 's_/_"/_;s/$/" \&/;1i#!/bin/bash' ~/feh_commands

Now you just need to run the script with

bash ~/feh_commands

or make it executable and run it.


Use the tool named Universal usb from pendrive linux .com it works for me............


Two questions: Crontabs and file overwritning

From man 5 crontab:

Step values can be used in conjunction with ranges.  Following a range with
``/<number>'' specifies skips of the number's value through the range.  For
example, ``0-23/2'' can be used in the hours field to specify command
execution every other hour (the alternative in the V7 standard is
``0,2,4,6,8,10,12,14,16,18,20,22''). Steps are also permitted after an
asterisk, so if you want to say ``every two hours'', just use ``*/2''.

So /2 must follow a range of values. In your case, you want to run the command every other hour in the 1-23 range, so 1-23/2 would work.


Is your system defaulting to just expanding your desktop to encompass the second monitor?  Try moving your mouse off the sides of the screen.  If the system is expanding your desktop to cover both screens, then its a matter of just moving your mouse over to the second screen.


Computer not asking for password after waking from sleep

I had the same problem after upgrading to 14.04 LTS.

I found the setting here: Settings Manager -> Power Manager -> Extended -> check box for "Lock screen when going for suspend/hibernate".

Just in case this is still an issue for anyone.


Screen flickering on ultrawide monitor with AMD card

Fixed. New 4.12 kernel fixed problem  somehow.

Installed from here http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12-rc1/

download generic header+image for amd64
install with sudo dpkg -i
reboot
uname -r should show 4.12 if it worked.


libqt5core5a no longer provides qtbase-abi

I just tried to install this and it seemed to work fine. This is what I did:

Download MEGAsync from https://mega.nz/sync!linux. In my case I downloaded megasync-xUbuntu_17.10_amd64.deb by choosing "Ubuntu 17.10" from the drop down box.
Open terminal, go to the folder containing the downloaded file and execute sudo apt install ./megasync-xUbuntu_17.10_amd64.deb. This should also install any required dependencies.
Launch MEGAsync.


From SuperUser:

The Windows Subsystem for Linux (WSL) installation should automatically set the Ubuntu locale to match the locale of your Windows install. You can change the Ubuntu locale manually using the shell.

sudo update-locale LANG=en_US.UTF8

Replace "en_US.UTF8" with your desired language. If you have any problems visit the link for extra steps.


How to find out the installation path to my browser?

In a console, do which firefox. This is my output, for instance:

user@PORTATIL:~$ which firefox
/usr/bin/firefox
user@PORTATIL:~$ which google-chrome
/usr/bin/google-chrome


HP hs2340 HSPA+ MobileBroadband on HP mini 210-4160ew mobile internet illness

In case you have a dual boot Ubuntu / Windows, you can test if it's with the power management.

On Windows you can power the modem with the HP connection manager. Configure it so that modem is not powered off on exit, then reboot.

If it's working after reboot, you have the same issue as I did:
https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/838757


In the Ubuntu Software Centre, after typing "texmaker" and going on "more info", there are optional add-ons, and I was missing the one named: "Tex Live: metapackage depending on all TeX Live language packages (texlive-lang-all)".

After installing it there was no error and non-ASCII characters are visible now in pdf file.


Simple fix.

Open a terminal, and run:

sudo apt-get update
sudo apt-get install ntfs-3g
sudo reboot
sudo ntfsfix /dev/sdb3 #Replace accordingly


VLC is available in two package formats: both as a Debian package and as a snap. The "weird" one is probably the snap variant.

It's not a problem. The two package variants may co-exist. Or you may want to uninstall one of them.


Resize the root partition of Ubuntu 20.04 with an lvm partition

Finally, I found it by checking this post: https://www.linuxtechi.com/extend-lvm-partitions/
The idea is to extend the lvm partition to take advantage of the empty space.


Laravel CLI cUrl Error on Ubuntu 14.04.3 LTS

You need to increase default_socket_timeout in your PHP config file (~/php.ini), e.g.

default_socket_timeout = 300

or set it using curl in your PHP code like:

curl_setopt($res, CURLOPT_TIMEOUT, 300);


Cannot edit html in Chrome/FF devtools--Ubuntu 20

In previous Chrome versions there was a plus icon you could click and add a working folder to your devtools' list of working directories. Currently all you have to do is drag your folder from your hard drive into the browser area of devtools' and approve there security prompt. Good luck!


Is it possible to get the Tux logo on the text-based boot?

This logo is a kernel compile option called "CONFIG_LOGO" - it is a boolean value - when it is set to true it displays the Logo on boot.

This logo appears through a framebuffer - that is how you get the graphical logo.

The Ubuntu kernels don't appear to use this compile option and hence it defaults to "false" which disables the logo.  The probable reason for this is that it would interfere with Plymouth - you'll need to compile your own kernel to do this...

You'll need to install a framebuffer package such as v86d and configure it correctly with your monitor resolution as per this ArchLinux wiki.

You'll also need to ensure when booting you do not use KMS - i.e. nomodeset or i915.modeset=0 type parameters.


You have to manually save renders.

First you start with a scene you want to render.

After setting up your image settings, hit f12 to Render.
Now you will get a rendered image in your viewport (under the UV/Image editor).

However, this image is not saved automatically.
To save it, you need to click on the image menu:

And you will get the option to save the image:


Why my Graphics card is disabled after installing Ubuntu Gnome 14.04LTS?

Your graphics card is not disabled. Rather you are on Generic Xorg Display drivers. You need to install the proprietary AMD drivers to be able to use your AMD Graphics card.

You can search for additional drivers in applications. And enable the drivers suitable for your Graphics cards. And if the Drivers support hybrid configuation, you should be freely able to switch between your Intel HD and Radeon chipsets.

If the above method doesn't let you control the hybrid configuration, Ubuntu Documentation has a manual way of installing drivers in order to control the hybrid chipset.


Using different language keyboards like MacOS

You might try Using the Text Entry Settings. You can setup multiple languages and shift between the keyboard layouts.

Click the little Keyboard Icon in the Lower Right corner under the Input sources to see what the layout for the alternate language looks like. This is the closest thing I know of that would help resolve your problem.


How can I change the language of FlareGet to English?

please download flareget from its website:

http://flareget.com

The version in Ubuntu Software Center is old, and even doesn't support browser integration.

If you still face the language problem, then click this icon:

Then click the following icon:

then click the combo box:


how to set rule only for usb flash drives in rules.d

I answered a similar question with an example a while ago:

Running the script when it detects I/O

Use this command,

udevadm monitor --property

Insert the USB and check a property that is common to the devices that you want to use, e.g:

ID_TYPE=disk
ID_USB_DRIVER=usb-storage

Then create your rule

sudo gedit /etc/udev/rules.d/96-myusb.rules

with those values in

ACTION=="add", SUBSYSTEM=="usb",ENV{ID_TYPE}=="disk", ENV{ID_USB_DRIVER}=="usb-storage",RUN+="/usr/local/bin/myusb-add.sh"

ACTION=="remove", SUBSYSTEM=="usb",ENV{ID_TYPE}=="disk",ENV{ID_USB_DRIVER}=="usb-storage",RUN+="/usr/local/bin/myusb-remove.sh"

The rules file will only affect those devices that match the ENV{ID_TYPE} and ENV{ID_USB_DRIVER}. It will not affect any other device. If you want to restrict the rest of devices, maybe you can create a rule that matches the rest of devices and does nothing in the RUN.

If you want to run the action only when a certain usb device is connected to an specific USB port, try adding ENV{DEVPATH}="yourUSBPATH" to the rules file. Substitute yourUSBPATH for the path that udevadm monitor --property reports when you connect the device to the port that you want to use. I haven't tested this but I think it's a logical approach.


I had this issue after upgrading from 19.04 to 19.10.

The solution that worked for me is to switch display manager from GDM3 to LightDM.

If you have installed the lightdm package, just run sudo dpkg-reconfigure gdm3 and select LightDM.

After rebooting you should be able to log in.

I have since found a solution to fix login loop without changing GDM3 to LightDM:

On the login screen, press Ctrl+Alt+F3.
Log in to the shell using your username and password.
Uninstall and reinstall the gdm3 package:

sudo apt-get purge gdm3
sudo apt-get install gdm3

Now just select GDM3, and after a reboot it should work fine.


Skipping rEFInd menu after Option+Command+P+R and going straight to grub

Try booting with a CD-R or USB flash drive image of rEFInd. This should enable you to boot into OS X and re-install rEFInd there (or just re-run the relevant bless command from the rEFInd OS X installation instructions -- see step #8).


How to correctly view htm files containing Kanji in the web browser?

The problem was in the metadata of the html files. After reading this article, I realized that all I need to do was change the header:

<HTML><HEAD><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">

to

<HTML><HEAD><META encoding=utf-8 charset=shift-jis
             NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">


With a command line like the following

sudo apt-get -o Dir::Etc=/path/to/other/dir update


Can anyone explain what this command actually do? eval "$(/Users/jsmith/anaconda/bin/conda shell.YOUR_SHELL_NAME hook)"

eval "$(shell-command)" will run shell-command and feed its output to the shell as a command to execute.
A hook in this context is a mechanism to attach custom actions to some event processed by a software.
so $CONDA_PATH/bin/conda shell.bash hook will probably generate a bash command line which, when executed, will connect Anaconda into the running bash process, and eval "$($CONDA_PATH/bin/conda shell.bash hook)" will take care of executing that command. Try running $CONDA_PATH/bin/conda shell.bash hook directly from a shell prompt to see what it is producing, in order to better understand what is going on. This may well help you understanding why it isn't working in the Docker context.


Boot sequence not finding GRUB on 12.10 server install

If you even managed to boot the installer and get through it then it's worked.
You may have neglected to install the boot loader to the disk you are trying to boot from.

Go into the BIOS and reconfigure your hard disk drives so that a different one is the boot drive.
If you only have one hard disk then you need to rerun the installer and make sure you are installing GRUB to its MBR if only running linux or the first partition if you have windows there too.
You may also need to flag the device as a boot disk using either Windows, Ubuntu LIVE or Gparted.


Does Ubuntu automatically delete older versions of software when there is an Update for them?

Existing packages are generally overwritten when they are upgraded. Scenarios which can lead to the update taking up more space are:

The updated package is larger in size
it might come with additional dependencies that have to be pulled in first

It's important to know that this is valid for most packages but not all. Kernel upgrades, for instance, will not automatically remove the previous version. This makes it possible for the user to revert to a previous kernel if something went wrong in the course of the installation or if there are incompatibilities with the system.

This is what might have happened to your system given that you are talking about "firmware".

Please see here for more information on removing old kernel versions.


update: see Ubuntu Security Notice USN-1693-1

  It was discovered that OpenJDK 7's security mechanism could be bypassed via
  Java applets. If a user were tricked into opening a malicious website, a
  remote attacker could exploit this to perform arbitrary code execution as
  the user invoking the program.

Probably not for the specific exploit being used in the wild for Oracle's Java 7 plugin. These exploits are usually specifically crafted to run with a specific set of software.

However, OpenJDK can be vulnerable in a similar way, if it's because of a design/architecture error in the way Java works in a browser. I could not find any details on it (at the time of writing) to support that statement with facts, but previous vulnerabilities were specifically for Oracle's JRE/JDK while OpenJDK has its own.

Please note the difference between an exploit and a vulnerability in this context.

Also note that you are probably affected to some extent if you're running Oracle's JRE/JDK on Ubuntu. However, the exploits are probably targeted for Windows hosts, and Oracle's JRE/JDK is no longer distributed by Ubuntu, due to licensing issues (Oracle doesn't allow redistribution anymore).


How do I get two X displays across two monitors, working independently

There are a couple of settings that you can configure using the nvidia-settings. for an explanation of twinview and separate X screens here. It sounds to me as if you might have chosen twinview when configuring the nvidia-settings. You would need to go back in to the nividia-settings manager:

It will require that you log out, then log back in order for the configuration change to take place.

Hope this helps.


No speakers, no microphone, but headphones @Dell Lattitude E6530 (20.04)

I had this problem with 16.04 and started working with 20.04 after updating the BIOS. If you see HDMI sound devices appearing and disappearing then update your BIOS. Is very easy to update, you download the .exe file from the Dell website and you copy it to your EFI partition. I created a folder and copied it to /boot/efi/EFI/Dell/Bios/ Then you boot and press the right key (F2 or F12) to stop the boot process and select BIOS upgrade that will allow you to chose the downloaded file.


Update: the package pepperflashplugin-nonfree is now deprecated.

You need to install the adobe-flashplugin. Make sure to enable Canonical Partners software source before installing the package. It works for Firefox and Chromium

sudo apt-get install adobe-flashplugin

Read more about this on:

Ubuntu official site https://wiki.ubuntu.com/Chromium/Getting-Flash
The official Ubuntu Desktop Guide


sigrok-cli and PulseView AppImage do not start because of undefined symbol: libusb_get_version

I fixed the problem thanks to the help of a developer in the sigrok mailing list.
I had an outdated libusb version installed in /usr/local/lib/libusb-1.0.so.0

ldd showed that libsigrok.so, that I previously built, was refering to libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0

$ ldd /usr/local/lib/libsigrok.so linux-vdso.so.1 =>  (0x00007fffd00c9000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9e60cb4000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007f9e609a3000) libserialport.so.0 =>
/usr/local/lib/libserialport.so.0 (0x00007f9e60792000) libftdi1.so.2 =>
/usr/lib/x86_64-linux-gnu/libftdi1.so.2 (0x00007f9e60584000)
libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0 (0x00007f9e60376000)
libzip.so.4 => /usr/lib/x86_64-linux-gnu/libzip.so.4 (0x00007f9e60163000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f9e5ff46000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
(0x00007f9e5fb7c000) /lib64/ld-linux-x86-64.so.2 (0x00007f9e612d2000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9e5f90c000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9e5f704000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9e5f4ea000)

nm showed that the required symbols are missing

$nm -gD /usr/local/lib/libusb-1.0.so.0 | grep version

Then I searched for other libusb  containing the symbols

$ locate libusb-1.0.so.0
/lib/x86_64-linux-gnu/libusb-1.0.so.0
/lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
/opt/calibre/lib/libusb-1.0.so.0
/usr/lib/libusb-1.0.so.0
/usr/lib/libusb-1.0.so.0.0.0
/usr/local/lib/libusb-1.0.so.0
/usr/local/lib/libusb-1.0.so.0_toberemoved

$ nm -gD /lib/x86_64-linux-gnu/libusb-1.0.so.0 | grep version
0000000000006190 T libusb_get_version

Finally, I renamed the outdated /usr/local/lib/libusb-1.0.so.0 . The dependency of libsigrok corrected itself to /lib/x86_64-linux-gnu as confirmed with ldd. After that I managed to build sigrok-cli and start the AppImages PulseView-0.4.1-x86_64.AppImage and sigrok-cli-0.7.1-x86_64.AppImage without any problems.

$ sudo mv /usr/local/lib/libusb-1.0.so.0 /usr/local/lib/libusb-1.0.so.0-temp
$ ldd /usr/local/lib/libsigrok.so
linux-vdso.so.1 =>  (0x00007ffe453e1000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f10f103e000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007f10f0d2d000)
libserialport.so.0 => /usr/local/lib/libserialport.so.0 (0x00007f10f0b1c000)
libftdi1.so.2 => /usr/lib/x86_64-linux-gnu/libftdi1.so.2
(0x00007f10f090e000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0
(0x00007f10f06f6000)
libzip.so.4 => /usr/lib/x86_64-linux-gnu/libzip.so.4 (0x00007f10f04e3000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f10f02c6000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f10efefc000)
/lib64/ld-linux-x86-64.so.2 (0x00007f10f165c000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f10efc8c000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f10f1834000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f10efa72000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f10ef86a000)


Difference between "removable drive hot-plugged" and "removable media inserted"?

"Removable drives" probably refers to something like SATA drives that can be hot-plugged, like on a server, maybe eSATA as well.

"Removable media" probably means more along the lines of USB devices.

There is probably a difference between mounting a USB device and mounting a SATA device. USB drives are generally mounted automatically (optionally in this case), but other hard drives are not.


Is it possible to access to the files from a hard disk connected as external?

Yes.

If you have physical access, then you own the computer. Full encryption is the only option to prevent that - and that includes denying you access if the key goes missing.

Otherwise, you just mount the drive (or it's image) in a PC where you are root...


Securely automount encrypted drive at user login

When I wrote this answer a few years ago this was the best way of implementing the solution. I'd now suggest that you look at the next answer using mount.ecryptfs_private instead.

I was also looking for a way to automatically mount a second eCryptfs volume. The following collection of scripts and configuration modifications will securely and automatically mount your volume on login, either to the GUI or the CLI.

There is a better solution that's in the process of being created (though I think not quite ready for automatic mounting on user login, as such this script will have a limited shelf life.):

ecryptfs on too-small harddrive - how to add links into the encryption?

The security of the scripts depends on your home directory being encrypted with eCryptfs so that the script and files with the password to unwrap your passphrase are encrypted. If you leave your computer unlocked with a root shell open after log in it will be possible to access the passwords, however use of sudo NOPASSWD allows secure mounting of the partition without requiring password entry or leaving the passphrase in a file readable by the user.

One known deficiency of these scripts is that your second volume will not be unmounted on logout, as such it's not particularly suitable for multi user systems.

My solution is implemented with several parts, two shell scripts, one that performs the actual mounting and another that serves as a wrapper for it.

This is the wrapper script that validates if the directory is already mounted, if it isn't then it will call the mounting script using sudo:

/home/johnf/scripts/automount_ecryptfs

#!/bin/bash

MOUNT_POINT=/home/johnf/slow

grep -q $MOUNT_POINT /proc/mounts
if [ $? -eq 1 ]; then
  sudo /home/johnf/scripts/mount_other_ecryptfs
fi

This script calls /home/johnf/scripts/mount_other_ecryptfs which is as follows.

Note that this script assumes that you have file name encryption enabled, if you don't it will be necessary to either modify the script to handle detection (look at ecryptfs-recover-private) or you could remove the ecryptfs_fnek_sig mount option.

The following is the /home/johnf/scripts/mount_other_ecryptfs script:

#!/bin/bash

ENCRYPTED_VOLUME=/vol0/.ecryptfs/johnf/.Private/
MOUNT_POINT=/home/johnf/slow
PASSFILE=/home/johnf/scripts/ecryptfs_passphrase
MOUNT_PASSWORD=secret_passphrase
ECRYPTFS_SIG=`head -1 ${ENCRYPTED_VOLUME}//../.ecryptfs/Private.sig`
ECRYPTFS_FNEK_SIG=`tail -1 ${ENCRYPTED_VOLUME}//../.ecryptfs/Private.sig`

printf "%s" $MOUNT_PASSWORD | ecryptfs-insert-wrapped-passphrase-into-keyring ${ENCRYPTED_VOLUME}/../.ecryptfs/wrapped-passphrase
mount -t ecryptfs -o key=passphrase:passfile=${PASSFILE},ecryptfs_sig=${ECRYPTFS_SIG},ecryptfs_fnek_sig=${ECRYPTFS_FNEK_SIG},ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=n ${ENCRYPTED_VOLUME} ${MOUNT_POINT}

You will also need to create a file with your password in it, this file will be used by the eCryptfs mount command:

/home/johnf/scripts/ecryptfs_passphrase:

passwd=secret_passphrase

You need to modify the permissions on several files:

chmod +x /home/johnf/scripts/automount_ecryptfs
sudo chown root:root /home/johnf/scripts/mount_other_ecryptfs /home/johnf/scripts/ecryptfs_passphrase
sudo chmod a=x /home/johnf/scripts/mount_other_ecryptfs
sudo chmod 400 /home/johnf/scripts/ecryptfs_passphrase

Before creating the scripts you need to create a sudoers configuration to permit the execution of the mounting script using sudo without entering your sudo password.

Add the following to /etc/sudoers (or a file in /etc/sudoers.d). You will want to replace johnf with your username. It's necessary to use an absolute path to the mounting script.

johnf   ALL = NOPASSWD: /home/johnf/scripts/mount_other_ecryptfs

The final step is to call the automount_ecryptfs script on login.

On Ubuntu Unity (and probably gnome) use the Startup Applications applet to create a new startup program that calls /home/johnf/scripts/automount_ecryptfs.

To automatically mount the second eCryptfs volume on login into a bash shell you will want to modify your ~/.bashrc file. Add the following:

/home/johnf/scripts/automount_ecryptfs

With this configuration in place you should now automatically mount your second eCryptfs volume.


How to change selinux modes permissive to enforce in ubuntu 14.04

Simply run setenforce 1 as root. One way to do this is to run sudo setenforce 1.

You can verify that it succeeded by running sestatus and examining the output.

[root@ec2-54-183-55-79 filebeat]# setenforce 1
[root@ec2-54-183-55-79 filebeat]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28


Desktop freezes when trying to switch to another user

As far as I can see all we can do is look forward to an update or a fix, as I have performed numerous installs and switching users are problematic in all installs.

I haven't seen an official status of the bug just reports of the problem on various forums and that it happens with me on every install.  So far logging out then logging in as a different user appears to work without problems.  But any attempt to have two X users logged in at the same time doesn't work in 11.10.

So specifically, there isn't a current fix.  You can't change users as normal.  You need two computers to have two users logged into Ubuntu 11.10 X at the same time.


How to open new doccument tab in gedit and send text flow into it from terminal?

Indicate that gedit is supposed to read from standard input, by specifying - as an argument:

ls | gedit -

To list absolute paths:

printf "$PWD/%s\n" * | gedit -

$PWD contains the absolute path of the current directory.

I don't know what krusader is, but assuming a krusader user action is like a Nautilus action, you might have to wrap the command in sh -c, and perhaps escape %:

sh -c 'printf "$PWD/\%s\n" * | gedit -'

Replace * with appropriate placeholders (which would be %F in Nautilus Actions.)


How to remove Virtualbox "VirtualBox VMs" folder in /home directory?

The folder you see are the virtual machines that you have used with virtualbox (the virtual HDs so to speak). You already have successfully uninstalled the software but you have to manually delete the virtual hard drives if you don't need them anymore.


Ubuntu 18.04 LTS on my MSI laptop, man command does not work anymore

This was the problem,
man <command> doesn't display anything after package installation with conda on Ubuntu 17.10

something in my anaconda installation affected my man pages. And this solution above has fixed it.

Thanks, Abilash(https://askubuntu.com/users/820071/abhilash)


Is there a way I can use Empathy to chat with a random person off the Internet?

It may depend on the chat protocol.  Click Room -> Join.. -> the + sign next to Room list.  Depending on the chat protocol you're using to chat with it may let you click on it or it may not.  All I have are Facebook and Gmail setup in Empathy and neither of them work with this option.  Perhaps a standard Jabber server will work.  As for IRC not so much.

For IRC click Edit -> Account -> the + button to add a new account -> Jabber and change it to IRC, you can do freenode or you can click it and change to another IRC network, put anything you want in the IRC nickname box and click login.  One issue though, there's no way (that I know of) to list all channels (rooms) of a IRC network in Empathy.  You can join channels but you have to all ready know their names to enter them manually.

One option, if you want to chat with random people on IRC networks, is to use something like Xchat which you can find in the repo.  Depending on what you want to talk about will depend on the nature of the IRC network and the nature of the channels in that network.  Chatting on IRC is the only way I know of if you want to find random people to talk to and Empathy isn't something I would use for that.


To boot from a CD or USB drive:
Plug in the usb.

Restart your computer and wait for that first screen to pop up.

Often, it'll say something like "Press F12 to Choose Boot Device" somewhere on the screen. ...

Give it a moment to continue booting, and you should see a menu pop up with a list of
choices on it.

Select the usb that you installed the .iso file on . It should then begin booting up!

Thanks, hope this helps!


I think you can't access an IP of your LAN when using its global FQDN. You need to use its private IP adress.


Stream a local mp3 file to a remote UPnP-client without a UPnP-server

I can suggest http://www.eezupnp.de/ - simple nice and easy. Supports playlists. Plays files directly from a hard disk. I use it all the time.


Google Chrome user agent, wrong language

In the Google Chrome menu (looks like a wrench), look under Options > Under the Hood > "Web Content" > Languages and spell-checker settings.... There, you should be able to list your preferred languages in priority order.

It seems like this is a bug. It should indeed default to the default locale for your user account.

Edit: I just noticed that this method doesn't actually change the user-agent. (Just the other standard headers that indicate the language -- "Accept-Language" I think?) However, there is a plug-in that should allow you to customize this. (though from the comments, it looks like this, too, might have bugs.)

It's too bad web sites are still looking at User-Agent instead of Accept-Language. (It's... so 1990s.)


The ~/.bashrc file is missing after reboot

Check if your ~/.profile script is okay. Per default ~/.bashrc should be loaded automatically by ~/.profile like this:

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi


I found the root of my problem :

I wasn't using netplan. Since I upgraded from 16.04, it seems the upgrade didn't configure the relation between netplan and NetworkManager properly. This is probably caused by the hardcoded static ip I had added.

The solution I used is as follows :

Using NetworkManager, create a wired connection to replicate the static ip I want.
Remove all mentions of the hardcoded interface in the file /etc/network/interfaces
Reboot ( I have yet to find how to skip this step, but whatever )
Create the missing file /etc/netplan/01-network-manager-all.yaml

network:
  version: 2
  renderer: NetworkManager

sudo nmcli con up 'Wired connection'
I executed the command sudo netplan apply, but I'm not certain if it's required or not

From there on, I can modify my connection then just down and up it to apply my modifications.


Ubuntu 19.04 | Wi-Fi randomly disconnects then reconnects

Probably not related, but thought I'd share by findings. I have a Netgear R6400 router, and I recently switched it to serve two SSIDs, one of them acting as a guest network. Once I turned the guest network off, my Ubuntu laptop started working again with no problems. This article is what drove me to try disabling it. I'm using a Dell XPS 2017 13 inch.

I suspect the Netgear was struggling to keep up with the device, and Ubuntu is a bit more sensitive to unreliable WIFI, as opposed to other versions/ other operating systems.

Hope it helps


Operating system not found after installing Ubuntu 15.04

Have you tryed to boot from USB and enter the terminal, and type this in:

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

and it might work fine this way.

more info at: https://help.ubuntu.com/community/Boot-Repair


Install Droidcam pc client for ubuntu 16.04

Droidcam isn't available for Ubuntu 16.04 and probably never will be because it hasn't been updated since almost 2 years ago.

Up to Ubuntu 15.04 you could have used this instructions.


Where can I put a user-defined shell function?

Depends on the function. If it's just a super-simple one-liner like that you could create an alias or stick the function in ~/.bashrc (a file that bash loads when it starts).

If you're creating something a bit more meaty, it might make more sense to create its own executable script in ~/bin/ which won't exist by default (it's just a directory) but should be in your path. Remember for this the file will need to be executable (chmod +x filename) and start with a proper #!/bin/bash stanza.

The second route has some clear benefits:

It's easier to see what's available
A syntax error won't tank your profile
You don't need to keep re-sourcing your bash config if you change the script
It's available to any shell as long as the full path is used or ~/bin/ is in the path for that shell too (which it should be in most cases AFAIK).


wifi problem ubuntu 16.04 on fujitsu amilo li-2727

In my Li272 it helped update BIOS to ver. 1.10.
Wifi is enabled by default.

http://support.ts.fujitsu.com/content/QuicksearchResult.asp?lng=COM&q=amilo+li2727&btnG_x=11&btnG_y=12

Regards
Koralez


Ubuntu MATE 17.10 Pluma: 'Failed to load module 'pythonloader'

It's a bit unintuitive, and you might want to report this on the Ubuntu MATE Forums as something to be fixed, but there are two packages to install to get the Python Console plugin to work (figured out with apt search libpeas for the first error and apt search pluma for the error I got after installing libpeas-1.0-python2loader):

sudo apt install libpeas-1.0-python2loader gir1.2-pluma-1.0

Now the plugin can be enabled. Click Edit > Preferences to bring up the dialog, go to the plugins tab and check the box next to Python Console

Then click View and toggle on Bottom pane. Voila.


Software for converting and cutting videos with webm support

Try the ffmpeg program:

ffmpeg -i input.mp4 -ss 00:00:03 -t 00:00:08 output.webm

This should get 8 seconds (-t 00:00:08) of input.mp4 (starting 3 seconds into the video -ss 00:00:03) and put them to output.webm as result, i.e. the cut-out is form second 3 to second 11 (don't nail me down if the 3 or the 11 is included then ... )


add it as you did before and then :

open system settings-> software updates-> other software

look for the ppa that was added. Click it and then select edit. Change the distribution from trusty to saucy. Exit and open a terminal.

sudo apt-get update

and then

sudo apt-get install apt-fast


How did you upgrade to 16.10? Did you have any problem during the upgrade?

Can you please post your "sudo lsb_release -a" output?

By the way, a package named "distro-info-data" has been upgraded today. I thought it might be related. If you're sure you're using yakkety and just see the old version displayed in the info page, I guess you should be fine nonetheless.


X keeps restarting without getting to login screen

This happened to me when I installed the samba package before I knew about:

smbpasswd -a zero

Press CTRL-ALT-F1

Login.

Check it:

$ ls -la /home/zero

Change ownership back to the default scheme:

$ chown zero:zero .
$ chown zero:zero ..

Press CTRL-ALT-F6

Login to xwindows.

If you read that, syslog says: WARNING: IceLockAuthFile failed: Permission denied. Now it should be able to create the file with the default scheme in place. lol


How do I install the latest Nvidia drivers via the Additional Drivers tool?

Drivers in the Additional Tool will never be updated to higher versions unless there is a very big issue with them. You need to either add the PPA or update manually.
Upon a Ubuntu release packages are frozen in time only to be updated in case of major problems and bugs. Adding this PPA will update your drivers to the latest versions using packages packed by the Ubuntu team.
The System 76 folks maintain a PPA with just the nvidia drivers in them, so you can use this for just about any machine with an nvidia driver. The nice thing is they keep this PPA up to date with the latest upstream nvidia driver, making this PPA ideal for gamers.
If you already have the drivers installed in your system via the Additional Drivers tool
Add the System76 driver PPA (that includes Nvidia drivers)
sudo add-apt-repository -ys ppa:system76-dev/stable

Update and upgrade
sudo apt-get update && sudo apt-get install system76-driver-nvidia

Then either restart the X server or reboot.
How to remove/uninstall these drivers
Install ppa-purge
sudo apt-get install ppa-purge

Purge the system76 team PPA
sudo ppa-purge ppa:system76-dev/stable


access mysql console in GUI mode from another computer

Workbench cannot run in a non graphical mode and especially not on a server machine without GUI. Every attempt to let it run from ssh is therefore bound to fail.
The solution is to install Workbench on the computer(s) where you want to work in GUI mode.  They can run in linux, MacOS or even Windows. There, start Workbench and create a new connection:

Fill in the various fields as appropriate and there you go. Do not forget to grant the necessary privileges to the 'username' you will use, as explained by Rakesh.


I think it is built in http://php.net/manual/en/function.mssql-connect.php I haven't had to do this before but I ran into this a while back while looking for something similar for work.


Seems that putting this line in my .zshrc file solves the issue.
export TERM="xterm-256color"

Thanks for the idea @steeldriver


Ubuntu showing error messages when started after partly installing something

Delete the malformed line 1 in source list /etc/apt/sources.list.d/ubuntutrucchi.list, then run the command sudo apt-get autoclean&&sudo apt-get autoremove&&sudo apt-get -f install&&sudo apt-get check and try again. (The first 2 commands in the string are an attempt to clean up any unnecessary cruft, the 3rd is an attempt to resolve any dependency issues, and the last is a diagnostic tool that checks to see if we still have any broken dependencies.

For more detail on the apt-get switches in use here, see man apt-get

If that doesn't completely resolve the issue It's likely best that you restore the default repositories.

Note: After restoring default repositories you will have to re add any PPA's that you require.


How do I add "Recovery Console" and "User Defined Session" in the login menu?

You can also do this without installing gdm.

The login choices are .desktop files in /usr/share/xesssions.  The "Recovery Console" is a text file named xterm.desktop with contents

[Desktop Entry]
Encoding=UTF-8
Name=Recovery Console
Comment=Failsafe session with only xterm
Exec=xterm
TryExec=xterm
Icon=
Type=Application
X-Ubuntu-Gettext-Domain=gdm

and the "User Defined Session" is a text file named xsession.desktop with contents

[Desktop Entry]
Name=User Defined Session
Comment=Custom ~/.xsession script
Exec=default

You can add these without gdm.  I did not add the "User Defined Session" so don't actually know that it works.


Ubuntu server 14.04 (final release) doesn't boot

Here's how I finally got this to work: I went into the GRUB boot menu, chose Advanced Options and booted in Recovery Mode. Then I could see the boot process (no black screen) and logged in, edited /etc/default/grub and added the nomodeset param, and ran sudo update-grub and rebooted. I have no idea why modifying the GRUB boot options with the nomodeset param didn't cure the black screen issue.


Do I need to do anything more about drivers in ubuntu?

Is there a similar thing for Ubuntu?

No.

Linux (and so Ubuntu too) uses generic drivers. This means we have 1 specific driver for similar devices. So we have 1 open source driver for nVidia, 1 for AMD etc. Besides that one driver there might also be a driver created by the manufacturer itself (that one is called proprietary).  Same goes for printers, scanners, wireless, usb.

Downside of this method: if the generic driver does not include that specific piece of hardware it will not work out of the box.

  Do I need to do anything special?

After installing you should update your system and then check additional drivers. It is not needed to use a different driver. Sometimes they are even better than the proprietary.

  The Software and Updates program said (under Additional Drivers) that no additional drivers are available. Can I trust that and just assume I'm done with my setup?

In general yes but you need to supply more information about your setup for a more detailed answer. If you do not have an nVidia or AMD graphics card (but an build-in Intel for instance) there will be no proprietary driver. Same goes for wireless: only a few wireless chipset have an extra driver (broadcom for instance).


In a stock 18.xx system, DNS is managed by systemd-resolved.

Although this addresses a problem when dnsmasq and systemd-resolved are run at the same time, it should also solve your problem with CoreDNS...

Regarding dnsmasq and systemd-resolved...

Do a ps auxc | grep -i dns and ps auxc | grep -i resolv and look for dnsmasq and systemd-resolved, and if both are running, you need to disable the DNS part of systemd-resolved by editing /etc/systemd/resolved.conf and...

change:

#DNSStubListener=yes

to:

DNSStubListener=no

then restart systemd-resolve and dnsmasq, or reboot.

You MAY need to reset the symlink that is /etc/resolv.conf (if dnsmasq is not running)...

sudo mv /etc/resolv.conf /etc/resolv.conf.OLD # save the old symlink

sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf # create new symlink

Note: original symlink is...

sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf


Inserting text to existing text within brackets

A few things:

* in regex is a quantifier; if you want behavior similar to the shell wildcard you need .* (any single character, zero or more times)

.* matches greedily, so if you want to exclude things like = as well as the closing ] you need to do so explicitly - that's where you need non-literal [ and ]

m does not need to be escaped on either the LHS (regex pattern) or RHS (replacement)

you need a capture group if you want to re-use (aka backreference) the text between the brackets

you don't need g unless you have multiple matches per line

So
$ sed -r 's|\[([^=[]*)\]|[/mame/\1]|' file
[/mame/one]

[/mame/two]

[/mame/three]

[four = something]

With Perl (which also has a -i in-place mode), you could use lookarounds and lazy (non-greedy) matching:
$ perl -pe 's{(?<=\[)([^=]*?)(?=])}{/mame/$1}' file
[/mame/one]

[/mame/two]

[/mame/three]

[four = something]


Prevent certain files from being moved or deleted by a user

Also: sudo chattr +i <file> is a good trick. It makes the file immutable.


Is there a command or tool to delete unneccessary settings in the home-folder automatically?

There is no such tool I am aware of, but some programs do store the path to the users configuration files in their manual page under the Files section. The next text is retrieved from man chromium-browser:

FILES
   ~/.config/chromium
          Default directory for configuration data.
   ~/.cache/chromium
          Default directory for cache data.  (Why?  See
          <http://standards.freedesktop.org/basedir-spec/latest/> .

If you've just installed an application and want to purge it including any settings, you might want to look for these files based on their modification time. That can be done using find with the -mtime (modification time in days) or -mmin (in minutes) options. For example, if you've started the program within an hour (=60 minutes), you should run:

find ~ -mmin -60 -ls | less

The output will contain the modification date, owner/group (usually your user/group), size and name and will be piped into less so you can use your arrow keys, page up and down keys for navigating.

Finally, you can look at the source (you're using FOSS software, right :) ) if you understand the language. If the program is small, this is doable. But if the program is large, it gets more difficult.


The Unicode look of disapproval no longer displays correctly in 16.04 - how do I fix this?

The Unicode Look of Disapproval (U0CA0) uses the letter ttha from the Kannada language.

You can sudo apt install fonts-lohit-knda to provide the correct font.

You can then insert the character with Ctrl+Shift+U, then 0CA0

ಠ_ಠ


If you want to get the addition of the effects like what you've got in Ubuntu 9.XX, you should install CCSM, Compizconfig-settings-manager. Run below command on your Terminal.

sudo apt-get install compizconfig-settings-manager


Will I be able to switch between desktop enviroments if I install Gnome Shell?

You will be able to switch between Gnome-Shell and Unity in the login screen.


LightDM doesn't show desktop session lists

I guess your unity-greeter has messed up something. I have two solutions.

Reinstall it

sudo apt-get --purge autoremove unity-greeter
sudo apt-get install unity-greeter

Or Install lightdm-gtk-greeter instead. Install it with

sudo apt-get install lightdm-gtk-greeter

and change it as default using

sudo update-alternatives --config lightdm-greeter

and select the entry for lightdm-gtk-greeter and pressing Enter.


Is it safe to install a deb file over a ppa maintained package

It might be safe...but it also might not. Similarly-named packages from different sources may contain different files and different dependencies. This may cause you a lot of headache as you tease out and attempt to resolve each conflict.
The safe method is to uninstall ALL packages from one source before installing replacement packages from another source.


the file

 /etc/default/grub

is used to store the default grub parameters when using update-grub. as the comment line in /etc/default/grub says:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

Of course if you add:

 init=/usr/lib/systemd/systemd

in /etc/default/grub, after running update-grub, you will have init=/usr/lib/systemd/systemd for every menuentry. for example:

menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
    load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root ca645602-ca68-498a-87d2-46cf205285dc
echo    'Loading Linux 2.6.32-5-amd64 ...'
linux   /boot/vmlinuz-2.6.32-5-amd64 root=UUID=ca645602-ca68-498a-87d2-46cf205285dc ro init=/usr/lib/systemd/systemd quiet
echo    'Loading initial ramdisk ...'
initrd  /boot/initrd.img-2.6.32-5-amd64
}

which can not boot debian without systemd installed.


Ubuntu 14.04 freezes when watching youtube videos

You need to install a driver for your Nvidia adapter.

Run in terminal

sudo apt-get install nvidia-352 nvidia-prime

and reboot.


Uninstalling Gnome 3 and reverting back to Gnome 2?

Ubuntu 11.10 is built on the premise of the GTK+3 software libraries.  Therefore, removing GTK+3 will effectively mean no "ubuntu".  What you will be left with is a newer kernel and a few additional slightly upgraded packages.

If you are not interested in backward compatibility etc, then it would be simpler to start from a GTK+2/gnome2 based distro such as Natty and upgrade from that.

Thus, at a minimum - look to installing the 11.10 kernel - either from the mainline or compiling your own.

If the tenor of your question is simply that you don't like the gnome-classic option then personally I would look at similar gnome-2 workflow options such as Cinnamon or excellent panel based options such as LXDE/Lubuntu or XFCE/Xubuntu.

I would also mention MATE that delivers much of the GTK+2 based libraries onto on Ubuntu.  If you take this option, you can use questions like how to remove unity to remove the GUI shell without touching the fundamental core of ubuntu.


how to change resolution in ubuntu 12.04 LTS

You need to find out why your system not able to detect your monitor resolution properly, likely due to your display drivers.

Anyway, the xrndr workaround involves few steps - see if you missed out any.

Calculate mode lines

$ cvt 1920 1280

Create the mode lines from above

$ xrandr --newmode "1920x1280_60.00" 206.25 1920 2056 2256 2592 1280 1283 1293 1327 -hsync +vsync

or

$ newmodecmd=$(cvt 1280 1024 | grep "Modeline" | sed -ne 's/Modeline/xrandr --newmode/p')

$ newmodecmd

Add the mode to your display

$xrandr --addmode VGA1 "1920x1280_60.00"

Activate the mode.

$ xrandr --output VGA1 --mode "1920x1280_60.00"


Using CCSM (CompizConfig Settings Manager) I was able to change the settings of the alt-click to cntrl-alt-click

To do so:

sudo apt install compizconfig-settings-manager
CCSM > Window Management > Initiate Window Move


It looks like the fstab format changed slightly. The following is a working line for the root partition:

192.168.0.1:/nfs-root   /   nfs    rw,noatime,nolock,vers=3   0   0


Ubuntu 13.10 vs 14.04 for a Lenovo Yoga 2 Pro Laptop?

At this time, 14.04 is not a stable release.  If you don't want to deal with bugs as much, you should use 13.10 and not 14.04.  When 14.04 is released you can consider using it, though.

The only time you would use 14.04 is if you're planning to do Ubuntu development work in the latest release, or to fix bugs in 14.04.


torrents downloaded using python urllib2 fail to open in bittorrent client

urllib2 does exactly what it's told and won't automatically decompress content streams. Thankfully, that bit isn't too hard.

Additionally if you're always using the same server, you could skip the check for gzip encoding.

from io import BytesIO
import gzip

torrent = urllib2.urlopen(torrentURL, timeout=30)
buffer = BytesIO(torrent.read())
gz = gzip.GzipFile(fileobj=buffer)
output = open('mytorrent.torrent', 'wb')
output.write(gz.read())

I've subbed in io.BytesIO to keep this compatible with Python 3.


When I am doing sudo apt-get update I got stuck at this :

You receive this error because APT is trying to use IPv6. Quick fix it's to set APT only for IPv4, run the following command to create a configuration file for APT.

sudo nano /etc/apt/apt.conf.d/99force-ipv4

Copy and paste the following line into the file.

Acquire::ForceIPv4 "true";

Save and close the file. From now on, APT will use IPv4 only.