Hot answers tagged

44

The simplest answer to sending one-line messages via gmail is to use ssmtp Install it with the following commands: sudo apt-get update sudo apt-get install ssmtp Edit /etc/ssmtp/ssmtp.conf to look like this: root=rpi3abc@gmail.com mailhub=smtp.gmail.com:465 FromLineOverride=YES AuthUser=rpi3abc@gmail.com AuthPass=testing123 UseTLS=YES Send a one-liner ...


13

Instead of the monitor name from xrandr, use HEAD-[head index]. For instance, use HEAD-0 for the first monitor listed, HEAD-1 for the second, etc. e.g. xsetwacom --set "Wacom Intuos PT S 2 Pen stylus" MapToOutput HEAD-1


11

It sounds like you're misunderstanding top's output. %id is the amount of time the CPU has been idle, that is, doing nothing.


11

As noticed by John Little (thanks !), this is related to fcitx (hamster-cli:4440): GLib-GIO-CRITICAL **: 13:54:40.431: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed sudo apt purge fcitx-module-dbus removed the symptom. Tested in lubuntu-18.10, default desktop (LXQt). That's probably https://gitlab.com/fcitx/fcitx/issues/396.


10

I ended up doing the following: sudo service lightdm stop Then I had to run ctrl + alt + F2 and log in the second terminal, otherwise it would just sit there with dark screen. To start it back up: sudo service lightdm start


10

After blacklisting piix4_smbus, run update-initramfs -u. I don't remember off the top of my head which storage controller drivers are used in a VMware virtual machine, but ata_piix is a very likely candidate. If the initramfs generator only does simple string matching on module names, it might be picking up i2c-piix4 in addition to the ata_piix storage ...


9

ssmtp is just one of many Sendmail wrappers. All of these accept a message on standard input, and optionally a list of addresses as command-line arguments, and they all offer a binary named sendmail which implements (at least the basic features of) the traditional Sendmail command-line API. But properly speaking, that message needs to be well-formed RFC822 ...


8

Lubuntu 14.04: Start -> Preferences -> Additional Drivers Wait for the additional drivers to be located Check the circle labeled "Using x86 virtualization solution - guest addition module source for dkms..." Click Apply Changes Wait for the changes to be applied Click Close. Restart. You may need to restart twice. You should now be able to change ...


8

XKB layouts are defined in a model called RMLVO: Rules, Model, Layout, Variant, Options. The system XKB database is usually in /usr/share/X11/xkb: /usr/share/X11/xkb/ ├── compat # ??? dark magic here, avoid ├── geometry # as in physical, eg for generating layout maps ├── keycodes # helpful for translating keycodes (from xev) to <FOO> ├──...


8

Adding to the OP own answer: When configuring ssmtp, you may also forbid or allow users from defining the From, and also override the domain; you might want to do that for several reasons including the message not falling in the Spam folder. You can add to /etc/ssmtp/ssmtp.conf: # Where will the mail seem to come from? rewriteDomain=my_internet_domain.uk ...


6

I believe these are the defaults: username: lubuntu password: blank (no password) That's literally nothing, for the password. Linux Format magazine If you're using the compilation CD/DVD that comes with this magazine the username should be "ubuntu" with again a blank password. Ubuntu 14.04 compilation disc References What is the default user/password? ...


6

Put this in your ~/.config/openbox/lubuntu-rc.xml in between <applications> tags: <application class="Firefox" name="Navigator"> <fullscreen>yes</fullscreen> </application> To get specific class or name for your applications, use this: obxprop | grep '^_OB_APP' and then click with your cursor inside the app window. ...


6

Per the Arch Wiki try: exec --no-startup-id nm-applet --sm-disable in your .i3config. That's supposed to fix issues with non-XDG WMs. I'm running i3 (single monitor though, so results might be skewed) and run it that way.


5

There is an option to set global scale in LXDE. Edit (or create) .Xresources in your home folder and set the dpi Xft.dpi: 150 For my Dell XPS I have set it to 200 and works reasonably well


5

To disable the login manager permanently on Ubuntu you can do the following: sudo sh -c "echo 'manual' > /etc/init/lightdm.override" To start the login manager manually when needed you would do: sudo service lightdm start To stop it manually: sudo service lightdm stop


5

Things can get really hard if not installed in the proper way. This is how it worked for me: Firstly, remove all previous stuff sudo apt-get remove enlightenment terminology sudo apt autoremove Then, follow these instructions sudo add-apt-repository ppa:niko2040/e19 sudo apt-get update sudo apt-get install enlightenment terminology This adds a ...


5

What's wrong with "mail"? echo "Hi there" | mail -s "Important mail" user@example.com "mail" being /etc/alternative link to /usr/bin/bsd-mailx from bsd-mailx package. I believe it's there by default. Great utility for sending mail from cron scripts, for example. Works on Ubuntu and FreeBSD as well.


5

You also need to update btrfs-progs to a version that supports zstd. Zstd support was initially added in version 4.13.


5

Yes, at least you can use Redshift on it — install the redshift-gtk package. Some desktop environments such as GNOME have similar features built-in, I’m not sure Lubuntu’s does.


4

My bad, my mount command was incorrect. Should've been $> sudo mount -t exfat -o uid=plex,gid=nogroup /dev/sdc1 /media/chris/plex_disk/


4

Sounds like this issue: https://bugs.launchpad.net/ubuntu/+source/guvcview/+bug/1558060 There is a patched build available, for 16.04, so you may give it a try: sudo add-apt-repository ppa:pj-assis/ubuntu/testing apt-get update apt-get install guvcview


4

I'm really partial to using mailx for this: echo "Message body." | mailx -s "Subject line" -a /path/attachment.txt -r "Sender's Name<sender@email.com>" -c recipient2@email.com recipient1@email.com


4

After trying numerous suggestions found here and elsewhere, my solution was: bar { tray_output primary status_command i3status } be careful with the c&p, not sure it'll format correctly


4

Your hash bang must start with the leading forward slash / #!bin/bash is almost certainly not a valid directory/file path and should be #!/bin/bash If you're unsure that a shell exists, you could always use ls or something to ensure the path is correct, or a more portable way to write it would be: #!/usr/bin/env bash This will cause the system to ...


4

By quoting "$OPTIONS", the shell is passing it to rsync as a single string, so rsync is trying to find a single option named "--recursive --ignore-existing --progress", which obviously doesn't exist, since these are three separate options. This should fix it for you: rsync $OPTIONS "$SRC_DIR" "$DST_DIR" A better option might be to use a bash array to ...


4

You can override this with the nr_cpus kernel parameter in the bootloader command line. ... quiet nr_cpus=12 ...


4

The new keybinding for the "Print Screen Key" in Lubuntu 18 uses lximage-qt -s. In order to get the desired behavior you need to change the "Print Screen Key" keybinding to use scrot. This is the screenshot program Lubuntu used to utilize. This option is under, Preferences --> LXQT Settings --> Shortcut Keys Scroll down to "Print" then click on it. ...


4

pcmanfm uses gvfs, a GNOME Virtual FileSystem. It has SMB support in the gvfs-backends package, which depends on libsmbclient and suggests samba-common. GVFS requires D-Bus and/or GIO module support for programs to use it, or a gvfs-fuse package that uses FUSE to allow mounting GVFS-accessible filesystems to be accessible by generic programs. Also, a NFS ...


3

env | grep XDG_CURRENT_DESKTOP returns the desktop environment currently in use. In my case, I see LXDE which is the desktop environment Lubuntu currently uses. echo $DESKTOP_SESSION returns Lubuntu.


3

Although I don't understand why there is a difference in Mint and Lubuntu, I recommend you react to power outages with running the command which solves your problem: mount -a You can either run this command periodically or poll the battery status: upower -i /org/freedesktop/UPower/devices/battery_BAT0 NOTE: Your device may be different. You can confirm ...


Only top voted, non community-wiki answers of a minimum length are eligible