• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, February 5, 2019

    Linux TIFU by creating an command that kills window on click

    Linux TIFU by creating an command that kills window on click


    TIFU by creating an command that kills window on click

    Posted: 05 Feb 2019 04:43 AM PST

    I have an app that occasionally crashes on my system. To restart it I use - xprop to find PID, kill -9 to terminate. I thought it would be cool if I could terminate the app on xprop click. So i wrote a script to do that: kill $(xprop |grep -e "_NET_WM_PID(CARDINAL)"|awk '{print $3}')

    It worked very well and I was happy about it! I went to my .bashrc to create an alias for it. I thought xkill would be a fitting name. Just before I assigned the alias I thought Ill check if the alias was not taken by anything else... And it was... xkill does function in exact same way my script does

    TL;DR created a script that already exist

    submitted by /u/suchoriginalwow
    [link] [comments]

    Help! What do I do?

    Posted: 04 Feb 2019 07:31 PM PST

    Zsync - A File Transfer Utility To Download Only The New Parts Of A File. Useful For Downloading Ubuntu Daily Builds

    Posted: 05 Feb 2019 01:35 AM PST

    Self-compiled kernel and headers - "This system is currently not set up to build kernel modules."

    Posted: 05 Feb 2019 10:27 AM PST

    I'm running a self-compiled 5.0-rc5 kernel. I've used this script to compile and install it including it's headers.
    The line responsible for compiling it is CONCURRENCY_LEVEL=$(getconf _NPROCESSORS_ONLN) fakeroot make-kpkg --initrd --append-to-version="${kernel_localversion}" kernel_image kernel_headers.

    $ uname -r 5.0.0-rc5-acso $ dpkg -l | grep $(uname -r) ii linux-headers-5.0.0-rc5-acso 5.0.0-rc5-acso-10.00.Custom amd64 Header files related to Linux kernel, specifically, ii linux-image-5.0.0-rc5-acso 5.0.0-rc5-acso-10.00.Custom amd64 Linux kernel binary image for version 5.0.0-rc5-acso 

    Yet I still get this error when trying to install Virtualbox (or any other DKMS module for that matter):

    This system is currently not set up to build kernel modules.
    Please install the Linux kernel "header" files matching the current kernel
    for adding new hardware support to the system.

    What is going on here? Do I have to enable something special in the kernel config to be able to build DKMS module against it?

    submitted by /u/GuessWhat_InTheButt
    [link] [comments]

    Need help executing commands on startup

    Posted: 05 Feb 2019 10:39 AM PST

    I'm new to linux, and have i3 running on Manjaro. I am somewhat familiar with i3config, but I don't know how to execute commands when I turn on my machine. I would like to execute things like:

    • feh wallpaper

    • polybar

    • wal -i

    Thanks!

    submitted by /u/iSmuffledorf
    [link] [comments]

    Ubuntu 18.0.4 change netplan

    Posted: 05 Feb 2019 08:07 AM PST

    Hi all,

    Total noob here.

    I am trying to install a Linux Server 18.0.4 through vmWare.

    I've installed updates and rebooted. Now I wanna set a permanent ip address.

    I'm in my netplan and want to change it, but when I type the command:

    sudo netplan try (or apply) I get the following error message:

    netplan: fatal error: cannot bind to port 2983, is another daemon running?, exiting. 

    This is my netplan config file:

    network: 

    version: 2 renderer: networkd ethernets: ens33: addresses: [192.168.250.12/24] gateway4: 192.168.250.1 nameservers: addresses: [192.168.250.1,8.8.8.8,8.8.4.4] dhcp4: no

    I also have no ip address when I type ip a s

    How do I shut down other 'daemons' and get a permanent ip address?

    Thanks!

    submitted by /u/Suuqmadieq
    [link] [comments]

    Laptop recommendations: Upgrade Surface Pro 3 or buy used laptop?

    Posted: 05 Feb 2019 09:55 AM PST

    TL;DR: My Surface Pro 3 is a terrible machine and I want recommendations for cheap ($250-$400) used laptop models to shop around for that work well with Linux. Primary use would be Java/Python/C/C++ development, notetaking, and occasionally general browsing or video streaming.

    -------------------------

    Hi everyone, I currently have a Windows 10 Surface Pro 3 i7-4650U with 256GB SSD and 8GB ram but it's been failing on me for years and I'm finally ready to move on. I bought it in July 2015 (or around there) and it has just been a growing headache ever since. My issues with it are the keyboard and track pad quality, the pen, and also a somewhat large dead spot in the touch screen that requires the pen or touch pad to interact with. First, the keyboard quality is awful which is remedied in the Surface Pro 4 keyboard which costs a fair amount of money to upgrade to. Lately, my keyboard has stopped connecting and will not reconnect until I reboot the system and this extends to the track pad as well. On top of that, the system has developed a new habit of blue screening on reboots. I had to buy an aftermarket replacement pen which likes to continue writing on the screen after it's been lifted away. In summary, this device is just glitchy and unreliable, but I could always spend $200 upgrading the keyboard/pen and I could try re-imaging the system and installing Ubuntu instead of buying a new laptop.

    I am down to only 2 semesters of school remaining with many classes dealing with Linux, so I'm looking around at replacement laptops. I also have a nice desktop which serves as my primary computer for day to day browsing, homework, and tasks. Because of this, I'm looking at the used mid-range business laptop market to take to class with me. I've been looking at a lot of Thinkpad or Ideapad models on ebay but I'm not all that sure about device quality with those two lines.

    -------------------------

    So my question: Is there a decent used device model in my price range (Quality keyboard/track pad, 1080p with decent screen, 8GB ram or upgradeable, 256GB SSD, i5 or Ryzen 5, and good battery life)? Or should I try to bring my Surface back to life?

    submitted by /u/ssn_confusion
    [link] [comments]

    How to connect to WPA & WPA2 wifi on ubuntu?

    Posted: 05 Feb 2019 01:30 PM PST

    Hi guys,

    I recently installed ubuntu 18.04 on my SB1. i have no issue connecting to wifi except when its WPA & WPA2 wifi. Please help me.

    Thanks in advance!

    submitted by /u/darkstar696
    [link] [comments]

    Can cURL's --resolve flag use a URL instead of an IP?

    Posted: 05 Feb 2019 09:28 AM PST

    I need to send an HTTP request to a given URL, but I have to spoof the URL being used to send the request (think external vs internal addresses).

    I've found that cURL has a --resolve flag, which lets you set an IP that a given url would resolve to. However, it doesn't seem to work with a hostname instead. Are there any options to do what I want?

    submitted by /u/Nestramutat-
    [link] [comments]

    Netdata UPS plugin assistance

    Posted: 05 Feb 2019 08:56 AM PST

    Hey guys,

    ID10T here, curious if anyone can point me in the right direction.

    I'm trying to enable the UPS plugin for netdata (Fedora), but I must be doing something stupid.

    I've downloaded apcupsd.conf and apcupsd.chart.sh.

    I've put apcupsd.chart.sh in /usr/libexec/netdata/charts.d/

    I've put the edited version of apcupsd.conf in /etc/netdata/charts.d/

    I've edited /etc/netdata/netdata.conf so that under [plugins] it states apcupsd = yes

    Not appearing, I'm assuming ID10T and the documentation for this plugin is a bit bare.

    Any help would be appreciated!

    submitted by /u/cybermaniacboris
    [link] [comments]

    Creating /home partition after installing Ubuntu

    Posted: 05 Feb 2019 08:29 AM PST

    I have installed Windows 10 and Ubuntu 18.04 without separate /home partition

    • 150 GB - Windows 10
    • 310 GB - Ubuntu Root

    I want a separate Ubuntu /home partition by splitting the 310GB Ubuntu Root into

    • 10GB - Ubuntu Root
    • 300GB - Ubuntu Home

    My questions are:

    1. What is the recommended size for root partition? My work involves installing lots of packages around 10-20GB.
    2. Is it even possible to create /home partition after installation? How do I proceed?
    3. Will I have to re-install all packages after creating new /home partition?
    4. Do the user installed packages get installed in /root or in /home?
    5. If I re-install Ubuntu or any other Linux OS on root partition, will the newly installed OS detect previously created /home partition?

    Sorry for the excessive questions, I am a newbie and I dont want to miss any step which can lead to data loss.

    submitted by /u/SpeedZoom
    [link] [comments]

    How do I install something to /bin than /usr/bin

    Posted: 05 Feb 2019 08:07 AM PST

    I am installing Weblogic server from Oracle, it doesn't support Ubuntu and the installation hangs at /bin/rpm not found. I installed rpm package using apt-get it got installed to usr/bin so Weblogic is still showing same error. Can I just sudo cp or what should I do?

    submitted by /u/prokid1911
    [link] [comments]

    Is it normal for Ubuntu to be buggy?

    Posted: 05 Feb 2019 04:05 AM PST

    I've been a Windows user all my life but I decided to try out Ubuntu on my laptop. I've been using it for a little over a month and there are many things I do like about it.

    However, it seems to be far more buggy than Windows. One thing that really annoys me is the lock screen. It often will bug out and become non-responsive forcing me to reset it by either putting it to sleep or restarting my computer.

    Even turning off the lock screen doesn't circumvent this problem because when you close the laptop it forces a login screen (and there is no setting to stop this).

    Another example is interfaces with programs like F.lux randomly disappear. Normally there is an icon on the top task bar where you can pause or modify f.lux settings, but that randomly disappears (even when I know the program is still running) forcing me to try to open a gui manually, which often does not work. Forcing a restart.

    I was curious if this was just normal for Ubuntu to be noticeably more buggy than Windows (being a free software and all). Otherwise, what should I consider to reduce its bugginess?

    submitted by /u/logicallyzany
    [link] [comments]

    Arch Linux: Issues on some commands and pn shutdown

    Posted: 05 Feb 2019 09:30 AM PST

    I've installed Arch once on my computer, it was very difficult to correct all errors, but I did it. Hardware problems occured and my official manufacturer repair formatted my computer. Now, I'm having the same problems, but without being able to fix them. I've been following the Arch Wiki and everything was going fine, until I needed to install Xorg.

    I needed to run the command: lspci | grep -e VGA -e 3D to know which drivers to install. The problem is the computer hangs on that tty, not even SIGKILL can break that command. Then I receive a kernel message like this: NMI Watchdog: watchdog detected hard LOCKUP on cpu X. I'm still able to open other tty. On journal, it says something like rcu_preempt detected stalls on CPUs / tasks and then the CPU that is blocked, the CPU who detected it was blocked and other information.

    This doesn't occur because it ran out of RAM, because with free -h I was able to see it had 15GiB RAM free.

    On reboot/shutdown it hangs forever... Even on archiso Live USB, I received the message: watchdog0 did not stop

    My specs:

    Computer: MSI GL72M 7RDX

    RAM: 16GB

    CPU: Intel Core i7 (7th Gen) 7700HQ / 2.8 GHz Quad-Core

    GPU: NVIDIA GeForce GTX 1050

    Can anyone help me?

    submitted by /u/dmaxterpt
    [link] [comments]

    Where do you backup or store your password manager's database files?

    Posted: 05 Feb 2019 02:38 AM PST

    Hi,

    gnu/Linux user here. I am planning to start with keepassxc as a password manager. I am curious about the best practice/place to store the database files containing encrypted password? How do you do it? Do you put it in the traditional cloud storage like google drive or dropbox? My target is to get it synced across multiple devices.

    submitted by /u/git_world
    [link] [comments]

    cifs module issue while trying to mount shares

    Posted: 05 Feb 2019 04:21 AM PST

    Hey guys, I am currently trying to mount my samba share folders on my linux machine but having quite a few issues that Google can't seem to answer, most of the problems go back to 2008 and the solution always seems to be a kernel update but afaik I am on the latest kernel anyway.

    Running Manjaro i3 Community since that probably affects the outcome of this all :p

    So basically I am trying to mount my torrent folder, I can connect to it using smbclient just fine so all is good on that front, the issue comes when I am trying to use either mount -t or mount.cifs.

    Here is what I am trying so far:

    sudo mount.cifs //192.168.1.100/torrents ~/torrents -o username=gibbo,workgroup=WORKGROUP

    Output

    [sudo] password for gibbo: Password for gibbo@//192.168.1.100/torrents: mount error: cifs filesystem not supported by the system mount error(19): No such device Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) 

    Output of lsmod | grep cifs is nothing, so the module appears to not be running.

    modprobe cifs is resulting in modprobe: FATAL: Module cifs not found in directory /lib/modules/4.19.14-1-MANJARO .

    I have the cifs-utils package installed, system is all up to date. So it seems the module is missing, so not sure what to do now. Any help is greatly appreciated.

    submitted by /u/Gibbo3771
    [link] [comments]

    Vim basics - Another video from that indie guy [youtube]

    Posted: 05 Feb 2019 04:15 AM PST

    Hi there, webwalks here, the guy who makes indie informative tech videos, last one posted here was the introduction to Terminal, the series I started, and last night I realised it's the best time to launch a Vim series as well, so for anyone interested in this awesome yet alternative editor, feel free to check my first episode that covers the basic movements, how the normal mode works and creates basis for our next video where the true power of vim comes - combining movements/motions with actions, thats where the speed and natural aspect of vim really shines.

    https://youtu.be/vwPb93NdVes

    submitted by /u/webwalks
    [link] [comments]

    Which Linux distro should I choose?

    Posted: 05 Feb 2019 01:17 AM PST

    I'm going to use it in a Dell Inspiron 9100.

    Primary using it to understand how it works, how to break it/destroy it/configure it etc.

    I'm thinking of using Slackware but is there any other distros I can tinker with?

    I used Ubuntu before but I'm still a noob :)

    Thanks in advance!

    submitted by /u/FryForFriRice
    [link] [comments]

    Automatically spawn something into a currently open Tabbed instance?

    Posted: 05 Feb 2019 12:30 AM PST

    So, I'm currently messing around with a full suckless setup, just for fun and meme cred.

    So, the hypothetical ideal I'm aiming for is to script something to automatically spawn, say, a surf instance, into a currently open tabbed instance that already has other surf instances.

    I found a way to manually do it, using lsw, piping that out into dmenu, then sed'ing out the XID of the chosen tabbed instance window for surf -e 'XID'.

    So I need to find a way to list XIDs, then find which are tabbed windows, then find which tabbed window is the one with all the surf instances...and do it all automatically.

    I know that there has to be a way to do this, but I just don't have the right tools, or know which tools to use. Like, lsw just lists all the windows, it can't tell which are for tabbed. Xprop has more relevant information, but you have to manually click a window.

    I totally wouldn't be surprised if yhere was a simpler answer. Feel free to tell me to RTFM, but tell me which manual first.

    submitted by /u/El_Dubious_Mung
    [link] [comments]

    Unsure about read and write permissions on an ext4 external hard drive

    Posted: 04 Feb 2019 11:50 PM PST

    I used GParted to format my external 1TB harddrive to ext4. When accessing it in the Dolphin file manager, I can't copy or move anything to it.

    This link suggests using the following command:

    sudo chmod ugo+wx /media/username/your_drive 

    Is that what I need? Suppose I connected my drive to someone else's computer or if I reformatted my drive. Would I have to run this command again or is it somehow saved in the "lost+found" folder on the drive?

    submitted by /u/depressedwatermelon
    [link] [comments]

    Can't install Woeusb

    Posted: 04 Feb 2019 11:23 PM PST

    I needed to install woeusb, headed to their website. It comes up with a 404 error. Wonder if there is another way to make windows bootable usb from linux.

    submitted by /u/banerjeesaranyo
    [link] [comments]

    Learning Linux

    Posted: 04 Feb 2019 07:09 PM PST

    Hey guys I'm a cs major about to graduate and I want to be able to know my way around linux. What distro should I use for genuinely learning? I dont just want one that's most similar to windows I want one that can aid me in learning if that's possible. This will be my main OS if that changes anything. Forgot to mention my main goals are to be comfortable with it as my main OS and know my way around everything with the CLI

    submitted by /u/ldubi
    [link] [comments]

    Sharing a USB drive

    Posted: 04 Feb 2019 08:23 PM PST

    HI,

    I am looking for a way to have any USB drive mounted as the same SMB share. There would only be 1 USB drive attached at any one time. The idea being that network devices can write to the USB drive and it be removed for offsite access and replaced with another that the devices keep writing to the new USB drive at the same share location.

    submitted by /u/Condimentalist
    [link] [comments]

    Backlighting Question

    Posted: 04 Feb 2019 09:49 PM PST

    The program that origin pc uses for their laptops only works on windows. And without this program i cant dim the back lighting, can't change the colors on the backlighting, or turn the blacklighting off. Is there an alternative I can do or do i need this soecific program?

    submitted by /u/TOAST3DGAM3R
    [link] [comments]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel