How to install Ubuntu OS on multiple computers at the same time in a LAN

If you are looking for a managed/centralized/GUIfied way to do this, take a look at MAAS from Canonical:

https://maas.io/ .

Especially if you want to tether your deployment plan to security policies, or deploy configurations using Puppet or a similar tool.

Also check out Landscape for post-deployment updating, scripting, and health checking.

https://landscape.canonical.com/

Otherwise look to the links provided by @muru and @AzkerM in comments for more traditional PXE.


Is the "User Accounts" icon listed in the Freedesktop Icon Naming Specification?

The icon is called config-users from what I can tell. At least I see this on my system in the icon list in Glade.


I am having several problems with my nvidia card on ubuntu 12.04 and 12.10, finally I found a configuration that works (on 12.04).

I will describe the steps to the working configuration I have now.

The solution will be installing the propietary nvidia drivers but from the X-SWAT PPA repositories.

For doing so open a Terminal (if the graphical interface is not working go with CTRL+ALT+F1 to a pure tty -terminal-), and type:

sudo apt-get remove nvidia-*  # Uninstall previously installed nvidia drivers

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
#sudo apt-get dist-upgrade #OPTIONAL.With this we update other x-org(display) components.

sudo apt-get install nvidia-current

And restart the computer sudo shutdown -r now.


Check the result of dd with echo $? right after termination. It has to be 0! Check the output of dd for obvious error. I don't see the size of /dev/sdb in the question.

Specifying a device file without partition number doesn't copy the partition, but the whole device including the partition table. Either you know which partition to rescue, i.e. specify /dev/sdaX as if argument of dd or make and image of the whole device (better idea), mount it under a loop device, e.g. findout next free loop device with losetup -f, use it with losetup /dev/loopY /path/to/image.img and make the kernel recognize the partitions with kpartx /dev/loopYp? where ? should be the number of the partition you wanted to rescue the way described in you question.

Depending on how severely broken the disk it, i.e. whether further reads might damage it more, and how much space you have on any storage device, make an image of the original or of the copy (the result would be the copy of a copy, but this might prevent damage to the original by reading).

Speed up things: When you use the copy of /dev/sdb on /dev/sda3 (only use it if you have to), you are copying a lot of useless data if /dev/sdb is only 160 GB (the difference between the end of /dev/sdb and the end of /dev/sda3). If you want to skip that, tell dd to only copy the length of /dev/sdb with bs and count argument (man dd is mandatory reading in this case).

Maybe there's a way to tell the kernel with some tweaks that /dev/sda3/ contains a partition table, but I'd consider this rather tricky and experimental.


Cannot ping between computers, but I can connect (only one way though)

If you want to use ssh in both ways, you have to install the package openssh-server on both computers, to handle incoming ssh requests. This can be installed via the Ubuntu Software Center or using the command line:

sudo apt-get install openssh-server


Nothing work after suspend / Sleep, can't even reboot

If you want to do a hard shut down on your computer you have to keep the power button pressed for like 5 seconds.

If you wan to reboot it making sure that the potential damage is minimized you can press this key combo:

  Ctrl+Alt+Prnt Scr

and holding these keys pressed type the following letters 'reisub'

With that your computer should reboot safely.


Yes, these "apps" are called HTTP proxies and one example for a HTTP proxy is squid which can be installed like this:

sudo apt-get install squid3

After installation you have to configure your program to use localhost:3128 or to use the system wide proxy settings if this is supported by your application. The system wide proxy settings can be configured in your network settings.

Another possibility is to configure squid as a transparent proxy. In that case you don't have to configure your applications but it can be more difficult to setup.

Either way you should check the squid configuration to fine-tune the cache settings if the default settings don't work well for you.

See the Squid Homepage or the Ubuntu Wiki page for Squid for documentation.


For single file

grep -oP "(?<=label1_)[0-9.+-]+[^_ ]+" ./file | head -n 1 >> ./tmpfile
grep -oP "(?<=label3 = )[0-9.+-]+[^_ ]+" ./file | head -n 1 >> ./tmpfile
paste -sd, ./tmpfile | awk '{ print "{"$0"}" }' >> ./newfile
rm ./tmpfile

For multiple files in a folder.
cd to the folder and run:

for file in *; do
if [ "$file" == "newfile" ] ; then continue; fi
grep -oP "(?<=label1_)[0-9.+-]+[^_ ]+" $file | head -n 1 >> ./tmpfile
grep -oP "(?<=label3 = )[0-9.+-]+[^_ ]+" $file | head -n 1 >> ./tmpfile
paste -sd, ./tmpfile | awk '{ print "{"$0"}" }' >> ./newfile
rm ./tmpfile
done


How to move a file into a subfolder of the same name using terminal

Try this.  But you can do it like as usual.

mv /path_to_source_folder/123.txt /123/single/

Here the first one is the path and it's filename name with extension  than we used the main foldername123 and followed by your folder single
 I guess this will do the things.


w showing wrong number of users logged in

/var/run/utmp can sometimes get corrupt and incorrectly report the number of users that are logged.

If you do a sudo tee /var/run/utmp < /dev/null it will get reset. It is not needed to be single-user but it is advisable: logged in users might see some weird results when they try to view users until they log out.

Sources linuxquestions.org and Redhat mailing list.


Running three screens (laptop and 2 external monitors)

I have tried same thing with my HP dv9087ea but can not get all three monitors run in same time. I think laptops can not do that.


How to stop tor from starting before Vidalia?

Newer versions of Tor have a file /etc/default/tor.vidalia. It contains three lines:

if [ -x /usr/bin/vidalia ]; then
        RUN_DAEMON=yes
fi

You can change the option to no. This will prevent from starting as daemon. Instead Tor will now start when you start Vidalia.


What app tests all of GTK's UI elements?

For GTK+3 you have the official gtk3-widget-factory in package gtk-3-examples.


Installing a Linux distro on external drive - Ubuntu

An external hard disk drive or SSD connected via eSATA or USB 3 will work well with linux.

A hard disk drive or SSD will work also via USB 2, but of course slower. USB 2 pendrives will be even slower, because of slow flash memory hardware. See this link about speed of USB pendrives. It is also possible to use a fast memory card.

It is possible to do what you suggest, but it is much easier to get a USB pendrive as an intermediate tool, clone the iso file into the pendrive, and boot from the pendrive.

Portable drive

It makes the installation to the final target drive (hard disk drive, SSD, fastUSB 3 pendrive or fast memory card) both easier and less risky, if you disconnect or unplug the internal drive with Windows during the installation. Then you can write the bootloader to the external drive, and it will work on its own.

That Ubuntu system will be portable to other computers, if you install no proprietary drivers.

Boot via the internal drive

If you do not intend to make a portable drive, but only intend to use the external drive in one computer, you need no bootloader in it. In this case it might even be more convenient to boot via the internal drive. In this case you need not and should not disconnect the internal drive. But check and double-check, that you install Ubuntu to the correct drive!

-o-

If you use a pendrive or memory card for your installed system, you should tweak the system, to reduce wear of the memory cells.


Installing internet explorer and windows media player in ubuntu?

I think using VirtualBox and Windows inside it would give you less headaches and a more reliable result in order to check a URL.


Why can't Mythbuntu play DVDs but vlc can?

I looked at the /dev directory and noticed that while there's no dvd node there is a node called "cdrom".  I went to:

Setup ->
Media Settings ->
Videos Settings ->
Player Settings

and set "DVD Drive:" to "/dev/cdrom".

You could also go to VLC Media Player and go to Media -> "Open Disc..." and see what value it's using for "Disc device" and use that in Mythtv.


After trying everything I could, the conclusion was: too many dependencies were broken. Therefore, I decided to reinstall my Linux - if I knew how fast re-installisation can be, I wouldn't spend days trying to find the mistake.
This manual is self-explanatory, great for "dummies" in Linux. But I learnt a lot.
Main thing I learnt: Do not delete anything you do not know what it is or what it does! :)


Terminal auto-closes with "command not found" error

The problem is that you copied and pasted lines from a blog that contained "pretty" (typographic) quotes into your .bashrc file, so instead of running the command alias, your .bashrc is trying (and failing) to run "alias.

I'm not entirely sure I recreated your problem 100%; when I did the same thing in a virtual machine, I did get the same alias command error that you did, but my Terminal window doesn't auto-close.

Still, I think I know what you'll need to do in order to fix it, even though I can't 100% recreate the problem on my end.  Please press CtrlAltF1 in order to get to a text-only console.  Now log in as your normal username and password.

From here, nano ~/.bashrc, and you will load up your .bashrc file in a simple text mode editor.

Delete those last few lines that you added; you should recognize them pretty easily.  Ctrlk is the keyboard shortcut to delete a whole line (as you can see in the bottom lines of text in nano).  Once you've deleted them, press Ctrlx to exit, and be sure to say yes when it asks you if you want to save your changes.

Once you're back at the prompt, type in exit, then press CtrlAltF7 to get back to your graphical session.  You should now be able to open the Terminal without it auto-closing on you.

If you still can't log in, even at the console:

Please follow the instructions on booting to recovery mode, getting a root shell, and remounting / read-write in my answer password does not work for everything "anymore"!.

Once you've gotten the root prompt and remounted the filesystem read-write, do nano /home/yourusername/.bashrc, and otherwise follow the same instructions from there.  You may also consider cp /etc/skel/.bashrc /home/yourname/.bashrc ; chown yourname /home/yourname/.bashrc to simply replace your bash profile with the system default, if you aren't sure how to fix what you've done to your current one.


Password cannot be accepted or input in non-graphical mode

I have solved the problem but I still feel confused. I follow the answer. However I adopt parts of them:
1. creating directory: /var/lib/samba and adding myself to samba passwords database (sudo mkdir -p /var/lib/samba && sudo smbpasswd -a myusername.
2. sudo pam-auth-update (all the authentication modules were already selected, so I just cliked okay using blankspace).
3. reboot


Having difficulties upgrading from 15.10 to 16.04 after katoolin messed things up

Try to edit

sudo nano /etc/apt/sources.list

and comments all or replace it with the official one:

https://help.ubuntu.com/community/Repositories/Ubuntu


Ubuntu 20.0.4 failing to boot after restore

In your /etc/fstab, you identify partitions by UUID=.... Your new disk has different Universal Unique IDentifiers.
Boot from a USB key, find the new UUIDs (man parted lsblk).
Mount your on-disk root filesystem, ensuring that it's Read/Write rw.
Edit on-disk-root/etc/fstab and plug in the new UUIDs.


Read version of changelog file from variable for debian packaging

I don't think is was created to be used that way. I mean practically within Debian/Ubuntu packaging workflow.
They usually have preset version for original source archive by upstream developer then Debian/Ubuntu developer (who making the Package) add to it the packaging version as suffix. This version is put on new entry in debian/changelog
After all done the files uploaded to repository, then binary get built there. (without expecting such env variable).
What you can do, use dch (debchange) before launch the build. include the new version with cmd flags --newversion or -v with other flags to:

Add new entry
Or Edit last entry
Or Replace the file completely

If you don't want to edit code:

Create new changelog with a new name <newchangelog-file>

Then tell dpkg-buildpackage to use it instead as below
dpkg-buildpackage ... --source-option=-l<newchangelog-file>


I solved the problem this way:

sudo apt-get --purge remove php-common

sudo apt-get install php-common php-mysql php-cli

Now there is no error and php -m shows it has everything:

[PHP Modules]
calendar
Core
ctype
date
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

Still don't know what caused the issue in the first place


How to monitor USB webcam bandwidth usage?

I think this can be done with wireshark.

When it is plug a USB device, in syslog it appear a message like

  Feb  7 21:35:42 Computer kernel: [ 1237.639216] usb 2-1.1.4: new high-speed USB device number 8 using ehci_hcd

With this information, we know the device was plugged in bus 2 with device number 8.

The fire up wireshark

  $ sudo wireshark

It will appear a list of devices... choose the one with same bus id you plug the device, in this case, "USB bus number 2" and start the capture.

In menu, choose "Statistics" then "IO Graphs".

Then in the graphs options, you can create a filter with just de device you want.

For example:

  (usb.bus_id == 2) && (usb.device_address == 8)

In "X Axis" and "Y Axis" ajust the values to have a graphic with 'normal' values, for example Tick Interval: 1 sec, Unit: Bits/tick, and with that the graphic should be in Bits/sec.

IO Graphics


Touchscreen not working after standby Yoga 15

I have the same issue but more so, touch input doesn't even work after wake from sleep on windows, after some digging i found out that it's likely a BIOS issue, this only started to happen when i turned 'Sleep State' to Linux in BIOS.
A temporary workaround could be switching the Sleep State back to Windows or Disabling Thunderbolt in IO/Devices under the security tab of the BIOS
i have a Thinkpad Yoga X1 3rd Gen dual-booting Win10 and Ubuntu 20.04 and this issue seems to be very common on Lenovo devices, still no fix though as of BIOS 1.40.


mouse and keyboard not working xorg 17.10

I tried localectl set-x11-keymap us to set my keyboard layout as US keyboard. I ran given command in tty1 console because my Xorg wasn't launching successfully.

Related man pages:

man localectl
man 7 xkeyboard-config
man setxkbmap

I am running Arch and that is why I was looking for Arch wiki. localectl  must be available in Ubuntu.

I got help from this page.


Shrink or remove swap with 4GB RAM and SSD?

4GB RAM isn't that much actually, if you run chrome or firefox and you have multiple tabs opened for a while you can get to 4GB usage quite quickly.

You can monitor your ram usage with the "System Monitor" application. If you find that you never really exceed 4GB and your swap remains empty you might consider shrinking it. I wouldn't recommend getting rid of it altogether, since Ubuntu will randomly close applications if you run out of RAM and you have no swap.

I have installed myself a little indicator which always shows me how much RAM i use, which I find quite handy. You can find the instructions how to install it in this post: https://askubuntu.com/a/40019/255967


How to change Synapse hotkey on Ubuntu 14.04?

I've also encountered this problem in Ubuntu 14.04 LTS and searched exhaustively for this. Finally I found a workaround for this problem.
The way is to use a lightweight tool named xdotool to simulate moves and clicks of the mouse, and then assign a shortcut for it.
The step in detail is as followed:

Open a terminal and install xdotool via command sudo apt-get install xdotool
Try figuring out the coordinates of the icon of synapse on top panel. Usually the coordinates of top left on the screen is 0,0 (X, Y). When you type the command xdotool mousemove 0 0 click 1 mousemove restore you will probably find the mouse move to the top left and click and then come back to the previous location. Then you can increase X depending on your own. On my computer the coordinates are 950 0 (may differ with resolution/notification area icons but won't vary much).
After successfully activating synapse via command line, we try to assign a shortcut for it. Search Keyboard via Dash and open it. In Shortcuts, add a Custom Shortcuts. Type the name whatever you like and copy xdotool mousemove X Y mousemove restore (X Y for your own) as the command and click Apply. Then you'll find it disabled. Don't worry, just click disabled and it will show new accelerator.. then type your own short keys on keyboard simultaneously.
Close the window and enjoy it :)


Extremely slow ethernet connection after fresh install of 16.04

Was the address x.83 given to you by the network administrator? We notice that ifconfig shows x.81, and we suspect that there are conflicting settings in Network Manager.

I think you actually want managed=false which means that Network Manager will NOT manage any interfaces declared in /etc/network/interfaces. Please revert the file. You probably also want to add: auto enp2s0.

Next, restart NM:

sudo service network-manager restart

Down and up the interface to get the system to read and use the changes:

sudo ifdown enp2s0 && sudo ifup -v enp2s0

Did you get the correct address?

ifconfig

Any improvement?


WiFi not working in secure mode Ubuntu 16.10

Secure boot requires that all software and any added kernel modules, also commonly known as drivers, have a known, registered signing key in order to load. The Broadcom STA driver that your wireless devices requires doesn't yet have a signing key. You can either just disable secure boot or tell Ubuntu to disable secure boot in Ubuntu only using mokutil. Here are some details: Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?

As a 15-year user of Linux and Ubuntu, I am quite comfortable running a simple desktop machine behind a firewall-enabled router without secure boot.


How to connect remote machine by remote user name?

The syntax for the SSH command line client is basically

ssh remoteuser@host

where host is the hostname or IP address of the remote host.

What do you mean by changing IP address? If both,  server and client are capable of zeroconf, you can always use the zeroconf hostname (usually with domain local) as host name.


How to install a WD Advanced Format Drive in Ubuntu 12.04

No steps required; default partition alignment is to an even MiB boundary, which is more than sufficient for 4kb drives.


If a bug has been flagged as INVALID does that mean no solution will ever come?

There was a reason why this bug was marked as Invalid as expressed by the one that mark it as such:

Marking invalid since this issue was introduced by the BIOS.
Joseph Salisbury (jsalisbury) wrote on 2013-08-13

In this case, is Invalid because Ubuntu can't help but depends of a superior system (the BIOS maker) that introduced a bug. The fix should be introduced in a BIOS update made by the makers, since Ubuntu was working fine before the update,and Ubuntu is doing what is supposed to do. In this case, fix should come from the makers not Ubuntu developers.


Open GParted, select you USB stick as device and choose "Device" → "Create Partition Table ..." to create a new Partition Table. By default, the right type for you is selected, just confirm. Then right-click on the empty storage space is shows you to create a new partition.


First of all, Linux is not made to be a gaming platform, don't be surprised if you have lags. maybe they will work perfectly, maybe not.

I have an hp myself, very similar to you, more powerful 8gb ddr3. I hope Linux  works on your machine, I'll talk about what I know. On my PC:

I had problems with Wifi drivers.
On ubuntu 12.04 LTS, I had to set nomodeset to make unity work. Newer versions never worked no matter what I do.
Suspend and Log out mode did not work because of a graphic card issue,
the screen goes black forever, I had to force shut down using the
power button.

I had these problems, or at least one of them with every Linux distro I used: Archbang, Manjaro, Crunchbang, Linux Mint (Mate and Cinnamon), Linux Mint debian, Fuduntu, Ubuntu. I hope I didn't forget a distro :)

However, now I'm on Xubuntu 13.10 (The latest version) and it works like a charm out of the box on my PC. Xfce is working perfectly, and for some reason I am not experiencing any errors whatsoever. Besides Xfce is lighter than unity, giving you more recourses to play. And in my personal opinion Xfce is much more beautiful that unity.


Test this:

Open a terminal:

Run it:

sudo -i
rm /usr/share/mime/packages/apacheopenoffice.xml
update-mime-database /usr/share/mime


Permission denied while running command Cmake

Works here as normal & root user installed from the Ubuntu sources.
zeus@zeus-H370M:~$ which cmake
zeus@zeus-H370M:~$
zeus@zeus-H370M:~$ su
Password:

root@zeus-H370M:/home/zeus# apt install cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cmake-data gcc gcc-9 libasan5 libatomic1
libbinutils libc-dev-bin libc6-dev libcrypt-dev libctf-nobfd0 libctf0 libgcc-9-dev libitm1
libjsoncpp1 liblsan0 libquadmath0 librhash0 libtsan0 libubsan1 linux-libc-dev make manpages-dev
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
root@zeus-H370M:/home/zeus# which cmake
/usr/bin/cmake
root@zeus-H370M:/home/zeus# cmake --version
cmake version 3.16.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).
zeus@zeus-H370M:~$ cmake --version
cmake version 3.16.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

I would suggest a re-install from the Ubuntu sources.
root@zeus-H370M:/home/zeus# cat /etc/os-release |grep PRETTY
PRETTY_NAME="Ubuntu 20.04.2 LTS"


How to deply/mount a linux distro from .tar file

Determine what the SD card device name is.  This can be done by doing ls -1 /dev > before, pluging in the SD card, then running ls -1 /dev > after; diff before after. This should output something like, usb1.via stackoverflow.
mount the device to the filesystem, ala mount -t vfat -o rw,umask=000 /dev/usb1 /mnt/sdcardvia ubuntuforums.
Copy your files into /mnt/sdcard.


Adding home directory from old drive to fresh install

Is it a bad idea to automatically mount it as my new home directory?

No, this is the recommended thing to do. Bonus points for using a UUID= /etc/fstab entry rather than the less precise /dev/sdxN notation.

As with anything, there are pros and cons. For one thing, if the home partition is going to be accessed by different installs, it is important that the user accounts and numeric user ids match across those installs. This is likely to be the case if you create a single user account during installation. On the other hand, if there are several users involved, it may be a complicated process to reproduce the same user ids across the installs. When managing partitions, it may not be obvious which /home directories go with which installations, so the potential for human error is greater than with a single / partition per install.


It looks like you're trying to install both the 64-bit and 32-bit versions of some plug-ins. Uncheck the packages which have the :i386 at the end of their names, and you should be fine. I'm not exactly sure why it's suggesting them in that specific place, though.


I just had the same problem with the same symptoms. Apparently I had a package queued up to install. I needed to reset this by deleting the install-queue file found in the ~/.local/share/gnome-software/ directory.  To do this open a terminal window and type this command:

rm ~/.local/share/gnome-software/install-queue

If this doesn't fix your problem, you may have a corrupted configuration file, in which case, I'd simply delete all the files in that directory and let them be rebuilt.  That can be done using this command:

rm -r ~/.local/share/gnome-software


To solve your 'unmet dependencies' issue, I suggest using
 sudo apt-get -f install .


In Gnome Tweaks, not installed by default, check whether the extension "Ubuntu appindicators" is enabled. This extension ensures that tray icons are incorporated in the top bar. Depending, it may be advised to restart gnome shell by logging out then back in, or, if you are running on Xorg, by hitting Alt+F2 then r Enter.


cannot write to log file pg_upgrade_internal.log on pg_upgrade

This usually means that your current working directory is a directory that the postgres user can't write to. That's where pg_upgrade will try to write to.

Simply change directory to another that it can write to (or edit the current one's to allow other write).


No, it will not. Unity is there to replace Gnome shell.

That doesn't mean that someone will not provide a ppa to install Gnome shell, though.


Encrypted Home Directory will not generate passphrase

I believe the full command is as follows:

ecryptfs-unwrap-passphrase ~/.ecryptfs/wrapped-passphrase

It will prompt you for a Passphrase, enter your logon password.


Default Line Colors in LibreOffice Writer 5

The answer was far simpler than I thought.

Simply change the color of the object you want to draw and it will automatically become the default for the rest of your session.


The problem seemed to return. So I reinstalled both ess and emacs and that seemed to work:

sudo apt-get purge ess
sudo apt-get purge emacs
sudo apt-get install emacs
sudo apt-get install ess

Previous fix

sudo dpkg -r ess
sudo apt-get check
sudo apt-get update
sudo apt-get upgrade --fix-missing
sudo apt-get install ess


Unable to run Ubuntu on a MSI laptop without disabling ACPI

I have the same Nvidia GTX 950 M graphics card and I made it work following:

sudo apt-get purge nvidia*
sudo reboot

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361
sudo reboot

I didn't specified any such params and I had just blacklisted nouveau and nothing else. My laptop is working all fine. I upgraded to kernel 4.2.5 for wifi issues.

Please refer to this thread for more info.


Download the driver for the MT7630e controller from this page
In a terminal, cd ~/Downloads; unzip MT7630E-master.zip; cd MT7630E-master; sudo chmod +x install.sh (you will be prompted for sudo password), then ./install.sh
Reboot

At this point the controller should be hard-blocked every time the system boots up, requiring to suspend to RAM and to resume in order to unblock it; to fix this:

In a terminal: echo "options asus_nb_wmi wapf=4" | sudo tee /etc/modprobe.d/asus_nb.conf (you will be prompted for sudo password)
Reboot

If this doesn't prevent the controller from being hard-blocked after boot, try this:

In a terminal: sudo gedit /etc/modprobe.d/asus_nb.conf
Replace 4 with 1 in this line: options asus_nb_wmi wapf=4
Save
Exit
Reboot


How can I change what details the Thunderbird email notification pop-up displays?

Was pointed in the right direction by a helpful soul. In Thunderbird go to:

Edit > Preferences > General > Show an alert > Customize

And select Sender


Here is the problem:

Unpacking libjpeg8:amd64 (8d-1+deb7u1) over (8c-2ubuntu8) ...
dpkg: error processing archive /var/cache/apt/archives/libjpeg8_8d-1+deb7u1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libjpeg.so.8', which is also in package libjpeg-turbo8:amd64 1.3.0-0ubuntu2
Preparing to unpack .../dh-python_1.20140511-1~bpo70+1_all.deb ...
Unpacking dh-python (1.20140511-1~bpo70+1) over (1.20140128-1ubuntu8) ...
dpkg: error processing archive /var/cache/apt/archives/dh-python_1.20140511-1~bpo70+1_all.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/dh_python2.1.gz', which is also in package python 2.7.5-5ubuntu3

These packages do not come from the official Ubuntu repositories and the upgrade of these packages try to overwrite files that were installed by another package:

libjpeg8_8d-1+deb7u1_amd64.deb
dh-python_1.20140511-1~bpo70+1_all.deb

You can find the source location with this commands:

apt-cache policy libjpeg8
apt-cache polica dh-python

e.g. for Shotwell in my installation:

$ apt-cache policy shotwell

shotwell:
  Installed: (none)
  Candidate: 0.18.0-0ubuntu4.3
  Version table:
     0.18.0-0ubuntu4.3 0
        500 http://mirror.amsiohosting.net/archive.ubuntu.com/ trusty-updates/main amd64 Packages
     0.18.0-0ubuntu4.1 0
        100 /var/lib/dpkg/status
     0.18.0-0ubuntu4 0
        500 http://mirror.amsiohosting.net/archive.ubuntu.com/ trusty/main amd64 Packages

With this line:

500 http://ppa.launchpad.net/yorba/ppa/ubuntu/ vivid/main

I can identify the associated list file in /etc/apt and/or /etc/apt/sources.list.d

e.g.:

$ find /etc/apt -type f | xargs grep http://ppa.launchpad.net/yorba/

/etc/apt/sources.list.d/yorba-ubuntu-ppa-vivid.list:deb http://ppa.launchpad.net/yorba/ppa/ubuntu vivid main
/etc/apt/sources.list.d/yorba-ubuntu-ppa-vivid.list:# deb-src http://ppa.launchpad.net/yorba/ppa/ubuntu vivid main
/etc/apt/sources.list.d/yorba-ubuntu-ppa-vivid.list.save:deb http://ppa.launchpad.net/yorba/ppa/ubuntu vivid main
/etc/apt/sources.list.d/yorba-ubuntu-ppa-vivid.list.save:# deb-src http://ppa.launchpad.net/yorba/ppa/ubuntu vivid main

And I would have to change or delete this file:

/etc/apt/sources.list.d/yorba-ubuntu-ppa-vivid.list

Remove the associated repositories and downgrade the packages:

sudo apt-get update
sudo apt-get install libjpeg8=8c-2ubuntu8
sudo apt-get install dh-python=1.20140128-1ubuntu8

And the upgrade will work.


How does one control a Windows PC remotely from Ubuntu

TeamViewer
From the Features page:

Cross-platform PC to PC, mobile to PC, PC to mobile, and even mobile to mobile connections that support Windows, macOS, Linux, Chrome OS, iOS, Android, Windows Universal Platform, and BlackBerry.


$ nmcli connection modify Hotspot 802-11-wireless-security.key-mgmt wpa-psk 802-11-wireless-security.psk mypassword

Just replace mypassword with your desired password. Make sure that the password has at least 8 characters.


Ways to find if a server is infected by a bot

The chances of you being infected by a malware are very low but it's better to be safe. Please take a look at the official help guide of Ubuntu here.

It lists out various anti-virus programs which can possibly detect if your system is running any instance of a virus/malware/spyware etc.


Why does Alacarte give me this error when I try to add items to the menu?

It's a bug in Alacarte.

You need to install the package gnome-panel as Alacarte wants to use a program (gnome-desktop-item-edit) that is in that package.


Switch between normal and 10-feet interface

This is an advanced trick, without the full details as I am posting in haste:

Configure the system to launch two different X servers, one at full resolution, and one at lower resolution.  Use the Control-Alt-Fkey sequence to switch between them.


Disabling ipv6 lets this work correctly.


Package ‘git’ has no installation candidate?

First of all after installation you have to run
sudo apt-get update && sudo dpkg --configure -a

Thi sinitiates your package manager additionaly to keep everything clean
sudo apt-get autoremove && sudo apt-get autoclean

No you are ready to go. start by searching the package you want to install
sudo apt-cache search git

This will bring you the search result and you can do
sudo apt-get install git

If still appears same error then check for content in apt source file probably in /etc/apt/sources.list.d/
However you can always simplify the process by using GUI software called package manager. You can launch that software  by searching in menu.


How can I make PCManFM-Qt File Manager Open Files with a Double Click?

There's one more rather hidden place to change that. As near as I can tell, you have to have both settings configured if you want to open files with a double click.
Open  your menu, click on Preferences, click on LXQt settings, and then click on Keyboard and Mouse. Once that opens, make sure you're in the mouse section and untick "Single click to activate items".
For reference, it should look similar to this:


Just run killall unity-panel-service and the panel will restart (bringing the cog back).


Psensor only shows HDD and CPU usage, not temperature

AMD 10h k10temp kernel doc

Is the k10temp module loaded? It's part of the standard ubuntu kernel.

ubuntu-precise$ modinfo k10temp
filename:       /lib/modules/3.2.0-24-generic/kernel/drivers/hwmon/k10temp.ko
license:        GPL
author:         Clemens Ladisch
description:    AMD Family 10h+ CPU core temperature monitor
srcversion:     7C939FE331D037CED8E383B
alias:          pci:v00001022d00001603sv*sd*bc*sc*i*
alias:          pci:v00001022d00001703sv*sd*bc*sc*i*
alias:          pci:v00001022d00001303sv*sd*bc*sc*i*
alias:          pci:v00001022d00001203sv*sd*bc*sc*i*
depends:
intree:         Y
vermagic:       3.2.0-24-generic SMP mod_unload modversions
parm:           force:force loading on processors with erratum 319 (bool)


How to install (or troubleshoot) a USB 3.0 AX88179 Gigabit Ethernet adapter?

This shouldn't be any different than manually compiling the driver as you've done, but other Ubuntu 12.04 precise users can use this ppa to easily install the driver:

ppa:qji/ax88179
https://launchpad.net/~qji/+archive/ax88179

It uses dkms to build asix's driver.

Step by step instructions:

sudo add-apt-repository ppa:qji/ax88179
sudo apt-get update
sudo apt-get install ax88179


Even if this is opinion based, I definitely recommend to choose the NVIDIA GPU. Not only because of the performance benchmarks, most important of all is the drivers support for the operating system. Ubuntu always ships with the latest stable drivers from the NVIDIA long-lived branch. Additionally the latest official drivers are available from the Proprietary GPU drivers PPA. Generally the NVIDIA drivers support is way better than the drivers support  from AMD.
The installation process works easy and smooth, when everything is done correctly.


.deb file installed, but dpkg -L library says it's not installed

dpkg -L's argument should be the package's name, not the deb file's (which can be named anything and have no actual relation to the package metadata).

To get the package name:

dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package

and run dpkg -L with that package name.

Of course, if the deb file you have is the one you installed, you can inspect it directly:

dpkg --contents ballerina-platform-linux-installer-x64-0.975.1.deb

Use the package name and dpkg -L if the deb file you have is of a different version from the one you have installed, and this method if both are the same version.


Error in installing LanguageTool-1.5 on LibreOffice

Install the openoffice.org-java-common package. Just search for it in the software center

This seems to be a longstanding error in Ubuntu.


For system setting problem, try to run this :
sudo apt-get install ubuntu-desktop
For your sound problem, do a real shutdown from windows 8 (not reboot or standby) and test  .
If not ok , test also this command to reset pulseaudio config:
rm -fr .pulse
and restart pulseaudio running this 2 commands:
pulseaudio -k
then
pulseaudio -D


What is the Keyboard Application Shortcut to set a key to mute volume in Xubuntu 16.04?

Mute:

pactl set-sink-mute @DEFAULT_SINK@ 1

Unmute:

pactl set-sink-mute @DEFAULT_SINK@ 0


Edit EFI file paths for Windows Boot Manager from Xubuntu 14.04

efibootmgr is the program to manage the UEFI boot items and their order.  The man page has full instructions.

Maybe Packard Bells have to set "trust" on your (new) efi boot files.
See problems with dual boot om package bell  Set secure boot, select "Select a UEFI file for trusting".  You might get additional choices after you enable the supervisor password.  Search this site for Packard Bell and see what you find.
  Entering Windows boot entries in efibootmgr is pretty much the same as entering Ubuntu entries.

sudo efibootmgr -v

to check what's there.  A typical Windows entry looks like:

Boot0004* Windows Boot Manager  HD(2,e1800,82000,04b9edc2-fc48-11e1-8ec1-e7137b3aaf29)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...n.............

Entering a new one (-p for the EFI partition, defaults to 1)

sudo efibootmgr -L "Windows Boot Manager" -l "/EFI/Microsoft/Boot/bootmgfw.efi" -p 1

Maybe -c to create or -b to edit an existing entry, check the man pages.  Maybe need the backslash \ instead of slash / for the paths.


Found the answer. My /etc/apt/sources.list was broken for some reason.

fix is  here


I would delete the partitions associated with Ubuntu (be careful), then run the setup utility again. Or you could just run the utility and choose to override your current installation.


how to use an image for my custom .desktop file for unity previews

It seems that the name of the .desktop files itself relate to applications in software center.

If you copy the /usr/share/applications/firefox.desktop to your ~/.local/share/applications and then rename firefox.desktop to (for example) libreoffice-calc.desktop (content of the file untouched). Then type in firefox and you'll see in one of the items the preview and comments from libre instead of firefox.

Therefore i think that it is not possible to have own preview images / thumbnails unless your application is in the ubuntu repos.


You can run the following script on start up:

#!/bin/bash

echo 'Press a key...'
echo '[1] Full profile (default)'
echo '[2] whatever 2'
echo '[3] another one'

read -t 3 -n 1 -p "Choose profile: " profile

echo

case $profile in
   1)
      # Run script for profile 1
      ./script-profile1.sh
      ;;
   2)
      # Run script for profile 1
      ./script-profile2.sh
      ;;
   3)
      # Run script for profile 1
      ./script-profile3.sh
      ;;
   *)
      echo Invalid choice
      ;;
esac

If you want, you can include a loop, so that it asks you again in case of an invalid choice or you can program it entirely in your favourite programming language.

But I agree, it would be more nice to choose the profile in the beginning of the boot process. You could power on the computer, choose the profile and then return when everything is started. But I don't know how to use parameters from GRUB.


How to make a default login keyring and use it with libsecret

Install gnome-keyring.
On Debian 10 buster I was getting similar error:
 ** (process:12939): CRITICAL **: 12:15:04.448: lookup failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files

untill I installed the gnome-keyring package (apt-get install gnome-keyring). I hope this solves your problem.


After new 18.04 install to 1 TB SDD - disks utility shows percentage full, kernel.log constantly increasing - pci=noaer added to kernel command line

While searching for information regarding kern.log and syslog.1, I found a page to zero the file size. I performed this after I resolved the source of the problem.

The source was that in the background, I had a constant error regarding PCIe Bus Error. This was throwing line after line scrolling on the screen and I didn't see it until I shut the machine down.

Searching for the PCIe Bus Error led me to this page: it describes how to apply the fix. This worked for me.

you need to add pci=noaer to your kernel command line.

Following the instruction on the page mentioned, the errors stopped and no further space was taken up by logs.

I then zeroed the kern.log and syslog.1 which had become very large - over 160 GB using the 'Shortest method:' from this page.

What resolved the issue?

Add pci=noaer to kernel command line
zero log files kernel.log and syslog.1


You are making a thinking - error ;)

I assume you have two collin- user accounts: collin-blatt and collinblatt.

If you login as collinblatt, the home icon will be on the collinblatt folder, if you login as collin-blatt, it will be on the collin-blatt folder. That has nothing to do with a presumed "default home directory"; it is always on the current user's home folder.

If you indeed have two user accounts, move your important files to the collinblatt folder and login as collinblatt, remove the collin-blatt account.

If you created the folder:collinblatt manually, remove it, create a new user account (with administrator's permissions) collinblatt, login into the new account, copy the files into the new user's home directory and remove the collin-blatt account from your new account.

The only thing you have to keep in mind is that if you have internal references inside your collin-blatt folder, they will have to be edited, since your username is different. Therefore I would not copy the contents of the folders 1:1, but just move the files.


GRUB Doesn't detect windows: Disk is MBR but booting via UEFI

So, it seems like GRUB was properly installed on the MBR, but the BIOS was not booting in the right order. These were the steps to resolve:

Change boot order in BIOS to boot from MBR (for me, this was choosing the option for the Hard Disk that didn't say UEFI).
Boot into Ubuntu.
Run sudo os-prober
Run sudo update-grub
Reboot


How to set up Windows 10 partiton on Ubuntu?

Depending on what you want to use Windows10 for, one could argue that running it in a VM would be the simplest and most effective way to have Windows10 on an Ubuntu installation. That said, I'll assume you want to have Windows10 alongside Ubuntu. For that, you'll need to do this:
0 — Write the Windows10 ISO to a USB Stick as a bootable device

Use df to find your USB stick (it'll be something like /dev/sdc or some such) and it's mount point (eg: /media/{user}/USB)
Unmount the USB stick:sudo umount /media/{user}/USB (change this to whatever the actual mount point is)
Write the .iso file to the USB stick:sudo dd if=windows10.iso \ of=/dev/sdc bs=1M status=progress (be sure to change windows10.iso to the actual file name and /dev/sdc to whatever your USB stick happens to use)

1 — Prepare an NTFS partition for Windows
To install Windows 10, it is necessary to have a primary NTFS partition created on your machine. You can do this via GParted or Disk Utility. You'll probably want to delete that FAT16 partition that you created, as it's unnecessary.
2 — Install Windows 10

Start the Windows Installation from bootable DVD/USB stick
After entering the activation key, choose "Custom Installation"
Select the NTFS Primary partition that you created in Ubuntu

After a successful installation, Windows will replace the boot loader with its own thing, making it difficult to return to Ubuntu. Now you get to do this:
3 — Install Grub for Ubuntu
To install and fix grub, you'll need a Live DVD or Live USB of Ubuntu.

Boot into Live Ubuntu with the DVD or USB stick
Boot-repair will get automatically launched. Select "Recommended Repair"
Reboot

You will now have a Grub menu on boot, where you can choose from Ubuntu, memtest, and Windows 10.


Error messages such as Failed to sync device /dev/sdf7: Input/output error often indicate an issue with the hardware.  The issue can be as simple as a loose cable, or as serious as a failing hard drive.

To determine if the hard drive is failing you might use the graphical program gsmartcontrol to view the attributes of the drive.  Often when I've had a hard drive begin to fail, the Reallocated Sector Count would rise above zero.

For an example of determining if a drive is failing see a tutorial I wrote on Identifying and Replacing a Failing RAID Drive


How to tweak the appearance of desktop icons in Lubuntu?

Assuming, you are willing to tweak the appearance of icon normal-text/selected text/ and the double clicked text and icon colors (selected and unselected), You can use Customize Look and Feel program.
The executable name is lxappearance. If it isn't installed, install it with the command below, if it isn't installed already
sudo apt-get install lxappearance

Then go to Lubuntu start menu → Preferance → Customize Look and Feel to open it.
After opening it, Go to the Color tab. Then check the Use customized color scheme option.

Now you can change the icon colors and text and many others. I'm giving a hint of the corresponding items:

Selected items (Background) controls the color when you select it.

Selected items (Foreground) controls the color of the text when you select it.

The affected file is ~/.config/pcmanfm/lubuntu/pcmanfm.conf.
Hope this answer will help some. I'm still looking to change the text color of desktop icon when unselected. It seems there isn't any option there.


I haven't configured my network adapter. I just left it the way it was. It says "Adapter 1: Intel PRO/1000 MT Desktop (Bridged Adapter, Realtek RTL8821C 802.11ac PCIe Adapter)". And 192.168.69 is a unique IP I made up.

You can't do that.

According to your question, the adapter is bridged. In this case, your configuration has to match the physical network that your host is connected to. If you move your host (or VM) to a different network, configuration will have to be updated to match the network it's connected to.

To find what network the host is, you can run ipconfig in cmd in windows. Note that questions about this is offtopic on AU, and I only include it to help you.

If you set your adapter to NAT, you will not have to update, and you can set the IP's more freely, as Virtualbox will translate for you. NAT has the drawback that you'll have to configure port forwarding to expose any services on the network the host is attached to. This is somewhat more hassle to keep updated, but the nice thing is that your VM will work everywhere, even with static configuration.

Furthermore, I see no reason not to stick with DHCP, in this case, and in general. If you need a static IP, make a reservation in DHCP, or even rely on DDNS to keep DNS in sync with DHCP scopes.

To use DHCP, edit your config to

# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-confid.cfg with the following:
# network: {config: disabled}
network:
    ethernets:
        enp0s3:
            dhcp4: true
    version: 2


I had the same problem but for a different language(Sinhala/Sinhalese). Therefore, I will give you two potential solutions, starting from the easiest one.

Don't try to install ibus m17n package separately. Instead, use Ubuntu Mate default "Keyboard" settings to add your language.

Open "Keyboard" from the dash
Go to "Layout" tab
Add your language (Malayalam is there. I have checked)
You can simply switch languages by clicking on the language layout indicator icon on the menubar

If you really want ibus m17n (I wanted it because my preferred keyboard layout is not among the default layouts), do as follows.

Install ibus-m17n sudo apt install ibus-m17n
Open "IBus Preferences" from the dash, go to the "Input Method" tab and add your language
Open "Startup Applications" from the dash
Add a new entry, give an appropriate name, and put ibus-daemon to the command section
Then, open "Language Support" from the dash and change "Keyboard input method system" to "IBus"

Restart
You can either use layout indicator icon on the menubar or the keyboard shortcut (by default it should be super+space) to switch among the layouts


Firmware update for iPod Touch (iPhone)?

While some older versions of iTunes can currently be made to work with Wine (or Crossover), they cannot be used to update or sync newer iPods

The reason is that Wine lacks a handler for Windows USB device drivers, and the iPod acts as a custom USB device.  This is the same reason that software that requires a special key dongle also doesn't (yet) work in Wine.  There are some preliminary patches available for this, and you can read more history on the Wine wiki, however don't expect anything to work.

The only iPods that currently work in Wine are really old iPods that act as simple USB mass storage devices.  And even then you still need to find an older, working iTunes.

Because of this problem in Wine, to do the firmware upgrade you'll need to either setup a virtual machine with Virtualbox or VMware or, perhaps more simply, borrow someone else's computer.


Cant uninstall fluxgui - package not found

Your original command sudo apt-get remove fluxgui should have removed the app from your system. The message from apt-get E: Unable to locate package fluxgui seems to indicate that it has been removed.

You can check by running ps -ax | grep flux and see if there are any processes flux related processes running.

You might want to also remove the ppa for flux if this was how you installed it sudo apt-add-repository --remove ppa:kilian/f.lux


3D compiz effects choppy and slow. How to fix?

I had same problem, but, however, in my case adjusting compiz settings didn't help a lot.

I also had ATI drivers installed. Then I noticed ATI had JUST released new ones, which are said to have much better supprot for the latest X and Unity. However, ATI released them too late, and they failed to get into Ubuntu repositories.

What I reccoment you is to uninstall the ATI driver (fglrx) Ubuntu installed for you, and get the newest one from the ATI's site: http://support.amd.com/us/gpudownload/Pages/index.aspx

In my case this provided incredible improvement of overall performance. I hope it will help you too!


Bash history handling with multiple terminals

The bash session that is saved is the one for the terminal that is closed the latest. If you want to save the commands for every session, you could use the trick explained here.

export PROMPT_COMMAND='history -a'

To quote the manpage: “If set, the value is executed as a command prior to issuing each primary prompt.”
So every time my command has finished, it appends the unwritten history item to ~/.bash_history before displaying the prompt (only $PS1) again.
So after putting that line in /etc/bash.bashrc I don’t have to find myself reinventing wheels or lose valuable seconds re-typing stuff just because I was lazy with my terminals.

Anyway, you'll need to take into account that commands from different sessions will be mixed in your history file so it won't be so straightforward to read it later.
See also:

https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows


Why/How is it possible to copy 32 bit librarys form Ubuntu to an ARM machine?

Installing 32bit libs works on a 64bit processor because 64bit is a superset of 32bit CPU instructions. However ARM CPUs use a different instruction set. Even if you installed the libraries, you can't use them without also emulating a 32bit x86 CPU for everything to run through.

You can do that with Qemu (or another virtualisation option that supports ARM hosts), essentially running a second x86 version of Ubuntu in the background but it's obviously going to be quite slow. I woulnd't want to play a demanding game.

There are also commercial options in the space but they cost as much as another ARM board.


Switch off the computer by pressing the power button for a couple of seconds and then turn it on. If the grub menu to select ubuntu version does not appear, try turning off the computer while ubuntu boots. After the next startup the menu shows up.

In the grub menu, select "Previous Linux versions" and select the item with kernel version 2.6.35-28. This one booted properly on my laptop.

After logging in, change the grub menu so that the kernel 2.6.35 becomes the default instead of 2.6.38. Or simply remove the kernel image 2.6.38 using synaptic.

This is of course just a workaround and I also would be happy to read here an other solution that fixes the newest kernel somehow.


Nautilus can't see files on a NTFS partitions, but 'ls' command shows them?

When I've had this problem it turned out to be a permissions issue. Assuming your username on your system is satuon, you can change ownership of the files to your user with chown -R satuon /windows/Users/myuser/Desktop

You may need to use sudo (sudo chown -R satuon /windows/Users/myuser/Desktop) -- as with any command I'd encourage you to read man chown to understand what it does before you run it, especially as root.


Errors installing drivers for Brother DCP-J140W printer

I solved my problems and the printer/scanner DCP-j140(wifi) is working well under Linux Mint 13 (Maya LTS = "Ubuntu"):

I installed it under a plain/fresh Mint installation. So first You have to remove the not working printer(s) within the system...

Then you have to download the drivers from here on the Brother website

Select the Brother DCP-j140w drivers. The Downloads directory should then contain the following 2 deb files:

dcpj140wcupswrapper-1.1.3-6.i386.deb
dcpj140wlpr-1.1.3-6.i386.deb

Use bv/ag. the Clamtk anti-virus tool to check these .deb files against viruses or malware since you downloaded them outside the protected area. (Also use the rkhunter...)

sudo apt-get install clamtk
sudo apt-get install rkhunter
sudo rkhunter --update
sudo rkhunter --propupd

and scan with

sudo rkhunter --check --sk

Probably rkhunter will react with some false positives, so don't panic. Check them out by searching online. This is my rkhunter result:

System checks summary
=====================

File properties checks...
    Files checked: 139
    Suspect files: 1

Rootkit checks...
    Rootkits checked : 245
    Possible rootkits: 0

Applications checks...
    All checks skipped

The system checks took: 1 minute and 55 seconds

All results have been written to the log file (/var/log/rkhunter.log)

One or more warnings have been found while checking the system.
Please check the log file (/var/log/rkhunter.log)

Look at this result: Possible rootkits: 0. It always should be zero. If it is not zero then you've got a serious problem. You have to shutdown and install Linux "fresh" again.

Then start a console, the "DOS"-enviroment of Linux...
From here copy/paste all letterly:

sudo apt-get install tcsh
cd Downloads
sudo mkdir /var/spool/lpd
sudo dpkg -i --force-all dcpj140wlpr-1.1.3-6.i386.deb
sudo dpkg -i --force-all dcpj140wcupswrapper-1.1.3-6.i386.deb

Linux/Mint/Ubuntu installed the USB-version of the DCP-j140w.
With:

dpkg  -l  |  grep  Brother

You should get output like this:

ii  dcpj140wcupswrapper                   1.1.3-6                                             Brother CUPS Inkjet Printer Definitions

ii  dcpj140wlpr                           1.1.3-6                                             Brother lpr Inkjet Printer Definitions

ii  printer-driver-ptouch                 1.3-3ubuntu0.1                                      printer driver Brother P-touch label printers

Go to System > Hardware > Printer-configuration:

And you see the usb-version of the DCP-j140w installed.
In the URI you see the USB-link...

If this printer was working well under Windows/Android, it should work under Linux as well...

Go to New Printer and wait until You see something like this:

dnssd://Brother%20DCP-J140W._printer._tcp.local/

Select that one and delete the all the previous versions of the J140W.

After that select printing a testpage:

Within Wifi it should print an Ubuntu testpage...

And now the scanner:

You have to download the scanner .deb files first from here on the Brother website

Find them in the Downloads dir, named as:

brscan4-0.4.2-1.i386.deb
brscan-skey-0.2.4-1.i386.deb

Again, they are downloaded out of the secured environment. Check them first.

I can't say this often enough: on the internet trust nobody, only yourself.

You may need to install the xsane package:

sudo apt-get install xsane

Then type:

sudo dpkg -i brscan4-0.4.2-1.i386.deb
sudo dpkg  -i  --force-all brscan-skey-0.2.4-1.i386.deb

To check out:

dpkg  -l  |  grep  Brother
brscan-skey

Then we have to find out the IP-address of our printer. Therefore we install this:

sudo apt-get install nmap zenmap

To check out: sudo nmap 192.168.1.*

Look for the ip-address in an item like: xxx/tcp  open  printer. That's the right one. Note that ip-address.

Or use  Zenmap (in root/sudo:)

If we know the ip-address of the printer we finally end with:

brsaneconfig4 -a name=SCANNER model=DCP-j140w ip=xxx.xxx.xxx.xxx

(Where xxx = the ip-address of the printer.

Starting up Xsane should now work properly.

Enjoy working with your Wifi printer/scanner.


How to use manual partitioning during installation?

If you have blank disk

Boot into Ubuntu Installation media. This can be either CD or USB stick.
Start the installation. Proceed to Step 4 and choose "Something else":

You will see your disk as /dev/sda or /dev/mapper/pdc_* (RAID case, * means that your letters are different from ours)

Click "New Partition Table..." You will see that you have free space on your disk now:

(Recommended) Create partition for swap. Swap is the partition for keeping unneeded memory pages, like Windows swap. Also it can be used for hibernation.

Select free space and click +
Set parameters like on the picture below:

Notice that you should set swap size more than you have physical memory in order to use hibernation. Also, you can place it in the end of disk, but thus it will be slow.
Create partition for / (root fs). This is the filesystem that contains your kernel, boot files, system files, command-line utilities, libraries, system-wide configuration files and logs.

Select free space and click +
Set parameters like on the picture below:

10 – 20 GiB should be enough
Create partition for /home. This is the filesystem for your user's files: documents, images, music and videos. It's much more like Users folder in Windows.

You can do this just like in step 5 and even choose other fs type (though I recommend use ext4 instead of reiserfs. Simply, the first is much more flexible and the second is quicker)
(Optional) Create separate partitions for /boot, /tmp and /var. Set their size according to your needs:

/boot should be 100 – 500 MiB
/var and /tmp should be > 5 GiB

If you doubt about which device for boot loader installation to choose, leave it default. It would be set by installer. But sometimes it does mistakes. Let me guide you how to deal with it:

If you use only one hard disk, select or leave /dev/sda intact.
If you use more than one hard disk with no RAID, select the one from which your system does boot. You can also select other disk and set BIOS to boot from it.
If you have RAID from which your system starts, it will be /dev/mapper/...

Be sure that you select entire disk, not a single partition!

After all, you should see your disk like this:

As LiveWireBT noticed in comments, it is recommended to place root partition onto primary partition on MBR scheme disks. However, it belongs to personal taste. Sometimes it's even better to put /boot directory on primary and leave root on logical partition.

That's all! You can now click Install Now and proceed to the installation.


Blank screen after using Bleachbit's "clear disk space" option - how can I recover?

I do not know "bleachbit" it sounds like a home remedy for Covid .
However, I have a suggestion about what you might do: use the installation disk (really any version of Ubuntu or Mint ) and run gparted. It will tell you if the drive is really wiped, it shows the unused space in partitions.
Also, you could boot to the grub prompt, reporting back with what you see when you do these things, and a bit about our level of experience, might get the attention of a more knowledgeable contributor.
Good Luck!


How to configure iscsi fault tolerance in ubuntu 12.04?

Could you please be more specific? iSCSI SANs usually have multiple controllers that make failover transparent to the clients, the SAN IP is simply attached to the remaining controller. Multipath is multipath, it's an OS independent concept, Linux multipath readily supports many iSCSI SANs.

https://help.ubuntu.com/12.04/serverguide/device-mapper-multipathing.html

Update 8/17/2012
So depending on how you defined the network you might have the capacity to create path redundancy, but the storage host itself is one big single point of failure. As long as you understand that you can create a custom solution. There are some roadblocks however.

Multipath operates on the concept of interrogating the paths, identifying all the ones that respond with the same WWID, which is the result of running scsi_id, and then using that to group the correct paths under a single map, and enforce the grouping policy defined. Since these iscsi initiators are essentially virtual devices, they usually don't go so far as to define unique attributes for them. For example.

root@ubuntu02:/persistent/home/intel# sg_vpd -p di /dev/sda
Device Identification VPD page:
  Addressed logical unit:
    designator type: EUI-64 based,  code set: Binary
      0x22f7000155affff4
    designator type: vendor specific [0x0],  code set: ASCII
      vendor specific: 0xC001IntelVD VMBOOT1
  Target port:
    designator type: Relative target port,  code set: Binary
      Relative target port: 0x2
    designator type: Target port group,  code set: Binary
      Target port group: 0x0

Is probably going to return nothing. If you notice in the multipath.conf there's
a line called "getuid_callout", usually pointing to a tool called *scsi_id*

/lib/udev/scsi_id --whitelisted /dev/sda
222f7000155affff4

getuid_callout can be substituted with anything you want, in your case you'll need to define some deterministic mapping, so the paths you've exposed over the network really do point to the same device. Otherwise you're just going to scribble garbage everywhere. Once you have that you can create a basic multibus group with constant priority.

    device {
        vendor "FOO"
        product "BAR"
        path_grouping_policy multibus
        getuid_callout "your-custom-uid-script"
        path_selector round-robin 0
        path_checker directio
        checker directio
        prio constant
        failback immediate
    }

If you want a more sophisticated policy you're going to need to define a prio handler that can rank your paths, after that you could group by priority etc.

I'm making a lot of assumptions here, I don't normally deal with iSCSI, I'm assuming that it will allow you to create multiple paths to the same backing store on the same host, I further assume that each path is exported over an isolated network where you client has access to both.

You could also create a basic multipath map by hand, all multipath-tools is doing is creating a neat interface to streamline DMDEVICE, provide a path checker, and manage paths as they come and go. You could create a map directly using dmsetup, it would even failover, just not very efficient and you would have to manage the path membership yourself.

http://christophe.varoqui.free.fr/refbook.html

See "example of a multipath target".

Alternatively you could go with a network bonding solution, at least you'll have higher availability than you do now, but at the expense of performance.


How to Install 10.10 to an External Hard Drive

Yes, you still have this option. When on "Allocate drive space" go to "Specify partitions manually".
This can help.
Here is the official guide for Ubuntu 10.10.
Here is the official guide for Ubuntu 16.04.


Found answer here. Add to ~/.bashrc:

xhost local:$USER > /dev/null

and then use zenity in script evoked by cron like this:

zenity --error --text='Something very bad has happened!' --display=:0.0

adding --display=:0.0 is what's important


Can't control brightness on Ubuntu 20.04

Use this command kernel --set-brightness 50%. It will command the kernel to change the brightness to your desired %.


Optical drive keeps ejecting automatically

Run This Command in terminal.

eject -i 1


Is network manager called from an /etc/init.d script?

You can add your script to /etc/network/if-pre-up.d/


Modify /etc/default/keyboard, change

XKBOPTIONS=""

to

XKBOPTIONS="caps:ctrl_modifier"

reboot, it will work.


How to run libguestfs-tools tools such as virt-make-fs without sudo?

sudo chmod +r /boot/vmlinuz-*

The underlying problem is that the kernel cannot be read and is reported at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725 and was wontfixed for some reason.
A more direct bug report is present at: https://bugs.launchpad.net/fuel/+bug/1467579
I could not find a method that will work automatically when new kernels are installed.
I think it needs the kernel because it works by booting the kernel with QEMU to do the file operations using the kernel filesystem operations.


File system has run out of space, it says 0 space. How can I put it right?

Type "sudo apt clean" into a terminal. It will ask for your password so type that in when prompted.This will clean out a cache and may get you working again but you probably need to see where all your space has gone as per the comment by @ajgringo619. If you need help understanding the output of those commands just post again. Uninstalling any programs you don't need will also help.


I can't install Nvidia GTX Titan into my Ubuntu 16

Only Nvidia proprietary drivers 367 and 370 support the GTX Titan chipset. Neither are available at the official repositories therefore you should add an additional software source, the semi-official Graphics Drivers PPA, in order to get newer versions.

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update

Now you should have the required versions available the same way as before, at Additional drivers. It can also be installed in command line. For better results remove all traces of prior installations, before installing new ones, with:

sudo apt remove --purge nvidia*


'X Error of failed request: BadRequest' when using nvidia driver with video acceleration (VA)

Fixed it by reverting everything to stock ubuntu, but video acceleration does still not work:

Remove former driver: sudo  ./NVIDIA-Linux-x86_64-xxx.xx.run --uninstall
uninstalling which was related to nvidia (search related packages by dpkg -l): nvidia, cuda, primus, vdpau-va-driver, vainfo, libvdpau1, vdpauinfo
Remove all blacklist stuff for the nouveau drivers: Remove necessary files in /etc/modprobe.d
Revert xconfig by: sudo X -configure && sudo cp xorg.conf.new /etc/X11/xorg.conf
Reinstall mesa-vdpau-drivers-lts-<your release>
IMPORTANT: Remove the gstreamer vaapi, so that it does not try to use the acceleration when plugins like autoconvertor autovideosink are used: sudo apt-get remove gstreamer1.0-vaapi gstreamer1.0-vaapi-doc libgstreamer-vaapi1.0-0:amd64 libgstreamer-vaapi1.0-dev

Now, the test programs glxinfo and glxgears work again as expected.

Anyway: The unsuccessful try: I still do not know why the VA stuff does not work with the original driver even when using the official ppa:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install --install-suggests nvidia-340

glxinfo and glxgears works, but vainfo and vdpauinfo still output errors.
I managed vdpauinfo to output something other than an error by using the mesa drivers and exporting (If the variables point to the proprietary driver, it wont work):

export VDPAU_DRIVER_PATH=/usr/lib/x86_64-linux-gnu/vdpau/
export VDPAU_DRIVER=va_gl

But this is just the display driver, right. So I need to tell VA API, that it has to use vdpau like this (?):

export LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri/
export LIBVA_DRIVER_NAME=vdpau

But in that case, vainfo only replies with errors, no matter which driver name I chose.

If anyone knows how to make it work, please help.
But for now, gstreamer works again (but with high CPU load).

Here are some Links:

VDPAU Library Layout: http://http.download.nvidia.com/XFree86/vdpau/doxygen/html/group__api__winsys__x11.html
NVIDIA driver archive: http://www.nvidia.com/object/unix.html
Hardware video acceleration (Arch): https://wiki.archlinux.org/index.php/Hardware_video_acceleration
NVIDIA xorg config: http://us.download.nvidia.com/XFree86/Linux-x86/331.20/README/editxconfig.html


Set desktop background from command line over ssh

The hint is X11 initialization failed. Graphics programs find the display screen through the '$DISPLAY' environment variable. Ssh does not propagate '$DISPLAY' by default, ssh -X gets you your own X session and sets '$DISPLAY'. but that is not the answer. Perhaps if you had done xhost +inet:remotesystem on the server first... See man xhost, and SEE ALSO
       X(7), Xsecurity(7), Xserver(1), xdm(1), xauth(1),

I think you are doomed to failure, unless you want to read a whole lot of man pages.


Short answer: Yes and no.

  Can root see my encrypted /home folder?

Yes. As long as you are logged in, root as well as any sudo user can see your decrypted files. Also, when you wake up from sleep, your /home will still be decrypted.

Also there is a bug in ecryptfs that prevents unmounting the decrypted /home folder at logout. You should instead shutdown or restart the machine or manually unmount the folder from another sudo/root user. See this question for more information.

  Can another user with root privilege change my password, then login my account using the new password see my encrypted /home?

No. Your /home folder is not encrypted with your password, but with a passphrase which is encrypted with your password. Another user changing your password will not affect the passphrase.

At the first login after an administrative password change, you have to mount your encrypted home manually and rewrap the passphrase. For these tasks you need your old and the new password

ecryptfs-mount-private
ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase

When you change your password, the home directory passphrase is re-encrypted with your new password, so you should have continued access to your files with the new password. This is handled via PAM (Pluggable Authentication Modules) (via).

See this related question.


You can't run .bat files, and also .exe files directly on linux. You can install wine program to use win applications.
Even if you run .bat file, the .bat file will not be able to run client.exe program.

wine installation:

sudo apt-get install wine
wine winappname

The best way is writing a new bash script for linux.


Prevent prompt to change filenames at system boot

The prompt to change filenames is provided by the program xdg-user-dirs-gtk-update which runs very early in the GnomeDisplayManager login process.

This program looks at the file /etc/xdg/user-dirs.conf for some options. It can be disabled by a flag in that file.

It can also be disabled on a per-user basis by creating/editing a similar file in the users .config directory.

More information can be found at http://www.freedesktop.org/wiki/Software/xdg-user-dirs,
though the file names used there might be confusing at first glance.

Please note that the directories containin these configuration files may be somewhere else. Refer to the web page for more information


Change the font color for the Skype panel?

This is a confirmed Skype bug with the Ambiance theme. You can fix this by going into your Skype Options > General > Choose Style and set it to "Desktop Settings". I've posted a screenshot.


How do I get my Canon MF4410 printer to work?

Downloading and installing the drivers provided by Canon via their website may be the best solution.

To save you some time I went and found them for you, you can download their drivers using this wget command:

wget http://files.canon-europe.com/files/soft40355/Software/o1113enx_l_ufr220.zip

Then just extract this archive and install the appropriate .deb package located in one of the folders from the archive.

If that doesn't work you can try downloading them from the website yourself:

http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/Laser/LaserBase_MF_series/i-SENSYS_MF4410.aspx?type=download&page=1


How to customize/add keyboard shortcuts for evince

Did you try this? (The old school method!)

There is a file you can edit by hand to set keyboard shortcuts however you like.  The "accels" file is in your home folder, in .config/evince.  This file has rows like this:

(gtk_accel_path "<Actions>/BookmarsPopupActions/OpenBookmark" "<Primary>o")

You will find the same style of config file in many other programs:

Gimp:  in ~/.gimp/menurc.
Geeqie: in ~/.config/geeqie/accels.

The semi-colon you find at the front of most lines is a comment symbol--they disable the following.

The modifier keys are referred to as <Primary>  <Shift>  and <Meta>. For most keyboards, these are Control, Shift, Alt. If you don't want a modifier, you don't need one.

I suggest you close the app in question and edit the accels file.

It appears to me only tricky part in this is knowing what should be in the middle of the config line.  In apps like Gimp and Geeqie, the accels file is an exhaustive list of all the allowed shortcuts. All are commented out by semicolons at beginning of line.  In Evince, the accels file in my home is pretty skimpy, not too many accels to fix.


Fix laptop hard drive load cycles / kerchunking in desktop and laptop Ubuntu 10.04 machines


Cannot close the media player of LibreOffice

Go to the Tools menu, and click Gallery Player. This toggles the player visibility.

I don't know why it's undecorated for you. Might be a Unity/Compiz quirk (I only use Compiz and it's decorated). You should file a bug.


Ubuntu Laptop Wont Boot After Failed Upgrade

The easiest route to a working computer is probably going to be a new install from CD or USB.

Download the ISO
Follow the instructions on the download page for burning it to USB/CD.
Boot into it, pick Try Ubuntu
Run around and rescue your old files. Stick them on an external disk or transfer them over the network. Whatever works for you, just keep them safe.
Then run the installer from the desktop.

By the time you get to the installer, you could choose to just install over the top (without wiping anything). This might work. It might not. Either way, you'll be left with cruft from the past install.

I would just nuke the disk and do a completely fresh install and 20 minutes later when it's finished installing, just copy back my backed-up files.

Alternatively, if you like pain without the guarantee of success you can try fixing it:

Hold shift when booting to enter the grub menu
Select the rescue mode option
Select the root prompt with networking
Remount root with this: mount -o remount,rw /
Run dpkg --configure -a to finish the installation process. This assumes this part had started before it crashed. If it was still downloading packages it probably wouldn't have broken the entire system.


Looks like you built or installed a custom Python in your home directory (~/Desktop/my-android-toolchain).

Probably this custom Python installation shadows the system Python. You can check which executable is getting run using the command

which python

It should report something like /usr/bin/python. This is the system's Python installation that is preinstalled and which is maintained by your package manager (apt).

If you use that to install Python packages or if you use this installation's pip, they will all install their modules in the system's Python installation. Anything there will not affect your custom Python installation in your home directory, as you see that it has only its own library paths.

You should either remove your custom my-android-toolchain Python installation or make sure that you are running the system's Python /usr/bin/python by default.


How do I access an external XBox One formatted drive?

I just looked at the bytes on the drive and it seems like Microsoft has deliberately erased the MBR on the drive to make our lives harder.

Option 1: Fix the MBR to make the drive readable by Linux.
sudo apt install lilo
lilo -M your.drive.here mbr

Amazingly this actually worked for me. Go ahead and mount it. Make sure you do a full shutdown of the Xbox or it will show up as an unclean filesystem, but linux can fix that for you.
Warning: The drive will remain unreadable by the Xbox until you restore the MBR back to its previous state. (Use dd to copy the backup file onto the drive)
As far as I can tell, this is the same thing that the Windows Equivalent of this is doing (modifying the MBR) and it seems to work for them, but YMMV.

Option 2 (preferred): Sharing the drive between Linux and Xbox
If you don't want to constantly have to write and erase the MBR, you can access the partition directly without an MBR. This requires some trickery!
First find the byte offset of the NTFS partition within the drive:
drive=your.drive.here
offset=`head -c 4k $drive | grep -aobuP '\x00\x00\x00NTFS' | sed 's/\:.*//'`

Now you can mount the partition directly like so:
mount $drive -o offset=$offset /mnt


How easy is it to upgrade from 18.04 beta 1 to 18.04 final release?

It depends how important it is for you that computer works without errors. If you can't afford any glitches, then go for non beta version.

If it is OK that something might not work, you can install 18.04 beta and wait for the final release. I do it that way many times on a computer that may become unstable. I am running 18.04 on a laptop for a month now without any problems. Since 18.04 is in development you get lots of updates every day. I have never had problems going from beta to stable version as it is automatic. The last update on release date makes it stable.


6 years later: how do we "still" prevent Dropbox from adding itself to autostart when launching it?

New Answer - August 2018

The issue can be resolved by a full reinstalled. Answer copied from dropbox forums:

First, make sure you save and quit ALL programs that access files in the Dropbox folder.

Note: Please be sure to make a note or take a screenshot of any Selective Sync settings you may have applied as well as the location of your Dropbox folder (if not in the default location) prior to re-installing, as you will need to match these settings upon re-install. If you're using a headless version of Dropbox you can access the list of Selective Sync folders by running "dropbox exclude".

Depending on your OS and the package you used to perform the installation, you could have files in two different locations. I'm sending you instructions for both of the cases, so if some of the commands error out don't worry.

Run the following commands in your terminal:

dropbox stop
dropbox status # Should report "not running"
rm -rf ~/.dropbox-dist
rm -rf /var/lib/dropbox
rm -rf ~/.dropbox*
sudo apt-get remove nautilus-dropbox
sudo apt-get remove dropbox
rm /etc/apt/source.d/dropbox

Once you're done you have two options:

Install the Dropbox application with its graphical components using one of our packages. If you want to do that, download the correct package for your OS and architecture here:

https://www.dropbox.com/install?os=linux

Open your downloads folder and double click on the package file to start the installer.

When Dropbox has finished installing, please sign in and apply any Selective Sync settings you may have had prior to the reinstall and select the Dropbox folder location (if not in the default location) during the sign in process. Your account will take a few moments to reindex the files and sync any pending changes.
The second option is to run a headless version of Dropbox. This version will not have any of the menus or graphical components and can only be interacted with through the command line. To install this version do the following:

If your machine is 32-bit:

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -

If your machine is 64-bit:

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -

Next, run the Dropbox daemon from the newly created .dropbox-dist folder.

~/.dropbox-dist/dropboxd

When Dropbox has finished installing please sign in and apply any Selective Sync settings you may have had prior to the reinstall. Your account will take a few moments to reindex the files and sync any pending changes.

More installation and CLI information is also available here:

https://www.dropbox.com/install

Once that's done, please open the preferences of the application, (via right clicking the tray icon), and in the Accounts tab of preferences, untick "Start Dropbox on system Startup".

Old work-around

This behaviour only appeared around a month or two ago, so I believe this is a bug and I have reported it to Dropbox.

The only workaround I have found is to:

Quit Dropbox
Open up Ubuntu Startup Applications Preferences
Remove Dropbox from the list

Alternatively, you could type this command in a terminal:

dropbox autostart n

Both these options need to be done after each time you run Dropbox.

If this is really annoying you, you can try editing or locking-down the Dropbox autostart file directly, but be mindful of unintended consequences. You can find it here:

~/.config/autostart/dropbox.desktop


How to make "changing mac adress" a script the best way?

Not really sure what you mean by 'the best way'. The regular, easy and practical way would be to copy/paste the commands into a text file named, for example, best_way, save it anywhere you want, for example, the home folder, and, ... believe it or not, that's it.

To run it, cd to the folder with the file, then sudo bash ./best_way.

PS: Since you'll be using sudo to run the script, there is no need to precede each command with sudo.


Can you change what key is the right click modiefier

Unfortunately, a.f.a.i.k., it is not possible in Linux to configure a modifier key that, while pressed, causes a single click on the touchpad/mouse to be interpreted as a right-click. (Of course, a skilled developer likely might implemented such feature by going into the source code of the operating system).

There are some options you may explore whether they work for you:

By default, a two-finger click should act as a right-click.
You can enable "Area" to enable right-clicking by clicking in the bottom right area. Install 'gnome-tweaks', which is not installed by default on Ubuntu. On the "Keyboard & Mouse" tab, enable "Area" under "Mouse Click Emulation".
In "Settings" - "Universal Access", you can enable "Simulated Secondary Click". Click the option "Click Assist". Now you can set up a delay before a single click (must be a physical click, not a "tap"), turns into a right click.
Also in "Settings" - "Universal Access", you can enable "Mouse Keys". This allow you to control your mouse cursor using the keyboard, but requires the availability of a numerical keypad.

As you see in this answer, you can call up a right-click menu with Shift+F10. This, however, reacts to the position of the text cursor, and not to the position of the mouse cursor. Still, it can be useful in many situations to replace using mouse or touchpad.


NodeJS install not complete? Error about listen not defined?

From Stack Overflow:

  listen is a function that needs to be called on what is returned by createServer

So the comma before listen had to be replaced by a dot.

Secondly a new error came up because of two typos: respons should be response :)


Can I Access Hard Drive Files from Ubuntu?

Yes it should work. When you boot into the live usb, open disks (press windows key and type in 'disks'), select the hard drive you are talking about and click mount.

Then you will be able to access the files with the file manager (called 'files').

The external hard drive should automount so you shouldn't have any trouble with that.


Display setting reset after reboot Ubuntu 20.04 Focal Fossa

If you dig into the bug report you linked it seems clear that the only workaround for this at this moment is turning off fractional scaling or setting fractional scaling to 100%. I recommend that you subscribe to the aforementioned bug report so that you can be notified when a fix becomes available.


If I change to Ubuntu will it save the things I have on my laptop right now?

If I understand correctly, you want to install Ubuntu to your laptop and keep everything from windows?

The easiest way is to multi-boot Windows 7 and Ubuntu. Just install Ubuntu to a flash drive (or Live CD) and boot up from it. You can install it to your hard drive from there, and it gives you an option to install it next to Windows.

Optionally, you can instead use the Ubuntu Window's installer (also called 'Wubi') from the Ubuntu website. That way you can install (or uninstall) Ubuntu like you would a regular Windows program. (One limitation of the Wubi installer is that you can only give Ubuntu a max of about 30GB of space to work with. That may or may not be a problem.)

Either way, you'll end up with a laptop with both Ubuntu and Windows. Each time you boot up your computer, the first thing it will do is ask which OS you want.

If you get stuck with any of the steps, the internet has plenty of resources to guide you through the installation.

Hope this helps!


apticron EMAIL setting format for multiple recipients?

EMAIL="user1@example.com user2@example.com" is the correct format. I have tested it out and can confirm that it works.


How to change language to Turkish but only for terminal

Open ~/.bashrc for editing and add these lines at the bottom of it:

export LANG=tr_TR.UTF-8
export LANGUAGE=tr


How to get past the purple screen of death with multiple GPUs using Nvidia drivers?

This answer describes what worked for me.

It turns out that the problem was maybe caused by me using a HDMI connected TV instead of a normal VGA monitor as a primary screen.

I changed the settings in BIOS to use VGA as primary output and connected the cable directly to the motherboard instead of the graphics card. Then I re-installed the system and everything is working now.


Static IP is configured and Wired Network. Internet not working

The Other Way

I got the same problem even its pinging my gateway but internet not working

so what i did the easiest way is that i have reserved the ip in my router for my mac address ...


In a Linux (or any Unix) system the root user has the ultimate power to do anything.  There is no way to limit the root users ability to view, modify and execute any file or folder. This is more or less the point of the root user.

If you want to protect this folder/file the only thing I can suggest is encrypt it.
Truecrypt is one option.  Just keep in mind that this will not stop the file from being moved or deleted if root so desires.

Ubuntu since 8.10 also offers to encrypt either the complete home directory of a user or a private folder. For more information see here


How to add current time to the unlock screen?

This is a tentative design seen here lots of screenshots

May be available in Gnome 3 watch for the announcement here: http://www.omgubuntu.co.uk/2012/02/gnomes-new-lock-screen-design-goes-online/


How to prevent a Gtk.SourceView from grabbing the URI of a file

To make the Gtk.SourceView stop grabbing the uri, I used the following code snippet:

public class MySourceView: Gtk.SourceView {
    public MySourceView() {
        Gtk.TargetEntry[] targets;
        targets = new Gtk.TargetEntry[1];
        targets[0].target = "text/uri-list";
        targets[0].flags = 0;
        targets[0].info = 0;

        Gtk.drag_dest_set(this, Gtk.DestDefaults.ALL, targets, Gdk.DragAction.COPY);
        this.drag_data_received.connect(this.drag_data_received_cb);
    }

    private void drag_data_received_cb(Gtk.Widget sender,
                    Gdk.DragContext drag_context,
                    int x, int y,
                    Gtk.SelectionData data,
                    uint info, uint time) {
        print("Drag data received!\n");
        // Do something

        Gtk.drag_finish (drag_context, true, false, time);
    }
}

This way, the uri of the file that I drop in the source view is not pasted in it and I can open the file in another tab.


Python scripts not running on Sublime text

I think you used 'P' rather than 'p' for the python command. Update your command and it should run.
Make that python ... rather than Python ....


How do I fix my internet on Ubuntu 12.04 server?

Looking at your ifconfig output, I don't see any IP address assigned, there are many ways of troubleshooting this issue, assuming you have your cable connected to the first Ethernet port eth0 on your server.

send new DHCP request

dhclient eth0

Try and assign static IP if DHCP request failed.

 ifconfig eth0 192.168.1.100/24 up

then add default gw

route add default gw 192.168.1.1

try and ping 8.8.8.8 and hopefully you will get a response.


Start a screen session inside LXD-managed container

For LXD using

lxc exec my-ubuntu -- sh -c "exec >/dev/tty 2>/dev/tty </dev/tty && /usr/bin/screen -s /bin/bash"

or

lxc exec my-ubuntu -- sh -c "exec >/dev/tty 2>/dev/tty </dev/tty && /usr/bin/screen -x"

or with any other screen switch.

The same for Docker
;)

docker run -it my-ubuntu sh -c "exec >/dev/tty 2>/dev/tty </dev/tty && /usr/bin/screen -s /bin/bash"


You will need a Windows 10 key, and a Windows 10 iso.
Then, pretty much the same as a Ubuntu installation, burn the iso to a DVD or USB key, insert it in your computer and install Windows...


Partitioning for Windows 10 + Ubuntu + any distro

1) This partitioning should work just fine, though be sure to read up on how and where to install GRUB to ensure it can be found during booting. More information about that here: https://help.ubuntu.com/community/WindowsDualBoot

2) With the storage partition being an NTFS partition any access control will not work in both Linux and Windows.

3) I use a structure with 2 SSDs (1 for Ubuntu and 1 for Windows) and some shared HDDs. The shared HDDs are formated as NTFS and do not use any sort of access control. Most of my data is on there and as this machine is just used by me, I do not need any way to limit access to those from either OS.


Some files listed in Debian/package.install do not install while building deb

This is new change new to me too. Looking through the build log. *.mo files were actually created.
installing am.gmo as /<<PKGBUILDDIR>>/debian/tmp/usr/share/locale/am/LC_MESSAGES/gimp20.mo
installing ar.gmo as /<<PKGBUILDDIR>>/debian/tmp/usr/share/locale/ar/LC_MESSAGES/gimp20.mo
...

Processed
dh_strip_nondeterminism
 Normalized debian/gimp-data/usr/share/locale/nb/LC_MESSAGES/gimp20-tips.mo
 Normalized debian/gimp-data/usr/share/locale/nb/LC_MESSAGES/gimp20-python.mo
 ...

Then striped and put in a separate archive
pkgstriptranslations: processing gimp (in debian/gimp); do_strip: 1, oemstrip:
pkgstriptranslations: processing libgimp2.0-doc (in debian/libgimp2.0-doc); do_strip: 1, oemstrip:
pkgstriptranslations: processing libgimp2.0 (in debian/libgimp2.0); do_strip: 1, oemstrip:
pkgstriptranslations: libgimp2.0-doc does not contain translations, skipping
pkgstriptranslations: preparing translation tarball gimp_2.10.20-0focal5_amd64_translations.tar.gz...done
INFO: Disabling pkgmaintainermangler for PPA build
INFO: Disabling pkgstripfiles for PPA build
dpkg-deb: building package 'libgimp2.0-doc' in '../libgimp2.0-doc_2.10.20-0focal5_all.deb'.
debian/gimp/usr/share/applications/gimp.desktop: stripping translations
pkgstriptranslations: gimp does not contain translations, skipping
pkgstriptranslations: no translation files, not creating tarball
INFO: Disabling pkgmaintainermangler for PPA build
INFO: Disabling pkgstripfiles for PPA build
dpkg-deb: building package 'gimp' in '../gimp_2.10.20-0focal5_amd64.deb'.
INFO: pkgstriptranslations version 144
pkgstriptranslations: processing gimp-data (in debian/gimp-data); do_strip: 1, oemstrip:
pkgstriptranslations: updating translation tarball gimp_2.10.20-0focal5_amd64_translations.tar.gz...done
INFO: Disabling pkgmaintainermangler for PPA build
INFO: Disabling pkgstripfiles for PPA build
dpkg-deb: building package 'gimp-data' in '../gimp-data_2.10.20-0focal5_all.deb'.
pkgstriptranslations: updating translation tarball gimp_2.10.20-0focal5_amd64_translations.tar.gz...done
INFO: Disabling pkgmaintainermangler for PPA build
INFO: Disabling pkgstripfiles for PPA build
dpkg-deb: building package 'libgimp2.0' in '../libgimp2.0_2.10.20-0focal5_amd64.deb'.
INFO: pkgstriptranslations version 144
pkgstriptranslations: processing libgimp2.0-dev (in debian/libgimp2.0-dev); do_strip: 1, oemstrip:
pkgstriptranslations: libgimp2.0-dev does not contain translations, skipping
pkgstriptranslations: no translation files, not creating tarball

So, the translation are in gimp_2.10.20-0focal5_amd64_translations.tar.gz.
Now, the current issue is gimp_2.10.20-0focal5_amd64_translations.tar.gz is not published anyway, nothing is in your PPA. My only explanation for now, this feature of splitting translations is only working for official repository where they collect them in single file for each channel, but for PPA I am not sure if it is working.


Since it is a laptop the architecture wil be a lot slower than a desktop equivalent.
Don't forget that 1080p HD is most of the time very heavy to decode.....even for your laptop.

But you can do something about it.

Since your videocard is from the 5000 series of AMD Radeon you have the possibility to let your GPU do a big part of the decoding. If you install the proprietary drivers (like fglrx-updates from the standard repository) and you install mplayer-vaapi you will have a splendid hardware acceleration on your movies.

Here is an excellent how-to:
http://www.webupd8.org/2012/11/install-mplayer-with-va-api-hardware.html

And if you have trouble installing the proprietary drivers, you can find good info here: https://help.ubuntu.com/community/BinaryDriverHowto/ATI

Even my ultraslow Asus eee netbook can do 1080i now :-) thanks to "vaapi" (google for it)


How to get graphical display when executing commands as another user, through terminal?

As root, run

echo $DISPLAY
xhost local:nextuser

Then

su - nextuser
export DISPLAY=<the value got from echo $DISPLAY above>
(or SET DISPLAY.. if export does not work)

And you are good to go. :)


conda install -c bioconda simlord | UnsatisfiedError

Solution at BioStars. TLDR; Python 3.6.5 is the most recent stable version for installing and running SimLoRD


How to change the keyboard layout in the terminal

The available layouts are listed in man xkeyboard-config. Choose one.
In a graphical (X11) session
setxkbmap -layout "<chosen-layout>"

Don't forget the quotes if the layout contains parenthesis.
In a virtual console (text-only, TTY) session
Impossible without having root access, unless the sysadmin agrees to let users execute loadkeys, as described in Loadkeys gives permission denied for normal user, in which case you could use
loadkeys < <(ckbcomp -layout '<chosen-layout>')


Is there to tell if Ubuntu won't support certain printers?

There are several online, user maintained databases. Typically they list compatible hardware, but not always. Most of the dirvers are in the kernel and not specific to Ubuntu.

See: https://help.ubuntu.com/community/Printers

https://wiki.linuxfoundation.org/en/OpenPrinting/Database/DatabaseIntro


Is there anyway to run Ubuntu only when a cd is in my computer

Yes, that is what a live CD is for . You can not save data between sessions unless you make a USB with persistence or save data to a location on the hard drive.

  A live CD can be used for a quick demo or test of Ubuntu. Try Ubuntu without any changes to your machine! Windows or whatever you use normally is unaffected after trying this and then rebooting.

See : https://help.ubuntu.com/community/LiveCD

If you like the demo, I suggest you go ahead and install.

If you have old hardware, Unity may be slow, consider xubuntu, kubuntu, or lubuntu.


How can I conditionally change the nautilus background color?

Note: These steps won't work for GTK-2.0, which I think Ubuntu 10.04 uses.

Here is how to change the background color of nautilus in general (for GTK-3.0):

Find the location of your theme. For me it was /usr/share/themes/Ambiance
It is better to copy this folder in ~/.themes and then make changes to it, rather than making changes in the original location.
Look for gtk-3.0/apps/nautilus.css in the Ambiance folder.
Add these lines at the top of the file:

NautilusWindow * {background-color: gray;}
Restart nautilus, using nautilus -q command to quit nautilus.
You will notice that the background color of browser area changes to gray.

Coming back to your original question, I don't think it's possible to theme nautilus based on location because, changing theme requires nautilus to be restarted. (If you are OK with restarting of nautilus, I guess then someone can write a script which can play with css, based on current browser location. But again, I'm not too sure of that.)