Do I have the correct Drivers for my machine?

You might want to update your kernel to start. Might as well make sure you have the correct drivers and use the extras package of the kernel.

Updating your kernel:

sudo apt-get install linux-image-extras-{version number of choice}-generic
sudo apt-get build-dep linux-image-extras-{version number of choice}-generic

NOTE: If your not aware of your options, learn about the TAB auto complete.

I also recommend running this on some machines for your fans:

sudo apt-get install lm-sensors
sudo sensors-detect

If none of this works sometimes the downloaded install image is bad or the install goes wrong but is not caught.

Re-download a new image and reinstall.  Don't connect to the internet for updates until you have rebooted.  I found that this sometimes causes complications.  Also when updating the driver for NVidia under Settings >> Software & Updates >> Additional Drivers use the stable proprietary version.

Good luck!


Can't use Updater due to automatic kernel upgrade

That is because the Hardware Enablement Stack you are running has expired.  You need to update your HWE.  According to https://wiki.ubuntu.com/Kernel/Support the 3.16 kernel has expired for support and will no longer be updated.  However, the 3.13 kernel will continue until 14.04 EOL (Apr 2019).  Since you are running a kernel that is part of the HWE, the below information is the next step you can do.

Ubuntu 14.04 LTS - Trusty Tahr

The 14.04.2 and newer point releases will ship with an updated kernel and X stack by default. If you have installed with older media you can use the following to install the newer HWE kernel derived from 16.04 (Xenial):

Desktop

 sudo apt-get install --install-recommends linux-generic-lts-xenial xserver-xorg-core-lts-xenial xserver-xorg-lts-xenial xserver-xorg-video-all-lts-xenial xserver-xorg-input-all-lts-xenial libwayland-egl1-mesa-lts-xenial

Found at:  https://wiki.ubuntu.com/Kernel/LTSEnablementStack

Hope this helps!


How can I search a Drupal site with the new Unity lens?

Drupal does not have a built-in facility for returning search results as JSON. You could use the contributed services_search module, which exposes a URL on your site such as http://example.com/services/search_node/retrieve.json?keys=whatever.

If you don't want to add the Services module to your site for some reason, you could write a custom module that uses the Drupal function search_data() to retrieve search results and then outputs them as JSON.

(Either way, you'll have to add something to your Drupal site, which makes this not an Ubuntu-specific question, so it should probably be moved to the Drupal SE site.)


Can't install any new packages with apt-get

I've manage to install this packet by specifing what version to install so instead of

sudo apt-get install libmagickwand-dev

I've written

sudo apt-get install libmagickwand-dev=8:6.6.9.7-5ubuntu3.2

and it worked ;)


Why won't `tail -f` follow my syslog when running live?

tail uses inotify which does not work with overlayfs See this bug report and this discussion. @Xen2050 pointed out the ---disable-inotify switch to tail See this workaround

You could use apt-src to install the coreutils source, and recompile tail with -UHAVE_INOTIFY


apt-get totally not working Ubuntu 14.04 LTS

Open software and updates other software tab
Untick any repository you dont think should be their like if wine is still their even after you uninstalled it or you dont need the repo (be careful dont delete just untick ,just in case you need it again for some software again sometime in future) close it ,it will ask for refresh cancel it

sudo apt-get update

sudo apt-get install  -f

sudo apt-get dist-upgrade

you can comment out repositorys in terminal also just edit the file

sudo vim /etc/apt/sources.list

and comment the repos you don't need


How do I install the latest TeX Live 2012?

TeX Live 2012 is available for 12.04 in an official "backports" PPA

TeX Live 2012 is scheduled for inclusion in the next Ubuntu release (Quantal 12.10). Meanwhile, Ubuntu's TeX Live maintainer, Jeremy Bicha, has created an official "backports" PPA to allow 12.04 users to easily install/upgrade to the new version.

To install/upgrade to TeX Live 2012:

Open a terminal with Ctrl+Alt+T
Add the texlive-backports PPA by typing the below (enter your password when prompted):

sudo add-apt-repository ppa:texlive-backports/ppa

Then type:

sudo apt-get update

Installation:

If you are installing TeX Live for the first time, type:

sudo apt-get install texlive

If you already have TeX Live installed and are upgrading, type:

sudo apt-get upgrade

Warning: this will also upgrade all other packages on your Ubuntu system for which upgrades are available. If you do not wish to do this, please use the previous sudo apt-get install texlive instead.


How to add email address from email to existing contact

Right-click on the Email address in the mail header (e.g. in the preview pane), select "Copy EMail address". Then open contacts, double-click the contact you want to add the address to, and paste it. Not the easiest or most intuitive way, but the only one I know to work (just verified: still does on 12.04 ;).


apt-get update error: no hash entry and Package: header?

I guess you are just unlucky, the ppl behind that repo forgot to renew they domain registration!

(I'm guessing that 'repository.akirad.net' is the correct address and you didn't made any mistakes there, but 'akirad.net' is closed!)


how do i know how much data has been downloaded by update-manager?

The size of the DATA is is shown in Update Manager in Ubuntu 12.04 64-bit , on the Check & Install Updates Button row as

From Update Manager image as

Or for more details try through Terminal doing

sudo apt-get update && sudo apt-get upgrade

Which  avails you with DATA info  which needs to be downloaded and the Extra space it will take after installing them as.

The following packages will be upgraded:
  boot-repair boot-sav gir1.2-gudev-1.0 gir1.2-nautilus-3.0 initscripts libgudev-1.0-0 libldap-2.4-2 libldap2-dev libnautilus-extension1a libudev0 libvlc5
  libvlccore5 nautilus nautilus-data opera python-quickly-common python-quickly-core quickly quickly-ubuntu-template resolvconf sysv-rc sysvinit-utils udev vlc-data
24 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 31.8 MB of archives.
After this operation, 929 kB of additional disk space will be used.
Do you want to continue [Y/n]?

To see the progress of data being downloaded , pressy to continue updating through Terminal , you will get as


Purple screen after booting into single user mode.

have you tried to go into recovery mode yet ?

Switch on your computer.
Wait until the BIOS has finished loading, or has almost finished. (During this time you will probably see a logo of your computer manufacturer.)
Quickly press and hold Shift, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.)

How 2 Recover


Video Card Recomendation for 4/quad monitors

I can recommend my own configuration, identical to your request : Ubuntu 14.04 with 4 (up to 6) 1920*1080 monitors.

This is possible with a ATI FirePro W600. According to your request, this worked out of the box with open-source driver.

I still have Unity and start looking at other window manager, like XMonad, but it's on a fine tweak part.

Like you I spent time to look for acceptable configurations, and mentionned above is the easiest and most reliable I found. Working for 2 years+ like a charm, with good stability (8/10h a day).

Hope it helps,


Ubuntu 20.04 and 21.04: second cursor stuck on the screen 150% fractional scaling on a 1440p monitor after login (XOrg)

Turned out that GDM was working on Wayland and that was causing troubles with XOrg sessions.
All I needed to do was

sudo nano /etc/gdm3/custom.conf
comment out WaylandEnable=false (i.e. make it #WaylandEnable=false)
sudo service gdm restart

after that, fractional scaling produces no second stuck cursor on the screen.


Just do this:

sudo ln -s /pathforsublimetext2install/sublime_text /usr/bin/sublime

Also, I recommend that you install sublime text 2 through a PPA, because it will integrate better with Unity/Gnome.

To install this PPA:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text


What simple offline GUI database should I use for this application?

Libre-office Base sounds like what your after, runs on Windows and Linux, has a GUI, just an alternate to MS Access really.

Edit:

Heres me clicking around adding data straight into the table.


Install gnome-screenshot if it's not installed already by running

sudo apt-get install gnome-screenshot

Launch gnome-screenshot in an interactive mode by

gnome-screenshot --interactive

A pop-up window should appear.
Select "grab the whole screen" and "grab after a delay of 5 seconds" and then "Take screenshot".
Press and hold super so that the keyboard shortcuts list appears. Wait till the screenshot is taken.
Set the captured screenshot (crop first if needed using gThumb or GIMP) as your background image.


X graphical environment broken after kernel update on 18.04

I installed it via repository ppa:graphics-drivers if I remember correctly.

However I tried a manual upgrade to nvidia drivers version 418 and this solved my issue.

FYI: I notice now in my Software & Updates screen that ppa.launchpad.net/graphics-driver/... is present but not checked.
Is this the reason why an automatic upgrade of the package is not suggested?


How to change wireless password from text mode?

The wireless network configuration files are saved in /etc/NetworkManager/system-connections/ directory. The passwords are kept in these configuration files.

cd /etc/NetworkManager/system-connections/
ls
sudo nano network_name

Or, simple:

sudo nano $(locate network_name)


static ip xubuntu 13.04 not working at all (wlan0)

It should be dns-nameservers, not DNS. Also, since this is a wireless interface, you must declare which network to connect to and supply the WPA password. I suggest:

auto lo wlan0
iface lo inet loopback
iface wlan0 inet static
address xxx.xxx.xxx.xxx  # I use the address I want
netmask xxx.xxx.xxx.xxx  # 255.255.255.0
gateway xxx.xxx.xxx.xxx  # 192.168.2.1 my router ip
dns-nameservers xxx.xxx.xxx.xxx      # 8.8.8.8 google
wpa-ssid your_router
wpa-psk your_secret_key

Now get the system to re-read the file and use the changes:

sudo ifdown wlan0 && sudo ifup wlan0

Finally, may I assume Network Manager is not running here?


Sounds like a cheap shot at social engineering.  A lot of fake virus alerts are simply displayed by visiting web pages by popups -- they can put anything they like in the popup, but of course, once you click to download the "remedy", the real trouble starts.


Do I install 32 or 64 bit windows program on wine if I have Ubuntu 17.10 64-bit?

WINE installs both architectures. So you can make 32-bit and 64-Bit prefixes. However, 32-bit is better supported by WINE.

Thus in most cases, the 32-bit version of the windows programs have a better success rate than the 64-bit versions. That said, it does not mean that 64-bit versions won't work.


Forward ethernet internet connection to computer via second network card

I think that in your /etc/network/interfaces file, the interface eth0 is missing. It should be:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
#The interface connected to internet
auto eth0
iface eth0 inet dhcp
#The interface connected to machine B
auto eth1
iface eth1 inet static
  address 192.168.0.1
  netmask 255.255.255.0

You must restart networking service after making changes on that file:

sudo systemctl restart networking

Besides that, you should known how your system designates your network interfaces. It depends on the version of Ubuntu you are running. In 14.04 the interfaces are designated as eth0, eth1, wlan0, wlan1... and on 16.04 enp5s0, wlp1s0... You can figure out the name of your interfaces with ip addr command.

Finally, you should activate ip foward by uncommenting this line:

#net.ipv4.ip_forward=1

on the /etc/sysctl.conf file.

For applying the new configuration:

sudo sysctl -p

And create iptables rules for activating nat, like the article of Help Ubuntu that you linked, shows.


Try using one of the software package managers Synaptic or Ubuntu Software Center. Open, for example, Ubuntu Software Manager, search for Calligra and press the remove button.


if its a dual boot
Go to 'file system' and then you will see windows files in the host directory.
If you need to remove the partition with windows
you have to boot with live cd and use Gparted.


I installed xen-hypervisor and it breaks bootup

Setting

XEN_OVERRIDE_GRUB_DEFAULT=0

in

/etc/default/grub.d/xen.cfg

Does not remove xen options from grub but it stops them always being the default which is what seems to break boot-up.


Any way of changing the partition size of a Ubuntu install from inside the install?

The smart answer is to boot from the Ubuntu Live CD or USB, which has gparted on it, from which you can easily resize the partitions on your hard drive without any of them needing to be mounted.  It has a nice GUI and it makes it easy.  No brainer.  If you don't want a broken system, do that.  (And make sure your data's backed up always!)

If you really want to know if it's possible to resize a partition while actually running Ubuntu from that partition, then the answer is that it may be, but I definitely wouldn't recommend it unless you love taking risks.

The ext3 file system allows for live resizing - enlarging a partition while it's active and mounted.  This would not allow you to shift the partition left or right, nor to shrink it, but to enlarge a partition.
If you use LVM (an alternative to partitioning, sort of) then you can move, resize, etc partitions while live without any problems.  This is complex.
From the root recovery prompt, you may be able to resize or move those partitions other than the root partition.  This is very advanced.


Ubuntu touch: webcams in firefox? Aquaris M10

Have you tried the default browset? I also have a M10 and I have had nothing but trouble with the Firefox browser, so I have given up on it till there is an update or two. The default browser for me works lile a dream and I can use it with webcams, mainly Google Hang9uts via the browser only. Give it a go and see how you get on. It doea not solve your Firefox issue but will hopefully give you anothet option for now.


KDE Redirect application links to wrong address

This is most likely the site intercepting your deep link request, probably because its login cookie isn't present.  If Goodreads doesn't offer a "stay logged in" option, what you're attempting may never work (because the cookie isn't persistent, so can only be kept for as long as the browser remains open following a login).  If it does, you should be able to log in with the "stay logged in" option marked, and then this deep link will work until the cookie expires (many "forever" login cookies actually expire after something like thirty days).


How to save Touchpad Pointer speed settings on Ubuntu 13.04?

Go to system setting > mouse and touchpad > click on touchpad tab

and there you are to customize pointer speed!

And amazingly you don't have to click save, it will auto save the value. Isn't it more humanly )

Edit:
Additionally you can install gpointing-device-settings through software center to handle synclient.

gpointing-device-settings


Ubuntu 16.04 driver for Broadcom Limited BCM4350 802.11ac Wireless Network Adapter [14e4:43a3] (rev 08)

I'm not entirely sure what solved the issue, but purging bcwl-kernel-source and rebooting seemed to do the trick.


what is the difference between gdb and gdb-peda?

PEDA means “Python1 Exploit Development Assistance for GDB” according to its developer. It is an extension for the standard GDB (which can be installed using APT on Ubuntu). So even for using PEDA, you have to install GDB first.
PEDA’s GitHub page offers a list of key features. If anything there is interesting for you, you can try installing it. If not, you can most likely stick with the standard GDB.

1 Python is the language in which PEDA is implemented. This does not say anything regarding usability for a particular programming language.


On the Writer's menu select Tools -> Customize -> Keyboard. Under "Shortcut keys" select "ctrl+Alt+Down". Under Functions/Category select "Edit" and under Functions/Function select "Move Down". Finally, select Writer on the right (if not already selected) and press "Modify". Repeat the same steps for "Move Down".


Cannot run pdo_sqlite on Ubuntu 20.04 with PHP 7.4

I had the same issue after upgrading to Ubuntu 20.04, too, and solved it by:

Commenting back the two extensions in php.ini
Installing php-sqlite3

I think uncommenting the extension lines in php.ini directly results in the extensions loading twice causing this issue.


Ubuntu 15.04 Kernel panic - Samsung Series 9

FreeBSD is not Linux. If the laptop is crashing under both Linux and FreeBSD, then the problem is almost certainly not a software bug, since the code shared between the two kernels is negligible. Crashes under two OSes suggests that you've got bad hardware.

This hypothesis is further strengthened by a Web search on "machine check exception," which turns up many references, such as this Wikipedia article, which states:

  A Machine Check Exception (MCE) is a type of computer hardware error that occurs when a computer's central processing unit detects a hardware problem.

If this is a new computer, I suggest you return it to the store for a refund and describe the problem. If it's an old computer, it might be time to replace it; or perhaps you can take it to a shop for repairs.


I have two Linux distros dual-booted. I want to install Ubuntu and overwrite/delete Zorin OS

As you are speaking of a laptop, I think that both of the distributions are installed on the same HDD or SSD. In this case, you have to be very careful not to delete the whole disk. But you will be asked, if the disk should be deleted and overwritten (caution: NO!) or which partition should be overwritten, so that you can choose the partition with Zorin on it. Anyway, don’t forget to backup your home directory completely (preferably onto an external hard disk drive or flash drive).


How do I install the drivers for my HCF Conexant modem?

How to detect the modem and install the driver using the installer

Download the installation program (cnxtinstall.run)
Open a terminal window. (If you don't know how to do this, press ALT-F2 and in the dialog box that will appear, try entering one of the following commands: xterm or konsole or gnome-terminal)
Use the cd command to access the directory where the cnxtinstall.run file was downloaded.
Finally, enter the sh cnxtinstall.run command to run the installer.

source


Check in the motherboard BIOS for an option similar to "map around memory hole." Your motherboard's chipset may not support this option.

Older, especially laptop, chipsets (for example, the Intel 945p chipset) did not support true 64 bit memory addressing and had a ceiling of 4GB even in 64 bit mode. If that is the case with your system then this is a hardware limitation that can't be addressed without replacing the chipset (motherboard.)


Network icon on unity panel gone in Ubuntu 15.10

Update

Problem seems to be solved due to updates or something
(i woke up this morning ans all the icons are back)


Is there a reason you are using wifi-radar instead of the Ubuntu default
network-manager-gnome  package?

Wifi-radar was last built for Karmic Koala and may have drifted out of "works well with others" territory. I'm guessing that wifi-radar isn't playing nice with the DHCP or WPA mechanisms.


I have updated GCC, but g++ still seems to be using the stl files from the old GCC

OK, I've answered my question by combining these two answers to related quetions.
answer 1: update g++ to g++4.8

answer 2: create new Symlinking


how to get graphics card memory info? windows and linux shows different value

1- install sysinfo :

sudo apt-get install sysinfo

and then run it -->

sysinfo

2- Alternatively use :

sudo lshw -businfo | grep -i display

find your exact graphic card model and check the manufacturer website

3- there are other command as well like :

sudo apt-get install hardinfo

Hope that works ;)


I've found that too large a scaling factor can cause some tabs in Chrome or some label fields look "funny". On the other hand if I make the fonts too big they can seem ostentatious / overbearing. I just play with all settings until I find what's most comfortable. If you are afraid of playing around and making bad changes, write down the settings before you change them such that if you get cold feet you can rekey the old settings in. At the end of the day there are no objective answers because computers are subjective creatures. Have fun!

I just installed unity-tweak-tool last night and these are my settings for now (17" laptop screen 1920x1080HD 3-4 feet away and 55" TV 1920x1080HD 10 feet away):


How do I upgrade Ubuntu on a partition using an iso image?

This is only if you installed Ubuntu after Windows.

When you delete a partition, it becomes an unpartitioned (unformatted) space. If you would want to create a partition from it, you'd right click that unpartitioned space and hit "Format". So, in your case, in GParted, you don't have to format them into NTFS, just delete all the ext and swap partitions and, if all of them were arranged one after the other, you'd have one huge "unpartitioned space" in the end. When you're installing Ubuntu, you'd tell it to use all empty space (I can't remember the name of the actual option), it'll detect the empty space, format it into ext and swap partitions, and install itself there.


The program /usr/bin/python3.2 is not in the package python3.2 but in python3.2-minimal. As python3.2 depends on that it has been installed automatically.

To remove all of Python 3.2 you need to remove python3.2-minimal.


Well  ,
I had script for resetting the gnome panel .
I am not  sure if this script will work on notebook version , i used it in desktop version ,and its very helpful .

save this script to PanelRestore.sh  to the desktop for example and chmod +x PanelRestore.sh  and then run it by terminal  ./PanelRestore.sh , a new window will pop up , just click restore default setting  and you would be good to go

#!/bin/sh
#
# GNOME Panel Save / Restore
# Writen by PhrankDaChicken
#
# http://ubuntu.online02.com
#
#
# Updated to add restore defaults by jimjimovich
# http://www.starryhope.com
#
#

DIR=$(pwd)
TITLE="PanelRestore"

Main () {
    CHOICE=$(zenity --list --title "$TITLE" --hide-column 1 --text "What do you want to do?" --column "" --column "" \
"0" "Save Panel Settings" \
"1" "Restore Panel Settings" \
"2" "Restore Default Panel Settings")
    if [ $CHOICE = 0 ]; then
        Panel_Save
    fi
    if [ $CHOICE = 1 ]; then
        Panel_Restore
    fi
    if [ $CHOICE = 2 ]; then
        Panel_Defaults
    fi
}

Panel_Restore () {
    FILE=$(zenity --title "$TITLE: Open File" --file-selection --file-filter "*.xml" )
    if [ -n "$FILE" ]; then
        gconftool-2 --load "$FILE"
        killall gnome-panel
    fi
    Main
}

Panel_Save () {
    FILE=$(zenity --title "$TITLE: Save File" --file-selection --save --confirm-overwrite --filename "Gnome_Panel.xml" --file-filter "*.xml" )
    if [ -n "$FILE" ]; then
        EXT=$(echo "$FILE" | grep "xml")
        if [ "$EXT" = "" ]; then
            FILE="$FILE.xml"
        fi
        gconftool-2 --dump /apps/panel > $FILE
        zenity --info --title "$TITLE: File Saved" --text "File saved as: \n $FILE"
    fi
    Main
}

Panel_Defaults () {
    zenity --question --text="Are you sure you want to restore the default top and bottom panels?"
    gconftool-2 --recursive-unset /apps/panel
    rm -rf ~/.gconf/apps/panel
    pkill gnome-panel
    exit
}

Main

# END OF Script


20.04 Key lagging issue with gsd-media-keys log?

I am leaving an answer by my self, to share my experience.
For summary, above logs are not related to key lagging issue.
After I reinstall(apt purge & ubuntu-drivers autoinstall) nvidia drivers,
there's no more key lagging issue.
(And above logs are still remaining.. So it's not related to key lagging issue)


Are there statistics or time series of open bugs in Ubuntu?

I think you are wrong about the stats published in Ubuntu Weekly Newsletter. The numbers between the (brackets) is the actual number of current bugs.

The latest UWN stats:

  Bug Stats
  Open (94461) -60 over last week
  Critical (71) +4 over last week
  Unconfirmed (48716) +136 over last week

UWN #36, April 8-14, 2007

  Bug Stats
  Open (27504) +584 # over last week
  Critical (17) -7 # over last week
  Unconfirmed (13370) +404 # over last week
  Unassigned (20041) +508 # over last week
  All bugs ever reported (93592) +2010 # over last week


YouTube not working on 32 Bit Ubuntu 14.04

The 32-bit of these browsers and the back-porting to 14.04 is pretty limited. My guess is that at some point some sunset dates on various technologies like what types of ciphers used to encrypt the HTTPS connection have passed and now those ciphers or certificate algorithms are no longer allowed by the server.

If you open the Inspector and go to Console (in both Firefox or Chrome it's almost the same) and try to load the page you should see an error or warning in the console explaining what support is no longer present.

It's a real pain too because 32-bit systems are left mostly just needing to be updated to 64-bit systems, even if they don't use more than 4GB of RAM etc. It's mostly because developers don't want to support both 32-bit and 64-bit and package managers also don't want to.

EDIT If you think this answer is wrong please explain why. I have multiple 32-bit systems I very much want the browser supported, but they aren't.


Lubuntu's asking password for shutting down

This seems to be a bug in Lubuntu 13.04, I have been having the same since I upgraded. For me it happens occasionally, reporting that there are "other user(s) logged in on the system". Is that the same message that you are getting?

I suspect there's a link with a find cron job that is ran by user 'nobody', about daily it seems. Given that it started with 13.04, it might be search indexing for PCManFM's new search feature. Unfortunately, this would make it a genuine Lubuntu bug rather than an easily fixable problem - which means it should be reported in the Lubuntu bugtracker.

(Posted as answer because I couldn't find how to comment on the question)


try upgrading using this sudo do-release-upgrade


Can't able to open this file "admin://etc/sysctl.conf"? It says, "Unable to handle admin location"

You need to add admin:// to the beginning of the full path to your preferred file to use the GVfs admin backend.

Since you're trying to open the /etc/sysctl.conf file, you need to run

gedit admin:///etc/sysctl.conf


Please open a terminal and do:

sudo su
echo rt2800pci >> /etc/modules
exit

You should be all set but feel free to post back if you need additional guidance.


Multi-touch mouse gestures in Ubuntu 13.10?

This was broken in 13.04 and according to https://bugs.launchpad.net/bugs/1172172 will not be fixed.


On Ubuntu (and most distros) Apache already runs as a separate user. Various distros use various users, but Ubuntu uses www-data.

To manage your web server without root see How to avoid using sudo when working in /var/www?

Although the information on that site is helpful, you should always start with the Ubuntu information first wherever possible (IMHO)

https://help.ubuntu.com/lts/serverguide/httpd.html


html link to pictures that are not published in u1

No, there is not. For files to be publicly viewable, they must be published.


Very rough .. no error checking etc, but I'll leave that as a learning exercise :)

Create this in /home/yourUsername and call it downloader.sh (as an example) and make it executable (chmod +x /home/yourUsername/downloader.sh)

#!/bin/bash
cd /tmp
wget http://myexternalwebsite.com/downloads/filename
cp /tmp/filename /etc/myfolder/filename

To download the file at midnight every 24 hours, add to your crontab (crontab -e)

0 0 * * * /home/yourUsername/downloader.sh


Go to your system settings --> network, select network proxy and then manual.
Here you can enter your proxy settings, and save them.

After that open up a terminal, open your bashrc file in ~/.bashrc and add the following line;

export {http,https,ftp}_proxy=http://**YOURUSERNAME**:**YOURPASSWORD**@**HOST**:**PORT**/


Alternative to notepad++ analyse plugin for Ubuntu

Notepad++ (notepad-plus-plus) is a snap package in the default repositories of all currently supported versions of Ubuntu. To install Notepad++ open the terminal and type:
sudo snap install notepad-plus-plus

To add Notepad++ navigation to other drives besides the default drive:
sudo snap connect notepad-plus-plus:removable-media

Even though the window title says [Administrator] this file is opened with normal user permissions in Notepad++.
To install AnalysePlugin in Notepad++ select Plugins → Plugins Admin… -> Available tab → check AnalysePlugin -> click  Install  button in the top right corner as shown in the below screenshot.

After restarting Notepad++ the options for AnalysePlugin will be shown in Plugins → AnalysePlugin.


Can the screen be rotated on the Nexus 7?

The screen can be rotated via software by running /usr/bin/xrotate. There are currently some issues with this method, but it is being worked on. There are future plans to tie this to the accelerometer, but this is not working quite yet.


As a suggestion why don't you look at the documentation about your adapter and see what the supported output is, and then load this applet and see if that resolution is supported?

I for one got stuck on the driver support when I first fooled with Ubuntu, the native driver under analysis probably runs smoother, this will verify what resolutions are supported

https://apps.ubuntu.com/cat/applications/natty/resapplet/

Do a google search:
NVIDIA Optimus Hints At Better Support To Linux After Linus’ Middle Finger


Have you ruled out the possibility that you didn't back them up properly in the first place? In other words, the restore operation worked perfectly, but nothing was saved, so no messages were restored.


How can I completely prevent core dumps?

Setting fs.suid_dumpable = 0 will be overridden by apport everytime apport starts.

Similar to how ufw interferes with my efforts to follow hardening instructions apport also interferes here. This is how I found out:

$ grep -R fs.suid_dumpable /etc/ 2>/dev/null
/etc/rc5.d/K01apport:   echo 2 > /proc/sys/fs/suid_dumpable
…
/etc/rc4.d/K01apport:   echo 0 > /proc/sys/fs/suid_dumpable
/etc/lynis/default.prf:config-data=sysctl;fs.suid_dumpable;0;1;Restrict core dumps;sysctl -a;url:https;//www.kernel.org/doc/Documentation/sysctl/fs.txt;category:security;
/etc/init.d/apport: echo 2 > /proc/sys/fs/suid_dumpable
/etc/init.d/apport: echo 0 > /proc/sys/fs/suid_dumpable

So to prevent core dumps and keep fs.suid_dumpable at 0 you have to disable apport:

sudo systemctl disable apport.service


How to restart a process in Ubuntu 17.04?

Ubuntu 17.04 uses systemd for managing processes that previously were managed in Ubuntu by Upstart.

Specifically, the systemd systemctl command is now used to start/stop/restart systemd services (e.g., sudo systemctl start dms3client.service). The systemctl command does a bunch more too.

Here's a great explanation of how to use systemctl right here on askbuntu.com: https://askubuntu.com/a/903360/32664.


Can't connect to Wifi from recovery mode in Ubuntu

These links helped me with a similar issue:
https://ubuntuforums.org/showthread.php?t=2164398

https://linoxide.com/linux-how-to/connect-wifi-terminal-ubuntu-16-04/

"iwconfig" for WEP.
"key s:password" is used if your password is in ASCII.
If your password is in HEX, you use "key password".

Also, "wpasupplicant" for WPA.

Hope you are well!


How to make installation packages "trusted"?

Skype is not open-source software, and software like that will always stay untrusted. If community can't see the code, help make it better, depending on few developers, it should stay untrusted!

If you still wish to use it, open Synaptic package manager, /Settings/Repositories
and in first tab you have software 'downloadable from the internet', check Software restricted by copyright and legal issues and Proprietary drivers for devices, socond one you might not need for skype.


It looks like you installed Ubuntu inside Windows with Wubi. If that is the case you can use  this solution which worked for me too. The easiest way to fix Ubuntu is to:

Keep your Windows untouched, as it is, no need to make any change in Windows. As for your Ubuntu, you have to move first both the root.disk and the swap.disk files which are located in folder ubuntu/disks where you previously installed Ubuntu with Wubi. Move root.disk and the swap.disk into some temporary directory, and after that uninstall ubuntu from Control Panel like you do when you have to uninstall any other windows software.

Next step is to reinstall the same release of Ubuntu with Wubi again (you can allocate less disk space than before, it does not matter because you'll be replacing the new root.disk with the old root.disk anyway). Use the same username and the same password as before. Wait until Wubi installer asks you whether you want to 'Reboot now' or 'Reboot Later', and choose to reboot later, do not reboot the computer.

Next, before rebooting to complete the installation of Ubuntu, copy back the old root.disk and swap.disk files that you saved in a temporary folder and override the new ones present in folder ubuntu/disks where your new ubuntu installation is. After that you can reboot, and Ubuntu should boot as before preserving all your system settings and packages.

After you login into Ubuntu, open a terminal and run this command in the terminal:

 sudo update-grub

And I think that is all. The only thing you should not do for this to work is to install a different version of Ubuntu. Nothing will work if you do that.


What are the risks of NOT using a firewall (home computer)?

It depends. Most people use a router between their desktop and the internet and by default there are no sigificant open ports, so in the vast majority of user cases a firewall adds very litte, if anything.

It can help if you inadvertantly install a server, such as VNC or SSH.

A better question is what do you want to use a firewall for ?

See:

https://wiki.ubuntu.com/SecurityTeam/FAQ#UFW

https://wiki.ubuntu.com/SecurityTeam/Policies#No_Open_Ports

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

If you want a graphical tool for your firewall, use gufw


Local Ubuntu desktop cannot login after opened Xrdp session

I did not know that Xrdp has two config file (xrdp.ini & sesman.ini).

So, I created an issue in Xrdp repository here
.
The developer told me that the configuration is in sesman.ini. The variable named KillDisconnected will do the job. but as I read it, it cannot have less than a value of 60s.


The suggestion of oldfred improved my boot time drastically: I had to change the UUID in /etc/fstab so it matched the one in blkid


I suggest that you create the folder /var/guest-data for the purpose, and chmod it 0777. That particular folder is prepared in the guest session feature for sharing files with other users.

The folder is mentioned in the tutorial CustomizeGuestSession, where you also can find other guest session related tips and tricks.


How to uninstall banshee scope in 13.10?

The Banshee scope is provided by the unity-lens-music package (along with the Rhythmbox scope).

There is no option to uninstall it separate from the Rhythmbox scope, but it should automatically be disabled if Banshee is not installed on the system.


No.
Both of those projects require fresh install of the specified Ubuntu version and both use nginx.


ExpressVPN - can not use internet while disabled (disconnected)

Check out How to restore/recreate etc/resolv.conf files

Specifically:
sudo apt-get remove --purge resolvconf && sudo apt-get install resolvconf

That fixed it for me!


bash: install_path: No such file or directory

The .bashrc file is sourced from .profile file whenever you open a new Terminal (non-login shell.)
The problem in your .bashrc file is shown as an error on the terminal. There are erraneous lines in your .bashrc. You need to remove <install_path> from it.
What you can do is:

1) Put this line at top:
    install_path=/opt
Note: You need to put a path suitable to you. /opt is just for example.

2) Remove any reference to <install_path> with $install_path, e.g.,
export LD_LIBRARY_PATH=$install_path/local/lib:/home/enova6/catkin_ws/devel/lib:/opt/ros/hydro/lib


Installing Ubuntu 14.04 on Dell Inspiron 5548

You can install Ubuntu "beside" your Windows installation. There will be an option to install this way. But before you install Ubuntu make sure that Windows is properly shut down. By default Windows 8 is hibernated instead.

You can use open source or proprietary video drivers. Proprietary drivers can be installed from System Settings -> Software & Updates -> Additional Drivers.

You do not need to look for the drivers elsewhere.


Yes, things change and systemd has taken control over many parts of linux. If you wnat a static ip for your device create a file with sudo:
/etc/systemd/network/myconnection.network

[Match]
Name=enp0s25 #check your interfaces for this name

[Network]
DNS=10.10.0.3 #DNS, it may be like the gateway
Address=10.10.0.10/24 #the ip address of your device
Gateway=10.10.0.1  #your router

I've commented the entries (I assumed that your local gateway is 10.10.0.1 - you must use yours of course)
That done the systemd service has to be enabled:
systemctl enable systemd-networkd
systemctl start systemd-networkd

Now you are set. The "enabled" keyword ensures, that the service will be started after a reboot, the "start" does it (once) immediately
You can check if everthing works with networkctl status enp0s25whereas your netwrok device may differ. The name of your device can be checked with:
ip a


prevent ALT-Tab from bringing all windows to the front

This is how the default Alt+Tab switcher, which is an application switcher works, and how Gnome developers currently intended it to work. As usual, it does not fit all use cases equally well. This is great for multi-window applications such as Gimp, or to bring a few open related terminal windows to the front, but less ideal if you want to switch between, say, your browser and a specific window of your file manager to upload a file by drag and drop.
There are a few options:

Develop the habit of using Alt+tab followed by Key_above_tab (` on querty keyboards) while you keep holding Alt to select only the window you want. (Drawback: you have to do this each time switching back between two window, which is why Ubuntu developpers proposed at one time to only switch the last window on a fast Alt+Tab)
Make more intensive use of work spaces, where these windows of a same applications that do not belong directly to the current job at hand are moved to other work spaces.  Alternatively, hide the windows you momentarily do not need (Super+h). (Drawbacks: may not be suit use cases where all windows actually belong to the same activity, but are not needed all at once; you need to "prepare", i.e think of/bother with shuffling different windows around on different work spaces or hide them.)
Change the key binding of Alt+Tab to the Window switcher rather than the Application switcher. This gives you a more conventional switcher, allowing to switching between windows rather than between applications. You could then still have Super+Tab bound to the Application switcher. (Drawback: too many window switcher to choose from, asking mental energy to decide how you are going to make your next switch).
There are some extensions that change the Alt+Tab behavior so only one window of the target application is raised, e.g. Alt Tab lift first window by cork (Gnome Shell 3.12 to 3.28) and AltTab mod by Leleat (Gnome Shell 3.36 and up)


Scale plugin keeps forgetting hot corner settings on restart

Main bug reports are at https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/986208 and https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/858845.
For 12.04
Semi-Permanent solution copied here:

Run gconf-editor from Terminal or Alt+F2
Navigate to apps > compiz-1 > general > screen0 > options
Edit the key: active_plugins

Move "Scale" to the bottom of the list.
Move "Expo" to bottom right above "Scale" and underneath Unityshell.

I say "semi-permanent" because some software updates (Unity) may cause the plug-in order to get rearranged, so you may need to repeat these steps 2 or 3 times per month.
For 12.10 and 13.04:
The above fix stopped working with the upgrade to 12.10 and continues on with 13.04. There are proposed solutions for 12.10 & 13.04 at the bug report link above, but so far nothing solid.
Semi-Permanent solution for 12.10:

Run dconf-editor from Terminal or Alt+F2
Navigate to /org/compiz/profiles/unity/plugins/core
Edit the key: active-plugins

Move 'scale' and 'expo' to last in the list.

Note that system updates may revert this fix and you may have to use dconf to fix it again.
Please continue to contribute to the bug report to get the problem fixed in 12.04 LTS, 12.10 and beyond.


mysql - the MySQL command-line tool is a simple SQL shell with input line editing capabilities. It supports interactive and noninteractive use.

mysqldump - is a command-line client program, it is used to dump local or remote MySQL database or collection of databases for backup into a single flat file.

They can be found in several packages. For example in Ubuntu 16.04 LTS both are part of the package mysql-client:

sudo apt install mysql-client

mysql-client is metapackage depending on the latest version. While mysql-client-5.x consists of binaries of exact version 5.x.

Please note that mysql and mysqld are different 'things'!

mysqld, also known as MySQL Server - is the main program that does most of the work in a MySQL installation.

Further Reading:

Ubuntu Documentation: MySQL
Ubuntu Manuals: MySQL
Ubuntu Manuals: MySQLDump
Ubuntu Manuals: MySQLHotCopy
Ubuntu Manuals: AutoMySQLBackup
Ubuntu Manuals: MySQL server


wrong ELF class: ELFCLASS32 error in using 32 bit .so in 64 bit machine using dlopen

You can't link an executable or shared library against a shared libraries compiled for a different architecture and/or platform. You either

need to get your hands on a version of the library built for the same platform and architecture either from whoever provided it to you or by compiling it from source, or
build the linking object for the same platform and architecture as the shared library in question. It's possible to run i386 executables on amd64 systems so that would work.


How can I get the (XDG) Default User Directories from Python?

Install the python library to access freedesktop.org standards
To get the XDG directories from Python you need to install (depending on your python version) one of the following packages:
For Python 2.x
sudo apt-get install python-xdg

For Python 3:
sudo apt-get install python3-xdg

XDG Directories

$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.

$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

$XDG_DATA_DIRS defines the preference-ordered set of base directories to search for data files in addition to the $XDG_DATA_HOME base directory. The directories in $XDG_DATA_DIRS should be separated with a colon ':'.
If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used.

$XDG_CONFIG_DIRS defines the preference-ordered set of base directories to search for configuration files in addition to the $XDG_CONFIG_HOME base directory. The directories in $XDG_CONFIG_DIRS should be seperated with a colon ':'.
If $XDG_CONFIG_DIRS is either not set or empty, a value equal to /etc/xdg should be used.

Source: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
UPDATE: How to access Ubuntu specific XDG user directories:
The ~/.config/user-dirs.dirs file will always contain the localize names as the xdg-user-dirs-update tool controls this file, see the dedicated man page section:

   The XDG user dirs configuration is stored in the user-dirs.dir
   file in the location pointed to by the XDG_CONFIG_HOME
   environment variable.

The following python code will allow you to parse the ~/.config/user-dirs.dirs.
#!/usr/bin/env python

import io
import os
import re
import ConfigParser

from xdg.BaseDirectory import xdg_config_home

config = ConfigParser.RawConfigParser(allow_no_value=True)

f = open(os.path.join(xdg_config_home, "user-dirs.dirs"))
user_config = "[XDG_USER_DIR]\n" + f.read()
f.close()
user_config = re.sub('\$HOME', os.path.expanduser("~"), user_config)
user_config = re.sub('"', '', user_config)

config.readfp(io.BytesIO(user_config))
print config.get("XDG_USER_DIR", "XDG_PICTURES_DIR")


Can't launch graphical apps from terminal after updating to 15.10

As a regular user, run the command xhost +. After that, try running your graphical application again.

This turns off host-based access control on the X server. Here is the relevant information from the man page:

  The xhost program is used to add and delete host names or user names to the list allowed to make connections to the X server.

  + Access is granted to everyone, even if they aren't on the  list (i.e., access control is turned off).


This helps me:

sudo apt-get install --reinstall libc6-i386
sudo apt-get install libgl1-mesa-glx:i386 lsb-core

Source:
https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/852101?comments=all


ClamAV scan found the virus Html.Exploit.CVE_2016_0108

clamav is notorious for false positives and there is no way to "remove the code from the file" - your only option is to manually review the file yourself or delete the file.
When you get a positive , you need to google search for information
http://bfy.tw/4fKd
Which gets to - https://clamxav.com/BB/viewtopic.php?p=17793
Up to you to trust that thread or do more research ...
If you need help , read the message / warning from clamav or post the exact message you re getting. You can pastebin the file and perhaps someone will review it.
See https://help.ubuntu.com/community/ClamAV

Clamav doesn't disinfect the files

See also How do I scan for viruses with ClamAV? and http://www.clamav.net/documents/miscellaneous-faq

Can ClamAV disinfect files?
No, it can’t.


Can't connect to wireless without typing sudo modprobe b43 in terminal

Add b43 in a line to the /etc/modules file. It will load the module at boot time.

Alternatively, You can add b43 in /etc/initramfs-tools/modules and then use sudo update-initramfs -u to load the module automatically.


Just downloaded the nautilus source code, but some files seem to be missing

It would be better to fork the source code from Gnome GIT: git://git.gnome.org/nautilus, or the git website.

The source package is needed just to build the current version of an package. This can differ from original sources.


Installing software on Lubuntu without a browser

You can use Lubuntu Software Center in order to install new software on your system.

From Lubuntu 12.04 onwards, it comes preinstalled.

If for some reason you don't have it, install it:
sudo apt-get install lubuntu-software-center

If you are using Lubuntu 11.10 or older, the Software Center doesn't comes preinstalled. Use these commands instead to add the PPA:

sudo add-apt-repository ppa:lubuntu-desktop/ppa
sudo apt-get update
sudo apt-get install lubuntu-software-center

If you prefer the command line, you can use apt-get instead of the Software Center in order to install new software (but you have to know the package name).
For example, to install firefox, type sudo apt-get install firefox.


Systemd service files in non-default directory

Actually the real service files are in /lib/systemd/system. Symlinks to them are created in /etc/systemd/system when the services are enabled.

If you want to put your service files somewhere else, go ahead, but when you want to enable the service, you must specify the full path to the real service file so that systemd can make the symlink to /etc/systemd/system, eg:

sudo systemctl enable /path/to/my-service-file


Laptop does not suspend when lid is closed

(Note that # before a command indicates that it should be run by the superuser, so replace the # with sudo.)

Open logind.conf as root: # vim /etc/systemd/logind.conf and remove the # before HandleLidSwitch=suspend. You can also change the option suspend to hibernate or poweroff

Fix from Launchpad Bug #863834, comment #30:

Open a terminal: Ctrl + Alt + t
# mkdir /etc/acpi/local
# vim /etc/acpi/local/lid.sh.post
Copy this short script:

 #!/bin/bash
 if grep -q closed /proc/acpi/button/lid/*/state
 then
     /usr/sbin/pm-suspend
 fi

... and paste it into vim by typing: "+p
Save by typing ZZ (in capitals)
# chmod 755 /etc/acpi/local/lid.sh.post (so it works even when power management is handled under the logged-in user instead of root)


How can I change the Dock settings in Ubuntu 20.04?

It can now be found in Settings -->> Appearance -->> Dock


Is it only the package downloading that is slow or is your Internet browsing too? Are you on a wifi network and if yes did you try with a wired connexion?

In case your problem comes from wifi I encourage you to determine what is its reference with :

lspci -v

Then look for "Network controller" or "wifi", something like that... And you'll eventually find something a bit like that:

08:00.0 Network controller: Intel Corporation WiFi Link 5100
        Subsystem: Intel Corporation WiFi Link 5100 AGN
        Flags: bus master, fast devsel, latency 0, IRQ 45
        Memory at c0300000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: <access denied>
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

Then you'll be able to target your question precisely and have the most accurate answers.

I personally do experience slow connexion (browsing and package downloading) and it's due to a regression in drivers for my wifi card. The following lines fix it but I need to execute them every single time i start my computer up... So i made a script of this :

sudo echo "options iwlagn 11n_disable=1">"/etc/modprobe.d/intel_11n_disable.conf"
sudo update-initramfs -u
sudo modprobe -r iwlagn && sudo modprobe iwlagn

Finally if by chance you have the same card as me here is the place where i found answers:
Very slow connection on an Intel(R) WiFi Link 5100 AGN


various clients cannot RDP to AWS Windows Server 2016

Following Secure RDS (Remote Desktop Services) Connections with SSL:

Open the group policy settings and go to
Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security.
Enable the security layer and select RDP.


rip (transcode) multiple titles, from a tv series dvd, automatically

Handbrake and DVD::RIP will both let you queue things but it's quite a tedious process. You have to manually input the episode number, amongst other tedious things. It wasn't for me.

So when I wanted to rip my Family Guy DVDs, I wrote a simple script that I could reuse in the future:

#!/bin/bash

series=$1
disk=$2
count=$3
offset=0
name="Family Guy"
scratch="~/Desktop/"
destination="/media/ned/tv/$name"

#mkdir $scratch

for c in $(seq 1 1 $count)
do
    ep=`printf "%02.f" $(( ($disk-1)*$count+$c ))`
    fn="$scratch/$name ${series}x$ep.mp4"
    echo "Ripping $name ${series}x${ep} to fn"
    /home/oli/hb/HandBrakeCLI -S 200 -Z Television -a 1 -i /dev/sr0 -o "$fn" -t $(($c + $offset))
done

#echo "moving..."
#mv $scratch/* "$destination"
echo "done."

eject
sleep 2
eject

This is really very raw and there's plenty of scope for improving it. The format for calling it is:

script_name <series> <disk> <number-of-episodes-per-disk>


How to disable virtual workspace on my laptop (without external monitor)

Just open System Settings from the system menu in the right upper corner, than
select Appearance and
in that interface go to the tab Behavior.
Uncheck the box Enable workspaces and it should return to default.

As an alternative you might want to try out different dual-head settings under Screens?

Hope this helps,
Jeroen


Access to Windows files from Ubuntu dual boot

CLick on the Places option in the top left corner of your screen and click on the partition in whick windows is installed.Thats it.

EDIT-Sorry that is for 10.10. check this article
http://www.psychocats.net/ubuntu/mountwindows  or
http://www.wikihow.com/Access-Windows-Files-in-Ubuntu


driverctl package not available for 18.04 (bionic)?

The Ubuntu repositories have this package in 19.10, 20.04 LTS and 20.10 (development branch).
The upstream says that 0.111 is the latest version.
So you have to build this version on 18.04 LTS from 20.04 LTS source:
sudo apt-get install debhelper pkg-config dpkg-dev

cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/d/driverctl/driverctl_0.111.orig.tar.gz
tar -xf driverctl_0.111.orig.tar.gz
cd driverctl-0.111/
wget http://archive.ubuntu.com/ubuntu/pool/universe/d/driverctl/driverctl_0.111-1.debian.tar.xz
tar -xf driverctl_0.111-1.debian.tar.xz
rm driverctl_0.111-1.debian.tar.xz

dpkg-buildpackage -uc -us

sudo apt-get install ../driverctl_0.111-1_all.deb

and then try to use it as you planned.


You need to edit the computer name in two files:

/etc/hostname

and

/etc/hosts

These will both need administrative access, so run

gksu gedit /path/to/file

Replace any instances of the existing computer name with your new one. When complete run

sudo service hostname start

The name will also be changed if you restart your computer.

See also:

How do I change the hostname without a restart?


How do I delete files of certain extension that don't have a given string in their filename?

! -- First read the answer completely then use it if you like it -- !

Your command is correct, however there is no need to use -rf as rm parameters. because you are removing files and not directories.

Another clear way to write it is (it's almost same as your command):

find -name '*.srt' -and -not -name '*-en.srt' -type f -exec rm '{}' \;

or as @steeldriver suggested you can use:

find -name '*.srt' -and -not -name '*-en.srt' -type f -ok rm '{}' \;

It will ask for your permission to remove each founded file.

You can also use -delete instead of rm {} \; however  be aware of its dangers:

  Don't  forget  that the find command line is evaluated as an expres‐
                sion, so putting -delete first will make find try to  delete  everything  below
                the  starting  points you specified.  When testing a find command line that you
                later intend to use with -delete, you should explicitly specify -depth in order
                to  avoid later surprises.  Because -delete implies -depth, you cannot usefully
                use -prune and -delete together.

It is always a good idea to test what is going to happen before doing the actual job, so I suggest running:

find -name '*.srt' -and -not -name '*-en.srt' -type f | grep -i en.srt

If it return nothing then the actual command will work without any problem and you are good to go... or even:

find -name '*.srt' -and -not -name '*-en.srt' -type f | less

to check what's going to be removed.

And do not forget to quote '{}':

  (when find is being invoked from  a  shell)
                it  should be quoted (for example, '{}') to protect it from interpretation by shells.


How to ensure full package install after removing a meta-package?

If I understand well, you want to know how to rollback to the initial status after a failing installation of a metapackage.

Metapackages have the characteristic that the packages their bring in as recommended dependencies are not marked as automatic, so that do not get removed with an autoremove command when the metapackage itself is removed.

You could try to change this behaviour playing with the APT::Never-MarkAuto-Sections option. Probably something like this should work

sudo apt-get -o APT::Never-MarkAuto-Sections="" my-metapackage

If this worked, removing the metapackage and a following autoremove will bring to the initial situation.

Unfortunately, I cannot get this to work:, despite the option, all dependencies are not marked as automatic.


Guessing you are on a 64-bit machine.

change line 226 in setup.py

from lib_hunt = ['/usr/lib64', '/usr/lib', '/usr/local/lib64', '/usr/local/lib' ]

to

lib_hunt = [ '/usr/lib/x86_64-linux-gnu', '/usr/lib64', '/usr/lib', '/usr/local/lib64', '/usr/local/lib' ]

This is to make the script search for libraries in /usr/lib/x86_64-linux-gnu directory.

Then
install libfaad-dev which provides faad.h
install libmp3lame-dev which provides  lame.h

this should fix it.


Using External Monitor with Laptop Monitor as separate monitors

I would recommend to install a tool called disper. It's a command line tool focused on NVIDIA-drivers, because they don't support xrandr.

Info: Disper homepage

Installation: PPA for Disper on launchpad

You can also look at my answer to a similar question. There are some example scripts i use with disper:
Switching Monitors


Num Lock function has changed after upgrading to UBUNTU 13.10

Install this application :

sudo apt-get install numlockx

Edit this file :

sudo vi /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf

Add Line at the end of file :

  greeter-setup-script=/usr/bin/numlockx on


Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169 with 2.6.39 kernel

Do sudo apt-get install firmware-realtek and the problem should be solved


Interesting question. I'd use an array to capture the relevant files, and use a recursive function to paste each additional file:

paste_files() {
    if [[ "$#" -eq 0 ]]; then
        cat -
    else
        paste - <(cut -f4 "$1") | paste_files "${@:1}"
    fi
}

for institute in wbm matsiro; do
    for scenario in rcp4p5 rcp8p5; do
        files=( "$institute"_*_"$scenario"* )
        cat "${files[0]}" | paste_files "${files[@]:1}" > "$hyd_model"_"$scenario".txt
    done
done


HDD not detected anymore after ubuntu update and restart

If your BIOS cannot detect the hard drive, then it's either disconnected (power or data or both) or dead. Nothing more Ubuntu can do about it.

Open the case and see if it's merely disconnected.


Black screen after updating to CUDA 10.1 on Ubuntu 18.04.2

As suggested here, set nvidia-drm.modeset=1 and remove quiet splash in the GRUB kernel boot params. Here is the full process:

Boot to recovery mode
Start the root terminal
Open /etc/default/grub with a text editor
Add or edit: GRUB_CMDLINE_LINUX_DEFAULT="nvidia-drm.modeset=1"

(On a default installation, this replaces "quiet splash")

Save and exit
Run update-grub
Run reboot

This might not work for everyone, but it was a very clean fix for me.


I'm the developer of Robotux, and just for other people who might be reading this:
It's usually better to contact me via mail or the contact form on http://abatzill.de/cms/index.php/Contact . I usually don't check Askubuntu.

As for your problem:
This seems to happen from time to time in Robotux 0.2. I wasn't able to reproduce it myself, but got a few hints in order to hopefully fix it in Robotux 0.3 that will be released soon.

As a workaround, you can delete the file "~/.config/robotux/storedmacros". This will clear all your saved macros, but at least it will make robotux work again.

In order to delete the file in your file-manager, you need to make it show "hidden files" by pressing Ctrl+H.


Latest ubuntu version/upgrade with 64 bit

If you currently have 32bit installed the upgrade path will be to 32bit.

If you have 32bit and want 64bit - reinstall.

There was 64bit available as a download in Jan 2012. There is now - you just have to specifically change the download - 32bit is just the recommended download.


As mentioned in the comments already, e2compr unfortunately never made it into the mainline kernel.  It touched too many other parts of the kernel to ever really be clean enough to merge in.  Also, the way it was written didn't allow it to support journals.  This latter issue was really the kiss of death for it, as everything with the ext filesystem was moving towards journaling.
The actual old ext2 filesystem doesn't even exist in the kernel any more.  It is all the ext4 code which mounts ext2 filesystems in a sort of compatibility mode.  Compression would have to be written in from scratch at this point.  Corporate support wasn't there for this kind of rewrite, instead it went to other filesystems.
Your options for on-the-fly compression are ZFS and Btrfs.  Both of them are Copy-on-Write filesystems.  This means when you copy a file, it doesn't take up any extra space until you write to it and change it from the original.  This makes creating snapshots quite easy.  It also can lead to file fragmentation, since when you change a portion of a large file, that portion doesn't overwrite the old part, it is written somewhere new and the old part is marked free.  Large files which see lots of small changes, like database files, can suffer from bad fragmentation.
Of the two, Btrfs would likely be your best bet.  It is mature, included in Ubuntu, supports on-the-fly compression, and it is quite configurable.  For example, if you aren't making snapshots, then autodefrag can help keep the above-mentioned fragmentation low.  Or you can turn off copy-on-write for the whole drive, or for any parts of it where it's not helpful (like /var/lib/mysql).


Error when trying to install, debconf resource temporarily unavailable

The package ubuntu-restricted-extras is installed as you can see in the output of the command apt-cache policy ubuntu-restricted-extras

Now there are three commands to repair your system.

sudo rm /var/cache/debconf/*.dat
sudo apt-get update
sudo apt-get install -f

If you have problems to install ttf-mscorefonts-installer, read this.


Unable to maximize running Terminal in Ubuntu 16.04 (VM Ware player)

in Ubuntu you can maximize any window by selecting the window and pressing Ctrl + Win + ↑ buttons. And minimize windows by selecting the window and pressing Ctrl + Win + ↓ buttons


Why does installing node 6.x on Ubuntu 16.04 actually install node 4.2.6?

The core reason is that the setup script didn't run correctly.  Therefore, thanks to the updated data from the OP which supports this,  the data from the NodeSource repository was never seen by apt because it was not properly configured by the script.

The script, therefore, may not have found your distribution, or it may have messed up when configuring the repository, or there may have been a network interruption, or any of a thousand reasons it was disrupted and didn't do its job.

The fact you are seeing version 4.x getting installed means that the script didn't do its job right, so the script is not necessarily at fault.  This just means we have to potentially do this a harder way.

  I should point out: the script doesn't actually do any installing - all it does is determine the Debian/Ubuntu version you're on, and configure the repository for it to get data from.  The installation part is actually the sudo apt-get install step you ran by hand.

  Also of note: this will remove the npm package but that's because nodejs with this upstream packaging will include npm with it - no need for the npm package.

Rather than rely on the script, we can do what the script is doing the old-school way: by hand, ourselves, set up the repository configuration and install NodeJS.

Here's the manual way of making this work, and it is basically what the script does (except for Step 4, which is to make sure you are getting accurate version data):

Create a new file: /etc/apt/sources.list.d/nodesource.list

You'll need to create this file with sudo, but when you create the file, put this inside it:

deb https://deb.nodesource.com/node_6.x xenial main
deb-src https://deb.nodesource.com/node_6.x xenial main

Then, save the file. (replace node_6.x with node_7.x or node_8.x, etc. for newer Node versions)
Download the GPG Signing Key from Nodesource for the repository.  Otherwise, you may get NO_PUBKEY errors with apt-get update (use wget in this command if curl isn't installed, and if neither are installed, install one of them):

curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -

Manually run sudo apt-get update.

This refreshes the data from the nodesource repo so apt knows a newer version exists.

If you get a NO_PUBKEY GPG error, then go back to Step 2
Check apt-cache policy nodejs output.

This is not done by the script, but you want to make sure you see an entry that says something like this in the output (though the version might be different if you are not using 6.x as the version string; the only thing we care about is that there's a newer version number provided via nodesource):

Version table:
    6.2.1-1nodesource1~xenial1 500
       500 https://deb.nodesource.com/node_6.x xenial/main amd64 Packages
    4.2.6~dfsg-1ubuntu4 500
       500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

If you do not see entries like this, and only see 4.2.6, start over.  Otherwise, proceed.
Install the nodejs binary.  Now that you have confirmed 6.x is available on your system, you can install it: sudo apt-get install nodejs
nodejs --version should now show v6.2.1 or similar on output (as long as it starts with v6. you're on version 6 then; this may be a higher version number if you're using a newer version than 6 but as long as it is not 4.2.6 you should be good to go).


Installing Ubuntu Touch Developer Preview using a Mac

I wrote up some instructions that worked for me.:

Pre-requisite: Unlock your phone.

Download the following files from here:

quantal-preinstalled-phablet-armhf.zip
quantal-preinstalled-recovery-armel+maguro.img
quantal-preinstalled-armel+maguro.zip.

Download the Android SDK.
Unzip the SDK.
Open up Terminal.
cd into adt-bundle-mac-x86_64/sdk/platform-tools
Optional: move the above downloaded files into the platform-tools directory or just specify the location of the files below
Turn off the phone.
Boot into bootloader (as in press down both Volume up/down and power for a couple seconds).
Back in the Terminal, type: ./fastboot flash recovery quantal-preinstalled-recovery-armel+maguro.img

Looks like this installs a version of ClockworkMod Recovery.

Reboot back into the bootloader by clicking on Volume Up or Down till you see "Restart bootloader" and clicking on Power.
Go into Recovery Mode by clicking the Volume Up/Down button a couple of times till you see Recovery Mode. Then click the Power button.
Back in the Terminal, type:

./adb push quantal-preinstalled-phablet-armhf.zip /sdcard/0/Download/quantal-preinstalled-phablet-armhf.zip
./adb push quantal-preinstalled-armel+maguro.zip /sdcard/0/Download/quantal-preinstalled-armel+maguro.zip

The sdcard is referring to the internal storage, not a separate SD card (which the Galaxy Nexus doesn't support anyway).

Select "install zip from sdcard" (use Volume keys to scroll and Power to select)
Select "choose file from sdcard"
Go into /sdcard/0/Download.
Select quantal-preinstalled-phablet-armhf.zip.
Scroll to "Yes - Install..." and select it. The zip will get installed.
Select "choose file from sdcard"
Go into /sdcard/0/Download.
Select quantal-preinstalled-armel+maguro.zip.
Scroll to "Yes - Install..." and select it. The zip will get installed.
Select "+++++Go Back+++++" a few times to go back.
Select "reboot system now"


looking for the valid md5 checksum for "ubuntu-14.04.4-desktop-i386.iso" file

The Ubuntu hashes can be downloaded from this link - I would type them in here for you, but I suspect you'd rather go right to the source.


First thing I would recommend doing is boot the laptop with ubuntu 11.10 usb ( 32bit if you had install 32 bit ubuntu on your computer or 64-bit accordingly.)

The next step is to fsck /dev/???? ???? would be replaced with the device name.

Create directory for mounting the filesystem to root into.
mkdir /tmp/mntdir

Then mount it . mount /dev/???? /tmp/mntdir and then remount
mount --bind /dev/ /tmp/mntdir/dev/

mount --bind /sys/ /tmp/mntdir/sys/

mount --bind /proc/ /tmp/mntdir/proc/

Then run chroot /tmp/mntdir/

after chrooting run sudo apt-get update then depending on sudo apt-get -f install
You might be asked to run sudo dpkg --configure -a

and finally for safety sake run " sudo grub-install /dev/sda?" and you should be ready to reboot and boot into ubuntu.


How to install Facebook Gameroom on WINE?

Install Winehq following the instructions of https://wiki.winehq.org/Ubuntu

sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

Install winetricks following instructions of https://wiki.winehq.org/Winetricks

cd "${HOME}/Downloads"
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks

Make a wine container for example

mkdir ~/Wine/gameroom && cd ~/Wine/gameroom

Run export WINEARCH=win32 and export WINEPREFIX=/home/$USER/Wine/gameroom
Run winetricks and install dotnet452
Run wine uninstaller and install "FacebookGamesArcade.msi"
(obs.: in order to download this file one will have to repeat steps 1 to 5 making another container and use winetricks to install ole32.dll. Don't install it in the same container you plan to install FacebookGamesArcade.msi because then it won't load. Then run wine FacebookGameroom.exe. Then search inside ../drive_c/users/$USER/Temp/something for the installer "FacebookGamesArcade.msi").
Open the app by running

wine ~/Wine/gameroom/drive_c/users/$USER/Local\ Settings/Application\ Data/Facebook/Games/FacebookGameroom.exe

The Gameroom will start and would look like:


How can I mount a lowerdir into a specific subdirectory with overlayfs?

I ran into this exact problem tonight, however I was using /, /usr, /var as the test since I wanted to capture changes to the filesytem from a package install and skim it out of the OverlayFS 'upperdir'.

I figured out that OverlayFS wasn't designed for this, then I remembered about unionfs-fuse...  I also saw that OverlayFS could use itself as a lowerdir, so I took a shot with using unionfs-fuse instead and it worked.

Keep in mind this is just a quick 'lab' PoC test, and I'm sure you'll want to tweak the unionfs-fuse options quite a bit for your needs...

mkdir merged union upper work
sudo unionfs-fuse /=RO:/usr=RO:/var=RO:/home=RO union
sudo mount -t overlay overlay -olowerdir=union,upperdir=upper,workdir=work merged
sudo echo test > merged/newtestfile
ls merged/newtestfile # exists
ls upper/newtestfile # exists

Overall, the solution is a bit twisted/demented but it seems to work ok at least for what I was trying to accomplish by isolating the changes that could be skimmed from the ./upper directory.


Try this: ls -t | head -n 1 | xargs -I '{}' mv '{}' test.cpp

Explanation:

ls -t  sort the files by last modification date

head -n 1 selects the first name that previous command returned (last modified file)

xargs -I '{}' mv '{}' test.cpp this command execute the mv command replacing the '{}' with string received from standard input (in this case through the pipe) (The command would be mv last_modified_file test.cpp)

To avoid directories:

ls -t `find -maxdepth 1 -type f` | head -n 1 | xargs -I '{}' mv '{}' test.cpp

`


After apt-get autoremove my desktop style has changed

I solved the problem by removing the package appmenu-qt


Check your software sources. You may still be using the Trusty (14.04) PPA. It appears that there are packages available for Utopic see: https://launchpad.net/~atareao/+archive/ubuntu/atareao?field.series_filter=utopic It's possible the extras available for Utopic will resolve your issue. If not, you may be effected by this (or another) bug - https://bugs.launchpad.net/my-weather-indicator/+bug/1438472


How to configure Rdesktop in Ubuntu with Unity?

In order to be able to connect to Unity Desktop using xrdp, you will need to have a vnc server that can support recomposing properly your desktop.

To be able to connect to Unity Desktop via xrdp, you will need to follow the following instructions guide   : http://c-nergy.be/blog/?p=9962

In summary, You have to

install TigerVNC on your machine and then
install XRDP.
Finally, you tell your system that you want to use the Unity as preferred desktop and you should be good to go

Give it a try

Till next time


Add second passphrase for FDE on Ubuntu (new luks keyslot w/ encrypted LVM)

Solution
The one that ends in _crypt is the luks device that you should execute cryptsetup luksAddKey against (minus the _crypt part). In your case, execute:
# inspect the drive, note that the 0th key slot is the only key slot in use
cryptsetup luksDump /dev/nvme0n1p3

# dump the existing header and make a safe backup on another encrypted system
cryptsetup --header-backup-file header_backup luksHeaderBackup /dev/nvme0n1p3

# add a second passphrase to the 1st keyslot
cryptsetup --key-slot 1 luksAddKey /dev/nvme0n1p3

After successfully adding a second passphrase to the 1st keyslot with the command above, it will be possible to boot the machine with either the first passphrase (in key slot #0) or the second passphrase (in key slot #1).
Explanation
By default, the Ubuntu installer sets-up FDE by creating three partitions:

An unencrypted fat32 bootloader
An unencrypted ext4 boot volume
An big encrypted luks volume

You can see this, for example, using lsblk against your disk:
root@host:~# lsblk /dev/nvme0n1
NAME                   MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
nvme0n1                259:0    0   477G  0 disk
├─nvme0n1p1            259:1    0   512M  0 part  /boot/efi
├─nvme0n1p2            259:2    0   732M  0 part  /boot
└─nvme0n1p3            259:3    0 475,7G  0 part
  └─nvme0n1p3_crypt    253:0    0 475,7G  0 crypt
    ├─vgxubuntu-root   253:1    0 474,8G  0 lvm   /
    └─vgxubuntu-swap_1 253:2    0   980M  0 lvm   [SWAP]
root@host:~#

As you can see from the above output, the nvme0n1 disk has three partitions. Inside the last partition nvme0n1p3, there is a huge decrypted volume nvme0n1p3_crypt.
Moreover, inside of nvme0n1p3_crypt, there's two lvm volume groups vgxubuntu-root & vgxubuntu-swap_1.
The device that you want to execute the luksAddKey command against is the actual luks-encrypted partition on the disk at the lowest branch level in the lsblk tree. In this case, that's /dev/nvme0n1p3.


Raspberry Pi 4 Running Ubuntu 64 - mouse lag

I was having the same problem. Here was my solution using a wifi/wireless mouse.
sudo nano /boot/firmware/cmdline.txt

add  usbhid.mousepoll=8 to the end of the line (without the quotes).
sudo apt update
sudo apt full-upgrade
reboot

problem solved
If there is still some input lag, try plugging the mouse dongle into a usb hub using one of the usb 3.0 ports. Happy computing!


Upon exiting Ubuntu on USB drive, all settings and new data are erased. How can I retian data and settings?

Assuming you created your USB with persistence, you are probably experiencing bug 1159016 on a UEFI machine.  Try booting on a non UEFI machine to see if persistence works.  The fix for a UEFI boot is to edit the /boot/grub/grub.cfg file on the USB and add the word "persistent" to the linux line.


Load data from ubuntu to router's UPnP DLNA server

To tackle the security problem: add a new user to your ubuntu system and place a media server into this new user's space.

Copy the media you want to stream on an USB device and then into the new user's folder.


How to run with "root" privilaged administrative control on 12.04

You should perform the above commands as a user that has the ability to execute the sudo command. "root" user does not need to use the sudo command. "root" user account is disabled by default in Ubuntu for security.

You should just open a terminal and execute the commands one by one using sudo just as they are above. Nothing more, nothing less (except I would probably use sudo apt-get autoclean instead of sudo apt-get clean).

Click here for a formal explanation of why you should use sudo and what all that is really about.

As for the dropbox problem, I found this post with a solution in the comment section. Backup your dropbox files (if any) and then open a terminal and execute the following commands:

sudo apt-get autoremove
sudo apt-get remove nautilus-dropbox
sudo dpkg --configure -a
sudo apt-get -f install

If that is not enough, you may need to run this instead:

sudo apt-get purge nautilus-dropbox
sudo dpkg --configure -a
sudo apt-get -f install

Then, proceed with your upgrade and reinstall dropbox after.


It seems so far that it is a driver-router cooperation problem (as Pilot6 suggested). Simple password change did not help, but the fixed channel choice does.


Strange thing while burning an ISO file with Ubuntu Studio to usb using dd

What you see is due to the fact that Ubuntu uses all its free memory for disk caching. The utility dd "thinks" it has written the USB while in reality, its output goes to the memory cache, from where it is committed to disk. This goes fast at first, as the memory is being filled. SO that is where you see it going very fast.
Then further progress is with the real speed: at the same speed the cache is being written, memory becomes available to dd to continue its operation. Once it has finished, the prompt reappears. However, writing to the USB still continues in the background.
If you want to really see when the USB is fully written, append a sync command to your  dd command, as in
dd if=... of= ... ; sync

Sync tells the system to flush the cache. This way, your terminal prompt will appear again only when writing really is finished, and you will be sure the physical writing to the USB actually is completed.


Problems with graphics while booting UBUNTU

Ok guys... I build a 4.4.1 RT kernel and finally I have a nice, readable boot messages and console screen! BUT (why there is always BUT):

Graphics for example on alsamixer is really bad, could you tell me why?

uname -a

Linux ubuntu 4.4.1-rt6 #1 SMP PREEMPT RT Wed Feb 24 04:27:02 CET 2016 i686 i686 i686 GNU/Linux

sudo lshw -C display

  description: VGA compatible controller
   product: Intel Corporation
   vendor: Intel Corporation
   physical id: 2
   bus info: pci@0000:00:02.0
   version: 21
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi vga_controller bus_master cap_list rom
   configuration: driver=i915 latency=0
   resources: irq:115 memory:80000000-80ffffff memory:90000000-9fffffff ioport:f000(size=64)

sudo lspci  |grep VGA

00:02.0 VGA compatible controller: Intel Corporation Device 22b1 (rev 21)

sudo fbset -i

mode "1280x1024"
    geometry 1280 1024 1280 1024 32
    timings 0 0 0 0 0 0 0
    accel true
    rgba 8/16,8/8,8/0,0/0
endmode

Frame buffer device information:
    Name        : inteldrmfb
    Address     : 0x900c0000
    Size        : 5242880
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 5120
    Accelerator : No

cat /etc/default/grub

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="text"
GRUB_CMDLINE_LINUX="console=tty1 console=ttyS0,115200n8"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1280x1024
GRUB_GFXPAYLOAD_LINUX=text

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

ALSAMIXER looks like this:


The Windows file system looks dirty to Ubuntu, so the Ubuntu installer can't see that Windows is there. This is because Windows uses a hibernation file to save the system state.

You'll need to do this in Windows:

open the Power control panel
click on change what the power buttons do
click on change options that are unavailable
uncheck fast start
close the Power control panel
open an administrative command prompt window
type powercfg /h off (turns off hibernation)
type chkdsk /f c:
approve that chkdsk runs at next boot time
reboot Windows

Then retry the Ubuntu installer and you'll probably have better luck.


Is this make error due to tab vs space issue or due to unsupported machine?

In terminal:

grep -i 'ifeq ($(MACHINE)' Makeoptions

This will give you a list of supported machines. If you see your machine type in this list, then, in terminal:

make all MACHINE=the_name_of_a_supported_machine

If you don't find your machine type in the list, then you're on an unsupported machine.


I've been looking for more information, as I was previously, to solve this problem.
As I said, the extrange thing is that all worked well before I installed Guake, blueman and begun to change things, the more important, I think was to press the f12 to disable wireless connection because I was using wired easily.

I am using: dual windows 8 - Ubuntu 12.10, Compaq CQ58-252SS notebook, ralink 3290 for wireless, etc ; the ralink 3290 seems to cause many problems because of the kernels in Ubuntu 12.10, and it controls both wireless and bluetooth.

The problem was : f12 ( or any combination with alt, ctrl, fn ) stopped to work, later it worked only for bluetooth, when booting the system brigths cyan, but in the exact moment that Ubuntu starts it goes red and gets so fixed afterwards, the wireless didn't appear at all in the nm-applet and in any other place as if there was no conection by hardware. But I remember at the beginning all went right and I used it with Ubuntu 12.10 as in windows 8.

Now I've found and followed this post :

http://ubuntuforums.org/showthread.php?t=2104129

I didn't ask there, only here, but I've been trying to solve this at least to be able to use wireless conection.

I think that the use of higher kernel is dangerous, but now it works the nm-applet, showing and connecting as before, not so the f12, neither the red light that remains always so, and I hope no problem with the system to appear, by now all goes well.

I've also been reading other (a lot ) post about this driver Ralink 3290, and it seems that is so far a real problem with Ubuntu 12.10.

Another coincidental issue is that some Temudjin has been my solution, I hope stable in time, being I related with Mongolia.

So I hope this will be officially solved in next times, and maybe can serve to somebody. In this last case I remember, not being at all anexpert, but I think that it is dangerous to install kernels in this way (3.7.2 in my case, simply following the link offered in the post given and rebooting after installing the kernerls 64b and later the 64b extras).

Thanks for your responses sincerily.


Compiling and Installing the latest ktechlab on Ubuntu 11.10+

This will get the latest, KDE4-port-in-progress ktechlab installed on Ubuntu 11.10 (and probably 12.04). Getting it to work may be a different story since I'm not familiar with the software. This assumes you are at the top-level of your home directory:

sudo apt-get install git kdelibs5-dev kdevplatform-dev qt4-dev-tools cmake libglib2.0-dev
mkdir git-ktechlab && cd git-ktechlab
git clone git://github.com/ktechlab/ktechlab.git
cd ktechlab
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/local/
make
sudo make install
kbuildsycoca4 &> /dev/null
update-mime-database /usr/share/mime

And then run with ktechlab. Note that it segfaults for me when clicking "New" but appears to open existing projects successfully.

Alternately, short of setting up a virtual machine running Lucid, the other option may be to create a Lucid chroot, bind your home directory to it and set the X display appropriately so that ktechlab 0.3.x is running "natively" on your 11.10 display.

Somewhat off-topic: I've never used ktechlab, but have quite a bit of experience with embedded programming, in particular PICs; but most of it was using MPLAB (and a little gpsim) along with the ICD2 (in-circuit debugger) instead of a simulator. Perhaps an ICD might work for your purposes?


How do I know I'm not using any XFCE programs?

XFCE is a desktop environment similar to GNOME, Unity, and KDE (in idea, not execution/presentation).  It is considered more lightweight than the others I listed, and also keeps to a more "traditional" desktop layout.

As to the applications that "use" it, I'm not sure how to answer that.  There are of course an interconnected set of tools/applications that make up the base XFCE install, but no application uses it anymore that it would use any other desktop environment.

  I was told to remove a bunch of XFCE related programs to fix an issue
  with google-chrome, how can I know that I'm not using those programs?

Then this will remove XFCE, thereby effecting you if you are using XFCE.  Otherwise, whatever desktop environment you're using is providing equivalent functions through other packages.  I don't see why you would need to remove XFCE for Chrome, though, I use XFCE with Chrome (Chromium) just fine.


How to add different style page numbers in Libreoffice writer?

Create two page styles Style1 and Style2, one with Roman page numbers and one with numerical page numbers. Set the first pages to Style1. Right-click on the first paragraph of the second section and choose "Paragraph...". Click the "Text Flow" tab. In the "Line end" section, check the "Insert" box and the "with page style:" box. From the drop down list, choose Style2.


Found the problem, my proxy resolved to 1 of 2 IP addresses. One of them worked without issue, the other did not.


openstack: vms exchanging multicast on eth1 fail when one suffers IGMP timeout

Might be a copy+paste error, but you may have an error in the route add statement you posted.  The route for the entire multicast range is: 224.0.0.0/4

The route statement you posted can work too, but the first octet of your statement is wrong (you have 225 instead of 224).


How to install VirtualBox Guest Additions for Ubuntu 16.04

For Ubuntu Server, it is necessary to install guest additions from command line.

sudo apt-get update
sudo apt-get install virtualbox-guest-dkms


How can I audit commands executed by each user in the Terminal?

Install acct :

sudo apt-get install acct

For example: as a client user I execute the rm command:

client@client:~$ rm /mnt/test

Now from my root account (or any account) I can know when this user executed the rm command:

root@client:~# lastcomm client | grep rm
rm                     client   pts/0            0.00 secs  Tue Mar   4 01:53

As we see here the it displays the time.

What if I want to know all the commands that client executed?

You can type lastcomm client

If you have many users just change the client to the users you have: it will display commands executed by each, along with the time.


How to find the most recent version of a package in the repositories?

The below command seems to work:

LANG=C apt-cache policy nvidia-current | grep '^     [^ ]' |\
    sort | awk '{print $1}' | head -1

LANG=C ensures that the output is consistent across different locales. grep matches a set of spaces followed by a non-space character (e.g. the version). awk displays the version which is the first non-whitespace block. Next, the output is sorted and the most recent version should be available on the top which is taken by head.


According to your passwd file, the username is clusteruser with a real name of clusterUser (clusteruser:...:clusterUser...). chown cares only about the username, which has no capital letters.

Use chown clusteruser.


Ubuntu distro upgrade getting disrupted (17.10 to 18.04 LTS 'Bionic Beaver')

run this command  to solve this problem

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8


E: Unable to locate package while running apt-get remove

Type

sudo apt-get remove gpdftext to remove gPDFText ebook editor.


Airplane mode not responding, activated by default

Run this in terminal

sudo tee /etc/modprobe.d/asus.conf <<< "options asus_nb_wmi wapf=4"

and reboot.

This should unblock wireless. But there may be other issues with Intel 7265 adapter.


GUI crashes after uninstalling KDE Plama

Edit: with more info, it seems like SDDM was the problem.

SDDM (default KDE login manager) is trying to load KDE and failing. You might need to disable / uninstall SDDM.

sudo systemctl disable sddm
# or
sudo apt remove sddm

Leaving the original answer in case it helps others:

If running sudo systemctl restart gdm works, that means you still have gdm/Gnome installed, and they are just not automatically running at boot time. You can enable them so they run on boot with this systemctl command:

sudo systemctl enable --now gdm

next time you log in. That will enable gdm so it always starts on boot, and start it immediately (--now flag).


Yes, it's normal.

It is the background noise of being connected to the internet. There's bots that scan for vulnerabilities, probe passwords of ssh-servers, and there's network scanners continuously mapping the internet. There's researchers gathering data, and there's search engines mapping open ports on internet connected machines.

Either ignore it, or if it bothers you, set up a tool like fail2ban to drop brute force attempts.


How do I replace all occourences of a symbol except the last one using sed?

$ echo '44567743346_567864_56788_5677_3' | sed -r 's|_|:|g; s|:([^:]*)$|\\\1|'
44567743346:567864:56788:5677\3

This uses two sed substitution commands.  The first, s|_|:|g changes all underlines to colons.  The second, s|:([^:]*)$|\\\1| finds the last colon and changes it to a backslash.

Modifying every fourth line of a file this way

sed -r '1~4{s|_|:|g; s|:([^:]*)$|\\\1|;}' file

To modify the file in-place:

sed -i -r '1~4{s|_|:|g; s|:([^:]*)$|\\\1|;}' file


How do I configure a Flatron L177WSB for 1440x900?

I had the same problem as you, normaly this is caused by a problem with X.org reading the EDID file from your monitor with the resolutions...

The solution is to edit the /etc/X11/xorg.conf file like this :

If you don't have this file then you have to create it from scratch, just let the Nvidia software do it for you using this command on the terminal :

sudo nvidia-xconfig

If you already have an xorg.conf file, then you'll just have to edit (or create one if he doesn't exist), as root, like this:

gksu gedit /etc/X11/xorg.conf

And copy this lines on the "Section Device":

    Option         "UseEDID" "true"
    Option         "IgnoreEDIDChecksum" "CRT,DFP,TV"

If you are using and HDMI cable (for example), and the image is not scaled then add this line just after the other ones:

    Option         "FlatPanelProperties" "Scaling = Native"

Now just logout and login again, Open the "Nvidia X Server Settings" and see if all the resolutions available by your display are available.

I hope this helps.


Unable to find expected entry 'restricted/source/Sources' in Release file

Please try,

echo "deb http://archive.ubuntu.com/ubuntu trusty main universe restricted multiverse | sudo tee /etc/apt/sources.list
echo "deb http://archive.ubuntu.com/ubuntu trusty-updates main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list"
echo "deb http://archive.ubuntu.com/ubuntu trusty-security main universe restricted multiverse"  | sudo tee -a /etc/apt/sources.list"
echo "deb http://archive.ubuntu.com/ubuntu trusty-backports main universe restricted multiverse"  | sudo tee -a /etc/apt/sources.list"
sudo apt-get update
sudo apt-get upgrade

The first lines will reset your repository. Then the update might work.


Is this Ubuntu 12.04, 12.10, or 13.04?

Anyhow, open a terminal using Ctrl-Alt-T and run this command:

sudo update-grub | tee ~/update-grub.txt

You will need to type in your password. After that runs, try restarting. If it still doesn't work, give us the contents of the file called update-grub.txt located in your home directory.


In order to extract an image one needs an automatically installed pdfimages.

The command line will look as follows:

pdfimages -j file.pdf ./

Please note that the slash is needed, if it is omitted then the extraction process will not happen and no error message will be generated. It is also possible to give the files a starting prefix as ./prefix then all of them will be placed in the current directory and will start with the provided prefix.

It is not possible to limit pdfimages to only extract a single file, but it is possible to provide the page that it will process by using -f (first page) and -l (last page) options. All options must be provided before the input file.


I had the same problem trying to run properly the Radeon Open Source driver after a previous installation of fglrx proprietary driver.

In fact, my need of Radeon Open Source driver was link with this post on xbmc forum: Linux - Radeon OSS with vdpau (howto).

I removed the fglrx driver and install open source one following this Ubuntu wiki page

But I still had problems with video tearing on XBMC. (No hardware acceleration and 180% of CPU usage in XBMC)

I carefuly read the version of the /var/log/Xorg.0.log file in the article I used and the one on my system. I noticed that the difference was:

LoadModule: "ati"
Warning, couldn't open module ati
UnloadModule: "ati"
Unloading ati
Failed to load module "ati" (module does not exist, 0)

So ATI Driver was not used.. and neither was fglrx

LoadModule: "fglrx"
Warning, couldn't open module fglrx
UnloadModule: "fglrx"
Unloading fglrx
Failed to load module "fglrx" (module does not exist, 0)

None of the two drivers "fglrx" (because removed) nor "ATI" was taken into account by Xorg. The reason was probably that "fglrx" was not completely removed and "ATI" Radeon not completely installed.

So I ran the installation again

sudo apt-get install xserver-xorg-video-ati

And the magic came!
Now in my /var/log/Xorg.0.log file:

[ 37959.945] (II) LoadModule: "glx"
[ 37959.945] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 37959.948] (II) Module glx: vendor="X.Org Foundation"
[ 37959.948]    compiled for 1.15.1, module version = 1.0.0
[ 37959.948]    ABI class: X.Org Server Extension, version 8.0
[ 37959.948] (==) AIGLX enabled
[ 37959.948] Loading extension GLX
[ 37959.948] (==) Matched fglrx as autoconfigured driver 0
[ 37959.948] (==) Matched ati as autoconfigured driver 1
[ 37959.948] (==) Matched fglrx as autoconfigured driver 2
[ 37959.948] (==) Matched ati as autoconfigured driver 3
[ 37959.948] (==) Matched modesetting as autoconfigured driver 4
[ 37959.948] (==) Matched fbdev as autoconfigured driver 5
[ 37959.948] (==) Matched vesa as autoconfigured driver 6
[ 37959.948] (==) Assigned the driver to the xf86ConfigLayout
[ 37959.948] (II) LoadModule: "fglrx"
[ 37959.949] (WW) Warning, couldn't open module fglrx
[ 37959.949] (II) UnloadModule: "fglrx"
[ 37959.949] (II) Unloading fglrx
[ 37959.949] (EE) Failed to load module "fglrx" (module does not exist, 0)
[ 37959.949] (II) LoadModule: "ati"
[ 37959.949] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[ 37959.949] (II) Module ati: vendor="X.Org Foundation"
[ 37959.949]    compiled for 1.15.1, module version = 7.3.0
[ 37959.949]    Module class: X.Org Video Driver
[ 37959.949]    ABI class: X.Org Video Driver, version 15.0
[ 37959.949] (II) LoadModule: "radeon"
[ 37959.950] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[ 37959.950] (II) Module radeon: vendor="X.Org Foundation"

and on XBMC: no more video tearing and 5% CPU usage: Hardware acceleration is working!!!


How do I set Deluge to open .torrent files?

You must do a secondary click over the file and select the Open with another application option.
then select the Show others applications button below this window. As you can see in the following image:

Do not take as reference the text (is in spanish), but the image.

There you will see the all the applications installed on your computer.


No kernel modesetting detected, can only boot Xorg in fail safe graphics mode with intel video card?

I figured it out. Apparently, it was a result of a chain of bugs and faults on my side. I do not fully understand why, but this should be semi true:

my windows 7 partitioning somehow corrupted a partition -> ubuntu installed on this partition -> installed kernel has a bug with my video card -> I updated kernel through fail safe graphic mode -> grub upgrade failed because of corrupted partition -> grub upgrade failure causes old kernel to be launched during boot -> old kernel intel graphics card bug remains

So, the fix was to repartition the drive and reinstall ubuntu, and update kernel through fail safe graphic mode.

The kernel upgrade was the actual fix for the general issue, also described by this bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/648631

Thanks.


Can I resume after suspend by pressing a key on an external keyboard?

If the external keyboard is USB, you probably can, although it depends on your motherboard.

Check /proc/acpi/wakeup it shows all supported wakeup sources and their states. To toggle the state, simply echo the wakeupsource name back to the same file.

Example, to enable/disable wakeup from a usb device on my system, i do:

# cat /proc/acpi/wakeup |grep HC
EHC1      S4    *disabled  pci:0000:00:1d.0
EHC2      S4    *disabled  pci:0000:00:1a.0
XHC   S4    *disabled  pci:0000:00:14.0
# echo XHC > /proc/acpi/wakeup
# cat /proc/acpi/wakeup |grep HC
EHC1      S4    *disabled  pci:0000:00:1d.0
EHC2      S4    *disabled  pci:0000:00:1a.0
XHC   S4    *enabled   pci:0000:00:14.0
#


Why is tmux session not shown in who command?

This is unintended behavior and a bug in Ubuntu 20.04, which is not present in other Ubuntu versions (not even Ubuntu 20.10). The bug report is here: https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1890406