Search the Community
Showing results for tags 'commands'.
-
I don't if I in the right section of the forum but didn't find any more relatable. btw its my class question a binary file snippet is given i fragmentas.txt and i need to find which 5 files contains this binary fragment. its giving me headache last 2 hours... help guys
-
Hello, I went to an interview and the interviewer asked me "what command can be used to check running processes in linux?". The top command came to my mind so I told him that. He then asked me "using top command, how is it possible to find a memory leak of an application". I wasnt very sure about the answer but I told him that, "using the top command it will be possible to see a closed process still running and using the allocated memory which can be a sign of a memory leak". He then replied there is a specific top command that can show a memory leak. I didnt know the answer to this question. I came home and had a look online for a top command that showed memory leaks, but didnt see a specific command. If you know the answer to this, please do share it with me so I can improve my knowledge. Thank you.
-
Snappy answers to st***d questions Can you use a Raspberry pi 4 as a desktop computer? Well, I bought one a few weeks ago and, of course, it depends on who you are and what do you use it for. The short answer for the typical LTT fan is no: you won't be playing Fortnite, Mortal Kombat 11 or Quake 4 (but I have seen some people install Quake 3) Before I continue let me clarify I am a bit of a freak in that, although I have an i5 laptop with an SSD, I usually work on an old desktop that I salvaged with a Core2duo and 3GB of RAM, so I'm used to waiting a few seconds for programs to start. I didn't even notice it until I got the pi. This thing is fast, specially with Raspbian. So I find myself choosing to use the pi instead of my desktop more and more. So, if you are new to Raspberry pi, let me share what I have learned in these weeks. I'll tell you about the bumps I had along the road and the mistakes I wouldn't make again so, hopefully, you'll be off to a smoother start. HDMI problems I am a teacher and I bought the pi so I didn't have to carry a laptop if I wanted to show something to students -which is typically a PDF, sometimes a website- I am planning to use it in 2020 in any TV or projector with HDMI a classroom may have. On day one I ran into my first insurmountable problem. My old 32" TV does not talk to the pi. Spoiler alert: it never did. I have to say I am also a rookie in Linux, so right away I had to struggle with the root access to the main configuration file so I could alter some HDMI parameters. For a moment, only partially, I managed to get an image on the TV but at a very low resolution. After a few restarts, the image was gone again. What seemed to work momentarily was editing /boot/config.txt to uncomment the lines hdmi_safe=1 hdmi_force_hotplug=1 hdmi_ignore_edid=0xa5000080 config_hdmi_boost=4 and change the 4 in the last one for a 9. You can choose between HDMI and composite but you have to tell the pi, you cannot just plug something into the 3.5 combo jack and expect it to work. You have to go to the main manu and clic Preferences/Raspberry Pi Configuration and set Composite Video to Enabled. You cannot use any cable either. I played with the RCA connectors in mine to find the Red one was video but the image quality was so dismal that I immediately dismissed it. According to the forums the "no HDMI signal" may affect older LCD TVs. The pi worked perfectly on my newer LG TV so I used that one instead. But the pi lost a point here. I was not expecting to have to troubleshoot any HDMI connection. Because it worked briefly, there is a clear chance for a fix. Because I plan to connect it to many different displays I will have to try and see if it mostly works on them or if it mostly doesn't. Once the pi was running on the 43" LG, I started wondering what should I install. Software recommendations Selecting OS I immediately tried the full Raspbian + recommended software install. You download the image from https://www.raspberrypi.org/downloads/ and "flash" it to a micro SD with Balena Etcher. Download Etcher from https://www.balena.io/etcher/ then you just select the image you downloaded -you don't even need to unzip it, select the micro SD and click "Flash!" Using that method, you can try a few distros. Noobs is even easier. You just copy the files to the card and boot the pi with it. It will guide you through the installation. Pinn is an enhanced Noobs you can download from https://sourceforge.net/projects/pinn/ and gives you more options. I installed Manjaro ARM and considered Kali Linux before just settling for Raspbian. It's super fast and the 4GB of RAM in the pi are overkill as it typically uses 250 megs of Ram. 600 with Chromium and 1 tab open, a word processor, and an mp3 player. I have had as many tabs and apps as I have wanted and I have never seen Raspbian use 2GB of RAM. So I decided to stick to Raspbian for now. If you want to experiment, all you need to do is get another SD so, why not? Web Browser Chromium works ok. It will spike the processor on start up, or as it loads a video but YouTube will settle around 20% of processor load which may bring up the temperature to 55º C. I have read tales of 60º C idle on early pi 4 but that must have been solved because a small fan keeps mine at 45º C, 50º on load. Plays 1080p fine. I have tried other browsers. Vivaldi just died upon loading YouTube.com. Download the installer from https://vivaldi.com/es/blog/vivaldi-for-raspberry-pi/ and run "sudo dpkg -i [/filepath/filename]" to install. Midori will play YouTube but plateau at 40 to 50% CPU load. "sudo apt install midori" Firefox has the same cpu load problem when playing videos only sometimes it crashes playing even 480p or lower "sudo apt install firefox-esr" So, in early 2020, the default included Chromium seems to be also the best choice to browse the web and watch videos. Other Software I use PDFs a lot and I would love an editor like Master PDF Editor or PDF Studio but they don't run in ARM processors so you're stuck with "viewers". The included document viewer is very smooth but limited in the annotation, and highlighting department. Because I need to highlight and annotate my PDFs sometimes I installed Evince. I also installed Filezilla for FTP. Shotwell for light image editing -such as cropping and changing brightness. Evolution to handle email, contacts and calendar and replace the included claws mail. I never imagined to do anything video related on the pi, but one day I needed to cut a small video and downloaded Pitivi. It crashed until I configured it not to use proxies for videos. It wasn't smooth at all but I managed to cut and export. I found Handbrake can help you recode a video. The pi 4 handles h264 well so you should use that codec. Htop comes included for a glance of CPU, RAM and processes but Glances includes info about network and disk use. Install and type "glances" on the terminal. I use Audacity for audio editing and there is and ARM version of Reaper, the DAW, you can download from reaper.fm and install using the "dpkg -i" command. Evince "sudo apt install evince" Filezilla "sudo apt install filezilla" Shotwell "sudo apt install shotwell" Evolution "sudo apt install evolution" Handbrake "sudo apt install handbrake" Pitivi "sudo apt install pitivi" Glances "sudo apt install glances" Audacity "sudo apt install audacity" On the back of giants References The best series of articles I found on the pi 4 are in this thread. https://www.linuxlinks.com/raspberry-pi-4-chronicling-desktop-experience-week-1/ beware of the recommendations to get better web video in Chromium using only GPU. It is true, you get way better YouTube with an idle CPU but my sound configuration broke so badly I could not manage to fix it and it became impossible to watch regular videos online without using the modified player. On page 22 of MagPi 85 here https://magpi.raspberrypi.org/issues/85 there is also a very good article of someone using the pi 4 for a week. Because I am an Linux rookie, I have been watching this 7 hour video on how to master Linux Command line bonanza Seeing where you are and moving around ls ls -l cd cd / cd ../ pwd Copying, moving, creating and removing cp [file] ./destination (copy) mkdir dirname mv [file] /dir (moves) mv dir dir2 (renames) touch [file] (creates file) nano [file] (creates/edits) rm [file] rm *.txt rm ./dir/* rm -rf [dir] (deletes dir with files inside) Super User and ownership sudo sudo su (changes to #) su [user] (returns to $) chmod 644 [file] chown user:group [file] chown -R user:group [dir] (recursive) Searching, installing and uninstalling apps. apt update apt upgrade atp install [program] apt remove [program] apt-cache policy [program] (checks if it is installed) apt-cache search [keyword] (searches repos) apt list dpkg -i [local file] (installs local file) Find find . -type f -name "*.txt" (case sensitive) find . -type f -iname "*.txt" (not case sensitive) find . -size +20M find . -type f -not -iname "*.php" Find inside files grep [keyword] [file] grep -n [keyword] [file] (line number) grep -n -i [keyword] ./* (not case sensitive, recursive) Manage processes top ps aux htop ps aux | grep [program] pgrep [program] (shows PID) kill -9 [PID] killall [program] service [service] status sudo service [service] start sudo service [service] stop sudo service [service] restart sudo systemctl start [service] sudo systemctl stop [service] systemctl status [service] Other commands I found elsewhere ifconfig ip addr show hostname -I (shows IP) uname -a (system info) uname -r (kernel ver) uname -m (x86 o ARM) df -ah (HDD space) du -sh [dir] (disk use) netstat netstat -tulpn mount /dev/sdx /mnt etc/fstab (mount on boot) man [comand] passwd [user] whoami id cat less | piping echo So, Can you use a Raspberry pi 4 as a desktop computer? Yes. I am doing it right now. I wrote this article, cropped the images and posted everything while listening to music. You can work, and even multitask as long you understand you are using an ARM processor. Form my requirements -take one and a half kilograms off my briefcase- it is perfect. What do you want to use your pi for? Tell me in the comments!
- 4 replies
-
- raspberrypi
- raspbian
-
(and 3 more)
Tagged with:
-
I would like to use my num pad for keybinds in csgo and I would like to be able to press a button to switch the keybinds from guns in competitive to moving bots and stuff in a test server. To do that I think the easiest way would be to save a boolean variable then use an if statement to detect it and rebind the numpad based on which it is on, then change the variable. The other option would be to have 2 separate buttons for rebinding, but I would like to use only 1.
-
Hey guys, Im looking for someone who could help me with a little project I'm willing to start: At my job, we have a lot of data ( ex names; adresses; phone numbers, etc. ) but I want to make my own "data program" so we can access our info a lot quicker, ive learned a bot from @CodeAcadamy, but I'm not at all a know it all. How do I even start? yeah I know some basic commands and such, but how do you even start making your own "program"? Some things I have to consider is: Were often on the road so this program must be accessible offline and would like to have basic search bar: Ex: I put a name of a street, I can see all the adresses ( house numbers ) on that street. To make it a bit easier to understand, would love to make like an offline "Facebook" data base; I could just search a name and it would give me the info that I inserted of him. and have different columns, like when we last visited the owner, and etc. If anyone could help me, put me on the right track, would really appreciate it! Im really excited about it and willing to put time and effort on my "little project" Thanks.
-
hello everyone, i would like to build a good system administrator/domain lab using the equipment i have laying around. i have 10 complete computers , 5 laptops, 4 servers, and a huge number of computer parts and equipment. so what do you guys suggest for building the ultimate lab for a system administrator training and system engineering. also i will be a getting a complete Cisco Lab good enough to take me from CCNA up to CCNE, how can i add this Cisco lab to the environment i will build to make a whole lab made of a compilation of servers, computers,laptops, printers and Cisco networking to get the ultimate hands on practice. please be as detailed and creative as possible . any and all opinions are more than appreciated. thank you all
-
Hey Guys, I've finished making this project (LED Project (LTT Forum)) some time ago. The problem is, that if I give a command to the arduino through the serial monitor, the only responsive command is "Off". So it doesn't execute the command I send it. Code (from the project, not mine, just a little adjusted): I can't see why the code shouldn't work properly and accept any declared command. Information: I've burnt my voltage regulator of my arduino, so I bridged it Between the Arduino and the LED Data pins is a Resistor (300 Ohm, 0.6W, 0.25%) and a <2m long wire LEDs are not powered by arduino Baud size in serial monitor is the right one, made it higher once for testing purposes, no change Any help in fixing this problem is appreciated. 5chmidti
-
Hey all! I am going through my music library and have found many songs over 10 minutes. Is there any quick way (yes I know I can sort by length, but the amount of folders I have it would take ages) to sort and remove any song files over 10 minutes? Thanks!
- 4 replies
-
- commands
- windows 10
-
(and 2 more)
Tagged with:
-
Hey guys, I recently set up a FreeNAS file server at my home. I'm at work. SSH is enabled and I can log into the file server from anywhere with the SSH program Putty. SSH works fine and everything. I just don't know how to use it. It doesn't have a GUI, so I'm kind of lost beyond that. However, I'm a noob when it comes to the shell and that's all I have to use for this. Where could I find a guide to commands to use in the shell for this particular purpose? For example, I want to be able to see all the files in the folder I'm in on the NAS. I want to be able to copy/cut/move files to and from the NAS over SSH if that's possible. Also, what is a VPN and how could I use that for this same purpose? GUI's are just more friendly (particularly for other users besides myself), but I'm very open to learning about the shell. Thanks, Vitalius. P.S. @alpenwasser I was told to ask you as you use SSH.
- 10 replies
-
- ssh
- file server
- (and 8 more)
-
So I have tested the commands in user.cfg or in console. And there are the results:
-
So I read about symbolic links and they can create soft links to a file, where programs treat the link like the file. They are like shortcuts in windows, but different in a few ways. Well, in Linux, a directory is just a file with a special flag (dumbed down version), so my question is: Can I use a symbolic link to have one directory be equivalent to another? Example: I have the directory ~/images and I want any image put into it to actually go to /mnt/server/images, so that it is stored on a different device. I feel like this should be possible and relatively easy/painless to do, but I can't imagine how I'd use ln -s (the symbolic link command) to do it. I know I can do this by mounting the server images folder to ~/images, but I'd like to know of other ways to do it. For learning and such. Any help is appreciated.
-
Can someone give me a list of all flags that can be used in Cgminer for mining bitcoins with a brief explanation, and maybe tell me is it even worth to use some of them? These are the settings i currently use in my batch file for running cgminer: setx GPU_MAX_ALLOC_PERCENT 100 (allows to fully utilize the power of your gpu, mine is radeon hd 7310 (yes i know it sucks) ) cgminer --scrypt -o stratum+tcp://mine-doge.cryptoculture.net:22555 -u MYUSERNAME -p MYPASSWORD -I 11 (intensity, the safest it can get, but i'll fiddle with it) --auto-gpu (don't know what is this ) --auto-fan (It controls your fan, but i heard it decreases your mining speed, should i delete this= --temp-cutoff 85 (cut the temp at 85 degrees) --temp-overheat 80 (overheat point) --temp-target 75 (what is my "nice" temperature i want to use) So my gpu is 7310 if you did read any of these flags, does someone recommend intensity and other flags?
-
Hi Guys I am bit new to Linux, I have installed manjaro and done all the setups. I have Everpad and Wunderlist(Chrome App) and Chromium to start at startup They startup Fine I want to move it to anther workspace automatically Is there any command I can add to the startup to achieve this or a program? I am using XFCE desktop Thanks Any Help highly appreciated