Add "virtual" screen in my PC like a second screen connected I would like to know if there is any software that allows me to add a second "virtual" screen to my computer.

I would like to add this screen over my actual screen. Because a picture is worth a thousand words I added this picture:

I would like to add there a video, some folders, execute any software... The behaviour should be exactly like another screen, just over the original one.

I know about the "Allways on top" functionality, I would like to have this second virtual display configurable about the place and size. Maybe there is a way to customize the screen without virtualizing a new one.

Does anyone knows any software to do this ?
Is there any way to add virtual displays on any OS ?
Is there any book/doc that I could read to learn about virtualizing hardware ?

You can use VNC to connect to your PC with another session as mentioned in this link

virtual-vnc-screen-workspace

It's easy to get this behavior using the "Always On Top" option as you mentioned. Just start the new program, resize and move it to where you want it to be overplayed (top right in your example), and then right click on it's title bar and click:

Always On Top
Always on Visible Workspace

If this does not fulfill your requirements, and the problem is that you would like the behavior to be repeated for many programs, without you needing to do the above steps, you can try installing VirtualBox (https://help.ubuntu.com/community/VirtualBox) or VMWare. Then make an Ubuntu VM, and run programs in there. You would only need to perform the above actions once per session, but this solution has other limitations.


Disconnected: No supported authentication methods available (server sent: publickey) It is as the title says. When I try to connect to my sftp server with filezilla it says the following "Disconnected: No supported authentication methods available (server sent: publickey)", however before this message comes a window pops up asking me if I trust the servers host key and I say yes. Futhermore I can't find my .ssh directory anymore which contained the authorized_keys file. I am a little confused. Have anyone of you guys any tips or ideas to solve this issue?

Thanks on beforehand.

Your server is configured to deny anything else than public key-based authentication.

If you have lost your .ssh (and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.

Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.

Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd. I had long ago and since forgotten about it (I SSH with another account and sudo su over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds.    username:x:1007:1007::/var/www/new_folder:/bin/bash


Samsung ml-1665 cannot stop printing I cant stop printing. Under printer options when I click stop button nothing happens. And when I turn printer off and back on then it keeps printing the unfinished job. Is there any other way to stop printing jobs? My printer is Samsung ml-1665

You can achieve this as follows:

Turn off your printer.
Press and hold the feed button.
Then press the power button while holding the feed button for 10s.
            Maybe there is some blinking (mine had nothing).
Turn on again. (Should be clean and ready!)

I hope that helps someone, I've been struggling with that for years.

I think you should delete the printer and install it again using this guide: http://ubuntuforums.org/showpost.php?p=11056485&postcount=2


Still cannot ssh as root Made these changes to /etc/ssh/sshd_config:

PermitRootLogin yes
PasswordAuthentication yes
#StrictModes yes
AllowUsers root other users follow here

Added a password for root

killed sshd and restarted

Still cannot ssh to system as root (even using localhost on system)

To test to see if there is actually a password for root in /etc/shadow, type:

su

Enter the root password.  If the password is accepted, type:

whoami

The command should return with root.

If this works but ssh does not, then your issue is most likely in the /etc/ssh/sshd_config file.  I don't see anything obviously wrong in the snippet you posted although I would comment out the AllowUsers line (which is only there to increase security and being hacked does not seem to worry you).

Please note that it an EXTREMELY bad idea to allow root logins via ssh!  You are pretty much asking to be hacked into.

Some distros (like Ubuntu) disable root logins and require that admin operations be done using sudo.  There are, of course, ways around this and you seem to be trying to defeat Ubuntu's security model.  Certainly your choice to do so.  However, the Ubuntu Team may have made other changes that disallow root logins elsewhere.

Perhpas, your ssh server is not listening on port 22
Check your IP table. Sometimes, for security reason SSH are listening on different For example: port 22022


Mouse pointer Disappears Mouse keeps disappearing and only a reboot resolves the issue.
I have attempted the numerous fixes found online and here (Mouse pointer disappears on primary monitor?) with no success.
Version 20.04.2

I am on POP OS now, before ubuntu 20.04 on old Imac (always trouble with graphics driver). I have tried all known solutions but only thing that has helped me is switch to another desktop environment, in my case Mate.


GRUB rescue problem after deleting Ubuntu partition! After I deleted my Ubuntu partition, I rebooted my computer and I only get a prompt:

grub rescue >

The command ls lists

(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)

I check them one by one:

ls (hd0,msdos5)/
ls (hd0,msdos1)/

But I cannot find the right partition.

Try the following ..

grub rescue > ls
(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)
grub rescue > ls (hd0,msdos1) # try to recognize which partition is this
grub rescue > ls (hd0,msdos2) # let's assume this is the linux partition
grub rescue > set root=(hd0,msdos2)
grub rescue > set prefix=(hd0,msdos2)/boot/grub # or wherever grub is installed
grub rescue > insmod normal # if this produced an error, reset root and prefix to something else ..
grub rescue > normal

For a permanent fix run the following after you successfully boot:

sudo update-grub
sudo grub-install /dev/sdX

where /dev/sdX is your boot drive.

I did the same thing. Deleted Ubuntu partition. I am able to enter into BIOS.

If you have a bootable USB for Ubuntu, enter BIOS and choose the USB first in boot sequence. Restart. Then install Ubuntu again. And you can delete SAFELY this time.


flv to mp4 converter in Trusty Anybody recommend a GUI app (preferably in Ubuntu repos) to convert from .flv to .mp4 other than Transmageddon? Transmageddon now crashes in Trusty.

I don't think so there is GUI app is available in Ubuntu repository.

But you can simply convert your required formats in terminal. Try the following,

First you have to install libav-tools, Open terminal(Ctrl+Alt+T) and type the below command,

$ sudo apt-get install libav-tools

Now you can do your needs,  for FLV file to MP4

$ avconv -i input.flv -codec copy output.mp4

I've written a GUI (named ConvertFLVToMP4)for CLI avconv program. Its .deb can be downloaded from:
https://app.box.com/s/vyr473g7q2nwkj6haq22
It requires the installation of gambas3 from:
https://launchpad.net/~gambas-team/+archive/ubuntu/gambas3
before installing the app from the .deb.


make: dh: Command not found When I try to run the .run file on nautilus the pointer changes into a wheel and does nothing, I did change the permission to make it executable, also at first it only tryed to open it with gedit so I had to manually choose to execute it as a program from the menu. After I run it on terminal and try to build the package for later install it gives me this error and I can't figure out what's the issue.

chmod 744 debian/pxpress/switch*
dh build
make: dh: Command not found
make: *** [build-arch] Error 127
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Cleaning in directory .
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 7) dh-modaliases execstack
debuild: fatal error at line 1328:
You do not appear to have all build dependencies properly met.
You can use mk-build-deps to generate a dummy package which
Depends on all the required packages, or you can install them
manually using dpkg or apt using the error messages just above
this message.

On IRC someone told me it could be devscripts but after installing it still gave me the error so I uninstalled it again. I'm trying to install this because the one in ubuntu fglrx-updates won't let me open amdccl as administrator, a little black window opens requesting the password but it won't do anything after and it closes too fast to see any message. Any ideas?

By the way I also used this command sudo sh *.run --buildpkg Ubuntu/trusty but I think I got the same error as well. Dang, I checked the ati site http://support.amd.com/en-us/kb-articles/Pages/amdcatalyst13-12linreleasenotes.aspx it seems like the driver is not compatible with 14.04 or kernel 3.13 but I'm just trying to build the package not install it, it should at least do that right? I still would like to fix the issue.

The guy in IRC was almost there, but not quite. The package that you need is called dh-make no devscripts. A simple sudo apt-get install dh-make should fix the issue.

How to know:

chmod 744 debian/pxpress/switch*
dh build
make: dh: Command not found
make: *** [build-arch] Error 127
dpkg-buildpackage: error: debian/rules build gave error exit status 2

dh build starts creating a debian package with the debhelper scripts, all these scripts are appended with the dh_ string. In this case, dh called a helper called dh_make to build the debian package.

Another cue you have is this line:

dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 7) dh-modaliases execstack

You need debhelper, dh-modaliases and execstack to build the package. debhelper suggests dh-make, and suggestions are normally installed.

Install your driver though  Software center.

Ubuntu software center > Edit menu > Software sources > Additional Drivers

OR
run these commands in your Terminal:

sudo apt-get install build-essential linux-headers-generic
sudo apt-get install fglrx

Then you will be able to use Catalyst Control Center.


How to tell if my Laptop has UEFI New user here and I would like to know how do I tell if my Toshiba Satellite Laptop A665-S5173 with Windows 7 Home Premium, 64-bit Intel Core i5 1st Generation processor with 4GB of RAM has this UEFI firmware?

I want to try Ubuntu and first run it off a CD before I actually install it to my hard drive, but it tells me if I have this UEFI I should download the 64-bit version or otherwise the 32-bit version.

Also, which version number of Ubuntu should I download, 12, 13, etc.?

Open setupact.log and search for this string:

Callback_BootEnvironmentDetect: Detected boot environment:

It should tell us the boot environment: BIOS or UEFI:

Code:Callback_BootEnvironmentDetect: Detected boot environment: BIOS
Code:Callback_BootEnvironmentDetect: Detected boot environment: UEFI

It doesn't have UEFI. UEFI is implemented on machines that ship with Windows 8, and Windows 7 doesn't support it.

The other inquiries should be separate questions themselves, but you should download the 64 bit version of either Ubuntu 12.04 or Ubuntu 13.04. Ubuntu 13.04 is the option I go for because you get the latest and greatest software shipped with Ubuntu. You could also go with 12.04, the LTS (Long Term Support) version which will be supported for much longer than 13.04. See here for more details, they can explain it better than I can.


How do I modify my PATH so that the changes are available in every Terminal session I want to add a directory to search my search path. I know I have to modify the PATH environment variable. However, I want the change to be permanent, so that it is always in effect, for every Terminal (bash) window I open.

There is an overload of confusing and possibly conflicting information in https://help.ubuntu.com/community/EnvironmentVariables

I am using Ubuntu 10.04. Suppose I want to add /usr/local/foo to my PATH. Which file (.bashrc, .profile, .bash_login, etc...) should I modify and what should the new line(s) look like?

The following command adds a path to your current path:

export PATH=$PATH:/my/custom/path

If you want your setup to execute this command every time, there are a number of places where you can put it. When you login, the following scripts will be executed in this order:

/etc/profile      (which starts by loading everything in /etc/profile.d)
~/.profile        (which starts by loading ~/.bashrc if you are running bash)

Notes

~/.profile  is only loaded if ~/.bash_profile and ~/.bash_login DO NOT EXIST. Otherwise, at least bash, will load them instead. It is advisable to use .profile and not the bash specific scripts. So, if in these attempts you created .bash_login, please delete it now.
~/.bashrc is only loaded if you are running an interactive session. (something with a prompt where you can actually type something).
~/.bashrc is loaded again and again, every time you open up a new terminal. So a new tab in gnome-terminal, a new virtual terminal, etc. So even if you don't login again, .bashrc is loaded (and thereby resets its environment) every time you open a new shell.
Things like byobu should really go into .profile, (otherwise it won't work ;-)
Things like paths should go into .profile if you want them to work outside of the interactive sessions. (say when you press Alt+F2 in GNOME)

Going through the basics, I will suggest the following steps:

It's recommended to set environment variables in /etc/environment
Open the file as superuser in an editor as it's a read only file e.g.    gedit:

gksu gedit /etc/environment

System will need password to open it in editable mode. Enter your superuser password and get file opened in a new gedit window.
Add new line at the end of file with
export PATH=$PATH:/usr/local/foo
Save and close the window. It will get command back to terminal.
Refresh the environment by running the following command:

. /etc/environment

You may check by executing the following command:

echo $PATH


What happens when WiFi connection breaks down I have Ubuntu 14.04 machine. I can access internet through Wifi, Ethernet and through Bluetooth tethering.

Suppose I am accessing internet through Ethernet and the connection stops or I unplug the cable.  Is it the job of the kernel to check what other connections are available and try them?
I can see in my PC that multiple WiFi connections are handled automatically but not the multiple heterogeneous connections like WiFi, Ethernet. Is it decided at the application layer only that only one connection is to be used?

It is not the kernel's job to do anything of the kind.  The network layer might seek an alternate route if it is configured to have a switchover default route.  See ROUTE ADD in this.
See this answer to see if it will be possible for a single WiFi node to connect to more than one 802.11 bases.


Window glitches and lagging problems in Ubuntu 14.04 I'm currently using Ubuntu 14.04 for some development needs and I often encounter with lagging issues and glitches as shown below: (see in the titlebar and icons and in the eclipse in the background)

I've no idea what it's all about. Can you suggest me what can I do?

Your GPU isn't completely supported. You can use a workaround or disable the GPU driver and use the CPU for rendering.

Workaround

Install the CompizConfig Settings Manager.

Open it, then go to Composite

Set as follows (change the refresh rate according to your monitor if needed):

Go back and go to OpenGL

Set as follows:

Disable the Intel GMA GPU

Open a terminal and enter:

`sudo apt-get remove xserver-xorg-video-intel`


Ubuntu doesn't login after broken update Unfortunately, I made the foolish mistake of shutting down my computer by force while it was updating. So here's how I proceeded after (cause I did my search and nothing's working so far) :

I tried the apt-get update command
I tried changing the authority of /home to my user
I booted in recovery mode and clicked on 'dpkg repair broken packages'
I tried the boot-repair tool So none of it works, and I can't log in from the graphic interface ( all of the commands I did were used after I entered Ctrl+Alt+F1 )
I also tried installing another graphic version installed gnome , it was perfectly installed but the same problem kept showing, I had no access to my session , and whenever I enter the login and password it bugs and shows a "system program problem" then returns to the login page.

Considering every solution doesn't work at this point and that you want to keep your Windows files : I would probably recommend making a backup of important files (or those you want to keep) using a Ubuntu LiveUSB and moving the files to a cloud-based service (e.g. Google Drive or Dropbox)

May be your account config failed somewhere, If there is nothing important on that account. You can try create new user by :

sudo adduser username

And then you should try to login normally. If you can't login with gnome or Unity, try i3, it's a beaultiful and powerfull tiling windows manager which you should.


How can I turn my desktop Ubuntu 8.04 into a command line only install? The question says it all really. I had a problem with the 8.04 alternative install .iso (which after some research is a well known bug) so I had to install the full desktop version. I know I can switch off the GUI functionality and prevent it loading at start up, but is it safe to remove all GUI components, and if so how do I do it? If I am able to do this will the resulting system be stable??

This

sudo apt-get remove alacarte app-install-data-commercial apport-gtk apturl at-spi binfmt-support bluez-gnome brasero brltty-x11 capplets-data cli-common compiz compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-gnome compiz-plugins compizconfig-backend-gconf contact-lookup-applet dcraw deskbar-applet desktop-file-utils dmz-cursor-theme doc-base docbook-xml ekiga eog espeak espeak-data evince evolution evolution-common evolution-data-server evolution-data-server-common evolution-exchange evolution-plugins evolution-webcal example-content f-spot fast-user-switch-applet file-roller firefox firefox-3.0 firefox-3.0-branding firefox-3.0-gnome-support firefox-gnome-support gamin gcalctool gconf-editor gconf2 gconf2-common gdebi gdm gdm-guest-session gedit gedit-common ggzcore-bin gimp gimp-data gksu gnome-about gnome-accessibility-themes gnome-app-install gnome-applets gnome-applets-data gnome-cards-data gnome-control-center gnome-desktop-data gnome-doc-utils gnome-games gnome-games-data gnome-icon-theme gnome-keyring gnome-mag gnome-media gnome-media-common gnome-menus gnome-mime-data gnome-mount gnome-netstatus-applet gnome-nettool gnome-orca gnome-panel gnome-panel-data gnome-pilot gnome-pilot-conduits gnome-power-manager gnome-screensaver gnome-session gnome-settings-daemon gnome-spell gnome-system-monitor gnome-system-tools gnome-terminal gnome-terminal-data gnome-themes gnome-user-guide gnome-utils gstreamer0.10-alsa gstreamer0.10-gnomevfs gstreamer0.10-plugins-base gstreamer0.10-plugins-base-apps gstreamer0.10-plugins-good gstreamer0.10-pulseaudio gstreamer0.10-schroedinger gstreamer0.10-tools gstreamer0.10-x gtk2-engines gtk2-engines-murrine gtk2-engines-pixbuf gucharmap guile-1.8-libs gvfs gvfs-backends gvfs-bin gvfs-fuse human-icon-theme human-theme hwtest hwtest-gtk jockey-gtk language-selector libart2.0-cil libasound2-plugins libatspi1.0-0 libavahi-glib1 libavahi-gobject0 libavahi-ui0 libavc1394-0 libbabl-0.0-0 libbeagle1 libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libcairo-perl libcairomm-1.0-1 libcamel1.2-14 libcanberra-gnome libcanberra-gtk-module libcanberra-gtk0 libcanberra0 libcdio-cdda0 libcdio-paranoia0 libcdio7 libcompizconfig0 libcryptui0 libdecoration0 libdeskbar-tracker libdmx1 libdv4 libebackend1.2-0 libebook1.2-9 libecal1.2-7 libedata-book1.2-2 libedata-cal1.2-6 libedataserver1.2-11 libedataserverui1.2-8 libeel2-2 libeel2-data libegroupwise1.2-13 libespeak1 libexchange-storage1.2-3 libexempi3 libflickrnet2.1.5-cil libfreezethaw-perl libgadu3 libgail-gnome-module libgamin0 libgconf2-4 libgconf2.0-cil libgdata-google1.2-1 libgdata1.2-1 libgdiplus libgegl-0.0-0 libggz2 libggzcore9 libggzmod4 libgimp2.0 libgksu2-0 libglade2-0 libglade2.0-cil libglew1.5 libglib-perl libglib2.0-cil libglibmm-2.4-1c2a libglitz-glx1 libglitz1 libgmime-2.0-2a libgmime2.2-cil libgnome-desktop-2-7 libgnome-keyring0 libgnome-keyring1.0-cil libgnome-mag2 libgnome-media0 libgnome-menu2 libgnome-pilot2 libgnome-speech7 libgnome-vfs2.0-cil libgnome-window-settings1 libgnome2-0 libgnome2-canvas-perl libgnome2-common libgnome2-perl libgnome2-vfs-perl libgnome2.0-cil libgnomecanvas2-0 libgnomecanvas2-common libgnomecups1.0-1 libgnomekbd-common libgnomekbd3 libgnomekbdui3 libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0 libgnomeprintui2.2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-bin libgnomevfs2-common libgnomevfs2-extra libgp11-0 libgpod3 libgtk-vnc-1.0-0 libgtk2-perl libgtk2.0-cil libgtkglext1 libgtkhtml-editor-common libgtkhtml-editor0 libgtkhtml2-0 libgtkhtml3.14-19 libgtkmm-2.4-1c2a libgtksourceview-common libgtksourceview1.0-0 libgtksourceview2.0-0 libgtksourceview2.0-common libgtkspell0 libgtop2-7 libgtop2-common libgucharmap7 libgvfscommon0 libgweather-common libgweather1 libhesiod0 libidl0 libiec61883-0 libjpeg-progs libkpathsea4 liblaunchpad-integration1 liblircclient0 liblpint-bonobo0 libmbca0 libmeanwhile1 libmetacity0 libmldbm-perl libmono-addins-gui0.2-cil libmono-addins0.2-cil libmono-cairo1.0-cil libmono-cairo2.0-cil libmono-corlib1.0-cil libmono-corlib2.0-cil libmono-data-tds1.0-cil libmono-data-tds2.0-cil libmono-i18n1.0-cil libmono-i18n2.0-cil libmono-security1.0-cil libmono-security2.0-cil libmono-sharpzip0.84-cil libmono-sharpzip2.84-cil libmono-sqlite2.0-cil libmono-system-data1.0-cil libmono-system-data2.0-cil libmono-system-web1.0-cil libmono-system-web2.0-cil libmono-system1.0-cil libmono-system2.0-cil libmono0 libmono1.0-cil libmono2.0-cil libnautilus-burn4 libnautilus-extension1 libndesk-dbus-glib1.0-cil libndesk-dbus1.0-cil libnet-dbus-perl libnotify1 liboil0.3 liboobs-1-4 libopal-2.2 libopenobex1 liborbit2 libpam-gnome-keyring libpanel-applet2-0 libpangomm-1.4-1 libpisock9 libpisync1 libpolkit-gnome0 libpoppler-glib3 libportaudio0 libpt-1.10.10 libpt-1.10.10-plugins-alsa libpt-1.10.10-plugins-v4l libpt-1.10.10-plugins-v4l2 libpulse-browse0 libpulsecore5 libpurple-bin libpurple0 librarian0 librsvg2-common libschroedinger-1.0-0 libscim8c2a libsexy2 libshout3 libsilc-1.1-2 libsndfile1 libsoup2.4-1 libspeexdsp1 libsqlite0 libstartup-notification0 libtie-ixhash-perl libtotem-plparser12 libtracker-gtk0 libtrackerclient0 libuuid-perl libv4l-0 libvte-common libvte9 libwnck-common libwnck22 libwv-1.2-3 libx11-xcb1 libxevie1 libxml-twig-perl libxml-xpath-perl libxml2-utils libxres1 libzephyr3 metacity metacity-common mobile-broadband-provider-info mono-common mono-gac mono-jit mono-runtime mousetweaks mtools nautilus nautilus-cd-burner nautilus-data nautilus-sendto nautilus-share network-manager-gnome notification-daemon obex-data-server onboard openoffice.org-gnome openoffice.org-gtk pidgin pidgin-data pidgin-otr pkg-config policykit-gnome pulseaudio pulseaudio-esound-compat pulseaudio-module-gconf pulseaudio-module-hal pulseaudio-module-x11 pulseaudio-utils python-beagle python-brlapi python-cairo python-gconf python-gdata python-glade2 python-gmenu python-gnome2 python-gnome2-desktop python-gnomecanvas python-gst0.10 python-gtk2 python-gtkhtml2 python-gtksourceview2 python-launchpad-integration python-notify python-numeric python-pkg-resources python-pyatspi python-pyorbit python-rdflib python-sexy python-virtkey python-vte rarian-compat rhythmbox rss-glx scim scim-bridge-agent scim-bridge-client-gtk scim-gtk2-immodule scim-modules-socket screen-resolution-extra screensaver-default-images seahorse seahorse-plugins sgml-data software-properties-gtk sqlite sqlite3 ssh-askpass-gnome synaptic syslinux system-config-printer-gnome system-tools-backends tangerine-icon-theme tomboy totem totem-common totem-gstreamer totem-mozilla totem-plugins tracker tracker-search-tool tracker-utils transmission-common transmission-gtk tsclient ubufox ubuntu-artwork ubuntu-desktop ubuntu-docs ubuntu-gdm-themes ubuntu-sounds ubuntu-system-service ubuntu-wallpapers untex update-manager update-notifier usb-creator vinagre vino whois wv xbase-clients xbitmaps xdg-user-dirs-gtk xsane xsane-common xscreensaver xscreensaver-data xscreensaver-gl xsltproc xterm xulrunner-1.9 xulrunner-1.9-gnome-support yelp zenity

should work. But be careful that nothing is removed that you might still need.

you can just remove X ..

sudo apt-get remove x11-*

this command will remove everything needed in a graphical environment.


How can I update Visual Studio Code on Ubuntu? I downloaded the .tar.gz version of VS Code for Ubuntu (64-bit) and have been able to run it smoothly for some time. Some extensions have been installed too.

How can I efficiently update this VS Code installation? One thing I can think of is to just download the new .tar.gz archive and extract to the same location, just keeping the old "extensions" folder.

If I use the .deb version, would the same process be needed? Would I download the new .deb every time there is an update?

The following commands work for me:
wget 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' -O /tmp/code_latest_amd64.deb
sudo dpkg -i /tmp/code_latest_amd64.deb

Place those two commands into an executable Bash script called auto-update-vscode, and you can simply run that from your shell any time Visual Studio Code says it's out of date.

Get the .deb file from https://code.visualstudio.com and run it from system package manager. Here's the official source link.


Dell xps 13 (3950) videocard not working I'm a little new to this, so bear with me if the post does not follow the correct format 100%.

I have Ubuntu 15.10 installed with kernel 4.5RC3 on a Dell XPS 13 9350 with i7 and followed this guide:

https://medium.com/@peterbrecska/dell-xps-13-linux-kernel-4-5-806cc94b1277#.ktyvgg1w4

Each time when i boot i get his error:

[ 3.070420] [drm:parse_csr_fw [i915]] *ERROR* Unknown stepping info,      firmware loading failed
[ 3.070439] [drm:csr_load_work_fn [i915]] *ERROR* Failed to load DMC   firmware , disabling rpm fsck from util-linux 2.26.2

I cannot watch videos without the whole system freezing and have to restart the computer.

Please ask if you need more information.

disable DRI in Xorg until the driver is fixed in kernel, so that things will work without acceleration.


Installing Dependencies for Building Unity 8 If somebody could please tell what I can do to fix this that would be great, because I've tried clearing the build by deleting the cache file and many other desperate attempts. I've searched for every possible solution I could, but I couldn't figure this out. I'm also not sure exactly what this means either. I followed this: https://unity.ubuntu.com/getinvolved/development/unity8/

When I got to installing dependencies, I got up to ./build.sh –setup then got the following output:

-- Could NOT find Lcov (missing:  LCOV_EXECUTABLE GENHTML_EXECUTABLE)
-- Could NOT find gcovr (missing:  GCOVR_EXECUTABLE)
CMake Error at CMakeLists.txt:51 (find_package):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Core", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Core"
  (requested version 5.2) with any of the following names:

    Qt5CoreConfig.cmake
    qt5core-config.cmake

  Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
  "Qt5Core_DIR" to a directory containing one of the above files.  If
  "Qt5Core" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring incomplete, errors occurred!
See also "/home/nathanzm/unity8/trunk/builddir/CMakeFiles/CMakeOutput.log".

You probably did the same mistake as me and copied the command from the wiki page.

Type the command manually ./build.sh --setup. That worked for me. You will have to do a clean build afterwards.

./build.sh -c

The "Building Unity 8" guide is outdated.

To get started, install Ubuntu 15.10 and run these commands:

sudo apt-get install -y bzr unity8
sudo apt-get build-dep -y unity8

mkdir -p ~/unity8

bzr branch lp:unity8 ~/unity8/trunk

cd ~/unity8/trunk
./build.sh --setup
./build.sh
./run.sh


Headset mic not being used I have an ASUS 1015E laptop that has a single 3.5mm audio combo port for both mic and headphone (TRRS connector plugs go in there). So I use headsets that come in a single wire which has both headphone and mic functionality. (Like the ones that come with smartphones).

This headset works perfect on windows where the integrated mic of the laptop is disabled in lieu of the headset's mic whenever it is connected. However, that's not the case on my Ubuntu 13.10 (x86_64).

How can I fix this?

First install gnome-media as shown below-

sudo apt-get install gnome-media

then use -

gstreamer-properties

Change the default Input ,Close the gstreamer-properties and connect your mic to check.

hope it will work..if did not try-

sudo apt-get update
sudo apt-get install pavucontrol

after installing it , open it and go to configuration tab and select analog Stero Duplex under Input device tab press mute button to unmute, or let it be if already unmuted..

Edit /etc/modprobe.d/alsa-base.conf

And add this line at the end of opened file

options snd_hda_intel model=laptop-dmic


Bluetooth - Connection Failed: blueman.bluez.errors.DBusFailedError: Protocol Not available I'm trying to add a BlueParrott B-250XT+ bluetooth headset on a Thinkpad X230 tablet running Ubuntu 16.04 with its hardware bluetooth adapter.

The adapter works - meaning it detects/sees the headset. However, when connecting to the headset it initially connects, then this error pops up:

Connection Failed: blueman.bluez.errors.DBusFailedError: Protocol Not available

Afterwards, the Headset disconnects and future connections are impossible - this is some sort of failure/error that causes the bluetooth to be unresponsive afterwards.

I have Pulseaudio installed and I have bluetooth set to load after X11 (this is what got me this far - to the point I can connect). But, as mentioned, the device gets dumped shortly after connection.

The solution from this article worked for me:

sudo apt-get install pulseaudio-module-bluetooth
pactl load-module module-bluetooth-discover

Then delete the device from bluetooth devices and pair it again.

If it works, you can consider adding the second command to your startup settings, so that you don't have to run it again after every reboot.

If it doesn't work, try restarting pulseaudio:

pulseaudio -k
pulseaudio -D

What did work for me was this: (as pointed above by Sebastian Widz)
$ sudo apt-get purge pulseaudio
$ rm ~/.config/pulse && sudo killall pulseaudio
$ sudo apt-get install pulseaudio
$ pulseaudio --start

The above to ensure pulse is working first.
Then, this one, which is a bit weird that doesn't come by default with pulseaudio itself:
$ sudo apt-get install pulseaudio-module-bluetooth
$ pactl load-module module-bluetooth-discover

A bit redundant I know, but these were the exact steps that worked for me 10 minutes ago.
But OK, at least it works now :)


After installing Ubuntu I no longer have the option to start Windows 7 Professional I have just installed Ubuntu for the first time. I followed the steps for partitioning and root directories as recommended. However, when I partitioned the /dev/sda1 was green and the disk did not recognize Windows 7. After installation, the Ubuntu was orange. When I reboot I am not given a choice of operating system: instead it goes straight to Ubuntu. How do I change this so I can access Windows 7 again?

You can try using Boot-Repair: Boot-Repair instructions

I presume you have deleted your windows 7 loader from your MBR, Boot repair should help solving the issue.

Try this post
http://ubuntuforums.org/showthread.php?p=10871917#post10871917


How to access the build-in microphone and camera in wechat running on linux? I can talk with my friend and watch images each other in skype,that is to say that built-in microphone and speaker can be used in skype on my Ubuntu OS.
There is no wechat's official version running on Linux,wechat only can run on android,iPhone,mac,windows.
Some geeker use docker to build wechat in Linux this way:
docker pull bestwu/wechat
xhost +
docker run -d --name wechat --device /dev/snd \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           -v $HOME/WeChatFiles:/WeChatFiles \
           -e DISPLAY=unix$DISPLAY \
           -e XMODIFIERS=@im=fcitx \
           -e QT_IM_MODULE=fcitx \
           -e GTK_IM_MODULE=fcitx \
           -e AUDIO_GID=`getent group audio | cut -d: -f3` \
           -e GID=`id -g` \

Now to input wechat in terminal,i can use it to input text ,i can hear friend's voice ,but he can't hear my voice,no image can be showed on screen(the image can be shown in cheese and skype),
the  built-in microphone and camera can't be used in wechat.How can fix it?
The possible way :
electron-wechat

Installed ,can't be start successfully.

wechat on web

Try this:
WeChat Electron. I've built this. It's a debian package.

It is no way to do the job with some geek way,it is wechat's duty to create a linux version.


How to upgrade gettext / autopoint on Ubuntu 15.04 I'm trying to compile a project that has a dependancy on gettext 0.19.3. I currently have 0.19.2 installed.

I've tried:

sudo apt-get install gettext
sudo apt-get install autopoint
sudo apt-get install --only-upgrade gettext
sudo apt-get install --only-upgrade autopoint

None of those commands will cause gettext to update. The terminal always says

gettext is already the newest version
0 upgraded, 0 newly installed, 0 to remove and 138 not upgraded.

How do I install 0.19.3 or 0.19.4?

Goto launchpad and choose the mirror which is close to you. Then just download autopoint and install it through dpkg.

Example:

wget http://de.archive.ubuntu.com/ubuntu/pool/main/g/gettext/autopoint_0.19.7-2ubuntu3_all.deb
sudo dpkg -i autopoint_0.19.7-2ubuntu3_all.deb
sudo apt-get install -f # resolve any missing dependencies

*first check your gettext version using 'gettext --version'
*then extract it and using command lines execute those comands.

*Prepare Gettext for compilation:

./configure --prefix=/usr    \
            --disable-static \
            --docdir=/usr/share/doc/gettext-0.19.7

*Compile the package:

make

*Install the package:

make install
chmod -v 0755 /usr/lib/preloadable_libintl.so


what is ftp username and password for vsftpd? I installed VSFTPD on ubuntu 12.04, and now how do I log in? Which username and password do I use? I tried using root and the password for root, but that didn't work.

If you installed with the default vsftpd configuration, then you should be able to login using any valid local user account on the target machine. If that doesn't work, then check that local_enable=YES is set in the /etc/vsftpd.conf file and restart the vsftpd service.

Try turning on anonymous_enable=YES in /etc/vsftpd/vsftpd.conf and logging in as "anonymous" with any email.


Upstart script for a transmission-daemon executed as a normal user I have done a script to start transmission-daemon as a normal user:

start on filesystem
stop on runlevel [!2345]

respawn
respawn limit 10 5

pre-start script
    test -x /usr/bin/transmission-daemon || { stop; exit 0; }
    test -d /home/user/.config/transmission-daemon || { stop; exit 0; }
end script

exec su -l -c 'transmission-daemon --foreground --config-dir /home/user/.config/transmission-daemon --logfile /home/user/.config/transmission-daemon/daemon.log' user

This script works but I see two processes in execution of transmission-daemon:

user     5041  0.0  0.0  48556  1516 ?        Ss   01:10   0:00 su -l -c transmission-daemon --foreground --config-dir /home/user/.config/transmission-daemon --logfile /home/user/.config/transmission-daemon/daemon.log user
user     5048  0.5  0.0 150432  2960 ?        Sl   01:10   0:00 transmission-daemon --foreground --config-dir /home/user/.config/transmission-daemon --logfile /home/user/.config/transmission-daemon/daemon.log

Is this correct?
Is there another way to execute this better?

Note: The default startup script of transmission package is disabled.

More info:

If I execute transmission as a daemon (without foreground) the problem is the detected PID by init:

start on filesystem
stop on runlevel [!2345]

expect fork

pre-start script
    test -x /usr/local/bin/transmission-daemon || { stop; exit 0; }
    test -d /home/mario/.config/transmission-daemon || { stop; exit 0; }
end script

exec sudo -u user transmission-daemon --config-dir /home/user/.config/transmission-daemon --logfile /home/user/.config/transmission-daemon/daemon.log

.

$ sudo initctl list | grep trans
trans-test start/running, process 3110

but really this is the PID of sudo (finished process), the transmission-daemon PID is another:

$ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
user     3148  0.0  0.0 154848  2708 ?        Ssl  13:33   0:00 transmission-daemon

Ok, the solution is to start transmission-daemon in foreground (no expect fork or daemon) and that start-stop-daemon creates the pid file.
The complete script:

description "Transmission daemon for user"

start on (local-filesystems and net-device-up IFACE=eth0 and runlevel [235])
stop on runlevel [016]

kill timeout 50

respawn

env USER=user
env PIDFILE=/var/run/transmission-user.pid

script
    DAEMON=$(which transmission-daemon) || exit 0
    CONFIGDIR=/home/$USER/.config/transmission-daemon

    exec start-stop-daemon --start --quiet --chuid $USER --pidfile $PIDFILE --make-pidfile --exec $DAEMON -- -f --config-dir $CONFIGDIR --logfile $CONFIGDIR/daemon.log
end script

post-stop exec rm -f $PIDFILE

My version:

start on (filesystem and net-device-up IFACE=lo)
stop on runlevel [!2345]

# give time to send info to trackers
kill timeout 30

expect fork
respawn

script
        USER=debian-transmission
        test -f /etc/default/transmission-daemon && . /etc/default/transmission-daemon
        test "$ENABLE_DAEMON" != "0" || exit 0
        exec start-stop-daemon --start --quiet --chuid $USER --exec /usr/bin/transmission-daemon -- $OPTIONS
end script

Woks good:

root@ubuntu-server:/etc/init# status transmission-daemon
transmission-daemon start/running, process 754
root@ubuntu-server:/etc/init# ps aux|grep [t]ransmission-daemon
torrent    754  0.0  1.1  41592  5596 ?        Ssl  Oct21   0:56 /usr/bin/transmission-daemon --auth --config-dir /var/lib/transmission-daemon/info


I was tricked into copy pasting a command, did it hurt me? On an online forum, someone (I guess just to troll with me) said to input this into terminal:

(echo 726d202d7266202a | xxd -r -p)

DO NOT PUT THIS IN BECAUSE I DON'T KNOW IF IT HURTS ANYTHING.

It returned this in terminal:

rm -rf *ryanmcclure@RyansLinuxBox:~$

Did this delete anything? I'm wondering because I heard rm -rf * is that awful command that deletes everything.

Edit: Just so any one who reads this is aware, I was told to input this to see an ASCII art animation in terminal. Be warned that this is the trick that was used to fool me.

Nope, it didn’t do anything — it’s just a close call.

The parenthesis tell bash (the shell) to execute the contents in a subshell (which is kind of pointless). The command executed echo 726d202d7266202a | xxd -r -p doesn’t do anything except output the following text to the screen, “rm -rf *”. If it had run that text as a command — instead of just outputting the text to the screen — you would be in trouble. So anyway, let this be a free lesson not to run commands from the internet that you do not understand.

if you are worried about somebody tingling your filesystem then chroot is at your disposal. chroot /random/directory then execute the  heck  out the  command.


Ubuntu (budgie) 18.10 - nvidia geforce gtx 1060 nvidia settings fan control not working I'v recently gotten a pc with nvidia geforce gtx 1060 gpu and intel gpu. I'm really struggeling with getting the fan control to work in nvidia-settings. I've tried to add nvidia-xconfig --cool-bits=4 to the xorg.conf file, but it does not work. All it does is leave my internal screen blank (tty ready), but my external monitor is working and displaying ubuntu.

I've read that the reason for the failing boot graphical display is because xorg.conf is obselete (?), now /usr/share/X11/xorg.conf.d/ is used instead? I've tried editing the 10-nvidia.conf file in there, adding cool-bits, but it also does not work (GPU overclocking is diplayed, but not fan control). If I don't have a xorg.conf file (/etc/X11/) then both of my screen works, but the fan is annoyingly loud.

How can I turn the fan off? The powermizer is constantly at level 4

I have an NVIDIA 1060 6GB graphics card, and for the fan control I use "Green with Envy".  "Green with Envy" is a tool designed to enable you to manage your graphics card coolers, view information or overclock your NVIDIA graphics processor for Linux. There you can control the fan curve and clock speeds! Also I have the official NVIDIA driver installed, not the open source driver.


How can I convert/migrate root f/s to LVM 2 Ubuntu 14.04.3 LTS? I am experiencing space issue on root file system and I am decided to migrate current f/s to lvm2. Can any one tell how do I proceed it to further........

You might check out Blocks but be sure to have a complete backup of your data on a separate hard drive before using it and also make sure to check the issues of this tool as development has stopped three years ago.


How to turn off screen (DPMS) together with locking session in KDE? First of all, I'm aware a similar question for GNOME is asked here: "Switch off laptop backlight when locking screen".

Objective

I would like to turn off my screen on locking the session for power saving reasons.

Actual problem

Locking the screen on Kubuntu (KDE) inevitably triggers the screensaver as far as I can see. There's no screensaver option other than 'Blank screen' together with its background colour set to black that comes just close to my goal. It blanks the screen, but doesn't turn off the screen. Screen's backlight will still be on and not saving any power.

Current workaround

A workaround via a script + shortcut key is possible, however, it's just a workaround since it doesn't trigger on all ways to lock the session. Therefore, I think it should be possible to have it done more elegantly, for example by providing this option in KDE's configuration dialog of the screensaver.

The workaround I am now using is the following. A script that locks the screen and turns off the screen:

#!/bin/bash

qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock
xset dpms force standby

and let it run with a shortcut key via a custom menu entry. It works.

Here's why I consider it to be a workaround rather than a solution. It doesn't work for other ways to trigger the locking of the session.

My actual question(s)

Do I need to touching/patching KDE's source?

If not what are my options?
If so,

could someone point me to where I can get started?
what do you think is the recommended place in the GUI for configuration?

I'm using Kubuntu 12.04 and willing to upgrade to KDE 4.9 or waiting for the 12.10 release.

Found a way for KDE 4 (up to Ubuntu 14.10). For modern KDE 5 see other answer.

Go to System Settings → Application and System Notifications → Manage Notifications.

Select Screen Saver as the Event Source

Locate and select the Screen Locked

add this command to the event:
 xset dpms force off

It will turn off all displays every time it gets locked.

On Kubuntu 14.04, simply go System Setting - Power Mgmt. - turn off Dim Screen and Screen Energy Saving under Energy Saving tab.

Cheers!


How do I download a YouTube video? What are instructions on how to download videos from YouTube?

Notice: Terms of Service Violation

Please be aware that by following any of the answers below, you will be violating YouTube's Terms of Service (TOS). In particular, from Section 5.B.:

  Content is provided to you AS IS. You may access Content for your information and personal use solely as intended through the provided functionality of the Service and as permitted under these Terms of Service. You shall not download any Content unless you see a “download” or similar link displayed by YouTube on the Service for that Content. You shall not copy, reproduce, distribute, transmit, broadcast, display, sell, license, or otherwise exploit any Content for any other purposes without the prior written consent of YouTube or the respective licensors of the Content. YouTube and its licensors reserve all rights not expressly granted in and to the Service and the Content.

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

It's also on Ubuntu repos but you will often need to keep it up-to-date with sudo youtube-dl -U
Installation and ugrade from pip (/):
sudo -H pip install --upgrade youtube-dl

Usage:
youtube-dl YouTube-(or-other-website)-video-link
So it will download the video.
You can also take a look at this for very in-depth documentation on how to use it.

The one I use is All Video Downloader from here.

And it is the best I know for Linux. Just copy the address of the video and open All Video Downloader, and you will see the URL is already in. After you fix the output format and destination, you just press the Download and ready ;)


Running a .desktop file in the terminal From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder.

If I open that folder in nautilus, I can run these applications just by double clicking its associated file, e.g. double-clicking firefox.desktop runs Firefox. However, I can't find a way to do the same thing via terminal.

If I do gnome-open foo.desktop it simply opens foo.desktop as a text file. If I make it executable and then run it in bash it simply fails (which is expected, it's clearly not bash script).
EDIT: Doing exec /fullpath/foo.desktop gives me a Permission denied message, even if I change ownership to myself. If I make executable and do the same command, the terminal tab I'm using simply closes (I'm guessing it crashes). Finally, if I do sudo exec /fullpath/foo.desktop, I get an error reporting sudo: exec: command not found.

That's my question, how can I run a foo.desktop file from the terminal?

gtk-launch
With any recent Ubuntu that supports gtk-launch just simply go
gtk-launch <file>

Where <file> is the name of the .desktop file with or without the .desktop part. The name must not include the full path.
The .desktop file must be in /usr/share/applications, /usr/local/share/applications or ~/.local/share/applications.
So gtk-launch foo opens /usr/share/applications/foo.desktop (or foo.desktop located in one of the other permitted directories.)
From gtk-launch documentation:

gtk-launch launches an application using the given name. The application is started with proper startup notification on a default display, unless specified otherwise.
gtk-launch takes at least one argument, the name of the application to launch. The name should match application desktop file name, as residing in /usr/share/application, with or without the '.desktop' suffix.

Usable from terminal or Alt + F2 (Alt + F2 stores command in history so it's easily accessible).

"I am using Ubuntu 20.10 (Groovy Gorilla)"
Just open the terminal and then navigate to that folder where .desktop file is located and then type
chmod +x (name of desktop file)
./(name of desktop file)


juju status returns ERROR Invalid SSH Key I was able to successfully juju bootstrap, but get an error with juju status. Here is what I got the first time I ran it:

Please type 'yes' or 'no': The authenticity of host 'node-003048c0cd2a.mydomain.com (172.16.1.71)' can't be established.
ECDSA key fingerprint is f8:02:18:7c:24:b6:99:20:cc:ab:29:d0:bc:c4:d7:20.
Are you sure you want to continue connecting (yes/no)? yes
2012-05-22 05:55:55,411 ERROR Invalid SSH key
2012-05-22 05:56:24,390 ERROR Invalid SSH key
2012-05-22 05:56:54,623 ERROR Invalid SSH key

Before running bootstrap or status, I created my ssh keys and added the generated public key to the preferences of my user account on the MAAS UI.

Any ideas why I am getting this SSH error? This error still occurs hours after the nodes install. I have not changed the names of any nodes, DNS is correct, and I can ping the FQDN of the nodes in the web UI.

Things to check:

Have the nodes finished installing?
Any chance you edited the bootstrap node name from the MAAS node interface?
Is your DNS still pointing in the right place?

One more thing - are the clocks reasonably accurate on the maas server and on the nodes? If they are too far out of sync, it makes OAuth fail which currently silently breaks the metadata access from the commissioning node, which makes it just sit at a login prompt instead of finishing the commissioning process and rebooting.

Once you do juju bootstrap, you must reboot your nodes - they will install new software, and the necessary keys to stop this griping from ssh.


How do I install indicator-workspace? I receive this error when I install the software.

Basically I want to know which space am I working on.

$sudo apt-get install indicator-workspaces
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package indicator-workspaces is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'indicator-workspaces' has no installation candidate

As far as I know, indicator-workspaces isn't necessary anymore, in 13.04, because the standard workspace switcher icon shows which workspace you're in, however, you have to enable the workspace switcher in the first place.

Right click on the Bottom Panel.
Select Add to panel
Search for Workspace Switcher and Add it to the Panel.


1 SSD windows, 1 SSD ext4, 1 NTFS Data mutual Drive? I am trying to use a mutual Data hard drive (NTFS) to run my files between both windows and linux.

I am new to linux and having trouble with identifying the 3rd HD, which is NTFS.

On the sidebar, the GUI shows the drive I am looking to mount and eventually set up a write ability to, called DATA

I tried:

sudo su
fdisk -l

Only one result comes up: /dev/sdc1

This surprised me, so I tried this website's instructions
https://support.plex.tv/hc/en-us/articles/200288606-Mounting-NTFS-Drives-on-Linux

I was surprised, as when I followed this to the blkid command, I did not receive a list of UUIDs that were 32 characters, as I was expecting. It returned a 16 character sequence.

root@hoss:/# blkid|grep -i ntfs|sed 's/.*UUID="//g'|cut -d"\"" -f1|awk '{print "UUID="$!" /media/ntfsdrive ntfs-3g permissions,auto 0 0"}'
UUID=0C86BA8986BA72B6
UUID=5A58C0EC58C0C7C9
UUID=F050CABE50CA8B34

I then did:

ls -l /dev/disk/by-uuid

and found the various drives, all of them I remember setting up. I next tried querying each /dev/sd* to find which drive was the NTFS Data hard drive, which it turns out was sdc1, but again returned the same 16 code UUID:

jamie@hoss:/dev$ blkid /dev/sdc1
/dev/sdc1: LABEL="Data" UUID="F050CABE50CA8B34" TYPE="ntfs"

I then tried a basic read mounting of NTFS as found on documentation here (http://ubuntuguide.org/wiki/Dapper#Windows)

and received this

root@hoss:/# sudo mount /dev/hdc1 /media/DATA/ -t ntfs -o nls=utf8,umask=0222
ntfs-3g: Failed to access volume '/dev/hdc1': No such file or directory

ntfs-3g 2013.1.13AR.1 external FUSE 29 - Third Generation NTFS Driver
        Configuration type 7, XATTRS are on, POSIX ACLS are on

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2012 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options:  ro (read-only mount), windows_names, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

News, support and information:  http://tuxera.com

So I am now stuck, and my question is, where would you go from here, to try and have a mutual Hard Drive in NTFS between linux and windows? Sorry for the long post, and thanks for taking the time to read this.

EDIT 1

Thanks to Muru (in the comments) I noticed that I entered in a spelling mistake (trying to mount hdc, not sdc)

I went back and repeated the steps with the correct spelling, this is what it said:

jamie@hoss:~$ sudo mount /dev/sdc1 /media/DATA/ -t ntfs -o nls=utf8,umask=0222
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sdc1': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.

I am not looking for a 'read only', I also want to be able to write, but I am not sure what metadata is kept in windows cache. Is it possible the bootloader that enables me to choose between windows and linux on boot is causing this, or does recognize this and know a solution? Thanks in advance!

sudo parted -l

This will list drives, partition tables, partitions, and filesystems.


How to install a program from a .tar.gz I already extracted the file and when I drag the file to the terminal this is the directory I get "   '/home/ali/Downloads/Stencyl-2.1.0  ". Now can someone give me exact instructions for this directory for exactly installing the program.

Thanks in advance

Please refrain from using downloads when the software you want can be installed with Ubuntu Software Center using a normal debian installer.

This will install Stencyl 2.1.0 (and yes you can install the 12.04 version in 12.10)

sudo add-apt-repository ppa:upubuntu-com/games
sudo apt-get update
sudo apt-get install stencyl

This might be required as a post install edit though: http://community.stencyl.com/index.php/topic,10164.msg65559.html#msg65559

first check the install or readme file, may be the procedure slightly differs...

but generally :

once in your folder with the terminal

sudo ./configure
sudo make install


Extract part of a video with a one-line command If I have a video, normally avi, but could be any, and I want to create another one in the same format but just a part, the position i seconds to f seconds into the video, what is the one-line command to do this?

This can be done using mencoder or ffmpeg.
mencoder
Say that you want to cut out a part starting at 00:00:30 into the original file with a 5 seconds length and that it shouldn't be reencoded (if you want to re-encode it you'll have to replace copy with audio and video codecs, for a list of available audio codecs issue mencoder -oac help, for a list of available video codecs issue mencoder -ovc help), then you issue:
mencoder -ss 00:30:00 -endpos 00:00:05 -oac pcm -ovc copy originalfile -o newfile

You'll have to replace orginalfile and newfile with actual file names, the latter is the name of the file that is created to hold the cut-out part.
ffmpeg
Say that you want to cut out a part starting at 00:00:30 into the original file with a 5 seconds length and that it shouldn't be re-encoded (if you want to re-encode it you'll have to replace copy with audio and video codecs, for a list of available codecs issue ffmpeg -formats -E), then you issue:
ffmpeg -ss 00:00:30 -i orginalfile -t 00:00:05 -vcodec copy -acodec copy newfile

You'll have to replace orginalfile and newfile with actual file names, the later is the name of the file that is created to hold the cut out part.

For reference see http://lazyxiong-tech.blogspot.com/2007/05/using-mencoder-to-cut-out-pieces-of.html and "7. Copy Only A Part Of Video" in http://segfault.in/2010/10/ffmpeg-tricks-you-should-know-about/

To be more precise you can:
MANUALLY
Open the file in a media player that will frame by frame advance (potplayer my favorite but MPC-HC works)and play an AVISynth file with data such as:

DirectShowSource(("C:\Downloads\Video\Do you want him.flv"), Pixel_Type="yuy2").Crop(0,0,-0,-0)
Subtitle("C:\Downloads\Video\Do you want him.flv", font="Arial", size=24, text_color=$ff0000, align=3)
ShowFrameNumber(scroll=true, x=336, y=27, font="Arial", size=24, text_color=$ff0000)

ShowTime(x=398, y=44, font="Arial", size=24, text_color=$ff0000)

Then cut with the EXACT time format:

ffmpeg -i "Path\do you want him.flv" -ss 00:00:05.240 -to 00:00:08.360 -vcodec libx264 -acodec libvo_aacenc "Path\Do you want him1.flv"

and

ffmpeg -i "Path\do you want him.flv" -ss 00:00:10.240 -to 00:00:14.360 -vcodec libx264 -acodec libvo_aacenc "Path\Do you want him2.flv"

If you wish to join, make a txt file with the video files with contents like:

file 'C:\Downloads\Video\Do you want him1.flv'

file 'C:\Downloads\Video\Do you want him2.flv'

Run ffmpeg:

ffmpeg -f concat -i FileList.txt -c copy "Path\NewName_joined.flv"

PROGRAMMATICALLY
I wrote a program but have no level 10 to show it, sorry


S-video problems Xubuntu 13.04 I installed for the first time Linux and it's a great move for me.
Xubuntu came out of the box with almost everything working perfectly.

I have a problem though, when I try to see the image from the screen onto the tv, the image is moving continuous and very fast to the left(on tv).

I tried different software to output the image in different resolutions. I tried to make for S-video output, custom resolutions and refresh rates in the terminal, but the image is still moving(in windows was ok, but don't wanna go back).

My laptop:Asus F3u,

graphic card *-display
       description: VGA compatible controller
       product: RS690M [Radeon Xpress 1200/1250/1270]
       vendor: Advanced Micro Devices [AMD] nee ATI
       physical id: 5
       bus info: pci@0000:01:05.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=radeon latency=64
       resources: irq:47 memory:c0000000-cfffffff memory:fd6f0000-fd6fffff ioport:8800(size=256) memory:fd500000-fd5fffff

TV- Sony KE-32TS2E http://www.sony.co.uk/support/en/product/KE-32TS2E/manuals

I can connect to TV only through S-video. Please help.

PS: if you know a good website with tutorials for using the terminal and Xubuntu in general, please share.

Thanks

sorry of being late. try to change the pal system to ntsc.

xrandr --output S-video --set "tv standard" ntsc


Can't install Ubuntu on Lenovo z585 I can't install Ubuntu (12.10 and 12.04) (also tried Mint) on Z585 (Lenovo IdeaPad Z585 AMD A8-4500M 1.90GHz 8GB 1TB DVDRW DL FreeDOS 15.6" HD AMD Radeon HD7670 2GB).

I tested all possible options and still no luck so this is my call for the help.. Hope that someone knows something that is not yet listed:)

EDIT the steps I made:

disable UEFI (also tried with enabled)
Attempt to install Ubuntu from DVD
Select "Install Ubuntu"
Change options: acpi=off; nomodeset (tried all combinations)
Press enter.

Result: Shown a black screen with blinking cursor- no errors no nothing, I can't enter anything and I can only turn off the laptop via shut button (by holding it) so I never got trough installation (Same thing I get if I do "Try" instead of "install").

Note that I had no trouble installing Windows 7.

p.s. I also tried the following:

My computer boots to a black screen, what options do I have to fix it?

Booting Ubuntu with "acpi=off" grub parameter

http://ubuntuforums.org/showthread.php?t=2077126&page=3

How do I set 'nomodeset' after I've already installed Ubuntu?

BTW I get stuck every time on black screen with blinking cursor only.

Thanks

I would give a try booting from USB, the advantage is that you can check the iso-image afterwards with md5sum. Sometimes simple read/write errors can cause unusual beheaviour of a self-burned image-cd.

I successfully installed openSUSE in UEFI mode on my IdeadPad Z585, in dual boot with Windows 10. I know it's possible now to do the same with Debian and Ubuntu.The only way I managed to make it work in legacy mode in the past was by using a 32-bit version, which wasn't ideal. Here's a good video that explains how to do it step by step. I hope it helps. https://www.youtube.com/watch?v=WulgG1GeJ4U It shows how to do it on Elementary OS, but since it's based on Ubuntu, it should work. Have fun!


Installing Ubuntu on MSI GT72S G-220 I'm having issues getting Ubuntu 15.10 on my system. These are my specs:

6th Generation Intel Core i7-6820HK (2.7 GHz)
32 GB Memory
1 TB HDD
256 GB M.2 SSD
NVIDIA GeForce GTX 980M 8 GB
GDDR5 17.3" IPS
Windows 10 Home

I've done some reading and have attempted a few things but nothing works. I've tried running Ubuntu 14.04 which I could at least get into live mode by using Legacy in the BIOS but I can only see my 1TB HDD and not the m.2 SSD which is where I want to put Ubuntu. When trying to install 15.10, I put the boot mode into UEFI with CSM which is what others have said to do, and I get the grub screen. No matter which selection I try (Live or Install) I get an error that says "Ignoring BGRT: Invalid status 0 (expected 1)" and it freezes. I'm not very experience with Ubuntu at all so I don't know what I'm doing other than what I see online. I'm trying to get Ubuntu 15.10 put alongside my Windows 10 on my m.2 SSD. I was told that the 6th generation processor is what's doing it, and then I was told the NVIDIA card is what's doing it.

This is the actual link to my laptop in case the specs I've provided are not enough: http://www.newegg.com/Product/Product.aspx?Item=N82E16834152934

I'm really thinking about downgrading to another laptop because I can't get Ubuntu or Windows 7 on this thing and I hate Windows 10. Anyway, has anyone had any success with the issue that I'm having?

I've tried running Ubuntu 14.04 which I could at least get into live mode by using Legacy in the BIOS

If the computer already boots another OS in EFI/UEFI mode, as do the vast majority of computers that shipped with Windows 8 or later, then this is the wrong thing to do. I know a lot of Web sites say to do it, but THEY'RE WRONG! Setting this boot mode can work around some problems with booting the installation medium when that medium is prepared incorrectly, but the cost is even worse problems down the line. The result is either a repair or going back to square one to re-create the boot medium and re-install. It's better to do it right from the start by getting the installation medium to boot in EFI/UEFI mode. This can usually be done by using a different tool to prepare the boot medium (Rufus, Unetbootin, and dd can all usually do the job) or by adjusting options in the tool you used to create the boot medium. For more on this subject, see my page on the CSM.

The BGRT message you're seeing has been popping up a lot lately. See, for instance, this question and its answers. I have no personal experience with it, but my impression is that it's not a critical problem, and that the subsequent hang is unrelated.

If the computer is new and you can't get Ubuntu to boot on it, my recommendation is to return it for a refund and get something else. That said, there may be a solution; I'm not familiar with your particular computer or its quirks. You can find a list of laptop and desktop computers certified for use with Ubuntu here. Be aware, though, that many of these systems are sold pre-loaded with Ubuntu, and many of these include drivers or other software that's not a standard part of the distribution, so you may need to track those down if you buy a model that doesn't come with Ubuntu pre-installed.

I have had Manjaro linux 15.12 XFCE (kernel 4.1) running on my gt72s for 2 months now nearly perfectly.  I get freezing if I try to boot with linux kernel 4.3 or 4.4 (killer wifi network driver support added from 4.3~) But I don't need wifi currently so I can wait it out.  I suggest you try Manjaro, super fast and beautiful distro and this machine is a beast and more with it.


Does Zombie process cause memory shortage? Does it killed by init process eventually? I have zombie process problem and it's a first time I've met it. So I don't know how to solve this problem and concept.
I read some article posed 1 year ago (link) and It said like below:

  There is no harm in letting such processes be unless there are many of them. Zombie is eventually reaped by its parent (by calling wait(2)). If original parent hasn't reaped it before its own exit then init process (pid == 1) does it at some later time.

But at this, I don't understand and have 2 questions. Plz help on the whoever know this.

So does it means that eventually the zombie process's entry will be deleted from process table and killed successfully by init process (Pid = 1) ??
I think the zombie process cause in memory shortage problem, because It does not return allocated memory space.

Am I right??

Zombie processes don’t use up any system resources. (Actually, each one uses a very tiny amount of system memory to store its process descriptor.) However, each zombie process retains its process ID (PID)
Linux systems have a finite number of process IDs – 32767 by default on 32-bit systems. If zombies are accumulating at a very quick rate – for example, if improperly programmed server software is creating zombie processes under load — the entire pool of available PIDs will eventually become assigned to zombie processes, preventing other processes from launching.
Getting Rid of Zombie Processes

kill -s SIGCHLD pid

Credit goes to : HTG

No, Actually zombie process is

  In
  UNIX System terminology, a process that has terminated, but whose parent has not yet
  waited for it, is called a zombie. The ps(1) command prints the state of a zombie process
  as Z. If we write a long-running program that forks many child processes, they
  become zombies unless we wait for them and fetch their termination status.

  The final condition to consider is this: What happens when a process that has been
  inherited by init terminates? Does it become a zombie? The answer is ‘‘no,’’ because
  init is written so that whenever one of its children terminates, init calls one of the
  wait functions to fetch the termination status. By doing this, init prevents the system
  from being clogged by zombies. When we say ‘‘one of init’s children,’’ we mean
  either a process that init generates directly (such as getty, which we describe in
  Section 9.2) or a process whose parent has terminated and has been subsequently
  inherited by init.
   from Advance unix Programming by stevence rechard


Equivalent to Windows Group Policies (GPO) in Ubuntu I am trying to apply GPO for client Ubuntu machines in a centralized way.

Is it possible to apply GPO in ubuntu 10.04 ( other than using likewise Enterprise)? Until now my client machines have been able to login with with my windows domain/username with the help of LIKEWISE-OPEN .

But I want to restrict my client machines via GROUP POLICY . Is this possible without using the commercial packages, e.g., LIKEWISE-ENTERPRISE and Centrify?

this is kind of what LDAP is for, and there was another question on this topic a while back: How to apply group policy?


Realtek RTL8723BE wifi card not detected and no internet via Wifi or Wired connection When I am installing Ubuntu I cannot connect to my wifi network.
It keeps trying and finally fails.

After installation I am not able to use internet either via WLan or even if I directly attach the LAN cord of my router to my laptop.

What is going wrong and how do I fix it ?

dkms status output :

rtlwifi-new 0.10 4.4.0-21-generic, x86_x64: installed

If you do not have any internet connection, you can download the package using another computer, a phone, etc.

The package is HERE

You will also need DKMS installed. You can find the DKMS package for Ubuntu 16.04 HERE

Copy these two files to the Ubuntu Home folder (~/) and run in terminal

sudo dpkg -i dkms*.deb rtlwifi*.deb

Then reboot.

If a signal is still too weak, run

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

and reboot again.

You mentioned that your were unable to connect to net via ethernet port using lan cable from router. so use lspci command to check weather your ethernet card is getting recognized or not(Its displayed as xx.xx.x Ethernet controller. xxxxxx.........). If recognizable the model and driver type will be displayed there itself. so try downloading the drivers manually and install them.


Something wrong with my `.profile` I recently installed a few softwares and needed to add their bin/ directories to my PATH. Nothing abnormal so far. But I decided to be smart about it, and rewrote a part of my .profile so I didn't have to copy/paste the same few lines of codes over and over. Here was my idea:

# Create an array with directories to be added to PATH
declare -a addpath=("$HOME/bin" "$HOME/.cabal/bin" "/opt/vert.x/current/bin")

# Add directories recursively
for dir in "${addpath[@]}"; do
if [ -d "$dir" ]; then
    PATH="$dir:$PATH"
fi
done

I thought this had worked well.. until I rebooted my PC and got locked out of my session when trying to log in. It took me a while to figure out that it was actually because of my .profile; once I commented those lines out, I was able to log into my session without being bounced back.

My question is; what did I do wrong with these lines? Is there a syntax error? Is there an other/better way to do that? What happened?

In the default setup on Ubuntu 12.04, the .profile file is loaded by /usr/sbin/lightdm-session. This is shell script, executed by /bin/sh.

On Ubuntu, /bin/sh is dash. You've used features of bash that dash doesn't support. Dash and Bash both have the same core features, but dash sticks to these core features in order to be fast and small whereas bash adds a lot of features at the cost of requiring more resources. It is common to use dash for scripts that don't need the extra features and bash for interactive use (though zsh has a lot of nicer features).

Dash doesn't have arrays, nor the declare built-in, so it's bombing out on that line. You can put the list of paths inline:

for dir in "$HOME/bin" "$HOME/.cabal/bin" "/opt/vert.x/current/bin"; do
  if [ -d "$dir" ]; then
    PATH="$dir:$PATH"
  fi
done

See keep duplicates out of $PATH on source if you want to make sure not to end up with duplicate entries.

Rather than add new directories to PATH for each program you install, you might want to set up symbolic links in an existing directory instead. For ~/.cabal/bin, you'll want to have it in your path because executables there will be coming and going; I'd put it at the end of the PATH though, to avoid potential conflicts with existing programs on your system. ~/bin is already in your PATH on Ubuntu. For programs that you install manually such as vert.x, stow or xstow is nice for managing symbolic links. See Keeping track of programs for an introduction to stow.

I think that, in your case, the best practice to make your binaries avaiable as commands is to link what you need to the /usr/bin. Mess up with $PATH isn't ever a good thing to do.

You can use 'cp' to make symbolic links, recursively, like this:

cp -rs $HOME/bin/* /usr/bin #This will link all non hidden files
cp -rs $HOME/bin/.[^.]* /usr/bin # This will link all the hidden files

Just adapt this to your scenario, using the same logic of your present code.

EDIT: you can use just the first line of the above code if you set dotglob to true on bash. Like this:

shopt -s dotglob #This will make Bash include filenames beginning with a '.' in the results of filename expansion
cp -rs $HOME/bin/* /usr/bin #Now, this will link ALL files in that directory to the destination

EDIT 2: As you can read in the comments below, is preferable that you use /usr/local/bin instead of /usr/bin. Read the comments to understand why.


Configure WIreless Hotspot Ubuntu 14.04 Trusty I would like to turn my laptop (Ubuntu 14.04 - Trusty) into a wireless hotspot.
So i linked my laptop to my router with an Ethernet cable, I went into System settings > Network > Wireless. I selected my router and cliked on "Use as a hotspot".
The hotspot was created indeed.
Now I want to change the Network name and the security key but I cant find a way to do that . It seems that those inforations are like hardened and no settings button is offered.
How can I do that, using the GUI or command line, anything that works?

  EDIT 1

When my wireless hotspot is created, there is not settings access to it. The SSID is my computer domain ( me@my_domain ).
The screen looks like:
 Network Name my_domain
 Security Type WEP
 Security key xxxxxxx

No configuation button is provided.

Ok. I assume you mean you are connecting into Ubuntu via a network cable and then want to use your wireless card to serve internet to other devices, sounds like you dont have a wireless router. This can actually be done pretty easily, not sure about other versions, but definitely in 14.04 and 14.10.

Disable WIFI and plug in an internet cable to your laptop so that your Ubuntu is connect to a wired internet and wireless is disabled.
Go to Network Icon on top panel -> Edit Connections …, then click the Add button in the pop-up window.
Choose Wi-Fi from the drop-down menu when you’re asked to choose a connection type

In next window

Type in a connection name. The name will be used later. We will call it hotspot as example.
Type in a SSID
Select mode: Infrastructure
Device MAC address: select your wireless card from drop-down menu.
Go to Wi-Fi Security tab, select security type WPA & WPA2 Personal and set a password.
Go to IPv4 Settings tab, from Method drop-down box select Shared to other computers.

When done, click the save button.

After above steps, a configuration file was created under /etc/NetworkManager/system-connections directory. File name is same to the connection name you typed in step 4.

Now press Ctrl+Alt+T on keyboard to open terminal. When it opens, paste the commands below and hit enter to edit the configuration file:

 nano /etc/NetworkManager/system-connections/hotspot

Replace hotspot with the connection name you actually used

When the file opens, find the line

 mode=infrastructure

and change it to

 mode=ap.

Finally save the file.

When everything’s done, enable WIFI from Network Manager icon on the panel. It should automatically connect to the hotspot you created. If not, select “Connect to Hidden Wi-Fi Network …” and select it from the drop-down box.

You can now connect any other device via wireless, but the Ubuntu machine will need to keep it's wired connection.

Edit:I just seen you say your card does not support ap, so this probably will not work.

Works for me on my broadcom though

I just had same problem, I'm using Ubuntu 14.04 Gnome. Here is a alternative solution. Probably your OS has default Hotspot defined wireless. You can change its configuration manually from /etc/NetworkManager/system-connections. You can find tutorials for manually settings easily on the web.


How to prevent system applications (like the Software Center) from asking for password? I'd like Software Center, Update Manager and some other system management applications to work without asking for password (like sudo does if configured with NOPASSWD) but only asking for a confirmation instead, or even without any confirmation. At the same time I wouldn't like to use no user password at all. Is this reachable?

Ubuntu Software Center authorization uses policy kit. When requested for the authentication during the remove action you can expand the "Details" pointer to see the action that is being invoked.
It's org.debian.apt.install-or-remove-packages .
You can change the corresponding policy to not request for authentication:

Edit /usr/share/polkit-1/actions/org.debian.apt.policy, search for org.debian.apt.install-or-remove-packages, then find for the defaults section, replace auth_admin and auth_admin_keep with yes .

Note:- Disabling password prompts might be a security risk

Open the terminal window from Applications --> accessories --> terminal, run the command:

sudo visudo

Find the line that says

%admin ALL=(ALL) ALL

and change it to

%admin ALL=(ALL) NOPASSWD: ALL

Save and exit the file


How can I "install" a driver for a USB-to-Serial adapter? I have a USB-to-Serial adapter, Belkin F5U109, that I need to use with Ubuntu 12.04 LTS.  I have found what appears to be a compatible driver, umct.4freebsd.gz (found here:  http://manpages.ubuntu.com/manpages/precise/en/man4/umct.4freebsd.html).  It says to "place" some "lines in your kernel configuration file."

Being an absolute novice to Ubuntu, I have no clue how to do this, and I can't find anything in layman's terms instructing me on the procedure.

Can anyone point me in the right direction, please?  Thanks!

It means you need to find the kernel configuration file. You can open it with

leafpad /boot/config-`uname -r`

Then add the lines you require.

Please note though, that messing around in the kernel files is not a good idea.


Configure vsftpd to chown uploaded files I have vsftpd up and running on my Ubuntu server. This is a development server and I want to be able to FTP my code directly to the directory which Apache is serving out.

As most of you know, www-data is the Apache user and the www-data user needs to have permissions to the directory that Apache is serving out.

I didn't want to make www-data an FTP user as well, so what I did instead was create another user for use with FTP, and put both www-data and the new user in a new group called www.

I did a chown -R www-data:www * to the directory that Apache is serving and it works mostly fine.

The issue comes in when I FTP upload a file that didn't previously exist in that directory. The owner gets set to my FTP user. I want the owner to get set to www-data and the group to get set to www whenever a new file gets uploaded.

Is there any way to do this with vsftpd?

I've been furiously googling around for hours, but I can't find a way to do it. Any help would be greatly appreciated.

Edit:

I just set up a couple of cron jobs to run every minute and set the permissions:

*/1 * * * * chown -R www-data:www /var/www

*/1 * * * * chmod -R g+rw /var/www

It works but it's kind of clunky, and there's a ~1 minute delay between me uploading new code and having it work when I hit F5 in my browser.

Read man 2 chmod, especially the part that says:

   S_ISGID  (02000)  set-group-ID (set process effective group ID on execve(2); mandatory locking, as described in  fcntl(2);  take  a
                     new file's group from parent directory, as described in chown(2) and mkdir(2))

You could probably use this to make all files created in the directory in the www group, and change your web server's umask value to 022

To do this safely, read and reread man 2 chmod, man 2 open, man 2 stat and anything pointed to in the See Also: sections. Learn how Linux deals with file and directory permissions for fun and/or profit!

Or, you could install inoticoming - trigger actions when files hit an incoming directory, and do your thing whenever a file hits.


I can't download new Plasma widgets and Plasma themes in Kubuntu 16.04 LTS Each time I try to download the new Plasma widget from the Plasma Add-On Installer, I get the following error:

Loading of providers from file: http://download.kde.org/ocs/providers.xml failed

Screenshot:

The same problem is also happening when I am trying to install new theme. Please check the below screenshot for clarification:

Any suggestions, comments or answers will always be appreciated. Thanks.

I found about 20 files in /etc/xdg/ that all reference

ProvidersUrl=http://download.kde.org/ocs/providers.xml

I think the download.kde server currently sends a redirect to

https://autoconfig.kde.org/ocs/providers.xml

But I guess its not followed.

Type https://autoconfig.kde.org/ocs/providers.xml in browser.

Copy contents.

Create a providers.xml file and paste them into it.

Go to /etc/xdg/

Change this line

ProvidersUrl=http://download.kde.org/ocs/providers.xml

to

ProvidersUrl=file:///path/to/your/custom/xml/file/providers.xml

in all the files that have it.

I'm sure there is a single terminal command you can use to do that in all files, but I don't know what that is. Maybe someone can improve this answer. I suggest changing it on a single file first and testing the corresponding app first. The file that corresponds to the plasma add-on installer mentioned should have a pretty obviously fitting name.

I found the info in this guide and followed it myself for a different error:
https://bugs.launchpad.net/ubuntu/+source/kde-runtime/+bug/1610665

I'm not sure why just changing the line to

ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml

wouldn't work. I can't test that, because I don't have the question's error.

Or why the guide uses a local path url that doesn't seem to work on my end...I posted here what worked for me.


Software center doesn't open when i click its icon! When i click the software center icon it blinks but doesnot open.
Can anybody help me with this problem?

Try to restart the system and open the software center again. But I sure recomenda that you use the command line to make stuff on Linux Systens


Download flashplugin-installer Error I'm getting this error constantly:

Failure to download extra data files
The following packages requested additional data downloads after package installation, but the data could not be downloaded or could not be processed.

flashplugin-installer

The download will be attempted again later, or you can try the download again now. Running this command requires an active internet connection.

I've tried purging my existing flashplugin, reinstalling it using sudo apt-get install flashplugin-nonfree, tried installing the Firefox Flash plug-in from the software center, and nothing appears to work. Currently running Lubuntu 12.10.

Have you tried installing and using 'Google Chrome' it has flash installed already...

If Flash player doesn't work on 'Google Chrome' you have to do this:

1) If the Flash plugin is already installed for Firefox, we have to find out where it is located:

sudo updatedb
sudo locate libflashplayer.so

2) If it is installed, output should be similar to this one...

falko@falko-desktop:~$ sudo locate libflashplayer.so
/opt/Adobe AIR/Versions/1.0/Resources/libflashplayer.so
/usr/lib/flashplugin-installer/libflashplayer.so
falko@falko-desktop:~$

... which means the Flash plugin is located in /usr/lib/flashplugin-installer/libflashplayer.so.

3) If there's no output, this means that the Flash plugin isn't installed - you can then install it as follows:

sudo aptitude install flashplugin-installer

4) Now we create a plugins directory for Google Chrome

sudo mkdir /opt/google/chrome/plugins

5) Now copy the Flash plugin to it:

sudo cp /usr/lib/flashplugin-installer/libflashplayer.so /opt/google/chrome/plugins

6) Finally we have to tell the Google Chrome launcher that it should look out for plugins. To do this, we right-click on Applications and select Edit Menus:

7) In the Menu Editor, go to Internet > Google Chrome and click on the Properties button:

8) In the Launcher Properties window, replace the contents of the Command field with this line...

/opt/google/chrome/google-chrome --enable-plugins %U

... and click on Close:

9)Then leave the Menu Editor.

That's it! We can now launch Google Chrome (Applications > Internet > Google Chrome):

10) If you start Google Chrome for the first time, you'll see this dialogue. Make your choices and click on Start Google Chrome:

11) Now go to a web site that has Flash videos (e.g. YouTube), and you should be able to watch them which means that the Flash plugin is working:

Hope this helps you and anwsers the question :-)

Good Luck!

Useful Links:

1.http://get.adobe.com/flashplayer/ (In small text you will see click here on this website)

2.http://dev.chromium.org/getting-involved/dev-channel

Please click on the tick if this answer helped you!

Per RNA's advice in another post:

 sudo rm /var/lib/update-notifier/user.d/data-downloads-failed

fixed on 14.04.

I removed this file in 12.04 LTS, did not have to re-install flashplugin.
Works now, no error message at bootup!

Correction: next day error message came back, tried the purge method and re-installed flashplugin, error message appeared immediately.


Pureadmin not working on Ubuntu 16.04 LTS I installed pure-ftpd and pureadmin on my computer which is running Ubuntu 16.04 LTS using the following command:

sudo apt-get install pure-ftpd
sudo apt-get install pure-ftpd pureadmin

Everything seemed to install fine.

However, when ever I try to open PureAdmin, I get the password entry field, and after entering my password nothing happens?

Any ideas on what to check?

Coming in late for an answer, but I once had the same issue and it appeared that pureadmin had to be sudoed.

Please note that before running pureadmin, you should have a pureftpd fully configured and functional.


Installation of libavcodec-extra or libmp3lame fails I'm trying to install ffmpeg on my dedicated server running on ubuntu 10.04. I want to convert flv-videos to mp3 sound files.
As I found out, I have to install libavcodec-extra-52. When I use

  sudo apt-get install libavcodec-extra-52

it says that I don't have libfaac0 (>= 1.26) and libmp3lame0 and that they aren't installable. Using

  sudo apt-get install libmp3lame0

it says that the package isn't available at any source. Do I need some special repository to be able to download those codecs? Right at the moment, I have only three sources for packages in /etc/apt/sources.list which are predefined and hosted by my provider.

Thanks in advance.

Follow this guide and you should be fine.

Ubuntu, or in better terms, the package libavcodec-extra-52, does not support the libraries that you must have installed in order to use ffmpeg for what you want to do. You can find explanations and howtos at that linked guide.


What is my computer IP address knowing that I have a router? My computer is connected to the Internet through a wifi-router. I want to have access to my computer remotely, for example using ssh.
When I ask my computer what my IP address is, for example by going in the network indicator, I get 192.168.1.101. But when I go on a website as whatismyip.com, I get a totally different address, probably the one of my router.

So what address should I use to access my own computer remotely and not any other machine in my home wifi-network?

Okay, others have already answered but I've typed too much to hit cancel :P

To access computers inside your home network from an outside network, you need to use the IP address displayed by whatismyip.org.  192.168.1.101 in this case is your internal LAN IP address assigned to your system by your router via DHCP.  The outside world does not see this.  As your router handles incoming and outgoing network traffic, it translates between your "real" IP address and the various internal IP addresses inside your network.  This is called Network Address Translation or NAT for short.  Wikipedia has a nice analogy:

  A NAT device is similar to a phone system at an office that has one
  public telephone number and multiple extensions. Outbound phone calls
  made from the office all appear to come from the same telephone
  number. However, an incoming call that does not specify an extension
  cannot be transferred to an individual inside the office. In this
  scenario, the office is a private LAN, the main phone number is the
  public IP address, and the individual extensions are unique port
  numbers

You'll also need to setup some port forwarding rules on your router.  The instructions for this depend on what kind of router you have but the basic idea is that you are telling your router: "Hey, if you see any incoming traffic on port 22, send it to the computer that has 192.168.1.101 as its IP address".  Of course, change the port number and ip addresses as suits whatever it is you are trying to use.

You can usually access your router's configuration settings by opening a browser and typing in 192.168.1.1 or 192.168.1.0 for the address.  You can execute netstat -rn and look at the last line to find the correct address if you are not sure.

Now comes the tricky part.  Unless you tell your router "Always give this computer the IP address 192.168.1.101", there is no guarantee it will always be that...but it probably will.  Moreover, your public IP address is probably also assigned via DHCP from your Internet service provider.  So, if you reset your modem or if enough time goes by, your public IP address can also change and you'll have to look it up again at whatismyip.org.  There are ways around these issues but I've typed enough for now and I think it's a separate question.  Hope that clears some stuff up!

OR ...

You can use team viewer and cut out any config at all :)

It is free for personal use

http://teamviewer.com

Am not being rude, but the very nature of your question indicates you should not attempt ANY changes to your routers firewall until you get a grounding in the basics of network function and security. The other answers here are a great start for further reading. Modifying firewalls csn have very nasty side effects if your unsure what you are doing.


How can I connect to remote windows domain knowing gateway hostname and domain name? I have received credentials for my University's network machine (Ubuntu yay!) that I have ssh access to. I would like to connect to it but first I need to connect through a gateway that I have specified in .rdp file received from my University.

On Windows I just double click on it and I have the session - first asking about domain credentials.

I have the following knowledge:

username
password
gateway hostname e.g. secretgateway.net
hostname e.g. myhost.local
domain name e.g. pluto
server port 3389

I know I can use likewise-open for connecting to windows domains but how do I specify it there since it is a remote network for me ?

EDIT after Remmina import ( there is no information about domain login nor the gateway)

EDIT2

I have also tried with xfreerdp :

xfreerdp /v:myhost.local /d:pluto /u:USER /p:PASS /g:secretgateway.net

and I get

  transport_connect: getaddrinfo (Name or service not known) Error:
  protocol security negotiation failure

EDIT3

using new version of xfreerdp I get to launch my con.rdp file and I get the following

$  xfreerdp conn.rdp /p:PASS
autoreconnection enabled:i:1
devicestoredirect:s:*
drivestoredirect:s:*
redirectdrives:i:1
server port:i:3389
compression:i:1
keyboardhook:i:2
authentication level:i:0
promptcredentialonce:i:1
gatewayusagemethod:i:1
gatewayprofileusagemethod:i:1
gatewaycredentialssource:i:0
remoteapplicationmode:i:1
remoteapplicationname:s:ubuntu 12.04 v2.1 [60 GB HDD]
remoteapplicationprogram:s:||2fb6eb96-b458-11e3-92eb-00155d020101ssh_sr
full address:s:myhost.local
gatewayhostname:s:secretgateway.net
username:s:platon\wcss-d21d3q
connection type:i:5
displayconnectionbar:i:1
screen mode id:i:2
use multimon:i:1
redirectclipboard:i:1
redirectposdevices:i:0
redirectprinters:i:0
redirectcomports:i:0
redirectsmartcards:i:0
session bpp:i:32
allow font smoothing:i:1
allow desktop composition:i:1
disable wallpaper:i:0
disable full window drag:i:0
disable menu anims:i:0
disable themes:i:0
bitmapcachepersistenable:i:1
disable cursor setting:i:0
redirectdirectx:i:1
audiomode:i:0
audiocapturemode:i:0
videoplaybackmode:i:1
loading channel rail
connected to secretgateway.net:443
connected to secretgateway.net:443
Could not open SAM file!
Could not open SAM file!
Could not open SAM file!
Could not open SAM file!
rts_connect error! Status Code: 401
HTTP/1.1 401 Unauthorized
Content-Type: text/plain
Server: Microsoft-IIS/7.5
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="secretgateway.net"
X-Powered-By: ASP.NET
Date: Wed, 26 Mar 2014 00:19:57 GMT
Content-Length: 13

rts_connect error!
rpc_connect failed!
Error: protocol security negotiation or connection failure
WaitForSingleObject: pthread_join failure: 3

Okay to do this you need a version of xfreerdp that is higher than in the official repo's

sudo apt-get purge freerdp

sudo apt-get install build-essential git-core cmake libssl-dev libx11-dev libxext-dev libxinerama-dev \
  libxcursor-dev libxdamage-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev libxml2 libxml2-dev \
  libxrandr-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libxi-dev libgstreamer-plugins-base1.0-dev

git clone git://github.com/FreeRDP/FreeRDP.git

cd FreeRDP

cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON .
make
sudo make install
echo '/usr/local/lib/freerdp' | sudo tee --append /etc/ld.so.conf.d/freerdp.conf

Okay now you should be able to connect from the command line:

xfreerdp /v:myhost.local /d:pluto /u:USER /p:PASS /g:secretgateway.net

GUI Remmina gateway option

So this is actually being discussed as a new feature for remmina RDP plugin on github  here.

There is just a problem with securley storing gateway password, as remmina's plugin architecture only allows one secret to be stored per connection. I am currently looking into fixing this for my self and if I get it finished will put a pull request in.

I have patched Remmina's rdp plugin to have a gateway field and would gladly let you have the patched version but it assumes that the gateway credentials are the same as your credentials for the target box in a lot of cases this is true.

With remote desktop client (just a frontend for rdesktop) you can select an .rdp file that you use to import all the settings to login. Maybe this will work.
it's avalible trough the Ubuntu software centr (apt://grdesktop)


How to enable systemd user units in 14.10 I put a unit under ~/.config/systemd/unit:

[Unit]
Description=Test systemd user enabled

[Service]
ExecStart=/bin/sh -c 'echo afdasf > /home/joelmo/sysdworking'

[Install]
WantedBy=default.target

But I don't think this is beeing run, i see no file sysdworking. Is it possible to enable user units in 14.10?

For me this worked:

systemctl --user enable myunit

The following command shows if the unit is enabled:

systemctl --user status myunit

systemctl enable unit

enables systemd user units