Can not connect to internet and turn off computer after interrupting system update

I've interrupted an update (sudo apt-get dist-upgrade or an update during shut-down) multiple times by using Ctrl+C, but I've never tried doing a hard shut-down during an update, so I only see 2 solutions:

This is the moment to get your system backup out of the closet and restore your system.  I did this just yesterday and doing the restore and re-install of all the updates since the last restore took me under 40 minutes.
The only other way of getting out of this mess, is to keep your /home and delete all other partitions and re-install your OS...
You might try (no guarantees given) to boot into the previous kernel and try an update from there...

Sorry to be the harbinger of bad news


So I continued my research.

For testing purposes I've installed gnome3 from the console. After that I've noticed a mistake I've made. I've forgotten to test the Ubuntu 2D desktop enviroment.

So I did it quick, and Ubuntu 2D works perfect. Then I've tried gnome. Gnome3 and Gnome classic do the same thing as the Unity desktop. Namely freeze. So I've tried Gnome classis(no effects) and of course, that works.

So conclusion:
Unity/Gnome/Gnome Classic - produce the same problem
Unity 2D/Gnome Classic (no effects) - work flawless

Then I've decided to reinstall my ati drivers using: What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD?
The outcome remained the same.

Of course I've confirmed if the drivers were working using: "fglrxinfo"
And they are working.
Then I've decided to try out some games. And the outcome: the games work 100% no problem.

At this point I'm done with trying, and accepted the fact, that this is the best thing I can get, at this point in time.

Final thoughts.

The first time Unity came out, the problem stuck at the drivers. No games would work, all would freeze. Only Gnome classic (no effects) worked at that time. I'm happy to see, that this is some form of improvemen. Because altough I can't use the defauld desktop, I can use Ubuntu the way I want, well at least to this point in time. Video card demanding thigs seem to work correctly, desktop is usable. The problem I have is, that in this state Ubuntu isn't as user friendly as it wants to be. You can't give somebody an Install disk and rest easy, because you know, that there will be something wrong. In my opinion, Ubuntu takes steps forward, but unfortunately it also takes steps backward. Well the final test will of course be, steam and Left 4 Dead 2, if it really comes out.

Thank you for your time.


Could you

Could you show an example picture ?

How did you make/test it ?

At here

Editing the neon-plasma-glow-by-FRUiT plasma/desktop theme /widgets/panel-background.svgz picture file. Disabling the object fill -> full transparent panel.

I can't see panel shadows.

Take 2

KDE documents:

http://userbase.kde.org/Plasma/TweakingPlasma
http://techbase.kde.org/Development/Tutorials/Plasma/Theme

From the Kubuntuforums:

http://www.kubuntuforums.net/showthread.php?56120-Customize-plasma-desktop-theme

The original Air theme (1), Transparent (2), Without the shadow (3).

1) Copying the default plasma theme (Air) from the /usr/share/kde4/apps/desktoptheme/default to the ~/.kde/share/apps/desktoptheme/transparent .

2) Editing the ~/.kde/share/apps/desktoptheme/transparent/metadata.desktop. Changing the theme name to the Transparent

3) Editing the ~/.kde/share/apps/desktoptheme/transparent/translucent/widgets/panel-background.svgz

4) Changing the Fill from the Linear gradient to the No Paint. The result is a transparent panel with the shadow (2)

5) Removing the shadow. Picking the shadow elements and deleting them. The result is a transparent panel without the shadow (3)

6) If you want to use the partial/mini panel edit the mini elements.  Change the Fill to the No Paint.

The panel svg image is a bit bare....


Open a terminal with CTRL + ALT +  T shortcut and type the below command and then hit Enter, it should fix the problem.

gsettings reset org.gnome.desktop.wm.preferences button-layout


Create a 'toggle keyboard shortcut' in ubuntu gnome 17.04

Yes, it is possible. First you need to identify your touchpad. Run xinput list (you might have to install xinput with sudo apt install xinput first). On my system, that shows:

$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=16   [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                     id=12   [slave  pointer  (2)]
⎜   ↳ Logitech M325                             id=10   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=15   [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                     id=11   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Integrated Camera                         id=13   [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Logitech USB Receiver                     id=18   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=17   [slave  keyboard (3)]

So, my touchpad is called SynPS/2 Synaptics TouchPad. Find out the name of yours and then modify this script accordingly:

#!/bin/bash

## Change this value to whatever your touchpad is called
touchpad='SynPS/2 Synaptics TouchPad'

status=$(xinput  list-props "$touchpad" | grep "Device Enabled" | gawk '{print $NF}');

if (( $status==1 )); then
    xinput -set-int-prop "$touchpad" "Device Enabled" 8 0
else
    xinput -set-int-prop "$touchpad" "Device Enabled" 8 1
fi

Save that script as ~/bin/toggle_touchpad.sh and then use your desktop environment's GUI to assign a shortcut to it. The shortcut will now run the script and toggle the touchpad as desired.


"can't access the server_dir" error when trying to share a directory

Set few permissions on.. (related to firewall)

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F


How to disable notifications using commands?

As an example, following commands will disable and enable Firefox notifications:
gsettings set org.gnome.desktop.notifications.application:/org/gnome/desktop/notifications/application/firefox/ enable false
gsettings set org.gnome.desktop.notifications.application:/org/gnome/desktop/notifications/application/firefox/ enable true

To setup your own commands, install dconf-editor, which exposes settings for the entire desktop in a gui. Navigate to /org/gnome/desktop/notifications/application/ to see all applications for which notification settings are in effect. If you move into the firefox folder and then highlight the setting enable, you can press Ctrl+c to copy the path of that setting to the clipboard. Prepend that with gsettings set , and you have created a command line that can set that setting from the terminal.


How can I set a device label for a devices in the Nautilus sidebar?

Issue following command to know the correct drive name:

sudo fdisk -l

My USB is /dev/sdc1. If you're not sure, remove the USB and issue the command again and compare which /dev/sdc is missing.

To change the label use this with USBDisk being the name you want the drive to have:

sudo e2label /dev/sdc6 USBDisk

OR do it with the GUI:

Install gparted

sudo apt-get install gparted

Open gparted and make sure the drive you want to label is unmounted, if it's mounted you can unmount it in Gparted, right click on the drive and select unmount.

To label a drive right click on the drive you want to label and select Label, enter the desired label.

and click apply (the green V) and that's it


Have you tried going to "Additional Drivers", and activating the post-release updates? It contains the NVIDIA driver 295.49, I believe -- the one for that card.


I have the exact same issue and error message. The same applies also to Chromium on Snap which gives a similar error message and does not start:
daniel@daniel-ThinkPad-X1:~$ chromium
[18129:18129:1027/191918.020804:ERROR:browser_main_loop.cc(1426)] Unable to open X display.

This issue is also posted on askubuntu - Link
It seems that this is a general issue affecting all Snap apps running on the new Ubuntu 20.10 on Wayland - see Link 1 and Link 2
As of now the only workaround seems to be that you avoid Wayland (which also has it's disadvantages). On the GDM Login Screen you can click on the gear icon and select "Ubuntu" rather than "Ubuntu on Wayland".
I hope that helps until this issue is fixed.
Best regards,
Daniel


Command line method

sudo mlabel -i /dev/mmcblk0 ::{label}

where {label} is your name. Mind the device name: it probably will be mmcblk0 but it could have another name. See for instance sudo fdisk -l for the device name.

You might need to format it before you can label it (init :: sector size (0) not a small power of two is an error you might get indicating you need to format it).


Configuring aluminium Mac Japanese keyboard on 15.04

To type the alphanumeric symbols as they appear on a Japanese keyboard:

Open Language Support
Check that Japanese is installed
Under Keyboard Input Method System, select fcitx
Log out and back in
Open Text Entry
Click the + button
Scroll down and select Mozc (Fcitx)
Click Add
An orange あ should appear in the system tray. (If it doesn't--it might
be a JP or EN icon, for example--click the language icon and select
Mozc.)
Switch to alphanumeric (i.e., romaji) input by toggling the
全角 key or by clicking on the あ, selecting Input Method, then Direct
Input.

If, on the other hand, you want to type all the alphanumeric symbols as they would appear on an English (e.g., US) keyboard by memory, you can just install that keyboard and type regardless of what symbols are printed on the keys of the Japanese keyboard.


How can I save my mouse sensitivity in 16.04?

I'll answer the numbers part: The first number is for acceleration and the second is for the threshold. From man xset:

By default the pointer (the on-screen representation  of  the  pointing
device)  will  go  `acceleration' times as fast when the device travels
more than `threshold' mickeys (i.e. would-be pixels) in 10 ms,  includ‐
ing a small transition range ...


Setting up a user account for a web server

When you set up lighttpd with the normal ubuntu packages (apt-get install lighttpd),
then ubuntu uses the owner/group www-data and adds this user automatically for you.

In /var/www you can use your username as owner for the files and directories, but change the group to www-data.

sudo chown -R yourusername:www-data /var/www


You need to connect the TV via HDMI, then select it via the display applet in system settings.


Ok, this one seems interesting :-)

First, Ubuntu 16.04.x is not EOL...It's a LTS release which will be supported till 2021....(but I do agree It's an old Ubuntu release and it might be time to move to recent one....like Ubuntu 20.04 releasing today)

Second, concerning your issue...hmmmm

Option 1 - Keep old xrdp package and connect to Mate Desktop

So, the problem seems related to the fact that the mate-session is not starting properly in remote session....

Have you tried to login locally on the machine using the mate-session ?
If this is not working, re-install the mate-desktop software on Ubuntu. Ensure that mate desktop repositories are available on your Ubuntu 16.04 mahcine
If this is working, check the file /etc/xrdp/startwm.sh and ensure that at bottom of the file, the line mate-session is present.

Option 2 -  Install a newer xrdp version and use the Unity Desktop

Using previous version of xrdp package, it was not possible to access the Unity Desktop...If you decide to use a more recent xrdp package, you should be able to use the Unity Desktop from the remote session

You can try to use the xrdp-installer-v1.x.sh script to easy and automate the installation of newer xrdp packages on top of Ubuntu 16.04.x and allow you to connect to Unity Desktop.  You can find the script and the instructions on how to use it on this post

Using the script is quite straight forward

Step 1 - Download the script

wget https://www.c-nergy.be/downloads/xrdp-installer-1.1.zip

Step 2 - Unzip it

unzip xrdp-installer-1.1.zip

Step 3 - Mark it as executable

chmod +x xrdp-installer-1.1.sh

Step 4 - Execute the script with parameters to enable your selected options

./xrdp-installer-1.1.sh -h  (for the help)
./xrdp-installer-1.1.sh     (install xrdp using xrdp ubuntu packages )
./xrdp-installer-1.1.sh -c  (install xrdp from sources )
....

As Ubuntu 20.04 is about to be released, expect a new version of the script to be released to fix some minor bugs and include support for Ubuntu 20.04

Please note also that if user A is logged on locally on the PC, the user A will not be able to connect remotely (it will be disconnected after login into the remote session). The user A if connected remotely will not be able to login locally on the machine (login loop). This is a limitation to be aware of

Hope this help Till next time


How to set new JDK home in NetBeans IDE after Java update (NetBeans IDE refuses to start)

To find the variable which sets the JDK home for Netbeans you need to open the config file which sets it (replace <versionNumber> with the version number of your NetBeans, such as 8.0.2 and make sure that you are in the directory which the NetBeans folder is in, this will most likely either be your home directory (to cd to that do: cd ~), or /usr/local/ (to cd to that do: cd /usr/local/)):

gedit netbeans-<versionNumber>/etc/netbeans.conf

And then locate variable called netbeans_jdkhome and set it to the current location of your JDK folder. For example it could look something like this (<username> replaced with your username):

netbeans_jdkhome="/home/<username>/jdk1.8.0_40"

Then save your changes to the config file, and NetBeans should launch with no problem.


How do you change the installation order in Dell Inspiron 3580

You may just need to press F12 as you start up the laptop for entering the Boot Menu and select the appropriate entry. Note that you may need to spam the key to get the timing right.

If you wish to make permanent changes to the boot order, on startup press F2 for BIOS settings and navigate the menu to make the appropriate changes.

However, if there's no bootable device listed in either menu, your installation process didn't install a proper boot flag or didn't overwrite windows's MBR, in which case your question needs more details to be answered.


Hit Alt+Ctlr+T to open terminal and run the respective command of any indicator you want to remove. You can also use Software Center to remove indicators, Just search for the indicator you want to remove.

Session Indicator

sudo apt-get remove indicator-session

Or search for "indicator-session" in Software Center.

Date & Time Indicator

sudo apt-get remove indicator-datetime

Or search for "indicator-datetime" in Software Center.

Sound Indicator

sudo apt-get remove indicator-sound

Or search for "indicator-sound" in Software Center.

Network Indicator

sudo apt-get remove network-manager-gnome

Or search for "network-manager-gnome" in Software Center.

Power Indicator

sudo apt-get remove indicator-power

Or search for "indicator-power" in Software Center.

Messages Indicator

sudo apt-get remove indicator-messages

Or search for "indicator-messages" in Software Center.

Bluetooth Indicator

sudo apt-get remove gnome-bluetooth

Or search for "gnome-bluetooth" in Software Center.


i have tried the apt-get command but it gives the following info . Please help me

Use command sudo apt-get install git and then try again

If that does not work. Open settings go to software and updates enable cannonical software and then exit out.

Use command sudo apt-get install git and then try again


Access to ubuntu based server by web browser with GUI

If you meant sharing the desktop (which will enable you to access remotely)
this post has interesting suggestions
Share Desktop via Web Browser


You may need first to purge the package:

sudo apt-get purge <package name>

then install it:

sudo apt-get install <package name>

with this, the package's conffile under /etc/xdg/autostart/ will be installed as you want.


How can I install Celestia on Ubuntu 18.04.1?

You can install Celestia by compiling sourcecode by following below steps.

Install dependencies and required packages.

sudo apt install qtbase5-dev-tools qtbase5-dev libqt5opengl5-dev qtchooser libglu1-mesa-dev libpng-dev libjpeg-dev libtheora-dev liblua5.3-dev build-essential

Clone Source code from repository.

git clone https://github.com/CelestiaProject/Celestia

Compile Source Code. It will take long time 5-10 mintes.

cd Celestia && mkdir build && cd build
qmake -qt=5 PREFIX=/opt/celestia -o Makefile ../celestia.pro
make

Install Celestia.

sudo make install


dual boot problem. error: unknown command 'drivemap'. error: invalid EFI file path

To fix this, you can try Simply start Ubuntu

Go to Terminal
Use the below mentioned commands,

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

It will ask for the password,enter your password.

sudo apt-get install -y boot-repair
boot-repair &

enter your password again.
Once the installation gets completed, the Boot Repair utility will launch and do a quick scan. Automatically will show you the EFI detected message. Hit OK
After this, Click the Recommended repair (repairs most frequent problems) option. Once done with that.
Restart your computer


The lightning extension is now available from the repositories for 11.04 (natty), 11.10 (oneiric) and 12.04 (precise)

By installing xul-ext-lightning thunderbird will have a calendar available to add events etc.

sudo apt-get install xul-ext-lightning

Note - you may be warned about installing the add-on when launching thunderbird up-to-three times.  Each time, tick the box to install the add-on and click the Restart Thunderbird button.


Strange UI behavior (missing fonts, old GTK look-like windows, ...)

OK, so I have fixed my problem. I tried to reinstall unity using

sudo apt-get install --reinstall ubuntu-desktop

which only downloaded 3k of bytes and after the sudo reboot the problems are apparently gone.

After restart I also got a warning about the mscore ttf font installer and after trying to fix this as well it seems everything is back to normal...

I am almost convinced wine broke something (especially after upgrade from stable win 1.6 to devel wine 2.1).

I hope this helps somebody trying the same wine upgrade and struggling with similar issues afterwards...


GUI changes brightness in wrong /sys/class/backlight/*/brightness

OK, between attempting suggested changes I left a acpi_backlight=vendor on the Grub command line. My command line Grub variables now read

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="splash"

My xorg.conf has the following on Device Section:

Option "RegistryDwords" "EnableBrightnessControl=1"

And everything is working as it should.


Lenovo IdeaPad Yoga 13 - touchpad not working / broken, subsequent keyboard and touchscreen issues

I followed this answer which solved the issue, though I can't scroll as of yet. Weird that this bug is still an issue after 5 years.


The short answer here is that an Android phone will never be recognized as a modem because it doesn't allow the PC direct access to hardware inside the phone. What you get is just a connection to the operating system on the phone which then in turn handles communications with the modem.

If you just want to take advantage of the full-size keyboard on your PC when sending SMS, there are several apps out there for this purpose. I myself use one called Airdroid, but there are plenty of options out there. Details of each app differ, but the basic principle is that the phone runs a small web server which you can access in the PC browser to send messages and do some other things.


I think your problem is here:

local7.* @@remoteserver:514
*.* @remoteserver

You're sending anything tagged with the local7 helper through TCP using the @@ designation.  Below that you're sending ALL data via UDP.  My guess would be that if you commented out the first command you would be fine since everything else seems to be getting there find via UDP.


Are there keylogger viruses that affect Ubuntu?

Yes, there are, but the good news is that it is very hard to get infected, because of the way software installs (you need a root access). If you do not install some dodgy software, you are safe.

What most likely happened in your case, is someone ordered while you were away (and you didn't lock your computer).


Try this.

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo texconfig rehash

which should gives

mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.

Source:Lindqvist


Subbing Duplicate username with a number at the end

One possible approach with grep

From your code,  I see that you're appending to userData file, which means filenames would  increase in their numerical suffix.  So to get next available suffix, we could look through the userData file with grep and merely count number of lines where username occurs:

$ grep -c 'jsmit' users.txt
2

Of course, if returned number is 0, we can just ignore that because it's a new username. Here's a just small script of how that'd work:

#!/bin/bash
read -p "Enter first name: " firstname
read -p "Enter lastname: " lastname
username=$(printf "%s%s" "${firstname:0:1}"  "${lastname:0:4}")

num=$( grep -c "$username"  userData )
if [ "$num" -gt 0 ]; then
    username="$username$num"
fi
echo "$username"

Test with jsmit and jsmit1 already in the file:

$ ./indexed_usernames.sh
Enter first name: john
Enter lastname: smith
jsmit2

However , note that this is a very naive and simplistic way, and assumes no usernames are deleted or missing indexes and are added in linear fashion.

Other things to consider

As I understand  you're building a small user database in shell script. Consider such case: what if we had jsmit,jsmit1, and jsmit2, but then we removed jsmit1. That means the script has to consider which numerical indexes are actually available, otherwise if we blindly increment numbers, that can result in a collision.
Consider capitals vs lowercase usernames. If I enter John Smith and john smith should that result in a collision ? Should you convert all usernames to lowercase first and then handle collisions ?


Thank you for posting this question!   I am using this every day now.

You can find out the version of Ubuntu you are using with this command:

lsb_release -a

Under Ubuntu 16.04 LTS terminator installs like so:

sudo apt-get update
sudo apt-get install terminator

and run by typing:

terminator

vim can be installed from inside the terminator window

sudo apt-get update
sudo apt-get install vim

and run it by typing

vim

It works just fine.  Nothing strange about it at all.

You can open a window to the right with Ctrl+Shift+E

And another just below it with Ctrl+Shift+O

vim works fine in all of them.

Ctrl+Shift+W closes the "current window" which you can select with your mouse.

Also, if you right-click inside a window it gives the options to split it horizontally or vertically or close it.

Here is an example of using vim in the top screen.

/home/pi/.vimrc looks like this:

syntax enable
set number
set ts=4
set autoindent
set expandtab
set shiftwidth=4
set cursorline
set showmatch
let python_highlight_all = 1

Regurlarly I monitor my cron activity by opening one window below

(Ctrl+Shift+O)

wcron

to get my real-time cron log monitor running, as per:

16.04: How do I make cron create cron.log and monitor it in real time?

Then in this example I have wcron in the bottom part, and above it I ran a script that went out to the OUTSIDE data-logger to run an rsync back to the hard drive of the mothership.

This is great.  Makes the Ubuntu experience much more rich on a single monitor.


Installing software when Internet not working

Download the package on the following Ubuntu site:
Ubuntu-Package-Site

Then transfer it via usb,... and install the package the following way:

sudo apt install ./name-of-package.deb

Don't install via the dpkg command, since apt will not recognize it!

If you are using an older apt-get version you have to move the package into the /var/cache/apt/archives directory and install it. Maybe you also have to download other packages to fullfill all dependencies.

BTW: Your internet connection seems to be ok, the card is  up.


Yes, you can. It does not matter if it is a livecd or a bootable flash drive. You just mount your partitions in the live session and then you can start copy the files.

To mount a disk from a livecd you to know 3 commands.

List your partitions, you need to know the device names, like /dev/sda1.

sudo fdisk -l

Mount the disk, lets say that you want to mount /dev/sda1. You dont need to specify filesystem if you use ext file systems.

 sudo mount /dev/sda1 /mnt

Now you can copy your files from /mnt with the filemanager.

And you might need to unmount the disk

sudo umount /mnt


4G dongle (for wireless internet) not detecting unless i restart ubuntu 12.04

There is a solution here. In summary, you have to create a HTML file and put the following code:

form action = "http://192.168.0.1/goform/goform_set_cmd_process" method = "post">
 <input type="checkbox" name="goformId" value="CONNECT_NETWORK" checked style="display:none;">
 <BUTTON name="submit" type="submit"> Connect </BUTTON>
</form>

<form action = "http://192.168.0.1/goform/goform_set_cmd_process" method = "post">
 <input type="checkbox" name="goformId" value="DISCONNECT_NETWORK" checked style="display:none;">
 <BUTTON name="submit" type="submit"> Disconnect </BUTTON>
</form>

After connecting your dongle, open this html page in your browser and click connect.


TL;DR: run

sudo python3 -m pip install --upgrade git+https://github.com/Gallopsled/pwntools.git@dev3

The pip version of pwntools is not up to date, I currently see version 3.12.2 in pip. This old version does not work properly with python3.

The installation instructions suggests installing directly from the git repo: https://github.com/Gallopsled/pwntools/#installation

The fix was done in this commit:
https://github.com/Gallopsled/pwntools/commit/6c794022d50fcb5c9eeafec3cfc5bdf7728f8a5e

I had the same issue, and this question page was the first Google result. Hope it helps someone! :)


Using the Evolution with an external editor?

There is a plugin to do this - you should be able to install the plugin with

sudo apt-get install evolution-plugins*

You then need to enable and configure under 'Edit' > 'Plugins':

You can set this to the command libreoffice --writer which will launch libreoffice --writer, but you could leave it as the default gedit.

Once set up, you simply need to open the compose window, and then open it in the external editor:

You can then edit the message in Libreoffice, and when you save it and exit the message will be in Evolution:

The only real problem with this is as it seems to use a text/plain format, no formatting is saved from Libreoffice.
Works with Evolution 3.8.5

Also, if just want a format when you can use links and formatting, set the type to HTML:

This can include formatting, embedded images, emoticons :D , and also has a thing that can be used to create and test links.


How connect to ubuntu server if it is with internal IP

You need to setup a reverse ssh tunnel

ssh -nNT -R 1100:local.mydomain.com:22 user@remote.mydomain.com

What this does is forwards any connections on port 1100 of the remote server to port 22 of the local system. You'd have to prepare this connection in advance, and it is not as reliable as a VPN.

If you want more reliability (ssh connection might get dropped), go for openvpn.


Re-sizing the partition after installing Ubuntu

The restriction to 4 primary partitions is not specifically a Linux thing but bound to the used MBR partitioning scheme in general.
To overcome this limitation, extended partitions was invented.

So what you actually want is this:

/dev/sda
    /dev/sda1 (Windows Reserved Partition)
    /dev/sda2 (Windows Partition C:)
    /dev/sda3 (Ubuntu SWAP)
    /dev/sda4                       <- Extended partition
        /dev/sda5 (Ubuntu ROOT)     <- Logical  partition
        /dev/sda6 (Ubunutu (HOME))  <- Logical  partition

Some good documentation is found here: https://help.ubuntu.com/community/HowtoPartition


is it possible to change the trashcan to use the shred function?

The simplest way to achieve this would probably be to watch the trash location (~/.local/share/Trash/Files I believe) for files, and use inotifywait to shred files when they arrive. inotifywait can be installed with sudo apt-get install inotify-tools

inotifywait -m ~/.local/share/Trash/Files -e moved_to -rq --format '%w%f' |
while read file; do
    shred $file
done

This snippet will shred any files as they appear in the trash folder. In addition you can use gvfs-trash --empty to empty the trash once the shred is complete, or you can ask shred to remove the file after overwriting, with shred -u.

(This answer was largely based on https://unix.stackexchange.com/questions/24952/script-to-monitor-folder-for-new-files and How do I get the filename from inotifywait events? which may provide some additional information)


how could i turn on backlight keyboard on Lenovo T450s

I got this from wuxmedia in another post for a t520,but it also works for my t450. Enjoy!

echo 2 > /sys/class/leds/tpacpi::kbd_backlight/brightness

Brings it to full light :)


Wifi not recognizing wireless networks in my area

I suspect that the absence of the -22, -23 and -24 firmware blobs is insignificant. As the driver is updated, the firmware is also updated. Not every firmware works with every driver version.

You are already loading the -34 firmware, a very new version.

There are some other steps that I suggest you might check. First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, here is a post that suggests that the -31 firmware might work better: https://bugs.archlinux.org/task/51271 It is easy to try and easy to reverse if it isn’t helpful. We’ll rename the -34 so it doesn’t load and reboot so that the -31 loads and test:

cd /lib/firmware
sudo mv iwlwifi-8000C-34.ucode iwlwifi-8000C-34.bak

Reboot. Any improvement?


Firefox can't access places.sqlite after I tampered with /home/.../.mozilla

Based on my experience, since at least 2015, possibly longer, Firefox and its derivative, SeaMonkey, have methods of detecting "tampering" of places.sqlite and other similar files, and will consider them "corrupted" even if they've been copied elsewhere, the original altered, and the copy copied back.

Fortunately, you can usually save your bookmarks, at least, by renaming places.sqlite (so Firefox can create a fresh one), and then importing your bookmarks from the copy you had in another folder.  This worked for me as recently as 2016, though I can't guarantee that it will still work -- Mozilla likes to change things and make their data as inaccessible as possible (who do they think they are, Microsoft?).


Failed to activate service 'org.freedesktop.systemd1': timed out

This has been anaswered systemd mailing list. Cross-posting the answer

  This bug (https://github.com/systemd/systemd/issues/4444) was fixed in
  systemd v236.

  See if you can use a newer version of systemd.


failing to install sagemath on ubuntu 16.04 LTS

You probably haven't added the ppa needed for it. Do

sudo apt-add-repository -y ppa:aims/sagemath

To add it and then

sudo apt-get update

to update. Then simply typing

sudo apt-get install sagemath-upstream-binary

like before should do the trick.


Is it possible to delete files when another filesystem is mounted on the path?

Not directly, but there is a way around that: mount --bind is your friend:

# Existing directory with a couple files in it
root@nkubuntu1004:~/test# ls testdir
bar  foo

# Mount a filesystem over existing directory
root@nkubuntu1004:~/test# mount -o loop testfs testdir
root@nkubuntu1004:~/test# ls testdir
lost+found

# Bind mount root filesystem to another directory
root@nkubuntu1004:~/test# mount --bind / bindmnt

# Can now get to contents of original directory through the bind mount
root@nkubuntu1004:~/test# ls bindmnt/root/test/testdir/
bar  foo

# Remove a file
root@nkubuntu1004:~/test# rm bindmnt/root/test/testdir/bar
root@nkubuntu1004:~/test# ls bindmnt/root/test/testdir/
foo
root@nkubuntu1004:~/test# ls testdir
lost+found

# Unmount filesystem
root@nkubuntu1004:~/test# umount testdir

# Observe the change having taken effect
root@nkubuntu1004:~/test# ls testdir
foo
root@nkubuntu1004:~/test#

See also man mount -- search for "bind mounts".


You will need to stop their services, not simply kill the process. Here's what you can do:

sudo service avahi-daemon stop

This stops the avahi-daemon.

sudo service network-manager stop

This stops Network Manager.

sudo wpa_cli -i wlan0 terminate

This should kill wpa_supplicant on your wlan0 interface.

sudo kill -9 dhclient_pid

Replace dhclient_pid with the pid of dhclient.

I suggest not executing all of these at once, but instead execute one and then check the channel hopping.


Is There A Way To Disable thumbnails on Ubuntu 12.04?

You could simlink the .thumbnails folder to /dev/null like this:

ln -s /home/username/.thumbnails /dev/null

You could also setup a cron job that cleans the folder out at regular intervals. You could create a script that says:

rm -rf /home/username/.thumbnails/*

Save that as something like clearThumbCache.sh in your home folder. Make it executable with:

chmod +x clearThumbCache.sh

Then in a terminal do:

cron -e

And enter:

*/5 * * * * /home/username/clearThumbCache.sh

That will set the script to run every 5 minutes.

You could also try, in Nautilus, go to Edit -> Preferences -> Preview and set "Show Thumbnails" to "Never" and see if that would prevent anything from appearing in that folder.


solution:

it is ok now... my fault guys ... it works only when the other person accept the call :)))) after the call was estabilished, webcam works perfect :) thank you

webcam: logitech c170


How to run bash script only if passed a day?

I've found an answer:
https://askubuntu.com/a/163570/26790

You can get current timestamp:
now=$(date --date=$(date --iso-8601) +%s 2>/dev/null)

Load timestamp from file:
stamp=$(date --date=$(date -r $stamp_file --iso-8601) +%s 2>/dev/null)

Compare:
delta=$(($now-$stamp))
interval=$(($interval*60*60*24))
if [ $delta -ge $interval ]; then


You can find a list of exiting bugs and a link to report new bugs on the Avengers page of the Ubuntu Wiki.

However I am not sure what the most easy way is to report bugs directly from the phone.


Black screen on nvidia laptop on ubuntu (13.10)

If it is your nvidia card, it should be possible to boot in recovery mode.
Hold down left shift when your computer starts and the grub menu will appear.
From here you can choose recovery mode.


Load Pidgin from the command line and join an IRC channel

I have no idea where to put it, but if you put somewhere sensible:

pidgin --login=NAME

replacing NAME with your IRC login (has to be above the list of any others with the same name), that should do the trick.


xdotool: what are "class" and "classname" for a window?

Under X11 windows have  XWindowdAttributes structure and XClassHint structures  properties from which applications get information about windows. Specifically the last one is responsible for the WM_CLASS property, two comma-separated strings, which can be seen easily via xprop command. For instance, Chrome has

WM_CLASS(STRING) = "google-chrome", "Google-chrome"

These two are documented as:

  A string that names the particular instance of the application to which the client that owns this window belongs. ...
  A string that names the general class of applications to which the client that owns this window belongs. Resources that are specified by
  class apply to all applications that have the same class name....

Thus, for example Hangouts extension for Chrome, has same class name, but different instance name:

$ xprop | grep 'CLASS'
WM_CLASS(STRING) = "crx_nckgahadagoaajjgafhacjanaoiihapd", "Google-chrome"

This allows tools such as xdotool search all windows of particular application type, or specific window instance. For instance, this also can be useful property for something like docks that group windows under the same icon of an application.

In particular for xdotool, classname corresponds with the first string, and class corresponds the second string. In my example with Chrome and Hangouts apps:

$ xdotool search -classname crx_nckgahadagoaajjgafhacjanaoiihapd
96469129

$ xdotool search -class Google-chrome
96469069
109051905
109051907
96468993
96469129
109051912
109051924

This also can be apparent from looking at the source code. Let's focus on classname for example. In the cmd_search.c we have a search struct built up, which has a search mask property(lines 171 to 173).

This gets passed to xdo_search_windows function defined in xdo_search.c , which in turn calls check_window_match, that in turn goes to  _xdo_match_window_classname, which finally ends up retrieving both structures mentioned in the beginning of this answer with the standard Xlib functions XGetWindowAttributes and XGetClassHint.

Side note: Gtk apps apparently always create a small parent window with a child window, which means you may get confusing results when searching for a specific window.


shortening the output from the command ps efo cmd | grep

ps -ww provides unlimited width output. You can grep for as much of your command line as you like. If you prefix your string to match with [ ] then grep will not match itself. If you add -q to grep there is no output but you can use the return code: it will be 0 if found, 1 otherwise. So

if ps alxww | grep -q '[ ]/usr/bin/xpdf -remote myXpdfServer -title Bayes2_notes -papercolor cornsilk -geometry 1910x1019+0+29 /home/simon/research/Ward/Bayes2_notes.pdf'
then echo running
else echo not
fi

grep in fact matches patterns, not exact strings. In a pattern there are "magic" characters that do not stand for themselves. Fortunately, the command line string you are grepping for has no magic characters, so your pattern just matches exactly the string. Some magic chars are [, *, ., (, +. In particular the pattern [ ] means match the space character. So it is an apparently pointless pattern because it is just the same as a space on its own: " ".

But as you know, doing a ps|grep string will find the grep command as well as the command we are interested in. But by using [ ], grep will no longer match its own command because in the output from ps there will be the 3 chars "[ ]" and not the single char " ", so the pattern (1 space) will not match.

It's a bit hard to understand. You can read about patterns, which are called regular expressions, in man grep. They are incredibly useful.

When you do isRunning=$(ps -ef | grep -q '[ ]xpdf ') your variable is set to an empty string because grep -q produces no output. The return code of the last command run by the shell is available in the shell variable $?. It will be 0 for true, i.e. the grep matched, or non-zero (usually 1) otherwise.  The value to expect is shown in the EXIT STATUS section of  man grep.

So if you want to hold on to the result you can do, eg:

ps -ef | grep -q '[ ]xpdf '
isRunning=$?
if [ $isRunning = 0 ]
then echo "running. isRunning=$isRunning"
else echo "not. isRunning=$isRunning"
fi


This usually happends when the localstore.rdf file is corrupted.

It is located in ~/.mozilla/firefox/<profile_name>/.

You can use either of the following solutions:

If you have a backup copy of localstore.rdf file from a working profile, a quick remedy is closing Firefox and overwriting the localstore.rdf file in the Firefox profile folder with your backup copy.
If you don't have a backup copy just delete the file from the path mentioned above, and Firefox will generate a new copy for you.
If you're using Firefox 15, just reset the firefox profile from History > Reset Firefox.

Important Note (if you're using Reset Firefox):

  All of your Firefox settings and personal information is stored in
  your profile folder. The reset feature works by creating a new profile
  folder for you while saving your:

  Bookmarks
  Browsing history
  Passwords
  Cookies
  Web form auto-fill information

  The following items  are either NOT SAVED or set to their defaults.

  Extensions and themes
  Open tabs, windows and tab groups
  Site-specific preferences, search engines, personal dictionary, download history, DOM storage, security certificate settings, security
  device settings, download actions, plugin MIME types, toolbar
  customizations and user styles

  After the reset is finished, your old Firefox profile information will be placed on your desktop in a folder named "Old Firefox Data."

Source and Further Information:

http://kb.mozillazine.org/Toolbar_customizations_reset_on_startup
https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems


A way to install Nulled directadmin on ubuntu 12.10?

You can easily ask DirectAdmin staff for a trial license. Nulling a commercial product is a criminal offense.


You have missed one instruction in step 2 (emphasis mine):

  Step 2: Generate a new SSH key

  To generate a new SSH key, enter the code below. We want the default
  settings so when asked to enter a file in which to save the key, just
  press enter.

$ ssh-keygen -t rsa -C "your_email@example.com"
# Creates a new ssh key, using the provided email as a label
# Generating public/private rsa key pair.
# Enter file in which to save the key (/home/you/.ssh/id_rsa):
$ ssh-add id_rsa

The command ssh-keygen -t rsa -C you@example.com creates a new RSA key file with the text you@example.com in the comment section. When the command is invoked, you are asked to supply the file name. Pressing Enter in this case will use the default (/home/you/.ssh/id_rsa).

The command thereafter (ssh-add id_rsa) adds the key file to the SSH agent daemon such that you only have to enter the password once a session. (see the manual pages of ssh-add and ssh-agent).

To "recover" from this mistake, you can either remove the files ssh-add id_rsa and ssh-add id_rsa.pub and start over or rename it:

mv ~/.ssh/ssh-add\ id_rsa ~/.ssh/id_rsa
mv ~/.ssh/ssh-add\ id_rsa.pub ~/.ssh/id_rsa.pub


A program I have used is Pinta, which is a GTK implementation of Paint.net version 3;  it may thus look familiar to people who have used that other program. It has good support for image layers, although obviously nothing like as much as the GIMP. Make sure that you have the layer toolbox opened and visible on screen (see the right hand side of the screenshot); this can be enabled from View > Tool Windows > Layers. At the top of the menu bar is the layers tab, which has options for adding new layers, merging layers, altering the various transparency levels and more.

It is possible to do much in Pinta with layers as this  tutorial demonstrates, and this is an excellent introduction to the programs's layer functionality. It is apparent that backgrounds and objects can be removed, changed, or made transparent. Other photos or objects can be superimposed upon existing pictures and then the result merged and saved as a new file. The GIMP has more options and functionality, but Pinta will probably suffice for relatively straightforward image editing with layers.

As a note, the version of Pinta in the repositories is version 1.1; the latest available version is 1.3, which has some improvements in layer handling and one or two bug fixes. In particular, layers can now be rotated and zoomed, which may be useful in some projects. The latest version is available as a PPA:

sudo add-apt-repository ppa:pinta-maintainers/pinta-stable
sudo apt-get update
sudo apt-get install pinta

Instead of the PPA, you can of course build the very latest version from source using the stable source code or the GIT development code; see here for more instructions.

Note: I have just successfully compiled the Git version, and the version from there is labelled as 1.4, and there are a few other minor bugfixes and changes. However considering this bugreport regarding saving images, which may affect some users of the Git development version, it is probably best to use the stable PPA version.


Cannot boot ubuntu 15.10 from Samsung 950 Pro PCIe NVME SSD

With cutting edge hardware, you need the newest versions of software, and sometimes even ppa's to get newer than in standard distributions.

If using gparted, be sure to download the newest version: gparted should be at least version 0.24.0-1 to recognize NVMe devices

http://gparted.sourceforge.net/index.php

Since 16.04 is now released.But be sure to review release notes:

https://wiki.ubuntu.com/XenialXerus/ReleaseSchedule

https://wiki.ubuntu.com/XenialXerus/ReleaseNotes

http://releases.ubuntu.com/16.04/


What's the difference between the python-django and django-rainbow charms?

What are the differences and why would I choose one over the other?

Both charms are similar in term of functionality but differ in there completeness.

Database support:

django-rainbow support only mysql and not as a relation but installed in the
same unit that the django project is installed.

python-django support only postgresql for now. But mongodb and mysql are on the way (see https://code.launchpad.net/~patrick-hetu/+junk/python-django-mysql-support)

WSGI:

django-rainbow support apache2 and you need to configure your vhost manually in the charm's configuration file.

python-django works with a wsgi relation for now only a Gunicorn subordinate implement the interface.

Only in the django-rainbow charm:

you can configure the domain name of your django.contrib.sites app.

Only in the python-django charm:

a website relation (for load balancing for example)
a Memcached relation
an upgrade hook (upgrades packages, requirements.txt, pip, etc)
a Juju compatible fabfile to interact with your Django deployment
it can be extended via application subordinate charms (see the section in the README)

Low level:

the django-rainbow charm is written in bash while the python-django charm is written in python.


Screen distorted on a Great Wall A081 netbook

At last by working 3 ni8s....i think we have done it.....thanksssss guys..specially fossfreedom....

The solution of the problem is found by experimenting it....huh big relief
Thanks again for your help

Section "Monitor"
        Identifier  "Configured Monitor"
EndSection

Section "Screen"
        Identifier  "Default Screen"
        Monitor     "Configured Monitor"
        Device      "configured Video Device"
        SubSection "Display"
                Virtual 1024 600
        EndSubSection
EndSection

Section "Device"
        Identifier  "Configured Video Device"
        Driver      "vesa"
EndSection


How do I get "The Witcher II" working with wine?

Have you tried installing trough PlayOnLinux? It's a program that loads specific wine versions/settings based on what you want to run. I've used it for other games and for me works best than "bare" wine...


How can I upgrade GHC installed using haskell-platform to the latest version in Ubuntu 14.04?

The only way you can get the latest version is to install the Generic Linux version following the directions found here.

0) Always remember to safeguard your system against unintended consequences with a good backup strategy.

1) Download the installation tarball from the page shown below:that matches the architecture of your installation and verify the hash matches with the command sha256sum filename where filename is the name of the file you downloaded.

2) Extract the content of the archive and note where you are extracting to.

3) change to the directory you extracted to in the step above and run the installation script with sudo ./install-haskell-platform.sh

Note: There are further details on the installation page for those of you running Ubuntu 16.10 or higher.


Since I am guessing you're using dpkg, you need to install all dependencies with apt before the final dkpg step, so run:

sudo apt-get install ia32-libs

first.

Then, try sudo dpkg -i file.deb where file.deb is the Skype package you downloaded.


ica client (.deb) not working in Ubuntu 16.04

I am using version 13.4.0.10109380 without any problems on 16.04. I just installed the .deb version. Maybe you should enable connection logs on Receiver to troubleshoot the nature of the problem. See https://docs.citrix.com/en-us/receiver/linux/13-2/linux-about.html to find out how to do that.


Cannot install phablet-tools, has no installation candidate

The package was removed from the archive after Canonical dropped support of phones and the unity 8 stack.

If you are on either Ubuntu 14.04 or Ubuntu 16.04, the phablet-tools package is in the universe repository, so you must make sure it is enabled in Software Properties before you'll be able to install it.


How can I bind a key to cycle through panes?

With default keybindings:

Ctrl+b n

will flip thru to the next window, same way alt-tab works for windowed applications.

Ctrl+b o

Should flip through the panes within the window.


Java is packaged already in the Ubuntu repositories within the ubuntu-restricted-extras package which you can install in this way:

$ sudo apt-get install ubuntu-restricted-extras

Or from the Ubuntu Software Centre.


What is the least painful way to fix my stupid boot setup?

The new install to SDD was in UEFI mode, so your machine is UEFI capable -- I'd suggest you keep the UEFI mode. A quick note to a question of yours:  You should be able to run sudo update-grub from the 16.04 system and pick up the 5.0 kernels on the 18.04 to try.
The UEFI installer has a bug 1396379 which puts the UEFI bootloaders onto sda, regardless of which device you specify, so probably the SDD EFI partition is empty.  The legacy 16.04 install probably does not have these UEFI bootloaders, so you will have to copy them off the install media, basically just copy all the files from the install media's /EFI/BOOT/ directory to EFI/BOOT directory on the EFI partition. If the EFI partition has a filesystem, you should be able to mount it:

sudo mount -tvfat /dev/sdb1 /tmp/xx

If no filesystem even exists, make one first, then mount it:

sudo mkfs.vfat /dev/sdb1

Then just copy the files over(bootx64.efi, grubx64.efi, ... etc.)
The EFI will also need a stub grub.cfg file which includes the maintained grub.cfg file from your root filesystem. Get the UUID for your root:
sudo blkid
then edit that UUID into the below file (EFI/ubuntu/grub.cfg)

search.fs_uuid your-UUID root hd1,gpt1
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

That should produce a bootable UEFI setup on sdb -- select it as a boot device and see if it boots.

Your EFI/BOOT directory does not contain a copy of grubx64.efi, so the bootx64.efi there must be grubx64.efi (check their sizes to confirm).  This should work when secure boot is disabled.  If you want to allow secure boot, you put grubx64.efi and shimx64.efi there, with shimx64.efi renamed to bootx64.efi.


Ubuntu 16.04 not booting properly from external SSD

I also have same issue while making duel boot. there is one option that you can make install is to change your SATA configuration mode my laptop default is SATA config -> intel but that one not compatible with installing ubuntu. so i changed to AHCI mode, so i can install ubuntu it will detect your disk. but only the drawback for this method is that everytime you need to switch back to intel mode if you want to use windows.

FOR CHANGING THE MODE you goto boot->SATA configuration-> AHCI/Intel

note: disable secure boot and fast boot


How can I get 3 working displays with Intel graphics?

Often the intergrated graphics card only supports 2 active displays even though there are three ports.To get a third display you need a second graphics card.


Add ifconfig myCode up & service network-manager restart at the end of the /etc/rc.local before "exit 0"


On 14.04, my kernel version is 3.11.0-18?

Just upgrade your kernel afterwards using apt-get.

sudo apt-get update
sudo apt-get install linux-generic


Apache cannot start or restart after uninstalling Softaculous

Have a closer look at your systemctl -l status apache2.service output.
The problem is not the /etc/apache2/apache2.conf.

Dec 15 07:44:48 s87890 apache2[31239]: apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/softaculous.conf: No such file or directory

apache tries to include the config file /etc/apache2/conf-enabled/softaculous.conf

This could be a broken symlink.
Try to disable the config with a2disconf softaculous or remove the symlink (if there is any)


New User - Installing .jar File Difficulty

When you are given a .jar file, it needs to be run using your Java installation.

For example

java -jar minecraft.jar

If you do not have java, you can install it using

sudo apt-get install openjdk-7-jre


How can you figure out the dependencies of your project?

If you're building a .deb package, you can use pbuilder to do a test build. Since pbuilder builds in a clean chroot environment, it's a bit like building on a clean machine, without the hassle. And if you're missing any build dependencies, you'll quickly find out.


Why does Ubuntu think that my iMac is a laptop?

I'm not sure how ubuntu determines this, but it probably thinks that due to the hardware commonly used in imacs. I don't know exactly what hardware the 2010 imac has, but if it's anything like the 2012 imac then it has laptop grade components, ie a laptop grade gpu and cpu.


Getting Ubuntu 12.04.2 to show GUI interface after installing it as a VM in XenServer 6.1


How can I delete files in terminal fluently?

Try this:

rm -f 2.mp3 blabla.mp3

rm removes files, and -f forces it to (so that it wont stop, asking you if you want to delete the file). If this not in your home directory, prepend sudo. Here is another way that might require less typing (a bit harder to read though)

rm -f {2,blabla}.mp3

This expands to 2.mp3 blabla.mp3. If you want to use larger filenames, you can use the wildcard character (*), which will return all items starting/ending with the filename you chose. For example:

rm -f bla*

will remove all files starting with bla. If you used this:

rm -f *.mp3

It will remove all files ending with .mp3. If you used this:

rm -f bla*.mp3

It will remove all files starting with bla and ending with .mp3. Possibilities are nearly endless with the * character :P


Why in SSH appears the -T parameter in the Ubuntu documentation but not in the terminal/console?

The T option is in fact mentioned, in the portion of the synopsis that you redacted:

usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-E log_file] [-e escape_char]
           [-F configfile] [-I pkcs11] [-i identity_file]
           [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]
           [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]
           [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
           [user@]hostname [command]

The usage is described in man ssh:

 -T      Disable pseudo-terminal allocation.

essentially the opposite of -t:

 -t      Force pseudo-terminal allocation.  This can be used to execute
         arbitrary screen-based programs on a remote machine, which can be
         very useful, e.g. when implementing menu services.  Multiple -t
         options force tty allocation, even if ssh has no local tty.

The synopsis shows it like [some characters shown] rather than like [-p port] because it's one of the (many) options that doesn't take an argument.


The no wicd, but wicd complient solution is found here.

Edit

I can connect, but it woundn't let my phone to the internet.


Ubuntu detecting wrong GPU in Dell Precision 3510

Judging from this recent thread on Phoronix, it would seem your specific GPU does not have support from AMD yet in the Pro drivers, and you will need to use either fglrx on Ubuntu 14.04.1 (non-HWE stack) for now, or the open source radeon or amdgpu drivers on 16.04, until GCN 1 graphics gets proper support.


How can I connect Ekiga to other VOIP services?

Press F10 on account window (go to top menu), you will see entry Add SIP, h323 account.


What happens technically when you format a partition?

Depends on what type of format you did

First things first STOP USING THIS DISK IMMEDIATELY
if possible, make a backup, if there was a lot of free space you may be able to make use of compressing this backup
as a superuser, whenever I need to do such a backup I run dd if=/dev/sda|pv -s 500g|bzip2|dd of=/path/to/backup
make sure your backup is located on a separate disk

pv is optional, it just tells me how much data is remaining, it will slow things down, here I have told it to expect 500g of data, if you exceed this the backup wont stop, if you just use pv on it's own it will just display how much information is passing, and bzip2 will compress the backup, depending on what type of data was on the disk this will save you a lot of space but also be very time consuming, you may also remove this pipe

There are two ways to format a disk, you can rewrite the disk with zero's and place a new filesystem in there

As disk space has been increasing, this has been becoming less and less common as it can be very time consuming

These days, whenever you delete a file you are just deleting the reference to that file, and whenever you format a disk, you are just recreating the structure, data is simply re-written

A fun past time of mine is buying cheap hard drives off eBay and examining their contents, most people just format the disk, they don't wipe it

There are a number of propeitry tools available under windows to recover files from such disks, in Linux there is testdisk, scalpel and autopsy (the sleuth kit)

Your data will not be indexed, it will be all over the drive, often in fragments, it is possible to put all these pieces back together, but you must figure out what is important and what isn't, otherwise you will spend forever recovering that data


Creating a WPA2 Enterprise Connection On Ubuntu Touch

Turns out that NetworkManager needs the entries to be properly formatted and needs the cert to work with enterprise connections. For those of you stumped, eduroam offers a script on their website that will generate the correct connection file for you and install the cert, but you need to have python installed, and to my knowledge the devel channel does not come with python prinstalled. Here is a sample config file for eduroam.

[connection]
id=eduroam
uuid=89feacc0-bf73-48b1-92bf-3fb57b735c89
type=802-11-wireless`

[802-11-wireless-security]
key-mgmt=wpa-eap

[802-11-wireless]
ssid=eduroam
security=802-11-wireless-security

[ipv4]
method=auto

[ipv6]
method=auto

[802-1x]
eap=ttls;
identity=<$YOURIDENTITY>
anonymous-identity=<$ANONYMOUSIDENTITY>
ca-cert=~/.eduroam/ca.pem  #Replace the tilde with the absolute path
phase2-auth=mschapv2
password=<$YOURPASSWORD>


How to create or recover Windows Bootloader after deleting Ubuntu boot drive

You can install a Microsoft style MBR from an Ubuntu LiveCD/USB. To do so, run

sudo software-properties-gtk -e universe && sudo apt-get update
sudo apt-get install mbr
sudo install-mbr /dev/sdX

where "sdX" is the device node for your hard drive, like "sda", not a partition like "sda1".

If you really want to use boot-repair to do this then simply run everything except the last command

sudo install-mbr /dev/sdX

The commands before that one will just install the mbr package. Then try boot-repair again.


Why am I getting this error when updating after a partial upgrade?

Open a terminal run

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

Once that is complete, open your software center and type vlc in the search field and follow the remaining steps as you would normally.


what do you mean by DASH? I have not come across this on other operating syatems

The Dash is Ubuntu's equivalent of the start menu. From it you can do a lot of useful tasks. Here is an overview.

Press Super to open it. You may know super as the "Windows Key" - it opens the start menu in Windows.

When you open the dash you'll see an overview of recent programs and file / folder.

You can search just by typing, that will show Applications, Reference and shopping suggestions. You can use the keyboard to navigate to the desired item:

Then there are other Scopes or lenses, have a look at What lenses for Unity are available? for a list of them.

These scopes include Applications, Documents, Videos, Music, Photos and Social Media messages:

This is a versatile way of using the keyboard to reach any file or application - I used it a lot when I had unity.


python module not found in sudo mode (ubuntu 20.04)

Python doesn't use the PATH environment variable. The process of determining where it looks for modules is rather complicated and I won't go into detail here, but in the end, all paths are contained in the sys.path variable. Use the following one-liner to print that list:
python3 -c "import sys; print(sys.path)"

(Note that it only contains existing directories.)
In the output, you'll see a folder inside your home folder. That's your user's site-packages directory, a feature described in PEP 370. And that is the directory where pip3 installs packages by default if you run it with your "normal" user.
If you now switch to the root user, python will look for modules in the root user's home folder, which is /root, so it won't find packages in your "normal" user's site-packages directory.
For development purposes, I would recommend using virtual environments such as venv.


I solved my amdgpu-pro-17.30-465504 installation problem by following Mark Maurer's advise Troubles installing AMD drivers and ensure that I had "HWE - hardware enablement" installed. So I followed the instructions on this link https://wiki.ubuntu.com/Kernel/LTSEnablementStack and then reinstalled the amdgpu-pro drivers successfully.


How to delete a file from / how to delete a file

Use

sudo rm /swapfile.swap

to remove the file /swapfile.swap


How do I set up per-user web directories in Ubuntu Server?

This is probably far too late for you but if you use the following command:

sudo a2enmod userdir

And restart the apache2 service then the userdir module will be enabled.

Apache2.conf doesn't have the right lines as it uses these Includes directives instead:

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

The "a2enmod" command adds modules to the mods-enabled directory (/etc/apache2/mods-enabled), which is also where you would look if you want to edit the config file for the userdir mod.


How to correctly deal with lib-symlinks in modern Ubuntu versions?

With muru's recommendation we should use realpath command.
But with small note that running realpath on the earliest stage will not work as expected.
So we need to add one extra step to process the output file:
dpkg -S $(realpath $(grep -E "/lib.*" --only-matching /tmp/not-from-apt)) 2> /tmp/not-from-apt-final

And the complete method for 20.04 LTS will look as follows:
export EXE=/usr/bin/mc;

dpkg -S $(ldd $EXE | grep -v "=>" | awk '{print $1}') 2> /tmp/not-from-apt
dpkg -S $(ldd $EXE | grep "=>" | awk '{print $3}') 2>> /tmp/not-from-apt

dpkg -S $(realpath $(grep -E "/lib.*" --only-matching /tmp/not-from-apt)) 2> /tmp/not-from-apt-final

it will produce empty /tmp/not-from-apt-final file when there are no errors.
Also one can always check the contents of /tmp/not-from-apt for extra info.


Broken package? Libpam-runtime preventing kernel update

So I found a workaround on social media, the one thing I hardly ever check. The answer is to edit the file /var/lib/dpkg/info/libpam-runtime.postinst and comment the parts of the script starting where the command pam-auth-update package is executed all the way to the bottom of the function.
Then it's a simple matter of running dpkg --configure -a and then the process completes.
Thank you everyone for your time and your suggestions!


A quick answer is given here: https://help.ubuntu.com/community/32bit_and_64bit#How_to_Make_32-bit_Applications_Work_on_a_64-bit_Operating_System

Installing ia32-libs is surely the fastest solution, however it may not be enough, depending on the situation.


Addressing just the part about hosting your own web page:

Setting up a web server is actually pretty easy.  Setting up a secure web server is quite a bit more difficult.  If you want to get your feet wet, Digital Ocean has some really good tutorials.  Here's the one for setting up an Apache web server. If you get interested and want to continue on, they have good tutorials about adding security as well.

If you want to host other people's web pages as well, that, also, is another level of difficulty.


There are no instructions with the repository that I could find, but Noobslab have provided a PPA for Deepin applications including the terminal. To use it, do:

sudo add-apt-repository ppa:noobslab/deepin-sc
sudo apt-get update
sudo apt-get install deepin-terminal


I had exactly the same problem after updating Tor Browser. I found a file at ~/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser.desktop (~ is an abbreviation for /home/your-username). ~/.local/ folder is a hidden folder. To toggle show/hide hidden files and folders press the keyboard combination Ctrl+H or click the three horizontal lines icon ≡ in the upper right corner of Files application and put a checkmark next to the Show Hidden Files option. When I right-clicked this file and selected Open, Tor Browser opened successfully.

Then I used the information in Properties -> Basic tab -> Command: of the start-tor-browser.desktop file to update my Tor Browser launcher so that I could open Tor Browser as usual by clicking on its icon in the Dash.

If this happens again I'm going to check the start-tor-browser.desktop file again to see if it works, because apparently Tor Browser updates only the start-tor-browser.desktop file, but it does not update the Tor Browser icon that you can find in the Dash. This Tor Browser launcher must be updated manually.

The desktop launcher for Tor Browser is located at /usr/share/applications/torbrowser.desktop. To change the properties of the Tor Browser desktop launcher requires sudo.  Open the terminal and type:

sudo nano '/usr/share/applications/torbrowser.desktop'

If your Ubuntu username is user change the line in torbrowser.desktop that starts with Exec= to:

Exec=sh -c '"/home/user/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/start-tor-browser" --detach || ([ !  -x "/home/user/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/start-tor-browser" ] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k

Because nano text editor does not support line wrapping you will need to use the arrow keys to move the mouse cursor to the end of the line to make sure that you copied the entire line correctly before you save the changes that you made to torbrowser.desktop.

The instructions for using nano editor are always found at the bottom of every page. The only two nano keyboard shortcuts that you need to know are for WriteOut and Exit. Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Press the keyboard combination Ctrl+X to exit nano.


in case you have broken package try

sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update

then run wine .

N.B : If there is a specific reason to emulate windows applications with administration capabilities or compatibility with older version of windows (95,98,ME...) you should type WINARCH=32 winecfg before running wine.

Source


Problems trying to upgrade from version 17.10 to 18.04

Change the repository...

http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu artful Release

to read...

http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu bionic Release

And in Software & Updates, make sure this is not selected...


Update system except thunderbird, due to critical implementation of enigmail into TB

Instead of an command to update all packages but thunderbird, you set thunderbird to not update, then update the usual way.
You can say
sudo apt-mark hold thunderbird
That will prevent updates from being applied until you set it back to unhold
Update your system as usual.
Reference: https://manpages.ubuntu.com/manpages/bionic/man8/apt-mark.8.html


How do I use Ubuntu's web application integration?

Installation
The webapps integration is included in Ubuntu 12.10 and newer. When you visit sites in Firefox or Chromium that have the integration enabled you will be prompted to add the site as an application, here's a list of sites that have support:

https://launchpad.net/webapps

For fully integrated sites like google docs, you should see things like Dash integration:

After the site has been added you can launch it from the dash, or add it to your launcher, just like other applications.
The project homepage (where you can file bug reports) is here: https://launchpad.net/webapps
Developer Information

Developer Getting Started - if you want to integrate directly from your web application.
Developer Tutorial - if you want to write a userscript to support a web application.
API Documentation

To Uninstall

How do I remove a website from Ubuntu's web applications?

More info: https://launchpad.net/~webapps/+archive/preview
Related Topics and References:

http://www.omgubuntu.co.uk/2012/07/ubuntu-unveil-new-web-apps-feature-for-12-10
http://www.omgubuntu.co.uk/2012/07/how-to-install-ubuntus-new-web-apps-feature
http://www.omgubuntu.co.uk/2012/07/list-of-that-websites-support-unitys-new-web-apps-feature
How do I put a web application on the Launcher?


From what I can see /media/dataB/home is a directory and not a device, therefore you can not mount it on /home

What you could do is:

Edit the profiles of both users so their home directory becomes /media/dataB/home/user1 and /media/dataB/home/user2 rather than /home/user1 and /home/user2. To do that use sudo gedit /etc/passwd, locate the lines for the 2 users and carefully replace their home directory.
Remove (OK, rename for the time being) their existing home directories
Make a link from /home/user1 to /media/dataB/home/user1 to help these programs that insist on looking into /home


Boot from a LiveUSB, then start "Install Ubuntu" and follow directions.
It is as simple as that.
There will be an option to install with Windows.


What's exactly the point of the sudo command, in terms of security?

First off, you need to understand the concept of the users in linux, with special regards to the root user. In order to keep this answer below the character limit (and on topic), I'd suggest you read this page followed by this one. Really, all you need to know is the following:

Linux is a multi-user operating system with each user having limited power and scope as defined by their user group. Every Linux system has something called the root user (UID 0, also known as the superuser), who is the total and completely authoritative administrator. root knows all, root sees all, root controls all.

The concept of sudo came from the old UNIX command su (from switch user), which allowed any user to log in to any other user on the system. Anyone with administrative privileges would type su root (or just su) to escalate to the root user for any admin task. This, regrettably, had a few problems. In systems with multiple admins, everyone shared the root password. Meaning, if an admin left the company, the root password would need to be changed and redistributed to all of the other administrators. This can be extremely time-consuming at times, and otherwise just be a great pain.

Now, enter sudo. sudo works on a different principle. Instead of requiring users to know the root account login, sudo would be used to allow users to escalate themselves into the root account (or any other account, for that matter) based on the rules of the /etc/sudoers file. Now, revoking or adding an administrator is simple -- just add or remove a user from a group or the file. Because of this, the root account can be "disabled", thereby blocking access to anyone except actual admins.

For almost all cases, this is all sudo is used for. It grants root power to administrators (members of group admin or sudo) based on the rules defined in /etc/sudoers.

(Un)intentionally, this also comes with a massive security benefit. Administrators can run in an unprivileged mode just like any other user. They can then escalate or "enable" administrative privileges when they're needed, and revoke them immediately afterwards. Usually, this is only used for a single command (e.g. sudo apt install cowsay), but it could also be a full-blown root shell.

This isolation in turn also protects the system at large (remember, *NIX was originally a multi-user environment used by many people) from malicious code executed from an admin's account, be it through malware or someone logging on to an admin's active terminal. Similarly, sudo allows every admin action to be logged and reviewed at any time. Contrast this to the old su method, where you realistically had no idea who ran what command.

Also, based on the permission model of Linux, sudo can prevent a user from making potentially dangerous mistakes like accidentally uninstalling a critical program, erasing a hard drive, or any other number of nasty things that should never be done without some confirmation.

TL;DR:

Really, sudo is just a (very useful) holdover from the true multi-user environments of old *NIX installations. However, it still retains its usefulness by protecting the system from malware or session hijacking. In typical *NIX mentality, protection of the admin's actual account is an exercise left to the admin.

If you're worried about someone sitting down at your computer while you're away and messing with your privacy, just lock your screen/session. Even so, physical access is a killer.


Bootloader location, dual boot Ubuntu 14.10 & Kubuntu 15.04

Using /dev/sda should be fine , I think using anything else could cause problems.

As Kubuntu 15.04 is in testing i do recommend using a different computer , or if that is not an option using a VM for your testing needs , vmware player and virtualbox work great so far for ubuntu 15.04


How do we verify that Adobe Flash Player installed properly?

For verification you can use Adobe official page:
https://www.adobe.com/software/flash/about/

Or unofficial:
http://flashbuilder.eu/flash-player-version.html

Seems that you don't have Flash player installed. I recommend to do an easy install and install all "restricted" software packages, including FP.
Open terminal and execute:

sudo apt-get install ubuntu-restricted-extras


To automate loading the driver, open a terminal and do:

sudo -i
echo r8169  >>  /etc/modules
exit

You should be all set. If this is ineffective, check to see if the module is blacklisted:

gksudo gedit /etc/modprobe.d/blacklist.conf

Use nano or kate or leafpad if you don't have the text editor gedit. Check to see if there is a line blacklisting r8169. If so remove it. Proofread carefully, save and close the text editor.

Also, check to see if there is any specific file blacklisting it:

ls /etc/modprobe.d

If you find such a file, remove it. Reboot and tell us if it is working.


How Do I Install Ubuntu 14.04 With Self Installed Windows 8?

You seem to be on the right track, but you'll need to create some free space for Ubuntu on your drive(s). To achieve that,

select “something else“ as installation type to manually partition your drive(s),
select the partition(s) you want to shrink and press “change“,
enter the desired new partition size,
press + to add one ore more partitions for Ubuntu,
press “install now”.

If you feel more comfortable with other partition managers (in Windows) or if step 3 doesn't work as described, you can use those other partition managers to prepare the Ubuntu installation and shrink partitions. Even Windows Disk Manager will let you shrink partitions. Another option is GParted which you can run, if you choose to “Try Ubuntu“ before installation.


avconv converting videos in really bad quality

You can adjust the video quality using the -qscale flag for that command. Using -qscale 1 should provide the best quality and if you do not use this flag, the result is usually terrible quality. Try using this instead:

avconv -i video.mp4 -threads auto -qscale 1 -aq 1 video.ogg

I've also included a flag to optimize use of multiple threads and another to maximize audio quality.


Try reinstalling alsa, pulseaudio, and check to make sure gnome-session is installed. If it is, try reinstalling it.


How to remove (or hide) Chat Status Icons from Messaging Menu

FOR 12.04
If you're using 13.10 or newer see here..

Its possible...

As you can see the status section has been removed leaving just the Broadcast and Mail sections
To put a positive spin - open-source means you have direct access to the actual source-code.  You can interrogate and change the code ... as long as you give back the code changes to others!
So here goes - the following demonstrates the code changes that are required to the package indicator-messages
prerequisites
Lets get source packages from the repository:
sudo apt-get build-dep indicator-messages
apt-get source indicator-messages

This will create a folder - name will change depending upon the package version of indicator-messages.  For 12.04 this folder is indicator-messages-0.6.0
code changes
Two modules in the folder indicator-messages-0.6.0 will need changing.
cd indicator-messages-0.6.0/src

status-items.c
Using your favourite editor add the line return NULL; at or around line 80 in the function "status_items_build" shown:

messages-service.c
At or around line 893 in the function "resort_menu" comment out the code shown with /* and */

lets compile
To compile this, move up to the parent folder
cd ..

Compile, make and install:
./configure
make
sudo make install

Logout and login.
to undo
To undo your changes:
cd indicator-messages-0.6.0
sudo make uninstall
sudo apt-get --reinstall install indicator-messages


When the command dumpe2fs /dev/sdd sent an error, there is an other way to obtain the location of a superblock backup :

mkfs.ext4 -n /dev/sdd

From the man mkfs.ext4

-n Causes  mke2fs  to  not  actually create a filesystem, but display what it would do if it were to create a filesystem.  This can be used to determine the location of the backup superblocks for a particular
              filesystem, so long as the mke2fs parameters that were passed when the filesystem was originally created are used again.

Then, you just have to repair your partition using the superblock:

fsck -b 98304 /dev/sdd

replace 98304 by your superblock's number.


Can an apt proxy affect the use of dpkg?

It turns out that this was an issue with some of additional files being downloaded using ASCII as opposed to binary and becoming corrupted.


Activate Steel Series Laptop Keyboard backlight on MSI GT72

From my experience with Lenovo's Thinkpad keyboards I would at least try the following button combinations from the MSI manual:

Also check that you have installed the latest firmware, the following caught my attention:

  Support Fn/Win key swap function

If they can do that, then they should be able to implement at least basic backlight functionality like on other notebooks.

As always, make your voice heard, tell their support team nicely that you also want to use Ubuntu on the laptop and have the full experience.


After updating grub, my dell inspiran laptop boots but goes blank screen

Well, you should probably try to get back to where you were before the grub update.  To do this, reboot your comptuer and hold the shift key down.  The grub menu will appear, and you can press 'e' to edit the boot entry for Ubuntu.

Scroll down until you find the line that has

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.dpm=1"

and remove the radeon.dpm=1

Press F10 to continue the boot process.  This has temporarily changed your grub, and when you reboot it will go back to what you just edited out.  So, you need to reverse the permanent changes you made:  Edit the grub command file:

gksudo gedit /etc/default/grub

remove the radeon.dpm=1, save the file, and execute sudo update-grub

Now that your computer is running you should tackle the heat issue.  There are a couple of tool specifically for laptops to help with this, and the one I have been using is "tlp" - I know there are a few others, but once I found on that works for me, I stopped looking.

"tlp" can be installed from the Ubuntu Software Center, and will work out of the box.  It can also be optimized for your computer, documentation found on the linrunner.de website

To monitor temperatures, I am using psensor, also found in the Ubuntu Software Center

Following the installation or psensor and tlp, your computer will need to be rebooted


Boot failure with 12.04 install, fixed by upgrading from 10.04

It is impossible to speculate with the sparse information you have given about the nature of the 'freeze during boot'  .... if you tried booting in recovery mode, as I've no doubt you did, what were the error messages?  It is possible that your hardware is in some way below the requirements of 12.04.  Why don't you boot into the live-DVD and use the 'Try Ubuntu' option.  If that works flawlessly then something went wrong during the installation process.  Did you see any errors, and did you use the defaults or manually configure the partitioning as it installed?


wifi connection problem in hp pavillion g6

You need kind of network manager .. with GUI (graphic) or just command mode.
take a look at this


Which kernel you are using (uname -a)?

I had the same problem after updating from 3.19 to 4.0 because the bcmwl-kernel-source package isn't working with 4.0 at the moment. If this is your problem, you can find more information about it (and the patch) here.

Edit: If someone is looking for the patch and how to apply it: longsleep (the author) updated the readme section of the project on how to build and install the package.


"apm=off" and "no=hlt" are boot parameters. There is a good guide on the grumpymole blog for editing boot parameters temporarily and permanently.

I highly suggest you try to keep your laptop cooler first, since setting these two options will likely make it possible for your CPU to melt, literally. You can try ensuring there is proper ventalation, using the ondemand CPU governor (see how to change default scaling governor back to ondemand), stop any overclocking that is set, invest in a $10.00 external fan to protect your $500.00 laptop, and/or clean out the dust from the fans (see any of the results on this searh).

I would only edit these boot parameters as a last resort, since the computer usually only shuts down due to heat when it gets dangerously hot.


Which version of Ubuntu can I use on an old laptop?

If you are looking to ubuntu for a solution then consider Ubuntu MATE.
It is an official derivative of Ubuntu. The only difference between other Ubuntu OS's is that it uses the MATE desktop environment.
You can follow the guide to installing MATE on an ageing laptop here
It works well on better spec machines too (including v21.04) and ideally suited to those with less heavy desktop requirements.
You can look through the MATE guide here


Unable to use USB device that was used to create UBUNTU bootable

Some boot drive makers install Ubuntu as an ISO 9660 partition.

Gparted is not very good at ISO 9660 partitions, however you might try creating a new partition table on the USB using gparted. You might have to hit ignore a few times then cancel.If there is a problem you can get the ISO partition unmounted using Disks.

You can also restore the drive using mkusb's "restore to a standard storage device" function, this method always works for me.

I have had multi partition flash drives brick when formatting on Windows.


How do I install the Ubuntu Software Center on my Lubuntu 15.04 using the Terminal?

Install Oracle Java 8

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

After that

sudo apt-get install oracle-java8-set-default

And use the minecraft-installer:

sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
sudo apt-get update
sudo apt-get install minecraft-installer

Once installed, run Minecraft from the menu / Dash, login with your Minecraft account and the installation should start automatically.

Source


Changed Python version, "apt-add-repository" not working ERROR

For Python3.5 use the command

alias python=python3.5

and for Python2.7 use

alias python=python2.7


Reset the password in Ubuntu / Linux Bash in Windows

Run bash and make a note of your Linux username (this need not match your Windows username), see How can I find out my user name?
Close Bash on Ubuntu if it is running (or the next command will fail).
In Windows admin command prompt (Super+X, A) change the default user to root:

ubuntu config --default-user root

If you are using Ubuntu 18.04 in WSL, the command has changed to ubuntu1804 , so

ubuntu1804 config --default-user root

Now Bash on Ubuntu on Windows logs you in as root without asking password
Use passwd command in Bash to change the user password (the user whose password you want to reset):

passwd your_username

Change the default user back to your normal user in Windows command prompt

ubuntu config --default-user  your_username

If you are using Ubuntu 18.04 in WSL, the command has changed to ubuntu1804 , so

ubuntu1804 config --default-user your_username

Watch Full Video to Recover your password Windows Subsystem Linux
https://youtu.be/dTR232yvDCE

Note 1: The subsystem used in the video is not Ubuntu, but Kali    Linux. Hence the difference in the command.

Note 2: If you are still    using the original Ubuntu subsystem that came with the Anniversary Update, use the command lxrun. Upgrade to the subsystem version distributed via Microsoft Store is recommended.)


How do I delete files from the Ubuntu One server

You can stop syncing folders via the web interface at https://one.ubuntu.com/files/.

Simply press the more button on the right hand side and choose Stop syncing this folder when it shows up.


16.04 New Software Center ("Ubuntu Software") very slow or it simply doesn't work

I am suffering the similar problem. When I want to search for an application or install updates (however it shows number of available updates), its hanging and circling there, nothing shows. A quick fix I found is:

1) kill or end the process "gnome-software" using any tool like "System monitor" or "htop" or "pkill"

2) Open the Ubuntu sofware

3) Search for the apps or install updates.

It will work like its expected, no more hanging.


Get an error when i try to open application from Python

You don’t need any additional command, just call the program directly:

os.system(app[1])

However, I’d rather use sh for that.


It sounds like you initially installed a server OS, so there are no GUI programs installed on one of those.  So, now that you have installed a GUI desktop, you need to install GUI programs.

So to start you will want to I guess install Firefox:

CTRL+ALT+T

Opens terminal
then type:

sudo apt-get install firefox

And you will have a browser, then you can search for the commands to install whatever else you would like.


Error: "The value for the SHELL variable was not found the /etc/shells file" when running `pkexec`

The problem is this one: pkexec is accessing $SHELL to determine which shell to use to evaluate the remainder of the command; since you uninstalled fish but didn't do anything else, $SHELL still contains /usr/bin/fish, but pkexec doesn't deem /usr/bin/fish as a valid shell, since /usr/bin/fish has been removed from /etc/shells.

You need to do these two things:

Set a new shell for your user, so that the next time the environment is load $SHELL will contain a path to a valid shell. E.g. to set Bash as the new shell for your user (replace user with your user's username):

sudo chsh -s /bin/bash user

Log out / log in to reload the environment so that $SHELL contains the path to the new shell for your user.


No sound and microphone detected in Dell G3

I had the same problem. The command below worked well for the sound problem (Dummy Output). I am not sure if this could work well for you as well. By the way, I still couldn't find any solution for the microphone.
echo "options snd-hda-intel dmic_detect=0" | sudo tee -a /etc/modprobe.d/alsa-base.conf

Also, some people on the Bugzilla says the command below can be used with the new kernel versions.
echo "options snd-intel-dspcfg dsp_driver=1" > /etc/modprobe.d/alsa.conf


I had this problem a couple of weeks ago. The "invalid option" window was created by spotify on my computer.

I just deleted my ~/.cache/sessions folder, which fixed it for me. (Actually I made a backup just in case). I've not noticed any adverse effects.

You can read more about sessions here.


PyQt5 QtMultimedia shows black screen on playing H.264 video

Different pipelines for some users on different systems but not for other users point to a problem with VAAPI. Everything works after disabling VAAPI according to the instructions at Temporarily skipping vaapi decoders in decodebin.

Sometimes it can be useful to disable vaapi from the gstreamer auto-plugging logic, e.g. when there is a pending issue, or when in need to force the decoder choice in decodebin for testing purposes.
The standard possibilities are:

removing gstreamer-vaapi alltogether
overriding the plugin ranking system to demote the vaapi plugins below other alternatives — This requires using the gstreamer API, not available with gst-launch or totem.

I found out an easier way: defining the LIBVA_DRIVER_NAME to a fake value, which will enforce vaapi to fail initializing, hence skipping its plugins.
For instance:
LIBVA_DRIVER_NAME=fakedriver gst-launch-1.0 playbin uri=file:///tmp/file.mp4

Without it:
$ gst-launch-1.0 playbin uri=file://`pwd`/bbb-1920-1080-30.mp4
Got context from element 'vaapisink0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx0";

With the env var, we can see that avdec_h264 has been selected instead:
LIBVA_DRIVER_NAME=fakedriver gst-launch-1.0 playbin uri=file://`pwd`/bbb-1920-1080-30.mp4 -v
...
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/avdec_h264:avdec_h264-0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.1, profile=(string)high, codec_data=(buffer)01640029ffe1001b67640029acca501e0089f970110000030001000003003c8f18319601000568e93b2c8b, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true


What's a good way of protecting password on a plain text executable script?

For highest security, you would want to store the password in only one place, that is your mind. But this is not a option as you want to completely automate the process and this method will require you to enter the password everytime.
You might have a look at hashing encrypting technology like gpg. But even here, you will need to remember and enter a passphrase, so bad option.
You might think that you will store the password in encrypted text file and hard-code the passphrase. But that isn't going to make any change.

The best midway solution would be,

Save the password in a simple or encrypted text file. Make the file readable only by root user. Otherwise, just hard-code it into the program.
Make the program readable and executable only by root user.
If possible, deny all access to the computer by other users or guests.
Encrypt your partition, so even an attempt to reset root password won't help to read your files.


Is it possible to use ubuntu-system-service to set a system-wide proxy setting?

In case anyone is still looking for a solution, here is what I've found. Ubuntu exposes a DBus service via the ubuntu-system-service package, but I'm not familiar with DBus.

However, inspecting the source code (ain't Open Source great?), the setProxy action does 2 things:

Modify the system-wide environment
Modify the proxy settings used by APT

For the first case, the file at /etc/environment is modified. The second case is a little more complicated - files in /etc/apt/apt.conf.d are scanned for lines matching Acquire::::Proxy , where the  values are replaced. If there are no matching lines, then a proxy line (like the above) is added to each APT conf file.

The relevant files are found in UbuntuSystemService/backend.py (~line 209 @ version 0.2.5).

Answering your question, you can either make the same changes that ubuntu-system-service does, or attempt to figure it out using DBus:

dbus-send --system --print-reply --dest=com.ubuntu.SystemService --type=method_call / com.ubuntu.SystemService.set_proxy string:'http' string:'127.0.0.1:8080'

For some reason, I keep getting False as a reply on this one, but you may be able to figure this out.


Enlightemnent, window content upside down

I just waited and, after an update via the update manager, everything went right!

It updated to 0.18.2!


I think my answer on this other question Connect an external monitor to laptop with broken screen will work.

But as I said, I'm on Lubuntu, and I don't know what screen configuration and autostart packages / tools ship with Ubuntu. But I hope it provides as least a place to start working.


How do I execute a .exe file from a certain directory in another directory?

By downloading Wine, you will be able to run an Executable.  A ..exe (or in the old days .exec) is a Windows platform program that tell the code to initialize and run.
This is where Wine comes in.
http://Winehq.org
This is where any windows item you come across can be installed on to your system without Linux being confused.
LoL is current with version 1.79, which will play just about every game out there and execute about any file with the Windows platform code.


Why can I delete a 755 file when I'm not the owner?

You don't need write permissions on a file to delete or move (rename) it. You need write permissions on the directory containing the file, because deleting or renaming are not operations on the file, but operations on the directory's list of files. So in this case the directory of this file probably has write access for the apache user or the apache group.


The swap space is a partition that ubuntu uses as something like virtual memory. Yes, it's created by ubuntu when you install it.

To change its size you need to use gparted to add space to it.

I don't know if it's a good idea to change the size of the swap.


Is there a repository (ppa) that collects closed-source, non-free software?

First of all, a PPA is just one form of a software repository. PPAs are special ones, as they're hosted on Launchpad and must comply with the rules there. A general software repository (privately hosted) can hold whatever packages someone put in there.

PPAs

  Is there a ppa that provides a collection of closed-source, non-free software?

No, PPAs will accept source-only uploads as a policy, by design. The binaries will be built "in the cloud" of Launchpad and both binaries and sources are published in the PPA. So, unless Spotify or Steam are releasing all relevant code (and comply with all packaging+licensing requirements), it will not be possible to publish this in a PPA.

Please refer to "How do I submit a binary?" on Launchpad and this very similar question: "Can I upload binary packages to a Launchpad PPA?".

Abusing PPAs

As mentioned by @dobey, one could make a source package consisting of binary blobs (precompiled binaries), with no need to compile at Launchpad anymore. However, this is rather a hack and outside the terms of use for Launchpad PPAs. source in "source package" does not mean anything in such a case. Having several of these packages to just to "collect" several pieces of software for the convenience will not exist very long.

Other types of repositories

Software vendors can (and already do) publish this in a private (binary-only) repositories (e.g.Google Linux repositories), or, Canonical may include them in the extras and/or partner repositories. This is how Skype and Adobe Flash Player are being distributed by an "official" Canonical-maintained repository, easily accessible for all Ubuntu users. Also, the MyApps project as proposed by @dobey is an example for a way closed-source software can be maintained in a repository. However, for MyApps, this has to be on the initiative of the vendors.


Help needed to choose the right version of ubuntu to install

I recommend Ubuntu 11.10 because it is the newest version, and in 3 months the 12.04 LTS will be out. So in this way you get familiar with the new feature until the long time support (12.04 LTS) will be out.
If your laptop is 64 bit architecture, definitely go and install the 64bit Ubuntu

P.S. I looked over your laptop, and it can handle 64 bit. go for it.