Posts

Showing posts from April, 2015

Emacs C IDE / Gnu Global helm-gtags - Ask Ubuntu

hello ubuntu community, so first of i'd quite new ubuntu (16.10) , linux. decided use windows little possible , wanted start learning programming language c. however, thought nice in emacs started learning emacs , did tutorials on emacs. basics , learning doing. found tutorial https://tuhdo.github.io/c-ide.html before installed lot of packages including helm , gtags , helm-gtags. installed ncurses libary in order install gnu global. so problem / question. first of if honest don't gtags is, thought gonna figure out when install (something navigation guess). under section 'source code navigation' talks about: "before using ggtags or helm-gtags, remember create gtags database running gtags @ project root in terminal: ".. , commands i think somehow have connect libary emacs. gnu_global faq written create link project folder reffering to: /usr/src/lib but in /usr/src directory no lib folder. guess , because ubuntu has different structures other lin

Suspend on lid close doesn't work 16.04 - Ask Ubuntu

i've checked each , every option , possible solutions asus laptop doesn't suspend when close lid. settings set proper via menues nothing happens. when perform suspend ubuntu menu works perfect. ok, had add "network-manager restart" because of disabled wifi in end suspend , resume in general works. i have tested scripts other posts , in addition uncommented "handlelidswitch(docked)" events suspend didn't help. tried below with ubuntu 16.04 laptop doesn't suspend when lid closed nothing worked me. i able check external monitor lid switch in general works. checked /proc/acpi/button/lid/lid/state , found "closed" or "opened" correctly. in log of journalctl can see systemd-logind "watching system buttons lid" here relevant text: okt 21 15:35:28 dijana-asus systemd-logind[643]: watching system buttons on /dev/input/event0 (lid switch) a different laptop same 16.04 lts shows same entry in journalctl there suspe

16.10 - Are there plans for snap packages to auto-update through Software Centre? - Ask Ubuntu

currently, of date of post, have run cli command snap refresh update snap packages, manually. does canonical have plans snap packages update automatically through software centre non-snap packages do? by default snapd auto-updates snaps. check output of sudo journalctl -u snapd.refresh.service to see how last updates went. note: documentation feature available here , needs update ( bug 1636383 ).

unity - Status bar icon indicators disappear when waking from suspend - Ask Ubuntu

Image
so, when wake suspend, happens: the missing icons skype , mega. when close 1 of programs, other icon appear, this: how can fix or make script refreshes status bar? as temporary solutions until bug fixed, can create file f.e. icons.sh (dont't forget give execution rights chmod +x) @ location: #!/bin/bash dbus-monitor --session "type=signal,interface=com.canonical.unity.session,member=unlocked" | while read msg; lock_stat=`echo $msg | awk '{print $nf}'` if [[ "$lock_stat" == "member=unlocked" ]]; killall unity-panel-service /usr/lib/x86_64-linux-gnu/unity/unity-panel-service& fi done after saving script, open ubuntu startup applications apps menu , configure script run after login: every time unlock screen, unity panel service automatically killed , started, keeping icons in place.

wireless - Wi-Fi connection fail after configuring wlan - Ask Ubuntu

Image
i have been trying configure wifi connection dns values correct according isp had provided. used network configuration gui ubuntu 14.04 panel , connection works perfectly: it might of importance publish ifconfig 's output when wi-fi connection alive , working: wlan0 link encap:ethernet hwaddr 70:1a:04:a4:f0:31 inet addr:192.168.1.104 bcast:192.168.1.255 mask:255.255.255.0 inet6 addr: fe80::721a:4ff:fea4:f031/64 scope:link broadcast running multicast mtu:1500 metric:1 rx packets:4658 errors:0 dropped:0 overruns:0 frame:0 tx packets:5685 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 rx bytes:1534231 (1.5 mb) tx bytes:1228569 (1.2 mb) my problem occurred when out of curiosity, tried set values provided isp editing /etc/network/interfaces . deleted numbers dialog box shown above , put below information in interfaces file: auto wlan0 iface wlan0 inet static addres

networking - SSH through VPN Chromebook - Ask Ubuntu

so, issue have chromebook crouton running on it. i've been using browser extension connect pre-set vpn avoid network's filters. but, 2 things happening i'm not sure how around/handle. the extension tunnels traffic browser, , not external applications/processes. if enable extension on chrome in chromeos environment, works in environment not ubuntu one, , vice-versa (so each environment has own separate instance). my main issue first point because want use ssh connect vps because can't on network use lot (and don't want use mobile hotspot.) included second point because i'm not sure environment should let handle network settings vpn tunneling or if conflict @ all. overall, want find way around network filters connect via ssh vps. can through desktop client or custom configurations, prefer not set own vpn server. i'd able along same lines using pre-set 1 in chrome extension. have ubuntu 14.04 unity desktop environment installed. update : have in

Create a LXD-based Juju controller that works with physical MAAS - Ask Ubuntu

i have maas setup 5 servers, including region controller. can create lxd-based juju controller works physical maas? i lose machine juju controller each time deploy. there way keep 4 physical servers juju charms? last night mi solution has make juju lxd controler in maas server , "add-machine ssh:node.maas" every node... the bad 1 auto creation of new lxd machines when bundle-charm deploy, use de --to x point de phisical pc , add-unit --to x have redundancy. i have 4 nodes 2 on trusty , 2 on xenial, charms. in general think working good, today start openstack in cloud!

apt - Have I just deleted my kernel? - Ask Ubuntu

Image
i'm working on virtualbox hosted headless ubuntu looks : foo@bar:~> uname -r 3.13.0-100-generic foo@bar:~> lsb_release -a no lsb modules available. distributor id: ubuntu description: ubuntu 14.04.5 lts release: 14.04 codename: trusty i tried delete old kernel headers executing : sudo apt-get remove linux-image-3.13.0-4* linux-headers-3.13.0-4* which thought remove restricted set of old kernel headers. text appeared on sceen included : removing linux-generic (3.13.0.100.108) ... removing linux-headers-generic (3.13.0.100.108) ... removing linux-headers-3.13.0-100-generic (3.13.0-100.147) ... removing linux-headers-3.13.0-100 (3.13.0-100.147) ... removing linux-image-generic (3.13.0.100.108) ... removing linux-image-extra-3.13.0-100-generic (3.13.0-100.147) ... run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-100-generic /boot/vmlinuz-3.13.0-100-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-100-gener

command line - duplicity 0.7.06 crashes - Ask Ubuntu

my daily incremental duplicity job crashes: duplicity- inc.20160210t210502z.to.20160211t210503z.vol4.difftar.gpg] last full backup date: sun oct 2 20:04:33 2016 error accessing possibly locked file /run/user/1000/gvfs /home/tpollak/bin/backup_duplicity_incr_exclude_media: line 65: 3826 killed duplicity -v4 --log-file /home/tpollak/backupincrlog --volsize 1000 --exclude /boot --exclude /cdrom --exclude /dev --exclude /proc --exclude /sys --exclude /tmp --exclude /home/tpollak/.gvfs --exclude /home/tpollak/downloads --exclude /home/tpollak/trash --exclude /media / ftp://tommy@192.168.1.100/tommy/for_duplicity error in call or known bug?

Why does my mouse keep becoming unresponsive? - Ask Ubuntu

Image
my mouse randomly disconnect , way fix reboot os. happens whenever watch video (mkv or mp4) or if afk few hours. not mouse present when it's in use (when working after reboot) installed tlp , stuff, nothing seems working.

keyboard - Bind a key to the 'contextmenu' key - Ask Ubuntu

Image
on full sized pc keyboards there context menu key. see photo below. my new laptop doesn't have 1 of these keys, use time. context menu shows context menu of selected item, not item underneath mouse pointer. my question is, how can re-map key combination (preferably ctrl + prtsc) perform same operation? on system, have context menu key. in terminal, when run xev , should present default on system well, see output (in part): keypress event, serial 48, synthetic no, window 0x2000001, root 0x96, subw 0x0, time 12548175, (334,-138), root:(588,185), state 0x0, keycode 135 (keysym 0xff67, menu), same_screen yes, xlookupstring gives 0 bytes: xmblookupstring gives 0 bytes: xfilterevent returns: false keyrelease event, serial 48, synthetic no, window 0x2000001, root 0x96, subw 0x0, time 12548242, (334,-138), root:(588,185), state 0x0, keycode 135 (keysym 0xff67, menu), same_screen yes, xlookupstring gives 0 bytes:

backup - Back Up window with password - Ask Ubuntu

i use ubuntu 12.4. have been getting icon appear on left hand bar. when open prompted supply password. enter password , appears system backing up, have same window appear before again asking password. not sure if has taken place or not. have tried ticking box 'remember password' , makes no difference. is working correctly. if not can fix it.

software installation - How do I install the latest version of Git with apt? - Ask Ubuntu

i read security flaw in git, fixed in version 2.2.1. have git 2.1.0 on system (ubuntu 14.10), , tried reinstall apt. however, apt told me have latest version. the git website not have prebuilt versions linux. can install package managers. without building source, how install latest version of git? use ppa maintainers of git on ubuntu: sudo apt-add-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git if don't know ppas are, first read what ppas , how use them? if receive error add-apt-repository command not found may need add python-software-properties package or software-properties-common depending on ubuntu version. ubuntu 14.04 sudo apt-get install software-properties-common ubuntu 13.10 or earlier sudo apt-get install python-software-properties

How enable menu icons in Ubuntu 16.04 LTS - Ask Ubuntu

in ubuntu 16.04 need know how enable icon in menu. example menu in inkscape. currently inkscape menu shown in mode: inkscape without icons i want see icons in mode: inkscape icons i have tried adjust settings on list below, doesn't work. - gsettings set org.gnome.desktop.interface menus-have-icons true - gsettings set org.gnome.desktop.interface buttons-have-icons true - gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'gtk/buttonimages': <1>, 'gtk/menuimages': <1>}" thanks.

command line - creating a customized stat file out of files a current directory - Ask Ubuntu

i have files these: $ cat a9e27.txt person,42% person,60% $ cat ffn2eg6.txt train,85% $ cat sbhfgkv.txt person,85% person,73% chair,44% person,57% $ cat a8evamk.txt etc etc of txt files empty. how can create file this 1,a9e27.txt,person,42%,person,60% 2,ffn2eg6.txt,train,85% 3,sbhfgkv.txt,person,85%,person,73%,chair,44%,person,57% 4,a8evamk.txt 5, etc etc where 1 shows file number when sort file names alphabetically ls -1 | sort , a9e27.txt file name, , each line of file contents comes in front of separated comma update: schrodingersscat's answer ubuntu irc correct on stdout: $ in * ; echo -n "$i"; cat "$i" | sed ':a;$!{n;s/\n/, /;ba;}' ; done 5co16.txta9e27.txtperson,42%, person,60% ffn2eg6.txttrain,85% kkc4e.txtsbhfgkv.txtperson,85%, person,73%, chair,44%, person,57% gives correct answer how can save result shown on stdout file correctly? kerframil bash irc: $ i=1; f in *; [[ -f $f ]] || continue; data=$(tr '\n

drivers - Nvidia/Intel Hybrid graphics suspend error - Ask Ubuntu

i'm running ubnutu 16.10 on lenovo z510 gt 740m. using nvidia driver, when try wake suspend screen black , error displayed: [ 1046.061495] [drm:wait_panel_status [i915]] *error* pps state mismatch [ 1047.081663] [drm:hsw_write_dcomp [i915]] *error* failed write d_comp [ 1047.369023] nvrm: xid (pci:0000:07:00): 70, gpu has fallen off bus. [ 1046.061495] [drm:wait_panel_status [i915]] *error* pps state mismatch [ 1046.061495] [drm:wait_panel_status [i915]] *error* pps state mismatch when on ubuntu 16.04, same problem occured, screen black, without error. due acpi bios incompatibilities, z510 needs additional kernel commandline parameter acpi_osi="!windows 2013" suspend/resume work. see: https://github.com/bumblebee-project/bbswitch/issues/142 the drm:wait_panel_status has been appearing since kernel 4.8 far haven't notice negative effects.

skype - Video chat app with desktop sharing - Ask Ubuntu

what state-of-the-art in linux video chat featuring desktop sharing? i not need group chat. need one-to-one chat can see each other desktops'. if possible interact other person's desktop. i using ubuntu , other person uses version of windows. desktop sharing needs enough can read normal fonts each other's computers. skype has 4.x release in linux (but no 5.x) , people are having problems when other person using windows hangouts .google.com seems simple enough , seems job, according google neither option allows interacting other person's desktop, they? else there? what teamviewer ? has free version linux , windows, has basic functions such allowing interaction 1 another’s desktop, , may make voice calls.

environment variables - Command shows up under 'which' but system can't find it - Ask Ubuntu

this question has answer here: environment variables when run 'sudo' 5 answers i have ubuntu installed on 1 partition of computer , i'm trying install arch linux on second partition. i'm having trouble bootable usb, i'm trying install after booting ubuntu , add binary path $path , pacstrap command need shows when use command, doesn't work when try run it. use ./pacstrap, needs able find other binaries in same directory. is there reason environment able find binary 'which' not when execute it? john@thebrain:/storage/part4/software/root.x86_64/bin$ export path john@thebrain:/storage/part4/software/root.x86_64/bin$ sudo pacstrap /mnt base base-devel sudo: pacstrap: command not found john@thebrain:/storage/part4/software/root.x86_64/bin$ pacstrap /storage/part4/software/root.x86_64/bin/pacstrap john@thebrain:/storage/part4/software/r

windows - Dual booting error - Ask Ubuntu

i following these instructions , ran problem. i made partition ( screenshot ) when ran windows 7 installer , tried install in partition said disk0 partition 3 ( 1 made free space windows installation ) "windows cannot installed selected disk. selected disk of gpt partition style" , solutions found clean disk, , since don't want lose ubuntu don't want that. please help thanks in advance. assuming don't have 64 bit windows installation media or uefi-based system, recommend going through entire content of site including comments. claims successful conversion gpt mbr without data loss haven't checked myself, proceed caution. use last resort. but if have 64-bit installation media , uefi-based system, should able change bios settings boot gpt too. post has lots of information on how install windows 7 64 bit in uefi-based system. luck.

launcher - 64 bit Ubuntu 16.04 Steam Install Issue - Ask Ubuntu

i'm sure many of know (including me,) steam runs on 32 bit infrastructure. make steam more readily accessible many users. i'm sure many of know when download ubuntu 16.04 have download libraries allow steam work reason aren't included in install. i researched on web while , learned how extract .deb file of steam. however, got stuck on launcher. whenever run launcher asks me install files. when write in password of approval, code says can't install files :(. please me. i'm considering uninstall ubuntu , install 12.04 version computer compatible steam. or download steam os. if me great because 16.04 , it's application store thing. i followed steps mentioned under manual installation on page https://linuxconfig.org/how-to-install-steam-on-ubuntu-16-04-xenial-xerus , installation did run flawless on 64-bit ubuntu 16.10. sudo apt-get install wget gdebi libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libc6:i386 wget http://media.steampowered.com/client/i

ubuntu-core for ubuntu-touch? - Ask Ubuntu

will there ubuntu-touch image supported phones utilizes newer snap formats? as far have seen phone architectrue working called click packages. is there plan transform phone images ubuntu-core? yes, that's plan , it's in works. there no timeline or announced yet, expected discussed @ next ubuntu online summit: http://summit.ubuntu.com/

Key '@' (Keycode 49) and key '<' (keycode 94) are inverted on macbookPro keyboard - Ask Ubuntu

i running ubuntu 16.10 on macbookpro , keys 49 , 94 inverted... resolved problem xmodmap , won't apply permanently. after research found xmodmap no longuer use ubuntu xkb instead. searched in configuration of xkb , found in config file /usr/share/x11/xkb/keycodes/macintosh lines : xkb_keycodes "badmap" { <tlde> = 94; <lsgt> = 49; }; xkb_keycodes "goodmap" { <tlde> = 49; <lsgt> = 94; }; this problem, 2 keys inverted. wondering if can't change layout configuration param badmap . the ouput of setxkbmap -query -v 10 setting verbose level 10 locale c trying load rules file ./rules/evdev... trying load rules file /usr/share/x11/xkb/rules/evdev... success. applied rules evdev: rules: evdev model: pc105 layout: fr,fr,us variant: mac,oss, trying build keymap using following components: keycodes: evdev+aliases(azerty) types: complete compat: complete symbols: pc+fr(mac)+fr(oss

ubuntu touch - BQ Aquaris E5 -> Device MSM8916 not found - Ask Ubuntu

presently purchased bq aquaris e5 phone in second hand shop android on it. after typing in console: volker@v____50:~$ sudo ubuntu-device-flash touch --channel=ubuntu-touch/stable/ubuntu --bootstrap 2016/10/30 17:41:10 expecting device in bootloader... waiting 2016/10/30 17:41:10 device |msm8916| device msm8916 not found on server https://system-image.ubuntu.com channel ubuntu-touch/stable/ubuntu volker@v____50:~$ who can solve problem? don’t want use google operating system ;-) thanks volker the e5s different chipset , not supported. original aquaris e5 hd mediatek chipset (vegetahd device name) supported.

fcitx input method does not work on Xubuntu 16.04 - Ask Ubuntu

i'm using xubuntu 16.04. although active fcitx input method (unikey , hangul), not works application. here fcitx-diagnose # system info: 1. `uname -a`: linux 4.4.0-45-generic #66-ubuntu smp wed oct 19 14:12:37 utc 2016 x86_64 x86_64 x86_64 gnu/linux 2. `lsb_release -a`: no lsb modules available. distributor id: ubuntu description: ubuntu 16.04 lts release: 16.04 codename: xenial 3. `lsb_release -d`: description: ubuntu 16.04 lts 4. `/etc/lsb-release`: distrib_id=ubuntu distrib_release=16.04 distrib_codename=xenial distrib_description="ubuntu 16.04 lts" 5. `/etc/os-release`: name="ubuntu" version="16.04 lts (xenial xerus)" id=ubuntu id_like=debian pretty_name="ubuntu 16.04 lts" version_id="16.04" home_url="http://www.ubuntu.com/" support_url=

apt - How to purge all bluetooth settings - Ask Ubuntu

how uninstall, purge , reset bluetooth settings? i'm running ubuntu 14, , bluetooth incredibly unreliably. sometimes, bluetooth devices connect fine. don't. connect several times 3 duplicate sound profiles show 1 bluetooth headset. i tried doing sudo apt-get purge bluetooth* , reinstalling, doesn't seem remove of settings files. how reset bluetooth settings short of reformatting hard drive , reinstalling ubuntu? there better way digging through file-system. i'll share know. smarter knows better way. 1) check duplicate running processes if had same process running multiple times, create conflict described , might able stop here. ps -ax if know process name, try: ps -ax | grep <name-here> 2) make sure package uninstalled: if run command below, you'll see it's not installed or you'll see corresponding files still on system. dpkg -l <name> if had few package similar names, following: dpkg --l | fgrep <name>

log - How to check whether someone viewed/copied a video? - Ask Ubuntu

is there way check if (a hacker had physical access machine) has accessed or copied file (a video) on system? need know. using terminal, check when last time video file accessed, if later last time accessed it, there's chance has copied it. of course if you've accessed file since then, or can't remember when last accessed it, won't helpful. access, mean copy, play or move file. in terminal, use command: stat /path/to/video you'll output in following format: $ stat file file: â?~fileâ?t size: 435 blocks: 8 io block: 4096 regular file device: 801h/2049d inode: 262181 links: 1 access: (0755/-rwxr-xr-x) uid: ( 0/ root) gid: ( 0/ root) access: 2016-09-12 10:30:01.186634836 +0100 modify: 2015-10-13 15:18:11.669085522 +0100 change: 2015-10-13 15:18:11.669085522 +0100 birth: - the information after access: line tell when last accessed. this method not foolproof, access time file can faked, or sys

Problems installing 16.04 in dual boot with Windows 10 - Ask Ubuntu

i have desktop windows 10 installed. i've added new drive (an m.2) can dual boot ubuntu desktop 16.04. here's setup: /dev/sda ssd windows 10 on it. /dev/sdb old hdd that's win10 "d:" drive /dev/sdc new m.2 drive want install ubuntu on. the ubuntu install goes fine until have install grub, @ point fails "unable install grub in /dev/sda". options install different drive, continue without grub, or cancel. trying change different drive doesn't work: can change drive dropdown "ok" button doesn't anything. have abort install. same results if start "install ubuntu" or if load live cd try install there (as people have suggested other people's posts). well adventure... got working. i had whole afternoon's worth of stuff, think short answer had enable efi in bios before install grub windows (/dev/sda) drive. think having efi/uefi/secure boot or of ilk turned off allow me freely install stuff..

networking - How to downgrade to 16.04.1 LTS from Ubuntu 16.10 - Ask Ubuntu

this question has answer here: how roll ubuntu previous version? 9 answers how switch ubuntu 16.10 ubuntu 16.04? [duplicate] 2 answers i want play bomb squad in linux. please explain procedure downgrade 16.04.1 lts ubuntu 16.10. thank in advance!

systemd - How to decrease metadata disk usage of journald logs? - Ask Ubuntu

myuser@myhost:~$ sudo journalctl > log.txt myuser@myhost:~$ sudo journalctl --disk-usage archived , active journals take 3.0g on disk. myuser@myhost:~$ ls -lh log.txt -rw-rw-r-- 1 myuser myuser 298m oct 31 15:15 log.txt so journal using 3g of disk space, actual log entries ~300m. imagine journal metadata taking rest of it. is possible change ratio of metadata log entries? or maybe it's not metadata else? almost of logs generated containerized apps, dockerd --log-driver=journald update : my journald.conf : [journal] storage=persistent ratelimitinterval=0 ratelimitburst=0 forwardtosyslog=no first, see reported "on disk" may not on disk @ all. clarified in recent bug fix , new language says "in file system", may in in-memory file system or disk-backed. default in ubuntu 16.04, it's memory-backed, there's bug report make systemd journal persistent default in ubuntu . now how reduce space. if you're not sure start find docum

state: check-failed when running canonical-livepatch - Ask Ubuntu

i have installed canonical livepatch snap package: sudo snap install canonical-livepatch sudo canonical-livepatch enable (and code) i setup unattended upgrades: sudo apt install unattended-upgrades sudo dpkg-reconfigure unattended-upgrades however, when want check on livepatch status doing: canonical-livepatch status --verbose i this: client-version: "5" machine-id: a144ba7b92ec478495cc5918743fe0e7 machine-token: 46a92999127246328b5091f493ee7be0 architecture: x86_64 cpu-model: intel(r) core(tm) i5 cpu m 430 @ 2.27ghz last-check: 2016-11-02t11:38:33.551353308+02:00 boot-time: 2016-11-02t11:40:22+02:00 uptime: 12m0s status: - kernel: 4.4.0-45.66-generic running: true livepatch: state: check-failed version: "" fixes: "" should concerned state: check-failed message? if so, causing it, , how can fix it? yes, should concerned. have problem too. best disable , re-enable livepatching every day (it works few hour

cloud - Using webdav to selective sync Box on Ubuntu - Ask Ubuntu

following various guides , i'm able sync box using webdav. box size large , don't want sync them all. is possible sync folders using webdav & box? box's webdav page doesn't seem mention it. the guide link to, webdavfs2, though near end has reference experimental sync client well. did try that? have tried various ways sync box cloud. boxsync3, sync wine. worked used ubuntu on dual boot laptop , when switching windows sync indexing started on again, regardless of syncing under ubuntu , vice-versa. in end prefer have access files through webdav, mounting remote box.com location. webdav client in nautilus, performs better webdavfs2, purpose. i used guide link , succeeded in mounting remote box.com location. very-very slow, nautilus or gui file managers - client webdavfs2 caches icons , file information , large cloud storage system crawls till hangs - there plenty of posts on problem. nautilus has webdav client built in! use , much-much faster re

bash - How can I find all video files on my system? - Ask Ubuntu

i tried using unity lens file search *.* , filtering last modified=all, type=videos, , size=all found nothing although know there .3gp files in pictures folder. know have numerous video files on drive mounted on file system well. compiled list of extensions , tried numerous iterations of find command utilizing these find ./ -name "*.ext" -o (etc, etc, ad nauseum) no luck whatsoever. solution? alternative: search on file : sudo find . -type f -exec file -n -i -- {} + | grep video or if want filenames ... sudo find . -type f -exec file -n -i -- {} + | sed -n 's!: video/[^:]*$!!p' -n, --no-pad : don't pad filenames -i, --mime : causes file command output mime type strings rather more traditional human readable ones. may 'text/plain; charset=us-ascii' rather 'ascii text'. in order option work, file changes way handles files recognized command (such many of text file types, directories etc), , makes use of alternative 'm

16.04 - x11vnc under Ubuntu 16.10 - wrong keyboard mapping when accessing from Windows 7 - Ask Ubuntu

sorry, still quite new-be ubuntu , may not see obvious. i have installed ubuntu 16.04lts 16.10 scratch on small intel machine german keyboard attached. system language set english, keyboard standard german. when working on system directly normal. i have installed x11vnc server on box , access windows 7 notebook standard german keyboard using vnc viewer 5.3.2. the access works, noticed special characters not being submitted correctly. main problems have @ , | . i have tried setting special options on server side such -xkb , -remap dead , -add_keysyms , -noadd_keysyms , none solution. 1 of them - forgot after changes - gave me wanted characters, not ! anymore. edit: tested other vnc clients under windows (vnc viewer 6.0.0, tightvnc viewer 2.8.5) same results. must issue between windows , ubuntu such. what doing wrong? thanks! i solved exact same problem ubuntu 16.04lts server connect via vnc using setxkbmap xx . (adjust xx language. in case 'de') thi

shutdown - Ubuntu stuck in shotdown - Ask Ubuntu

my ubuntu 16.04 stuck in shutdown times when use of memory(ram). shutdown how described before when usage small not time ram , swap usage high wont shutdown in splash removed splash grub file. restart ctrl + alt + print scr + b . i've tied thing find such removing quiet-splash grub,... because time happens finding right answer hard. the problem solved reinstalling newer version of ubuntu.

bash - adding a new column as line number in a csv file - Ask Ubuntu

i created csv file forgot add line number first column. fastest way (for large file)? 262145,umbrella,umbrella,carrot,carrot,carrot,carrot,person,person,person,person,person,person,person,person,person,person,person,person,umbrella,carrot,carrot,carrot,carrot,carrot,carrot,carrot,carrot,person,umbrella,carrot,person,carrot 262146,person,skis,backpack 524291,dog,dog,person,frisbee 393223,toothbrush,person 393224,tie,person,person,person,person,person 524297,person,person,person,bear 393227,person,skateboard 131084,motorcycle,person 393230,person,skis 524311,chair,person,remote 393241,frisbee,person,person,person,person,person,person,person,person,person,car,car,person,car,car,person,person,person 524314,car,person,person,teddy bear,car,handbag,cell phone,car,handbag,teddy bear 262171,boat,person,person,person,person,person,person,boat,person 131101,umbrella,person,person,backpack,handbag,person 524320,tie,person,person,suitcase,person i want like: 1,262145,umbrella,umbrella,ca

A4Tech 6100F Wireless Mouse Button Besides Scroll Not working - Ask Ubuntu

Image
my mouse relative new model... indicated button serves no functionality; whereas want double click button besides scroll i have far visited following urls 1] https://askubuntu.com/a/492745/110979 2] https://www.howtoforge.com/tutorial/map-mouse-on-linux/ using xev or xinput test shown have following configuration button---functionality 1---left click 2---middle(scroll) click 3---right click 4---scroll up 5---scroll down neither command register click on middle (yellow arrowed) button. before start mapping mouse buttons have make sure every button registers click, how ..is there command utility

Apache2 not restarting - segmentation fault - ideas how to fix? - Ask Ubuntu

i have new site running on digitalocean, ubuntu 14. tried installing phpmyadmin using these instructions https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04 from shell, running specified instructions caused shell freeze. restarting shell in digitalocean site displayed window previous shell operation, asking me if wanted choose apache2. window frozen , not proceed. restarted server, , can't access website, seemingly because apache down. apache won't restart, , message apache couldn't reliably determine server's qualified domain name. says segmentation fault (core dumped). when read apache error log, says not open a logfile under webroot. when navigate logfile can open it. so curious if have caused myself quite problem or if recoverable... thanks! brian ok, figured out. wasn't able successful core dump saved, , after looking @ error log, showing previous problem. i think happened mistakenly r

networking - OpenVPN - Linux client could not access internet, routing issue - Ask Ubuntu

i installed openvpn server quite while go gateway option internet traffic routed through. it works fine client machine windows , android phone, same open vpn client config on unbuntu notebook seems not work. client connects internet traffic seems not routed. pinging server work: ping 10.8.0.1 so not sure missing. tried far following options added client route config: route 10.8.0.0/24 added via console route config: sudo route add -net 10.8.0.0/24 gw 10.8.0.1 dev tun0 turned off firewall on client any or hints appreciated. thanks server config: port 443 proto tcp dev tun ca ... cert ... key ... dh ... server 10.8.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt push "redirect-gateway def1 bypasss-dhcp" push "dhcp-option dns 8.8.8.8" push "dhcp-option dns 8.8.4.4" client-to-client keepalive 10 120 comp-lzo persist-key persist-tun status ... log ... verb 3 client config: client dev tun proto tcp remote www.serverdomain.com 443 resol

command line - How to recover deleted files in ubuntu using live usb? [based on filetype] - Ask Ubuntu

i had accidentally deleted few files ubuntu desktop. need recover perl files had been sitting in /home/user directory. how can done? able boot using live ubuntu usb. please explain. testdisk lot more efficient photorec. problem testdisk doesn't recover deleted files. if accidentally reformat partition, testdisk can recover thousands of files without missing single file, if deleted file sending trash , emptying trash, testdisk can't recover it. so use testdisk first, , if recovered of deleted files testdisk, you're done. if recovered of deleted files testdisk, can decide whether you're done or not. if you're not done after running testdisk, can try recovering deleted files using photorec. photorec can selectively recover files based on filetype(s), photorec/testdisk can't selectively scan individual directory lost files unless had mounted whole hard drive partition directory. in cases, filename stored in file itself. photorec tries recover file

14.04 - MongoDB could not start: bind_ip error: bind() failed errno:99 Cannot assign requested address for socket - Ask Ubuntu

i follow installation instructions mongodb-org in mongodb documentation. ubuntu version 14.04. /etc/mongod.conf # mongod.conf # documentation of options, see: # http://docs.mongodb.org/manual/reference/configuration-options/ # , how store data. storage: dbpath: /var/lib/mongodb journal: enabled: true # engine: # mmapv1: # wiredtiger: # write logging data. systemlog: destination: file logappend: true path: /var/log/mongodb/mongod.log # network interfaces net: port: 27017 bindip: 127.0.0.1,54.169.117.134 #processmanagement: #security: #operationprofiling: #replication: #sharding: ## enterprise-only options: #auditlog: #snmp: when try sudo service mongod start , returns mongod start/running, process 6400 sudo service mongod status returns mongod stop/waiting , check /var/log/mongodb/mongod.log , this: 2016-11-04t14:59:21.366+0700 e network [initandlisten] listen(): bind() failed errno:99 cannot assign requested address socket: 54.169.117.

networking - How to set DNS server address temporarily? - Ask Ubuntu

at workplace dhcp server goes down. so made script sets ip address , netmask using ifconfig , default gateway using route . i'm yet find command assign dns server temporarily. is there command can use set dns server address eth0 temporarily? if dhcp server comes back, can reconnect using dhcp without hard coding configuration file. write /etc/resolv.conf : echo "nameserver 1.2.3.4" | sudo tee /etc/resolv.conf upon successful dhcp connection, should overwritten "correct" dns server.

sudo - How to use sudoers for python's script - Ask Ubuntu

i had script (named script) in bash, , wanted allow user (named "userscript") run root without giving password. so, edited file /etc/sudoers , added 2 lines @ end : cmnd_alias script=/home/userscript/desktop/script userscript all:nopasswd: script (the script in desktop symbolic link prevent modification) it worked well. after days, script big, rewrote in python, multiples files, classes... so, changed nothing except symbolic link's target, when try run script, terminal ask password, , give me error (sorry if it's not message, ubuntu isn't in english) sorry, user userscript isn't allowed execute "/usr/bin/python script" root on name_of_my_computer i run script user "userscript" : sudo python script your problem here command try run sudo python ; script first argument python . instead , script should has executable permissions, , you're supposed run sudo script_name . second, when python script_name

sound - FluidSynth fails in script but works in ipython - Ask Ubuntu

i starting test use of fluidsyinth create midi files. first script simple. works in ipython not script in command line, not anything, no errors , no sound. using python2.7 in both (ipython , comand line). using ubuntu. code: #!/usr/bin/env python2.7 mingus.midi import fluidsynth c import time in range (0,100,1): c.play_note(i,0,100) time.sleep(0.1) i decided test fluidsynth directly comand line in ubuntu-terminal using fluidsynth /usr/share/sounds/sf2/fluidr3_gm.sf2 mymusicfile.mid and got this: fluidsynth version 1.1.6 copyright (c) 2000-2012 peter hanappe , others. distributed under lgpl license. soundfont(r) registered trademark of e-mu systems, inc. cannot connect server socket err = connection refused cannot connect server request channel jackdmp 1.9.10 copyright 2001-2005 paul davis , others. copyright 2004-2013 grame. jackdmp comes absolutely no warranty free software, , welcome redistribute under conditions; see file copying details no message buffer ove

drivers - Intel audio card not recognized in KDE Neon (Ubuntu 16.04 LTS) - Ask Ubuntu

good morning everyone, i have new laptop, asus zenbook 3, onwhich have install kde neon, based on ubuntu 16.04lts. works well, except have no sound, , no sound option in bottom menu bar ! have done research, , have found audio card not show in system audio settings, , folder /proc/asound not seem exist. have tried reinstall alsa several times, little success. however, card listed when use lspci : etienne@etienne-zenbook:~$ sudo lspci | grep [aa]udio 00:1f.3 audio device: intel corporation device 9d71 (rev 21) and works fine in dual-boot windows 10. what can recognized system ? thank !

command line - Want to write a bash script to automate creating program files - Ask Ubuntu

i want write bash script can: create file specific name entered user. if user doesnt enter name, should provide default name check if name present. allow more variables entered user can used populate program file, including filling comments section (for things author_name) i don't have experience in writing bash scripts please provide small code examples. lot! ps: guess pretty npm init script creates package.json file. cant find script, if it's open source please provide link if have it. i have written uptil now: skeleton: /* * url : * author: john m. * timestamp: */ #include <iostream> #include <algorithm> #include <vector> using namespace std; int main(int argc, char* argv[]) { // code } skeleton.sh #!/bin/bash created=0 while [ $created==0 ]; read -p "enter name of new c++ program file (code.cpp)" name case $name in * ) name="code.cpp";; esac if [ -e $name ]; echo &

networking - Allowing access to outside computers - Ask Ubuntu

i installed ubuntu server 16.04.1 on dell computer 2006. got set , got firewall privileges set up, couldn't find anywhere how allow external users. can tell me how allow both incoming , outgoing connections? can find stuff how 1 or other, not both. thanks

Ubuntu 16.04 Systemd start up file? - Ask Ubuntu

i added command via gui run on start up. i'm having issues logging in , i'd manually remove command via terminal (as xsession having issues). i've been trying locate file responsible have had luck in finding in. know? after logging in console navigate directory: cd /home/your-user-name/.config/autostart/ then list startup applications scripts ls . should see script there. remove with: rm script-name then reboot.

12.04 - How to control Brightness - Ask Ubuntu

i didn't install myself, ubuntu 12.04 lts on acer 4741g. i use fn + left / right change brightness, failed. how can control brightness levels? try this: open terminal ( ctrl + alt + t ). then type sudo nano /etc/default/grub . ask password. type in. around 11th line, there like: grub_cmdline_linux_default="quiet splash" . change grub_cmdline_linux_default="quiet splash acpi_backlight=vendor" save file ctrl + o followed ctrl + x . run sudo update-grub in terminal. reboot , see if backlight adjustment works. if not, undo changes did above, invoking text editor in steps 1 , 2. hope helps. works acer aspire v3-571,acer aspire v3 571g,hewlett packard bell easynote ts,acer aspire 4755g,acer aspire 5750-6866, acer aspire 5739, lenovo t540p

apache2 - Browse a Apache Server from Nautilus - Ask Ubuntu

Image
this public server. can browse web-browser without user-name or password. can have shortcut in file-browser (like nautilus, dolphin etc) can browse file-browser? no, cannot point nautilus shortcut here. what have on web page apache's automatic display of directory listing because can't reach or doesn't have index page. listing see able viewed in web browser chrome or firefox, not filesystem browser nautilus. this handled internal file listing of apache checking file system on remote server , presenting information web page. not network drive or can connect nautilus to; it's apache's listing of directory , not nautilus can connect to.

ADSL router not working with Ubuntu Server 16.04.1 LTS - Ask Ubuntu

Image
the same adsl router (huawei hg633) works fine ubuntu desktop when connected on wifi, when try doing "sudo apt update" on newly-installed ubuntu server 16.04.1 doesn't detect internet. connected router using ethernet cable. is known issue ubuntu server , adsl routers? edit: (sorry post screenshot couldn't off of machine way)

command line - Filter files according to owner under same directory - Ask Ubuntu

i writing script has common directory , under directory there files different owners. how can filter files according owner files , parse them separately owner name filename: /gen/comm_owner/a /gen/comm_owner/b there more 20 owners more 60 files. expected output gen/comm_owner/a.txt , a.txt contains files, likewise b.txt . have tried awk , sed , able filter things how perform this? find /some/path -type f -printf "%u/%p\n" | awk -f/ '{u=$1; sub($1"/", ""); print > u}' find 's -printf option powerful. in case, tell print username , relative file path separated slash (e.g., muru/foo/bar (or use %p instead of %p , muru//some/path/foo/bar ). then, in awk , splitting on / , save first field (the username), remove input, , print input username. example: $ find /var/lib -type f -printf "%u/%p\n" | awk -f/ '{u=$1; sub($1"/", ""); print > u}'

networking - VNC server doesn't start until login - Ask Ubuntu

i'm trying set vnc connection imac (soon headless) mac mini running ubuntu 16.10. i'm using tutorial: how setup x11vnc server on ubuntu & linuxmint everything perfect through section "start x11vnc server". run command terminal prompt, server starts on ubuntu box, , can instantly connect vnc client on imac (running chicken). so, looks good, next section how make vnc server starts @ boot , assume don't need logged in able connect. i copied code shown in final section, 1 change of user folder ( /home/bryan/.vnc/passwd ), saved , rebooted. tried connecting , client tells me could not connect server 192.168.1.2 port 5900 - server refused connection. but if login on ubuntu box (currently have connected monitor, keyboard & mouse), , use same command before: sudo x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/bryan/.vnc/passwd -rfbport 5900 -shared the imac can log me in perfectly, way want to. why doesn't seem load ser