Question 1: How would I do this using UFW or IPtables?
This answer is for iptables.
To block a range ip addresses DROP them early in the INPUT and OUTPUT chains, before any global ACCEPT.
Example:
#!/bin/sh
FWVER=0.01
#
# vxsa4_rules Smythies 2020.10.11 Ver:0.01
#       See here:
#       https://askubuntu.com/questions/1281796/block-access-to-an-ip
#
#       run as sudo on s18.
#
#       Note: These rules likely need to be merged with
#       any existing iptables rules set.

echo "Loading vxsa4_rules rule set version $FWVER..\n"

# The location of the iptables program
#
IPTABLES=/sbin/iptables

#Setting the EXTERNAL and INTERNAL interfaces and addresses for the network
#
# Set for Smythies (for testing). Edit for vxsa4 settings.
EXTIF="enp3s0"
EXTIP="192.168.111.122"

NETWORK="192.168.111.0/24"

UNIVERSE="0.0.0.0/0"

# Clearing any previous configuration
# Be careful here. I can do this on s18, but do not know
# about vxsa4's computer.
#
echo "  Clearing any existing rules and setting default policies.."
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -F FORWARD
$IPTABLES -t nat -F

# Delete user defined chains
$IPTABLES -X
# Reset all IPTABLES counters
$IPTABLES -Z
# Smythies: While my references do not have it, I think this is needed.
$IPTABLES -t nat -Z

# Do not allow in any traffic from 172.217.0.0/16
$IPTABLES -A INPUT -s 172.217.0.0/16 -i $EXTIF -j DROP

# Do not allow out any traffic to 172.217.0.0/16
$IPTABLES -A OUTPUT -d 172.217.0.0/16 -j DROP

# At this point carry on. You need to merge this into your existing iptables rule set.
#
echo vxsa4_rules rule set version $FWVER done.

Resulting in:
doug@s18:~/iptables/misc$ sudo iptables -xvnL
Chain INPUT (policy ACCEPT 95 packets, 6543 bytes)
    pkts      bytes target     prot opt in     out     source               destination
       0        0 DROP       all  --  enp3s0 *       172.217.0.0/16       0.0.0.0/0

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 60 packets, 6821 bytes)
    pkts      bytes target     prot opt in     out     source               destination
       9      756 DROP       all  --  *      *       0.0.0.0/0            172.217.0.0/16

Question 2: How can I verify that any IP in the range 172.217.0.0 - 172.217.255.255 is getting blocked?
The above rules listing contains the packet/byte counters, and you can observe that 9 times the rule was triggered. Meanwhile, I had done this:
$ ping google.com
PING google.com (172.217.3.174) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
...
ping: sendmsg: Operation not permitted
^C
--- google.com ping statistics ---
9 packets transmitted, 0 received, 100% packet loss, time 8230ms

I also had tcpdump running, before (as shown) and after (nothing outgoing, as expected) loading the iptables rules:
doug@s18:~$ sudo tcpdump -n -tttt -i enp3s0 net 172.217.0.0/16
[sudo] password for doug:
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp3s0, link-type EN10MB (Ethernet), capture size 262144 bytes
2020-10-11 14:56:54.896447 IP 192.168.111.122 > 172.217.3.174: ICMP echo request, id 3, seq 1, length 64
2020-10-11 14:56:54.919209 IP 172.217.3.174 > 192.168.111.122: ICMP echo reply, id 3, seq 1, length 64
2020-10-11 14:56:56.381115 IP 192.168.111.122 > 172.217.3.174: ICMP echo request, id 3, seq 2, length 64
2020-10-11 14:56:56.404016 IP 172.217.3.174 > 192.168.111.122: ICMP echo reply, id 3, seq 2, length 64


If you want to open whole audio mixer in terminal you can user alsamixer.
Then you'll get screen with some colored sliders. You can adjust their values with arrows on your keyboard. It looks like this:

But if you want to change volume with single command, you can use:

amixer -D pulse sset Master 5%+ - This will increase you master
volume by 5%.
amixer -D pulse sset Master 5%- - This will decrease volume by 5%
amixer -D pulse sset Master 50% - And this will set volume to 50%

You can find topic simmilar to yours here if you want to get more information: Terminal command to set audio volume?

I think it's pretty easy and it works for me. I hope this helped you :)


What is the function of the "Sticky edges" on/off setting in displays?

It controls the mouse behaviour at the edges between monitors in a multi-monitor setup:
If "Sticky Edges" is enabled the mouse stops on the edge.

See bug #965080 if you think this should be more obvious.


Can you tell which are the canon laser printers that suport in ubuntu 12.04?

Please visit this page and see: https://wiki.ubuntu.com/HardwareSupportComponentsPrintersCanon


Desktop Shortcut Won't Work after Reboot

Since windows partitions are in NTFS file system type and they are not already auto-mount after login and when you mount them for this time and make form them a link, but after next reboot they are not mounted and Ubuntu not detect them at startup, so you will see error when you want to use that links:

"the link is broken, move it to trash?"

solutions:

Mount those partition after each login manually and then use created link form them.
Make them as auto-mount after next login and after system starts by following these links:

How to mount a new drive on startup

Is there a program to mount all of my drives automatically?

3. tested solution: Type "Disks" in dash and hit enter to open that.

Select your partition that you created a link from it(point 1)
Click on "More Actions" (gear icon point 2)
Select "Edit Mount Options..." (point 3)

this window will open:

Drag "On/Off" slider to left side to make it "Off" (point 4)
Checked "Mount at startup" check box (point 5)
Now click "Close" and also close "Disks" utility.

Test step: Reboot your system and check, you will not see any more that error.

Cool!


Download this file I've made for you:

wget http://artinvoice.hu/FreeDOS-1.1-memstick-2-256M.img

After that take a pendrive bigger or equal to 256Mb, and use dd to transfer the image to the pendrive. Be careful, it will destroy all your data on the pendrive, afterwards you have to repartiton it!

The command is:

dd if=FreeDOS-1.1-memstick-2-256M.img of=/dev/sdb

if the pendrive is under /dev/sdb, if not, adjust the command to fit your system.


Before filing a bug report, it is good to search if the bug has already been reported. This saves time and effort.

Step 1  Identify which GNOME package you want to file the report on. This might be the most difficult item. Common packages are gtk+ (for low-level toolkit bugs), gnome-games (for any of the games) and so on. You can click on the Help»About menu to find the codename of any application.

Step 2  Visit https://bugzilla.gnome.org/browse.cgi and from the pull-down menu find the product identified in Step 1. Click on Show product.

Step 3 Suppose you want to search for existing bugs in the Text Editor (gedit). The URL is gedit product page on Bugzilla. From here you can view a list of all open bugs, perform searches and identify anything related to issues about the application. If do find an existing report for the issue you planned to report, click to Subscribe to the bug report, so that you receive updates.

Step 4 If you did not find a relevant bug report, click on the link File a bug in order to write a new bug report (or request for enhancement).

That's it!

Bonus addition If you can find a bug report in Launchpad and the corresponding bug report on GNOME's Bugzilla, you can link from Launchpad to GNOME's Bugzilla. And Launchpad will automatically follow the status of the Bugzilla report. This type of connecting reports in Launchpad to Bugzillas is very important for the Ubuntu community and helps put order in the bugs.


Ubuntu 16.04 LTS black screen after suspension on Dell Inspiron 15

Sounds like it's a very new laptop. Maybe it's not fully supported just yet. You could try one of the mainline kernels, with better AMD support by amdgpu. Get the files from here: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/

download linux-headers-4.6.0-040600_4.6.0-040600.201605151930_all.deb, linux-image-4.6.0-040600-generic_4.6.0-040600.201605151930_amd64.deb, linux-headers-4.6.0-040600-generic_4.6.0-040600.201605151930_amd64.deb.

go into the folder (make sure you don't have any other files beginning with linux in there, open terminal in that folder and:

sudo dpkg -i linux*

reboot.

I'm not really sure how good the dual GPU is with AMD and Linux though. That you will have to figure out from googling.


Try another desktop environment (compatibility issues)
If you use plasma5 (from KDE), you may have the same issue as me. But I guess you have the normal Ubuntu with Unity desktop. Anyway here my experience:

I've also switched to Ubuntu-Studio (default desktop is XFCE) 15.04 and installed the new KDE desktop plasma5. At first it went well, but then the graphics and all glitched really hard - thought it was my SSD, but now I am using XFCE again and it is all fine.
I heard that the plasma5 desktop runs fine on gentoo Linux, so maybe there are compatibility issues between the new ubuntu version and the new plasma version
In addition please tell us your desktop environment and/or Ubuntu distro (e.g. normal Ubuntu or Kubuntu (KDE)...).
Another desktop can be installed with the software center/package manager and then is available at the login screen (lightdm should be fine for your login screen system)


How can I make an ubuntu bootable USD for a Mac, using a Windows PC?

Download Ubuntu
Get a USB of at least 2GB size
Use Rufus or similar program to create a bootable USB stick

Go here for Ubuntu official help.


Please try:

sudo modprobe -r hp-wmi
sudo rfkill unblock all
rfkill list all

wireless should come one if blocks have been removed.


How to Display Hidden Characters in vim?

You can use the commands

:set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
:set list

to show all characters that aren't whitespace. So spaces are the only thing that doesn't show up.

If you absolutely need spaces to be marked as well, you'll need to try something less nice. Something like

:%s/ /█/g

Will replace all spaces with a block character. Then you'd need to undo it before writing. You could remap your write command do

cmap :w :%s/█/ /g<CR>:w

Just a suggestion. I haven't tried that though.


How it works (examples for python2, for python3, replace all occurrences of python by python3):

python /path/to/script.py

works if file is either executable or not
shebang (#!/usr/bin/env python) in the head of the script is good practice, but not needed

/path/to/script.py

works if script is executable
shebang is needed (#!/usr/bin/env python)

script.py

works if script is in $PATH
script needs to be executable
filename needs to have extension
shebang is needed (#!/usr/bin/env python)

script

works if script is in $PATH
script needs to be executable
filename should have no extension
shebang is needed (#!/usr/bin/env python)

A bit more information: precedence of command, shebang or extension?

The shell can get its information on how to run a script from two sources (in order of precedence):

The language information in the command: python <script>
The shebang, in the first line of the script: #!/usr/bin/env python

The language extension however does not play a role(!).

A few examples:

A bash script, correct (language) information in the command, incorrect shebang, incorrect extension:

#!/usr/bin/env python
echo 'Monkey eats banana'

ran with:

$ sh /path/to/script.py
> Monkey eats banana

runs correctly, the information in the command takes precedence over both the shebang and the extension.
An (executable) python script, ran with incorrect extension, but a correct shebang:

#!/usr/bin/env/python
print "Monkey eats banana"

ran with:

$ /path/to/script.sh
> Monkey eats banana

runs correctly, the information in the shebang takes precedence over the extension.
An (executable) python script, with a correct extension, but without shebang (and without language information in the command):

print "Monkey"

Ran with the command:

$ /path/to/script.py
> Error: no such file "Monkey"

does not run correctly, in spite of the language extension!


Is there a way to set a different input language for one application?

Try xxkb.

From the manpage:

  The xxkb program shows the current keyboard layout (an XKB group) and
  allows to switch it with a mouse click. It has some additional
  features. The xxkb remembers the layout for each application window
  and changes the keyboard state accordingly when the window gets a
  focus.


Touch your screen to make it stop.
I have the same problem on a touchscreen machine. It just happened now, and I decided to see if someone offered a solution. @mnr's mention that it might be touchscreen-related made me try: Touching the screen made the mouse stop auto-highlighting.


Unable to boot Windows 10 after installing Ubuntu. Unable to reinstall GRUB

As per your problem description there is possibility that unknowingly you have removed windows boot loader, few times (exceptionally) grub loader does not work to boot windows os. So now what you can do is you can insert the Windows 10 usb disk and try to repair. If this work for you then great if not then you might format your windows 10 installed partition.

I had same problem and this solution worked for me.


Why does apt-get not require restarts, where the update manager does?

Because apt-get (or plain simple apt) is for the pros and when the pros do a:
sudo apt-get dist-upgrade

and see a new kernel being installed, the pros know they have to reboot to activate it.
The automatic update is for everyone else out there!
Alternatively, you can now install Ubuntu Live kernel Patching from version 16.04 onwards which allows you to update your kernel while your server is running.
:-)


How to remove a duplicate disk home folder

Thanks to "the_Seppi" for the helping hand.

I could remove the duplicate folder with the command:

sudo rm -rf "duplicated folder name and path"

That's all, folks!!!

Greetings & Blessings from Chile!!!!!!!

Juan


I dont really catch your question. You want to create a desktop shortcut or shortcut on the side bar. If you want to create the desktop shortcut, the following tutorial is quite easy to follow

  http://www.linuxandlife.com/2012/07/how-to-create-launcher-in-linux-mint-13.html

Just install gnome-desktop-item-edit and use it. After create the .desktop file, you also need to download icon for the shortcut. Just google it.

This is my code of .desktop file

 #!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=/
Name[en_US]=MATLAB-R2012a
Exec=/usr/local/MATLAB/R2012a/bin/matlab -desktop
Comment[en_US]=Running MATLAB
Name=MATLAB-R2012a
Comment=Running MATLAB
Icon=/usr/local/MATLAB/R2012a/matlabicon.png

Regards,

Nam


How to run an SSH server without a static IP address

To get started with ssh in general, install openssh-server.

sudo apt-get install openssh-server

On the next restart, this should start up automatically. To connect to the computer remotely, just enter the following in a remote terminal, substituting the ALL-CAPS names for your own:

ssh USERNAME@IPADDRESS

Now, to take care of the dynamic ip forcing you to recheck the IP all the time:

Get a free account on dyndns.com and choose the name you want to type when you connect.

Once that is done, install "ddclient" on the server machine. This will automatically update the IP address for you with dyndns.

sudo apt-get install ddclient

When you run it, it will ask you a series of questions, so have your username, password, and the URL you chose earlier ready to type in. It should also automatically add itself to startup.

That should be it. Now when you ssh, just use the URL you chose instead of your IPADDRESS since this should automatically update if the IP changes.

If you have a router, make sure to forward port 22 to your server! There are lots of guides on this at portforward.com for your specific router.


When booting ubuntu, it states: thinkpad_acpi: Unsupported brightness interface

Lenovo bought the IBM pc division about 10 years ago.  I'm on a Lenovo thinkpad which was the original IBM notebook.  I get the same error but brightness control seems to work fine.

I'm new to Linux myself, but I do believe that the generic acpi functions work fine.  What needs to happen is the drivers need to be written to recognize the acpi hardware that Lenovo has.  Could be wrong on that one.


Maybe this tutorial can work for you: Click here


Hybrid graphics on desktop with Ivy Bridge

bumblebee. http://bumblebee-project.org/

Switching devices can be done using xrandr. Try xrandr -q.


No panels, launcher, etc visible on desktop

Those are the symptoms of bug 1039155, which was marked fixed by an update in Quantal today.  Update and try it.

  compiz (1:0.9.8.4-0ubuntu2) quantal; urgency=low

  debian/patches/unity_support_test.patch:

  force llvmpipe in the unity profile if we are in the grey zone, meaning:
  the card and drivers have opengl support, however, it doesn't met unity
  requirements (opengl < 1.4, no vertex shaders support…). Thanks duflu
  (LP: #1039155)

  Note that we already discourage them to upgrade from precise to quantal
  with a warning before the upgrade, however let's get a slow ui rather
  than none on the iso as well.

  -- Didier Roche  Tue, 09 Oct 2012 15:26:52 +0200

Update: the user who filed that bug has written: "Re-opening the bug as it is not fixed for me."  So this looks up in the air for now.


Looking For an App to Manage Cloud Services

There is not a single application, however, integration with the file-manager can be very tight and work well.

Dropbox

The official Dropbox client transparently syncs all your files and integrates with Nautilus. Moreover, you can even add or edit the files by any other mean (including the terminal) and it will still work.

Google Drive

Google Drive can be mounted similarly to an external drive, thus allowing seamless access through Nautilus and other software. There is a detailed blog article about this.

Here is a small summary: the software is called google-drive-ocamlfuse and can be installed with a PPA:

sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse

It must be started a first time to authorize it to access your account:

google-drive-ocamlfuse

Then you can create a folder to act as the mount point and start accessing Google Drive:

mkdir ~/gdrive
google-drive-ocamlfuse ~/gdrive

OneDrive (formerly SkyDrive)

There is a similar software for OneDrive, called OneDrive-D. Again, there is a neat blog article about it, and here's a quick summary.

You have to download the software from GitHub and unzip it:

wget https://github.com/xybu92/onedrive-d/archive/master.zip -O onedrived.zip
unzip onedrived.zip && rm onedrived.zip

Then you can start the installation script:

cd onedrive-d-master/
sudo ./inst install

If you don't see the configuration window, run onedrive-prefs. To launch the app after a reboot, you need to run onedrive-d.


I know this is pretty much the first thing to do with any tech problem, but I solved it by restarting my computer. I'm just adding this for posterity.


How to enable Esperanto typing in Trusty?

From the console I use:

setxkbmap -option esperanto:qwerty


you can add torrent directly by double clicking on that torrent file or add it manually by clicking on add torrent file. leave other option as default


htop isn't displaying consistent information

The standard Python interpreter (CPython) is single-threaded. This is required by what's called the "Global Interpreter Lock" (GIL) that allows no real concurrent access to Python objects at the same time. See e.g. https://wiki.python.org/moin/GlobalInterpreterLock for details.

Therefore a regular Python script (which does not use e.g. the multiprocessing library to spawn multiple interpreter processes) can only run on one single CPU thread at a time. This means on a processor with four threads (dual core with hyper threading), it can only consume at most 25% of the total CPU time summed over all threads, or 100% of a single CPU thread.

So as htop reports, your script is using almost 100% of one CPU thread, so it is actually running at the maximum speed it can. Nothing unusual to see here.

If the script is yours, you could try and adapt or rewrite it to parallelize the work by using the multiprocessing library as mentioned before. Not all code can be parallelized though. If you can not really change the script, you'll have to accept the way it runs.


I can confirm your issue with WinFF not appearing in the Ubuntu Software Center, my testing done on Xenial Xerus 16.04 LTS. Best advice here is to do as you have already done and install from the command line:

sudo apt-get install winff libavcodec-extra

(Note the addition of the libavcodec-extra package, necessary for many of WinFF's encoding command lines.) But for future installations have a look at Synaptic which still works flawlessly on all of my Ubuntu installations:

sudo apt-get install synaptic

The screenshot below demonstrates that unlike the Software Center Synaptic clearly displays WinFF:

WinFF will not appear in Dash immediately after installation and even opening and closing Dash before trying again will have no effect. However if you log out and then log back in you will see the following:

Notes:

The GTK error message seen on the command line can be safely ignored, I see this as well on my own system when running WinFF from the command line. It is a spurious warning that you will not see when you safely run the application from Dash...


How can I send an audio streaming from my PC to an Internet web page

You could use an Icecast server and point to the stream from your website using a "HTML5" <audio> element.

As Wine apps get channelled through the Linux sound system layers, you should be able to pick up the sound with a source client like IceS2. Make sure to select the correct recording input using mixer/control software, else you'll only stream silence.


Will removing Nvidia Drivers cause any harm?

If you want to stop using the proprietary drivers, simply disable them in your software center -> Additional Drivers by going back to the X.Org Nouveau driver


Can't start virhs network: iptables: No chain/target/match by that name

This happened to me on a SuSE system when I switched from NetworkManager to suse's OWN network manager.  I had to restart libvirtd, even after rebooting three times.

Something eventually changed in libvirtd.

sudo service  libvirtd restart

other people having this error also needed

sudo mobprobe tun


get name and device file path of usb device attached

a lot of copy/paste brought me again here hoping that this would be helpful for others and also to improve my code
I used the almost perfect code from the answer in this question and added/removed some little stuff
#!/bin/bash

for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
    (
        syspath="${sysdevpath%/dev}"
        devname="$(udevadm info -q name -p $syspath)"

        [[ "$devname" == "bus/"* ]] || [[ "$devname" == "input/"* ]] || [[ "$devname" == "video0"* ]] || exit

        eval "$(udevadm info -q property --export -p $syspath)"
        [[ -z "$ID_SERIAL" ]] && exit

        busnum="$(udevadm info -a -p  $(udevadm info -q path -n /dev/$devname) | awk -F "==" '/busnum/ {gsub("\"","");print $2}' | head -1)"
        devnum="$(udevadm info -a -p  $(udevadm info -q path -n /dev/$devname) | awk -F "==" '/devnum/ {gsub("\"","");print $2}' | head -1)"
        bus_dev=${busnum}:${devnum}
        lsusb="$(lsusb -s $bus_dev)"

        echo "$lsusb - /dev/$devname"
    )
done

output:

Bus 003 Device 005: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter - /dev/ttyUSB0

NOTE: i don't have any unix experience so if you would like to improve the code please do!


My understanding from your question is that you are attempting to boot an an 8 years or older x86-32 (aka i386) computer from an 11.04 i386 Live USB drive.

My guess (... and I can't do much more than guess without more specifics about the computer's hardware like a motherboard manufacturer name and model number ...) is that this computer simply cannot boot from a USB drive? Are you able to boot any other operating system on it using USB?

My recollection is that booting from USB was very much a 'hit or miss' function when it first appeared. A computer could appear to support USB boot by providing an entry for USB Boot in the BIOS or boot menu, but, when tried, it would not work.

Your plan to burn a Live CD and boot from it is also what I would recommend.

If you do this and want more help, please edit/update your original question with any new or additional details. (Stack Exchange encourages using the comments for only short remarks. I believe the intent is to avoid requiring a reader to hunt through every comment to know enough to provide a pertinent answer.)

One more thing. You have attached the wubi tag to your question. Why??? I am unable to see what connection Wubi might have to your question.


Its just a setting in the file browser Nautilus. Go to Edit > Preferences > Behaviour

Choose Run executable... to run an application on opening. To avoid running an application unwantedly it is however better to choose Ask each time.


How to use driver macOS printer ApeosPort C2060 in Linux

The driver package we have does not support that printer. Looks like a pretty new printer so support might be added/post a remark on the launchpad requesting support.
The PPD released for the MAC should be identical to what we need in Ubuntu.

Install dmg2img sudo apt-get install dmg2img
Download the image for Mac OS to your Downloads map.

Create the "img" file and mount it:
dmg2img ~/Downloads/{yourdownload}.dmg /tmp/image.img
sudo mount  -o loop /tmp/image.img /mnt/iso/

From the imgage you need the "Payload" file with the PPDs:
cd /mnt/iso/
cp ppd.pkg/Payload /tmp/Payload.cpio.gz
cd /tmp
gunzip Payload.cpio.gz
mkdir ppd && cd /tmp/ppd
cpio -id < ../Payload.cpio

and all the PPDs should be in Library/Printers/PPDs/Contents/Resources/
Now when adding the printer use the corresponding PPD when it asks for it.

untested so please post in comments if any of this is flawed :)


I cannot install Ubuntu with macOS Mojave

Your mojave installation is formatted using APFS, which Ubuntu is currently unable to read. Ubuntu can only read drives formatted as NTFS (Windows), HFS/HFS+ (Mac OS Extended), EXT2, EXT3, EXT4, FAT, and FAT32 (MS-DOS). To successfully install ubuntu alongside an APFS formatted macOS installation (High Sierra and Mojave), you must choose the something else choice and locate your partition you created via Disk Utility. When you select the FAT partition, click the button on the bottom labeled change and format that as ext4.


Ubuntu 18.10 laptop does not wake up after about 20-30 minutes of unuse time

I have the same issue with my desktop.

I can restart the session doing one of two things:

suspend (not restart) and then immediately resume or switch to another screen with Ctrl+Alt+FnKey
and then back to my graphical screen (Ctrl+Alt+F1 in my case).

These two actions seems to restart the login interface and I can get back to the session.


You can enable the auto-rehash option in MySQL:

  Enable automatic rehashing. This option is on by default, which
  enables database, table, and column name completion. Use
  --disable-auto-rehash to disable rehashing. That causes mysql to start faster, but you must issue the rehash command if you want to use name
  completion.

  To complete a name, enter the first part and press Tab. If the name is
  unambiguous, mysql completes it. Otherwise, you can press Tab again to
  see the possible names that begin with what you have typed so far.
  Completion does not occur if there is no default database.


KDE notifications

System Settings > Application and System Notifications > Event source: Apper Notification.

Apper

The Apper is the KDE interface for PackageKit (aka KPackageKit)

More: http://kde-apps.org/content/show.php/Apper?content=84745

Kubuntu default

Kubuntu default package management suite is the Muon.

More: http://jontheechidna.wordpress.com/


The 16.04 LTS Final Release is not out for upgrade yet but it will be released sometime later today/tomorrow.

  From man do-release-upgrade

  OPTIONS

   -h, --help
          show help message and exit

   -d, --devel-release
          Check if upgrading to the latest devel release is possible

   -p, --proposed
          Try upgrading to the latest  release  using  the  upgrader  from
          Ubuntu-proposed

   -m MODE, --mode=MODE
          Run  in  a special upgrade mode. Currently "desktop" for regular
          upgrades of a desktop system and "server" for server systems are
          supported.

   -f FRONTEND, --frontend=FRONTEND
          Run the specified frontend

   -s, --sandbox
          Test upgrade with a sandbox aufs overlay

There is one function undocumented in the manpage but you can see it when you call do-release-upgrade --help:

-c, --check-dist-upgrade-only
                        Check only if a new distribution release is available
                        and report the result via the exit code

So to check if the upgrade is already available you can use the following line from terminal:

do-release-upgrade -c

which will give you the following output if the release is not available:

Checking for a new Ubuntu release
No new release found.

and the following if the release is actually available:

Checking for a new Ubuntu release
New release '16.04' available.
Run 'do-release-upgrade' to upgrade to it.

If you want to test if the upgrade will give you errors you can do the following:

sudo do-release-upgrade -s

This will try to install the upgrade without actually installing it. The only error there coming up you can ignore is the one about grub since it is a sandbox install grub is unable to be installed. If you find other errors you should probably rather go for a fresh installation instead of an upgrade. However since it is a sandboxed installation test you can simply rebootyour machine and be back on your old system without any changes happened.

For the upgrade itself if you want to do it and you got the confirmation the release is available you can simply run

sudo do-release-upgrade

without any parameters, which will do then the upgrade.

In the case you don't want to wait and it is shortly before the release (i.e. release day but you got no confirmation of the release already available) you can force an upgrade to the development branch which should be at that point on par with the release itself with:

sudo do-release-upgrade -d


From a remote SSH session, how can I get the screen resolution of the physically connected monitor?

1. You can try this command

cat /sys/class/drm/*/modes

or to get more info

grep . /sys/class/drm/*/modes

To get the status of each device, type

grep . /sys/class/drm/*/status

2. Or read the monitor screen data

  Extended Display Identification Data (EDID): This standard
  defines data formats to carry configuration information, allowing
  optimum use of displays.

A monitor typically supports multiple resolutions and refreshrates. Of course someone will prefer the maximum (physical) one.

To read this monitor data, try one of these solutions:

edid-decode

If not installed, type

sudo apt install edid-decode

Then read the edid file

edid-decode /sys/class/drm/card0-eDP-1/edid

read-edid

Install with

sudo apt install read-edid

Then read via i2c the screen monitor data  and parse it

sudo get-edid | parse-edid

Hexdump the edid data

In case edid-tools are not installed, you can dump the edid hex-file, e.g.:

hd /sys/class/drm/card0-eDP-1/edid

To encrypt this hex file  take a look at  wiki or download the edid specifications.


MySQL Workbench allow remote connections

From the server:

GRANT ALL PRIVILEGES ON *.* TO '{USER}'@'{IP{' IDENTIFIED BY '{PASSWORD}' with grant option;

{IP} is the IP you want to allow access. You can use % to accept any IP address
{USERNAME} is the user you use to connect
{PASSWORD} the password you use to connect
To confirm the change do ...

FLUSH PRIVILEGES;


How can I access my laptop via .local without having to log in?

The network connection you are using has to be marked 'All users may connect to this network' if you want the pc to connect to the network before a user logs in. It seems this is the default for wired connections but not always for wifi ones.


Your Ubuntu distribution consumes more power than Windows for graphics. Remember, Windows has big money behind it and the graphics (and others) drivers are optimized for performance. One other issue that causes faster battery drainage is the rate of keeping graphical display active.

If battery power is so important, try something from an older post:

Ubuntu consumes too much battery

Hope I've helped.


Trying to install AMD proprietary drivers

Solved - So apparently there is a OS package error or something in 14.04? I followed the whopping three commands halfway through this page (below) and everything seems to be working fine.

http://ubuntuforums.org/showthread.php?t=2266268&page=4

Commands from above link:

sudo apt-get install libcheese*

sudo apt-get install xorg-video-abi-15

sudo apt-get install fglrx-updates


Ubuntu 18.04 won't boot after new install on 480GB SSD in IdeaCentre Q180

I am surprised that you used a Ubuntu 18 ISO USB Stick with the new SSD in a USB case.

Why not inserting the new SSD plugged into the IdeaCentre, setting the BIOS SATA Mode to  AHCI preferrably, and the running the Ubuntu 18 ISO USB Stick to install Ubuntu?

As far as I know Ubuntu sets its boot path with inclusion of the port-information as put in the BIOS such as USB01, USB02, HDD02 etcetera. So a imho possible solution is to edit the bootrecord on the SSD to include the right port information.

I am just a curious curious Ubuntu newbie, please answer me if you can.

Yours sincerely,
Stef Olling
mailto: stef.olling@gmail.com


Launching csgo via steam with optirun or primusrun?

I've had exactly the same problem 1 hour ago. To fix it, edit the file .steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh

Before the two lines that start with ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} you must add "primusrun" (maybe only one line is necessary, didn't tested):

primusrun ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} -x "$ARGSFILE"

and

primusrun ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"

Then remove the CounterStrike's launch options in steam and launch the game normally from Steam. It should launch on the GPU


Can I safely restore Windows while keeping my Linux partition?

Restoring Windows will almost definitely break grub, and likely overwrite your linux partitions. You need to backup everything before the restoration, as you'll most likely be reinstalling Ubuntu after it's finished.


No Unity 3D support, Intel HD 4600, Ubuntu 13.10/14.04

Short answer:
Try installing Nvidia's driver using one of Ubuntu's own tools - look for additional drivers in the menu.

Explanation:
When you have just installed Ubuntu, you may be using a driver that is under development and not feature-complete. I'm not sure about support for your particular video card, but it sounds very likely that only the chip manufacturer's (Nvidia) own driver can provide hardware acceleration for your use case.


Thanks guys!
At the end, I tried without EFI system partition and it was all fine. I'm not sure why the installation setup showed that scaring message but finally such partition was not necessary.


Open a terminal (ctrl + alt + t) and type locate Documents. Maybe you moved the folder by mistake.


I haven't tried it, but you can try to install it after downloading the package (and all its dependencies!) for Wily from here.


Fixed by creating /etc/my.cnf prior to installing MySQL only containing

[mysqld]
innodb_use_native_aio = 0

Source


Swap...

with 11G RAM, vm.swappiness=10 is set way too low

temporarily try sudo sysctl vm.swappiness=80
we'll make it permanent later if it helps

your swap partition/swapfile is excessive (unless you hibernate)

later we'll consider reducing the size of your swap
show me grep -i swap /etc/fstab

BIOS...

Lenovo IdeaPad V330-15IKB
Bios 6SCN42WW

This web page indicates that 6SCN48WW (from Jan 12, 2020) is the current version.
download the newer BIOS, and the update instructions (if there are any)
backup your important files
update the BIOS


I want to export mount path as NFS share

You should read some howto e. g. https://help.ubuntu.com/community/SettingUpNFSHowTo, especially the section https://help.ubuntu.com/community/SettingUpNFSHowTo#Installation_and_Configuration

This should get you quite far already. Feel free to ask more specific questions if you are still having trouble setting up NFS shares.


12.04 upgrade from 11.10 stuck at restoring previously installed packages

Firstly, if you are upgrading, you should have used the update manager instead of a livecd to upgrade.
If your system is being overwritten, then your home folder may get overwritten unless it is in a separate drive.

How long has it been since it got stuck? Sometimes, during upgrade, things can appear to get stuck but in the background the upgrade may be running.

Check using top command in an open terminal which process is using the most cpu/ram. Generally the process which gets stuck eats the most CPU.


Can't remove   libreoffice3.5-dict-de   package

Try sudo aptitude remove libreoffice3.5-dict-de:i386 as you installed the i386 instead of amd64.


Ethernet won't work unless I set the speed to 100

Does your router support 1000 Mbps (gigabit) ethernet? If not, I'd assume it should auto-negotiate a slower speed, but maybe it's not.

And I've read that bad / low quality / damaged cables or plugs won't work correctly at all speeds, maybe that's the case & it's causing errors are higher speeds, and the "errors:7461" line above.

And just wondering, how unbearably slow is your internet, if 100 Mbps is too slow? What speeds are you actually getting? WiFi is generally "fast enough" for almost everyone everywhere using the internet, and it's only 11 / 54 / 100 Mbps. [1] Maybe streaming high-def movies, or file transfers on your local network would suffer though


Have you rebooted? Also try

sudo gdm stop
sudo lightdm stop
sudo lightdm start

Or

sudo service gdm stop
sudo service lightdm start

Sources:
Own knowledge
Inverse of this


Answering for Kubuntu 18.04 Plasma 5.12

1- Go to PulseAudio Volume Control
2- Configuration
3- Profile: Select "Digital Stereo (HDMI) Output"
4- (Optional) System Settings -> Multimedia -> Audio Volume -> Advanced: Check the box "Automatically switch all running streams when a new output becomes available" this way you will not have to repeat steps 1-3 every time you plug in the HDMI cable to your TV.


How to auto boot to ubuntu instead of showing text mode grub menu on power failure

To disable the Grub boot menu from showing at boot, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo gedit /etc/default/grub

Change the Grub timeout

GRUB_TIMEOUT=0

Save and reboot.


DNS resolution stops working on some networks

Start by querying the network adapter to see how the connection is setup:

  ifconfig -a

make sure you have a DNS server specified, as an IP address, and that the adapter is using DHCP to get this information. If no DNS server is specified (field is blank), then you are not getting an appropriate answer from your DHCP server at college, and should contact their helpdesk.


This should delete all chars before and including the 1st tab on any line:

:%s/^[^\t]*\t//

Command line cut:

cut -f 2- {filename.txt} > {filenamenew.txt}

cut defaults to tabs; if you want something else like a space add -d " ".
-f is fields to copy over. 2- means all from (and including) column 2.


This answer illustrates the procedure for LibreOffice 5.1.4 (using the "Galaxy" icon theme) on Ubuntu 16.04 with Unity Desktop and consists of 4 parts:

Step 1: Create / load the document you want to use
Step 2: Store your document as a template
Step 3: Configure the new template as default
How to reset the default template?

Step 1: Create / load the document you want to use
First, create your template like a normal LibreOffice Writer document. You don't even have to save it as ODT anywhere if you don't want to - but you can do, of course - or just load any document.
I've just thrown together this stupid simple page as an example for now:

Step 2: Store your document as a template
Navigate to the File → Templates menu and click Save as template...

A Template Manager window with a Save button will open. Just select the My Templates category (or wherever you want to put it) and click Save. Enter a name for your template in the appearing dialogue window and hit OK.

The Template Manager window closes and your template got stored successfully.
Step 3: Configure the new template as default
Now you want to set up your template as default, so that it automatically loads when you launch LibreOffice Writer.
To do that, navigate again to the File → Templates menu, but click Manage this time. Alternatively, the keyboard shortcut to open the Template Manager is Ctrl+Shift+N.
Open the category you stored your template in and select it. Then you can click the Set as default button from the Template Manager's toolbar. Nothing obvious will happen, but your template got set as default now.

Close the Template Manager. The next time you restart LibreOffice or create a new empty document, it will be based on your new custom template.
How to reset the default template?
If you want to undo your changes and get the default template (plain white page) back, simply open the Template Manager again, as described above.
Click on the little cogwheel button in the right side of the Template Manager's toolbar and select Reset Default Template → Text Document from the drop-down menu.

If there is no Text Document entry in the Reset Default Template menu, this simply means that you already use the default text document template. Other entries like e.g. Presentation may also appear there in case you have set a template for in that case LibreOffice Impress presentations, but we don't have to care about that here.
That was it, you're back to the roots.


There's no such thing as "original" vi on Linux.

If one wants to try the original flavor of vi, there's several versions he can try.

vim.tiny as the other answer suggested.
run busybox vi, busybox-static is default installed on 18.04/18.10. This version is a very small clone of vi.
The traditional vi project, run by Gunnar Ritter, the first one who
ported vi to Linux. You need to compile from source for this one.


Check power settings in MAAS UI for that node. In power settings, "Power ID" should be the hostname of that node. Recommission if all settings are correct/updated. Check for maas logs as well in /var/log/maas/ and post here if you still not able to figure out the issue.


I've been running Eyefinity since the 5000 series came out, which allowed me to ditch the external splitter box I had previously been using. It took AMD another 8 months to add support to the Linux drivers, but they did it.

As far as I'm aware, to run three monitors from the same card, you need Eyefinity, and they need to output the same resolution. If that's changed since my 5770, I apologise, but that's my understanding of the tech, so you may need a second card. (nVidia would require a second card in any case - I checked on their website just the other day.)

Performance-wise, for general use they're great. No complaints to speak of, really. Flash is fine (installed via the Flash-Aid FF plugin), video is fine, no problems.

I'm in the Steam beta, however, and the performance in games sucks! I'm working on getting the latest drivers installed from the AMD site to see if there are any improvements, but the config isn't being kind to me. Pro tip: install from repo via Jockey or similar, and leave it at that! You get the full Catalyst control centre, and you don't have the install hassles.


Ati Radeon Xpress 1100/1150 Driver? Which one and how to install? Ubuntu 14.04

There is no proprietary standalone driver for this video adapter in linux.

Open source driver is already installed.

The only thing you can do is to upgrade graphical stack for the latest available version for Ubuntu 14.04. In your case you have it already.

You can upgrade to 3.19 kernel. It has a built in radeon module, which may be better. It can be done by

sudo apt-get install linux-generic-lts-vivid

New graphical stack must appear soon too in repositories.


If you need to play mp3 files and other proprietary multimedia formats, you need to install ubuntu-restricted-extras and ubuntu-restricted-addons.

To do so:

Open a terminal (Ctrl+Alt+T).
Run the following commands:

sudo apt-get update
sudo apt-get install ubuntu-restricted-extras ubuntu-restricted-addons

Now try playing a mp3 file and it should play just fine!


That's my mistake. The two devices, eth0 and wlan0, didn't disappear. They were just renamed by raspi-config as enxxxxxxxxxxxx and wlwwwwwwwwwwww; where xxxx* and www* are their MAC addresses respectively. I mistook them as wrong devices. I used the method at renaming network interface in Ubuntu 16.04 with systemd fails to rename them back to eth0 and wlan0.


Can't unmount USB drive. Error messages say it's not mounted

I deleted the existing mount points. That solved the problem.


Installing php5-fpm with php version 5.4.x

You can enable remi-php54 from repository on folder /etc/apt/sources.list:

And you can install php5-fpm with apt-get install


I need a command-line utility to send switch keyboard layout sequence because of Ubuntu 21.04 wayland

First, I use standart Gnome/Tweaks utility to choose

Caps Lock to first layout;Shift+Caps Lock to last layout

in

Keyboard & Mouse/Additional Layout Options/Switching to another layout.

Second, I've found and installed evemu-tools package in Ubuntu.
These two commands emulate CAPSLOCK pressed on keyboard (/dev/input/event6):

sudo evemu-event /dev/input/event6 --type EV_KEY --code KEY_CAPSLOCK --value 1 --sync

sudo evemu-event /dev/input/event6 --type EV_KEY --code KEY_CAPSLOCK --value 0 --sync

Another four commands emulate SHIFT+CAPSLOCK pressed on keyboard (/dev/input/event6):

sudo evemu-event /dev/input/event6 --type EV_KEY --code KEY_RIGHTSHIFT --value 1 --sync

sudo evemu-event /dev/input/event6 --type EV_KEY --code KEY_CAPSLOCK --value 1 --sync

sudo evemu-event /dev/input/event6 --type EV_KEY --code KEY_CAPSLOCK --value 0 --sync

sudo evemu-event /dev/input/event6 --type EV_KEY --code KEY_RIGHTSHIFT --value 0 --sync

P.S. I have added a new record to /etc/sudoers to permit evemu-event program do not ask password when used with sudo. Please, correct me if it's not good way to grant permissions to evemu-event.
Now I can use above commands sets to switch keyboard-layout in wayland.
I will search for an automation package to set change layout function to any keyboard keys.
Thanks.


I'm looking for a skype phone that works with ubuntu 11.10 any suggestions?

For Skype, you only need an audio device with a speaker and microphone. The "Skype Phone" devices marketed for plugging into your computer are just a USB soundcard in a phone-shaped package, so if you already have a working sound card that has a microphone input, use that with Skype instead.

Skype run nicely on Ubuntu. I usually download the .deb package from the Skype website.


You need to install the *-dev packages if you need to compile something using that library.

In your case you need libnotify-dev. Install it (sudo apt install libnotify-dev) and run ./configure again.


Dell Inspiron 7559 doesn't work with ubuntu linux

Might not be the right answer for you, but:
I have same laptop and I bought M.2 SSD, installed Windows there and then installed Xubuntu on the HDD, with bootloader installed on HDD (/dev/sdb)
Xubuntu works just fine.
Samsung or Crucial M.2 2280 models are quite cheap nowadays and the performance is worth to buy it. Anyway if you want to use your Ubuntu primarily you can still install it on SSD (don't forget to select your bootloader on the correct drive) and leave Windows on HDD :)


Recommended total system backup solution

I have just restored a system, myself. I am a newbie to Ubuntu, but I have learned a lot and I am a fan of multi-partitions.

Backing up /etc; well I don't know, but having a record of 'fstab' is essential and during the re-installation, remembering to only format the / partition is also important. As a result of having a mount point at /home/my-namefor my data partition, the most important thing that I discovered as a direct result of the re-install, was the need to immediately revert fstab. This required a reboot following the system installation, (just like "Windows"),as I was unable to invoke gedit from the command line straight away.

The benefit is avoiding the need to restore to /home/my-name. It is enough of a chore having to re-install all the previously installed programs.

To be doubly safe a monthly clone of the entire hard drive is good. 'dd' leaves you hanging in space without a clue as to what is going on. 'DDRESCUE' keeps you informed. I shall take a look at 'Clonezilla'. Backups with deja dup however, seem to restore data just fine.


You can resize the partition through Windows 10.  The Disk Management tool should be able to handle this without error.  Make sure you backup your files prior to resize, just in case.

Alternately, you could use a live CD/USB and use Gparted.

Either way, you'll select your partition(sda5) and choose the resize option.


Cursor disappears intermittently, always after opening System Settings

I found a solution that was posted by Eric Doriean for a similar question. In System Settings / Displays I found that I had an "Unknown Display" that was "On" as well as my "Built-in Display". I clicked on the "Unknown Display" graphic, then I clicked on the ON/OFF toggle, to turn off the "Unknown Display". After that my cursor problems went away.


'Permission denied' when running snap applications on Ubuntu 16.04 as a LDAP user

Found a solution that actually works.
I've run

sudo dpkg-reconfigure apparmor

and added /home/DOMAIN there, then reboot.

Similar answer
 - https://askubuntu.com/a/1156839/912790

Bug at Launchpad
 - https://bugs.launchpad.net/snappy/+bug/1620771

The bug at Laucnhpad is marked as "won't fix", so maybe this workaround should work for a while.


In "System Settings.." --> "Keyboard" go to 'Shortcuts' tab. At the left choose "Navigation". Scroll down to "Switch windows of an app directly", and assign the keyboard shortcut you'd like (I'm using Alt+').
Hope that works for you.


Why MySQL Repository Key suddenly expired?

This solved my problem

sudo apt-key adv --keyserver pgp.mit.edu --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5

Source : click here


xfce keyboard options/which ubuntu version

This:
https://github.com/dnschneid/crouton/wiki/Keyboard#non-us-layout
gives a description of how it's done.


You're absolutely correct. There's a mismatch between UUIDs. This occurred because of the re-creation of the swap partition. You executed the correct commands to determine this.

free -h # show a little more data

sudo blkid # show UUIDs

cat /etc/fstab # show fstab

sudo -H gedit /etc/fstab # edit fstab

In /etc/fstab...

Change:

# swap was on /dev/sda5 during installation
UUID=ab7cc7d6-77e0-444f-982d-bb64502305b9 none    swap    sw     0 0

To:

# swap was on /dev/sda5 during installation
UUID=525383e5-fea2-4b7d-bd81-028fd6f55e88 none    swap    sw     0 0

Then reboot and it should boot a lot faster, as it won't be waiting for a non-existent swap partition.


In shell, this is just a simple apt-get command.  First update the lists and upgrade any packages:

sudo apt-get update
sudo apt-get upgrade

And then upgrade your distribution:

sudo apt-get dist-upgrade

(Might take a while!)

If that doesn't work you need to use update manager:

sudo aptitude install update-manager-core
sudo do-release-upgrade

Can you confirm you're on Lucid:

lsb_release -a

Should report four lines with 10.04 and lucid in there.  Next thing is you need upgrade manager to move to the next LTS, not 10.10 which you mention above... vi /etc/update-manager/release-upgrades

Prompt=lts

Try and run do-release-upgrade again, if you could paste out the actual fail message (in your Q) it'd be helpful too.


To remove "E: No priority (or zero) specified for pin" message you have to remove the Ubuntu Advantage (UA) ESM files by
sudo rm /etc/apt/preferences.d/ubuntu-esm-infra
sudo rm /etc/apt/sources.list.d/ubuntu-esm-infra.list

as Ubuntu 18.04 LTS is supported release, so no UA ESM is really needed here.
Then check that you have correct lines in the /etc/apt/sources.list. Change lines to contain the following:
deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

Then run sudo apt-get update again followed by:
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get upgrade # rerun upgrade
sudo apt-get dist-upgrade # install newest dependencies

And  finally remove UA with
sudo apt-get purge ubuntu-advantage-tools --autoremove


no login screen after change from lightdm to xdm

Reboot the computer and keep the SHIFT key pressed in order to access the boot options. Select "recovery mode". This should allow you to login in your system again.


Unable to install matplotlib using pip in Ubuntu 16.04

As described in this post on StackOverflow this is a "known bug". On Github, they explain that when freetype-config is missing the setup.py crashes. The output of the error message looks a bit different in this one but it seems like it can be handled just as explained in the link that I posted. By typing:

sudo apt-get install libfreetype6-dev libxft-dev

followed by:

sudo pip install matplotlib


My video player in Ubuntu 18.04 LTS lags

Is the monitor refresh rate.
   With me it happened in any video that was in the browser or Totem VLC etc.
    Under Settings go to> Devices> Monitors> Resolution. click to change. At this point there is the resolution chosen by the system and just below the same resolution. choose the second option and the Update Rate will appear. Choose the one from your monitor if not already ... 60Hz, 120Hz etc. Do the test.


shutdown 0 always remains in single-user mode

The command that I always have used to shutdown a Ubuntu machine is:

sudo halt

I hope this helps you.


How do I change the formatting of Xubuntu desktop icon text?

If you are using the default theme in Xubuntu 12.10 called "Greybird"...
You should try to edit the gtkrc file into the themes directory.

Go to the terminal and type: sudo leafpad /usr/share/themes/Greybird/gtk-2.0/gtkrc
Find the section (style "xfdesktop-icon-view") and change font_name="bold" for font_name="regular"

Save the file, logout and loging to see the changes..

If you are not using the Greybird theme.. try to edit the correct file for your current theme.

Hope will be useful!

Regards.


Set py-shell-name to python3, for example by using

Meta+x customize-variable Returnpy-shell-name


Error while trying to install flash plugin through software center

You can use a command line and execute sudo apt-get install flashplugin-installer to install the latest version of the flash player.


How exclude folders for remove when using ( rm -rf *) on the parent dir

You can use GLOBIGNORE environment variable. Suppose that you want to delete everithing except /home/abdennour/android/documents/ and /home/abdennour/android/images/mlibrary/, then you can do the following:

cd /home/abdennour/android/
export GLOBIGNORE="documents:images"
rm -rf *
cd images
export GLOBIGNORE="mlibrary"
rm -rf *
export GLOBIGNORE=""


How can I tell what kind of partition I have? (ext2,3,4)?

I'm sure there are many ways to do this...

If you search for disk in Dash, you can examine the layout of your partitions for any hard-drives you have installed.

For example:

This image on my laptop shows that I have a mixture of ext4 and ntfs partitions.

If you double click each visible partition in Nautilus and then run in a terminal df -T you can see the ext type for each partition that is mounted.

For example

dad@emachineubuntu:~$ df -T
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/sda5     ext4    99520000  76240232  18224384  81% /
udev      devtmpfs     3956048         4   3956044   1% /dev
tmpfs        tmpfs     1586240      1188   1585052   1% /run
none         tmpfs        5120         0      5120   0% /run/lock
none         tmpfs     3965592       592   3965000   1% /run/shm
/dev/sda3  fuseblk    58554680  43349156  15205524  75% /media/eMachines
/dev/sda7     ext4    65423132   3349996  58749744   6% /media/5e4ea9ba-

N.B. the NTFS partition is shown as fuseblk


I have a Sony Vaio VPCCA with that graphics card. I followed this Spanish language tutorial and it works.


Can you:
grep -i denied on /var/log/kern.log
It might be apparmor blocking it. If yes, then you modify the apparmor acl for libvirt-qemu.

Best.


I can't boot to windows on UEFI MODE ( Triple boot Laptop )

Note that booting to Windows requires EFI mode and I've installed linux on Legacy mode

This was a mistake. Furthermore....

  When I Tried Ubuntu Live USB boot iso to perform an automatic boot repair it says : "You have installed on sda10 a Linux version which is not EFI-Compatible. You may want to install a 64-bit Linux instead"

This error message suggests that you've installed a 32-bit version of Ubuntu. If so, and if you have a 64-bit EFI and 64-bit version of Windows, your best bet is to do as the message suggests: Install a 64-bit version of Ubuntu. Furthermore, you should do so in EFI mode. (Disable the CSM, aka legacy-mode support, in your firmware.)

To better understand why a mixed-mode setup is likely to be troublesome, see my Web page on the subject. In brief, most EFIs make switching between modes awkward. Enabling the CSM can also effectively randomize your mode of booting from external media, which makes the creation of incompatible installations far too likely.


Yes, a firewall will disable LAN sync. You must configure it to allow connections to port 17500 to make it work.

More info about LAN sync here.


You need to quickly press the Shift key or Escape, as soon as the bios finishes.  That  will bring up Grub menu

Once you get the menu shown below, you can drop to root prompt, so you can do some maintenance, or any of the other choices.


It is theoretically possible to setup portage on Ubuntu or any other linux. However for that to be useful, portage would have to be able to interact with apt somehow (at the very least be able to find packages installed by apt), which it's not. There's also no extension to portage that allows something like that, so this is not a good idea.

And no, apt does not have anything like USE flags, as it uses binary packages so it's too late to specify any compile flags. However sometimes there are multiple packages of the same software with different features enabled. For example there's nethack-console, nethack-x11 and nethack-qt, which in portage are all covered by one package with different USE flags.


Recovery? Accidentally formated whole disk when installing Xubuntu

Have you tried to recover the other partitions marked as D (deleted) but starting at the same point ? Typically the one from 718851 to 233517055 (use gparted to see if it matches the size of Unallocated space). Then try to list the files with P.
Last resort is to try a deeper search, which is going to take quite a long time.
The message concerning the damaged filesystem may be provoked by a sector being partially written over after the formatting, in which case there is little hope.


You will see this error if you are :

Using a different distribution other than Ubuntu (for example Mint) OR
you have an old version of Ubuntu (eg: Karmic 9.10) OR
you have a disk error OR
you are trying using a software like Reconstructor

If you want to customize your initrd, i recommend to use the latest version 11.10 and then customize it.


VLC is not working with AMD gpu in 18.04

This is related to hardware video acceleration.
The issue is caused by (at least) one of these alternatives:

VLC is misconfigured.
Hardware acceleration is not set up properly for your AMD graphics card.

Quick Fix

Turn off hardware acceleration:

Go to VLC > Tools > Preferences > Input & Codecs Settings.
Set Hardware-accelerated decoding to Disable.

This is just a cure of the symptoms, helps to see any video at all. Remember to enable the setting again, when fixing the real cause of the problem.

Check Setup

Install the packages vdpauinfo and vainfo.
These two are of great help when debugging hardware acceleration related issues.

Now open a terminal and run

vdpauinfo

as well as

vainfo

This gives a lot of insight to your current setup.

Fix

I can't get into details here, there's way too many possibilities.
Take the output from the previous section as an indication which route to take.

Most likely, you need to install drivers. Drivers related to VDPAU and/or VA-API.

Here's a valuable page to get some more info: VLX GPU Decoding


Determine destination location of apt-get install ?

You can run the command dpkg -L package to list all the files in the package. For example dpkg -L ubuntu-minimal will only list a couple of small files related to packaging, as it is only an empty meta-package that depends on other packages.

dpkg -L tomcat7

is probably what you want.


Looks correct to me.

Yes, you can open the task list by use of crontab -e. But you need to make sure, permissions are correct. If the script needs root access, you can't run it as user.

Also, just editing the task list alone won't do the trick. You need to make sure, some daemon like cronie is active and running to execute the tasks.

You can check, if cronie is active by use of:

systemctl status cronie

It might ask for permission or you might have to use sudo.

3 possible outcomes. Cronie might be active, inactive or not even installed. Last one should be fairly self-explanatory. You need to install cronie (apt-get install cronie).

systemctl start cronie.service

would start it temporarily. Usually that works fine and needs no settings. You can check the status again.

To make sure it's active after reboot and always, you need to ...

systemctl enable cronie.service

Just to have mentioned it, as a helper: if you are not sure about anything about this, you can always use some dummy script for testing. Just let it for example echo a timestamp into a file and see if it works.


On the steven-Z-CLASS system you'll need to run xhost +OTHERNAME where "OTHERNAME" is the name of the system that is running the "wmctrl -m" command.

The xhost command allows the user to modify the security on the local X11 server to allow "OTHERNAME" to connect and display graphics on it.


How do I change which audio jacks are used for input and output?

I managed to do it, but changes revert after rebooting. (Update: This can be worked around; see the bottom of this post.)

I did it via a GUI in python called HDA Analyzer that can be fetched and used from the ALSA website like the following:

wget -O run.py http://www.alsa-project.org/hda-analyzer.py
sudo python run.py (Their page doesn't say sudo, but if you don't do it with sudo, it will download the scripts but fail to run them and complain about privileges.)

Now this will make the GUI start, but its usage is not explained, and it's not exactly newbie-friendly. So to make life easier I'll explain how I did it. In my case, it was a matter of two clicks; the tricky part was locating exactly what needs to be clicked.

(Note: You may explore all the nodes one by one, but don't modify anything you don't understand. Any modification (e.g. ticking a checkbox) becomes effective immediately; there's no apply button.)

The list contains many nodes called Node[0x##] followed by any of AUD_OUT, AUD_IN, AUD_MIX, PIN and VENDOR. The only ones you have to look in are the PIN ones.
There are multiple types of PIN nodes; the type we want will fill the whole window with panels/control groups (It helps to stretch or maximize the window), as in this screenshot. (The site prevented me from inserting the image inline, sorry.)
Inside the Config Default field, some nodes will have in the first line Jack Connection: N/A; we need the ones that say Jack Connection: Jack as in the screenshot.
To change a Line-In to an output jack, look until you find the node that says Jack Type: Line In. (And notice the Jack Location2: Rear and Jack Color: Blue.)
Then, in the three checkboxes in the Widget Control group below, uncheck IN and check OUT.
Using the same way, you can assign any of the front or rear jacks to either input or output.

Now if you close the window, it will ask whether you want to revert changes. Saying yes reverts them immediately; saying no keeps them but only for this session.

If you want to keep your changes permanently, don't close HDA Analyzer yet. Instead, click "Exp" (Export) at the bottom-left and use Save As to write the python script to a file. Now copy that file to something like /etc/hda-mods.py and edit /etc/rc.local as root (e.g. using gksudo gedit /etc/rc.local) and add the line python /etc/hda-mods.py right before the exit 0 line, then save it and reboot. Your changes should survive.


Can't install Gitlab on WSL: Initctl errors

I fear, I don't have any good news for You. It seems WSL still doesn't work with upstart, initctl things which start jobs upon booting machine. There was a similar issue reported on Github.

Quoting aseering from that issue

  WSL doesn't use Upstart to start processes at system boot. If you work closely with Upstart, this might cause some surprises for you; the message is informative to people who work directly with initctl, upstart, etc that WSL doesn't yet expose that functionality.

furthermore, He pointed out that WSL is really a beta release yet and this kind of errors aren't unexpected.

  WSL is beta software in this release. Some companies of late have had "beta" releases that are really production-ready. But WSL really is traditional beta software: There are many things that it does correctly; there are also many things that are still in progress so don't work yet. It's typical to hit messages such as this one, or to encounter tools that don't completely work yet, etc.

The issue is still open. My suggestion would be go and comment on that issue about your problem, so that they fix the issue soon.


Why do I not see my /bin, /var, (etc.) directories in my root partition?

It appears that you are in the directory /root and not /. Please type:

cd /
ls -al


If I install the server version and then add all the GUI programs to it will I be able to get updates until 2015?

This confusion is probably why they made it so all LTS releases are 5 years. :-) Since the desktop version of Ubuntu is simply a collection of packages, I would have to guess that that means those packages will not be supported after 4/2013. This would be all of the packages that make up the GUI, i.e. Gnome, etc. So, if you want to use a GUI with your laptop, I think you will be end of life after 4/2013, regardless of whether you install Ubuntu with the Server, Desktop or Alternate CD.

On a side note, have you tried Xubuntu? It uses a different Window manager (Xfce), so it is much faster on older hardware. It uses the same core as Ubuntu, so you still have all the great advantages of using Ubuntu, and it follows the same release schedule.


desktopcouch-ubuntuone is no longer needed and is going to be removed in the next version. It is not used for file synchronization, but for database synchronization. It is being replaced by something else in future versions of Ubuntu One.

In other words, you don't have to worry about that error message.


Linux/Ubuntu wireless adapter for desktop

I suggest that you get a USB wireless device. However, there are several, mostly Broadcoms and a few Mediateks, that won't work no matter what we try.

You can get some guidance as to known working devices here:https://ubuntuforums.org/showthread.php?t=2309068 and here: https://www.thinkpenguin.com/catalog/wireless-networking-gnulinux


nvidia-prime not installable and NVIDIA card not detected under Ubuntu12.04

This is a job for the graphics drivers ppa although your distro maybe to old, 14.04 is well supported for cuda


After Nvidia drivers installed, GUI not starting

Press Ctrl+Alt+F2 to deactivate the interface and run:

sudo startx


subdownloader error: Unable to download subtitle

Here is the workaround as I have been facing the same issue for many months now, and no new fixrelease has come since.

Follow the steps from Filip here:
https://bugs.launchpad.net/subdownloader/+bug/790753/comments/19

in order to patch the GUI of our favorite tool.

Very simple:

leafpad /usr/share/subdownloader/gui/main.py

(with admin rights)

find the line :

osHttpRequests.download('http://www.opensubtitles.org/en/download/file/%s.gz' %sub.getIdFileOnline(), destinationPath)

and replace it with:

self.OSDBServer.DownloadSubtitles({sub.getIdFileOnline():destinationPath})

Save and Enjoy
Cheers.


Ubuntu 14.04 with Nvidia 840M Crashes After Opening Video in VLC

Video driver is not installed. Proprietary driver from Ubuntu 14.04 repository does not support this adapter. I suggest upgrading kernel and installing the driver this way. Run in terminal

sudo apt-get install linux-generic-lts-vivid

Then reboot. Run in terminal

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-346 nvidia-prime nvidia-settings
sudo add-apt-repository -r ppa:xorg-edgers/ppa

Reboot again.


Unable to reinstall unity-2d on Ubuntu 14.04 desktop LTS?

Unity-2d is not supported anymore since Ubuntu 12.04
So I doubt that you can install it on 14.04....
You will need to install another desktop such as mate-desktop,lxqt,lxde,kde,xfce...

with Ubuntu 1604, you can use mutiny and configure the desktop to look like unity (look alike but not the same)
Check this post

Update Info :

There is a way to configure Ubuntu in order to have xRDP connecting to the Unity Desktop.  You need to install the TigerVNC package instead of standard vnc package.  Full instructions guide can be found at this location

Hope this help


The user account information is stored in /etc/passwd in a default Ubuntu installation. Password information is in /etc/shadow and group information in /etc/group.

None of these files should be edited by hand.


In context of Docker images, which Ubuntu image version fixes the CVE-2018-10000 issue with Glibc?

Each CVE is tracked as a Launchpad Bug with a predictable URL. Here's the Launchpad bug for that particular CVE:

https://launchpad.net/bugs/cve/CVE-2018-10000

This particular issue does not seem to affect any Ubuntu software, so no work is planned.

If you have further questions on Ubuntu Security, ask them here on AskUbuntu first. If you can show that the Ubuntu Security Team was demonstrably mistaken in an assessment, then contact them at #ubuntu-security or #ubuntu-hardened on Freenode IRC.


Ubuntu 14.04 detects Vodafone 3g dongle, but fails to connect

Seems like there is some problem with the driver of your modem. I have tried a script called Sakis3G to get some unsupported dongles working in Ubuntu. This should work just fine for your dongle too. Download it from here: http://dev.oikyolinux.com/files/sakis3g.7z Please see the read me file included in the 7z archive if having problem executing the script.


How to fix fuzzy spotify icon in the icon tray?

Based on asymptotically's answer I have created a simple shell script to fix the Spotify icon.

To install the script run:

$ sh -c "$(wget https://raw.githubusercontent.com/faviouz/fix-spotify-icon/master/install.sh -O -)"

To fix the icon run:

$ fix-spotify-icon


Replacing Nautilus with Nemo: wallpaper problems

For me these steps solved this problem.
Source: http://www.webupd8.org/2012/12/how-to-install-nemo-file-manager-in.html

Add nemo to Startup Applications, just run the following command:

sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/nemo-autostart.desktop
Launch Startup Applications and uncheck Nemo
Log out and log back.


as far as i can determine correct answer is
$ sudo cryptsetup luksAddKey /dev/zvol/rpool/keystore

to add new password
$ sudo cryptsetup luksRemoveKey /dev/zvol/rpool/keystore

and to remove old one


libvirt networking problem: Host cannot access Internet (while guests can!)

To start with, /etc/network/interfaces defines a br0 interface but not an eth0 interface, so you would of course expect ifup eth0 to fail.  You could try to ifdown br0; ifup br0.  You would expect to see the default route on your system going out br0 and not eth0, given your configuration.

eth0 should not have any ip address assigned.

Note that bringing the bridge down and up may interrupt internet access from your virtual machines such that they need to be restarted (I'm not sure if it will or not but I'm not able to test that at the moment).


The way I did it, was to just copy the tox folder -  ~/.config/tox/ - save the folder in the cloud or USB drive, And after reinstalling your Ubuntu(/Linux) machine, or you have a new one, copy the same folder in the same directory(~/.config/tox/)

At startup you will get a message window asking which profile to load, select your profile name, and then check the 'Load at Startup' option.

According to the tox wiki - for now - this is the recommended workaround.

  "Importing through GUI was possible before, but due to a regression one has to do it manually now." - users:import_export - Tox Wiki


ttf-mscorefonts-installer fails to update. Unistall/ install

This issue was solved here:
https://askubuntu.com/a/667542/530893

To quote the actual solution:

sudo rm -rf /var/lib/update-notifier/package-data-downloads/partial/*
sudo apt-get --purge --reinstall install ttf-mscorefonts-installer


Change the bandwidth control on rsync while it's running

If the rsync is on a different machine to everyone else you can very simply change the bandwidth of that machine at any time with the script wondershaper from the package of the same name. (It uses the tc command to do the work. tc can shape traffic for a given ip address, but its a bit heavy going.).

Usage: wondershaper [device] clean|[upload speed in Kb/s] [download speed in Kb/s]


Realtek RTL8723BE weak wifi signal and disconnects

And finally I found a solution that works for me (checked on 2 laptops of same model with different versions of Ubuntu: 16.04LTS and 17.04)

Open Terminal, and enter:

iwconfig

And note down the wl* number.
Download the new driver rock.new_btcoex from Github and unzip it to Desktop folder.
In Terminal, now run these commands:

cd Desktop/rtlwifi_new-rock.new_btcoex
make
sudo make install` type your ubuntu password
sudo modprobe -rv rtl8723be
sudo modprobe -v rtl8723be ant_sel=2
sudo ip link set wl* up` use your **wl* number**
sudo iw dev wl* scan` same

To make the settings permanent, use this command:

echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/50-rtl8723be.conf

Note: After your OS (Kernel) update, you need to apply these settings again to get a strong signal.


Ubuntu 14.04 keeps freezing and does not take any inputs

Well, re-installing the latest driver would the first step of course. First try using the Software & Updates to install the latest proprietary and preferably tested driver.

Open the Ubuntu Software Center, move your mouse to the top, from the Edit menu, choose Software Sources . Click on Additional Drivers tab, wait for it to load the information and choose the latest proprietary for the NVIDIA. For me (GeForce GT 730) at this time it shows:

Using NVIDIA binary driver - version 346.59 from nvidia-346 (proprietary, tested)

Click on Apply and wait for it to install it. If your screen keeps crashing during this process, then you won't have a choice other than trying to install it from terminal.


wifi problem on suspend - hardware disabled

Check if you have a different driver available for your Wi-Fi device.

Settings >Software and Updates >Additional Drivers

Usually the first device listed will be your Graphics card (GPU). If at all a different driver is available for your Wi-Fi device, then it will show up there as a second device after the GPU, with radio buttons indicating which driver is currently in use and the other available drivers.

Choose the non selected driver and apply. It might download the necessary files (you will need a working internet). Apply and reboot.

Check if the problem is fixed.


First, you don't need to worry about such details unless you're designing filesystems, filesystem utilities, etc.; system tools like mkfs create the filesystems you ask in the appropriate way, no matter what the filesystem type. (If they don't, then that constitutes a bug.)

If you're asking about this out of curiosity, then you've pretty much answered your own question: If the first sector must be reserved, then the number of bytes reserved depends on the sector size of the device under discussion. If the data structure, such as a filesystem, uses bytes rather than sectors as its primary unit of measure, then it will either reserve enough bytes to cover all likely sector sizes or risk damage should some tool overwrite its entire first sector on a disk with over-512-byte sectors.

One more point: Although reserving the first sector (or sometimes several sectors) for boot loader code is common, I don't believe it's universal -- certainly not when you count non-filesystem partitions. An extended partition, for instance, stores partition data in its first sector. Although there's room there that's unused, a partition boot loader that used the whole of the first sector would trash an extended partition. I've heard that putting a boot loader in a Linux swap partition will cause problems, but I've never investigated this in any depth.


I will answer my own question, maybe it will help somebody in the future. After many trial and error, it seems that disabling VT-x option in UEFI options seem to solved the freezing.

So far running a few days without problems.


VPN connecetd but unable to access network/ browse local site

To enable IPv4 forward. Change /etc/sysctl.conf file, add forward rule below.

# sudo nano /etc/sysctl.conf

Uncomment the line

net.ipv4.ip_forward=1

Then reload the configuration

sudo sysctl -p


Why is my /etc/hosts file not queried when nslookup tries to resolve an address?

nslookup only does proper DNS resolution, which is significantly different from the Name Service Switch subsystem that your other applications use; that is to say nslookup ignores /etc/hosts and mDNS.

To test local resolutions like that, use something that uses NSS. ping <hostname> for example. Here's a simple demo based on an /etc/hosts entry on my network.

$ nslookup bert
Server:     8.8.8.8
Address:    8.8.8.8#53

** server can't find bert: NXDOMAIN

$ ping bert
PING bert (10.10.0.4) 56(84) bytes of data.
64 bytes from bert (10.10.0.4): icmp_seq=1 ttl=64 time=0.352 ms
64 bytes from bert (10.10.0.4): icmp_seq=2 ttl=64 time=0.407 ms

Note that there are DNS servers and proxies that can factor in an /etc/hosts file. In these cases, nslookup might return a result from a local source.


How to force USB to use same device ID instead of new one?

It doesn't seem possible to force a particular ID. You may instead find it useful to dynamically identify the device ID you want to bind your script to.

devid=/dev/bus/usb/$(lsusb | grep <yourdevice> | cut -d":" -f1 | cut -d" " -f2,4 --output-delimiter="/")

^ where <yourdevice> is something appropriately unique to identify your device.

You would then be able to use $devid where you previously used /dev/bus/usb/001/053.


The main issue here is the lack of a proper HTML skeleton.

For HTML5:

<!DOCTYPE html>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Title Page</title>

Hello World

           Fresh I'm king of the world do Vanilla Ice, Dolly the Sheep the Matrix Beavis and Butthead Umbro shorts tying your sweater around your waist.
           Accent braids Ken Griffey Jr Honda Accord in Courtney Love I believe I can fly.
           Tamagotchi Madonna hottie yo quiero Taco Bell Pontiac Trans Sport adipiscing.

CSS and JavaScript not included (and not necessary to render plain text).

Check this out:
HTML !DOCTYPE Declaration


Installing Windows 7 alongside LVM - encrypted Xubuntu

You can install W7 without lose any data... just resize the Xubuntu partition using Disks utility and creating a new NTFS one.

Once you install W7, probably you won't be able to boot Xubuntu; don't dismay: this can be fixed with EasyBCD (http://neosmart.net/EasyBCD/) adding a new entry for Xubuntu (selecting GRUB2) and aiming to the ext4 partition where Linux is installed, and you can even decide what OS will be the default option. Don't be afraid, just make a backup of the MBR... EasyBCD allows you to. It have a very intuitive interface. You won't have any problem to use it, I hope.

It can happen, too, that some crazy future update on Xubuntu restore de GRUB2 original boot... then you won't be able to boot Windows; once again, don't dismay: this can be fixed using Lilo...

sudo apt-get install lilo
sudo lilo -M /dev/sda mbr

Of course, you must be sure that your hard disk is /dev/sda.

Abraham Medina.


sudo apt dist-upgrade will only upgrade your system packages keeping it at 18.04.
In quick answer - No.
You should remain on Xubuntu 18.04 LTS if you need to use x86 or 32-bit, as it will be fully supported until April-2021 (3 years from release, 5 years applies to main Ubuntu only)
Xubuntu 18.10 was released in x86/32-bit, as was Lubuntu 18.10.
Xubuntu 19.04 and Lubuntu 19.04 were also producing 32-bit or x86 (i386/i686) ISOs during the start of the development cycle for disco, but were only available in the alpha phasewith both stopping December 2018 (Xubuntu early Dec-2018, Lubuntu just prior to Christmas-2018).
The upgrade path to 19.10 was stopped prior to 19.10's actual release, so whilst it was possible to release-upgrade during the development cycle, the infrastructure that created the packages was being turned off (then turned on again for specific packages only), and it made no sense to be running 19.10 on x86. No system packages exist for 20.04, outside of x86 packages required for specific packages.
I'll suggest you read these posts for more information.
https://discourse.ubuntu.com/t/intel-32bit-packages-on-ubuntu-from-19-10-onwards/11263
https://ubuntu.com/blog/statement-on-32-bit-i386-packages-for-ubuntu-19-10-and-20-04-lts


How can I assign Ctrl+Alt+Delete to shutdown dialog?

This can be achieved by adding a new custom keyboard shortcut.

Disable the current Ctrl+Alt+Delete shortcut

Select the keyboard app from the dash

On the shortcut tab change the current shortcut of logout to something else, say Alt+Delete.

Then click on custom shortcut and add a new shortcut.

Enter Shutdown in the Name field and /usr/lib/indicator-session/gtk-logout-helper --shutdown in the Command field.

Click apply and assign the shortcut (Ctrl+Alt+Delete)


I fixed this problem on a lubuntu 18.04 just doing a upgrade:

sudo apt autoremove
sudo apt update
sudo apt upgrade


Install Epson ET-2650 printer, remote via Samba

Try downloading and installing the driver from the Epson Download Center.


Is there a simple HowTo for getting Ubuntu and a browser working on an old PC?

If the computer is old and you just need it for browsing, I will opt for a lightweight version of Ubuntu, like Lubuntu or Kubuntu.
The os is installed with an internet browser, so no need to extra installation.
The how to is

1- Download Ubuntu/lubuntu .iso file from Ubuntu website.

2- Burn it on a CD

3- put the CD in the old machine and reboot.

4- select "install"

It will probably delete the old data in the PC, so copy the needed data before proceeding.
It will take care of formatting and other issues.

What you really need is just a CD with Ubuntu.


Why Ubuntu doesn't load settings from my .bashrc/.profile for apps not started from bash?

Checkout my other answer here, I'm using .pam_enviroment and .profile/.bashrc for a global setup.


How can I find a bug reported by the bug reporting tool?

If you have an account for Launchpad, then open the Launchpad site in your browser, login and click user name

After that, click the Bugs link and All related bugs on the right hand site


Failed to download repository information due to missing CDROM

Run "Software & Updates" and  uncheck checkbox near "Cdrom with Ubuntu"


The only way to do this is to deny access to sudo for those other users.  If you have multiple people with sudo aka admin privileges you can't restrict access to sudo/root and are better off NOT keeping this file on the server.  Especially if you don't trust everyone with administrative privileges on the system from not snooping your data.
Permissions to run anything as sudo is essentially equal to having root access but without the root account being unlocked.  root has access to everything.  You won't be able to stop that access.
Short of removing sudo from those users or adding special sudoers lines to define exactly what commands can be run via sudo by those other sudo-capable users (and nothing else, in this sense 'restricted' admin rights since they can't do just anything with their sudo), you have no options to protect against sudo / root viewing the file.

Other alternatives would be encrypting the file locally on your system BEFORE uploading, such as with gpg encryption or such.  In those cases, even if they can access the file, they can't edit or view the contents because they're encrypted, and won't have your decryption codes necessary to read the files, even as root.  However that's more complex and a bit outside the scope of the question you asked.


Bitnami says 'no enough permissions to bind to the port...'

BitNami installers are self-contained and independent of your system. The BitNami WordPress stack will install MySQL and Apache servers in your installation directory. If you already have a MySQL server running, you can configure the installer to use a different port, for example 3307.

I hope it helps.


"invoke-rc.d: initscript freeradius, action "force-reload" failed." while configure freeradious-mysql

i did the following:
editing the /var/lib/dpkg/info/freeradius-mysql.postinst file with gedit

sudo gedit /var/lib/dpkg/info/freeradius-mysql.postinst

on almost last of the script you'll find the following:

        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
     invoke-rc.d freeradius force-reload
    else
      /etc/init.d/freeradius force-reload
    fi
;;

remove the command 'force-reload' with 'restart', as following:

        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
     invoke-rc.d freeradius restart
    else
      /etc/init.d/freeradius restart
    fi
;;

then do sudo dpkg --configure -a, and finish


Failed to parse 'usr/share/mime/packages/gnuradio.xml'

Delete /usr/share/mime/packages/gnuradio.xml.
Symlink gnuradio-grc.xml to gnuradio.xml:

sudo ln -s gnuradio-grc.xml gnuradio.xml


Upgrade from 18.04 to 18.10 with full encryption password not recognized anymore!

The only way to revert a system if you don't have the password is to reinstall using a backup.  In fact, even if you have the password that is the only practical way to go backwards.  Before you try that there are some things worth trying:

The best guess hope is that the keyboard on your boot screen is somehow messed up.  In this case probably the easiest way is to

Make a new bootable USB stick
Boot into live system mode (do not attempt to install)
Attempt to mount the drive from your system
Enter the password you know
Assuming this works, now change to an encryption password with only standard lower case letters
Reboot and use the new encryption password which should work on most keyboard layouts (except ones like the German ones with letters in different locations)

In the case that the password still doesn't work in live system mode then the most likely explanation is that your old system had a different layout during boot.  In this case, you can experiment with setting different keyboard layouts in the live system and entering your password as you would have normally.  Definitely try EN-US and EN-UK but also look at the ones that were next to your normal keyboard in the list during installation.

If you have really valuable data that wasn't backed up, unfortunately it is likely lost, however you can consider taking a low level image of the whole disk or just replacing it and keeping it.  This will allow you to try again later.


Perhaps the option will be unlocked with a bios update, or maybe there is a bios update for the graphic card itself (normally called Vbios)?

It would be necessary to get the bios from the manufacturer it self, rather than nvidia, for instance here is a Vbios from asus for an nvidia 560 (I don't know if is the right one, you MUST be sure you have the right one before installing any BIOS, manufacturer model and all)

support


How do I install mosml on Ubuntu 16.04 LTS?

It seems the most recent package available in the PPA is for trusty and the last release was 2.10.1 on Aug 28, 2014. So it appears that your options are to downgrade to 14.04 and use the available deb package or take advantage of what is currently available by downloading the source and compiling it after modifying as suggested in the tarball to match your system.

The Moscow ML home page
Moscow ML library documentation
The source files can be downloaded from here

According to the info in the tarball you can install it as follows:

(1) For a personal installation, move to your home directory, and unpack
     the Moscow ML distribution using

     `gzip -dc linux-mos20bin.tar.gz | tar xfv -`

This will create a directory ~/mosml with the following subdirectories and notable files

 mosml/              readme, install.txt
   bin/          mosml, mosmlc, mosmllex, mosmlyac, camlrunm,
   copyrght/     copyright notices
   doc/          manual.pdf, mosmlref.pdf, mosmllib.pdf, ...
       mosmllib/ HTML-documentation of the Moscow ML library
   examples/     a few example programs
   lib/          bytecode files, basis library units,
         and the dynamically loadable libraries
   tools/        mosmldep, Makefile.stub

(2) Edit the variables stdlib and mosmlbin in the scripts
      mosml/bin/mosml &  mosml/bin/mosmlc &  mosml/bin/mosmllex to match your system (you may find find useful for this step.

Note: I have not tested this at this point in time, but I assume that this will get you moving n the right direction. If you get stuck, let us know exactly what went wrong and we will attempt to help you resolve the particular problem you ran into.


Open a Terminal by hitting Ctrl Alt T and run the following commands:

sudo apt-get install csh
cd
wget http://opendtect.org/relman/OpendTect_Installer_lux32.sh
chmod a+x OpendTect_Installer_lux32.sh
./OpendTect_Installer_lux32.sh

This will install the C shell, which is needed to run the OpendTect installer.

Then the installer is fetched and saved to your home directory, marked as executable, and executed.


Disabled Ethernet NIC Keeps Enabling Itself

It could be because network manager is handling your interfaces. You could try disabling the network-manager service, as its primary benefits are its portability (i'm asssuming your server isn't going to be moving often).


Juju bootstrap fails to start network on local environment

It looks like you might already have a dns server installed on that machine which is preventing dnsmasq from binding to the needed port/interface. Dnsmasq provides dhcp/dns to the containers on the bridge network. A local caching proxy that binds to all interfaces/ports may interfere with it.


Go to System Settings -> Displays -> Scale for menu and titlebars -> Move the slider up - may be as much as 2, adjust for your liking.

After doing this you may need to readjust the font size.


(NEWB) Installed Ubuntu from LiveCD, now what?

Maybe GRUB wasn't isntalled correctly, or to the right drive/partition. Trying the Boot-Repair program might fix it https://help.ubuntu.com/community/Boot-Repair

And does your computer also have Windows 8 / 8.1? This question might be helpful too, though you've already installed Ubuntu there still should be some booting info too... Installing Ubuntu Alongside a Pre-Installed Windows with UEFI


A tool to measure signal strength of wireless

On the command line you can use iwconfig and look for "Link Quality" and "Signal level" values.

When walking around with a netbook I often use this command which updates the output of iwconfig every second:

watch -n1 iwconfig


how to browse securely from behind home router using openssh?

There will be always someone looking at your traffic (unless you will use tor). If it will not be your home ISP, it will be your work ISP or IPS for your server in some server-housing company. It is mostly statistical information about traffic to optimize the links, but they can also search for patterns, for example copyrighted content.

You can encrypt point-to-point communication to prevent this happening using ssh and for example SOCKS proxy, but when you will leave this link, you will get to the internet and it can be only on different place. Later on internet you will need to use something that servers support and it is usually HTTPS (there is a plugin that tries to enforce it, called HTTPS Everywhere)


Managing space between smaller system drive and a larger extension drive

Move /home, /var and/or /usr folder to external drive

To free up some space, you can move your /home, /var and/or /usr folder to your 1TB drive:

Boot into an Ubuntu live CD/USB
Shrink the other partitions on the 1TB disk to make space for the new partitions
Make new partitions for /home, /var and/or /usr, depending on your preference. They should be of type ext4
Mount your root partition on the 150GB drive and the new partitions you have created somewhere
Copy over the files from your root partition with rsync -avz SOURCE DESTINATION, e.g. rsync -avz /mnt/root/usr/ /mnt/usr, and so on
Update /etc/fstab to include the new partitions. For example:

UUID=b6cf2a0d-2174-4c88-98fc-5502c5630498 /usr ext4 defaults 0 2

Make sure you change the UUID (UUID=b6cf2a0d-2174-4c88-98fc-5502c5630498), mountpoint (/usr) and filesystem (ext4) depending on your configuration.
Reboot back into Ubuntu, and ensure that your setup works.
If all is fine, delete the old files on your 150GB partition:

sudo mount --bind / /mnt
sudo rm -rf /mnt/usr
sudo umount /mnt

where /usr is the name of the folder you moved to a separate partition.


First check syntax of all configuration files in /etc/dovecot/ and /etc/dovecot/conf.d/.

Then check /etc/dovecot/conf.d/10-ssl.conf for ssl_cert and ssl_key paths. Check the files that are given, If they're not exist, use mkcert.sh to create ssl key and certificate. You can find all information here. Download dovecot-openssl.cnf and modify values. Download mkcert.sh and run it.
After that change 10-ssl.conf:

ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem

Restart dovecot.


Is there a specific way to extend battery life in a Toshiba netbook?

There are many people reporting success with Jupiter.

Features

Automatically adjusts CPU mode for AC or battery
Automatically tunes the kernel for AC or battery
Automatically tunes hardware for AC or battery
Supports Asus Super Hybrid Engine (SHE)
Remembers and applies last selected configuration
Fast and efficient, low resource utilization
Easily Customizable

  http://www.jupiterapplet.org/

  Jupiter: http://sourceforge.net/projects/jupiter/files/

  More info:
  http://www.webupd8.org/2010/07/jupiter-ubuntu-ppa-hardware-and-power.html

  https://launchpad.net/~webupd8team/+archive/jupiter


This cannot work. The nested command will run first. echo works by accident because it will put \3 as replacement pattern which happens to be what you want in this case (= output the original value).
Not sure what you exactly want, maybe you can try grep and xargs:
grep -Po 'ansible_password: \K"[^"]*' sample.yaml \
| xargs -n1 ansible-vault encrypt_string --vault-password-file ~/password.txt --name 'ansible_password'

However, you might want to use a proper yaml parser instead of grep or  sed.


the only thing is you have to do it manually,:). open your GVim and then choose Edit and select change font option.

For more information & Credit : wiki vim


Where can i download Video(Graphics) and Audio driver for my Laptop with NVDIA Graphics Processor

Additional drivers can be installed via the Driver application as briefly described here:

How do I install additional drivers?

In the latest Ubuntu version:

Open System Settings
Click on Additional drivers tab

If there are additional drivers available for your system, you'll see them here.

Install the driver(s)


Windows can not open Extfs partitions, only fat and ntfs. So in Windows, you can not see any file on the Ubuntu partition. However, in Ubuntu, you can open most of partitions types, and so you can see the Windows files.

If you don't have the Grub menu at startup to choose between Ubuntu and Windows, the Ubuntu installer was not able to write the bootloader in the MBR. It may be because of the UEFI bios. You may find the solution here: https://help.ubuntu.com/community/UEFI