Tracker is a filesystem indexer, metadata storage system and search tool.

If you ever wants to know where a file comes from use dpkg -S:
dpkg -S /usr/lib/tracker/tracker-write
tracker-extract: /usr/lib/tracker/tracker-writeback

Then to get information on it:
$ apt-cache show tracker-extract
...
Description-en: metadata database, indexer and search tool - metadata extractors
 This package contains the metadata extractors.
 .
 Tracker is an advanced framework for first class objects with associated
 metadata and tags. It provides a one stop solution for all metadata, tags,
 shared object databases, search tools and indexing.
Description-md5: a749e5cb124710e079ed17d295038c12
Homepage: https://wiki.gnome.org/Projects/Tracker


How to open a folder in new tab in Dolphin from command-line?

It's not implemented yet: https://bugs.kde.org/show_bug.cgi?id=183429


Unable to fix - unmet dependencies and low file system root space

Since / is 96% full, you need to look at why the numbers of the folders on / don't add up to the 17G claimed to be in use. One thing I have seen in the past is that when a partition is not mounted (e.g. /home) AND you write anything to the folder /home, it gets written to the partition where the parent is (/) Then when you mount the partition, the files that were in the folder take up space but are not seen.

So if /dev/sda8 was not mounted at some point in time and you copied files into /home, they now occupy space in the root partition. Then when /dev/sda8 is mounted to /home, all those files are invisible. Since /home is the only directory on your system that is a separate partition mounted under root, you might try booting a Live-CD system, making sure that /dev/sda8 is not mounted and then see if you have any file/directories in the /dev/sda6 paritition's directory which will not be he / directory to the Live-CD system but will be /media/[unique id] and be your regular system's root directory. In that directory will be a directory "home". It should have nothing in it as "home" is a separate partition.

At that point you might also do an fsck of that partition to see if it is consistent.


System crashed suddenly and does not boot after that --because of ubuntu only

It's probably a hard disk failure since your system work perfectly well with a Live-CD. You can partially fix this by using this command from the Live-CD :

sudo e2fsck -cy /dev/sda1

You have to change /dev/sda1 by the name of the partition of your system (and make sure it is not mounted), if you don't know what is it, you can use :

sudo fdisk -l

Which will show you all the partition on your system. This operation will take a long time and basicilly will add dammaged sectors of your partition to a list so that the filesystem will don't access them again (that will prevent the system from crashing). Since the data on damaged sector will be lost your system may not start even after the fix, in this case save all your important datas with the Live-CD and reinstall on the fixed filesystem (don't format or you'll lose the list of bad sectors and you may crash during the installation). You should do it to every partition of your damaged disk.

In any case make sure to save all your important datas.


How do I install AMD Catalyst Display Driver on Lubuntu 13.04 (Radeon HD4250)

AMD dropped support for the Radeon HD 4xxx cards in May. You'll have to install the Catalyst Legacy driver. However, the Catalyst Legacy driver only supports kernel version 3.4 and xorg version 1.12.4, and Lubuntu 13.04 ships with kernel version 3.8 and xorg version 1.13

To install the Catalyst legacy driver, you'll have to downgrade xorg to version 1.12 and patch the driver.

Luckily, this can be done in a few simple steps, by adding a ppa that contains a patched version of the Catalyst Legacy driver.

To do this, open a terminal window (press ALT+F2 and type xterm or your favorite terminal emulator)

Enter the following commands:

sudo add-apt-repository ppa:makson96/fglrx
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fglrx-legacy

This way, you'll add Tomasz Makarewicz's ppa that contains the patched driver. It will also automatically downgrade your xorg version to 1.12.

Once the install finishes, reboot your machine and you should be using the Catalyst Legacy driver. You can then start the AMD Catalyst Control Center by opening your terminal emulator and running sudo amdcccle


PPA build recipes? (AUR's pkgbuild equivalent)

Well, I don't know if I can summarize. You need a minimum knowledge about Debian packaging. Whenever, you face an idiom while reading this, just go here for reference.
Here is a Quick start

.deb are Debian binary package

On PPA or Source repositories you may find two types of Debian source archive

Native: debian folder included with source (packaging is part of upstream project), so download the source archive name_version.tar.xz
Foreign: debian folder is outside the source tree (packaging is not part of upstream project and source was just imported by the packager). Then download packaging files in separate archive name_version.debian.tar.xz

You find all build and packing meta and script in debian. Two things are important in there.

rules file: is the main building script (type: GNU make). However, it is not quiet easy because most of steps are usually abstracted and automatic orchestrated. By a tool called debhelper, dh for short.
So you find just these lines in it (this is for a c/c++ project):
#!/usr/bin/make -f

%:
    dh $@

This is a short for pass every operation to dh. You may find here some custom compilation flags & options.

debian/patches folder: contains the patches applied before build, these patches are not merged to upstream project yet or just specific for distribution.

A single source archive can be built into multiple binary packages. The build is sliced using debian/binaryname.install files. More info about binary packages to be generated, check debian/control.

Hope this enough for you to start.
You will find them when you follow View package details link on PPA page.


I would suggest installing Ubuntu from inside windows using a virtual dvd. Use Daemon Tools Lite or some other virtul disk software to mount the iso you downloaded to a virtual disk, then simply double click it in Computer (it might also run automatically) and just follow the installation instructions. You need to have a separate partition. If you don't have one, google how to shrink your windows partiton using disk management in Windows.

I've had the same problems you're having with VMWare, and if you want the full Ubuntu experience without said problems, you should just install it like a regular OS as I mentioned above.


Yes, quite inconvenient indeed.
This is kind of lame to suggest but you could list all available timezone names with timedatectl list-timezones and look for a region or city name that you know is located in the UTC timezone you are interested in. Sorry, I know that is not the answer you were looking for .....


Diagnosis

The bootinfo script isn't reporting some important details, maybe because you have installed syslinux MBR's rather than grub ones. If you are getting grub-rescue that may not be an operational problem, but it hinders diagnosing this problem.

In particular, under these circumstances, it would be handy to get grub to tell us the root and prefix settings it is using with the set command and to learn grub's view of which drive is which by using ls from the grub-rescue prompt and seeing which hard disk it describes. (Since you are eventually booting Windows, and Windows is on disk 2, that may be a signal that the way you are booting is telling grub that your disk 2 is hd0.) In any case I think there is a mismatch between the prefix and grub's understanding of which drive is which.

I've also had trouble with putting grub on drive b--it's a bit tricky.

I believe that seeing the grub-rescue prompt is a sign that the MBR is loading the next sector of grub, and that sector is loading the grub core.img.

The next, and failing, step would be to load the menu, environment, and modules from the directory described by the prefix setting. If the prefix is wrong, or if what grub thinks is hd0 and hd1 doesn't match grub's assumptions when assigning the prefix I believe you will get the problem you are seeing. With my BIOS whatever disk I boot from becomes my grub hd0. Perhaps upgrading your BIOS affected this one way or the other.

Repair

The repair, however, would be to boot your Ubuntu using the live CD, and, while running your Ubuntu system, reinstall grub, installing it to the drive you want to use for booting. Be careful about where grub installs its working directory (usually /boot/grub).
Before booting run the bootinfoscript to print out the prefix and other information in case there is still a mismatch between drive order and the prefix. There can be a device.map file that can either help or cause problems.

Once you get past this point grub now uses UUID's to find partitions, so which drive is which is no longer relevant.


Prox* authentication issue with online accounts (12.10)

Manually Edit the Configuration File
Open the file /etc/apt/apt.conf by pressing Alt+F2 and running gksu gedit /etc/apt/apt.conf. Don't worry if it is an empty file. Add these lines into the file and save it:
Acquire::ftp::proxy "ftp://Username:Your_password@domain:port-no/";
Acquire::socks::proxy "socks://Username:Your_password@domain:port-no/";
Acquire::http::proxy "http://Username:Your_password@domain:port-no/";
Acquire::https::proxy "https://Username:Your_password@domain:port-no/";

Replace username by the username assigned to you and the password by your password, domain by the domain of your proxy like 10.1.101.150, which is my college's proxy address and by the port no like 3128 or the one which you have, if you do have these parameters assigned to you, else leave out username and password and also the characters: : and @ upto domain.
To add proxy authentication parameters to other applications, have a look at this answer to a similar question.
Use the Easy GUI Utility
Another way to add this information is by going to System Settings → Network → Network Proxy then add your proxy settings and click on Apply Settings System-wide. This will add the proxy settings but you will have to add the user-name and password manually using the command-line method described above.


Where are the server "alternate" installer images?

You find the Ubuntu 18.04.1 LTS alternate server images and their checksums at the following link,

old-releases.ubuntu.com/releases/bionic/

These iso files have the classic Debian installer. 18.04.1 LTS will be updated and upgraded within the original bionic kernel series 4.15.

Example:

ubuntu-18.04.1-server-amd64.iso (with the classic Debian installer)
ubuntu-18.04.1.0-live-server-amd64.iso (with the new live installer)

The newest version of Ubuntu Server runs a live session and has a new 'subiquity' installer. You find it at the following link,

releases.ubuntu.com/bionic/


How can I dock a specific System Settings as an icon to the Unity launcher?

The icon you show in your question usually is not presenting itself too obviously; the sound settings usually appear in System Settings > Sound.

You can however navigate to /usr/share/applications and drag the file unity-sound-panel.desktop on to the launcher, or, open Dash and type "Sound" (or a localized name) to the launcher.


How to limit/control evolution IMAP to not download mail attachments bigger than X bytes?

My solution is to add the rule ("Message"->"Create Rule")

Add Condition:

Attachments = Exist
Size(kB) = X000

Add Action:

Stop Processing
or Move to Folder (and exclude this folder from synchronization)


How can I install metatracker from source?

You can install Tracker 0.9.26 from their PPA. There is also a stable PPA, but there's nothing for 11.04 there yet.


My "Answer" to this problem ended up being a fresh system restore of my hard drive starting clean with Windows 7 64-bit. From there any time I tried to install Ubuntu from CD or Wubi no positive result, it just would not take the install.

It would look as though it would install but upon reboot, no GRUB, it would boot back into Windows like nothing was ever installed. I ended up installing virtual box and installed 11.04 in a virtual machine. Even then off top Unity would not load. After a few commands and restarts I got it working. I will be reverting back to 10.10 until a new update.


WPA2 and EAP cannot connect like other devices

So I had the same problem and just got it working on Ubuntu 15.10.  The solution requires the following steps

Use the Network-Manager to add the SSID (Screen shot of setup).  Make sure authenticated is set to PEAP and inner authentication is MSCHAPv2.  Make sure to select  with your login and password and watch it fail.
Hit cancel
Next, navigate to /etc/NetworkManager/system-connections
Now edit the file matching your network SSID.
Delete the line that says "phase2-altsubject-matches=" in the [801-1x] section.
Save and select the SSID in Network-Manager again.  Connects perfectly.

I'm not sure what this line is for, but removing it works.  One think to watch out for though, any time you use the gui to edit the connection, the line returns and again has to be removed.

Note the cert shouldn't be necessary, unless IT gave you the cert to use.

Just upgraded to 16.04 and the same bug remains.  Removing the line still works.


Were is the Debian package for Blender 2.70a?

Today I bundled a Debian package for Blender 2.70a.

http://finn-krauss.com/blender

At the moment it is only for 64bit architecture, but I'm working on it.
You can use GDebi to install it graphical. You install GDebi by entering sudo apt-get
install gdebi.


Take a look at Gnu - Xnee

Link: http://www.gnu.org/software/xnee/

For the command line application on ubuntu:

sudo apt-get install cnee

N.B: xnee is a meta package in ubuntu and installing that will also install cnee. gnee is the package you should install if you want a gui.

Example usage:

cnee --record -o events.xnr --mouse --events-to-record 100 --time 2

This records 100 mouse events after a delay of 2 seconds.

cnee --replay -f events.xnr --time 2

This playbacks the events after a delay of 2 seconds.

I would look at the man page for cnee for more details about how to use it.

Also more details about xnee can be found here https://xnee.wordpress.com/


xfce: How do I get standard Norwegian keyboard layout with dead keys?

Figured this out as I was asking.

It's possible to click the category itself, ie. the line above "Northern Saami (Norway)" in the screenshot.

(Not quite obvious, since it's quite a stretch to call e.g. Northern Saami a variant of Norwegian …)


Some Gnome3 workspace management actions missing on Ubuntu 15.04

A partial solution, suggested by RCF, is to set keyboard accelerators (shortcuts) from the settings dialog for move to workspace 1/2/3/4


Evolution appears unable to store mail account details

Maybe your problem is related to this confirmed bug (Please indicate that the bug affects you, the bug heat will increase). A possible workaround which worked for many is found in comment 35:
"I was experiencing this exact same bug as well. Based on information I read in the corresponding RedHat report (https://bugzilla.redhat.com/show_bug.cgi?id=879773) I was able to get this to work by removing all the Evolution configuration directories (which did have some prior attempts at configuration from a long time ago) and killing and restarting Evolution:
[Fri Aug 8 10:02:25 EDT 2014] > mike at ossy in ~
rm -rf .config/evolution/ .cache/evolution/ .local/share/evolution/
[Fri Aug 8 10:02:40 EDT 2014] > mike at ossy in ~
pkill evolution
I went through the account wizard again, and after adding the password prompt showed up and I was able to type the password and add the account."

I also had the same issue as you did, but did not need to delete all the configuration fortunately. After login/-out of the session, gnome keyring would ask me for the passwords again and then the EWS-accounts would work fine. I just deleted the duplicate accounts as I tried several times to set it up.


I have a 24 gig RAM pc with intel Xeon and still get 3 fps on minecraft

The FPS (frames per second) rate is far more dependent on the speed of the GPU (Graphics Processing Unit) than the CPU (the Central Processing Unit, your Xeon) or the size of your RAM. Therefore, if you want better graphical performance, please consider a new video card, after verifying you have the best driver for your existing graphics adapter. Considering what most Xeons are used for (servers), the graphics adapter could be sub-optimal.


How to update Remote SSH Protocol for PCI compliance

You should just be able to ssh to the remote system and install the newest SSH whichever way you need to, such as via a package manager or from source. This should not interrupt your connection. After it's installed, restart the ssh server (sshd) and it will be running the new code.


I maintain quite a few packages at work, so let me give you my personal perspective on this.

All your stuff should be built in one central location, for all the distributions and architectures that you need.  Do not upload source packages, and then build again locally.  Pick your "private" packages from the build server where you host everything.  That way, you can keep your private repositories in /etc/apt/sources.list with all the others (password protect them if needed).

If Launchpad does not work for you, set up your own build system.  Since you have a lot of packages (over 40), setting up a build environment tailored to your special needs will pay off sooner or later.

You will need a dedicated machine with network access for that – either in your home or at work or a rented server in a datacenter.

Here are two options:

Use Jenkins CI and build script to do the package building.  There is Jenkins Debian Glue by Michael Prokop, which does the job and it's well documented (I ended up rewriting it from scratch, but it might work for you).  It's 100% shell code, so be prepared to do some Bash scripting if you need to tweak it.
With this, you'll be able to build all your packages for all the combinations of dists and arches that you desire.  Jenkins is wonderfully flexible and ROCK stable, and it will be easy enough to compartmentalize your repositories (for private and public consumption).
Use Buildbot – this is going to be more manual work than option one, but Buildbot is a Python project, and from your question I assume that you will feel at home setting that up.  The i3 (window manager) project has an excellent description of how they set up their Buildbot environment, use that as a starting point.

I also strongly recommend sbuild over pbuilder.  Jenkins Debian Glue uses pbuilder (one of the reasons why I ended up discarding it).

In any case, you will need to do some things that you did not have to, so far, such as setting up package repositories (which can be pretty painful) and maintaining a build server.  At the end of the time, it will be worth it, though – and you will learn a lot.


This page is a comparison of remote desktop software available for various platforms.

Comparison of remote desktop software

See Features column -> NAT Passthrough: the ability to connect to the server behind a NAT without configuring the router's port forwarding rules. It gives an advantage when you can not configure router (for example it is on Internet service provider's side), but is a serious security risk (unless the traffic is end-to-end encrypted), because all the traffic should pass through some proxy server which in most cases is owned by remote access application's writers.


Ubuntu 10.04LTS (Lucid Lynx) - Hard Disk Back Up

Easiest and fastest approach is copying over the complete hard drive bit-by-bit:

Install a the new hard drive. Make sure its size is exact the same or bigger than the one you're using now.
Boot from a live CD/USB system.
Copy over the disk bit-by-bit using dd:

Identify the original and new hard drive by their names. I assume here /dev/sda is the old and /dev/sdb is the new one, but check for the names in your case!
Run the following command to copy the whole drive from sda to sdb:

sudo dd if=/dev/sda of=/dev/sdb

Note: it will destroy all data on sdb!

This will take quite a long time. Get some coffee, go out and have a walk.

Now the drives are completely identical. Take out the old drive and simply use the new one.

It's easy because you don't have to worry about bootloader configuration, partition tables, etc.


How to rresolve the error: /var/cache/apt/archives/wireshark-common_1.11.3+svn54990-0ubuntu1~saucy1~ppa0_amd64.deb

Please try the following commands: (It worked for me with Ubuntu 12.04)

sudo dpkg --force-all -i /var/cache/apt/archives/wireshark-common_1.11.3+svn54990-
0ubuntu1~saucy1~ppa0_amd64.deb

sudo apt-get install wireshark


So after upgrading my dependencies via

sudo apt-get upgrade

It started working again. I guess the version I had was broken and now it is not[


Format problem docx File in Libre Writer?

If the .docx file is produced with LibreOffice than there should not be any problem, since LibreOffice uses a strict ISO-compatible format.

On the other side, if it is produced by Microsoft Office, then it is very difficult that you find a way to show it correctly in LibreOffice (apart for the fonts that may be missing or that are different on your Ubuntu system), since Microsoft uses a non-strict transitional proprietary ISO format that no one else can use.

Source


How do I use Rogers Nokia CS-18 rocket stick?

I have to give thanks to @inhuman4 from the USB_ModeSwitch forums for figuring this one out.

Basically, the modem acts like a USB key until a certain code is sent to it.  This code is device specific and Ubuntu uses usb_modeswitch to switch the mode on the modem from key to modem.

For the time being to add support for Rogers Nokia CS-18 rocketstick users need to add this to the bottom of /etc/usb_modeswitch.d/0421:0627

########################################################
# Nokia CS-18

DefaultVendor= 0x0421
DefaultProduct=0x0627

TargetVendor=  0x0421
TargetProduct= 0x0612

CheckSuccess=20

MessageContent="5553424312345678000000000000061b000000020000000000000000000000"

Then they need to add this to /lib/udev/rules.d/40-usb_modeswitch.rules

# Nokia CS-18
ATTRS{idVendor}=="0421", ATTRS{idProduct}=="0627", RUN+="usb_modeswitch '%b/%k'"

That's it!  Unplug and replug your rocket stick and you are ready to go! :)

Hopefully these config file changes will be added to the Ubuntu distribution soon.


As noted in the comments on the question in this particular instance the issue was that Rhythmbox was muted in settings.

Navigating to Seetings -> Sound -> Applications and then making sure Rhythmbox was turned on fixed the issue.


Following the comments above suggestion linked by Tzahi Leh I have the following script saved as /etc/pm/sleep.d/30_wakeup and executable which seems to resolve the issue. Previous portions of the script existed and were taken from this thread for speaker and bluetooth issues known in Ubuntu 14.04, but it wasn't until a recent update that I had to add the nmcli line:

#!/bin/bash

case "$1" in
suspend_hybrid|hibernate|suspend)
    # executed on suspend
    echo "Going to $1 at $(date)" >> /Data/sleep_log.txt
    rfkill block bluetooth
    ;;
thaw|resume)
    # executed on resume
    # restart wireless, just in case
    restart network-manager > /dev/null
    # to resolve new issue, 27 Dec 2015 via: http://askubuntu.com/questions/452826/wireless-networking-not-working-after-resume-in-ubuntu-14-04?rq=1
    nmcli nm sleep false

    #wake up the speakers
    hda-verb /dev/snd/hwC1D0 0x1 set_gpio_mask 1
    sleep 1
    hda-verb /dev/snd/hwC1D0 0x1 set_gpio_direction 1
    sleep 1
    hda-verb /dev/snd/hwC1D0 0x1 set_gpio_data 1
    echo "waking up from $1 at $(date)" >> /Data/sleep_log.txt

    #bluetooth
    rfkill unblock bluetooth
    ;;
*)
    ;;
esac


Any video opened in VLC comes on top of other windows and drop down even when vlc is minimised

the issue gets fixed by running vlc using command

vlc --no-overlay


Dropbox as you already mention, or Ubuntu One, which is ~$3 USD per month for each additional 20G of storage (12 months for the price of 10 on annual billing)
https://one.ubuntu.com/


Where can I get experimental versions of dropbox?

You can drop last experimental build from Dropbox Forum, here you can find the last version available, 0.8.110.

Simply download your desired tar.gz and extract .dropbox-dist into your Home folder, than copy your desired icons in /home/yourname/.dropbox-dist/icons/hicolor/16x16/status. Be careful to icons name.


Reinstall ALSA and PulseAudio

Try reinstalling ALSA and PulseAudio Manually that must be fix the problem for you.

Open your terminal, and enter the following commands:

sudo apt-get remove --purge alsa-base

sudo apt-get remove --purge pulseaudio

sudo apt-get install alsa-base

sudo apt-get install pulseaudio

sudo alsa force-reload


This method is kind of trade-off. I simply remove virtual drive with GoogleEnterpriseSync application from PlayOnlinux, rename Google Drive folder to needed name and start over (select Google Drive folder with correct path). About manual and control of the sync - it is very hard to get drop-down menu in the tray. I have tried many Windows versions in PlayOnLinux, but still no luck. So it is better than nothing. If you need stable cross-platform solution - take a look to DropBox.


"Are you sure you want to proceed?" on login

From what I can tell this dialog appears when there is an error in one of your shell configuration files. The fact that there is an error in your .bashrc seems to confirm this. After looking through the file the only suspicious thing I can find is in line 4:

archey

I've never heard of an application named archey but it is the only thing that stands out, the rest of the file looks quite stock. Since you said besides this everything seemed to be working fine lets just send the error to /dev/null and bypass the problem. Change the line so that it reads:

archey 2> /dev/null

This will redirect all errors into the emptiness of /dev/null. This technically just bypasses the issue (archey is returning errors) but as you say everything is working as expected I see no problem with that.

Your wallpaper issue I would consider unrelated (unless archey has something to do with wallpapers). This answer suggests several possible reasons:

Your image file is not read only. This should only be an issue if you're using a non stock wallpaper.
The feature got turned off. In this case just turn it back on by running:

gsettings reset com.canonical.unity-greeter draw-user-backgrounds


Yes, you can develop a game completely using QML. There is a Qt Quick advanced tutorial on this link (http://qt-project.org/doc/qt-5.0/qtquick/qtquick2-qml-advtutorial.html) that builds a game this way.

The new Sprite(http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-sprite.html) and AnimatedSprite elements may be very useful for you.


I can't get out of grub + you need to load the kernel first

Try the following steps:

ls [to see paritions]

Then ls root directory of each, to find the one linux installed on. e.g:

ls (hd1,6)/ [let's assume linux is installed here]

linux (hd1,6)/boot/vm [===> press TAB to auto-complete] root=/dev/sda6

initrd (hd1,6)/boot/ini [===> press TAB to auto-complete]

boot

Hopefully! in linux:

sudo update-grub

grub-install /dev/sda

If, for any reason, you couldn't make grub work. Install Boot-Repair:
https://help.ubuntu.com/community/Boot-Repair


This is your solution http://www.infoworld.com/article/2697813/install-silverlight-alternative-pipelight-in-ubuntu-14-04.html

Alternatively, if you are using 64 Bit Lubuntu (AMD64), then you can install Google Chrome and use NetFlix, if you are on 32 Bit Lubuntu, then you need to install 64 Bit Chrome:

Use this command in terminal:

gksudo leafpad /etc/apt/sources.list.d/google-chrome.list

In the text file edit as

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

Save the file and exit
sudo apt-get update
Install Google Chrome 64 Bit now and enjoy NetFlix


How to update linux ubuntu 14.04 to 15.04?

Open a terminal and fire the command:

sudo apt-get install update-manager-core
sudo nano /etc/update-manager/release-upgrades

Change lts to normal:

Prompt=normal

Start the upgrade:

sudo apt-get update
sudo do-release-upgrade -d

Windows remains untouched.


No SSH access after accidentally denied ssh in ufw/iptables on Snappy Ubuntu Core

If you have a monitor, keyboard and mouse connected to your NUC you can log into it directly and use the commands mentioned in user68186's comment to remove the offending rule.

sudo ufw status numbered
sudo ufw delete [offending rule number]

Logging directly into the machine itself does not require SSH access. SSH is only used when trying to access the computer remotely over network (hence why firewall affects it).

NOTE: Enabling UFW will block incoming SSH connections by default. If there are no rules listed using the sudo ufw status command, or none that explicitly block port 22 (SSH) then use one of the commands below to allow SSH through your firewall.

To allow any PC to connect:

sudo ufw allow ssh

To allow a specific PC to connect: (Requires the PC you want to allow to have a static IP.)

sudo ufw allow from XXX.XXX.XXX.XXX to any port 22 proto tcp

where XXX.XXX.XXX.XXX is the IP of the PC you want to allow.

Hope this helps.


In the Activities Menu, search for the "Main Menu" app, then uncheck or delete the categories you see selected under Debian. This removed every instance of duplicate low-resolution icons for me.

Edit: I'd personally delete whole Debian icons tree - this will make sure those items aren't appearing even though you unchecked them, because I found this feature (disabling icons) buggy. Although there was problems which I stated a while ago, this was still solution of my problem.


Technical help for disk space allocation

Looks like this is related to Allocating drive space?.

Boot in to windows 7.

Open my computer and see if you can free up any drive (like D drive/E drive which are hard disk partitions).You can correlate the drive naming in windows and linux (reported in question) by comparing the sizes as well. If there is one such drive, move all the data in that drive to another drive and so that you can delete it.

Then ,in windows, Go to Settings -> Control Panel -> Administrative Tools -> Computer Management -> Storage -> Disk Management'. Locate the drive you identified, select it and delete the partition from the menu. That space will become free space.  Boot using Ubuntu install CD and use that partition to install Ubuntu.


Encrypted home folder is only partially decrypted by ecryptfs

A recovery suggestion: the upgrade sounds like it somehow caused the problems, so try booting from a live iso of your previous Ubuntu version, then try decrypting / recovery with it, possibly using the ecryptfs recovery program (ecryptfs-recover-home I think?).

May have to restore from your backup - should always have a backup especially with encryption and/or an upgrade.


Instead of building a binary package you indeed need to build a source package and let the launchpad ppa build binaries for you.

To create the source.changes file, just issue the following command:

dpkg-buildpackage -S

From the dpkg-buildpackage man page:

   -S     Specifies a source-only build, no binary  packages  need  to  be
          made.  Passed to dpkg-genchanges.


What is terminal command that can show OpenGL version?

To Check OpenGL Version,

glxinfo | grep "OpenGL version"

You will get the output as follows,

glxinfo | grep "OpenGL version"
OpenGL version string: 1.4 (2.1 Mesa 7.7.1)

Edit:

You may have better luck with modern OpenGL just grepping for "version" instead of "OpenGL version" given the differences between the core and compat profiles, as well as the various GLSL and GLES versions:

glxinfo | grep 'version'
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.1
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.1.2
OpenGL core profile shading language version string: 4.10
OpenGL version string: 3.0 Mesa 11.1.2
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.1.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

Notice that the actual version is presented by the "core profile version" (4.1), whereas the "OpenGL version" is presented as 3.0.


What's the difference between Ubuntu Studio and Xubuntu?

Ubuntu Studio is a recognized flavor of the Ubuntu Linux distribution, which is geared to general multimedia production. The original version, based on Ubuntu 7.04, was released on 10 May 2007(1). These are Ubuntu Studio's main features:

  Low-latency kernel:As of Ubuntu Studio 12.04, the default kernel is linux-lowlatency, which in essence is a generic Ubuntu Linux
  kernel, with a tweaked configuration to allow for stable operation for
  audio applications at lower latencies.
  Appearance and sound theme:Ubuntu Studio also includes custom artwork and a blue-on-black theme, as opposed to Ubuntu's default
  purple and orange. As with the main distribution of Ubuntu, if an
  accelerated graphics card and appropriate driver are used, the
  advanced desktop effects can be enabled.
  Access to Ubuntu repositories: An important advantage of Ubuntu Studio over most other Linux distributions employing the real-time
  kernel is access to the same repositories available to the main Ubuntu
  distributions through the Update Manager, Synaptic Package Manager, as
  well as through the Add/Remove Applications prompt.

Xubuntu  is a Canonical Ltd.–recognized, community-maintained derivative of the Ubuntu operating system. The name Xubuntu is a portmanteau of Xfce and Ubuntu, as it uses the Xfce desktop environment, instead of Ubuntu's GNOME desktop(2). Xubuntu's goals are to:

  provide an easy to use distribution, based on Ubuntu, using Xfce as
  the graphical desktop, with a focus on integration, usability and
  performance, with a particular focus on low memory footprint. The
  integration in Xubuntu is at a configuration level, a toolkit level,
  and matching the underlying technology beneath the desktop in Ubuntu.
  Xubuntu will be built and developed autonomously as part of the wider
  Ubuntu community, based around the ideals and values of Ubuntu.

So, we come to the conclusion that Ubuntu Studio is a distribution, suitble for multimedia production while Xubuntu's foucus is to provide an environment which needs low memory and is highly customizble.


So I decided after 2 days of googling around this problem that I can't have my main machine down any longer. Everything I've found related to my issues either hasn't worked or the OP just ended up reinstalling.

So; I bit the bullet and reinstalled. Everything seems to be going smoothly so far and my home directory files are in place. It's a shame about all my customizations, apps, dependencies and libraries that were installed, but I still have my data.

I'm almost definitely going to be staying on this LTS release for the life of this computer since I don't want any more hiccups.

Thanks,
Hunter


try this, if you do not need to run any GPU-hungry application:

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

also, there is a amd version of bumblebee on https://aur.archlinux.org/packages/bumblebee-amd-git/
I think that would help you


Ok finding in a lot of blogs and aswer, the obviously answer is add suffix in php, then for install php5.6 or before add this.

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php7.0   # for PHP 7.0
sudo apt-get install php5.6   # for PHP 5.6
sudo apt-get install php5.5   # for PHP 5.5

later of this you need install extension with the following commands

if you install php 5.6 you need add 5.6 to php, for example

sudo apt-get install php5.6-gd php5.6-mysql php5.6-dom php5.6-cli php5.6-json php5.6-common php5.6-mbstring php5.6-opcache php5.6-readline

etc . or otherwise if you make php-gd you install gd for php7, and thanks to @elder-geek for add links


I'd recommend you just leave the default settings for now, as they will provide only stable, important and secure software updates.


How to export a calendar from Gnome Calendar to a file?

I have recenty migrated to Ubuntu and as part of the migration process I have done lots of research including looking into calendar apps for Ubuntu and I found that the Gnome Calendar currently does not support exporting calendars, incidentally I found this feature has been requested and consequently filed as a bug/feature request at gitlab a year ago, however it has not entered into the design stages yet, so doesnt look like it will happen anytime soon, you can see the request at:

https://gitlab.gnome.org/GNOME/gnome-calendar/issues/31

Having said that, although you currently cannot export Gnome Calendars or events you can however sync with online calendars as shown below:

Sync Gnome Calendar in Calendar Settings with other Online Account Calendars

The following blog demonstrates how this is done:

https://www.ctrl.blog/entry/gnome-caldav

There is also a list of alternatives to GNOME Calendar you may find useful at:

https://alternativeto.net/software/gnome-calendar/

I personally am going to use the Lightning Calendar as it can be integrated into thunderbird and you can synchronize Thunderbird Calendar (Events & Tasks) with Gnome-Shell Built-in Calendar via Evolution or other online Calendars like Google Calendar, Lightning also allows you to export Calendars or Events to HTML, iCalendar or CSV formats. The following link shows you how you can sync lightning with Google Calendar:

https://support.mozilla.org/en-US/kb/using-lightning-google-calendar

I just read the other posts and from what Owain said, I could find no Save As option in Gnome calendar to Export the ics file. however, if you look at the paths to the calendar.ics file(s), it appears that Gnome Calendar is in fact evolution under the hood and psw1747 is also right except for the path or at least it seems that way on my system, because I found 3 calendar.ics files, that were there from install, so I thought there must be one ics file for each calendar, which on my system are:

-Birthdays & Anniversaries

-My Calendar

-Personal

and so I added an event to all 3 calendars to determine which file corresponds to which calendar and found that unless something went wrong with the install, all events from all calendars are written only to the one ics file is stored in:

/home/me/.local/share/evolution/calendar/9xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1

the other ics files were left untouched including the one in the location that psw1747 posted:

/home/me/.local/share/evolution/calendar/system

/home/me/.local/share/evolution/calendar/trash/9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf2

FINAL ANSWER

In any case it shows that all 3 posts have contributed to the final answer which is that Gnome Calendar is in fact evolution under the hood (Owain) and is stored as an ICS file as psw1747 pointed out , so this explains why there are no import/export calendar options required in the UI, since to import you just need to replace the ICS file you want to import and to export you just locate the ics file import it into your target calendar.
The only problem I can envisage is where you want to import a calendar, but want to preserve the events in your Gnome calendar so you would really need to find a way to merge the two calendars together.


Software similar to nautilus-share in Thunar?

Overview

Unfortunately Thunar does not support the same equivalent Nautilus-Shares functionality.  However you can workaround this.

Prerequisites

First install samba

sudo apt-get install samba

Thunar Shares

Open Thunar and Select *Edit > Configure Custom Actions > + *

Basic Tab:

Name: Samba Public Read Only
Command: net usershare add %n %f "" Everyone:R guest_ok=y

Appearance Conditions Tab:

Make sure only Directories is enabled.

Restart Thunar and right click a directory in your home folder, say Documents, and select "Samba Public Read Only".

To check if it has done it correctly run the following command to see the share definition:

net usershare info --long

It should look like this if it's done it correctly:

[documents]
path=/home/dad/Documents
comment=
usershare_acl=Everyone:R,
guest_ok=y

Repeat for:

Public - Writable

Name: Samba Public Writeable
Command: net usershare add %n %f "" Everyone:F guest_ok=y && chmod 777 %f

Private - Read Only

Name: Samba Private Read Only
Command: net usershare add %n %f "" Everyone:R guest_ok=n

Private - Writeable

Name: Samba Private Writeable
Command: net usershare add %n %f "" Everyone:F guest_ok=n && chmod 777 %f

Remove Share

Name: Samba Share Remove
Command: net usershare delete %n && chmod 755 %f

What it can do:

Create a samba usershare.
Change permissions on the target folder allowing write access to samba clients.

What it can't do:

Nautilus-shares has a GUI which showed you available options and those you have already selected.

Nautilus-shares change the folder icon to show you that the folder was shared. Right-click the folder that has been shared and select properties.  Add an emblem to remember that this folder has been shared.

credit


12.04: Is it possible to close windows in "spread mode"?

In 12.04 you can do this by "enabling the plugin 'Scale Addons' in CCSM and enable the option to close windows on middle-click"

Source.

Before that you have to install CCSM and the compiz add-ons.

sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-plugins-extra

If your launcher is on auto-hide, it may not appear after activating the function. Rebooting should solve this problem.


Can't download vcrun2008 winhttp wininet with winetricks

This means Microsoft has deleted the file from their servers. Oh and they did that a long time ago ;)

If you look at the link: http://download.microsoft.com/download/ie5/Update/1/WIN98/EN-US/3725.exe you can see you are trying to get a windows 98 file named3725.exe for IE5 from their servers.

See http://www.playonlinux.com/en/issue-1142.html for a similar question.
The mirror mentioned does not work.

Here http://am.net/lib/tools/Microsoft/ie/5/ is one. That site also holds all the other files that you might need.


My fault:

I installed youtube-dl using command : sudo apt-get install youtube-dl

What should I have done:

I should have used commands (either one):

either

sudo curl -L https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

or

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

I used the first one and then it worked correctly.


firefox menu and add-on button not working. (Similar problem in okular)

Set the rendering engine to xrender (Compositor).

This worked for me.


How can I edit an applications source code?

Use apt-get source pkgname from the command line. Doesn't matter what language it's in --as long as the package is open source and in the repositories


1) If you have data on the drive that you need to keep, back it up.

2) Fill the drive with zeros which will blow away the MBR, Partition table LVM and all data by:

sudo dd if=/dev/zero of=/dev/sdX

or if you want a progress report as you wipe the drive use

sudo dc3dd wipe=/dev/sdX in both cases sdX should be changed to sda, sdb, or whatever drive you are wiping. You can identify the drives using

fdisk -l


What do I do about the "haziness when booting up Ubuntu?"

If it's hardware than you need to order a new graphics card, find the exact make and model of your laptop for this, you can do it on a terminal, or a google search, or on the laptop itself on the sticker on the bottom. Than find the exact card you need. If you feel you can't do it yourself i'd suggest bringing it to someone who does that for a living :P


It could be an issue with your MBR, GRUB installation, or something of the sorts - try running Ubuntu using live media so you can download and run boot-repair. Simply put, you can type this in the terminal:

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

You can then launch the utility via the Dash or with the command boot-repair. Follow the recommended instructions and I believe it should at the very least do a full reinstall of GRUB2. You may be able to perform these same steps using the root prompt in the recovery tool (second boot option).
Otherwise, it could be an issue with the installation itself, for which you could try to run the diagnostic utilities provided by the recovery tool, or you may have to reinstall.


How does one get Firefox media playing on Ubuntu 20.04?

Apparently you tried to install ffmpeg via command-line, in this case you'd have to use Tabulator-Key (the one two below Esc) to highlight the "OK"-Button and press Enter.
Besides ffmpeg I usally also install ubuntu-restricted-extras.


ubuntu as router, 2 nics, 2 lans, outside lan can not connect to inside lan

Solved by installing webmin. Then used it to reset iptables. Seriously, a great tool for administering the firewall.

webmin told me 2 rules were in the iptables which it could not understand, so I save iprules to a file, did a reset and all the 3 PCs can share files.

A defacto firewall is running all the time using iptables. So they must be modified.

scott@scott-P5QC:~$ sudo dpkg -i webmin_1.580_all.deb
Selecting previously unselected package webmin.
(Reading database ... 229686 files and directories currently installed.)
Unpacking webmin (from webmin_1.580_all.deb) ...
Setting up webmin (1.580) ...
Webmin install complete. You can now login to xxxxxxxxxxxxxxxxxxx
as root with your root password, or as any user who can use sudo
to run commands as root.
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot

To show what it looks like:

Source - Ubuntu Geek


If you keep pressing Alt a little bit longer there will not be any conflict.

As alternative, you can:

Change the HUD's use of the Alt key:

How do I modify or disable the HUD's use of the Alt key?

Change shortcut keys for Nautilus:

Where to configure shortcut keys of Nautilus?


according to your description I would try:

find . -type f -iname "*intro*"

This will also spit out hidden files in the current directory.

Let me know if it helps.


Ubuntu 14.04 does not work wifi for Lenovo Y50-70

Make sure that you install the proprietary BCM driver (open "Additional drivers" from dash).


Unable to Install rpy2 on Ubuntu 14.04, missing R_ext/Rallocators.h:

The latest / current release of rpy2 requires a more recent version of R (current latest release of R is 3.2.x)


How to install the latest version of a package with apt-get?

just type

apt-get update
apt-get install <package-name>

And the latest available in all your repositories will be installed.


How do I make my bash script output data correctly?

Your script is really way more complicated than it needs to be. And you are getting errors (by the way, it is really helpful if you actually show the errors you are getting) because you are running it as a regular user and your user doesn't have read permissions for all the directories under /. To avoid these errors, either run the script as root, or redirect the error to dev/null by adding 2>/dev/null after each command (or when calling the script script.sh 2>/dev/null).

Here's a simplified version:

#!/bin/bash

for d in /*/; do
  size=$(du -s "$d" | cut -f1)
  reg_files=$(find "$d" -type f | wc -l )
  sub_folders=$(find "$d" -type d | wc -l)
  links=$(find "$d" -type l | wc -l)
  executables=$(find "$d" -executable | wc -l)
  echo "${d};${size};${reg_files};${sub_folders};${links};${executables}"
done

Some general notes:

You don't need to touch a file before writing to it, just write to it. So you could have done find -maxdepth 1 -type d > ./home/etudiant/Desktop/main_list.txt directly, without the touch, you just don't need that file in the first place.
Your echo needs a $ before each variable you tell it to print. echo ${foo}{bar} will echo the value of the variable foo and then the string bar, you need echo ${foo}${bar} to echo the values of both variables.
As I said above, to avoid the errors, run your script with sudo.


I disabled my touchpad, and now there's no option to reenable it on Ubuntu 14.04

Try touchpad extension to re-enable and control your touchpad.


VLC does not launch after installing a new skin (upgraded to 14.04 LTS)

Try removing your VLC config folder ~/.config/vlc. Or try vlc --ignore-config.


Set virtualenv for file in Visual Studio Code python

I simply set the pythonPath variable in the local .vscode/settings.json to the python that should be used, like so:

"python.pythonPath": "~/.virtualenvs/<my_virtual_env>/bin/python"

Code then automatically sources the virtualenv activate script before running files (like debugging or "run python file in terminal").

I use Ubuntu 18.04, Code 1.33.0 and Python Plugin 2019.3 from Microsoft


I found the problem.

It appears that Azure has its own firewall, called.... Security zones.

So to open a port one needs to go to portal.azure.com, open Security zone to which target VM is assigned. Then in Settings of that zone in Inbound security ruless configure port, which needs to be open and save the setting.


How can I get my IOGear GCS632U KVM switch to work?

I would check with IOGEAR. Product Info:
Pre-Sales product questions / product information: support@iogear.com

According to them:
The mouse and keyboard console ports on the GCS632U are hardwired for their particular device. These ports emulate the generic connection to the computer and the keyboard port also enables the KVM hotkeys.

Since these console ports are not true USB ports, they are not interchangeable. The mouse and keyboard need to be connected to the proper ports, or there may be performance issues with the peripherals.

The keyboard and mouse ports are labeled with an icon, located at the bottom of the switch.

The mouse connects to the left console port.

The keyboard connects to the right cosole port.


how to enable hibernate on ubuntu lenovo y50

According to this answer, disabling secure boot in the Bios setting seems to solve the problem.


Cannot Install/Run Ubuntu without acpi=off & nomodeset etc

The solution was to reinstall kubuntu 14.04 with the standard desktop live CD with extra boot options other than acpi=off, as that option was the 1 that caused the issues I described.

To get the installer working It needed to be booted with nolapic to prevent freezing and nomodeset for the GUI to show. These options carry over to the installation.

After that installing the AMD fglrx drivers from apt-get allows you to disable nomodeset and boot with only nolapic. That is achieved by editing /etc/default/grub as root, removing nomodeset and then running update-grub as root.

Other problems that occurred were:

The installer freezing at 93% when copying logs. To remedy that simply reboot. Its late enough in the install process to be inconsequential. Change to another tty, eg tty1 by pressing Ctrl+Alt+F1 if the "Try Kubuntu" option wasn't used. Then run the reboot command.

Grub failing to find the UUID of the boot partition. To remedy, reorder the HDD's in your bios such that the boot drive where kubuntu is installed is 1st.


can't open certain websites, using VPN or not

Not every DNS servers keep themselves updated with localized domains such as government domains .
Change your DNS server to Google'S public DNS server by entering following IPs in your network manager

8.8.8.8
8.8.4.4


VPN error "Socket bind failed on local address" "Address is already in use"

Stop openvpn service. It probably started at boot-time.

Then try to start manually with:

openvpn server.conf


There seems to be at least two options: one is to recompile Geany's sources after including a line like gtk_widget_hide(menu_bar);, where menu_bar would be the widget for the menu bar (you'll have to find out, don't know the exact name) -contribution by Pedro Cirne-; and the other is to install topmenu in Lubuntu 16.04 like this:

sudo apt-get update
sudo apt-get install topmenu-gtk-common

and then follow these instructions.

This will take Geany's menu bar to the global menu bar, which (in my case) is also hidden, so no more menu bars to play with.


Ctrl+alt+shift+R for recording not working Ubuntu 20.10

This is a known bug in Ubuntu. See here: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1901391
You can find some background information on this issue here: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3329
As workaround you could use an extra application, for example RecApp available on flathub.


You can render the device not bootable simply by making the first few bytes of the disk 0x00.

Typically (and this is true for both grub, grub2 and ntldr iirc) the very first byte of your drive is going to be an x86 jmp instruction.  This occurs before even the disklabel, because when passing execution to the device to bootstrap it, it simply sets the CPU to suck in the device information as code.  If it has invalid code it triggers an interrupt and the BIOS handles the exception and goes to the next bootable device.

For instance, the beginning of my disk starts with:

00000000  eb 63 90 d0 bc 00 7c fb  50 07 50 1f fc be 1b 7c  |.c....|.P.P....||

The first part is eb 63 which is Jump to offset 0x63 from the current IP (so to 0x65).

00000060  00 00 00 00 ff fa 90 90  f6 c2 80 74 05 f6 c2 70  |...........t...p|
00000070  74 02 b2 80 ea 79 7c 00  00 31 c0 8e d8 8e d0 bc  |t....y|..1......|

Execution continues from here.

The end of the sector looks like this:

000001b0  cd 10 ac 3c 00 75 f4 c3  ed db 96 d6 00 00 80 01  |...<.u..........|
000001c0  01 00 83 fe ff ff 3f 00  00 00 c1 07 a6 0e 00 fe  |......?.........|
000001d0  ff ff 83 fe ff ff 00 60  00 11 00 00 38 29 00 fe  |.......`....8)..|
000001e0  ff ff 82 fe ff ff 00 08  a6 0e 00 58 5a 02 00 00  |...........XZ...|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|

If your disk is formatted as an MBR partition table then it only needs two things to be present, the partition table which is at offset 0x1be and the MBR signature, 55aa which occurs at the very end of the sector at offset 0x1fe.  0x1be is decimal 446.

The following will (of course) make the device unbootable.  But this is what you want.  If you don't want to make your device unable to be booted then don't do this, mmm-kay?  I'm assuming your device is /dev/sdz, simply because not many people have a /dev/sdz, and this lowers the risk of some idiot newbie blindly copy pasting commands.

First, copy the MBR to a file for a backup.

sudo dd if=/dev/sdz of=/some/where/safe/preferably/not/on/dev/sdz/backup.mbr bs=512 count=1

Next, make a copy of that file:

cp backup.mbr backup.mbr.test

Next, we have to create a loopback device (so that the contents don't get truncated.) And apply the changes on our fake sector 0 as a test:

sudo losetup /dev/loop7 backup.mbr.test
sudo dd if=/dev/zero of=/dev/loop7 bs=446 count=1
sudo losetup -d /dev/loop7

hexdump the file and make sure that the entire partition table is intact:

sudo hexdump -C backup.mbr.test

You should see something like:

00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 80 01  |................|
000001c0  01 00 83 fe ff ff 3f 00  00 00 c1 07 a6 0e 00 fe  |......?.........|
000001d0  ff ff 83 fe ff ff 00 60  00 11 00 00 38 29 00 fe  |.......`....8)..|
000001e0  ff ff 82 fe ff ff 00 08  a6 0e 00 58 5a 02 00 00  |...........XZ...|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200

Now, 0x1be is where you see 80 on the hexdumped output, this can also be 00 and still be valid.  (It's the "bootable" flag in the partition table, you can leave it alone, because it's completely ignored by most modern BIOSes...)  The byte at 0x1bf though will almost never be 0x00 (it's most commonly 0x01 but it can take other values) you can compare this against your backup.mbr to make sure that nothing past 0x1be is changed.

Once you're satisfied that you applied the change correctly then you can directly copy the file over the first part of the disk.  The reason why you want to do the file rather than /dev/zero again is for safety against typos.  If you accidentally omit count=1 you're gonna have a bad time, copying a file on the other hand will never run past the EOF, ever.  So it's safer.

sudo dd if=backup.mbr.test of=/dev/sdz

Next hexdump your disk to make sure that the changes took as expected.

hexdump -C /dev/sdz | head

Compare up to 0x200 against backup.mbr.test to make sure it's what you want.

Finally, if anything screws up for whatever reason you can simply copy the backup of the MBR back onto the drive via:

sudo dd if=backup.mbr of=/dev/sdz

Hope this helps.


Building a Debian package with two buildsystem

You can use both but in that case your debian/rules will exclusively use overrides:

#!/usr/bin/make -f

%:
    dh $@ --with=python3

override_dh_auto_build:
    make universe-explode-in-delight
    cd python_src && python3 setup.py build

override_dh_auto_test:
    cd python_src && python3 setup.py test

override_dh_auto_install:
    cd python_src && python3 setup.py install \
        --force --root=$(CURDIR)/debian/tmp \
        --no-compile -O0 --install-layout=deb
    make install_non_python_stuff

override_dh_auto_clean:
    cd python_src && python3 setup.py clean

See: http://manpages.ubuntu.com/manpages/trusty/man1/dh.1.html


Purple theme for "Bash On Ubuntu On Windows" for Windows 10

Introduction

You can setup Ubuntu like colors in Windows Subsystem for Linux as this tutorial describes in detail:

Caveat

Don't use the screenfetch display above, use the modified winscreeny here:

Using this splash screen gives more details than the tutorial's screen and avoids error messages like it has.

Terminal Background Color Instruction Summary

To summarize the tutorial in the first link you will need to:

Head to the Ubuntu Website to download the Ubuntu Font for free.
Install these fonts by clicking the “Install” button in the Windows Font Viewer windows. NOTE: I found the Consola's font built into Windows the best for me.
Change the default terminal colors as per table below.
Slot 1: Red: 78, Green: 154, Blue: 6
Slot 2: Red: 52, Green: 101, Blue: 164
Slot 3: Red: 48, Green: 10, Blue: 36
Slot 4: Red: 6, Green: 152, Blue: 154
Slot 5: Red: 204, Green: 0, Blue: 0
Slot 6: Red: 117, Green: 80, Blue: 123
Slot 7: Red: 196, Green: 160, Blue: 0
Slot 8: Red: 211, Green: 215, Blue: 207
Slot 9: Red: 85, Green: 87, Blue: 83
Slot 10: Red: 114, Green: 159, Blue: 207
Slot 11: Red: 138, Green: 226, Blue: 52
Slot 12: Red: 52, Green: 226, Blue: 226
Slot 13: Red: 239, Green: 41, Blue: 41
Slot 14: Red: 173, Green: 127, Blue: 168
Slot 15: Red: 252, Green: 233, Blue: 79
Slot 16: Red: 238, Green: 238, Blue: 238

As Piotr Bartnicki notes, many people may prefer a lighter blue for directories. If you fall into this camp, put the value for slot 10 in slot 2.


Add physical disk to KVM virtual machine

Although this has been answered, rather than using /dev/sda you should use /dev/disk/by-id/ where you get  from

    ls -l /dev/disk/by-id

That way you are covered just in case the disk changes from /dev/sda to /dev/sdb.


SSH password entered too many times Connection refused

If you haven't installed ssh-server yet, you need to install it by running:

sudo apt-get install openssh-Server,

You may also need to check if the default SSH Port 22 is open on your Router/Firewall. You may also need to change the default port under /etc/ssh/sshd_config.


Can't install wireshark on ubuntu 18.04.1 LTS

You're trying to install from the Wireshark development PPA. It probably needs resources that are not available on 18.04.1.

Update #1:

There could also be a problem with "Beaver GUI"... I'm not familiar with it. Sounds like GNOME desktop.

This originally started as a server install, and other resources may be missing that are required for Wireshark.

Remove or disable the PPA.

Then checkmark the following Ubuntu repositories... and reload the databases on quit...

Then install Wireshark from Synaptic, the Software Center, or...

In terminal...

sudo apt-get update # update the software databases

sudo apt-get install wireshark # install wireshark


The "resolv.conf" file becomes empty after each restart

That file has 2 comments in it:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

Why not listen to the people that made/maintain this file? ;-)

  resolveconf

From the man page:

  Normally the resolvconf program is run only by network  interface  con‐
         figuration  programs  such  as  pppd(8)  (for  ppp interfaces); by DHCP
         clients such as dhclient(8); by ifup(8) and ifdown; and by  DNS  caches
         such as dnsmasq(8) (for the loopback interface).  These programs obtain
         nameserver information from some source and push it to resolvconf.

  Command line

  The administrator can run resolvconf from the command line  to  add  or
         delete  nameserver  information,  but this is not normally necessary or
         advisable.

Please use the method described here: How do I add a DNS server via resolv.conf? (Randall Cook seems the easiest and works for servers too).


Wi-Fi speed slows down when lid is closed

Wifi antennas are usually present on the bezels of your laptop screen. So when your screen is open, the antennas are in the upright position making it the most optimal way for receiving wifi signals. On closing your laptop screen, your antennas are in a flat horizontal position making them inefficient to receive signals, thereby lowering your wifi speed.
I can give you 3 solutions for solving this problem:

Leave the laptop screen open.
Close the laptop screen and lean your laptop against a wall or any other object such that your antennas remain in a vertically upright position.
Use an external USB Wifi dongle and keep it oriented in the best position.


How to access bash without a terminal emulator?

Yes, by pressing CtrlAltF21. That gives you access to virtual console TTY2 . And you can reinstall any terminal emulator from there with sudo apt-get install terminal-name, where terminal-name is, gnome-terminal for example.

To get back to the GUI, first type exit to log out of the virtual console, then press CtrlAltF7 to switch back to the GUI. (In case you want to keep TTY session open, skip the typing  exit part)

Edit: June 17,2015

I've thought up another solution: if you have any C language IDE, you could compile the following code, and the console of the IDE will now give you access to bash

#include<stdio.h>
#include <unistd.h>

void main()
{
        system("bash");
}

Note: CtrlAltF2 is not the only option. You can use CtrlAltF1, CtrlAltF3, CtrlAltF4, CtrlAltF5 and CtrlAltF6 too, which will give you virtual console TTY1, TTY3, TTY4, TTY5 or TTY6 respectively.


No software manager on Ubuntu GNOME Remix fix?

The problem is when you first time run the system update, the software manager uninstalls.

To fix this run

sudo apt-get install gnome-packagekit


Can't boot in Windows and can't run boot-repair after update to ubuntu 14.04

What happens when you try to boot into windows?
Do you have a Ubuntu live cd previous to the 14.04? You can run boot-repair from there.

It seems to me only grub is affected.

Also, there is a program called grub-customizer that allows you to edit manually the grub entries ( haven't tried it in 14.04, only 13.10 ).

You can also download the boot-repair cd and boot from it, but if you have a previous Ubuntu live cd it would be faster to use what you already have.


Firefox is using too much memory and is freezing my machine

From experience, I would recommend installing Chromium Browser and comparing the memory usage. It's hard to say whether the amount of RAM your system is consuming for Firefox is normal or not as it all depends on what your browsers are doing and what sites they are visiting.

Speaking out of personal experience, I've found chromium browser to be less resource intensive than FireFox. Others may have had differing experiences. If I were in your shoes, I'd get FireFox uninstalled and stick with Chromium.


Will Adobe Reader 9.5.3 be offered in partner repository?

adobereader-enu 9.5.5 is available on  ppa:berkon/ppa Repository: See.


colord-sane: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied

I opened lib/systemd/system/colord.service and noticed it had User=colord.

So I tried adding the colord user to the lp group:

sudo usermod -a -G lp colord

And, after a reboot, the error is gone! I hope this helps if you have a similar error.


Upgrade to 14.04: sticky/unresponsive touchpad - requires more pressure?

1.Check whether the kernel has detected the Touchpad or not by executing at a terminal:

cat /proc/bus/input/devices

If Touchpad is detected, then something like the following will appear: Name="SynPS/2 Synaptics TouchPad"

If Touchpad is not detected then the following will appear: Name="ImPS/2 Generic Wheel Mouse"

In this case the bug must be a kernel issue.

2.Check whether xserver has detected the Touchpad correctly by executing at a terminal:

xinput --list

You should see the same name of Touchpad as above.

3.Check whether the synaptics module is correctly loaded in xserver or not via executing at a terminal:

cat /var/log/Xorg.0.log | grep -i synaptics

4.You may also want to try investigating with:

evtest /dev/input/eventX

xev

Look for name in:

xinput --list

For example:

↳ TouchPad id=6 [slave  pointer  (2)]
Then, type:

xinput --list-props 6

where 6 is the id returned in the first command.

Add any information returned to your question.


How to enable Unity 3D on an Nvidia Quadro 1000M

To make sure that your computer can run Unity 3D, type:

/usr/lib/nux/unity_support_test -p

If Unity 3D can be supported, you should have "Yes" responses to each of the items tested.  It seems like you are probably going to get some "No" responses; please post the output here so we can get a better idea of the problems.

This is the output from mine:

Are you running the default drivers, or the Nvidia proprietary drivers?  Open System Settings (under the "Gear Wheel" in the upper-right corner of the screen), and open Additional Drivers.  It might be that there is a proprietary driver available if you enable it there.


How am I expected to scroll fine distances if I can't change the scroll distance or middle-click and drag to scroll?

Do you want to Increase Mouse-key acceleration?

Firstly open a terminal window and type the following to install the xkbset package:

sudo apt-get install xkbset

A simple one line command can then be used to configure the acceleration:

xkbset ma [delay] [interval] [time to max] [max speed] [curve]

For those new to command-line interfaces, the brackets imply that they need to be replaced by a numerical value, tailored to suite a particular use. I have recently used the following for my configuration:

xkbset ma 60 10 10 20 10


Gnome Classic Session boots into a gray screen

For me the following solution worked:

Install the kernel

linux-image-3.15.0-031500rc2-generic_3.15.0-031500rc2.201404201435_amd64.deb

and the headers

linux-headers-3.15.0-031500rc2_3.15.0-031500rc2.201404201435_all.deb
linux-headers-3.15.0-031500rc2-generic_3.15.0-031500rc2.201404201435_amd64.deb

then reboot.

Install nvidia-331, bumblebee and primus

sudo apt-get install nvidia-331 bumblebee bumblebee-nvidia primus

Edit the bumblebee.conf file

sudo gedit /etc/bumblebee/bumblebee.conf

line 22: Driver=nvidia
line 55: KernelDriver=nvidia-331
line 58: LibraryPath=/usr/lib/nvidia-331:/usr/lib32/nvidia-331
line 61: XorgModulePath=/usr/lib/nvidia-331/xorg,/usr/lib/xorg/modules

save and reboot

From here


How to convert an excel file into a calc file from the command line ?

Use the default extension to indicate what you want to convert your file to:

libreoffice --convert-to xlsx filename.ods

to convert a Calc file to Excel (this will create filename.xlsx), or

libreoffice --convert-to ods filename.xlsx

the other way around.

If you want to convert a batch of files in one go, use a *:

libreoffice --convert-to ods *.xlsx

If this doesn't work, either enter the command with sudo, or fix  ownership of your .config directory (see here):

sudo chown -R --reference="$HOME" ~/.config


What package to install only the docker client (without engine) in Focal Fossa 20.04?

Try this command
sudo apt-get install docker-ce-cli This might do what you need


ubuntu tries to force a high resolution and my screen can't handle it

Alright, I fixed it. I booted with 'Failsafe Graphics Mode', then went to 'Startup Applications', and then added a command to set to a lower resolution:

xrandr --output DVI-0 --mode 2048x1152


Solved: I noticed that I was connected to a wifi extender rather than the source wifi router. I connected to the same router as the printer and the printer was found.


I have searched the internet and found out that this happens due to the processor becoming overheated, and the slowing down is a protective measure of the computer to prevent the processor from heating more, which can otherwise damage it.

I have installed lm-sensors and found out that whenever I do any CPU intensive tasks, the processor temperature goes above 90 degrees celsius and then my computer feels slow. When I leave it for some time, it automatically comes to normal condition after the temperature drops below 85 degrees celsius.

lm-sensors also revealed that the issue was actually with the CPU fan which was not spinning (0 RPM), which caused the processor to overheat. I had to replace the CPU fan and after that, the problem was gone. So, anybody having this problem should check the CPU temperature from the BIOS screen or by using lm-sensors to find where the issue is.


If you want the ls command to still accept command-line switches you need to use a shell-script function, something like this should do:

ls() { command ls $@ | more; }

Put it into ~/.bashrc to make it persistent.


Which keys to go up or down in GNOME Terminal

Short and sweet...

the key combination Shift+Page-Up and Shift+Page-Down controls page scrolling in gnome-terminal


Difference in copying files recursively from a drive using rsync

Using the diff tool seems to be a reasonable thing to determine differences between directories, as you noted. That's what I'd be doing.

diff -r source_directory destination_directory


It seems that The Oracle has only released an rpm package for SGD Client as well as the server. Remember in order to install a program manually in a debian-based linux distribution you should have a .deb package first .

So in this case you have to either convert the rpm package to deb one using Alien or to install and use that software in an RedHat-based distribution.

I prefer the latter because it's usually (if not always) easier to install an rpm package on RedHat-based distros like Fedora just because the dependencies of them are easier to install from such a repository (vs ubuntu's ).

But in the case you just want to create a server , you can install a Fedora on VirtualBox or VMWare . There's no need to install another linux distro next to the one you currently have.


There are 3 possible cases:Case1. You can try this command in terminal: sudo apt-get install xserver-xorg-input-synapticsor if it's installed already, reinstall it with sudo apt-get install --reinstall xserver-xorg-input-synaptics .Case2. Maybe you just disabled your touchpad accidentally. Try to enable it with the key combination(every device is not the same but normally Function key(Fn) with F_.（You can find some signs on the f_ keys).Case3. Enable your touchpad with dconf-tools in case you can't find your touchpad hotkeys. Open the terminal and install dconf-tools with this command:sudo apt-get install dconf-tools and launch it. Navigate to this path:

org > gnome > settings-daemon > peripherals > touchpad

Check on touchpad-enabled to enable it. No root permission is needed in this case.


I'm not entirely sure about the reasons, but currently (with the fully updated packages), the issue is gone. It was most likely a bug in one of the packages (perhaps some incompatibility related to the third party drivers). If anyone is still having the problem, just try updating all the packages.


How to install gddrescue on Ubuntu 20.04?

To install GNU ddrescue command-line tool in all currently supported versions of Ubuntu open the terminal and type:
sudo apt update
sudo apt install gddrescue

The gddrescue tool copies data from one file or block device (hard disk, CD-ROM, etc.) to another, trying hard to rescue data in case of read errors.


An iPod is not very ideal for doing an install I suppose.

A better way is grabbing a 2Gb USB memory stick and install Ubuntu on it with the startup disc creator (you'll find it in your Ubuntu-installation, it's a standard program).
After you've done that simply boot (set your bootoptions right) from the memory stick and do the installation.

May I remind you that 12.04 has a full 5 years support ?

Another way of installing on a stick can be done with Unetbootin, but of course you knew that one ..... ;)

More info on THIS website of Ubuntu

Succes !


It is possible but with dedicated software. Windows Explorer can't read ext4 filesystem.
You may try Ext2Fsd.

Features Ext2Fsd supports:

ext2/ext3 volume reading & writing
ext3 journal replay when mounting
various codepage: utf8, cp936, cp950 …
mountpoint automatical assignment
large inode size: 128, 256, …
large file size bigger than 4G
CIFS sharing over network
htree directory indexing
ext4 extent read-only, no  size truncating and expanding support
Fast fsck (uninit_bg) and group block checksum support
64k block-size, support compatible to Linux ext4 and e2fsprogs
OS: 2k, xp, vista, server 2003/2008, win7

From http://www.ext2fsd.com/


Install gnome control center and pulseaudio again to fix this issue:

sudo apt-get install gnome-control-center

If still doesn't fix your problem:

sudo apt-get install ubuntu-desktop

If after installing gnome-control-center you still have noise problem try to install pulseaudio:

sudo apt-get install pulseaudio


If its a USB modem, I assume it will create an ethernet port like eth0? If so, then I would down that port with a command like

sudo ifdown eth0

Then try to remove it after that. But if its a USB modem, and you just pull it out there really isn't any consequences unless it also acts as a storage device.


How to set threshold brightness in Xfce?

The usage for the following script is script-name -d to decrease brightness and script-name -u to increase brightness. You can set a keyboard shortcut for F11 and F12 respectively. I believe the keyboard shortcut will override your current use for those two keys. Remember to make it executable by running the command chmod +x script-name. It is possible that the file that controls your brightness is not /sys/class/backlight/acpi_video0/brightness. It could be something very similar though such as in the directory acpi_video1 instead. It might take a little digging around.

#!/bin/bash

file="/sys/class/backlight/acpi_video0/brightness"

num=$(cat "$file")

case $1 in
    -u)
        ((num++)) ;;
    -d)
        ((num--)) ;;
    *)
        echo "This is not an option." ;;
esac

if [ "$num" = 10 ]; then
    notify-send "You are at max brightness."
    exit 1
fi

if [ "$num" = -1 ]; then
    notify-send "You are at minimum brightness."
    exit 1
fi

echo "$num" > "$file"

You will need to add the following to /etc/rc.local before exit 0.

chown username:username /sys/class/backlight/acpi_video0/brightness

Replace username with the output of the command echo $USER. You need to run the above command or reboot with this line in /etc/rc.local before the above script will work. Adding the line to /etc/rc.local is necessary because eventually on reboot, brightness will change to root ownership again. Then the above script won't be able to write to it. Please let me know if any issues come up.


I've got this problem the other day, too.

Kali installed -> every 2 to 7 minutes a roundabout 10-30 seconds lag
Elive from USB (Persistent) -> everything fine
Elive installed on HDD -> lag
Ubuntu installed -> lag
Ubuntu Live -> everything fine.

There is no clue in top, dmesg, tail -f /var/log/messages, syslog, smartctl --health /dev/sda (SMART), Seatools (Samsung Disk Check tool), ... Even the HW clock is not affected from the lag.

Next I moved the hard disk to another Laptop -> same lag issue
Last I connected it via SATA-USB cable and performed some read/write tests -> same lag issue in dd, without affecting the OS.

Result: Nor the disk is broken (I/O Errors), nor the arm (parking position click). It seems there is an other chip (cache?) issue.

I recommend: If all commands/tools mentioned above are not helping, try a live-system, than try switch the disk.


Activate root account without password in preseed file

Have a look at our project. We embed an SSH public key into the preseed file and disable the root password. You can fork and adjust the scripts to your liking.

The project mentioned above provides all you need to create an unattended installation of a minimal setup of Linux, whereas minimal translates to the most lightweight setup - including an OpenSSH service and Python - which you can derive from the standard installer of a Linux distribution. The idea is, you will do all further deployment of your configurations and services with the help of Ansible or similar tools once you completed the minimal setup.


Nope, if you've disabled remote root access and you can't login with your new account, you need physical access to go through the normal recovery process.

You could try talking somebody through that but otherwise, it's a trip home.


I do not believe it is currently possible to modify currently mounted partitions.

The easiest way to do this is to use the gparted tool on a live cd (or usb) to manage the partitions without mounting them.

Be aware, however, it is much easier to install windows 8 first, then install Ubuntu.  This way Grub will pick up both OS'es without you having to figure out how to manage your MBR.

This also has the added advantage of being able to resize your live active partition in Windows 8 without the need of a live cd.  This is possible using Windows 8's Disk Management tool.


Does Dell Inspiron 15z (5523) touch screen compatible with Ubuntu?

It is compatible and it works during the installation of Ubuntu 13.04 32-bit which includes selecting/activating items on the screen but when I got into the actual operating system the activating items ceased to work but I can still move the cursor around.

Simple restart fixed me being unable to activate objects on the screen. So to answer that is a definite yes on it being compatible :) hope you have a fun time with your laptop.

Specs

Brand: Dell

Model: Inspiron 15z (touch)

Processor: Intel Core I7-3537U Ivybridge  2.0Ghz

RAM: 8GB DDR3

HDD 1: 500GB sata II (Seagate)

HDD 2: 32GB SSD (Samsung)


No Wired or Wireless Connection on a Dell Precision M4300

OP Posted:

I found this page sitting open on my iPad. It solved all my problems!
Download the b43 zip file to a flash drive then drag and drop the file
to your ubuntu desktop. Right-click it and select Extract Here. Open a
terminal and do:
sudo mkdir /lib/firmware/b43
sudo cp Desktop/b43/*  /lib/firmware/b43
sudo rmmod -f b43
sudo rmmod -f ssb
sudo modprobe b43

A word of warning for downloading .zip files on the internet though, it might be more prudent to find the firmware from broadcom itself.


Problems with new clean Ubuntu Server 16.04 LTS

Resolved. 1) I should not use boot flash creators like unetbootin with server verion 16.04LTS. When I try to install by adding iso image to virtual cdrom (ILO sweet feature) I see another result. OS show visible POST when loading modules. After boot I have normal terminals. It also resolve bug with default tty7(now default tty1). On this site I see that other members have the same problem with it. People, try different boot flash creators or don't use them!
But when I try to reboot/shutdown, I still have long time delay. it happens because systemd couldn't normal stop MySQL. Also 'systemctl stop' command not working for MySQL service. So if you KILL this process or uninstall MySQL delay problem will vanished to. So another question will be "Why systemd couldn't stop MySQL daemon"


UBUNTU 15.10 BLACK SCREEN AFTER SUSPEND Acer Aspire

I am using Linux Mint and I had similar problems (not exactly the same). Bit of searching showed that it is related to the graphics card. This youtube video helped. Try to install the drivers from xorg package.

PS - In my case, the laptop woke with blank screen if it had gone to suspension because I had closed the screen (the configuration in Power settings was - closing of the screen makes the laptop go to suspension). I removed that setting. Now, when I press the on/off button, the laptop sleeps/wakes. And it has been working fine as of now. So, in my case, going to suspension by closing the screen was the problem. Not sure whether it is the same for you. (I had Intel graphics card)


Without knowing what distribution you are using, the following does apply at least for Ubuntu 16.04 and 18.04, since Ubuntu started to use systemd from 16.04 onwards.

The old module-loader script /etc/init.d/kmod would allow to put module options into /etc/modules. systemd did replace this script with an own service systemd-modules-load.service. The new method does not allow putting module options into /etc/modules and only accepts the module names each per line.
If you call /etc/init.d/kmod it will not execute the script but rather call the systemd service systemd-modules-load.service. Further it is better to get used to systemd as it is very unlikely that the old sys-v init scripts will ever experience a comeback and will rather be completely replaced.

However, if you want to load the bbswitch module with a set of options you have to do the steps as follows.

Make the module load at boot time.

root@localhost:~# echo "bbswitch" >> /etc/modules

Put your options into a /etc/modprobe.d file which is honored each time  a module is loaded. So this should be even better to define module parameters. So create the file /etc/modprobe.d/bbswitch.conf and put in the line as follows.

root@localhost:~# cat /etc/modprobe.d/bbswitch.conf
options bbswitch load_state=0


Having difficult time using or downloading videos with Youtube-dl

It's possible the executable does not have the correct permissions.

For it to be in /usr/local/bin/youtube-dl, you probably ran it with a sudo make install or similar.  it's in there as root:root which is fine, but it's not going to work right.

Let's set the executable bit: sudo chmod +x /usr/local/bin/youtube-dl

Then try and use youtube-dl.


You need to choose between mpm_worker vs mpm_prefork (or mpm_event). Only one Apache MPM module. Try:

sudo a2dismod mpm_worker
sudo a2enmod mpm_prefork
sudo systemctl restart apache2.service

Take a look at this excellent answer at Serverfault.


encrypted external luks disk, permissions and label

Well, you can use

e2label /dev/mapper/mydisk label-of-your-choice

to set the label of the encrypted filesystem. However, that will only be visible after the encrypted partition is opened. As for the luks partition, I don't think it's possible to set a label on those.

(Note that e2label is applicable to ext2/3/4 fs only, other fs have different utilities.)


Make the priority of /usr/lib/jvm/java-8-oracle/jre/bin/java higher that the rest to automatically enable it as default java binary.

You can do:

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-8-oracle/jre/bin/java 1100

Here I have used priority value 1100, actually any value greater that 1074 would do.


How do I delete a suggested kanji conversion from Mozc?

You can't because the suggestions are provided from other Google Japanese Input Method users.  I'd think Mozc server import updates sometimes. (I am not sure about this, please ask Google about it.)
You can either turn suggestions on/off and increase or decrease number of suggestions.

While you turned off Mozc suggestion, then you can edit somehow the dictionary for purging 取り越し苦労, then you will have to input one by one 取り+越し+苦労


Only 746.52 GB of 3TB drive is seen when accessed via USB enclosure. Works fine internally

After much discussion with Mediasonic, it turns out that there's a firmware problem with the enclosure.

They provided a firmware update tool but it only works on Windows.

http://forum.mediasonic.ca/viewtopic.php?f=13&t=770&p=3281#p3281

I couldn't get the update tool to work so they've sent me a board with the firmware already updated.


How do you change the default shell for ALL USERS to bash?

adduser

The adduser defaults file is /etc/adduser.conf. The default shell defined by the DSHELL variable is /bin/bash by default.

useradd

Most likely you don't need this because useradd is a very low-level utility, and it's hardly ever used directly.

If you use useradd, edit the /etc/default/useradd skeleton file (don't forget to make a backup though).

Set the SHELL variable to /bin/bash instead of /bin/sh.

Now every time you use useradd to add a new user bash is automatically their default shell.

Already existing users

If you want to change the shell of already existing users you have to edit the /etc/passwd file (please make sure to back have a backup of it).

Here is a description of the columns

login name
optional encrypted password
numerical user ID
numerical group ID
user name or comment field
user home directory
optional user command interpreter

In that order separated by colons (:) like this.

root:x:0:0:root:/root:/bin/bash

For more information about that file consult the man page man 5 passwd.


Why is bash denying my shell script permission to open a text file with default text editor?

In bash the variable $EDITOR is not set by default.  However, there is a command that will invoke the default editor.

For this command it is:

editor <filename>

To set the command to your choice:

sudo update-alternatives --config editor

Example:

terrance@terrance-ubuntu:~$ sudo update-alternatives --config editor
There are 3 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path               Priority   Status
------------------------------------------------------------
  0            /bin/nano           40        auto mode
  1            /bin/ed            -100       manual mode
  2            /bin/nano           40        manual mode
* 3            /usr/bin/vim.tiny   10        manual mode

Press <enter> to keep the current choice[*], or type selection number:

After choosing your default editor, then all you have to do to call it in your script is:

editor ~/.notes/"$2".txt

Hope this helps!


On current desktop versions of Ubuntu (using NetworkManager), DNS resolution is provided via a local process called dnsmasq that listens on port 53 of localhost - that's why your DNS server appears to be 127.0.0.1 in this instance.

In turn, dnsmasq gets its information from the upstream server specified as part of the interface definition, either manually or as part of its DHCP provision. If you are using a DHCP-supplied upstream DNS then that will be visible as part of the DNS lease, so it should be visible in your DHCP client's lease file, for example /var/lib/dhcp/dhclient.leases - although it would be more usual to access that information programatically either using nm-tool or nmcli e.g.

$ nmcli -f IP4 dev list
IP4.ADDRESS[1]:                         ip = 192.168.1.16/24, gw = 192.168.1.1
IP4.DNS[1]:                             192.168.1.1

If you have specified an upstream DNS server manually (i.e. are using DHCP only for addressing information), then you would need to look in the connection definition file - for example in /etc/NetworkManager/system-connections/<CON_NAME>


Please try:

sudo rm /etc/modprobe.d/blacklist-bcm43.conf

Reboot and tell us if the wireless is working.


Obviously you can't rename "alex" to "alex" so you need to rename "1001" to "1000" instead. This answer appears to work for you:

Change gid of a specific group

Read the entire Q&A but in summary (if you agree it works for you) use:

find / -gid 1001 ! -type l -exec chgrp 1000 {} \;

You might also want to change the group name for GID 1001 to "alex2". This will make it easier to spot files you may have missed.


Installation of Windows7 in Virtualbox hangs at "Expanding Windows files"

The solution that works is THIS.

Shut down the machine.
On the settings tab, go to storage and then under SATA Controller you’ll see your virtual hard drive (win7.vdi in the image above).
Right click on that and  'Remove attachment'.
Right click on 'Controller: IDE' and “Add Hard disk”, then locate you virtual hard drive you created earlier (as above win7.vdi).

It should look like so:

Start the machine. It will say that a previous installation exists which will be renamed. Carry on.

It may still freeze; but shutting down the machine and starting it will continue the installation (probably some restart procedure that does not work in the VM).


Cannot connect to the internet without first clicking on Network connection

Click through the Task Bar -> Edit Connections -> Click on your connection -> Edit -> select the General tab and check the box marked Automatically connect to this network when it is available and the box marked All users may connect to this network. Click Save then Close.


Reliance 3 ac2739 data card not detected in ubuntu 14.4

Please read solution below  read what was my problem carefully at this below link.
Unable to connect to the internet on a Ubuntu 14.0.4 laptop using zte(reliance cdma) AC2739 USB modem

I Have the Same usb that u have.
it would be better if u provide system logs. Any Way here is the solution that worked for me.
Cause Of Problem: Multiple modes of modern dongles.

Solution:
1.

  gedit /etc/usb_modeswitch.conf

2.add this code to diable usb switching  at the top.

  DisableSwitching=1

3.save it.
4.insert usb again
5.eject usb cdrom by right click eject it or using.

  sudo eject /dev/sr1

6.Wait for 5-10 sec(time to detect it as modem)
7.now go to network manager
8.Reliance network will be listed in network manager connect to it by creating new connection.
You can also installed UI one provided by Reliance if u want let me know.


Wrong orientation on Tablet running ubuntu 18.10

Similar problem with similar hardware under Debian right now. Ubuntu shouldn't be much different.

As a short-term temporary solution, open a terminal and type "xrandr -o right". This will help you started.

For the long term, you need to find a transformation matrix for your orientation sensor and somehow have it recognized by the system. Track to follow is systemd-udev events and custom hwdb. Look for "60-sensor.hwdb" in https://github.com/systemd/systemd and start from there.

That's the solution that makes most sense to me, but I haven't been able to glue all the pieces together yet ;-)


Black Screen after login with multiple montitors connected through docking station

I got a similar problem. It appears that the upgrade changes the sync-rate to 120Hz.  I could fix the problem by restoring the sync-rate to 60Hz for the primary screen in the "Display" setting with no docking station attached. Then re-attach the docking station.


How to add 802.11ac adapter for 5 GHz WiFi (RTL8811AU )

Turns out the last command is not necessary and gives an error message with no meaning.

In Ubuntu 16.04 the driver gets installed into two places:

/sys/bus/usb//drivers/rtl8812au
/sys/module/rtl8812au

And it automatically loads after a reboot.

When the ifconfig command is issued, it can clearly be seen operating as wlx00e0xxxxxxxx - reflecting the HWaddr in the name of the new interface.

Then by clicking on the "up/down" icon at the upper right of the screen the 5 GHz networks are clearly visible in the first part of the WiFi Networks() section.

To recap, the commands necessary are simply these:

sudo apt-get update
sudo apt-get install linux-headers-generic build-essential git
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
(Enter username and password for Github)
cd rtl8812AU_8821AU_linux
make
sudo make install
(REBOOT)

Then voila, it works.

Note that when plugged into a USB 2.0 port, the speed will be limited to 433 Mbps.


Dual booting 16.04 and Window 10 with Raid 0

Make sure your mount point is / on the 1TB and make certain you pick that 1TB drive for your boot loader.  I can not tell you technically why this is happening to you, but I have experienced this before, not with Ubuntu though.  I just went on to use "F12" to enter my boot options every time I booted and selected WINDOWS BOOT MGR when I wanted Windows and LINUXDISTRO when I wanted Linux.

I know this doesn't answer your question, but that was my similar experience and work around.


Ubuntu 14.04 how to use xset for mouse speed / sensitivity?

The command you specified "xset m 20/12 0" works great for my Logitech wireless mouse.
I have a nice Samsung wide-screen 1600x1200 1080p hd monitor.
My speed was, however, too slow after a clean installation of Ubuntu 14.04 64Bit, which is a pain.
I suggest to anybody to add it as startup item if they have wide-screen,
it works wonders.


How to complete remove the programm which is installed from binary

You could inspect the install script to see which artifacts it is creating and remove them manually. The program itself could create some artifacts at runtime (like a hidden directory in your homedir, for example ~/.packet-traces).

From what I see here https://www.packet6.com/how-to-install-packet-tracer-on-ubuntu-linux/ this installation script also pulls some dependencies, so you may need to clear them as well.

In summary - there's some work to do here.


Ubuntu freezes on every single desktop environment

Have you checked your BIOS firmware?

For Rev 2 boards:
http://www.gigabyte.com/products/product-page.aspx?pid=5216#bios

For Rev 1 boards:
http://www.gigabyte.com/products/product-page.aspx?pid=4591#bios

Let me know if that helps. Cheers, Al

edit: I had the rev/url's reversed.


How can I make sure/test that my notebook build-in video/camera on top of the display  isn't recording?

Keep the duck tape.

(Or remove the driver, see lsmod for the name.)


Ubuntu doesn't recommend latest Nvidia drivers for installing CUDA 8

You shouldn't be concerned with the Additional Drivers menu. As long as nvidia-smi works and shows the correct driver version, you should be fine. If you were using Nouveau, nvidia-smi wouldn't work correctly.

If you are still concerned, you can always blacklist Nouveau from your system.


Windows in Gnome Metacity don't have shadows

It seems to be only a problem in the new Ubuntu 15.10. I don't think there's any simple way to fix it. So, I just reverted my computer back to Ubuntu 14.04.


How to make a snappy package for EasyCwmp?

You can either use precompiled binaries or generate them during the build. Both is fine.

Having looked at the source of EasyCwmp just briefly, It looks like you could use the autotools plugin for this. An example of this in action can be viewed here.

You can use build-packages to indicate packages which are required to build, and use stage-packages to list .deb packages whose contents you want to bundle in your snap.

Find more information here: https://developer.ubuntu.com/snappy/build-apps


Use the boot disk, then edit /etc/network/interfaces (just make sure it's not the boot disk's etc/network/interfaces you're trying to edit) and change the IP there. Change it in /etc/hosts as well (if it's there). It will use the etc/network/interfaces IP address when it boots up, regardless of what you used ifconfig to change it to before rebooting.


Network Manager Ubuntu Server 20.04, ethernet device not managed. etc/network/interfaces blank

Ubuntu Server uses Netplan by default for configuration nowadays, /etc/network/interfaces is more or less phased out now.
You should consider using Netplan and configuring it properly, but per your question of "How do I get Network Manager to use my connections?" you have to tell Netplan to use Network Manager for your connections.
To do this, you will need to go into /etc/netplan/ and remove the YAML files that're there, and put a new file in its place named 01-network-manager-all.yaml with this configuration in it:
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

Then you need to reboot your system.  Upon reboot, however, Network Manager will be in charge, and if you have no configurations set for your interfaces yet, there is a chance your server will be unreachable remotely.  Make sure you have some type of emergency access shell or such to your system if it is a remote system and you don't have direct physical access to it.
Once the system is rebooted, you can use Network Manager to configure the server's networking via nm-tray or the nmcli command line tool.  Unfortunately, however, there is no GUI on Server so you can't use the GUI configuration tools.


If you've recently done a fresh install, you may want to try installing current video drivers.

sudo apt-get install nvidia-current

If you continue to experience the same issue, try reinstalling xorg

sudo apt-get remove xserver-xorg
sudo rm ~/.config/monitors.xml //if this still exists
sudo apt-get install xserver-xorg

Then reboot.

I was booting to a black screen despite everything working last night. I went through these steps and my issue is resolved.