Quantcast
Channel: User Klaatu von Schlacker - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 44 View Live

Comment by Klaatu von Schlacker on USB flash drive formatted as "Linux Live...

Ah I see you have updated your question a lot. Very interesting investigation! I think looking at dolphin's source would indeed be enlightening.

View Article



Comment by Klaatu von Schlacker on To get Stable Keyboard Configs for 90 WPM...

This doesn't sound like a keyboard issue; there's no reason a cursor should move to random locations during usage. Are you typing on a laptop? could your arm or palm be brushing the trackpad, causing...

View Article

Comment by Klaatu von Schlacker on Protecting files from rm -rf in writeable...

This is a dupe of unix.stackexchange.com/questions/20104/…, which has a few good valid answers. Check it out!

View Article

Comment by Klaatu von Schlacker on Remove file, but only if it's a symlink

edited my answer to include a recommendation to not use rm or delete, and to get a good commandline trash tool. Let's face it: if you are removing a file with something without a recovery option, then...

View Article

Comment by Klaatu von Schlacker on Vulnerability demonstration on Ubuntu 9.04

At the very least, you should check the VM's logs.

View Article


Comment by Klaatu von Schlacker on Setting up Network File Share on raspberry...

is rpcbind running? it needs to be, so if not that could be part of the problem.

View Article

Comment by Klaatu von Schlacker on SSH broken pipe, message authentication...

try running scp with the -v switch included for more verbose output. it might give clues to what is going wrong.

View Article

Comment by Klaatu von Schlacker on How do I prevent my cd ripper from...

Serge's answer is best, but a hack is to add the -W1 option. This treats discs as multi CD sets. If a duplicate disc set is found, then the current one is incremented to triple-digits (track 101...

View Article


Comment by Klaatu von Schlacker on Script to remove certain span elements...

Yes, you make a good point. I'll edit the answer to reflect your improvement.

View Article


Comment by Klaatu von Schlacker on Where do I put my systemd service?

No, you shouldn't have to do that. After should understand target names (bar.target) and should not need full paths.

View Article

Comment by Klaatu von Schlacker on How to find the cause of High Load Average...

I would take a look at the mailserver logs, which presumably will show you connection attempts, failures, and so on. The output of netstat and top, and so on, confirm that you server is under a heavy...

View Article

Comment by Klaatu von Schlacker on Mouse left click stops working

This is the correct answer on how to recover from the problem (you probably need to look through Xorg.0.log to diagnose why it is happening). The first command, which can also be written as 'sudo...

View Article

Comment by Klaatu von Schlacker on Script not correctly printing the correct...

Yes, you're right, my comment was unintentionally broad there. I'll edit for accuracy. Thanks.

View Article


Answer by Klaatu von Schlacker for Arch Installation

You could try a full install of something like Manjaro, which comes with a full desktop and all the usual apps associated with that. From there on, it's Arch as usual. I have had to do this with Salix...

View Article

Answer by Klaatu von Schlacker for How to create lowercase pi (“π”) with...

This isn't super convenient, but it works: If you look in your Compose file for the 'pi' symbol: % grep -i greek /usr/share/X11/locale/en_US.UTF-8/Compose | grep -i 'letter pi' <dead_greek>...

View Article


Answer by Klaatu von Schlacker for What is the difference between starting x...

Generally, a unix system requires root to start X (or a display manager, which runs within X). Without a display manager, if root starts X then the current user of the X session is root. With a display...

View Article

Answer by Klaatu von Schlacker for Bash script doesn't convert variables

You are asking two different questions. In reverse order: A better alternative might be rsync. It's as easy as FTP but a lot smarter. I highly recommend it. Your variables are not resolving because you...

View Article


Answer by Klaatu von Schlacker for linux - disable all video output

Add this to your kernel boot parameters (in your GRUB or [e]LILO config): quiet loglevel=0 vga=current That will kill many of the messages, possibly not all, depending on what init software you are...

View Article

Answer by Klaatu von Schlacker for Upgrading from Python to 2.7.10 to 2.7.11...

You can download the installer from https://www.python.org/downloads/release/python-2711/ and install it as usual: sudo installer -src /path/to/python.pkg -tgt / Alternately, you can use a Linux/BSD...

View Article

Answer by Klaatu von Schlacker for Installing without booting

Yes, you can install Linux to a drive without booting any kind of special installer. There are many ways to do this. First, you can manually partition the drive, create a filesystem onto it, create a...

View Article

Answer by Klaatu von Schlacker for What does make -jn mean?

The -j make flag denotes how many threads you want to allot for compiling. n is, in this case, a place-holder for the number of processes. The classic rule of thumb is that it's safe to make n = the...

View Article


Answer by Klaatu von Schlacker for How can I store files in the mounted...

If your primary goal is just to share files back and forth, and you're open to using TCP, you could just share files over ssh or similar. For instance, if you re-direct a local port to a sensible port...

View Article


Answer by Klaatu von Schlacker for How can I upload my .cpp file online while...

I believe you wrote the .cpp file on the Linux server, and now you want to get the file from the Linux server to your home computer, and then from your home computer so that you can submit it to your...

View Article

Answer by Klaatu von Schlacker for Can a single core of a cpu process more...

A single CPU handles one process at a time. But a "process" is a construct of an operating system; the OS calls playing a video in VLC a single process, but it's actually made up of lots of individual...

View Article

Answer by Klaatu von Schlacker for SSH Connection - Interact with ongoing...

On your home computer, before starting the job, launch =screen=: screen Then, from work or where ever, ssh into your home machine. Once in a shell, connect to the screen instance running there: screen...

View Article


Answer by Klaatu von Schlacker for How to move to the "Nth" offset in a file

Cut is what you are looking for. cut -b6 file1.txt This shows you the 6th byte...per line of the file. I think you only want the 6th byte so you can use something like head head -n1 file1.txt | cut -b6...

View Article

Answer by Klaatu von Schlacker for How to automatically handle low disk space?

As you say, you are asking for an unorthodox solution, but since you acknowledge that, you can check free space with df df /partition/you/need/to/monitor Parse the output of that, and based on what you...

View Article

Answer by Klaatu von Schlacker for linux audio feedback

It does look like you're boosting your mic gain; that does make noise more pronounced. Also, you probably have too many mics active. You should methodically go through each capture option and mute it,...

View Article

Answer by Klaatu von Schlacker for legality of creating a variable for a file...

It's perfectly legal to use a variable that way; when you refer to the variable, it will resolve to that file path. This may be out of scope of your question, but the variable will only last as long as...

View Article



Answer by Klaatu von Schlacker for Assigning upper case variables to commands

There's an argument for making nearly anything that you use repeatedly throughout a script into a varuable, because then you can re-define it once and have it ripple through the rest of the script. You...

View Article

Answer by Klaatu von Schlacker for Correct syntax for `if...elif` statements

Yes, your re-write using elif is the same as your original code block using a nested 'if'. Elif exists exactly so that you don't have to nest a new 'if' inside 'else'. I think that's probably why they...

View Article

Answer by Klaatu von Schlacker for Fluxbox: Right click on window title won't...

Does the file ~/.fluxbox/windowmenu exist? If not, the titlebar menu will not appear. You can generate a default windowmenu from /usr/share/fluxbox/windowmenu man fluxbox-menu discusses this some. If...

View Article

Answer by Klaatu von Schlacker for How can I move a directory (and all sub...

$ \ls foo | xargs -I% mv -v foo/% bar 'foo/one' -> 'bar/one' 'foo/sie' -> 'bar/sie' 'foo/two' -> 'bar/two' 'foo/uve' -> 'bar/uve' 'foo/wox' -> 'bar/wox' 'foo/zanzibar' ->...

View Article


Answer by Klaatu von Schlacker for Can the Linux OS be fully learned through...

Yes, and no. I think it's safe to say that you can learn Linux whilst using Kali, since Kali is Linux. But I also think it's not a bad idea to learn Linux before delving into the security side of Kali,...

View Article

Answer by Klaatu von Schlacker for Confused about why makefile is not generated

Traditionally, if you are in the root directory of your code base, you should be able to do this:mkdir Build cd Build cmake .. make ccmake is apparently a frontend to cmake, but I've never used it...

View Article

Comment by Klaatu von Schlacker on How to find IP address for SSH target...

Hi, welcome to Stack Overflow! Can you describe the networks involved? It sounds to me like the server is on a network behind a router, and your laptop is on a different network. I imagine you're...

View Article


Comment by Klaatu von Schlacker on How to find IP address for SSH target...

I've edited my answer to explain.

View Article


Answer by Klaatu von Schlacker for ffmpeg record video tape with audio

Try defining the audio device as just hw1.You can also try suspending Pulse:pasuspender -- ffmpeg -f v4l2 -video_size 720x480 -i /dev/video0 -channel_layout stereo -f alsa -i hw:1 -c:v libx264 -pix_fmt...

View Article

Answer by Klaatu von Schlacker for Environment Variables not getting set in...

.bash_profile does not get executed for non-login shells, so if you are running a command and expect it to load in env settings from .bash_profile, that will not happen.Try creating a .bashrc file...

View Article
Browsing latest articles
Browse All 44 View Live




Latest Images