Eyefinity across 3 displays with a AMD Radeon 6800

I'm running a similar setup, and unfortunately as far as I know it is still not possible to have the true Eyefinity configuration. At least in my case the three monitors were correctly usable out of the box. Although I have yet to see any advantages to installing the Catalyst drivers versus the open source drivers. Ubuntu handles the three monitors very well though. There are methods to getting games to span the monitors with enhanced resolutions, however a lot of games don't support Eyefinity resolutions. You can manually resize windows to span monitors, however watch out for some Compiz enhancements which will crash and restart X beyond a certain window pixel size. I think wobbly windows is one.

The only real reason to having one big desktop resolution is gaming. Otherwise it becomes annoying for Windows to always maximize across three screens such as a browser giving you two monitors of white space. For productivity, you don't want Eyefinity with the grouping features. Just extend the desktop.

I'd upgrade that TV next, with a connection to your comp since its so close. Stream TV instead.


How do I remove only one specific package with apt-get?

apt-get won't let you do that, since it's a potentially dangerous step for a package management system to allow.

As long as you are aware that there may be consequences, use dpkg with the --remove option  to do it. For example:

sudo dpkg --remove mysql-common

  Note: On my 12.04 system with apache2, php5, mysql-server installed separately, using apt-get to remove mysql-common DOES NOT want to remove apache2 or php5.

From insomnia's comment: If you need to override the dependency system's decision you can (with great care and making sure you know what you are doing) use an additional --force-depends.

sudo dpkg --remove --force-depends mysql-common


Ubuntu on chromebook issue (updated ubuntu now facing problem with sudo startunity)

Unity2D (required for crouton) is not available in Ubuntu 14.04/trusty. Is it possible to change Unity 3D to 2D and will I gain any performance boost after that?


Unable to install 12.04 along side with Windows 7

I reinstalled ubuntu with wubi.exe (2mb+)
This time, I need to download ubuntu again from the internet. It took me 2 hour.
Finally it done. Im able to dual boot windows 7 and ubuntu.

But Im still wondering why my ubuntu CD didn't work?? I don't want to wait for 2 hour every time I need install ubuntu on other pc...


What's the difference between network-manager.service and NetworkManager.service in Systemd?

There is no difference.

The unit file for network-manager.service is a symlink to NetworkManager.service.

$ file $(locate network-manager.service)
/lib/systemd/system/network-manager.service: symbolic link to NetworkManager.service

The "two" services are the same process:

$ systemctl status NetworkManager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2017-05-28 06:51:58 BST; 25min ago
     Docs: man:NetworkManager(8)
 Main PID: 667 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           ├─ 667 /usr/sbin/NetworkManager --no-daemon
           └─1277 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclient-wlan0.pid -lf /var/lib/NetworkManager/dhclient

$ systemctl status network-manager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2017-05-28 06:51:58 BST; 25min ago
     Docs: man:NetworkManager(8)
 Main PID: 667 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           ├─ 667 /usr/sbin/NetworkManager --no-daemon
           └─1277 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclient-wlan0.pid -lf /var/lib/NetworkManager/dhclient

The name network-manager remains simply for compatibility, so people can use old style commands like sudo service network-manager restart (sympathy for our muscle memory).


How can I rip audio from an audio CD in .bin format?

(Expanding on the solution from oldmankit over at Ubuntu Forums)

Install bchunk and flac:

sudo apt install bchunk flac

Use bchunk to convert the .bin to WAV files:

bchunk -w image.bin image.cue track

Use flac to compress the WAV files:

for f in track*.wav; do flac $f; done

Naming and tagging the FLAC files is subject for another question, but cuetools (particularly the cueprint command) may be of help there.


can pbuilder style hooks be used on launchpad builds

You can't use pbuilder-style hooks, no.  However, generating locales doesn't require root in principle; it's just the default locale-gen arrangements that write to the system locale directories and therefore require root.  You could instead use localedef to generate the locales somewhere under your build directory and point your test process at that using LOCPATH.


Use the Network Manager GUI to set up your static IP

This is what my Network Manager settings look like using a static IP

But set your address to 192.168.200.32 and set the gateway to 192.168.200.1


How to access shared folders in Ubuntu VM(Oracle Virtualbox) and link them to the home folder

The mounted share folder belongs to the vboxsf user. You, as a user, were not added to the vboxsf group. To allow access to the shared folders permanently, copy and paste this command in a Terminal window:

sudo usermod -G vboxsf -a $USER

$USER will be replaced with your username. This command appends the user <username> to the vboxsf group, which is the owner of the shared folders (found in /media/... on the Ubuntu box).

You won't need to run a script at startup once you own the mounted shared folder.

But you will most likely need to logout and on again (or restart).


How to clear activities and event log in Canonical Landscape?

I had a period of lots of VM churn, which left me with a similar situation (lots of dangling activities).

It turns out it's quite easy to clear out old activities.

Log into your database:

durr@spacecase:~> sudo -u postgres psql
[sudo] password for durr:
psql (9.5.7)
Type "help" for help.

postgres=#

We can see the databases landscape creates at this point.

postgres=# \l
                                        List of databases
              Name               |  Owner   | Encoding  | Collate | Ctype |   Access privileges
---------------------------------+----------+-----------+---------+-------+-----------------------
 landscape-standalone-account-1  | postgres | SQL_ASCII | C       | C     |
 landscape-standalone-knowledge  | postgres | SQL_ASCII | C       | C     |
 landscape-standalone-main       | postgres | SQL_ASCII | C       | C     |
 landscape-standalone-package    | postgres | SQL_ASCII | C       | C     |
 landscape-standalone-resource-1 | postgres | SQL_ASCII | C       | C     |
 landscape-standalone-session    | postgres | SQL_ASCII | C       | C     |
 postgres                        | postgres | SQL_ASCII | C       | C     |
 template0                       | postgres | SQL_ASCII | C       | C     | =c/postgres          +
                                 |          |           |         |       | postgres=CTc/postgres
 template1                       | postgres | SQL_ASCII | C       | C     | =c/postgres          +
                                 |          |           |         |       | postgres=CTc/postgres
(9 rows)

I've poked around before, I have no idea why landscape apparently needs SIX different databases for one application. Anyways, in this case, we want the landscape-standalone-account-1 database:

postgres=# \c landscape-standalone-account-1
You are now connected to database "landscape-standalone-account-1" as user "postgres".

\d will list the tables in this database. There are a giant number of them. This will probably open an output pager, hit q to exit (or just don't bother with \d.

landscape-standalone-account-1=# \d

The activity table looks interesting. Let's have a look:

landscape-standalone-account-1=# \d activity

[Opens a output-pager again]

Whoa, it's HUGE. How many items are in it?

landscape-standalone-account-1=# SELECT count(*) FROM ACTIVITY;
 count
-------
   830
(1 row)

That doesn't match my activity count (38).  Anyways, we can reinstall easily enough, let's just nuke everything.

landscape-standalone-account-1=# DELETE FROM activity;
DELETE 830
landscape-standalone-account-1=# \q
durr@spacecase:~>

And I now have no activities, and tailing the logs in /var/log/landscape and /var/log/landscape-server doesn't show any errors.

So yes, it's pretty easy to clean out stale activities yourself.


How to visually display dependencies of a package?

debtree
According to the application's website, the debtree package provides "package dependency graphs on steroids".
Note: This is also very useful when planning software upgrades. This application is able to graph dependencies against packages which have not yet been installed on your system. This will read from the sources.list file (usually located at /etc/apt/sources.list) and it will perform a live query using that list.
The following diagram is an example of running debtree against the package dpkg. Here is a map of its dependencies:

To install debtree from the command line(Ctrl+Alt+t) enter the following command:
sudo apt-get install debtree

Usage

Create a .dot file (a directed graph drawing - see the man dot manpage):
  debtree --with-suggests <package> >out.dot

Create a graph (PNG) from a .dot file:
  dot -T png -o out.png out.dot

Create a graph (Postscript) and view it using Okular:
  debtree <package> | dot -Tps | okular - &

Be aware that when running this application against larger packages (e.g. gedit), the images can quickly become unwieldy and illegible.
Note that apt-rdepends can also be used in a similar manner, but piping output into a graphic is a bit more convoluted, in my opinion.
See also:
Ubuntu debtree man page


It has to be a ISO file if it's not a wubi installer or something I don't know what system you are using now but if you are using Windows download and install this if you are using Linux download and install UNetbootin sudo apt-get install unetbootin (if you want to make a live USB).

Or just download normal ISO from here again and burn it with Brasero Disc Burner for Linux or any program on windows it's already in default in there I think.

I don't really know what the problem is you cant download anything different from Ubuntu site than a ISO disc image...

Edit: Or you could have downloaded a .torrent file if you did install any torrent program so you can download the ISO file even quicker.

Edit:
Ok I will answer your questions... AMD is a 64x bit processor so you have to download this file and just make a live CD it's not a zip or something it's normal ISO. You downloaded a 32x bit version of Ubuntu that’s why.

I don't know maybe a broken ISO or something or broken download who knows.


16.04 -- Reassign Ctrl + Alt + Numpad 0 (minimize window) shortcut

I used gsettings list-recursively | grep minimize to find the gsettings key you're looking for: org.gnome.desktop.wm.keybindings minimize

If you wanted to disable it, you could use

gsettings set org.gnome.desktop.wm.keybindings minimize "['disabled']"


How can I get my webcam to work with Ubuntu 14.04?

UPDATE: Actually, I just found that you need to manually add your user to the audio and video groups. The easiest way is to launch the "users and groups" app and go to manage groups

Original answer:There seems to be an issue with the permissions on /dev/video*.

They are owned by root with no read/write permissions for regular users. My quick-and-dirty hack was a simple:

sudo chmod 777 /dev/video*


I don't know where to find the Linux drivers for Canon printers. The official Canon site doesn't even have a Linux driver for my printer. Luckily, the Gutenprint driver works well for Canon printers. You can install it as follows:
sudo apt install printer-driver-gutenprint

Then, connect your printer via USB to the computer, and go to Settings > Printers.

If you don't see your printer there, add it. If you see the printer, click on the gear icon next to it, and select printer details. On the new window that opens up, select Select from database...

Find your printer model under the Canon drivers.

Once you save that, your printer should work :)
I tested this solution both in Ubuntu 18.04 and 20.04 using a Canon PIXMA MP470 series printer, and I could see an entry for the MG2500 series printer too.


rsync freezing/hanging/stopping after a couple of files

I experienced this too.
Resizing the window to make things work is a real thing :-/
And this fixed things: https://github.com/Microsoft/WSL/issues/2138#issuecomment-393617253

To summarize the solution:
Open a new WSL (Ubuntu) window and run this script

while killall -CHLD ssh; do sleep 0.1; done


I had the same problem.

Open Ubuntu Tweak, install it if you haven't done so yet
Go to Tweaks
Then Desktop Icons
Then check On in Show Desktop Icons


How to fix multi-display after upgrade? (Ubuntu Gnome 14.04, Nvidia Optimus)

OK after trying a lot of different things (and subsequently undoing or redoing each one, to try to prevent a bigger mess), I found the solution.

#uninstall bumblebee and nvidia drivers
sudo apt-get purge bumblebee* nvidia*

#reinstall nvidia 331
#(the only driver that apparently works correctly with my video card)
sudo apt-get install nvidia-331 nvidia-settings nvidia-prime

#restart
sudo reboot

After the reboot everything was back to how it should be, like magic.

source: How to install and configure Nvidia Optimus driver on Ubuntu FAQ


How do I get Liferea 1.8 RC to use the global application menu?

Firstly as for the menu issue, Liferea sometimes does not show a menu in the global menu. I'm not sure why, but restarting it usually fixes the problem for me.

As for the icon, you can't get one in Unity unless you whitelist liferea in the systray.

See:

One line command for adding new items to com.canonical.Unity.Panel systray-whitelist
How do I access and enable more icons to be in the system tray?

If you know how to contact the liferea developers, please let them know you would like them to support Ubuntu (and appindicators).

Every voice matters in cases like this, where the developers have chosen not to do something because "we don't use Ubuntu so we don't care". Adding an application indicator for Liferea should be pretty easy, and wouldn't introduce any problems, but they won't do it unless they feel they have a reason.


Using unison for sync, can't get backups working

I got it working. I added the option
-backup 'Name *'

and now it's creating backups.


BQ E5 Ubuntu Edition: How to switch to another open source OS (e.g. Lineage OS)

You can use "Ubuntu Touch" from the UBports-community, then you will get
critical security-updates and bug-fixes to your phone.
https://devices.ubports.com/#/vegetahd


Here's one answer. I'm not sure what mechanism causes a recordfail situation, but adding this line to the grub config seems to do the trick:

GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT


Folder file appears empty for few minutes in ubuntu 16.04 LTS

Your problem is with Nautilus not the filesystem. Nautilus has had this bug before. Also double check that you don't have a .hidden file in that directory.. shouldn't be the case if eventually the directory's contents appear though.

  cd /path/to/folder/
  ls -a #shows all including files hidden with .

Update your version of Nautilus, or refine your question and it's tags based on the fact that it is a Nautilus problem not ubuntu filesystem.


How can I improve my game performance on Wine?

Open source drivers don't use the hardware to its fullest capacity, therefore your games are going to run slower. You should use the proprietary drivers for your GPU. They're maintained by AMD themselves; only they can write a driver that uses the GPU to its fullest potential.

Additionally, Wine provides rather rough compatibility for Windows applications. Considering the nature of Wine, your performance could take a hit.


Ubuntu 16.04 + HP LJ MFP132nw (USB) Failed to scan

I had the same problem.
For me the solution was this:
https://wiki.archlinux.org/index.php/SANE/Scanner-specific_problems#HP
In other words, in the Terminal:
"hp-setup -i"
"hp-plugin -i"
"hp-scan"
(I installed XSane and tried it before that. It didn't seem to help, so probably is irrelevant...)
After that Simple Scan worked.


I followed the steps from here and it worked for the above error.

Please use nmcli to add the password.

Edit /etc/NetworkManager/system-connections/CONNECTION_NAME:
[connection]
id=CONNECTION_NAME

[802-1x]
password=YOUR_8021X_PASSWORD

Restart your network

systemctl restart NetworkManager

You may need to bring the interface down and up to test the new changes:

nmcli con down CONNECTION_NAME
nmcli con up CONNECTION_NAME

All the thanks are for this source:

Ubuntu 16.04 doesn't support PEAP authentication without CA certificate


Installing google Earth Pro on 16.04 LTS

16.04 64-bit Procedure:

Download the following packages using your browser

http://ftp.us.debian.org/debian/pool/main/l/lsb/lsb-security_4.1+Debian13+nmu1_amd64.deb
http://ftp.us.debian.org/debian/pool/main/l/lsb/lsb-invalid-mta_4.1+Debian13+nmu1_all.deb
http://ftp.us.debian.org/debian/pool/main/l/lsb/lsb-core_4.1+Debian13+nmu1_amd64.deb

Open Terminal and navigate to the Downloads folder (cd Downloads)
Install all 3 packages

sudo dpkg -i lsb-security_4.1+Debian13+nmu1_amd64.deb

sudo dpkg -i lsb-invalid-mta_4.1+Debian13+nmu1_all.deb

sudo dpkg -i lsb-core_4.1+Debian13+nmu1_amd64.deb
Fix dependency issues

sudo apt-get install -f
5. Reboot
6. Download and install Google Earth x64 .deb package

Here's the link to the download: http://www.google.com/earth/download/ge/agree.html

Note: Make certain you download the 64 bit version

Open Terminal, change folders to 'Downloads' and install (sudo dpkg -i [name of .deb file])


How can I get the last occurrence of a repeated string in the text file?

Using standard tools, sort, rev, uniq:

% sort -k1,5 -k6,6nr file.txt | rev | uniq -f1 -d | rev

  1 ANKR PRN 7 value 12
715 ANKR PRN 1 value 5
760 ISTA PRN 2 value 6

If you want sort the output as desired:

% sort -k1,5 -k6,6nr file.txt | rev | uniq -f1 -d | rev | sort -k6,6n

715 ANKR PRN 1 value 5
760 ISTA PRN 2 value 6
  1 ANKR PRN 7 value 12


iptables does not know about interface aliasing and so you would only refer to eth0 and eth1 in any iptables rules. Assuming you have the default policy of ACCEPT for the FORWARD chain, and already have /proc/sys/net/ipv4/ip_forward set to 1, then all you should need is:

sudo iptables -t nat -A PREROUTING -i eth0 -d 168.XXX.XXX.72 -j DNAT --to-destination 10.0.3.12
sudo iptables -t nat -A POSTROUTING -o eth0 -s 10.0.3.12 -j SNAT --to-source 168.XXX.XXX.72


KDE Discover - You have no authorization to execute this operation (Kubuntu 20.10)

I fixed it by running following command on Konsole.
killall chrome-remote-desktop-host

Later on, I completely removed the chrome-remote-desktop package from Synaptics. I think, below command should also work if trying to remove from Konsole.
sudo apt remove chrome-remote-desktop


It would be interesting to know if the same live USB would boot another machine. I doubt it would. I've had bad luck with unetbootin recently - I get exactly this result.

What I've found to work is dd, a Linux/Unix disk and data copying utility. The command is

dd if=<file-you-want-to-copy.iso> of=<usb-device-you-want-to-boot-from>

For example, if I had downloaded 13.04 to ubuntu-13.04-desktop-i386.iso in my home directory, I would enter

dd if=`/ubuntu-13.04-desktop-i386.iso of=/dev/sdb


You can reset your  password by booting your system in Recovery Mode

Reboot your system and select recovery mode in the grub menu.

In recovery mode select Drop to root shell prompt option. It will drpo to a root
shell (if you haven't set the root password, otherwise you need to enter the root password.)
Now enter mount -o rw,remount / so that you can remount the filesystem in read/write mode because by default in in read only mode.

Now enter ls /home , It will display the username(in case you forgot you username or not sure about it.)
Now to reset password type passwd your_username.
You will be promoted to enter new password. Enter your new password.
Now type exit and reboot.


What is an example of a generic shell script that will run correctly in the terminal but not when double-clicked?

Easiest example:

create a file "test" and put

#!/bin/bash
echo "Hello World!"

in it
make it executable with chmod 700 test
do ./test on commandline and it will output

Hello world!

From Nautilus:

default: doubleclick and it will open as a text file
when set to "run text files" from Nautilus preferences it will flicker a couple of times and then does nothing.

But this is intended behaviour. For Nautilus you would need to create a script that does a "pop up" with the text "Hello world!" in it.

Example:

#!/usr/bin/python
import os
os.system('zenity --info --text="Hello world!!"')

would show ...

By the way: this also works from command line when you have a desktop. On a tty it would show an error "Failed to connect to Mir".

  and fix it myself in the future

I doubt though there is something to fix. Executing in command line and executing in Nautilus are 2 different things.


Install Ubuntu from iso file using grub2

I have successfully booted from iso file and install from that iso file!

The procedure is here

First put your Ubuntu iso file in a partition, I have put that in "NTFS" partition, But it should work with ext4 partition also. It is second partition in my hard disk.
For example, let's name our Ubuntu iso file as ubuntu.iso. the partition is /dev/sda2 in my case. The location of the Ubuntu iso file is now in (hd0,2)/ubuntu.iso as seen by grub2, i.e It is in the root of the second partition
Then reboot your system, containing grub2.
Press SHIFT to bring the grub2 menu, if it is not shown by default.
In the grub2 menu, press C to bring Command Prompt of the grub2.
In the command prompt type this one by one, pressing Enter after each line.

loopback loop (hd0,2)/ubuntu.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu.iso quiet splash --
initrd (loop)/casper/initrd.lz
boot

In 2nd command, if vmlinuz doesn't work use vmlinuz.efi .

After typing boot press Enter. The Live Ubuntu system will be started.

Open a terminal and type the below command to unmount the drive where iso file resides

sudo umount -l /isodevice

Then proceed with the normal installation procedure.

Notes:

If you put your iso file in a partition other than 2nd partition, change (hd0,2) to (hd0,X), where X refers to the partition number.
If you put your iso file in a USB pendrive, and you start grub2 from Hard disk (installed by your previous system) , change (hd0,2) accordingly. If you have only one partition in the pendrive, it will be (hd1,1). here hd1 refers to the pen drive.
I have tested this method for installing Ubuntu in ext4 and jfs partition, they worked. But installation in btrfs partition failed.


Access windows user folder from ubuntu live

You are looking in the wrong place. On the left bar, there should be something like OSDISK or XXX GB Filesystem. You want to pick the one where Windows is installed(try a few). Your documents will be stored in Documents and Settings/[Your username]/My Documents or Users/[Your username]/My Documents. You can copy them to a flash drive. You can also do this after installing as long as you don't pick the option to remove Windows while installing.


Ubuntu installation stuck at fb0: switching to interldrmfb from EFI VGA

maybe you have to set kernel parameter like this(video=):
Grub black screen (efi mode) press 'e' key and find line: linux "quiet splash video=simplefb:off"
and press f10 to try to boot


Switching to workspaces view shows buggy blue background

I'm adding this as an answer so that the question can be closed:

Ok I found out what happened. Apparently it's not that hard to accidentally install an nvidia driver. All I had to do was remove all the stuff that had nvidia in it and I got 3d back! For anyone else, this is how I found out:

check out Xorg.0.log

$ cat / var/log/Xorg.0.log | more

if you see a line like this somewhere

(EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)

you got an nvidia problem.


Install packages without starting background processes and services

There's a slightly hackish, but quite reliable way to do this which I've been using for a while in an automated installation script.

First create a directory, for example /root/fake, which contains symlinks to /bin/true called:

initctl
invoke-rc.d
restart
start
stop
start-stop-daemon
service
deb-systemd-helper

You could also make them bash scripts that do nothing and return success.

Then include that directory at the front of $PATH when installing packages:

PATH=/root/fake:$PATH apt-get install whatever

This only prevents daemons from starting/restarting, while things like creating an initramfs are still being done.

Explanation

The scripts which are being executed at package installation and removal execute invoke-rc.d or others of the mentioned commands to start and stop services. They don't however call them with absolute paths (at least I haven't encountered one that does).

So by inserting the faked "no operation" commands at the beginning of $PATH, the real commands never get called.

Since only the commands used to start/stop services are being faked, everything else, in particular important tasks like updating/creating initramfs-images still work.


Removing Software RAID 1 after P2V conversion

If you really want it really gone, you have to destroy the md super block, so mdadm will no longer be able recognize it as a array member.

Even though you're in raid 1, your data may still be at risk. Make a backup before proceeding.

https://serverfault.com/a/535269/79262

EDIT UPDATE

The thing to understand here is that a virtual machine is still a machine, the operating system isn't supposed to know that it's virtualized. If you took virtualization out of the equation and instead said "I got a new computer and moved just one of the disks in my RAID1 set over and now it says it's degraded" the problem becomes obvious. The disk itself carries the configuration that it is part of a RAID.

To divorce the disk from that RAID set you have to destroy that configuration, that config exists as binary data (metadata) in  what's known as a "super block", a predetermined place where MD knows to look to find out if a disk has been delegated to it's control.

If erasing magic data off your disk makes you nervous then good, it should. The general procedure for this is:

boot to a live cd
make sure the volume is not mounted
stop the array
cross your fingers
destroy the metadata on the array members per the link provided above
run fsck on the partitions
reboot and hope you didn't just corrupt all your data

This is only even plausible because it is in a MIRROR (RAID 1) so "in theory" the partitions should be fine after the operation and the filesystem will still know where the data is. A RAID 0/5/6 on the other hand spreads the data over each disk in the set in chunks, there's no "undoing it" without destroying everything. You have to copy the data somewhere safe first.

Which is why I said make a backup. The alternative is to just leave it alone, a degraded RAID1 offers no appreciable performance hit, it's just annoying that it's still there.


Linux knowledge: How do I practice Linux commands and different challenges?

OVERTHEWIRE

OverTheWire is nice website designed for people of of various expertise to learn and practice Linux commands and security concepts. There are wide variety of challenges available.

CTF365

On CTF365 users build and defend their own servers while launching attacks on other users’ servers. If you are a beginner to infosec, you can sign up for a free beginner account and get your hands-on experience with some pre-configured vulnerable servers.

HACKING-LAB

Hacking-Lab provides CTF challenges Just register a free account, setup vpn and start exploring the challenges they offer.


How to PXE boot with the new Unified Image in 12.10?

Dunno if you fixed this problem... you can use the following Tutorial to start off.

very straight forward and easy to follow.


This is a common graphics corruption issue that happens with some graphics card. I can reproduce such an issue reliably on a laptop with a broken Intel graphics adapter, so IMO this usually means that the graphics card need replacing.

See if you can clear the problem by restarting the Plasma desktop using the terminal command killall plasmashell; kstart5 plasmashell. If it recovers, it could be a bug in Plasma but if it doesn't - it is definitely a hardware issue.


Adding a Directory to a Path in .profile

The code in the if statement is only used if there's a directory $HOME/bin is a directory
I needs to be /home/vincent/google_appengine instead of home/vincent/google_appengine or (even better) $HOME/google_appengine because home is relative and /home is absolute.

Use

export PATH="$PATH:$HOME/google_appengine"

Remember anything in the $PATH before google_appengine will override it.


Does slow USB drive effect Linux performance?

The short answer to your question is yes you can do it and yes the OS will likely run slower.  However, many people are running TOR strictly from a thumbdrive for security reasons.  I wouldn't advise running server apps this way but as a simple desktop/laptop environment, you can achieve acceptable performance doing what you propose.


Right click on the head your PDF file you opened and select to be always on top.
thats it.

look at the image


Leonardo, try
flameshot gui

And also from docs, if want to define shortcut:
Open Settings → Devices → Keyboard → Shortcuts.
Search for 'print', and unbind the screen capture function by selecting it, and clicking backspace.
Scroll down and click on the '+'.
On 'Name', name it 'Flameshot' or 'PrintScreen'.
Define the command as 'flameshot gui'.
Select 'Define shortcut...'and click your keyboard Prt Sc key.


how to install Eclipse neon via the software manager

Go to https://www.eclipse.org/downloads/ .  Find the "Get Eclipse Neon" block, there should be a "Download 64 bit" button there, then the "Download" button.  That will give you a "eclipse-inst-linux64.tar.gz".  Open it with your archive manager.  Extract it to a temporary location (subdir of Downloads, most likely).  Then open the resulting "eclipse-installer" directory and execute the "eclipse-inst" executable.  Follow the instructions.

In short, the packaged software installer for Linux will be a little behind the latest available versions for packages, and may not always be the best way to install particular things.


USB (wireless) keyboard not recognised during install

This is a known bug with fixes released. I suggest a good read:

alternate iso missing hid-logitech-dj driver

Otherwise use a wired USB keyboard for the install, but you may have problems during GRUB selection if fixes aren't applied.


how do i write EPS and postScript programs?

Put the above lines in a file 'program.eps' and run the following command

evince program.eps

Evince will open up and render 'program.eps'. If you are missing 'evince' install it with:

sudo apt-get install evince


Chrome Remote Desktop access to Headless Ubuntu Server 16.04 Machine

Install Chrome Remote Desktop.
Get an auth code by going to https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/chromoting%20https://www.googleapis.com/auth/googletalk%20https://www.googleapis.com/auth/userinfo.email&redirect_uri=https://talkgadget.google.com/talkgadget/blank&response_type=code&client_id=440925447803-avn2sj1kc099s0r7v62je5s339mu0am1.apps.googleusercontent.com&access_type=offline&approval_prompt=force (note the client ID is from chromium) and once allowed (on the blank page), the authorization will be the code= parameter of the URL.
On the headless machine run:

$ /opt/google/chrome-remote-desktop/start-host --code="MY_AUTH_CODE" \
    --redirect-url=https://talkgadget.google.com/talkgadget/blank \
    --name="MY_REMOTE_NAME"

Pick a PIN and use it to connect later.


Worked when I did:

sysctl -w net.ipv4.conf.all.forwarding=1


BlueScreen after installing Ubuntu 12.04 with wubi

You need to run Windows repair if Windows XP is not booting. If your drive is encrypted or you don't have a Windows XP installation disk then you probably need to get your IT department to look at it.

Wubi not booting is one issue, but if your drive is encrypted then this is normal that it won't work. You cannot boot Wubi from an encrypted drive because Ubuntu runs natively, not under the Windows OS (which can unlock the drive).

Windows not booting is another issue, which seems to be your real issue. It should work because Wubi doesn't change any of the boot files Windows needs. So it's hard to speculate what exactly is wrong with Windows. That's why you need a Windows repair disk.

Please don't try to install Grub or run boot-repair. That will be a waste of time and at best do nothing, at worst, more damage.


CUPS Problem - Printers stop after print several RAW jobs

For each printer run this command:

$ lpadmin -p PRINTERNAME -o usb-no-reattach-default=true

Then restart CUPS

$ sudo service cups restart


Mounting FreeBSD formatted HDD (ufs) in Ubuntu?

/dev/sdb refers to a whole disk, whereas file systems typically reside inside disk partitions. There should be more device nodes with the same prefix and a numerical suffix: /dev/sdb1, /dev/sdb2, and so on. Consequentially, the device path given to mount command should be like this:

sudo mount [OPTIONS...] /dev/sdb1 /path/to/mountpoint

You can explore the partition geometry and file system types with blkid or lsblk -f:

sudo blkid /dev/sdb*
sudo lsblk -f /dev/sdb


By default, ssh searches for id_dsa and id_rsa files. The keys do not have to be named like this, you can name it mykey just as well, or even place it in a different directory. However, if you do either of those, then you need to explicitly reference the key in the ssh command like so:

ssh user@server -i /path/to/mykey

If a command does not accept -i, e.g. sshfs, use the IdentityFile option:

sshfs -o IdentityFile=/path/to/mykey user@host:/path/on/remote /mountpoint

How It Works

When generating a key, you'll get two files: id_rsa (private key) and id_rsa.pub (public key). As their names suggest, the private key should be kept secret and the public key can be published to the public.

Public-key authentication works with a public and a private key. Both the client and the server have their own keys. When installing openssh-server the server public and private keys are generated automatically. For the client, you'll have to do that on your own.

When you (client) connect with a server, public keys are exchanged. You'll receive the servers one, and the server yours. The first time you receive the server public key, you'll be asked to accept it. If this public key changes over a time, you'll be warned because a possible MITM (Man in the middle) attack is going on, intercepting the traffic between the client and the server.

The server checks whether you are allowed to connect (defined in /etc/ssh/sshd_config) and if your public key is listed in the ~/.ssh/authorized_keys file. Possible reasons why the public key is denied:

/etc/ssh/sshd_config:

AllowUsers or AllowGroups is specified, but your server user is not listed in the groups or users list (default not defined, placing no restriction on the users or groups from logging in).
DenyUsers or DenyGroups is specified and you're in the users or groups list.
You're trying to login as root, but PermitRootLogin is set to No (default yes).
PubkeyAuthentication is set to No (default yes).
AuthorizedKeysFile is set to a different location, and the public keys are not added to that file (default .ssh/authorized_keys, relative to home dir)

~/.ssh/authorized_keys: your public key is not added in this file (note that this file is read as root user)

Using multiple keys

It's not uncommon to use multiple keys. Instead of running ssh user@host -i /path/to/identity_file, you can use a configuration file, ~/.ssh/config.

Common settings are the IdentityFile (the keys) and port. The next configuration will check "id_dsa" and "bender" only when connecting with ssh youruser@yourhost:

Host yourhost
   IdentityFile ~/.ssh/id_dsa
   IdentityFile ~/.ssh/bender

If you omit Host yourhost, the settings will apply to all SSH connections. Other options can also be specified for this host match, like User youruser, Port 2222, etc. This would allow you to connect with the shorthand ssh yourhost instead of ssh -p2222 youruser@yourhost -i ~/.ssh/id_dsa -i ~/.ssh/bender.


How can I stop a terminal connection from timing out

I used to have the same issue with two Ubuntu boxes. There are settings in /etc/ssh/ssh_config that you can play with if you have root access, otherwise in your home folder .ssh/config try adding:
Host *
ServerAliveInterval 500
Otherwise there is a tool called "autossh" which will automatically reconnect on disconnect. You'll need to exchange keys if you want it to be fully automatic - and your session could get screwed up if you aren't using something like byobu or screen.


What system monitoring tools are available?

Glances - An eye on your system

Glances is a free software (licensed under LGPL) to monitor your GNU/Linux or BSD operating system from a text interface. Glances uses the library libstatgrab to retrieve information from your system and it is developed in Python.

Installation

Open a terminal (Ctrl+Alt+T) and run following commands:

From Ubuntu 16.04 and above you can just type sudo apt install glances, but version 2.3 have this bug. Else:

Easy Script Installation Glances

curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh | sudo /bin/bash

OR

wget -O- https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh | sudo /bin/bash

Manual Installation

sudo apt-get install python-pip build-essential python-dev lm-sensors
sudo pip install psutil logutils bottle batinfo https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz zeroconf netifaces pymdstat influxdb elasticsearch potsdb statsd pystache docker-py pysnmp pika py-cpuinfo bernhard
sudo pip install glances

Basic usage

To start glances simply type glances in terminal.

In glances you’ll see a lot of information about the resources of your system: CPU, Load, Memory, Swap Network, Disk I/O and Processes all in one page, by default the color code means:

GREEN : the statistic is “OK”
BLUE : the statistic is “CAREFUL” (to watch)
VIOLET : the statistic is “WARNING” (alert)
RED : the statistic is “CRITICAL” (critical)

When Glances is running, you can press some special keys to give commands to it:

c: Sort processes by CPU%
m: Sort processes by MEM%
p: Sort processes by name
i: Sort processes by IO Rate
d: Show/hide disk I/O stats
f: Show/hide file system stats
n: Show/hide network stats
s: Show/hide sensors stats
b: Bit/s or Byte/s for network IO
w: Delete warning logs
x: Delete warning and critical logs
1: Global CPU or Per Core stats
h: Show/hide this help message
q: Quit (Esc and Ctrl-C also work)
l: Show/hide log messages

Cpu , Ram , Swap Monitoring

Disk Monitoring

System Heat Monitoring

If you type glances --help you will find ( -e Enable the sensors module (Linux-only) )

glances -e

Configuration file

You can set your thresholds in Glances configuration file, on GNU/Linux, the default configuration file is located in /etc/glances/glances.conf.

Client/server mode

Another interesting feature of this monitoring tool is that you can start it in server mode just typing glances -s, this will give an output like Glances server is running on 0.0.0.0:61209 and now you can connect to it from another computer using glances -c @server where @server is the IP address or hostname of the server.

Glances uses a XML/RPC server and can be used by another client software.
In server mode, you can set the bind address (-B ADDRESS) and listening TCP port (-p PORT), the default binding address is 0.0.0.0 (Glances will listen on all the networks interfaces) and TCP port is 61209.
In client mode, you can set the TCP port of the server (-p port).
In client/server mode, limits are set by the server side.
The version 1.6 introduces a optional password to access to the server (-P password) that if set on the server must be used also on the client.

Additional Sources: PyPI, Github, Linuxaria

Update

Monitoring juju container just for example how things look like Large Image

In terminal no 1 Glances is running in server mode, In terminal no 2 juju container is running apt-get update & In terminal 3 glances -c 192.168.1.103 Glances is connected to container ip

Glances CPU Usage

Glances itself seems to require period spikes of cpu usage while being active, as evidenced by the built in system monitor usage graph. If the graph is accurate - then by using glances one gives up about 1/4 of a CPU on a system. This my have en effect for those who are monitoring CPU loads on servers.


The command defined in the pertinent field was missing the file interpreter (in this case: bash), and should have been using the files' absolute path.

Ergo: bash /home/username/Scripts/rhythmbox-set-stars.sh 5

A restart of the utility/session was required to apply the new values, presumably because values for the session were updated from the modified .gconf  file.


Ubuntu server 16.04 to 2 gateway at same time

This is really easy, just add routes as following... In this case I'll consided ens160 as default route:

#!/bin/bash

route del default dev ens192
route add default dev ens160 gw 192.168.1.1
route add -net VPN_NETWORK_1/VPN_NETWORK_MASK_1 dev ens192 gw 192.168.0.1
route add -net VPN_NETWORK_2/VPN_NETWORK_MASK_2 dev ens192 gw 192.168.0.1
route add -net VPN_NETWORK_3/VPN_NETWORK_MASK_3 dev ens192 gw 192.168.0.1
.
.
.
route add -net VPN_NETWORK_X/VPN_NETWORK_MASK_X dev ens192 gw 192.168.0.1

Please check your routes, once you have all checked you can add this script to /etc/network/if-up.d/routes with execution permissions in order to have permanent routes (I know there are other ways to do this, although this is the only one that worked for me for permanent routes).

If it doesn't work send me a feedback of your route -n command.


How to customize Ubuntu with extra Ubiquity options for the user?

Based on the following I would guess one could modify the d-i code to change the behavior.

"Where d-i code is used, it is generally possible to preseed it to change default behaviour. See the installation guide for details. By default, preseeding is confined to setting default values for questions, and Ubiquity will not skip over preseeded steps (this is to allow sensible interpretation of going backward and forward in the UI); if the --automatic option is used, preseeded steps will be skipped."

source: http://bazaar.launchpad.net/~ubuntu-installer/ubiquity/trunk/annotate/head:/doc/README

There is also a q&a page on launchpad that may help.


Qt Quick 2.0 UI Application Not Displaying on Touch Device

Do you have a .desktop file for your app, and does it match the app's name?  You should see, when launching it on the device from QtCreator, a line that looks like this in the Application Output pane:

qmlscene <app>.qml --desktop_file_hint=/home/phablet/<app>/<app>.desktop

If you don't have a .desktop file that matches what's being passed to --desktop_file_hint, then the Touch shell won't know enough about the window your app is creating to manage it properly.


Opening a new tab in Firefox through the terminal

What's completely undocumented is that Firefox expects a --url parameter and will launch a new window otherwise. If you don't want the new tab to navigate to a url, give about:newtab as the url parameter.
firefox --new-tab --url about:newtab


How can I reverse natural scrolling on Ubuntu 13.10?

Just go to

System Settings> Mouse & Touchpad.

In touchpad sections, uncheck the natural scrolling options.


Is possible to upgrade openssh-server OpenSSH_7.6p1, to OpenSSH_8.0p1?

To upgrade openssh from 7.6 to 8.0 on Ubuntu 18.04 (bionic), I followed the instructions given here: How to Install OpenSSH 8.0 Server from Source in Linux.
The version I started with:
$ ssh -V
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017

Here are the commands to upgrade:
sudo apt update
sudo apt install build-essential zlib1g-dev libssl-dev
sudo mkdir /var/lib/sshd
sudo chmod -R 700 /var/lib/sshd/
sudo chown -R root:sys /var/lib/sshd/
wget -c https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.4p1.tar.gz
tar -xzf openssh-8.4p1.tar.gz
cd openssh-8.4p1/
sudo apt install libpam0g-dev libselinux1-dev
./configure --with-kerberos5 --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh
make
sudo make install

Then opened a new terminal and ran:
$ ssh -V
OpenSSH_8.4p1, OpenSSL 1.1.1  11 Sep 2018


apt-get won't handle package locking made in Synaptic

Synaptic has it's own configuration file, separate from dpgk's so this will be a manual process. However, here are some commands that should make things easier.

To put the pinned Synaptic packages on hold:

sed -n '/Package:/h;/Pin:/{g;s/\(Package: \)//;s/.*/& hold/p}' < /var/lib/synaptic/preferences |  sudo dpkg --set-selections

If you want to change the held packages back to install:

dpkg --get-selections |sed -n '/hold/H;s/hold/install/p'| sudo dpkg --set-selections


Routing between 2 interfaces of a server

Enable ip forwarding with command

 sudo nano  /proc/sys/net/ipv4/ip_forward

And change 0 to 1. Save and exit


The module was renamed gtkspellcheck since Ubuntu Xenial. The API has changed too. See the new API here: Python GTK Spellchecker (readthedocs.io).


Anything with the default settings in fstab should be mounted automatically, so you may not have it pointing to the correct device (especially since the internal drive is usually sda, and external drives are usually sdb, sdc, etc.) Here's how I would set up an external drive to automatically mount at boot:

1. Identify your device

Run sudo fdisk -l to get a list of your connected drives. You should find one matching the size and partition settings of the drive you want to automatically mount. For instance, my 16gb flash drive looks like this:

    Disk /dev/sdd: 14.9 GiB, 16007561216 bytes, 31264768 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos Disk identifier: 0x00000000

    Device     Boot Start      End  Sectors  Size Id Type
/dev/sdd1           8192 31264767  31256576 14.9G  c W95 FAT32 (LBA)

Since this is the only device on my system that's close to the correct size, my removable drive must be sdd, and it's primary partition must be sdd1. (Yours will likely be sdb or sdc; mine is such a high letter because I have a lot of drives in my computer.)

You can test to make sure that you have have the right device by running sudo mount /dev/device /mnt and then checking the /mnt folder to see if the contents of that partition is correct. (Be sure to replace "device" with your own block device. For example, sudo mount /dev/sdb1 /mnt.) To unmount the device again, use sudo umount /dev/device.

2. Find your device's UUID

We want to do this because block devices may change. For example, right now my 16gb drive is sdd, but if I add more drives to my computer it may show up as sde, or sdf. At this point, my fstab would be trying to mount the wrong drive! Unlike the block device identifier, the UUID is built into the partition and never changes (unless you reformat your drive.) This makes it a much more reliable way of mounting removable drives.

To find your devices UUID, simly use the blkid command:

sudo blkid

For my drive, the line I'm looking for looks like this (I have replaced the actual UUID with Xs):

  /dev/sdd1: UUID="XXXX-XXXX" TYPE="vfat"

Note that this tells me not only the UUID, but also the filesystem type (which we will need later.)

3. Edit your fstab file

This is the trickiest step. First, open up /etc/fstab as root in your favorite text editor:

sudo gedit /etc/fstab

(Note that if you're using the Mate desktop environment you should use pluma instead of gedit. KDE also has it's own text editor.)

Now you'll want to add a line to the end of this file that will cause your drive to be automatically mounted at boot. (It's good form to add a descriptive line (starting with #) before your entry to let those who come after you know why this line was added.) In my case, it would look something like this (note that you WILL have to change this line to match the information gathered in the previous steps):

#External hard drive
UUID=XXXX-XXXX /media/exdrive           vfat    defaults,user        0       0

The first section of the line is the UUID of the partition you want mounted. Use the UUID you got from running blkid.

The second section is what folder you want the partition mounted to. Be sure the folder actually exists! In my example, I could use sudo mkdir /media/exdrive to create the folder I want to use. It may be a good idea to put this folder outside your home folder so that other users can still access the drive. You can always make a link to it if you want it more accessible.

The third section defines the filesystem your partition should be mounted as. Use the output from blkid to find your filesystem type. The drive in my example has a fat32 filesystem, so I need to use vfat. Alternately, you may have ntfs, ext4, or some other type altogether.

The fourth section specifies the mount options. This gets complicated, so if you want to do more reading on the subject you can do so here: https://help.ubuntu.com/community/Fstab#Options
For most people following this guide, defaults,user should work fine.

The last two sections (0 and 0 in our example) have to do with the backup utility dump, and if and in what order fsck will check the disk. Neither should be needed in our setup, so it is safe to leave both at 0.

4. Test it!

Your computer should now automatically mount your drive at boot, and should still mount it to the correct place if connected after boot.


Why is it so hard to find updated end-user software on the official repositories?

Why isn't it easier/possible for software developers to update their own software on the Ubuntu repositories?

Software developers update their software regularly. That's why you found a new Calibre version. However, they don't directly push their updates to the Ubuntu repository. The reasons are already given in the answers you linked with your question.

They can't always provide PPAs as well because that would add an extra burden on them. They would then need to provide packages for several distributions. And don't forget there are several Non-EOL releases of each distribution! If they want to provide a package for Ubuntu, they would be required to create one for 16.04, 14.04 and probably 12.04. Then Fedora, Debian, Arch Users start complaining! That is not easy! That's why PPAs are usually provided by third-party maintainers.

However, there is another alternative approach to provide the latest softwares for end-users developing these days. It is packaging every component of an application in a single file. They run mostly in an isolated environment like in a container and don't need to be compatible with the current libraries installed in the system. For example, you can run gtk-3.20 application in Xenial which packaged mostly with 3.18 components.

But they have their problems too! (See footnotes)

Some of the approaches are:

AppImages
FlatPak by Gnome
Snap by Ubuntu

  Ubuntu maintainers have more stuff to do than keeping up with all software releases in-between Ubuntu versions?

Ubuntu maintainers try hard to meet the milestones for each release. To keep Ubuntu stable, they need to make sure every package works as expected. For example, recently a question was asked here about getting latest KDEConnect 1.0 in Ubuntu 16.04. But it revealed kdeconnect 1.0 requires Qt 5.6. To give them Qt 5.6, they need to ensure other packages in the official repository works well with it. That means, re-building, re-testing of all KDE-packages, which is really a huge task.

If you need latest, cutting-edge softwares, you can try using rolling-release distributions or the other single package approach mentioned earlier in the question.

Some problems with Single File Packaging:

They are usually bigger in size (because they package everything needed)
Installing them make your system bigger, because there will be several copies of same libraries in your system used by each package.
These packaging format requires the package maintainers to test the integration with libraries themselves. This is an extra burden on them. With apt, yum approach, they are only bothered with the core-application. They could simply assume lib-gtk-xy-1.5 is available in the distribution.
Again, by same reasoning, package maintainers will now be bothered with bug reports related to libraries included in their package. In traditional approach, this was the job of maintainers of that specific lib package.


What's the difference between "mouse" and "sloppy"?

The mouse mode will set focus on the desktop when the mouse hovers over a desktop area that has no open window, whereas the sloppy mode does not.  The sloppy mode changes focus only if the mouse hovers over a window.


Hang When Loading off USB, at command sysenter_do_call+0x12/0x28

I also had some problems installing from a USB. I downloaded the ISO from the website again and noticed that it was 200mb bigger than the previous ISO I had downloaded (both were downloaded from ubuntu.com). I put the new ISO on the USB and then that worked just fine for me. It's simple but, it might be worth a shot to just try over. Worked for me.

http://www.ubuntu.com/download/help/create-a-usb-stick-on-windows

Good luck!

Levent


You could try sudo update-rc.d mini-httpd disable OR sudo update-rc.d remove and restore to defaults with

sudo update-rc.d mini-httpd defaults

You can use -f flag to force the changes.


Wi-Fi connected, but not connected to Internet

There isn't information given in the question, but if the new wifi connection uses the same name as the previous one but uses different configuration options, you could try the following:

Click the network icon and choose "Edit connections"
Find the wireless connection in question and delete it
Try connecting again


Installing Ubuntu on a sager like gaming laptop

How can I make Ubuntu install without nouveaux and nvidia drivers?

My suggestion for this one is a very advanced one. You could make a custom ubuntu image that will allow you to remove packages you don't want, and add packages that you do. Including changing grub before you make your image so it won't boot into a graphical mode. Here's the link to a guide that walks you through it step by step. https://help.ubuntu.com/community/LiveCDCustomization

How can I can I boot Ubuntu without X?

You can use this guide How do I disable X at boot time so that the system boots in text mode? to edit grub and boot without x at startup. However, this guide requires you to be logged into the system to make changes, so you may have to edit grub at boot. If you boot directly into grub, and pres 'e' (for edit) you should get some code displayed. If you look for the "quiet splash" line and manually change it to "text". Once you save and edit, you will boot into Ubuntu without an X.

It may be possible to boot into Ubuntu without graphics and remove the other packages you want rid of without starting x. This might be the simplest solution.


reinstall linux system without overwriting

For those who come here with a similar question, all I was able to do was backup files and reinstall.

Fortunately, I had originally separated my home directories in a partition instead of leaving them in the system partition. This way, when I reinstalled, I used the same username and password and my user was back in business.

So if you have not already moved your home directories to it's own partition, do it now! Kinda wished I had done that with /var too...


Using Texlive installed in Windows for Ubuntu

You can try to run the Texlive executable in Wine, which lets you run Windows executables in Ubuntu. In order to install it you can run this command in the terminal: sudo apt-get install wine.

However, I would recommend you to install it again in Ubuntu because you get the updates along with the rest of the system updates. In this case you need to use this command in the terminal: sudo apt-get install texlive-base.

I hope this helps.


Sound Converter fails to convert mp3 to m4a

from https://answers.launchpad.net/soundconverter/+question/145978

*"The codec you need is the FAAC (free advanced audio encoder) plugin for GStreamer. It's in the package gstreamer0.10-plugins-bad-multiverse; you can install the package through the Synaptic Package Manager, or in a terminal with the command:

sudo apt-get install gstreamer0.10-plugins-bad-multiverse

After that M4A (or AAC) should appear as an option in Sound Converter."*


Unknown host even though Avahi is installed and running

Turns out that just installing libnss-mdns is not enough, you need some configuration to actually use it.

Particularly, the host line of the /etc/nsswitch.conf file should have mdns4 in there somewhere.

My host line of /etc/nsswitch.conf for anybody who may run into the same issue:

hosts:          files mdns4 [NOTFOUND=return] dns


How can I recover ubuntu ISO if I have only (all) files?

https://forums.virtualbox.org/viewtopic.php?f=10&t=35735
It seems you will have to create first a guest OS on a DVI to copy your files to a second DVI. The above link is old, it should work with SATA controllers today.

You may install guest additions on the guest OS so you can copy the files to the guest through a shared folder, or you may create a third disk as a .vmdk file to allow raw access for the guest to a partition where you copy the files, with something like sudo VBoxManage internalcommands createrawvmdk -filename ubuntupartition.vmdk -rawdisk /path/to/device -partitions number Then use the guest OS to copy the files to the second DVI.

Then stop the VM, detach the second DVI, create a new Linux VM with that DVI, boot with EFI support (there should be an efi folder in Ubuntu files right ?). Maybe Ubuntu will complains with the partitions uuid and it will load recovery mode, from there edit fstab as necessary.

Hope this helps.


How to fix: conky disappears after click on desktop or other window?

Edit conky configuration file, i.e. open in gedit from the terminal:

sudo -H gedit /etc/conky/conky.conf

This worked for me:

own_window yes
own_window_type normal

This worked too, but made desktop icons not visible at all or blinking

own_window no
own_window_type desktop

I have also modified conky to be movable by removing undecorated from:

own_window_hints


Using custom 14.4.1 livecd on no-hardrive laptop, how can I use the CDROM temporarily to copy files into the ramdisk for that session?

Bensel:

It has been in my experience, when running from the LiveCD, you cannot remove the LiveCD for any reason and expect the system to stay up.  Why not create a bootable USB thumbdrive to run off of and leave the CD-R for doing your updates?  THAT should work, because the media with the system on it remains in place, while you perform the other operations.


You should be able to follow the installation prompts of LMDE without hassle. Your bootloader might not be correctly installed if LMDE uses another older GRUB version. Then you will have to use a Ubuntu Live CD/USB with Boot-Repair (choose automatic mode).
If you already get a list of operating systems after installing LMDE, this step is not needed.

Always carefully look at your partitions, because otherwise you may overwrite your Ubuntu partition. Prepare your disk partitions before the installation of LMDE (from within a Ubuntu Live CD). For LMDE, you need at least one root partition (ext4 probably) and a swap partion (but since you have already installed Ubuntu, you can reuse that). Use GParted to create an extra root partion (resize your Ubuntu installation if you need space to create another partition)

You will have to try if LMDE live wants to dualboot, because I've seen scenarios where it did not want to install. If that's the case, you cannot install LMDE but Ubuntu is left untouched, fortunately.

Good luck.


Empathy doesn't obey system/theme/gnome-appearence font settings

The reason why Empathy doesn't have same fonts as the rest of your desktop UI is because in the "client area", it uses UI settings as specified by the chat theme (Since version 2.27.3, Empathy uses Adium Message Styles which define how fonts and overall UI should look like for your chat conversations, visit this page for more details), so until something's wrong with the chat theme you're using, it shouldn't look ugly.

As far as you've used default chat theme ("Ubuntu" in any case since 9.10), there shouldn't be any trouble what you've mentioned as long as the font the theme uses are still installed in the system. But as you've mentioned that you're facing it since 10.04, I wonder if you're using default settings or have customized the system so dramatically that the problem has surfaced in every version of Ubuntu since 10.04.

As a quick work-around I recommend you to download chat theme for Empathy called Renkoo (It is the theme from which the Ubuntu chat theme is created, so you'll hardly notice any difference). Once you download it, the theme folder has .AdiumMessageStyle extension, keep the folder in your home directory in .local/share/adium/message-styles/ (if directory doesn't exist, create it). Once you put the folder in there, it should show up in Edit->Preferences->Themes[Tab]. Change the theme and see if fonts now look properly (You'll need to reopen the chat window for changes to take effect).


Network NIC QCA8171 not working on Ubuntu 14.04

I solved the issue.
Due to the fact that i swapped my motherboard which has a different networkchip causes that the logical name for network changed from eth0 to p2p1.
After changing eth0 to p2p1 in the file /etc/network/interfaces everything works fine.


How to handle www folder permissions with SFTP

One option would be to add the user account you’re uploading with to the www-data group:
sudo adduser ubuntu www-data

This will allow you to overwrite files owned by the Apache user without giving the web server elevated permissions.


K3b "Unable to load KCDDB configuration module" lubuntu 18.10

I solved this problem with instruction from #ubuntu's ioria: Install the kde-config-cddb package.

Close K3b.
Click Start > System Tools > Muon Package Manager.
Search for kde-config-cddb.
Install the kde-config-cddb package.
Try a second time if there is an error the first time with no details provided. (See screenshot below.)
Open K3b and go check in Settings if it's working now.


You would have to shrink partition 6, move partition 7 to the left, then you could grow partition 8 into that free space.  You can do this using gparted when booting from the Ubuntu desktop cd.


Is a list of selected packages stored in the file system?

You can do it by reading /var/lib/dpkg/status from your backup.

In my running Ubuntu:

grep '^Package:' /var/lib/dpkg/status | cut -f2 -d' '


Same here. I noticed it didn't find my 5Ghz SSID when I set mine up also...and now finally checked why.

The phone's connectivity specs:

3G HSPA+ (900/2100) - (B8/B1)
2G GSM (850/900/1800/1900)
Wi-Fi 802.11 b/g/n
Bluetooth® 4.0
GPS y A-GPS

(Had to get that from: http://www.bq.com/es/aquaris-e5-ubuntu-edition.  Last week the UK link worked; bq must have changed their site.)

Looks like the phone is only Wi-Fi 802.11 b/g/n (and maybe only the 2.4 Ghz flavor n).  The 5Ghz in your router is likely a or ac, which isn't listed. (I found the IEEE 802.11 info on Wikipedia. That link didn't make the cut, since I can't post more than 2.)

I haven't tried putting in a sim card, but I don't think the technology and bands for 3G HSPA+ match the GSM carriers in the US.

  In North America, GSM operates on the primary mobile communication bands 850 MHz and 1900 MHz.

https://en.wikipedia.org/wiki/GSM_frequency_bands#Americas

Of course, it depends on your carrier and location.


Cannot access the Windows D: drive from Ubuntu

Open the File Browser and you should see the drive listed in the left menu:

Once you click it the drive will mount. It works for NTFS drives out of the box you don't need to install anything.

The only reason I can think it wouldn't work is if your NTFS drive has been marked as "needs to be checked" by Windows, which is a bit more complex of an issue. You can fix that by booting into windows or running the ntfsfix command (see this question).


Is a bad NFS mount preventing a clean boot?

When I got into recovery mode I ran mount -o remount,rw / so that I could save my changes and get rid of the NFS problem. I still had other boot issues, but this was the key to clearing up the one I mentioned in the question.


The answer I believe is to shut windows down then you can mount the drive from ubuntu. You can not have windows suspended or in hibernation that is dangerous to do while booting ubuntu.

Fast startup needs to be disabled or windows 8 will actually enter a state of hibernation when you press the shutdown button instead of shutting down.


Do I need backup when there is Ubuntu One?

Ubuntu One no longer exists, so yes you need another backup plan.


How to change default "Categories" and "Sources" in Unity Dash?

Open dash, search for dconf.

Open dconf, go to com > canonical > Unity > Lenses.

Open dash again, select the lenses you want to search by default. Copy the key value from home-lens-default-view and paste it in the key named always-search.

PS: You have to have dconf installed. To install dconf run:

sudo apt-get update

sudo apt-get install dconf-editor


When installing from Canonical Partner, make sure to install both the skype and skype-bin packages. So if you use a terminal window, you need to:

sudo apt-get install skype skype-bin

That should install the latest (4.3) version.

This is an example of an upgrade from Skype 4.2 to 4.3:

$ dpkg-query -W skype skype-bin
skype   4.2.0.11-0ubuntu0.12.04.2
skype-bin   4.2.0.11-0ubuntu0.12.04.2
$ sudo apt-get install skype skype-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  skype skype-bin
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 20,1 MB of archives.
After this operation, 5 106 kB of additional disk space will be used.
Get:1 http://archive.canonical.com/ utopic/partner skype-bin i386 4.3.0.37-0ubuntu0.12.04.1 [20,1 MB]
Get:2 http://archive.canonical.com/ utopic/partner skype i386 4.3.0.37-0ubuntu0.12.04.1 [16,1 kB]
Fetched 20,1 MB in 7s (2 828 kB/s)
(Reading database ... 511027 files and directories currently installed.)
Preparing to unpack .../skype-bin_4.3.0.37-0ubuntu0.12.04.1_i386.deb ...
Unpacking skype-bin (4.3.0.37-0ubuntu0.12.04.1) over (4.2.0.11-0ubuntu0.12.04.2) ...
Preparing to unpack .../skype_4.3.0.37-0ubuntu0.12.04.1_i386.deb ...
Unpacking skype (4.3.0.37-0ubuntu0.12.04.1) over (4.2.0.11-0ubuntu0.12.04.2) ...
Processing triggers for bamfdaemon (0.5.1+14.10.20140925-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu2) ...
Processing triggers for mime-support (3.55ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for dbus (1.8.8-1ubuntu2.1) ...
Setting up skype-bin (4.3.0.37-0ubuntu0.12.04.1) ...
Setting up skype (4.3.0.37-0ubuntu0.12.04.1) ...
$ dpkg-query -W skype skype-bin
skype   4.3.0.37-0ubuntu0.12.04.1
skype-bin   4.3.0.37-0ubuntu0.12.04.1


After doing some quick searching there is an application called Crouton, which allows one to easily run both Ubuntu and Chrome OS on the computer at the same time. This is not a dual boot setup, Crouton runs a "container" in Chrome OS that is Ubuntu. Here is a tutorial from Ubuntu on it. However, to install Ubuntu and not with Chrome OS would take some time and effort and found the video below that seems decent.Video Crouton


Computer heating and NVIDIA 940MX drivers

Just realize that to show PRIME settings you have to disable Secure Boot in the BIOS Settings


For disks with GPT partition table:
You can change the PARTUUID of a partition with gdisk. I'd recommend to read man gdisk first. In the following example I show how I changed the PARTUUID of the second partition on my first drive (sda):
$ sudo gdisk /dev/sda
[sudo] password for mook:
GPT fdisk (gdisk) version 1.0.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): x                                       # enter x to change to experts menu

Expert command (? for help): c                                # enter c to change PARTUUID
Partition number (1-2): 2                                     # enter the number of the partition you want to change
Enter the partition's new unique GUID ('R' to randomize): r
New GUID is 76349364-D66C-4C19-B422-237A0D2DB9F5

Expert command (? for help): m                                # enter m to go back to main menu

Command (? for help): w                                       # enter w to write the change to disk

Command (? for help): q                                       # enter q to exit gdisk
$

For disks with msdos partition table:
For disks with msdos-partition-table blkid produces a PARTUUID based on the Disk Signature(Disk identifier) and the partition number (Source).
Different disks must always have different identifiers. See the files in /dev/disk/by-partuuid which are links to the devices (e.g. /dev/sda1). Both of your disks have the same identifier and only one partition and on both disks it's the first partition, this would theoretically result in two links with the same name but different targets in /dev/disk/by-partuuid which is not possible at all. Probably this is the reason for your problems and you should definetely change one of the disk identifiers.
Here an example how we can change the disk signature using fdisk:
First check the disk identifier with fdisk -l:
~$ sudo fdisk -l /dev/sdc
[sudo] password for mook:
Disk /dev/sdc: 7.25 GiB, 7776239616 bytes, 15187968 sectors
Disk model: USB FLASH DRIVE
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x60123f75

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1        2048 15187967 15185920  7.2G 83 Linux

Now change the disk identifier with fdisk:
~$ sudo fdisk /dev/sdc
[sudo] password for mook:

Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): x                             # enter x to go to expert menu

Expert command (m for help): i                      # enter i to change identifier

Enter the new disk identifier: 0x60123f76

Disk identifier changed from 0x60123f75 to 0x60123f76.

Expert command (m for help): r                      # enter r to return to main menu

Command (m for help): w                             # enter w to write change to MBR

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

Now recheck with fdisk -l:
$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 7.25 GiB, 7776239616 bytes, 15187968 sectors
Disk model: USB FLASH DRIVE
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x60123f76

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1        2048 15187967 15185920  7.2G 83 Linux


How can I boot into Windows after I set Ubuntu as the default operating system? (I'm using Wubi)

Because you've installed Ubuntu using Wubi, you need to modify the settings of Windows boot loader, not GRUB.

Grab a Windows repair DVD. Boot from it, and select the option to open a DOS command-line. Type this:

bcdedit /timeout 10

This will change the time out of the Windows' bootloader to ten seconds, giving you enough time to select Windows.

Once you've booted Windows, you can change the default back to Windows, in the same way that you had originally changed the default to Ubuntu:

Right click on Computer and select Properties
Click Advanced System Settings
Click on the Settings button under Startup and Recovery
Select Windows.

Reference:

This Ubuntu Forums thread


How to hide unity dash "More suggestions" (NOT unity-lens-shopping)

To hide them, go to:

Dash Home, Search applications, Filter results, Sources and then sets to "Local Apps".

After new login, the filter is reset.
To do something for real, it seems that this works fine:

gsettings set com.canonical.Unity.ApplicationsLens display-available-apps false

======================================================================

UPDATE:

Ubuntu 13.04 have new package called "unity-tweak-tool". Try it.


Need help using Touchegg with Ubuntu Gnome 15.04

Is it only for 3 finger and less gestures? if so, it may be because synaptics is using them, try

synclient TapButton3=0 && synclient ClickFinger3=0

that will disable 3 finger actions from synaptics and use touchegg's actions. Similarly by disabling 2finger scroll and tap, you can get touchegg's 2 finger pinch to work (along with touchegg's inferior 2 finger scroll).


Take a look at the man page for su.

man su

Check the first 4 lines...

NAME
       su - run a shell with substitute user and group IDs

SYNOPSIS
       su [OPTION]... [-] [USER [ARG]...]

Essentially what you are doing, is trying to run a shell as "/home/kevin/riak-1.2.1/dev/dev4/bin/riak."  Since you probably don't have a userid of that exact string, it is (correctly) telling you that it cannot find a user by that identifier.


My networking drop down becomes unresponsive very often

You can restart the network icon and menu (known as network manager) by doing this in a terminal:

 killall nm-applet #use 'killall -9 nm-applet' if it is being stubborn
 nm-applet&
 disown

This will restart it. You can close the terminal without it going away.

The first command stops the already running instance. The second command manually starts it. The third command detaches it from your terminal so you can close the terminal.


Go to terminal and type

 sudo apt-get remove name_of_problem_software_install

Then remove whatever software you think caused it. If that doesn't work you can try plugging it in to the firewire and searching for drivers.

Also, see this thread for what looks to be a similar issue on a toshiba laptop


How to disable/disconnect LAN cable during startup

That's how it works in 11.10 and it should work similar in 10.04:

Edit Network Connections:

Choose your LAN connection:

Uncheck Connect automatically:


I removed my GUI and now I can't install another one

You can't "reinstall" a package that isn't installed.

sudo apt-get install ubuntu-desktop

Or you can

sudo tasksel

to select a desktop environment to install.


After much trial and error it appears the network card is bad.


How to revert to Chrome/Chromium 14 (because 15 is slow?)?

Except in Ubuntu 10.04 LTS Lucid Lynx, and in Precise (the development version which will eventually be released as Ubuntu 12.04 LTS Precise Pangolin), the Ubuntu updates to chromium-browser 15 have not yet been released, but are still undergoing testing in -proposed (source: https://launchpad.net/ubuntu/+source/chromium-browser). See https://help.ubuntu.com/community/UbuntuUpdates for details about the different repositories that provide newer versions of software in Ubuntu, and https://wiki.ubuntu.com/Testing/EnableProposed for information about the -proposed repositories.

I would encourage you to search and see if the problem you are having has been reported, and if it hasn't been, to report it. Please make sure to read https://help.ubuntu.com/community/ReportingBugs carefully first. Then, to file the bug, either run "ubuntu-bug chromium-browser" or invoke ubuntu-bug with the PID of the currently running chromium-browser process (this will make sense after you read ReportingBugs). Make sure to describe the problem clearly and fully in your bug report. After filing your bug, you should post about it in bug 881786; if your bug is considered to qualify for a SRU, it might cause the still-proposed versions to be delayed until the problem is fixed.

If you're running Ubuntu 10.10 Maverick Meerkat, Ubuntu 11.04 Natty Narwhal, or Ubuntu 11.10 Oneiric Ocelot, then you can downgrade from chromium-browser 15 to chromium-browser 14, as major version 14 still still available through the -updates repository (or the release repository in Oneiric). You might find that the easiest way to do this is in the Synaptic Package Manager (which itself can be installed in the Software Center--the package is called: synaptic). Or you can use apt-get from the command-line to perform the downgrade; for example, on an Ubuntu 11.10 Oneiric Ocelot system, you could run "sudo apt-get install chromium-browser=14.0.835.202~r103287-0ubuntu1" (without the quotes). See the apt-get manual page for details. If you are running one of these systems, then chromium-browser was upgraded from the -proposed repository, so you can prevent it from being updated further until the version 15 packages have underwent further testing and been released for general use by disabling that software source or, better, by using pinning (as explained in EnableProposed).

If you're running Ubuntu 10.04 LTS Lucid Lynx, or Precise, the above method will not work, but you might still have the .deb package for major version 14 of chromium-browser in your /var/cache/apt/archives folder. If you don't, then you can see if it's still present at http://archive.ubuntu.com/ubuntu/pool/universe/c/chromium-browser/. It probably is, at least if you act fast, but you should check your /var/log/dpkg.log file to see what the version was on your machine to ensure you get the right one, because if you get the wrong one it could be for a different Ubuntu release, and subtle problems could potentially occur. You should also make sure to get the version for the right architecture, where i386 is for 32-bit Ubuntu systems and amd64 is for 64-bit Ubuntu systems, irrespective of whether your processor is actually manufactured by Intel or AMD. If it's not there, then you could see if it's still on Launchpad by subtituting the old version string (from /var/log/dpkg.log) into the URL https://launchpad.net/ubuntu/+archive/primary/+files/chromium-browser_15.0.874.106~r107270-0ubuntu0.10.04.1_i386.deb (for a 32-bit system) or https://launchpad.net/ubuntu/+archive/primary/+files/chromium-browser_15.0.874.106~r107270-0ubuntu0.10.04.1_amd64.deb (for a 64-bit system).

Please note that if you do manually downgrade chromium-browser, you might need to perform a similar procedure to downgrade related packages, i.e., one or more of the following (probably not the -dbg packages, as you likely do not have them installed): chromium-browser-dbg, chromium-browser-inspector, chromium-browser-l10n, chromium-codecs-ffmpeg-dbg, chromium-codecs-ffmpeg-extra-dbg, chromium-codecs-ffmpeg-extra, chromium-codecs-ffmpeg-nonfree-dbg, chromium-codecs-ffmpeg-nonfree, and chromium-codecs-ffmpeg.

Finally, please note that chromium-browser (Chromium) and Google Chrome are separate applications--the instructions in this post apply to Chromium, which is probably easier to downgrade.

If you attempt to follow these procedures and have difficulty, I'd be please to provide additional assistance (please go ahead and post a comment or comments describing the difficulties).


How can I confirm that the binaries in my Ubuntu are from the source code it should be from?

You can download the sourcecode and compile it yourself. But wait - first you have to check that sourcecode, because if Canonical collaborated with the NSA, they probably have entered some code somewhere to allow for a keylogger or something that can be activated remotely.

So...

after downloading the sourcecode,
you have to check all code,
and then compile it!

But wait - can you trust the compiler?


tshark - Automatically set YES when asked "Should non-superusers be able to capture packets"

The following command does the trick:
sudo apt install -y --allow-change-held-packages tshark

If this does not work, use the deprecated option:
sudo apt install -y --force-yes tshark

See the manual for more help
If nothing works, try this on the separate line (do not chain it with other packages):
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tshark


Ffmpeg: can TS video be converted directly to MP4 video without re-coding?

TS > MP4? It Depends™

Yes, TS video be converted (re-muxed) directly to MP4 video without re-encoding if the video and audio formats are compatible. Your video is H.264 which is currently the most common and most compatible video format in MP4, so copying it from the TS to the MP4 will be no problem.

Arbitrary formats

TS supports more formats than MP4. If you try to mux arbitrary formats into MP4 the possible results are:

Success - the formats are supported by the FFmpeg MP4 muxer and your player/device.
Partial success - the formats are supported by the FFmpeg MP4 muxer, but not supported by your player/device. This could be the case for less common or legacy formats supported by MP4.
Failure - the formats are not supported and the muxer will give you an error message such as Could not find tag for codec foo in stream #0, codec not currently supported in container

Recommended procedure

So for full compatibility I recommend re-encoding if the formats are not the common and widely supported H.264 or H.265/HEVC video + AAC audio.

For automation you can use ffprobe to determine the formats. See Is there a way to use ffmpeg to determine the encoding of a file before transcoding? for an example. Then use an if/then statement in your script to execute the correct command.

Subtitles

The main exception is subtitles. MP4 doesn't have good subtitle support. If your TS contains text subtitles (ASS/SSA, SRT) then you can convert them to timed text (-c:s mov_text), but support for timed text subtitles among players is not universal. Image based subtitles will have to be excluded, such as with negative mapping -map 0 -map -0:s.


How do I download the .deb file from software center?

If Skype 2 is what your after, then you can downloaded it Here.  And it installs the same way as below.  To download Skype 2.2.0.35 32bit or 64bit Click here.

To install Skype 4.x, download it Here.  Choose 32bit or 64bit depending on your platform.  One downloaded,  just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the download folder, probably Downloads, and run the command below.

For 32bit

sudo dpkg -i skype-ubuntu_4.0.0.8-1_i386.deb

For 64bit

sudo dpkg -i skype-ubuntu_4.0.0.8-1_amd64.deb

Another way to install . GDebi.  To install it press Ctrl+Alt+T on your keyboard to open Terminal.  When it opens, run the command below:

sudo apt-get install gdebi

Or click below

Once you have installed GDebi, use the File Browser to find the package you wish to install, and double click on it.


Which command can add numbers to give me new number?

Unix timestamps starts at "January 1, 1970" so we only need to get the date of '5000000000' in timestamp:

$ date -d '@5000000000' +%Y
2128

  UNIX Epoch time, is a system for describing a point in time. It is the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970.


You should use iotop to find out which process is doing I/O, and then decide if it's something you need or something you can live without, and remove it in the latter case.

https://stackoverflow.com/questions/466496/how-to-find-the-process-which-is-cosuming-the-most-i-o-in-linux


No prompt for swap partition passphrase after upgrade

I solved my problem using guides provided in this answer:
first I run mkswap on my swap partition:

sudo mkswap /dev/sda3

It gives me a new UUID.

Then commented out the line on my /etc/crypttab file related to swap partition and replaced it by following line:

cryptswap        UUID=<new UUID>   none   luks,swap,offset=1024

After reboot, it asked me for swap partition password (but not in the manner it was asking before upgrade; before upgrade swap partition passphrase was requested just after successful cryptsetup of sda2_crypt. But now passphrase of sda3_cryptwas asked for after some lines of boot time logs).

However, the problem is solved and after login swapon --summary results in:

Filename                       Type         Size     Used       Priority
/dev/dm-1                      partition    8002044  0          -1

and free -m results in:

                           total          used        free       shared         buff/cache        available
Mem:                        1926           420        1087           25                417             1352
Swap:                       7814             0        7814


Cant get a wireless connection on Ubuntu 14.04

You probably have the correct driver already. Please confirm:

lsmod | grep -e wl -e b43 -e brcm

We hope we only see wl and its dependencies. Does the interface scan?

sudo iwlist eth1 scan

We don't need to see all the results; just tell us if there are some. If not, tell us the message or error. Do you see the Network Manager icon as here? http://www.oulu.fi/it/graphics/nmgui.png If not, please follow this procedure: Lubuntu nm-applet wifi icon missing

We see from your comments that you do not yet have the correct driver. Please insert the install DVD or USB. Go to pool > restricted > b > bcmwl and drag and drop the deb package bcmwl-kernel-source to your desktop. Do the same with pool > main > d > dkms and drag and drop the deb package dkms to your desktop. Now open a terminal and install both:

cd ~/Desktop
sudo dpkg -i *.deb

After it finishes, load the driver:

sudo modprobe wl

Your wireless should now be working.

If you are running from a live USB, then simply go to System Settings at the upper right, then to Software and Updates and select Additional Drivers. Select and install the driver for your Broadcom.

Once we gather more information, I will edit my answer with additional suggestions.


lubuntu 16.10 fails to boot after clean usb install

After reading an old post about problems related with DVI vs VGA output it hit me: 10 years ago I connected the monitor with a DVI cable (and totaly forgot about it).

I changed the monitor connection to good old VGA et voila, now it works.

Thanks for the tips guys, I hope this info helps someone.


Finally I got it manged to fix this error. The problem is that the action was renamed. So I needed to rename the action from iptables-complete[name=block-phpmyadmin] to iptables-allports. Now it runs fine.


How to have git and virtualenv aware colors in terminal?

The http does syntax coloring naturally.

To set a bash prompt like this one, add the contents of this file to your ~/.bashrc.
It is an adaptation of the prompt from this SO answer. I have changed the colours, added couple more colour variables and parentheses.


How to recover focus after losing it while using Wine

I was able to solve this for my setup --- I'm using Wine play Hearthstone through Lutris. The trick is to edit the registry using regedit in Wine for this particular game, following this user's suggestion:

  Open Regedit
  Go to HKEY_CURRENT_USER\Software\Wine\X11 Driver
  Create a new entry named "UseTakeFocus" with value "N"

This not only fixed my alt-tabbing issues, I was able to modify the window size and change between fullscreen and windowed mode in-game with only the expected behavior!

Specifically in Lutris, I selected the game (Hearthstone), clicked "Wine registry", and added the value in Regedit as suggested (when creating the new entry, it's right click, add key, String value; then right click modify it to make the value "N"). Then close out; the registry should be saved (but you can edit it again to double check that the new value is there). Then launch the game and the new behavior is in place.

I expect this doesn't work across games, because it depends the game having proper support for Desktop keyboard shortcuts and window management modifications.


How do I prevent my touchpad from initialising?

I've used gnome-tweak-tool to disable my touchpad.  Under Keyboard & Mouse click on the drop down menu next to Click Method and select None.

Another method I've used, that is dependent on having the synaptics driver installed (Synaptics TouchPad driver for X.Org server), is to create a simple bash file that you can run manually or automatically using autostart:

#!/bin/bash
synclient TouchpadOff=1


~/.xsession-errors is 2.7gb big (and growing), on fresh install, caused by gnome-settings-daemon errors

.xsession-errors is where the standard error of the X server and all its children are directed to. Obviously, gnome-settings-daemon is unhappy about something.

You might get some useful information by watching what gnome-settings-daemon is trying to do with

strace -p 1514

But this can often be staggeringly difficult to make sense of, especially if you've not done much of it.

Your best bet is probably to file a bug using

apport-bug 1514

where 1514 is the PID of the errant process. I've been of the impression that the x64 implementation of everything has not been beaten upon nearly as much as the 32-bit version, so you may well have uncovered a new bug. Apport gets the information in front of the people most interested in fixing it.


Intel NUC won't boot from SSD automatically but boots when selected manually

Posting this as answer to have a clear answer on this question.

The solution, in my case, was to check and then uncheck the UEFI Boot option.

Boot Order / UEFI / UEFI Boot: Disabled (unchecked)

Please note that I didn't really change any setting but somehow it worked.

If that did not work then I was going to actually enable the UEFI Boot option, as suggested by @user68186

Something that I should've mentioned in my original post is that I had Ubuntu 19.04 Desktop running on the system just fine before I tried to install Ubuntu Server 19.04 - with same boot config: Legacy Boot and UEFI Boot disabled.


Cannot mount partition into old mount point

When mounting a NTFS drive using fstab you need to create the mount point and change permissions on the folder to 777 ..then add a line in your fstab like the following example:

UUID=<the drives uuid number> /path-to-mounting-point ntfs-3g defaults 0 0

UUID=F858A91658A8D522 /media/mountpoint ntfs-3g defaults 0 0

You can find the UUID by running sudo blkid


You do not have the permissions necessary to view the contents of "folder"

Just add the -R option to recursively change all the permissions of each files and directories under a specified directory. An example, recursively add read and write permissions for the owner and group on foldername:

sudo chmod -R ug+rw foldername

Read more about permissions ...


apt-get package is not available but is referred to by another package - but cannot find that package

I had this kind of errors when the universe repos were not enabled (it was a minimal server  install). Enabling them solved the issue (the package were provided by such repos). HTH.


How to create a directory and store its name in a value?

You're assigning the mkdir command's standard output to @createDir. Normally, mkdir doesn't produce any output - however you can make it do so by adding the -v (--verbose) option.

Ex.

$ perl -e 'my $directory = "www"; my $createDir = `mkdir -vp "./RubbishBin/$directory"`; print $createDir'
mkdir: created directory './RubbishBin'
mkdir: created directory './RubbishBin/www'


The -T option is used to ask hops to insert the timestamp in the IP packets upon receiving the ping. It works by using the TS option of IP packets, specified by RFC791.

ping -T requires an argument: one of tsonly, tsandaddr or tsprespec. You can read the manpage online or by running man ping for more information on the usage.

Here's an example of usage:

$ ping -T tsandaddr 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(124) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=3.22 ms
TS:     192.168.1.3 63668917 absolute
    192.168.1.1 534841740 absolute not-standard
    192.168.1.1 1 not-standard
    192.168.1.3 3

64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=6.59 ms
TS:     192.168.1.3 63669919 absolute
    192.168.1.1 534842745 absolute not-standard
    192.168.1.1 0 not-standard
    192.168.1.3 6

64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=3.20 ms
TS:     192.168.1.3 63670920 absolute
    192.168.1.1 534843743 absolute not-standard
    192.168.1.1 1 not-standard
    192.168.1.3 3

^C
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 3.207/4.343/6.599/1.595 ms

Note that I've tried on my LAN. Some hops on the internet may reject IP packets with the timestamp option. (In fact, I cannot ping any internet host with -T, probably my ISP is rejecting my packets.)


You can try adding the following:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.reset i8042.nomux i8042.nopnp i8042.noloop"

to

/etc/default/grub

and then execute this:

sudo update-grub

and reboot.

It worked on most cases as far as I know.

OR

If that doesn't help you can try to fill in a bug report using information at here.


How to recover or create deleted 'Documents' folder in Home folder?

To create a new Documents folder

Open home folder > right click > new folder. Name it Documents

If the icon is incorrect then right click on the new Documents folder > properties. Click on the folder icon, this will bring up a select custom icon window.

Browse to File System > usr > share > icons > Humanity > places > 48 & select the 1st folder_documents.svg. This should restore the icon to your Downloads folder

Then gedit ~/.config/user-dirs.dirs or browse to file. You'll see this line - XDG_DOCUMENTS_DIR="$HOME/"

edit it to this & save. Then log out/in

XDG_DOCUMENTS_DIR="$HOME/Documents"


How to make mht files being seen as thumbnails in nautilus?

There is no way to do this as yet, because mht files are compressed archives, and Nautilus would need a new thumbnailer plugin to support them.

You can open a bug report requesting this feature on GNOME's Gitlab for Nautilus.


Looks like opening the terminal preferences and deselecting the terminal bell does the trick.


Does your nVidia GTX 660 work with the Ubuntu-provided nVidia drivers?

New Linux Ubuntu user here.
I have a GTX 660 newly installed. I am currently working on updating the default Nouveau drivers to NVidia provided ones.

This link has been helpful:

  https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia#Problems_with_Video_Playback

Does the card work with the Ubuntu provided drivers? Yes and no. As for the desktop interface including internet folders etc. yeah there was an instant increase in resolution once I installed the Video Card. However, when I went to play a game, it was incredibly choppy. The default driver (Nouveau) provides lower frame rates for many of the 3D acceleration tasks games require. I'm kind of a noob I don't know, but I hope this helps.

In conclusion, if you're going to get a GTX 660 with Ubuntu, and want to play games (especially newer games), I believe you are going to want to install the proprietary nVidia driver.


Video not playing after partial upgrade from 11.10 to 12.04?

Your graphics drivers cannot be found, in this case the Intel Graphics that are a part of every Intel CPU. Because these drivers cannot be found, you are going to have a tough time getting a GUI on the computer, and even when you do it's gong to be glitchy and unreliable. Your best bet in this case is to boot to the Ubuntu Live CD and transfer any files you want to keep to an external hard drive or flash drive, then reinstall Ubuntu.


Lacking details on your setup, I can only give general guidance.

All you have to do is edit (as root) /etc/fstab and add the partition you wish to mount.  For details, options, etc, check out https://help.ubuntu.com/community/AutomaticallyMountPartitions


Try the same command again. It may have been a temporary problem with your DNS server and/or their domain name registration that has been fixed now. I just tried it and successfully downloaded the whole 3,170,982 bytes of it.

Edit

If your DNS server still has problems try using the Google provided one. Edit your /etc/resolv.conf (as a root) and put there this single line:

nameserver 8.8.8.8

then try again.


Installing ubuntu: creating swap space error

Take backup of the contents of your hdd. If your hdd has physical damage, there is no way to fix it unfortunately.
Be warned, this will destroy all your data.

Download Ultimate Boot CD and make a bootable disk.
Make a second bootable device with Ubuntu with in it.
Boot using UBCD, open GParted, manually delete all your drives
Choose Create Partition Table from Device. Pick DOS from the dropdown and click apply.

This should fix the pesky The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes issue you were having.

Quit Gparted, and run a suitable disk checking utility. Scroll down to /HDD/Diagnosis part in UBCD website for reference. Also this step by step guide is good.

If disk checking apps doesn't pick up any bad sectors or errors,

Quit UBCD, boot from the another bootable disk that has Ubuntu.
Fresh install.


There was a small update through the PPA for Telegram today and it resolved the bug on my system. Thank you everybody


Installing it on no USB boot, no DVD PC?

You say that it has a CD drive. This means you can easily use Minimal CD.

https://help.ubuntu.com/community/Installation/MinimalCD